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.
@@ -1,267 +1,231 @@
1
- import { jsx as l, jsxs as f } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { cn as r } from "../../../lib/utils.js";
4
- import { Button as w } from "../button.js";
5
- import { ChevronLeft as g, ChevronRight as y } from "lucide-react";
6
- import R from "../../../icons/assets/createFlowImage.svg.js";
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
- }, b = ({
10
+ }, u = ({
13
11
  step: t = 1,
14
12
  totalSteps: e,
15
- steps: a = [],
16
- onStepChange: o,
17
- children: i
13
+ steps: o = [],
14
+ onStepChange: a,
15
+ children: m
18
16
  }) => {
19
- const s = e ?? a.length;
20
- return /* @__PURE__ */ l(I.Provider, { value: { step: t, totalSteps: s, steps: a, onStepChange: o }, children: i });
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
- b.displayName = "CreateItemFlowRoot";
23
- const S = n.forwardRef(
24
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
28
- className: r(
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
- ...a,
30
+ ...o,
33
31
  children: e
34
32
  }
35
33
  )
36
34
  );
37
- S.displayName = "CreateItemFlowCard";
38
- const k = n.forwardRef(
39
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
43
- className: r(
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
- ...a,
46
+ ...o,
49
47
  children: e
50
48
  }
51
49
  )
52
50
  );
