@camunda/design-system 0.1.1 → 0.3.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/.storybook/CamundaLogo.d.ts +13 -0
- package/dist/.storybook/CamundaLogo.d.ts.map +1 -0
- package/dist/.storybook/CamundaLogo.js +14 -0
- package/dist/.storybook/CamundaLogo.js.map +1 -0
- package/dist/carbon-compat/breadcrumb-skeleton.js +1 -1
- package/dist/carbon-compat/breadcrumb.js +2 -2
- package/dist/carbon-compat/button.js +2 -2
- package/dist/carbon-compat/c3-cluster-tag.js +2 -2
- package/dist/carbon-compat/c3-data-table.js +9 -9
- package/dist/carbon-compat/c3-responsive-stack.js +1 -1
- package/dist/carbon-compat/checkbox-skeleton.js +1 -1
- package/dist/carbon-compat/checkbox.js +2 -2
- package/dist/carbon-compat/code-snippet.js +1 -1
- package/dist/carbon-compat/combo-box.js +3 -3
- package/dist/carbon-compat/content-switcher.js +2 -2
- package/dist/carbon-compat/data-table-skeleton.js +1 -1
- package/dist/carbon-compat/data-table.d.ts +1 -1
- package/dist/carbon-compat/data-table.js +2 -2
- package/dist/carbon-compat/dropdown.js +2 -2
- package/dist/carbon-compat/filterable-multi-select.d.ts +39 -0
- package/dist/carbon-compat/filterable-multi-select.d.ts.map +1 -0
- package/dist/carbon-compat/filterable-multi-select.js +54 -0
- package/dist/carbon-compat/filterable-multi-select.js.map +1 -0
- package/dist/carbon-compat/form.d.ts +5 -0
- package/dist/carbon-compat/form.d.ts.map +1 -0
- package/dist/carbon-compat/form.js +6 -0
- package/dist/carbon-compat/form.js.map +1 -0
- package/dist/carbon-compat/icon-button.js +3 -3
- package/dist/carbon-compat/index.d.ts +67 -64
- package/dist/carbon-compat/index.d.ts.map +1 -1
- package/dist/carbon-compat/index.js +67 -64
- package/dist/carbon-compat/index.js.map +1 -1
- package/dist/carbon-compat/link.js +1 -1
- package/dist/carbon-compat/loading.js +1 -1
- package/dist/carbon-compat/menu-button.js +3 -3
- package/dist/carbon-compat/modal.js +4 -4
- package/dist/carbon-compat/multi-select.d.ts +37 -2
- package/dist/carbon-compat/multi-select.d.ts.map +1 -1
- package/dist/carbon-compat/multi-select.js +52 -2
- package/dist/carbon-compat/multi-select.js.map +1 -1
- package/dist/carbon-compat/overflow-menu.js +3 -3
- package/dist/carbon-compat/popover.js +2 -2
- package/dist/carbon-compat/progress-bar.js +2 -2
- package/dist/carbon-compat/radio-button.js +2 -2
- package/dist/carbon-compat/search.js +2 -2
- package/dist/carbon-compat/select-skeleton.js +1 -1
- package/dist/carbon-compat/select.d.ts +3 -3
- package/dist/carbon-compat/select.d.ts.map +1 -1
- package/dist/carbon-compat/select.js +47 -9
- package/dist/carbon-compat/select.js.map +1 -1
- package/dist/carbon-compat/skeleton-text.js +1 -1
- package/dist/carbon-compat/stack.js +1 -1
- package/dist/carbon-compat/structured-list-skeleton.js +1 -1
- package/dist/carbon-compat/switch.js +2 -2
- package/dist/carbon-compat/table-batch-actions.js +2 -2
- package/dist/carbon-compat/table-container.js +1 -1
- package/dist/carbon-compat/table-expand.js +2 -2
- package/dist/carbon-compat/table-select.js +2 -2
- package/dist/carbon-compat/table-toolbar.js +3 -3
- package/dist/carbon-compat/table.js +2 -2
- package/dist/carbon-compat/tabs.js +2 -2
- package/dist/carbon-compat/tag.js +2 -2
- package/dist/carbon-compat/text-area.js +2 -2
- package/dist/carbon-compat/text-input.js +2 -2
- package/dist/carbon-compat/tile.js +2 -2
- package/dist/carbon-compat/time-picker.d.ts +8 -0
- package/dist/carbon-compat/time-picker.d.ts.map +1 -0
- package/dist/carbon-compat/time-picker.js +24 -0
- package/dist/carbon-compat/time-picker.js.map +1 -0
- package/dist/carbon-compat/toggle.js +2 -2
- package/dist/carbon-compat/tooltip.js +2 -2
- package/dist/carbon-compat/unordered-list.js +1 -1
- package/dist/src/components/ui/alert-dialog.js +3 -3
- package/dist/src/components/ui/app-header.js +3 -3
- package/dist/src/components/ui/app-sidebar.js +5 -5
- package/dist/src/components/ui/badge.js +1 -1
- package/dist/src/components/ui/breadcrumb.js +1 -1
- package/dist/src/components/ui/button.js +1 -1
- package/dist/src/components/ui/card.js +1 -1
- package/dist/src/components/ui/checkbox.d.ts.map +1 -1
- package/dist/src/components/ui/checkbox.js +2 -2
- package/dist/src/components/ui/checkbox.js.map +1 -1
- package/dist/src/components/ui/command.js +1 -1
- package/dist/src/components/ui/data-table.d.ts.map +1 -1
- package/dist/src/components/ui/data-table.js +7 -7
- package/dist/src/components/ui/data-table.js.map +1 -1
- package/dist/src/components/ui/dialog.js +3 -3
- package/dist/src/components/ui/dropdown.js +2 -2
- package/dist/src/components/ui/file-uploader.d.ts +39 -0
- package/dist/src/components/ui/file-uploader.d.ts.map +1 -0
- package/dist/src/components/ui/file-uploader.js +198 -0
- package/dist/src/components/ui/file-uploader.js.map +1 -0
- package/dist/src/components/ui/input.js +1 -1
- package/dist/src/components/ui/label.js +1 -1
- package/dist/src/components/ui/multi-select.d.ts +34 -0
- package/dist/src/components/ui/multi-select.d.ts.map +1 -0
- package/dist/src/components/ui/multi-select.js +88 -0
- package/dist/src/components/ui/multi-select.js.map +1 -0
- package/dist/src/components/ui/nav-breadcrumb.js +3 -3
- package/dist/src/components/ui/popover.js +2 -2
- package/dist/src/components/ui/progress.js +1 -1
- package/dist/src/components/ui/radio-group.js +1 -1
- package/dist/src/components/ui/scroll-area.js +1 -1
- package/dist/src/components/ui/select.js +2 -2
- package/dist/src/components/ui/separator.js +1 -1
- package/dist/src/components/ui/sheet.js +3 -3
- package/dist/src/components/ui/sidebar-provider.d.ts +1 -1
- package/dist/src/components/ui/sidebar-provider.js +2 -2
- package/dist/src/components/ui/stepper.js +1 -1
- package/dist/src/components/ui/switch.js +1 -1
- package/dist/src/components/ui/table.d.ts +1 -1
- package/dist/src/components/ui/table.d.ts.map +1 -1
- package/dist/src/components/ui/table.js +4 -4
- package/dist/src/components/ui/table.js.map +1 -1
- package/dist/src/components/ui/tabs.js +1 -1
- package/dist/src/components/ui/textarea.js +1 -1
- package/dist/src/components/ui/toggle-group.d.ts +1 -1
- package/dist/src/components/ui/toggle-group.js +2 -2
- package/dist/src/components/ui/toggle.js +1 -1
- package/dist/src/components/ui/tooltip.js +2 -2
- package/dist/src/components/ui/tree-view.js +2 -2
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.d.ts +2 -0
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.d.ts.map +1 -0
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.js +18 -0
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.js.map +1 -0
- package/dist/src/examples/cost-dashboard/CostDashboardPage.d.ts +2 -0
- package/dist/src/examples/cost-dashboard/CostDashboardPage.d.ts.map +1 -0
- package/dist/src/examples/cost-dashboard/CostDashboardPage.js +53 -0
- package/dist/src/examples/cost-dashboard/CostDashboardPage.js.map +1 -0
- package/dist/src/examples/cost-dashboard/TrendChart.d.ts +2 -0
- package/dist/src/examples/cost-dashboard/TrendChart.d.ts.map +1 -0
- package/dist/src/examples/cost-dashboard/TrendChart.js +21 -0
- package/dist/src/examples/cost-dashboard/TrendChart.js.map +1 -0
- package/dist/src/examples/cost-dashboard/mock-data.d.ts +34 -0
- package/dist/src/examples/cost-dashboard/mock-data.d.ts.map +1 -0
- package/dist/src/examples/cost-dashboard/mock-data.js +120 -0
- package/dist/src/examples/cost-dashboard/mock-data.js.map +1 -0
- package/dist/src/examples/cost-dashboard/useChartColors.d.ts +10 -0
- package/dist/src/examples/cost-dashboard/useChartColors.d.ts.map +1 -0
- package/dist/src/examples/cost-dashboard/useChartColors.js +20 -0
- package/dist/src/examples/cost-dashboard/useChartColors.js.map +1 -0
- package/dist/src/examples/project-detail/ProjectDetailPage.d.ts +2 -0
- package/dist/src/examples/project-detail/ProjectDetailPage.d.ts.map +1 -0
- package/dist/src/examples/project-detail/ProjectDetailPage.js +68 -0
- package/dist/src/examples/project-detail/ProjectDetailPage.js.map +1 -0
- package/dist/src/examples/project-detail/mock-data.d.ts +38 -0
- package/dist/src/examples/project-detail/mock-data.d.ts.map +1 -0
- package/dist/src/examples/project-detail/mock-data.js +103 -0
- package/dist/src/examples/project-detail/mock-data.js.map +1 -0
- package/dist/src/examples/projects-list/ProjectsListPage.d.ts +4 -0
- package/dist/src/examples/projects-list/ProjectsListPage.d.ts.map +1 -0
- package/dist/src/examples/projects-list/ProjectsListPage.js +45 -0
- package/dist/src/examples/projects-list/ProjectsListPage.js.map +1 -0
- package/dist/src/examples/projects-list/mock-data.d.ts +10 -0
- package/dist/src/examples/projects-list/mock-data.d.ts.map +1 -0
- package/dist/src/examples/projects-list/mock-data.js +83 -0
- package/dist/src/examples/projects-list/mock-data.js.map +1 -0
- package/dist/src/examples/shared/AppShell.d.ts +13 -0
- package/dist/src/examples/shared/AppShell.d.ts.map +1 -0
- package/dist/src/examples/shared/AppShell.js +13 -0
- package/dist/src/examples/shared/AppShell.js.map +1 -0
- package/dist/src/examples/shared/console-nav.d.ts +5 -0
- package/dist/src/examples/shared/console-nav.d.ts.map +1 -0
- package/dist/src/examples/shared/console-nav.js +37 -0
- package/dist/src/examples/shared/console-nav.js.map +1 -0
- package/dist/src/examples/shared/cost-nav.d.ts +5 -0
- package/dist/src/examples/shared/cost-nav.d.ts.map +1 -0
- package/dist/src/examples/shared/cost-nav.js +47 -0
- package/dist/src/examples/shared/cost-nav.js.map +1 -0
- package/dist/src/hooks/use-is-mobile.js +1 -1
- package/dist/src/index.d.ts +41 -39
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +39 -37
- package/dist/src/index.js.map +1 -1
- package/dist/src/specs/schema.d.ts +4 -0
- package/dist/src/specs/schema.d.ts.map +1 -1
- package/dist/styles.css +233 -0
- package/package.json +2 -1
|
@@ -7,73 +7,76 @@
|
|
|
7
7
|
// we keep one umbrella adapter path rather than two ("carbon-compat"
|
|
8
8
|
// is misnomer-but-pragmatic; revisit if the team grows).
|
|
9
9
|
// ────────────────────────────────────────────────────────────────────────
|
|
10
|
-
export * from "./breadcrumb";
|
|
11
|
-
export * from "./breadcrumb-skeleton";
|
|
12
|
-
export * from "./button";
|
|
13
|
-
export * from "./c3-cluster-tag";
|
|
14
|
-
export * from "./c3-data-table";
|
|
15
|
-
export * from "./c3-responsive-stack";
|
|
16
|
-
export * from "./checkbox";
|
|
17
|
-
export * from "./checkbox-skeleton";
|
|
18
|
-
export * from "./code-snippet";
|
|
19
|
-
export * from "./combo-box";
|
|
20
|
-
export * from "./content-switcher";
|
|
21
|
-
export * from "./data-table-skeleton";
|
|
22
|
-
export * from "./dropdown";
|
|
23
|
-
export * from "./icon-button";
|
|
24
|
-
export * from "./link";
|
|
25
|
-
export * from "./loading";
|
|
26
|
-
export * from "./menu-button";
|
|
27
|
-
export * from "./modal";
|
|
28
|
-
export * from "./overflow-menu";
|
|
29
|
-
export * from "./popover";
|
|
30
|
-
export * from "./progress-bar";
|
|
31
|
-
export * from "./radio-button";
|
|
32
|
-
export * from "./search";
|
|
33
|
-
export * from "./select";
|
|
34
|
-
export * from "./select-skeleton";
|
|
35
|
-
export * from "./skeleton-text";
|
|
36
|
-
export * from "./stack";
|
|
37
|
-
export * from "./structured-list-skeleton";
|
|
38
|
-
export * from "./switch";
|
|
39
|
-
export * from "./table";
|
|
40
|
-
export * from "./tabs";
|
|
41
|
-
export * from "./tag";
|
|
42
|
-
export * from "./text-area";
|
|
43
|
-
export * from "./text-input";
|
|
44
|
-
export * from "./tile";
|
|
45
|
-
export * from "./
|
|
46
|
-
export * from "./
|
|
47
|
-
export * from "./
|
|
10
|
+
export * from "./breadcrumb.js";
|
|
11
|
+
export * from "./breadcrumb-skeleton.js";
|
|
12
|
+
export * from "./button.js";
|
|
13
|
+
export * from "./c3-cluster-tag.js";
|
|
14
|
+
export * from "./c3-data-table.js";
|
|
15
|
+
export * from "./c3-responsive-stack.js";
|
|
16
|
+
export * from "./checkbox.js";
|
|
17
|
+
export * from "./checkbox-skeleton.js";
|
|
18
|
+
export * from "./code-snippet.js";
|
|
19
|
+
export * from "./combo-box.js";
|
|
20
|
+
export * from "./content-switcher.js";
|
|
21
|
+
export * from "./data-table-skeleton.js";
|
|
22
|
+
export * from "./dropdown.js";
|
|
23
|
+
export * from "./icon-button.js";
|
|
24
|
+
export * from "./link.js";
|
|
25
|
+
export * from "./loading.js";
|
|
26
|
+
export * from "./menu-button.js";
|
|
27
|
+
export * from "./modal.js";
|
|
28
|
+
export * from "./overflow-menu.js";
|
|
29
|
+
export * from "./popover.js";
|
|
30
|
+
export * from "./progress-bar.js";
|
|
31
|
+
export * from "./radio-button.js";
|
|
32
|
+
export * from "./search.js";
|
|
33
|
+
export * from "./select.js";
|
|
34
|
+
export * from "./select-skeleton.js";
|
|
35
|
+
export * from "./skeleton-text.js";
|
|
36
|
+
export * from "./stack.js";
|
|
37
|
+
export * from "./structured-list-skeleton.js";
|
|
38
|
+
export * from "./switch.js";
|
|
39
|
+
export * from "./table.js";
|
|
40
|
+
export * from "./tabs.js";
|
|
41
|
+
export * from "./tag.js";
|
|
42
|
+
export * from "./text-area.js";
|
|
43
|
+
export * from "./text-input.js";
|
|
44
|
+
export * from "./tile.js";
|
|
45
|
+
export * from "./time-picker.js";
|
|
46
|
+
export * from "./toggle.js";
|
|
47
|
+
export * from "./tooltip.js";
|
|
48
|
+
export * from "./unordered-list.js";
|
|
48
49
|
// ────────────────────────────────────────────────────────────────────────
|
|
49
50
|
// Shims — Carbon API re-exported unchanged. Promote to a real adapter
|
|
50
51
|
// when a shadcn target exists or when one of the trivial-HTML
|
|
51
52
|
// promotions is worth doing.
|
|
52
53
|
// ────────────────────────────────────────────────────────────────────────
|
|
53
|
-
export * from "./actionable-notification";
|
|
54
|
-
export * from "./callout";
|
|
55
|
-
export * from "./column";
|
|
56
|
-
export * from "./contained-list";
|
|
57
|
-
export * from "./data-table";
|
|
58
|
-
export * from "./date-picker";
|
|
59
|
-
export * from "./grid";
|
|
60
|
-
export * from "./header";
|
|
61
|
-
export * from "./heading";
|
|
62
|
-
export * from "./inline-loading";
|
|
63
|
-
export * from "./inline-notification";
|
|
64
|
-
export * from "./layer";
|
|
65
|
-
export * from "./multi-select";
|
|
66
|
-
export * from "./
|
|
67
|
-
export * from "./
|
|
68
|
-
export * from "./
|
|
69
|
-
export * from "./
|
|
70
|
-
export * from "./
|
|
71
|
-
export * from "./
|
|
72
|
-
export * from "./
|
|
73
|
-
export * from "./
|
|
74
|
-
export * from "./table-
|
|
75
|
-
export * from "./table-
|
|
76
|
-
export * from "./table-
|
|
77
|
-
export * from "./
|
|
78
|
-
export * from "./
|
|
54
|
+
export * from "./actionable-notification.js";
|
|
55
|
+
export * from "./callout.js";
|
|
56
|
+
export * from "./column.js";
|
|
57
|
+
export * from "./contained-list.js";
|
|
58
|
+
export * from "./data-table.js";
|
|
59
|
+
export * from "./date-picker.js";
|
|
60
|
+
export * from "./grid.js";
|
|
61
|
+
export * from "./header.js";
|
|
62
|
+
export * from "./heading.js";
|
|
63
|
+
export * from "./inline-loading.js";
|
|
64
|
+
export * from "./inline-notification.js";
|
|
65
|
+
export * from "./layer.js";
|
|
66
|
+
export * from "./filterable-multi-select.js";
|
|
67
|
+
export * from "./form.js";
|
|
68
|
+
export * from "./multi-select.js";
|
|
69
|
+
export * from "./ordered-list.js";
|
|
70
|
+
export * from "./pagination.js";
|
|
71
|
+
export * from "./password-input.js";
|
|
72
|
+
export * from "./section.js";
|
|
73
|
+
export * from "./skeleton-icon.js";
|
|
74
|
+
export * from "./structured-list.js";
|
|
75
|
+
export * from "./table-batch-actions.js";
|
|
76
|
+
export * from "./table-container.js";
|
|
77
|
+
export * from "./table-expand.js";
|
|
78
|
+
export * from "./table-select.js";
|
|
79
|
+
export * from "./table-toolbar.js";
|
|
80
|
+
export * from "./toast-notification.js";
|
|
81
|
+
export * from "./tree-view.js";
|
|
79
82
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../carbon-compat/index.ts"],"names":[],"mappings":"AAAA,2EA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AAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Loader2 } from "lucide-react";
|
|
3
|
-
import { cn, warnDroppedProps } from "../src/lib/utils";
|
|
3
|
+
import { cn, warnDroppedProps } from "../src/lib/utils.js";
|
|
4
4
|
/**
|
|
5
5
|
* Loading — Carbon-shaped adapter that renders a spinning indicator
|
|
6
6
|
* using lucide's `Loader2` icon + Tailwind animation.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ChevronDownIcon } from 'lucide-react';
|
|
4
|
-
import { Button } from '../src/components/ui/button';
|
|
5
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../src/components/ui/dropdown';
|
|
6
|
-
import { warnDroppedProps } from '../src/lib/utils';
|
|
4
|
+
import { Button } from '../src/components/ui/button.js';
|
|
5
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../src/components/ui/dropdown.js';
|
|
6
|
+
import { warnDroppedProps } from '../src/lib/utils.js';
|
|
7
7
|
const KIND_TO_VARIANT = {
|
|
8
8
|
primary: 'default',
|
|
9
9
|
tertiary: 'outline',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '../src/components/ui/alert-dialog';
|
|
4
|
-
import { Button, buttonVariants } from '../src/components/ui/button';
|
|
5
|
-
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from '../src/components/ui/dialog';
|
|
6
|
-
import { cn, warnDroppedProps } from '../src/lib/utils';
|
|
3
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '../src/components/ui/alert-dialog.js';
|
|
4
|
+
import { Button, buttonVariants } from '../src/components/ui/button.js';
|
|
5
|
+
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from '../src/components/ui/dialog.js';
|
|
6
|
+
import { cn, warnDroppedProps } from '../src/lib/utils.js';
|
|
7
7
|
function bridgeOnOpenChange(onClose) {
|
|
8
8
|
if (!onClose)
|
|
9
9
|
return undefined;
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type AnyItem = Record<string, unknown>;
|
|
3
|
+
export interface MultiSelectProps<ItemType = AnyItem> {
|
|
4
|
+
id?: string;
|
|
5
|
+
items: ItemType[];
|
|
6
|
+
itemToString?: (item: ItemType | null) => string;
|
|
7
|
+
initialSelectedItems?: ItemType[];
|
|
8
|
+
onChange?: (data: {
|
|
9
|
+
selectedItems: ItemType[];
|
|
10
|
+
}) => void;
|
|
11
|
+
titleText?: React.ReactNode;
|
|
12
|
+
label?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
invalid?: boolean;
|
|
15
|
+
invalidText?: React.ReactNode;
|
|
16
|
+
warn?: boolean;
|
|
17
|
+
warnText?: React.ReactNode;
|
|
18
|
+
helperText?: React.ReactNode;
|
|
19
|
+
light?: boolean;
|
|
20
|
+
size?: string;
|
|
21
|
+
direction?: string;
|
|
22
|
+
sortItems?: unknown;
|
|
23
|
+
compareItems?: unknown;
|
|
24
|
+
locale?: string;
|
|
25
|
+
downshiftProps?: unknown;
|
|
26
|
+
type?: string;
|
|
27
|
+
selectionFeedback?: string;
|
|
28
|
+
useTitleInItem?: boolean;
|
|
29
|
+
translateWithId?: unknown;
|
|
30
|
+
autoAlign?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
"aria-label"?: string;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
declare function MultiSelect<ItemType extends AnyItem>({ id, items, itemToString, initialSelectedItems, onChange, titleText, label, disabled, invalid: _invalid, invalidText: _invalidText, warn: _warn, warnText: _warnText, helperText: _helperText, light: _light, size: _size, direction: _direction, sortItems: _sortItems, compareItems: _compareItems, locale: _locale, downshiftProps: _downshiftProps, type: _type, selectionFeedback: _selectionFeedback, useTitleInItem: _useTitleInItem, translateWithId: _translateWithId, autoAlign: _autoAlign, className: _className, "aria-label": _ariaLabel, ariaLabel: _ariaLabelLegacy, ...rest }: MultiSelectProps<ItemType>): React.JSX.Element;
|
|
37
|
+
export { MultiSelect };
|
|
3
38
|
//# sourceMappingURL=multi-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-select.d.ts","sourceRoot":"","sources":["../../carbon-compat/multi-select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-select.d.ts","sourceRoot":"","sources":["../../carbon-compat/multi-select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAGvC,MAAM,WAAW,gBAAgB,CAAC,QAAQ,GAAG,OAAO;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,MAAM,CAAC;IACjD,oBAAoB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClC,QAAQ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,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,EACX,SAAS,EAAE,UAAU,EACrB,SAAS,EAAE,UAAU,EACrB,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,OAAO,EACf,cAAc,EAAE,eAAe,EAC/B,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,cAAc,EAAE,eAAe,EAC/B,eAAe,EAAE,gBAAgB,EACjC,SAAS,EAAE,UAAU,EACrB,SAAS,EAAE,UAAU,EACrB,YAAY,EAAE,UAAU,EACxB,SAAS,EAAE,gBAAgB,EAC3B,GAAG,IAAI,EACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,qBAyD5B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { warnDroppedProps } from "../src/lib/utils.js";
|
|
4
|
+
import { MultiSelect as DSMultiSelect } from "../src/components/ui/multi-select.js";
|
|
5
|
+
function defaultItemToString(item) {
|
|
6
|
+
if (item == null)
|
|
7
|
+
return "";
|
|
8
|
+
if (typeof item === "string")
|
|
9
|
+
return item;
|
|
10
|
+
if ("label" in item && typeof item.label === "string")
|
|
11
|
+
return item.label;
|
|
12
|
+
return String(item);
|
|
13
|
+
}
|
|
14
|
+
// @deprecated — transitional adapter. Replace with DS MultiSelect when migrating off Carbon.
|
|
15
|
+
// REMAP: Carbon MultiSelect → DS MultiSelect (searchable=false to match Carbon's non-filterable behavior)
|
|
16
|
+
function MultiSelect({ id, items, itemToString, initialSelectedItems, onChange, titleText, label, disabled, invalid: _invalid, invalidText: _invalidText, warn: _warn, warnText: _warnText, helperText: _helperText, light: _light, size: _size, direction: _direction, sortItems: _sortItems, compareItems: _compareItems, locale: _locale, downshiftProps: _downshiftProps, type: _type, selectionFeedback: _selectionFeedback, useTitleInItem: _useTitleInItem, translateWithId: _translateWithId, autoAlign: _autoAlign, className: _className, "aria-label": _ariaLabel, ariaLabel: _ariaLabelLegacy, ...rest }) {
|
|
17
|
+
warnDroppedProps("MultiSelect", {
|
|
18
|
+
invalid: _invalid,
|
|
19
|
+
invalidText: _invalidText,
|
|
20
|
+
warn: _warn,
|
|
21
|
+
warnText: _warnText,
|
|
22
|
+
helperText: _helperText,
|
|
23
|
+
light: _light,
|
|
24
|
+
size: _size,
|
|
25
|
+
direction: _direction,
|
|
26
|
+
sortItems: _sortItems,
|
|
27
|
+
compareItems: _compareItems,
|
|
28
|
+
locale: _locale,
|
|
29
|
+
downshiftProps: _downshiftProps,
|
|
30
|
+
type: _type,
|
|
31
|
+
selectionFeedback: _selectionFeedback,
|
|
32
|
+
useTitleInItem: _useTitleInItem,
|
|
33
|
+
...rest,
|
|
34
|
+
});
|
|
35
|
+
const toString = itemToString ??
|
|
36
|
+
defaultItemToString;
|
|
37
|
+
const dsOptions = items.map((item) => ({
|
|
38
|
+
value: toString(item),
|
|
39
|
+
label: toString(item),
|
|
40
|
+
}));
|
|
41
|
+
const defaultValue = initialSelectedItems?.map((item) => toString(item));
|
|
42
|
+
function handleValueChange(values) {
|
|
43
|
+
if (!onChange)
|
|
44
|
+
return;
|
|
45
|
+
const selectedItems = values
|
|
46
|
+
.map((v) => items.find((item) => toString(item) === v))
|
|
47
|
+
.filter((item) => item !== undefined);
|
|
48
|
+
onChange({ selectedItems });
|
|
49
|
+
}
|
|
50
|
+
return (_jsxs("div", { className: "flex flex-col gap-1", children: [titleText !== undefined ? (_jsx("label", { htmlFor: id, className: "text-sm font-medium", children: titleText })) : null, _jsx(DSMultiSelect, { id: id, options: dsOptions, defaultValue: defaultValue, onValueChange: handleValueChange, placeholder: label, disabled: disabled, searchable: false })] }));
|
|
51
|
+
}
|
|
52
|
+
export { MultiSelect };
|
|
3
53
|
//# sourceMappingURL=multi-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-select.js","sourceRoot":"","sources":["../../carbon-compat/multi-select.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"multi-select.js","sourceRoot":"","sources":["../../carbon-compat/multi-select.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAqCjF,SAAS,mBAAmB,CAAC,IAAoB;IAC/C,IAAI,IAAI,IAAI,IAAI;QAAE,OAAO,EAAE,CAAC;IAC5B,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC1C,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,KAAK,CAAC;IACzE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACtB,CAAC;AAED,6FAA6F;AAC7F,0GAA0G;AAC1G,SAAS,WAAW,CAA2B,EAC7C,EAAE,EACF,KAAK,EACL,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EAAE,QAAQ,EACjB,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,EACX,SAAS,EAAE,UAAU,EACrB,SAAS,EAAE,UAAU,EACrB,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,OAAO,EACf,cAAc,EAAE,eAAe,EAC/B,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,cAAc,EAAE,eAAe,EAC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I,EAAoB,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;QAC1D,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,qBAAqB,aACjC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CACzB,gBAAO,OAAO,EAAE,EAAE,EAAE,SAAS,EAAC,qBAAqB,YAChD,SAAS,GACJ,CACT,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,aAAa,IACZ,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,SAAS,EAClB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,iBAAiB,EAChC,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,KAAK,GACjB,IACE,CACP,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { MoreVerticalIcon } from 'lucide-react';
|
|
4
|
-
import { Button } from '../src/components/ui/button';
|
|
5
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from '../src/components/ui/dropdown';
|
|
6
|
-
import { warnDroppedProps } from '../src/lib/utils';
|
|
4
|
+
import { Button } from '../src/components/ui/button.js';
|
|
5
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from '../src/components/ui/dropdown.js';
|
|
6
|
+
import { warnDroppedProps } from '../src/lib/utils.js';
|
|
7
7
|
function OverflowMenu(props) {
|
|
8
8
|
const { 'aria-label': ariaLabel, ariaLabel: ariaLabelDeprecated, children, className, direction, flipped, focusTrap, iconClass, iconDescription, id, innerRef, light, menuOffset, menuOffsetFlip, menuOptionsClass, onClick, onClose, onOpen, open, renderIcon: RenderIcon, selectorPrimaryFocus, size, } = props;
|
|
9
9
|
warnDroppedProps('OverflowMenu', {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Popover as ShadcnPopover, PopoverContent as ShadcnPopoverContent, PopoverTrigger, } from '../src/components/ui/popover';
|
|
4
|
-
import { warnDroppedProps } from '../src/lib/utils';
|
|
3
|
+
import { Popover as ShadcnPopover, PopoverContent as ShadcnPopoverContent, PopoverTrigger, } from '../src/components/ui/popover.js';
|
|
4
|
+
import { warnDroppedProps } from '../src/lib/utils.js';
|
|
5
5
|
const ALIGN_TO_SIDE_ALIGN = {
|
|
6
6
|
top: { side: 'top', align: 'center' },
|
|
7
7
|
'top-left': { side: 'top', align: 'start' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { Progress } from "../src/components/ui/progress";
|
|
4
|
-
import { cn, warnDroppedProps } from "../src/lib/utils";
|
|
3
|
+
import { Progress } from "../src/components/ui/progress.js";
|
|
4
|
+
import { cn, warnDroppedProps } from "../src/lib/utils.js";
|
|
5
5
|
/**
|
|
6
6
|
* ProgressBar — Carbon-shaped adapter wrapping shadcn `Progress`.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { RadioGroup, RadioGroupItem } from '../src/components/ui/radio-group';
|
|
4
|
-
import { cn, warnDroppedProps } from '../src/lib/utils';
|
|
3
|
+
import { RadioGroup, RadioGroupItem } from '../src/components/ui/radio-group.js';
|
|
4
|
+
import { cn, warnDroppedProps } from '../src/lib/utils.js';
|
|
5
5
|
function RadioButtonGroup(props) {
|
|
6
6
|
const { children, className, defaultSelected, disabled, helperText, invalid, invalidText, legendText, name, onChange, orientation, readOnly, valueSelected, warn, warnText, ...rest } = props;
|
|
7
7
|
warnDroppedProps('RadioButtonGroup', { helperText, invalid, invalidText, readOnly, warn, warnText });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId, useState } from "react";
|
|
3
3
|
import { SearchIcon, XIcon } from "lucide-react";
|
|
4
|
-
import { Input } from "../src/components/ui/input";
|
|
5
|
-
import { cn, warnDroppedProps } from "../src/lib/utils";
|
|
4
|
+
import { Input } from "../src/components/ui/input.js";
|
|
5
|
+
import { cn, warnDroppedProps } from "../src/lib/utils.js";
|
|
6
6
|
function sizeClass(size) {
|
|
7
7
|
switch (size) {
|
|
8
8
|
case "sm":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../src/lib/utils";
|
|
2
|
+
import { cn } from "../src/lib/utils.js";
|
|
3
3
|
function SelectSkeleton({ hideLabel, className, ...rest }) {
|
|
4
4
|
return (_jsxs("div", { "data-slot": "carbon-compat-select-skeleton", className: cn("flex flex-col gap-1", className), ...rest, children: [!hideLabel && (_jsx("div", { className: "h-3 w-24 animate-pulse rounded bg-muted" })), _jsx("div", { className: "h-9 w-full animate-pulse rounded-md bg-muted" })] }));
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import type { SelectItemProps as CarbonSelectItemProps, SelectProps as CarbonSelectProps } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SelectItemProps as CarbonSelectItemProps, SelectProps as CarbonSelectProps } from "@carbon/react";
|
|
3
3
|
export type SelectProps = CarbonSelectProps;
|
|
4
4
|
export type SelectItemProps = CarbonSelectItemProps;
|
|
5
5
|
declare function Select(props: SelectProps): React.JSX.Element;
|
|
6
|
-
declare function SelectItem(props: SelectItemProps): React.JSX.Element;
|
|
6
|
+
declare function SelectItem(props: SelectItemProps): React.JSX.Element | null;
|
|
7
7
|
export { Select, SelectItem };
|
|
8
8
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../carbon-compat/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,WAAW,IAAI,iBAAiB,EACjC,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC5C,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../carbon-compat/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,WAAW,IAAI,iBAAiB,EACjC,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC5C,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAkCpD,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,qBAwGjC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,4BAyBzC;AAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,22 +1,60 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from
|
|
3
|
-
import { Select as ShadcnSelect, SelectContent, SelectItem as ShadcnSelectItem, SelectTrigger, SelectValue, } from
|
|
4
|
-
import { cn, warnDroppedProps } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Select as ShadcnSelect, SelectContent, SelectItem as ShadcnSelectItem, SelectTrigger, SelectValue, } from "../src/components/ui/select.js";
|
|
4
|
+
import { cn, warnDroppedProps } from "../src/lib/utils.js";
|
|
5
|
+
function extractPlaceholderItem(children, placeholder) {
|
|
6
|
+
let resolvedPlaceholder = placeholder;
|
|
7
|
+
const filteredChildren = React.Children.map(children, (child) => {
|
|
8
|
+
if (React.isValidElement(child) &&
|
|
9
|
+
child.type === SelectItem &&
|
|
10
|
+
String(child.props.value ?? "") === "") {
|
|
11
|
+
if (resolvedPlaceholder === undefined) {
|
|
12
|
+
const text = child.props.text;
|
|
13
|
+
if (typeof text === "string")
|
|
14
|
+
resolvedPlaceholder = text;
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return child;
|
|
19
|
+
});
|
|
20
|
+
return { resolvedPlaceholder, filteredChildren };
|
|
21
|
+
}
|
|
5
22
|
function Select(props) {
|
|
6
|
-
const { id, value, defaultValue, onChange, disabled, children, className, placeholder, labelText, helperText, invalid, invalidText, warn, warnText, hideLabel, inline, light, size, readOnly, noLabel,
|
|
7
|
-
warnDroppedProps(
|
|
23
|
+
const { id, value, defaultValue, onChange, disabled, children, className, placeholder, labelText, helperText, invalid, invalidText, warn, warnText, hideLabel, inline, light, size, readOnly, noLabel, "aria-label": ariaLabel, } = props;
|
|
24
|
+
warnDroppedProps("Select", {
|
|
25
|
+
helperText,
|
|
26
|
+
invalid,
|
|
27
|
+
invalidText,
|
|
28
|
+
warn,
|
|
29
|
+
warnText,
|
|
30
|
+
hideLabel,
|
|
31
|
+
inline,
|
|
32
|
+
light,
|
|
33
|
+
readOnly,
|
|
34
|
+
noLabel,
|
|
35
|
+
});
|
|
8
36
|
const handleValueChange = (next) => {
|
|
9
37
|
if (!onChange)
|
|
10
38
|
return;
|
|
11
|
-
const synthetic = {
|
|
39
|
+
const synthetic = {
|
|
40
|
+
target: { value: next, id },
|
|
41
|
+
};
|
|
12
42
|
onChange(synthetic);
|
|
13
43
|
};
|
|
14
|
-
const triggerSize = size ===
|
|
15
|
-
|
|
44
|
+
const triggerSize = size === "sm" ? "sm" : "default";
|
|
45
|
+
// Carbon uses <SelectItem value="" text="placeholder" /> as a no-selection placeholder.
|
|
46
|
+
// Radix rejects value="" on SelectItem and crashes. Hoist it to the Select's placeholder instead.
|
|
47
|
+
const { resolvedPlaceholder, filteredChildren } = extractPlaceholderItem(children, placeholder);
|
|
48
|
+
// Radix also misbehaves when controlled value is "". Treat it as unset so the placeholder shows.
|
|
49
|
+
const resolvedValue = value === "" ? undefined : value;
|
|
50
|
+
return (_jsxs("div", { className: "flex flex-col gap-1", children: [labelText !== undefined && !noLabel ? (_jsx("label", { htmlFor: id, className: cn("text-sm font-medium", hideLabel && "sr-only"), children: labelText })) : null, _jsxs(ShadcnSelect, { value: resolvedValue, defaultValue: defaultValue, onValueChange: handleValueChange, disabled: disabled, children: [_jsx(SelectTrigger, { id: id, size: triggerSize, className: className, "aria-label": ariaLabel ?? (typeof labelText === "string" ? labelText : undefined), children: _jsx(SelectValue, { placeholder: resolvedPlaceholder }) }), _jsx(SelectContent, { children: filteredChildren })] })] }));
|
|
16
51
|
}
|
|
17
52
|
function SelectItem(props) {
|
|
18
53
|
const { value, text, disabled, hidden, className, ...rest } = props;
|
|
19
|
-
warnDroppedProps(
|
|
54
|
+
warnDroppedProps("SelectItem", { hidden });
|
|
55
|
+
// Radix rejects value="". Select hoists these to a placeholder; here we just guard the boundary.
|
|
56
|
+
if (String(value) === "")
|
|
57
|
+
return null;
|
|
20
58
|
return (_jsx(ShadcnSelectItem, { value: String(value), disabled: disabled, className: className, ...rest, children: text }));
|
|
21
59
|
}
|
|
22
60
|
export { Select, SelectItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../carbon-compat/select.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,MAAM,IAAI,YAAY,EACtB,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YAAY,EAC1B,aAAa,EAAE,iBAAiB,EAChC,QAAQ,EAAE,QAAQ,aAElB,KAAC,aAAa,IACZ,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS,gBAElB,SAAS,IAAI,CAAC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,YAGtE,KAAC,WAAW,IAAC,WAAW,EAAE,mBAAmB,GAAI,GACnC,EAChB,KAAC,aAAa,cAAE,gBAAgB,GAAiB,IACpC,IACX,CACP,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,KAAsB;IACxC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GACzD,KAMC,CAAC;IACJ,gBAAgB,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,iGAAiG;IACjG,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IACtC,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,KACf,IAGH,YAED,IAAI,GACY,CACpB,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn, warnDroppedProps } from "../src/lib/utils";
|
|
2
|
+
import { cn, warnDroppedProps } from "../src/lib/utils.js";
|
|
3
3
|
/**
|
|
4
4
|
* Carbon's spacing scale maps to the closest Tailwind `gap-N` utility.
|
|
5
5
|
* Carbon scale = $spacing-01 (2px) … $spacing-13 (160px).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../src/lib/utils";
|
|
2
|
+
import { cn } from "../src/lib/utils.js";
|
|
3
3
|
function StructuredListSkeleton({ rowCount = 5, className, ...rest }) {
|
|
4
4
|
return (_jsxs("div", { "data-slot": "carbon-compat-structured-list-skeleton", className: cn("flex flex-col", className), ...rest, children: [_jsxs("div", { className: "flex border-b py-2", children: [_jsx("div", { className: "mr-4 h-3 w-20 animate-pulse rounded bg-muted" }), _jsx("div", { className: "h-3 w-24 animate-pulse rounded bg-muted" })] }), Array.from({ length: rowCount }).map((_, i) => (_jsxs("div", { className: "flex border-b py-3", children: [_jsx("div", { className: "mr-4 h-3 w-20 animate-pulse rounded bg-muted" }), _jsx("div", { className: "h-3 w-32 animate-pulse rounded bg-muted" })] }, i)))] }));
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ToggleGroupItem } from "../src/components/ui/toggle-group";
|
|
3
|
-
import { cn } from "../src/lib/utils";
|
|
2
|
+
import { ToggleGroupItem } from "../src/components/ui/toggle-group.js";
|
|
3
|
+
import { cn } from "../src/lib/utils.js";
|
|
4
4
|
/**
|
|
5
5
|
* Switch — Carbon-shaped adapter rendering shadcn `ToggleGroupItem`.
|
|
6
6
|
*
|
|
@@ -6,8 +6,8 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
6
6
|
* This adapter renders a styled bar controlled by `shouldShowBatchActions`.
|
|
7
7
|
*/
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
import { Button } from "../src/components/ui/button";
|
|
10
|
-
import { cn } from "../src/lib/utils";
|
|
9
|
+
import { Button } from "../src/components/ui/button.js";
|
|
10
|
+
import { cn } from "../src/lib/utils.js";
|
|
11
11
|
export function TableBatchActions({ children, className, shouldShowBatchActions, totalSelected, onCancel, }) {
|
|
12
12
|
if (!shouldShowBatchActions)
|
|
13
13
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../src/lib/utils";
|
|
3
|
+
import { cn } from "../src/lib/utils.js";
|
|
4
4
|
export function TableContainer({ children, className, title, description, stickyHeader: _stickyHeader, }) {
|
|
5
5
|
return (_jsxs("div", { className: cn("w-full", className), children: [(title || description) && (_jsxs("div", { className: "mb-2", children: [title && (_jsx("p", { className: "text-sm font-semibold leading-none", children: title })), description && (_jsx("p", { className: "text-muted-foreground mt-1 text-xs", children: description }))] })), children] }));
|
|
6
6
|
}
|
|
@@ -9,8 +9,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
12
|
-
import { Button } from "../src/components/ui/button";
|
|
13
|
-
import { cn } from "../src/lib/utils";
|
|
12
|
+
import { Button } from "../src/components/ui/button.js";
|
|
13
|
+
import { cn } from "../src/lib/utils.js";
|
|
14
14
|
export function TableExpandHeader({ className, children, }) {
|
|
15
15
|
return _jsx("th", { className: cn("w-6", className), children: children });
|
|
16
16
|
}
|
|
@@ -7,8 +7,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* controls outside a DataTable context. Prefer enabling `rowSelection` on
|
|
8
8
|
* DS DataTable instead.
|
|
9
9
|
*/
|
|
10
|
-
import { Checkbox } from "../src/components/ui/checkbox";
|
|
11
|
-
import { warnDroppedProps } from "../src/lib/utils";
|
|
10
|
+
import { Checkbox } from "../src/components/ui/checkbox.js";
|
|
11
|
+
import { warnDroppedProps } from "../src/lib/utils.js";
|
|
12
12
|
export function TableSelectAll({ checked, indeterminate, onChange, ariaLabel, name: _name, translateWithId, className, disabled, }) {
|
|
13
13
|
warnDroppedProps("TableSelectAll", { translateWithId });
|
|
14
14
|
return (_jsx(Checkbox, { checked: indeterminate ? "indeterminate" : checked, onCheckedChange: (v) => onChange?.(v === true), "aria-label": ariaLabel ?? "Select all rows", className: className, disabled: disabled }));
|
|
@@ -10,9 +10,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* `DropdownMenu` / `Button` directly in new code.
|
|
11
11
|
*/
|
|
12
12
|
import * as React from "react";
|
|
13
|
-
import { Button } from "../src/components/ui/button";
|
|
14
|
-
import { Input } from "../src/components/ui/input";
|
|
15
|
-
import { cn } from "../src/lib/utils";
|
|
13
|
+
import { Button } from "../src/components/ui/button.js";
|
|
14
|
+
import { Input } from "../src/components/ui/input.js";
|
|
15
|
+
import { cn } from "../src/lib/utils.js";
|
|
16
16
|
export function TableToolbar({ children, className }) {
|
|
17
17
|
return (_jsx("div", { className: cn("mb-2 flex items-center gap-2", className), children: children }));
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Table as ShadcnTable, TableBody as ShadcnTableBody, TableCell as ShadcnTableCell, TableHead as ShadcnTableHead, TableHeader as ShadcnTableHeader, TableRow as ShadcnTableRow, } from '../src/components/ui/table';
|
|
4
|
-
import { warnDroppedProps } from '../src/lib/utils';
|
|
3
|
+
import { Table as ShadcnTable, TableBody as ShadcnTableBody, TableCell as ShadcnTableCell, TableHead as ShadcnTableHead, TableHeader as ShadcnTableHeader, TableRow as ShadcnTableRow, } from '../src/components/ui/table.js';
|
|
4
|
+
import { warnDroppedProps } from '../src/lib/utils.js';
|
|
5
5
|
function Table(props) {
|
|
6
6
|
const { children, className, size, isSortable, useStaticWidth, useZebraStyles, stickyHeader, overflowMenuOnHover, experimentalAutoAlign, ...rest } = props;
|
|
7
7
|
warnDroppedProps('Table', { size, isSortable, useStaticWidth, useZebraStyles, stickyHeader, overflowMenuOnHover, experimentalAutoAlign });
|