@arcadeai/design-system 3.39.3 → 3.40.0

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,9 +1,9 @@
1
- import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
- import w, { createContext as _, useState as P, useRef as k, useLayoutEffect as C, useContext as T } from "react";
3
- import { Textarea as H } from "../atoms/textarea.js";
4
- import { TooltipProvider as I, Tooltip as R, TooltipTrigger as $, TooltipContent as D } from "../atoms/tooltip.js";
1
+ import { jsx as a, jsxs as _ } from "react/jsx-runtime";
2
+ import P, { createContext as k, useState as C, useRef as T, useLayoutEffect as I, useContext as H } from "react";
3
+ import { Textarea as R } from "../atoms/textarea.js";
4
+ import { TooltipProvider as $, Tooltip as D, TooltipTrigger as j, TooltipContent as K } from "../atoms/tooltip.js";
5
5
  import { cn as x } from "../../../lib/utils.js";
6
- const b = _({
6
+ const v = k({
7
7
  isLoading: !1,
8
8
  value: "",
9
9
  setValue: () => {
@@ -11,87 +11,88 @@ const b = _({
11
11
  maxHeight: 240,
12
12
  onSubmit: void 0,
13
13
  disabled: !1,
14
- textareaRef: w.createRef()
14
+ textareaRef: P.createRef()
15
15
  });
16
- function v() {
17
- return T(b);
16
+ function y() {
17
+ return H(v);
18
18
  }
19
- function E({
20
- className: o,
21
- isLoading: r = !1,
19
+ function M({
20
+ className: r,
21
+ isLoading: o = !1,
22
22
  maxHeight: n = 240,
23
23
  value: s,
24
24
  onValueChange: i,
25
- onSubmit: l,
25
+ onSubmit: u,
26
26
  children: e,
27
- disabled: c = !1,
27
+ disabled: p = !1,
28
28
  onClick: d,
29
- ...u
29
+ ...c
30
30
  }) {
31
- const [p, m] = P(s || ""), f = k(null), g = (h) => {
32
- m(h), i?.(h);
33
- }, t = (h) => {
34
- c || f.current?.focus(), d?.(h);
31
+ const [f, m] = C(s || ""), h = T(null), g = (l) => {
32
+ m(l), i?.(l);
33
+ }, t = (l) => {
34
+ const b = l.target, w = b ? l.currentTarget.contains(b) : !1;
35
+ !p && w && h.current?.focus(), d?.(l);
35
36
  };
36
- return /* @__PURE__ */ a(I, { children: /* @__PURE__ */ a(
37
- b.Provider,
37
+ return /* @__PURE__ */ a($, { children: /* @__PURE__ */ a(
38
+ v.Provider,
38
39
  {
39
40
  value: {
40
- isLoading: r,
41
- value: s ?? p,
41
+ isLoading: o,
42
+ value: s ?? f,
42
43
  setValue: i ?? g,
43
44
  maxHeight: n,
44
- onSubmit: l,
45
- disabled: c,
46
- textareaRef: f
45
+ onSubmit: u,
46
+ disabled: p,
47
+ textareaRef: h
47
48
  },
48
49
  children: /* @__PURE__ */ a(
49
50
  "div",
50
51
  {
51
52
  className: x(
52
53
  "cursor-text rounded-lg border border-input bg-background p-2 shadow-xs transition-[box-shadow,border-color] focus-within:border focus-within:border-muted-foreground focus-within:shadow-[0_0_4px_color-mix(in_oklch,var(--ring)_4%,transparent)] dark:focus-within:shadow-[0_0_4px_color-mix(in_oklch,var(--ring)_8%,transparent)]",
53
- o
54
+ r
54
55
  ),
55
56
  "data-slot": "prompt-input",
56
57
  onClick: t,
57
- ...u,
58
+ ...c,
58
59
  children: e
59
60
  }
60
61
  )
61
62
  }
62
63
  ) });
63
64
  }
64
- function L({
65
- className: o,
66
- onKeyDown: r,
65
+ function W({
66
+ className: r,
67
+ onKeyDown: o,
67
68
  disableAutosize: n = !1,
68
69
  ...s
69
70
  }) {
70
- const { value: i, setValue: l, maxHeight: e, onSubmit: c, disabled: d, textareaRef: u } = v(), p = (t) => {
71
+ const { value: i, setValue: u, maxHeight: e, onSubmit: p, disabled: d, textareaRef: c } = y(), f = (t) => {
71
72
  !t || n || (t.style.height = "auto", typeof e == "number" ? t.style.height = `${Math.min(t.scrollHeight, e)}px` : t.style.height = `min(${t.scrollHeight}px, ${e})`);
72
73
  }, m = (t) => {
73
- u.current = t, p(t);
74
+ c.current = t, f(t);
74
75
  };
75
- C(() => {
76
- if (!u.current || n)
76
+ I(() => {
77
+ if (!c.current || n)
77
78
  return;
78
- const t = u.current;
79
+ const t = c.current;
79
80
  t.style.height = "auto", typeof e == "number" ? t.style.height = `${Math.min(t.scrollHeight, e)}px` : t.style.height = `min(${t.scrollHeight}px, ${e})`;
80
81
  }, [i, e, n]);
81
- const f = (t) => {
82
- p(t.target), l(t.target.value);
82
+ const h = (t) => {
83
+ f(t.target), u(t.target.value);
83
84
  }, g = (t) => {
84
- t.key === "Enter" && !t.shiftKey && (t.preventDefault(), d || c?.()), r?.(t);
85
+ t.key === "Enter" && !t.shiftKey && (t.preventDefault(), d || p?.()), o?.(t);
85
86
  };
86
87
  return /* @__PURE__ */ a(
87
- H,
88
+ R,
88
89
  {
89
90
  className: x(
90
91
  "min-h-[56px] w-full resize-none border-none bg-transparent text-foreground shadow-none outline-none focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-transparent",
91
- o
92
+ r
92
93
  ),
93
94
  "data-slot": "prompt-input-textarea",
94
- onChange: f,
95
+ onChange: h,
95
96
  onKeyDown: g,
96
97
  ref: m,
97
98
  rows: 1,
@@ -100,47 +101,47 @@ function L({
100
101
  }
101
102
  );
102
103
  }
103
- function M({
104
- children: o,
105
- className: r,
104
+ function q({
105
+ children: r,
106
+ className: o,
106
107
  ...n
107
108
  }) {
108
109
  return /* @__PURE__ */ a(
109
110
  "div",
110
111
  {
111
- className: x("flex items-center gap-2", r),
112
+ className: x("flex items-center gap-2", o),
112
113
  "data-slot": "prompt-input-actions",
113
114
  ...n,
114
- children: o
115
+ children: r
115
116
  }
116
117
  );
117
118
  }
118
- function q({
119
- tooltip: o,
120
- children: r,
119
+ function A({
120
+ tooltip: r,
121
+ children: o,
121
122
  className: n,
122
123
  side: s = "top",
123
124
  ...i
124
125
  }) {
125
- const { disabled: l } = v();
126
- return /* @__PURE__ */ y(R, { ...i, children: [
126
+ const { disabled: u } = y();
127
+ return /* @__PURE__ */ _(D, { ...i, children: [
127
128
  /* @__PURE__ */ a(
128
- $,
129
+ j,
129
130
  {
130
- disabled: l,
131
+ disabled: u,
131
132
  onClick: (e) => e.stopPropagation(),
132
133
  onPointerDown: (e) => {
133
134
  e.pointerType !== "touch" && e.preventDefault();
134
135
  },
135
- render: r
136
+ render: o
136
137
  }
137
138
  ),
138
- /* @__PURE__ */ a(D, { className: n, side: s, children: o })
139
+ /* @__PURE__ */ a(K, { className: n, side: s, children: r })
139
140
  ] });
140
141
  }
141
142
  export {
142
- E as PromptInput,
143
- q as PromptInputAction,
144
- M as PromptInputActions,
145
- L as PromptInputTextarea
143
+ M as PromptInput,
144
+ A as PromptInputAction,
145
+ q as PromptInputActions,
146
+ W as PromptInputTextarea
146
147
  };
@@ -22,10 +22,12 @@ export type StepsProgressProps = {
22
22
  * Respects `prefers-reduced-motion` via token CSS.
23
23
  */
24
24
  animateStepTransitions?: boolean;
25
+ /** Render steps in a vertical list instead of a horizontal bar. */
26
+ orientation?: "horizontal" | "vertical";
25
27
  } & React.ComponentProps<"section">;
26
28
  export declare function getMobileIndexForSteps(steps: Step[], options?: {
27
29
  currentIndex?: number;
28
30
  isDismissible?: boolean;
29
31
  }): number;
30
- export declare function StepsProgress({ steps, onDismiss, animateStepTransitions, className, ...props }: StepsProgressProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function StepsProgress({ steps, onDismiss, animateStepTransitions, orientation, className, ...props }: StepsProgressProps): import("react/jsx-runtime").JSX.Element;
31
33
  //# sourceMappingURL=steps-progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps-progress.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/steps-progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAUpC,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,GAAG,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAsDpC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,IAAI,EAAE,EACb,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,UAwBF;AAuBD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,sBAA8B,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAuMpB"}
1
+ {"version":3,"file":"steps-progress.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/steps-progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAcpC,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mEAAmE;IACnE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,GAAG,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAsDpC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,IAAI,EAAE,EACb,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,UAwBF;AAuBD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,sBAA8B,EAC9B,WAA0B,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkPpB"}
@@ -1,237 +1,278 @@
1
1
  "use client";
2
- import { jsxs as f, jsx as n } from "react/jsx-runtime";
3
- import { ChevronLeft as B, X as S, ChevronRight as D } from "lucide-react";
4
- import { useState as C, useLayoutEffect as E, useRef as x, useEffect as M } from "react";
2
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
3
+ import { Check as D, ChevronLeft as E, X as C, ChevronRight as P } from "lucide-react";
4
+ import { useState as L, useLayoutEffect as V, useRef as p, useEffect as M } from "react";
5
5
  import { Button as j } from "../atoms/button.js";
6
- import { DS_SPARKLE_DURATION_MS as P, SparkleBurst as _ } from "../atoms/sparkle-burst.js";
7
- import { StepIndicator as G } from "../atoms/step-indicator.js";
8
- import { cn as u } from "../../../lib/utils.js";
9
- function K({ step: e, stepNumber: t, isAttention: r }) {
10
- const o = /* @__PURE__ */ n(
11
- G,
6
+ import { DS_SPARKLE_DURATION_MS as _, SparkleBurst as G } from "../atoms/sparkle-burst.js";
7
+ import { stepIndicatorIconVariants as K, stepIndicatorLabelVariants as F, StepIndicator as O } from "../atoms/step-indicator.js";
8
+ import { cn as l } from "../../../lib/utils.js";
9
+ function U({ step: e, stepNumber: n, isAttention: a }) {
10
+ const s = /* @__PURE__ */ t(
11
+ O,
12
12
  {
13
13
  className: "min-w-0",
14
14
  label: e.label,
15
15
  status: e.status,
16
- stepNumber: t
16
+ stepNumber: n
17
17
  }
18
- ), c = u(
18
+ ), u = l(
19
19
  "flex min-w-0 flex-1 items-center justify-center",
20
- r && "step-attention-target"
20
+ a && "step-attention-target"
21
21
  );
22
- return e.onClick ? /* @__PURE__ */ n(
22
+ return e.onClick ? /* @__PURE__ */ t(
23
23
  "button",
24
24
  {
25
- className: u(c, "cursor-pointer"),
25
+ className: l(u, "cursor-pointer"),
26
26
  onClick: e.onClick,
27
27
  type: "button",
28
- children: o
28
+ children: s
29
29
  }
30
- ) : /* @__PURE__ */ n("span", { className: c, children: o });
30
+ ) : /* @__PURE__ */ t("span", { className: u, children: s });
31
31
  }
32
32
  function R(e) {
33
33
  return e.length - 1;
34
34
  }
35
- function F(e) {
36
- return e.findIndex((t) => t.status === "active");
35
+ function X(e) {
36
+ return e.findIndex((n) => n.status === "active");
37
37
  }
38
- function L(e, t) {
39
- return e.length === 0 ? t ? 0 : -1 : t ? e.length : R(e);
38
+ function z(e, n) {
39
+ return e.length === 0 ? n ? 0 : -1 : n ? e.length : R(e);
40
40
  }
41
- function p(e, t) {
42
- const { currentIndex: r, isDismissible: o = !1 } = t ?? {}, c = F(e);
43
- if (c >= 0)
44
- return c;
41
+ function g(e, n) {
42
+ const { currentIndex: a, isDismissible: s = !1 } = n ?? {}, u = X(e);
43
+ if (u >= 0)
44
+ return u;
45
45
  if (e.length === 0)
46
- return o ? 0 : -1;
47
- const a = L(e, o);
48
- return r !== void 0 && r >= 0 && r <= a ? r : R(e);
46
+ return s ? 0 : -1;
47
+ const h = z(e, s);
48
+ return a !== void 0 && a >= 0 && a <= h ? a : R(e);
49
49
  }
50
- function O(e, t, r) {
51
- const o = L(e, r);
52
- return t >= 0 && t <= o ? t : p(e, {
53
- currentIndex: t,
54
- isDismissible: r
50
+ function $(e, n, a) {
51
+ const s = z(e, a);
52
+ return n >= 0 && n <= s ? n : g(e, {
53
+ currentIndex: n,
54
+ isDismissible: a
55
55
  });
56
56
  }
57
- function U(e) {
57
+ function q(e) {
58
58
  return `calc(${(e - 1) / e} * (100% - 4.25rem) + 0.75rem)`;
59
59
  }
60
- function W({
60
+ function te({
61
61
  steps: e,
62
- onDismiss: t,
63
- animateStepTransitions: r = !1,
64
- className: o,
65
- ...c
62
+ onDismiss: n,
63
+ animateStepTransitions: a = !1,
64
+ orientation: s = "horizontal",
65
+ className: u,
66
+ ...h
66
67
  }) {
67
- const a = !!t, [T, h] = C(
68
- () => p(e, { isDismissible: a })
68
+ const m = !!n, [T, b] = L(
69
+ () => g(e, { isDismissible: m })
69
70
  );
70
- E(() => {
71
- h(
72
- (i) => p(e, {
73
- currentIndex: i,
74
- isDismissible: a
71
+ V(() => {
72
+ b(
73
+ (r) => g(e, {
74
+ currentIndex: r,
75
+ isDismissible: m
75
76
  })
76
77
  );
77
- }, [a, e]);
78
- const [g, v] = C(void 0), b = x(null), d = x(null), N = x(0);
78
+ }, [m, e]);
79
+ const [v, N] = L(void 0), x = p(null), f = p(null), k = p(0);
79
80
  M(() => {
80
- const i = b.current, m = new Map(e.map((l) => [l.id, l.status]));
81
- if (i === null) {
82
- b.current = m;
81
+ const r = x.current, o = new Map(e.map((i) => [i.id, i.status]));
82
+ if (r === null) {
83
+ x.current = o;
83
84
  return;
84
85
  }
85
- if (r) {
86
- const l = e.find(
87
- (y) => y.status === "complete" && i.get(y.id) !== "complete"
86
+ if (a) {
87
+ const i = e.find(
88
+ (S) => S.status === "complete" && r.get(S.id) !== "complete"
88
89
  );
89
- l && (d.current !== null && window.clearTimeout(d.current), N.current += 1, v({ stepId: l.id, key: N.current }), d.current = window.setTimeout(() => {
90
- v(void 0), d.current = null;
91
- }, P));
90
+ i && (f.current !== null && window.clearTimeout(f.current), k.current += 1, N({ stepId: i.id, key: k.current }), f.current = window.setTimeout(() => {
91
+ N(void 0), f.current = null;
92
+ }, _));
92
93
  }
93
- b.current = m;
94
- }, [r, e]), M(
94
+ x.current = o;
95
+ }, [a, e]), M(
95
96
  () => () => {
96
- d.current !== null && window.clearTimeout(d.current);
97
+ f.current !== null && window.clearTimeout(f.current);
97
98
  },
98
99
  []
99
100
  );
100
- const s = O(
101
+ const d = $(
101
102
  e,
102
103
  T,
103
- a
104
- ), z = e[s], k = e.length, w = s > 0, I = a ? s < k : s < e.length - 1, A = a && e.at(-1)?.status === "active";
105
- return /* @__PURE__ */ f(
104
+ m
105
+ ), A = e[d], w = e.length, I = d > 0, y = m ? d < w : d < e.length - 1, B = m && e.at(-1)?.status === "active";
106
+ return s === "vertical" ? /* @__PURE__ */ t("section", { "aria-label": "Steps progress", className: l(u), ...h, children: /* @__PURE__ */ t("ol", { className: "flex flex-col", children: e.map((r, o) => {
107
+ const i = o === e.length - 1;
108
+ return /* @__PURE__ */ c(
109
+ "li",
110
+ {
111
+ className: l("flex items-start gap-3", !i && "pb-5"),
112
+ children: [
113
+ /* @__PURE__ */ c("div", { className: "flex shrink-0 flex-col items-center self-stretch", children: [
114
+ /* @__PURE__ */ t(
115
+ "span",
116
+ {
117
+ className: l(
118
+ K({ status: r.status })
119
+ ),
120
+ children: r.status === "complete" ? /* @__PURE__ */ t(D, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t("span", { className: "text-sm", children: o + 1 })
121
+ }
122
+ ),
123
+ !i && /* @__PURE__ */ t("div", { className: "mt-2 w-px flex-1 bg-border" })
124
+ ] }),
125
+ /* @__PURE__ */ c(
126
+ "span",
127
+ {
128
+ "aria-current": r.status === "active" ? "step" : void 0,
129
+ className: l(
130
+ F({ status: r.status }),
131
+ "pt-0.5"
132
+ ),
133
+ children: [
134
+ r.label,
135
+ /* @__PURE__ */ c("span", { className: "sr-only", children: [
136
+ " — ",
137
+ r.status
138
+ ] })
139
+ ]
140
+ }
141
+ )
142
+ ]
143
+ },
144
+ r.id
145
+ );
146
+ }) }) }) : /* @__PURE__ */ c(
106
147
  "section",
107
148
  {
108
149
  "aria-label": "Steps progress",
109
- className: u(
150
+ className: l(
110
151
  "relative h-14 overflow-hidden border border-border bg-card text-foreground",
111
- o
152
+ u
112
153
  ),
113
- ...c,
154
+ ...h,
114
155
  children: [
115
- A && /* @__PURE__ */ n(
156
+ B && /* @__PURE__ */ t(
116
157
  "span",
117
158
  {
118
159
  "aria-hidden": "true",
119
160
  className: "pointer-events-none absolute top-0 right-0 z-10 hidden h-0.5 bg-foreground sm:block",
120
- style: { left: U(e.length) }
161
+ style: { left: q(e.length) }
121
162
  }
122
163
  ),
123
- z?.status === "active" && /* @__PURE__ */ n(
164
+ A?.status === "active" && /* @__PURE__ */ t(
124
165
  "span",
125
166
  {
126
167
  "aria-hidden": "true",
127
168
  className: "pointer-events-none absolute inset-x-0 top-0 z-20 h-0.5 bg-foreground sm:hidden"
128
169
  }
129
170
  ),
130
- /* @__PURE__ */ f("div", { className: "relative z-10 flex h-full items-center sm:gap-3 sm:px-3", children: [
131
- /* @__PURE__ */ n(
171
+ /* @__PURE__ */ c("div", { className: "relative z-10 flex h-full items-center sm:gap-3 sm:px-3", children: [
172
+ /* @__PURE__ */ t(
132
173
  "button",
133
174
  {
134
175
  "aria-label": "Go to previous step",
135
- className: u(
176
+ className: l(
136
177
  "flex h-full shrink-0 items-center px-2 text-muted-foreground sm:hidden",
137
- !w && "pointer-events-none invisible"
178
+ !I && "pointer-events-none invisible"
138
179
  ),
139
- onClick: () => h(s - 1),
140
- tabIndex: w ? 0 : -1,
180
+ onClick: () => b(d - 1),
181
+ tabIndex: I ? 0 : -1,
141
182
  type: "button",
142
- children: /* @__PURE__ */ n(B, { className: "h-4 w-4" })
183
+ children: /* @__PURE__ */ t(E, { className: "h-4 w-4" })
143
184
  }
144
185
  ),
145
- /* @__PURE__ */ f("ol", { className: "flex h-full min-w-0 flex-1 items-center gap-0", children: [
146
- e.map((i, m) => {
147
- const l = g?.stepId === i.id;
148
- return /* @__PURE__ */ f(
186
+ /* @__PURE__ */ c("ol", { className: "flex h-full min-w-0 flex-1 items-center gap-0", children: [
187
+ e.map((r, o) => {
188
+ const i = v?.stepId === r.id;
189
+ return /* @__PURE__ */ c(
149
190
  "li",
150
191
  {
151
- "aria-current": i.status === "active" ? "step" : void 0,
152
- className: u(
192
+ "aria-current": r.status === "active" ? "step" : void 0,
193
+ className: l(
153
194
  "relative isolate flex h-full min-w-0 flex-1 items-center justify-center px-2 py-4 sm:px-3",
154
- m !== s && "hidden sm:flex"
195
+ o !== d && "hidden sm:flex"
155
196
  ),
156
- "data-attention": l ? "true" : void 0,
157
- "data-status": i.status,
197
+ "data-attention": i ? "true" : void 0,
198
+ "data-status": r.status,
158
199
  children: [
159
- m > 0 && /* @__PURE__ */ n(
200
+ o > 0 && /* @__PURE__ */ t(
160
201
  "span",
161
202
  {
162
203
  "aria-hidden": "true",
163
204
  className: "absolute left-0 hidden h-full w-px bg-border sm:block"
164
205
  }
165
206
  ),
166
- /* @__PURE__ */ n(
167
- K,
207
+ /* @__PURE__ */ t(
208
+ U,
168
209
  {
169
- isAttention: l,
170
- step: i,
171
- stepNumber: m + 1
210
+ isAttention: i,
211
+ step: r,
212
+ stepNumber: o + 1
172
213
  }
173
214
  ),
174
- l ? /* @__PURE__ */ n(
215
+ i ? /* @__PURE__ */ t(
175
216
  "span",
176
217
  {
177
218
  "aria-hidden": !0,
178
219
  className: "pointer-events-none absolute inset-0 z-30 flex items-center justify-center",
179
- children: /* @__PURE__ */ n(_, {}, g.key)
220
+ children: /* @__PURE__ */ t(G, {}, v.key)
180
221
  }
181
222
  ) : null
182
223
  ]
183
224
  },
184
- i.id
225
+ r.id
185
226
  );
186
227
  }),
187
- t && /* @__PURE__ */ n(
228
+ n && /* @__PURE__ */ t(
188
229
  "li",
189
230
  {
190
- className: u(
231
+ className: l(
191
232
  "relative isolate flex h-full flex-1 items-center justify-center sm:hidden",
192
- s !== k && "hidden"
233
+ d !== w && "hidden"
193
234
  ),
194
- children: /* @__PURE__ */ f(
235
+ children: /* @__PURE__ */ c(
195
236
  j,
196
237
  {
197
238
  "aria-label": "Dismiss steps progress",
198
239
  className: "h-8 gap-1.5 border border-border px-3 text-muted-foreground hover:bg-muted hover:text-foreground",
199
- onClick: t,
240
+ onClick: n,
200
241
  type: "button",
201
242
  variant: "ghost",
202
243
  children: [
203
- /* @__PURE__ */ n(S, { className: "h-4 w-4" }),
204
- /* @__PURE__ */ n("span", { className: "text-sm", children: "Dismiss" })
244
+ /* @__PURE__ */ t(C, { className: "h-4 w-4" }),
245
+ /* @__PURE__ */ t("span", { className: "text-sm", children: "Dismiss" })
205
246
  ]
206
247
  }
207
248
  )
208
249
  }
209
250
  )
210
251
  ] }),
211
- /* @__PURE__ */ n(
252
+ /* @__PURE__ */ t(
212
253
  "button",
213
254
  {
214
255
  "aria-label": "Go to next step",
215
- className: u(
256
+ className: l(
216
257
  "flex h-full shrink-0 items-center px-2 text-muted-foreground sm:hidden",
217
- !I && "pointer-events-none invisible"
258
+ !y && "pointer-events-none invisible"
218
259
  ),
219
- onClick: () => h(s + 1),
220
- tabIndex: I ? 0 : -1,
260
+ onClick: () => b(d + 1),
261
+ tabIndex: y ? 0 : -1,
221
262
  type: "button",
222
- children: /* @__PURE__ */ n(D, { className: "h-4 w-4" })
263
+ children: /* @__PURE__ */ t(P, { className: "h-4 w-4" })
223
264
  }
224
265
  ),
225
- t && /* @__PURE__ */ n(
266
+ n && /* @__PURE__ */ t(
226
267
  j,
227
268
  {
228
269
  "aria-label": "Dismiss steps progress",
229
270
  className: "hidden h-8 w-8 shrink-0 border border-border text-muted-foreground hover:bg-muted hover:text-foreground sm:flex",
230
- onClick: t,
271
+ onClick: n,
231
272
  size: "icon",
232
273
  type: "button",
233
274
  variant: "ghost",
234
- children: /* @__PURE__ */ n(S, { className: "h-4 w-4" })
275
+ children: /* @__PURE__ */ t(C, { className: "h-4 w-4" })
235
276
  }
236
277
  )
237
278
  ] })
@@ -240,6 +281,6 @@ function W({
240
281
  );
241
282
  }
242
283
  export {
243
- W as StepsProgress,
244
- p as getMobileIndexForSteps
284
+ te as StepsProgress,
285
+ g as getMobileIndexForSteps
245
286
  };