visits-style 2.0.6 → 2.1.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.es.js CHANGED
@@ -1,133 +1,131 @@
1
- import w from "clsx";
2
- import { default as gt } from "clsx";
3
- import { twMerge as ue } from "tailwind-merge";
4
- import { jsx as n, jsxs as g, Fragment as Q } from "react/jsx-runtime";
5
- import { useMemo as d, Children as j, cloneElement as $, forwardRef as R, useLayoutEffect as ee, useEffect as E, useState as S, useRef as F, useCallback as L, useImperativeHandle as te, startTransition as fe, createElement as he } from "react";
6
- import { useId as W, useFloating as _, shift as ne, flip as re, offset as oe, autoUpdate as ie, useTransitionStyles as D, useInteractions as q, useClick as pe, FloatingOverlay as U, useHover as ge, useClientPoint as me, useDismiss as be } from "@floating-ui/react";
7
- import { createPortal as we } from "react-dom";
8
- function N(e, t) {
9
- return t ? ue(e, t) : e;
10
- }
11
- function xe({ className: e, ...t }) {
12
- const r = d(() => w("leading-none peer-disabled:opacity-70", e), [e]);
13
- return /* @__PURE__ */ n("label", { className: r, ...t });
14
- }
15
- function Ye({
1
+ import m from "clsx";
2
+ import { default as pt } from "clsx";
3
+ import { twMerge as he } from "tailwind-merge";
4
+ import { jsx as i, jsxs as k, Fragment as te } from "react/jsx-runtime";
5
+ import { useMemo as c, Children as z, cloneElement as Z, forwardRef as S, useLayoutEffect as ne, useEffect as R, useState as E, useRef as I, useCallback as O, useImperativeHandle as re, startTransition as ye, createContext as xe, createElement as we, useContext as ve } from "react";
6
+ import { useId as K, useFloating as H, autoUpdate as oe, shift as ie, flip as se, offset as le, useTransitionStyles as L, useInteractions as U, useClick as Ce, FloatingOverlay as J, useHover as Ne, useClientPoint as ke, useDismiss as Ie } from "@floating-ui/react";
7
+ import { createPortal as Fe } from "react-dom";
8
+ function F(e, t) {
9
+ return t ? he(e, t) : e;
10
+ }
11
+ function Te({ className: e, ...t }) {
12
+ const r = c(() => m("leading-none peer-disabled:opacity-70", e), [e]);
13
+ return /* @__PURE__ */ i("label", { className: r, ...t });
14
+ }
15
+ function Je({
16
16
  label: e,
17
17
  children: t,
18
18
  required: r,
19
- htmlFor: o,
20
- error: l,
21
- help: i,
22
- helpBefore: s,
19
+ htmlFor: n,
20
+ error: s,
21
+ help: o,
22
+ helpBefore: l,
23
23
  className: u,
24
- innerClass: c,
25
- ...h
24
+ innerClass: f,
25
+ ...d
26
26
  }) {
27
- const p = d(() => w(
27
+ const p = c(() => m(
28
28
  "font-medium",
29
29
  r ? 'after:content-["*"] after:text-danger after:text-sm after:pl-0.5' : ""
30
- ), [r]), m = d(() => N("flex flex-col space-y-2", u), [u]);
31
- return /* @__PURE__ */ g("div", { className: m, ...h, children: [
32
- e ? /* @__PURE__ */ n(xe, { className: p, htmlFor: o, children: e }) : null,
33
- i && s ? /* @__PURE__ */ n("p", { className: "text-xs text-muted pb-2", children: i }) : null,
34
- /* @__PURE__ */ n("div", { className: c, children: ve(t, !!l) }),
35
- i && !s && !l ? /* @__PURE__ */ n("p", { className: "text-xs text-muted", children: i }) : null,
36
- l ? /* @__PURE__ */ n("p", { className: "text-xs text-danger", children: l }) : null
30
+ ), [r]), g = c(() => F("flex flex-col space-y-2", u), [u]);
31
+ return /* @__PURE__ */ k("div", { className: g, ...d, children: [
32
+ e ? /* @__PURE__ */ i(Te, { className: p, htmlFor: n, children: e }) : null,
33
+ o && l ? /* @__PURE__ */ i("p", { className: "text-xs text-muted pb-2", children: o }) : null,
34
+ /* @__PURE__ */ i("div", { className: f, children: Pe(t, !!s) }),
35
+ o && !l && !s ? /* @__PURE__ */ i("p", { className: "text-xs text-muted", children: o }) : null,
36
+ s ? /* @__PURE__ */ i("p", { className: "text-xs text-danger", children: s }) : null
37
37
  ] });
38
38
  }
39
- function ve(e, t) {
40
- const r = j.count(e);
39
+ function Pe(e, t) {
40
+ const r = z.count(e);
41
41
  if (!r) return null;
42
42
  if (r === 1)
43
- return $(e, { error: t });
44
- const o = j.toArray(e);
45
- return o[0] = $(o[0], { error: t }), o;
43
+ return Z(e, { error: t });
44
+ const n = z.toArray(e);
45
+ return n[0] = Z(n[0], { error: t }), n;
46
46
  }
47
- function qe({ error: e, unstyled: t, className: r, ...o }) {
48
- const l = d(() => t ? r : N(w(
47
+ function Qe({ error: e, unstyled: t, className: r, ...n }) {
48
+ const s = c(() => t ? r : F(m(
49
49
  "flex rounded-md border bg-background px-3 py-2 w-full [&_input]:placeholder:text-muted",
50
50
  "[&_input]:disabled:opacity-50 [&_input]:focus-visible:outline-none",
51
51
  e ? "border-danger hover:border-danger-fore" : "border-input"
52
52
  ), r), [r, e, t]);
53
- return /* @__PURE__ */ n("div", { className: l, ...o });
53
+ return /* @__PURE__ */ i("div", { className: s, ...n });
54
54
  }
55
- const ye = R(({
55
+ const Ae = S(({
56
56
  className: e,
57
57
  type: t,
58
58
  error: r,
59
- unstyled: o,
60
- ...l
61
- }, i) => {
62
- const s = d(() => o ? e : N(w(
59
+ unstyled: n,
60
+ ...s
61
+ }, o) => {
62
+ const l = c(() => n ? e : F(m(
63
63
  "flex rounded-md border bg-background px-3 py-2 w-full placeholder:text-muted",
64
64
  "disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring",
65
65
  r ? "border-danger hover:border-danger-fore" : "border-input not-disabled:hover:border-input-fore",
66
66
  t === "file" ? "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground" : null
67
- ), e), [e, t, r, o]);
68
- return /* @__PURE__ */ n("input", { ref: i, type: t, className: s, ...l });
67
+ ), e), [e, t, r, n]);
68
+ return /* @__PURE__ */ i("input", { ref: o, type: t, className: l, ...s });
69
69
  });
70
- ye.displayName = "Input";
71
- const Ce = R(({
70
+ Ae.displayName = "Input";
71
+ const Me = S(({
72
72
  className: e,
73
73
  error: t,
74
74
  unstyled: r,
75
- ...o
76
- }, l) => {
77
- const i = d(() => r ? e : N(w(
75
+ ...n
76
+ }, s) => {
77
+ const o = c(() => r ? e : F(m(
78
78
  "flex rounded-md border bg-background px-3 py-2 w-full",
79
79
  "disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring",
80
80
  t ? "border-danger hover:border-danger-fore" : "border-input not-disabled:hover:border-input-fore"
81
81
  ), e), [e, t, r]);
82
- return /* @__PURE__ */ n("textarea", { ref: l, className: i, ...o });
82
+ return /* @__PURE__ */ i("textarea", { ref: s, className: o, ...n });
83
83
  });
84
- Ce.displayName = "Textarea";
85
- function le(e) {
86
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...e, children: /* @__PURE__ */ n("path", { d: "M11.5 18.5l-3.9-4L6 16l5.6 5.6 11.6-11.5-1.7-1.6z", fill: "currentColor" }) });
84
+ Me.displayName = "Textarea";
85
+ function Re() {
86
+ return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", children: /* @__PURE__ */ i("rect", { width: "20", height: "3", y: "13.5", x: "4.5", fill: "currentColor", stroke: "none", rx: "2" }) });
87
87
  }
88
- function Ae() {
89
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", children: /* @__PURE__ */ n("rect", { width: "20", height: "3", y: "13.5", x: "4.5", fill: "currentColor", stroke: "none", rx: "2" }) });
90
- }
91
- function Ue({
88
+ function Ve({
92
89
  checked: e,
93
90
  indeterminate: t,
94
91
  className: r,
95
- id: o,
96
- name: l,
97
- onChange: i,
98
- value: s,
99
- ...u
92
+ id: n,
93
+ name: s,
94
+ onChange: o,
95
+ value: l,
96
+ checkIcon: u,
97
+ ...f
100
98
  }) {
101
- const c = d(() => N(w(
99
+ const d = c(() => F(m(
102
100
  "inline-flex justify-center items-center border w-4.5 h-4.5 rounded",
103
101
  "cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",
104
102
  e || t ? "bg-primary text-inverted disabled:text-text disabled:bg-input disabled:border-input" : "border-input not-disabled:hover:border-input-fore"
105
- ), r), [e, t, r]), h = () => {
106
- u.disabled || i?.(!e);
103
+ ), r), [e, t, r]), p = () => {
104
+ f.disabled || o?.(!e);
107
105
  };
108
- return /* @__PURE__ */ g(
106
+ return /* @__PURE__ */ k(
109
107
  "button",
110
108
  {
111
109
  type: "button",
112
110
  role: "checkbox",
113
- id: o || l,
114
- className: c,
115
- onClick: h,
111
+ id: n || s,
112
+ className: d,
113
+ onClick: p,
116
114
  "aria-checked": e,
117
- ...u,
115
+ ...f,
118
116
  children: [
119
- e ? /* @__PURE__ */ n(le, {}) : null,
120
- t && !e ? /* @__PURE__ */ n(Ae, {}) : null,
121
- /* @__PURE__ */ n(
117
+ e ? u : null,
118
+ t && !e ? /* @__PURE__ */ i(Re, {}) : null,
119
+ /* @__PURE__ */ i(
122
120
  "input",
123
121
  {
124
122
  type: "checkbox",
125
123
  "aria-hidden": "true",
126
- name: l,
124
+ name: s,
127
125
  checked: e,
128
- value: s,
129
- onChange: h,
130
- disabled: u.disabled,
126
+ value: l,
127
+ onChange: p,
128
+ disabled: f.disabled,
131
129
  style: { position: "absolute", pointerEvents: "none", top: 0, left: 0, width: 1, height: 1, opacity: 0 }
132
130
  }
133
131
  )
@@ -135,273 +133,294 @@ function Ue({
135
133
  }
136
134
  );
137
135
  }
138
- const ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", V = ke ? ee : E;
139
- function Z({ children: e, container: t, disabled: r }) {
140
- const [o, l] = S(null);
141
- return V(() => {
136
+ const Se = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Q = Se ? ne : R;
137
+ function W({ children: e, container: t, disabled: r }) {
138
+ const [n, s] = E(null);
139
+ return Q(() => {
142
140
  if (!t) {
143
- let i = document.getElementById("visits-style-portals");
144
- return i || (i = document.createElement("div"), i.id = "visits-style-portals", document.body.appendChild(i)), l(i);
141
+ let o = document.getElementById("visits-style-portals");
142
+ return o || (o = document.createElement("div"), o.id = "visits-style-portals", document.body.appendChild(o)), s(o);
145
143
  }
146
- l(t);
147
- }, [t]), r || !o ? null : we(e, o);
144
+ s(t);
145
+ }, [t]), r || !n ? null : Fe(e, n);
148
146
  }
149
- function O(e) {
147
+ function q(e) {
150
148
  e && (e.stopPropagation(), e.preventDefault());
151
149
  }
152
- const Me = { open: 150, close: 75 }, se = R(({
150
+ const _e = { open: 150, close: 75 }, ae = S(({
153
151
  position: e,
154
152
  label: t,
155
153
  children: r,
156
- color: o = "background",
157
- disabled: l,
158
- offset: i = { x: 0, y: 6 },
159
- onOpen: s,
160
- onClose: u,
161
- onManualClose: c,
162
- timeout: h = Me,
163
- unstyled: p,
164
- zIndex: m = 9996,
165
- role: x,
166
- ...a
167
- }, b) => {
168
- const [v, y] = S(!1), I = W(), C = F(s), M = F(u), { refs: k, floatingStyles: T, context: B } = _({
169
- nodeId: I,
154
+ disabled: n,
155
+ offset: s = { x: 0, y: 6 },
156
+ onOpen: o,
157
+ onClose: l,
158
+ onManualClose: u,
159
+ timeout: f = _e,
160
+ unstyled: d,
161
+ zIndex: p = 9996,
162
+ role: g,
163
+ ...h
164
+ }, C) => {
165
+ const [y, a] = E(!1), N = K(), v = I(o), x = I(l), { refs: w, floatingStyles: _, context: D } = H({
166
+ nodeId: N,
170
167
  placement: e,
171
168
  middleware: [
172
- ne(),
173
- re({ fallbackAxisSideDirection: "end" }),
174
- oe({ mainAxis: i.y, crossAxis: i.x })
169
+ ie(),
170
+ se({ fallbackAxisSideDirection: "end" }),
171
+ le({ mainAxis: s.y, crossAxis: s.x })
175
172
  ],
176
- open: v,
177
- onOpenChange: (A) => {
178
- A ? C.current?.(k.reference.current, k.floating.current) : M.current?.(k.reference.current, k.floating.current), y(A);
173
+ open: y,
174
+ onOpenChange: (T) => {
175
+ T ? v.current?.(w.reference.current, w.floating.current) : x.current?.(w.reference.current, w.floating.current), a(T);
179
176
  },
180
- whileElementsMounted: ie
181
- }), { isMounted: H, styles: X } = D(B, {
182
- duration: h,
183
- initial({ side: A }) {
184
- let P = "";
185
- return A === "top" ? P = "translateY(5%) scale(0.95)" : A === "bottom" ? P = "translateY(-5%) scale(0.95)" : A === "left" ? P = "translateX(5%) scale(0.95)" : P = "translateX(-5%) scale(0.95)", { opacity: 0, transform: P };
177
+ whileElementsMounted: oe
178
+ }), { isMounted: j, styles: Y } = L(D, {
179
+ duration: f,
180
+ initial({ side: T }) {
181
+ let A = "";
182
+ return T === "top" ? A = "translateY(5%) scale(0.95)" : T === "bottom" ? A = "translateY(-5%) scale(0.95)" : T === "left" ? A = "translateX(5%) scale(0.95)" : A = "translateX(-5%) scale(0.95)", { opacity: 0, transform: A };
186
183
  }
187
- }), Y = L((A) => {
188
- if (O(A), c) return c();
189
- y(!1), M.current?.(k.reference.current, k.floating.current);
190
- }, [c]);
191
- E(() => {
192
- if (l && v) return y(!1);
193
- }, [l, v]), te(b, () => ({
184
+ }), $ = O((T) => {
185
+ if (q(T), u) return u();
186
+ a(!1), x.current?.(w.reference.current, w.floating.current);
187
+ }, [u]);
188
+ R(() => {
189
+ if (n && y) return a(!1);
190
+ }, [n, y]), re(C, () => ({
194
191
  open: () => {
195
- y(!0), C.current?.(k.reference.current, k.floating.current);
192
+ a(!0), v.current?.(w.reference.current, w.floating.current);
196
193
  },
197
194
  close: () => {
198
- y(!1), M.current?.(k.reference.current, k.floating.current);
195
+ a(!1), x.current?.(w.reference.current, w.floating.current);
199
196
  }
200
197
  // eslint-disable-next-line react-hooks/exhaustive-deps
201
198
  }), []);
202
- const { getFloatingProps: f, getReferenceProps: z } = q([
203
- pe(B, { enabled: !l })
199
+ const { getFloatingProps: B, getReferenceProps: X } = U([
200
+ Ce(D, { enabled: !n })
204
201
  ]);
205
- return C.current = s, M.current = u, /* @__PURE__ */ g(Q, { children: [
206
- $(j.only(t), z({
207
- ref: k.setReference,
202
+ return v.current = o, x.current = l, /* @__PURE__ */ k(te, { children: [
203
+ Z(z.only(t), X({
204
+ ref: w.setReference,
208
205
  tabIndex: 0,
209
206
  role: "button",
210
- "aria-expanded": v,
211
- disabled: l,
212
- onClick: O
207
+ "aria-expanded": y,
208
+ disabled: n,
209
+ onClick: q
213
210
  })),
214
- /* @__PURE__ */ n(Z, { disabled: l || !H, children: /* @__PURE__ */ n(U, { "data-testid": "vs-popover-shadow", onClick: Y, style: { zIndex: m }, autoFocus: !0, children: /* @__PURE__ */ n("div", { role: x || "region", ref: k.setFloating, style: T, children: /* @__PURE__ */ n(
215
- ae,
211
+ /* @__PURE__ */ i(W, { disabled: n || !j, children: /* @__PURE__ */ i(
212
+ J,
216
213
  {
217
- unstyled: p,
218
- styles: X,
219
- ...f({ ...a, onClick: O }),
220
- children: r
214
+ "data-testid": "vs-popover-shadow",
215
+ onClick: $,
216
+ style: { zIndex: p },
217
+ autoFocus: !0,
218
+ children: /* @__PURE__ */ i("div", { role: g || "region", ref: w.setFloating, style: _, children: /* @__PURE__ */ i(
219
+ ce,
220
+ {
221
+ unstyled: d,
222
+ styles: Y,
223
+ ...B({ ...h, onClick: q }),
224
+ children: r
225
+ }
226
+ ) })
221
227
  }
222
- ) }) }) })
228
+ ) })
223
229
  ] });
224
230
  });
225
- se.displayName = "Popover";
226
- const ae = R(({
231
+ ae.displayName = "Popover";
232
+ const ce = S(({
227
233
  className: e,
228
234
  unstyled: t,
229
235
  styles: r,
230
- style: o = {},
231
- ...l
232
- }, i) => {
233
- const s = d(() => w(
236
+ style: n = {},
237
+ ...s
238
+ }, o) => {
239
+ const l = c(() => m(
234
240
  "z-20 w-auto h-auto outline-none transition-transform ease-in-out",
235
241
  t ? null : "border border-accent rounded-md shadow-lg p-1 bg-background",
236
242
  e
237
243
  ), [e, t]);
238
- return /* @__PURE__ */ n("div", { ref: i, className: s, style: { ...r, ...o }, ...l });
244
+ return /* @__PURE__ */ i("div", { ref: o, className: l, style: { ...r, ...n }, ...s });
239
245
  });
240
- ae.displayName = "PopoverContent";
241
- function Ne(e) {
242
- return /* @__PURE__ */ g("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
243
- /* @__PURE__ */ n("path", { d: "M11.7 14.8 7 9.8a.5.5 0 0 1 0-.7c.2-.2.5-.2.7 0l4.5 5c.2.2.2.6 0 .8-.1.2-.4.2-.6 0Z", fill: "currentColor" }),
244
- /* @__PURE__ */ n("path", { d: "m16.9 9.9-4.6 5c-.2.2-.4.2-.6 0a.5.5 0 0 1 0-.8l4.5-5c.2-.2.5-.2.7 0 .1.2.1.6 0 .8Z", fill: "currentColor" })
245
- ] });
246
- }
247
- function Ie(e) {
248
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30", ...e, children: /* @__PURE__ */ g("g", { fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: [
249
- /* @__PURE__ */ n("path", { d: "M26 26l-12.5-12.5L26 1" }),
250
- /* @__PURE__ */ n("path", { d: "M1 26l12.5-12.5L1 1" })
251
- ] }) });
252
- }
253
- function Ve({
246
+ ce.displayName = "PopoverContent";
247
+ function et({
254
248
  className: e,
255
249
  placeholder: t = "",
256
250
  options: r = [],
257
- error: o,
258
- unstyled: l,
259
- disabled: i,
260
- value: s,
251
+ error: n,
252
+ unstyled: s,
253
+ disabled: o,
254
+ value: l,
261
255
  maxHeight: u = 408,
262
- arrow: c,
263
- onChange: h,
264
- onClear: p,
265
- renderItem: m,
256
+ arrowIcon: f,
257
+ closeIcon: d,
258
+ checkIcon: p,
259
+ onChange: g,
260
+ onClear: h,
261
+ renderItem: C,
262
+ sectionLabelStyle: y,
263
+ buttonAreaStyle: a,
264
+ clearLabelText: N,
265
+ optionStyle: v,
266
266
  ...x
267
267
  }) {
268
- const a = F(null), [b, v] = S(0), y = d(() => l ? e : N(w(
268
+ const w = I(null), [_, D] = E(0), j = c(() => s ? e : F(m(
269
269
  "flex items-center justify-between rounded-md border bg-background px-3 py-2 w-full overflow-hidden cursor-pointer",
270
270
  "disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring",
271
- o ? "border-danger hover:border-danger-fore" : "border-input not-disabled:hover:border-input-fore"
272
- ), e), [e, o, l]), I = d(() => Array.isArray(s), []), C = L((f) => {
273
- h?.(f), I || a.current?.close();
274
- }, [h, I]), M = L((f) => Array.isArray(s) ? s.indexOf(f) > -1 : s === f, [s]), k = d(() => {
275
- const f = {}, z = r.filter((A) => typeof A != "string");
276
- for (let A = 0, P = z.length; A < P; A += 1) {
277
- const K = z[A];
278
- f[`${K.value}`] = K.label;
271
+ n ? "border-danger hover:border-danger-fore" : "border-input not-disabled:hover:border-input-fore"
272
+ ), e), [e, n, s]), Y = c(() => Array.isArray(l), []), $ = O((b) => {
273
+ g?.(b), Y || w.current?.close();
274
+ }, [g, Y]), B = O((b) => Array.isArray(l) ? l.indexOf(b) > -1 : l === b, [l]), X = c(() => {
275
+ const b = {}, M = r.filter((P) => typeof P != "string");
276
+ for (let P = 0, G = M.length; P < G; P += 1) {
277
+ const V = M[P];
278
+ b[`${V.value}`] = V.label;
279
279
  }
280
- return f;
281
- }, [r]), T = d(() => {
282
- if (!s) return t;
283
- if (Array.isArray(s)) {
284
- if (!s.length) return t;
285
- const f = [...s].sort(), z = [];
286
- for (let A = 0, P = f.length; A < P; A += 1)
287
- z[A] = k[`${f[A]}`] || "";
288
- return z.filter(Boolean).join(",") || t;
280
+ return b;
281
+ }, [r]), T = c(() => {
282
+ if (!l) return t;
283
+ if (Array.isArray(l)) {
284
+ if (!l.length) return t;
285
+ const b = [...l].sort(), M = [];
286
+ for (let P = 0, G = b.length; P < G; P += 1)
287
+ M[P] = X[`${b[P]}`] || "";
288
+ return M.filter(Boolean).join(",") || t;
289
289
  }
290
- return k[`${s}`] || t;
291
- }, [t, s, k]), B = T === t, H = d(() => w(
290
+ return X[`${l}`] || t;
291
+ }, [t, l, X]), A = T === t, be = c(() => m(
292
292
  "overflow-hidden overflow-ellipsis whitespace-nowrap",
293
- B ? "text-muted" : "text-text"
294
- ), [B]), X = d(() => c || /* @__PURE__ */ n(Ne, { className: "absolute right-0 text-muted size-5" }), [c]), Y = L((f, z) => m ? typeof f == "string" ? m(f, { index: z, selected: !1, onChange: () => {
295
- } }) : m(f, {
296
- index: z,
297
- selected: M(f.value),
298
- onChange: () => C(f.value)
299
- }) : typeof f == "string" ? /* @__PURE__ */ n("h5", { className: "font-medium py-1 px-2 text-muted", children: f }, `optionheader-${z}`) : /* @__PURE__ */ n(
300
- ze,
293
+ A ? "text-muted" : "text-text"
294
+ ), [A]), me = O((b, M) => C ? typeof b == "string" ? C(b, { index: M, selected: !1, onChange: () => {
295
+ } }) : C(b, {
296
+ index: M,
297
+ selected: B(b.value),
298
+ onChange: () => $(b.value)
299
+ }) : typeof b == "string" ? /* @__PURE__ */ i(
300
+ "h5",
301
+ {
302
+ className: m("font-normal py-1 px-2 text-muted", y),
303
+ children: b
304
+ },
305
+ `optionheader-${M}`
306
+ ) : /* @__PURE__ */ i(
307
+ Ee,
301
308
  {
302
- selected: M(f.value),
303
- onChange: C,
304
- ...f
309
+ selected: B(b.value),
310
+ onChange: $,
311
+ checkIcon: p,
312
+ className: v,
313
+ ...b
305
314
  },
306
- f.label
307
- ), [m, C, M]);
308
- return /* @__PURE__ */ n(
309
- se,
315
+ b.label
316
+ ), [C, $, B, y, v, p]), ge = c(() => m(
317
+ "relative flex items-center pr-4 space-x-2",
318
+ a
319
+ ), [a]);
320
+ return /* @__PURE__ */ i(
321
+ ae,
310
322
  {
311
- label: /* @__PURE__ */ g("button", { type: "button", className: y, disabled: i, ...x, children: [
312
- /* @__PURE__ */ n("span", { className: H, children: T }),
313
- /* @__PURE__ */ g("div", { className: "relative flex items-center pl-8 pr-3 space-x-2", children: [
314
- p && !B ? /* @__PURE__ */ n(
323
+ label: /* @__PURE__ */ k("button", { type: "button", className: j, disabled: o, ...x, children: [
324
+ /* @__PURE__ */ i("span", { className: be, children: T }),
325
+ /* @__PURE__ */ k("div", { className: ge, children: [
326
+ h && !A ? /* @__PURE__ */ i(
315
327
  "div",
316
328
  {
317
329
  tabIndex: -1,
318
330
  role: "button",
319
- className: "size-6 p-1.5 rounded hover:bg-accent",
320
- "aria-label": "clear selected values",
321
- onKeyDown: (f) => {
322
- f.key !== "Enter" && f.key !== "Space" || p();
331
+ className: "size-6 p-1.5 rounded hover:bg-accent cursor-pointer",
332
+ "aria-label": N,
333
+ onKeyDown: (b) => {
334
+ b.key !== "Enter" && b.key !== "Space" || h();
323
335
  },
324
- onClick: (f) => {
325
- f.stopPropagation(), p();
336
+ onClick: (b) => {
337
+ b.stopPropagation(), h();
326
338
  },
327
- children: /* @__PURE__ */ n(Ie, {})
339
+ children: d
328
340
  }
329
341
  ) : null,
330
- X
342
+ f
331
343
  ] })
332
344
  ] }),
333
- ref: a,
334
- onOpen: (f) => v(f?.getBoundingClientRect().width || 0),
335
- disabled: i,
336
- children: /* @__PURE__ */ n(
345
+ ref: w,
346
+ onOpen: (b) => D(b?.getBoundingClientRect().width || 0),
347
+ disabled: o,
348
+ children: /* @__PURE__ */ i(
337
349
  "ul",
338
350
  {
339
351
  className: "overflow-y-auto flex flex-col",
340
352
  role: "listbox",
341
- style: { minWidth: b, maxWidth: "calc(100vw - 3rem)", maxHeight: u },
342
- children: r.map(Y)
353
+ style: { minWidth: _, maxWidth: "calc(100vw - 3rem)", maxHeight: u },
354
+ children: r.map(me)
343
355
  }
344
356
  )
345
357
  }
346
358
  );
347
359
  }
348
- function ze({ className: e, value: t, label: r, selected: o, onChange: l }) {
349
- const i = d(() => w(
350
- "flex items-center w-full hover:bg-accent rounded p-1",
360
+ function Ee({
361
+ className: e,
362
+ value: t,
363
+ label: r,
364
+ selected: n,
365
+ checkIcon: s,
366
+ onChange: o
367
+ }) {
368
+ const l = c(() => m(
369
+ "flex items-center w-full hover:bg-accent rounded p-1 cursor-pointer",
351
370
  e
352
371
  ), [e]);
353
- return /* @__PURE__ */ g(
372
+ return /* @__PURE__ */ k(
354
373
  "button",
355
374
  {
356
375
  type: "button",
357
376
  role: "option",
358
- className: i,
359
- "aria-selected": o,
360
- onClick: () => l?.(t),
377
+ className: l,
378
+ "aria-selected": n,
379
+ onClick: () => o?.(t),
361
380
  children: [
362
- o ? /* @__PURE__ */ n(le, { className: "w-5 h-5 mr-1" }) : /* @__PURE__ */ n("div", { className: "w-5 h-1 mr-1" }),
381
+ n && s ? s : /* @__PURE__ */ i("div", { className: "w-5 h-1 mr-1" }),
363
382
  r
364
383
  ]
365
384
  }
366
385
  );
367
386
  }
368
- function Ke({ checked: e, className: t, id: r, name: o, onChange: l, value: i, ...s }) {
369
- const u = d(() => w(
387
+ function tt({ checked: e, className: t, id: r, name: n, onChange: s, value: o, ...l }) {
388
+ const u = c(() => m(
370
389
  "relative inline-flex justify-center items-center border border-input w-4.5 h-4.5 rounded-full",
371
390
  "cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed not-disabled:hover:border-input-fore",
372
391
  e ? "[&_i]:bg-primary disabled:[&_i]:bg-text disabled:border-input" : "",
373
392
  t
374
- ), [t, e]), c = () => {
375
- s.disabled || l?.(!e);
393
+ ), [t, e]), f = () => {
394
+ l.disabled || s?.(!e);
376
395
  };
377
- return /* @__PURE__ */ g(
396
+ return /* @__PURE__ */ k(
378
397
  "button",
379
398
  {
380
399
  type: "button",
381
400
  role: "radio",
382
- id: r || o,
401
+ id: r || n,
383
402
  className: u,
384
- onClick: c,
403
+ onClick: f,
385
404
  "aria-checked": e,
386
- ...s,
405
+ ...l,
387
406
  children: [
388
- /* @__PURE__ */ n(
407
+ /* @__PURE__ */ i(
389
408
  "i",
390
409
  {
391
410
  className: "block w-2.5 h-2.5 rounded-full transition-transform",
392
411
  style: { transform: e ? "" : "scale(0.8)", opacity: e ? 1 : 0 }
393
412
  }
394
413
  ),
395
- /* @__PURE__ */ n(
414
+ /* @__PURE__ */ i(
396
415
  "input",
397
416
  {
398
417
  type: "radio",
399
418
  "aria-hidden": "true",
400
- name: o,
419
+ name: n,
401
420
  checked: e,
402
- value: i,
403
- onChange: c,
404
- disabled: s.disabled,
421
+ value: o,
422
+ onChange: f,
423
+ disabled: l.disabled,
405
424
  style: { position: "absolute", pointerEvents: "none", top: 0, left: 0, width: 1, height: 1, opacity: 0 }
406
425
  }
407
426
  )
@@ -409,49 +428,49 @@ function Ke({ checked: e, className: t, id: r, name: o, onChange: l, value: i, .
409
428
  }
410
429
  );
411
430
  }
412
- const Fe = R(({
431
+ const De = S(({
413
432
  className: e,
414
433
  checked: t,
415
434
  onChange: r,
416
- value: o,
417
- id: l,
418
- name: i,
419
- ...s
435
+ value: n,
436
+ id: s,
437
+ name: o,
438
+ ...l
420
439
  }, u) => {
421
- const c = d(() => N(w(
440
+ const f = c(() => F(m(
422
441
  "inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
423
442
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
424
443
  "w-11",
425
444
  t ? "bg-primary" : "bg-input"
426
- ), e), [e, t]), h = d(() => N(
445
+ ), e), [e, t]), d = c(() => F(
427
446
  "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",
428
447
  e
429
448
  ), [e]), p = () => {
430
- s.disabled || r?.(!t);
449
+ l.disabled || r?.(!t);
431
450
  };
432
- return /* @__PURE__ */ g(
451
+ return /* @__PURE__ */ k(
433
452
  "button",
434
453
  {
435
454
  type: "button",
436
455
  role: "switch",
437
- id: l || i,
438
- className: c,
456
+ id: s || o,
457
+ className: f,
439
458
  onClick: p,
440
459
  "aria-checked": t,
441
- ...s,
460
+ ...l,
442
461
  children: [
443
- /* @__PURE__ */ n("span", { className: h, style: { transform: t ? "translateX(100%)" : "" } }),
444
- /* @__PURE__ */ n(
462
+ /* @__PURE__ */ i("span", { className: d, style: { transform: t ? "translateX(100%)" : "" } }),
463
+ /* @__PURE__ */ i(
445
464
  "input",
446
465
  {
447
466
  ref: u,
448
467
  type: "checkbox",
449
468
  "aria-hidden": "true",
450
- name: i,
469
+ name: o,
451
470
  checked: t,
452
- value: o,
471
+ value: n,
453
472
  onChange: p,
454
- disabled: s.disabled,
473
+ disabled: l.disabled,
455
474
  style: { position: "absolute", pointerEvents: "none", top: 0, left: 0, width: 1, height: 1, opacity: 0 }
456
475
  }
457
476
  )
@@ -459,108 +478,113 @@ const Fe = R(({
459
478
  }
460
479
  );
461
480
  });
462
- Fe.displayName = "Switch";
463
- function Ge({ header: e, show: t, children: r, timeout: o = 300, ...l }) {
464
- const i = F(null), s = F(0), u = F(0), c = F(!0);
465
- return E(() => {
466
- u.current = o;
467
- }, [o]), V(() => {
468
- if (!i.current) return;
469
- if (i.current.style.overflow = "hidden", i.current.style.opacity = "1", c.current) {
470
- c.current = !1, i.current.style.height = t ? "auto" : "0px", t ? window.requestAnimationFrame(() => {
471
- i.current && (s.current = i.current.offsetHeight);
481
+ De.displayName = "Switch";
482
+ function nt({ header: e, show: t, children: r, timeout: n = 300, ...s }) {
483
+ const o = I(null), l = I(0), u = I(0), f = I(!0);
484
+ return R(() => {
485
+ u.current = n;
486
+ }, [n]), Q(() => {
487
+ if (!o.current) return;
488
+ if (o.current.style.overflow = "hidden", o.current.style.opacity = "1", f.current) {
489
+ f.current = !1, o.current.style.height = t ? "auto" : "0px", t ? window.requestAnimationFrame(() => {
490
+ o.current && (l.current = o.current.offsetHeight);
472
491
  }) : (window.requestAnimationFrame(() => {
473
- i.current && (i.current.style.height = "auto", s.current = i.current.offsetHeight, i.current.style.height = "0px");
474
- }), i.current.style.opacity = "0");
492
+ o.current && (o.current.style.height = "auto", l.current = o.current.offsetHeight, o.current.style.height = "0px");
493
+ }), o.current.style.opacity = "0");
475
494
  return;
476
495
  }
477
- t || (i.current.style.height = `${s.current}px`);
478
- const h = [];
479
- h[0] = window.requestAnimationFrame(() => {
480
- h[1] = window.requestAnimationFrame(() => {
481
- i.current && (i.current.style.height = `${t ? s.current : 0}px`, i.current.style.opacity = t ? "1" : "0");
496
+ t || (o.current.style.height = `${l.current}px`);
497
+ const d = [];
498
+ d[0] = window.requestAnimationFrame(() => {
499
+ d[1] = window.requestAnimationFrame(() => {
500
+ o.current && (o.current.style.height = `${t ? l.current : 0}px`, o.current.style.opacity = t ? "1" : "0");
482
501
  });
483
502
  });
484
503
  let p;
485
- const m = () => {
486
- i.current && (t ? (i.current.style.height = "auto", i.current.style.overflow = "", i.current.style.opacity = "", window.requestAnimationFrame(() => {
487
- i.current && (s.current = i.current.offsetHeight);
488
- })) : i.current.style.height = "0px");
504
+ const g = () => {
505
+ o.current && (t ? (o.current.style.height = "auto", o.current.style.overflow = "", o.current.style.opacity = "", window.requestAnimationFrame(() => {
506
+ o.current && (l.current = o.current.offsetHeight);
507
+ })) : o.current.style.height = "0px");
489
508
  };
490
- return u.current === 0 ? m() : p = window.setTimeout(m, u.current), () => {
491
- h.forEach(window.cancelAnimationFrame), p && window.clearTimeout(p);
509
+ return u.current === 0 ? g() : p = window.setTimeout(g, u.current), () => {
510
+ d.forEach(window.cancelAnimationFrame), p && window.clearTimeout(p);
492
511
  };
493
- }, [t]), /* @__PURE__ */ g("div", { ...l, children: [
512
+ }, [t]), /* @__PURE__ */ k("div", { ...s, children: [
494
513
  e,
495
- /* @__PURE__ */ n(
514
+ /* @__PURE__ */ i(
496
515
  "div",
497
516
  {
498
517
  className: "transition-all ease-in-out overflow-hidden",
499
518
  role: "region",
500
519
  "aria-hidden": !t,
501
- ref: i,
502
- style: { transitionDuration: `${o}ms` },
520
+ ref: o,
521
+ style: { transitionDuration: `${n}ms` },
503
522
  children: r
504
523
  }
505
524
  )
506
525
  ] });
507
526
  }
508
- const Je = R(({
527
+ const Oe = S(({
509
528
  children: e,
510
529
  position: t = "bottom",
511
530
  label: r,
512
- className: o,
513
- timeout: l = 150,
514
- offset: i = { x: 0, y: 6 },
515
- clientPoint: s = !1,
531
+ className: n,
532
+ timeout: s = 150,
533
+ offset: o = { x: 0, y: 6 },
534
+ clientPoint: l = !1,
516
535
  disabled: u
517
- }, c) => {
518
- const [h, p] = S(!1), m = W(), { refs: x, floatingStyles: a, context: b } = _({
519
- nodeId: m,
520
- open: h,
536
+ }, f) => {
537
+ const [d, p] = E(!1), g = K(), { refs: h, floatingStyles: C, context: y } = H({
538
+ nodeId: g,
539
+ open: d,
521
540
  placement: t,
522
541
  middleware: [
523
- ne(),
524
- re(),
525
- oe({ mainAxis: i.y, crossAxis: i.x })
542
+ ie(),
543
+ se(),
544
+ le({ mainAxis: o.y, crossAxis: o.x })
526
545
  ],
527
- whileElementsMounted: u ? void 0 : ie,
546
+ whileElementsMounted: u ? void 0 : oe,
528
547
  onOpenChange: p
529
- }), { getReferenceProps: v, getFloatingProps: y } = q([
530
- ge(b, { enabled: !u }),
531
- me(b, { enabled: s })
532
- ]), { isMounted: I, styles: C } = D(b, {
533
- duration: l,
548
+ }), { getReferenceProps: a, getFloatingProps: N } = U([
549
+ Ne(y, { enabled: !u }),
550
+ ke(y, { enabled: l })
551
+ ]), { isMounted: v, styles: x } = L(y, {
552
+ duration: s,
534
553
  initial: { opacity: 0, transform: "scale(0.8)" }
535
554
  });
536
- te(c, () => ({
537
- floating: x.floating,
538
- reference: x.reference,
555
+ re(f, () => ({
556
+ floating: h.floating,
557
+ reference: h.reference,
539
558
  open: () => p(!0),
540
559
  close: () => p(!1)
541
- }));
542
- const M = typeof e == "string" ? /* @__PURE__ */ n("span", { children: e }) : e;
543
- return /* @__PURE__ */ g(Q, { children: [
544
- $(j.only(M), {
545
- ref: x.setReference,
546
- ...v()
560
+ })), R(() => {
561
+ u && p(!1);
562
+ }, [u]);
563
+ const w = typeof e == "string" ? /* @__PURE__ */ i("span", { children: e }) : e;
564
+ return /* @__PURE__ */ k(te, { children: [
565
+ Z(z.only(w), {
566
+ ref: h.setReference,
567
+ ...a()
547
568
  }),
548
- /* @__PURE__ */ n(Z, { disabled: u || !I, children: /* @__PURE__ */ n("div", { role: "tooltip", className: "z-[9999]", ref: x.setFloating, ...y({ style: a }), children: /* @__PURE__ */ n(Pe, { className: o, style: C, children: r }) }) })
569
+ /* @__PURE__ */ i(W, { disabled: u || !v, children: /* @__PURE__ */ i("div", { role: "tooltip", className: "z-[9999]", ref: h.setFloating, ...N({ style: C }), children: /* @__PURE__ */ i(ue, { className: n, style: x, children: r }) }) })
549
570
  ] });
550
- }), Pe = R(({
571
+ });
572
+ Oe.displayName = "Tooltip";
573
+ const ue = S(({
551
574
  className: e,
552
575
  custom: t,
553
576
  ...r
554
- }, o) => {
555
- const l = d(() => w(
577
+ }, n) => {
578
+ const s = c(() => m(
556
579
  "relative w-auto h-auto outline-none transition-transform ease-in-out whitespace-pre",
557
580
  t ? null : "border border-accent rounded shadow-md px-3 py-1 bg-background",
558
581
  e
559
582
  ), [e, t]);
560
- return /* @__PURE__ */ n("div", { ref: o, className: l, ...r });
583
+ return /* @__PURE__ */ i("div", { ref: n, className: s, ...r });
561
584
  });
562
- function Be({ variant: e, size: t }) {
563
- return w(
585
+ ue.displayName = "TooltipContent";
586
+ function je({ variant: e, size: t }) {
587
+ return m(
564
588
  "inline-flex items-center justify-center whitespace-nowrap transition-colors rounded-md cursor-pointer",
565
589
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
566
590
  "disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-auto",
@@ -579,184 +603,182 @@ function Be({ variant: e, size: t }) {
579
603
  }
580
604
  );
581
605
  }
582
- function Qe({ size: e, variant: t, className: r, ...o }) {
583
- const l = d(() => w(Be({ size: e, variant: t }), r), [e, t, r]);
584
- return /* @__PURE__ */ n("button", { className: l, type: "button", ...o });
606
+ function rt({ size: e, variant: t, className: r, ...n }) {
607
+ const s = c(() => m(je({ size: e, variant: t }), r), [e, t, r]);
608
+ return /* @__PURE__ */ i("button", { className: s, type: "button", ...n });
585
609
  }
586
- function et({
610
+ function ot({
587
611
  open: e,
588
612
  children: t,
589
613
  timeout: r = 150,
590
- padding: o = "0.85rem",
591
- verticalAlign: l = "center",
592
- closeOnOverlay: i,
593
- closeOnEsc: s,
614
+ padding: n = "0.85rem",
615
+ verticalAlign: s = "center",
616
+ closeOnOverlay: o,
617
+ closeOnEsc: l,
594
618
  onExited: u,
595
- className: c,
596
- onOpenChange: h,
619
+ className: f,
620
+ onOpenChange: d,
597
621
  size: p,
598
- ...m
622
+ ...g
599
623
  }) {
600
- const x = F(u), a = F(!1), b = W(), { refs: v, context: y } = _({ open: e, onOpenChange: h, nodeId: b }), { getFloatingProps: I } = q([
601
- be(y, {
602
- enabled: s,
603
- escapeKey: s,
624
+ const h = I(u), C = I(!1), y = K(), { refs: a, context: N } = H({ open: e, onOpenChange: d, nodeId: y }), { getFloatingProps: v } = U([
625
+ Ie(N, {
626
+ enabled: l,
627
+ escapeKey: l,
604
628
  outsidePress: !1
605
629
  })
606
- ]), { isMounted: C, styles: M } = D(y, {
630
+ ]), { isMounted: x, styles: w } = L(N, {
607
631
  duration: r,
608
632
  initial: { opacity: 0, transform: "scale(0.8)" }
609
633
  });
610
- E(() => {
611
- a.current !== C && (a.current = C, !C && x.current?.());
612
- }, [C]);
613
- const k = L(() => {
614
- i && h?.(!1);
615
- }, [h, i]);
616
- x.current = u;
617
- const T = d(() => w("grid bg-backdrop z-40 justify-items-center", {
618
- "place-items-start items-start": l === "start",
619
- "place-items-end": l === "end",
620
- "place-items-center": l === "center" || !l
621
- }), [l]), B = d(() => N("transition ease-in-out", c), [c]);
622
- return /* @__PURE__ */ n(Z, { disabled: !C, children: /* @__PURE__ */ n(
623
- U,
634
+ R(() => {
635
+ C.current !== x && (C.current = x, !x && h.current?.());
636
+ }, [x]);
637
+ const _ = O(() => {
638
+ o && d?.(!1);
639
+ }, [d, o]);
640
+ h.current = u;
641
+ const D = c(() => m("grid bg-backdrop z-40 justify-items-center", {
642
+ "place-items-start items-start": s === "start",
643
+ "place-items-end": s === "end",
644
+ "place-items-center": s === "center" || !s
645
+ }), [s]), j = c(() => F("transition ease-in-out", f), [f]);
646
+ return /* @__PURE__ */ i(W, { disabled: !x, children: /* @__PURE__ */ i(
647
+ J,
624
648
  {
625
- className: T,
649
+ className: D,
626
650
  "data-testid": "vs-dialog-overlay",
627
- onClick: k,
628
- style: { padding: o, opacity: M.opacity },
651
+ onClick: _,
652
+ style: { padding: n, opacity: w.opacity },
629
653
  lockScroll: !0,
630
- children: /* @__PURE__ */ n(
631
- ce,
654
+ children: /* @__PURE__ */ i(
655
+ de,
632
656
  {
633
- ref: v.setFloating,
634
- className: B,
657
+ ref: a.setFloating,
658
+ className: j,
635
659
  role: "dialog",
636
660
  size: p,
637
- ...I({ ...m, style: M, onClick: O }),
661
+ style: w,
662
+ onClick: q,
663
+ ...v({ ...g }),
638
664
  children: t
639
665
  }
640
666
  )
641
667
  }
642
668
  ) });
643
669
  }
644
- const ce = R(({
670
+ const de = S(({
645
671
  size: e,
646
672
  className: t,
647
673
  ...r
648
- }, o) => {
649
- const l = d(() => w(
674
+ }, n) => {
675
+ const s = c(() => m(
650
676
  e ? "flex flex-col bg-background shadow-lg p-5 rounded" : null,
651
677
  {
652
- "w-full max-w-sm": e === "small",
653
- "w-full max-w-lg": e === "medium",
654
- "w-full max-w-2xl": e === "large"
678
+ "w-full max-w-dialog-sm": e === "small",
679
+ "w-full max-w-dialog-md": e === "medium",
680
+ "w-full max-w-dialog-lg": e === "large"
655
681
  },
656
682
  t
657
683
  ), [e, t]);
658
- return /* @__PURE__ */ n("div", { ref: o, className: l, ...r });
684
+ return /* @__PURE__ */ i("div", { ref: n, className: s, ...r });
659
685
  });
660
- ce.displayName = "DialogContent";
661
- const Re = { open: 300, close: 150 };
662
- function tt({ open: e, timeout: t = Re, onOpenChange: r, position: o = "right", overlay: l, ...i }) {
663
- const s = W(), { refs: u, context: c } = _({ open: e, onOpenChange: r, nodeId: s }), { isMounted: h, styles: p } = D(c, {
686
+ de.displayName = "DialogContent";
687
+ const $e = { open: 250, close: 150 };
688
+ function it({
689
+ open: e,
690
+ timeout: t = $e,
691
+ onOpenChange: r,
692
+ position: n = "right",
693
+ overlay: s,
694
+ onExited: o,
695
+ ...l
696
+ }) {
697
+ const u = K(), f = I(!1), d = I(o), { refs: p, context: g } = H({ open: e, onOpenChange: r, nodeId: u }), { isMounted: h, styles: C } = L(g, {
664
698
  duration: t,
665
699
  initial() {
666
- let x = "translateX(75%)";
667
- return o === "left" ? x = "translateX(-75%)" : o === "top" ? x = "translateY(-75%)" : o === "bottom" && (x = "translateY(75%)"), { opacity: 0, transform: x };
700
+ let a = "translateX(75%)";
701
+ return n === "left" ? a = "translateX(-75%)" : n === "top" ? a = "translateY(-75%)" : n === "bottom" && (a = "translateY(75%)"), { opacity: 0, transform: a };
668
702
  }
669
- }), m = d(() => w(
703
+ });
704
+ R(() => {
705
+ f.current !== h && (f.current = h, !h && d.current?.());
706
+ }, [h]);
707
+ const y = c(() => m(
670
708
  "fixed transition-transform z-30",
671
709
  {
672
- "top-0 right-0 h-full max-h-screen": o === "right",
673
- "top-0 left-0 h-full max-h-screen": o === "left",
674
- "top-0 left-0 right-0 w-full max-w-screen": o === "top",
675
- "bottom-0 left-0 right-0 w-full max-w-screen": o === "bottom"
710
+ "top-0 right-0 h-full max-h-screen": n === "right",
711
+ "top-0 left-0 h-full max-h-screen": n === "left",
712
+ "top-0 left-0 right-0 w-full max-w-screen": n === "top",
713
+ "bottom-0 left-0 right-0 w-full max-w-screen": n === "bottom"
676
714
  }
677
- ), [o]);
678
- return /* @__PURE__ */ g(Z, { disabled: !h, children: [
679
- l ? /* @__PURE__ */ n(
680
- U,
715
+ ), [n]);
716
+ return d.current = o, /* @__PURE__ */ k(W, { disabled: !h, children: [
717
+ s ? /* @__PURE__ */ i(
718
+ J,
681
719
  {
682
720
  className: "bg-backdrop",
683
- style: { opacity: p.opacity },
721
+ style: { opacity: C.opacity },
684
722
  onClick: () => r?.(!1)
685
723
  }
686
724
  ) : null,
687
- /* @__PURE__ */ n(
725
+ /* @__PURE__ */ i(
688
726
  "div",
689
727
  {
690
- ref: u.setFloating,
691
- className: m,
728
+ ref: p.setFloating,
729
+ className: y,
692
730
  role: "dialog",
693
- style: p,
694
- children: /* @__PURE__ */ n(Se, { ...i })
731
+ style: C,
732
+ children: /* @__PURE__ */ i(Be, { ...l })
695
733
  }
696
734
  )
697
735
  ] });
698
736
  }
699
- function Se({ className: e, unstyled: t, ...r }) {
700
- const o = d(() => t ? e : N(w(
737
+ function Be({ className: e, unstyled: t, ...r }) {
738
+ const n = c(() => t ? e : F(m(
701
739
  "relative bg-background min-w-full min-h-full border border-input shadow-lg"
702
740
  ), e), [t, e]);
703
- return /* @__PURE__ */ n("div", { className: o, ...r });
741
+ return /* @__PURE__ */ i("div", { className: n, ...r });
704
742
  }
705
- function Te(e) {
706
- return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...e, children: [
707
- /* @__PURE__ */ n("path", { d: "M15 29a14 14 0 0 1-9.9-4.1A14 14 0 0 1 1 15a14 14 0 0 1 4.1-9.9A14 14 0 0 1 15 1a14 14 0 0 1 9.9 4.1A14 14 0 0 1 29 15a14 14 0 0 1-4.1 9.9A14 14 0 0 1 15 29z", fill: "none" }),
708
- /* @__PURE__ */ n("path", { d: "M15 2a13 13 0 0 0-9.2 3.8A13 13 0 0 0 2 15a13 13 0 0 0 3.8 9.2A13 13 0 0 0 15 28a13 13 0 0 0 9.2-3.8A13 13 0 0 0 28 15a13 13 0 0 0-3.8-9.2A13 13 0 0 0 15 2m0-2a15 15 0 1 1 0 30 15 15 0 0 1 0-30z", fill: "currentColor" }),
709
- /* @__PURE__ */ n("path", { d: "m11.5 18.5-3.9-4L6 16l5.6 5.6L23.2 10l-1.7-1.6z", fill: "currentColor" })
710
- ] });
711
- }
712
- function G(e) {
713
- return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 32 32", ...e, children: [
714
- /* @__PURE__ */ n("path", { d: "M16 0C7.16 0 0 7.16 0 16C0 24.84 7.16 32 16 32C24.84 32 32 24.84 32 16C32 7.16 24.84 0 16 0ZM16 31C7.73 31 1 24.27 1 16C1 7.73 7.73 1 16 1C24.27 1 31 7.73 31 16C31 24.27 24.27 31 16 31Z", fill: "currentColor" }),
715
- /* @__PURE__ */ n("path", { d: "M15.5 19.55V8.54999C15.5 8.26999 15.72 8.04999 16 8.04999C16.28 8.04999 16.5 8.26999 16.5 8.54999V19.55C16.5 19.83 16.28 20.05 16 20.05C15.72 20.05 15.5 19.83 15.5 19.55Z", fill: "currentColor" }),
716
- /* @__PURE__ */ n("path", { d: "M16 23.95C16.5523 23.95 17 23.5023 17 22.95C17 22.3977 16.5523 21.95 16 21.95C15.4477 21.95 15 22.3977 15 22.95C15 23.5023 15.4477 23.95 16 23.95Z", fill: "currentColor" })
717
- ] });
718
- }
719
- function Le(e) {
720
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 52 45", ...e, children: /* @__PURE__ */ n("path", { d: "M50.6 37.8 29.3 2c-1.5-2.6-5.1-2.8-6.7-.3l-21.2 36c-1.7 2.6.2 6.6 3.4 6.6h42.4c3.1 0 5-4 3.4-6.6Zm-24.7.6a2.7 2.7 0 1 1 0-5.5 2.7 2.7 0 0 1 0 5.5Zm2.9-10.1c0 1.5-1.3 2.7-2.8 2.7a2.8 2.8 0 0 1-2.8-2.7V13.9c0-1.5 1.3-2.7 2.8-2.7 1.5 0 2.8 1.2 2.8 2.7v14.4Z", fill: "currentColor" }) });
721
- }
722
- function Ee({ size: e = 20, label: t = "Loading...", ...r }) {
723
- return /* @__PURE__ */ g("div", { role: "status", ...r, children: [
724
- /* @__PURE__ */ g("svg", { "aria-hidden": "true", className: "text-accent animate-spin fill-primary", width: e, height: e, viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
725
- /* @__PURE__ */ n("path", { d: "M100 50.6a50 50 0 1 1-100 0 50 50 0 0 1 100 0Zm-91 0a41 41 0 1 0 82 0 41 41 0 0 0-82 0Z", fill: "currentColor" }),
726
- /* @__PURE__ */ n("path", { d: "M94 39a4.2 4.2 0 0 0 3-5.4A50 50 0 0 0 41.7 1.3c-2.4.4-3.9 2.9-3.2 5.3a5 5 0 0 0 5.6 3.5A41 41 0 0 1 88 36 5 5 0 0 0 94 39Z", fill: "currentFill" })
743
+ function Xe({ size: e = 20, label: t = "Loading...", ...r }) {
744
+ return /* @__PURE__ */ k("div", { role: "status", ...r, children: [
745
+ /* @__PURE__ */ k("svg", { "aria-hidden": "true", className: "text-accent animate-spin fill-primary", width: e, height: e, viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
746
+ /* @__PURE__ */ i("path", { d: "M100 50.6a50 50 0 1 1-100 0 50 50 0 0 1 100 0Zm-91 0a41 41 0 1 0 82 0 41 41 0 0 0-82 0Z", fill: "currentColor" }),
747
+ /* @__PURE__ */ i("path", { d: "M94 39a4.2 4.2 0 0 0 3-5.4A50 50 0 0 0 41.7 1.3c-2.4.4-3.9 2.9-3.2 5.3a5 5 0 0 0 5.6 3.5A41 41 0 0 1 88 36 5 5 0 0 0 94 39Z", fill: "currentFill" })
727
748
  ] }),
728
- /* @__PURE__ */ n("span", { className: "sr-only", children: t })
749
+ /* @__PURE__ */ i("span", { className: "sr-only", children: t })
729
750
  ] });
730
751
  }
731
- function _e({ type: e, label: t, message: r }) {
732
- return /* @__PURE__ */ g("div", { className: "flex items-center px-4 py-3 w-80 text-sm bg-background border border-input rounded-lg shadow-md m-2", children: [
733
- e ? /* @__PURE__ */ g("figure", { className: "mr-2", children: [
734
- e === "success" ? /* @__PURE__ */ n(Te, { className: "text-primary size-5" }) : null,
735
- e === "info" ? /* @__PURE__ */ n(G, { className: "text-info size-5" }) : null,
736
- e === "error" ? /* @__PURE__ */ n(G, { className: "text-danger size-5" }) : null,
737
- e === "warn" ? /* @__PURE__ */ n(Le, { className: "text-warn size-5" }) : null,
738
- e === "loading" ? /* @__PURE__ */ n(Ee, { size: 20 }) : null
752
+ function He({ type: e, label: t, message: r }) {
753
+ const { icons: n } = Ye();
754
+ return /* @__PURE__ */ k("div", { className: "flex items-center px-4 py-3 w-80 text-sm bg-background border border-input rounded-lg shadow-md m-2", children: [
755
+ e ? /* @__PURE__ */ k("figure", { className: "mr-2", children: [
756
+ e === "success" && n?.success ? n.success : null,
757
+ e === "info" && n?.info ? n.info : null,
758
+ e === "error" && n?.error ? n.error : null,
759
+ e === "warn" && n?.warn ? n.warn : null,
760
+ e === "loading" ? /* @__PURE__ */ i(Xe, { size: 20 }) : null
739
761
  ] }) : null,
740
- /* @__PURE__ */ g("div", { className: "space-y-2", children: [
741
- /* @__PURE__ */ n("p", { className: "font-medium leading-none", children: t }),
742
- r ? /* @__PURE__ */ n("p", { children: r }) : null
762
+ /* @__PURE__ */ k("div", { className: "space-y-2", children: [
763
+ /* @__PURE__ */ i("p", { className: "font-medium leading-none", children: t }),
764
+ r ? /* @__PURE__ */ i("p", { children: r }) : null
743
765
  ] })
744
766
  ] });
745
767
  }
746
- function J() {
768
+ function ee() {
747
769
  }
748
- class De {
770
+ class Le {
749
771
  /** システムで1つしか存在しない前提とする */
750
- notify = J;
772
+ notify = ee;
751
773
  lastId = 0;
752
774
  /** internal use only */
753
775
  subscribe = (t) => (this.notify = t, () => {
754
- this.notify = J;
776
+ this.notify = ee;
755
777
  });
756
778
  add = (t, r = {}) => {
757
779
  this.lastId += 1;
758
- const o = `${this.lastId}`;
759
- return this.notify({ id: o, type: "add", config: { id: o, label: t, ...r } }), o;
780
+ const n = `${this.lastId}`;
781
+ return this.notify({ id: n, type: "add", config: { id: n, label: t, ...r } }), n;
760
782
  };
761
783
  /** 表示中のtoastを修正します。promiseのロード状態を表示することなどに使います */
762
784
  update = (t, r) => {
@@ -769,260 +791,165 @@ class De {
769
791
  this.lastId = 0;
770
792
  };
771
793
  }
772
- const de = new De();
773
- function Ze({
794
+ const fe = new Le();
795
+ function We({
774
796
  id: e,
775
797
  type: t,
776
798
  index: r,
777
- duration: o,
778
- className: l,
779
- children: i,
780
- inverted: s,
799
+ duration: n,
800
+ className: s,
801
+ children: o,
802
+ inverted: l,
781
803
  timeout: u = 250,
782
- max: c = 3
804
+ max: f = 3
783
805
  }) {
784
- const h = F(!1), [p, m] = S(!1), { context: x, refs: a } = _({ open: p, onOpenChange: m, nodeId: e }), { isMounted: b, styles: v } = D(x, {
806
+ const d = I(!1), [p, g] = E(!1), { context: h, refs: C } = H({ open: p, onOpenChange: g, nodeId: e }), { isMounted: y, styles: a } = L(h, {
785
807
  duration: u,
786
- initial: { opacity: 0, transform: `translateY(${s ? "" : "-"}50%)` }
808
+ initial: { opacity: 0, transform: `translateY(${l ? "" : "-"}50%)` }
787
809
  });
788
- ee(() => {
789
- m(r <= c);
790
- }, [r, c]), E(() => {
791
- h.current !== b && (b || de.remove(e), h.current = b);
792
- }, [b, e]), E(() => {
793
- if (!o) return;
794
- const C = window.setTimeout(() => m(!1), o);
795
- return () => window.clearTimeout(C);
796
- }, [o, e]);
797
- const y = L(() => {
798
- t !== "loading" && m(!1);
799
- }, [t]), I = d(() => w(
810
+ ne(() => {
811
+ g(r <= f);
812
+ }, [r, f]), R(() => {
813
+ d.current !== y && (y || fe.remove(e), d.current = y);
814
+ }, [y, e]), R(() => {
815
+ if (!n) return;
816
+ const x = window.setTimeout(() => g(!1), n);
817
+ return () => window.clearTimeout(x);
818
+ }, [n, e]);
819
+ const N = O(() => {
820
+ t !== "loading" && g(!1);
821
+ }, [t]), v = c(() => m(
800
822
  "relative flex w-fit transition-transform ease-in-out cursor-pointer",
801
- l
802
- ), [l]);
803
- return b ? /* @__PURE__ */ n(
823
+ s
824
+ ), [s]);
825
+ return y ? /* @__PURE__ */ i(
804
826
  "li",
805
827
  {
806
828
  role: "log",
807
829
  tabIndex: -1,
808
- ref: a.setFloating,
809
- className: I,
810
- style: v,
811
- onClick: y,
812
- children: i
830
+ ref: C.setFloating,
831
+ className: v,
832
+ style: a,
833
+ onClick: N,
834
+ children: o
813
835
  }
814
836
  ) : null;
815
837
  }
816
- function nt({
838
+ const pe = xe({});
839
+ function Ye() {
840
+ return ve(pe);
841
+ }
842
+ function st({
817
843
  className: e,
818
844
  margin: t = 16,
819
845
  position: r = "top-left",
820
- max: o,
821
- ListItem: l = _e
846
+ max: n,
847
+ ListItem: s = He,
848
+ icons: o
822
849
  }) {
823
- const i = d(() => {
850
+ const l = c(() => {
824
851
  const a = { position: "fixed" };
825
852
  return r.indexOf("top") > -1 ? a.top = t : r.indexOf("bottom") > -1 && (a.bottom = t), r.indexOf("left") > -1 ? (a.left = t, a.alignItems = "flex-start") : r.indexOf("right") > -1 ? (a.right = t, a.alignItems = "flex-end") : (a.left = "50%", a.alignItems = "center", a.transform = "translateX(-50%)"), a;
826
- }, [t, r]), s = d(() => w(
853
+ }, [t, r]), u = c(() => m(
827
854
  "flex flex-col z-40 overflow-hidden",
828
855
  e
829
- ), [e]), u = d(() => r?.startsWith("bottom") || !1, [r]), c = F(/* @__PURE__ */ new Map()), [h, p] = S([]), m = S(0)[1];
830
- V(() => de.subscribe((a) => {
831
- fe(() => {
856
+ ), [e]), f = c(() => r?.startsWith("bottom") || !1, [r]), d = I(/* @__PURE__ */ new Map()), [p, g] = E([]), h = E(0)[1];
857
+ Q(() => fe.subscribe((a) => {
858
+ ye(() => {
832
859
  if (a.type === "add")
833
- c.current.set(a.id, a.config), p((b) => [...b, a.id]);
860
+ d.current.set(a.id, a.config), g((N) => [...N, a.id]);
834
861
  else if (a.type === "remove") {
835
- if (!c.current.delete(a.id)) return;
836
- p((v) => {
837
- const y = new Set(v);
838
- return y.has(a.id) ? (y.delete(a.id), Array.from(y)) : v;
862
+ if (!d.current.delete(a.id)) return;
863
+ g((v) => {
864
+ const x = new Set(v);
865
+ return x.has(a.id) ? (x.delete(a.id), Array.from(x)) : v;
839
866
  });
840
867
  } else if (a.type === "update") {
841
- const b = c.current.get(a.id);
842
- if (!b) return;
843
- c.current.set(a.id, { ...b, ...a.config }), m((v) => v + 1);
868
+ const N = d.current.get(a.id);
869
+ if (!N) return;
870
+ d.current.set(a.id, { ...N, ...a.config }), h((v) => v + 1);
844
871
  }
845
872
  });
846
873
  }), []);
847
- const x = h.length;
848
- return /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n("ol", { className: s, style: i, "aria-live": "polite", children: h.map((a, b) => {
849
- const v = c.current.get(a);
874
+ const C = c(() => ({ icons: o }), [o]), y = p.length;
875
+ return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i("ol", { className: u, style: l, "aria-live": "polite", children: /* @__PURE__ */ i(pe.Provider, { value: C, children: p.map((a, N) => {
876
+ const v = d.current.get(a);
850
877
  if (!v) return null;
851
- const { className: y, duration: I, ...C } = v;
852
- return /* @__PURE__ */ n(
853
- Ze,
878
+ const { className: x, duration: w, ..._ } = v;
879
+ return /* @__PURE__ */ i(
880
+ We,
854
881
  {
855
882
  id: a,
856
- index: x - b,
857
- className: y,
858
- duration: I,
859
- inverted: u,
860
- max: o,
861
- children: he(l, C)
883
+ index: y - N,
884
+ className: x,
885
+ duration: w,
886
+ inverted: f,
887
+ max: n,
888
+ children: we(s, _)
862
889
  },
863
890
  a
864
891
  );
865
- }) }) });
892
+ }) }) }) });
866
893
  }
867
- function rt({ className: e, ...t }) {
868
- const r = d(() => N(
894
+ function lt({ className: e, ...t }) {
895
+ const r = c(() => F(
869
896
  "inline-block animate-pulse rounded-md bg-accent",
870
897
  e
871
898
  ), [e]);
872
- return /* @__PURE__ */ n("span", { className: r, ...t });
899
+ return /* @__PURE__ */ i("span", { className: r, ...t });
873
900
  }
874
- function ot({ className: e, ...t }) {
875
- const r = d(() => w(
901
+ function at({ className: e, ...t }) {
902
+ const r = c(() => m(
876
903
  "flex items-center justify-center",
877
904
  "[&_button]:rounded-none [&_:first-child]:rounded-bl [&_:first-child]:rounded-tl [&_:last-child]:rounded-br [&_:last-child]:rounded-tr",
878
905
  "[&_:first-child]:border-r-0 [&_:last-child]:border-l-0",
879
906
  e
880
907
  ), [e]);
881
- return /* @__PURE__ */ n("div", { role: "group", className: r, ...t });
908
+ return /* @__PURE__ */ i("div", { role: "group", className: r, ...t });
882
909
  }
883
- function it({ value: e, max: t, className: r, ...o }) {
884
- const l = d(() => e ? Math.round(e / t * 100) : 0, [e, t]), i = d(() => N("relative overflow-hidden rounded-full bg-primary", r), [r]);
885
- return /* @__PURE__ */ n("div", { role: "progressbar", className: i, "aria-valuemax": t, "aria-valuemin": 0, ...o, children: /* @__PURE__ */ n(
910
+ function ct({ value: e, max: t, className: r, ...n }) {
911
+ const s = c(() => e ? Math.round(e / t * 100) : 0, [e, t]), o = c(() => F("relative overflow-hidden rounded-full bg-primary", r), [r]);
912
+ return /* @__PURE__ */ i("div", { role: "progressbar", className: o, "aria-valuemax": t, "aria-valuemin": 0, ...n, children: /* @__PURE__ */ i(
886
913
  "div",
887
914
  {
888
915
  className: "h-full w-full flex-1 bg-input transition-all origin-right",
889
- style: { transform: `translateX(${l > 100 ? 100 : l}%)` }
916
+ style: { transform: `translateX(${s > 100 ? 100 : s}%)` }
890
917
  }
891
918
  ) });
892
919
  }
893
- function lt({ className: e, orientation: t = "horizontal", ...r }) {
894
- const o = d(() => N(w(
920
+ function ut({ className: e, orientation: t = "horizontal", ...r }) {
921
+ const n = c(() => F(m(
895
922
  "border-0 p-0 shrink-0 bg-input",
896
923
  t === "horizontal" ? "h-[1px] w-full" : "w-[1px] h-full"
897
924
  ), e), [e, t]);
898
- return /* @__PURE__ */ n("hr", { className: o, role: "none", ...r });
899
- }
900
- function st(e) {
901
- return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...e, children: [
902
- /* @__PURE__ */ g("g", { fill: "none", children: [
903
- /* @__PURE__ */ n("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
904
- /* @__PURE__ */ n(
905
- "path",
906
- {
907
- d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z",
908
- fill: "currentColor"
909
- }
910
- )
911
- ] }),
912
- /* @__PURE__ */ n(
913
- "path",
914
- {
915
- d: "M18.066 8.5l-7.567 6.731 7.567 6.2",
916
- fill: "none",
917
- stroke: "currentColor",
918
- strokeWidth: "2"
919
- }
920
- )
921
- ] });
922
- }
923
- function at(e) {
924
- return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...e, children: [
925
- /* @__PURE__ */ g("g", { fill: "none", children: [
926
- /* @__PURE__ */ n("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
927
- /* @__PURE__ */ n(
928
- "path",
929
- {
930
- d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z",
931
- fill: "currentColor"
932
- }
933
- )
934
- ] }),
935
- /* @__PURE__ */ g("g", { transform: "translate(9 7)", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
936
- /* @__PURE__ */ n("rect", { width: "12", height: "16", rx: "1", stroke: "none" }),
937
- /* @__PURE__ */ n("path", { d: "M1 1h10v14H1z" })
938
- ] }),
939
- /* @__PURE__ */ n(
940
- "path",
941
- {
942
- fill: "currentColor",
943
- d: "M13 11h4v1.3h-4zM13 14h4v1.3h-4zM13 17h4v1.3h-4z"
944
- }
945
- )
946
- ] });
947
- }
948
- function ct(e) {
949
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17.796", height: "17.908", viewBox: "0 0 17.796 17.908", ...e, children: /* @__PURE__ */ n(
950
- "path",
951
- {
952
- d: "M1.254 12.674L.5 17.408l4.726-.8L17.3 4.472 13.281.5zM1.375 12.766l3.851 3.838M10.949 2.959l3.836 3.801",
953
- fill: "none",
954
- stroke: "currentColor"
955
- }
956
- ) });
957
- }
958
- function dt(e) {
959
- return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...e, children: [
960
- /* @__PURE__ */ g("g", { fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
961
- /* @__PURE__ */ n("circle", { cx: "15", cy: "15", r: "15", stroke: "none" }),
962
- /* @__PURE__ */ n("circle", { cx: "15", cy: "15", r: "14" })
963
- ] }),
964
- /* @__PURE__ */ n(
965
- "path",
966
- {
967
- d: "M8 23a6.018 6.018 0 016-6h2a6.018 6.018 0 016 6zm2.6-2h8.9a4.033 4.033 0 00-3.5-2h-1.9a4.035 4.035 0 00-3.5 2zm.4-9v-1a4.012 4.012 0 014-4 4.012 4.012 0 014 4v1a4.012 4.012 0 01-4 4 4.012 4.012 0 01-4-4zm2-1v1a2.006 2.006 0 002 2 2.006 2.006 0 002-2v-1a2.006 2.006 0 00-2-2 2.006 2.006 0 00-2 2z",
968
- fill: "currentColor"
969
- }
970
- )
971
- ] });
972
- }
973
- function ut(e) {
974
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...e, children: /* @__PURE__ */ n(
975
- "path",
976
- {
977
- d: "M15.065 0A15.069 15.069 0 00.142 13.105a1.256 1.256 0 102.478.406c0-.027.008-.055.01-.082a12.52 12.52 0 0121.3-7.226l-2.584 2.584 7.532 1.255-1.255-7.532-1.92 1.92A15 15 0 0015.065 0zm13.7 15.589A1.255 1.255 0 0027.5 16.7a12.512 12.512 0 01-21.893 6.569l1.927-1.927L0 20.086l1.255 7.532 2.572-2.572a15.02 15.02 0 0026.16-8.023 1.256 1.256 0 00-1.064-1.423 1.273 1.273 0 00-.16-.011z",
978
- fill: "currentColor"
979
- }
980
- ) });
981
- }
982
- function ft(e) {
983
- return /* @__PURE__ */ g("svg", { width: "30", height: "30", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
984
- /* @__PURE__ */ n("rect", { x: "16.5", y: "9", width: "14", height: "1", rx: ".5", transform: "rotate(90 16.5 9)", fill: "currentColor" }),
985
- /* @__PURE__ */ n("rect", { x: "9", y: "15.5", width: "14", height: "1", rx: ".5", fill: "currentColor" })
986
- ] });
925
+ return /* @__PURE__ */ i("hr", { className: n, role: "none", ...r });
987
926
  }
988
927
  export {
989
- Ge as Accordion,
990
- Qe as Button,
991
- ot as ButtonGroup,
992
- Ue as Checkbox,
993
- et as Dialog,
994
- lt as Divider,
995
- Ye as FormField,
996
- xe as FormLabel,
997
- G as IconAlert,
998
- Te as IconApproved,
999
- Ne as IconArrowDown,
1000
- Le as IconCaution,
1001
- le as IconCheck,
1002
- st as IconChevronRound,
1003
- Ie as IconClose,
1004
- at as IconFileRound,
1005
- ct as IconPencil,
1006
- ft as IconPlus,
1007
- ut as IconRefresh,
1008
- dt as IconUser,
1009
- ye as Input,
1010
- qe as InputField,
1011
- rt as Placeholder,
1012
- se as Popover,
1013
- Z as Portal,
1014
- it as Progress,
1015
- Ke as Radio,
1016
- Ve as Select,
1017
- tt as Sheet,
1018
- Ee as Spinner,
1019
- Fe as Switch,
1020
- Ce as Textarea,
1021
- nt as Toast,
1022
- _e as ToastItem,
1023
- Je as Tooltip,
1024
- gt as clsx,
1025
- N as merge,
1026
- de as toast,
1027
- Be as varientButton
928
+ nt as Accordion,
929
+ rt as Button,
930
+ at as ButtonGroup,
931
+ Ve as Checkbox,
932
+ ot as Dialog,
933
+ ut as Divider,
934
+ Je as FormField,
935
+ Te as FormLabel,
936
+ Ae as Input,
937
+ Qe as InputField,
938
+ lt as Placeholder,
939
+ ae as Popover,
940
+ W as Portal,
941
+ ct as Progress,
942
+ tt as Radio,
943
+ et as Select,
944
+ it as Sheet,
945
+ Xe as Spinner,
946
+ De as Switch,
947
+ Me as Textarea,
948
+ st as Toast,
949
+ He as ToastItem,
950
+ Oe as Tooltip,
951
+ pt as clsx,
952
+ F as merge,
953
+ fe as toast,
954
+ je as varientButton
1028
955
  };