@plyaz/ui 0.7.1 → 0.7.2

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 (145) hide show
  1. package/dist/client.cjs.js +73 -31
  2. package/dist/client.es.js +18380 -4034
  3. package/dist/{constant-BgZiatEy.js → index-BFruSSsn.js} +1162 -544
  4. package/dist/index-Cs64egIu.cjs +37 -0
  5. package/dist/index.cjs.js +7 -13
  6. package/dist/index.es.js +792 -583
  7. package/dist/types/components/Accordion/Accordion.d.ts +8 -0
  8. package/dist/types/components/Accordion/Accordion.d.ts.map +1 -0
  9. package/dist/types/components/Accordion/Accordion.stories.d.ts +44 -0
  10. package/dist/types/components/Accordion/Accordion.stories.d.ts.map +1 -0
  11. package/dist/types/components/Alert/Alert.d.ts +10 -0
  12. package/dist/types/components/Alert/Alert.d.ts.map +1 -0
  13. package/dist/types/components/Alert/Alert.stories.d.ts +33 -0
  14. package/dist/types/components/Alert/Alert.stories.d.ts.map +1 -0
  15. package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -1
  16. package/dist/types/components/Avatar/Avatar.d.ts +7 -0
  17. package/dist/types/components/Avatar/Avatar.d.ts.map +1 -0
  18. package/dist/types/components/Avatar/Avatar.stories.d.ts +22 -0
  19. package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -0
  20. package/dist/types/components/Badge/Badge.stories.d.ts +7 -12
  21. package/dist/types/components/Badge/Badge.stories.d.ts.map +1 -1
  22. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +12 -0
  23. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  24. package/dist/types/components/Breadcrumb/Breadcrumb.stories.d.ts +27 -0
  25. package/dist/types/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -0
  26. package/dist/types/components/Calendar/Calendar.d.ts +9 -0
  27. package/dist/types/components/Calendar/Calendar.d.ts.map +1 -0
  28. package/dist/types/components/Carousel/Carousel.d.ts +20 -0
  29. package/dist/types/components/Carousel/Carousel.d.ts.map +1 -0
  30. package/dist/types/components/Carousel/Carousel.stories.d.ts +18 -0
  31. package/dist/types/components/Carousel/Carousel.stories.d.ts.map +1 -0
  32. package/dist/types/components/Checkbox/Checkbox.d.ts +5 -0
  33. package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -0
  34. package/dist/types/components/Checkbox/Checkbox.stories.d.ts +18 -0
  35. package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
  36. package/dist/types/components/Combobox/Combobox.d.ts +24 -0
  37. package/dist/types/components/Combobox/Combobox.d.ts.map +1 -0
  38. package/dist/types/components/Combobox/Combobox.stories.d.ts +17 -0
  39. package/dist/types/components/Combobox/Combobox.stories.d.ts.map +1 -0
  40. package/dist/types/components/Command/Command.d.ts +19 -0
  41. package/dist/types/components/Command/Command.d.ts.map +1 -0
  42. package/dist/types/components/Command/Command.stories.d.ts +42 -0
  43. package/dist/types/components/Command/Command.stories.d.ts.map +1 -0
  44. package/dist/types/components/ContextMenu/ContextMenu.d.ts +26 -0
  45. package/dist/types/components/ContextMenu/ContextMenu.d.ts.map +1 -0
  46. package/dist/types/components/ContextMenu/ContextMenu.stories.d.ts +41 -0
  47. package/dist/types/components/ContextMenu/ContextMenu.stories.d.ts.map +1 -0
  48. package/dist/types/components/Dialog/Dialog.d.ts +16 -0
  49. package/dist/types/components/Dialog/Dialog.d.ts.map +1 -0
  50. package/dist/types/components/Dialog/Dialog.stories.d.ts +26 -0
  51. package/dist/types/components/Dialog/Dialog.stories.d.ts.map +1 -0
  52. package/dist/types/components/Drawer/Drawer.d.ts +14 -0
  53. package/dist/types/components/Drawer/Drawer.d.ts.map +1 -0
  54. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +26 -0
  55. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  56. package/dist/types/components/DropdownMenu/DropdownMenu.stories.d.ts +40 -0
  57. package/dist/types/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -0
  58. package/dist/types/components/HoverCard/HoverCard.d.ts +7 -0
  59. package/dist/types/components/HoverCard/HoverCard.d.ts.map +1 -0
  60. package/dist/types/components/HoverCard/HoverCard.stories.d.ts +29 -0
  61. package/dist/types/components/HoverCard/HoverCard.stories.d.ts.map +1 -0
  62. package/dist/types/components/InputOTP/InputOTP.d.ts +12 -0
  63. package/dist/types/components/InputOTP/InputOTP.d.ts.map +1 -0
  64. package/dist/types/components/Label/Label.d.ts +5 -0
  65. package/dist/types/components/Label/Label.d.ts.map +1 -0
  66. package/dist/types/components/Label/Label.stories.d.ts +28 -0
  67. package/dist/types/components/Label/Label.stories.d.ts.map +1 -0
  68. package/dist/types/components/MenuBar/Menubar.stories.d.ts +30 -6
  69. package/dist/types/components/MenuBar/Menubar.stories.d.ts.map +1 -1
  70. package/dist/types/components/Pagination/Pagination.d.ts +14 -0
  71. package/dist/types/components/Pagination/Pagination.d.ts.map +1 -0
  72. package/dist/types/components/Pagination/Pagination.stories.d.ts +22 -0
  73. package/dist/types/components/Pagination/Pagination.stories.d.ts.map +1 -0
  74. package/dist/types/components/Popover/Popover.d.ts +8 -0
  75. package/dist/types/components/Popover/Popover.d.ts.map +1 -0
  76. package/dist/types/components/Popover/Popover.stories.d.ts +23 -0
  77. package/dist/types/components/Popover/Popover.stories.d.ts.map +1 -0
  78. package/dist/types/components/Progress/Progress.d.ts +5 -0
  79. package/dist/types/components/Progress/Progress.d.ts.map +1 -0
  80. package/dist/types/components/Progress/Progress.stories.d.ts +32 -0
  81. package/dist/types/components/Progress/Progress.stories.d.ts.map +1 -0
  82. package/dist/types/components/RadioGroup/RadioGroup.d.ts +6 -0
  83. package/dist/types/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  84. package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts +25 -0
  85. package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
  86. package/dist/types/components/ScrollArea/ScrollArea.d.ts +6 -0
  87. package/dist/types/components/ScrollArea/ScrollArea.d.ts.map +1 -0
  88. package/dist/types/components/ScrollArea/ScrollArea.stories.d.ts +42 -0
  89. package/dist/types/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -0
  90. package/dist/types/components/Separator/Separator.d.ts +5 -0
  91. package/dist/types/components/Separator/Separator.d.ts.map +1 -0
  92. package/dist/types/components/Separator/Separator.stories.d.ts +22 -0
  93. package/dist/types/components/Separator/Separator.stories.d.ts.map +1 -0
  94. package/dist/types/components/Sheet/Sheet.d.ts +14 -0
  95. package/dist/types/components/Sheet/Sheet.d.ts.map +1 -0
  96. package/dist/types/components/Sheet/Sheet.stories.d.ts +17 -0
  97. package/dist/types/components/Sheet/Sheet.stories.d.ts.map +1 -0
  98. package/dist/types/components/Skeleton/Skeleton.d.ts +4 -0
  99. package/dist/types/components/Skeleton/Skeleton.d.ts.map +1 -0
  100. package/dist/types/components/Skeleton/Skeleton.stories.d.ts +21 -0
  101. package/dist/types/components/Skeleton/Skeleton.stories.d.ts.map +1 -0
  102. package/dist/types/components/Slider/Slider.d.ts +5 -0
  103. package/dist/types/components/Slider/Slider.d.ts.map +1 -0
  104. package/dist/types/components/Slider/Slider.stories.d.ts +18 -0
  105. package/dist/types/components/Slider/Slider.stories.d.ts.map +1 -0
  106. package/dist/types/components/Switch/Switch.d.ts +5 -0
  107. package/dist/types/components/Switch/Switch.d.ts.map +1 -0
  108. package/dist/types/components/Switch/Switch.stories.d.ts +27 -0
  109. package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -0
  110. package/dist/types/components/Table/Table.d.ts +11 -0
  111. package/dist/types/components/Table/Table.d.ts.map +1 -0
  112. package/dist/types/components/Table/Table.stories.d.ts +19 -0
  113. package/dist/types/components/Table/Table.stories.d.ts.map +1 -0
  114. package/dist/types/components/Tabs/Tabs.d.ts +8 -0
  115. package/dist/types/components/Tabs/Tabs.d.ts.map +1 -0
  116. package/dist/types/components/Tabs/Tabs.stories.d.ts +28 -0
  117. package/dist/types/components/Tabs/Tabs.stories.d.ts.map +1 -0
  118. package/dist/types/components/Textarea/Textarea.d.ts +4 -0
  119. package/dist/types/components/Textarea/Textarea.d.ts.map +1 -0
  120. package/dist/types/components/Textarea/Textarea.stories.d.ts +41 -0
  121. package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -0
  122. package/dist/types/components/Toaster/Toaster.d.ts +4 -0
  123. package/dist/types/components/Toaster/Toaster.d.ts.map +1 -0
  124. package/dist/types/components/Toaster/Toaster.stories.d.ts +15 -0
  125. package/dist/types/components/Toaster/Toaster.stories.d.ts.map +1 -0
  126. package/dist/types/components/Toggle/Toggle.d.ts +7 -0
  127. package/dist/types/components/Toggle/Toggle.d.ts.map +1 -0
  128. package/dist/types/components/Toggle/Toggle.stories.d.ts +36 -0
  129. package/dist/types/components/Toggle/Toggle.stories.d.ts.map +1 -0
  130. package/dist/types/components/Tooltip/Tooltip.d.ts +8 -0
  131. package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -0
  132. package/dist/types/components/Tooltip/Tooltip.stories.d.ts +27 -0
  133. package/dist/types/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
  134. package/dist/types/components/client.d.ts +25 -0
  135. package/dist/types/components/client.d.ts.map +1 -1
  136. package/dist/types/components/index.d.ts +10 -0
  137. package/dist/types/components/index.d.ts.map +1 -1
  138. package/dist/types/constants/constant.d.ts +3 -0
  139. package/dist/types/constants/constant.d.ts.map +1 -1
  140. package/dist/types/constants/toggle-variants.d.ts +5 -0
  141. package/dist/types/constants/toggle-variants.d.ts.map +1 -0
  142. package/dist/ui.css +1 -1
  143. package/package.json +29 -2
  144. package/styles/main.css +65 -28
  145. package/dist/constant-B-tpIxtm.cjs +0 -31
