impact-nova 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +7 -7
- package/dist/components/ui/accordion.d.ts +0 -1
- package/dist/components/ui/accordion.js +30 -33
- package/dist/components/ui/ag-grid-react/index.js +38 -35
- package/dist/components/ui/ag-grid-react/process-backend-columndefs.js +10 -10
- package/dist/components/ui/ag-grid-react/value-formatters.js +18 -18
- package/dist/components/ui/calendar.js +254 -247
- package/dist/components/ui/command-palette/shortcut-settings.js +122 -116
- package/dist/components/ui/data-table/data-table.d.ts +0 -4
- package/dist/components/ui/data-table/data-table.js +94 -60
- package/dist/components/ui/date-picker/date-picker.js +90 -81
- package/dist/components/ui/date-picker/date-range-picker.js +144 -130
- package/dist/components/ui/date-picker/week-range-picker.js +157 -143
- package/dist/components/ui/filter-strip/filter-summary.js +161 -234
- package/dist/components/ui/filter-strip/filter-tag-list.js +97 -124
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +29 -29
- package/dist/components/ui/select/select.js +521 -493
- package/dist/components/ui/sheet.js +71 -94
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-dialog";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as v } from "class-variance-authority";
|
|
5
5
|
import { ChevronDown as S, ChevronUp as w, X as C } from "lucide-react";
|
|
6
6
|
import { cn as r } from "../../lib/utils.js";
|
|
7
|
-
import { Tooltip as g, TooltipTrigger as x, TooltipContent as
|
|
7
|
+
import { Tooltip as g, TooltipTrigger as x, TooltipContent as b } from "./tooltip.js";
|
|
8
8
|
import { useImpactNovaI18n as T } from "../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
-
const
|
|
9
|
+
const y = n.createContext({
|
|
10
10
|
isExpanded: !1,
|
|
11
11
|
expandable: !1,
|
|
12
12
|
side: "right"
|
|
13
|
-
}),
|
|
13
|
+
}), X = o.Root, q = o.Trigger, k = o.Close, E = o.Portal, N = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
14
14
|
o.Overlay,
|
|
15
15
|
{
|
|
16
16
|
className: r(
|
|
17
|
-
"fixed inset-0 z-50 bg-
|
|
17
|
+
"fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
18
18
|
t
|
|
19
19
|
),
|
|
20
20
|
...a,
|
|
21
21
|
ref: s
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
|
|
25
|
-
const R =
|
|
26
|
-
"fixed z-50 gap-4 bg-
|
|
24
|
+
N.displayName = o.Overlay.displayName;
|
|
25
|
+
const R = v(
|
|
26
|
+
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
27
27
|
{
|
|
28
28
|
variants: {
|
|
29
29
|
side: {
|
|
@@ -37,100 +37,71 @@ const R = N(
|
|
|
37
37
|
side: "right"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
),
|
|
41
|
-
({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, u) => {
|
|
49
|
-
const [h, m] = n.useState(d), p = n.useCallback(() => {
|
|
50
|
-
m((i) => !i);
|
|
51
|
-
}, []);
|
|
52
|
-
return /* @__PURE__ */ e(
|
|
53
|
-
b.Provider,
|
|
40
|
+
), D = n.forwardRef(({ side: t = "right", className: a, children: s, expandable: d = !1, defaultExpanded: l = !1, ...f }, u) => {
|
|
41
|
+
const [h, c] = n.useState(l), m = n.useCallback(() => {
|
|
42
|
+
c((p) => !p);
|
|
43
|
+
}, []);
|
|
44
|
+
return /* @__PURE__ */ e(y.Provider, { value: { isExpanded: h, onExpandToggle: m, expandable: d, side: t || void 0 }, children: /* @__PURE__ */ i(E, { children: [
|
|
45
|
+
/* @__PURE__ */ e(N, {}),
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
o.Content,
|
|
54
48
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
ref: u,
|
|
67
|
-
"data-component": "sheet-content",
|
|
68
|
-
onOpenAutoFocus: (i) => i.preventDefault(),
|
|
69
|
-
className: r(
|
|
70
|
-
R({ side: t }),
|
|
71
|
-
"flex flex-col p-0 transition-all duration-300",
|
|
72
|
-
t === "bottom" && (h ? "h-[96vh]" : "h-[40vh]"),
|
|
73
|
-
a
|
|
74
|
-
),
|
|
75
|
-
...f,
|
|
76
|
-
children: s
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
] })
|
|
49
|
+
ref: u,
|
|
50
|
+
"data-component": "sheet-content",
|
|
51
|
+
className: r(
|
|
52
|
+
R({ side: t }),
|
|
53
|
+
"flex flex-col p-0 transition-all duration-300",
|
|
54
|
+
t === "bottom" && (h ? "h-[96vh]" : "h-[40vh]"),
|
|
55
|
+
a
|
|
56
|
+
),
|
|
57
|
+
...f,
|
|
58
|
+
children: s
|
|
80
59
|
}
|
|
81
|
-
)
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
|
|
60
|
+
)
|
|
61
|
+
] }) });
|
|
62
|
+
});
|
|
63
|
+
D.displayName = o.Content.displayName;
|
|
85
64
|
const L = ({
|
|
86
65
|
className: t,
|
|
87
66
|
children: a,
|
|
88
67
|
...s
|
|
89
68
|
}) => {
|
|
90
|
-
const { t:
|
|
91
|
-
return /* @__PURE__ */
|
|
69
|
+
const { t: d } = T(), { isExpanded: l, onExpandToggle: f, expandable: u, side: h } = n.useContext(y), c = d("aria.close"), m = d("nestedList.expand"), p = d("nestedList.collapse");
|
|
70
|
+
return /* @__PURE__ */ i(
|
|
92
71
|
"div",
|
|
93
72
|
{
|
|
94
73
|
className: r(
|
|
95
|
-
"flex px-4 py-4 shrink-0 items-center justify-between bg-
|
|
74
|
+
"flex px-4 py-4 shrink-0 items-center justify-between bg-light-blue border-b",
|
|
96
75
|
h === "bottom" && "rounded-t-lg",
|
|
97
76
|
t
|
|
98
77
|
),
|
|
99
78
|
...s,
|
|
100
79
|
children: [
|
|
101
80
|
/* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-left", children: a }),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
u && /* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
82
|
+
u && /* @__PURE__ */ i(g, { children: [
|
|
83
|
+
/* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ i(
|
|
105
84
|
"button",
|
|
106
85
|
{
|
|
107
86
|
type: "button",
|
|
108
87
|
"data-component": "sheet-expand-toggle",
|
|
109
88
|
onClick: f,
|
|
110
|
-
className: "rounded-sm opacity-70 ring-offset-
|
|
111
|
-
"aria-label":
|
|
89
|
+
className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
|
|
90
|
+
"aria-label": l ? p : m,
|
|
112
91
|
children: [
|
|
113
|
-
|
|
114
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
92
|
+
l ? /* @__PURE__ */ e(S, { className: "h-4 w-4" }) : /* @__PURE__ */ e(w, { className: "h-4 w-4" }),
|
|
93
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: l ? p : m })
|
|
115
94
|
]
|
|
116
95
|
}
|
|
117
96
|
) }),
|
|
118
|
-
/* @__PURE__ */ e(
|
|
97
|
+
/* @__PURE__ */ e(b, { variant: "tertiary", side: "top", children: l ? p : m })
|
|
119
98
|
] }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */
|
|
122
|
-
|
|
123
|
-
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"aria-label": m,
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ e(C, { className: "h-4 w-4" }),
|
|
129
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children: m })
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
) }),
|
|
133
|
-
/* @__PURE__ */ e(y, { variant: "tertiary", side: "top", children: m })
|
|
99
|
+
/* @__PURE__ */ i(g, { children: [
|
|
100
|
+
/* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ i(k, { "data-component": "sheet-close", className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", "aria-label": c, children: [
|
|
101
|
+
/* @__PURE__ */ e(C, { className: "h-4 w-4" }),
|
|
102
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: c })
|
|
103
|
+
] }) }),
|
|
104
|
+
/* @__PURE__ */ e(b, { variant: "tertiary", side: "top", children: c })
|
|
134
105
|
] })
|
|
135
106
|
] })
|
|
136
107
|
]
|
|
@@ -141,24 +112,30 @@ L.displayName = "SheetHeader";
|
|
|
141
112
|
const j = ({
|
|
142
113
|
className: t,
|
|
143
114
|
...a
|
|
144
|
-
}) => /* @__PURE__ */ e(
|
|
115
|
+
}) => /* @__PURE__ */ e(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: r("flex-1 overflow-y-auto p-4", t),
|
|
119
|
+
...a
|
|
120
|
+
}
|
|
121
|
+
);
|
|
145
122
|
j.displayName = "SheetBody";
|
|
146
|
-
const
|
|
123
|
+
const P = ({
|
|
147
124
|
className: t,
|
|
148
125
|
...a
|
|
149
126
|
}) => /* @__PURE__ */ e(
|
|
150
127
|
"div",
|
|
151
128
|
{
|
|
152
129
|
className: r(
|
|
153
|
-
"mt-auto flex px-4 py-3 shrink-0 items-center justify-end gap-2 border-t bg-
|
|
130
|
+
"mt-auto flex px-4 py-3 shrink-0 items-center justify-end gap-2 border-t bg-background",
|
|
154
131
|
t
|
|
155
132
|
),
|
|
156
133
|
...a,
|
|
157
134
|
children: a.children
|
|
158
135
|
}
|
|
159
136
|
);
|
|
160
|
-
|
|
161
|
-
const
|
|
137
|
+
P.displayName = "SheetFooter";
|
|
138
|
+
const I = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
162
139
|
o.Title,
|
|
163
140
|
{
|
|
164
141
|
ref: s,
|
|
@@ -167,26 +144,26 @@ const P = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
|
167
144
|
...a
|
|
168
145
|
}
|
|
169
146
|
));
|
|
170
|
-
|
|
171
|
-
const
|
|
147
|
+
I.displayName = o.Title.displayName;
|
|
148
|
+
const O = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
172
149
|
o.Description,
|
|
173
150
|
{
|
|
174
151
|
ref: s,
|
|
175
|
-
className: r("text-sm text-
|
|
152
|
+
className: r("text-sm text-muted-foreground", t),
|
|
176
153
|
...a
|
|
177
154
|
}
|
|
178
155
|
));
|
|
179
|
-
|
|
156
|
+
O.displayName = o.Description.displayName;
|
|
180
157
|
export {
|
|
181
|
-
|
|
158
|
+
X as Sheet,
|
|
182
159
|
j as SheetBody,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
160
|
+
k as SheetClose,
|
|
161
|
+
D as SheetContent,
|
|
162
|
+
O as SheetDescription,
|
|
163
|
+
P as SheetFooter,
|
|
187
164
|
L as SheetHeader,
|
|
188
|
-
|
|
165
|
+
N as SheetOverlay,
|
|
189
166
|
E as SheetPortal,
|
|
190
|
-
|
|
191
|
-
|
|
167
|
+
I as SheetTitle,
|
|
168
|
+
q as SheetTrigger
|
|
192
169
|
};
|