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,62 +1,62 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const s =
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { cn as o } from "../../lib/utils.js";
|
|
4
|
+
const s = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
7
|
ref: r,
|
|
8
8
|
"data-component": "card",
|
|
9
|
-
className:
|
|
10
|
-
"rounded-xl border bg-
|
|
9
|
+
className: o(
|
|
10
|
+
"rounded-xl border bg-canvas-elevated text-canvas-elevated-foreground shadow",
|
|
11
11
|
a
|
|
12
12
|
),
|
|
13
13
|
...e
|
|
14
14
|
}
|
|
15
15
|
));
|
|
16
16
|
s.displayName = "Card";
|
|
17
|
-
const
|
|
17
|
+
const n = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
ref: r,
|
|
21
|
-
className:
|
|
21
|
+
className: o("flex flex-col space-y-1.5 p-6", a),
|
|
22
22
|
...e
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
|
-
|
|
26
|
-
const
|
|
25
|
+
n.displayName = "CardHeader";
|
|
26
|
+
const i = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
ref: r,
|
|
30
|
-
className:
|
|
30
|
+
className: o("font-semibold leading-none tracking-tight", a),
|
|
31
31
|
...e
|
|
32
32
|
}
|
|
33
33
|
));
|
|
34
|
-
|
|
35
|
-
const
|
|
34
|
+
i.displayName = "CardTitle";
|
|
35
|
+
const c = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
ref: r,
|
|
39
|
-
className:
|
|
39
|
+
className: o("text-sm text-content-muted", a),
|
|
40
40
|
...e
|
|
41
41
|
}
|
|
42
42
|
));
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
const
|
|
43
|
+
c.displayName = "CardDescription";
|
|
44
|
+
const l = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: o("p-6 pt-0", a), ...e }));
|
|
45
|
+
l.displayName = "CardContent";
|
|
46
|
+
const m = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
49
|
ref: r,
|
|
50
|
-
className:
|
|
50
|
+
className: o("flex items-center p-6 pt-0", a),
|
|
51
51
|
...e
|
|
52
52
|
}
|
|
53
53
|
));
|
|
54
|
-
|
|
54
|
+
m.displayName = "CardFooter";
|
|
55
55
|
export {
|
|
56
56
|
s as Card,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
l as CardContent,
|
|
58
|
+
c as CardDescription,
|
|
59
|
+
m as CardFooter,
|
|
60
|
+
n as CardHeader,
|
|
61
|
+
i as CardTitle
|
|
62
62
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as F } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as l from "highcharts";
|
|
4
4
|
import H from "highcharts-react-official";
|
|
@@ -23,14 +23,14 @@ const c = (e, r) => {
|
|
|
23
23
|
typeof e == "function" ? e(r) : typeof e == "object" && e.default && typeof e.default == "function" && e.default(r);
|
|
24
24
|
};
|
|
25
25
|
typeof l == "object" && (c(B, l), c(M, l), c(T, l), c(P, l), c(D, l), c(O, l), c(G, l), c(J, l), c(K, l), c(V, l), c(Q, l));
|
|
26
|
-
const
|
|
27
|
-
const e = n.useContext(
|
|
26
|
+
const b = n.createContext(null), k = () => {
|
|
27
|
+
const e = n.useContext(b);
|
|
28
28
|
if (!e)
|
|
29
29
|
throw new Error("Chart components must be used within a ChartContainer");
|
|
30
30
|
return e;
|
|
31
31
|
}, z = n.forwardRef(
|
|
32
32
|
({ className: e, children: r, isLoading: i = !1, ...o }, f) => {
|
|
33
|
-
const a = n.useRef(null),
|
|
33
|
+
const a = n.useRef(null), m = n.useRef(null), [u, h] = n.useState(!1), [x, p] = n.useState(!1);
|
|
34
34
|
n.useImperativeHandle(f, () => a.current);
|
|
35
35
|
const w = () => {
|
|
36
36
|
const t = a.current;
|
|
@@ -43,7 +43,7 @@ const F = n.createContext(null), k = () => {
|
|
|
43
43
|
document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(), h(!1), t.classList.remove("fullscreen-animating-out");
|
|
44
44
|
}, 200));
|
|
45
45
|
}, q = () => {
|
|
46
|
-
|
|
46
|
+
u ? C() : w();
|
|
47
47
|
};
|
|
48
48
|
return n.useEffect(() => {
|
|
49
49
|
const t = () => {
|
|
@@ -56,11 +56,11 @@ const F = n.createContext(null), k = () => {
|
|
|
56
56
|
);
|
|
57
57
|
};
|
|
58
58
|
}, []), n.useEffect(() => {
|
|
59
|
-
if (!
|
|
60
|
-
const t =
|
|
59
|
+
if (!m?.current?.chart) return;
|
|
60
|
+
const t = m.current.chart;
|
|
61
61
|
let d = null;
|
|
62
62
|
const E = () => {
|
|
63
|
-
|
|
63
|
+
u && a.current ? (d && cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
64
64
|
const v = a.current;
|
|
65
65
|
if (!v) return;
|
|
66
66
|
const R = v.getBoundingClientRect(), N = v.querySelector('[class*="ChartContent"]');
|
|
@@ -75,15 +75,15 @@ const F = n.createContext(null), k = () => {
|
|
|
75
75
|
return window.addEventListener("resize", E), () => {
|
|
76
76
|
d && cancelAnimationFrame(d), window.removeEventListener("resize", E);
|
|
77
77
|
};
|
|
78
|
-
}, [
|
|
79
|
-
|
|
78
|
+
}, [u]), /* @__PURE__ */ s(
|
|
79
|
+
b.Provider,
|
|
80
80
|
{
|
|
81
81
|
value: {
|
|
82
|
-
isExpanded:
|
|
82
|
+
isExpanded: u,
|
|
83
83
|
toggleFullscreen: q,
|
|
84
84
|
isLoading: i,
|
|
85
85
|
containerRef: a,
|
|
86
|
-
chartComponentRef:
|
|
86
|
+
chartComponentRef: m
|
|
87
87
|
},
|
|
88
88
|
children: /* @__PURE__ */ s(
|
|
89
89
|
"div",
|
|
@@ -91,8 +91,8 @@ const F = n.createContext(null), k = () => {
|
|
|
91
91
|
ref: a,
|
|
92
92
|
className: g(
|
|
93
93
|
e,
|
|
94
|
-
"w-full relative bg-
|
|
95
|
-
|
|
94
|
+
"w-full relative bg-canvas-elevated transition-all duration-200 ease-in-out",
|
|
95
|
+
u && "fixed inset-0 z-50 h-screen w-screen p-4 bg-canvas flex flex-col",
|
|
96
96
|
x && "overflow-hidden"
|
|
97
97
|
),
|
|
98
98
|
...o,
|
|
@@ -118,8 +118,8 @@ const Z = n.forwardRef(
|
|
|
118
118
|
Z.displayName = "ChartActions";
|
|
119
119
|
const _ = n.forwardRef(
|
|
120
120
|
({ className: e, ...r }, i) => {
|
|
121
|
-
const { t: o } = W(), { toggleFullscreen: f, isExpanded: a } = k(),
|
|
122
|
-
return /* @__PURE__ */
|
|
121
|
+
const { t: o } = W(), { toggleFullscreen: f, isExpanded: a } = k(), m = o("aria.toggleFullscreen");
|
|
122
|
+
return /* @__PURE__ */ F(
|
|
123
123
|
I,
|
|
124
124
|
{
|
|
125
125
|
variant: "ghost",
|
|
@@ -127,11 +127,11 @@ const _ = n.forwardRef(
|
|
|
127
127
|
onClick: f,
|
|
128
128
|
ref: i,
|
|
129
129
|
className: g("h-8 w-8", e),
|
|
130
|
-
"aria-label":
|
|
130
|
+
"aria-label": m,
|
|
131
131
|
...r,
|
|
132
132
|
children: [
|
|
133
133
|
a ? /* @__PURE__ */ s(A, { className: "h-4 w-4" }) : /* @__PURE__ */ s(j, { className: "h-4 w-4" }),
|
|
134
|
-
/* @__PURE__ */ s("span", { className: "sr-only", children:
|
|
134
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: m })
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
);
|
|
@@ -140,13 +140,13 @@ const _ = n.forwardRef(
|
|
|
140
140
|
_.displayName = "ChartFullScreen";
|
|
141
141
|
const S = n.forwardRef(
|
|
142
142
|
({ className: e, children: r, loader: i, ...o }, f) => {
|
|
143
|
-
const { isLoading: a, chartComponentRef:
|
|
144
|
-
return a && i ? /* @__PURE__ */ s("div", { ref: f, className: g(e, "w-full relative flex items-center justify-center flex-1 min-h-[300px]",
|
|
145
|
-
a && /* @__PURE__ */
|
|
143
|
+
const { isLoading: a, chartComponentRef: m, isExpanded: u } = k();
|
|
144
|
+
return a && i ? /* @__PURE__ */ s("div", { ref: f, className: g(e, "w-full relative flex items-center justify-center flex-1 min-h-[300px]", u && "min-h-0"), ...o, children: i }) : /* @__PURE__ */ F("div", { ref: f, className: g(e, "w-full relative flex-1 min-h-[300px]", u && "min-h-0"), ...o, children: [
|
|
145
|
+
a && /* @__PURE__ */ F("div", { className: "absolute inset-0 z-10 bg-canvas/50 flex flex-col gap-2 p-4", children: [
|
|
146
146
|
/* @__PURE__ */ s(L, { className: "h-8 w-1/3" }),
|
|
147
147
|
/* @__PURE__ */ s(L, { className: "flex-1 w-full" })
|
|
148
148
|
] }),
|
|
149
|
-
n.Children.map(r, (h) => n.isValidElement(h) ? n.cloneElement(h, { ref:
|
|
149
|
+
n.Children.map(r, (h) => n.isValidElement(h) ? n.cloneElement(h, { ref: m }) : h)
|
|
150
150
|
] });
|
|
151
151
|
}
|
|
152
152
|
);
|
|
@@ -158,12 +158,12 @@ const $ = n.forwardRef(
|
|
|
158
158
|
width: o,
|
|
159
159
|
className: f,
|
|
160
160
|
isLoading: a,
|
|
161
|
-
loader:
|
|
162
|
-
title:
|
|
161
|
+
loader: m,
|
|
162
|
+
title: u,
|
|
163
163
|
children: h,
|
|
164
164
|
...x
|
|
165
|
-
} = e, p = n.useContext(
|
|
166
|
-
const C = U({ title:
|
|
165
|
+
} = e, p = n.useContext(b), w = n.useMemo(() => {
|
|
166
|
+
const C = U({ title: u, ...x });
|
|
167
167
|
return {
|
|
168
168
|
...C,
|
|
169
169
|
chart: {
|
|
@@ -181,7 +181,7 @@ const $ = n.forwardRef(
|
|
|
181
181
|
ref: r,
|
|
182
182
|
containerProps: { style: { height: "100%", width: "100%" } }
|
|
183
183
|
}
|
|
184
|
-
) : /* @__PURE__ */ s(z, { className: f, isLoading: a, children: /* @__PURE__ */ s(S, { loader:
|
|
184
|
+
) : /* @__PURE__ */ s(z, { className: f, isLoading: a, children: /* @__PURE__ */ s(S, { loader: m, children: /* @__PURE__ */ s(
|
|
185
185
|
H,
|
|
186
186
|
{
|
|
187
187
|
highcharts: l,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const g = (i) => {
|
|
2
2
|
const {
|
|
3
|
-
type:
|
|
4
|
-
title:
|
|
5
|
-
subtitle:
|
|
6
|
-
xAxisCategories:
|
|
7
|
-
xAxisTitle:
|
|
3
|
+
type: l = "column",
|
|
4
|
+
title: n,
|
|
5
|
+
subtitle: a,
|
|
6
|
+
xAxisCategories: s,
|
|
7
|
+
xAxisTitle: e,
|
|
8
8
|
yAxisTitle: p,
|
|
9
9
|
series: d,
|
|
10
10
|
options: o,
|
|
11
|
-
stacked:
|
|
12
|
-
is3D:
|
|
13
|
-
showLegend:
|
|
14
|
-
showTooltip:
|
|
15
|
-
} =
|
|
11
|
+
stacked: t,
|
|
12
|
+
is3D: c,
|
|
13
|
+
showLegend: f = !0,
|
|
14
|
+
showTooltip: y = !0
|
|
15
|
+
} = i, r = {
|
|
16
16
|
chart: {
|
|
17
|
-
type:
|
|
17
|
+
type: l,
|
|
18
18
|
backgroundColor: "transparent",
|
|
19
19
|
style: {
|
|
20
20
|
fontFamily: "Manrope, sans-serif"
|
|
21
21
|
},
|
|
22
|
-
options3d:
|
|
22
|
+
options3d: c ? {
|
|
23
23
|
enabled: !0,
|
|
24
24
|
alpha: 15,
|
|
25
25
|
beta: 15,
|
|
@@ -28,16 +28,16 @@ const y = (r) => {
|
|
|
28
28
|
} : void 0
|
|
29
29
|
},
|
|
30
30
|
title: {
|
|
31
|
-
text:
|
|
31
|
+
text: n ?? "",
|
|
32
32
|
align: "left",
|
|
33
33
|
style: {
|
|
34
34
|
fontSize: "18px",
|
|
35
35
|
fontWeight: "600",
|
|
36
|
-
color: "
|
|
36
|
+
color: "var(--color-foreground)"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
subtitle: {
|
|
40
|
-
text:
|
|
40
|
+
text: a,
|
|
41
41
|
align: "left"
|
|
42
42
|
},
|
|
43
43
|
credits: {
|
|
@@ -47,11 +47,11 @@ const y = (r) => {
|
|
|
47
47
|
enabled: !1
|
|
48
48
|
},
|
|
49
49
|
xAxis: {
|
|
50
|
-
categories:
|
|
51
|
-
title:
|
|
52
|
-
text:
|
|
50
|
+
categories: s,
|
|
51
|
+
title: e ? {
|
|
52
|
+
text: e,
|
|
53
53
|
style: {
|
|
54
|
-
color: "
|
|
54
|
+
color: "var(--color-foreground-tertiary)",
|
|
55
55
|
fontFamily: '"Manrope", sans-serif',
|
|
56
56
|
fontSize: "14px",
|
|
57
57
|
fontStyle: "normal",
|
|
@@ -60,11 +60,11 @@ const y = (r) => {
|
|
|
60
60
|
}
|
|
61
61
|
} : void 0,
|
|
62
62
|
gridLineWidth: 0,
|
|
63
|
-
lineColor: "
|
|
64
|
-
tickColor: "
|
|
63
|
+
lineColor: "var(--color-border)",
|
|
64
|
+
tickColor: "var(--color-border)",
|
|
65
65
|
labels: {
|
|
66
66
|
style: {
|
|
67
|
-
color: "
|
|
67
|
+
color: "var(--color-foreground-tertiary)",
|
|
68
68
|
fontFamily: '"Manrope", sans-serif',
|
|
69
69
|
fontSize: "12px",
|
|
70
70
|
fontWeight: "500"
|
|
@@ -76,7 +76,7 @@ const y = (r) => {
|
|
|
76
76
|
text: p,
|
|
77
77
|
margin: 30,
|
|
78
78
|
style: {
|
|
79
|
-
color: "
|
|
79
|
+
color: "var(--color-foreground-tertiary)",
|
|
80
80
|
fontFamily: '"Manrope", sans-serif',
|
|
81
81
|
fontSize: "14px",
|
|
82
82
|
fontStyle: "normal",
|
|
@@ -85,12 +85,12 @@ const y = (r) => {
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
lineWidth: 1,
|
|
88
|
-
lineColor: "
|
|
89
|
-
gridLineColor: "
|
|
88
|
+
lineColor: "var(--color-border)",
|
|
89
|
+
gridLineColor: "var(--color-border)",
|
|
90
90
|
gridLineDashStyle: "Dash",
|
|
91
91
|
labels: {
|
|
92
92
|
style: {
|
|
93
|
-
color: "
|
|
93
|
+
color: "var(--color-foreground-tertiary)",
|
|
94
94
|
fontFamily: '"Manrope", sans-serif',
|
|
95
95
|
fontSize: "12px",
|
|
96
96
|
fontWeight: "500"
|
|
@@ -98,38 +98,38 @@ const y = (r) => {
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
legend: {
|
|
101
|
-
enabled:
|
|
101
|
+
enabled: f,
|
|
102
102
|
symbolRadius: 2,
|
|
103
103
|
itemStyle: {
|
|
104
|
-
color: "
|
|
104
|
+
color: "var(--color-foreground-tertiary)",
|
|
105
105
|
fontWeight: "500",
|
|
106
106
|
fontSize: "12px"
|
|
107
107
|
},
|
|
108
108
|
itemHoverStyle: {
|
|
109
|
-
color: "
|
|
109
|
+
color: "var(--color-primary)"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
tooltip: {
|
|
113
|
-
enabled:
|
|
114
|
-
backgroundColor: "
|
|
115
|
-
borderColor: "
|
|
113
|
+
enabled: y,
|
|
114
|
+
backgroundColor: "var(--color-surface-floating)",
|
|
115
|
+
borderColor: "var(--color-border)",
|
|
116
116
|
borderRadius: 8,
|
|
117
117
|
style: {
|
|
118
|
-
color: "
|
|
118
|
+
color: "var(--color-surface-floating-foreground)"
|
|
119
119
|
},
|
|
120
120
|
shadow: !0
|
|
121
121
|
},
|
|
122
122
|
plotOptions: {
|
|
123
123
|
column: {
|
|
124
124
|
borderRadius: 4,
|
|
125
|
-
stacking:
|
|
125
|
+
stacking: t ? "normal" : void 0,
|
|
126
126
|
borderWidth: 0
|
|
127
127
|
},
|
|
128
128
|
bar: {
|
|
129
129
|
borderRadius: 4,
|
|
130
|
-
stacking:
|
|
130
|
+
stacking: t ? "normal" : void 0,
|
|
131
131
|
borderWidth: 1,
|
|
132
|
-
borderColor: "
|
|
132
|
+
borderColor: "var(--color-background)"
|
|
133
133
|
},
|
|
134
134
|
pie: {
|
|
135
135
|
allowPointSelect: !0,
|
|
@@ -148,45 +148,45 @@ const y = (r) => {
|
|
|
148
148
|
series: d
|
|
149
149
|
};
|
|
150
150
|
return {
|
|
151
|
-
...
|
|
151
|
+
...r,
|
|
152
152
|
...o,
|
|
153
153
|
chart: {
|
|
154
|
-
...
|
|
154
|
+
...r.chart,
|
|
155
155
|
...o?.chart
|
|
156
156
|
},
|
|
157
157
|
xAxis: {
|
|
158
|
-
...
|
|
158
|
+
...r.xAxis,
|
|
159
159
|
...Array.isArray(o?.xAxis) ? {} : o?.xAxis
|
|
160
160
|
},
|
|
161
|
-
yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((
|
|
162
|
-
...
|
|
163
|
-
...
|
|
161
|
+
yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((x) => ({
|
|
162
|
+
...r.yAxis,
|
|
163
|
+
...x
|
|
164
164
|
})) : {
|
|
165
|
-
...
|
|
165
|
+
...r.yAxis,
|
|
166
166
|
...o?.yAxis
|
|
167
167
|
},
|
|
168
168
|
plotOptions: {
|
|
169
|
-
...
|
|
169
|
+
...r.plotOptions,
|
|
170
170
|
...o?.plotOptions,
|
|
171
171
|
column: {
|
|
172
|
-
...
|
|
172
|
+
...r.plotOptions?.column,
|
|
173
173
|
...o?.plotOptions?.column
|
|
174
174
|
},
|
|
175
175
|
bar: {
|
|
176
|
-
...
|
|
176
|
+
...r.plotOptions?.bar,
|
|
177
177
|
...o?.plotOptions?.bar
|
|
178
178
|
},
|
|
179
179
|
pie: {
|
|
180
|
-
...
|
|
180
|
+
...r.plotOptions?.pie,
|
|
181
181
|
...o?.plotOptions?.pie
|
|
182
182
|
},
|
|
183
183
|
series: {
|
|
184
|
-
...
|
|
184
|
+
...r.plotOptions?.series,
|
|
185
185
|
...o?.plotOptions?.series
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
190
|
export {
|
|
191
|
-
|
|
191
|
+
g as getBaseChartOptions
|
|
192
192
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as m from "@radix-ui/react-checkbox";
|
|
4
|
-
import { Check as
|
|
4
|
+
import { Check as N, Minus as w } from "lucide-react";
|
|
5
5
|
import { cn as r } from "../../lib/utils.js";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const y = i.forwardRef(({ className: x, label: s, helperText: c, isError: n, disabled: a, checked: e, defaultChecked: u, onCheckedChange: g, ...o }, k) => {
|
|
7
|
+
const v = i.useId(), b = o.id || v, [f, h] = i.useState(
|
|
8
8
|
e !== void 0 ? e : u || !1
|
|
9
9
|
);
|
|
10
10
|
i.useEffect(() => {
|
|
11
|
-
e !== void 0 &&
|
|
11
|
+
e !== void 0 && h(e);
|
|
12
12
|
}, [e]);
|
|
13
|
-
const
|
|
14
|
-
e === void 0 && l
|
|
13
|
+
const p = (l) => {
|
|
14
|
+
e === void 0 && h(l), g?.(l);
|
|
15
15
|
};
|
|
16
|
-
return /* @__PURE__ */ d("div", { className: "flex items-center", "data-component": "checkbox", "data-state":
|
|
16
|
+
return /* @__PURE__ */ d("div", { className: "flex items-center", "data-component": "checkbox", "data-state": f === "indeterminate" ? "indeterminate" : f ? "checked" : "unchecked", "data-disabled": a || void 0, children: [
|
|
17
17
|
/* @__PURE__ */ t(
|
|
18
18
|
m.Root,
|
|
19
19
|
{
|
|
20
|
-
ref:
|
|
21
|
-
id:
|
|
20
|
+
ref: k,
|
|
21
|
+
id: b,
|
|
22
22
|
className: r(
|
|
23
|
-
"peer h-4 w-4 shrink-0 rounded-[4px] border border-
|
|
23
|
+
"peer h-4 w-4 shrink-0 rounded-[4px] border border-stroke-field bg-canvas-elevated ring-offset-canvas focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-brand data-[state=checked]:bg-accent data-[state=checked]:text-brand data-[state=indeterminate]:border-brand data-[state=indeterminate]:bg-accent data-[state=indeterminate]:text-brand mr-[7px]",
|
|
24
24
|
n && "border-destructive focus-visible:ring-destructive",
|
|
25
|
-
a && "border-
|
|
26
|
-
|
|
25
|
+
a && "border-stroke text-disabled-foreground data-[state=checked]:bg-disabled-surface data-[state=checked]:text-disabled-foreground",
|
|
26
|
+
x
|
|
27
27
|
),
|
|
28
28
|
checked: e,
|
|
29
29
|
defaultChecked: u,
|
|
30
|
-
onCheckedChange:
|
|
30
|
+
onCheckedChange: p,
|
|
31
31
|
disabled: a,
|
|
32
32
|
...o,
|
|
33
33
|
children: /* @__PURE__ */ d(
|
|
@@ -36,22 +36,22 @@ const w = i.forwardRef(({ className: f, label: s, helperText: c, isError: n, dis
|
|
|
36
36
|
"data-checkbox": "indicator",
|
|
37
37
|
className: r("flex items-center justify-center text-current group"),
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */ t(
|
|
40
|
-
/* @__PURE__ */ t(
|
|
39
|
+
/* @__PURE__ */ t(N, { className: "h-3 w-3 hidden group-data-[state=checked]:block", strokeWidth: 3 }),
|
|
40
|
+
/* @__PURE__ */ t(w, { className: "h-3 w-3 hidden group-data-[state=indeterminate]:block", strokeWidth: 3 })
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
)
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
(s || c) && /* @__PURE__ */ d("div", { className: "grid gap-
|
|
46
|
+
(s || c) && /* @__PURE__ */ d("div", { className: "grid gap-[6px] leading-none", children: [
|
|
47
47
|
s && /* @__PURE__ */ d(
|
|
48
48
|
"label",
|
|
49
49
|
{
|
|
50
|
-
htmlFor:
|
|
50
|
+
htmlFor: b,
|
|
51
51
|
className: r(
|
|
52
|
-
"text-sm font-medium leading-[20px] text-secondary-foreground peer-data-[state=checked]:text-
|
|
52
|
+
"text-sm font-medium leading-[20px] text-secondary-foreground peer-data-[state=checked]:text-content peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
53
53
|
n && "text-destructive",
|
|
54
|
-
a && "text-disabled-
|
|
54
|
+
a && "text-disabled-foreground"
|
|
55
55
|
),
|
|
56
56
|
children: [
|
|
57
57
|
s,
|
|
@@ -60,11 +60,11 @@ const w = i.forwardRef(({ className: f, label: s, helperText: c, isError: n, dis
|
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
c && /* @__PURE__ */ t("p", { className: r("text-sm text-muted
|
|
63
|
+
c && /* @__PURE__ */ t("p", { className: r("text-sm text-content-muted", n && "text-destructive"), children: c })
|
|
64
64
|
] })
|
|
65
65
|
] });
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
y.displayName = m.Root.displayName;
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
y as Checkbox
|
|
70
70
|
};
|
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Chips — IA Design System v3.1 (Figma: Chips `14412:3358`).
|
|
5
|
+
* - 12px radius (`rounded-xl`), 12×6 padding, 14px / 20px Manrope Medium.
|
|
6
|
+
* - Neutral: white fill, `#D9DDE7` border, `#60697D` label; hover accent + `#3649C4` border/text.
|
|
7
|
+
* - Selected: `#4259EE` border + label (and check / radio per `selectionMode`).
|
|
8
|
+
* - `selectionMode`: default (text only), `single` (radio), `multi` (check); optional `trailing` for count.
|
|
9
|
+
*/
|
|
3
10
|
declare const chipVariants: (props?: {
|
|
4
|
-
variant?: "default" | "secondary" | "tertiary" | "destructive" | "outline";
|
|
5
|
-
size?: "sm" | "md" | "lg";
|
|
11
|
+
variant?: "default" | "primary" | "secondary" | "tertiary" | "destructive" | "outline" | "neutral";
|
|
6
12
|
shape?: "rounded" | "pill";
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
14
|
+
selected?: boolean;
|
|
7
15
|
} & import('class-variance-authority/types').ClassProp) => string;
|
|
16
|
+
export type ChipSelectionMode = "none" | "single" | "multi";
|
|
8
17
|
export interface ChipProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof chipVariants> {
|
|
9
18
|
onRemove?: () => void;
|
|
10
19
|
removable?: boolean;
|
|
11
20
|
asChild?: boolean;
|
|
21
|
+
/** Single- vs multi-select affordance (Figma columns). */
|
|
22
|
+
selectionMode?: ChipSelectionMode;
|
|
23
|
+
/** Selected / pressed state (border + label #4259EE). */
|
|
24
|
+
selected?: boolean;
|
|
25
|
+
/** e.g. count for “Multi select + Number” */
|
|
26
|
+
trailing?: React.ReactNode;
|
|
27
|
+
disabled?: boolean;
|
|
12
28
|
}
|
|
13
29
|
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export { Chip
|
|
30
|
+
export { Chip };
|