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,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as t, Fragment as O } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { ChevronRight as T } from "lucide-react";
|
|
4
4
|
import { useVirtualizer as $ } from "@tanstack/react-virtual";
|
|
@@ -10,62 +10,62 @@ const F = a.forwardRef(
|
|
|
10
10
|
className: N,
|
|
11
11
|
items: u,
|
|
12
12
|
renderItem: R,
|
|
13
|
-
scrollStep:
|
|
14
|
-
hideScrollbar: p = !
|
|
13
|
+
scrollStep: v = 200,
|
|
14
|
+
hideScrollbar: p = !0,
|
|
15
15
|
controlsPosition: s = "right",
|
|
16
|
-
renderPrevious:
|
|
17
|
-
renderNext:
|
|
16
|
+
renderPrevious: g,
|
|
17
|
+
renderNext: b,
|
|
18
18
|
maxWidth: L = "100%",
|
|
19
19
|
estimateSize: m = 200,
|
|
20
20
|
overscan: k = 5,
|
|
21
21
|
...C
|
|
22
22
|
}, B) => {
|
|
23
|
-
const { t:
|
|
23
|
+
const { t: x } = D(), l = a.useRef(null), [n, E] = a.useState(!1), [o, H] = a.useState(!1);
|
|
24
24
|
a.useImperativeHandle(B, () => l.current);
|
|
25
|
-
const
|
|
25
|
+
const c = $({
|
|
26
26
|
count: u.length,
|
|
27
27
|
getScrollElement: () => l.current,
|
|
28
28
|
estimateSize: typeof m == "function" ? m : () => m,
|
|
29
29
|
horizontal: !0,
|
|
30
30
|
overscan: k
|
|
31
|
-
}), V =
|
|
31
|
+
}), V = c.getTotalSize(), f = a.useCallback(() => {
|
|
32
32
|
const e = l.current;
|
|
33
33
|
e && (E(e.scrollLeft > 0), H(Math.ceil(e.scrollLeft + e.clientWidth) < e.scrollWidth));
|
|
34
34
|
}, []);
|
|
35
35
|
a.useEffect(() => {
|
|
36
36
|
const e = l.current;
|
|
37
37
|
if (!e) return;
|
|
38
|
-
|
|
39
|
-
const r = () =>
|
|
38
|
+
f();
|
|
39
|
+
const r = () => f();
|
|
40
40
|
e.addEventListener("scroll", r);
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const d = new ResizeObserver(() => {
|
|
42
|
+
f();
|
|
43
43
|
});
|
|
44
|
-
return
|
|
45
|
-
e.removeEventListener("scroll", r),
|
|
44
|
+
return d.observe(e), () => {
|
|
45
|
+
e.removeEventListener("scroll", r), d.disconnect();
|
|
46
46
|
};
|
|
47
|
-
}, [
|
|
48
|
-
const
|
|
49
|
-
l.current?.scrollBy({ left: -
|
|
50
|
-
},
|
|
51
|
-
l.current?.scrollBy({ left:
|
|
52
|
-
},
|
|
47
|
+
}, [f, u, V]);
|
|
48
|
+
const z = () => {
|
|
49
|
+
l.current?.scrollBy({ left: -v, behavior: "smooth" });
|
|
50
|
+
}, y = () => {
|
|
51
|
+
l.current?.scrollBy({ left: v, behavior: "smooth" });
|
|
52
|
+
}, w = ({
|
|
53
53
|
direction: e,
|
|
54
54
|
onClick: r,
|
|
55
|
-
disabled:
|
|
55
|
+
disabled: d
|
|
56
56
|
}) => {
|
|
57
|
-
if (
|
|
58
|
-
const S =
|
|
59
|
-
return /* @__PURE__ */
|
|
57
|
+
if (d) return null;
|
|
58
|
+
const S = x(e === "left" ? "horizontalScroller.scrollLeft" : "horizontalScroller.scrollRight");
|
|
59
|
+
return /* @__PURE__ */ i(
|
|
60
60
|
A,
|
|
61
61
|
{
|
|
62
62
|
variant: "ghost",
|
|
63
63
|
size: "icon",
|
|
64
64
|
className: h(
|
|
65
|
-
"h-8 w-8 rounded-md bg-
|
|
65
|
+
"h-8 w-8 rounded-md bg-canvas-muted text-content-tertiary hover:bg-brand-tint hover:text-brand"
|
|
66
66
|
),
|
|
67
67
|
onClick: r,
|
|
68
|
-
disabled:
|
|
68
|
+
disabled: d,
|
|
69
69
|
"aria-label": S,
|
|
70
70
|
"data-component": e === "left" ? "horizontal-scroller-prev" : "horizontal-scroller-next",
|
|
71
71
|
children: [
|
|
@@ -80,33 +80,33 @@ const F = a.forwardRef(
|
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
82
|
}, W = () => {
|
|
83
|
-
const e =
|
|
84
|
-
|
|
83
|
+
const e = g ? g({ onClick: z, disabled: !n }) : /* @__PURE__ */ t(
|
|
84
|
+
w,
|
|
85
85
|
{
|
|
86
86
|
direction: "left",
|
|
87
|
-
onClick:
|
|
88
|
-
disabled: !
|
|
87
|
+
onClick: z,
|
|
88
|
+
disabled: !n
|
|
89
89
|
}
|
|
90
|
-
), r =
|
|
91
|
-
|
|
90
|
+
), r = b ? b({ onClick: y, disabled: !o }) : /* @__PURE__ */ t(
|
|
91
|
+
w,
|
|
92
92
|
{
|
|
93
93
|
direction: "right",
|
|
94
|
-
onClick:
|
|
95
|
-
disabled: !
|
|
94
|
+
onClick: y,
|
|
95
|
+
disabled: !o
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
|
-
return s === "split" ? /* @__PURE__ */
|
|
98
|
+
return s === "split" ? /* @__PURE__ */ i(O, { children: [
|
|
99
99
|
/* @__PURE__ */ t("div", { className: "absolute left-0 top-1/2 z-20 -translate-y-1/2", children: e }),
|
|
100
100
|
/* @__PURE__ */ t("div", { className: "absolute right-0 top-1/2 z-20 -translate-y-1/2", children: r })
|
|
101
|
-
] }) : s === "left" ? /* @__PURE__ */
|
|
101
|
+
] }) : s === "left" ? /* @__PURE__ */ i("div", { className: "absolute left-0 top-1/2 z-20 flex -translate-y-1/2 items-center gap-1", children: [
|
|
102
102
|
e,
|
|
103
103
|
r
|
|
104
|
-
] }) : /* @__PURE__ */
|
|
104
|
+
] }) : /* @__PURE__ */ i("div", { className: "absolute right-0 top-1/2 z-20 flex -translate-y-1/2 items-center gap-1", children: [
|
|
105
105
|
e,
|
|
106
106
|
r
|
|
107
107
|
] });
|
|
108
|
-
}, j = () => s === "left" ?
|
|
109
|
-
return /* @__PURE__ */
|
|
108
|
+
}, j = () => s === "left" ? n && o ? "pl-20" : n || o ? "pl-12" : "" : s === "split" && n ? "pl-12" : "", I = () => s === "right" ? n && o ? "pr-20" : n || o ? "pr-12" : "" : s === "split" && o ? "pr-12" : "";
|
|
109
|
+
return /* @__PURE__ */ i(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
112
|
className: h(
|
|
@@ -134,20 +134,20 @@ const F = a.forwardRef(
|
|
|
134
134
|
msOverflowStyle: p ? "none" : "auto"
|
|
135
135
|
},
|
|
136
136
|
"data-component": "horizontal-scroller-viewport",
|
|
137
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ i(
|
|
138
138
|
"div",
|
|
139
139
|
{
|
|
140
140
|
style: {
|
|
141
|
-
width: `${
|
|
141
|
+
width: `${c.getTotalSize()}px`,
|
|
142
142
|
display: "flex",
|
|
143
143
|
position: "relative"
|
|
144
144
|
},
|
|
145
145
|
children: [
|
|
146
|
-
/* @__PURE__ */ t("div", { style: { width: `${
|
|
147
|
-
|
|
146
|
+
/* @__PURE__ */ t("div", { style: { width: `${c.getVirtualItems()[0]?.start ?? 0}px`, flexShrink: 0 } }),
|
|
147
|
+
c.getVirtualItems().map((e) => /* @__PURE__ */ t(
|
|
148
148
|
"div",
|
|
149
149
|
{
|
|
150
|
-
ref:
|
|
150
|
+
ref: c.measureElement,
|
|
151
151
|
"data-index": e.index,
|
|
152
152
|
className: "flex-shrink-0",
|
|
153
153
|
children: R(u[e.index], e.index)
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as t from "@radix-ui/react-hover-card";
|
|
4
4
|
import { cn as s } from "../../lib/utils.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const l = t.Root, p = t.Trigger, m = i.forwardRef(({ className: o, align: a = "center", sideOffset: e = 4, ...r }, d) => /* @__PURE__ */ n(
|
|
6
|
+
t.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: d,
|
|
9
|
-
align:
|
|
10
|
-
sideOffset:
|
|
9
|
+
align: a,
|
|
10
|
+
sideOffset: e,
|
|
11
11
|
"data-component": "hover-card-content",
|
|
12
12
|
className: s(
|
|
13
|
-
"z-50 w-64 rounded-md border bg-
|
|
14
|
-
|
|
13
|
+
"z-50 w-64 rounded-md border bg-canvas-overlay p-4 text-canvas-overlay-foreground shadow-md outline-none 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-hover-card-content-transform-origin]",
|
|
14
|
+
o
|
|
15
15
|
),
|
|
16
16
|
...r
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
m.displayName =
|
|
19
|
+
m.displayName = t.Content.displayName;
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
l as HoverCard,
|
|
22
22
|
m as HoverCardContent,
|
|
23
|
-
|
|
23
|
+
p as HoverCardTrigger
|
|
24
24
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
3
|
import { Info as h } from "../../icons/index.js";
|
|
4
4
|
import { cva as v } from "class-variance-authority";
|
|
5
5
|
import { cn as e } from "../../lib/utils.js";
|
|
6
6
|
const g = v(
|
|
7
|
-
"flex w-full items-center gap-1 rounded-md border bg-transparent px-3 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted
|
|
7
|
+
"flex w-full items-center gap-1 rounded-md border bg-transparent px-3 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-content-muted focus-within:outline-none hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
isError: {
|
|
11
11
|
true: "border-destructive hover:border-destructive",
|
|
12
|
-
false: "border-
|
|
12
|
+
false: "border-field"
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
15
|
default: "h-8",
|
|
@@ -18,7 +18,7 @@ const g = v(
|
|
|
18
18
|
lg: "h-10"
|
|
19
19
|
},
|
|
20
20
|
disabled: {
|
|
21
|
-
true: "pointer-events-none opacity-100 bg-disabled-
|
|
21
|
+
true: "pointer-events-none opacity-100 bg-disabled-surface border-stroke text-disabled-foreground hover:border-stroke",
|
|
22
22
|
false: ""
|
|
23
23
|
}
|
|
24
24
|
},
|
|
@@ -27,92 +27,101 @@ const g = v(
|
|
|
27
27
|
isError: !1
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
),
|
|
31
|
-
({ className: u, type:
|
|
30
|
+
), N = b.forwardRef(
|
|
31
|
+
({ className: u, type: f, label: n, helperText: o, isError: t, size: p, disabled: r, prefix: s, suffix: i, prefixClick: l, suffixClick: c, ...m }, x) => /* @__PURE__ */ d(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
|
-
className: "w-full
|
|
34
|
+
className: "flex w-full flex-col gap-[6px]",
|
|
35
35
|
"data-component": "input",
|
|
36
36
|
"data-disabled": r || void 0,
|
|
37
37
|
"data-invalid": t || void 0,
|
|
38
38
|
children: [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
39
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col gap-[6px]", children: [
|
|
40
|
+
n && /* @__PURE__ */ d(
|
|
41
|
+
"label",
|
|
42
|
+
{
|
|
43
|
+
className: e(
|
|
44
|
+
"text-xs font-medium leading-[18px] text-content-tertiary",
|
|
45
|
+
r && "opacity-70",
|
|
46
|
+
t && "text-destructive"
|
|
47
|
+
),
|
|
48
|
+
children: [
|
|
49
|
+
n,
|
|
50
|
+
" ",
|
|
51
|
+
m.required && /* @__PURE__ */ a("span", { className: "text-destructive", children: "*" })
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ d(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: e(
|
|
59
|
+
g({ size: p, isError: t, disabled: r, className: u }),
|
|
60
|
+
"bg-canvas",
|
|
61
|
+
r && "bg-disabled-surface"
|
|
62
|
+
),
|
|
63
|
+
children: [
|
|
64
|
+
s && /* @__PURE__ */ a(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
onClick: l,
|
|
68
|
+
className: e("flex shrink-0 items-center justify-center text-content-muted pointer-events-auto", l && "cursor-pointer"),
|
|
69
|
+
children: s
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ a(
|
|
73
|
+
"input",
|
|
74
|
+
{
|
|
75
|
+
type: f,
|
|
76
|
+
className: e(
|
|
77
|
+
"flex h-full w-full bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
78
|
+
r && "opacity-100 text-disabled-foreground placeholder:text-disabled-foreground"
|
|
79
|
+
),
|
|
80
|
+
ref: x,
|
|
81
|
+
disabled: !!r,
|
|
82
|
+
"data-form-control": "input",
|
|
83
|
+
...m
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
i && /* @__PURE__ */ a(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
onClick: c,
|
|
90
|
+
className: e("flex shrink-0 items-center justify-center text-content-muted pointer-events-auto", c && "cursor-pointer"),
|
|
91
|
+
children: i
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] }),
|
|
98
|
+
o && /* @__PURE__ */ d(
|
|
56
99
|
"div",
|
|
57
100
|
{
|
|
58
101
|
className: e(
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
r && "bg-disabled-secondary-bg"
|
|
102
|
+
"flex items-center gap-[6px]",
|
|
103
|
+
t && "text-destructive"
|
|
62
104
|
),
|
|
63
105
|
children: [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
onClick: l,
|
|
68
|
-
className: e("flex shrink-0 items-center justify-center text-muted-foreground pointer-events-auto", l && "cursor-pointer"),
|
|
69
|
-
children: n
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ d(
|
|
73
|
-
"input",
|
|
106
|
+
!t && /* @__PURE__ */ a(h, { size: "xs", className: "shrink-0 text-content-muted" }),
|
|
107
|
+
/* @__PURE__ */ a(
|
|
108
|
+
"p",
|
|
74
109
|
{
|
|
75
|
-
type: p,
|
|
76
110
|
className: e(
|
|
77
|
-
"
|
|
78
|
-
|
|
111
|
+
"text-[10px] leading-4 text-navigation-muted",
|
|
112
|
+
t && "text-destructive"
|
|
79
113
|
),
|
|
80
|
-
|
|
81
|
-
disabled: !!r,
|
|
82
|
-
"data-form-control": "input",
|
|
83
|
-
...m
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
i && /* @__PURE__ */ d(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
onClick: c,
|
|
90
|
-
className: e("flex shrink-0 items-center justify-center text-muted-foreground pointer-events-auto", c && "cursor-pointer"),
|
|
91
|
-
children: i
|
|
114
|
+
children: o
|
|
92
115
|
}
|
|
93
116
|
)
|
|
94
117
|
]
|
|
95
118
|
}
|
|
96
|
-
)
|
|
97
|
-
s && /* @__PURE__ */ a("div", { className: e("flex items-center gap-1", t && "text-destructive"), children: [
|
|
98
|
-
!t && /* @__PURE__ */ d(h, { size: "xs", className: "shrink-0 text-muted-foreground" }),
|
|
99
|
-
/* @__PURE__ */ d(
|
|
100
|
-
"p",
|
|
101
|
-
{
|
|
102
|
-
className: e(
|
|
103
|
-
"text-[10px] text-[#7a8294]",
|
|
104
|
-
// Exact legacy color
|
|
105
|
-
t && "text-destructive"
|
|
106
|
-
),
|
|
107
|
-
children: s
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
] })
|
|
119
|
+
)
|
|
111
120
|
]
|
|
112
121
|
}
|
|
113
122
|
)
|
|
114
123
|
);
|
|
115
|
-
|
|
124
|
+
N.displayName = "Input";
|
|
116
125
|
export {
|
|
117
|
-
|
|
126
|
+
N as Input
|
|
118
127
|
};
|
|
@@ -4,7 +4,7 @@ import "@radix-ui/react-slot";
|
|
|
4
4
|
import { cva as u } from "class-variance-authority";
|
|
5
5
|
import { cn as p } from "../../lib/utils.js";
|
|
6
6
|
import { useImpactNovaI18n as h } from "../../i18n/ImpactNovaI18nContext.js";
|
|
7
|
-
const
|
|
7
|
+
const b = u(
|
|
8
8
|
"relative rounded-full flex items-center justify-center overflow-hidden",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -19,14 +19,14 @@ const j = u(
|
|
|
19
19
|
size: "md"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
({ className: o, size:
|
|
22
|
+
), v = f.forwardRef(
|
|
23
|
+
({ className: o, size: r = "md", progress: s, text: a, asChild: g = !1, ...d }, l) => {
|
|
24
24
|
const { t: m } = h(), i = {
|
|
25
25
|
sm: { outer: 24, inner: 20 },
|
|
26
26
|
md: { outer: 48, inner: 40 },
|
|
27
27
|
lg: { outer: 72, inner: 60 },
|
|
28
28
|
xl: { outer: 96, inner: 80 }
|
|
29
|
-
}, { outer: e, inner:
|
|
29
|
+
}, { outer: e, inner: t } = i[r] || i.md;
|
|
30
30
|
return /* @__PURE__ */ c(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
@@ -35,7 +35,7 @@ const j = u(
|
|
|
35
35
|
role: "status",
|
|
36
36
|
"aria-label": a || m("aria.loading"),
|
|
37
37
|
"data-component": "loader",
|
|
38
|
-
"data-size":
|
|
38
|
+
"data-size": r ?? "md",
|
|
39
39
|
...d,
|
|
40
40
|
children: [
|
|
41
41
|
/* @__PURE__ */ n(
|
|
@@ -45,20 +45,20 @@ const j = u(
|
|
|
45
45
|
style: {
|
|
46
46
|
height: e,
|
|
47
47
|
width: e,
|
|
48
|
-
background: "conic-gradient(from 180deg at 50% 50%,
|
|
48
|
+
background: "conic-gradient(from 180deg at 50% 50%, transparent 0deg, var(--color-primary) 360deg)"
|
|
49
49
|
},
|
|
50
50
|
children: /* @__PURE__ */ n(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
className: "absolute bg-
|
|
53
|
+
className: "absolute bg-canvas rounded-full flex items-center justify-center font-medium animate-[spin_1s_linear_infinite_reverse]",
|
|
54
54
|
style: {
|
|
55
|
-
height:
|
|
56
|
-
width:
|
|
57
|
-
top: (e -
|
|
58
|
-
left: (e -
|
|
55
|
+
height: t,
|
|
56
|
+
width: t,
|
|
57
|
+
top: (e - t) / 2,
|
|
58
|
+
left: (e - t) / 2,
|
|
59
59
|
fontSize: e / 6
|
|
60
60
|
},
|
|
61
|
-
children:
|
|
61
|
+
children: r !== "sm" && s
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
}
|
|
@@ -66,7 +66,7 @@ const j = u(
|
|
|
66
66
|
a && /* @__PURE__ */ n(
|
|
67
67
|
"span",
|
|
68
68
|
{
|
|
69
|
-
className: "mt-2 text-[12px] font-medium text-
|
|
69
|
+
className: "mt-2 text-[12px] font-medium text-content",
|
|
70
70
|
"data-component": "loader-text",
|
|
71
71
|
children: a
|
|
72
72
|
}
|
|
@@ -76,8 +76,8 @@ const j = u(
|
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
|
-
|
|
79
|
+
v.displayName = "Loader";
|
|
80
80
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
v as Loader,
|
|
82
|
+
b as loaderVariants
|
|
83
83
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Switch as
|
|
4
|
-
const
|
|
3
|
+
import { Switch as a } from "../../switch.js";
|
|
4
|
+
const h = ({
|
|
5
5
|
isListCollapsed: l,
|
|
6
|
-
enableGroupBy:
|
|
7
|
-
categories:
|
|
6
|
+
enableGroupBy: n,
|
|
7
|
+
categories: r,
|
|
8
8
|
selectedCategories: i,
|
|
9
|
-
onToggleCategory:
|
|
10
|
-
}) => l || !
|
|
11
|
-
/* @__PURE__ */ e("div", { className: "text-sm font-semibold text-
|
|
12
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children:
|
|
9
|
+
onToggleCategory: m
|
|
10
|
+
}) => l || !n || r.length === 0 ? null : /* @__PURE__ */ s("div", { className: "mb-1", children: [
|
|
11
|
+
/* @__PURE__ */ e("div", { className: "text-sm font-semibold text-content-icon mb-2", children: "View by" }),
|
|
12
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: r.map((t) => /* @__PURE__ */ s(
|
|
13
13
|
"label",
|
|
14
14
|
{
|
|
15
15
|
className: "flex items-center justify-between cursor-pointer mr-3",
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ e("span", { className: "text-sm text-
|
|
17
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-content-tertiary mr-[6px]", children: t }),
|
|
18
18
|
/* @__PURE__ */ e(
|
|
19
|
-
|
|
19
|
+
a,
|
|
20
20
|
{
|
|
21
|
-
checked: i.has(
|
|
22
|
-
onCheckedChange: () =>
|
|
21
|
+
checked: i.has(t),
|
|
22
|
+
onCheckedChange: () => m(t)
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
t
|
|
28
28
|
)) }),
|
|
29
|
-
/* @__PURE__ */ e("hr", { className: "mt-3 border-t border-dashed border-
|
|
29
|
+
/* @__PURE__ */ e("hr", { className: "mt-3 border-t border-dashed border-stroke-field" })
|
|
30
30
|
] });
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
h as NestedListCategoryFilters
|
|
33
33
|
};
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Checkbox as N } from "../../checkbox.js";
|
|
4
4
|
import { Input as v } from "../../input.js";
|
|
5
|
-
import { ChevronRight as
|
|
6
|
-
import { cn as
|
|
5
|
+
import { ChevronRight as k, Search as g } from "../../../../icons/index.js";
|
|
6
|
+
import { cn as C } from "../../../../lib/utils.js";
|
|
7
7
|
import { useImpactNovaI18n as z } from "../../../../i18n/ImpactNovaI18nContext.js";
|
|
8
8
|
const E = ({
|
|
9
|
-
hasItemsWithChildren:
|
|
10
|
-
isListCollapsed:
|
|
9
|
+
hasItemsWithChildren: r,
|
|
10
|
+
isListCollapsed: c,
|
|
11
11
|
onCollapseAll: y,
|
|
12
|
-
enableSearch:
|
|
12
|
+
enableSearch: n,
|
|
13
13
|
enableSelectAll: e,
|
|
14
14
|
groupLabel: i,
|
|
15
|
-
allChecked:
|
|
16
|
-
isIndeterminate:
|
|
15
|
+
allChecked: m,
|
|
16
|
+
isIndeterminate: a = !1,
|
|
17
17
|
onSelectAll: d,
|
|
18
18
|
searchText: x,
|
|
19
19
|
onSearchChange: l,
|
|
20
20
|
searchPlaceholder: p,
|
|
21
21
|
selectAllLabel: f = "Select All",
|
|
22
|
-
enableCollapse:
|
|
22
|
+
enableCollapse: s = !0
|
|
23
23
|
}) => {
|
|
24
24
|
const { t: u } = z();
|
|
25
|
-
if (!(
|
|
25
|
+
if (!(n || e || i || s && r)) return null;
|
|
26
26
|
const h = /* @__PURE__ */ t(
|
|
27
27
|
"button",
|
|
28
28
|
{
|
|
29
29
|
type: "button",
|
|
30
30
|
onClick: y,
|
|
31
|
-
className: "p-1 hover:bg-
|
|
32
|
-
"aria-label": u(
|
|
31
|
+
className: "p-1 hover:bg-muted rounded-full transition-colors flex items-center text-content-icon hover:text-brand",
|
|
32
|
+
"aria-label": u(c ? "nestedList.expandAll" : "nestedList.collapseAll"),
|
|
33
33
|
children: /* @__PURE__ */ t(
|
|
34
|
-
|
|
34
|
+
k,
|
|
35
35
|
{
|
|
36
36
|
size: "16px",
|
|
37
|
-
className:
|
|
37
|
+
className: C("transition-transform", !c && "rotate-90")
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
|
-
return i ? /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */ t("span", { className: "text-[13px] font-semibold text-
|
|
42
|
+
return i ? /* @__PURE__ */ o("div", { className: "mb-3", children: [
|
|
43
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-1 mb-2", children: [
|
|
44
|
+
s && r && h,
|
|
45
|
+
/* @__PURE__ */ t("span", { className: "text-[13px] font-semibold text-content-tertiary", children: i })
|
|
46
46
|
] }),
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
|
|
48
48
|
e && /* @__PURE__ */ t(
|
|
49
49
|
N,
|
|
50
50
|
{
|
|
51
|
-
checked:
|
|
51
|
+
checked: a ? "indeterminate" : m,
|
|
52
52
|
onCheckedChange: d
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
|
-
|
|
55
|
+
n ? /* @__PURE__ */ t("div", { className: "flex-1 ml-auto", children: /* @__PURE__ */ t(
|
|
56
56
|
v,
|
|
57
57
|
{
|
|
58
58
|
type: "text",
|
|
@@ -61,18 +61,18 @@ const E = ({
|
|
|
61
61
|
onChange: l,
|
|
62
62
|
prefix: /* @__PURE__ */ t(g, { size: "14px", color: "currentColor" })
|
|
63
63
|
}
|
|
64
|
-
) }) : e && /* @__PURE__ */ t("span", { className: "flex-1 ml-auto text-[13px] font-semibold text-
|
|
64
|
+
) }) : e && /* @__PURE__ */ t("span", { className: "flex-1 ml-auto text-[13px] font-semibold text-content-tertiary", children: f })
|
|
65
65
|
] })
|
|
66
|
-
] }) : /* @__PURE__ */
|
|
67
|
-
|
|
66
|
+
] }) : /* @__PURE__ */ o("div", { className: "flex items-center gap-1 mb-3", children: [
|
|
67
|
+
s && r && h,
|
|
68
68
|
e && /* @__PURE__ */ t(
|
|
69
69
|
N,
|
|
70
70
|
{
|
|
71
|
-
checked:
|
|
71
|
+
checked: a ? "indeterminate" : m,
|
|
72
72
|
onCheckedChange: d
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
|
|
75
|
+
n ? /* @__PURE__ */ t("div", { className: "flex-1 ml-auto", children: /* @__PURE__ */ t(
|
|
76
76
|
v,
|
|
77
77
|
{
|
|
78
78
|
type: "text",
|
|
@@ -81,7 +81,7 @@ const E = ({
|
|
|
81
81
|
onChange: l,
|
|
82
82
|
prefix: /* @__PURE__ */ t(g, { size: "14px", color: "currentColor" })
|
|
83
83
|
}
|
|
84
|
-
) }) : e && /* @__PURE__ */ t("span", { className: "flex-1 ml-auto text-[13px] font-semibold text-
|
|
84
|
+
) }) : e && /* @__PURE__ */ t("span", { className: "flex-1 ml-auto text-[13px] font-semibold text-content-tertiary", children: f })
|
|
85
85
|
] });
|
|
86
86
|
};
|
|
87
87
|
export {
|