@camunda/design-system 0.58.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/carbon-compat/accordion-skeleton.d.ts +8 -2
- package/dist/carbon-compat/accordion-skeleton.d.ts.map +1 -1
- package/dist/carbon-compat/accordion-skeleton.js +4 -2
- package/dist/carbon-compat/accordion-skeleton.js.map +1 -1
- package/dist/carbon-compat/c3-data-table.d.ts +7 -1
- package/dist/carbon-compat/c3-data-table.d.ts.map +1 -1
- package/dist/carbon-compat/c3-data-table.js +8 -6
- package/dist/carbon-compat/c3-data-table.js.map +1 -1
- package/dist/carbon-compat/code-snippet.d.ts +2 -2
- package/dist/carbon-compat/code-snippet.d.ts.map +1 -1
- package/dist/carbon-compat/code-snippet.js +8 -6
- package/dist/carbon-compat/code-snippet.js.map +1 -1
- package/dist/carbon-compat/error-boundary.d.ts +2 -1
- package/dist/carbon-compat/error-boundary.d.ts.map +1 -1
- package/dist/carbon-compat/error-boundary.js +11 -1
- package/dist/carbon-compat/error-boundary.js.map +1 -1
- package/dist/carbon-compat/filterable-multi-select.d.ts.map +1 -1
- package/dist/carbon-compat/filterable-multi-select.js +6 -1
- package/dist/carbon-compat/filterable-multi-select.js.map +1 -1
- package/dist/carbon-compat/modal.d.ts.map +1 -1
- package/dist/carbon-compat/modal.js +5 -1
- package/dist/carbon-compat/modal.js.map +1 -1
- package/dist/carbon-compat/multi-select.d.ts.map +1 -1
- package/dist/carbon-compat/multi-select.js +5 -1
- package/dist/carbon-compat/multi-select.js.map +1 -1
- package/dist/carbon-compat/search.d.ts +4 -1
- package/dist/carbon-compat/search.d.ts.map +1 -1
- package/dist/carbon-compat/search.js +4 -2
- package/dist/carbon-compat/search.js.map +1 -1
- package/dist/carbon-compat/table-batch-actions.d.ts +5 -1
- package/dist/carbon-compat/table-batch-actions.d.ts.map +1 -1
- package/dist/carbon-compat/table-batch-actions.js +8 -3
- package/dist/carbon-compat/table-batch-actions.js.map +1 -1
- package/dist/carbon-compat/table-expand.d.ts +5 -1
- package/dist/carbon-compat/table-expand.d.ts.map +1 -1
- package/dist/carbon-compat/table-expand.js +6 -2
- package/dist/carbon-compat/table-expand.js.map +1 -1
- package/dist/carbon-compat/table-select.d.ts +9 -2
- package/dist/carbon-compat/table-select.d.ts.map +1 -1
- package/dist/carbon-compat/table-select.js +5 -2
- package/dist/carbon-compat/table-select.js.map +1 -1
- package/dist/carbon-compat/table-toolbar.d.ts +1 -0
- package/dist/carbon-compat/table-toolbar.d.ts.map +1 -1
- package/dist/carbon-compat/table-toolbar.js +5 -2
- package/dist/carbon-compat/table-toolbar.js.map +1 -1
- package/dist/src/components/ui/alert-dialog.d.ts +11 -1
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +5 -4
- package/dist/src/components/ui/alert-dialog.js.map +1 -1
- package/dist/src/components/ui/alert.d.ts +3 -1
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/alert.js +6 -2
- package/dist/src/components/ui/alert.js.map +1 -1
- package/dist/src/components/ui/app-header.d.ts +1 -0
- package/dist/src/components/ui/app-header.d.ts.map +1 -1
- package/dist/src/components/ui/app-header.js +4 -2
- package/dist/src/components/ui/app-header.js.map +1 -1
- package/dist/src/components/ui/app-sidebar.d.ts +49 -2
- package/dist/src/components/ui/app-sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/app-sidebar.js +74 -22
- package/dist/src/components/ui/app-sidebar.js.map +1 -1
- package/dist/src/components/ui/breadcrumb.d.ts +7 -1
- package/dist/src/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/src/components/ui/breadcrumb.js +6 -3
- package/dist/src/components/ui/breadcrumb.js.map +1 -1
- package/dist/src/components/ui/c4-provider.d.ts +10 -0
- package/dist/src/components/ui/c4-provider.d.ts.map +1 -1
- package/dist/src/components/ui/c4-provider.js +11 -2
- package/dist/src/components/ui/c4-provider.js.map +1 -1
- package/dist/src/components/ui/card.d.ts +3 -1
- package/dist/src/components/ui/card.d.ts.map +1 -1
- package/dist/src/components/ui/card.js +18 -2
- package/dist/src/components/ui/card.js.map +1 -1
- package/dist/src/components/ui/chart.d.ts +1 -0
- package/dist/src/components/ui/chart.d.ts.map +1 -1
- package/dist/src/components/ui/chart.js +4 -2
- package/dist/src/components/ui/chart.js.map +1 -1
- package/dist/src/components/ui/code-block.d.ts +5 -0
- package/dist/src/components/ui/code-block.d.ts.map +1 -1
- package/dist/src/components/ui/code-block.js +15 -20
- package/dist/src/components/ui/code-block.js.map +1 -1
- package/dist/src/components/ui/combobox.d.ts +2 -0
- package/dist/src/components/ui/combobox.d.ts.map +1 -1
- package/dist/src/components/ui/combobox.js +55 -18
- package/dist/src/components/ui/combobox.js.map +1 -1
- package/dist/src/components/ui/data-table.d.ts +63 -6
- package/dist/src/components/ui/data-table.d.ts.map +1 -1
- package/dist/src/components/ui/data-table.js +38 -23
- package/dist/src/components/ui/data-table.js.map +1 -1
- package/dist/src/components/ui/date-picker.d.ts +1 -0
- package/dist/src/components/ui/date-picker.d.ts.map +1 -1
- package/dist/src/components/ui/date-picker.js +6 -2
- package/dist/src/components/ui/date-picker.js.map +1 -1
- package/dist/src/components/ui/date-range-picker.d.ts +3 -0
- package/dist/src/components/ui/date-range-picker.d.ts.map +1 -1
- package/dist/src/components/ui/date-range-picker.js +26 -5
- package/dist/src/components/ui/date-range-picker.js.map +1 -1
- package/dist/src/components/ui/dialog.d.ts +23 -3
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +15 -9
- package/dist/src/components/ui/dialog.js.map +1 -1
- package/dist/src/components/ui/file-uploader.d.ts +4 -4
- package/dist/src/components/ui/file-uploader.d.ts.map +1 -1
- package/dist/src/components/ui/file-uploader.js +38 -9
- package/dist/src/components/ui/file-uploader.js.map +1 -1
- package/dist/src/components/ui/form-error-summary.d.ts +13 -0
- package/dist/src/components/ui/form-error-summary.d.ts.map +1 -0
- package/dist/src/components/ui/form-error-summary.js +53 -0
- package/dist/src/components/ui/form-error-summary.js.map +1 -0
- package/dist/src/components/ui/inline-edit.d.ts +1 -1
- package/dist/src/components/ui/inline-edit.d.ts.map +1 -1
- package/dist/src/components/ui/inline-edit.js +17 -2
- package/dist/src/components/ui/inline-edit.js.map +1 -1
- package/dist/src/components/ui/meter.d.ts +1 -0
- package/dist/src/components/ui/meter.d.ts.map +1 -1
- package/dist/src/components/ui/meter.js +7 -3
- package/dist/src/components/ui/meter.js.map +1 -1
- package/dist/src/components/ui/multi-select.d.ts +16 -0
- package/dist/src/components/ui/multi-select.d.ts.map +1 -1
- package/dist/src/components/ui/multi-select.js +86 -23
- package/dist/src/components/ui/multi-select.js.map +1 -1
- package/dist/src/components/ui/multi-step-dialog.d.ts +35 -1
- package/dist/src/components/ui/multi-step-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/multi-step-dialog.js +47 -8
- package/dist/src/components/ui/multi-step-dialog.js.map +1 -1
- package/dist/src/components/ui/nav-breadcrumb.d.ts +29 -12
- package/dist/src/components/ui/nav-breadcrumb.d.ts.map +1 -1
- package/dist/src/components/ui/nav-breadcrumb.js +69 -24
- package/dist/src/components/ui/nav-breadcrumb.js.map +1 -1
- package/dist/src/components/ui/notifications.d.ts +52 -5
- package/dist/src/components/ui/notifications.d.ts.map +1 -1
- package/dist/src/components/ui/notifications.js +25 -10
- package/dist/src/components/ui/notifications.js.map +1 -1
- package/dist/src/components/ui/overflow-strip.d.ts +18 -0
- package/dist/src/components/ui/overflow-strip.d.ts.map +1 -0
- package/dist/src/components/ui/overflow-strip.js +103 -0
- package/dist/src/components/ui/overflow-strip.js.map +1 -0
- package/dist/src/components/ui/scorecard.d.ts +1 -0
- package/dist/src/components/ui/scorecard.d.ts.map +1 -1
- package/dist/src/components/ui/scorecard.js +28 -4
- package/dist/src/components/ui/scorecard.js.map +1 -1
- package/dist/src/components/ui/search-input.d.ts +1 -1
- package/dist/src/components/ui/search-input.d.ts.map +1 -1
- package/dist/src/components/ui/search-input.js +4 -2
- package/dist/src/components/ui/search-input.js.map +1 -1
- package/dist/src/components/ui/select.d.ts +2 -2
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/select.js +123 -6
- package/dist/src/components/ui/select.js.map +1 -1
- package/dist/src/components/ui/sheet.d.ts +5 -2
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.js +4 -2
- package/dist/src/components/ui/sheet.js.map +1 -1
- package/dist/src/components/ui/sidebar-provider.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar-provider.js +5 -1
- package/dist/src/components/ui/sidebar-provider.js.map +1 -1
- package/dist/src/components/ui/split-button.d.ts +1 -0
- package/dist/src/components/ui/split-button.d.ts.map +1 -1
- package/dist/src/components/ui/split-button.js +4 -2
- package/dist/src/components/ui/split-button.js.map +1 -1
- package/dist/src/components/ui/tabs.d.ts +2 -1
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.js +16 -4
- package/dist/src/components/ui/tabs.js.map +1 -1
- package/dist/src/components/ui/toast.d.ts +10 -4
- package/dist/src/components/ui/toast.d.ts.map +1 -1
- package/dist/src/components/ui/toast.js +213 -25
- package/dist/src/components/ui/toast.js.map +1 -1
- package/dist/src/components/ui/toggle-group.d.ts +7 -1
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.js +23 -4
- package/dist/src/components/ui/toggle-group.js.map +1 -1
- package/dist/src/components/ui/tree-view.d.ts +10 -2
- package/dist/src/components/ui/tree-view.d.ts.map +1 -1
- package/dist/src/components/ui/tree-view.js +67 -46
- package/dist/src/components/ui/tree-view.js.map +1 -1
- package/dist/src/components/ui/user-menu.d.ts +12 -1
- package/dist/src/components/ui/user-menu.d.ts.map +1 -1
- package/dist/src/components/ui/user-menu.js +5 -3
- package/dist/src/components/ui/user-menu.js.map +1 -1
- package/dist/src/hooks/use-is-truncated.d.ts +9 -5
- package/dist/src/hooks/use-is-truncated.d.ts.map +1 -1
- package/dist/src/hooks/use-is-truncated.js +20 -7
- package/dist/src/hooks/use-is-truncated.js.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/focus-visible-on-close.d.ts +28 -0
- package/dist/src/lib/focus-visible-on-close.d.ts.map +1 -1
- package/dist/src/lib/focus-visible-on-close.js +54 -1
- package/dist/src/lib/focus-visible-on-close.js.map +1 -1
- package/dist/src/lib/i18n/context.d.ts +48 -0
- package/dist/src/lib/i18n/context.d.ts.map +1 -0
- package/dist/src/lib/i18n/context.js +157 -0
- package/dist/src/lib/i18n/context.js.map +1 -0
- package/dist/src/lib/i18n/dictionary.d.ts +151 -0
- package/dist/src/lib/i18n/dictionary.d.ts.map +1 -0
- package/dist/src/lib/i18n/dictionary.js +134 -0
- package/dist/src/lib/i18n/dictionary.js.map +1 -0
- package/dist/src/lib/merge-refs.d.ts +8 -0
- package/dist/src/lib/merge-refs.d.ts.map +1 -0
- package/dist/src/lib/merge-refs.js +15 -0
- package/dist/src/lib/merge-refs.js.map +1 -0
- package/dist/src/lib/with-ref.d.ts +3 -1
- package/dist/src/lib/with-ref.d.ts.map +1 -1
- package/dist/src/lib/with-ref.js +0 -10
- package/dist/src/lib/with-ref.js.map +1 -1
- package/dist/styles.css +65 -6
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;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C,EAAE,SAAS,CAAC,KACpE,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EACL,KAAK,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/sidebar-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"sidebar-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/sidebar-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAID,8EAA8E;AAC9E,wBAAgB,UAAU,IAAI,mBAAmB,GAAG,IAAI,CAEvD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAaD,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,eAAsB,EACtB,YAAsB,EACtB,iBAAyB,EACzB,cAAyB,EACzB,QAAQ,EAAE,YAAY,GACvB,EAAE,oBAAoB,qBA8DtB;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,mBAAmB,qBA2CrB"}
|
|
@@ -4,6 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import { Menu } from "../../icons/lucide.js";
|
|
5
5
|
import { useIsMobile } from "../../hooks/use-is-mobile.js";
|
|
6
6
|
import { Button } from "../ui/button.js";
|
|
7
|
+
import { useC4Dictionary } from "../../lib/i18n/context.js";
|
|
7
8
|
import { cn } from "../../lib/utils.js";
|
|
8
9
|
const EXPANDED_STORAGE_KEY = "c4-sidebar-expanded";
|
|
9
10
|
const WIDTH_STORAGE_KEY = "c4-sidebar-width";
|
|
@@ -68,8 +69,11 @@ export function SidebarProvider({ children, defaultExpanded = true, defaultWidth
|
|
|
68
69
|
*/
|
|
69
70
|
export function SidebarTrigger({ onClick, children, className, ...props }) {
|
|
70
71
|
const ctx = useSidebar();
|
|
72
|
+
const { t } = useC4Dictionary();
|
|
71
73
|
const isOpen = ctx?.mobileOpen ?? false;
|
|
72
|
-
return (_jsx(Button, { variant: "ghost", size: "icon", "aria-label": isOpen
|
|
74
|
+
return (_jsx(Button, { variant: "ghost", size: "icon", "aria-label": isOpen
|
|
75
|
+
? t("sidebarProvider.closeNavigation")
|
|
76
|
+
: t("sidebarProvider.openNavigation"), ...props, "data-slot": "sidebar-trigger", "data-state": isOpen ? "open" : "closed", className: cn("data-[state=open]:bg-neutral-background-medium dark:data-[state=open]:bg-neutral-background-medium", className), onClick: (e) => {
|
|
73
77
|
onClick?.(e);
|
|
74
78
|
if (!e.defaultPrevented) {
|
|
75
79
|
ctx?.setMobileOpen(!isOpen);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-provider.js","sourceRoot":"","sources":["../../../../src/components/ui/sidebar-provider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAE/B,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AACnD,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAa7C,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAA6B,IAAI,CAAC,CAAC;AAE7E,8EAA8E;AAC9E,MAAM,UAAU,UAAU;IACxB,OAAO,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAC1C,CAAC;AAqBD,SAAS,cAAc,CAAC,GAAW,EAAE,QAAiB;IACpD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,QAAQ,CAAC;IACnD,MAAM,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAC9C,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW,EAAE,QAAgB;IACrD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,QAAQ,CAAC;IACnD,OAAO,MAAM,CAA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C,CAAC,QAAQ,EACtC,SAAS,EAAE,EAAE,CACX,oGAAoG,EACpG,SAAS,CACV,EACD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;YACb,IAAI,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;gBACxB,GAAG,EAAE,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC,YAEA,QAAQ,IAAI,KAAC,IAAI,yBAAa,SAAS,EAAC,QAAQ,GAAG,GAC7C,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -8,6 +8,7 @@ type SplitButtonProps = {
|
|
|
8
8
|
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
9
9
|
size?: SplitButtonSize;
|
|
10
10
|
onPrimaryClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
11
|
+
/** Accessible name for the dropdown-trigger segment. Sourced from the i18n dictionary at key `"splitButton.moreOptions"` when omitted. */
|
|
11
12
|
dropdownLabel?: string;
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/split-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/split-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,OAAO,EAAU,cAAc,EAAE,MAAM,UAAU,CAAC;AAOlD,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;AAYtD,KAAK,gBAAgB,GAAG;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,cAAc,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC5D,0IAA0I;IAC1I,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqDF,QAAA,MAAM,WAAW,sGAA6D,CAAC;AAE/E,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -3,6 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import {} from "class-variance-authority";
|
|
4
4
|
import { ChevronDown } from "../../icons/lucide.js";
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { useC4Dictionary } from "../../lib/i18n/context.js";
|
|
6
7
|
import { withRef } from "../../lib/with-ref.js";
|
|
7
8
|
import { Button, buttonVariants } from "./button.js";
|
|
8
9
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, } from "./dropdown.js";
|
|
@@ -12,9 +13,10 @@ const iconSizeMap = {
|
|
|
12
13
|
xs: "icon-xs",
|
|
13
14
|
lg: "icon-lg",
|
|
14
15
|
};
|
|
15
|
-
function SplitButtonImpl({ ref, label, variant = "default", size = "default", onPrimaryClick, dropdownLabel
|
|
16
|
+
function SplitButtonImpl({ ref, label, variant = "default", size = "default", onPrimaryClick, dropdownLabel, disabled = false, className, children, }) {
|
|
17
|
+
const { t } = useC4Dictionary();
|
|
16
18
|
const triggerSize = iconSizeMap[size];
|
|
17
|
-
return (_jsxs("div", { ref: ref, role: "group", "data-slot": "split-button", className: cn("inline-flex rounded-lg shadow-none", className), children: [_jsx(Button, { variant: variant, size: size, onClick: onPrimaryClick, disabled: disabled, className: "rounded-r-none border-r-0 shadow-none", children: label }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: variant, size: triggerSize, disabled: disabled, "aria-label": dropdownLabel, className: "rounded-l-none border-l border-l-primary-foreground/25 shadow-none", children: _jsx(ChevronDown, { "aria-hidden": "true" }) }) }), _jsx(DropdownMenuContent, { children: children })] })] }));
|
|
19
|
+
return (_jsxs("div", { ref: ref, role: "group", "data-slot": "split-button", className: cn("inline-flex rounded-lg shadow-none", className), children: [_jsx(Button, { variant: variant, size: size, onClick: onPrimaryClick, disabled: disabled, className: "rounded-r-none border-r-0 shadow-none", children: label }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: variant, size: triggerSize, disabled: disabled, "aria-label": dropdownLabel ?? t("splitButton.moreOptions"), className: "rounded-l-none border-l border-l-primary-foreground/25 shadow-none", children: _jsx(ChevronDown, { "aria-hidden": "true" }) }) }), _jsx(DropdownMenuContent, { children: children })] })] }));
|
|
18
20
|
}
|
|
19
21
|
const SplitButton = withRef(SplitButtonImpl);
|
|
20
22
|
export { SplitButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.js","sourceRoot":"","sources":["../../../../src/components/ui/split-button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,GAGb;IACF,OAAO,EAAE,MAAM;IACf,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;CACd,CAAC;
|
|
1
|
+
{"version":3,"file":"split-button.js","sourceRoot":"","sources":["../../../../src/components/ui/split-button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,GAGb;IACF,OAAO,EAAE,MAAM;IACf,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;CACd,CAAC;AAeF,SAAS,eAAe,CAAC,EACvB,GAAG,EACH,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,cAAc,EACd,aAAa,EACb,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,GACS;IACjB,MAAM,EAAE,CAAC,EAAE,GAAG,eAAe,EAAE,CAAC;IAChC,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAEtC,OAAO,CACL,eACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,OAAO,eACF,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,aAE9D,KAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,uCAAuC,YAEhD,KAAK,GACC,EACT,MAAC,YAAY,eACX,KAAC,mBAAmB,IAAC,OAAO,kBAI1B,KAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,QAAQ,gBACN,aAAa,IAAI,CAAC,CAAC,yBAAyB,CAAC,EACzD,SAAS,EAAC,oEAAoE,YAE9E,KAAC,WAAW,mBAAa,MAAM,GAAG,GAC3B,GACW,EACtB,KAAC,mBAAmB,cAAE,QAAQ,GAAuB,IACxC,IACX,CACP,CAAC;AACJ,CAAC;AAED,MAAM,WAAW,GAAG,OAAO,CAAmC,eAAe,CAAC,CAAC;AAE/E,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -5,7 +5,8 @@ declare function Tabs({ className, orientation, ...props }: React.ComponentProps
|
|
|
5
5
|
declare const tabsListVariants: (props?: ({
|
|
6
6
|
variant?: "line" | "default" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
|
|
8
|
+
type TabsListProps = React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>;
|
|
9
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
10
|
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|
|
10
11
|
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
|
|
11
12
|
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAOjD,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,WAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,qBAYjD;AAID,QAAA,MAAM,gBAAgB;;8EAarB,CAAC;AAEF,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,GAClE,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAkDxC,QAAA,MAAM,QAAQ,mGAAuD,CAAC;AAEtE,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,qBAepD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,qBAQpD;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { withRef } from "../../lib/with-ref.js";
|
|
7
|
+
import { mergeRefs } from "../../lib/merge-refs.js";
|
|
8
|
+
import { OverflowStripArrow, useOverflowStrip } from "./overflow-strip.js";
|
|
6
9
|
function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
7
10
|
return (_jsx(TabsPrimitive.Root, { "data-slot": "tabs", "data-orientation": orientation, className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className), ...props }));
|
|
8
11
|
}
|
|
9
|
-
|
|
12
|
+
// `justify-start`, not `center`: a centred flex row that overflows its scroll
|
|
13
|
+
// container hangs past the start edge where no scroll position can reach it.
|
|
14
|
+
const tabsListVariants = cva("group/tabs-list inline-flex w-fit items-center justify-start gap-1 rounded-xl p-1 text-neutral-foreground-subtle group-data-horizontal/tabs:h-9 group-data-horizontal/tabs:min-w-0 group-data-horizontal/tabs:max-w-full group-data-horizontal/tabs:overflow-x-auto group-data-horizontal/tabs:[scrollbar-width:none] group-data-horizontal/tabs:[&::-webkit-scrollbar]:hidden group-data-horizontal/tabs:motion-safe:scroll-smooth group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col group-data-vertical/tabs:overflow-visible data-[variant=line]:rounded-none", {
|
|
10
15
|
variants: {
|
|
11
16
|
variant: {
|
|
12
17
|
default: "bg-neutral-background-medium",
|
|
@@ -17,9 +22,16 @@ const tabsListVariants = cva("group/tabs-list inline-flex w-fit items-center jus
|
|
|
17
22
|
variant: "default",
|
|
18
23
|
},
|
|
19
24
|
});
|
|
20
|
-
function
|
|
21
|
-
|
|
25
|
+
function TabsListImpl({ ref, className, variant = "default", ...props }) {
|
|
26
|
+
const { ref: scrollRef, hasMoreBefore, hasMoreAfter, scrollByStep, } = useOverflowStrip();
|
|
27
|
+
const listRef = React.useMemo(() => mergeRefs(ref, scrollRef), [ref, scrollRef]);
|
|
28
|
+
return (
|
|
29
|
+
// The arrows are siblings of the tablist inside this wrapper, never
|
|
30
|
+
// children of it — rendering them inside would count toward the tab
|
|
31
|
+
// total and break Radix's roving focus (Home/End, arrow-key wrap).
|
|
32
|
+
_jsxs("div", { "data-slot": "tabs-list-scroller", className: "flex min-w-0 max-w-full group-data-horizontal/tabs:items-center group-data-vertical/tabs:items-start", children: [hasMoreBefore && (_jsx(OverflowStripArrow, { direction: "before", onScroll: () => scrollByStep("before") })), _jsx(TabsPrimitive.List, { ref: listRef, "data-slot": "tabs-list", "data-variant": variant, className: cn(tabsListVariants({ variant }), className), ...props }), hasMoreAfter && (_jsx(OverflowStripArrow, { direction: "after", onScroll: () => scrollByStep("after") }))] }));
|
|
22
33
|
}
|
|
34
|
+
const TabsList = withRef(TabsListImpl);
|
|
23
35
|
function TabsTrigger({ className, ...props }) {
|
|
24
36
|
return (_jsx(TabsPrimitive.Trigger, { "data-slot": "tabs-trigger", className: cn("relative inline-flex h-[calc(100%-2px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-lg border border-transparent px-3 py-1 text-sm font-medium whitespace-nowrap text-neutral-foreground-strong transition-all duration-200 group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 dark:text-neutral-foreground-subtle group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "not-data-active:hover:bg-neutral-background-strong", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-neutral-background-subtle data-active:text-neutral-foreground-strong dark:data-active:border-input dark:data-active:text-neutral-foreground-strong", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className), ...props }));
|
|
25
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../../src/components/ui/tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../../src/components/ui/tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAExE,SAAS,IAAI,CAAC,EACZ,SAAS,EACT,WAAW,GAAG,YAAY,EAC1B,GAAG,KAAK,EACwC;IAChD,OAAO,CACL,KAAC,aA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AG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,GACrC,CACH,IACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG,OAAO,CAAgC,YAAY,CAAC,CAAC;AAEtE,SAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EAC2C;IACnD,OAAO,CACL,KAAC,aAAa,CAAC,OAAO,iBACV,cAAc,EACxB,SAAS,EAAE,EAAE,CACX,ouBAAouB,EACpuB,oDAAoD,EACpD,+PAA+P,EAC/P,mKAAmK,EACnK,sYAAsY,EACtY,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EAC2C;IACnD,OAAO,CACL,KAAC,aAAa,CAAC,OAAO,iBACV,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,KACnD,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -2,6 +2,11 @@ import * as React from "react";
|
|
|
2
2
|
type ToastPosition = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
|
|
3
3
|
type ToasterProps = {
|
|
4
4
|
position?: ToastPosition;
|
|
5
|
+
/**
|
|
6
|
+
* Accessible name for every toast's close button. Sourced from the i18n
|
|
7
|
+
* dictionary at key `"toast.dismiss"` when omitted.
|
|
8
|
+
*/
|
|
9
|
+
dismissLabel?: string;
|
|
5
10
|
};
|
|
6
11
|
type ToastAction = {
|
|
7
12
|
label: string;
|
|
@@ -35,12 +40,13 @@ type ToastFn = {
|
|
|
35
40
|
* wrapper's public API, so no `withRef()` wrapping is needed (AGENTS.md Rule #4 applies
|
|
36
41
|
* only to components that forward a ref).
|
|
37
42
|
*/
|
|
38
|
-
declare function Toaster({ position }: ToasterProps): React.JSX.Element;
|
|
43
|
+
declare function Toaster({ position, dismissLabel }: ToasterProps): React.JSX.Element;
|
|
39
44
|
/**
|
|
40
45
|
* The callable used everywhere else — never sonner's own `toast` re-exported directly.
|
|
41
|
-
* `options.duration` resolution uses `??`, not `||`: sonner
|
|
42
|
-
* `duration: 0` as falsy and silently falls back to its own ~4s default
|
|
43
|
-
* source) — `??` is required so an explicit `0` isn't confused with "not
|
|
46
|
+
* `options.duration` resolution (inside `toExternalToast`) uses `??`, not `||`: sonner
|
|
47
|
+
* treats a literal `duration: 0` as falsy and silently falls back to its own ~4s default
|
|
48
|
+
* (verified in source) — `??` is required so an explicit `0` isn't confused with "not
|
|
49
|
+
* passed".
|
|
44
50
|
*/
|
|
45
51
|
declare const toast: ToastFn;
|
|
46
52
|
export { Toaster, toast };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,KAAK,aAAa,GACd,UAAU,GACV,WAAW,GACX,YAAY,GACZ,aAAa,GACb,cAAc,GACd,eAAe,CAAC;AAEpB,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAE1D,KAAK,YAAY,GAAG;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,gEAAgE;IAChE,QAAQ,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EAAE,YAAY,qBAiBtE;AAyID;;;;;;GAMG;AACH,QAAA,MAAM,KAAK,EAAE,OA4GZ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC1B,YAAY,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Toaster as SonnerToaster, toast as sonnerToast, } from "sonner";
|
|
4
4
|
import { CheckCircle2, CircleAlert, Info, Loader2, TriangleAlert, X, } from "../../icons/lucide.js";
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { useC4Dictionary } from "../../lib/i18n/context.js";
|
|
7
|
+
import { useIsTruncated } from "../../hooks/use-is-truncated.js";
|
|
6
8
|
import { buttonVariants } from "./button.js";
|
|
9
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
|
|
7
10
|
import { typographyVariants } from "./typography.js";
|
|
8
11
|
// ── Styling contract — neutral floating surface, icon-only kind color ──────
|
|
9
12
|
//
|
|
@@ -100,18 +103,22 @@ const TOAST_CLASSNAMES = {
|
|
|
100
103
|
// sibling, not the `~` general-sibling used for the icon/close fix above) matches
|
|
101
104
|
// the actual DOM exactly: title and description are always immediate siblings
|
|
102
105
|
// inside `[data-content]`, so this only reserves the gap when one is actually there.
|
|
103
|
-
// `line-clamp-2`
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
|
|
106
|
+
// `line-clamp-2` used to live here, on sonner's own `[data-title]` wrapper div —
|
|
107
|
+
// moved onto `ToastTitleText`'s inner span instead (see below), which is what
|
|
108
|
+
// `useIsTruncated` needs a ref on to detect the clamp (scrollHeight > clientHeight)
|
|
109
|
+
// and reveal the full value via Tooltip on hover/focus (fixes #659 for the
|
|
110
|
+
// multi-line case; this div-level class list only carries type + spacing now).
|
|
111
|
+
// Consumers should still keep titles short (toast.specs.ts's antiPatterns) — the
|
|
112
|
+
// clamp+reveal is a backstop for when they don't, not a substitute for writing
|
|
113
|
+
// toast copy that fits a transient, glanceable notification.
|
|
114
|
+
title: cn(typographyVariants({ variant: "label-md-strong" }), "[&:has(+[data-description])]:mb-1"),
|
|
109
115
|
// `text-neutral-foreground-subtle` decouples description color from the (now neutral)
|
|
110
116
|
// container/title color — matches sonner's own native description color, a muted
|
|
111
117
|
// gray distinct from the title, not inherited from the card.
|
|
112
|
-
// `line-clamp-4` — same rationale as the title's
|
|
113
|
-
//
|
|
114
|
-
|
|
118
|
+
// `line-clamp-4` — same rationale as the title's `line-clamp-2` above (moved onto
|
|
119
|
+
// `ToastDescriptionText`'s inner span for the same reason) — with more room since
|
|
120
|
+
// descriptions are expected to carry more detail.
|
|
121
|
+
description: cn(typographyVariants({ variant: "label-md" }), "text-neutral-foreground-subtle"),
|
|
115
122
|
// `ml-auto` keeps the button against the trailing edge whether it shares the first
|
|
116
123
|
// line or has wrapped onto its own. It keeps `buttonVariants`' base `shrink-0` and
|
|
117
124
|
// `whitespace-nowrap`: with wrapping available, the label stays on one line at its
|
|
@@ -158,6 +165,38 @@ const TOAST_ICONS = {
|
|
|
158
165
|
// (Loader2 + animate-spin), colored with a semantic token instead.
|
|
159
166
|
loading: (_jsx(Loader2, { className: "h-4 w-4 animate-spin text-neutral-foreground-subtle", "aria-hidden": "true" })),
|
|
160
167
|
};
|
|
168
|
+
function ToastTitleText({ children, onRevealOpen, onRevealClose, }) {
|
|
169
|
+
const { ref, isTruncated, measure } = useIsTruncated();
|
|
170
|
+
React.useLayoutEffect(() => {
|
|
171
|
+
measure();
|
|
172
|
+
});
|
|
173
|
+
const span = (_jsx("span", { ref: ref, tabIndex: 0, onPointerEnter: measure, onFocus: () => {
|
|
174
|
+
measure();
|
|
175
|
+
if (isTruncated)
|
|
176
|
+
onRevealOpen?.();
|
|
177
|
+
}, onBlur: () => {
|
|
178
|
+
if (isTruncated)
|
|
179
|
+
onRevealClose?.();
|
|
180
|
+
}, className: "line-clamp-2 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", children: children }));
|
|
181
|
+
// Mounted only when clipped — see nav-breadcrumb.tsx for why an
|
|
182
|
+
// unconditionally-mounted Tooltip is never the right default.
|
|
183
|
+
return isTruncated ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: span }), _jsx(TooltipContent, { children: children })] })) : (span);
|
|
184
|
+
}
|
|
185
|
+
function ToastDescriptionText({ children, onRevealOpen, onRevealClose, }) {
|
|
186
|
+
const { ref, isTruncated, measure } = useIsTruncated();
|
|
187
|
+
React.useLayoutEffect(() => {
|
|
188
|
+
measure();
|
|
189
|
+
});
|
|
190
|
+
const span = (_jsx("span", { ref: ref, tabIndex: 0, onPointerEnter: measure, onFocus: () => {
|
|
191
|
+
measure();
|
|
192
|
+
if (isTruncated)
|
|
193
|
+
onRevealOpen?.();
|
|
194
|
+
}, onBlur: () => {
|
|
195
|
+
if (isTruncated)
|
|
196
|
+
onRevealClose?.();
|
|
197
|
+
}, className: "line-clamp-4 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", children: children }));
|
|
198
|
+
return isTruncated ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: span }), _jsx(TooltipContent, { children: children })] })) : (span);
|
|
199
|
+
}
|
|
161
200
|
// ── Toaster ──────────────────────────────────────────────────────────────────
|
|
162
201
|
/**
|
|
163
202
|
* The one-time host, mounted once at the application's true root (inside
|
|
@@ -167,20 +206,63 @@ const TOAST_ICONS = {
|
|
|
167
206
|
* wrapper's public API, so no `withRef()` wrapping is needed (AGENTS.md Rule #4 applies
|
|
168
207
|
* only to components that forward a ref).
|
|
169
208
|
*/
|
|
170
|
-
function Toaster({ position = "top-right" }) {
|
|
209
|
+
function Toaster({ position = "top-right", dismissLabel }) {
|
|
210
|
+
const { t } = useC4Dictionary();
|
|
171
211
|
return (_jsx(SonnerToaster, { position: position, richColors: false, closeButton: true, icons: TOAST_ICONS, toastOptions: {
|
|
172
212
|
unstyled: true,
|
|
173
213
|
classNames: TOAST_CLASSNAMES,
|
|
174
214
|
// Overrides sonner's native "Close toast" default — matches Alert's own
|
|
175
215
|
// dismiss button wording (confirmed by design review, see toast.specs.ts).
|
|
176
|
-
closeButtonAriaLabel: "
|
|
216
|
+
closeButtonAriaLabel: dismissLabel ?? t("toast.dismiss"),
|
|
177
217
|
} }));
|
|
178
218
|
}
|
|
179
219
|
// ── toast ────────────────────────────────────────────────────────────────────
|
|
180
|
-
|
|
220
|
+
// ── Focus-driven dismiss pause ──────────────────────────────────────────────
|
|
221
|
+
//
|
|
222
|
+
// Sonner pauses each toast's own auto-dismiss timer while the pointer is over its
|
|
223
|
+
// stack, or while the stack has been expanded via its Alt+T hotkey (`expanded`/
|
|
224
|
+
// `interacting`, set only by `onMouseEnter`/`onMouseMove`/`onPointerDown`/`onPointerUp`
|
|
225
|
+
// on its own <ol> — verified in sonner@2.0.8's index.mjs, ~line 1190-1204) — but never
|
|
226
|
+
// on focus. The <ol>'s own `onFocus` handler (~line 1182) only tracks focus-restoration
|
|
227
|
+
// bookkeeping, never sets `expanded`/`interacting`. So a keyboard user who Tabs onto a
|
|
228
|
+
// clamped title/description, opens its Tooltip reveal via focus, and starts reading,
|
|
229
|
+
// gets no pause at all: the toast can vanish mid-read for a default-duration (5000ms)
|
|
230
|
+
// toast — a WCAG 1.4.13 (Content on Hover or Focus) violation for exactly the users the
|
|
231
|
+
// reveal above was built to help.
|
|
232
|
+
//
|
|
233
|
+
// `makeToast` below pauses each toast's OWN dismissal (via sonner's update-by-id path —
|
|
234
|
+
// re-calling the same creating method with a matching `id` merges into the existing
|
|
235
|
+
// toast rather than creating a new one) while its title/description has focus, and
|
|
236
|
+
// resumes it on blur. Resuming always restarts the FULL original duration rather than
|
|
237
|
+
// tracking exact remaining time — the simplest defensible choice, and also what sonner
|
|
238
|
+
// itself does to any duration change: its `remainingTime.current = duration` effect
|
|
239
|
+
// resets unconditionally whenever `duration` changes, so a full restart is not a special
|
|
240
|
+
// case bolted on top, it's what an update naturally produces.
|
|
241
|
+
//
|
|
242
|
+
// The `id`, and the exact sonner method that created a toast, are threaded through
|
|
243
|
+
// deliberately: sonner's own update-by-id merge sets `title` unconditionally from the
|
|
244
|
+
// `message` argument (so it must be re-passed identically on every update, not omitted)
|
|
245
|
+
// and sets `type` unconditionally from whichever public method handled the call (the
|
|
246
|
+
// bare call always resets it to `undefined`) — so pausing/resuming a `success` toast
|
|
247
|
+
// through the bare method would silently strip its icon back to neutral. Re-dispatching
|
|
248
|
+
// through the exact same method avoids that. Passing the SAME already-constructed title
|
|
249
|
+
// element back on every update (not a freshly created one) also matters: React bails out
|
|
250
|
+
// of re-rendering a child subtree when the element reference itself is unchanged (same
|
|
251
|
+
// type, same props object), which avoids remounting `ToastTitleText` — and thus avoids
|
|
252
|
+
// losing focus, or worse, unmounting the very element mid-focus-event and retriggering
|
|
253
|
+
// another focus/blur pair — verified live via Storybook + Playwright, see the dev
|
|
254
|
+
// report / toast.specs.ts.
|
|
255
|
+
let toastIdCounter = 0;
|
|
256
|
+
function nextToastId() {
|
|
257
|
+
return `c4-toast-${++toastIdCounter}`;
|
|
258
|
+
}
|
|
259
|
+
function toExternalToast(options, defaultDuration, reveal) {
|
|
181
260
|
const action = options?.action;
|
|
182
261
|
return {
|
|
183
|
-
|
|
262
|
+
// Wrapped only when present — sonner conditionally renders `[data-description]`
|
|
263
|
+
// at all based on truthiness, and `:has([data-description])` selectors elsewhere
|
|
264
|
+
// in TOAST_CLASSNAMES key off that same presence (see the Styling contract).
|
|
265
|
+
description: options?.description ? (_jsx(ToastDescriptionText, { onRevealOpen: reveal.onRevealOpen, onRevealClose: reveal.onRevealClose, children: options.description })) : undefined,
|
|
184
266
|
duration: options?.duration ?? defaultDuration,
|
|
185
267
|
action: action
|
|
186
268
|
? {
|
|
@@ -200,27 +282,133 @@ function toExternalToast(options, defaultDuration) {
|
|
|
200
282
|
: undefined,
|
|
201
283
|
};
|
|
202
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Builds and dispatches one toast, wiring its title/description with the
|
|
287
|
+
* focus-driven pause/resume above. `kind` must be the exact sonner method used to
|
|
288
|
+
* create it (`sonnerToast` itself for the untyped/default kind, or one of
|
|
289
|
+
* `.success`/`.info`/`.warning`/`.error`) — see the "Focus-driven dismiss pause"
|
|
290
|
+
* note for why re-dispatching through any other method would corrupt the toast's
|
|
291
|
+
* type/icon.
|
|
292
|
+
*/
|
|
293
|
+
function makeToast(kind, message, options, defaultDuration) {
|
|
294
|
+
const id = nextToastId();
|
|
295
|
+
const duration = options?.duration ?? defaultDuration;
|
|
296
|
+
// `pause`/`resume` reference `titleNode` before its own declaration below —
|
|
297
|
+
// safe because both only ever run later, from a focus/blur event, by which
|
|
298
|
+
// point `titleNode`'s initializer has long since run.
|
|
299
|
+
const pause = () => {
|
|
300
|
+
if (duration === Infinity)
|
|
301
|
+
return; // no auto-dismiss timer exists to pause
|
|
302
|
+
// Same guard as `resume` below: a focus event landing in the same animation
|
|
303
|
+
// frame as a `toast.dismiss(id)` call must not resurrect the toast the
|
|
304
|
+
// consumer just closed — sonner's `create()` un-dismisses a matching id
|
|
305
|
+
// otherwise (index.mjs ~181-194).
|
|
306
|
+
if (!sonnerToast.getToasts().some((t) => t.id === id))
|
|
307
|
+
return;
|
|
308
|
+
kind(titleNode, { id, duration: Infinity });
|
|
309
|
+
};
|
|
310
|
+
const resume = () => {
|
|
311
|
+
if (duration === Infinity)
|
|
312
|
+
return;
|
|
313
|
+
// A toast the user already dismissed (or that auto-closed) must not be
|
|
314
|
+
// resurrected by a stray blur — sonner's `create()` un-dismisses a matching
|
|
315
|
+
// id otherwise (index.mjs ~181-194).
|
|
316
|
+
if (!sonnerToast.getToasts().some((t) => t.id === id))
|
|
317
|
+
return;
|
|
318
|
+
kind(titleNode, { id, duration });
|
|
319
|
+
};
|
|
320
|
+
const titleNode = (_jsx(ToastTitleText, { onRevealOpen: pause, onRevealClose: resume, children: message }));
|
|
321
|
+
return kind(titleNode, {
|
|
322
|
+
...toExternalToast(options, defaultDuration, {
|
|
323
|
+
onRevealOpen: pause,
|
|
324
|
+
onRevealClose: resume,
|
|
325
|
+
}),
|
|
326
|
+
id,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
203
329
|
/**
|
|
204
330
|
* The callable used everywhere else — never sonner's own `toast` re-exported directly.
|
|
205
|
-
* `options.duration` resolution uses `??`, not `||`: sonner
|
|
206
|
-
* `duration: 0` as falsy and silently falls back to its own ~4s default
|
|
207
|
-
* source) — `??` is required so an explicit `0` isn't confused with "not
|
|
331
|
+
* `options.duration` resolution (inside `toExternalToast`) uses `??`, not `||`: sonner
|
|
332
|
+
* treats a literal `duration: 0` as falsy and silently falls back to its own ~4s default
|
|
333
|
+
* (verified in source) — `??` is required so an explicit `0` isn't confused with "not
|
|
334
|
+
* passed".
|
|
208
335
|
*/
|
|
209
|
-
const toast = Object.assign((message, options) => sonnerToast
|
|
210
|
-
success: (message, options) => sonnerToast.success
|
|
211
|
-
info: (message, options) => sonnerToast.info
|
|
212
|
-
warning: (message, options) => sonnerToast.warning
|
|
336
|
+
const toast = Object.assign((message, options) => makeToast(sonnerToast, message, options, 5000), {
|
|
337
|
+
success: (message, options) => makeToast(sonnerToast.success, message, options, 5000),
|
|
338
|
+
info: (message, options) => makeToast(sonnerToast.info, message, options, 5000),
|
|
339
|
+
warning: (message, options) => makeToast(sonnerToast.warning, message, options, 5000),
|
|
213
340
|
error: (message, options) =>
|
|
214
341
|
// Default Infinity — errors persist until manually dismissed (toast.specs.ts).
|
|
215
|
-
sonnerToast.error
|
|
342
|
+
makeToast(sonnerToast.error, message, options, Infinity),
|
|
216
343
|
promise: (promise, options) => {
|
|
217
344
|
// Discard sonner's own return value (string|number & { unwrap }) — the spec's
|
|
218
345
|
// contract is `=> void`; the loading → success/error swap is automatic and there
|
|
219
346
|
// is no toast id to combine with toast.dismiss(id).
|
|
347
|
+
//
|
|
348
|
+
// loading/success/error are wrapped in `ToastTitleText` too — they render into
|
|
349
|
+
// the same `[data-title]` slot (styled by the same `classNames.title`, clamped
|
|
350
|
+
// the same way) as every other kind, so they get the same truncation reveal.
|
|
351
|
+
// `success`/`error` accept a plain value or a function of the resolved
|
|
352
|
+
// data/caught error (PromiseToastOptions<T>'s own shape) — resolve that first,
|
|
353
|
+
// then wrap the result; sonner is what actually calls this function with the
|
|
354
|
+
// real data/error at resolve/reject time.
|
|
355
|
+
//
|
|
356
|
+
// Pause/resume: the loading phase is `type: "loading"`, which sonner's own timer
|
|
357
|
+
// effect excludes from auto-dismissal entirely (no timer ever starts for it —
|
|
358
|
+
// index.mjs ~644) — nothing to pause there. Only the resolved *success* toast can
|
|
359
|
+
// auto-dismiss, so it alone is wired below, with its own explicit 5000ms duration
|
|
360
|
+
// (sonner's own internal default for a `.promise()` resolution is 4000ms, and
|
|
361
|
+
// unlike `toExternalToast`'s call sites, `resume` here has no other way to learn
|
|
362
|
+
// what to restore). The resolved *error* toast persists until manually dismissed —
|
|
363
|
+
// `duration: Infinity` is set EXPLICITLY below, matching `toast.error`'s own
|
|
364
|
+
// default: sonner's update merge only touches keys present in the returned
|
|
365
|
+
// object, so omitting `duration` here does not inherit Infinity from anywhere,
|
|
366
|
+
// it falls back to sonner's own internal ~4000ms default instead (this was a
|
|
367
|
+
// real, Validator-caught bug — the error toast was silently auto-dismissing with
|
|
368
|
+
// no pause protection, the exact gap this whole feature exists to close). With
|
|
369
|
+
// `duration: Infinity` actually set, no timer ever starts, so no pause/resume is
|
|
370
|
+
// wired for it either.
|
|
371
|
+
const id = nextToastId();
|
|
372
|
+
const successDuration = 5000;
|
|
373
|
+
let successTitleNode;
|
|
374
|
+
const pauseSuccess = () => {
|
|
375
|
+
// Same guard as `resumeSuccess` below — see `makeToast`'s `pause` for why.
|
|
376
|
+
if (!sonnerToast.getToasts().some((t) => t.id === id))
|
|
377
|
+
return;
|
|
378
|
+
sonnerToast.success(successTitleNode, { id, duration: Infinity });
|
|
379
|
+
};
|
|
380
|
+
const resumeSuccess = () => {
|
|
381
|
+
if (!sonnerToast.getToasts().some((t) => t.id === id))
|
|
382
|
+
return;
|
|
383
|
+
sonnerToast.success(successTitleNode, {
|
|
384
|
+
id,
|
|
385
|
+
duration: successDuration,
|
|
386
|
+
});
|
|
387
|
+
};
|
|
220
388
|
sonnerToast.promise(promise, {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
389
|
+
id,
|
|
390
|
+
loading: _jsx(ToastTitleText, { children: options.loading }),
|
|
391
|
+
success: (data) => {
|
|
392
|
+
const content = typeof options.success === "function"
|
|
393
|
+
? options.success(data)
|
|
394
|
+
: options.success;
|
|
395
|
+
successTitleNode = (_jsx(ToastTitleText, { onRevealOpen: pauseSuccess, onRevealClose: resumeSuccess, children: content }));
|
|
396
|
+
return { message: successTitleNode, duration: successDuration };
|
|
397
|
+
},
|
|
398
|
+
error: (error) => {
|
|
399
|
+
const content = typeof options.error === "function"
|
|
400
|
+
? options.error(error)
|
|
401
|
+
: options.error;
|
|
402
|
+
// `duration: Infinity` must be explicit here — sonner's own merge only
|
|
403
|
+
// touches keys present in this return value, and with none supplied it
|
|
404
|
+
// falls back to its own internal ~4000ms default, not our Infinity intent.
|
|
405
|
+
// (Found by the Validator: this toast was silently auto-dismissing behind
|
|
406
|
+
// an unpaused timer, contradicting this file's own comment above.)
|
|
407
|
+
return {
|
|
408
|
+
message: _jsx(ToastTitleText, { children: content }),
|
|
409
|
+
duration: Infinity,
|
|
410
|
+
};
|
|
411
|
+
},
|
|
224
412
|
});
|
|
225
413
|
},
|
|
226
414
|
dismiss: (id) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../src/components/ui/toast.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from "react";
|
|
|
2
2
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
4
|
import { toggleVariants } from "./toggle.js";
|
|
5
|
-
declare
|
|
5
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
6
|
+
variant?: "default" | "outline" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
6
12
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
7
13
|
export { ToggleGroup, ToggleGroupItem };
|
|
8
14
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAiF1C,QAAA,MAAM,WAAW;;;;;;+HAA6D,CAAC;AAE/E,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,GACvD,YAAY,CAAC,OAAO,cAAc,CAAC,qBA6BpC;AAED,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|