@clasing/ui 2.9.0 → 2.9.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/{button-DSpGxL2e.js → button-CKrOlPSD.js} +17 -19
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/breadcrumb.js +17 -4
- package/dist/components/button-group.js +29 -5
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +42 -38
- package/dist/components/field.d.ts +26 -0
- package/dist/components/field.js +66 -0
- package/dist/components/input.js +1 -1
- package/dist/components/pagination.d.ts +38 -0
- package/dist/components/pagination.js +107 -0
- package/dist/components/phone-input.js +1 -1
- package/dist/components/radio-group.d.ts +5 -0
- package/dist/components/radio-group.js +45 -0
- package/dist/components/select.js +10 -2
- package/dist/components/sidebar.d.ts +83 -0
- package/dist/components/tabs.d.ts +13 -0
- package/dist/components/tabs.js +81 -0
- package/dist/components/tree.d.ts +37 -0
- package/dist/components/tree.js +312 -0
- package/dist/entries/field.d.ts +1 -0
- package/dist/entries/pagination.d.ts +1 -0
- package/dist/entries/radio-group.d.ts +1 -0
- package/dist/entries/tabs.d.ts +1 -0
- package/dist/entries/tree.d.ts +1 -0
- package/dist/hooks/useIsMobile.d.ts +2 -0
- package/dist/{input-D9gqZjs0.js → input-BlcRuIEB.js} +1 -1
- package/dist/ui.css +25 -54
- package/package.json +27 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as o, j as e } from "./index-C_XDkVGm.js";
|
|
2
2
|
import { Slot as _ } from "@radix-ui/react-slot";
|
|
3
3
|
import { cva as k } from "class-variance-authority";
|
|
4
4
|
import w from "react";
|
|
5
5
|
import { C } from "./clasing-icon-zhfWTLFn.js";
|
|
6
|
-
import { b, T as
|
|
6
|
+
import { b, T as f, c, a as g } from "./tooltip-CC_kyHTm.js";
|
|
7
7
|
const T = k(
|
|
8
8
|
`
|
|
9
9
|
relative z-0 flex items-center justify-center rounded-full focusable-item
|
|
@@ -53,10 +53,8 @@ const T = k(
|
|
|
53
53
|
],
|
|
54
54
|
link: [
|
|
55
55
|
`
|
|
56
|
-
text-
|
|
57
|
-
hover:bg-
|
|
58
|
-
dark:text-blue-300
|
|
59
|
-
dark:hover:bg-blue-900/30
|
|
56
|
+
text-info-foreground
|
|
57
|
+
hover:bg-info
|
|
60
58
|
`
|
|
61
59
|
]
|
|
62
60
|
},
|
|
@@ -183,7 +181,7 @@ const T = k(
|
|
|
183
181
|
weight: p,
|
|
184
182
|
children: n,
|
|
185
183
|
isLoading: r,
|
|
186
|
-
disabled:
|
|
184
|
+
disabled: a,
|
|
187
185
|
tooltip: t,
|
|
188
186
|
tooltipPlacement: l = "top",
|
|
189
187
|
asChild: d,
|
|
@@ -196,13 +194,13 @@ const T = k(
|
|
|
196
194
|
md: "w-8 px-0",
|
|
197
195
|
sm: "w-7 px-0",
|
|
198
196
|
xs: "w-6 px-0"
|
|
199
|
-
}[i || "xl"] : "", N =
|
|
197
|
+
}[i || "xl"] : "", N = o(
|
|
200
198
|
T({
|
|
201
199
|
variant: x,
|
|
202
200
|
weight: p,
|
|
203
201
|
size: i,
|
|
204
202
|
isLoading: r,
|
|
205
|
-
disabled:
|
|
203
|
+
disabled: a
|
|
206
204
|
}),
|
|
207
205
|
m,
|
|
208
206
|
j
|
|
@@ -211,7 +209,7 @@ const T = k(
|
|
|
211
209
|
C,
|
|
212
210
|
{
|
|
213
211
|
variant: "default",
|
|
214
|
-
className:
|
|
212
|
+
className: o(
|
|
215
213
|
"pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",
|
|
216
214
|
{
|
|
217
215
|
"visible animate-[spin_2s_linear_infinite] opacity-100": r
|
|
@@ -222,7 +220,7 @@ const T = k(
|
|
|
222
220
|
/* @__PURE__ */ e.jsx(
|
|
223
221
|
"span",
|
|
224
222
|
{
|
|
225
|
-
className:
|
|
223
|
+
className: o(
|
|
226
224
|
"flex items-center justify-center gap-2",
|
|
227
225
|
r ? "invisible opacity-0" : "visible opacity-100"
|
|
228
226
|
),
|
|
@@ -233,18 +231,18 @@ const T = k(
|
|
|
233
231
|
h,
|
|
234
232
|
{
|
|
235
233
|
ref: y,
|
|
236
|
-
className:
|
|
237
|
-
disabled: !!r || !!
|
|
234
|
+
className: o(N),
|
|
235
|
+
disabled: !!r || !!a,
|
|
238
236
|
...v,
|
|
239
237
|
children: z
|
|
240
238
|
}
|
|
241
239
|
);
|
|
242
|
-
return t && (
|
|
243
|
-
/* @__PURE__ */ e.jsx(
|
|
244
|
-
/* @__PURE__ */ e.jsx(
|
|
245
|
-
] }) }) : t ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(
|
|
246
|
-
/* @__PURE__ */ e.jsx(
|
|
247
|
-
/* @__PURE__ */ e.jsx(
|
|
240
|
+
return t && (a || r) ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(f, { children: [
|
|
241
|
+
/* @__PURE__ */ e.jsx(c, { asChild: !0, children: u ? /* @__PURE__ */ e.jsx("div", { className: "inline-block", "aria-disabled": "true", children: s }) : s }),
|
|
242
|
+
/* @__PURE__ */ e.jsx(g, { side: l, children: t })
|
|
243
|
+
] }) }) : t ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(f, { children: [
|
|
244
|
+
/* @__PURE__ */ e.jsx(c, { asChild: !0, children: s }),
|
|
245
|
+
/* @__PURE__ */ e.jsx(g, { side: l, children: t })
|
|
248
246
|
] }) }) : s;
|
|
249
247
|
}
|
|
250
248
|
);
|
|
@@ -10,7 +10,11 @@ function b({ className: r, ...e }) {
|
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "breadcrumb-list",
|
|
12
12
|
className: t(
|
|
13
|
-
|
|
13
|
+
`
|
|
14
|
+
flex flex-wrap items-center gap-1.5 paragraph-sm wrap-break-word
|
|
15
|
+
text-muted-foreground
|
|
16
|
+
sm:gap-2.5
|
|
17
|
+
`,
|
|
14
18
|
r
|
|
15
19
|
),
|
|
16
20
|
...e
|
|
@@ -37,7 +41,13 @@ function x({
|
|
|
37
41
|
n,
|
|
38
42
|
{
|
|
39
43
|
"data-slot": "breadcrumb-link",
|
|
40
|
-
className: t(
|
|
44
|
+
className: t(
|
|
45
|
+
`
|
|
46
|
+
transition-colors
|
|
47
|
+
hover:text-foreground
|
|
48
|
+
`,
|
|
49
|
+
e
|
|
50
|
+
),
|
|
41
51
|
...s
|
|
42
52
|
}
|
|
43
53
|
);
|
|
@@ -50,7 +60,7 @@ function f({ className: r, ...e }) {
|
|
|
50
60
|
role: "link",
|
|
51
61
|
"aria-disabled": "true",
|
|
52
62
|
"aria-current": "page",
|
|
53
|
-
className: t("text-foreground
|
|
63
|
+
className: t("font-semibold text-foreground", r),
|
|
54
64
|
...e
|
|
55
65
|
}
|
|
56
66
|
);
|
|
@@ -83,7 +93,10 @@ function j({
|
|
|
83
93
|
role: "presentation",
|
|
84
94
|
"aria-hidden": "true",
|
|
85
95
|
className: t(
|
|
86
|
-
|
|
96
|
+
`
|
|
97
|
+
flex size-9 items-center justify-center
|
|
98
|
+
[&>svg]:size-3.5
|
|
99
|
+
`,
|
|
87
100
|
r
|
|
88
101
|
),
|
|
89
102
|
...e,
|
|
@@ -3,12 +3,28 @@ import { Slot as i } from "@radix-ui/react-slot";
|
|
|
3
3
|
import { cva as a } from "class-variance-authority";
|
|
4
4
|
import { D as l } from "../divider-DnPsAXol.js";
|
|
5
5
|
const d = a(
|
|
6
|
-
|
|
6
|
+
`
|
|
7
|
+
flex w-fit items-stretch
|
|
8
|
+
*:focus-visible:relative *:focus-visible:z-10
|
|
9
|
+
has-[>[data-slot=button-group]]:gap-2
|
|
10
|
+
has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full
|
|
11
|
+
[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit
|
|
12
|
+
[&>input]:flex-1
|
|
13
|
+
`,
|
|
7
14
|
{
|
|
8
15
|
variants: {
|
|
9
16
|
orientation: {
|
|
10
|
-
horizontal:
|
|
11
|
-
|
|
17
|
+
horizontal: `
|
|
18
|
+
[&>*:not(:first-child)]:rounded-l-none!
|
|
19
|
+
[&>*:not(:first-child)]:border-l-0
|
|
20
|
+
[&>*:not(:last-child)]:rounded-r-none!
|
|
21
|
+
`,
|
|
22
|
+
vertical: `
|
|
23
|
+
flex-col
|
|
24
|
+
[&>*:not(:first-child)]:rounded-t-none!
|
|
25
|
+
[&>*:not(:first-child)]:border-t-0
|
|
26
|
+
[&>*:not(:last-child)]:rounded-b-none!
|
|
27
|
+
`
|
|
12
28
|
}
|
|
13
29
|
},
|
|
14
30
|
defaultVariants: {
|
|
@@ -42,7 +58,12 @@ function h({
|
|
|
42
58
|
s,
|
|
43
59
|
{
|
|
44
60
|
className: n(
|
|
45
|
-
|
|
61
|
+
`
|
|
62
|
+
flex items-center gap-2 rounded-full border bg-muted px-4 text-sm
|
|
63
|
+
font-medium shadow-xs
|
|
64
|
+
[&_svg]:pointer-events-none
|
|
65
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
66
|
+
`,
|
|
46
67
|
o
|
|
47
68
|
),
|
|
48
69
|
...e
|
|
@@ -60,7 +81,10 @@ function v({
|
|
|
60
81
|
"data-slot": "button-group-separator",
|
|
61
82
|
orientation: t,
|
|
62
83
|
className: n(
|
|
63
|
-
|
|
84
|
+
`
|
|
85
|
+
relative m-0! self-stretch bg-input
|
|
86
|
+
data-[orientation=vertical]:h-auto
|
|
87
|
+
`,
|
|
64
88
|
o
|
|
65
89
|
),
|
|
66
90
|
...e
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { j as n, c as e } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { getDefaultClassNames as
|
|
4
|
-
import { b as
|
|
3
|
+
import { getDefaultClassNames as m, DayPicker as x } from "react-day-picker";
|
|
4
|
+
import { b as f, B as h } from "../button-CKrOlPSD.js";
|
|
5
5
|
import { CaretLeftIcon as w, CaretRightIcon as _, CaretDownIcon as y } from "@phosphor-icons/react";
|
|
6
6
|
function C({
|
|
7
7
|
className: c,
|
|
8
8
|
classNames: g,
|
|
9
|
-
showOutsideDays:
|
|
9
|
+
showOutsideDays: r = !0,
|
|
10
10
|
captionLayout: s = "label",
|
|
11
11
|
buttonVariant: l = "ghost",
|
|
12
12
|
formatters: u,
|
|
13
|
-
components:
|
|
14
|
-
...
|
|
13
|
+
components: b,
|
|
14
|
+
...p
|
|
15
15
|
}) {
|
|
16
|
-
const t =
|
|
16
|
+
const t = m();
|
|
17
17
|
return /* @__PURE__ */ n.jsx(
|
|
18
18
|
x,
|
|
19
19
|
{
|
|
20
|
-
showOutsideDays:
|
|
20
|
+
showOutsideDays: r,
|
|
21
21
|
className: e(
|
|
22
22
|
`
|
|
23
23
|
group/calendar bg-background p-3 [--cell-size:--spacing(8)]
|
|
@@ -30,7 +30,7 @@ function C({
|
|
|
30
30
|
),
|
|
31
31
|
captionLayout: s,
|
|
32
32
|
formatters: {
|
|
33
|
-
formatMonthDropdown: (
|
|
33
|
+
formatMonthDropdown: (a) => a.toLocaleString("default", { month: "short" }),
|
|
34
34
|
...u
|
|
35
35
|
},
|
|
36
36
|
classNames: {
|
|
@@ -51,7 +51,7 @@ function C({
|
|
|
51
51
|
t.nav
|
|
52
52
|
),
|
|
53
53
|
button_previous: e(
|
|
54
|
-
|
|
54
|
+
f({ size: "sm", variant: l }),
|
|
55
55
|
`
|
|
56
56
|
size-(--cell-size) p-0 select-none
|
|
57
57
|
aria-disabled:opacity-50
|
|
@@ -59,7 +59,7 @@ function C({
|
|
|
59
59
|
t.button_previous
|
|
60
60
|
),
|
|
61
61
|
button_next: e(
|
|
62
|
-
|
|
62
|
+
f({ size: "sm", variant: l }),
|
|
63
63
|
`
|
|
64
64
|
size-(--cell-size) p-0 select-none
|
|
65
65
|
aria-disabled:opacity-50
|
|
@@ -155,7 +155,7 @@ function C({
|
|
|
155
155
|
},
|
|
156
156
|
components: {
|
|
157
157
|
Root: ({
|
|
158
|
-
className:
|
|
158
|
+
className: a,
|
|
159
159
|
rootRef: d,
|
|
160
160
|
...o
|
|
161
161
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -163,73 +163,77 @@ function C({
|
|
|
163
163
|
{
|
|
164
164
|
"data-slot": "calendar",
|
|
165
165
|
ref: d,
|
|
166
|
-
className: e(
|
|
166
|
+
className: e(a),
|
|
167
167
|
...o
|
|
168
168
|
}
|
|
169
169
|
),
|
|
170
|
-
Chevron: ({ className:
|
|
170
|
+
Chevron: ({ className: a, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ n.jsx(w, { className: e(a), ...o }) : d === "right" ? /* @__PURE__ */ n.jsx(_, { className: e(a), ...o }) : /* @__PURE__ */ n.jsx(y, { ...o }),
|
|
171
171
|
DayButton: v,
|
|
172
|
-
WeekNumber: ({ children:
|
|
172
|
+
WeekNumber: ({ children: a, ...d }) => /* @__PURE__ */ n.jsx("td", { ...d, children: /* @__PURE__ */ n.jsx(
|
|
173
173
|
"div",
|
|
174
174
|
{
|
|
175
175
|
className: `\r
|
|
176
176
|
flex size-(--cell-size) items-center justify-center\r
|
|
177
177
|
text-center\r
|
|
178
178
|
`,
|
|
179
|
-
children:
|
|
179
|
+
children: a
|
|
180
180
|
}
|
|
181
181
|
) }),
|
|
182
|
-
...
|
|
182
|
+
...b
|
|
183
183
|
},
|
|
184
|
-
...
|
|
184
|
+
...p
|
|
185
185
|
}
|
|
186
186
|
);
|
|
187
187
|
}
|
|
188
188
|
function v({
|
|
189
189
|
className: c,
|
|
190
190
|
day: g,
|
|
191
|
-
modifiers:
|
|
191
|
+
modifiers: r,
|
|
192
192
|
...s
|
|
193
193
|
}) {
|
|
194
|
-
const l =
|
|
194
|
+
const l = m(), u = i.useRef(null);
|
|
195
195
|
return i.useEffect(() => {
|
|
196
|
-
|
|
197
|
-
}, [
|
|
196
|
+
r.focused && u.current?.focus();
|
|
197
|
+
}, [r.focused]), /* @__PURE__ */ n.jsx(
|
|
198
198
|
h,
|
|
199
199
|
{
|
|
200
200
|
ref: u,
|
|
201
201
|
variant: "ghost",
|
|
202
202
|
size: "xs",
|
|
203
203
|
"data-day": g.date.toLocaleDateString(),
|
|
204
|
-
"data-selected-single":
|
|
205
|
-
"data-range-start":
|
|
206
|
-
"data-range-end":
|
|
207
|
-
"data-range-middle":
|
|
204
|
+
"data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle,
|
|
205
|
+
"data-range-start": r.range_start,
|
|
206
|
+
"data-range-end": r.range_end,
|
|
207
|
+
"data-range-middle": r.range_middle,
|
|
208
208
|
className: e(
|
|
209
209
|
`
|
|
210
210
|
flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1
|
|
211
|
-
|
|
211
|
+
p-1 leading-none font-regular
|
|
212
212
|
group-data-[focused=true]/day:relative
|
|
213
213
|
group-data-[focused=true]/day:z-10
|
|
214
214
|
group-data-[focused=true]/day:border-ring
|
|
215
215
|
group-data-[focused=true]/day:ring-[3px]
|
|
216
216
|
group-data-[focused=true]/day:ring-ring/50
|
|
217
|
-
|
|
218
|
-
data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-blue-500
|
|
217
|
+
before:rounded-md before:bg-transparent
|
|
219
218
|
data-[range-end=true]:text-white
|
|
220
|
-
data-[range-end=true]:
|
|
221
|
-
data-[range-
|
|
222
|
-
data-[range-
|
|
219
|
+
data-[range-end=true]:before:rounded-md
|
|
220
|
+
data-[range-end=true]:before:rounded-l-none
|
|
221
|
+
data-[range-end=true]:before:rounded-r-md
|
|
222
|
+
data-[range-end=true]:before:bg-blue-500
|
|
223
|
+
data-[range-end=true]:hover:before:bg-blue-500/80
|
|
223
224
|
data-[range-middle=true]:text-blue-800
|
|
224
|
-
data-[range-
|
|
225
|
-
data-[range-
|
|
226
|
-
data-[range-start=true]:
|
|
227
|
-
data-[range-start=true]:
|
|
228
|
-
data-[range-start=true]:
|
|
229
|
-
data-[
|
|
225
|
+
data-[range-middle=true]:before:rounded-none
|
|
226
|
+
data-[range-middle=true]:before:bg-blue-500/10
|
|
227
|
+
data-[range-start=true]:text-white
|
|
228
|
+
data-[range-start=true]:before:rounded-md
|
|
229
|
+
data-[range-start=true]:before:rounded-l-md
|
|
230
|
+
data-[range-start=true]:before:rounded-r-none
|
|
231
|
+
data-[range-start=true]:before:bg-blue-500
|
|
232
|
+
data-[range-start=true]:hover:before:bg-blue-500/80
|
|
230
233
|
data-[selected-single=true]:text-white
|
|
231
|
-
data-[selected-single=true]:
|
|
234
|
+
data-[selected-single=true]:before:bg-blue-500
|
|
232
235
|
data-[selected-single=true]:hover:text-white
|
|
236
|
+
data-[selected-single=true]:hover:before:bg-blue-500/80
|
|
233
237
|
dark:hover:text-accent-foreground
|
|
234
238
|
dark:data-[range-middle=true]:text-blue-050
|
|
235
239
|
[&>span]:paragraph-xs [&>span]:opacity-70
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Label } from '@/components/label';
|
|
3
|
+
declare const FieldGroup: {
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Field: {
|
|
8
|
+
({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
interface FieldLabelProps extends React.ComponentPropsWithoutRef<typeof Label> {
|
|
12
|
+
}
|
|
13
|
+
declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
14
|
+
declare const FieldDescription: {
|
|
15
|
+
({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
declare const fieldMessageVariants: {
|
|
19
|
+
readonly error: "text-destructive-foreground";
|
|
20
|
+
readonly success: "text-success-foreground";
|
|
21
|
+
};
|
|
22
|
+
interface FieldMessageProps extends React.ComponentProps<'p'> {
|
|
23
|
+
variant?: keyof typeof fieldMessageVariants;
|
|
24
|
+
}
|
|
25
|
+
declare const FieldMessage: React.ForwardRefExoticComponent<Omit<FieldMessageProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
export { Field, FieldDescription, FieldGroup, FieldLabel, FieldMessage };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { j as a, c as r } from "../index-C_XDkVGm.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { L as d } from "../label-CnZHCbRc.js";
|
|
4
|
+
const i = ({ className: s, ...e }) => /* @__PURE__ */ a.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "field-group",
|
|
8
|
+
className: r("flex flex-col gap-4", s),
|
|
9
|
+
...e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
i.displayName = "FieldGroup";
|
|
13
|
+
const c = ({ className: s, ...e }) => /* @__PURE__ */ a.jsx(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "field",
|
|
17
|
+
className: r("flex flex-col gap-1.5", s),
|
|
18
|
+
...e
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
c.displayName = "Field";
|
|
22
|
+
const m = t.forwardRef(({ className: s, ...e }, l) => /* @__PURE__ */ a.jsx(
|
|
23
|
+
d,
|
|
24
|
+
{
|
|
25
|
+
ref: l,
|
|
26
|
+
"data-slot": "field-label",
|
|
27
|
+
className: r("label-md font-medium text-foreground", s),
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
));
|
|
31
|
+
m.displayName = "FieldLabel";
|
|
32
|
+
const p = ({
|
|
33
|
+
className: s,
|
|
34
|
+
...e
|
|
35
|
+
}) => /* @__PURE__ */ a.jsx(
|
|
36
|
+
"p",
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "field-description",
|
|
39
|
+
className: r("paragraph-sm text-muted-foreground", s),
|
|
40
|
+
...e
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
p.displayName = "FieldDescription";
|
|
44
|
+
const f = {
|
|
45
|
+
error: "text-destructive-foreground",
|
|
46
|
+
success: "text-success-foreground"
|
|
47
|
+
}, n = t.forwardRef(
|
|
48
|
+
({ className: s, variant: e = "error", ...l }, o) => /* @__PURE__ */ a.jsx(
|
|
49
|
+
"p",
|
|
50
|
+
{
|
|
51
|
+
ref: o,
|
|
52
|
+
"data-slot": "field-message",
|
|
53
|
+
className: r("paragraph-sm", f[e], s),
|
|
54
|
+
role: e === "error" ? "alert" : void 0,
|
|
55
|
+
...l
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
n.displayName = "FieldMessage";
|
|
60
|
+
export {
|
|
61
|
+
c as Field,
|
|
62
|
+
p as FieldDescription,
|
|
63
|
+
i as FieldGroup,
|
|
64
|
+
m as FieldLabel,
|
|
65
|
+
n as FieldMessage
|
|
66
|
+
};
|
package/dist/components/input.js
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Pagination: {
|
|
3
|
+
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
declare const PaginationContent: {
|
|
7
|
+
({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const PaginationItem: {
|
|
11
|
+
({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
interface PaginationLinkProps extends React.ComponentProps<'a'> {
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const PaginationLink: {
|
|
19
|
+
({ className, isActive, asChild, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
interface PaginationPreviousProps extends PaginationLinkProps {
|
|
23
|
+
}
|
|
24
|
+
declare const PaginationPrevious: {
|
|
25
|
+
({ className, href, ...props }: PaginationPreviousProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
interface PaginationNextProps extends PaginationLinkProps {
|
|
29
|
+
}
|
|
30
|
+
declare const PaginationNext: {
|
|
31
|
+
({ className, href, ...props }: PaginationNextProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
declare const PaginationEllipsis: {
|
|
35
|
+
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { j as t, c as i } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { DotsThreeIcon as l, CaretRightIcon as c, CaretLeftIcon as m } from "@phosphor-icons/react";
|
|
3
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
4
|
+
const d = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(
|
|
5
|
+
"nav",
|
|
6
|
+
{
|
|
7
|
+
"aria-label": "pagination",
|
|
8
|
+
className: i("mx-auto flex w-full justify-center", e),
|
|
9
|
+
...a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
d.displayName = "Pagination";
|
|
13
|
+
const u = ({
|
|
14
|
+
className: e,
|
|
15
|
+
...a
|
|
16
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
17
|
+
"ul",
|
|
18
|
+
{
|
|
19
|
+
className: i("flex flex-row items-center gap-1", e),
|
|
20
|
+
...a
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
u.displayName = "PaginationContent";
|
|
24
|
+
const g = ({
|
|
25
|
+
className: e,
|
|
26
|
+
...a
|
|
27
|
+
}) => /* @__PURE__ */ t.jsx("li", { className: i("", e), ...a });
|
|
28
|
+
g.displayName = "PaginationItem";
|
|
29
|
+
const s = ({
|
|
30
|
+
className: e,
|
|
31
|
+
isActive: a,
|
|
32
|
+
asChild: n,
|
|
33
|
+
...o
|
|
34
|
+
}) => {
|
|
35
|
+
const r = n ? p : "a";
|
|
36
|
+
return /* @__PURE__ */ t.jsx(
|
|
37
|
+
r,
|
|
38
|
+
{
|
|
39
|
+
"data-slot": "pagination-link",
|
|
40
|
+
className: i(
|
|
41
|
+
`
|
|
42
|
+
flex size-9 items-center justify-center rounded-full label-md
|
|
43
|
+
font-medium focusable-item
|
|
44
|
+
transition-[color,background-color,box-shadow]
|
|
45
|
+
hover:bg-muted
|
|
46
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
47
|
+
data-[active=true]:bg-primary
|
|
48
|
+
data-[active=true]:text-primary-foreground
|
|
49
|
+
data-[active=true]:shadow-xs
|
|
50
|
+
`,
|
|
51
|
+
e
|
|
52
|
+
),
|
|
53
|
+
"aria-current": a ? "page" : void 0,
|
|
54
|
+
"data-active": a,
|
|
55
|
+
...o
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
s.displayName = "PaginationLink";
|
|
60
|
+
const x = ({
|
|
61
|
+
className: e,
|
|
62
|
+
href: a,
|
|
63
|
+
...n
|
|
64
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
65
|
+
s,
|
|
66
|
+
{
|
|
67
|
+
href: a,
|
|
68
|
+
"aria-label": "Go to previous page",
|
|
69
|
+
className: i("gap-1 pr-3 pl-2.5", e),
|
|
70
|
+
...n,
|
|
71
|
+
children: /* @__PURE__ */ t.jsx(m, { className: "size-4" })
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
x.displayName = "PaginationPrevious";
|
|
75
|
+
const N = ({ className: e, href: a, ...n }) => /* @__PURE__ */ t.jsx(
|
|
76
|
+
s,
|
|
77
|
+
{
|
|
78
|
+
href: a,
|
|
79
|
+
"aria-label": "Go to next page",
|
|
80
|
+
className: i("gap-1 pr-2.5 pl-3", e),
|
|
81
|
+
...n,
|
|
82
|
+
children: /* @__PURE__ */ t.jsx(c, { className: "size-4" })
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
N.displayName = "PaginationNext";
|
|
86
|
+
const f = ({
|
|
87
|
+
className: e,
|
|
88
|
+
...a
|
|
89
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
"aria-hidden": !0,
|
|
93
|
+
className: i("flex size-9 items-center justify-center", e),
|
|
94
|
+
...a,
|
|
95
|
+
children: /* @__PURE__ */ t.jsx(l, { className: "size-4", weight: "bold" })
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
f.displayName = "PaginationEllipsis";
|
|
99
|
+
export {
|
|
100
|
+
d as Pagination,
|
|
101
|
+
u as PaginationContent,
|
|
102
|
+
f as PaginationEllipsis,
|
|
103
|
+
g as PaginationItem,
|
|
104
|
+
s as PaginationLink,
|
|
105
|
+
N as PaginationNext,
|
|
106
|
+
x as PaginationPrevious
|
|
107
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e, c as p } from "../index-C_XDkVGm.js";
|
|
2
2
|
import { C as O, d as A, f as F, b as L, c as D, e as N } from "../command-Cq3FhQXv.js";
|
|
3
|
-
import { I as M } from "../input-
|
|
3
|
+
import { I as M } from "../input-BlcRuIEB.js";
|
|
4
4
|
import { P as q, c as H, b as G } from "../popover-CLQxfbEi.js";
|
|
5
5
|
import { S as W } from "../scroll-area-BTNDZ-p2.js";
|
|
6
6
|
import { CaretDownIcon as $, CheckIcon as B } from "@phosphor-icons/react";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|