@plyaz/ui 0.4.1 → 0.4.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.
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/components/AuroraText/AuroraText.d.ts +10 -0
- package/dist/types/components/AuroraText/AuroraText.d.ts.map +1 -0
- package/dist/types/components/AuroraText/AuroraText.stories.d.ts +10 -0
- package/dist/types/components/AuroraText/AuroraText.stories.d.ts.map +1 -0
- package/dist/types/components/Box/Box.d.ts.map +1 -1
- package/dist/types/components/Box/Box.stories.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +7 -0
- package/dist/types/components/Button/Button.d.ts.map +1 -0
- package/dist/types/components/Button/Button.stories.d.ts +14 -0
- package/dist/types/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/types/components/Container/Container.d.ts.map +1 -1
- package/dist/types/components/Container/Container.stories.d.ts.map +1 -1
- package/dist/types/components/ExternalLink/ExternalLink.d.ts.map +1 -1
- package/dist/types/components/ExternalLink/ExternalLink.stories.d.ts.map +1 -1
- package/dist/types/components/Flex/Flex.stories.d.ts.map +1 -1
- package/dist/types/components/Form/FormComposition.d.ts +1 -1
- package/dist/types/components/Form/FormComposition.d.ts.map +1 -1
- package/dist/types/components/Form/LoginForm.d.ts.map +1 -1
- package/dist/types/components/Form/SignupForm.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.d.ts +4 -4
- package/dist/types/components/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +3 -0
- package/dist/types/components/Input/Input.d.ts.map +1 -0
- package/dist/types/components/Input/Input.stories.d.ts +10 -0
- package/dist/types/components/Input/Input.stories.d.ts.map +1 -0
- package/dist/types/components/Layout/Layout.d.ts.map +1 -1
- package/dist/types/components/Paragraph/Paragraph.d.ts.map +1 -1
- package/dist/types/components/Section/Section.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts +16 -0
- package/dist/types/components/Select/Select.d.ts.map +1 -0
- package/dist/types/components/Select/Select.stories.d.ts +11 -0
- package/dist/types/components/Select/Select.stories.d.ts.map +1 -0
- package/dist/types/components/Stack/Stack.d.ts +1 -1
- package/dist/types/components/Stack/Stack.d.ts.map +1 -1
- package/dist/types/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/components/Text/Text.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts.map +1 -1
- package/dist/types/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +12 -8
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/types/lib/utils.d.ts +3 -0
- package/dist/types/lib/utils.d.ts.map +1 -0
- package/dist/types/types/type.d.ts +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.cjs10.js +1 -1
- package/dist/ui.cjs11.js +1 -1
- package/dist/ui.cjs12.js +1 -1
- package/dist/ui.cjs13.js +19 -1
- package/dist/ui.cjs14.js +7 -1
- package/dist/ui.cjs15.js +53 -1
- package/dist/ui.cjs16.js +1 -1
- package/dist/ui.cjs17.js +1 -9
- package/dist/ui.cjs18.js +31 -14
- package/dist/ui.cjs19.js +1 -1
- package/dist/ui.cjs2.js +1 -1
- package/dist/ui.cjs20.js +1 -1
- package/dist/ui.cjs21.js +1 -0
- package/dist/ui.cjs22.js +6 -0
- package/dist/ui.cjs23.js +6 -0
- package/dist/ui.cjs24.js +6 -0
- package/dist/ui.cjs25.js +1 -0
- package/dist/ui.cjs26.js +1 -0
- package/dist/ui.cjs27.js +9 -0
- package/dist/ui.cjs28.js +14 -0
- package/dist/ui.cjs29.js +1 -0
- package/dist/ui.cjs3.js +2 -2
- package/dist/ui.cjs30.js +1 -0
- package/dist/ui.cjs31.js +1 -0
- package/dist/ui.cjs32.js +1 -0
- package/dist/ui.cjs33.js +1 -0
- package/dist/ui.cjs34.js +1 -0
- package/dist/ui.cjs35.js +1 -0
- package/dist/ui.cjs36.js +1 -0
- package/dist/ui.cjs37.js +1 -0
- package/dist/ui.cjs38.js +1 -0
- package/dist/ui.cjs39.js +1 -0
- package/dist/ui.cjs4.js +1 -1
- package/dist/ui.cjs40.js +1 -0
- package/dist/ui.cjs41.js +1 -0
- package/dist/ui.cjs42.js +1 -0
- package/dist/ui.cjs43.js +1 -0
- package/dist/ui.cjs44.js +1 -0
- package/dist/ui.cjs45.js +1 -0
- package/dist/ui.cjs46.js +1 -0
- package/dist/ui.cjs47.js +1 -0
- package/dist/ui.cjs48.js +1 -0
- package/dist/ui.cjs49.js +1 -0
- package/dist/ui.cjs5.js +1 -1
- package/dist/ui.cjs50.js +1 -0
- package/dist/ui.cjs51.js +1 -0
- package/dist/ui.cjs52.js +1 -0
- package/dist/ui.cjs53.js +1 -0
- package/dist/ui.cjs54.js +1 -0
- package/dist/ui.cjs55.js +1 -0
- package/dist/ui.cjs56.js +1 -0
- package/dist/ui.cjs57.js +1 -0
- package/dist/ui.cjs58.js +6 -0
- package/dist/ui.cjs59.js +6 -0
- package/dist/ui.cjs6.js +1 -1
- package/dist/ui.cjs60.js +6 -0
- package/dist/ui.cjs61.js +6 -0
- package/dist/ui.cjs62.js +1 -0
- package/dist/ui.cjs63.js +1 -0
- package/dist/ui.cjs64.js +1 -0
- package/dist/ui.cjs65.js +1 -0
- package/dist/ui.cjs66.js +1 -0
- package/dist/ui.cjs67.js +1 -0
- package/dist/ui.cjs68.js +4 -0
- package/dist/ui.cjs69.js +1 -0
- package/dist/ui.cjs7.js +1 -1
- package/dist/ui.cjs70.js +1 -0
- package/dist/ui.cjs71.js +1 -0
- package/dist/ui.cjs72.js +1 -0
- package/dist/ui.cjs73.js +38 -0
- package/dist/ui.cjs74.js +1 -0
- package/dist/ui.cjs75.js +1 -0
- package/dist/ui.cjs76.js +1 -0
- package/dist/ui.cjs77.js +1 -0
- package/dist/ui.cjs78.js +1 -0
- package/dist/ui.cjs79.js +1 -0
- package/dist/ui.cjs8.js +1 -1
- package/dist/ui.cjs80.js +1 -0
- package/dist/ui.cjs81.js +1 -0
- package/dist/ui.cjs82.js +1 -0
- package/dist/ui.cjs83.js +1 -0
- package/dist/ui.cjs9.js +2 -2
- package/dist/ui.es.js +37 -20
- package/dist/ui.es10.js +8 -15
- package/dist/ui.es11.js +4 -4
- package/dist/ui.es12.js +23 -3
- package/dist/ui.es13.js +37 -14
- package/dist/ui.es14.js +44 -44
- package/dist/ui.es15.js +205 -7
- package/dist/ui.es16.js +3 -2
- package/dist/ui.es17.js +14 -32
- package/dist/ui.es18.js +98 -243
- package/dist/ui.es19.js +51 -2
- package/dist/ui.es2.js +2 -7
- package/dist/ui.es20.js +6 -2
- package/dist/ui.es21.js +863 -0
- package/dist/ui.es22.js +12 -0
- package/dist/ui.es23.js +12 -0
- package/dist/ui.es24.js +12 -0
- package/dist/ui.es25.js +10 -0
- package/dist/ui.es26.js +4 -0
- package/dist/ui.es27.js +35 -0
- package/dist/ui.es28.js +247 -0
- package/dist/ui.es29.js +35 -0
- package/dist/ui.es3.js +11 -15
- package/dist/ui.es30.js +29 -0
- package/dist/ui.es31.js +2731 -0
- package/dist/ui.es32.js +6 -0
- package/dist/ui.es33.js +9 -0
- package/dist/ui.es34.js +48 -0
- package/dist/ui.es35.js +55 -0
- package/dist/ui.es36.js +10 -0
- package/dist/ui.es37.js +127 -0
- package/dist/ui.es38.js +17 -0
- package/dist/ui.es39.js +137 -0
- package/dist/ui.es4.js +7 -6
- package/dist/ui.es40.js +13 -0
- package/dist/ui.es41.js +220 -0
- package/dist/ui.es42.js +16 -0
- package/dist/ui.es43.js +36 -0
- package/dist/ui.es44.js +13 -0
- package/dist/ui.es45.js +54 -0
- package/dist/ui.es46.js +6 -0
- package/dist/ui.es47.js +8 -0
- package/dist/ui.es48.js +30 -0
- package/dist/ui.es49.js +52 -0
- package/dist/ui.es5.js +13 -12
- package/dist/ui.es50.js +11 -0
- package/dist/ui.es51.js +4 -0
- package/dist/ui.es52.js +4 -0
- package/dist/ui.es53.js +14 -0
- package/dist/ui.es54.js +208 -0
- package/dist/ui.es55.js +24 -0
- package/dist/ui.es56.js +27 -0
- package/dist/ui.es57.js +400 -0
- package/dist/ui.es58.js +27 -0
- package/dist/ui.es59.js +24 -0
- package/dist/ui.es6.js +10 -15
- package/dist/ui.es60.js +41 -0
- package/dist/ui.es61.js +20 -0
- package/dist/ui.es62.js +27 -0
- package/dist/ui.es63.js +31 -0
- package/dist/ui.es64.js +7 -0
- package/dist/ui.es65.js +7 -0
- package/dist/ui.es66.js +5 -0
- package/dist/ui.es67.js +26 -0
- package/dist/ui.es68.js +112 -0
- package/dist/ui.es69.js +18 -0
- package/dist/ui.es7.js +3 -8
- package/dist/ui.es70.js +527 -0
- package/dist/ui.es71.js +130 -0
- package/dist/ui.es72.js +136 -0
- package/dist/ui.es73.js +71 -0
- package/dist/ui.es74.js +11 -0
- package/dist/ui.es75.js +16 -0
- package/dist/ui.es76.js +68 -0
- package/dist/ui.es77.js +67 -0
- package/dist/ui.es78.js +6 -0
- package/dist/ui.es79.js +25 -0
- package/dist/ui.es8.js +7 -11
- package/dist/ui.es80.js +25 -0
- package/dist/ui.es81.js +15 -0
- package/dist/ui.es82.js +30 -0
- package/dist/ui.es83.js +7 -0
- package/dist/ui.es9.js +9 -12
- package/package.json +16 -9
package/dist/ui.es15.js
CHANGED
|
@@ -1,10 +1,208 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as e } from "./ui.es16.js";
|
|
2
|
+
import { Root as l, Portal as i, Content as d, Viewport as c, Group as u, Item as p, ItemIndicator as m, ItemText as x, Label as f, ScrollDownButton as g, ScrollUpButton as v, Separator as h, Trigger as b, Icon as j, Value as w } from "./ui.es21.js";
|
|
3
|
+
import { cn as s } from "./ui.es20.js";
|
|
4
|
+
import y from "./ui.es22.js";
|
|
5
|
+
import n from "./ui.es23.js";
|
|
6
|
+
import S from "./ui.es24.js";
|
|
7
|
+
function R({ ...t }) {
|
|
8
|
+
return /* @__PURE__ */ e.jsx(l, { "data-slot": "select", ...t });
|
|
9
|
+
}
|
|
10
|
+
function T({ ...t }) {
|
|
11
|
+
return /* @__PURE__ */ e.jsx(u, { "data-slot": "select-group", ...t });
|
|
12
|
+
}
|
|
13
|
+
function U({ ...t }) {
|
|
14
|
+
return /* @__PURE__ */ e.jsx(w, { "data-slot": "select-value", ...t });
|
|
15
|
+
}
|
|
16
|
+
function V({
|
|
17
|
+
className: t,
|
|
18
|
+
size: a = "default",
|
|
19
|
+
children: r,
|
|
20
|
+
...o
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ e.jsxs(
|
|
23
|
+
b,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "select-trigger",
|
|
26
|
+
"data-size": a,
|
|
27
|
+
className: s(
|
|
28
|
+
`
|
|
29
|
+
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
30
|
+
border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
|
|
31
|
+
shadow-xs transition-[color,box-shadow] outline-none
|
|
32
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
33
|
+
focus-visible:ring-ring/50
|
|
34
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
35
|
+
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
36
|
+
data-[placeholder]:text-muted-foreground
|
|
37
|
+
data-[size=default]:h-9
|
|
38
|
+
data-[size=sm]:h-8
|
|
39
|
+
*:data-[slot=select-value]:line-clamp-1
|
|
40
|
+
*:data-[slot=select-value]:flex
|
|
41
|
+
*:data-[slot=select-value]:items-center
|
|
42
|
+
*:data-[slot=select-value]:gap-2
|
|
43
|
+
dark:bg-input/30 dark:hover:bg-input/50
|
|
44
|
+
dark:aria-invalid:ring-destructive/40
|
|
45
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
46
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
47
|
+
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
48
|
+
`,
|
|
49
|
+
t
|
|
50
|
+
),
|
|
51
|
+
...o,
|
|
52
|
+
children: [
|
|
53
|
+
r,
|
|
54
|
+
/* @__PURE__ */ e.jsx(j, { asChild: !0, children: /* @__PURE__ */ e.jsx(n, { className: "size-4 opacity-50" }) })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
function G({
|
|
60
|
+
className: t,
|
|
61
|
+
children: a,
|
|
62
|
+
position: r = "popper",
|
|
63
|
+
...o
|
|
64
|
+
}) {
|
|
65
|
+
return /* @__PURE__ */ e.jsx(i, { "data-testid": "select", children: /* @__PURE__ */ e.jsxs(
|
|
66
|
+
d,
|
|
67
|
+
{
|
|
68
|
+
"data-slot": "select-content",
|
|
69
|
+
className: s(
|
|
70
|
+
`
|
|
71
|
+
relative z-50 max-h-(--radix-select-content-available-height)
|
|
72
|
+
min-w-[8rem] origin-(--radix-select-content-transform-origin)
|
|
73
|
+
overflow-x-hidden overflow-y-auto rounded-md border bg-popover
|
|
74
|
+
text-popover-foreground shadow-md
|
|
75
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
76
|
+
data-[side=left]:slide-in-from-right-2
|
|
77
|
+
data-[side=right]:slide-in-from-left-2
|
|
78
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
79
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
80
|
+
data-[state=closed]:zoom-out-95
|
|
81
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
82
|
+
data-[state=open]:zoom-in-95
|
|
83
|
+
`,
|
|
84
|
+
r === "popper" && `
|
|
85
|
+
data-[side=bottom]:translate-y-1
|
|
86
|
+
data-[side=left]:-translate-x-1
|
|
87
|
+
data-[side=right]:translate-x-1
|
|
88
|
+
data-[side=top]:-translate-y-1
|
|
89
|
+
`,
|
|
90
|
+
t
|
|
91
|
+
),
|
|
92
|
+
position: r,
|
|
93
|
+
...o,
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ e.jsx(z, {}),
|
|
96
|
+
/* @__PURE__ */ e.jsx(
|
|
97
|
+
c,
|
|
98
|
+
{
|
|
99
|
+
className: s(
|
|
100
|
+
"p-1",
|
|
101
|
+
r === "popper" && `
|
|
102
|
+
h-[var(--radix-select-trigger-height)] w-full
|
|
103
|
+
min-w-[var(--radix-select-trigger-width)] scroll-my-1
|
|
104
|
+
`
|
|
105
|
+
),
|
|
106
|
+
children: a
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ e.jsx(N, {})
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
) });
|
|
113
|
+
}
|
|
114
|
+
function L({ className: t, ...a }) {
|
|
115
|
+
return /* @__PURE__ */ e.jsx(
|
|
116
|
+
f,
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "select-label",
|
|
119
|
+
className: s("px-2 py-1.5 text-xs text-muted-foreground", t),
|
|
120
|
+
...a
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function E({
|
|
125
|
+
className: t,
|
|
126
|
+
children: a,
|
|
127
|
+
...r
|
|
128
|
+
}) {
|
|
129
|
+
return /* @__PURE__ */ e.jsxs(
|
|
130
|
+
p,
|
|
131
|
+
{
|
|
132
|
+
"data-slot": "select-item",
|
|
133
|
+
className: s(
|
|
134
|
+
`
|
|
135
|
+
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
136
|
+
py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
|
|
137
|
+
focus:bg-accent focus:text-accent-foreground
|
|
138
|
+
data-[disabled]:pointer-events-none data-[disabled]:opacity-50
|
|
139
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
140
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
141
|
+
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
142
|
+
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
143
|
+
`,
|
|
144
|
+
t
|
|
145
|
+
),
|
|
146
|
+
...r,
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ e.jsx("span", { className: `
|
|
149
|
+
absolute right-2 flex size-3.5 items-center justify-center
|
|
150
|
+
`, children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(y, { className: "size-4" }) }) }),
|
|
151
|
+
/* @__PURE__ */ e.jsx(x, { children: a })
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
function P({
|
|
157
|
+
className: t,
|
|
158
|
+
...a
|
|
159
|
+
}) {
|
|
160
|
+
return /* @__PURE__ */ e.jsx(
|
|
161
|
+
h,
|
|
162
|
+
{
|
|
163
|
+
"data-slot": "select-separator",
|
|
164
|
+
className: s("pointer-events-none -mx-1 my-1 h-px bg-border", t),
|
|
165
|
+
...a
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
function z({
|
|
170
|
+
className: t,
|
|
171
|
+
...a
|
|
172
|
+
}) {
|
|
173
|
+
return /* @__PURE__ */ e.jsx(
|
|
174
|
+
v,
|
|
175
|
+
{
|
|
176
|
+
"data-slot": "select-scroll-up-button",
|
|
177
|
+
className: s("flex cursor-default items-center justify-center py-1", t),
|
|
178
|
+
...a,
|
|
179
|
+
children: /* @__PURE__ */ e.jsx(S, { className: "size-4" })
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
function N({
|
|
184
|
+
className: t,
|
|
185
|
+
...a
|
|
186
|
+
}) {
|
|
187
|
+
return /* @__PURE__ */ e.jsx(
|
|
188
|
+
g,
|
|
189
|
+
{
|
|
190
|
+
"data-slot": "select-scroll-down-button",
|
|
191
|
+
className: s("flex cursor-default items-center justify-center py-1", t),
|
|
192
|
+
...a,
|
|
193
|
+
children: /* @__PURE__ */ e.jsx(n, { className: "size-4" })
|
|
194
|
+
}
|
|
195
|
+
);
|
|
7
196
|
}
|
|
8
197
|
export {
|
|
9
|
-
|
|
198
|
+
R as Select,
|
|
199
|
+
G as SelectContent,
|
|
200
|
+
T as SelectGroup,
|
|
201
|
+
E as SelectItem,
|
|
202
|
+
L as SelectLabel,
|
|
203
|
+
N as SelectScrollDownButton,
|
|
204
|
+
z as SelectScrollUpButton,
|
|
205
|
+
P as SelectSeparator,
|
|
206
|
+
V as SelectTrigger,
|
|
207
|
+
U as SelectValue
|
|
10
208
|
};
|
package/dist/ui.es16.js
CHANGED
package/dist/ui.es17.js
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
if (s) return e;
|
|
14
|
-
s = 1;
|
|
15
|
-
var i = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
|
|
16
|
-
function o(l, r, t) {
|
|
17
|
-
var u = null;
|
|
18
|
-
if (t !== void 0 && (u = "" + t), r.key !== void 0 && (u = "" + r.key), "key" in r) {
|
|
19
|
-
t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
n !== "key" && (t[n] = r[n]);
|
|
22
|
-
} else t = r;
|
|
23
|
-
return r = t.ref, {
|
|
24
|
-
$$typeof: i,
|
|
25
|
-
type: l,
|
|
26
|
-
key: u,
|
|
27
|
-
ref: r !== void 0 ? r : null,
|
|
28
|
-
props: t
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return e.Fragment = _, e.jsx = o, e.jsxs = o, e;
|
|
1
|
+
function a(r) {
|
|
2
|
+
var n, f, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (n = 0; n < o; n++) r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
|
|
7
|
+
} else for (f in r) r[f] && (t && (t += " "), t += f);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++) (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
|
|
12
|
+
return t;
|
|
32
13
|
}
|
|
33
14
|
export {
|
|
34
|
-
|
|
15
|
+
i as clsx,
|
|
16
|
+
i as default
|
|
35
17
|
};
|
package/dist/ui.es18.js
CHANGED
|
@@ -1,247 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { cva as e } from "./ui.es29.js";
|
|
2
|
+
const s = {
|
|
3
|
+
start: "justify-start",
|
|
4
|
+
end: "justify-end",
|
|
5
|
+
center: "justify-center",
|
|
6
|
+
between: "justify-between",
|
|
7
|
+
around: "justify-around",
|
|
8
|
+
evenly: "justify-evenly",
|
|
9
|
+
stretch: "justify-stretch"
|
|
10
|
+
}, n = {
|
|
11
|
+
start: "items-start",
|
|
12
|
+
end: "items-end",
|
|
13
|
+
center: "items-center",
|
|
14
|
+
baseline: "items-baseline",
|
|
15
|
+
stretch: "items-stretch"
|
|
16
|
+
}, r = {
|
|
17
|
+
body: "font-sans",
|
|
18
|
+
heading: "font-sans",
|
|
19
|
+
caption: "font-sans"
|
|
20
|
+
}, i = {
|
|
21
|
+
xs: "text-xs",
|
|
22
|
+
sm: "text-sm",
|
|
23
|
+
base: "text-base",
|
|
24
|
+
lg: "text-lg",
|
|
25
|
+
xl: "text-xl",
|
|
26
|
+
"2xl": "text-2xl",
|
|
27
|
+
"3xl": "text-3xl",
|
|
28
|
+
"4xl": "text-4xl",
|
|
29
|
+
"5xl": "text-5xl",
|
|
30
|
+
"6xl": "text-6xl",
|
|
31
|
+
"7xl": "text-7xl",
|
|
32
|
+
"8xl": "text-8xl",
|
|
33
|
+
"9xl": "text-9xl"
|
|
34
|
+
}, o = {
|
|
35
|
+
normal: "font-normal",
|
|
36
|
+
medium: "font-medium",
|
|
37
|
+
semibold: "font-semibold",
|
|
38
|
+
bold: "font-bold",
|
|
39
|
+
light: "font-light"
|
|
40
|
+
}, a = e(
|
|
41
|
+
"inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",
|
|
42
|
+
{
|
|
43
|
+
variants: {
|
|
44
|
+
variant: {
|
|
45
|
+
default: `
|
|
46
|
+
bg-primary text-primary-foreground shadow-xs
|
|
47
|
+
hover:bg-primary/90
|
|
48
|
+
`,
|
|
49
|
+
destructive: `
|
|
50
|
+
bg-destructive text-white shadow-xs
|
|
51
|
+
hover:bg-destructive/90
|
|
52
|
+
focus-visible:ring-destructive/20
|
|
53
|
+
dark:bg-destructive/60 dark:focus-visible:ring-destructive/40
|
|
54
|
+
`,
|
|
55
|
+
outline: `
|
|
56
|
+
border bg-background shadow-xs
|
|
57
|
+
hover:bg-accent hover:text-accent-foreground
|
|
58
|
+
dark:border-input dark:bg-input/30 dark:hover:bg-input/50
|
|
59
|
+
`,
|
|
60
|
+
secondary: `
|
|
61
|
+
bg-secondary text-secondary-foreground shadow-xs
|
|
62
|
+
hover:bg-secondary/80
|
|
63
|
+
`,
|
|
64
|
+
ghost: `
|
|
65
|
+
hover:bg-accent hover:text-accent-foreground
|
|
66
|
+
dark:hover:bg-accent/50
|
|
67
|
+
`,
|
|
68
|
+
link: `
|
|
69
|
+
text-primary underline-offset-4
|
|
70
|
+
hover:underline
|
|
71
|
+
`
|
|
72
|
+
},
|
|
73
|
+
size: {
|
|
74
|
+
default: `
|
|
75
|
+
h-9 px-4 py-2
|
|
76
|
+
has-[>svg]:px-3
|
|
77
|
+
`,
|
|
78
|
+
sm: `
|
|
79
|
+
h-8 gap-1.5 rounded-md px-3
|
|
80
|
+
has-[>svg]:px-2.5
|
|
81
|
+
`,
|
|
82
|
+
lg: `
|
|
83
|
+
h-10 rounded-md px-6
|
|
84
|
+
has-[>svg]:px-4
|
|
85
|
+
`,
|
|
86
|
+
icon: "size-9"
|
|
33
87
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
case D:
|
|
39
|
-
return "Portal";
|
|
40
|
-
case U:
|
|
41
|
-
return (e.displayName || "Context") + ".Provider";
|
|
42
|
-
case L:
|
|
43
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
44
|
-
case M:
|
|
45
|
-
var r = e.render;
|
|
46
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
47
|
-
case q:
|
|
48
|
-
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
49
|
-
case A:
|
|
50
|
-
r = e._payload, e = e._init;
|
|
51
|
-
try {
|
|
52
|
-
return l(e(r));
|
|
53
|
-
} catch {
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return null;
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: {
|
|
90
|
+
variant: "default",
|
|
91
|
+
size: "default"
|
|
57
92
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
function v(e) {
|
|
62
|
-
try {
|
|
63
|
-
T(e);
|
|
64
|
-
var r = !1;
|
|
65
|
-
} catch {
|
|
66
|
-
r = !0;
|
|
67
|
-
}
|
|
68
|
-
if (r) {
|
|
69
|
-
r = console;
|
|
70
|
-
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
71
|
-
return t.call(
|
|
72
|
-
r,
|
|
73
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
74
|
-
n
|
|
75
|
-
), T(e);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function f(e) {
|
|
79
|
-
if (e === m) return "<>";
|
|
80
|
-
if (typeof e == "object" && e !== null && e.$$typeof === A)
|
|
81
|
-
return "<...>";
|
|
82
|
-
try {
|
|
83
|
-
var r = l(e);
|
|
84
|
-
return r ? "<" + r + ">" : "<...>";
|
|
85
|
-
} catch {
|
|
86
|
-
return "<...>";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function C() {
|
|
90
|
-
var e = b.A;
|
|
91
|
-
return e === null ? null : e.getOwner();
|
|
92
|
-
}
|
|
93
|
-
function p() {
|
|
94
|
-
return Error("react-stack-top-frame");
|
|
95
|
-
}
|
|
96
|
-
function x(e) {
|
|
97
|
-
if (S.call(e, "key")) {
|
|
98
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
99
|
-
if (r && r.isReactWarning) return !1;
|
|
100
|
-
}
|
|
101
|
-
return e.key !== void 0;
|
|
102
|
-
}
|
|
103
|
-
function Y(e, r) {
|
|
104
|
-
function t() {
|
|
105
|
-
w || (w = !0, console.error(
|
|
106
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
107
|
-
r
|
|
108
|
-
));
|
|
109
|
-
}
|
|
110
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
111
|
-
get: t,
|
|
112
|
-
configurable: !0
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
function I() {
|
|
116
|
-
var e = l(this.type);
|
|
117
|
-
return P[e] || (P[e] = !0, console.error(
|
|
118
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
119
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
120
|
-
}
|
|
121
|
-
function $(e, r, t, n, c, o, E, _) {
|
|
122
|
-
return t = o.ref, e = {
|
|
123
|
-
$$typeof: g,
|
|
124
|
-
type: e,
|
|
125
|
-
key: r,
|
|
126
|
-
props: o,
|
|
127
|
-
_owner: c
|
|
128
|
-
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
129
|
-
enumerable: !1,
|
|
130
|
-
get: I
|
|
131
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
132
|
-
configurable: !1,
|
|
133
|
-
enumerable: !1,
|
|
134
|
-
writable: !0,
|
|
135
|
-
value: 0
|
|
136
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
137
|
-
configurable: !1,
|
|
138
|
-
enumerable: !1,
|
|
139
|
-
writable: !0,
|
|
140
|
-
value: null
|
|
141
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
142
|
-
configurable: !1,
|
|
143
|
-
enumerable: !1,
|
|
144
|
-
writable: !0,
|
|
145
|
-
value: E
|
|
146
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
147
|
-
configurable: !1,
|
|
148
|
-
enumerable: !1,
|
|
149
|
-
writable: !0,
|
|
150
|
-
value: _
|
|
151
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
152
|
-
}
|
|
153
|
-
function O(e, r, t, n, c, o, E, _) {
|
|
154
|
-
var a = r.children;
|
|
155
|
-
if (a !== void 0)
|
|
156
|
-
if (n)
|
|
157
|
-
if (K(a)) {
|
|
158
|
-
for (n = 0; n < a.length; n++)
|
|
159
|
-
k(a[n]);
|
|
160
|
-
Object.freeze && Object.freeze(a);
|
|
161
|
-
} else
|
|
162
|
-
console.error(
|
|
163
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
164
|
-
);
|
|
165
|
-
else k(a);
|
|
166
|
-
if (S.call(r, "key")) {
|
|
167
|
-
a = l(e);
|
|
168
|
-
var s = Object.keys(r).filter(function(J) {
|
|
169
|
-
return J !== "key";
|
|
170
|
-
});
|
|
171
|
-
n = 0 < s.length ? "{key: someKey, " + s.join(": ..., ") + ": ...}" : "{key: someKey}", j[a + n] || (s = 0 < s.length ? "{" + s.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
172
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
173
|
-
let props = %s;
|
|
174
|
-
<%s {...props} />
|
|
175
|
-
React keys must be passed directly to JSX without using spread:
|
|
176
|
-
let props = %s;
|
|
177
|
-
<%s key={someKey} {...props} />`,
|
|
178
|
-
n,
|
|
179
|
-
a,
|
|
180
|
-
s,
|
|
181
|
-
a
|
|
182
|
-
), j[a + n] = !0);
|
|
183
|
-
}
|
|
184
|
-
if (a = null, t !== void 0 && (v(t), a = "" + t), x(r) && (v(r.key), a = "" + r.key), "key" in r) {
|
|
185
|
-
t = {};
|
|
186
|
-
for (var R in r)
|
|
187
|
-
R !== "key" && (t[R] = r[R]);
|
|
188
|
-
} else t = r;
|
|
189
|
-
return a && Y(
|
|
190
|
-
t,
|
|
191
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
192
|
-
), $(
|
|
193
|
-
e,
|
|
194
|
-
a,
|
|
195
|
-
o,
|
|
196
|
-
c,
|
|
197
|
-
C(),
|
|
198
|
-
t,
|
|
199
|
-
E,
|
|
200
|
-
_
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
function k(e) {
|
|
204
|
-
typeof e == "object" && e !== null && e.$$typeof === g && e._store && (e._store.validated = 1);
|
|
205
|
-
}
|
|
206
|
-
var i = B, g = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), b = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, K = Array.isArray, d = console.createTask ? console.createTask : function() {
|
|
207
|
-
return null;
|
|
208
|
-
};
|
|
209
|
-
i = {
|
|
210
|
-
"react-stack-bottom-frame": function(e) {
|
|
211
|
-
return e();
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
var w, P = {}, y = i["react-stack-bottom-frame"].bind(
|
|
215
|
-
i,
|
|
216
|
-
p
|
|
217
|
-
)(), h = d(f(p)), j = {};
|
|
218
|
-
u.Fragment = m, u.jsx = function(e, r, t, n, c) {
|
|
219
|
-
var o = 1e4 > b.recentlyCreatedOwnerStacks++;
|
|
220
|
-
return O(
|
|
221
|
-
e,
|
|
222
|
-
r,
|
|
223
|
-
t,
|
|
224
|
-
!1,
|
|
225
|
-
n,
|
|
226
|
-
c,
|
|
227
|
-
o ? Error("react-stack-top-frame") : y,
|
|
228
|
-
o ? d(f(e)) : h
|
|
229
|
-
);
|
|
230
|
-
}, u.jsxs = function(e, r, t, n, c) {
|
|
231
|
-
var o = 1e4 > b.recentlyCreatedOwnerStacks++;
|
|
232
|
-
return O(
|
|
233
|
-
e,
|
|
234
|
-
r,
|
|
235
|
-
t,
|
|
236
|
-
!0,
|
|
237
|
-
n,
|
|
238
|
-
c,
|
|
239
|
-
o ? Error("react-stack-top-frame") : y,
|
|
240
|
-
o ? d(f(e)) : h
|
|
241
|
-
);
|
|
242
|
-
};
|
|
243
|
-
}(), u);
|
|
244
|
-
}
|
|
93
|
+
}
|
|
94
|
+
);
|
|
245
95
|
export {
|
|
246
|
-
|
|
96
|
+
n as ALIGN_MAPPER,
|
|
97
|
+
s as JUASTIFY_MAPPER,
|
|
98
|
+
i as SIZES_MAPPER,
|
|
99
|
+
o as TEXT_WEIGHT_MAPPER,
|
|
100
|
+
r as VARIANT_MAPPER,
|
|
101
|
+
a as buttonVariants
|
|
247
102
|
};
|
package/dist/ui.es19.js
CHANGED
|
@@ -1,4 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./ui.es30.js";
|
|
3
|
+
import { j as u } from "./ui.es16.js";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function y(e) {
|
|
6
|
+
const t = /* @__PURE__ */ E(e), o = l.forwardRef((n, r) => {
|
|
7
|
+
const { children: i, ...a } = n, s = l.Children.toArray(i), c = s.find(g);
|
|
8
|
+
if (c) {
|
|
9
|
+
const f = c.props.children, d = s.map((p) => p === c ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
+
return /* @__PURE__ */ u.jsx(t, { ...a, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ u.jsx(t, { ...a, ref: r, children: i });
|
|
13
|
+
});
|
|
14
|
+
return o.displayName = `${e}.Slot`, o;
|
|
15
|
+
}
|
|
16
|
+
var j = /* @__PURE__ */ y("Slot");
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function E(e) {
|
|
19
|
+
const t = l.forwardRef((o, n) => {
|
|
20
|
+
const { children: r, ...i } = o;
|
|
21
|
+
if (l.isValidElement(r)) {
|
|
22
|
+
const a = C(r), s = R(i, r.props);
|
|
23
|
+
return r.type !== l.Fragment && (s.ref = n ? m(n, a) : a), l.cloneElement(r, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
28
|
+
}
|
|
29
|
+
var S = Symbol("radix.slottable");
|
|
30
|
+
function g(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === S;
|
|
32
|
+
}
|
|
33
|
+
function R(e, t) {
|
|
34
|
+
const o = { ...t };
|
|
35
|
+
for (const n in t) {
|
|
36
|
+
const r = e[n], i = t[n];
|
|
37
|
+
/^on[A-Z]/.test(n) ? r && i ? o[n] = (...s) => {
|
|
38
|
+
const c = i(...s);
|
|
39
|
+
return r(...s), c;
|
|
40
|
+
} : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...o };
|
|
43
|
+
}
|
|
44
|
+
function C(e) {
|
|
45
|
+
var n, r;
|
|
46
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
47
|
+
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
48
|
+
}
|
|
2
49
|
export {
|
|
3
|
-
|
|
50
|
+
j as Root,
|
|
51
|
+
j as Slot,
|
|
52
|
+
y as createSlot
|
|
4
53
|
};
|
package/dist/ui.es2.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { j as a } from "./ui.
|
|
2
|
-
const d = ({
|
|
3
|
-
children: t,
|
|
4
|
-
element: o = "div",
|
|
5
|
-
className: s = "",
|
|
6
|
-
...r
|
|
7
|
-
}) => {
|
|
1
|
+
import { j as a } from "./ui.es16.js";
|
|
2
|
+
const d = ({ children: t, element: o = "div", className: s = "", ...r }) => {
|
|
8
3
|
const x = o;
|
|
9
4
|
return /* @__PURE__ */ a.jsx(x, { className: s, ...r, "data-testid": "box", children: t });
|
|
10
5
|
};
|