package/dist/index.es.js CHANGED
@@ -1,84 +1,83 @@
1
- var $ = Object.defineProperty;
2
- var V = (t, e, a) => e in t ? $(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var v = (t, e, a) => V(t, typeof e != "symbol" ? e + "" : e, a);
4
- import { jsx as s, jsxs as x } from "react/jsx-runtime";
5
- import { c as i, G as E, A as _, J as I, R as G, C as K, V as U, T as q, S as W, b as H } from "./constant-BgZiatEy.js";
1
+ import { c as n, G as b, A as x, J as v, R as S, C as k, V as C, T as I, S as R, f as A, a as M, b as B, d as L, P as h, e as D } from "./index-BFruSSsn.js";
2
+ import { g as ht, B as Nt } from "./index-BFruSSsn.js";
3
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
6
4
  import "clsx";
7
- import { Slot as O } from "@radix-ui/react-slot";
8
- import J, { memo as Q } from "react";
9
- import * as u from "@radix-ui/react-select";
10
- import { CheckIcon as Z, ChevronDownIcon as A, ChevronUpIcon as X } from "lucide-react";
11
- import { useTranslations as R } from "next-intl";
12
- const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @__PURE__ */ s(e, { className: a, ...r, "data-testid": "box", children: t }), Ee = ({ className: t = "", children: e, element: a, ...r }) => /* @__PURE__ */ s(
13
- b,
5
+ import { Slot as N } from "@radix-ui/react-slot";
6
+ import * as l from "@radix-ui/react-select";
7
+ import { CheckIcon as V, ChevronDownIcon as w, ChevronUpIcon as j, ChevronRight as G, MoreHorizontal as H, ChevronLeftIcon as U, ChevronRightIcon as F, MoreHorizontalIcon as $ } from "lucide-react";
8
+ import { useTranslations as y } from "next-intl";
9
+ import * as P from "react";
10
+ import q from "react";
11
+ const m = ({ children: e, element: t = "div", className: r = "", ...o }) => /* @__PURE__ */ a(t, { className: r, ...o, "data-testid": "box", children: e }), xe = ({ className: e = "", children: t, element: r, ...o }) => /* @__PURE__ */ a(
12
+ m,
14
13
  {
15
- element: a,
16
- className: i("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", t),
17
- ...r,
18
- children: e
14
+ element: r,
15
+ className: n("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", e),
16
+ ...o,
17
+ children: t
19
18
  }
20
- ), Y = {
19
+ ), W = {
21
20
  row: "flex-row",
22
21
  col: "flex-col",
23
22
  row_reverse: "flex-row-reverse",
24
23
  col_reverse: "flex-col-reverse"
25
- }, ee = {
24
+ }, Z = {
26
25
  wrap: "flex-wrap",
27
26
  nowrap: "flex-nowrap",
28
27
  wrap_reverse: "flex-wrap-reverse"
29
- }, _e = ({
30
- children: t,
31
- gap: e,
32
- direction: a,
33
- justify: r,
34
- align: n,
35
- wrap: l,
36
- className: o = "",
37
- element: d,
38
- ...m
39
- }) => /* @__PURE__ */ s(
40
- b,
28
+ }, ve = ({
29
+ children: e,
30
+ gap: t,
31
+ direction: r,
32
+ justify: o,
33
+ align: s,
34
+ wrap: i,
35
+ className: d = "",
36
+ element: c,
37
+ ...p
38
+ }) => /* @__PURE__ */ a(
39
+ m,
41
40
  {
42
- element: d,
43
- className: i(
41
+ element: c,
42
+ className: n(
44
43
  "flex",
45
- a && Y[a],
46
- r && I[r],
47
- n && _[n],
48
- l && ee[l],
49
- e && E[e],
50
- o
44
+ r && W[r],
45
+ o && v[o],
46
+ s && x[s],
47
+ i && Z[i],
48
+ t && b[t],
49
+ d
51
50
  ),
52
- ...m,
53
- children: t
51
+ ...p,
52
+ children: e
54
53
  }
55
- ), Ie = ({
56
- children: t,
57
- className: e,
58
- cols: a,
59
- rows: r,
60
- gap: n,
61
- justify: l,
62
- align: o,
63
- element: d,
64
- ...m
65
- }) => /* @__PURE__ */ s(
66
- b,
54
+ ), he = ({
55
+ children: e,
56
+ className: t,
57
+ cols: r,
58
+ rows: o,
59
+ gap: s,
60
+ justify: i,
61
+ align: d,
62
+ element: c,
63
+ ...p
64
+ }) => /* @__PURE__ */ a(
65
+ m,
67
66
  {
68
- element: d,
69
- className: i(
67
+ element: c,
68
+ className: n(
70
69
  "grid",
71
- a && K[a],
72
- r && G[r],
73
- n && E[n],
74
- l && I[l],
75
- o && _[o],
76
- e
70
+ r && k[r],
71
+ o && S[o],
72
+ s && b[s],
73
+ i && v[i],
74
+ d && x[d],
75
+ t
77
76
  ),
78
- ...m,
79
- children: t
77
+ ...p,
78
+ children: e
80
79
  }
81
- ), te = {
80
+ ), J = {
82
81
  xs: "xs",
83
82
  sm: "sm",
84
83
  base: "base",
@@ -87,101 +86,84 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
87
86
  "2xl": "2xl",
88
87
  "3xl": "3xl",
89
88
  "4xl": "4xl"
90
- }, Ae = ({ children: t, element: e, className: a, size: r, ...n }) => /* @__PURE__ */ s(
91
- h,
89
+ }, Ne = ({ children: e, element: t, className: r, size: o, ...s }) => /* @__PURE__ */ a(
90
+ f,
92
91
  {
93
- className: a,
94
- element: e,
95
- size: te[r],
92
+ className: r,
93
+ element: t,
94
+ size: J[o],
96
95
  variant: "heading",
97
96
  weight: "medium",
98
- ...n,
99
- children: t
97
+ ...s,
98
+ children: e
100
99
  }
101
- ), Re = ({ children: t, className: e, href: a, ...r }) => /* @__PURE__ */ s(
100
+ ), we = ({ children: e, className: t, href: r, ...o }) => /* @__PURE__ */ a(
102
101
  "a",
103
102
  {
104
103
  "data-testid": "link",
105
- href: a,
104
+ href: r,
106
105
  rel: "noopener noreferrer",
107
106
  target: "_blank",
108
- className: i(
107
+ className: n(
109
108
  "focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",
110
- e
109
+ t
111
110
  ),
112
- ...r,
113
- children: t
111
+ ...o,
112
+ children: e
114
113
  }
115
- ), ae = {
114
+ ), O = {
116
115
  xs: "xs",
117
116
  sm: "sm",
118
117
  base: "base",
119
118
  lg: "lg"
120
- }, Te = ({ children: t, className: e, size: a, ...r }) => /* @__PURE__ */ s(
121
- h,
119
+ }, ye = ({ children: e, className: t, size: r, ...o }) => /* @__PURE__ */ a(
120
+ f,
122
121
  {
123
- className: e,
122
+ className: t,
124
123
  element: "p",
125
- size: ae[a],
124
+ size: O[r],
126
125
  variant: "body",
127
126
  weight: "normal",
128
- ...r,
129
- children: t
127
+ ...o,
128
+ children: e
130
129
  }
131
- ), ze = ({ className: t = "", children: e, ...a }) => /* @__PURE__ */ s(b, { element: "section", className: t, ...a, children: e }), Me = ({
130
+ ), Pe = ({ className: e = "", children: t, ...r }) => /* @__PURE__ */ a(m, { element: "section", className: e, ...r, children: t }), Ee = ({
131
+ children: e,
132
+ direction: t = "horizontal",
133
+ spacing: r = "space-x-2",
134
+ element: o,
135
+ className: s,
136
+ ...i
137
+ }) => /* @__PURE__ */ a(m, { className: n("flex", t === "vertical" ? "flex-col" : "flex-row", r, s), element: o, ...i, children: e }), f = ({
138
+ className: e,
132
139
  children: t,
133
- direction: e = "horizontal",
134
- spacing: a = "space-x-2",
135
140
  element: r,
136
- className: n,
137
- ...l
138
- }) => /* @__PURE__ */ s(b, { className: i("flex", e === "vertical" ? "flex-col" : "flex-row", a, n), element: r, ...l, children: t }), h = ({
139
- className: t,
140
- children: e,
141
- element: a,
142
- weight: r,
143
- variant: n,
144
- size: l,
145
- ...o
146
- }) => /* @__PURE__ */ s(
147
- a,
141
+ weight: o,
142
+ variant: s,
143
+ size: i,
144
+ ...d
145
+ }) => /* @__PURE__ */ a(
146
+ r,
148
147
  {
149
148
  "data-testid": "text",
150
- className: i(
149
+ className: n(
151
150
  "font-normal text-base",
152
- l && W[l],
153
- r && q[r],
154
- n && U[n],
155
- t
151
+ i && R[i],
152
+ o && I[o],
153
+ s && C[s],
154
+ e
156
155
  ),
157
- ...o,
158
- children: e
156
+ ...d,
157
+ children: t
159
158
  }
160
159
  );
161
- function De({
162
- className: t,
163
- variant: e,
164
- size: a,
165
- asChild: r = !1,
166
- ...n
167
- }) {
168
- return /* @__PURE__ */ s(
169
- r ? O : "button",
170
- {
171
- "data-slot": "button",
172
- className: i(H({ variant: e, size: a, className: t })),
173
- ...n,
174
- "data-testid": "button"
175
- }
176
- );
177
- }
178
- function Fe({ className: t, type: e, ...a }) {
179
- return /* @__PURE__ */ s(
160
+ function Te({ className: e, type: t, ...r }) {
161
+ return /* @__PURE__ */ a(
180
162
  "input",
181
163
  {
182
- type: e,
164
+ type: t,
183
165
  "data-slot": "input",
184
- className: i(
166
+ className: n(
185
167
  `
186
168
  flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
187
169
  px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
@@ -203,75 +185,34 @@ function Fe({ className: t, type: e, ...a }) {
203
185
  aria-invalid:border-destructive aria-invalid:ring-destructive/20
204
186
  dark:aria-invalid:ring-destructive/40
205
187
  `,
206
- t
188
+ e
207
189
  ),
208
- ...a,
190
+ ...r,
209
191
  "data-testid": "input"
210
192
  }
211
193
  );
212
194
  }
213
- const re = 10, ne = Q(
214
- ({
215
- children: t,
216
- className: e = "",
217
- colors: a = ["#FF0080", "#7928CA", "#0070F3", "#38bdf8"],
218
- speed: r = 1
219
- }) => {
220
- const n = {
221
- backgroundImage: `linear-gradient(135deg, ${a.join(", ")}, ${a[0]})`,
222
- WebkitBackgroundClip: "text",
223
- WebkitTextFillColor: "transparent",
224
- animationDuration: `${re / r}s`
225
- };
226
- return /* @__PURE__ */ x(
227
- "span",
228
- {
229
- className: `
230
- relative inline-block
231
- ${e}
232
- `,
233
- "data-testid": "auroraText",
234
- children: [
235
- /* @__PURE__ */ s("span", { className: "sr-only", children: t }),
236
- /* @__PURE__ */ s(
237
- "span",
238
- {
239
- className: `
240
- relative animate-aurora bg-clip-text text-transparent
241
- bg-[length:200%_auto]
242
- `,
243
- style: n,
244
- "aria-hidden": "true",
245
- children: t
246
- }
247
- )
248
- ]
249
- }
250
- );
251
- }
252
- );
253
- ne.displayName = "AuroraText";
254
- function se({ ...t }) {
255
- return /* @__PURE__ */ s(u.Root, { "data-slot": "select", ...t });
195
+ function X({ ...e }) {
196
+ return /* @__PURE__ */ a(l.Root, { "data-slot": "select", ...e });
256
197
  }
257
- function Ce({ ...t }) {
258
- return /* @__PURE__ */ s(u.Group, { "data-slot": "select-group", ...t });
198
+ function _e({ ...e }) {
199
+ return /* @__PURE__ */ a(l.Group, { "data-slot": "select-group", ...e });
259
200
  }
260
- function le({ ...t }) {
261
- return /* @__PURE__ */ s(u.Value, { "data-slot": "select-value", ...t });
201
+ function Y({ ...e }) {
202
+ return /* @__PURE__ */ a(l.Value, { "data-slot": "select-value", ...e });
262
203
  }
263
- function oe({
264
- className: t,
265
- size: e = "default",
266
- children: a,
267
- ...r
204
+ function K({
205
+ className: e,
206
+ size: t = "default",
207
+ children: r,
208
+ ...o
268
209
  }) {
269
- return /* @__PURE__ */ x(
270
- u.Trigger,
210
+ return /* @__PURE__ */ u(
211
+ l.Trigger,
271
212
  {
272
213
  "data-slot": "select-trigger",
273
- "data-size": e,
274
- className: i(
214
+ "data-size": t,
215
+ className: n(
275
216
  `
276
217
  flex w-fit items-center justify-between gap-2 rounded-md border
277
218
  border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
@@ -293,27 +234,27 @@ function oe({
293
234
  [&_svg:not([class*='size-'])]:size-4
294
235
  [&_svg:not([class*='text-'])]:text-muted-foreground
295
236
  `,
296
- t
237
+ e
297
238
  ),
298
- ...r,
239
+ ...o,
299
240
  children: [
300
- a,
301
- /* @__PURE__ */ s(u.Icon, { asChild: !0, children: /* @__PURE__ */ s(A, { className: "size-4 opacity-50" }) })
241
+ r,
242
+ /* @__PURE__ */ a(l.Icon, { asChild: !0, children: /* @__PURE__ */ a(w, { className: "size-4 opacity-50" }) })
302
243
  ]
303
244
  }
304
245
  );
305
246
  }
306
- function ie({
307
- className: t,
308
- children: e,
309
- position: a = "popper",
310
- ...r
247
+ function Q({
248
+ className: e,
249
+ children: t,
250
+ position: r = "popper",
251
+ ...o
311
252
  }) {
312
- return /* @__PURE__ */ s(u.Portal, { "data-testid": "select", children: /* @__PURE__ */ x(
313
- u.Content,
253
+ return /* @__PURE__ */ a(l.Portal, { "data-testid": "select", children: /* @__PURE__ */ u(
254
+ l.Content,
314
255
  {
315
256
  "data-slot": "select-content",
316
- className: i(
257
+ className: n(
317
258
  `
318
259
  relative z-50 max-h-(--radix-select-content-available-height)
319
260
  min-w-[8rem] origin-(--radix-select-content-transform-origin)
@@ -328,56 +269,56 @@ function ie({
328
269
  data-[state=open]:animate-in data-[state=open]:fade-in-0
329
270
  data-[state=open]:zoom-in-95
330
271
  `,
331
- a === "popper" && `
272
+ r === "popper" && `
332
273
  data-[side=bottom]:translate-y-1
333
274
  data-[side=left]:-translate-x-1
334
275
  data-[side=right]:translate-x-1
335
276
  data-[side=top]:-translate-y-1
336
277
  `,
337
- t
278
+ e
338
279
  ),
339
- position: a,
340
- ...r,
280
+ position: r,
281
+ ...o,
341
282
  children: [
342
- /* @__PURE__ */ s(ue, {}),
343
- /* @__PURE__ */ s(
344
- u.Viewport,
283
+ /* @__PURE__ */ a(te, {}),
284
+ /* @__PURE__ */ a(
285
+ l.Viewport,
345
286
  {
346
- className: i(
287
+ className: n(
347
288
  "p-1",
348
- a === "popper" && `
289
+ r === "popper" && `
349
290
  h-[var(--radix-select-trigger-height)] w-full
350
291
  min-w-[var(--radix-select-trigger-width)] scroll-my-1
351
292
  `
352
293
  ),
353
- children: e
294
+ children: t
354
295
  }
355
296
  ),
356
- /* @__PURE__ */ s(de, {})
297
+ /* @__PURE__ */ a(ae, {})
357
298
  ]
358
299
  }
359
300
  ) });
360
301
  }
361
- function je({ className: t, ...e }) {
362
- return /* @__PURE__ */ s(
363
- u.Label,
302
+ function ze({ className: e, ...t }) {
303
+ return /* @__PURE__ */ a(
304
+ l.Label,
364
305
  {
365
306
  "data-slot": "select-label",
366
- className: i("px-2 py-1.5 text-xs text-muted-foreground", t),
367
- ...e
307
+ className: n("px-2 py-1.5 text-xs text-muted-foreground", e),
308
+ ...t
368
309
  }
369
310
  );
370
311
  }
371
- function ce({
372
- className: t,
373
- children: e,
374
- ...a
312
+ function ee({
313
+ className: e,
314
+ children: t,
315
+ ...r
375
316
  }) {
376
- return /* @__PURE__ */ x(
377
- u.Item,
317
+ return /* @__PURE__ */ u(
318
+ l.Item,
378
319
  {
379
320
  "data-slot": "select-item",
380
- className: i(
321
+ className: n(
381
322
  `
382
323
  relative flex w-full cursor-default items-center gap-2 rounded-sm
383
324
  py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
@@ -388,417 +329,685 @@ function ce({
388
329
  [&_svg:not([class*='text-'])]:text-muted-foreground
389
330
  *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
390
331
  `,
391
- t
332
+ e
392
333
  ),
393
- ...a,
334
+ ...r,
394
335
  children: [
395
- /* @__PURE__ */ s("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ s(u.ItemIndicator, { children: /* @__PURE__ */ s(Z, { className: "size-4" }) }) }),
396
- /* @__PURE__ */ s(u.ItemText, { children: e })
336
+ /* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(l.ItemIndicator, { children: /* @__PURE__ */ a(V, { className: "size-4" }) }) }),
337
+ /* @__PURE__ */ a(l.ItemText, { children: t })
397
338
  ]
398
339
  }
399
340
  );
400
341
  }
401
- function Be({
402
- className: t,
403
- ...e
342
+ function Se({
343
+ className: e,
344
+ ...t
404
345
  }) {
405
- return /* @__PURE__ */ s(
406
- u.Separator,
346
+ return /* @__PURE__ */ a(
347
+ l.Separator,
407
348
  {
408
349
  "data-slot": "select-separator",
409
- className: i("pointer-events-none -mx-1 my-1 h-px bg-border", t),
410
- ...e
350
+ className: n("pointer-events-none -mx-1 my-1 h-px bg-border", e),
351
+ ...t
411
352
  }
412
353
  );
413
354
  }
414
- function ue({
415
- className: t,
416
- ...e
355
+ function te({
356
+ className: e,
357
+ ...t
417
358
  }) {
418
- return /* @__PURE__ */ s(
419
- u.ScrollUpButton,
359
+ return /* @__PURE__ */ a(
360
+ l.ScrollUpButton,
420
361
  {
421
362
  "data-slot": "select-scroll-up-button",
422
- className: i("flex cursor-default items-center justify-center py-1", t),
423
- ...e,
424
- children: /* @__PURE__ */ s(X, { className: "size-4" })
363
+ className: n("flex cursor-default items-center justify-center py-1", e),
364
+ ...t,
365
+ children: /* @__PURE__ */ a(j, { className: "size-4" })
425
366
  }
426
367
  );
427
368
  }
428
- function de({
429
- className: t,
430
- ...e
369
+ function ae({
370
+ className: e,
371
+ ...t
431
372
  }) {
432
- return /* @__PURE__ */ s(
433
- u.ScrollDownButton,
373
+ return /* @__PURE__ */ a(
374
+ l.ScrollDownButton,
434
375
  {
435
376
  "data-slot": "select-scroll-down-button",
436
- className: i("flex cursor-default items-center justify-center py-1", t),
437
- ...e,
438
- children: /* @__PURE__ */ s(A, { className: "size-4" })
377
+ className: n("flex cursor-default items-center justify-center py-1", e),
378
+ ...t,
379
+ children: /* @__PURE__ */ a(w, { className: "size-4" })
439
380
  }
440
381
  );
441
382
  }
442
- const $e = ({
443
- translationKey: t,
444
- translationOptions: e,
445
- namespace: a,
446
- ...r
383
+ const ke = ({
384
+ translationKey: e,
385
+ translationOptions: t,
386
+ namespace: r,
387
+ ...o
447
388
  }) => {
448
- const l = R(a)(
449
- t,
450
- e == null ? void 0 : e.args
451
- );
452
- return /* @__PURE__ */ s(h, { ...r, children: l });
453
- }, Ve = ({
454
- translationKey: t,
455
- translationOptions: e,
456
- namespace: a,
457
- className: r,
458
- tag: n = "div"
389
+ const i = y(r)(
390
+ e,
391
+ t == null ? void 0 : t.args
392
+ );
393
+ return /* @__PURE__ */ a(f, { ...o, children: i });
394
+ }, Ce = ({
395
+ translationKey: e,
396
+ translationOptions: t,
397
+ namespace: r,
398
+ className: o,
399
+ tag: s = "div"
459
400
  }) => {
460
- const o = R(a)(
461
- t,
462
- e == null ? void 0 : e.args
401
+ const d = y(r)(
402
+ e,
403
+ t == null ? void 0 : t.args
463
404
  );
464
- return J.createElement(n, { className: r, "data-testid": "translated-html" }, o);
465
- };
466
- var pe = Object.defineProperty, c = (t, e) => pe(t, "name", { value: e, configurable: !0 }), y = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
467
- function P(t, e) {
468
- return `${t}:${JSON.stringify(e ?? {})}`;
469
- }
470
- c(P, "getFormatterKey");
471
- function T(t) {
472
- const e = typeof t == "string" || typeof t == "number" ? new Date(t) : t;
473
- return e instanceof Date && !Number.isNaN(e.getTime()) ? e : null;
474
- }
475
- c(T, "parseDate");
476
- function z(t, e = "en", a) {
477
- var l;
478
- const r = T(t);
479
- if (!r)
480
- return "";
481
- const n = P(e, a);
482
- return y.has(n) || y.set(n, new Intl.DateTimeFormat(e, a)), ((l = y.get(n)) == null ? void 0 : l.format(r)) ?? "";
483
- }
484
- c(z, "formatDate");
485
- function M(t, e = "en", a) {
486
- var n;
487
- if (typeof t != "number" || Number.isNaN(t))
488
- return "";
489
- const r = P(e, a);
490
- return L.has(r) || L.set(r, new Intl.NumberFormat(e, a)), ((n = L.get(r)) == null ? void 0 : n.format(t)) ?? "";
491
- }
492
- c(M, "formatNumber");
493
- var w = {
494
- defaultLocale: "en",
495
- supportedLocales: ["en", "es", "fr", "it", "pt-BR", "pt-PT"],
496
- fallbackLocale: "en"
497
- };
498
- function fe() {
499
- return w.supportedLocales;
500
- }
501
- c(fe, "getSupportedLanguages");
502
- function me() {
503
- return w.defaultLocale;
504
- }
505
- c(me, "getDefaultLanguage");
506
- function ge() {
507
- return w.fallbackLocale;
508
- }
509
- c(ge, "getFallbackLanguage");
510
- function xe(t) {
511
- return w.supportedLocales.includes(t);
512
- }
513
- c(xe, "isSupportedLanguage");
514
- var f = /* @__PURE__ */ new Map();
515
- function be({
516
- value: t,
517
- forms: e,
518
- lang: a,
519
- type: r = "cardinal"
520
- }) {
521
- if (!F(t, e))
522
- return "";
523
- if (t === 0 && e.zero)
524
- return k(e.zero, t);
525
- const l = C(a, r).select(t), o = D(e, l) ?? e.other ?? Object.values(e)[0];
526
- return o ? k(o, t) : "";
527
- }
528
- c(be, "pluralize");
529
- function S(t, e) {
530
- return `${t}:${e}`;
531
- }
532
- c(S, "getPluralRulesKey");
533
- var he = /{count}|#/g;
534
- function D(t, e) {
535
- switch (e) {
536
- case "zero":
537
- return t.zero;
538
- case "one":
539
- return t.one;
540
- case "two":
541
- return t.two;
542
- case "few":
543
- return t.few;
544
- case "many":
545
- return t.many;
546
- case "other":
547
- return t.other;
548
- default:
549
- return;
550
- }
551
- }
552
- c(D, "selectTemplate");
553
- function F(t, e) {
554
- return typeof t == "number" && e && typeof e == "object";
555
- }
556
- c(F, "isValidInput");
557
- function k(t, e) {
558
- return t.replaceAll(he, e.toString());
559
- }
560
- c(k, "replacePlaceholders");
561
- function C(t, e) {
562
- const a = S(t, e);
563
- if (!f.has(a))
564
- try {
565
- f.set(a, new Intl.PluralRules(t, { type: e }));
566
- } catch {
567
- return N(a, e);
568
- }
569
- return f.get(a) ?? N(a, e);
570
- }
571
- c(C, "getPluralRules");
572
- function N(t, e) {
573
- const a = S("en", e);
574
- f.has(a) || f.set(a, new Intl.PluralRules("en", { type: e }));
575
- const r = f.get(a) ?? N(a, e);
576
- return f.set(t, r), r;
577
- }
578
- c(N, "getFallbackPluralRules");
579
- var p;
580
- p = class {
581
- constructor() {
582
- v(this, "fallbackLocale");
583
- this.fallbackLocale = "en";
584
- }
585
- /**
586
- * Get the singleton instance of LocaleDetector.
587
- * @returns {LocaleDetector} The singleton instance.
588
- */
589
- static getInstance() {
590
- return p.instance || (p.instance = new p()), p.instance;
591
- }
592
- /**
593
- * Detect locale using server-side request or client-side settings.
594
- * @param {any} [request] - Optional server request object.
595
- * @returns {string} Detected locale string.
596
- */
597
- detectLocale(e) {
598
- return e ? this.detectFromRequest(e) : this.fallbackLocale;
599
- }
600
- /**
601
- * Detect locale from a server request (query, headers, cookies).
602
- * @param {any} request - Server request object.
603
- * @returns {string} Detected locale string.
604
- * @private
605
- */
606
- detectFromRequest(e) {
607
- var l, o, d;
608
- const a = (l = e.url.split("?")[1]) == null ? void 0 : l.split("=")[1], r = e.headers.get("accept-language"), n = (d = (o = e.headers.get("cookie")) == null ? void 0 : o.split("; ").find((m) => m.startsWith("locale="))) == null ? void 0 : d.split("=")[1];
609
- return a ?? n ?? this.parseAcceptLanguage(r ?? "") ?? this.fallbackLocale;
610
- }
611
- /**
612
- * Parse Accept-Language header and return the highest priority language.
613
- * @param {string} header - Accept-Language header value.
614
- * @returns {string|null} Best language or null.
615
- * @private
616
- */
617
- parseAcceptLanguage(e) {
618
- if (!e)
619
- return null;
620
- let a = null, r = 0;
621
- for (const n of e.split(",")) {
622
- const { lang: l, q: o } = this.parseLangAndQ(n.trim());
623
- if (o > r && (r = o, a = l, o === 1))
624
- break;
625
- }
626
- return a;
627
- }
628
- parseLangAndQ(e) {
629
- const a = e.indexOf(";"), r = a === -1 ? e : e.slice(0, Math.max(0, a));
630
- let n = 1;
631
- if (a !== -1) {
632
- const l = /q=(?<q>[\d.]+)/.exec(e.slice(a + 1));
633
- n = l != null && l.groups ? Number.parseFloat(l.groups.q) || 0 : 1;
634
- }
635
- return { lang: r, q: n };
636
- }
637
- /**
638
- * Set the fallback locale.
639
- * @param {string} locale - Fallback locale string.
640
- * @internal
641
- */
642
- setFallbackLocale(e) {
643
- this.fallbackLocale = e;
644
- }
645
- }, c(p, "LocaleDetector"), v(p, "instance");
646
- var g;
647
- g = class {
648
- constructor(e) {
649
- v(this, "namespaces");
650
- this.namespaces = e ? new Map(e) : /* @__PURE__ */ new Map();
651
- }
652
- /**
653
- * Add a namespace with its translations.
654
- * @param {string} name - Namespace name.
655
- * @param {Record<string, string>} translations - Translation key-value pairs.
656
- * @throws {Error} If the namespace name is invalid.
657
- */
658
- addNamespace(e, a) {
659
- if (!j(e))
660
- throw new Error("Invalid namespace name");
661
- this.namespaces.set(e, a);
662
- }
663
- /**
664
- * Get a namespace by name.
665
- * @param {string} name - Namespace name.
666
- * @returns {Record<string, string> | undefined} Namespace translations or undefined.
667
- */
668
- getNamespace(e) {
669
- return this.namespaces.get(e);
670
- }
671
- /**
672
- * Get all namespace names.
673
- * @returns {string[]} Array of namespace names.
674
- */
675
- getAllNamespaces() {
676
- return [...this.namespaces.keys()];
677
- }
678
- /**
679
- * Merge two namespaces into the target.
680
- * @param {string} target - Target namespace name.
681
- * @param {string} source - Source namespace name.
682
- */
683
- mergeNamespaces(e, a) {
684
- const r = this.namespaces.get(e) ?? {}, n = this.namespaces.get(a) ?? {};
685
- this.namespaces.set(e, { ...r, ...n });
686
- }
687
- /**
688
- * Validate a namespace against a schema.
689
- * @param {string} name - Namespace name.
690
- * @param {Record<string, string>} [schema] - Optional schema to validate against.
691
- * @returns {boolean} True if valid, false otherwise.
692
- */
693
- validateNamespace(e, a) {
694
- const r = this.namespaces.get(e);
695
- return r ? a ? Object.entries(a).every(([n, l]) => {
696
- var d;
697
- const o = (d = Object.getOwnPropertyDescriptor(r, n)) == null ? void 0 : d.value;
698
- return o !== void 0 && typeof o === l;
699
- }) : !0 : !1;
700
- }
701
- }, c(g, "NamespaceManager");
702
- function j(t) {
703
- return /^\w+$/.test(t);
704
- }
705
- c(j, "isSafeKey");
706
- const Ge = ({
707
- date: t,
708
- formatOptions: e,
709
- locale: a,
710
- ...r
405
+ return q.createElement(s, { className: o, "data-testid": "translated-html" }, d);
406
+ }, Ie = ({
407
+ date: e,
408
+ formatOptions: t,
409
+ locale: r,
410
+ ...o
711
411
  }) => {
712
- const n = z(t, a, e);
713
- return /* @__PURE__ */ s(h, { ...r, children: n });
714
- }, Ke = ({
715
- value: t,
716
- formatOptions: e,
717
- locale: a,
718
- ...r
412
+ const s = A(e, r, t);
413
+ return /* @__PURE__ */ a(f, { ...o, children: s });
414
+ }, Re = ({
415
+ value: e,
416
+ formatOptions: t,
417
+ locale: r,
418
+ ...o
719
419
  }) => {
720
- const n = M(t, a, e);
721
- return /* @__PURE__ */ s(h, { ...r, children: n });
420
+ const s = M(e, r, t);
421
+ return /* @__PURE__ */ a(f, { ...o, children: s });
722
422
  };
723
- function Ue({
724
- locale: t,
725
- locales: e,
726
- onChange: a,
727
- getLabel: r,
728
- disabled: n
423
+ function Ae({
424
+ locale: e,
425
+ locales: t,
426
+ onChange: r,
427
+ getLabel: o,
428
+ disabled: s
729
429
  }) {
730
- return /* @__PURE__ */ x(se, { value: t, onValueChange: a, disabled: n, children: [
731
- /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(le, { placeholder: r(t) }) }),
732
- /* @__PURE__ */ s(ie, { children: e.map((l) => /* @__PURE__ */ s(ce, { value: l, children: r(l) }, l)) })
430
+ return /* @__PURE__ */ u(X, { value: e, onValueChange: r, disabled: s, children: [
431
+ /* @__PURE__ */ a(K, { children: /* @__PURE__ */ a(Y, { placeholder: o(e) }) }),
432
+ /* @__PURE__ */ a(Q, { children: t.map((i) => /* @__PURE__ */ a(ee, { value: i, children: o(i) }, i)) })
733
433
  ] });
734
434
  }
735
- function qe({
736
- className: t,
737
- reverse: e = !1,
738
- pauseOnHover: a = !1,
739
- paused: r = !1,
740
- children: n,
741
- vertical: l = !1,
742
- repeat: o = 4,
743
- ...d
435
+ function Me({
436
+ className: e,
437
+ reverse: t = !1,
438
+ pauseOnHover: r = !1,
439
+ paused: o = !1,
440
+ children: s,
441
+ vertical: i = !1,
442
+ repeat: d = 4,
443
+ ...c
744
444
  }) {
745
- return /* @__PURE__ */ s(
445
+ return /* @__PURE__ */ a(
746
446
  "div",
747
447
  {
748
- ...d,
749
- className: i(
448
+ ...c,
449
+ className: n(
750
450
  "group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
751
451
  {
752
- "flex-row": !l,
753
- "flex-col": l
452
+ "flex-row": !i,
453
+ "flex-col": i
754
454
  },
755
- t
455
+ e
756
456
  ),
757
- children: Array(o).fill(0).map((m, B) => /* @__PURE__ */ s(
457
+ children: Array(d).fill(0).map((p, z) => /* @__PURE__ */ a(
758
458
  "div",
759
459
  {
760
- className: i("flex shrink-0 justify-around [gap:var(--gap)]", {
761
- "animate-marquee flex-row": !l,
762
- "animate-marquee-vertical flex-col": l,
763
- "group-hover:[animation-play-state:paused]": a,
764
- "[animation-direction:reverse]": e,
765
- "[animation-play-state:paused]": r
460
+ className: n("flex shrink-0 justify-around [gap:var(--gap)]", {
461
+ "animate-marquee flex-row": !i,
462
+ "animate-marquee-vertical flex-col": i,
463
+ "group-hover:[animation-play-state:paused]": r,
464
+ "[animation-direction:reverse]": t,
465
+ "[animation-play-state:paused]": o
766
466
  }),
767
- children: n
467
+ children: s
768
468
  },
769
- B
469
+ z
770
470
  ))
771
471
  }
772
472
  );
773
473
  }
474
+ const re = B(
475
+ "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
476
+ {
477
+ variants: {
478
+ variant: {
479
+ default: "bg-card text-card-foreground",
480
+ destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
481
+ }
482
+ },
483
+ defaultVariants: {
484
+ variant: "default"
485
+ }
486
+ }
487
+ );
488
+ function Be({
489
+ className: e,
490
+ variant: t,
491
+ ...r
492
+ }) {
493
+ return /* @__PURE__ */ a(
494
+ "div",
495
+ {
496
+ "data-slot": "alert",
497
+ role: "alert",
498
+ className: n(re({ variant: t }), e),
499
+ ...r
500
+ }
501
+ );
502
+ }
503
+ function Le({ className: e, ...t }) {
504
+ return /* @__PURE__ */ a(
505
+ "div",
506
+ {
507
+ "data-slot": "alert-title",
508
+ className: n("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
509
+ ...t
510
+ }
511
+ );
512
+ }
513
+ function De({ className: e, ...t }) {
514
+ return /* @__PURE__ */ a(
515
+ "div",
516
+ {
517
+ "data-slot": "alert-description",
518
+ className: n(
519
+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
520
+ e
521
+ ),
522
+ ...t
523
+ }
524
+ );
525
+ }
526
+ function Ve({
527
+ className: e,
528
+ variant: t,
529
+ asChild: r = !1,
530
+ ...o
531
+ }) {
532
+ return /* @__PURE__ */ a(r ? N : "span", { "data-slot": "badge", className: n(L({ variant: t }), e), ...o });
533
+ }
534
+ function je({ ...e }) {
535
+ return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
536
+ }
537
+ function Ge({ className: e, ...t }) {
538
+ return /* @__PURE__ */ a(
539
+ "ol",
540
+ {
541
+ "data-slot": "breadcrumb-list",
542
+ className: n(
543
+ "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
544
+ e
545
+ ),
546
+ ...t
547
+ }
548
+ );
549
+ }
550
+ function He({ className: e, ...t }) {
551
+ return /* @__PURE__ */ a(
552
+ "li",
553
+ {
554
+ "data-slot": "breadcrumb-item",
555
+ className: n("inline-flex items-center gap-1.5", e),
556
+ ...t
557
+ }
558
+ );
559
+ }
560
+ function Ue({
561
+ asChild: e,
562
+ className: t,
563
+ ...r
564
+ }) {
565
+ return /* @__PURE__ */ a(
566
+ e ? N : "a",
567
+ {
568
+ "data-slot": "breadcrumb-link",
569
+ className: n("hover:text-secondary transition-colors", t),
570
+ ...r
571
+ }
572
+ );
573
+ }
574
+ function Fe({ className: e, ...t }) {
575
+ return /* @__PURE__ */ a(
576
+ "span",
577
+ {
578
+ "data-slot": "breadcrumb-page",
579
+ role: "link",
580
+ "aria-disabled": "true",
581
+ "aria-current": "page",
582
+ className: n("text-secondary font-normal", e),
583
+ ...t
584
+ }
585
+ );
586
+ }
587
+ function $e({ children: e, className: t, ...r }) {
588
+ return /* @__PURE__ */ a(
589
+ "li",
590
+ {
591
+ "data-slot": "breadcrumb-separator",
592
+ role: "presentation",
593
+ "aria-hidden": "true",
594
+ className: n("[&>svg]:size-3.5", t),
595
+ ...r,
596
+ children: e ?? /* @__PURE__ */ a(G, {})
597
+ }
598
+ );
599
+ }
600
+ function qe({ className: e, ...t }) {
601
+ return /* @__PURE__ */ u(
602
+ "span",
603
+ {
604
+ "data-slot": "breadcrumb-ellipsis",
605
+ role: "presentation",
606
+ "aria-hidden": "true",
607
+ className: n("flex size-9 items-center justify-center", e),
608
+ ...t,
609
+ children: [
610
+ /* @__PURE__ */ a(H, { className: "size-4" }),
611
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
612
+ ]
613
+ }
614
+ );
615
+ }
616
+ function We({ className: e, ...t }) {
617
+ return /* @__PURE__ */ a(
618
+ "div",
619
+ {
620
+ "data-slot": "card",
621
+ className: n(
622
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
623
+ e
624
+ ),
625
+ ...t
626
+ }
627
+ );
628
+ }
629
+ function Ze({ className: e, ...t }) {
630
+ return /* @__PURE__ */ a(
631
+ "div",
632
+ {
633
+ "data-slot": "card-header",
634
+ className: n(
635
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
636
+ e
637
+ ),
638
+ ...t
639
+ }
640
+ );
641
+ }
642
+ function Je({ className: e, ...t }) {
643
+ return /* @__PURE__ */ a(
644
+ "div",
645
+ {
646
+ "data-slot": "card-title",
647
+ className: n("leading-none font-semibold", e),
648
+ ...t
649
+ }
650
+ );
651
+ }
652
+ function Oe({ className: e, ...t }) {
653
+ return /* @__PURE__ */ a(
654
+ "div",
655
+ {
656
+ "data-slot": "card-description",
657
+ className: n("text-muted-foreground text-sm", e),
658
+ ...t
659
+ }
660
+ );
661
+ }
662
+ function Xe({ className: e, ...t }) {
663
+ return /* @__PURE__ */ a(
664
+ "div",
665
+ {
666
+ "data-slot": "card-action",
667
+ className: n("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
668
+ ...t
669
+ }
670
+ );
671
+ }
672
+ function Ye({ className: e, ...t }) {
673
+ return /* @__PURE__ */ a("div", { "data-slot": "card-content", className: n("px-6", e), ...t });
674
+ }
675
+ function Ke({ className: e, ...t }) {
676
+ return /* @__PURE__ */ a(
677
+ "div",
678
+ {
679
+ "data-slot": "card-footer",
680
+ className: n("flex items-center px-6 [.border-t]:pt-6", e),
681
+ ...t
682
+ }
683
+ );
684
+ }
685
+ var ne = "Label", E = P.forwardRef((e, t) => /* @__PURE__ */ a(
686
+ h.label,
687
+ {
688
+ ...e,
689
+ ref: t,
690
+ onMouseDown: (r) => {
691
+ var s;
692
+ r.target.closest("button, input, select, textarea") || ((s = e.onMouseDown) == null || s.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());
693
+ }
694
+ }
695
+ ));
696
+ E.displayName = ne;
697
+ var oe = E;
698
+ function Qe({ className: e, ...t }) {
699
+ return /* @__PURE__ */ a(
700
+ oe,
701
+ {
702
+ "data-slot": "label",
703
+ className: n(
704
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
705
+ e
706
+ ),
707
+ ...t
708
+ }
709
+ );
710
+ }
711
+ function et({ className: e, ...t }) {
712
+ return /* @__PURE__ */ a(
713
+ "nav",
714
+ {
715
+ role: "navigation",
716
+ "aria-label": "pagination",
717
+ "data-slot": "pagination",
718
+ className: n("mx-auto flex w-full justify-center", e),
719
+ ...t
720
+ }
721
+ );
722
+ }
723
+ function tt({ className: e, ...t }) {
724
+ return /* @__PURE__ */ a(
725
+ "ul",
726
+ {
727
+ "data-slot": "pagination-content",
728
+ className: n("flex flex-row items-center gap-1", e),
729
+ ...t
730
+ }
731
+ );
732
+ }
733
+ function at({ ...e }) {
734
+ return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
735
+ }
736
+ function T({
737
+ className: e,
738
+ isActive: t,
739
+ size: r = "icon",
740
+ children: o,
741
+ ...s
742
+ }) {
743
+ return /* @__PURE__ */ a(
744
+ "a",
745
+ {
746
+ "aria-current": t ? "page" : void 0,
747
+ "data-slot": "pagination-link",
748
+ "data-active": t,
749
+ "aria-label": o ? void 0 : `Go to page ${o}`,
750
+ className: n(
751
+ D({
752
+ variant: t ? "outline" : "ghost",
753
+ size: r
754
+ }),
755
+ e
756
+ ),
757
+ ...s,
758
+ children: o
759
+ }
760
+ );
761
+ }
762
+ function rt({ className: e, ...t }) {
763
+ return /* @__PURE__ */ u(
764
+ T,
765
+ {
766
+ "aria-label": "Go to previous page",
767
+ size: "default",
768
+ className: n("gap-1 px-2.5 sm:pl-2.5", e),
769
+ ...t,
770
+ children: [
771
+ /* @__PURE__ */ a(U, {}),
772
+ /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Previous" })
773
+ ]
774
+ }
775
+ );
776
+ }
777
+ function nt({ className: e, ...t }) {
778
+ return /* @__PURE__ */ u(
779
+ T,
780
+ {
781
+ "aria-label": "Go to next page",
782
+ size: "default",
783
+ className: n("gap-1 px-2.5 sm:pr-2.5", e),
784
+ ...t,
785
+ children: [
786
+ /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Next" }),
787
+ /* @__PURE__ */ a(F, {})
788
+ ]
789
+ }
790
+ );
791
+ }
792
+ function ot({ className: e, ...t }) {
793
+ return /* @__PURE__ */ u(
794
+ "span",
795
+ {
796
+ "aria-hidden": !0,
797
+ "data-slot": "pagination-ellipsis",
798
+ className: n("flex size-9 items-center justify-center", e),
799
+ ...t,
800
+ children: [
801
+ /* @__PURE__ */ a($, { className: "size-4" }),
802
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
803
+ ]
804
+ }
805
+ );
806
+ }
807
+ var se = "Separator", g = "horizontal", ie = ["horizontal", "vertical"], _ = P.forwardRef((e, t) => {
808
+ const { decorative: r, orientation: o = g, ...s } = e, i = le(o) ? o : g, c = r ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
809
+ return /* @__PURE__ */ a(
810
+ h.div,
811
+ {
812
+ "data-orientation": i,
813
+ ...c,
814
+ ...s,
815
+ ref: t
816
+ }
817
+ );
818
+ });
819
+ _.displayName = se;
820
+ function le(e) {
821
+ return ie.includes(e);
822
+ }
823
+ var de = _;
824
+ function st({
825
+ className: e,
826
+ orientation: t = "horizontal",
827
+ decorative: r = !0,
828
+ ...o
829
+ }) {
830
+ return /* @__PURE__ */ a(
831
+ de,
832
+ {
833
+ "data-slot": "separator",
834
+ decorative: r,
835
+ orientation: t,
836
+ className: n(
837
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
838
+ e
839
+ ),
840
+ ...o
841
+ }
842
+ );
843
+ }
844
+ function it({ className: e, ...t }) {
845
+ return /* @__PURE__ */ a(
846
+ "div",
847
+ {
848
+ "data-slot": "skeleton",
849
+ className: n("bg-accent animate-pulse rounded-md", e),
850
+ ...t
851
+ }
852
+ );
853
+ }
854
+ function lt({ className: e, ...t }) {
855
+ return /* @__PURE__ */ a("div", { "data-slot": "table-wrapper", className: "relative w-full overflow-auto", children: /* @__PURE__ */ a(
856
+ "table",
857
+ {
858
+ "data-slot": "table",
859
+ className: n("w-full caption-bottom text-sm", e),
860
+ ...t
861
+ }
862
+ ) });
863
+ }
864
+ function dt({ className: e, ...t }) {
865
+ return /* @__PURE__ */ a("thead", { "data-slot": "table-header", className: n("[&_tr]:border-b", e), ...t });
866
+ }
867
+ function ct({ className: e, ...t }) {
868
+ return /* @__PURE__ */ a(
869
+ "tbody",
870
+ {
871
+ "data-slot": "table-body",
872
+ className: n("[&_tr:last-child]:border-0", e),
873
+ ...t
874
+ }
875
+ );
876
+ }
877
+ function ut({ className: e, ...t }) {
878
+ return /* @__PURE__ */ a(
879
+ "tfoot",
880
+ {
881
+ "data-slot": "table-footer",
882
+ className: n("bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
883
+ ...t
884
+ }
885
+ );
886
+ }
887
+ function mt({ className: e, ...t }) {
888
+ return /* @__PURE__ */ a(
889
+ "tr",
890
+ {
891
+ "data-slot": "table-row",
892
+ className: n(
893
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
894
+ e
895
+ ),
896
+ ...t
897
+ }
898
+ );
899
+ }
900
+ function ft({ className: e, ...t }) {
901
+ return /* @__PURE__ */ a(
902
+ "th",
903
+ {
904
+ "data-slot": "table-head",
905
+ className: n(
906
+ "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
907
+ e
908
+ ),
909
+ ...t
910
+ }
911
+ );
912
+ }
913
+ function pt({ className: e, ...t }) {
914
+ return /* @__PURE__ */ a(
915
+ "td",
916
+ {
917
+ "data-slot": "table-cell",
918
+ className: n("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
919
+ ...t
920
+ }
921
+ );
922
+ }
923
+ function gt({ className: e, ...t }) {
924
+ return /* @__PURE__ */ a(
925
+ "caption",
926
+ {
927
+ "data-slot": "table-caption",
928
+ className: n("mt-4 text-sm text-muted-foreground", e),
929
+ ...t
930
+ }
931
+ );
932
+ }
933
+ function bt({ className: e, ...t }) {
934
+ return /* @__PURE__ */ a(
935
+ "textarea",
936
+ {
937
+ "data-slot": "textarea",
938
+ className: n(
939
+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
940
+ e
941
+ ),
942
+ ...t
943
+ }
944
+ );
945
+ }
774
946
  export {
775
- ne as AuroraText,
776
- b as Box,
777
- De as Button,
778
- Ee as Container,
779
- Re as ExternalLink,
780
- _e as Flex,
781
- Ge as FormattedDate,
782
- Ke as FormattedNumber,
783
- Ie as Grid,
784
- Ae as Heading,
785
- Fe as Input,
786
- Ue as LanguageSelector,
787
- qe as Marquee,
788
- Te as Paragraph,
789
- ze as Section,
790
- se as Select,
791
- ie as SelectContent,
792
- Ce as SelectGroup,
793
- ce as SelectItem,
794
- je as SelectLabel,
795
- de as SelectScrollDownButton,
796
- ue as SelectScrollUpButton,
797
- Be as SelectSeparator,
798
- oe as SelectTrigger,
799
- le as SelectValue,
800
- Me as Stack,
801
- h as Text,
802
- Ve as TranslatedHtml,
803
- $e as TranslatedText
947
+ Be as Alert,
948
+ De as AlertDescription,
949
+ Le as AlertTitle,
950
+ ht as AuroraText,
951
+ Ve as Badge,
952
+ m as Box,
953
+ je as Breadcrumb,
954
+ qe as BreadcrumbEllipsis,
955
+ He as BreadcrumbItem,
956
+ Ue as BreadcrumbLink,
957
+ Ge as BreadcrumbList,
958
+ Fe as BreadcrumbPage,
959
+ $e as BreadcrumbSeparator,
960
+ Nt as Button,
961
+ We as Card,
962
+ Xe as CardAction,
963
+ Ye as CardContent,
964
+ Oe as CardDescription,
965
+ Ke as CardFooter,
966
+ Ze as CardHeader,
967
+ Je as CardTitle,
968
+ xe as Container,
969
+ we as ExternalLink,
970
+ ve as Flex,
971
+ Ie as FormattedDate,
972
+ Re as FormattedNumber,
973
+ he as Grid,
974
+ Ne as Heading,
975
+ Te as Input,
976
+ Qe as Label,
977
+ Ae as LanguageSelector,
978
+ Me as Marquee,
979
+ et as Pagination,
980
+ tt as PaginationContent,
981
+ ot as PaginationEllipsis,
982
+ at as PaginationItem,
983
+ T as PaginationLink,
984
+ nt as PaginationNext,
985
+ rt as PaginationPrevious,
986
+ ye as Paragraph,
987
+ Pe as Section,
988
+ X as Select,
989
+ Q as SelectContent,
990
+ _e as SelectGroup,
991
+ ee as SelectItem,
992
+ ze as SelectLabel,
993
+ ae as SelectScrollDownButton,
994
+ te as SelectScrollUpButton,
995
+ Se as SelectSeparator,
996
+ K as SelectTrigger,
997
+ Y as SelectValue,
998
+ st as Separator,
999
+ it as Skeleton,
1000
+ Ee as Stack,
1001
+ lt as Table,
1002
+ ct as TableBody,
1003
+ gt as TableCaption,
1004
+ pt as TableCell,
1005
+ ut as TableFooter,
1006
+ ft as TableHead,
1007
+ dt as TableHeader,
1008
+ mt as TableRow,
1009
+ f as Text,
1010
+ bt as Textarea,
1011
+ Ce as TranslatedHtml,
1012
+ ke as TranslatedText
804
1013
  };