From 2217b2eef8d9f65637f07850a930da74053f5413 Mon Sep 17 00:00:00 2001 From: waleed Date: Tue, 2 Dec 2025 17:55:18 -0800 Subject: [PATCH] fix(subblocks): update guardrails pii selector component to use emcn --- .../grouped-checkbox-list.tsx | 40 +++++++++++-------- .../components/tool-input/tool-input.tsx | 6 ++- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/grouped-checkbox-list/grouped-checkbox-list.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/grouped-checkbox-list/grouped-checkbox-list.tsx index 0b0d382e089..b627ba13154 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/grouped-checkbox-list/grouped-checkbox-list.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/grouped-checkbox-list/grouped-checkbox-list.tsx @@ -2,7 +2,7 @@ import { useMemo, useState } from 'react' import { Settings2 } from 'lucide-react' -import { Button } from '@/components/ui/button' +import { Button } from '@/components/emcn/components' import { Checkbox } from '@/components/ui/checkbox' import { Dialog, @@ -11,6 +11,7 @@ import { DialogTitle, DialogTrigger, } from '@/components/ui/dialog' +import { cn } from '@/lib/core/utils/cn' import { useSubBlockValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/hooks/use-sub-block-value' interface GroupedCheckboxListProps { @@ -81,25 +82,38 @@ export function GroupedCheckboxList({ const SelectedCountDisplay = () => { if (noneSelected) { - return None selected + return ( + None selected + ) } if (allSelected) { - return All selected + return ( + + All selected + + ) } - return {selectedValues.length} selected + return ( + + {selectedValues.length} selected + + ) } return ( @@ -137,13 +151,7 @@ export function GroupedCheckboxList({ Select all entities -