fina-react-ds 0.0.1 → 1.0.0
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/README.md +5 -15
- package/dist/components/alert.js +30 -27
- package/dist/components/avatar.js +19 -19
- package/dist/components/badge.js +19 -19
- package/dist/components/button.js +51 -51
- package/dist/components/calendar.d.ts +8 -0
- package/dist/components/card.js +43 -43
- package/dist/components/checkbox.js +17 -17
- package/dist/components/date-picker.d.ts +6 -0
- package/dist/components/dialog.js +43 -46
- package/dist/components/dropdown-menu.js +29 -29
- package/dist/components/input.js +15 -13
- package/dist/components/label.js +17 -17
- package/dist/components/pagination.js +25 -25
- package/dist/components/popover.js +9 -9
- package/dist/components/select.js +38 -33
- package/dist/components/sheet.d.ts +15 -0
- package/dist/components/sheet.js +146 -0
- package/dist/components/sidebar.d.ts +69 -0
- package/dist/components/simple-tooltip.d.ts +4 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/sonner.d.ts +3 -0
- package/dist/components/switch.d.ts +4 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/table.js +124 -0
- package/dist/components/tabs.js +27 -27
- package/dist/components/textarea.d.ts +3 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +69 -51
- package/dist/themes/base.css +1679 -585
- package/package.json +4 -19
- package/dist/themes/pro.css +0 -188
- package/dist/themes/puulse-colors.css +0 -388
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var t = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { Checkbox as o, CheckboxIndicator as
|
|
5
|
-
import { CheckIcon as
|
|
2
|
+
var i = (c, e) => t(c, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { Checkbox as o, CheckboxIndicator as a } from "../node_modules/@radix-ui/react-checkbox/dist/index.js";
|
|
5
|
+
import { CheckIcon as f } from "lucide-react";
|
|
6
6
|
import { cn as n } from "../lib/utils.js";
|
|
7
|
-
function
|
|
8
|
-
className:
|
|
9
|
-
...
|
|
7
|
+
function h({
|
|
8
|
+
className: c,
|
|
9
|
+
...e
|
|
10
10
|
}) {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ r(
|
|
12
12
|
o,
|
|
13
13
|
{
|
|
14
14
|
"data-slot": "checkbox",
|
|
15
15
|
className: n(
|
|
16
|
-
"peer border-input
|
|
17
|
-
|
|
16
|
+
"fc:bg-input fc:peer fc:border-input-border fc:data-[state=checked]:bg-primary fc:data-[state=checked]:text-primary-foreground fc:data-[state=checked]:border-primary fc:focus-visible:border-ring fc:focus-visible:ring-ring/50 fc:aria-invalid:ring-destructive/20 fc:dark:aria-invalid:ring-destructive/40 fc:aria-invalid:border-destructive fc:size-4 fc:shrink-0 fc:rounded-[4px] fc:border fc:shadow-xs fc:transition-shadow fc:outline-none fc:focus-visible:ring-[3px] fc:disabled:cursor-not-allowed fc:disabled:opacity-50",
|
|
17
|
+
c
|
|
18
18
|
),
|
|
19
|
-
...
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
...e,
|
|
20
|
+
children: /* @__PURE__ */ r(
|
|
21
|
+
a,
|
|
22
22
|
{
|
|
23
23
|
"data-slot": "checkbox-indicator",
|
|
24
|
-
className: "flex items-center justify-center text-current transition-none",
|
|
25
|
-
children: /* @__PURE__ */
|
|
24
|
+
className: "fc:flex fc:items-center fc:justify-center fc:text-current fc:transition-none",
|
|
25
|
+
children: /* @__PURE__ */ r(f, { className: "fc:size-3.5" })
|
|
26
26
|
}
|
|
27
27
|
)
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
i(h, "Checkbox");
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
h as Checkbox
|
|
34
34
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var o = (t, a) =>
|
|
3
|
-
import { jsx as e, jsxs as
|
|
4
|
-
import { Root as
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var o = (t, a) => s(t, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
4
|
+
import { Root as r, Close as n, Content as d, Description as g, Overlay as u, Portal as m, Title as p, Trigger as x } from "../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
5
5
|
import { XIcon as v } from "lucide-react";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as c } from "../lib/utils.js";
|
|
7
7
|
function C({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ e(
|
|
10
|
+
return /* @__PURE__ */ e(r, { "data-slot": "dialog", ...t });
|
|
11
11
|
}
|
|
12
12
|
o(C, "Dialog");
|
|
13
13
|
function T({
|
|
@@ -25,7 +25,7 @@ o(D, "DialogPortal");
|
|
|
25
25
|
function j({
|
|
26
26
|
...t
|
|
27
27
|
}) {
|
|
28
|
-
return /* @__PURE__ */ e(
|
|
28
|
+
return /* @__PURE__ */ e(n, { "data-slot": "dialog-close", ...t });
|
|
29
29
|
}
|
|
30
30
|
o(j, "DialogClose");
|
|
31
31
|
function h({
|
|
@@ -33,11 +33,11 @@ function h({
|
|
|
33
33
|
...a
|
|
34
34
|
}) {
|
|
35
35
|
return /* @__PURE__ */ e(
|
|
36
|
-
|
|
36
|
+
u,
|
|
37
37
|
{
|
|
38
38
|
"data-slot": "dialog-overlay",
|
|
39
|
-
className:
|
|
40
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
39
|
+
className: c(
|
|
40
|
+
"fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:fixed fc:inset-0 fc:z-50 fc:bg-black/50 fc:overflow-auto",
|
|
41
41
|
t
|
|
42
42
|
),
|
|
43
43
|
...a
|
|
@@ -48,37 +48,34 @@ o(h, "DialogOverlay");
|
|
|
48
48
|
function k({
|
|
49
49
|
className: t,
|
|
50
50
|
children: a,
|
|
51
|
-
showCloseButton:
|
|
52
|
-
...
|
|
51
|
+
showCloseButton: l = !0,
|
|
52
|
+
...i
|
|
53
53
|
}) {
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"data-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
children:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
] });
|
|
54
|
+
return /* @__PURE__ */ e(D, { "data-slot": "dialog-portal", children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ f(
|
|
55
|
+
d,
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "dialog-content",
|
|
58
|
+
className: c(
|
|
59
|
+
"fc:relative fc:bg-card fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:data-[state=closed]:zoom-out-95 fc:data-[state=open]:zoom-in-95 fc:z-50 fc:grid fc:w-full fc:max-w-[calc(100%-2rem)] fc:gap-4 fc:rounded-lg fc:border fc:p-6 fc:shadow-lg fc:duration-200 fc:sm:max-w-lg fc:mx-auto fc:my-10",
|
|
60
|
+
t
|
|
61
|
+
),
|
|
62
|
+
...i,
|
|
63
|
+
children: [
|
|
64
|
+
a,
|
|
65
|
+
l && /* @__PURE__ */ f(
|
|
66
|
+
n,
|
|
67
|
+
{
|
|
68
|
+
"data-slot": "dialog-close",
|
|
69
|
+
className: "fc:ring-offset-background fc:focus:ring-ring fc:data-[state=open]:bg-accent fc:data-[state=open]:text-muted fc:absolute fc:top-4 fc:right-4 fc:rounded-xs fc:opacity-70 fc:transition-opacity fc:hover:opacity-100 fc:focus:ring-2 fc:focus:ring-offset-2 fc:focus:outline-hidden fc:disabled:pointer-events-none fc:[&_svg]:pointer-events-none fc:[&_svg]:shrink-0 fc:[&_svg:not([class*='size-'])]:size-4",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ e(v, {}),
|
|
72
|
+
/* @__PURE__ */ e("span", { className: "fc:sr-only", children: "Close" })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
) }) });
|
|
82
79
|
}
|
|
83
80
|
o(k, "DialogContent");
|
|
84
81
|
function _({ className: t, ...a }) {
|
|
@@ -86,7 +83,7 @@ function _({ className: t, ...a }) {
|
|
|
86
83
|
"div",
|
|
87
84
|
{
|
|
88
85
|
"data-slot": "dialog-header",
|
|
89
|
-
className:
|
|
86
|
+
className: c("fc:flex fc:flex-col fc:gap-2 fc:text-center fc:sm:text-left", t),
|
|
90
87
|
...a
|
|
91
88
|
}
|
|
92
89
|
);
|
|
@@ -97,8 +94,8 @@ function O({ className: t, ...a }) {
|
|
|
97
94
|
"div",
|
|
98
95
|
{
|
|
99
96
|
"data-slot": "dialog-footer",
|
|
100
|
-
className:
|
|
101
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
97
|
+
className: c(
|
|
98
|
+
"fc:flex fc:flex-col-reverse fc:gap-2 fc:sm:flex-row fc:sm:justify-end",
|
|
102
99
|
t
|
|
103
100
|
),
|
|
104
101
|
...a
|
|
@@ -114,7 +111,7 @@ function P({
|
|
|
114
111
|
p,
|
|
115
112
|
{
|
|
116
113
|
"data-slot": "dialog-title",
|
|
117
|
-
className:
|
|
114
|
+
className: c("fc:text-lg fc:leading-none fc:font-semibold", t),
|
|
118
115
|
...a
|
|
119
116
|
}
|
|
120
117
|
);
|
|
@@ -125,10 +122,10 @@ function F({
|
|
|
125
122
|
...a
|
|
126
123
|
}) {
|
|
127
124
|
return /* @__PURE__ */ e(
|
|
128
|
-
|
|
125
|
+
g,
|
|
129
126
|
{
|
|
130
127
|
"data-slot": "dialog-description",
|
|
131
|
-
className:
|
|
128
|
+
className: c("fc:text-muted fc:text-sm", t),
|
|
132
129
|
...a
|
|
133
130
|
}
|
|
134
131
|
);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = (e, o) =>
|
|
3
|
-
import { jsx as t, jsxs as
|
|
4
|
-
import { Root as
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var n = (e, o) => f(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
4
|
+
import { Root as u, Portal as s, Trigger as l, Content as m, Group as p, Label as g, Item as v, CheckboxItem as b, ItemIndicator as i, RadioGroup as x, RadioItem as w, Separator as h, Sub as z, SubTrigger as I, SubContent as D } from "../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
5
5
|
import { CheckIcon as M, CircleIcon as N, ChevronRightIcon as S } from "lucide-react";
|
|
6
6
|
import { cn as r } from "../lib/utils.js";
|
|
7
7
|
function G({
|
|
8
8
|
...e
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ t(
|
|
10
|
+
return /* @__PURE__ */ t(u, { "data-slot": "dropdown-menu", ...e });
|
|
11
11
|
}
|
|
12
12
|
n(G, "DropdownMenu");
|
|
13
13
|
function T({
|
|
14
14
|
...e
|
|
15
15
|
}) {
|
|
16
|
-
return /* @__PURE__ */ t(
|
|
16
|
+
return /* @__PURE__ */ t(s, { "data-slot": "dropdown-menu-portal", ...e });
|
|
17
17
|
}
|
|
18
18
|
n(T, "DropdownMenuPortal");
|
|
19
19
|
function j({
|
|
20
20
|
...e
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ t(
|
|
23
|
-
|
|
23
|
+
l,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "dropdown-menu-trigger",
|
|
26
26
|
...e
|
|
@@ -33,13 +33,13 @@ function L({
|
|
|
33
33
|
sideOffset: o = 4,
|
|
34
34
|
...a
|
|
35
35
|
}) {
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
37
|
-
|
|
36
|
+
return /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
|
|
37
|
+
m,
|
|
38
38
|
{
|
|
39
39
|
"data-slot": "dropdown-menu-content",
|
|
40
40
|
sideOffset: o,
|
|
41
41
|
className: r(
|
|
42
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
42
|
+
"fc:bg-popover fc:text-popover-foreground fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:data-[state=closed]:zoom-out-95 fc:data-[state=open]:zoom-in-95 fc:data-[side=bottom]:slide-in-from-top-2 fc:data-[side=left]:slide-in-from-right-2 fc:data-[side=right]:slide-in-from-left-2 fc:data-[side=top]:slide-in-from-bottom-2 fc:z-50 fc:max-h-(--radix-dropdown-menu-content-available-height) fc:min-w-[8rem] fc:origin-(--radix-dropdown-menu-content-transform-origin) fc:overflow-x-hidden fc:overflow-y-auto fc:rounded-md fc:border fc:p-1 fc:shadow-md",
|
|
43
43
|
e
|
|
44
44
|
),
|
|
45
45
|
...a
|
|
@@ -50,14 +50,14 @@ n(L, "DropdownMenuContent");
|
|
|
50
50
|
function P({
|
|
51
51
|
...e
|
|
52
52
|
}) {
|
|
53
|
-
return /* @__PURE__ */ t(
|
|
53
|
+
return /* @__PURE__ */ t(p, { "data-slot": "dropdown-menu-group", ...e });
|
|
54
54
|
}
|
|
55
55
|
n(P, "DropdownMenuGroup");
|
|
56
56
|
function q({
|
|
57
57
|
className: e,
|
|
58
58
|
inset: o,
|
|
59
59
|
variant: a = "default",
|
|
60
|
-
...
|
|
60
|
+
...c
|
|
61
61
|
}) {
|
|
62
62
|
return /* @__PURE__ */ t(
|
|
63
63
|
v,
|
|
@@ -66,10 +66,10 @@ function q({
|
|
|
66
66
|
"data-inset": o,
|
|
67
67
|
"data-variant": a,
|
|
68
68
|
className: r(
|
|
69
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted
|
|
69
|
+
"fc:focus:bg-accent fc:focus:text-accent-foreground fc:data-[variant=destructive]:text-destructive fc:data-[variant=destructive]:focus:bg-destructive/10 fc:dark:data-[variant=destructive]:focus:bg-destructive/20 fc:data-[variant=destructive]:focus:text-destructive fc:data-[variant=destructive]:*:[svg]:!text-destructive fc:[&_svg:not([class*='text-'])]:text-muted fc:relative fc:flex fc:cursor-default fc:items-center fc:gap-2 fc:rounded-sm fc:px-2 fc:py-1.5 fc:text-sm fc:outline-hidden fc:select-none fc:data-[disabled]:pointer-events-none fc:data-[disabled]:opacity-50 fc:data-[inset]:pl-8 fc:[&_svg]:pointer-events-none fc:[&_svg]:shrink-0 fc:[&_svg:not([class*='size-'])]:size-4",
|
|
70
70
|
e
|
|
71
71
|
),
|
|
72
|
-
...
|
|
72
|
+
...c
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
}
|
|
@@ -78,9 +78,9 @@ function A({
|
|
|
78
78
|
className: e,
|
|
79
79
|
children: o,
|
|
80
80
|
checked: a,
|
|
81
|
-
...
|
|
81
|
+
...c
|
|
82
82
|
}) {
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ d(
|
|
84
84
|
b,
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -89,9 +89,9 @@ function A({
|
|
|
89
89
|
e
|
|
90
90
|
),
|
|
91
91
|
checked: a,
|
|
92
|
-
...
|
|
92
|
+
...c,
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(
|
|
94
|
+
/* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(M, { className: "size-4" }) }) }),
|
|
95
95
|
o
|
|
96
96
|
]
|
|
97
97
|
}
|
|
@@ -115,7 +115,7 @@ function E({
|
|
|
115
115
|
children: o,
|
|
116
116
|
...a
|
|
117
117
|
}) {
|
|
118
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ d(
|
|
119
119
|
w,
|
|
120
120
|
{
|
|
121
121
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -125,7 +125,7 @@ function E({
|
|
|
125
125
|
),
|
|
126
126
|
...a,
|
|
127
127
|
children: [
|
|
128
|
-
/* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(
|
|
128
|
+
/* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(N, { className: "size-2 fill-current" }) }) }),
|
|
129
129
|
o
|
|
130
130
|
]
|
|
131
131
|
}
|
|
@@ -143,7 +143,7 @@ function F({
|
|
|
143
143
|
"data-slot": "dropdown-menu-label",
|
|
144
144
|
"data-inset": o,
|
|
145
145
|
className: r(
|
|
146
|
-
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
146
|
+
"fc:px-2 fc:py-1.5 fc:text-sm fc:font-medium fc:data-[inset]:pl-8",
|
|
147
147
|
e
|
|
148
148
|
),
|
|
149
149
|
...a
|
|
@@ -159,7 +159,7 @@ function H({
|
|
|
159
159
|
h,
|
|
160
160
|
{
|
|
161
161
|
"data-slot": "dropdown-menu-separator",
|
|
162
|
-
className: r("bg-border
|
|
162
|
+
className: r("fc:bg-border fc:-mx-1 fc:my-1 fc:h-px", e),
|
|
163
163
|
...o
|
|
164
164
|
}
|
|
165
165
|
);
|
|
@@ -174,7 +174,7 @@ function J({
|
|
|
174
174
|
{
|
|
175
175
|
"data-slot": "dropdown-menu-shortcut",
|
|
176
176
|
className: r(
|
|
177
|
-
"text-muted
|
|
177
|
+
"fc:text-muted fc:ml-auto fc:text-xs fc:tracking-widest",
|
|
178
178
|
e
|
|
179
179
|
),
|
|
180
180
|
...o
|
|
@@ -192,21 +192,21 @@ function O({
|
|
|
192
192
|
className: e,
|
|
193
193
|
inset: o,
|
|
194
194
|
children: a,
|
|
195
|
-
...
|
|
195
|
+
...c
|
|
196
196
|
}) {
|
|
197
|
-
return /* @__PURE__ */
|
|
197
|
+
return /* @__PURE__ */ d(
|
|
198
198
|
I,
|
|
199
199
|
{
|
|
200
200
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
201
201
|
"data-inset": o,
|
|
202
202
|
className: r(
|
|
203
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
203
|
+
"fc:focus:bg-accent fc:focus:text-accent-foreground fc:data-[state=open]:bg-accent fc:data-[state=open]:text-accent-foreground fc:flex cursor-default fc:items-center fc:rounded-sm fc:px-2 fc:py-1.5 fc:text-sm fc:outline-hidden fc:select-none fc:data-[inset]:pl-8",
|
|
204
204
|
e
|
|
205
205
|
),
|
|
206
|
-
...
|
|
206
|
+
...c,
|
|
207
207
|
children: [
|
|
208
208
|
a,
|
|
209
|
-
/* @__PURE__ */ t(S, { className: "ml-auto size-4" })
|
|
209
|
+
/* @__PURE__ */ t(S, { className: "fc:ml-auto fc:size-4" })
|
|
210
210
|
]
|
|
211
211
|
}
|
|
212
212
|
);
|
|
@@ -221,7 +221,7 @@ function Q({
|
|
|
221
221
|
{
|
|
222
222
|
"data-slot": "dropdown-menu-sub-content",
|
|
223
223
|
className: r(
|
|
224
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
224
|
+
"fc:bg-popover fc:text-popover-foreground fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:data-[state=closed]:zoom-out-95 fc:data-[state=open]:zoom-in-95 fc:data-[side=bottom]:slide-in-from-top-2 fc:data-[side=left]:slide-in-from-right-2 fc:data-[side=right]:slide-in-from-left-2 fc:data-[side=top]:slide-in-from-bottom-2 fc:z-50 fc:min-w-[8rem] fc:origin-(--radix-dropdown-menu-content-transform-origin) fc:overflow-hidden fc:rounded-md fc:border fc:p-1 fc:shadow-lg",
|
|
225
225
|
e
|
|
226
226
|
),
|
|
227
227
|
...o
|
package/dist/components/input.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { cn as
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var f = (e, i) => r(e, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { cn as o } from "../lib/utils.js";
|
|
5
|
+
function a({ className: e, type: i, ...c }) {
|
|
6
|
+
return /* @__PURE__ */ t(
|
|
7
7
|
"input",
|
|
8
8
|
{
|
|
9
9
|
type: i,
|
|
10
10
|
"data-slot": "input",
|
|
11
|
-
className:
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
11
|
+
className: o(
|
|
12
|
+
"fc:placeholder:text-placeholder fc:selection:bg-primary fc:selection:text-primary-foreground fc:bg-input fc:border-input-border fc:flex fc:h-9 fc:w-full fc:min-w-0 fc:rounded-md fc:border fc:px-3 fc:py-1 fc:text-base fc:shadow-xs fc:transition-[color,box-shadow] fc:outline-none fc:md:text-sm",
|
|
13
|
+
"fc:file:text-foreground fc:file:inline-flex fc:file:h-7 fc:file:border-0 fc:file:bg-transparent fc:file:text-sm fc:file:font-medium",
|
|
14
|
+
"fc:disabled:pointer-events-none fc:disabled:cursor-not-allowed fc:disabled:opacity-50",
|
|
15
|
+
"fc:focus-visible:border-ring fc:focus-visible:ring-ring/50 fc:focus-visible:ring-[3px]",
|
|
16
|
+
"fc:aria-invalid:ring-destructive/20 fc:dark:aria-invalid:ring-destructive/40 fc:aria-invalid:border-destructive",
|
|
15
17
|
e
|
|
16
18
|
),
|
|
17
|
-
...
|
|
19
|
+
...c
|
|
18
20
|
}
|
|
19
21
|
);
|
|
20
22
|
}
|
|
21
|
-
|
|
23
|
+
f(a, "Input");
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
a as Input
|
|
24
26
|
};
|
package/dist/components/label.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { Root as
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var c = (e, t) => r(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Root as f } from "../node_modules/@radix-ui/react-label/dist/index.js";
|
|
5
|
+
import { cn as l } from "../lib/utils.js";
|
|
6
|
+
function u({
|
|
7
7
|
className: e,
|
|
8
8
|
required: t = !1,
|
|
9
|
-
children:
|
|
10
|
-
...
|
|
9
|
+
children: o,
|
|
10
|
+
...a
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
return /* @__PURE__ */ s(
|
|
13
|
+
f,
|
|
14
14
|
{
|
|
15
15
|
"data-slot": "label",
|
|
16
|
-
className:
|
|
17
|
-
"flex items-center text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
16
|
+
className: l(
|
|
17
|
+
"fc:flex fc:items-center fc:text-sm fc:leading-none fc:font-medium fc:select-none fc:group-data-[disabled=true]:pointer-events-none fc:group-data-[disabled=true]:opacity-50 fc:peer-disabled:cursor-not-allowed fc:peer-disabled:opacity-50",
|
|
18
18
|
e
|
|
19
19
|
),
|
|
20
|
-
...
|
|
20
|
+
...a,
|
|
21
21
|
children: [
|
|
22
|
-
|
|
22
|
+
o,
|
|
23
23
|
" ",
|
|
24
|
-
t && /* @__PURE__ */
|
|
24
|
+
t && /* @__PURE__ */ n("span", { className: "fc:text-destructive", children: "*" })
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
c(u, "Label");
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
u as Label
|
|
32
32
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (a, n) =>
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var i = (a, n) => l(a, "name", { value: n, configurable: !0 });
|
|
3
3
|
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
4
|
-
import { ChevronLeftIcon as
|
|
4
|
+
import { ChevronLeftIcon as f, ChevronRightIcon as p, MoreHorizontalIcon as m } from "lucide-react";
|
|
5
5
|
import { cn as e } from "../lib/utils.js";
|
|
6
|
-
import { buttonVariants as
|
|
6
|
+
import { buttonVariants as u } from "./button.js";
|
|
7
7
|
function P({ className: a, ...n }) {
|
|
8
8
|
return /* @__PURE__ */ t(
|
|
9
9
|
"nav",
|
|
@@ -11,7 +11,7 @@ function P({ className: a, ...n }) {
|
|
|
11
11
|
role: "navigation",
|
|
12
12
|
"aria-label": "pagination",
|
|
13
13
|
"data-slot": "pagination",
|
|
14
|
-
className: e("mx-auto flex w-full justify-center", a),
|
|
14
|
+
className: e("fc:mx-auto fc:flex fc:w-full fc:justify-center", a),
|
|
15
15
|
...n
|
|
16
16
|
}
|
|
17
17
|
);
|
|
@@ -25,7 +25,7 @@ function v({
|
|
|
25
25
|
"ul",
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "pagination-content",
|
|
28
|
-
className: e("flex flex-row items-center gap-1", a),
|
|
28
|
+
className: e("fc:flex fc:flex-row fc:items-center fc:gap-1", a),
|
|
29
29
|
...n
|
|
30
30
|
}
|
|
31
31
|
);
|
|
@@ -35,11 +35,11 @@ function b({ ...a }) {
|
|
|
35
35
|
return /* @__PURE__ */ t("li", { "data-slot": "pagination-item", ...a });
|
|
36
36
|
}
|
|
37
37
|
i(b, "PaginationItem");
|
|
38
|
-
function
|
|
38
|
+
function c({
|
|
39
39
|
className: a,
|
|
40
40
|
isActive: n,
|
|
41
|
-
size:
|
|
42
|
-
...
|
|
41
|
+
size: r = "icon",
|
|
42
|
+
...s
|
|
43
43
|
}) {
|
|
44
44
|
return /* @__PURE__ */ t(
|
|
45
45
|
"a",
|
|
@@ -48,32 +48,32 @@ function r({
|
|
|
48
48
|
"data-slot": "pagination-link",
|
|
49
49
|
"data-active": n,
|
|
50
50
|
className: e(
|
|
51
|
-
|
|
51
|
+
u({
|
|
52
52
|
variant: n ? "contained" : "ghost",
|
|
53
53
|
color: "dark",
|
|
54
|
-
size:
|
|
54
|
+
size: r
|
|
55
55
|
}),
|
|
56
56
|
a
|
|
57
57
|
),
|
|
58
|
-
...
|
|
58
|
+
...s
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
|
-
i(
|
|
62
|
+
i(c, "PaginationLink");
|
|
63
63
|
function k({
|
|
64
64
|
className: a,
|
|
65
65
|
...n
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ o(
|
|
68
|
-
|
|
68
|
+
c,
|
|
69
69
|
{
|
|
70
70
|
"aria-label": "Go to previous page",
|
|
71
71
|
size: "default",
|
|
72
|
-
className: e("gap-1 px-2.5 sm:pl-2.5", a),
|
|
72
|
+
className: e("fc:gap-1 fc:px-2.5 fc:sm:pl-2.5", a),
|
|
73
73
|
...n,
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ t(
|
|
76
|
-
/* @__PURE__ */ t("span", { className: "hidden sm:block", children: "Précédent" })
|
|
75
|
+
/* @__PURE__ */ t(f, {}),
|
|
76
|
+
/* @__PURE__ */ t("span", { className: "fc:hidden fc:sm:block", children: "Précédent" })
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
);
|
|
@@ -84,15 +84,15 @@ function z({
|
|
|
84
84
|
...n
|
|
85
85
|
}) {
|
|
86
86
|
return /* @__PURE__ */ o(
|
|
87
|
-
|
|
87
|
+
c,
|
|
88
88
|
{
|
|
89
89
|
"aria-label": "Go to next page",
|
|
90
90
|
size: "default",
|
|
91
|
-
className: e("gap-1 px-2.5 sm:pr-2.5", a),
|
|
91
|
+
className: e("fc:gap-1 fc:px-2.5 fc:sm:pr-2.5", a),
|
|
92
92
|
...n,
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */ t("span", { className: "hidden sm:block", children: "Suivant" }),
|
|
95
|
-
/* @__PURE__ */ t(
|
|
94
|
+
/* @__PURE__ */ t("span", { className: "fc:hidden fc:sm:block", children: "Suivant" }),
|
|
95
|
+
/* @__PURE__ */ t(p, {})
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
);
|
|
@@ -107,11 +107,11 @@ function j({
|
|
|
107
107
|
{
|
|
108
108
|
"aria-hidden": !0,
|
|
109
109
|
"data-slot": "pagination-ellipsis",
|
|
110
|
-
className: e("flex size-9 items-center justify-center", a),
|
|
110
|
+
className: e("fc:flex fc:size-9 fc:items-center fc:justify-center", a),
|
|
111
111
|
...n,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */ t(
|
|
114
|
-
/* @__PURE__ */ t("span", { className: "sr-only", children: "More pages" })
|
|
113
|
+
/* @__PURE__ */ t(m, { className: "fc:size-4" }),
|
|
114
|
+
/* @__PURE__ */ t("span", { className: "fc:sr-only", children: "More pages" })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
@@ -122,7 +122,7 @@ export {
|
|
|
122
122
|
v as PaginationContent,
|
|
123
123
|
j as PaginationEllipsis,
|
|
124
124
|
b as PaginationItem,
|
|
125
|
-
|
|
125
|
+
c as PaginationLink,
|
|
126
126
|
z as PaginationNext,
|
|
127
127
|
k as PaginationPrevious
|
|
128
128
|
};
|