@plyaz/ui 0.4.4 → 0.4.6
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/components/Flex/Flex.d.ts +2 -2
- package/dist/types/components/Flex/Flex.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.d.ts +4 -4
- package/dist/types/components/Grid/Grid.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +33 -0
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.cjs10.js +4 -1
- package/dist/ui.cjs11.js +1 -1
- package/dist/ui.cjs12.js +1 -1
- package/dist/ui.cjs13.js +1 -19
- package/dist/ui.cjs14.js +19 -7
- package/dist/ui.cjs15.js +7 -53
- package/dist/ui.cjs16.js +53 -1
- package/dist/ui.cjs17.js +1 -1
- package/dist/ui.cjs18.js +1 -31
- package/dist/ui.cjs19.js +31 -1
- package/dist/ui.cjs20.js +1 -1
- package/dist/ui.cjs21.js +1 -1
- package/dist/ui.cjs22.js +1 -6
- package/dist/ui.cjs23.js +2 -2
- package/dist/ui.cjs24.js +2 -2
- package/dist/ui.cjs25.js +6 -1
- package/dist/ui.cjs26.js +1 -1
- package/dist/ui.cjs27.js +1 -9
- package/dist/ui.cjs28.js +3 -8
- package/dist/ui.cjs29.js +14 -1
- package/dist/ui.cjs3.js +1 -5
- package/dist/ui.cjs30.js +1 -1
- package/dist/ui.cjs31.js +1 -1
- package/dist/ui.cjs32.js +1 -1
- package/dist/ui.cjs33.js +1 -1
- package/dist/ui.cjs34.js +1 -1
- package/dist/ui.cjs35.js +1 -1
- package/dist/ui.cjs36.js +1 -1
- package/dist/ui.cjs37.js +1 -1
- package/dist/ui.cjs38.js +1 -1
- package/dist/ui.cjs39.js +1 -1
- package/dist/ui.cjs4.js +5 -1
- package/dist/ui.cjs40.js +1 -1
- package/dist/ui.cjs41.js +1 -1
- package/dist/ui.cjs42.js +1 -1
- package/dist/ui.cjs43.js +1 -1
- package/dist/ui.cjs44.js +1 -1
- package/dist/ui.cjs45.js +1 -1
- package/dist/ui.cjs46.js +1 -1
- package/dist/ui.cjs47.js +1 -1
- package/dist/ui.cjs48.js +1 -1
- package/dist/ui.cjs49.js +1 -1
- package/dist/ui.cjs5.js +1 -1
- package/dist/ui.cjs50.js +1 -1
- package/dist/ui.cjs51.js +1 -1
- package/dist/ui.cjs53.js +1 -1
- package/dist/ui.cjs54.js +6 -1
- package/dist/ui.cjs55.js +6 -1
- package/dist/ui.cjs56.js +6 -1
- package/dist/ui.cjs57.js +6 -1
- package/dist/ui.cjs58.js +1 -6
- package/dist/ui.cjs59.js +1 -6
- package/dist/ui.cjs6.js +1 -1
- package/dist/ui.cjs60.js +1 -6
- package/dist/ui.cjs61.js +1 -6
- package/dist/ui.cjs62.js +1 -1
- package/dist/ui.cjs63.js +1 -1
- package/dist/ui.cjs64.js +1 -1
- package/dist/ui.cjs65.js +1 -1
- package/dist/ui.cjs66.js +1 -1
- package/dist/ui.cjs67.js +1 -1
- package/dist/ui.cjs68.js +1 -4
- package/dist/ui.cjs69.js +4 -1
- package/dist/ui.cjs7.js +1 -7
- package/dist/ui.cjs70.js +1 -1
- package/dist/ui.cjs71.js +1 -1
- package/dist/ui.cjs72.js +1 -1
- package/dist/ui.cjs73.js +1 -1
- package/dist/ui.cjs74.js +1 -1
- package/dist/ui.cjs75.js +1 -1
- package/dist/ui.cjs78.js +1 -1
- package/dist/ui.cjs79.js +1 -1
- package/dist/ui.cjs8.js +7 -1
- package/dist/ui.cjs80.js +1 -1
- package/dist/ui.cjs81.js +1 -1
- package/dist/ui.cjs82.js +1 -1
- package/dist/ui.cjs83.js +1 -1
- package/dist/ui.cjs84.js +1 -0
- package/dist/ui.cjs9.js +1 -4
- package/dist/ui.css +1 -0
- package/dist/ui.es.js +38 -37
- package/dist/ui.es10.js +22 -17
- package/dist/ui.es11.js +16 -29
- package/dist/ui.es12.js +26 -18
- package/dist/ui.es13.js +19 -34
- package/dist/ui.es14.js +37 -43
- package/dist/ui.es15.js +42 -210
- package/dist/ui.es16.js +212 -3
- package/dist/ui.es17.js +3 -15
- package/dist/ui.es18.js +15 -100
- package/dist/ui.es19.js +131 -49
- package/dist/ui.es20.js +50 -5
- package/dist/ui.es21.js +5 -860
- package/dist/ui.es22.js +861 -10
- package/dist/ui.es23.js +3 -3
- package/dist/ui.es24.js +3 -3
- package/dist/ui.es25.js +10 -8
- package/dist/ui.es26.js +8 -2
- package/dist/ui.es27.js +2 -33
- package/dist/ui.es28.js +23 -235
- package/dist/ui.es29.js +245 -33
- package/dist/ui.es3.js +7 -22
- package/dist/ui.es30.js +33 -27
- package/dist/ui.es31.js +22 -2724
- package/dist/ui.es32.js +2728 -3
- package/dist/ui.es33.js +3 -6
- package/dist/ui.es34.js +5 -44
- package/dist/ui.es35.js +43 -50
- package/dist/ui.es36.js +52 -7
- package/dist/ui.es37.js +7 -124
- package/dist/ui.es38.js +122 -12
- package/dist/ui.es39.js +14 -134
- package/dist/ui.es4.js +19 -39
- package/dist/ui.es40.js +134 -10
- package/dist/ui.es41.js +10 -217
- package/dist/ui.es42.js +217 -13
- package/dist/ui.es43.js +14 -34
- package/dist/ui.es44.js +33 -10
- package/dist/ui.es45.js +10 -51
- package/dist/ui.es46.js +52 -4
- package/dist/ui.es47.js +4 -6
- package/dist/ui.es48.js +6 -28
- package/dist/ui.es49.js +28 -50
- package/dist/ui.es5.js +40 -30
- package/dist/ui.es50.js +50 -9
- package/dist/ui.es51.js +9 -2
- package/dist/ui.es52.js +2 -2
- package/dist/ui.es53.js +2 -12
- package/dist/ui.es54.js +25 -206
- package/dist/ui.es55.js +22 -22
- package/dist/ui.es56.js +39 -25
- package/dist/ui.es57.js +17 -397
- package/dist/ui.es58.js +12 -25
- package/dist/ui.es59.js +205 -21
- package/dist/ui.es6.js +32 -23
- package/dist/ui.es60.js +21 -38
- package/dist/ui.es61.js +25 -18
- package/dist/ui.es62.js +395 -22
- package/dist/ui.es63.js +24 -28
- package/dist/ui.es64.js +29 -5
- package/dist/ui.es65.js +5 -5
- package/dist/ui.es66.js +5 -3
- package/dist/ui.es67.js +3 -24
- package/dist/ui.es68.js +22 -108
- package/dist/ui.es69.js +108 -14
- package/dist/ui.es7.js +24 -22
- package/dist/ui.es70.js +14 -523
- package/dist/ui.es71.js +511 -114
- package/dist/ui.es72.js +111 -117
- package/dist/ui.es73.js +130 -61
- package/dist/ui.es74.js +2 -2
- package/dist/ui.es75.js +1 -1
- package/dist/ui.es78.js +64 -3
- package/dist/ui.es79.js +3 -22
- package/dist/ui.es8.js +22 -19
- package/dist/ui.es80.js +23 -23
- package/dist/ui.es81.js +21 -11
- package/dist/ui.es82.js +11 -26
- package/dist/ui.es83.js +27 -4
- package/dist/ui.es84.js +7 -0
- package/dist/ui.es9.js +20 -18
- package/package.json +1 -1
- package/dist/ui.cjs2.js +0 -1
- package/dist/ui.es2.js +0 -9
package/dist/ui.es16.js
CHANGED
|
@@ -1,5 +1,214 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { j as e } from "./ui.es17.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.es22.js";
|
|
3
|
+
import { cn as s } from "./ui.es21.js";
|
|
4
|
+
import y from "./ui.es23.js";
|
|
5
|
+
import n from "./ui.es24.js";
|
|
6
|
+
import S from "./ui.es25.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(
|
|
149
|
+
"span",
|
|
150
|
+
{
|
|
151
|
+
className: `
|
|
152
|
+
absolute right-2 flex size-3.5 items-center justify-center
|
|
153
|
+
`,
|
|
154
|
+
children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(y, { className: "size-4" }) })
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ e.jsx(x, { children: a })
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
function P({
|
|
163
|
+
className: t,
|
|
164
|
+
...a
|
|
165
|
+
}) {
|
|
166
|
+
return /* @__PURE__ */ e.jsx(
|
|
167
|
+
h,
|
|
168
|
+
{
|
|
169
|
+
"data-slot": "select-separator",
|
|
170
|
+
className: s("pointer-events-none -mx-1 my-1 h-px bg-border", t),
|
|
171
|
+
...a
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
function z({
|
|
176
|
+
className: t,
|
|
177
|
+
...a
|
|
178
|
+
}) {
|
|
179
|
+
return /* @__PURE__ */ e.jsx(
|
|
180
|
+
v,
|
|
181
|
+
{
|
|
182
|
+
"data-slot": "select-scroll-up-button",
|
|
183
|
+
className: s("flex cursor-default items-center justify-center py-1", t),
|
|
184
|
+
...a,
|
|
185
|
+
children: /* @__PURE__ */ e.jsx(S, { className: "size-4" })
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
function N({
|
|
190
|
+
className: t,
|
|
191
|
+
...a
|
|
192
|
+
}) {
|
|
193
|
+
return /* @__PURE__ */ e.jsx(
|
|
194
|
+
g,
|
|
195
|
+
{
|
|
196
|
+
"data-slot": "select-scroll-down-button",
|
|
197
|
+
className: s("flex cursor-default items-center justify-center py-1", t),
|
|
198
|
+
...a,
|
|
199
|
+
children: /* @__PURE__ */ e.jsx(n, { className: "size-4" })
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}
|
|
3
203
|
export {
|
|
4
|
-
|
|
204
|
+
R as Select,
|
|
205
|
+
G as SelectContent,
|
|
206
|
+
T as SelectGroup,
|
|
207
|
+
E as SelectItem,
|
|
208
|
+
L as SelectLabel,
|
|
209
|
+
N as SelectScrollDownButton,
|
|
210
|
+
z as SelectScrollUpButton,
|
|
211
|
+
P as SelectSeparator,
|
|
212
|
+
V as SelectTrigger,
|
|
213
|
+
U as SelectValue
|
|
5
214
|
};
|
package/dist/ui.es17.js
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
13
|
-
}
|
|
1
|
+
import { __require as r } from "./ui.es26.js";
|
|
2
|
+
var i = r();
|
|
14
3
|
export {
|
|
15
|
-
i as
|
|
16
|
-
i as default
|
|
4
|
+
i as j
|
|
17
5
|
};
|
package/dist/ui.es18.js
CHANGED
|
@@ -1,102 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
defaultVariants: {
|
|
90
|
-
variant: "default",
|
|
91
|
-
size: "default"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
);
|
|
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;
|
|
13
|
+
}
|
|
95
14
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
i as SIZES_MAPPER,
|
|
99
|
-
o as TEXT_WEIGHT_MAPPER,
|
|
100
|
-
r as VARIANT_MAPPER,
|
|
101
|
-
a as buttonVariants
|
|
15
|
+
i as clsx,
|
|
16
|
+
i as default
|
|
102
17
|
};
|
package/dist/ui.es19.js
CHANGED
|
@@ -1,53 +1,135 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { cva as e } from "./ui.es30.js";
|
|
2
|
+
const r = {
|
|
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
|
+
}, s = {
|
|
11
|
+
start: "items-start",
|
|
12
|
+
end: "items-end",
|
|
13
|
+
center: "items-center",
|
|
14
|
+
baseline: "items-baseline",
|
|
15
|
+
stretch: "items-stretch"
|
|
16
|
+
}, i = {
|
|
17
|
+
body: "font-sans",
|
|
18
|
+
heading: "font-sans",
|
|
19
|
+
caption: "font-sans"
|
|
20
|
+
}, n = {
|
|
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 = {
|
|
41
|
+
1: "grid-cols-1",
|
|
42
|
+
2: "grid-cols-2",
|
|
43
|
+
3: "grid-cols-3",
|
|
44
|
+
4: "grid-cols-4",
|
|
45
|
+
5: "grid-cols-5",
|
|
46
|
+
6: "grid-cols-6",
|
|
47
|
+
7: "grid-cols-7",
|
|
48
|
+
8: "grid-cols-8",
|
|
49
|
+
9: "grid-cols-9"
|
|
50
|
+
}, d = {
|
|
51
|
+
1: "grid-rows-1",
|
|
52
|
+
2: "grid-rows-2",
|
|
53
|
+
3: "grid-rows-3",
|
|
54
|
+
4: "grid-rows-4",
|
|
55
|
+
5: "grid-rows-5",
|
|
56
|
+
6: "grid-rows-6",
|
|
57
|
+
7: "grid-rows-7",
|
|
58
|
+
8: "grid-rows-8",
|
|
59
|
+
9: "grid-rows-9"
|
|
60
|
+
}, g = {
|
|
61
|
+
1: "gap-1",
|
|
62
|
+
2: "gap-2",
|
|
63
|
+
3: "gap-3",
|
|
64
|
+
4: "gap-4",
|
|
65
|
+
5: "gap-5",
|
|
66
|
+
6: "gap-6",
|
|
67
|
+
7: "gap-7",
|
|
68
|
+
8: "gap-8",
|
|
69
|
+
9: "gap-9"
|
|
70
|
+
}, l = e(
|
|
71
|
+
"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",
|
|
72
|
+
{
|
|
73
|
+
variants: {
|
|
74
|
+
variant: {
|
|
75
|
+
default: `
|
|
76
|
+
bg-primary text-primary-foreground shadow-xs
|
|
77
|
+
hover:bg-primary/90
|
|
78
|
+
`,
|
|
79
|
+
destructive: `
|
|
80
|
+
bg-destructive text-white shadow-xs
|
|
81
|
+
hover:bg-destructive/90
|
|
82
|
+
focus-visible:ring-destructive/20
|
|
83
|
+
dark:bg-destructive/60 dark:focus-visible:ring-destructive/40
|
|
84
|
+
`,
|
|
85
|
+
outline: `
|
|
86
|
+
border bg-background shadow-xs
|
|
87
|
+
hover:bg-accent hover:text-accent-foreground
|
|
88
|
+
dark:border-input dark:bg-input/30 dark:hover:bg-input/50
|
|
89
|
+
`,
|
|
90
|
+
secondary: `
|
|
91
|
+
bg-secondary text-secondary-foreground shadow-xs
|
|
92
|
+
hover:bg-secondary/80
|
|
93
|
+
`,
|
|
94
|
+
ghost: `
|
|
95
|
+
hover:bg-accent hover:text-accent-foreground
|
|
96
|
+
dark:hover:bg-accent/50
|
|
97
|
+
`,
|
|
98
|
+
link: `
|
|
99
|
+
text-primary underline-offset-4
|
|
100
|
+
hover:underline
|
|
101
|
+
`
|
|
102
|
+
},
|
|
103
|
+
size: {
|
|
104
|
+
default: `
|
|
105
|
+
h-9 px-4 py-2
|
|
106
|
+
has-[>svg]:px-3
|
|
107
|
+
`,
|
|
108
|
+
sm: `
|
|
109
|
+
h-8 gap-1.5 rounded-md px-3
|
|
110
|
+
has-[>svg]:px-2.5
|
|
111
|
+
`,
|
|
112
|
+
lg: `
|
|
113
|
+
h-10 rounded-md px-6
|
|
114
|
+
has-[>svg]:px-4
|
|
115
|
+
`,
|
|
116
|
+
icon: "size-9"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
defaultVariants: {
|
|
120
|
+
variant: "default",
|
|
121
|
+
size: "default"
|
|
11
122
|
}
|
|
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
123
|
}
|
|
42
|
-
|
|
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
|
-
}
|
|
124
|
+
);
|
|
49
125
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
126
|
+
s as ALIGN_MAPPER,
|
|
127
|
+
a as COLUMN_NUMBER,
|
|
128
|
+
g as GAP,
|
|
129
|
+
r as JUASTIFY_MAPPER,
|
|
130
|
+
d as ROW_NUMBER,
|
|
131
|
+
n as SIZES_MAPPER,
|
|
132
|
+
o as TEXT_WEIGHT_MAPPER,
|
|
133
|
+
i as VARIANT_MAPPER,
|
|
134
|
+
l as buttonVariants
|
|
53
135
|
};
|
package/dist/ui.es20.js
CHANGED
|
@@ -1,8 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./ui.es31.js";
|
|
3
|
+
import { j as u } from "./ui.es17.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);
|
|
5
48
|
}
|
|
6
49
|
export {
|
|
7
|
-
|
|
50
|
+
j as Root,
|
|
51
|
+
j as Slot,
|
|
52
|
+
y as createSlot
|
|
8
53
|
};
|