fina-react-ds 1.0.22 → 1.0.24
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/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +65 -59
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +19 -19
- package/dist/components/badge.js +12 -11
- package/dist/components/button.js +12 -11
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +17 -17
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +60 -60
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +93 -93
- package/dist/components/form.d.ts +2 -3
- package/dist/components/form.js +2 -2
- package/dist/components/hover-card.d.ts +1 -1
- package/dist/components/hover-card.js +23 -23
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.js +12 -12
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +28 -28
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +10 -10
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sheet.js +73 -73
- package/dist/components/sidebar.js +73 -69
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +13 -13
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +22 -22
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +27 -27
- package/dist/index.d.ts +5 -3
- package/dist/index.js +186 -172
- package/dist/lib/http.d.ts +13 -0
- package/dist/lib/http.js +58 -0
- package/dist/lib/yup.d.ts +2 -0
- package/dist/lib/yup.js +88 -0
- package/package.json +5 -3
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -534
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -430
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -215
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -159
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -149
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -130
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -80
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -258
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -51
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -34
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -76
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -265
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -133
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -230
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -21
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -149
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -192
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -22
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -663
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -247
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -224
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -77
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -39
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -189
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -27
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -67
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -168
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -348
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -59
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -30
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -32
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -54
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -33
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -18
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -70
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -73
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -13
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -17
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -35
- package/dist/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -9
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -29
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -28
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -72
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -73
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -62
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
3
3
|
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (t, a) =>
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var e = (t, a) => i(t, "name", { value: a, configurable: !0 });
|
|
3
3
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
import { buttonVariants as
|
|
7
|
-
function
|
|
4
|
+
import { AlertDialog as l } from "radix-ui";
|
|
5
|
+
import { cn as r } from "../lib/utils.js";
|
|
6
|
+
import { buttonVariants as c } from "./button.js";
|
|
7
|
+
function A({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ o(
|
|
10
|
+
return /* @__PURE__ */ o(l.Root, { "data-slot": "alert-dialog", ...t });
|
|
11
11
|
}
|
|
12
|
-
e(
|
|
13
|
-
function
|
|
12
|
+
e(A, "AlertDialog");
|
|
13
|
+
function D({
|
|
14
14
|
...t
|
|
15
15
|
}) {
|
|
16
|
-
return /* @__PURE__ */ o(
|
|
16
|
+
return /* @__PURE__ */ o(l.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
|
|
17
17
|
}
|
|
18
|
-
e(
|
|
19
|
-
function
|
|
18
|
+
e(D, "AlertDialogTrigger");
|
|
19
|
+
function s({
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
|
-
return /* @__PURE__ */ o(
|
|
22
|
+
return /* @__PURE__ */ o(l.Portal, { "data-slot": "alert-dialog-portal", ...t });
|
|
23
23
|
}
|
|
24
|
-
e(
|
|
25
|
-
function
|
|
24
|
+
e(s, "AlertDialogPortal");
|
|
25
|
+
function d({
|
|
26
26
|
className: t,
|
|
27
27
|
...a
|
|
28
28
|
}) {
|
|
29
29
|
return /* @__PURE__ */ o(
|
|
30
|
-
|
|
30
|
+
l.Overlay,
|
|
31
31
|
{
|
|
32
32
|
"data-slot": "alert-dialog-overlay",
|
|
33
|
-
className:
|
|
33
|
+
className: r(
|
|
34
34
|
"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",
|
|
35
35
|
t
|
|
36
36
|
),
|
|
@@ -38,18 +38,18 @@ function v({
|
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
e(
|
|
42
|
-
function
|
|
41
|
+
e(d, "AlertDialogOverlay");
|
|
42
|
+
function N({
|
|
43
43
|
className: t,
|
|
44
44
|
...a
|
|
45
45
|
}) {
|
|
46
|
-
return /* @__PURE__ */ n(
|
|
47
|
-
/* @__PURE__ */ o(
|
|
46
|
+
return /* @__PURE__ */ n(s, { children: [
|
|
47
|
+
/* @__PURE__ */ o(d, {}),
|
|
48
48
|
/* @__PURE__ */ o(
|
|
49
|
-
|
|
49
|
+
l.Content,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "alert-dialog-content",
|
|
52
|
-
className:
|
|
52
|
+
className: r(
|
|
53
53
|
"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:fixed fc:top-[50%] fc:left-[50%] fc:z-50 fc:grid fc:w-full fc:max-w-[calc(100%-2rem)] fc:translate-x-[-50%] fc:translate-y-[-50%] fc:gap-4 fc:rounded-lg fc:border fc:p-6 fc:shadow-lg fc:duration-200 fc:sm:max-w-lg",
|
|
54
54
|
t
|
|
55
55
|
),
|
|
@@ -58,8 +58,8 @@ function z({
|
|
|
58
58
|
)
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
|
-
e(
|
|
62
|
-
function
|
|
61
|
+
e(N, "AlertDialogContent");
|
|
62
|
+
function v({
|
|
63
63
|
className: t,
|
|
64
64
|
...a
|
|
65
65
|
}) {
|
|
@@ -67,13 +67,16 @@ function j({
|
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
"data-slot": "alert-dialog-header",
|
|
70
|
-
className:
|
|
70
|
+
className: r(
|
|
71
|
+
"fc:flex fc:flex-col fc:gap-2 fc:text-center fc:sm:text-left",
|
|
72
|
+
t
|
|
73
|
+
),
|
|
71
74
|
...a
|
|
72
75
|
}
|
|
73
76
|
);
|
|
74
77
|
}
|
|
75
|
-
e(
|
|
76
|
-
function
|
|
78
|
+
e(v, "AlertDialogHeader");
|
|
79
|
+
function b({
|
|
77
80
|
className: t,
|
|
78
81
|
...a
|
|
79
82
|
}) {
|
|
@@ -81,7 +84,7 @@ function O({
|
|
|
81
84
|
"div",
|
|
82
85
|
{
|
|
83
86
|
"data-slot": "alert-dialog-footer",
|
|
84
|
-
className:
|
|
87
|
+
className: r(
|
|
85
88
|
"fc:flex fc:flex-col-reverse fc:gap-2 fc:sm:flex-row fc:sm:justify-end",
|
|
86
89
|
t
|
|
87
90
|
),
|
|
@@ -89,72 +92,75 @@ function O({
|
|
|
89
92
|
}
|
|
90
93
|
);
|
|
91
94
|
}
|
|
92
|
-
e(
|
|
93
|
-
function
|
|
95
|
+
e(b, "AlertDialogFooter");
|
|
96
|
+
function y({
|
|
94
97
|
className: t,
|
|
95
98
|
...a
|
|
96
99
|
}) {
|
|
97
100
|
return /* @__PURE__ */ o(
|
|
98
|
-
|
|
101
|
+
l.Title,
|
|
99
102
|
{
|
|
100
103
|
"data-slot": "alert-dialog-title",
|
|
101
|
-
className:
|
|
104
|
+
className: r("fc:text-lg fc:font-semibold", t),
|
|
102
105
|
...a
|
|
103
106
|
}
|
|
104
107
|
);
|
|
105
108
|
}
|
|
106
|
-
e(
|
|
107
|
-
function
|
|
109
|
+
e(y, "AlertDialogTitle");
|
|
110
|
+
function w({
|
|
108
111
|
className: t,
|
|
109
112
|
...a
|
|
110
113
|
}) {
|
|
111
114
|
return /* @__PURE__ */ o(
|
|
112
|
-
|
|
115
|
+
l.Description,
|
|
113
116
|
{
|
|
114
117
|
"data-slot": "alert-dialog-description",
|
|
115
|
-
className:
|
|
118
|
+
className: r("fc:text-muted fc:text-sm", t),
|
|
116
119
|
...a
|
|
117
120
|
}
|
|
118
121
|
);
|
|
119
122
|
}
|
|
120
|
-
e(
|
|
121
|
-
function
|
|
123
|
+
e(w, "AlertDialogDescription");
|
|
124
|
+
function h({
|
|
122
125
|
color: t = "primary",
|
|
123
126
|
className: a,
|
|
124
|
-
...
|
|
127
|
+
...f
|
|
125
128
|
}) {
|
|
126
129
|
return /* @__PURE__ */ o(
|
|
127
|
-
|
|
130
|
+
l.Action,
|
|
128
131
|
{
|
|
129
|
-
className:
|
|
130
|
-
...
|
|
132
|
+
className: r(c({ color: t }), a),
|
|
133
|
+
...f
|
|
131
134
|
}
|
|
132
135
|
);
|
|
133
136
|
}
|
|
134
|
-
e(
|
|
135
|
-
function
|
|
137
|
+
e(h, "AlertDialogAction");
|
|
138
|
+
function z({
|
|
136
139
|
className: t,
|
|
137
140
|
...a
|
|
138
141
|
}) {
|
|
139
142
|
return /* @__PURE__ */ o(
|
|
140
|
-
|
|
143
|
+
l.Cancel,
|
|
141
144
|
{
|
|
142
|
-
className:
|
|
145
|
+
className: r(
|
|
146
|
+
c({ variant: "ghost", color: "dark" }),
|
|
147
|
+
t
|
|
148
|
+
),
|
|
143
149
|
...a
|
|
144
150
|
}
|
|
145
151
|
);
|
|
146
152
|
}
|
|
147
|
-
e(
|
|
153
|
+
e(z, "AlertDialogCancel");
|
|
148
154
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
A as AlertDialog,
|
|
156
|
+
h as AlertDialogAction,
|
|
157
|
+
z as AlertDialogCancel,
|
|
158
|
+
N as AlertDialogContent,
|
|
159
|
+
w as AlertDialogDescription,
|
|
160
|
+
b as AlertDialogFooter,
|
|
161
|
+
v as AlertDialogHeader,
|
|
162
|
+
d as AlertDialogOverlay,
|
|
163
|
+
s as AlertDialogPortal,
|
|
164
|
+
y as AlertDialogTitle,
|
|
165
|
+
D as AlertDialogTrigger
|
|
160
166
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Avatar as AvatarPrimitive } from "radix-ui";
|
|
2
2
|
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (a, t) =>
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var c = (a, t) => l(a, "name", { value: t, configurable: !0 });
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
4
|
+
import { Avatar as f } from "radix-ui";
|
|
5
|
+
import { cn as r } from "../lib/utils.js";
|
|
6
|
+
function u({
|
|
7
7
|
className: a,
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ e(
|
|
11
|
-
|
|
11
|
+
f.Root,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "avatar",
|
|
14
|
-
className:
|
|
14
|
+
className: r(
|
|
15
15
|
"fc:relative fc:flex fc:size-8 fc:shrink-0 fc:overflow-hidden fc:rounded-full",
|
|
16
16
|
a
|
|
17
17
|
),
|
|
@@ -19,30 +19,30 @@ function d({
|
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
|
-
c(
|
|
23
|
-
function
|
|
22
|
+
c(u, "Avatar");
|
|
23
|
+
function m({
|
|
24
24
|
className: a,
|
|
25
25
|
...t
|
|
26
26
|
}) {
|
|
27
27
|
return /* @__PURE__ */ e(
|
|
28
|
-
|
|
28
|
+
f.Image,
|
|
29
29
|
{
|
|
30
30
|
"data-slot": "avatar-image",
|
|
31
|
-
className:
|
|
31
|
+
className: r("fc:aspect-square fc:size-full", a),
|
|
32
32
|
...t
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
c(
|
|
37
|
-
function
|
|
36
|
+
c(m, "AvatarImage");
|
|
37
|
+
function v({
|
|
38
38
|
className: a,
|
|
39
39
|
...t
|
|
40
40
|
}) {
|
|
41
41
|
return /* @__PURE__ */ e(
|
|
42
|
-
|
|
42
|
+
f.Fallback,
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "avatar-fallback",
|
|
45
|
-
className:
|
|
45
|
+
className: r(
|
|
46
46
|
"fc:bg-accent fc:flex fc:size-full fc:items-center fc:justify-center fc:rounded-full",
|
|
47
47
|
a
|
|
48
48
|
),
|
|
@@ -50,9 +50,9 @@ function p({
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
c(
|
|
53
|
+
c(v, "AvatarFallback");
|
|
54
54
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
u as Avatar,
|
|
56
|
+
v as AvatarFallback,
|
|
57
|
+
m as AvatarImage
|
|
58
58
|
};
|
package/dist/components/badge.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (r, i) =>
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { cva as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var e = (r, i) => o(r, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Slot as s } from "radix-ui";
|
|
5
|
+
import { cva as g } from "class-variance-authority";
|
|
6
|
+
import { cn as a } from "../lib/utils.js";
|
|
7
|
+
const d = g(
|
|
8
8
|
"fc:inline-flex fc:items-center fc:justify-center fc:rounded-md fc:border fc:px-2 fc:py-0.5 fc:text-xs fc:font-medium fc:w-fit fc:whitespace-nowrap fc:shrink-0 fc:[&>svg]:size-3 fc:gap-1 fc:[&>svg]:pointer-events-none fc:focus-visible:border-ring fc:focus-visible:ring-ring/50 fc:focus-visible:ring-[3px] fc:aria-invalid:ring-destructive/20 fc:dark:aria-invalid:ring-destructive/40 fc:aria-invalid:border-destructive fc:transition-[color,box-shadow] fc:overflow-hidden",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -27,11 +27,12 @@ function m({
|
|
|
27
27
|
asChild: t = !1,
|
|
28
28
|
...f
|
|
29
29
|
}) {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
const c = t ? s.Root : "span";
|
|
31
|
+
return /* @__PURE__ */ n(
|
|
32
|
+
c,
|
|
32
33
|
{
|
|
33
34
|
"data-slot": "badge",
|
|
34
|
-
className:
|
|
35
|
+
className: a(d({ variant: i }), r),
|
|
35
36
|
...f
|
|
36
37
|
}
|
|
37
38
|
);
|
|
@@ -39,5 +40,5 @@ function m({
|
|
|
39
40
|
e(m, "Badge");
|
|
40
41
|
export {
|
|
41
42
|
m as Badge,
|
|
42
|
-
|
|
43
|
+
d as badgeVariants
|
|
43
44
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (r, c) =>
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { cva as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var e = (r, c) => s(r, "name", { value: c, configurable: !0 });
|
|
3
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
4
|
+
import { Slot as d } from "radix-ui";
|
|
5
|
+
import { cva as v } from "class-variance-authority";
|
|
6
|
+
import { cn as g } from "../lib/utils.js";
|
|
7
|
+
const u = v(
|
|
8
8
|
"fc:cursor-pointer fc:inline-flex fc:items-center fc:justify-center fc:gap-2 fc:whitespace-nowrap fc:rounded-md fc:text-sm fc:font-medium fc:transition-all fc:disabled:pointer-events-none fc:disabled:opacity-50 fc:[&_svg]:pointer-events-none fc:[&_svg:not([class*='size-'])]:size-4 fc:shrink-0 fc:[&_svg]:shrink-0 fc:outline-none fc:focus-visible:ring-[3px] fc:aria-invalid:ring-destructive/20 fc:dark:aria-invalid:ring-destructive/40 fc:aria-invalid:border-destructive",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -136,11 +136,12 @@ function x({
|
|
|
136
136
|
asChild: a = !1,
|
|
137
137
|
...i
|
|
138
138
|
}) {
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
const n = a ? d.Root : "button";
|
|
140
|
+
return /* @__PURE__ */ f(
|
|
141
|
+
n,
|
|
141
142
|
{
|
|
142
143
|
"data-slot": "button",
|
|
143
|
-
className:
|
|
144
|
+
className: g(u({ variant: c, color: o, size: t, className: r })),
|
|
144
145
|
...i
|
|
145
146
|
}
|
|
146
147
|
);
|
|
@@ -148,5 +149,5 @@ function x({
|
|
|
148
149
|
e(x, "Button");
|
|
149
150
|
export {
|
|
150
151
|
x as Button,
|
|
151
|
-
|
|
152
|
+
u as buttonVariants
|
|
152
153
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
3
3
|
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Checkbox };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (c,
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { CheckIcon as
|
|
6
|
-
import { cn as
|
|
7
|
-
function
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var i = (c, r) => o(c, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
+
import { Checkbox as t } from "radix-ui";
|
|
5
|
+
import { CheckIcon as a } from "lucide-react";
|
|
6
|
+
import { cn as f } from "../lib/utils.js";
|
|
7
|
+
function u({
|
|
8
8
|
className: c,
|
|
9
|
-
...
|
|
9
|
+
...r
|
|
10
10
|
}) {
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
|
|
11
|
+
return /* @__PURE__ */ e(
|
|
12
|
+
t.Root,
|
|
13
13
|
{
|
|
14
14
|
"data-slot": "checkbox",
|
|
15
|
-
className:
|
|
15
|
+
className: f(
|
|
16
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
17
|
c
|
|
18
18
|
),
|
|
19
|
-
...
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
...r,
|
|
20
|
+
children: /* @__PURE__ */ e(
|
|
21
|
+
t.Indicator,
|
|
22
22
|
{
|
|
23
23
|
"data-slot": "checkbox-indicator",
|
|
24
24
|
className: "fc:flex fc:items-center fc:justify-center fc:text-current fc:transition-none",
|
|
25
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ e(a, { className: "fc:size-3.5" })
|
|
26
26
|
}
|
|
27
27
|
)
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
i(
|
|
31
|
+
i(u, "Checkbox");
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
u as Checkbox
|
|
34
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
3
3
|
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|