impact-nova 2.1.0-alpha.7 → 2.1.0-alpha.8

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 (106) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
  2. package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
  3. package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
  4. package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
  5. package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
  6. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
  7. package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
  8. package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
  9. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  10. package/dist/components/data/ag-grid-react/index.js +109 -100
  11. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
  12. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
  13. package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
  14. package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
  15. package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
  16. package/dist/components/data/ag-grid-react/theme.js +93 -21
  17. package/dist/components/data/data-table/column-indicator.d.ts +1 -1
  18. package/dist/components/data/data-table/column-indicator.js +15 -11
  19. package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
  20. package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
  21. package/dist/components/data/data-table/data-table-saved-views.js +37 -37
  22. package/dist/components/data/data-table/data-table.js +78 -73
  23. package/dist/components/data/data-table/data-table.types.d.ts +7 -1
  24. package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
  25. package/dist/components/data/data-table/indicator-legend.js +20 -17
  26. package/dist/components/data/data-table/pin-switch.js +9 -9
  27. package/dist/components/data/data-table/use-data-table-column-list-sync.js +92 -89
  28. package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
  29. package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
  30. package/dist/components/data/nested-list/nested-list.js +107 -97
  31. package/dist/components/data-display/calendar/calendar.d.ts +1 -1
  32. package/dist/components/data-display/calendar/calendar.js +194 -189
  33. package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
  34. package/dist/components/data-display/chart/chart-palette.js +28 -0
  35. package/dist/components/data-display/chart/chart.js +121 -115
  36. package/dist/components/data-display/chart/chart.utils.js +9 -6
  37. package/dist/components/data-display/chart/index.d.ts +1 -0
  38. package/dist/components/data-display/chart/index.js +15 -9
  39. package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
  40. package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
  41. package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
  42. package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
  43. package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
  44. package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
  45. package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
  46. package/dist/components/feedback/dialog/dialog.js +3 -3
  47. package/dist/components/feedback/drawer/drawer.js +32 -32
  48. package/dist/components/feedback/sheet/sheet.js +8 -8
  49. package/dist/components/feedback/sheet/sheet.variants.js +1 -1
  50. package/dist/components/feedback/toast/toast.js +83 -92
  51. package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
  52. package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
  53. package/dist/components/flows/command-palette/command-palette.js +245 -258
  54. package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
  55. package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
  56. package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
  57. package/dist/components/flows/filter-panel/filter-panel.js +99 -104
  58. package/dist/components/flows/filter-strip/filter-summary.js +41 -41
  59. package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
  60. package/dist/components/flows/wizard/wizard.js +32 -32
  61. package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
  62. package/dist/components/forms/choice-card/choice-card.js +156 -166
  63. package/dist/components/forms/combobox/combobox.js +70 -70
  64. package/dist/components/forms/date-picker/date-picker.js +31 -30
  65. package/dist/components/forms/file-upload/file-upload.js +146 -168
  66. package/dist/components/forms/prompt/prompt.js +47 -48
  67. package/dist/components/forms/select/components/SelectAllRow.js +14 -14
  68. package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
  69. package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
  70. package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
  71. package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
  72. package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
  73. package/dist/components/forms/select/select.d.ts +5 -4
  74. package/dist/components/forms/select/select.js +123 -120
  75. package/dist/components/forms/select/select.types.d.ts +95 -204
  76. package/dist/components/forms/slider/slider.js +17 -17
  77. package/dist/components/forms/smart-input/smart-input.js +49 -49
  78. package/dist/components/forms/textarea/textarea.js +25 -25
  79. package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
  80. package/dist/components/layout/header/header.d.ts +5 -17
  81. package/dist/components/layout/header/header.js +113 -116
  82. package/dist/components/layout/header/header.types.d.ts +3 -0
  83. package/dist/components/layout/sidebar/sidebar.js +5 -5
  84. package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
  85. package/dist/components/primitives/accordion/accordion.js +38 -41
  86. package/dist/components/primitives/kbd/kbd.variants.js +1 -1
  87. package/dist/i18n/defaultMessages.d.ts +2 -0
  88. package/dist/i18n/defaultMessages.js +6 -4
  89. package/dist/i18n/locales/de.js +2 -0
  90. package/dist/i18n/locales/es.js +2 -0
  91. package/dist/i18n/locales/hi.js +2 -0
  92. package/dist/i18n/locales/kn.js +2 -0
  93. package/dist/impact-nova-base.scss +8 -5
  94. package/dist/impact-nova-components.css +2 -2
  95. package/dist/impact-nova-tokens.scss +346 -189
  96. package/dist/impact-nova.css +1 -1
  97. package/dist/index.js +505 -499
  98. package/dist/lib/resolve-design-token-color.d.ts +5 -0
  99. package/dist/lib/resolve-design-token-color.js +12 -0
  100. package/dist/llms/rules/ag-grid.js +1 -1
  101. package/dist/llms/rules/installation.js +1 -1
  102. package/dist/llms/rules/requirements.js +1 -1
  103. package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
  104. package/dist/theme/tokens/chart-series-palette.json.js +7 -0
  105. package/package.json +22 -254
  106. package/tailwind.config.js +10 -229
