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.
Files changed (149) hide show
  1. package/dist/components/ui/accordion.d.ts +4 -1
  2. package/dist/components/ui/accordion.js +28 -22
  3. package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +11 -11
  4. package/dist/components/ui/ag-grid-react/cell-renderers/checkbox-display-renderer.js +12 -12
  5. package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +13 -13
  6. package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +13 -13
  7. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +30 -30
  8. package/dist/components/ui/ag-grid-react/cell-renderers/editors/percent-progress-cell-editor.js +13 -13
  9. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +16 -16
  10. package/dist/components/ui/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +17 -17
  11. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +11 -11
  12. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -2
  13. package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +11 -13
  14. package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +8 -8
  15. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +6 -6
  16. package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.d.ts +1 -1
  17. package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.js +14 -14
  18. package/dist/components/ui/ag-grid-react/cell-renderers/switch-display-renderer.js +18 -18
  19. package/dist/components/ui/ag-grid-react/cell-renderers/textarea-display-renderer.js +6 -6
  20. package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +14 -14
  21. package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +35 -35
  22. package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +49 -49
  23. package/dist/components/ui/ag-grid-react/headers/components/header-info.js +29 -29
  24. package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +9 -9
  25. package/dist/components/ui/ag-grid-react/headers/components/section-renderers.js +20 -20
  26. package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +10 -10
  27. package/dist/components/ui/ag-grid-react/headers/custom-header.js +76 -76
  28. package/dist/components/ui/ag-grid-react/headers/header-search-input.js +118 -118
  29. package/dist/components/ui/ag-grid-react/index.js +121 -102
  30. package/dist/components/ui/alert-dialog.js +6 -6
  31. package/dist/components/ui/alert.d.ts +4 -3
  32. package/dist/components/ui/alert.js +182 -64
  33. package/dist/components/ui/avatar.js +5 -5
  34. package/dist/components/ui/badge.d.ts +7 -2
  35. package/dist/components/ui/badge.js +105 -32
  36. package/dist/components/ui/breadcrumb.js +26 -21
  37. package/dist/components/ui/button-group.d.ts +7 -0
  38. package/dist/components/ui/button-group.js +116 -91
  39. package/dist/components/ui/button-variants.d.ts +7 -2
  40. package/dist/components/ui/button-variants.js +31 -16
  41. package/dist/components/ui/button.d.ts +2 -2
  42. package/dist/components/ui/button.js +10 -10
  43. package/dist/components/ui/calendar.js +185 -184
  44. package/dist/components/ui/card.js +24 -24
  45. package/dist/components/ui/chart/chart.js +27 -27
  46. package/dist/components/ui/chart/chart.utils.js +50 -50
  47. package/dist/components/ui/checkbox.js +22 -22
  48. package/dist/components/ui/chips.d.ts +19 -3
  49. package/dist/components/ui/chips.js +140 -41
  50. package/dist/components/ui/command-palette/command-palette-layout.d.ts +28 -0
  51. package/dist/components/ui/command-palette/command-palette-layout.js +59 -0
  52. package/dist/components/ui/command-palette/command-palette.js +254 -264
  53. package/dist/components/ui/command-palette/index.d.ts +1 -1
  54. package/dist/components/ui/command-palette/index.js +42 -41
  55. package/dist/components/ui/command-palette/kbd.js +18 -18
  56. package/dist/components/ui/command-palette/shortcut-settings.d.ts +3 -3
  57. package/dist/components/ui/command-palette/shortcut-settings.js +105 -111
  58. package/dist/components/ui/command-palette/utils.d.ts +6 -1
  59. package/dist/components/ui/command-palette/utils.js +81 -74
  60. package/dist/components/ui/data-table/data-table-column-list.js +31 -31
  61. package/dist/components/ui/data-table/data-table-constants.d.ts +6 -0
  62. package/dist/components/ui/data-table/data-table-constants.js +4 -0
  63. package/dist/components/ui/data-table/data-table-context.d.ts +4 -0
  64. package/dist/components/ui/data-table/data-table-format-options.js +35 -35
  65. package/dist/components/ui/data-table/data-table-sheet.d.ts +4 -4
  66. package/dist/components/ui/data-table/data-table-sheet.js +91 -58
  67. package/dist/components/ui/data-table/data-table-view-options.js +29 -29
  68. package/dist/components/ui/data-table/data-table.js +84 -52
  69. package/dist/components/ui/data-table/index.d.ts +1 -0
  70. package/dist/components/ui/data-table/index.js +15 -13
  71. package/dist/components/ui/date-picker/date-picker.js +35 -35
  72. package/dist/components/ui/date-picker/date-range-picker.js +166 -164
  73. package/dist/components/ui/date-picker/month-picker.js +14 -14
  74. package/dist/components/ui/date-picker/month-range-picker.js +198 -189
  75. package/dist/components/ui/date-picker/multi-date-picker.js +14 -14
  76. package/dist/components/ui/date-picker/multi-month-picker.js +1 -1
  77. package/dist/components/ui/date-picker/multi-week-picker.js +1 -1
  78. package/dist/components/ui/date-picker/week-picker.js +2 -2
  79. package/dist/components/ui/date-picker/week-range-picker.js +164 -162
  80. package/dist/components/ui/dialog.js +25 -28
  81. package/dist/components/ui/drawer.js +40 -40
  82. package/dist/components/ui/dropdown-menu.js +72 -72
  83. package/dist/components/ui/empty-container.js +73 -69
  84. package/dist/components/ui/file-upload.js +137 -135
  85. package/dist/components/ui/filter-panel/filter-panel.d.ts +2 -2
  86. package/dist/components/ui/filter-panel/filter-panel.js +175 -97
  87. package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
  88. package/dist/components/ui/filter-strip/filter-strip.js +63 -50
  89. package/dist/components/ui/filter-strip/filter-summary.d.ts +4 -1
  90. package/dist/components/ui/filter-strip/filter-summary.js +230 -146
  91. package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
  92. package/dist/components/ui/header.d.ts +7 -3
  93. package/dist/components/ui/header.js +87 -79
  94. package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +44 -44
  95. package/dist/components/ui/hover-card.js +10 -10
  96. package/dist/components/ui/input.js +79 -70
  97. package/dist/components/ui/loader.js +16 -16
  98. package/dist/components/ui/nested-list/components/NestedListCategoryFilters.js +16 -16
  99. package/dist/components/ui/nested-list/components/NestedListHeader.js +27 -27
  100. package/dist/components/ui/nested-list/components/SortableItem.js +58 -58
  101. package/dist/components/ui/notification-panel/notification-item.js +32 -32
  102. package/dist/components/ui/notification-panel/notification-list.js +24 -24
  103. package/dist/components/ui/notification-panel/notification-panel.js +26 -26
  104. package/dist/components/ui/popover.js +22 -22
  105. package/dist/components/ui/progress.js +34 -34
  106. package/dist/components/ui/prompt.js +48 -48
  107. package/dist/components/ui/radio-group.js +63 -54
  108. package/dist/components/ui/select/components/LabelWithSequence.js +6 -6
  109. package/dist/components/ui/select/components/Submenu.js +33 -33
  110. package/dist/components/ui/select/select.js +425 -376
  111. package/dist/components/ui/sheet.js +88 -66
  112. package/dist/components/ui/sidebar.js +342 -296
  113. package/dist/components/ui/skeleton.js +6 -6
  114. package/dist/components/ui/slider.js +17 -17
  115. package/dist/components/ui/statistics-card.d.ts +86 -0
  116. package/dist/components/ui/statistics-card.hooks.d.ts +150 -0
  117. package/dist/components/ui/statistics-card.hooks.js +100 -0
  118. package/dist/components/ui/statistics-card.js +259 -0
  119. package/dist/components/ui/stepper.js +51 -51
  120. package/dist/components/ui/switch.js +7 -7
  121. package/dist/components/ui/tabs.js +70 -70
  122. package/dist/components/ui/tag-group.d.ts +1 -0
  123. package/dist/components/ui/tag-group.js +14 -13
  124. package/dist/components/ui/tag.js +43 -43
  125. package/dist/components/ui/textarea.js +86 -58
  126. package/dist/components/ui/toast.js +39 -39
  127. package/dist/components/ui/tooltip.js +23 -23
  128. package/dist/components/ui/types/date-picker.types.d.ts +1 -0
  129. package/dist/components/ui/types/filter-panel.types.d.ts +3 -0
  130. package/dist/components/ui/types/filter-strip.types.d.ts +14 -0
  131. package/dist/components/ui/types/horizontal-scroller.types.d.ts +1 -1
  132. package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
  133. package/dist/i18n/defaultMessages.d.ts +8 -0
  134. package/dist/i18n/defaultMessages.js +15 -9
  135. package/dist/i18n/locales/de.js +7 -1
  136. package/dist/i18n/locales/es.js +7 -1
  137. package/dist/i18n/locales/hi.js +7 -1
  138. package/dist/i18n/locales/kn.js +7 -1
  139. package/dist/icons/assets/bulk-edit.svg.js +5 -0
  140. package/dist/icons/assets/clock.svg.js +5 -0
  141. package/dist/icons/assets/statistics.svg.js +5 -0
  142. package/dist/icons/index.d.ts +3 -0
  143. package/dist/icons/index.js +254 -206
  144. package/dist/impact-nova.css +1 -1
  145. package/dist/index.d.ts +1 -0
  146. package/dist/index.js +361 -347
  147. package/package.json +3 -2
  148. package/tailwind.config.js +259 -152
  149. /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 o from "react";
