fina-react-ds 1.0.22 → 1.0.23
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 +59 -0
- package/dist/lib/yup.d.ts +2 -0
- package/dist/lib/yup.js +88 -0
- package/package.json +6 -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,42 +1,42 @@
|
|
|
1
1
|
var s = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { XIcon as
|
|
6
|
-
import { cn as
|
|
7
|
-
function
|
|
2
|
+
var e = (t, a) => s(t, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { Dialog as c } from "radix-ui";
|
|
5
|
+
import { XIcon as r } from "lucide-react";
|
|
6
|
+
import { cn as f } from "../lib/utils.js";
|
|
7
|
+
function D({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ o(c.Root, { "data-slot": "dialog", ...t });
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
function
|
|
12
|
+
e(D, "Dialog");
|
|
13
|
+
function h({
|
|
14
14
|
...t
|
|
15
15
|
}) {
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ o(c.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
function
|
|
18
|
+
e(h, "DialogTrigger");
|
|
19
|
+
function d({
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ o(c.Portal, { "data-slot": "dialog-portal", ...t });
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
function
|
|
24
|
+
e(d, "DialogPortal");
|
|
25
|
+
function b({
|
|
26
26
|
...t
|
|
27
27
|
}) {
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ o(c.Close, { "data-slot": "dialog-close", ...t });
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
function
|
|
30
|
+
e(b, "DialogClose");
|
|
31
|
+
function g({
|
|
32
32
|
className: t,
|
|
33
33
|
...a
|
|
34
34
|
}) {
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
return /* @__PURE__ */ o(
|
|
36
|
+
c.Overlay,
|
|
37
37
|
{
|
|
38
38
|
"data-slot": "dialog-overlay",
|
|
39
|
-
className:
|
|
39
|
+
className: f(
|
|
40
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
|
),
|
|
@@ -44,32 +44,32 @@ function h({
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
function
|
|
47
|
+
e(g, "DialogOverlay");
|
|
48
|
+
function y({
|
|
49
49
|
className: t,
|
|
50
50
|
children: a,
|
|
51
|
-
showCloseButton:
|
|
51
|
+
showCloseButton: n = !0,
|
|
52
52
|
...i
|
|
53
53
|
}) {
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
return /* @__PURE__ */ o(d, { "data-slot": "dialog-portal", children: /* @__PURE__ */ o(g, { children: /* @__PURE__ */ l(
|
|
55
|
+
c.Content,
|
|
56
56
|
{
|
|
57
57
|
"data-slot": "dialog-content",
|
|
58
|
-
className:
|
|
58
|
+
className: f(
|
|
59
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
60
|
t
|
|
61
61
|
),
|
|
62
62
|
...i,
|
|
63
63
|
children: [
|
|
64
64
|
a,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
n && /* @__PURE__ */ l(
|
|
66
|
+
c.Close,
|
|
67
67
|
{
|
|
68
68
|
"data-slot": "dialog-close",
|
|
69
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
70
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ o(r, {}),
|
|
72
|
+
/* @__PURE__ */ o("span", { className: "fc:sr-only", children: "Close" })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
)
|
|
@@ -77,24 +77,24 @@ function k({
|
|
|
77
77
|
}
|
|
78
78
|
) }) });
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
function
|
|
82
|
-
return /* @__PURE__ */
|
|
80
|
+
e(y, "DialogContent");
|
|
81
|
+
function N({ className: t, ...a }) {
|
|
82
|
+
return /* @__PURE__ */ o(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
"data-slot": "dialog-header",
|
|
86
|
-
className:
|
|
86
|
+
className: f("fc:flex fc:flex-col fc:gap-2 fc:text-center fc:sm:text-left", t),
|
|
87
87
|
...a
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
return /* @__PURE__ */
|
|
91
|
+
e(N, "DialogHeader");
|
|
92
|
+
function w({ className: t, ...a }) {
|
|
93
|
+
return /* @__PURE__ */ o(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
96
|
"data-slot": "dialog-footer",
|
|
97
|
-
className:
|
|
97
|
+
className: f(
|
|
98
98
|
"fc:flex fc:flex-col-reverse fc:gap-2 fc:sm:flex-row fc:sm:justify-end",
|
|
99
99
|
t
|
|
100
100
|
),
|
|
@@ -102,44 +102,44 @@ function O({ className: t, ...a }) {
|
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
function
|
|
105
|
+
e(w, "DialogFooter");
|
|
106
|
+
function z({
|
|
107
107
|
className: t,
|
|
108
108
|
...a
|
|
109
109
|
}) {
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
|
|
110
|
+
return /* @__PURE__ */ o(
|
|
111
|
+
c.Title,
|
|
112
112
|
{
|
|
113
113
|
"data-slot": "dialog-title",
|
|
114
|
-
className:
|
|
114
|
+
className: f("fc:text-lg fc:leading-none fc:font-semibold", t),
|
|
115
115
|
...a
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
function
|
|
119
|
+
e(z, "DialogTitle");
|
|
120
|
+
function C({
|
|
121
121
|
className: t,
|
|
122
122
|
...a
|
|
123
123
|
}) {
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
|
|
124
|
+
return /* @__PURE__ */ o(
|
|
125
|
+
c.Description,
|
|
126
126
|
{
|
|
127
127
|
"data-slot": "dialog-description",
|
|
128
|
-
className:
|
|
128
|
+
className: f("fc:text-muted fc:text-sm", t),
|
|
129
129
|
...a
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
e(C, "DialogDescription");
|
|
134
134
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
135
|
+
D as Dialog,
|
|
136
|
+
b as DialogClose,
|
|
137
|
+
y as DialogContent,
|
|
138
|
+
C as DialogDescription,
|
|
139
|
+
w as DialogFooter,
|
|
140
|
+
N as DialogHeader,
|
|
141
|
+
g as DialogOverlay,
|
|
142
|
+
d as DialogPortal,
|
|
143
|
+
z as DialogTitle,
|
|
144
|
+
h as DialogTrigger
|
|
145
145
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
3
3
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as t, jsxs as
|
|
4
|
-
import {
|
|
5
|
-
import { CheckIcon as
|
|
6
|
-
import { cn as
|
|
7
|
-
function
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var a = (e, o) => i(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import { DropdownMenu as n } from "radix-ui";
|
|
5
|
+
import { CheckIcon as f, CircleIcon as u, ChevronRightIcon as l } from "lucide-react";
|
|
6
|
+
import { cn as d } from "../lib/utils.js";
|
|
7
|
+
function x({
|
|
8
8
|
...e
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ t(
|
|
10
|
+
return /* @__PURE__ */ t(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
function
|
|
12
|
+
a(x, "DropdownMenu");
|
|
13
|
+
function b({
|
|
14
14
|
...e
|
|
15
15
|
}) {
|
|
16
|
-
return /* @__PURE__ */ t(
|
|
16
|
+
return /* @__PURE__ */ t(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
function
|
|
18
|
+
a(b, "DropdownMenuPortal");
|
|
19
|
+
function h({
|
|
20
20
|
...e
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ t(
|
|
23
|
-
|
|
23
|
+
n.Trigger,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "dropdown-menu-trigger",
|
|
26
26
|
...e
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
function
|
|
30
|
+
a(h, "DropdownMenuTrigger");
|
|
31
|
+
function z({
|
|
32
32
|
className: e,
|
|
33
33
|
sideOffset: o = 4,
|
|
34
|
-
...
|
|
34
|
+
...r
|
|
35
35
|
}) {
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
37
|
-
|
|
36
|
+
return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
|
|
37
|
+
n.Content,
|
|
38
38
|
{
|
|
39
39
|
"data-slot": "dropdown-menu-content",
|
|
40
40
|
sideOffset: o,
|
|
41
|
-
className:
|
|
41
|
+
className: d(
|
|
42
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
|
+
...r
|
|
46
46
|
}
|
|
47
47
|
) });
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
function
|
|
49
|
+
a(z, "DropdownMenuContent");
|
|
50
|
+
function D({
|
|
51
51
|
...e
|
|
52
52
|
}) {
|
|
53
|
-
return /* @__PURE__ */ t(
|
|
53
|
+
return /* @__PURE__ */ t(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
function
|
|
55
|
+
a(D, "DropdownMenuGroup");
|
|
56
|
+
function M({
|
|
57
57
|
className: e,
|
|
58
58
|
inset: o,
|
|
59
|
-
variant:
|
|
59
|
+
variant: r = "default",
|
|
60
60
|
...c
|
|
61
61
|
}) {
|
|
62
62
|
return /* @__PURE__ */ t(
|
|
63
|
-
|
|
63
|
+
n.Item,
|
|
64
64
|
{
|
|
65
65
|
"data-slot": "dropdown-menu-item",
|
|
66
66
|
"data-inset": o,
|
|
67
|
-
"data-variant":
|
|
68
|
-
className:
|
|
67
|
+
"data-variant": r,
|
|
68
|
+
className: d(
|
|
69
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
|
),
|
|
@@ -73,99 +73,99 @@ function q({
|
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
function
|
|
76
|
+
a(M, "DropdownMenuItem");
|
|
77
|
+
function N({
|
|
78
78
|
className: e,
|
|
79
79
|
children: o,
|
|
80
|
-
checked:
|
|
80
|
+
checked: r,
|
|
81
81
|
...c
|
|
82
82
|
}) {
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
|
|
83
|
+
return /* @__PURE__ */ s(
|
|
84
|
+
n.CheckboxItem,
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
87
|
-
className:
|
|
87
|
+
className: d(
|
|
88
88
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
89
89
|
e
|
|
90
90
|
),
|
|
91
|
-
checked:
|
|
91
|
+
checked: r,
|
|
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(n.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "size-4" }) }) }),
|
|
95
95
|
o
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
-
|
|
101
|
-
function
|
|
100
|
+
a(N, "DropdownMenuCheckboxItem");
|
|
101
|
+
function I({
|
|
102
102
|
...e
|
|
103
103
|
}) {
|
|
104
104
|
return /* @__PURE__ */ t(
|
|
105
|
-
|
|
105
|
+
n.RadioGroup,
|
|
106
106
|
{
|
|
107
107
|
"data-slot": "dropdown-menu-radio-group",
|
|
108
108
|
...e
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
function
|
|
112
|
+
a(I, "DropdownMenuRadioGroup");
|
|
113
|
+
function y({
|
|
114
114
|
className: e,
|
|
115
115
|
children: o,
|
|
116
|
-
...
|
|
116
|
+
...r
|
|
117
117
|
}) {
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
|
|
118
|
+
return /* @__PURE__ */ s(
|
|
119
|
+
n.RadioItem,
|
|
120
120
|
{
|
|
121
121
|
"data-slot": "dropdown-menu-radio-item",
|
|
122
|
-
className:
|
|
122
|
+
className: d(
|
|
123
123
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
124
124
|
e
|
|
125
125
|
),
|
|
126
|
-
...
|
|
126
|
+
...r,
|
|
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(n.ItemIndicator, { children: /* @__PURE__ */ t(u, { className: "size-2 fill-current" }) }) }),
|
|
129
129
|
o
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
function
|
|
134
|
+
a(y, "DropdownMenuRadioItem");
|
|
135
|
+
function _({
|
|
136
136
|
className: e,
|
|
137
137
|
inset: o,
|
|
138
|
-
...
|
|
138
|
+
...r
|
|
139
139
|
}) {
|
|
140
140
|
return /* @__PURE__ */ t(
|
|
141
|
-
|
|
141
|
+
n.Label,
|
|
142
142
|
{
|
|
143
143
|
"data-slot": "dropdown-menu-label",
|
|
144
144
|
"data-inset": o,
|
|
145
|
-
className:
|
|
145
|
+
className: d(
|
|
146
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
|
+
...r
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
function
|
|
153
|
+
a(_, "DropdownMenuLabel");
|
|
154
|
+
function k({
|
|
155
155
|
className: e,
|
|
156
156
|
...o
|
|
157
157
|
}) {
|
|
158
158
|
return /* @__PURE__ */ t(
|
|
159
|
-
|
|
159
|
+
n.Separator,
|
|
160
160
|
{
|
|
161
161
|
"data-slot": "dropdown-menu-separator",
|
|
162
|
-
className:
|
|
162
|
+
className: d("fc:bg-border fc:-mx-1 fc:my-1 fc:h-px", e),
|
|
163
163
|
...o
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
function
|
|
167
|
+
a(k, "DropdownMenuSeparator");
|
|
168
|
+
function C({
|
|
169
169
|
className: e,
|
|
170
170
|
...o
|
|
171
171
|
}) {
|
|
@@ -173,7 +173,7 @@ function J({
|
|
|
173
173
|
"span",
|
|
174
174
|
{
|
|
175
175
|
"data-slot": "dropdown-menu-shortcut",
|
|
176
|
-
className:
|
|
176
|
+
className: d(
|
|
177
177
|
"fc:text-muted fc:ml-auto fc:text-xs fc:tracking-widest",
|
|
178
178
|
e
|
|
179
179
|
),
|
|
@@ -181,46 +181,46 @@ function J({
|
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
function
|
|
184
|
+
a(C, "DropdownMenuShortcut");
|
|
185
|
+
function S({
|
|
186
186
|
...e
|
|
187
187
|
}) {
|
|
188
|
-
return /* @__PURE__ */ t(
|
|
188
|
+
return /* @__PURE__ */ t(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
function
|
|
190
|
+
a(S, "DropdownMenuSub");
|
|
191
|
+
function R({
|
|
192
192
|
className: e,
|
|
193
193
|
inset: o,
|
|
194
|
-
children:
|
|
194
|
+
children: r,
|
|
195
195
|
...c
|
|
196
196
|
}) {
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
|
|
197
|
+
return /* @__PURE__ */ s(
|
|
198
|
+
n.SubTrigger,
|
|
199
199
|
{
|
|
200
200
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
201
201
|
"data-inset": o,
|
|
202
|
-
className:
|
|
202
|
+
className: d(
|
|
203
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
|
-
|
|
209
|
-
/* @__PURE__ */ t(
|
|
208
|
+
r,
|
|
209
|
+
/* @__PURE__ */ t(l, { className: "fc:ml-auto fc:size-4" })
|
|
210
210
|
]
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
|
-
|
|
215
|
-
function
|
|
214
|
+
a(R, "DropdownMenuSubTrigger");
|
|
215
|
+
function j({
|
|
216
216
|
className: e,
|
|
217
217
|
...o
|
|
218
218
|
}) {
|
|
219
219
|
return /* @__PURE__ */ t(
|
|
220
|
-
|
|
220
|
+
n.SubContent,
|
|
221
221
|
{
|
|
222
222
|
"data-slot": "dropdown-menu-sub-content",
|
|
223
|
-
className:
|
|
223
|
+
className: d(
|
|
224
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
|
),
|
|
@@ -228,21 +228,21 @@ function Q({
|
|
|
228
228
|
}
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
a(j, "DropdownMenuSubContent");
|
|
232
232
|
export {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
233
|
+
x as DropdownMenu,
|
|
234
|
+
N as DropdownMenuCheckboxItem,
|
|
235
|
+
z as DropdownMenuContent,
|
|
236
|
+
D as DropdownMenuGroup,
|
|
237
|
+
M as DropdownMenuItem,
|
|
238
|
+
_ as DropdownMenuLabel,
|
|
239
|
+
b as DropdownMenuPortal,
|
|
240
|
+
I as DropdownMenuRadioGroup,
|
|
241
|
+
y as DropdownMenuRadioItem,
|
|
242
|
+
k as DropdownMenuSeparator,
|
|
243
|
+
C as DropdownMenuShortcut,
|
|
244
|
+
S as DropdownMenuSub,
|
|
245
|
+
j as DropdownMenuSubContent,
|
|
246
|
+
R as DropdownMenuSubTrigger,
|
|
247
|
+
h as DropdownMenuTrigger
|
|
248
248
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
3
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { Label as LabelPrimitive, Slot as SlotPrimitve } from "radix-ui";
|
|
4
3
|
import { type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
|
|
5
4
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
5
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,7 +19,7 @@ declare function FormItem({ className, ...props }: React.ComponentProps<"div">):
|
|
|
20
19
|
declare function FormLabel({ className, required, ...props }: React.ComponentProps<typeof LabelPrimitive.Root> & {
|
|
21
20
|
required: boolean;
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare function FormControl({ ...props }: React.ComponentProps<typeof
|
|
22
|
+
declare function FormControl({ ...props }: React.ComponentProps<typeof SlotPrimitve.Root>): import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
25
24
|
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element | null;
|
|
26
25
|
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
package/dist/components/form.js
CHANGED
|
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var n = (t, e) => u(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
4
|
import * as i from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { Slot as F } from "radix-ui";
|
|
6
6
|
import { FormProvider as x, useFormContext as I, useFormState as p, Controller as g } from "react-hook-form";
|
|
7
7
|
import { cn as c } from "../lib/utils.js";
|
|
8
8
|
import { Label as C } from "./label.js";
|
|
@@ -60,7 +60,7 @@ n(P, "FormLabel");
|
|
|
60
60
|
function y({ ...t }) {
|
|
61
61
|
const { error: e, formItemId: o, formDescriptionId: r, formMessageId: m } = d();
|
|
62
62
|
return /* @__PURE__ */ s(
|
|
63
|
-
F,
|
|
63
|
+
F.Root,
|
|
64
64
|
{
|
|
65
65
|
"data-slot": "form-control",
|
|
66
66
|
id: o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3
3
|
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|