@code-sherpas/pharos-react 0.18.0 → 0.20.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.
Files changed (92) hide show
  1. package/dist/components/Avatar.js +138 -0
  2. package/dist/components/Avatar.js.map +1 -0
  3. package/dist/components/Avatar.module.js +15 -0
  4. package/dist/components/Avatar.module.js.map +1 -0
  5. package/dist/components/Badge.js +30 -0
  6. package/dist/components/Badge.js.map +1 -0
  7. package/dist/components/Badge.module.js +14 -0
  8. package/dist/components/Badge.module.js.map +1 -0
  9. package/dist/components/Button.d.ts.map +1 -1
  10. package/dist/components/Button.js +49 -0
  11. package/dist/components/Button.js.map +1 -0
  12. package/dist/components/Button.module.js +14 -0
  13. package/dist/components/Button.module.js.map +1 -0
  14. package/dist/components/Card.js +66 -0
  15. package/dist/components/Card.js.map +1 -0
  16. package/dist/components/Card.module.js +15 -0
  17. package/dist/components/Card.module.js.map +1 -0
  18. package/dist/components/Checkbox.d.ts.map +1 -1
  19. package/dist/components/Checkbox.js +47 -0
  20. package/dist/components/Checkbox.js.map +1 -0
  21. package/dist/components/Checkbox.module.js +11 -0
  22. package/dist/components/Checkbox.module.js.map +1 -0
  23. package/dist/components/Combobox.d.ts.map +1 -1
  24. package/dist/components/Combobox.js +212 -0
  25. package/dist/components/Combobox.js.map +1 -0
  26. package/dist/components/Combobox.module.js +25 -0
  27. package/dist/components/Combobox.module.js.map +1 -0
  28. package/dist/components/Dialog.d.ts.map +1 -1
  29. package/dist/components/Dialog.js +66 -0
  30. package/dist/components/Dialog.js.map +1 -0
  31. package/dist/components/Dialog.module.js +12 -0
  32. package/dist/components/Dialog.module.js.map +1 -0
  33. package/dist/components/DropdownMenu.d.ts.map +1 -1
  34. package/dist/components/DropdownMenu.js +64 -0
  35. package/dist/components/DropdownMenu.js.map +1 -0
  36. package/dist/components/DropdownMenu.module.js +12 -0
  37. package/dist/components/DropdownMenu.module.js.map +1 -0
  38. package/dist/components/IconButton.d.ts.map +1 -1
  39. package/dist/components/IconButton.js +53 -0
  40. package/dist/components/IconButton.js.map +1 -0
  41. package/dist/components/IconButton.module.js +14 -0
  42. package/dist/components/IconButton.module.js.map +1 -0
  43. package/dist/components/Input.js +28 -0
  44. package/dist/components/Input.js.map +1 -0
  45. package/dist/components/Input.module.js +10 -0
  46. package/dist/components/Input.module.js.map +1 -0
  47. package/dist/components/Popover.d.ts.map +1 -1
  48. package/dist/components/Popover.js +57 -0
  49. package/dist/components/Popover.js.map +1 -0
  50. package/dist/components/Popover.module.js +10 -0
  51. package/dist/components/Popover.module.js.map +1 -0
  52. package/dist/components/RadioGroup.d.ts +49 -0
  53. package/dist/components/RadioGroup.d.ts.map +1 -0
  54. package/dist/components/RadioGroup.js +28 -0
  55. package/dist/components/RadioGroup.js.map +1 -0
  56. package/dist/components/RadioGroup.module.js +9 -0
  57. package/dist/components/RadioGroup.module.js.map +1 -0
  58. package/dist/components/Select.d.ts.map +1 -1
  59. package/dist/components/Select.js +130 -0
  60. package/dist/components/Select.js.map +1 -0
  61. package/dist/components/Select.module.js +19 -0
  62. package/dist/components/Select.module.js.map +1 -0
  63. package/dist/components/Separator.js +18 -0
  64. package/dist/components/Separator.js.map +1 -0
  65. package/dist/components/Separator.module.js +9 -0
  66. package/dist/components/Separator.module.js.map +1 -0
  67. package/dist/components/Sheet.d.ts.map +1 -1
  68. package/dist/components/Sheet.js +77 -0
  69. package/dist/components/Sheet.js.map +1 -0
  70. package/dist/components/Sheet.module.js +16 -0
  71. package/dist/components/Sheet.module.js.map +1 -0
  72. package/dist/components/Spinner.js +51 -0
  73. package/dist/components/Spinner.js.map +1 -0
  74. package/dist/components/Spinner.module.js +13 -0
  75. package/dist/components/Spinner.module.js.map +1 -0
  76. package/dist/components/Switch.d.ts.map +1 -1
  77. package/dist/components/Switch.js +19 -0
  78. package/dist/components/Switch.js.map +1 -0
  79. package/dist/components/Switch.module.js +8 -0
  80. package/dist/components/Switch.module.js.map +1 -0
  81. package/dist/components/Textarea.js +27 -0
  82. package/dist/components/Textarea.js.map +1 -0
  83. package/dist/components/Textarea.module.js +10 -0
  84. package/dist/components/Textarea.module.js.map +1 -0
  85. package/dist/index.d.ts +2 -0
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +20 -1192
  88. package/dist/lib/cn.js +9 -0
  89. package/dist/lib/cn.js.map +1 -0
  90. package/dist/styles.css +1 -1
  91. package/package.json +76 -3
  92. package/dist/index.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,1192 +1,20 @@
