fina-react-ds 0.0.1 → 1.0.1
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/calendar.js +206 -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/date-picker.js +61 -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/separator.js +29 -0
- package/dist/components/sheet.d.ts +15 -0
- package/dist/components/sheet.js +158 -0
- package/dist/components/sidebar.d.ts +69 -0
- package/dist/components/sidebar.js +620 -0
- package/dist/components/simple-tooltip.d.ts +4 -0
- package/dist/components/simple-tooltip.js +17 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +18 -0
- package/dist/components/sonner.d.ts +3 -0
- package/dist/components/sonner.js +24 -0
- package/dist/components/switch.d.ts +4 -0
- package/dist/components/switch.js +34 -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/textarea.js +23 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.js +61 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.js +138 -73
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +21 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +36 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +18 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +72 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +123 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +112 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +21 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +348 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
- 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,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
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var t = (o, r) => d(o, "name", { value: r, configurable: !0 });
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import { Root as
|
|
5
|
-
import { cn as
|
|
4
|
+
import { Root as c, Trigger as f, Portal as i, Content as s, Anchor as p } from "../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
5
|
+
import { cn as m } from "../lib/utils.js";
|
|
6
6
|
function h({
|
|
7
7
|
...o
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ e(c, { "data-slot": "popover", ...o });
|
|
10
10
|
}
|
|
11
11
|
t(h, "Popover");
|
|
12
12
|
function P({
|
|
13
13
|
...o
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
15
|
+
return /* @__PURE__ */ e(f, { "data-slot": "popover-trigger", ...o });
|
|
16
16
|
}
|
|
17
17
|
t(P, "PopoverTrigger");
|
|
18
18
|
function b({
|
|
@@ -21,14 +21,14 @@ function b({
|
|
|
21
21
|
sideOffset: a = 4,
|
|
22
22
|
...n
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */ e(
|
|
25
|
-
|
|
24
|
+
return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
25
|
+
s,
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "popover-content",
|
|
28
28
|
align: r,
|
|
29
29
|
sideOffset: a,
|
|
30
|
-
className:
|
|
31
|
-
"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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
30
|
+
className: m(
|
|
31
|
+
"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:w-72 fc:origin-(--radix-popover-content-transform-origin) fc:rounded-md fc:border fc:p-4 fc:shadow-md fc:outline-hidden",
|
|
32
32
|
o
|
|
33
33
|
),
|
|
34
34
|
...n
|
|
@@ -39,7 +39,7 @@ t(b, "PopoverContent");
|
|
|
39
39
|
function x({
|
|
40
40
|
...o
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */ e(
|
|
42
|
+
return /* @__PURE__ */ e(p, { "data-slot": "popover-anchor", ...o });
|
|
43
43
|
}
|
|
44
44
|
t(x, "PopoverAnchor");
|
|
45
45
|
export {
|
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (
|
|
3
|
-
import { jsx as
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var r = (c, i) => s(c, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
4
|
+
import m from "clsx";
|
|
4
5
|
import p from "react-select";
|
|
5
|
-
function
|
|
6
|
-
options:
|
|
7
|
-
placeholder:
|
|
8
|
-
onChange:
|
|
9
|
-
value:
|
|
10
|
-
...
|
|
6
|
+
function y({
|
|
7
|
+
options: c,
|
|
8
|
+
placeholder: i = "Sélectionner",
|
|
9
|
+
onChange: f,
|
|
10
|
+
value: d,
|
|
11
|
+
...o
|
|
11
12
|
}) {
|
|
12
13
|
const a = /* @__PURE__ */ r((e) => {
|
|
13
|
-
Array.isArray(
|
|
14
|
-
e.map((
|
|
15
|
-
) :
|
|
16
|
-
}, "handleChange"),
|
|
17
|
-
const
|
|
18
|
-
|
|
14
|
+
Array.isArray(c) ? f == null || f(
|
|
15
|
+
e.map((t) => t.value)
|
|
16
|
+
) : f == null || f(e == null ? void 0 : e.value);
|
|
17
|
+
}, "handleChange"), u = /* @__PURE__ */ r(() => o.isMulti ? Array.isArray(d) ? (c == null ? void 0 : c.filter((e) => d.includes(e.value))) ?? [] : [] : c.find((e) => e.value === d), "getSelectedOptions"), n = /* @__PURE__ */ r((e) => {
|
|
18
|
+
const t = e.relatedTarget;
|
|
19
|
+
t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
|
|
19
20
|
}, "onBlurWorkaround");
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ l(
|
|
21
22
|
p,
|
|
22
23
|
{
|
|
23
|
-
...
|
|
24
|
-
options:
|
|
24
|
+
...o,
|
|
25
|
+
options: c,
|
|
25
26
|
onChange: a,
|
|
26
|
-
value:
|
|
27
|
+
value: u(),
|
|
27
28
|
classNames: {
|
|
28
|
-
control: /* @__PURE__ */ r(() => "px-3 py-1 border bg-input rounded-md text-base
|
|
29
|
-
menu: /* @__PURE__ */ r(() => "bg-popover border rounded-md py-0 overflow-hidden shadow-md mt-2", "menu"),
|
|
30
|
-
menuList: /* @__PURE__ */ r(() => "py-0
|
|
31
|
-
option: /* @__PURE__ */ r(() =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
control: /* @__PURE__ */ r(() => "fc:px-3 fc:py-1 fc:border fc:bg-input fc:rounded-md fc:text-base fc:md:text-sm fc:min-h-9 fc:shadow-none fc:border-input-border fc:has-[:focus]:border-ring fc:has-[:focus]:ring-[3px] fc:ring-ring/50 fc:has-aria-invalid:border-destructive! fc:has-aria-invalid:ring-destructive/20! fc:has-aria-invalid:dark:ring-destructive/40!", "control"),
|
|
30
|
+
menu: /* @__PURE__ */ r(() => "fc:bg-popover fc:border fc:rounded-md fc:py-0 fc:overflow-hidden fc:shadow-md fc:mt-2", "menu"),
|
|
31
|
+
menuList: /* @__PURE__ */ r(() => "fc:py-0 fc:bg-popover", "menuList"),
|
|
32
|
+
option: /* @__PURE__ */ r((e) => m(
|
|
33
|
+
"fc:py-1 fc:px-2 fc:text-popover-foreground fc:text-base fc:md:text-sm!",
|
|
34
|
+
e.isSelected && "fc:bg-input-accent!",
|
|
35
|
+
e.isFocused && "fc:bg-input-accent/50"
|
|
36
|
+
), "option"),
|
|
37
|
+
placeholder: /* @__PURE__ */ r(() => "fc:text-placeholder", "placeholder"),
|
|
38
|
+
multiValue: /* @__PURE__ */ r(() => "fc:bg-input-accent fc:text-input-accent-foreground fc:mr-1 fc:px-1 fc:py-0.5 fc:rounded-md fc:flex fc:items-center", "multiValue"),
|
|
39
|
+
multiValueRemove: /* @__PURE__ */ r(() => "fc:cursor-pointer", "multiValueRemove"),
|
|
40
|
+
dropdownIndicator: /* @__PURE__ */ r(() => "fc:text-placeholder fc:cursor-pointer", "dropdownIndicator"),
|
|
41
|
+
clearIndicator: /* @__PURE__ */ r(() => "fc:text-placeholder fc:cursor-pointer", "clearIndicator"),
|
|
42
|
+
noOptionsMessage: /* @__PURE__ */ r(() => "fc:py-2", "noOptionsMessage")
|
|
38
43
|
},
|
|
39
|
-
onBlur:
|
|
40
|
-
placeholder:
|
|
44
|
+
onBlur: n,
|
|
45
|
+
placeholder: i,
|
|
41
46
|
unstyled: !0
|
|
42
47
|
}
|
|
43
48
|
);
|
|
44
49
|
}
|
|
45
|
-
r(
|
|
50
|
+
r(y, "Select");
|
|
46
51
|
export {
|
|
47
|
-
|
|
52
|
+
y as Select
|
|
48
53
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var r = (t, o) => n(t, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
+
import { Root as l } from "../node_modules/@radix-ui/react-separator/dist/index.js";
|
|
5
|
+
import { cn as p } from "../lib/utils.js";
|
|
6
|
+
function s({
|
|
7
|
+
className: t,
|
|
8
|
+
orientation: o = "horizontal",
|
|
9
|
+
decorative: a = !0,
|
|
10
|
+
...i
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
l,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "separator",
|
|
16
|
+
decorative: a,
|
|
17
|
+
orientation: o,
|
|
18
|
+
className: p(
|
|
19
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
20
|
+
t
|
|
21
|
+
),
|
|
22
|
+
...i
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
r(s, "Separator");
|
|
27
|
+
export {
|
|
28
|
+
s as Separator
|
|
29
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SheetContent({ className, children, side, size, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
|
+
side?: "right" | "left";
|
|
8
|
+
size?: "s" | "m" | "l";
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SheetBody({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetBody, SheetTitle, SheetDescription, };
|