53
- k.displayName = "CreateItemFlowLeftPanel";
54
- const D = n.forwardRef(
55
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
59
- className: r("font-manrope text-[24px] font-[800] leading-[36px] text-[#0D152C] mb-3 px-6 lg:px-10 xl:px-[64px]", t),
60
- ...a,
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
- D.displayName = "CreateItemFlowTitle";
66
- const j = n.forwardRef(
67
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
71
- className: r("font-manrope text-[12px] font-[500] leading-[16px] text-[#7A8294] px-6 lg:px-10 xl:px-[64px]", t),
72
- ...a,
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
- j.displayName = "CreateItemFlowDescription";
78
- const A = n.forwardRef(
79
- ({ className: t, src: e, alt: a = "Create Item Flow", children: o, ...i }, s) => /* @__PURE__ */ l(
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: r(
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
- ...i,
89
- children: o || (e ? /* @__PURE__ */ l(
86
+ ...m,
87
+ children: a || (e ? /* @__PURE__ */ l(
90
88
  "img",
91
89
  {
92
90
  src: e,
93
- alt: a,
91
+ alt: o,
94
92
  className: "w-full h-full object-contain"
95
93
  }
96
94
  ) : /* @__PURE__ */ l(
97
- R,
95
+ C,
98
96
  {
99
97
  className: "w-full h-full",
100
98
  role: "img",
101
- "aria-label": a
99
+ "aria-label": o
102
100
  }
103
101
  ))
104
102
  }
105
103
  )
106
104
  );
107
- A.displayName = "CreateItemFlowImage";
108
- const P = n.forwardRef(
109
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
113
- className: r(
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
- ...a,
116
+ ...o,
119
117
  children: e
120
118
  }
121
119
  )
122
120
  );
123
- P.displayName = "CreateItemFlowRightPanel";
124
- const T = n.forwardRef(
125
- ({ className: t, clickable: e = !0, ...a }, o) => {
126
- const { step: i, totalSteps: s, onStepChange: p } = C();
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: o,
131
- className: r("flex gap-2 mb-[42px] shrink-0", t),
128
+ ref: a,
129
+ className: n("flex gap-2 mb-[42px] shrink-0", t),
132
130
  "data-slot": "stepper",
133
131
  role: "list",
134
- ...a,
135
- children: Array.from({ length: s }, (u, m) => {
136
- const c = m === i - 1, d = m < i - 1;
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 ${m + 1} of ${s}`,
142
- "aria-current": c ? "step" : void 0,
143
- tabIndex: e && p ? 0 : void 0,
144
- onClick: () => e && p?.(m + 1),
145
- onKeyDown: e && p ? (x) => {
146
- (x.key === "Enter" || x.key === " ") && (x.preventDefault(), p(m + 1));
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: r(
146
+ className: n(
149
147
  "h-2 flex-1 max-w-[132px] rounded-[4px] transition-colors duration-300",
150
- c || d ? "bg-[#4259ee]" : "bg-[#e8eaf6]",
151
- e && p ? "cursor-pointer" : "cursor-default"
148
+ d || c ? "bg-[#4259ee]" : "bg-[#e8eaf6]",
149
+ e && i ? "cursor-pointer" : "cursor-default"
152
150
  )
153
151
  },
154
- m
152
+ p
155
153
  );
156
154
  })
157
155
  }
158
156
  );
159
157
  }
160
158
  );
161
- T.displayName = "CreateItemFlowStepper";
162
- const L = n.forwardRef(
163
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
167
- className: r("font-manrope text-[14px] font-[800] leading-[21px] text-[#0D152C]", t),
168
- ...a,
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
- L.displayName = "CreateItemFlowContentTitle";
174
- const B = n.forwardRef(
175
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
179
- className: r("text-[14px] font-normal leading-relaxed text-content-muted", t),
180
- ...a,
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
- B.displayName = "CreateItemFlowContentDescription";
186
- const E = n.forwardRef(
187
- ({ className: t, children: e, ...a }, o) => /* @__PURE__ */ l(
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: o,
191
- className: r("flex-1 overflow-y-auto overflow-x-hidden min-h-0 p-0.5", t),
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
- ...a,
191
+ ...o,
194
192
  children: e
195
193
  }
196
194
  )
197
195
  );
198
- E.displayName = "CreateItemFlowContent";
199
- const $ = n.forwardRef(
200
- ({ className: t, forStep: e, children: a, ...o }, i) => {
201
- const { step: s } = C();
202
- return s !== e ? null : /* @__PURE__ */ l("div", { ref: i, className: r(t), "data-step": e, ...o, children: a });
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
- $.displayName = "CreateItemFlowStepContent";
206
- const K = n.forwardRef(
207
- ({
208
- className: t,
209
- children: e,
210
- cancelLabel: a = "Cancel",
211
- backLabel: o = "Back",
212
- nextLabel: i = "Next",
213
- submitLabel: s = "Submit",
214
- onCancel: p,
215
- onSubmit: u,
216
- ...m
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
- K.displayName = "CreateItemFlowActions";
216
+ k.displayName = "CreateItemFlowFooter";
253
217
  export {
254
- K as CreateItemFlowActions,
255
- S as CreateItemFlowCard,
256
- E as CreateItemFlowContent,
257
- B as CreateItemFlowContentDescription,
258
- L as CreateItemFlowContentTitle,
259
- j as CreateItemFlowDescription,
260
- A as CreateItemFlowImage,
261
- k as CreateItemFlowLeftPanel,
262
- P as CreateItemFlowRightPanel,
263
- b as CreateItemFlowRoot,
264
- $ as CreateItemFlowStepContent,
265
- T as CreateItemFlowStepper,
266
- D as CreateItemFlowTitle
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, CreateItemFlowActions, type CreateItemFlowRootProps, type CreateItemFlowImageProps, type CreateItemFlowStep, type CreateItemFlowStepperProps, type CreateItemFlowStepContentProps, type CreateItemFlowActionsProps, } from './create-item-flow';
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 { CreateItemFlowActions as o, CreateItemFlowCard as r, CreateItemFlowContent as C, CreateItemFlowContentDescription as a, CreateItemFlowContentTitle as l, CreateItemFlowDescription as m, CreateItemFlowImage as I, CreateItemFlowLeftPanel as n, CreateItemFlowRightPanel as w, CreateItemFlowRoot as F, CreateItemFlowStepContent as i, CreateItemFlowStepper as p, CreateItemFlowTitle as c } from "./create-item-flow.js";
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 CreateItemFlowActions,
4
- r as CreateItemFlowCard,
5
- C as CreateItemFlowContent,
6
- a as CreateItemFlowContentDescription,
7
- l as CreateItemFlowContentTitle,
8
- m as CreateItemFlowDescription,
9
- I as CreateItemFlowImage,
10
- n as CreateItemFlowLeftPanel,
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
- F as CreateItemFlowRoot,
12
+ n as CreateItemFlowRoot,
13
13
  i as CreateItemFlowStepContent,
14
14
  p as CreateItemFlowStepper,
15
15
  c as CreateItemFlowTitle