impact-nova 1.7.33 → 1.7.36
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/ag-grid-react/cell-renderers/editors/input-cell-editor.d.ts +23 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +234 -73
- package/dist/components/ui/ag-grid-react/cell-renderers/index.d.ts +1 -0
- package/dist/components/ui/calendar.d.ts +2 -1
- package/dist/components/ui/calendar.js +463 -408
- package/dist/components/ui/combobox.d.ts +66 -0
- package/dist/components/ui/combobox.js +340 -0
- package/dist/components/ui/create-item-flow/create-item-flow.d.ts +2 -16
- package/dist/components/ui/create-item-flow/create-item-flow.js +119 -155
- package/dist/components/ui/create-item-flow/index.d.ts +1 -1
- package/dist/components/ui/create-item-flow/index.js +10 -10
- package/dist/components/ui/data-table/data-table-saved-views.js +176 -162
- package/dist/components/ui/filter-strip/filter-summary.js +173 -133
- package/dist/components/ui/select/components/Submenu.js +7 -7
- package/dist/components/ui/select/select.js +310 -284
- package/dist/components/ui/sheet.js +1 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +415 -413
- package/package.json +1 -1
|
@@ -1,267 +1,231 @@
|
|
|
1
|
-
import { jsx as l
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const I = n.createContext(null), C = () => {
|
|
8
|
-
const t = n.useContext(I);
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { cn as n } from "../../../lib/utils.js";
|
|
4
|
+
import C from "../../../icons/assets/createFlowImage.svg.js";
|
|
5
|
+
const f = r.createContext(null), w = () => {
|
|
6
|
+
const t = r.useContext(f);
|
|
9
7
|
if (!t)
|
|
10
8
|
throw new Error("CreateItemFlow.* components must be used within CreateItemFlowRoot");
|
|
11
9
|
return t;
|
|
12
|
-
},
|
|
10
|
+
}, u = ({
|
|
13
11
|
step: t = 1,
|
|
14
12
|
totalSteps: e,
|
|
15
|
-
steps:
|
|
16
|
-
onStepChange:
|
|
17
|
-
children:
|
|
13
|
+
steps: o = [],
|
|
14
|
+
onStepChange: a,
|
|
15
|
+
children: m
|
|
18
16
|
}) => {
|
|
19
|
-
const s = e ??
|
|
20
|
-
return /* @__PURE__ */ l(
|
|
17
|
+
const s = e ?? o.length;
|
|
18
|
+
return /* @__PURE__ */ l(f.Provider, { value: { step: t, totalSteps: s, steps: o, onStepChange: a }, children: m });
|
|
21
19
|
};
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
({ className: t, children: e, ...
|
|
20
|
+
u.displayName = "CreateItemFlowRoot";
|
|
21
|
+
const I = r.forwardRef(
|
|
22
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
25
23
|
"div",
|
|
26
24
|
{
|
|
27
|
-
ref:
|
|
28
|
-
className:
|
|
25
|
+
ref: a,
|
|
26
|
+
className: n(
|
|
29
27
|
"flex flex-row bg-canvas-elevated rounded-lg shadow-elevation-card overflow-hidden w-full max-w-[1496px] h-[817px] m-auto min-w-0",
|
|
30
28
|
t
|
|
31
29
|
),
|
|
32
|
-
...
|
|
30
|
+
...o,
|
|
33
31
|
children: e
|
|
34
32
|
}
|
|
35
33
|
)
|
|
36
34
|
);
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
({ className: t, children: e, ...
|
|
35
|
+
I.displayName = "CreateItemFlowCard";
|
|
36
|
+
const F = r.forwardRef(
|
|
37
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
40
38
|
"div",
|
|
41
39
|
{
|
|
42
|
-
ref:
|
|
43
|
-
className:
|
|
40
|
+
ref: a,
|
|
41
|
+
className: n(
|
|
44
42
|
"hidden lg:flex flex-col w-[300px] xl:w-[427px] shrink-0 bg-canvas-elevated border-r border-stroke-hairline pt-[100px]",
|
|
45
43
|
t
|
|
46
44
|
),
|
|
47
45
|
"data-slot": "left-panel",
|
|
48
|
-
...
|
|
46
|
+
...o,
|
|
49
47
|
children: e
|
|
50
48
|
}
|
|
51
49
|
)
|
|
52
50
|
);
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
({ className: t, children: e, ...
|
|
51
|
+
F.displayName = "CreateItemFlowLeftPanel";
|
|
52
|
+
const h = r.forwardRef(
|
|
53
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
56
54
|
"h1",
|
|
57
55
|
{
|
|
58
|
-
ref:
|
|
59
|
-
className:
|
|
60
|
-
...
|
|
56
|
+
ref: a,
|
|
57
|
+
className: n("font-manrope text-[24px] font-[800] leading-[36px] text-[#0D152C] mb-3 px-6 lg:px-10 xl:px-[64px]", t),
|
|
58
|
+
...o,
|
|
61
59
|
children: e
|
|
62
60
|
}
|
|
63
61
|
)
|
|
64
62
|
);
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
({ className: t, children: e, ...
|
|
63
|
+
h.displayName = "CreateItemFlowTitle";
|
|
64
|
+
const N = r.forwardRef(
|
|
65
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
68
66
|
"p",
|
|
69
67
|
{
|
|
70
|
-
ref:
|
|
71
|
-
className:
|
|
72
|
-
...
|
|
68
|
+
ref: a,
|
|
69
|
+
className: n("font-manrope text-[12px] font-[500] leading-[16px] text-[#7A8294] px-6 lg:px-10 xl:px-[64px]", t),
|
|
70
|
+
...o,
|
|
73
71
|
children: e
|
|
74
72
|
}
|
|
75
73
|
)
|
|
76
74
|
);
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
({ className: t, src: e, alt:
|
|
75
|
+
N.displayName = "CreateItemFlowDescription";
|
|
76
|
+
const g = r.forwardRef(
|
|
77
|
+
({ className: t, src: e, alt: o = "Create Item Flow", children: a, ...m }, s) => /* @__PURE__ */ l(
|
|
80
78
|
"div",
|
|
81
79
|
{
|
|
82
80
|
ref: s,
|
|
83
|
-
className:
|
|
81
|
+
className: n(
|
|
84
82
|
"mt-auto shrink-0 w-[200px] xl:w-[280px] h-[120px] xl:h-[166px] mx-auto xl:ml-[73px] xl:mr-[73px] mb-[100px]",
|
|
85
83
|
t
|
|
86
84
|
),
|
|
87
85
|
"data-slot": "left-panel-image",
|
|
88
|
-
...
|
|
89
|
-
children:
|
|
86
|
+
...m,
|
|
87
|
+
children: a || (e ? /* @__PURE__ */ l(
|
|
90
88
|
"img",
|
|
91
89
|
{
|
|
92
90
|
src: e,
|
|
93
|
-
alt:
|
|
91
|
+
alt: o,
|
|
94
92
|
className: "w-full h-full object-contain"
|
|
95
93
|
}
|
|
96
94
|
) : /* @__PURE__ */ l(
|
|
97
|
-
|
|
95
|
+
C,
|
|
98
96
|
{
|
|
99
97
|
className: "w-full h-full",
|
|
100
98
|
role: "img",
|
|
101
|
-
"aria-label":
|
|
99
|
+
"aria-label": o
|
|
102
100
|
}
|
|
103
101
|
))
|
|
104
102
|
}
|
|
105
103
|
)
|
|
106
104
|
);
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
({ className: t, children: e, ...
|
|
105
|
+
g.displayName = "CreateItemFlowImage";
|
|
106
|
+
const v = r.forwardRef(
|
|
107
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
110
108
|
"div",
|
|
111
109
|
{
|
|
112
|
-
ref:
|
|
113
|
-
className:
|
|
110
|
+
ref: a,
|
|
111
|
+
className: n(
|
|
114
112
|
"flex flex-col flex-1 min-w-0 overflow-hidden pt-[50px] px-6 sm:px-10 md:px-16 lg:px-20 xl:px-[60px] 2xl:px-[190px] pb-[73px]",
|
|
115
113
|
t
|
|
116
114
|
),
|
|
117
115
|
"data-slot": "right-panel",
|
|
118
|
-
...
|
|
116
|
+
...o,
|
|
119
117
|
children: e
|
|
120
118
|
}
|
|
121
119
|
)
|
|
122
120
|
);
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
({ className: t, clickable: e = !0, ...
|
|
126
|
-
const { step:
|
|
121
|
+
v.displayName = "CreateItemFlowRightPanel";
|
|
122
|
+
const y = r.forwardRef(
|
|
123
|
+
({ className: t, clickable: e = !0, ...o }, a) => {
|
|
124
|
+
const { step: m, totalSteps: s, onStepChange: i } = w();
|
|
127
125
|
return s <= 0 ? null : /* @__PURE__ */ l(
|
|
128
126
|
"div",
|
|
129
127
|
{
|
|
130
|
-
ref:
|
|
131
|
-
className:
|
|
128
|
+
ref: a,
|
|
129
|
+
className: n("flex gap-2 mb-[42px] shrink-0", t),
|
|
132
130
|
"data-slot": "stepper",
|
|
133
131
|
role: "list",
|
|
134
|
-
...
|
|
135
|
-
children: Array.from({ length: s }, (
|
|
136
|
-
const
|
|
132
|
+
...o,
|
|
133
|
+
children: Array.from({ length: s }, (P, p) => {
|
|
134
|
+
const d = p === m - 1, c = p < m - 1;
|
|
137
135
|
return /* @__PURE__ */ l(
|
|
138
136
|
"div",
|
|
139
137
|
{
|
|
140
138
|
role: "listitem",
|
|
141
|
-
"aria-label": `Step ${
|
|
142
|
-
"aria-current":
|
|
143
|
-
tabIndex: e &&
|
|
144
|
-
onClick: () => e &&
|
|
145
|
-
onKeyDown: e &&
|
|
146
|
-
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p
|
|
139
|
+
"aria-label": `Step ${p + 1} of ${s}`,
|
|
140
|
+
"aria-current": d ? "step" : void 0,
|
|
141
|
+
tabIndex: e && i ? 0 : void 0,
|
|
142
|
+
onClick: () => e && i?.(p + 1),
|
|
143
|
+
onKeyDown: e && i ? (x) => {
|
|
144
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), i(p + 1));
|
|
147
145
|
} : void 0,
|
|
148
|
-
className:
|
|
146
|
+
className: n(
|
|
149
147
|
"h-2 flex-1 max-w-[132px] rounded-[4px] transition-colors duration-300",
|
|
150
|
-
|
|
151
|
-
e &&
|
|
148
|
+
d || c ? "bg-[#4259ee]" : "bg-[#e8eaf6]",
|
|
149
|
+
e && i ? "cursor-pointer" : "cursor-default"
|
|
152
150
|
)
|
|
153
151
|
},
|
|
154
|
-
|
|
152
|
+
p
|
|
155
153
|
);
|
|
156
154
|
})
|
|
157
155
|
}
|
|
158
156
|
);
|
|
159
157
|
}
|
|
160
158
|
);
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
({ className: t, children: e, ...
|
|
159
|
+
y.displayName = "CreateItemFlowStepper";
|
|
160
|
+
const R = r.forwardRef(
|
|
161
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
164
162
|
"h2",
|
|
165
163
|
{
|
|
166
|
-
ref:
|
|
167
|
-
className:
|
|
168
|
-
...
|
|
164
|
+
ref: a,
|
|
165
|
+
className: n("font-manrope text-[14px] font-[800] leading-[21px] text-[#0D152C]", t),
|
|
166
|
+
...o,
|
|
169
167
|
children: e
|
|
170
168
|
}
|
|
171
169
|
)
|
|
172
170
|
);
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
({ className: t, children: e, ...
|
|
171
|
+
R.displayName = "CreateItemFlowContentTitle";
|
|
172
|
+
const b = r.forwardRef(
|
|
173
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
176
174
|
"p",
|
|
177
175
|
{
|
|
178
|
-
ref:
|
|
179
|
-
className:
|
|
180
|
-
...
|
|
176
|
+
ref: a,
|
|
177
|
+
className: n("text-[14px] font-normal leading-relaxed text-content-muted", t),
|
|
178
|
+
...o,
|
|
181
179
|
children: e
|
|
182
180
|
}
|
|
183
181
|
)
|
|
184
182
|
);
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
({ className: t, children: e, ...
|
|
183
|
+
b.displayName = "CreateItemFlowContentDescription";
|
|
184
|
+
const S = r.forwardRef(
|
|
185
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
188
186
|
"div",
|
|
189
187
|
{
|
|
190
|
-
ref:
|
|
191
|
-
className:
|
|
188
|
+
ref: a,
|
|
189
|
+
className: n("flex-1 overflow-y-auto overflow-x-hidden min-h-0 p-0.5", t),
|
|
192
190
|
"data-slot": "content",
|
|
193
|
-
...
|
|
191
|
+
...o,
|
|
194
192
|
children: e
|
|
195
193
|
}
|
|
196
194
|
)
|
|
197
195
|
);
|
|
198
|
-
|
|
199
|
-
const
|
|
200
|
-
({ className: t, forStep: e, children:
|
|
201
|
-
const { step: s } =
|
|
202
|
-
return s !== e ? null : /* @__PURE__ */ l("div", { ref:
|
|
196
|
+
S.displayName = "CreateItemFlowContent";
|
|
197
|
+
const D = r.forwardRef(
|
|
198
|
+
({ className: t, forStep: e, children: o, ...a }, m) => {
|
|
199
|
+
const { step: s } = w();
|
|
200
|
+
return s !== e ? null : /* @__PURE__ */ l("div", { ref: m, className: n(t), "data-step": e, ...a, children: o });
|
|
203
201
|
}
|
|
204
202
|
);
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
({
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}, c) => {
|
|
218
|
-
const { step: d, totalSteps: x, onStepChange: h } = C(), F = d === 1, N = d === x, v = x <= 1;
|
|
219
|
-
return e ? /* @__PURE__ */ l(
|
|
220
|
-
"div",
|
|
221
|
-
{
|
|
222
|
-
ref: c,
|
|
223
|
-
className: r("flex items-center justify-between mt-auto shrink-0 pt-6 pb-[27px]", t),
|
|
224
|
-
"data-slot": "actions",
|
|
225
|
-
...m,
|
|
226
|
-
children: e
|
|
227
|
-
}
|
|
228
|
-
) : /* @__PURE__ */ f(
|
|
229
|
-
"div",
|
|
230
|
-
{
|
|
231
|
-
ref: c,
|
|
232
|
-
className: r("flex items-center justify-between mt-auto shrink-0 pt-6 pb-[27px]", t),
|
|
233
|
-
"data-slot": "actions",
|
|
234
|
-
...m,
|
|
235
|
-
children: [
|
|
236
|
-
/* @__PURE__ */ f("div", { className: "flex items-center gap-3", children: [
|
|
237
|
-
!F && !v && /* @__PURE__ */ f(w, { variant: "tertiary", onClick: () => h?.(d - 1), children: [
|
|
238
|
-
/* @__PURE__ */ l(g, { className: "w-4 h-4" }),
|
|
239
|
-
o
|
|
240
|
-
] }),
|
|
241
|
-
/* @__PURE__ */ l(w, { variant: "secondary", onClick: p, children: a })
|
|
242
|
-
] }),
|
|
243
|
-
/* @__PURE__ */ l("div", { children: v || N ? /* @__PURE__ */ l(w, { variant: "default", onClick: u, children: s }) : /* @__PURE__ */ f(w, { variant: "default", onClick: () => h?.(d + 1), children: [
|
|
244
|
-
i,
|
|
245
|
-
/* @__PURE__ */ l(y, { className: "w-4 h-4" })
|
|
246
|
-
] }) })
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
}
|
|
203
|
+
D.displayName = "CreateItemFlowStepContent";
|
|
204
|
+
const k = r.forwardRef(
|
|
205
|
+
({ className: t, children: e, ...o }, a) => /* @__PURE__ */ l(
|
|
206
|
+
"div",
|
|
207
|
+
{
|
|
208
|
+
ref: a,
|
|
209
|
+
className: n("flex items-center justify-between mt-auto shrink-0 pt-6 pb-[27px]", t),
|
|
210
|
+
"data-slot": "footer",
|
|
211
|
+
...o,
|
|
212
|
+
children: e
|
|
213
|
+
}
|
|
214
|
+
)
|
|
251
215
|
);
|
|
252
|
-
|
|
216
|
+
k.displayName = "CreateItemFlowFooter";
|
|
253
217
|
export {
|
|
254
|
-
|
|
255
|
-
S as
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
218
|
+
I as CreateItemFlowCard,
|
|
219
|
+
S as CreateItemFlowContent,
|
|
220
|
+
b as CreateItemFlowContentDescription,
|
|
221
|
+
R as CreateItemFlowContentTitle,
|
|
222
|
+
N as CreateItemFlowDescription,
|
|
223
|
+
k as CreateItemFlowFooter,
|
|
224
|
+
g as CreateItemFlowImage,
|
|
225
|
+
F as CreateItemFlowLeftPanel,
|
|
226
|
+
v as CreateItemFlowRightPanel,
|
|
227
|
+
u as CreateItemFlowRoot,
|
|
228
|
+
D as CreateItemFlowStepContent,
|
|
229
|
+
y as CreateItemFlowStepper,
|
|
230
|
+
h as CreateItemFlowTitle
|
|
267
231
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CreateItemFlowRoot, CreateItemFlowCard, CreateItemFlowLeftPanel, CreateItemFlowTitle, CreateItemFlowDescription, CreateItemFlowImage, CreateItemFlowRightPanel, CreateItemFlowStepper, CreateItemFlowContentTitle, CreateItemFlowContentDescription, CreateItemFlowContent, CreateItemFlowStepContent,
|
|
1
|
+
export { CreateItemFlowRoot, CreateItemFlowCard, CreateItemFlowLeftPanel, CreateItemFlowTitle, CreateItemFlowDescription, CreateItemFlowImage, CreateItemFlowRightPanel, CreateItemFlowStepper, CreateItemFlowContentTitle, CreateItemFlowContentDescription, CreateItemFlowContent, CreateItemFlowStepContent, CreateItemFlowFooter, type CreateItemFlowRootProps, type CreateItemFlowImageProps, type CreateItemFlowStep, type CreateItemFlowStepperProps, type CreateItemFlowStepContentProps, } from './create-item-flow';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateItemFlowCard as o, CreateItemFlowContent as r, CreateItemFlowContentDescription as C, CreateItemFlowContentTitle as a, CreateItemFlowDescription as l, CreateItemFlowFooter as m, CreateItemFlowImage as F, CreateItemFlowLeftPanel as I, CreateItemFlowRightPanel as w, CreateItemFlowRoot as n, CreateItemFlowStepContent as i, CreateItemFlowStepper as p, CreateItemFlowTitle as c } from "./create-item-flow.js";
|
|
2
2
|
export {
|
|
3
|
-
o as
|
|
4
|
-
r as
|
|
5
|
-
C as
|
|
6
|
-
a as
|
|
7
|
-
l as
|
|
8
|
-
m as
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
o as CreateItemFlowCard,
|
|
4
|
+
r as CreateItemFlowContent,
|
|
5
|
+
C as CreateItemFlowContentDescription,
|
|
6
|
+
a as CreateItemFlowContentTitle,
|
|
7
|
+
l as CreateItemFlowDescription,
|
|
8
|
+
m as CreateItemFlowFooter,
|
|
9
|
+
F as CreateItemFlowImage,
|
|
10
|
+
I as CreateItemFlowLeftPanel,
|
|
11
11
|
w as CreateItemFlowRightPanel,
|
|
12
|
-
|
|
12
|
+
n as CreateItemFlowRoot,
|
|
13
13
|
i as CreateItemFlowStepContent,
|
|
14
14
|
p as CreateItemFlowStepper,
|
|
15
15
|
c as CreateItemFlowTitle
|