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.
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
- package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
- package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +109 -100
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
- package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
- package/dist/components/data/ag-grid-react/theme.js +93 -21
- package/dist/components/data/data-table/column-indicator.d.ts +1 -1
- package/dist/components/data/data-table/column-indicator.js +15 -11
- package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
- package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
- package/dist/components/data/data-table/data-table-saved-views.js +37 -37
- package/dist/components/data/data-table/data-table.js +78 -73
- package/dist/components/data/data-table/data-table.types.d.ts +7 -1
- package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
- package/dist/components/data/data-table/indicator-legend.js +20 -17
- package/dist/components/data/data-table/pin-switch.js +9 -9
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +92 -89
- package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
- package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
- package/dist/components/data/nested-list/nested-list.js +107 -97
- package/dist/components/data-display/calendar/calendar.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar.js +194 -189
- package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
- package/dist/components/data-display/chart/chart-palette.js +28 -0
- package/dist/components/data-display/chart/chart.js +121 -115
- package/dist/components/data-display/chart/chart.utils.js +9 -6
- package/dist/components/data-display/chart/index.d.ts +1 -0
- package/dist/components/data-display/chart/index.js +15 -9
- package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
- package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
- package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
- package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
- package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
- package/dist/components/feedback/dialog/dialog.js +3 -3
- package/dist/components/feedback/drawer/drawer.js +32 -32
- package/dist/components/feedback/sheet/sheet.js +8 -8
- package/dist/components/feedback/sheet/sheet.variants.js +1 -1
- package/dist/components/feedback/toast/toast.js +83 -92
- package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
- package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
- package/dist/components/flows/command-palette/command-palette.js +245 -258
- package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
- package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
- package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
- package/dist/components/flows/filter-panel/filter-panel.js +99 -104
- package/dist/components/flows/filter-strip/filter-summary.js +41 -41
- package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
- package/dist/components/flows/wizard/wizard.js +32 -32
- package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
- package/dist/components/forms/choice-card/choice-card.js +156 -166
- package/dist/components/forms/combobox/combobox.js +70 -70
- package/dist/components/forms/date-picker/date-picker.js +31 -30
- package/dist/components/forms/file-upload/file-upload.js +146 -168
- package/dist/components/forms/prompt/prompt.js +47 -48
- package/dist/components/forms/select/components/SelectAllRow.js +14 -14
- package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
- package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
- package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
- package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
- package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
- package/dist/components/forms/select/select.d.ts +5 -4
- package/dist/components/forms/select/select.js +123 -120
- package/dist/components/forms/select/select.types.d.ts +95 -204
- package/dist/components/forms/slider/slider.js +17 -17
- package/dist/components/forms/smart-input/smart-input.js +49 -49
- package/dist/components/forms/textarea/textarea.js +25 -25
- package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
- package/dist/components/layout/header/header.d.ts +5 -17
- package/dist/components/layout/header/header.js +113 -116
- package/dist/components/layout/header/header.types.d.ts +3 -0
- package/dist/components/layout/sidebar/sidebar.js +5 -5
- package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
- package/dist/components/primitives/accordion/accordion.js +38 -41
- package/dist/components/primitives/kbd/kbd.variants.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +6 -4
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- package/dist/impact-nova-base.scss +8 -5
- package/dist/impact-nova-components.css +2 -2
- package/dist/impact-nova-tokens.scss +346 -189
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +505 -499
- package/dist/lib/resolve-design-token-color.d.ts +5 -0
- package/dist/lib/resolve-design-token-color.js +12 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
- package/dist/theme/tokens/chart-series-palette.json.js +7 -0
- package/package.json +22 -254
- 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
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
() =>
|
|
17
|
-
[
|
|
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(
|
|
22
|
+
return /* @__PURE__ */ i(M.Provider, { value: T, children: /* @__PURE__ */ i(
|
|
20
23
|
"div",
|
|
21
24
|
{
|
|
22
|
-
ref:
|
|
25
|
+
ref: e,
|
|
23
26
|
role: "region",
|
|
24
27
|
"aria-roledescription": "statistics card",
|
|
25
28
|
"data-component": "statistics-card",
|
|
26
|
-
className:
|
|
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
|
-
|
|
29
|
-
b,
|
|
31
|
+
N,
|
|
30
32
|
w,
|
|
31
|
-
|
|
33
|
+
b,
|
|
34
|
+
r
|
|
32
35
|
),
|
|
33
36
|
style: { "--statistics-card-bg": C },
|
|
34
|
-
...
|
|
37
|
+
...l,
|
|
35
38
|
children: c
|
|
36
39
|
}
|
|
37
40
|
) });
|
|
38
41
|
}
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
75
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */ i(
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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:
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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": `${
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
163
|
+
r
|
|
173
164
|
),
|
|
174
165
|
style: {
|
|
175
|
-
borderLeftColor:
|
|
176
|
-
|
|
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
|
-
|
|
173
|
+
P,
|
|
184
174
|
{
|
|
185
|
-
checked:
|
|
186
|
-
onCheckedChange: (
|
|
187
|
-
"aria-label": `Select ${
|
|
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":
|
|
196
|
-
children:
|
|
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:
|
|
194
|
+
children: e.value
|
|
205
195
|
}
|
|
206
196
|
)
|
|
207
197
|
]
|
|
208
198
|
}
|
|
209
199
|
);
|
|
210
200
|
}
|
|
211
|
-
)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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:
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
223
|
+
a,
|
|
242
224
|
": ",
|
|
243
|
-
|
|
225
|
+
s
|
|
244
226
|
] })
|
|
245
227
|
]
|
|
246
228
|
}
|
|
247
229
|
)
|
|
248
230
|
);
|
|
249
|
-
Q.displayName = "StatisticsCardSummaryItem";
|
|
250
231
|
export {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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 = (
|
|
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:
|
|
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
|
-
|
|
17
|
+
e
|
|
18
18
|
),
|
|
19
|
-
...
|
|
19
|
+
...a,
|
|
20
20
|
ref: o
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
23
|
m.displayName = t.Overlay.displayName;
|
|
24
|
-
const u = i.forwardRef(({ className:
|
|
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(),
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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(),
|
|
70
|
-
...
|
|
69
|
+
className: r(c(), e),
|
|
70
|
+
...a
|
|
71
71
|
}
|
|
72
72
|
));
|
|
73
73
|
A.displayName = t.Action.displayName;
|
|
74
|
-
const D = i.forwardRef(({ className:
|
|
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
|
-
|
|
82
|
+
e
|
|
83
83
|
),
|
|
84
|
-
...
|
|
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
|
|
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: "
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
8
|
-
import { Tooltip as
|
|
9
|
-
const
|
|
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
|
-
|
|
21
|
-
const
|
|
20
|
+
v.displayName = "Drawer";
|
|
21
|
+
const j = s(
|
|
22
22
|
"drawer",
|
|
23
23
|
"trigger",
|
|
24
24
|
"DrawerTrigger",
|
|
25
25
|
e.Trigger
|
|
26
|
-
),
|
|
26
|
+
), y = e.Portal, z = s(
|
|
27
27
|
"drawer",
|
|
28
28
|
"close",
|
|
29
29
|
"DrawerClose",
|
|
30
30
|
e.Close
|
|
31
|
-
), m =
|
|
31
|
+
), m = l.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ r(
|
|
32
32
|
e.Overlay,
|
|
33
33
|
{
|
|
34
|
-
ref:
|
|
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
|
|
41
|
-
const { t: f } =
|
|
42
|
-
return /* @__PURE__ */ o(
|
|
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
|
-
!
|
|
58
|
-
/* @__PURE__ */ r(
|
|
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(
|
|
69
|
+
/* @__PURE__ */ r(x, { variant: "tertiary", side: "top", children: i })
|
|
70
70
|
] })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
74
|
] });
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
const
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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 =
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
v as Drawer,
|
|
100
|
+
z as DrawerClose,
|
|
101
|
+
N as DrawerContent,
|
|
102
102
|
L as DrawerDescription,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
H as DrawerFooter,
|
|
104
|
+
F as DrawerHeader,
|
|
105
105
|
m as DrawerOverlay,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
y as DrawerPortal,
|
|
107
|
+
I as DrawerTitle,
|
|
108
|
+
j as DrawerTrigger
|
|
109
109
|
};
|