@handamade/psi-react 0.5.0 → 0.7.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.
package/dist/index.js CHANGED
@@ -1,62 +1,62 @@
1
- import { jsx as n, jsxs as c, Fragment as A } from "react/jsx-runtime";
2
- import { createContext as q, useId as M, useRef as E, useEffect as S, useContext as V, useState as R, useCallback as I, cloneElement as D } from "react";
3
- const T = "_button_m8fis_3", F = "_disabled_m8fis_31", P = "_size24_m8fis_39", U = "_size32_m8fis_45", Z = "_size40_m8fis_51", G = "_size48_m8fis_57", K = "_accent_m8fis_66", X = "_accentSubtle_m8fis_78", Y = "_neutral_m8fis_90", J = "_neutralSubtle_m8fis_102", Q = "_ghost_m8fis_114", O = "_danger_m8fis_126", ee = "_dangerSubtle_m8fis_138", ne = "_outline_m8fis_150", f = {
4
- button: T,
5
- disabled: F,
6
- size24: P,
7
- size32: U,
8
- size40: Z,
9
- size48: G,
10
- accent: K,
11
- accentSubtle: X,
12
- neutral: Y,
13
- neutralSubtle: J,
14
- ghost: Q,
15
- danger: O,
16
- dangerSubtle: ee,
17
- outline: ne
18
- }, te = {
19
- accent: f.accent,
20
- "accent-subtle": f.accentSubtle,
21
- neutral: f.neutral,
22
- "neutral-subtle": f.neutralSubtle,
23
- ghost: f.ghost,
24
- danger: f.danger,
25
- "danger-subtle": f.dangerSubtle,
26
- outline: f.outline
27
- }, oe = {
28
- 24: f.size24,
29
- 32: f.size32,
30
- 40: f.size40,
31
- 48: f.size48
1
+ import { jsx as n, jsxs as c, Fragment as E } from "react/jsx-runtime";
2
+ import { createContext as T, useId as W, useRef as q, useEffect as I, useContext as R, useState as D, useCallback as M, cloneElement as F } from "react";
3
+ const P = "_button_m8fis_3", U = "_disabled_m8fis_31", Z = "_size24_m8fis_39", G = "_size32_m8fis_45", K = "_size40_m8fis_51", X = "_size48_m8fis_57", Y = "_accent_m8fis_66", J = "_accentSubtle_m8fis_78", Q = "_neutral_m8fis_90", O = "_neutralSubtle_m8fis_102", ee = "_ghost_m8fis_114", ne = "_danger_m8fis_126", te = "_dangerSubtle_m8fis_138", oe = "_outline_m8fis_150", p = {
4
+ button: P,
5
+ disabled: U,
6
+ size24: Z,
7
+ size32: G,
8
+ size40: K,
9
+ size48: X,
10
+ accent: Y,
11
+ accentSubtle: J,
12
+ neutral: Q,
13
+ neutralSubtle: O,
14
+ ghost: ee,
15
+ danger: ne,
16
+ dangerSubtle: te,
17
+ outline: oe
18
+ }, ie = {
19
+ accent: p.accent,
20
+ "accent-subtle": p.accentSubtle,
21
+ neutral: p.neutral,
22
+ "neutral-subtle": p.neutralSubtle,
23
+ ghost: p.ghost,
24
+ danger: p.danger,
25
+ "danger-subtle": p.dangerSubtle,
26
+ outline: p.outline
27
+ }, re = {
28
+ 24: p.size24,
29
+ 32: p.size32,
30
+ 40: p.size40,
31
+ 48: p.size48
32
32
  };
33
- function Dn({
33
+ function Yn({
34
34
  variant: e = "neutral",
35
35
  size: t = 32,
36
- href: r,
37
- target: s,
38
- rel: a,
36
+ href: i,
37
+ target: a,
38
+ rel: s,
39
39
  disabled: o,
40
- className: i,
40
+ className: r,
41
41
  onClick: l,
42
42
  ref: u,
43
43
  ...h
44
44
  }) {
45
- const g = [
46
- f.button,
47
- te[e],
48
- oe[t],
49
- r !== void 0 && o ? f.disabled : void 0,
50
- i
45
+ const f = [
46
+ p.button,
47
+ ie[e],
48
+ re[t],
49
+ i !== void 0 && o ? p.disabled : void 0,
50
+ r
51
51
  ].filter(Boolean).join(" ");
52
- return r !== void 0 ? /* @__PURE__ */ n(
52
+ return i !== void 0 ? /* @__PURE__ */ n(
53
53
  "a",
54
54
  {
55
55
  ref: u,
56
- className: g,
57
- href: o ? void 0 : r,
58
- target: s,
59
- rel: a,
56
+ className: f,
57
+ href: o ? void 0 : i,
58
+ target: a,
59
+ rel: s,
60
60
  "aria-disabled": o || void 0,
61
61
  onClick: o ? void 0 : l,
62
62
  ...h
@@ -65,62 +65,62 @@ function Dn({
65
65
  "button",
66
66
  {
67
67
  ref: u,
68
- className: g,
68
+ className: f,
69
69
  disabled: o,
70
70
  onClick: l,
71
71
  ...h
72
72
  }
73
73
  );
74
74
  }
75
- const ie = "_iconButton_1dldx_3", re = "_disabled_1dldx_29", se = "_size24_1dldx_37", ae = "_size32_1dldx_42", ce = "_size40_1dldx_47", le = "_size48_1dldx_52", de = "_accent_1dldx_60", ue = "_neutral_1dldx_72", _e = "_ghost_1dldx_84", he = "_danger_1dldx_96", p = {
76
- iconButton: ie,
77
- disabled: re,
78
- size24: se,
79
- size32: ae,
80
- size40: ce,
81
- size48: le,
82
- accent: de,
83
- neutral: ue,
84
- ghost: _e,
85
- danger: he
86
- }, ve = {
87
- accent: p.accent,
88
- neutral: p.neutral,
89
- ghost: p.ghost,
90
- danger: p.danger
75
+ const se = "_iconButton_1dldx_3", ae = "_disabled_1dldx_29", ce = "_size24_1dldx_37", le = "_size32_1dldx_42", de = "_size40_1dldx_47", ue = "_size48_1dldx_52", _e = "_accent_1dldx_60", he = "_neutral_1dldx_72", ge = "_ghost_1dldx_84", pe = "_danger_1dldx_96", b = {
76
+ iconButton: se,
77
+ disabled: ae,
78
+ size24: ce,
79
+ size32: le,
80
+ size40: de,
81
+ size48: ue,
82
+ accent: _e,
83
+ neutral: he,
84
+ ghost: ge,
85
+ danger: pe
91
86
  }, fe = {
92
- 24: p.size24,
93
- 32: p.size32,
94
- 40: p.size40,
95
- 48: p.size48
87
+ accent: b.accent,
88
+ neutral: b.neutral,
89
+ ghost: b.ghost,
90
+ danger: b.danger
91
+ }, ve = {
92
+ 24: b.size24,
93
+ 32: b.size32,
94
+ 40: b.size40,
95
+ 48: b.size48
96
96
  };
97
- function ge({
97
+ function be({
98
98
  variant: e = "neutral",
99
99
  size: t = 32,
100
- href: r,
101
- target: s,
102
- rel: a,
100
+ href: i,
101
+ target: a,
102
+ rel: s,
103
103
  disabled: o,
104
- className: i,
104
+ className: r,
105
105
  onClick: l,
106
106
  ref: u,
107
107
  ...h
108
108
  }) {
109
- const g = [
110
- p.iconButton,
111
- ve[e],
112
- fe[t],
113
- r !== void 0 && o ? p.disabled : void 0,
114
- i
109
+ const f = [
110
+ b.iconButton,
111
+ fe[e],
112
+ ve[t],
113
+ i !== void 0 && o ? b.disabled : void 0,
114
+ r
115
115
  ].filter(Boolean).join(" ");
116
- return r !== void 0 ? /* @__PURE__ */ n(
116
+ return i !== void 0 ? /* @__PURE__ */ n(
117
117
  "a",
118
118
  {
119
119
  ref: u,
120
- className: g,
121
- href: o ? void 0 : r,
122
- target: s,
123
- rel: a,
120
+ className: f,
121
+ href: o ? void 0 : i,
122
+ target: a,
123
+ rel: s,
124
124
  "aria-disabled": o || void 0,
125
125
  onClick: o ? void 0 : l,
126
126
  ...h
@@ -129,175 +129,183 @@ function ge({
129
129
  "button",
130
130
  {
131
131
  ref: u,
132
- className: g,
132
+ className: f,
133
133
  disabled: o,
134
134
  onClick: l,
135
135
  ...h
136
136
  }
137
137
  );
138
138
  }
139
- const be = "_card_1btb3_1", pe = "_stacked_1btb3_8", ye = "_featured_1btb3_10", ke = "_media_1btb3_22", me = "_body_1btb3_23", xe = "_hoverLift_1btb3_31", m = {
140
- card: be,
141
- stacked: pe,
142
- featured: ye,
143
- media: ke,
144
- body: me,
145
- hoverLift: xe
139
+ const ye = "_card_1btb3_1", ke = "_stacked_1btb3_8", me = "_featured_1btb3_10", xe = "_media_1btb3_22", we = "_body_1btb3_23", ze = "_hoverLift_1btb3_31", m = {
140
+ card: ye,
141
+ stacked: ke,
142
+ featured: me,
143
+ media: xe,
144
+ body: we,
145
+ hoverLift: ze
146
146
  };
147
- function Tn({
147
+ function Jn({
148
148
  variant: e = "stacked",
149
149
  media: t,
150
- hoverLift: r = !1,
151
- className: s,
152
- children: a,
150
+ hoverLift: i = !1,
151
+ className: a,
152
+ children: s,
153
153
  ref: o,
154
- ...i
154
+ ...r
155
155
  }) {
156
156
  const l = [
157
157
  m.card,
158
158
  e === "featured" ? m.featured : m.stacked,
159
- r ? m.hoverLift : void 0,
160
- s
159
+ i ? m.hoverLift : void 0,
160
+ a
161
161
  ].filter(Boolean).join(" ");
162
- return /* @__PURE__ */ c("div", { ref: o, className: l, ...i, children: [
162
+ return /* @__PURE__ */ c("div", { ref: o, className: l, ...r, children: [
163
163
  t != null && /* @__PURE__ */ n("div", { className: m.media, children: t }),
164
- /* @__PURE__ */ n("div", { className: m.body, children: a })
164
+ /* @__PURE__ */ n("div", { className: m.body, children: s })
165
165
  ] });
166
166
  }
167
- const we = "_navbar_1uory_1", ze = "_inner_1uory_11", Ce = "_brand_1uory_18", Le = "_links_1uory_19", Be = "_actions_1uory_49", j = {
168
- navbar: we,
169
- inner: ze,
170
- brand: Ce,
171
- links: Le,
172
- actions: Be
167
+ const Ce = "_panel_jn8w4_1", je = "_padding16_jn8w4_8", V = {
168
+ panel: Ce,
169
+ padding16: je
170
+ };
171
+ function Qn({ padding: e = 24, className: t, children: i, ref: a, ...s }) {
172
+ const o = [V.panel, e === 16 ? V.padding16 : void 0, t].filter(Boolean).join(" ");
173
+ return /* @__PURE__ */ n("div", { ref: a, className: o, ...s, children: i });
174
+ }
175
+ const Le = "_navbar_1uory_1", Be = "_inner_1uory_11", $e = "_brand_1uory_18", Ne = "_links_1uory_19", Se = "_actions_1uory_49", B = {
176
+ navbar: Le,
177
+ inner: Be,
178
+ brand: $e,
179
+ links: Ne,
180
+ actions: Se
173
181
  };
174
- function Fn({ brand: e, actions: t, children: r, className: s, ref: a, ...o }) {
175
- const i = [j.navbar, s].filter(Boolean).join(" ");
176
- return /* @__PURE__ */ n("header", { ref: a, className: i, ...o, children: /* @__PURE__ */ c("div", { className: `ds-container ${j.inner}`, children: [
177
- e != null && /* @__PURE__ */ n("div", { className: j.brand, children: e }),
178
- /* @__PURE__ */ n("nav", { className: j.links, children: r }),
179
- t != null && /* @__PURE__ */ n("div", { className: j.actions, children: t })
182
+ function On({ brand: e, actions: t, children: i, className: a, ref: s, ...o }) {
183
+ const r = [B.navbar, a].filter(Boolean).join(" ");
184
+ return /* @__PURE__ */ n("header", { ref: s, className: r, ...o, children: /* @__PURE__ */ c("div", { className: `ds-container ${B.inner}`, children: [
185
+ e != null && /* @__PURE__ */ n("div", { className: B.brand, children: e }),
186
+ /* @__PURE__ */ n("nav", { className: B.links, children: i }),
187
+ t != null && /* @__PURE__ */ n("div", { className: B.actions, children: t })
180
188
  ] }) });
181
189
  }
182
- const je = "_frame_et4fc_1", $e = {
183
- frame: je
190
+ const Ie = "_frame_et4fc_1", Me = {
191
+ frame: Ie
184
192
  };
185
- function Pn({ ratio: e, className: t, style: r, children: s, ref: a, ...o }) {
186
- const i = [$e.frame, t].filter(Boolean).join(" ");
187
- return /* @__PURE__ */ n("div", { ref: a, className: i, style: { aspectRatio: String(e), ...r }, ...o, children: s });
188
- }
189
- const Ne = "_field_lplye_1", Se = "_label_lplye_10", Ie = "_marker_lplye_16", Me = "_message_lplye_20", We = "_invalid_lplye_26", x = {
190
- field: Ne,
191
- label: Se,
192
- marker: Ie,
193
- message: Me,
194
- invalid: We
195
- }, W = q(null);
196
- function Un({
193
+ function et({ ratio: e, className: t, style: i, children: a, ref: s, ...o }) {
194
+ const r = [Me.frame, t].filter(Boolean).join(" ");
195
+ return /* @__PURE__ */ n("div", { ref: s, className: r, style: { aspectRatio: String(e), ...i }, ...o, children: a });
196
+ }
197
+ const We = "_field_lplye_1", He = "_label_lplye_10", Ae = "_marker_lplye_16", Ee = "_message_lplye_20", Ve = "_invalid_lplye_26", x = {
198
+ field: We,
199
+ label: He,
200
+ marker: Ae,
201
+ message: Ee,
202
+ invalid: Ve
203
+ }, H = T(null);
204
+ function nt({
197
205
  label: e,
198
206
  description: t,
199
- error: r,
200
- required: s = !1,
201
- group: a = !1,
207
+ error: i,
208
+ required: a = !1,
209
+ group: s = !1,
202
210
  htmlFor: o,
203
- className: i,
211
+ className: r,
204
212
  children: l,
205
213
  ref: u,
206
214
  ...h
207
215
  }) {
208
- const g = M(), v = o ?? g, d = !!r, B = d ? r : t, k = B != null && B !== !1 ? `${v}-message` : void 0, N = [x.field, d && x.invalid, i].filter(Boolean).join(" "), _ = e != null ? /* @__PURE__ */ c(A, { children: [
216
+ const f = W(), g = o ?? f, d = !!i, L = d ? i : t, k = L != null && L !== !1 ? `${g}-message` : void 0, N = [x.field, d && x.invalid, r].filter(Boolean).join(" "), _ = e != null ? /* @__PURE__ */ c(E, { children: [
209
217
  e,
210
- s && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: x.marker, children: " *" })
211
- ] }) : null, H = /* @__PURE__ */ c(A, { children: [
212
- _ != null && (a ? /* @__PURE__ */ n("legend", { className: x.label, children: _ }) : /* @__PURE__ */ n("label", { className: x.label, htmlFor: v, children: _ })),
213
- /* @__PURE__ */ n(W.Provider, { value: { id: v, describedBy: k, invalid: d, required: s }, children: l }),
214
- k && /* @__PURE__ */ n("p", { id: k, className: x.message, "aria-live": "polite", children: B })
218
+ a && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: x.marker, children: " *" })
219
+ ] }) : null, A = /* @__PURE__ */ c(E, { children: [
220
+ _ != null && (s ? /* @__PURE__ */ n("legend", { className: x.label, children: _ }) : /* @__PURE__ */ n("label", { className: x.label, htmlFor: g, children: _ })),
221
+ /* @__PURE__ */ n(H.Provider, { value: { id: g, describedBy: k, invalid: d, required: a }, children: l }),
222
+ k && /* @__PURE__ */ n("p", { id: k, className: x.message, "aria-live": "polite", children: L })
215
223
  ] });
216
- return a ? /* @__PURE__ */ n(
224
+ return s ? /* @__PURE__ */ n(
217
225
  "fieldset",
218
226
  {
219
227
  ref: u,
220
228
  className: N,
221
229
  "aria-describedby": k,
222
230
  ...h,
223
- children: H
231
+ children: A
224
232
  }
225
- ) : /* @__PURE__ */ n("div", { ref: u, className: N, ...h, children: H });
233
+ ) : /* @__PURE__ */ n("div", { ref: u, className: N, ...h, children: A });
226
234
  }
227
- function Zn({ size: e = 20, ...t }) {
235
+ function tt({ size: e = 20, ...t }) {
228
236
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
229
237
  /* @__PURE__ */ n("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
230
238
  /* @__PURE__ */ n("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
231
239
  ] });
232
240
  }
233
- function Gn({ size: e = 20, ...t }) {
241
+ function ot({ size: e = 20, ...t }) {
234
242
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) });
235
243
  }
236
- function He({ size: e = 20, ...t }) {
244
+ function qe({ size: e = 20, ...t }) {
237
245
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
238
246
  /* @__PURE__ */ n("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
239
247
  /* @__PURE__ */ n("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
240
248
  ] });
241
249
  }
242
- function Kn({ size: e = 20, ...t }) {
250
+ function it({ size: e = 20, ...t }) {
243
251
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("polyline", { points: "20 6 9 17 4 12" }) });
244
252
  }
245
- function Xn({ size: e = 20, ...t }) {
253
+ function rt({ size: e = 20, ...t }) {
246
254
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("polyline", { points: "6 9 12 15 18 9" }) });
247
255
  }
248
- function Yn({ size: e = 20, ...t }) {
256
+ function st({ size: e = 20, ...t }) {
249
257
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("polyline", { points: "9 18 15 12 9 6" }) });
250
258
  }
251
- function Jn({ size: e = 20, ...t }) {
259
+ function at({ size: e = 20, ...t }) {
252
260
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
253
261
  /* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
254
262
  /* @__PURE__ */ n("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
255
263
  ] });
256
264
  }
257
- function Qn({ size: e = 20, ...t }) {
265
+ function ct({ size: e = 20, ...t }) {
258
266
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
259
267
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" }),
260
268
  /* @__PURE__ */ n("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
261
269
  ] });
262
270
  }
263
- function On({ size: e = 20, ...t }) {
271
+ function lt({ size: e = 20, ...t }) {
264
272
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
265
273
  /* @__PURE__ */ n("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
266
274
  /* @__PURE__ */ n("circle", { cx: "12", cy: "7", r: "4" })
267
275
  ] });
268
276
  }
269
- function et({ size: e = 20, ...t }) {
277
+ function dt({ size: e = 20, ...t }) {
270
278
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
271
279
  /* @__PURE__ */ n("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
272
280
  /* @__PURE__ */ n("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
273
281
  ] });
274
282
  }
275
- function nt({ size: e = 20, ...t }) {
283
+ function ut({ size: e = 20, ...t }) {
276
284
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
277
285
  /* @__PURE__ */ n("polyline", { points: "3 6 5 6 21 6" }),
278
286
  /* @__PURE__ */ n("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
279
287
  ] });
280
288
  }
281
- function tt({ size: e = 20, ...t }) {
289
+ function _t({ size: e = 20, ...t }) {
282
290
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
283
291
  /* @__PURE__ */ n("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
284
292
  /* @__PURE__ */ n("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
285
293
  ] });
286
294
  }
287
- function ot({ size: e = 20, ...t }) {
295
+ function ht({ size: e = 20, ...t }) {
288
296
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
289
297
  /* @__PURE__ */ n("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
290
298
  /* @__PURE__ */ n("polyline", { points: "15 3 21 3 21 9" }),
291
299
  /* @__PURE__ */ n("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
292
300
  ] });
293
301
  }
294
- function it({ size: e = 20, ...t }) {
302
+ function gt({ size: e = 20, ...t }) {
295
303
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
296
304
  /* @__PURE__ */ n("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
297
305
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" })
298
306
  ] });
299
307
  }
300
- function rt({ size: e = 20, ...t }) {
308
+ function pt({ size: e = 20, ...t }) {
301
309
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
302
310
  /* @__PURE__ */ n("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94" }),
303
311
  /* @__PURE__ */ n("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }),
@@ -305,7 +313,7 @@ function rt({ size: e = 20, ...t }) {
305
313
  /* @__PURE__ */ n("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
306
314
  ] });
307
315
  }
308
- function st({ size: e = 20, ...t }) {
316
+ function ft({ size: e = 20, ...t }) {
309
317
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
310
318
  /* @__PURE__ */ n("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
311
319
  /* @__PURE__ */ n("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
@@ -317,282 +325,282 @@ function st({ size: e = 20, ...t }) {
317
325
  /* @__PURE__ */ n("line", { x1: "16.24", y1: "7.76", x2: "19.07", y2: "4.93" })
318
326
  ] });
319
327
  }
320
- function at({ size: e = 20, ...t }) {
328
+ function vt({ size: e = 20, ...t }) {
321
329
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
322
330
  /* @__PURE__ */ n("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
323
331
  /* @__PURE__ */ n("polyline", { points: "19 12 12 19 5 12" })
324
332
  ] });
325
333
  }
326
- function ct({ size: e = 20, ...t }) {
334
+ function bt({ size: e = 20, ...t }) {
327
335
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
328
336
  /* @__PURE__ */ n("line", { x1: "7", y1: "17", x2: "17", y2: "7" }),
329
337
  /* @__PURE__ */ n("polyline", { points: "7 7 17 7 17 17" })
330
338
  ] });
331
339
  }
332
- function lt({ size: e = 20, ...t }) {
340
+ function yt({ size: e = 20, ...t }) {
333
341
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) });
334
342
  }
335
- function dt({ size: e = 20, ...t }) {
343
+ function kt({ size: e = 20, ...t }) {
336
344
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) });
337
345
  }
338
- function ut({ size: e = 20, ...t }) {
346
+ function mt({ size: e = 20, ...t }) {
339
347
  return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" }) });
340
348
  }
341
- function _t({ size: e = 20, ...t }) {
349
+ function xt({ size: e = 20, ...t }) {
342
350
  return /* @__PURE__ */ c("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
343
351
  /* @__PURE__ */ n("rect", { x: "2", y: "2", width: "20", height: "20", rx: "5", ry: "5" }),
344
352
  /* @__PURE__ */ n("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
345
353
  /* @__PURE__ */ n("line", { x1: "17.5", y1: "6.5", x2: "17.51", y2: "6.5" })
346
354
  ] });
347
355
  }
348
- const Ae = "_dialog_j8ndn_2", Ee = "_w400_j8ndn_31", Ve = "_w560_j8ndn_32", qe = "_w720_j8ndn_33", Re = "_panel_j8ndn_35", De = "_header_j8ndn_41", Te = "_title_j8ndn_48", Fe = "_footer_j8ndn_54", y = {
349
- dialog: Ae,
350
- w400: Ee,
351
- w560: Ve,
352
- w720: qe,
353
- panel: Re,
354
- header: De,
355
- title: Te,
356
- footer: Fe
357
- }, Pe = {
356
+ const Re = "_dialog_l23jf_2", Te = "_w400_l23jf_31", De = "_w560_l23jf_32", Fe = "_w720_l23jf_33", Pe = "_panel_l23jf_35", Ue = "_header_l23jf_41", Ze = "_title_l23jf_48", Ge = "_footer_l23jf_54", y = {
357
+ dialog: Re,
358
+ w400: Te,
359
+ w560: De,
360
+ w720: Fe,
361
+ panel: Pe,
362
+ header: Ue,
363
+ title: Ze,
364
+ footer: Ge
365
+ }, Ke = {
358
366
  400: y.w400,
359
367
  560: y.w560,
360
368
  720: y.w720
361
369
  };
362
- function ht({
370
+ function wt({
363
371
  open: e,
364
372
  onClose: t,
365
- title: r,
366
- footer: s,
367
- width: a = 560,
373
+ title: i,
374
+ footer: a,
375
+ width: s = 560,
368
376
  dismissible: o = !0,
369
- className: i,
377
+ className: r,
370
378
  children: l,
371
379
  ref: u,
372
380
  ...h
373
381
  }) {
374
- const g = E(null), v = M(), d = (_) => {
375
- g.current = _, typeof u == "function" ? u(_) : u && (u.current = _);
382
+ const f = q(null), g = W(), d = (_) => {
383
+ f.current = _, typeof u == "function" ? u(_) : u && (u.current = _);
376
384
  };
377
- S(() => {
378
- const _ = g.current;
385
+ I(() => {
386
+ const _ = f.current;
379
387
  _ && (e && !_.open ? _.showModal() : !e && _.open && _.close());
380
- }, [e]), S(() => {
388
+ }, [e]), I(() => {
381
389
  if (!e) return;
382
390
  const _ = document.body.style.overflow;
383
391
  return document.body.style.overflow = "hidden", () => {
384
392
  document.body.style.overflow = _;
385
393
  };
386
394
  }, [e]);
387
- const B = (_) => {
395
+ const L = (_) => {
388
396
  _.preventDefault(), o && t("esc");
389
397
  }, k = (_) => {
390
- o && _.target === g.current && t("backdrop");
391
- }, N = [y.dialog, Pe[a], i].filter(Boolean).join(" ");
398
+ o && _.target === f.current && t("backdrop");
399
+ }, N = [y.dialog, Ke[s], r].filter(Boolean).join(" ");
392
400
  return /* @__PURE__ */ n(
393
401
  "dialog",
394
402
  {
395
403
  ref: d,
396
404
  className: N,
397
- "aria-labelledby": r != null ? v : void 0,
398
- onCancel: B,
405
+ "aria-labelledby": i != null ? g : void 0,
406
+ onCancel: L,
399
407
  onClick: k,
400
408
  ...h,
401
409
  children: /* @__PURE__ */ c("div", { className: y.panel, children: [
402
- (r != null || o) && /* @__PURE__ */ c("div", { className: y.header, children: [
403
- r != null && /* @__PURE__ */ n("h2", { id: v, className: y.title, children: r }),
410
+ (i != null || o) && /* @__PURE__ */ c("div", { className: y.header, children: [
411
+ i != null && /* @__PURE__ */ n("h2", { id: g, className: y.title, children: i }),
404
412
  o && /* @__PURE__ */ n(
405
- ge,
413
+ be,
406
414
  {
407
415
  variant: "ghost",
408
416
  size: 32,
409
417
  "aria-label": "Close dialog",
410
418
  onClick: () => t("close-button"),
411
- children: /* @__PURE__ */ n(He, { "aria-hidden": "true" })
419
+ children: /* @__PURE__ */ n(qe, { "aria-hidden": "true" })
412
420
  }
413
421
  )
414
422
  ] }),
415
423
  l,
416
- s != null && /* @__PURE__ */ n("div", { className: y.footer, children: s })
424
+ a != null && /* @__PURE__ */ n("div", { className: y.footer, children: a })
417
425
  ] })
418
426
  }
419
427
  );
420
428
  }
421
- const Ue = "_input_8tzcf_3", Ze = "_size24_8tzcf_38", Ge = "_size32_8tzcf_43", Ke = "_size40_8tzcf_48", Xe = "_size48_8tzcf_53", Ye = "_error_8tzcf_60", z = {
422
- input: Ue,
423
- size24: Ze,
424
- size32: Ge,
425
- size40: Ke,
426
- size48: Xe,
427
- error: Ye
428
- }, Je = {
429
+ const Xe = "_input_8tzcf_3", Ye = "_size24_8tzcf_38", Je = "_size32_8tzcf_43", Qe = "_size40_8tzcf_48", Oe = "_size48_8tzcf_53", en = "_error_8tzcf_60", z = {
430
+ input: Xe,
431
+ size24: Ye,
432
+ size32: Je,
433
+ size40: Qe,
434
+ size48: Oe,
435
+ error: en
436
+ }, nn = {
429
437
  24: z.size24,
430
438
  32: z.size32,
431
439
  40: z.size40,
432
440
  48: z.size48
433
441
  };
434
- function vt({ size: e = 32, error: t = !1, className: r, ref: s, ...a }) {
435
- const o = V(W), i = t || ((o == null ? void 0 : o.invalid) ?? !1), l = [o == null ? void 0 : o.describedBy, a["aria-describedby"]].filter(Boolean).join(" ") || void 0, u = [z.input, Je[e], i && z.error, r].filter(Boolean).join(" ");
442
+ function zt({ size: e = 32, error: t = !1, className: i, ref: a, ...s }) {
443
+ const o = R(H), r = t || ((o == null ? void 0 : o.invalid) ?? !1), l = [o == null ? void 0 : o.describedBy, s["aria-describedby"]].filter(Boolean).join(" ") || void 0, u = [z.input, nn[e], r && z.error, i].filter(Boolean).join(" ");
436
444
  return /* @__PURE__ */ n(
437
445
  "input",
438
446
  {
439
- ref: s,
447
+ ref: a,
440
448
  className: u,
441
- id: a.id ?? (o == null ? void 0 : o.id),
442
- required: a.required ?? ((o == null ? void 0 : o.required) || void 0),
449
+ id: s.id ?? (o == null ? void 0 : o.id),
450
+ required: s.required ?? ((o == null ? void 0 : o.required) || void 0),
443
451
  "aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
444
- ...a,
452
+ ...s,
445
453
  "aria-describedby": l
446
454
  }
447
455
  );
448
456
  }
449
- const Qe = "_select_140kg_3", Oe = "_size24_140kg_40", en = "_size32_140kg_45", nn = "_size40_140kg_50", tn = "_size48_140kg_55", on = "_error_140kg_62", C = {
450
- select: Qe,
451
- size24: Oe,
452
- size32: en,
453
- size40: nn,
454
- size48: tn,
455
- error: on
456
- }, rn = {
457
+ const tn = "_select_140kg_3", on = "_size24_140kg_40", rn = "_size32_140kg_45", sn = "_size40_140kg_50", an = "_size48_140kg_55", cn = "_error_140kg_62", C = {
458
+ select: tn,
459
+ size24: on,
460
+ size32: rn,
461
+ size40: sn,
462
+ size48: an,
463
+ error: cn
464
+ }, ln = {
457
465
  24: C.size24,
458
466
  32: C.size32,
459
467
  40: C.size40,
460
468
  48: C.size48
461
469
  };
462
- function ft({
470
+ function Ct({
463
471
  size: e = 32,
464
472
  error: t = !1,
465
- className: r,
466
- ref: s,
467
- children: a,
473
+ className: i,
474
+ ref: a,
475
+ children: s,
468
476
  ...o
469
477
  }) {
470
- const i = V(W), l = t || ((i == null ? void 0 : i.invalid) ?? !1), u = [i == null ? void 0 : i.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, h = [
478
+ const r = R(H), l = t || ((r == null ? void 0 : r.invalid) ?? !1), u = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, h = [
471
479
  C.select,
472
- rn[e],
480
+ ln[e],
473
481
  l && C.error,
474
- r
482
+ i
475
483
  ].filter(Boolean).join(" ");
476
484
  return /* @__PURE__ */ n(
477
485
  "select",
478
486
  {
479
- ref: s,
487
+ ref: a,
480
488
  className: h,
481
- id: o.id ?? (i == null ? void 0 : i.id),
482
- required: o.required ?? ((i == null ? void 0 : i.required) || void 0),
483
- "aria-invalid": (i == null ? void 0 : i.invalid) || void 0,
489
+ id: o.id ?? (r == null ? void 0 : r.id),
490
+ required: o.required ?? ((r == null ? void 0 : r.required) || void 0),
491
+ "aria-invalid": (r == null ? void 0 : r.invalid) || void 0,
484
492
  ...o,
485
493
  "aria-describedby": u,
486
- children: a
494
+ children: s
487
495
  }
488
496
  );
489
497
  }
490
- const sn = "_label_n457n_3", an = "_disabled_n457n_13", cn = "_input_n457n_20", ln = "_indicator_n457n_34", dn = "_text_n457n_74", $ = {
491
- label: sn,
492
- disabled: an,
493
- input: cn,
494
- indicator: ln,
495
- text: dn
498
+ const dn = "_label_thyza_3", un = "_disabled_thyza_13", _n = "_input_thyza_20", hn = "_indicator_thyza_34", gn = "_text_thyza_75", $ = {
499
+ label: dn,
500
+ disabled: un,
501
+ input: _n,
502
+ indicator: hn,
503
+ text: gn
496
504
  };
497
- function gt({
505
+ function jt({
498
506
  children: e,
499
507
  className: t,
500
- disabled: r,
501
- ref: s,
502
- ...a
508
+ disabled: i,
509
+ ref: a,
510
+ ...s
503
511
  }) {
504
- const o = [$.label, r && $.disabled, t].filter(Boolean).join(" ");
512
+ const o = [$.label, i && $.disabled, t].filter(Boolean).join(" ");
505
513
  return /* @__PURE__ */ c("label", { className: o, children: [
506
514
  /* @__PURE__ */ n(
507
515
  "input",
508
516
  {
509
- ref: s,
517
+ ref: a,
510
518
  type: "checkbox",
511
519
  className: $.input,
512
- disabled: r,
513
- ...a
520
+ disabled: i,
521
+ ...s
514
522
  }
515
523
  ),
516
524
  /* @__PURE__ */ n("span", { className: $.indicator, "aria-hidden": "true" }),
517
525
  e && /* @__PURE__ */ n("span", { className: $.text, children: e })
518
526
  ] });
519
527
  }
520
- const un = "_label_jru2c_3", _n = "_disabled_jru2c_13", hn = "_input_jru2c_20", vn = "_track_jru2c_34", fn = "_thumb_jru2c_58", gn = "_text_jru2c_75", w = {
521
- label: un,
522
- disabled: _n,
523
- input: hn,
524
- track: vn,
525
- thumb: fn,
526
- text: gn
528
+ const pn = "_label_jru2c_3", fn = "_disabled_jru2c_13", vn = "_input_jru2c_20", bn = "_track_jru2c_34", yn = "_thumb_jru2c_58", kn = "_text_jru2c_75", w = {
529
+ label: pn,
530
+ disabled: fn,
531
+ input: vn,
532
+ track: bn,
533
+ thumb: yn,
534
+ text: kn
527
535
  };
528
- function bt({
536
+ function Lt({
529
537
  children: e,
530
538
  className: t,
531
- disabled: r,
532
- ref: s,
533
- ...a
539
+ disabled: i,
540
+ ref: a,
541
+ ...s
534
542
  }) {
535
- const o = [w.label, r && w.disabled, t].filter(Boolean).join(" ");
543
+ const o = [w.label, i && w.disabled, t].filter(Boolean).join(" ");
536
544
  return /* @__PURE__ */ c("label", { className: o, children: [
537
545
  /* @__PURE__ */ n(
538
546
  "input",
539
547
  {
540
- ref: s,
548
+ ref: a,
541
549
  type: "checkbox",
542
550
  role: "switch",
543
551
  className: w.input,
544
- disabled: r,
545
- ...a
552
+ disabled: i,
553
+ ...s
546
554
  }
547
555
  ),
548
556
  /* @__PURE__ */ n("span", { className: w.track, "aria-hidden": "true", children: /* @__PURE__ */ n("span", { className: w.thumb }) }),
549
557
  e && /* @__PURE__ */ n("span", { className: w.text, children: e })
550
558
  ] });
551
559
  }
552
- const bn = "_tag_3oysa_3", pn = "_dismiss_3oysa_17", yn = "_neutral_3oysa_43", kn = "_accent_3oysa_48", mn = "_success_3oysa_53", xn = "_warning_3oysa_58", wn = "_danger_3oysa_63", zn = "_neutralSubtle_3oysa_70", Cn = "_accentSubtle_3oysa_75", Ln = "_successSubtle_3oysa_80", Bn = "_warningSubtle_3oysa_85", jn = "_dangerSubtle_3oysa_90", b = {
553
- tag: bn,
554
- dismiss: pn,
555
- neutral: yn,
556
- accent: kn,
557
- success: mn,
558
- warning: xn,
559
- danger: wn,
560
- neutralSubtle: zn,
561
- accentSubtle: Cn,
562
- successSubtle: Ln,
563
- warningSubtle: Bn,
564
- dangerSubtle: jn
565
- }, $n = {
566
- neutral: b.neutral,
567
- accent: b.accent,
568
- success: b.success,
569
- warning: b.warning,
570
- danger: b.danger
571
- }, Nn = {
572
- neutral: b.neutralSubtle,
573
- accent: b.accentSubtle,
574
- success: b.successSubtle,
575
- warning: b.warningSubtle,
576
- danger: b.dangerSubtle
560
+ const mn = "_tag_3oysa_3", xn = "_dismiss_3oysa_17", wn = "_neutral_3oysa_43", zn = "_accent_3oysa_48", Cn = "_success_3oysa_53", jn = "_warning_3oysa_58", Ln = "_danger_3oysa_63", Bn = "_neutralSubtle_3oysa_70", $n = "_accentSubtle_3oysa_75", Nn = "_successSubtle_3oysa_80", Sn = "_warningSubtle_3oysa_85", In = "_dangerSubtle_3oysa_90", v = {
561
+ tag: mn,
562
+ dismiss: xn,
563
+ neutral: wn,
564
+ accent: zn,
565
+ success: Cn,
566
+ warning: jn,
567
+ danger: Ln,
568
+ neutralSubtle: Bn,
569
+ accentSubtle: $n,
570
+ successSubtle: Nn,
571
+ warningSubtle: Sn,
572
+ dangerSubtle: In
573
+ }, Mn = {
574
+ neutral: v.neutral,
575
+ accent: v.accent,
576
+ success: v.success,
577
+ warning: v.warning,
578
+ danger: v.danger
579
+ }, Wn = {
580
+ neutral: v.neutralSubtle,
581
+ accent: v.accentSubtle,
582
+ success: v.successSubtle,
583
+ warning: v.warningSubtle,
584
+ danger: v.dangerSubtle
577
585
  };
578
- function pt({
586
+ function Bt({
579
587
  variant: e = "neutral",
580
588
  subtle: t = !1,
581
- onDismiss: r,
582
- className: s,
583
- children: a,
589
+ onDismiss: i,
590
+ className: a,
591
+ children: s,
584
592
  ref: o,
585
- ...i
593
+ ...r
586
594
  }) {
587
- const l = t ? Nn : $n, u = [b.tag, l[e], s].filter(Boolean).join(" ");
588
- return /* @__PURE__ */ c("span", { ref: o, className: u, ...i, children: [
589
- a,
590
- r && /* @__PURE__ */ n(
595
+ const l = t ? Wn : Mn, u = [v.tag, l[e], a].filter(Boolean).join(" ");
596
+ return /* @__PURE__ */ c("span", { ref: o, className: u, ...r, children: [
597
+ s,
598
+ i && /* @__PURE__ */ n(
591
599
  "button",
592
600
  {
593
601
  type: "button",
594
- className: b.dismiss,
595
- onClick: r,
602
+ className: v.dismiss,
603
+ onClick: i,
596
604
  "aria-label": "Dismiss",
597
605
  children: /* @__PURE__ */ c(
598
606
  "svg",
@@ -616,104 +624,116 @@ function pt({
616
624
  )
617
625
  ] });
618
626
  }
619
- const Sn = "_wrapper_17qua_3", In = "_tooltip_17qua_10", Mn = "_top_17qua_24", Wn = "_bottom_17qua_31", Hn = "_left_17qua_38", An = "_right_17qua_45", L = {
620
- wrapper: Sn,
621
- tooltip: In,
622
- top: Mn,
623
- bottom: Wn,
624
- left: Hn,
625
- right: An
626
- }, En = {
627
- top: L.top,
628
- bottom: L.bottom,
629
- left: L.left,
630
- right: L.right
631
- }, Vn = 150;
632
- function yt({
627
+ const Hn = "_wrapper_17qua_3", An = "_tooltip_17qua_10", En = "_top_17qua_24", Vn = "_bottom_17qua_31", qn = "_left_17qua_38", Rn = "_right_17qua_45", j = {
628
+ wrapper: Hn,
629
+ tooltip: An,
630
+ top: En,
631
+ bottom: Vn,
632
+ left: qn,
633
+ right: Rn
634
+ }, Tn = {
635
+ top: j.top,
636
+ bottom: j.bottom,
637
+ left: j.left,
638
+ right: j.right
639
+ }, Dn = 150;
640
+ function $t({
633
641
  content: e,
634
642
  children: t,
635
- placement: r = "top"
643
+ placement: i = "top"
636
644
  }) {
637
- const [s, a] = R(!1), o = M(), i = E(void 0), l = I(() => {
638
- i.current !== void 0 && (window.clearTimeout(i.current), i.current = void 0);
639
- }, []), u = I(() => a(!0), []), h = I(() => a(!1), []);
640
- S(() => l, [l]), S(() => {
641
- if (!s) return;
642
- const v = (d) => {
645
+ const [a, s] = D(!1), o = W(), r = q(void 0), l = M(() => {
646
+ r.current !== void 0 && (window.clearTimeout(r.current), r.current = void 0);
647
+ }, []), u = M(() => s(!0), []), h = M(() => s(!1), []);
648
+ I(() => l, [l]), I(() => {
649
+ if (!a) return;
650
+ const g = (d) => {
643
651
  d.key === "Escape" && h();
644
652
  };
645
- return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
646
- }, [s, h]);
647
- const g = D(t, {
648
- "aria-describedby": s ? o : void 0,
649
- onMouseEnter: (v) => {
650
- l(), i.current = window.setTimeout(u, Vn);
653
+ return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
654
+ }, [a, h]);
655
+ const f = F(t, {
656
+ "aria-describedby": a ? o : void 0,
657
+ onMouseEnter: (g) => {
658
+ l(), r.current = window.setTimeout(u, Dn);
651
659
  const d = t.props.onMouseEnter;
652
- d == null || d(v);
660
+ d == null || d(g);
653
661
  },
654
- onMouseLeave: (v) => {
662
+ onMouseLeave: (g) => {
655
663
  l(), h();
656
664
  const d = t.props.onMouseLeave;
657
- d == null || d(v);
665
+ d == null || d(g);
658
666
  },
659
- onFocus: (v) => {
667
+ onFocus: (g) => {
660
668
  u();
661
669
  const d = t.props.onFocus;
662
- d == null || d(v);
670
+ d == null || d(g);
663
671
  },
664
- onBlur: (v) => {
672
+ onBlur: (g) => {
665
673
  l(), h();
666
674
  const d = t.props.onBlur;
667
- d == null || d(v);
675
+ d == null || d(g);
668
676
  }
669
677
  });
670
- return /* @__PURE__ */ c("span", { className: L.wrapper, children: [
671
- g,
672
- s && /* @__PURE__ */ n(
678
+ return /* @__PURE__ */ c("span", { className: j.wrapper, children: [
679
+ f,
680
+ a && /* @__PURE__ */ n(
673
681
  "span",
674
682
  {
675
683
  id: o,
676
684
  role: "tooltip",
677
- className: [L.tooltip, En[r]].filter(Boolean).join(" "),
685
+ className: [j.tooltip, Tn[i]].filter(Boolean).join(" "),
678
686
  children: e
679
687
  }
680
688
  )
681
689
  ] });
682
690
  }
691
+ const Fn = "_toolbar_1i848_1", Pn = "_gap8_1i848_7", Un = "_gap12_1i848_8", Zn = "_gap16_1i848_9", S = {
692
+ toolbar: Fn,
693
+ gap8: Pn,
694
+ gap12: Un,
695
+ gap16: Zn
696
+ }, Gn = { 8: S.gap8, 12: S.gap12, 16: S.gap16 };
697
+ function Nt({ gap: e = 8, className: t, children: i, ref: a, ...s }) {
698
+ const o = [S.toolbar, Gn[e], t].filter(Boolean).join(" ");
699
+ return /* @__PURE__ */ n("div", { ref: a, role: s["aria-label"] != null ? "group" : void 0, className: o, ...s, children: i });
700
+ }
683
701
  export {
684
- Pn as AspectRatio,
685
- Dn as Button,
686
- Tn as Card,
687
- gt as Checkbox,
688
- ht as Dialog,
689
- Un as Field,
690
- at as IconArrowDown,
691
- ct as IconArrowUpRight,
692
- ge as IconButton,
693
- Kn as IconCheck,
694
- Xn as IconChevronDown,
695
- Yn as IconChevronRight,
696
- He as IconClose,
697
- tt as IconCopy,
698
- et as IconEdit,
699
- ot as IconExternalLink,
700
- it as IconEye,
701
- rt as IconEyeOff,
702
- dt as IconGitHub,
703
- _t as IconInstagram,
704
- lt as IconLinkedIn,
705
- st as IconLoader,
706
- Gn as IconMinus,
707
- Zn as IconPlus,
708
- Jn as IconSearch,
709
- Qn as IconSettings,
710
- nt as IconTrash,
711
- On as IconUser,
712
- ut as IconX,
713
- vt as Input,
714
- Fn as NavBar,
715
- ft as Select,
716
- bt as Switch,
717
- pt as Tag,
718
- yt as Tooltip
702
+ et as AspectRatio,
703
+ Yn as Button,
704
+ Jn as Card,
705
+ jt as Checkbox,
706
+ wt as Dialog,
707
+ nt as Field,
708
+ vt as IconArrowDown,
709
+ bt as IconArrowUpRight,
710
+ be as IconButton,
711
+ it as IconCheck,
712
+ rt as IconChevronDown,
713
+ st as IconChevronRight,
714
+ qe as IconClose,
715
+ _t as IconCopy,
716
+ dt as IconEdit,
717
+ ht as IconExternalLink,
718
+ gt as IconEye,
719
+ pt as IconEyeOff,
720
+ kt as IconGitHub,
721
+ xt as IconInstagram,
722
+ yt as IconLinkedIn,
723
+ ft as IconLoader,
724
+ ot as IconMinus,
725
+ tt as IconPlus,
726
+ at as IconSearch,
727
+ ct as IconSettings,
728
+ ut as IconTrash,
729
+ lt as IconUser,
730
+ mt as IconX,
731
+ zt as Input,
732
+ On as NavBar,
733
+ Qn as Panel,
734
+ Ct as Select,
735
+ Lt as Switch,
736
+ Bt as Tag,
737
+ Nt as Toolbar,
738
+ $t as Tooltip
719
739
  };