@@ -1,99 +1,86 @@
1
1
  import { jsxs as u, jsx as i } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { cn as d } from "../../../lib/utils.js";
4
- import { Checkbox as k } from "../../forms/checkbox/checkbox.js";
5
- import { Tooltip as R, TooltipTrigger as I, TooltipContent as j } from "../../feedback/tooltip/tooltip.js";
6
- import { Info as L } from "impact-nova-icons";
7
- import { Chart as P } from "../chart/chart.js";
8
- import { useStatisticsChartData as W, useStatisticsChartLabel as G, useStatisticsChartSeries as $, useStatisticsChartOptions as B } from "./statistics-card.hooks.js";
9
- import { useStatisticsCardContext as y, StatisticsCardContext as O } from "./statistics-card-context.js";
10
- const H = n.forwardRef(
11
- ({ className: s, items: e, onItemToggle: a, chartSize: t = 110, config: o, mapItem: l, children: c, ...m }, r) => {
12
- const f = n.useMemo(
13
- () => l ? e.map((N, T) => l(N, T)) : e,
14
- [e, l]
15
- ), p = "var(--color-canvas-subtle, #f8f9fb)", x = "px-5 py-4", h = "gap-4 md:gap-6 lg:gap-8", g = "w-full min-w-0 max-w-[439px]", C = o?.colors?.background || p, b = o?.spacing?.rootPadding || x, w = o?.spacing?.rootGap || h, S = o?.spacing?.rootWidth || g, v = n.useMemo(
16
- () => ({ items: f, onItemToggle: a, chartSize: t, config: o }),
17
- [f, a, t, o]
2
+ import * as S from "react";
3
+ import { createComponent as m } from "../../../lib/primitives/create-component.js";
4
+ import { createCompoundPart as v } from "../../../lib/primitives/create-compound.js";
5
+ import { cn as p } from "../../../lib/utils.js";
6
+ import { Checkbox as P } from "../../forms/checkbox/checkbox.js";
7
+ import { Tooltip as j, TooltipTrigger as L, TooltipContent as W } from "../../feedback/tooltip/tooltip.js";
8
+ import { Info as G } from "impact-nova-icons";
9
+ import { Chart as B } from "../chart/chart.js";
10
+ import { useStatisticsChartData as $, useStatisticsChartLabel as O, useStatisticsChartSeries as R, useStatisticsChartOptions as H } from "./statistics-card.hooks.js";
11
+ import { useStatisticsCardContext as y, StatisticsCardContext as M } from "./statistics-card-context.js";
12
+ const X = m(
13
+ "StatisticsCardRoot",
14
+ ({ className: r, items: a, onItemToggle: s, chartSize: t = 110, config: o, mapItem: n, children: c, ...l }, e) => {
15
+ const d = S.useMemo(
16
+ () => n ? a.map((k, I) => n(k, I)) : a,
17
+ [a, n]
18
+ ), f = "var(--color-surface-subtle)", x = "px-5 py-4", h = "gap-4 md:gap-6 lg:gap-8", g = "w-full min-w-0 max-w-[439px]", C = o?.colors?.background || f, w = o?.spacing?.rootPadding || x, b = o?.spacing?.rootGap || h, N = o?.spacing?.rootWidth || g, T = S.useMemo(
19
+ () => ({ items: d, onItemToggle: s, chartSize: t, config: o }),
20
+ [d, s, t, o]
18
21
  );
19
- return /* @__PURE__ */ i(O.Provider, { value: v, children: /* @__PURE__ */ i(
22
+ return /* @__PURE__ */ i(M.Provider, { value: T, children: /* @__PURE__ */ i(
20
23
  "div",
21
24
  {
22
- ref: r,
25
+ ref: e,
23
26
  role: "region",
24
27
  "aria-roledescription": "statistics card",
25
28
  "data-component": "statistics-card",
26
- className: d(
29
+ className: p(
27
30
  "flex flex-row flex-wrap md:flex-nowrap items-center justify-between rounded-lg box-border min-w-0 overflow-hidden bg-[var(--statistics-card-bg)]",
28
- S,
29
- b,
31
+ N,
30
32
  w,
31
- s
33
+ b,
34
+ r
32
35
  ),
33
36
  style: { "--statistics-card-bg": C },
34
- ...m,
37
+ ...l,
35
38
  children: c
36
39
  }
37
40
  ) });
38
41
  }
39
- );
40
- H.displayName = "StatisticsCardRoot";
41
- const M = n.forwardRef(({ className: s, children: e, ...a }, t) => /* @__PURE__ */ i(
42
- "div",
43
- {
44
- ref: t,
45
- className: d("flex flex-col items-start gap-4 flex-shrink-0 min-w-0", s),
46
- ...a,
47
- children: e
48
- }
49
- ));
50
- M.displayName = "StatisticsCardHeader";
51
- const D = n.forwardRef(
52
- ({ className: s, children: e, ...a }, t) => /* @__PURE__ */ i(
53
- "div",
54
- {
55
- ref: t,
56
- className: d("flex flex-row items-center gap-1.5 min-w-0 max-w-[150px]", s),
57
- ...a,
58
- children: e
59
- }
60
- )
61
- );
62
- D.displayName = "StatisticsCardTitle";
63
- const V = n.forwardRef(
64
- ({ icon: s, className: e, ...a }, t) => /* @__PURE__ */ i(
42
+ ), Y = v("statistics-card", {
43
+ part: "header",
44
+ displayName: "StatisticsCardHeader",
45
+ className: "flex flex-col items-start gap-4 flex-shrink-0 min-w-0"
46
+ }), Z = v("statistics-card", {
47
+ part: "title",
48
+ displayName: "StatisticsCardTitle",
49
+ className: "flex flex-row items-center gap-1.5 min-w-0 max-w-[150px]"
50
+ }), _ = m(
51
+ "StatisticsCardTitleIcon",
52
+ ({ icon: r, className: a, ...s }, t) => /* @__PURE__ */ i(
65
53
  "div",
66
54
  {
67
55
  ref: t,
68
- className: d("flex items-center justify-center w-6 h-6 p-1.5 bg-accent rounded-full shrink-0", e),
69
- ...a,
70
- children: s
56
+ "data-component": "statistics-card-title-icon",
57
+ className: p("flex items-center justify-center w-6 h-6 p-1.5 bg-accent rounded-full shrink-0", a),
58
+ ...s,
59
+ children: r
71
60
  }
72
61
  )
73
- );
74
- V.displayName = "StatisticsCardTitleIcon";
75
- const q = n.forwardRef(
76
- ({ className: s, children: e, ...a }, t) => /* @__PURE__ */ i(
62
+ ), z = m(
63
+ "StatisticsCardTitleText",
64
+ ({ className: r, children: a, ...s }, t) => /* @__PURE__ */ i(
77
65
  "span",
78
66
  {
79
67
  ref: t,
80
- className: d("font-semibold text-base leading-[1.5em] text-secondary-foreground truncate line-clamp-1", s),
81
- ...a,
82
- children: e
68
+ "data-component": "statistics-card-title-text",
69
+ className: p("font-semibold text-base leading-[1.5em] text-secondary-foreground truncate line-clamp-1", r),
70
+ ...s,
71
+ children: a
83
72
  }
84
73
  )
85
- );
86
- q.displayName = "StatisticsCardTitleText";
87
- const A = n.forwardRef(
88
- ({ content: s, icon: e, ...a }, t) => /* @__PURE__ */ i("div", { ref: t, ...a, children: /* @__PURE__ */ u(R, { children: [
89
- /* @__PURE__ */ i(I, { asChild: !0, children: e || /* @__PURE__ */ i(L, { size: "sm", className: "text-secondary-foreground cursor-pointer shrink-0" }) }),
90
- /* @__PURE__ */ i(j, { variant: "tertiary", side: "top", children: s })
74
+ ), tt = m(
75
+ "StatisticsCardTitleTooltip",
76
+ ({ content: r, icon: a, ...s }, t) => /* @__PURE__ */ i("div", { ref: t, "data-component": "statistics-card-title-tooltip", ...s, children: /* @__PURE__ */ u(j, { children: [
77
+ /* @__PURE__ */ i(L, { asChild: !0, children: a || /* @__PURE__ */ i(G, { size: "sm", className: "text-secondary-foreground cursor-pointer shrink-0" }) }),
78
+ /* @__PURE__ */ i(W, { variant: "tertiary", side: "top", children: r })
91
79
  ] }) })
92
- );
93
- A.displayName = "StatisticsCardTitleTooltip";
94
- const E = n.forwardRef(
95
- ({ className: s, centerLabel: e, chartConfig: a, chartSize: t = 104, ...o }, l) => {
96
- const { items: c, onItemToggle: m } = y(), { total: r, checkedTotal: f, hasChecked: p } = W(c), x = G(e, p, f, r), h = $(c, p), g = B(c, m, a), C = {
80
+ ), et = m(
81
+ "StatisticsCardChart",
82
+ ({ className: r, centerLabel: a, chartConfig: s, chartSize: t = 104, ...o }, n) => {
83
+ const { items: c, onItemToggle: l } = y(), { total: e, checkedTotal: d, hasChecked: f } = $(c), x = O(a, f, d, e), h = R(c, f), g = H(c, l, s), C = {
97
84
  ...g,
98
85
  chart: {
99
86
  ...g.chart,
@@ -113,13 +100,14 @@ const E = n.forwardRef(
113
100
  return /* @__PURE__ */ u(
114
101
  "div",
115
102
  {
116
- ref: l,
117
- className: d("relative flex items-center justify-center flex-shrink-0", s),
103
+ ref: n,
104
+ "data-component": "statistics-card-chart",
105
+ className: p("relative flex items-center justify-center flex-shrink-0", r),
118
106
  style: { width: `${t}px`, height: `${t}px` },
119
107
  ...o,
120
108
  children: [
121
109
  /* @__PURE__ */ i(
122
- P,
110
+ B,
123
111
  {
124
112
  options: C,
125
113
  height: t,
@@ -132,59 +120,61 @@ const E = n.forwardRef(
132
120
  }
133
121
  );
134
122
  }
135
- );
136
- E.displayName = "StatisticsCardChart";
137
- const F = n.forwardRef(({ className: s, children: e, ...a }, t) => {
138
- const { config: o } = y(), l = "w-full md:w-auto md:min-w-[190px] md:max-w-[208px]", c = "gap-2", m = o?.spacing?.legendWidth || l, r = o?.spacing?.itemGap || c;
139
- return /* @__PURE__ */ i(
140
- "div",
141
- {
142
- ref: t,
143
- role: "list",
144
- className: d(
145
- "flex flex-col justify-center min-w-0 flex-1 md:flex-none",
146
- m,
147
- r,
148
- s
149
- ),
150
- ...a,
151
- children: e
152
- }
153
- );
154
- });
155
- F.displayName = "StatisticsCardLegend";
156
- const J = n.forwardRef(
157
- ({ className: s, index: e, item: a, ...t }, o) => {
158
- const { items: l, onItemToggle: c, config: m } = y();
159
- let r = a, f = -1;
160
- if (!r && e !== void 0 ? (r = l[e], f = e) : r && (f = l.findIndex((w) => w === r)), !r || f === -1) return null;
161
- const p = "bg-white", x = "px-3 py-1.5", h = "var(--color-foreground)", g = m?.colors?.background || p, C = m?.spacing?.itemPadding || x, b = m?.colors?.text || h;
123
+ ), at = m(
124
+ "StatisticsCardLegend",
125
+ ({ className: r, children: a, ...s }, t) => {
126
+ const { config: o } = y(), n = "w-full md:w-auto md:min-w-[190px] md:max-w-[208px]", c = "gap-2", l = o?.spacing?.legendWidth || n, e = o?.spacing?.itemGap || c;
127
+ return /* @__PURE__ */ i(
128
+ "div",
129
+ {
130
+ ref: t,
131
+ role: "list",
132
+ "data-component": "statistics-card-legend",
133
+ className: p(
134
+ "flex flex-col justify-center min-w-0 flex-1 md:flex-none",
135
+ l,
136
+ e,
137
+ r
138
+ ),
139
+ ...s,
140
+ children: a
141
+ }
142
+ );
143
+ }
144
+ ), st = m(
145
+ "StatisticsCardLegendItem",
146
+ ({ className: r, index: a, item: s, ...t }, o) => {
147
+ const { items: n, onItemToggle: c, config: l } = y();
148
+ let e = s, d = -1;
149
+ if (!e && a !== void 0 ? (e = n[a], d = a) : e && (d = n.findIndex((b) => b === e)), !e || d === -1) return null;
150
+ const f = "bg-canvas-elevated", x = "px-3 py-1.5", h = "var(--color-foreground)", g = l?.colors?.background || f, C = l?.spacing?.itemPadding || x, w = l?.colors?.text || h;
162
151
  return /* @__PURE__ */ u(
163
152
  "div",
164
153
  {
165
154
  ref: o,
166
155
  role: "listitem",
167
- "aria-label": `${r.label}: ${r.value}`,
168
- className: d(
169
- "flex flex-row items-center gap-2 rounded-md border-l-2 transition-all",
156
+ "aria-label": `${e.label}: ${e.value}`,
157
+ "data-component": "statistics-card-legend-item",
158
+ className: p(
159
+ "flex flex-row items-center gap-2 rounded-md border-l-2 transition-all shadow-elevation-floating",
160
+ e.checked && "shadow-none ring-[3px] ring-[var(--item-color)]",
170
161
  g,
171
162
  C,
172
- s
163
+ r
173
164
  ),
174
165
  style: {
175
- borderLeftColor: r.borderColor,
176
- boxShadow: r.checked ? `0 0 0 3px ${r.borderColor}` : "0px 0px 4px 0px rgba(0,0,0,0.12)",
177
- "--item-color": r.borderColor
166
+ borderLeftColor: e.borderColor,
167
+ "--item-color": e.borderColor
178
168
  },
179
169
  ...t,
180
170
  children: [
181
171
  /* @__PURE__ */ u("div", { className: "flex flex-row items-center gap-2 flex-1 min-w-0", children: [
182
172
  /* @__PURE__ */ i(
183
- k,
173
+ P,
184
174
  {
185
- checked: r.checked ?? !1,
186
- onCheckedChange: (w) => c?.(f, w === !0),
187
- "aria-label": `Select ${r.label}`,
175
+ checked: e.checked ?? !1,
176
+ onCheckedChange: (b) => c?.(d, b === !0),
177
+ "aria-label": `Select ${e.label}`,
188
178
  className: "shrink-0"
189
179
  }
190
180
  ),
@@ -192,8 +182,8 @@ const J = n.forwardRef(
192
182
  "span",
193
183
  {
194
184
  className: "flex-1 font-medium text-xs leading-[1.25em] truncate text-[var(--item-text)]",
195
- style: { "--item-text": b },
196
- children: r.label
185
+ style: { "--item-text": w },
186
+ children: e.label
197
187
  }
198
188
  )
199
189
  ] }),
@@ -201,33 +191,25 @@ const J = n.forwardRef(
201
191
  "span",
202
192
  {
203
193
  className: "shrink-0 font-semibold text-sm leading-[1.5em] text-right min-w-[27px] text-foreground",
204
- children: r.value
194
+ children: e.value
205
195
  }
206
196
  )
207
197
  ]
208
198
  }
209
199
  );
210
200
  }
211
- );
212
- J.displayName = "StatisticsCardLegendItem";
213
- const K = n.forwardRef(
214
- ({ className: s, children: e, ...a }, t) => /* @__PURE__ */ i(
201
+ ), it = v("statistics-card", {
202
+ part: "summary",
203
+ displayName: "StatisticsCardSummary",
204
+ className: "flex flex-wrap items-center gap-3 self-center text-[11px] font-medium text-secondary-foreground"
205
+ }), rt = m(
206
+ "StatisticsCardSummaryItem",
207
+ ({ className: r, label: a, count: s, color: t = "var(--color-secondary-foreground)", ...o }, n) => /* @__PURE__ */ u(
215
208
  "div",
216
209
  {
217
- ref: t,
218
- className: d("flex flex-wrap items-center gap-3 self-center text-[11px] font-medium text-secondary-foreground", s),
219
- ...a,
220
- children: e
221
- }
222
- )
223
- );
224
- K.displayName = "StatisticsCardSummary";
225
- const Q = n.forwardRef(
226
- ({ className: s, label: e, count: a, color: t = "var(--color-secondary-foreground)", ...o }, l) => /* @__PURE__ */ u(
227
- "div",
228
- {
229
- ref: l,
230
- className: d("flex items-center gap-1", s),
210
+ ref: n,
211
+ "data-component": "statistics-card-summary-item",
212
+ className: p("flex items-center gap-1", r),
231
213
  style: { "--summary-color": t },
232
214
  ...o,
233
215
  children: [
@@ -238,25 +220,24 @@ const Q = n.forwardRef(
238
220
  }
239
221
  ),
240
222
  /* @__PURE__ */ u("span", { children: [
241
- e,
223
+ a,
242
224
  ": ",
243
- a
225
+ s
244
226
  ] })
245
227
  ]
246
228
  }
247
229
  )
248
230
  );
249
- Q.displayName = "StatisticsCardSummaryItem";
250
231
  export {
251
- E as StatisticsCardChart,
252
- M as StatisticsCardHeader,
253
- F as StatisticsCardLegend,
254
- J as StatisticsCardLegendItem,
255
- H as StatisticsCardRoot,
256
- K as StatisticsCardSummary,
257
- Q as StatisticsCardSummaryItem,
258
- D as StatisticsCardTitle,
259
- V as StatisticsCardTitleIcon,
260
- q as StatisticsCardTitleText,
261
- A as StatisticsCardTitleTooltip
232
+ et as StatisticsCardChart,
233
+ Y as StatisticsCardHeader,
234
+ at as StatisticsCardLegend,
235
+ st as StatisticsCardLegendItem,
236
+ X as StatisticsCardRoot,
237
+ it as StatisticsCardSummary,
238
+ rt as StatisticsCardSummaryItem,
239
+ Z as StatisticsCardTitle,
240
+ _ as StatisticsCardTitleIcon,
241
+ z as StatisticsCardTitleText,
242
+ tt as StatisticsCardTitleTooltip
262
243
  };
@@ -4,24 +4,24 @@ import * as t from "@radix-ui/react-alert-dialog";
4
4
  import { wrapRadixPart as n, createCompoundPart as d } from "../../../lib/primitives/create-compound.js";
5
5
  import { cn as r } from "../../../lib/utils.js";
6
6
  import { buttonVariants as c } from "../../primitives/button/button.variants.js";
7
- const w = (a) => /* @__PURE__ */ l(t.Root, { "data-component": "alert-dialog", ...a }), b = n(
7
+ const w = (e) => /* @__PURE__ */ l(t.Root, { "data-component": "alert-dialog", ...e }), b = n(
8
8
  "alert-dialog",
9
9
  "trigger",
10
10
  "AlertDialogTrigger",
11
11
  t.Trigger
12
- ), f = t.Portal, m = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
12
+ ), f = t.Portal, m = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ l(
13
13
  t.Overlay,
14
14
  {
15
15
  className: r(
16
16
  "fixed inset-0 z-50 bg-scrim-deep data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-reduce:animate-none motion-reduce:transition-none",
17
- a
17
+ e
18
18
  ),
19
- ...e,
19
+ ...a,
20
20
  ref: o
21
21
  }
22
22
  ));
23
23
  m.displayName = t.Overlay.displayName;
24
- const u = i.forwardRef(({ className: a, onOpenAutoFocus: e, ...o }, p) => /* @__PURE__ */ g(f, { children: [
24
+ const u = i.forwardRef(({ className: e, onOpenAutoFocus: a, ...o }, p) => /* @__PURE__ */ g(f, { children: [
25
25
  /* @__PURE__ */ l(m, {}),
26
26
  /* @__PURE__ */ l(
27
27
  t.Content,
@@ -30,11 +30,11 @@ const u = i.forwardRef(({ className: a, onOpenAutoFocus: e, ...o }, p) => /* @__
30
30
  "aria-describedby": void 0,
31
31
  "data-component": "alert-dialog-content",
32
32
  onOpenAutoFocus: (s) => {
33
- s.preventDefault(), e?.(s);
33
+ s.preventDefault(), a?.(s);
34
34
  },
35
35
  className: r(
36
36
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-canvas p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg motion-reduce:animate-none motion-reduce:transition-none",
37
- a
37
+ e
38
38
  ),
39
39
  ...o
40
40
  }
@@ -48,30 +48,30 @@ const C = d("alert-dialog", {
48
48
  }), R = d("alert-dialog", {
49
49
  part: "footer",
50
50
  displayName: "AlertDialogFooter",
51
- className: "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2"
51
+ className: "flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2"
52
52
  }), T = n(
53
53
  "alert-dialog",
54
54
  "title",
55
55
  "AlertDialogTitle",
56
56
  t.Title,
57
- "text-lg font-semibold"
57
+ "text-lg font-semibold text-content"
58
58
  ), P = n(
59
59
  "alert-dialog",
60
60
  "description",
61
61
  "AlertDialogDescription",
62
62
  t.Description,
63
63
  "text-sm text-content-secondary"
64
- ), A = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
64
+ ), A = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ l(
65
65
  t.Action,
66
66
  {
67
67
  ref: o,
68
68
  "data-component": "alert-dialog-action",
69
- className: r(c(), a),
70
- ...e
69
+ className: r(c(), e),
70
+ ...a
71
71
  }
72
72
  ));
73
73
  A.displayName = t.Action.displayName;
74
- const D = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
74
+ const D = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ l(
75
75
  t.Cancel,
76
76
  {
77
77
  ref: o,
@@ -79,9 +79,9 @@ const D = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
79
79
  className: r(
80
80
  c({ variant: "outline" }),
81
81
  "mt-2 sm:mt-0",
82
- a
82
+ e
83
83
  ),
84
- ...e
84
+ ...a
85
85
  }
86
86
  ));
87
87
  D.displayName = t.Cancel.displayName;
@@ -68,15 +68,15 @@ N.displayName = t.Content.displayName;
68
68
  const B = s("dialog", {
69
69
  part: "header",
70
70
  displayName: "DialogHeader",
71
- className: "relative flex flex-col justify-center text-center sm:text-start bg-canvas-tint p-4 pe-12 border-b"
71
+ className: "relative flex flex-col justify-center border-b bg-canvas-tint p-4 pe-12 text-center sm:text-start"
72
72
  }), F = s("dialog", {
73
73
  part: "body",
74
74
  displayName: "DialogBody",
75
- className: "px-6 py-6 flex-1 overflow-y-auto min-h-0"
75
+ className: "min-h-0 flex-1 overflow-y-auto px-6 py-6"
76
76
  }), k = s("dialog", {
77
77
  part: "footer",
78
78
  displayName: "DialogFooter",
79
- className: "flex flex-col-reverse sm:flex-row sm:justify-end sm:items-center sm:gap-2 px-4 py-[9px] bg-canvas-elevated"
79
+ className: "flex flex-col-reverse bg-canvas-elevated px-4 py-[9px] sm:flex-row sm:items-center sm:justify-end sm:gap-2"
80
80
  }), H = o(
81
81
  "dialog",
82
82
  "title",
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
- import * as c from "react";
2
+ import * as l from "react";
3
3
  import { Drawer as e } from "vaul";
4
4
  import { Cross as g } from "impact-nova-icons";
5
- import { wrapRadixPart as n, createCompoundPart as l } from "../../../lib/primitives/create-compound.js";
5
+ import { wrapRadixPart as s, createCompoundPart as c } from "../../../lib/primitives/create-compound.js";
6
6
  import { cn as d } from "../../../lib/utils.js";
7
- import { useImpactNovaI18n as D } from "../../../i18n/use-impact-nova-i18n.js";
8
- import { Tooltip as u, TooltipTrigger as x, TooltipContent as y } from "../tooltip/tooltip.js";
9
- const N = ({
7
+ import { useImpactNovaI18n as u } from "../../../i18n/use-impact-nova-i18n.js";
8
+ import { Tooltip as D, TooltipTrigger as b, TooltipContent as x } from "../tooltip/tooltip.js";
9
+ const v = ({
10
10
  shouldScaleBackground: t = !0,
11
11
  ...a
12
12
  }) => /* @__PURE__ */ r(
@@ -17,29 +17,29 @@ const N = ({
17
17
  ...a
18
18
  }
19
19
  );
20
- N.displayName = "Drawer";
21
- const z = n(
20
+ v.displayName = "Drawer";
21
+ const j = s(
22
22
  "drawer",
23
23
  "trigger",
24
24
  "DrawerTrigger",
25
25
  e.Trigger
26
- ), h = e.Portal, F = n(
26
+ ), y = e.Portal, z = s(
27
27
  "drawer",
28
28
  "close",
29
29
  "DrawerClose",
30
30
  e.Close
31
- ), m = c.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ r(
31
+ ), m = l.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ r(
32
32
  e.Overlay,
33
33
  {
34
- ref: s,
34
+ ref: n,
35
35
  className: d("fixed inset-0 z-50 bg-scrim-deep", t),
36
36
  ...a
37
37
  }
38
38
  ));
39
39
  m.displayName = e.Overlay.displayName;
40
- const b = c.forwardRef(({ className: t, children: a, hideClose: s, ...p }, w) => {
41
- const { t: f } = D(), i = f("aria.close");
42
- return /* @__PURE__ */ o(h, { children: [
40
+ const N = l.forwardRef(({ className: t, children: a, hideClose: n, ...p }, w) => {
41
+ const { t: f } = u(), i = f("aria.close");
42
+ return /* @__PURE__ */ o(y, { children: [
43
43
  /* @__PURE__ */ r(m, {}),
44
44
  /* @__PURE__ */ o(
45
45
  e.Content,
@@ -47,15 +47,15 @@ const b = c.forwardRef(({ className: t, children: a, hideClose: s, ...p }, w) =>
47
47
  ref: w,
48
48
  "data-component": "drawer-content",
49
49
  className: d(
50
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-canvas",
50
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border border-stroke-subtle bg-canvas-elevated",
51
51
  t
52
52
  ),
53
53
  ...p,
54
54
  children: [
55
55
  /* @__PURE__ */ r("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
56
56
  a,
57
- !s && /* @__PURE__ */ o(u, { children: [
58
- /* @__PURE__ */ r(x, { asChild: !0, children: /* @__PURE__ */ o(
57
+ !n && /* @__PURE__ */ o(D, { children: [
58
+ /* @__PURE__ */ r(b, { asChild: !0, children: /* @__PURE__ */ o(
59
59
  e.Close,
60
60
  {
61
61
  className: "absolute end-4 top-4 rounded-sm opacity-50 ring-offset-canvas transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-content-icon",
@@ -66,29 +66,29 @@ const b = c.forwardRef(({ className: t, children: a, hideClose: s, ...p }, w) =>
66
66
  ]
67
67
  }
68
68
  ) }),
69
- /* @__PURE__ */ r(y, { variant: "tertiary", side: "top", children: i })
69
+ /* @__PURE__ */ r(x, { variant: "tertiary", side: "top", children: i })
70
70
  ] })
71
71
  ]
72
72
  }
73
73
  )
74
74
  ] });
75
75
  });
76
- b.displayName = "DrawerContent";
77
- const H = l("drawer", {
76
+ N.displayName = "DrawerContent";
77
+ const F = c("drawer", {
78
78
  part: "header",
79
79
  displayName: "DrawerHeader",
80
- className: "grid gap-1.5 p-4 text-center sm:text-start"
81
- }), I = l("drawer", {
80
+ className: "grid gap-1.5 border-b border-stroke-subtle bg-canvas-elevated p-4 text-center sm:text-start"
81
+ }), H = c("drawer", {
82
82
  part: "footer",
83
83
  displayName: "DrawerFooter",
84
- className: "mt-auto flex flex-col gap-2 p-4"
85
- }), k = n(
84
+ className: "mt-auto flex flex-col gap-2 border-t border-stroke-subtle bg-canvas-elevated p-4"
85
+ }), I = s(
86
86
  "drawer",
87
87
  "title",
88
88
  "DrawerTitle",
89
89
  e.Title,
90
90
  "text-lg font-semibold leading-none tracking-tight"
91
- ), L = n(
91
+ ), L = s(
92
92
  "drawer",
93
93
  "description",
94
94
  "DrawerDescription",
@@ -96,14 +96,14 @@ const H = l("drawer", {
96
96
  "text-sm text-content-secondary"
97
97
  );
98
98
  export {
99
- N as Drawer,
100
- F as DrawerClose,
101
- b as DrawerContent,
99
+ v as Drawer,
100
+ z as DrawerClose,
101
+ N as DrawerContent,
102
102
  L as DrawerDescription,
103
- I as DrawerFooter,
104
- H as DrawerHeader,
103
+ H as DrawerFooter,
104
+ F as DrawerHeader,
105
105
  m as DrawerOverlay,
106
- h as DrawerPortal,
107
- k as DrawerTitle,
108
- z as DrawerTrigger
106
+ y as DrawerPortal,
107
+ I as DrawerTitle,
108
+ j as DrawerTrigger
109
109
  };