impact-nova 1.5.14 → 1.6.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/components/ui/accordion.d.ts +4 -1
- package/dist/components/ui/accordion.js +28 -22
- package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +11 -11
- package/dist/components/ui/ag-grid-react/cell-renderers/checkbox-display-renderer.js +12 -12
- package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +30 -30
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/percent-progress-cell-editor.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +16 -16
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +17 -17
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +11 -11
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -2
- package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +11 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +8 -8
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +6 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.d.ts +1 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.js +14 -14
- package/dist/components/ui/ag-grid-react/cell-renderers/switch-display-renderer.js +18 -18
- package/dist/components/ui/ag-grid-react/cell-renderers/textarea-display-renderer.js +6 -6
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +14 -14
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +35 -35
- package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +49 -49
- package/dist/components/ui/ag-grid-react/headers/components/header-info.js +29 -29
- package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +9 -9
- package/dist/components/ui/ag-grid-react/headers/components/section-renderers.js +20 -20
- package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +10 -10
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +76 -76
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +118 -118
- package/dist/components/ui/ag-grid-react/index.js +121 -102
- package/dist/components/ui/alert-dialog.js +6 -6
- package/dist/components/ui/alert.d.ts +4 -3
- package/dist/components/ui/alert.js +182 -64
- package/dist/components/ui/avatar.js +5 -5
- package/dist/components/ui/badge.d.ts +7 -2
- package/dist/components/ui/badge.js +105 -32
- package/dist/components/ui/breadcrumb.js +26 -21
- package/dist/components/ui/button-group.d.ts +7 -0
- package/dist/components/ui/button-group.js +116 -91
- package/dist/components/ui/button-variants.d.ts +7 -2
- package/dist/components/ui/button-variants.js +31 -16
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +10 -10
- package/dist/components/ui/calendar.js +185 -184
- package/dist/components/ui/card.js +24 -24
- package/dist/components/ui/chart/chart.js +27 -27
- package/dist/components/ui/chart/chart.utils.js +50 -50
- package/dist/components/ui/checkbox.js +22 -22
- package/dist/components/ui/chips.d.ts +19 -3
- package/dist/components/ui/chips.js +140 -41
- package/dist/components/ui/command-palette/command-palette-layout.d.ts +28 -0
- package/dist/components/ui/command-palette/command-palette-layout.js +59 -0
- package/dist/components/ui/command-palette/command-palette.js +254 -264
- package/dist/components/ui/command-palette/index.d.ts +1 -1
- package/dist/components/ui/command-palette/index.js +42 -41
- package/dist/components/ui/command-palette/kbd.js +18 -18
- package/dist/components/ui/command-palette/shortcut-settings.d.ts +3 -3
- package/dist/components/ui/command-palette/shortcut-settings.js +105 -111
- package/dist/components/ui/command-palette/utils.d.ts +6 -1
- package/dist/components/ui/command-palette/utils.js +81 -74
- package/dist/components/ui/data-table/data-table-column-list.js +31 -31
- package/dist/components/ui/data-table/data-table-constants.d.ts +6 -0
- package/dist/components/ui/data-table/data-table-constants.js +4 -0
- package/dist/components/ui/data-table/data-table-context.d.ts +4 -0
- package/dist/components/ui/data-table/data-table-format-options.js +35 -35
- package/dist/components/ui/data-table/data-table-sheet.d.ts +4 -4
- package/dist/components/ui/data-table/data-table-sheet.js +91 -58
- package/dist/components/ui/data-table/data-table-view-options.js +29 -29
- package/dist/components/ui/data-table/data-table.js +84 -52
- package/dist/components/ui/data-table/index.d.ts +1 -0
- package/dist/components/ui/data-table/index.js +15 -13
- package/dist/components/ui/date-picker/date-picker.js +35 -35
- package/dist/components/ui/date-picker/date-range-picker.js +166 -164
- package/dist/components/ui/date-picker/month-picker.js +14 -14
- package/dist/components/ui/date-picker/month-range-picker.js +198 -189
- package/dist/components/ui/date-picker/multi-date-picker.js +14 -14
- package/dist/components/ui/date-picker/multi-month-picker.js +1 -1
- package/dist/components/ui/date-picker/multi-week-picker.js +1 -1
- package/dist/components/ui/date-picker/week-picker.js +2 -2
- package/dist/components/ui/date-picker/week-range-picker.js +164 -162
- package/dist/components/ui/dialog.js +25 -28
- package/dist/components/ui/drawer.js +40 -40
- package/dist/components/ui/dropdown-menu.js +72 -72
- package/dist/components/ui/empty-container.js +73 -69
- package/dist/components/ui/file-upload.js +137 -135
- package/dist/components/ui/filter-panel/filter-panel.d.ts +2 -2
- package/dist/components/ui/filter-panel/filter-panel.js +175 -97
- package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
- package/dist/components/ui/filter-strip/filter-strip.js +63 -50
- package/dist/components/ui/filter-strip/filter-summary.d.ts +4 -1
- package/dist/components/ui/filter-strip/filter-summary.js +230 -146
- package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
- package/dist/components/ui/header.d.ts +7 -3
- package/dist/components/ui/header.js +87 -79
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +44 -44
- package/dist/components/ui/hover-card.js +10 -10
- package/dist/components/ui/input.js +79 -70
- package/dist/components/ui/loader.js +16 -16
- package/dist/components/ui/nested-list/components/NestedListCategoryFilters.js +16 -16
- package/dist/components/ui/nested-list/components/NestedListHeader.js +27 -27
- package/dist/components/ui/nested-list/components/SortableItem.js +58 -58
- package/dist/components/ui/notification-panel/notification-item.js +32 -32
- package/dist/components/ui/notification-panel/notification-list.js +24 -24
- package/dist/components/ui/notification-panel/notification-panel.js +26 -26
- package/dist/components/ui/popover.js +22 -22
- package/dist/components/ui/progress.js +34 -34
- package/dist/components/ui/prompt.js +48 -48
- package/dist/components/ui/radio-group.js +63 -54
- package/dist/components/ui/select/components/LabelWithSequence.js +6 -6
- package/dist/components/ui/select/components/Submenu.js +33 -33
- package/dist/components/ui/select/select.js +425 -376
- package/dist/components/ui/sheet.js +88 -66
- package/dist/components/ui/sidebar.js +342 -296
- package/dist/components/ui/skeleton.js +6 -6
- package/dist/components/ui/slider.js +17 -17
- package/dist/components/ui/statistics-card.d.ts +86 -0
- package/dist/components/ui/statistics-card.hooks.d.ts +150 -0
- package/dist/components/ui/statistics-card.hooks.js +100 -0
- package/dist/components/ui/statistics-card.js +259 -0
- package/dist/components/ui/stepper.js +51 -51
- package/dist/components/ui/switch.js +7 -7
- package/dist/components/ui/tabs.js +70 -70
- package/dist/components/ui/tag-group.d.ts +1 -0
- package/dist/components/ui/tag-group.js +14 -13
- package/dist/components/ui/tag.js +43 -43
- package/dist/components/ui/textarea.js +86 -58
- package/dist/components/ui/toast.js +39 -39
- package/dist/components/ui/tooltip.js +23 -23
- package/dist/components/ui/types/date-picker.types.d.ts +1 -0
- package/dist/components/ui/types/filter-panel.types.d.ts +3 -0
- package/dist/components/ui/types/filter-strip.types.d.ts +14 -0
- package/dist/components/ui/types/horizontal-scroller.types.d.ts +1 -1
- package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
- package/dist/i18n/defaultMessages.d.ts +8 -0
- package/dist/i18n/defaultMessages.js +15 -9
- package/dist/i18n/locales/de.js +7 -1
- package/dist/i18n/locales/es.js +7 -1
- package/dist/i18n/locales/hi.js +7 -1
- package/dist/i18n/locales/kn.js +7 -1
- package/dist/icons/assets/bulk-edit.svg.js +5 -0
- package/dist/icons/assets/clock.svg.js +5 -0
- package/dist/icons/assets/statistics.svg.js +5 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.js +254 -206
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +361 -347
- package/package.json +3 -2
- package/tailwind.config.js +259 -152
- /package/dist/icons/assets/{PivotMode.svg.js → pivotMode.svg.js} +0 -0
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Drawer as
|
|
3
|
+
import { Drawer as r } from "vaul";
|
|
4
4
|
import { X as f } from "lucide-react";
|
|
5
5
|
import { cn as s } from "../../lib/utils.js";
|
|
6
|
-
import { Tooltip as
|
|
6
|
+
import { Tooltip as w, TooltipTrigger as g, TooltipContent as u } from "./tooltip.js";
|
|
7
7
|
import { useImpactNovaI18n as N } from "../../i18n/ImpactNovaI18nContext.js";
|
|
8
8
|
const x = ({
|
|
9
9
|
shouldScaleBackground: e = !0,
|
|
10
|
-
...
|
|
10
|
+
...t
|
|
11
11
|
}) => /* @__PURE__ */ a(
|
|
12
|
-
|
|
12
|
+
r.Root,
|
|
13
13
|
{
|
|
14
14
|
shouldScaleBackground: e,
|
|
15
|
-
...
|
|
15
|
+
...t
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
x.displayName = "Drawer";
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const H = r.Trigger, D = r.Portal, I = r.Close, c = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
20
|
+
r.Overlay,
|
|
21
21
|
{
|
|
22
22
|
ref: o,
|
|
23
|
-
className: s("fixed inset-0 z-50 bg-
|
|
24
|
-
...
|
|
23
|
+
className: s("fixed inset-0 z-50 bg-scrim-deep", e),
|
|
24
|
+
...t
|
|
25
25
|
}
|
|
26
26
|
));
|
|
27
|
-
c.displayName =
|
|
28
|
-
const y = i.forwardRef(({ className: e, children:
|
|
27
|
+
c.displayName = r.Overlay.displayName;
|
|
28
|
+
const y = i.forwardRef(({ className: e, children: t, hideClose: o, ...d }, m) => {
|
|
29
29
|
const { t: p } = N(), l = p("aria.close");
|
|
30
30
|
return /* @__PURE__ */ n(D, { children: [
|
|
31
31
|
/* @__PURE__ */ a(c, {}),
|
|
32
32
|
/* @__PURE__ */ n(
|
|
33
|
-
|
|
33
|
+
r.Content,
|
|
34
34
|
{
|
|
35
35
|
ref: m,
|
|
36
36
|
"data-component": "drawer-content",
|
|
37
37
|
className: s(
|
|
38
|
-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-
|
|
38
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-canvas",
|
|
39
39
|
e
|
|
40
40
|
),
|
|
41
41
|
...d,
|
|
42
42
|
children: [
|
|
43
43
|
/* @__PURE__ */ a("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
44
|
-
|
|
45
|
-
!o && /* @__PURE__ */ n(
|
|
46
|
-
/* @__PURE__ */ a(
|
|
47
|
-
|
|
44
|
+
t,
|
|
45
|
+
!o && /* @__PURE__ */ n(w, { children: [
|
|
46
|
+
/* @__PURE__ */ a(g, { asChild: !0, children: /* @__PURE__ */ n(
|
|
47
|
+
r.Close,
|
|
48
48
|
{
|
|
49
|
-
className: "absolute right-4 top-4 rounded-sm opacity-50 ring-offset-
|
|
49
|
+
className: "absolute right-4 top-4 rounded-sm opacity-50 ring-offset-canvas transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-content-muted",
|
|
50
50
|
"aria-label": l,
|
|
51
51
|
children: [
|
|
52
52
|
/* @__PURE__ */ a(f, { className: "h-4 w-4" }),
|
|
@@ -62,30 +62,30 @@ const y = i.forwardRef(({ className: e, children: r, hideClose: o, ...d }, m) =>
|
|
|
62
62
|
] });
|
|
63
63
|
});
|
|
64
64
|
y.displayName = "DrawerContent";
|
|
65
|
-
const
|
|
65
|
+
const h = ({
|
|
66
66
|
className: e,
|
|
67
|
-
...
|
|
67
|
+
...t
|
|
68
68
|
}) => /* @__PURE__ */ a(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
71
|
className: s("grid gap-1.5 p-4 text-center sm:text-left", e),
|
|
72
|
-
...
|
|
72
|
+
...t
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
|
-
|
|
76
|
-
const
|
|
75
|
+
h.displayName = "DrawerHeader";
|
|
76
|
+
const v = ({
|
|
77
77
|
className: e,
|
|
78
|
-
...
|
|
78
|
+
...t
|
|
79
79
|
}) => /* @__PURE__ */ a(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
82
|
className: s("mt-auto flex flex-col gap-2 p-4", e),
|
|
83
|
-
...
|
|
83
|
+
...t
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
86
|
+
v.displayName = "DrawerFooter";
|
|
87
|
+
const b = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
88
|
+
r.Title,
|
|
89
89
|
{
|
|
90
90
|
ref: o,
|
|
91
91
|
"data-component": "drawer-title",
|
|
@@ -93,29 +93,29 @@ const v = i.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
|
93
93
|
"text-lg font-semibold leading-none tracking-tight",
|
|
94
94
|
e
|
|
95
95
|
),
|
|
96
|
-
...
|
|
96
|
+
...t
|
|
97
97
|
}
|
|
98
98
|
));
|
|
99
|
-
|
|
100
|
-
const T = i.forwardRef(({ className: e, ...
|
|
101
|
-
|
|
99
|
+
b.displayName = r.Title.displayName;
|
|
100
|
+
const T = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
101
|
+
r.Description,
|
|
102
102
|
{
|
|
103
103
|
ref: o,
|
|
104
104
|
"data-component": "drawer-description",
|
|
105
|
-
className: s("text-sm text-muted
|
|
106
|
-
...
|
|
105
|
+
className: s("text-sm text-content-muted", e),
|
|
106
|
+
...t
|
|
107
107
|
}
|
|
108
108
|
));
|
|
109
|
-
T.displayName =
|
|
109
|
+
T.displayName = r.Description.displayName;
|
|
110
110
|
export {
|
|
111
111
|
x as Drawer,
|
|
112
|
-
|
|
112
|
+
I as DrawerClose,
|
|
113
113
|
y as DrawerContent,
|
|
114
114
|
T as DrawerDescription,
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
v as DrawerFooter,
|
|
116
|
+
h as DrawerHeader,
|
|
117
117
|
c as DrawerOverlay,
|
|
118
118
|
D as DrawerPortal,
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
b as DrawerTitle,
|
|
120
|
+
H as DrawerTrigger
|
|
121
121
|
};
|
|
@@ -2,176 +2,176 @@ import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { Check as f, ChevronRight as u } from "lucide-react";
|
|
5
|
-
import { cn as
|
|
6
|
-
const C = e.Root, I = e.Trigger,
|
|
5
|
+
import { cn as r } from "../../lib/utils.js";
|
|
6
|
+
const C = e.Root, I = e.Trigger, j = e.Group, G = e.Portal, P = e.Sub, x = l.forwardRef(({ className: a, ...n }, o) => /* @__PURE__ */ t(
|
|
7
7
|
e.RadioGroup,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
9
|
+
ref: o,
|
|
10
|
+
className: r("flex flex-col gap-0.5", a),
|
|
11
|
+
...n
|
|
12
12
|
}
|
|
13
13
|
));
|
|
14
14
|
x.displayName = e.RadioGroup.displayName;
|
|
15
|
-
const g = l.forwardRef(({ className: a, inset:
|
|
15
|
+
const g = l.forwardRef(({ className: a, inset: n, icon: o, children: s, ...d }, i) => /* @__PURE__ */ c(
|
|
16
16
|
e.SubTrigger,
|
|
17
17
|
{
|
|
18
18
|
ref: i,
|
|
19
|
-
className:
|
|
19
|
+
className: r(
|
|
20
20
|
"flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 font-medium",
|
|
21
|
-
|
|
21
|
+
n && "pl-4",
|
|
22
22
|
a
|
|
23
23
|
),
|
|
24
24
|
...d,
|
|
25
25
|
children: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ t(u, { className: "ml-auto text-icon
|
|
26
|
+
o && /* @__PURE__ */ t("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: o }),
|
|
27
|
+
s,
|
|
28
|
+
/* @__PURE__ */ t(u, { className: "ml-auto text-content-icon" })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
));
|
|
32
32
|
g.displayName = e.SubTrigger.displayName;
|
|
33
|
-
const h = l.forwardRef(({ className: a, ...
|
|
33
|
+
const h = l.forwardRef(({ className: a, ...n }, o) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
34
34
|
e.SubContent,
|
|
35
35
|
{
|
|
36
|
-
ref:
|
|
37
|
-
className:
|
|
38
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-lg bg-
|
|
36
|
+
ref: o,
|
|
37
|
+
className: r(
|
|
38
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating text-[13px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
39
39
|
a
|
|
40
40
|
),
|
|
41
|
-
...
|
|
41
|
+
...n
|
|
42
42
|
}
|
|
43
43
|
) }));
|
|
44
44
|
h.displayName = e.SubContent.displayName;
|
|
45
|
-
const N = l.forwardRef(({ className: a, sideOffset:
|
|
45
|
+
const N = l.forwardRef(({ className: a, sideOffset: n = 4, portalled: o = !0, ...s }, d) => {
|
|
46
46
|
const i = /* @__PURE__ */ t(
|
|
47
47
|
e.Content,
|
|
48
48
|
{
|
|
49
49
|
ref: d,
|
|
50
|
-
sideOffset:
|
|
50
|
+
sideOffset: n,
|
|
51
51
|
"data-component": "dropdown-menu-content",
|
|
52
|
-
className:
|
|
53
|
-
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[12rem] overflow-y-auto overflow-x-hidden rounded-lg bg-
|
|
52
|
+
className: r(
|
|
53
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[12rem] overflow-y-auto overflow-x-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating flex flex-col gap-0.5",
|
|
54
54
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
55
55
|
a
|
|
56
56
|
),
|
|
57
|
-
...
|
|
57
|
+
...s
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
return
|
|
60
|
+
return o ? /* @__PURE__ */ t(e.Portal, { children: i }) : i;
|
|
61
61
|
});
|
|
62
62
|
N.displayName = e.Content.displayName;
|
|
63
|
-
const b = l.forwardRef(({ className: a, inset:
|
|
63
|
+
const b = l.forwardRef(({ className: a, inset: n, description: o, icon: s, children: d, ...i }, m) => /* @__PURE__ */ c(
|
|
64
64
|
e.Item,
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: m,
|
|
67
67
|
"data-component": "dropdown-menu-item",
|
|
68
|
-
className:
|
|
69
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none transition-colors focus:bg-accent focus:text-
|
|
70
|
-
|
|
68
|
+
className: r(
|
|
69
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
70
|
+
n && "pl-4",
|
|
71
71
|
a
|
|
72
72
|
),
|
|
73
73
|
...i,
|
|
74
74
|
children: [
|
|
75
|
-
|
|
75
|
+
s && /* @__PURE__ */ t("span", { className: "flex-shrink-0 [&>svg]:size-4", children: s }),
|
|
76
76
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0.5 justify-center", children: [
|
|
77
77
|
/* @__PURE__ */ t("span", { className: "font-medium leading-none", children: d }),
|
|
78
|
-
|
|
78
|
+
o && /* @__PURE__ */ t("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: o })
|
|
79
79
|
] })
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
));
|
|
83
83
|
b.displayName = e.Item.displayName;
|
|
84
|
-
const w = l.forwardRef(({ className: a, children:
|
|
84
|
+
const w = l.forwardRef(({ className: a, children: n, checked: o, description: s, icon: d, ...i }, m) => /* @__PURE__ */ c(
|
|
85
85
|
e.CheckboxItem,
|
|
86
86
|
{
|
|
87
|
-
ref:
|
|
88
|
-
className:
|
|
89
|
-
"relative flex cursor-default select-none items-center rounded-md h-[35px] pl-10 pr-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-
|
|
87
|
+
ref: m,
|
|
88
|
+
className: r(
|
|
89
|
+
"relative flex cursor-default select-none items-center rounded-md h-[35px] pl-10 pr-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
90
90
|
a
|
|
91
91
|
),
|
|
92
|
-
checked:
|
|
93
|
-
onSelect: (
|
|
92
|
+
checked: o,
|
|
93
|
+
onSelect: (p) => p.preventDefault(),
|
|
94
94
|
...i,
|
|
95
95
|
children: [
|
|
96
|
-
/* @__PURE__ */ t("span", { className: "absolute left-3 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ t("div", { className:
|
|
97
|
-
"flex h-4 w-4 items-center justify-center rounded-[4px] border border-
|
|
98
|
-
|
|
96
|
+
/* @__PURE__ */ t("span", { className: "absolute left-3 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ t("div", { className: r(
|
|
97
|
+
"flex h-4 w-4 items-center justify-center rounded-[4px] border border-stroke transition-colors",
|
|
98
|
+
o && "bg-brand border-brand text-brand-foreground"
|
|
99
99
|
), children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "h-3 w-3", strokeWidth: 3 }) }) }) }),
|
|
100
100
|
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
101
|
-
d && /* @__PURE__ */ t("span", { className: "flex-shrink-0 text-
|
|
101
|
+
d && /* @__PURE__ */ t("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: d }),
|
|
102
102
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0.5 justify-center", children: [
|
|
103
|
-
/* @__PURE__ */ t("span", { className: "font-medium leading-none", children:
|
|
104
|
-
|
|
103
|
+
/* @__PURE__ */ t("span", { className: "font-medium leading-none", children: n }),
|
|
104
|
+
s && /* @__PURE__ */ t("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: s })
|
|
105
105
|
] })
|
|
106
106
|
] })
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
));
|
|
110
110
|
w.displayName = e.CheckboxItem.displayName;
|
|
111
|
-
const
|
|
111
|
+
const v = l.forwardRef(({ className: a, children: n, description: o, icon: s, ...d }, i) => /* @__PURE__ */ t(
|
|
112
112
|
e.RadioItem,
|
|
113
113
|
{
|
|
114
114
|
ref: i,
|
|
115
|
-
className:
|
|
116
|
-
"relative flex cursor-default select-none items-center rounded-md h-[35px] px-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-
|
|
115
|
+
className: r(
|
|
116
|
+
"relative flex cursor-default select-none items-center rounded-md h-[35px] px-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[state=checked]:bg-accent",
|
|
117
117
|
a
|
|
118
118
|
),
|
|
119
|
-
onSelect: (
|
|
119
|
+
onSelect: (m) => m.preventDefault(),
|
|
120
120
|
...d,
|
|
121
121
|
children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
122
|
-
|
|
122
|
+
s && /* @__PURE__ */ t("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: s }),
|
|
123
123
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0.5 justify-center", children: [
|
|
124
|
-
/* @__PURE__ */ t("span", { className: "font-medium leading-none", children:
|
|
125
|
-
|
|
124
|
+
/* @__PURE__ */ t("span", { className: "font-medium leading-none", children: n }),
|
|
125
|
+
o && /* @__PURE__ */ t("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: o })
|
|
126
126
|
] })
|
|
127
127
|
] })
|
|
128
128
|
}
|
|
129
129
|
));
|
|
130
|
-
|
|
131
|
-
const
|
|
130
|
+
v.displayName = e.RadioItem.displayName;
|
|
131
|
+
const y = l.forwardRef(({ className: a, inset: n, ...o }, s) => /* @__PURE__ */ t(
|
|
132
132
|
e.Label,
|
|
133
133
|
{
|
|
134
|
-
ref:
|
|
135
|
-
className:
|
|
136
|
-
"px-3 py-2 text-xs font-bold tracking-wider text-icon
|
|
137
|
-
|
|
134
|
+
ref: s,
|
|
135
|
+
className: r(
|
|
136
|
+
"px-3 py-2 text-xs font-bold tracking-wider text-content-icon",
|
|
137
|
+
n && "pl-4",
|
|
138
138
|
a
|
|
139
139
|
),
|
|
140
|
-
...
|
|
140
|
+
...o
|
|
141
141
|
}
|
|
142
142
|
));
|
|
143
|
-
|
|
144
|
-
const D = l.forwardRef(({ className: a, ...
|
|
143
|
+
y.displayName = e.Label.displayName;
|
|
144
|
+
const D = l.forwardRef(({ className: a, ...n }, o) => /* @__PURE__ */ t(
|
|
145
145
|
e.Separator,
|
|
146
146
|
{
|
|
147
|
-
ref:
|
|
148
|
-
className:
|
|
149
|
-
...
|
|
147
|
+
ref: o,
|
|
148
|
+
className: r("-mx-2 my-1 h-px bg-border", a),
|
|
149
|
+
...n
|
|
150
150
|
}
|
|
151
151
|
));
|
|
152
152
|
D.displayName = e.Separator.displayName;
|
|
153
153
|
const M = ({
|
|
154
154
|
className: a,
|
|
155
|
-
...
|
|
155
|
+
...n
|
|
156
156
|
}) => /* @__PURE__ */ t(
|
|
157
157
|
"div",
|
|
158
158
|
{
|
|
159
|
-
className:
|
|
160
|
-
"sticky bottom-0 z-10 -mx-2 -mb-2 mt-1 flex items-center justify-end gap-2 border-t bg-
|
|
159
|
+
className: r(
|
|
160
|
+
"sticky bottom-0 z-10 -mx-2 -mb-2 mt-1 flex items-center justify-end gap-2 border-t bg-canvas-elevated p-2 shrink-0 rounded-b-xl",
|
|
161
161
|
a
|
|
162
162
|
),
|
|
163
|
-
...
|
|
163
|
+
...n
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
M.displayName = "DropdownMenuFooter";
|
|
167
167
|
const R = ({
|
|
168
168
|
className: a,
|
|
169
|
-
...
|
|
169
|
+
...n
|
|
170
170
|
}) => /* @__PURE__ */ t(
|
|
171
171
|
"span",
|
|
172
172
|
{
|
|
173
|
-
className:
|
|
174
|
-
...
|
|
173
|
+
className: r("ml-auto text-xs tracking-widest opacity-60", a),
|
|
174
|
+
...n
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
R.displayName = "DropdownMenuShortcut";
|
|
@@ -180,15 +180,15 @@ export {
|
|
|
180
180
|
w as DropdownMenuCheckboxItem,
|
|
181
181
|
N as DropdownMenuContent,
|
|
182
182
|
M as DropdownMenuFooter,
|
|
183
|
-
|
|
183
|
+
j as DropdownMenuGroup,
|
|
184
184
|
b as DropdownMenuItem,
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
y as DropdownMenuLabel,
|
|
186
|
+
G as DropdownMenuPortal,
|
|
187
187
|
x as DropdownMenuRadioGroup,
|
|
188
|
-
|
|
188
|
+
v as DropdownMenuRadioItem,
|
|
189
189
|
D as DropdownMenuSeparator,
|
|
190
190
|
R as DropdownMenuShortcut,
|
|
191
|
-
|
|
191
|
+
P as DropdownMenuSub,
|
|
192
192
|
h as DropdownMenuSubContent,
|
|
193
193
|
g as DropdownMenuSubTrigger,
|
|
194
194
|
I as DropdownMenuTrigger
|
|
@@ -10,104 +10,108 @@ const c = [
|
|
|
10
10
|
{ Component: N, width: 250, height: 180 },
|
|
11
11
|
{ Component: S, width: 225, height: 150 },
|
|
12
12
|
{ Component: I, width: 225, height: 150 }
|
|
13
|
-
],
|
|
13
|
+
], v = m.forwardRef(
|
|
14
14
|
({ className: o, children: t, asChild: e = !1, ...n }, a) => /* @__PURE__ */ r(
|
|
15
15
|
e ? p : "div",
|
|
16
16
|
{
|
|
17
17
|
ref: a,
|
|
18
18
|
className: s(
|
|
19
|
-
"flex flex-col items-center justify-center py-
|
|
19
|
+
"flex flex-col items-center justify-center py-16 px-5 text-center animate-in fade-in zoom-in duration-300 border border-stroke-subtle rounded-xl bg-canvas-elevated w-[884px] min-w-[884px] h-auto",
|
|
20
20
|
o
|
|
21
21
|
),
|
|
22
22
|
"data-component": "empty-container",
|
|
23
23
|
...n,
|
|
24
|
-
children: /* @__PURE__ */ r("div", { className: "flex flex-col items-center max-w-[650px]
|
|
24
|
+
children: /* @__PURE__ */ r("div", { className: "flex flex-col items-center max-w-[650px]", children: t })
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
27
|
);
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
v.displayName = "EmptyContainer";
|
|
29
|
+
const R = m.forwardRef(({ className: o, children: t, width: e, height: n, asChild: a = !1, ...i }, f) => {
|
|
30
|
+
const [l, M] = m.useState(() => t ? null : Math.floor(Math.random() * c.length)), h = () => {
|
|
31
|
+
if (t) return t;
|
|
32
|
+
if (l !== null) {
|
|
33
|
+
const {
|
|
34
|
+
Component: C,
|
|
35
|
+
width: g,
|
|
36
|
+
height: x
|
|
37
|
+
} = c[l];
|
|
38
|
+
return /* @__PURE__ */ r(
|
|
39
|
+
C,
|
|
40
|
+
{
|
|
41
|
+
size: "100%",
|
|
42
|
+
style: {
|
|
43
|
+
width: e || g,
|
|
44
|
+
height: n || x
|
|
43
45
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ref: f,
|
|
52
|
-
className: s(
|
|
53
|
-
"mb-4 flex items-center justify-center relative",
|
|
54
|
-
"after:absolute after:inset-0 after:bg-primary/5 after:blur-3xl after:-z-10 after:rounded-full",
|
|
55
|
-
o
|
|
56
|
-
),
|
|
57
|
-
style: {
|
|
58
|
-
width: u,
|
|
59
|
-
height: y,
|
|
60
|
-
...i.style
|
|
61
|
-
},
|
|
62
|
-
"data-component": "empty-container-image",
|
|
63
|
-
...i,
|
|
64
|
-
children: h()
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
v.displayName = "EmptyContainerImage";
|
|
70
|
-
const T = m.forwardRef(
|
|
71
|
-
({ className: o, children: t, asChild: e = !1, ...n }, a) => /* @__PURE__ */ r(
|
|
72
|
-
e ? p : "h3",
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}, d = l !== null ? c[l] : null, u = e || (t ? "auto" : d?.width || 225), y = n || (t ? "auto" : d?.height || 150);
|
|
51
|
+
return /* @__PURE__ */ r(
|
|
52
|
+
a ? p : "div",
|
|
73
53
|
{
|
|
74
|
-
ref:
|
|
75
|
-
className: s(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
54
|
+
ref: f,
|
|
55
|
+
className: s(
|
|
56
|
+
"mb-4 flex items-center justify-center relative",
|
|
57
|
+
"after:absolute after:inset-0 after:bg-brand/5 after:blur-3xl after:-z-10 after:rounded-full",
|
|
58
|
+
o
|
|
59
|
+
),
|
|
60
|
+
style: {
|
|
61
|
+
width: u,
|
|
62
|
+
height: y,
|
|
63
|
+
...i.style
|
|
64
|
+
},
|
|
65
|
+
"data-component": "empty-container-image",
|
|
66
|
+
...i,
|
|
67
|
+
children: h()
|
|
79
68
|
}
|
|
80
|
-
)
|
|
81
|
-
);
|
|
69
|
+
);
|
|
70
|
+
});
|
|
71
|
+
R.displayName = "EmptyContainerImage";
|
|
72
|
+
const T = m.forwardRef(({ className: o, children: t, asChild: e = !1, ...n }, a) => /* @__PURE__ */ r(
|
|
73
|
+
e ? p : "h3",
|
|
74
|
+
{
|
|
75
|
+
ref: a,
|
|
76
|
+
className: s("text-xl font-bold tracking-tight text-content", o),
|
|
77
|
+
"data-component": "empty-container-title",
|
|
78
|
+
...n,
|
|
79
|
+
children: t
|
|
80
|
+
}
|
|
81
|
+
));
|
|
82
82
|
T.displayName = "EmptyContainerTitle";
|
|
83
83
|
const j = m.forwardRef(({ className: o, children: t, asChild: e = !1, ...n }, a) => /* @__PURE__ */ r(
|
|
84
84
|
e ? p : "p",
|
|
85
85
|
{
|
|
86
86
|
ref: a,
|
|
87
|
-
className: s(
|
|
87
|
+
className: s(
|
|
88
|
+
"text-base leading-5 font-medium text-secondary-foreground",
|
|
89
|
+
o
|
|
90
|
+
),
|
|
88
91
|
"data-component": "empty-container-description",
|
|
89
92
|
...n,
|
|
90
93
|
children: t
|
|
91
94
|
}
|
|
92
95
|
));
|
|
93
96
|
j.displayName = "EmptyContainerDescription";
|
|
94
|
-
const A = m.forwardRef(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
const A = m.forwardRef(({ className: o, children: t, asChild: e = !1, ...n }, a) => /* @__PURE__ */ r(
|
|
98
|
+
e ? p : "div",
|
|
99
|
+
{
|
|
100
|
+
ref: a,
|
|
101
|
+
className: s(
|
|
102
|
+
"mt-6 flex flex-wrap items-center justify-center gap-3",
|
|
103
|
+
o
|
|
104
|
+
),
|
|
105
|
+
"data-component": "empty-container-action",
|
|
106
|
+
...n,
|
|
107
|
+
children: t
|
|
108
|
+
}
|
|
109
|
+
));
|
|
106
110
|
A.displayName = "EmptyContainerAction";
|
|
107
111
|
export {
|
|
108
|
-
|
|
112
|
+
v as EmptyContainer,
|
|
109
113
|
A as EmptyContainerAction,
|
|
110
114
|
j as EmptyContainerDescription,
|
|
111
|
-
|
|
115
|
+
R as EmptyContainerImage,
|
|
112
116
|
T as EmptyContainerTitle
|
|
113
117
|
};
|