@plyaz/ui 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Skeleton-Bnjvq2Rm.cjs +62 -0
- package/dist/{constant-BgZiatEy.js → Skeleton-De31tq_k.js} +1234 -615
- package/dist/client.cjs.js +73 -31
- package/dist/client.es.js +18976 -4034
- package/dist/index.cjs.js +6 -30
- package/dist/index.es.js +963 -604
- package/dist/types/components/Accordion/Accordion.d.ts +8 -0
- package/dist/types/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/types/components/Accordion/Accordion.stories.d.ts +44 -0
- package/dist/types/components/Accordion/Accordion.stories.d.ts.map +1 -0
- package/dist/types/components/Alert/Alert.d.ts +10 -0
- package/dist/types/components/Alert/Alert.d.ts.map +1 -0
- package/dist/types/components/Alert/Alert.stories.d.ts +33 -0
- package/dist/types/components/Alert/Alert.stories.d.ts.map +1 -0
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +7 -0
- package/dist/types/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/types/components/Avatar/Avatar.stories.d.ts +22 -0
- package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/dist/types/components/Badge/Badge.d.ts +3 -1
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/Badge/Badge.stories.d.ts +7 -12
- package/dist/types/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/types/components/Breadcrumb/Breadcrumb.stories.d.ts +27 -0
- package/dist/types/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -0
- package/dist/types/components/Button/Button.d.ts +4 -1
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Button/Button.stories.d.ts +7 -0
- package/dist/types/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +9 -0
- package/dist/types/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/types/components/Calendar/Calendar.stories.d.ts +21 -0
- package/dist/types/components/Calendar/Calendar.stories.d.ts.map +1 -0
- package/dist/types/components/Carousel/Carousel.d.ts +20 -0
- package/dist/types/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/types/components/Carousel/Carousel.stories.d.ts +18 -0
- package/dist/types/components/Carousel/Carousel.stories.d.ts.map +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/types/components/Checkbox/Checkbox.stories.d.ts +18 -0
- package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/types/components/Combobox/Combobox.d.ts +24 -0
- package/dist/types/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/types/components/Combobox/Combobox.stories.d.ts +17 -0
- package/dist/types/components/Combobox/Combobox.stories.d.ts.map +1 -0
- package/dist/types/components/Command/Command.d.ts +19 -0
- package/dist/types/components/Command/Command.d.ts.map +1 -0
- package/dist/types/components/Command/Command.stories.d.ts +42 -0
- package/dist/types/components/Command/Command.stories.d.ts.map +1 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +26 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/types/components/ContextMenu/ContextMenu.stories.d.ts +41 -0
- package/dist/types/components/ContextMenu/ContextMenu.stories.d.ts.map +1 -0
- package/dist/types/components/Dialog/Dialog.d.ts +16 -0
- package/dist/types/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/types/components/Dialog/Dialog.stories.d.ts +26 -0
- package/dist/types/components/Dialog/Dialog.stories.d.ts.map +1 -0
- package/dist/types/components/Drawer/Drawer.d.ts +14 -0
- package/dist/types/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/types/components/Drawer/Drawer.stories.d.ts +15 -0
- package/dist/types/components/Drawer/Drawer.stories.d.ts.map +1 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +26 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.stories.d.ts +40 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -0
- package/dist/types/components/HoverCard/HoverCard.d.ts +7 -0
- package/dist/types/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/types/components/HoverCard/HoverCard.stories.d.ts +29 -0
- package/dist/types/components/HoverCard/HoverCard.stories.d.ts.map +1 -0
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/InputGroup/InputGroup.d.ts +17 -0
- package/dist/types/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/types/components/InputGroup/InputGroup.stories.d.ts +45 -0
- package/dist/types/components/InputGroup/InputGroup.stories.d.ts.map +1 -0
- package/dist/types/components/InputOTP/InputOTP.d.ts +12 -0
- package/dist/types/components/InputOTP/InputOTP.d.ts.map +1 -0
- package/dist/types/components/InputOTP/InputOTP.stories.d.ts +20 -0
- package/dist/types/components/InputOTP/InputOTP.stories.d.ts.map +1 -0
- package/dist/types/components/Label/Label.d.ts +5 -0
- package/dist/types/components/Label/Label.d.ts.map +1 -0
- package/dist/types/components/Label/Label.stories.d.ts +32 -0
- package/dist/types/components/Label/Label.stories.d.ts.map +1 -0
- package/dist/types/components/MenuBar/Menubar.stories.d.ts +30 -6
- package/dist/types/components/MenuBar/Menubar.stories.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +14 -0
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/types/components/Pagination/Pagination.stories.d.ts +22 -0
- package/dist/types/components/Pagination/Pagination.stories.d.ts.map +1 -0
- package/dist/types/components/Popover/Popover.d.ts +8 -0
- package/dist/types/components/Popover/Popover.d.ts.map +1 -0
- package/dist/types/components/Popover/Popover.stories.d.ts +23 -0
- package/dist/types/components/Popover/Popover.stories.d.ts.map +1 -0
- package/dist/types/components/Progress/Progress.d.ts +5 -0
- package/dist/types/components/Progress/Progress.d.ts.map +1 -0
- package/dist/types/components/Progress/Progress.stories.d.ts +32 -0
- package/dist/types/components/Progress/Progress.stories.d.ts.map +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts +25 -0
- package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/dist/types/components/ScrollArea/ScrollArea.d.ts +6 -0
- package/dist/types/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/types/components/ScrollArea/ScrollArea.stories.d.ts +42 -0
- package/dist/types/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -0
- package/dist/types/components/Separator/Separator.d.ts +5 -0
- package/dist/types/components/Separator/Separator.d.ts.map +1 -0
- package/dist/types/components/Separator/Separator.stories.d.ts +22 -0
- package/dist/types/components/Separator/Separator.stories.d.ts.map +1 -0
- package/dist/types/components/Sheet/Sheet.d.ts +14 -0
- package/dist/types/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/types/components/Sheet/Sheet.stories.d.ts +17 -0
- package/dist/types/components/Sheet/Sheet.stories.d.ts.map +1 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +69 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts +337 -0
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts.map +1 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/types/components/Skeleton/Skeleton.stories.d.ts +21 -0
- package/dist/types/components/Skeleton/Skeleton.stories.d.ts.map +1 -0
- package/dist/types/components/Slider/Slider.d.ts +5 -0
- package/dist/types/components/Slider/Slider.d.ts.map +1 -0
- package/dist/types/components/Slider/Slider.stories.d.ts +18 -0
- package/dist/types/components/Slider/Slider.stories.d.ts.map +1 -0
- package/dist/types/components/Switch/Switch.d.ts +5 -0
- package/dist/types/components/Switch/Switch.d.ts.map +1 -0
- package/dist/types/components/Switch/Switch.stories.d.ts +27 -0
- package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -0
- package/dist/types/components/Table/Table.d.ts +11 -0
- package/dist/types/components/Table/Table.d.ts.map +1 -0
- package/dist/types/components/Table/Table.stories.d.ts +19 -0
- package/dist/types/components/Table/Table.stories.d.ts.map +1 -0
- package/dist/types/components/Tabs/Tabs.d.ts +8 -0
- package/dist/types/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/types/components/Tabs/Tabs.stories.d.ts +28 -0
- package/dist/types/components/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/types/components/Textarea/Textarea.d.ts +4 -0
- package/dist/types/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/types/components/Textarea/Textarea.stories.d.ts +41 -0
- package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -0
- package/dist/types/components/Toaster/Toaster.d.ts +4 -0
- package/dist/types/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/types/components/Toaster/Toaster.stories.d.ts +15 -0
- package/dist/types/components/Toaster/Toaster.stories.d.ts.map +1 -0
- package/dist/types/components/Toggle/Toggle.d.ts +10 -0
- package/dist/types/components/Toggle/Toggle.d.ts.map +1 -0
- package/dist/types/components/Toggle/Toggle.stories.d.ts +36 -0
- package/dist/types/components/Toggle/Toggle.stories.d.ts.map +1 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/types/components/Tooltip/Tooltip.stories.d.ts +27 -0
- package/dist/types/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/types/components/client.d.ts +26 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +3 -7
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +31 -3
- package/styles/main.css +71 -33
- package/styles/utilities.css +3 -0
- package/dist/constant-B-tpIxtm.cjs +0 -31
package/dist/index.es.js
CHANGED
|
@@ -1,84 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
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, a as f, B as _, I as E, f as P, b as T, P as I, d as S } from "./Skeleton-De31tq_k.js";
|
|
2
|
+
import { A as wt, S as Nt, e as yt } from "./Skeleton-De31tq_k.js";
|
|
3
|
+
import { jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
4
|
+
import { Slot as x } from "@radix-ui/react-slot";
|
|
6
5
|
import "clsx";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
|
|
6
|
+
import * as d from "@radix-ui/react-select";
|
|
7
|
+
import { CheckIcon as C, ChevronDownIcon as b, ChevronUpIcon as M, ChevronRight as A, MoreHorizontal as j, ChevronLeftIcon as R, ChevronRightIcon as B, MoreHorizontalIcon as D } from "lucide-react";
|
|
8
|
+
import { useTranslations as v } from "next-intl";
|
|
9
|
+
import * as G from "react";
|
|
10
|
+
import L from "react";
|
|
11
|
+
const p = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @__PURE__ */ a(t, { className: r, ...s, "data-testid": "box", children: e }), xe = ({ className: e = "", children: t, element: r, ...s }) => /* @__PURE__ */ a(
|
|
12
|
+
p,
|
|
14
13
|
{
|
|
15
|
-
element:
|
|
16
|
-
className:
|
|
17
|
-
...
|
|
18
|
-
children:
|
|
14
|
+
element: r,
|
|
15
|
+
className: n("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", e),
|
|
16
|
+
...s,
|
|
17
|
+
children: t
|
|
19
18
|
}
|
|
20
|
-
),
|
|
19
|
+
), h = {
|
|
20
|
+
start: "justify-start",
|
|
21
|
+
end: "justify-end",
|
|
22
|
+
center: "justify-center",
|
|
23
|
+
between: "justify-between",
|
|
24
|
+
around: "justify-around",
|
|
25
|
+
evenly: "justify-evenly",
|
|
26
|
+
stretch: "justify-stretch"
|
|
27
|
+
}, w = {
|
|
28
|
+
start: "items-start",
|
|
29
|
+
end: "items-end",
|
|
30
|
+
center: "items-center",
|
|
31
|
+
baseline: "items-baseline",
|
|
32
|
+
stretch: "items-stretch"
|
|
33
|
+
}, V = {
|
|
34
|
+
body: "font-general",
|
|
35
|
+
heading: "font-general",
|
|
36
|
+
caption: "font-general"
|
|
37
|
+
}, H = {
|
|
38
|
+
xs: "text-xs",
|
|
39
|
+
sm: "text-sm",
|
|
40
|
+
base: "text-base",
|
|
41
|
+
lg: "text-lg",
|
|
42
|
+
xl: "text-xl",
|
|
43
|
+
"2xl": "text-2xl",
|
|
44
|
+
"3xl": "text-3xl",
|
|
45
|
+
"4xl": "text-4xl",
|
|
46
|
+
"5xl": "text-5xl",
|
|
47
|
+
"6xl": "text-6xl",
|
|
48
|
+
"7xl": "text-7xl",
|
|
49
|
+
"8xl": "text-8xl",
|
|
50
|
+
"9xl": "text-9xl"
|
|
51
|
+
}, F = {
|
|
52
|
+
normal: "font-normal",
|
|
53
|
+
medium: "font-medium",
|
|
54
|
+
semibold: "font-semibold",
|
|
55
|
+
bold: "font-bold",
|
|
56
|
+
light: "font-light"
|
|
57
|
+
}, U = {
|
|
58
|
+
1: "grid-cols-1",
|
|
59
|
+
2: "grid-cols-2",
|
|
60
|
+
3: "grid-cols-3",
|
|
61
|
+
4: "grid-cols-4",
|
|
62
|
+
5: "grid-cols-5",
|
|
63
|
+
6: "grid-cols-6",
|
|
64
|
+
7: "grid-cols-7",
|
|
65
|
+
8: "grid-cols-8",
|
|
66
|
+
9: "grid-cols-9"
|
|
67
|
+
}, q = {
|
|
68
|
+
1: "grid-rows-1",
|
|
69
|
+
2: "grid-rows-2",
|
|
70
|
+
3: "grid-rows-3",
|
|
71
|
+
4: "grid-rows-4",
|
|
72
|
+
5: "grid-rows-5",
|
|
73
|
+
6: "grid-rows-6",
|
|
74
|
+
7: "grid-rows-7",
|
|
75
|
+
8: "grid-rows-8",
|
|
76
|
+
9: "grid-rows-9"
|
|
77
|
+
}, N = {
|
|
78
|
+
1: "gap-1",
|
|
79
|
+
2: "gap-2",
|
|
80
|
+
3: "gap-3",
|
|
81
|
+
4: "gap-4",
|
|
82
|
+
5: "gap-5",
|
|
83
|
+
6: "gap-6",
|
|
84
|
+
7: "gap-7",
|
|
85
|
+
8: "gap-8",
|
|
86
|
+
9: "gap-9"
|
|
87
|
+
}, W = {
|
|
21
88
|
row: "flex-row",
|
|
22
89
|
col: "flex-col",
|
|
23
90
|
row_reverse: "flex-row-reverse",
|
|
24
91
|
col_reverse: "flex-col-reverse"
|
|
25
|
-
},
|
|
92
|
+
}, Z = {
|
|
26
93
|
wrap: "flex-wrap",
|
|
27
94
|
nowrap: "flex-nowrap",
|
|
28
95
|
wrap_reverse: "flex-wrap-reverse"
|
|
29
|
-
},
|
|
30
|
-
children:
|
|
31
|
-
gap:
|
|
32
|
-
direction:
|
|
33
|
-
justify:
|
|
34
|
-
align:
|
|
35
|
-
wrap:
|
|
36
|
-
className:
|
|
37
|
-
element:
|
|
38
|
-
...
|
|
39
|
-
}) => /* @__PURE__ */
|
|
40
|
-
|
|
96
|
+
}, be = ({
|
|
97
|
+
children: e,
|
|
98
|
+
gap: t,
|
|
99
|
+
direction: r,
|
|
100
|
+
justify: s,
|
|
101
|
+
align: o,
|
|
102
|
+
wrap: i,
|
|
103
|
+
className: l = "",
|
|
104
|
+
element: c,
|
|
105
|
+
...g
|
|
106
|
+
}) => /* @__PURE__ */ a(
|
|
107
|
+
p,
|
|
41
108
|
{
|
|
42
|
-
element:
|
|
43
|
-
className:
|
|
109
|
+
element: c,
|
|
110
|
+
className: n(
|
|
44
111
|
"flex",
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
112
|
+
r && W[r],
|
|
113
|
+
s && h[s],
|
|
114
|
+
o && w[o],
|
|
115
|
+
i && Z[i],
|
|
116
|
+
t && N[t],
|
|
117
|
+
l
|
|
51
118
|
),
|
|
52
|
-
...
|
|
53
|
-
children:
|
|
119
|
+
...g,
|
|
120
|
+
children: e
|
|
54
121
|
}
|
|
55
|
-
),
|
|
56
|
-
children:
|
|
57
|
-
className:
|
|
58
|
-
cols:
|
|
59
|
-
rows:
|
|
60
|
-
gap:
|
|
61
|
-
justify:
|
|
62
|
-
align:
|
|
63
|
-
element:
|
|
64
|
-
...
|
|
65
|
-
}) => /* @__PURE__ */
|
|
66
|
-
|
|
122
|
+
), ve = ({
|
|
123
|
+
children: e,
|
|
124
|
+
className: t,
|
|
125
|
+
cols: r,
|
|
126
|
+
rows: s,
|
|
127
|
+
gap: o,
|
|
128
|
+
justify: i,
|
|
129
|
+
align: l,
|
|
130
|
+
element: c,
|
|
131
|
+
...g
|
|
132
|
+
}) => /* @__PURE__ */ a(
|
|
133
|
+
p,
|
|
67
134
|
{
|
|
68
|
-
element:
|
|
69
|
-
className:
|
|
135
|
+
element: c,
|
|
136
|
+
className: n(
|
|
70
137
|
"grid",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
138
|
+
r && U[r],
|
|
139
|
+
s && q[s],
|
|
140
|
+
o && N[o],
|
|
141
|
+
i && h[i],
|
|
142
|
+
l && w[l],
|
|
143
|
+
t
|
|
77
144
|
),
|
|
78
|
-
...
|
|
79
|
-
children:
|
|
145
|
+
...g,
|
|
146
|
+
children: e
|
|
80
147
|
}
|
|
81
|
-
),
|
|
148
|
+
), $ = {
|
|
82
149
|
xs: "xs",
|
|
83
150
|
sm: "sm",
|
|
84
151
|
base: "base",
|
|
@@ -87,191 +154,240 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
87
154
|
"2xl": "2xl",
|
|
88
155
|
"3xl": "3xl",
|
|
89
156
|
"4xl": "4xl"
|
|
90
|
-
},
|
|
91
|
-
|
|
157
|
+
}, he = ({ children: e, element: t, className: r, size: s, ...o }) => /* @__PURE__ */ a(
|
|
158
|
+
m,
|
|
92
159
|
{
|
|
93
|
-
className:
|
|
94
|
-
element:
|
|
95
|
-
size:
|
|
160
|
+
className: r,
|
|
161
|
+
element: t,
|
|
162
|
+
size: $[s],
|
|
96
163
|
variant: "heading",
|
|
97
164
|
weight: "medium",
|
|
98
|
-
...
|
|
99
|
-
children:
|
|
165
|
+
...o,
|
|
166
|
+
children: e
|
|
100
167
|
}
|
|
101
|
-
),
|
|
168
|
+
), we = ({ children: e, className: t, href: r, ...s }) => /* @__PURE__ */ a(
|
|
102
169
|
"a",
|
|
103
170
|
{
|
|
104
171
|
"data-testid": "link",
|
|
105
|
-
href:
|
|
172
|
+
href: r,
|
|
106
173
|
rel: "noopener noreferrer",
|
|
107
174
|
target: "_blank",
|
|
108
|
-
className:
|
|
175
|
+
className: n(
|
|
109
176
|
"focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",
|
|
110
|
-
|
|
177
|
+
t
|
|
111
178
|
),
|
|
112
|
-
...
|
|
113
|
-
children:
|
|
179
|
+
...s,
|
|
180
|
+
children: e
|
|
114
181
|
}
|
|
115
|
-
),
|
|
182
|
+
), K = {
|
|
116
183
|
xs: "xs",
|
|
117
184
|
sm: "sm",
|
|
118
185
|
base: "base",
|
|
119
186
|
lg: "lg"
|
|
120
|
-
},
|
|
121
|
-
|
|
187
|
+
}, Ne = ({ children: e, className: t, size: r, ...s }) => /* @__PURE__ */ a(
|
|
188
|
+
m,
|
|
122
189
|
{
|
|
123
|
-
className:
|
|
190
|
+
className: t,
|
|
124
191
|
element: "p",
|
|
125
|
-
size:
|
|
192
|
+
size: K[r],
|
|
126
193
|
variant: "body",
|
|
127
194
|
weight: "normal",
|
|
128
|
-
...
|
|
129
|
-
children:
|
|
195
|
+
...s,
|
|
196
|
+
children: e
|
|
130
197
|
}
|
|
131
|
-
),
|
|
198
|
+
), ye = ({ className: e = "", children: t, ...r }) => /* @__PURE__ */ a(p, { element: "section", className: e, ...r, children: t }), ke = ({
|
|
199
|
+
children: e,
|
|
200
|
+
direction: t = "horizontal",
|
|
201
|
+
spacing: r = "space-x-2",
|
|
202
|
+
element: s,
|
|
203
|
+
className: o,
|
|
204
|
+
...i
|
|
205
|
+
}) => /* @__PURE__ */ a(p, { className: n("flex", t === "vertical" ? "flex-col" : "flex-row", r, o), element: s, ...i, children: e }), m = ({
|
|
206
|
+
className: e,
|
|
132
207
|
children: t,
|
|
133
|
-
direction: e = "horizontal",
|
|
134
|
-
spacing: a = "space-x-2",
|
|
135
208
|
element: r,
|
|
136
|
-
|
|
209
|
+
weight: s,
|
|
210
|
+
variant: o,
|
|
211
|
+
size: i,
|
|
137
212
|
...l
|
|
138
|
-
}) => /* @__PURE__ */
|
|
139
|
-
|
|
140
|
-
children: e,
|
|
141
|
-
element: a,
|
|
142
|
-
weight: r,
|
|
143
|
-
variant: n,
|
|
144
|
-
size: l,
|
|
145
|
-
...o
|
|
146
|
-
}) => /* @__PURE__ */ s(
|
|
147
|
-
a,
|
|
213
|
+
}) => /* @__PURE__ */ a(
|
|
214
|
+
r,
|
|
148
215
|
{
|
|
149
216
|
"data-testid": "text",
|
|
150
|
-
className:
|
|
217
|
+
className: n(
|
|
151
218
|
"font-normal text-base",
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
219
|
+
i && H[i],
|
|
220
|
+
s && F[s],
|
|
221
|
+
o && V[o],
|
|
222
|
+
e
|
|
156
223
|
),
|
|
157
|
-
...
|
|
158
|
-
children:
|
|
224
|
+
...l,
|
|
225
|
+
children: t
|
|
159
226
|
}
|
|
160
227
|
);
|
|
161
|
-
function
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
size: a,
|
|
165
|
-
asChild: r = !1,
|
|
166
|
-
...n
|
|
167
|
-
}) {
|
|
168
|
-
return /* @__PURE__ */ s(
|
|
169
|
-
r ? O : "button",
|
|
228
|
+
function ze({ className: e, ...t }) {
|
|
229
|
+
return /* @__PURE__ */ a(
|
|
230
|
+
"div",
|
|
170
231
|
{
|
|
171
|
-
"data-slot": "
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
232
|
+
"data-slot": "input-group",
|
|
233
|
+
role: "group",
|
|
234
|
+
className: n(
|
|
235
|
+
"group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-sm border transition-[color,box-shadow] outline-none",
|
|
236
|
+
"h-10 min-w-0 has-[>textarea]:h-auto",
|
|
237
|
+
// Variants based on alignment.
|
|
238
|
+
"has-[>[data-align=inline-start]]:[&>input]:pl-3",
|
|
239
|
+
"has-[>[data-align=inline-end]]:[&>input]:pr-3",
|
|
240
|
+
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-2",
|
|
241
|
+
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-2",
|
|
242
|
+
// Focus state.
|
|
243
|
+
"has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
|
|
244
|
+
// Error state.
|
|
245
|
+
"has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
|
|
246
|
+
// Disabled state.
|
|
247
|
+
"has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:disabled]:pointer-events-none has-[[data-slot=input-group-control]:disabled]:cursor-not-allowed",
|
|
248
|
+
e
|
|
249
|
+
),
|
|
250
|
+
...t
|
|
175
251
|
}
|
|
176
252
|
);
|
|
177
253
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
|
|
188
|
-
outline-none
|
|
189
|
-
selection:bg-primary selection:text-primary-foreground
|
|
190
|
-
file:inline-flex file:h-7 file:border-0 file:bg-transparent
|
|
191
|
-
file:text-sm file:font-medium file:text-foreground
|
|
192
|
-
placeholder:text-muted-foreground
|
|
193
|
-
disabled:pointer-events-none disabled:cursor-not-allowed
|
|
194
|
-
disabled:opacity-50
|
|
195
|
-
md:text-sm
|
|
196
|
-
dark:bg-input/30
|
|
197
|
-
`,
|
|
198
|
-
`
|
|
199
|
-
focus-visible:border-ring focus-visible:ring-[3px]
|
|
200
|
-
focus-visible:ring-ring/50
|
|
201
|
-
`,
|
|
202
|
-
`
|
|
203
|
-
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
204
|
-
dark:aria-invalid:ring-destructive/40
|
|
205
|
-
`,
|
|
206
|
-
t
|
|
207
|
-
),
|
|
208
|
-
...a,
|
|
209
|
-
"data-testid": "input"
|
|
210
|
-
}
|
|
211
|
-
);
|
|
212
|
-
}
|
|
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
|
-
]
|
|
254
|
+
const J = f(
|
|
255
|
+
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
256
|
+
{
|
|
257
|
+
variants: {
|
|
258
|
+
align: {
|
|
259
|
+
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
|
|
260
|
+
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
|
|
261
|
+
"block-start": "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
|
|
262
|
+
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"
|
|
249
263
|
}
|
|
250
|
-
|
|
264
|
+
},
|
|
265
|
+
defaultVariants: {
|
|
266
|
+
align: "inline-start"
|
|
267
|
+
}
|
|
251
268
|
}
|
|
252
269
|
);
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
270
|
+
function _e({
|
|
271
|
+
className: e,
|
|
272
|
+
align: t = "inline-start",
|
|
273
|
+
...r
|
|
274
|
+
}) {
|
|
275
|
+
const s = (i) => {
|
|
276
|
+
var l, c;
|
|
277
|
+
i.target.closest("button") || (c = (l = i.currentTarget.parentElement) == null ? void 0 : l.querySelector("input")) == null || c.focus();
|
|
278
|
+
}, o = (i) => {
|
|
279
|
+
var l, c;
|
|
280
|
+
if (i.key === "Enter" || i.key === " ") {
|
|
281
|
+
if (i.preventDefault(), i.target.closest("button"))
|
|
282
|
+
return;
|
|
283
|
+
(c = (l = i.currentTarget.parentElement) == null ? void 0 : l.querySelector("input")) == null || c.focus();
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
return /* @__PURE__ */ a(
|
|
287
|
+
"div",
|
|
288
|
+
{
|
|
289
|
+
role: "button",
|
|
290
|
+
tabIndex: 0,
|
|
291
|
+
"data-slot": "input-group-addon",
|
|
292
|
+
"data-align": t,
|
|
293
|
+
className: n(J({ align: t }), e),
|
|
294
|
+
onClick: s,
|
|
295
|
+
onKeyDown: o,
|
|
296
|
+
"aria-label": "Focus input field",
|
|
297
|
+
...r
|
|
298
|
+
}
|
|
299
|
+
);
|
|
256
300
|
}
|
|
257
|
-
|
|
258
|
-
|
|
301
|
+
const X = f("text-sm shadow-none flex gap-2 items-center", {
|
|
302
|
+
variants: {
|
|
303
|
+
size: {
|
|
304
|
+
xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
|
|
305
|
+
sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
|
|
306
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
307
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
defaultVariants: {
|
|
311
|
+
size: "xs"
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
function Ee({
|
|
315
|
+
className: e,
|
|
316
|
+
type: t = "button",
|
|
317
|
+
variant: r = "default",
|
|
318
|
+
size: s = "xs",
|
|
319
|
+
...o
|
|
320
|
+
}) {
|
|
321
|
+
return /* @__PURE__ */ a(
|
|
322
|
+
_,
|
|
323
|
+
{
|
|
324
|
+
type: t,
|
|
325
|
+
"data-size": s,
|
|
326
|
+
variant: r,
|
|
327
|
+
className: n(X({ size: s }), e),
|
|
328
|
+
...o
|
|
329
|
+
}
|
|
330
|
+
);
|
|
259
331
|
}
|
|
260
|
-
function
|
|
261
|
-
return /* @__PURE__ */
|
|
332
|
+
function Pe({ className: e, ...t }) {
|
|
333
|
+
return /* @__PURE__ */ a(
|
|
334
|
+
"span",
|
|
335
|
+
{
|
|
336
|
+
className: n(
|
|
337
|
+
"text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
338
|
+
e
|
|
339
|
+
),
|
|
340
|
+
...t
|
|
341
|
+
}
|
|
342
|
+
);
|
|
262
343
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
344
|
+
function Te({ className: e, ...t }) {
|
|
345
|
+
return /* @__PURE__ */ a(
|
|
346
|
+
E,
|
|
347
|
+
{
|
|
348
|
+
"data-slot": "input-group-control",
|
|
349
|
+
className: n(
|
|
350
|
+
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
351
|
+
e
|
|
352
|
+
),
|
|
353
|
+
...t
|
|
354
|
+
}
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
function Ie({ className: e, ...t }) {
|
|
358
|
+
return /* @__PURE__ */ a(
|
|
359
|
+
le,
|
|
360
|
+
{
|
|
361
|
+
"data-slot": "input-group-control",
|
|
362
|
+
className: n(
|
|
363
|
+
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
364
|
+
e
|
|
365
|
+
),
|
|
366
|
+
...t
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
function Y({ ...e }) {
|
|
371
|
+
return /* @__PURE__ */ a(d.Root, { "data-slot": "select", ...e });
|
|
372
|
+
}
|
|
373
|
+
function Se({ ...e }) {
|
|
374
|
+
return /* @__PURE__ */ a(d.Group, { "data-slot": "select-group", ...e });
|
|
375
|
+
}
|
|
376
|
+
function Q({ ...e }) {
|
|
377
|
+
return /* @__PURE__ */ a(d.Value, { "data-slot": "select-value", ...e });
|
|
378
|
+
}
|
|
379
|
+
function O({
|
|
380
|
+
className: e,
|
|
381
|
+
size: t = "default",
|
|
382
|
+
children: r,
|
|
383
|
+
...s
|
|
268
384
|
}) {
|
|
269
|
-
return /* @__PURE__ */
|
|
270
|
-
|
|
385
|
+
return /* @__PURE__ */ u(
|
|
386
|
+
d.Trigger,
|
|
271
387
|
{
|
|
272
388
|
"data-slot": "select-trigger",
|
|
273
|
-
"data-size":
|
|
274
|
-
className:
|
|
389
|
+
"data-size": t,
|
|
390
|
+
className: n(
|
|
275
391
|
`
|
|
276
392
|
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
277
393
|
border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
|
|
@@ -293,27 +409,27 @@ function oe({
|
|
|
293
409
|
[&_svg:not([class*='size-'])]:size-4
|
|
294
410
|
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
295
411
|
`,
|
|
296
|
-
|
|
412
|
+
e
|
|
297
413
|
),
|
|
298
|
-
...
|
|
414
|
+
...s,
|
|
299
415
|
children: [
|
|
300
|
-
|
|
301
|
-
/* @__PURE__ */
|
|
416
|
+
r,
|
|
417
|
+
/* @__PURE__ */ a(d.Icon, { asChild: !0, children: /* @__PURE__ */ a(b, { className: "size-4 opacity-50" }) })
|
|
302
418
|
]
|
|
303
419
|
}
|
|
304
420
|
);
|
|
305
421
|
}
|
|
306
|
-
function
|
|
307
|
-
className:
|
|
308
|
-
children:
|
|
309
|
-
position:
|
|
310
|
-
...
|
|
422
|
+
function ee({
|
|
423
|
+
className: e,
|
|
424
|
+
children: t,
|
|
425
|
+
position: r = "popper",
|
|
426
|
+
...s
|
|
311
427
|
}) {
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
|
|
428
|
+
return /* @__PURE__ */ a(d.Portal, { "data-testid": "select", children: /* @__PURE__ */ u(
|
|
429
|
+
d.Content,
|
|
314
430
|
{
|
|
315
431
|
"data-slot": "select-content",
|
|
316
|
-
className:
|
|
432
|
+
className: n(
|
|
317
433
|
`
|
|
318
434
|
relative z-50 max-h-(--radix-select-content-available-height)
|
|
319
435
|
min-w-[8rem] origin-(--radix-select-content-transform-origin)
|
|
@@ -328,56 +444,56 @@ function ie({
|
|
|
328
444
|
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
329
445
|
data-[state=open]:zoom-in-95
|
|
330
446
|
`,
|
|
331
|
-
|
|
447
|
+
r === "popper" && `
|
|
332
448
|
data-[side=bottom]:translate-y-1
|
|
333
449
|
data-[side=left]:-translate-x-1
|
|
334
450
|
data-[side=right]:translate-x-1
|
|
335
451
|
data-[side=top]:-translate-y-1
|
|
336
452
|
`,
|
|
337
|
-
|
|
453
|
+
e
|
|
338
454
|
),
|
|
339
|
-
position:
|
|
340
|
-
...
|
|
455
|
+
position: r,
|
|
456
|
+
...s,
|
|
341
457
|
children: [
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
|
|
458
|
+
/* @__PURE__ */ a(ae, {}),
|
|
459
|
+
/* @__PURE__ */ a(
|
|
460
|
+
d.Viewport,
|
|
345
461
|
{
|
|
346
|
-
className:
|
|
462
|
+
className: n(
|
|
347
463
|
"p-1",
|
|
348
|
-
|
|
464
|
+
r === "popper" && `
|
|
349
465
|
h-[var(--radix-select-trigger-height)] w-full
|
|
350
466
|
min-w-[var(--radix-select-trigger-width)] scroll-my-1
|
|
351
467
|
`
|
|
352
468
|
),
|
|
353
|
-
children:
|
|
469
|
+
children: t
|
|
354
470
|
}
|
|
355
471
|
),
|
|
356
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ a(re, {})
|
|
357
473
|
]
|
|
358
474
|
}
|
|
359
475
|
) });
|
|
360
476
|
}
|
|
361
|
-
function
|
|
362
|
-
return /* @__PURE__ */
|
|
363
|
-
|
|
477
|
+
function Ce({ className: e, ...t }) {
|
|
478
|
+
return /* @__PURE__ */ a(
|
|
479
|
+
d.Label,
|
|
364
480
|
{
|
|
365
481
|
"data-slot": "select-label",
|
|
366
|
-
className:
|
|
367
|
-
...
|
|
482
|
+
className: n("px-2 py-1.5 text-xs text-muted-foreground", e),
|
|
483
|
+
...t
|
|
368
484
|
}
|
|
369
485
|
);
|
|
370
486
|
}
|
|
371
|
-
function
|
|
372
|
-
className:
|
|
373
|
-
children:
|
|
374
|
-
...
|
|
487
|
+
function te({
|
|
488
|
+
className: e,
|
|
489
|
+
children: t,
|
|
490
|
+
...r
|
|
375
491
|
}) {
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
-
|
|
492
|
+
return /* @__PURE__ */ u(
|
|
493
|
+
d.Item,
|
|
378
494
|
{
|
|
379
495
|
"data-slot": "select-item",
|
|
380
|
-
className:
|
|
496
|
+
className: n(
|
|
381
497
|
`
|
|
382
498
|
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
383
499
|
py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
|
|
@@ -388,417 +504,660 @@ function ce({
|
|
|
388
504
|
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
389
505
|
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
390
506
|
`,
|
|
391
|
-
|
|
507
|
+
e
|
|
392
508
|
),
|
|
393
|
-
...
|
|
509
|
+
...r,
|
|
394
510
|
children: [
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d.ItemIndicator, { children: /* @__PURE__ */ a(C, { className: "size-4" }) }) }),
|
|
512
|
+
/* @__PURE__ */ a(d.ItemText, { children: t })
|
|
397
513
|
]
|
|
398
514
|
}
|
|
399
515
|
);
|
|
400
516
|
}
|
|
401
|
-
function
|
|
402
|
-
className:
|
|
403
|
-
...
|
|
517
|
+
function Me({
|
|
518
|
+
className: e,
|
|
519
|
+
...t
|
|
404
520
|
}) {
|
|
405
|
-
return /* @__PURE__ */
|
|
406
|
-
|
|
521
|
+
return /* @__PURE__ */ a(
|
|
522
|
+
d.Separator,
|
|
407
523
|
{
|
|
408
524
|
"data-slot": "select-separator",
|
|
409
|
-
className:
|
|
410
|
-
...
|
|
525
|
+
className: n("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
526
|
+
...t
|
|
411
527
|
}
|
|
412
528
|
);
|
|
413
529
|
}
|
|
414
|
-
function
|
|
415
|
-
className:
|
|
416
|
-
...
|
|
530
|
+
function ae({
|
|
531
|
+
className: e,
|
|
532
|
+
...t
|
|
417
533
|
}) {
|
|
418
|
-
return /* @__PURE__ */
|
|
419
|
-
|
|
534
|
+
return /* @__PURE__ */ a(
|
|
535
|
+
d.ScrollUpButton,
|
|
420
536
|
{
|
|
421
537
|
"data-slot": "select-scroll-up-button",
|
|
422
|
-
className:
|
|
423
|
-
...
|
|
424
|
-
children: /* @__PURE__ */
|
|
538
|
+
className: n("flex cursor-default items-center justify-center py-1", e),
|
|
539
|
+
...t,
|
|
540
|
+
children: /* @__PURE__ */ a(M, { className: "size-4" })
|
|
425
541
|
}
|
|
426
542
|
);
|
|
427
543
|
}
|
|
428
|
-
function
|
|
429
|
-
className:
|
|
430
|
-
...
|
|
544
|
+
function re({
|
|
545
|
+
className: e,
|
|
546
|
+
...t
|
|
431
547
|
}) {
|
|
432
|
-
return /* @__PURE__ */
|
|
433
|
-
|
|
548
|
+
return /* @__PURE__ */ a(
|
|
549
|
+
d.ScrollDownButton,
|
|
434
550
|
{
|
|
435
551
|
"data-slot": "select-scroll-down-button",
|
|
436
|
-
className:
|
|
437
|
-
...
|
|
438
|
-
children: /* @__PURE__ */
|
|
552
|
+
className: n("flex cursor-default items-center justify-center py-1", e),
|
|
553
|
+
...t,
|
|
554
|
+
children: /* @__PURE__ */ a(b, { className: "size-4" })
|
|
439
555
|
}
|
|
440
556
|
);
|
|
441
557
|
}
|
|
442
|
-
const
|
|
443
|
-
translationKey:
|
|
444
|
-
translationOptions:
|
|
445
|
-
namespace:
|
|
446
|
-
...
|
|
558
|
+
const Ae = ({
|
|
559
|
+
translationKey: e,
|
|
560
|
+
translationOptions: t,
|
|
561
|
+
namespace: r,
|
|
562
|
+
...s
|
|
447
563
|
}) => {
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
);
|
|
452
|
-
return /* @__PURE__ */
|
|
453
|
-
},
|
|
454
|
-
translationKey:
|
|
455
|
-
translationOptions:
|
|
456
|
-
namespace:
|
|
457
|
-
className:
|
|
458
|
-
tag:
|
|
564
|
+
const i = v(r)(
|
|
565
|
+
e,
|
|
566
|
+
t == null ? void 0 : t.args
|
|
567
|
+
);
|
|
568
|
+
return /* @__PURE__ */ a(m, { ...s, children: i });
|
|
569
|
+
}, je = ({
|
|
570
|
+
translationKey: e,
|
|
571
|
+
translationOptions: t,
|
|
572
|
+
namespace: r,
|
|
573
|
+
className: s,
|
|
574
|
+
tag: o = "div"
|
|
459
575
|
}) => {
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
|
|
576
|
+
const l = v(r)(
|
|
577
|
+
e,
|
|
578
|
+
t == null ? void 0 : t.args
|
|
463
579
|
);
|
|
464
|
-
return
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
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
|
|
580
|
+
return L.createElement(o, { className: s, "data-testid": "translated-html" }, l);
|
|
581
|
+
}, Re = ({
|
|
582
|
+
date: e,
|
|
583
|
+
formatOptions: t,
|
|
584
|
+
locale: r,
|
|
585
|
+
...s
|
|
711
586
|
}) => {
|
|
712
|
-
const
|
|
713
|
-
return /* @__PURE__ */
|
|
714
|
-
},
|
|
715
|
-
value:
|
|
716
|
-
formatOptions:
|
|
717
|
-
locale:
|
|
718
|
-
...
|
|
587
|
+
const o = P(e, r, t);
|
|
588
|
+
return /* @__PURE__ */ a(m, { ...s, children: o });
|
|
589
|
+
}, Be = ({
|
|
590
|
+
value: e,
|
|
591
|
+
formatOptions: t,
|
|
592
|
+
locale: r,
|
|
593
|
+
...s
|
|
719
594
|
}) => {
|
|
720
|
-
const
|
|
721
|
-
return /* @__PURE__ */
|
|
595
|
+
const o = T(e, r, t);
|
|
596
|
+
return /* @__PURE__ */ a(m, { ...s, children: o });
|
|
722
597
|
};
|
|
723
|
-
function
|
|
724
|
-
locale:
|
|
725
|
-
locales:
|
|
726
|
-
onChange:
|
|
727
|
-
getLabel:
|
|
728
|
-
disabled:
|
|
598
|
+
function De({
|
|
599
|
+
locale: e,
|
|
600
|
+
locales: t,
|
|
601
|
+
onChange: r,
|
|
602
|
+
getLabel: s,
|
|
603
|
+
disabled: o
|
|
729
604
|
}) {
|
|
730
|
-
return /* @__PURE__ */
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
/* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ u(Y, { value: e, onValueChange: r, disabled: o, children: [
|
|
606
|
+
/* @__PURE__ */ a(O, { children: /* @__PURE__ */ a(Q, { placeholder: s(e) }) }),
|
|
607
|
+
/* @__PURE__ */ a(ee, { children: t.map((i) => /* @__PURE__ */ a(te, { value: i, children: s(i) }, i)) })
|
|
733
608
|
] });
|
|
734
609
|
}
|
|
735
|
-
function
|
|
736
|
-
className:
|
|
737
|
-
reverse:
|
|
738
|
-
pauseOnHover:
|
|
739
|
-
paused:
|
|
740
|
-
children:
|
|
741
|
-
vertical:
|
|
742
|
-
repeat:
|
|
743
|
-
...
|
|
610
|
+
function Ge({
|
|
611
|
+
className: e,
|
|
612
|
+
reverse: t = !1,
|
|
613
|
+
pauseOnHover: r = !1,
|
|
614
|
+
paused: s = !1,
|
|
615
|
+
children: o,
|
|
616
|
+
vertical: i = !1,
|
|
617
|
+
repeat: l = 4,
|
|
618
|
+
...c
|
|
744
619
|
}) {
|
|
745
|
-
return /* @__PURE__ */
|
|
620
|
+
return /* @__PURE__ */ a(
|
|
746
621
|
"div",
|
|
747
622
|
{
|
|
748
|
-
...
|
|
749
|
-
className:
|
|
623
|
+
...c,
|
|
624
|
+
className: n(
|
|
750
625
|
"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
|
|
751
626
|
{
|
|
752
|
-
"flex-row": !
|
|
753
|
-
"flex-col":
|
|
627
|
+
"flex-row": !i,
|
|
628
|
+
"flex-col": i
|
|
754
629
|
},
|
|
755
|
-
|
|
630
|
+
e
|
|
756
631
|
),
|
|
757
|
-
children: Array(
|
|
632
|
+
children: Array(l).fill(0).map((g, z) => /* @__PURE__ */ a(
|
|
758
633
|
"div",
|
|
759
634
|
{
|
|
760
|
-
className:
|
|
761
|
-
"animate-marquee flex-row": !
|
|
762
|
-
"animate-marquee-vertical flex-col":
|
|
763
|
-
"group-hover:[animation-play-state:paused]":
|
|
764
|
-
"[animation-direction:reverse]":
|
|
765
|
-
"[animation-play-state:paused]":
|
|
635
|
+
className: n("flex shrink-0 justify-around [gap:var(--gap)]", {
|
|
636
|
+
"animate-marquee flex-row": !i,
|
|
637
|
+
"animate-marquee-vertical flex-col": i,
|
|
638
|
+
"group-hover:[animation-play-state:paused]": r,
|
|
639
|
+
"[animation-direction:reverse]": t,
|
|
640
|
+
"[animation-play-state:paused]": s
|
|
766
641
|
}),
|
|
767
|
-
children:
|
|
642
|
+
children: o
|
|
768
643
|
},
|
|
769
|
-
|
|
644
|
+
z
|
|
770
645
|
))
|
|
771
646
|
}
|
|
772
647
|
);
|
|
773
648
|
}
|
|
649
|
+
const ne = f(
|
|
650
|
+
"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",
|
|
651
|
+
{
|
|
652
|
+
variants: {
|
|
653
|
+
variant: {
|
|
654
|
+
default: "bg-card text-card-foreground",
|
|
655
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
defaultVariants: {
|
|
659
|
+
variant: "default"
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
);
|
|
663
|
+
function Le({
|
|
664
|
+
className: e,
|
|
665
|
+
variant: t,
|
|
666
|
+
...r
|
|
667
|
+
}) {
|
|
668
|
+
return /* @__PURE__ */ a(
|
|
669
|
+
"div",
|
|
670
|
+
{
|
|
671
|
+
"data-slot": "alert",
|
|
672
|
+
role: "alert",
|
|
673
|
+
className: n(ne({ variant: t }), e),
|
|
674
|
+
...r
|
|
675
|
+
}
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
function Ve({ className: e, ...t }) {
|
|
679
|
+
return /* @__PURE__ */ a(
|
|
680
|
+
"div",
|
|
681
|
+
{
|
|
682
|
+
"data-slot": "alert-title",
|
|
683
|
+
className: n("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
|
|
684
|
+
...t
|
|
685
|
+
}
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
function He({ className: e, ...t }) {
|
|
689
|
+
return /* @__PURE__ */ a(
|
|
690
|
+
"div",
|
|
691
|
+
{
|
|
692
|
+
"data-slot": "alert-description",
|
|
693
|
+
className: n(
|
|
694
|
+
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
695
|
+
e
|
|
696
|
+
),
|
|
697
|
+
...t
|
|
698
|
+
}
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
const se = f(
|
|
702
|
+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
703
|
+
{
|
|
704
|
+
variants: {
|
|
705
|
+
variant: {
|
|
706
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
707
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
708
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
709
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
defaultVariants: {
|
|
713
|
+
variant: "default"
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
);
|
|
717
|
+
function Fe({
|
|
718
|
+
className: e,
|
|
719
|
+
variant: t,
|
|
720
|
+
asChild: r = !1,
|
|
721
|
+
...s
|
|
722
|
+
}) {
|
|
723
|
+
return /* @__PURE__ */ a(r ? x : "span", { "data-slot": "badge", className: n(se({ variant: t }), e), ...s });
|
|
724
|
+
}
|
|
725
|
+
function Ue({ ...e }) {
|
|
726
|
+
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
|
|
727
|
+
}
|
|
728
|
+
function qe({ className: e, ...t }) {
|
|
729
|
+
return /* @__PURE__ */ a(
|
|
730
|
+
"ol",
|
|
731
|
+
{
|
|
732
|
+
"data-slot": "breadcrumb-list",
|
|
733
|
+
className: n(
|
|
734
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
735
|
+
e
|
|
736
|
+
),
|
|
737
|
+
...t
|
|
738
|
+
}
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
function We({ className: e, ...t }) {
|
|
742
|
+
return /* @__PURE__ */ a(
|
|
743
|
+
"li",
|
|
744
|
+
{
|
|
745
|
+
"data-slot": "breadcrumb-item",
|
|
746
|
+
className: n("inline-flex items-center gap-1.5", e),
|
|
747
|
+
...t
|
|
748
|
+
}
|
|
749
|
+
);
|
|
750
|
+
}
|
|
751
|
+
function Ze({
|
|
752
|
+
asChild: e,
|
|
753
|
+
className: t,
|
|
754
|
+
...r
|
|
755
|
+
}) {
|
|
756
|
+
return /* @__PURE__ */ a(
|
|
757
|
+
e ? x : "a",
|
|
758
|
+
{
|
|
759
|
+
"data-slot": "breadcrumb-link",
|
|
760
|
+
className: n("hover:text-secondary transition-colors", t),
|
|
761
|
+
...r
|
|
762
|
+
}
|
|
763
|
+
);
|
|
764
|
+
}
|
|
765
|
+
function $e({ className: e, ...t }) {
|
|
766
|
+
return /* @__PURE__ */ a(
|
|
767
|
+
"span",
|
|
768
|
+
{
|
|
769
|
+
"data-slot": "breadcrumb-page",
|
|
770
|
+
role: "link",
|
|
771
|
+
"aria-disabled": "true",
|
|
772
|
+
"aria-current": "page",
|
|
773
|
+
className: n("text-secondary font-normal", e),
|
|
774
|
+
...t
|
|
775
|
+
}
|
|
776
|
+
);
|
|
777
|
+
}
|
|
778
|
+
function Ke({ children: e, className: t, ...r }) {
|
|
779
|
+
return /* @__PURE__ */ a(
|
|
780
|
+
"li",
|
|
781
|
+
{
|
|
782
|
+
"data-slot": "breadcrumb-separator",
|
|
783
|
+
role: "presentation",
|
|
784
|
+
"aria-hidden": "true",
|
|
785
|
+
className: n("[&>svg]:size-3.5", t),
|
|
786
|
+
...r,
|
|
787
|
+
children: e ?? /* @__PURE__ */ a(A, {})
|
|
788
|
+
}
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
function Je({ className: e, ...t }) {
|
|
792
|
+
return /* @__PURE__ */ u(
|
|
793
|
+
"span",
|
|
794
|
+
{
|
|
795
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
796
|
+
role: "presentation",
|
|
797
|
+
"aria-hidden": "true",
|
|
798
|
+
className: n("flex size-9 items-center justify-center", e),
|
|
799
|
+
...t,
|
|
800
|
+
children: [
|
|
801
|
+
/* @__PURE__ */ a(j, { className: "size-4" }),
|
|
802
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
|
|
803
|
+
]
|
|
804
|
+
}
|
|
805
|
+
);
|
|
806
|
+
}
|
|
807
|
+
function Xe({ className: e, ...t }) {
|
|
808
|
+
return /* @__PURE__ */ a(
|
|
809
|
+
"div",
|
|
810
|
+
{
|
|
811
|
+
"data-slot": "card",
|
|
812
|
+
className: n(
|
|
813
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded border border-subtle shadow-sm",
|
|
814
|
+
e
|
|
815
|
+
),
|
|
816
|
+
...t
|
|
817
|
+
}
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
function Ye({ className: e, ...t }) {
|
|
821
|
+
return /* @__PURE__ */ a(
|
|
822
|
+
"div",
|
|
823
|
+
{
|
|
824
|
+
"data-slot": "card-header",
|
|
825
|
+
className: n(
|
|
826
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 p-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
827
|
+
e
|
|
828
|
+
),
|
|
829
|
+
...t
|
|
830
|
+
}
|
|
831
|
+
);
|
|
832
|
+
}
|
|
833
|
+
function Qe({ className: e, ...t }) {
|
|
834
|
+
return /* @__PURE__ */ a(
|
|
835
|
+
"div",
|
|
836
|
+
{
|
|
837
|
+
"data-slot": "card-title",
|
|
838
|
+
className: n("text-xl font-semibold text-secondary", e),
|
|
839
|
+
...t
|
|
840
|
+
}
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
function Oe({ className: e, ...t }) {
|
|
844
|
+
return /* @__PURE__ */ a(
|
|
845
|
+
"div",
|
|
846
|
+
{
|
|
847
|
+
"data-slot": "card-description",
|
|
848
|
+
className: n("text-muted-foreground text-sm", e),
|
|
849
|
+
...t
|
|
850
|
+
}
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
function et({ className: e, ...t }) {
|
|
854
|
+
return /* @__PURE__ */ a(
|
|
855
|
+
"div",
|
|
856
|
+
{
|
|
857
|
+
"data-slot": "card-action",
|
|
858
|
+
className: n("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
859
|
+
...t
|
|
860
|
+
}
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
function tt({ className: e, ...t }) {
|
|
864
|
+
return /* @__PURE__ */ a("div", { "data-slot": "card-content", className: n("px-6 pb-6", e), ...t });
|
|
865
|
+
}
|
|
866
|
+
function at({ className: e, ...t }) {
|
|
867
|
+
return /* @__PURE__ */ a(
|
|
868
|
+
"div",
|
|
869
|
+
{
|
|
870
|
+
"data-slot": "card-footer",
|
|
871
|
+
className: n("flex items-center px-6 pb-6 [.border-t]:pt-6", e),
|
|
872
|
+
...t
|
|
873
|
+
}
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
var oe = "Label", y = G.forwardRef((e, t) => /* @__PURE__ */ a(
|
|
877
|
+
I.label,
|
|
878
|
+
{
|
|
879
|
+
...e,
|
|
880
|
+
ref: t,
|
|
881
|
+
onMouseDown: (r) => {
|
|
882
|
+
var o;
|
|
883
|
+
r.target.closest("button, input, select, textarea") || ((o = e.onMouseDown) == null || o.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
));
|
|
887
|
+
y.displayName = oe;
|
|
888
|
+
var ie = y;
|
|
889
|
+
function rt({ className: e, ...t }) {
|
|
890
|
+
return /* @__PURE__ */ a(
|
|
891
|
+
ie,
|
|
892
|
+
{
|
|
893
|
+
"data-slot": "label",
|
|
894
|
+
className: n(
|
|
895
|
+
"text-secondary flex items-center gap-2 text-sm font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-70 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
896
|
+
e
|
|
897
|
+
),
|
|
898
|
+
...t
|
|
899
|
+
}
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
function nt({ className: e, ...t }) {
|
|
903
|
+
return /* @__PURE__ */ a(
|
|
904
|
+
"nav",
|
|
905
|
+
{
|
|
906
|
+
role: "navigation",
|
|
907
|
+
"aria-label": "pagination",
|
|
908
|
+
"data-slot": "pagination",
|
|
909
|
+
className: n("mx-auto flex w-full justify-center", e),
|
|
910
|
+
...t
|
|
911
|
+
}
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
function st({ className: e, ...t }) {
|
|
915
|
+
return /* @__PURE__ */ a(
|
|
916
|
+
"ul",
|
|
917
|
+
{
|
|
918
|
+
"data-slot": "pagination-content",
|
|
919
|
+
className: n("flex flex-row items-center gap-1", e),
|
|
920
|
+
...t
|
|
921
|
+
}
|
|
922
|
+
);
|
|
923
|
+
}
|
|
924
|
+
function ot({ ...e }) {
|
|
925
|
+
return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
|
|
926
|
+
}
|
|
927
|
+
function k({
|
|
928
|
+
className: e,
|
|
929
|
+
isActive: t,
|
|
930
|
+
size: r = "icon",
|
|
931
|
+
children: s,
|
|
932
|
+
...o
|
|
933
|
+
}) {
|
|
934
|
+
return /* @__PURE__ */ a(
|
|
935
|
+
"a",
|
|
936
|
+
{
|
|
937
|
+
"aria-current": t ? "page" : void 0,
|
|
938
|
+
"data-slot": "pagination-link",
|
|
939
|
+
"data-active": t,
|
|
940
|
+
"aria-label": s ? void 0 : `Go to page ${s}`,
|
|
941
|
+
className: n(
|
|
942
|
+
S({
|
|
943
|
+
variant: t ? "outline" : "ghost",
|
|
944
|
+
size: r
|
|
945
|
+
}),
|
|
946
|
+
e
|
|
947
|
+
),
|
|
948
|
+
...o,
|
|
949
|
+
children: s
|
|
950
|
+
}
|
|
951
|
+
);
|
|
952
|
+
}
|
|
953
|
+
function it({ className: e, ...t }) {
|
|
954
|
+
return /* @__PURE__ */ u(
|
|
955
|
+
k,
|
|
956
|
+
{
|
|
957
|
+
"aria-label": "Go to previous page",
|
|
958
|
+
size: "default",
|
|
959
|
+
className: n("gap-1 px-2.5 sm:pl-2.5", e),
|
|
960
|
+
...t,
|
|
961
|
+
children: [
|
|
962
|
+
/* @__PURE__ */ a(R, {}),
|
|
963
|
+
/* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Previous" })
|
|
964
|
+
]
|
|
965
|
+
}
|
|
966
|
+
);
|
|
967
|
+
}
|
|
968
|
+
function lt({ className: e, ...t }) {
|
|
969
|
+
return /* @__PURE__ */ u(
|
|
970
|
+
k,
|
|
971
|
+
{
|
|
972
|
+
"aria-label": "Go to next page",
|
|
973
|
+
size: "default",
|
|
974
|
+
className: n("gap-1 px-2.5 sm:pr-2.5", e),
|
|
975
|
+
...t,
|
|
976
|
+
children: [
|
|
977
|
+
/* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Next" }),
|
|
978
|
+
/* @__PURE__ */ a(B, {})
|
|
979
|
+
]
|
|
980
|
+
}
|
|
981
|
+
);
|
|
982
|
+
}
|
|
983
|
+
function dt({ className: e, ...t }) {
|
|
984
|
+
return /* @__PURE__ */ u(
|
|
985
|
+
"span",
|
|
986
|
+
{
|
|
987
|
+
"aria-hidden": !0,
|
|
988
|
+
"data-slot": "pagination-ellipsis",
|
|
989
|
+
className: n("flex size-9 items-center justify-center", e),
|
|
990
|
+
...t,
|
|
991
|
+
children: [
|
|
992
|
+
/* @__PURE__ */ a(D, { className: "size-4" }),
|
|
993
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
|
|
994
|
+
]
|
|
995
|
+
}
|
|
996
|
+
);
|
|
997
|
+
}
|
|
998
|
+
function ct({ className: e, ...t }) {
|
|
999
|
+
return /* @__PURE__ */ a("div", { "data-slot": "table-wrapper", className: "relative w-full overflow-auto", children: /* @__PURE__ */ a(
|
|
1000
|
+
"table",
|
|
1001
|
+
{
|
|
1002
|
+
"data-slot": "table",
|
|
1003
|
+
className: n("w-full caption-bottom text-sm", e),
|
|
1004
|
+
...t
|
|
1005
|
+
}
|
|
1006
|
+
) });
|
|
1007
|
+
}
|
|
1008
|
+
function ut({ className: e, ...t }) {
|
|
1009
|
+
return /* @__PURE__ */ a("thead", { "data-slot": "table-header", className: n("[&_tr]:border-b", e), ...t });
|
|
1010
|
+
}
|
|
1011
|
+
function pt({ className: e, ...t }) {
|
|
1012
|
+
return /* @__PURE__ */ a(
|
|
1013
|
+
"tbody",
|
|
1014
|
+
{
|
|
1015
|
+
"data-slot": "table-body",
|
|
1016
|
+
className: n("[&_tr:last-child]:border-0", e),
|
|
1017
|
+
...t
|
|
1018
|
+
}
|
|
1019
|
+
);
|
|
1020
|
+
}
|
|
1021
|
+
function mt({ className: e, ...t }) {
|
|
1022
|
+
return /* @__PURE__ */ a(
|
|
1023
|
+
"tfoot",
|
|
1024
|
+
{
|
|
1025
|
+
"data-slot": "table-footer",
|
|
1026
|
+
className: n("bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1027
|
+
...t
|
|
1028
|
+
}
|
|
1029
|
+
);
|
|
1030
|
+
}
|
|
1031
|
+
function gt({ className: e, ...t }) {
|
|
1032
|
+
return /* @__PURE__ */ a(
|
|
1033
|
+
"tr",
|
|
1034
|
+
{
|
|
1035
|
+
"data-slot": "table-row",
|
|
1036
|
+
className: n(
|
|
1037
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
1038
|
+
e
|
|
1039
|
+
),
|
|
1040
|
+
...t
|
|
1041
|
+
}
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
function ft({ className: e, ...t }) {
|
|
1045
|
+
return /* @__PURE__ */ a(
|
|
1046
|
+
"th",
|
|
1047
|
+
{
|
|
1048
|
+
"data-slot": "table-head",
|
|
1049
|
+
className: n(
|
|
1050
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
1051
|
+
e
|
|
1052
|
+
),
|
|
1053
|
+
...t
|
|
1054
|
+
}
|
|
1055
|
+
);
|
|
1056
|
+
}
|
|
1057
|
+
function xt({ className: e, ...t }) {
|
|
1058
|
+
return /* @__PURE__ */ a(
|
|
1059
|
+
"td",
|
|
1060
|
+
{
|
|
1061
|
+
"data-slot": "table-cell",
|
|
1062
|
+
className: n("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
1063
|
+
...t
|
|
1064
|
+
}
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
function bt({ className: e, ...t }) {
|
|
1068
|
+
return /* @__PURE__ */ a(
|
|
1069
|
+
"caption",
|
|
1070
|
+
{
|
|
1071
|
+
"data-slot": "table-caption",
|
|
1072
|
+
className: n("mt-4 text-sm text-muted-foreground", e),
|
|
1073
|
+
...t
|
|
1074
|
+
}
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1077
|
+
function le({ className: e, ...t }) {
|
|
1078
|
+
return /* @__PURE__ */ a(
|
|
1079
|
+
"textarea",
|
|
1080
|
+
{
|
|
1081
|
+
"data-slot": "textarea",
|
|
1082
|
+
className: n(
|
|
1083
|
+
"border-subtle text-secondary bg-background placeholder:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-sm border 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 disabled:placeholder:text-secondary-foreground md:text-sm",
|
|
1084
|
+
e
|
|
1085
|
+
),
|
|
1086
|
+
...t
|
|
1087
|
+
}
|
|
1088
|
+
);
|
|
1089
|
+
}
|
|
774
1090
|
export {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
1091
|
+
Le as Alert,
|
|
1092
|
+
He as AlertDescription,
|
|
1093
|
+
Ve as AlertTitle,
|
|
1094
|
+
wt as AuroraText,
|
|
1095
|
+
Fe as Badge,
|
|
1096
|
+
p as Box,
|
|
1097
|
+
Ue as Breadcrumb,
|
|
1098
|
+
Je as BreadcrumbEllipsis,
|
|
1099
|
+
We as BreadcrumbItem,
|
|
1100
|
+
Ze as BreadcrumbLink,
|
|
1101
|
+
qe as BreadcrumbList,
|
|
1102
|
+
$e as BreadcrumbPage,
|
|
1103
|
+
Ke as BreadcrumbSeparator,
|
|
1104
|
+
_ as Button,
|
|
1105
|
+
Xe as Card,
|
|
1106
|
+
et as CardAction,
|
|
1107
|
+
tt as CardContent,
|
|
1108
|
+
Oe as CardDescription,
|
|
1109
|
+
at as CardFooter,
|
|
1110
|
+
Ye as CardHeader,
|
|
1111
|
+
Qe as CardTitle,
|
|
1112
|
+
xe as Container,
|
|
1113
|
+
we as ExternalLink,
|
|
1114
|
+
be as Flex,
|
|
1115
|
+
Re as FormattedDate,
|
|
1116
|
+
Be as FormattedNumber,
|
|
1117
|
+
ve as Grid,
|
|
1118
|
+
he as Heading,
|
|
1119
|
+
E as Input,
|
|
1120
|
+
ze as InputGroup,
|
|
1121
|
+
_e as InputGroupAddon,
|
|
1122
|
+
Ee as InputGroupButton,
|
|
1123
|
+
Te as InputGroupInput,
|
|
1124
|
+
Pe as InputGroupText,
|
|
1125
|
+
Ie as InputGroupTextarea,
|
|
1126
|
+
rt as Label,
|
|
1127
|
+
De as LanguageSelector,
|
|
1128
|
+
Ge as Marquee,
|
|
1129
|
+
nt as Pagination,
|
|
1130
|
+
st as PaginationContent,
|
|
1131
|
+
dt as PaginationEllipsis,
|
|
1132
|
+
ot as PaginationItem,
|
|
1133
|
+
k as PaginationLink,
|
|
1134
|
+
lt as PaginationNext,
|
|
1135
|
+
it as PaginationPrevious,
|
|
1136
|
+
Ne as Paragraph,
|
|
1137
|
+
ye as Section,
|
|
1138
|
+
Y as Select,
|
|
1139
|
+
ee as SelectContent,
|
|
1140
|
+
Se as SelectGroup,
|
|
1141
|
+
te as SelectItem,
|
|
1142
|
+
Ce as SelectLabel,
|
|
1143
|
+
re as SelectScrollDownButton,
|
|
1144
|
+
ae as SelectScrollUpButton,
|
|
1145
|
+
Me as SelectSeparator,
|
|
1146
|
+
O as SelectTrigger,
|
|
1147
|
+
Q as SelectValue,
|
|
1148
|
+
Nt as Separator,
|
|
1149
|
+
yt as Skeleton,
|
|
1150
|
+
ke as Stack,
|
|
1151
|
+
ct as Table,
|
|
1152
|
+
pt as TableBody,
|
|
1153
|
+
bt as TableCaption,
|
|
1154
|
+
xt as TableCell,
|
|
1155
|
+
mt as TableFooter,
|
|
1156
|
+
ft as TableHead,
|
|
1157
|
+
ut as TableHeader,
|
|
1158
|
+
gt as TableRow,
|
|
1159
|
+
m as Text,
|
|
1160
|
+
le as Textarea,
|
|
1161
|
+
je as TranslatedHtml,
|
|
1162
|
+
Ae as TranslatedText
|
|
804
1163
|
};
|