3
- import { cn as t } from "../../lib/utils.js";
4
- const s = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
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: t(
10
- "rounded-xl border bg-card text-card-foreground shadow",
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 i = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
17
+ const n = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
18
18
  "div",
19
19
  {
20
20
  ref: r,
21
- className: t("flex flex-col space-y-1.5 p-6", a),
21
+ className: o("flex flex-col space-y-1.5 p-6", a),
22
22
  ...e
23
23
  }
24
24
  ));
25
- i.displayName = "CardHeader";
26
- const c = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
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: t("font-semibold leading-none tracking-tight", a),
30
+ className: o("font-semibold leading-none tracking-tight", a),
31
31
  ...e
32
32
  }
33
33
  ));
34
- c.displayName = "CardTitle";
35
- const n = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
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: t("text-sm text-muted-foreground", a),
39
+ className: o("text-sm text-content-muted", a),
40
40
  ...e
41
41
  }
42
42
  ));
43
- n.displayName = "CardDescription";
44
- const m = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("p-6 pt-0", a), ...e }));
45
- m.displayName = "CardContent";
46
- const f = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
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: t("flex items-center p-6 pt-0", a),
50
+ className: o("flex items-center p-6 pt-0", a),
51
51
  ...e
52
52
  }
53
53
  ));