1
- "use client";
2
- import { useRender as e } from "@base-ui/react/use-render";
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- import { createContext as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useState as c } from "react";
5
- import { Menu as l } from "@base-ui/react/menu";
6
- import { Popover as u } from "@base-ui/react/popover";
7
- import { Select as d } from "@base-ui/react/select";
8
- import { Combobox as f } from "@base-ui/react/combobox";
9
- import { Dialog as p } from "@base-ui/react/dialog";
10
- import { Checkbox as m } from "@base-ui/react/checkbox";
11
- import { Switch as h } from "@base-ui/react/switch";
12
- //#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
13
- function g(e) {
14
- var t, n, r = "";
15
- if (typeof e == "string" || typeof e == "number") r += e;
16
- else if (typeof e == "object") if (Array.isArray(e)) {
17
- var i = e.length;
18
- for (t = 0; t < i; t++) e[t] && (n = g(e[t])) && (r && (r += " "), r += n);
19
- } else for (n in e) e[n] && (r && (r += " "), r += n);
20
- return r;
21
- }
22
- function _() {
23
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = g(e)) && (r && (r += " "), r += t);
24
- return r;
25
- }
26
- //#endregion
27
- //#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
28
- var v = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = _, b = (e, t) => (n) => {
29
- if (t?.variants == null) return y(e, n?.class, n?.className);
30
- let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
31
- let t = n?.[e], a = i?.[e];
32
- if (t === null) return null;
33
- let o = v(t) || v(a);
34
- return r[e][o];
35
- }), o = n && Object.entries(n).reduce((e, t) => {
36
- let [n, r] = t;
37
- return r === void 0 || (e[n] = r), e;
38
- }, {});
39
- return y(e, a, t?.compoundVariants?.reduce((e, t) => {
40
- let { class: n, className: r, ...a } = t;
41
- return Object.entries(a).every((e) => {
42
- let [t, n] = e;
43
- return Array.isArray(n) ? n.includes({
44
- ...i,
45
- ...o
46
- }[t]) : {
47
- ...i,
48
- ...o
49
- }[t] === n;
50
- }) ? [
51
- ...e,
52
- n,
53
- r
54
- ] : e;
55
- }, []), n?.class, n?.className);
56
- };
57
- //#endregion
58
- //#region src/lib/cn.ts
59
- function x(...e) {
60
- return _(e);
61
- }
62
- var S = {
63
- button: "_button_iu0wg_18",
64
- primary: "_primary_iu0wg_127",
65
- secondary: "_secondary_iu0wg_141",
66
- ghost: "_ghost_iu0wg_161",
67
- destructive: "_destructive_iu0wg_175",
68
- sizeSm: "_sizeSm_iu0wg_197",
69
- sizeMd: "_sizeMd_iu0wg_205",
70
- sizeLg: "_sizeLg_iu0wg_213"
71
- }, C = b(S.button, {
72
- variants: {
73
- intent: {
74
- primary: S.primary,
75
- secondary: S.secondary,
76
- ghost: S.ghost,
77
- destructive: S.destructive
78
- },
79
- size: {
80
- sm: S.sizeSm,
81
- md: S.sizeMd,
82
- lg: S.sizeLg
83
- }
84
- },
85
- defaultVariants: {
86
- intent: "primary",
87
- size: "md"
88
- }
89
- });
90
- function w({ render: n, className: r, intent: i, size: a, type: o = "button", ref: s, ...c }) {
91
- let l = i ?? "primary", u = a ?? "md";
92
- return e({
93
- render: n ?? /* @__PURE__ */ t("button", {}),
94
- ref: s,
95
- defaultTagName: "button",
96
- props: {
97
- type: o,
98
- "data-pharos-intent": l,
99
- "data-pharos-size": u,
100
- className: x(C({
101
- intent: l,
102
- size: u
103
- }), r),
104
- ...c
105
- }
106
- });
107
- }
108
- w.displayName = "Button";
109
- var T = {
110
- spinner: "_spinner_gg970_28",
111
- icon: "_icon_gg970_46",
112
- "pharos-spinner-spin": "_pharos-spinner-spin_gg970_1",
113
- sizeSm: "_sizeSm_gg970_69",
114
- sizeMd: "_sizeMd_gg970_74",
115
- sizeLg: "_sizeLg_gg970_79",
116
- srOnly: "_srOnly_gg970_87"
117
- }, ee = b(T.spinner, {
118
- variants: { size: {
119
- sm: T.sizeSm,
120
- md: T.sizeMd,
121
- lg: T.sizeLg
122
- } },
123
- defaultVariants: { size: "md" }
124
- });
125
- function E({ size: e, className: r, srLabel: i = "Loading…", children: a, ref: o, ...s }) {
126
- let c = e ?? "md";
127
- return /* @__PURE__ */ n("span", {
128
- ref: o,
129
- role: "status",
130
- "data-pharos-size": c,
131
- className: x(ee({ size: c }), r),
132
- ...s,
133
- children: [
134
- /* @__PURE__ */ t("svg", {
135
- className: T.icon,
136
- viewBox: "0 0 24 24",
137
- fill: "none",
138
- stroke: "currentColor",
139
- strokeWidth: 2.5,
140
- strokeLinecap: "round",
141
- "aria-hidden": "true",
142
- focusable: "false",
143
- children: /* @__PURE__ */ t("circle", {
144
- cx: "12",
145
- cy: "12",
146
- r: "10",
147
- strokeDasharray: "50 25"
148
- })
149
- }),
150
- /* @__PURE__ */ t("span", {
151
- className: T.srOnly,
152
- children: i
153
- }),
154
- a
155
- ]
156
- });
157
- }
158
- E.displayName = "Spinner";
159
- var D = {
160
- button: "_button_ltuh2_14",
161
- primary: "_primary_ltuh2_74",
162
- secondary: "_secondary_ltuh2_88",
163
- ghost: "_ghost_ltuh2_107",
164
- destructive: "_destructive_ltuh2_121",
165
- sizeSm: "_sizeSm_ltuh2_150",
166
- sizeMd: "_sizeMd_ltuh2_160",
167
- sizeLg: "_sizeLg_ltuh2_170"
168
- }, te = b(D.button, {
169
- variants: {
170
- intent: {
171
- primary: D.primary,
172
- secondary: D.secondary,
173
- ghost: D.ghost,
174
- destructive: D.destructive
175
- },
176
- size: {
177
- sm: D.sizeSm,
178
- md: D.sizeMd,
179
- lg: D.sizeLg
180
- }
181
- },
182
- defaultVariants: {
183
- intent: "ghost",
184
- size: "md"
185
- }
186
- });
187
- function ne({ render: n, className: r, intent: i, size: a, isLoading: o, disabled: s, type: c = "button", children: l, ref: u, ...d }) {
188
- let f = i ?? "ghost", p = a ?? "md";
189
- return e({
190
- render: n ?? /* @__PURE__ */ t("button", {}),
191
- ref: u,
192
- defaultTagName: "button",
193
- props: {
194
- type: c,
195
- "data-pharos-intent": f,
196
- "data-pharos-size": p,
197
- "aria-busy": o ? !0 : void 0,
198
- disabled: !!s || !!o,
199
- className: x(te({
200
- intent: f,
201
- size: p
202
- }), r),
203
- ...d,
204
- children: o ? /* @__PURE__ */ t(E, { size: p }) : l
205
- }
206
- });
207
- }
208
- ne.displayName = "IconButton";
209
- var O = {
210
- badge: "_badge_zrawy_5",
211
- default: "_default_zrawy_30",
212
- secondary: "_secondary_zrawy_35",
213
- destructive: "_destructive_zrawy_40",
214
- outline: "_outline_zrawy_45",
215
- success: "_success_zrawy_55",
216
- warning: "_warning_zrawy_60",
217
- info: "_info_zrawy_65"
218
- }, k = b(O.badge, {
219
- variants: { variant: {
220
- default: O.default,
221
- secondary: O.secondary,
222
- destructive: O.destructive,
223
- outline: O.outline,
224
- success: O.success,
225
- warning: O.warning,
226
- info: O.info
227
- } },
228
- defaultVariants: { variant: "default" }
229
- });
230
- function A({ variant: e, className: n, ...r }) {
231
- let i = e ?? "default";
232
- return /* @__PURE__ */ t("span", {
233
- "data-pharos-variant": i,
234
- className: x(k({ variant: i }), n),
235
- ...r
236
- });
237
- }
238
- A.displayName = "Badge";
239
- var j = {
240
- input: "_input_11emo_14",
241
- sizeSm: "_sizeSm_11emo_97",
242
- sizeMd: "_sizeMd_11emo_103",
243
- sizeLg: "_sizeLg_11emo_109"
244
- }, re = b(j.input, {
245
- variants: { size: {
246
- sm: j.sizeSm,
247
- md: j.sizeMd,
248
- lg: j.sizeLg
249
- } },
250
- defaultVariants: { size: "md" }
251
- });
252
- function ie({ size: e, className: n, type: r = "text", ref: i, ...a }) {
253
- let o = e ?? "md";
254
- return /* @__PURE__ */ t("input", {
255
- ref: i,
256
- type: r,
257
- "data-pharos-size": o,
258
- className: x(re({ size: o }), n),
259
- ...a
260
- });
261
- }
262
- ie.displayName = "Input";
263
- var M = {
264
- textarea: "_textarea_1mec8_21",
265
- sizeSm: "_sizeSm_1mec8_113",
266
- sizeMd: "_sizeMd_1mec8_119",
267
- sizeLg: "_sizeLg_1mec8_125"
268
- }, ae = b(M.textarea, {
269
- variants: { size: {
270
- sm: M.sizeSm,
271
- md: M.sizeMd,
272
- lg: M.sizeLg
273
- } },
274
- defaultVariants: { size: "md" }
275
- });
276
- function oe({ size: e, className: n, ref: r, ...i }) {
277
- let a = e ?? "md";
278
- return /* @__PURE__ */ t("textarea", {
279
- ref: r,
280
- "data-pharos-size": a,
281
- className: x(ae({ size: a }), n),
282
- ...i
283
- });
284
- }
285
- oe.displayName = "Textarea";
286
- var se = {
287
- separator: "_separator_da90p_13",
288
- horizontal: "_horizontal_da90p_29",
289
- vertical: "_vertical_da90p_34"
290
- };
291
- //#endregion
292
- //#region src/components/Separator.tsx
293
- function ce({ orientation: e = "horizontal", decorative: n = !0, className: r, ...i }) {
294
- return /* @__PURE__ */ t("div", {
295
- role: n ? "none" : "separator",
296
- "aria-orientation": !n && e === "vertical" ? "vertical" : void 0,
297
- "data-pharos-orientation": e,
298
- className: x(se.separator, se[e], r),
299
- ...i
300
- });
301
- }
302
- ce.displayName = "Separator";
303
- var N = {
304
- card: "_card_yxgwa_10",
305
- default: "_default_yxgwa_42",
306
- elevated: "_elevated_yxgwa_46",
307
- outlined: "_outlined_yxgwa_51",
308
- header: "_header_yxgwa_62",
309
- title: "_title_yxgwa_69",
310
- description: "_description_yxgwa_77",
311
- content: "_content_yxgwa_85",
312
- footer: "_footer_yxgwa_95"
313
- }, le = b(N.card, {
314
- variants: { variant: {
315
- default: N.default,
316
- elevated: N.elevated,
317
- outlined: N.outlined
318
- } },
319
- defaultVariants: { variant: "default" }
320
- });
321
- function ue({ variant: e, className: n, ...r }) {
322
- let i = e ?? "default";
323
- return /* @__PURE__ */ t("div", {
324
- "data-pharos-variant": i,
325
- className: x(le({ variant: i }), n),
326
- ...r
327
- });
328
- }
329
- ue.displayName = "Card";
330
- function P({ className: e, ...n }) {
331
- return /* @__PURE__ */ t("div", {
332
- "data-pharos-slot": "card-header",
333
- className: x(N.header, e),
334
- ...n
335
- });
336
- }
337
- P.displayName = "CardHeader";
338
- function F({ className: e, ...n }) {
339
- return /* @__PURE__ */ t("div", {
340
- "data-pharos-slot": "card-title",
341
- className: x(N.title, e),
342
- ...n
343
- });
344
- }
345
- F.displayName = "CardTitle";
346
- function I({ className: e, ...n }) {
347
- return /* @__PURE__ */ t("p", {
348
- "data-pharos-slot": "card-description",
349
- className: x(N.description, e),
350
- ...n
351
- });
352
- }
353
- I.displayName = "CardDescription";
354
- function L({ className: e, ...n }) {
355
- return /* @__PURE__ */ t("div", {
356
- "data-pharos-slot": "card-content",
357
- className: x(N.content, e),
358
- ...n
359
- });
360
- }
361
- L.displayName = "CardContent";
362
- function R({ className: e, ...n }) {
363
- return /* @__PURE__ */ t("div", {
364
- "data-pharos-slot": "card-footer",
365
- className: x(N.footer, e),
366
- ...n
367
- });
368
- }
369
- R.displayName = "CardFooter";
370
- var z = {
371
- root: "_root_1xx27_21",
372
- shapeCircle: "_shapeCircle_1xx27_63",
373
- shapeSquare: "_shapeSquare_1xx27_67",
374
- sizeSm: "_sizeSm_1xx27_86",
375
- sizeMd: "_sizeMd_1xx27_93",
376
- sizeLg: "_sizeLg_1xx27_100",
377
- image: "_image_1xx27_118",
378
- fallback: "_fallback_1xx27_134",
379
- group: "_group_1xx27_175"
380
- }, de = r(null), B = r(null), V = r(null), fe = {
381
- sm: z.sizeSm,
382
- md: z.sizeMd,
383
- lg: z.sizeLg
384
- }, pe = {
385
- circle: z.shapeCircle,
386
- square: z.shapeSquare
387
- };
388
- function me(e) {
389
- if (typeof e == "number") return {
390
- width: e,
391
- height: e,
392
- fontSize: `${Math.round(e * .4)}px`
393
- };
394
- }
395
- function he(e) {
396
- if (typeof e != "number") return fe[e];
397
- }
398
- function H({ size: n, shape: r, className: i, style: o, render: l, ref: u, children: d, ...f }) {
399
- let p = a(V), m = n ?? p?.size ?? "md", h = r ?? p?.shape ?? "circle", [g, _] = c("idle"), v = s(() => ({
400
- size: m,
401
- shape: h
402
- }), [m, h]), y = s(() => ({
403
- status: g,
404
- setStatus: _
405
- }), [g]), b = he(m), S = me(m), C = typeof m == "number" ? String(m) : m;
406
- return /* @__PURE__ */ t(de.Provider, {
407
- value: v,
408
- children: /* @__PURE__ */ t(B.Provider, {
409
- value: y,
410
- children: e({
411
- render: l ?? /* @__PURE__ */ t("span", {}),
412
- ref: u,
413
- defaultTagName: "span",
414
- props: {
415
- "data-pharos-size": C,
416
- "data-pharos-shape": h,
417
- "data-pharos-loading": g,
418
- className: x(z.root, b, pe[h], i),
419
- style: S ? {
420
- ...S,
421
- ...o
422
- } : o,
423
- ...f,
424
- children: d
425
- }
426
- })
427
- })
428
- });
429
- }
430
- H.displayName = "Avatar";
431
- function U({ className: e, src: n, onLoad: r, onError: s, onLoadingStatusChange: c, ref: l, ...u }) {
432
- let d = a(B), f = typeof n == "string" && n.length > 0;
433
- o(() => {
434
- d && (d.setStatus(f ? "loading" : "idle"), c?.(f ? "loading" : "idle"));
435
- }, [n]);
436
- let p = i((e) => {
437
- d?.setStatus("loaded"), c?.("loaded"), r?.(e);
438
- }, [
439
- d,
440
- r,
441
- c
442
- ]), m = i((e) => {
443
- d?.setStatus("error"), c?.("error"), s?.(e);
444
- }, [
445
- d,
446
- s,
447
- c
448
- ]);
449
- return !f || d && d.status === "error" ? null : /* @__PURE__ */ t("img", {
450
- ref: l,
451
- src: n,
452
- onLoad: p,
453
- onError: m,
454
- "data-pharos-loading": d?.status,
455
- className: x(z.image, e),
456
- ...u
457
- });
458
- }
459
- U.displayName = "AvatarImage";
460
- function W({ className: e, delayMs: n = 0, children: r, ref: i, ...s }) {
461
- let l = a(B), [u, d] = c(n === 0);
462
- return o(() => {
463
- if (n === 0) {
464
- d(!0);
465
- return;
466
- }
467
- let e = window.setTimeout(() => d(!0), n);
468
- return () => window.clearTimeout(e);
469
- }, [n]), l && l.status === "loaded" || !u ? null : /* @__PURE__ */ t("span", {
470
- ref: i,
471
- "data-pharos-slot": "avatar-fallback",
472
- "data-pharos-loading": l?.status,
473
- className: x(z.fallback, e),
474
- ...s,
475
- children: r
476
- });
477
- }
478
- W.displayName = "AvatarFallback";
479
- function ge({ size: e, shape: r, max: i, renderOverflow: a, className: o, children: c, ref: l, ...u }) {
480
- let d = e ?? "md", f = r ?? "circle", p = s(() => {
481
- let e = [], t = 0, n = [], r = (e) => {
482
- n.push(e), t += 1;
483
- };
484
- return Array.isArray(c) ? c.forEach((e) => r(e)) : c && r(c), n.concat(e).slice(0, t);
485
- }, [c]), m = typeof i == "number" && p.length > i ? p.slice(0, Math.max(i - 1, 0)) : p, h = typeof i == "number" && p.length > i ? p.length - m.length : 0, g = s(() => ({
486
- size: d,
487
- shape: f
488
- }), [d, f]);
489
- return /* @__PURE__ */ t(V.Provider, {
490
- value: g,
491
- children: /* @__PURE__ */ n("div", {
492
- ref: l,
493
- "data-pharos-slot": "avatar-group",
494
- "data-pharos-size": typeof d == "number" ? String(d) : d,
495
- "data-pharos-shape": f,
496
- className: x(z.group, o),
497
- ...u,
498
- children: [m, h > 0 ? /* @__PURE__ */ t(H, {
499
- "aria-label": `${h} more`,
500
- "data-pharos-slot": "avatar-group-overflow",
501
- children: /* @__PURE__ */ t(W, { children: a ? a(h) : `+${h}` })
502
- }) : null]
503
- })
504
- });
505
- }
506
- ge.displayName = "AvatarGroup";
507
- var G = {
508
- positioner: "_positioner_ua6x3_9",
509
- content: "_content_ua6x3_4",
510
- item: "_item_ua6x3_5",
511
- itemDestructive: "_itemDestructive_ua6x3_113",
512
- separator: "_separator_ua6x3_6",
513
- label: "_label_ua6x3_6"
514
- };
515
- //#endregion
516
- //#region src/components/DropdownMenu.tsx
517
- function _e(e) {
518
- return /* @__PURE__ */ t(l.Root, { ...e });
519
- }
520
- _e.displayName = "DropdownMenu";
521
- function ve(e) {
522
- return /* @__PURE__ */ t(l.Trigger, { ...e });
523
- }
524
- ve.displayName = "DropdownMenuTrigger";
525
- function ye({ side: e = "bottom", align: n = "start", sideOffset: r = 8, className: i, children: a, ...o }) {
526
- return /* @__PURE__ */ t(l.Portal, { children: /* @__PURE__ */ t(l.Positioner, {
527
- className: G.positioner,
528
- side: e,
529
- align: n,
530
- sideOffset: r,
531
- children: /* @__PURE__ */ t(l.Popup, {
532
- "data-pharos-slot": "dropdown-menu-content",
533
- className: x(G.content, i),
534
- ...o,
535
- children: a
536
- })
537
- }) });
538
- }
539
- ye.displayName = "DropdownMenuContent";
540
- function be({ variant: e = "default", className: n, ...r }) {
541
- return /* @__PURE__ */ t(l.Item, {
542
- "data-pharos-variant": e,
543
- className: x(G.item, e === "destructive" && G.itemDestructive, n),
544
- ...r
545
- });
546
- }
547
- be.displayName = "DropdownMenuItem";
548
- function xe({ className: e, ...n }) {
549
- return /* @__PURE__ */ t(l.Separator, {
550
- "data-pharos-slot": "dropdown-menu-separator",
551
- className: x(G.separator, e),
552
- ...n
553
- });
554
- }
555
- xe.displayName = "DropdownMenuSeparator";
556
- function Se({ className: e, ...n }) {
557
- return /* @__PURE__ */ t(l.GroupLabel, {
558
- "data-pharos-slot": "dropdown-menu-label",
559
- className: x(G.label, e),
560
- ...n
561
- });
562
- }
563
- Se.displayName = "DropdownMenuLabel";
564
- function Ce(e) {
565
- return /* @__PURE__ */ t(l.Group, {
566
- "data-pharos-slot": "dropdown-menu-group",
567
- ...e
568
- });
569
- }
570
- Ce.displayName = "DropdownMenuGroup";
571
- var K = {
572
- positioner: "_positioner_ga28p_15",
573
- content: "_content_ga28p_4",
574
- title: "_title_ga28p_5",
575
- description: "_description_ga28p_5"
576
- };
577
- //#endregion
578
- //#region src/components/Popover.tsx
579
- function we(e) {
580
- return /* @__PURE__ */ t(u.Root, { ...e });
581
- }
582
- we.displayName = "Popover";
583
- function Te(e) {
584
- return /* @__PURE__ */ t(u.Trigger, { ...e });
585
- }
586
- Te.displayName = "PopoverTrigger";
587
- function Ee({ side: e = "bottom", align: n = "center", sideOffset: r = 8, alignOffset: i = 0, className: a, children: o, ...s }) {
588
- return /* @__PURE__ */ t(u.Portal, { children: /* @__PURE__ */ t(u.Positioner, {
589
- className: K.positioner,
590
- side: e,
591
- align: n,
592
- sideOffset: r,
593
- alignOffset: i,
594
- children: /* @__PURE__ */ t(u.Popup, {
595
- "data-pharos-slot": "popover-content",
596
- className: x(K.content, a),
597
- ...s,
598
- children: o
599
- })
600
- }) });
601
- }
602
- Ee.displayName = "PopoverContent";
603
- function De({ className: e, ...n }) {
604
- return /* @__PURE__ */ t(u.Title, {
605
- "data-pharos-slot": "popover-title",
606
- className: x(K.title, e),
607
- ...n
608
- });
609
- }
610
- De.displayName = "PopoverTitle";
611
- function Oe({ className: e, ...n }) {
612
- return /* @__PURE__ */ t(u.Description, {
613
- "data-pharos-slot": "popover-description",
614
- className: x(K.description, e),
615
- ...n
616
- });
617
- }
618
- Oe.displayName = "PopoverDescription";
619
- function ke(e) {
620
- return /* @__PURE__ */ t(u.Close, {
621
- "data-pharos-slot": "popover-close",
622
- ...e
623
- });
624
- }
625
- ke.displayName = "PopoverClose";
626
- var q = {
627
- trigger: "_trigger_1w6j6_35",
628
- sizeSm: "_sizeSm_1w6j6_92",
629
- sizeMd: "_sizeMd_1w6j6_98",
630
- sizeLg: "_sizeLg_1w6j6_104",
631
- value: "_value_1w6j6_113",
632
- icon: "_icon_1w6j6_127",
633
- positioner: "_positioner_1w6j6_24",
634
- content: "_content_1w6j6_146",
635
- item: "_item_1w6j6_17",
636
- itemText: "_itemText_1w6j6_17",
637
- itemIndicator: "_itemIndicator_1w6j6_228",
638
- label: "_label_1w6j6_242",
639
- separator: "_separator_1w6j6_250"
640
- };
641
- //#endregion
642
- //#region src/components/Select.tsx
643
- function Ae(e) {
644
- return /* @__PURE__ */ t(d.Root, { ...e });
645
- }
646
- Ae.displayName = "Select";
647
- function je() {
648
- return /* @__PURE__ */ t("svg", {
649
- viewBox: "0 0 24 24",
650
- fill: "none",
651
- stroke: "currentColor",
652
- strokeWidth: "2",
653
- "aria-hidden": "true",
654
- children: /* @__PURE__ */ t("path", {
655
- d: "m6 9 6 6 6-6",
656
- strokeLinecap: "round",
657
- strokeLinejoin: "round"
658
- })
659
- });
660
- }
661
- function Me() {
662
- return /* @__PURE__ */ t("svg", {
663
- viewBox: "0 0 24 24",
664
- fill: "none",
665
- stroke: "currentColor",
666
- strokeWidth: "2",
667
- "aria-hidden": "true",
668
- children: /* @__PURE__ */ t("path", {
669
- d: "M20 6 9 17l-5-5",
670
- strokeLinecap: "round",
671
- strokeLinejoin: "round"
672
- })
673
- });
674
- }
675
- var Ne = b(q.trigger, {
676
- variants: { size: {
677
- sm: q.sizeSm,
678
- md: q.sizeMd,
679
- lg: q.sizeLg
680
- } },
681
- defaultVariants: { size: "md" }
682
- });
683
- function Pe({ size: e, className: r, children: i, ...a }) {
684
- let o = e ?? "md";
685
- return /* @__PURE__ */ n(d.Trigger, {
686
- "data-pharos-slot": "select-trigger",
687
- "data-pharos-size": o,
688
- className: x(Ne({ size: o }), r),
689
- ...a,
690
- children: [i, /* @__PURE__ */ t(d.Icon, {
691
- className: q.icon,
692
- children: /* @__PURE__ */ t(je, {})
693
- })]
694
- });
695
- }
696
- Pe.displayName = "SelectTrigger";
697
- function Fe({ className: e, ...n }) {
698
- return /* @__PURE__ */ t(d.Value, {
699
- "data-pharos-slot": "select-value",
700
- className: x(q.value, e),
701
- ...n
702
- });
703
- }
704
- Fe.displayName = "SelectValue";
705
- function Ie({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOffset: i = 0, className: a, children: o, ...s }) {
706
- return /* @__PURE__ */ t(d.Portal, { children: /* @__PURE__ */ t(d.Positioner, {
707
- className: q.positioner,
708
- alignItemWithTrigger: !1,
709
- side: e,
710
- align: n,
711
- sideOffset: r,
712
- alignOffset: i,
713
- children: /* @__PURE__ */ t(d.Popup, {
714
- "data-pharos-slot": "select-content",
715
- className: x(q.content, a),
716
- ...s,
717
- children: /* @__PURE__ */ t(d.List, { children: o })
718
- })
719
- }) });
720
- }
721
- Ie.displayName = "SelectContent";
722
- function Le({ className: e, children: r, ...i }) {
723
- return /* @__PURE__ */ n(d.Item, {
724
- "data-pharos-slot": "select-item",
725
- className: x(q.item, e),
726
- ...i,
727
- children: [/* @__PURE__ */ t(d.ItemText, {
728
- className: q.itemText,
729
- children: r
730
- }), /* @__PURE__ */ t(d.ItemIndicator, {
731
- className: q.itemIndicator,
732
- children: /* @__PURE__ */ t(Me, {})
733
- })]
734
- });
735
- }
736
- Le.displayName = "SelectItem";
737
- function Re(e) {
738
- return /* @__PURE__ */ t(d.Group, {
739
- "data-pharos-slot": "select-group",
740
- ...e
741
- });
742
- }
743
- Re.displayName = "SelectGroup";
744
- function ze({ className: e, ...n }) {
745
- return /* @__PURE__ */ t(d.GroupLabel, {
746
- "data-pharos-slot": "select-label",
747
- className: x(q.label, e),
748
- ...n
749
- });
750
- }
751
- ze.displayName = "SelectLabel";
752
- function Be({ className: e, ...n }) {
753
- return /* @__PURE__ */ t(d.Separator, {
754
- "data-pharos-slot": "select-separator",
755
- role: "none",
756
- "aria-hidden": !0,
757
- className: x(q.separator, e),
758
- ...n
759
- });
760
- }
761
- Be.displayName = "SelectSeparator";
762
- var J = {
763
- control: "_control_1dd5w_5",
764
- chips: "_chips_1dd5w_61",
765
- input: "_input_1dd5w_70",
766
- inputSizeSm: "_inputSizeSm_1dd5w_99",
767
- inputSizeMd: "_inputSizeMd_1dd5w_104",
768
- inputSizeLg: "_inputSizeLg_1dd5w_109",
769
- chipsInput: "_chipsInput_1dd5w_117",
770
- trigger: "_trigger_1dd5w_124",
771
- clear: "_clear_1dd5w_125",
772
- chip: "_chip_1dd5w_61",
773
- chipRemove: "_chipRemove_1dd5w_169",
774
- positioner: "_positioner_1dd5w_203",
775
- content: "_content_1dd5w_193",
776
- item: "_item_1dd5w_14",
777
- itemText: "_itemText_1dd5w_14",
778
- itemIndicator: "_itemIndicator_1dd5w_272",
779
- empty: "_empty_1dd5w_294",
780
- label: "_label_1dd5w_304",
781
- separator: "_separator_1dd5w_311"
782
- }, Y = r(null);
783
- function Ve(e) {
784
- let [n, r] = c(null), i = s(() => ({
785
- anchorElement: n,
786
- setAnchorElement: r
787
- }), [n]);
788
- return /* @__PURE__ */ t(Y.Provider, {
789
- value: i,
790
- children: /* @__PURE__ */ t(f.Root, { ...e })
791
- });
792
- }
793
- Ve.displayName = "Combobox";
794
- function He() {
795
- return /* @__PURE__ */ t("svg", {
796
- viewBox: "0 0 24 24",
797
- fill: "none",
798
- stroke: "currentColor",
799
- strokeWidth: "2",
800
- "aria-hidden": "true",
801
- children: /* @__PURE__ */ t("path", {
802
- d: "m6 9 6 6 6-6",
803
- strokeLinecap: "round",
804
- strokeLinejoin: "round"
805
- })
806
- });
807
- }
808
- function Ue() {
809
- return /* @__PURE__ */ t("svg", {
810
- viewBox: "0 0 24 24",
811
- fill: "none",
812
- stroke: "currentColor",
813
- strokeWidth: "2",
814
- "aria-hidden": "true",
815
- children: /* @__PURE__ */ t("path", {
816
- d: "M20 6 9 17l-5-5",
817
- strokeLinecap: "round",
818
- strokeLinejoin: "round"
819
- })
820
- });
821
- }
822
- function We() {
823
- return /* @__PURE__ */ t("svg", {
824
- viewBox: "0 0 24 24",
825
- fill: "none",
826
- stroke: "currentColor",
827
- strokeWidth: "2",
828
- "aria-hidden": "true",
829
- children: /* @__PURE__ */ t("path", {
830
- d: "M18 6 6 18M6 6l12 12",
831
- strokeLinecap: "round",
832
- strokeLinejoin: "round"
833
- })
834
- });
835
- }
836
- function Ge({ className: e, ...n }) {
837
- return /* @__PURE__ */ t(f.InputGroup, {
838
- "data-pharos-slot": "combobox-control",
839
- className: x(J.control, e),
840
- ...n
841
- });
842
- }
843
- Ge.displayName = "ComboboxControl";
844
- function Ke({ className: e, ref: n, ...r }) {
845
- let o = a(Y), s = i((e) => {
846
- o?.setAnchorElement(e), typeof n == "function" ? n(e) : n && (n.current = e);
847
- }, [o, n]);
848
- return /* @__PURE__ */ t(f.Chips, {
849
- "data-pharos-slot": "combobox-chips",
850
- className: x(J.control, J.chips, e),
851
- ref: s,
852
- ...r
853
- });
854
- }
855
- Ke.displayName = "ComboboxChips";
856
- var qe = b(J.input, {
857
- variants: { size: {
858
- sm: J.inputSizeSm,
859
- md: J.inputSizeMd,
860
- lg: J.inputSizeLg
861
- } },
862
- defaultVariants: { size: "md" }
863
- });
864
- function Je({ size: e, inset: n = !1, className: r, ...i }) {
865
- let a = e ?? "md";
866
- return /* @__PURE__ */ t(f.Input, {
867
- "data-pharos-slot": "combobox-input",
868
- "data-pharos-size": a,
869
- className: x(n ? x(J.input, J.chipsInput) : qe({ size: a }), r),
870
- ...i
871
- });
872
- }
873
- Je.displayName = "ComboboxInput";
874
- function Ye({ className: e, children: n, ...r }) {
875
- return /* @__PURE__ */ t(f.Trigger, {
876
- "data-pharos-slot": "combobox-trigger",
877
- className: x(J.trigger, e),
878
- ...r,
879
- children: n ?? /* @__PURE__ */ t(He, {})
880
- });
881
- }
882
- Ye.displayName = "ComboboxTrigger";
883
- function Xe({ className: e, children: n, ...r }) {
884
- return /* @__PURE__ */ t(f.Clear, {
885
- "data-pharos-slot": "combobox-clear",
886
- className: x(J.clear, e),
887
- ...r,
888
- children: n ?? /* @__PURE__ */ t(We, {})
889
- });
890
- }
891
- Xe.displayName = "ComboboxClear";
892
- function Ze({ className: e, ...n }) {
893
- return /* @__PURE__ */ t(f.Chip, {
894
- "data-pharos-slot": "combobox-chip",
895
- className: x(J.chip, e),
896
- ...n
897
- });
898
- }
899
- Ze.displayName = "ComboboxChip";
900
- function Qe({ className: e, children: n, "aria-label": r = "Remove", ...i }) {
901
- return /* @__PURE__ */ t(f.ChipRemove, {
902
- "data-pharos-slot": "combobox-chip-remove",
903
- "aria-label": r,
904
- className: x(J.chipRemove, e),
905
- ...i,
906
- children: n ?? /* @__PURE__ */ t(We, {})
907
- });
908
- }
909
- Qe.displayName = "ComboboxChipRemove";
910
- function $e({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOffset: i = 0, className: o, children: s, ...c }) {
911
- let l = a(Y)?.anchorElement ?? void 0;
912
- return /* @__PURE__ */ t(f.Portal, { children: /* @__PURE__ */ t(f.Positioner, {
913
- className: J.positioner,
914
- anchor: l,
915
- side: e,
916
- align: n,
917
- sideOffset: r,
918
- alignOffset: i,
919
- children: /* @__PURE__ */ t(f.Popup, {
920
- "data-pharos-slot": "combobox-content",
921
- className: x(J.content, o),
922
- ...c,
923
- children: s
924
- })
925
- }) });
926
- }
927
- $e.displayName = "ComboboxContent";
928
- function et({ className: e, ...n }) {
929
- return /* @__PURE__ */ t(f.List, {
930
- "data-pharos-slot": "combobox-list",
931
- className: e,
932
- ...n
933
- });
934
- }
935
- et.displayName = "ComboboxList";
936
- function tt({ className: e, children: r, ...i }) {
937
- return /* @__PURE__ */ n(f.Item, {
938
- "data-pharos-slot": "combobox-item",
939
- className: x(J.item, e),
940
- ...i,
941
- children: [/* @__PURE__ */ t("span", {
942
- className: J.itemText,
943
- children: r
944
- }), /* @__PURE__ */ t(f.ItemIndicator, {
945
- className: J.itemIndicator,
946
- children: /* @__PURE__ */ t(Ue, {})
947
- })]
948
- });
949
- }
950
- tt.displayName = "ComboboxItem";
951
- function nt({ className: e, ...n }) {
952
- return /* @__PURE__ */ t(f.Empty, {
953
- "data-pharos-slot": "combobox-empty",
954
- className: x(J.empty, e),
955
- ...n
956
- });
957
- }
958
- nt.displayName = "ComboboxEmpty";
959
- function rt(e) {
960
- return /* @__PURE__ */ t(f.Group, {
961
- "data-pharos-slot": "combobox-group",
962
- ...e
963
- });
964
- }
965
- rt.displayName = "ComboboxGroup";
966
- function it({ className: e, ...n }) {
967
- return /* @__PURE__ */ t(f.GroupLabel, {
968
- "data-pharos-slot": "combobox-group-label",
969
- className: x(J.label, e),
970
- ...n
971
- });
972
- }
973
- it.displayName = "ComboboxGroupLabel";
974
- function at({ className: e, ...n }) {
975
- return /* @__PURE__ */ t(f.Separator, {
976
- "data-pharos-slot": "combobox-separator",
977
- className: x(J.separator, e),
978
- ...n
979
- });
980
- }
981
- at.displayName = "ComboboxSeparator";
982
- var X = {
983
- backdrop: "_backdrop_1pbfd_21",
984
- content: "_content_1pbfd_37",
985
- sideRight: "_sideRight_1pbfd_60",
986
- sideLeft: "_sideLeft_1pbfd_73",
987
- sideTop: "_sideTop_1pbfd_86",
988
- sideBottom: "_sideBottom_1pbfd_99",
989
- header: "_header_1pbfd_113",
990
- title: "_title_1pbfd_119",
991
- description: "_description_1pbfd_127",
992
- footer: "_footer_1pbfd_134"
993
- };
994
- //#endregion
995
- //#region src/components/Sheet.tsx
996
- function ot(e) {
997
- return /* @__PURE__ */ t(p.Root, { ...e });
998
- }
999
- ot.displayName = "Sheet";
1000
- function st(e) {
1001
- return /* @__PURE__ */ t(p.Trigger, { ...e });
1002
- }
1003
- st.displayName = "SheetTrigger";
1004
- var ct = b(X.content, {
1005
- variants: { side: {
1006
- top: X.sideTop,
1007
- right: X.sideRight,
1008
- bottom: X.sideBottom,
1009
- left: X.sideLeft
1010
- } },
1011
- defaultVariants: { side: "right" }
1012
- });
1013
- function lt({ side: e = "right", className: r, children: i, ...a }) {
1014
- return /* @__PURE__ */ n(p.Portal, { children: [/* @__PURE__ */ t(p.Backdrop, { className: X.backdrop }), /* @__PURE__ */ t(p.Popup, {
1015
- "data-pharos-slot": "sheet-content",
1016
- "data-pharos-side": e ?? "right",
1017
- className: x(ct({ side: e }), r),
1018
- ...a,
1019
- children: i
1020
- })] });
1021
- }
1022
- lt.displayName = "SheetContent";
1023
- function ut({ className: e, ...n }) {
1024
- return /* @__PURE__ */ t("div", {
1025
- "data-pharos-slot": "sheet-header",
1026
- className: x(X.header, e),
1027
- ...n
1028
- });
1029
- }
1030
- ut.displayName = "SheetHeader";
1031
- function dt({ className: e, ...n }) {
1032
- return /* @__PURE__ */ t(p.Title, {
1033
- "data-pharos-slot": "sheet-title",
1034
- className: x(X.title, e),
1035
- ...n
1036
- });
1037
- }
1038
- dt.displayName = "SheetTitle";
1039
- function ft({ className: e, ...n }) {
1040
- return /* @__PURE__ */ t(p.Description, {
1041
- "data-pharos-slot": "sheet-description",
1042
- className: x(X.description, e),
1043
- ...n
1044
- });
1045
- }
1046
- ft.displayName = "SheetDescription";
1047
- function pt({ className: e, ...n }) {
1048
- return /* @__PURE__ */ t("div", {
1049
- "data-pharos-slot": "sheet-footer",
1050
- className: x(X.footer, e),
1051
- ...n
1052
- });
1053
- }
1054
- pt.displayName = "SheetFooter";
1055
- function mt(e) {
1056
- return /* @__PURE__ */ t(p.Close, {
1057
- "data-pharos-slot": "sheet-close",
1058
- ...e
1059
- });
1060
- }
1061
- mt.displayName = "SheetClose";
1062
- var Z = {
1063
- backdrop: "_backdrop_mozml_18",
1064
- content: "_content_mozml_32",
1065
- header: "_header_mozml_75",
1066
- title: "_title_mozml_81",
1067
- description: "_description_mozml_89",
1068
- footer: "_footer_mozml_96"
1069
- };
1070
- //#endregion
1071
- //#region src/components/Dialog.tsx
1072
- function ht(e) {
1073
- return /* @__PURE__ */ t(p.Root, { ...e });
1074
- }
1075
- ht.displayName = "Dialog";
1076
- function gt(e) {
1077
- return /* @__PURE__ */ t(p.Trigger, { ...e });
1078
- }
1079
- gt.displayName = "DialogTrigger";
1080
- function _t({ className: e, children: r, ...i }) {
1081
- return /* @__PURE__ */ n(p.Portal, { children: [/* @__PURE__ */ t(p.Backdrop, { className: Z.backdrop }), /* @__PURE__ */ t(p.Popup, {
1082
- "data-pharos-slot": "dialog-content",
1083
- className: x(Z.content, e),
1084
- ...i,
1085
- children: r
1086
- })] });
1087
- }
1088
- _t.displayName = "DialogContent";
1089
- function vt({ className: e, ...n }) {
1090
- return /* @__PURE__ */ t("div", {
1091
- "data-pharos-slot": "dialog-header",
1092
- className: x(Z.header, e),
1093
- ...n
1094
- });
1095
- }
1096
- vt.displayName = "DialogHeader";
1097
- function yt({ className: e, ...n }) {
1098
- return /* @__PURE__ */ t(p.Title, {
1099
- "data-pharos-slot": "dialog-title",
1100
- className: x(Z.title, e),
1101
- ...n
1102
- });
1103
- }
1104
- yt.displayName = "DialogTitle";
1105
- function Q({ className: e, ...n }) {
1106
- return /* @__PURE__ */ t(p.Description, {
1107
- "data-pharos-slot": "dialog-description",
1108
- className: x(Z.description, e),
1109
- ...n
1110
- });
1111
- }
1112
- Q.displayName = "DialogDescription";
1113
- function bt({ className: e, ...n }) {
1114
- return /* @__PURE__ */ t("div", {
1115
- "data-pharos-slot": "dialog-footer",
1116
- className: x(Z.footer, e),
1117
- ...n
1118
- });
1119
- }
1120
- bt.displayName = "DialogFooter";
1121
- function xt(e) {
1122
- return /* @__PURE__ */ t(p.Close, {
1123
- "data-pharos-slot": "dialog-close",
1124
- ...e
1125
- });
1126
- }
1127
- xt.displayName = "DialogClose";
1128
- var $ = {
1129
- root: "_root_1v9tz_14",
1130
- indicator: "_indicator_1v9tz_65",
1131
- icon: "_icon_1v9tz_72",
1132
- iconIndeterminate: "_iconIndeterminate_1v9tz_79",
1133
- iconCheck: "_iconCheck_1v9tz_83"
1134
- };
1135
- //#endregion
1136
- //#region src/components/Checkbox.tsx
1137
- function St() {
1138
- return /* @__PURE__ */ t("svg", {
1139
- className: x($.icon, $.iconCheck),
1140
- viewBox: "0 0 24 24",
1141
- fill: "none",
1142
- stroke: "currentColor",
1143
- strokeWidth: "3",
1144
- strokeLinecap: "round",
1145
- strokeLinejoin: "round",
1146
- "aria-hidden": "true",
1147
- children: /* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" })
1148
- });
1149
- }
1150
- function Ct() {
1151
- return /* @__PURE__ */ t("svg", {
1152
- className: x($.icon, $.iconIndeterminate),
1153
- viewBox: "0 0 24 24",
1154
- fill: "none",
1155
- stroke: "currentColor",
1156
- strokeWidth: "3",
1157
- strokeLinecap: "round",
1158
- "aria-hidden": "true",
1159
- children: /* @__PURE__ */ t("path", { d: "M5 12h14" })
1160
- });
1161
- }
1162
- function wt({ className: e, ...r }) {
1163
- return /* @__PURE__ */ t(m.Root, {
1164
- "data-pharos-slot": "checkbox",
1165
- className: x($.root, e),
1166
- ...r,
1167
- children: /* @__PURE__ */ n(m.Indicator, {
1168
- className: $.indicator,
1169
- children: [/* @__PURE__ */ t(St, {}), /* @__PURE__ */ t(Ct, {})]
1170
- })
1171
- });
1172
- }
1173
- wt.displayName = "Checkbox";
1174
- var Tt = {
1175
- root: "_root_5v2er_17",
1176
- thumb: "_thumb_5v2er_72"
1177
- };
1178
- //#endregion
1179
- //#region src/components/Switch.tsx
1180
- function Et({ className: e, ...n }) {
1181
- return /* @__PURE__ */ t(h.Root, {
1182
- "data-pharos-slot": "switch",
1183
- className: x(Tt.root, e),
1184
- ...n,
1185
- children: /* @__PURE__ */ t(h.Thumb, { className: Tt.thumb })
1186
- });
1187
- }
1188
- Et.displayName = "Switch";
1189
- //#endregion
1190
- export { H as Avatar, W as AvatarFallback, ge as AvatarGroup, U as AvatarImage, A as Badge, w as Button, ue as Card, L as CardContent, I as CardDescription, R as CardFooter, P as CardHeader, F as CardTitle, wt as Checkbox, Ve as Combobox, Ze as ComboboxChip, Qe as ComboboxChipRemove, Ke as ComboboxChips, Xe as ComboboxClear, $e as ComboboxContent, Ge as ComboboxControl, nt as ComboboxEmpty, rt as ComboboxGroup, it as ComboboxGroupLabel, Je as ComboboxInput, tt as ComboboxItem, et as ComboboxList, at as ComboboxSeparator, Ye as ComboboxTrigger, ht as Dialog, xt as DialogClose, _t as DialogContent, Q as DialogDescription, bt as DialogFooter, vt as DialogHeader, yt as DialogTitle, gt as DialogTrigger, _e as DropdownMenu, ye as DropdownMenuContent, Ce as DropdownMenuGroup, be as DropdownMenuItem, Se as DropdownMenuLabel, xe as DropdownMenuSeparator, ve as DropdownMenuTrigger, ne as IconButton, ie as Input, we as Popover, ke as PopoverClose, Ee as PopoverContent, Oe as PopoverDescription, De as PopoverTitle, Te as PopoverTrigger, Ae as Select, Ie as SelectContent, Re as SelectGroup, Le as SelectItem, ze as SelectLabel, Be as SelectSeparator, Pe as SelectTrigger, Fe as SelectValue, ce as Separator, ot as Sheet, mt as SheetClose, lt as SheetContent, ft as SheetDescription, pt as SheetFooter, ut as SheetHeader, dt as SheetTitle, st as SheetTrigger, E as Spinner, Et as Switch, oe as Textarea, k as badgeVariants, C as buttonVariants, le as cardVariants, x as cn, te as iconButtonVariants, re as inputVariants, ct as sheetVariants, ee as spinnerVariants, ae as textareaVariants };
1191
-
1192
- //# sourceMappingURL=index.js.map
1
+ import { cn as e } from "./lib/cn.js";
2
+ import { Button as t, buttonVariants as n } from "./components/Button.js";
3
+ import { Spinner as r, spinnerVariants as i } from "./components/Spinner.js";
4
+ import { IconButton as a, iconButtonVariants as o } from "./components/IconButton.js";
5
+ import { Badge as s, badgeVariants as c } from "./components/Badge.js";
6
+ import { Input as l, inputVariants as u } from "./components/Input.js";
7
+ import { Textarea as d, textareaVariants as f } from "./components/Textarea.js";
8
+ import { Separator as p } from "./components/Separator.js";
9
+ import { Card as m, CardContent as h, CardDescription as g, CardFooter as _, CardHeader as v, CardTitle as y, cardVariants as b } from "./components/Card.js";
10
+ import { Avatar as x, AvatarFallback as S, AvatarGroup as C, AvatarImage as w } from "./components/Avatar.js";
11
+ import { DropdownMenu as T, DropdownMenuContent as E, DropdownMenuGroup as D, DropdownMenuItem as O, DropdownMenuLabel as k, DropdownMenuSeparator as A, DropdownMenuTrigger as j } from "./components/DropdownMenu.js";
12
+ import { Popover as M, PopoverClose as N, PopoverContent as P, PopoverDescription as F, PopoverTitle as I, PopoverTrigger as L } from "./components/Popover.js";
13
+ import { Select as R, SelectContent as z, SelectGroup as B, SelectItem as V, SelectLabel as H, SelectSeparator as U, SelectTrigger as W, SelectValue as G } from "./components/Select.js";
14
+ import { Combobox as K, ComboboxChip as q, ComboboxChipRemove as J, ComboboxChips as Y, ComboboxClear as X, ComboboxContent as Z, ComboboxControl as Q, ComboboxEmpty as $, ComboboxGroup as ee, ComboboxGroupLabel as te, ComboboxInput as ne, ComboboxItem as re, ComboboxList as ie, ComboboxSeparator as ae, ComboboxTrigger as oe } from "./components/Combobox.js";
15
+ import { Sheet as se, SheetClose as ce, SheetContent as le, SheetDescription as ue, SheetFooter as de, SheetHeader as fe, SheetTitle as pe, SheetTrigger as me, sheetVariants as he } from "./components/Sheet.js";
16
+ import { Dialog as ge, DialogClose as _e, DialogContent as ve, DialogDescription as ye, DialogFooter as be, DialogHeader as xe, DialogTitle as Se, DialogTrigger as Ce } from "./components/Dialog.js";
17
+ import { Checkbox as we } from "./components/Checkbox.js";
18
+ import { Switch as Te } from "./components/Switch.js";
19
+ import { RadioGroup as Ee, RadioGroupItem as De } from "./components/RadioGroup.js";
20
+ export { x as Avatar, S as AvatarFallback, C as AvatarGroup, w as AvatarImage, s as Badge, t as Button, m as Card, h as CardContent, g as CardDescription, _ as CardFooter, v as CardHeader, y as CardTitle, we as Checkbox, K as Combobox, q as ComboboxChip, J as ComboboxChipRemove, Y as ComboboxChips, X as ComboboxClear, Z as ComboboxContent, Q as ComboboxControl, $ as ComboboxEmpty, ee as ComboboxGroup, te as ComboboxGroupLabel, ne as ComboboxInput, re as ComboboxItem, ie as ComboboxList, ae as ComboboxSeparator, oe as ComboboxTrigger, ge as Dialog, _e as DialogClose, ve as DialogContent, ye as DialogDescription, be as DialogFooter, xe as DialogHeader, Se as DialogTitle, Ce as DialogTrigger, T as DropdownMenu, E as DropdownMenuContent, D as DropdownMenuGroup, O as DropdownMenuItem, k as DropdownMenuLabel, A as DropdownMenuSeparator, j as DropdownMenuTrigger, a as IconButton, l as Input, M as Popover, N as PopoverClose, P as PopoverContent, F as PopoverDescription, I as PopoverTitle, L as PopoverTrigger, Ee as RadioGroup, De as RadioGroupItem, R as Select, z as SelectContent, B as SelectGroup, V as SelectItem, H as SelectLabel, U as SelectSeparator, W as SelectTrigger, G as SelectValue, p as Separator, se as Sheet, ce as SheetClose, le as SheetContent, ue as SheetDescription, de as SheetFooter, fe as SheetHeader, pe as SheetTitle, me as SheetTrigger, r as Spinner, Te as Switch, d as Textarea, c as badgeVariants, n as buttonVariants, b as cardVariants, e as cn, o as iconButtonVariants, u as inputVariants, he as sheetVariants, i as spinnerVariants, f as textareaVariants };