54
- f.displayName = "CardFooter";
54
+ m.displayName = "CardFooter";
55
55
  export {
56
56
  s as Card,
57
- m as CardContent,
58
- n as CardDescription,
59
- f as CardFooter,
60
- i as CardHeader,
61
- c as CardTitle
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 b } from "react/jsx-runtime";
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 F = n.createContext(null), k = () => {
27
- const e = n.useContext(F);
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), u = n.useRef(null), [m, h] = n.useState(!1), [x, p] = n.useState(!1);
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
- m ? C() : w();
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 (!u?.current?.chart) return;
60
- const t = u.current.chart;
59
+ if (!m?.current?.chart) return;
60
+ const t = m.current.chart;
61
61
  let d = null;
62
62
  const E = () => {
63
- m && a.current ? (d && cancelAnimationFrame(d), d = requestAnimationFrame(() => {
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
- }, [m]), /* @__PURE__ */ s(
79
- F.Provider,
78
+ }, [u]), /* @__PURE__ */ s(
79
+ b.Provider,
80
80
  {
81
81
  value: {
82
- isExpanded: m,
82
+ isExpanded: u,
83
83
  toggleFullscreen: q,
84
84
  isLoading: i,
85
85
  containerRef: a,
86
- chartComponentRef: u
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-card transition-all duration-200 ease-in-out",
95
- m && "fixed inset-0 z-50 h-screen w-screen p-4 bg-background flex flex-col",
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(), u = o("aria.toggleFullscreen");
122
- return /* @__PURE__ */ b(
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": u,
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: u })
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: u, isExpanded: m } = 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]", m && "min-h-0"), ...o, children: i }) : /* @__PURE__ */ b("div", { ref: f, className: g(e, "w-full relative flex-1 min-h-[300px]", m && "min-h-0"), ...o, children: [
145
- a && /* @__PURE__ */ b("div", { className: "absolute inset-0 z-10 bg-background/50 flex flex-col gap-2 p-4", children: [
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: u }) : h)
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: u,
162
- title: m,
161
+ loader: m,
162
+ title: u,
163
163
  children: h,
164
164
  ...x
165
- } = e, p = n.useContext(F), w = n.useMemo(() => {
166
- const C = U({ title: m, ...x });
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: u, children: /* @__PURE__ */ s(
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 y = (r) => {
1
+ const g = (i) => {
2
2
  const {
3
- type: s = "column",
4
- title: l,
5
- subtitle: n,
6
- xAxisCategories: a,
7
- xAxisTitle: t,
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: i,
12
- is3D: f,
13
- showLegend: x = !0,
14
- showTooltip: h = !0
15
- } = r, e = {
11
+ stacked: t,
12
+ is3D: c,
13
+ showLegend: f = !0,
14
+ showTooltip: y = !0
15
+ } = i, r = {
16
16
  chart: {
17
- type: s,
17
+ type: l,
18
18
  backgroundColor: "transparent",
19
19
  style: {
20
20
  fontFamily: "Manrope, sans-serif"
21
21
  },
22
- options3d: f ? {
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: l ?? "",
31
+ text: n ?? "",
32
32
  align: "left",
33
33
  style: {
34
34
  fontSize: "18px",
35
35
  fontWeight: "600",
36
- color: "hsl(var(--foreground))"
36
+ color: "var(--color-foreground)"
37
37
  }
38
38
  },
39
39
  subtitle: {
40
- text: n,
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: a,
51
- title: t ? {
52
- text: t,
50
+ categories: s,
51
+ title: e ? {
52
+ text: e,
53
53
  style: {
54
- color: "#60697d",
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: "hsl(var(--border))",
64
- tickColor: "hsl(var(--border))",
63
+ lineColor: "var(--color-border)",
64
+ tickColor: "var(--color-border)",
65
65
  labels: {
66
66
  style: {
67
- color: "#60697d",
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: "#60697d",
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: "hsl(var(--border))",
89
- gridLineColor: "hsl(var(--border))",
88
+ lineColor: "var(--color-border)",
89
+ gridLineColor: "var(--color-border)",
90
90
  gridLineDashStyle: "Dash",
91
91
  labels: {
92
92
  style: {
93
- color: "#60697d",
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: x,
101
+ enabled: f,
102
102
  symbolRadius: 2,
103
103
  itemStyle: {
104
- color: "#60697d",
104
+ color: "var(--color-foreground-tertiary)",
105
105
  fontWeight: "500",
106
106
  fontSize: "12px"
107
107
  },
108
108
  itemHoverStyle: {
109
- color: "hsl(var(--primary))"
109
+ color: "var(--color-primary)"
110
110
  }
111
111
  },
112
112
  tooltip: {
113
- enabled: h,
114
- backgroundColor: "hsl(var(--popover))",
115
- borderColor: "hsl(var(--border))",
113
+ enabled: y,
114
+ backgroundColor: "var(--color-surface-floating)",
115
+ borderColor: "var(--color-border)",
116
116
  borderRadius: 8,
117
117
  style: {
118
- color: "hsl(var(--popover-foreground))"
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: i ? "normal" : void 0,
125
+ stacking: t ? "normal" : void 0,
126
126
  borderWidth: 0
127
127
  },
128
128
  bar: {
129
129
  borderRadius: 4,
130
- stacking: i ? "normal" : void 0,
130
+ stacking: t ? "normal" : void 0,
131
131
  borderWidth: 1,
132
- borderColor: "#ffffff"
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
- ...e,
151
+ ...r,
152
152
  ...o,
153
153
  chart: {
154
- ...e.chart,
154
+ ...r.chart,
155
155
  ...o?.chart
156
156
  },
157
157
  xAxis: {
158
- ...e.xAxis,
158
+ ...r.xAxis,
159
159
  ...Array.isArray(o?.xAxis) ? {} : o?.xAxis
160
160
  },
161
- yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((b) => ({
162
- ...e.yAxis,
163
- ...b
161
+ yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((x) => ({
162
+ ...r.yAxis,
163
+ ...x
164
164
  })) : {
165
- ...e.yAxis,
165
+ ...r.yAxis,
166
166
  ...o?.yAxis
167
167
  },
168
168
  plotOptions: {
169
- ...e.plotOptions,
169
+ ...r.plotOptions,
170
170
  ...o?.plotOptions,
171
171
  column: {
172
- ...e.plotOptions?.column,
172
+ ...r.plotOptions?.column,
173
173
  ...o?.plotOptions?.column
174
174
  },
175
175
  bar: {
176
- ...e.plotOptions?.bar,
176
+ ...r.plotOptions?.bar,
177
177
  ...o?.plotOptions?.bar
178
178
  },
179
179
  pie: {
180
- ...e.plotOptions?.pie,
180
+ ...r.plotOptions?.pie,
181
181
  ...o?.plotOptions?.pie
182
182
  },
183
183
  series: {
184
- ...e.plotOptions?.series,
184
+ ...r.plotOptions?.series,
185
185
  ...o?.plotOptions?.series
186
186
  }
187
187
  }
188
188
  };
189
189
  };
190
190
  export {
191
- y as getBaseChartOptions
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 y, Minus as N } from "lucide-react";
4
+ import { Check as N, Minus as w } from "lucide-react";
5
5
  import { cn as r } from "../../lib/utils.js";
6
- const w = i.forwardRef(({ className: f, label: s, helperText: c, isError: n, disabled: a, checked: e, defaultChecked: u, onCheckedChange: g, ...o }, p) => {
7
- const k = i.useId(), h = o.id || k, [b, l] = i.useState(
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 && l(e);
11
+ e !== void 0 && h(e);
12
12
  }, [e]);
13
- const v = (x) => {
14
- e === void 0 && l(x), g?.(x);
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": b === "indeterminate" ? "indeterminate" : b ? "checked" : "unchecked", "data-disabled": a || void 0, children: [
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: p,
21
- id: h,
20
+ ref: k,
21
+ id: b,
22
22
  className: r(
23
- "peer h-4 w-4 shrink-0 rounded-[4px] border border-tertiary-border bg-white ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-accent data-[state=checked]:text-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-accent data-[state=indeterminate]:text-primary mr-[7px]",
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-border text-disabled-text data-[state=checked]:bg-disabled-secondary-bg data-[state=checked]:text-disabled-text",
26
- f
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: v,
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(y, { className: "h-3 w-3 hidden group-data-[state=checked]:block", strokeWidth: 3 }),
40
- /* @__PURE__ */ t(N, { className: "h-3 w-3 hidden group-data-[state=indeterminate]:block", strokeWidth: 3 })
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-1.5 leading-none", children: [
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: h,
50
+ htmlFor: b,
51
51
  className: r(
52
- "text-sm font-medium leading-[20px] text-secondary-foreground peer-data-[state=checked]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
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-text"
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-foreground", n && "text-destructive"), children: c })
63
+ c && /* @__PURE__ */ t("p", { className: r("text-sm text-content-muted", n && "text-destructive"), children: c })
64
64
  ] })
65
65
  ] });
66
66
  });
67
- w.displayName = m.Root.displayName;
67
+ y.displayName = m.Root.displayName;
68
68
  export {
69
- w as Checkbox
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, chipVariants };
30
+ export { Chip };