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,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (a, e) =>
|
|
3
|
-
import { jsx as t, jsxs as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import { cva as I } from "class-variance-authority";
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var c = (a, e) => I(a, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
4
|
+
import * as l from "react";
|
|
5
|
+
import { cva as C } from "class-variance-authority";
|
|
7
6
|
import { PanelLeftIcon as E } from "lucide-react";
|
|
7
|
+
import { Slot as v } from "radix-ui";
|
|
8
8
|
import { useIsMobile as D } from "../hooks/use-mobile.js";
|
|
9
9
|
import { cn as r } from "../lib/utils.js";
|
|
10
|
-
import { Button as
|
|
11
|
-
import { Input as
|
|
12
|
-
import { Separator as
|
|
13
|
-
import { Sheet as
|
|
10
|
+
import { Button as R } from "./button.js";
|
|
11
|
+
import { Input as T } from "./input.js";
|
|
12
|
+
import { Separator as B } from "./separator.js";
|
|
13
|
+
import { Sheet as A, SheetContent as O, SheetHeader as H, SheetTitle as K, SheetDescription as j } from "./sheet.js";
|
|
14
14
|
import { Skeleton as _ } from "./skeleton.js";
|
|
15
15
|
import { Tooltip as G, TooltipTrigger as L, TooltipContent as $, TooltipProvider as P } from "./tooltip.js";
|
|
16
|
-
const V = "sidebar_state", W = 60 * 60 * 24 * 7, q = "16rem", F = "18rem", U = "3rem", X = "b", M =
|
|
16
|
+
const V = "sidebar_state", W = 60 * 60 * 24 * 7, q = "16rem", F = "18rem", U = "3rem", X = "b", M = l.createContext(null);
|
|
17
17
|
function N() {
|
|
18
|
-
const a =
|
|
18
|
+
const a = l.useContext(M);
|
|
19
19
|
if (!a)
|
|
20
20
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
21
21
|
return a;
|
|
@@ -27,35 +27,35 @@ function se({
|
|
|
27
27
|
onOpenChange: i,
|
|
28
28
|
className: n,
|
|
29
29
|
style: o,
|
|
30
|
-
children:
|
|
31
|
-
...
|
|
30
|
+
children: d,
|
|
31
|
+
...m
|
|
32
32
|
}) {
|
|
33
|
-
const
|
|
33
|
+
const s = D(), [p, u] = l.useState(!1), [x, k] = l.useState(a), h = e ?? x, w = l.useCallback(
|
|
34
34
|
(f) => {
|
|
35
35
|
const b = typeof f == "function" ? f(h) : f;
|
|
36
36
|
i ? i(b) : k(b), document.cookie = `${V}=${b}; path=/; max-age=${W}`;
|
|
37
37
|
},
|
|
38
38
|
[i, h]
|
|
39
|
-
), S =
|
|
40
|
-
|
|
39
|
+
), S = l.useCallback(() => s ? u((f) => !f) : w((f) => !f), [s, w, u]);
|
|
40
|
+
l.useEffect(() => {
|
|
41
41
|
const f = /* @__PURE__ */ c((b) => {
|
|
42
42
|
b.key === X && (b.metaKey || b.ctrlKey) && (b.preventDefault(), S());
|
|
43
43
|
}, "handleKeyDown");
|
|
44
44
|
return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
|
|
45
45
|
}, [S]);
|
|
46
|
-
const y = h ? "expanded" : "collapsed",
|
|
46
|
+
const y = h ? "expanded" : "collapsed", z = l.useMemo(
|
|
47
47
|
() => ({
|
|
48
48
|
state: y,
|
|
49
49
|
open: h,
|
|
50
50
|
setOpen: w,
|
|
51
|
-
isMobile:
|
|
51
|
+
isMobile: s,
|
|
52
52
|
openMobile: p,
|
|
53
53
|
setOpenMobile: u,
|
|
54
54
|
toggleSidebar: S
|
|
55
55
|
}),
|
|
56
|
-
[y, h, w,
|
|
56
|
+
[y, h, w, s, p, u, S]
|
|
57
57
|
);
|
|
58
|
-
return /* @__PURE__ */ t(M.Provider, { value:
|
|
58
|
+
return /* @__PURE__ */ t(M.Provider, { value: z, children: /* @__PURE__ */ t(P, { delayDuration: 0, children: /* @__PURE__ */ t(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
61
|
"data-slot": "sidebar-wrapper",
|
|
@@ -68,8 +68,8 @@ function se({
|
|
|
68
68
|
"fc:group/sidebar-wrapper fc:has-data-[variant=inset]:bg-sidebar fc:flex fc:min-h-svh fc:w-full",
|
|
69
69
|
n
|
|
70
70
|
),
|
|
71
|
-
...
|
|
72
|
-
children:
|
|
71
|
+
...m,
|
|
72
|
+
children: d
|
|
73
73
|
}
|
|
74
74
|
) }) });
|
|
75
75
|
}
|
|
@@ -80,9 +80,9 @@ function le({
|
|
|
80
80
|
collapsible: i = "offcanvas",
|
|
81
81
|
className: n,
|
|
82
82
|
children: o,
|
|
83
|
-
...
|
|
83
|
+
...d
|
|
84
84
|
}) {
|
|
85
|
-
const { isMobile:
|
|
85
|
+
const { isMobile: m, state: s, openMobile: p, setOpenMobile: u } = N();
|
|
86
86
|
return i === "none" ? /* @__PURE__ */ t(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
@@ -91,11 +91,11 @@ function le({
|
|
|
91
91
|
"fc:bg-sidebar fc:text-sidebar-foreground fc:flex fc:h-full fc:w-(--sidebar-width) fc:flex-col",
|
|
92
92
|
n
|
|
93
93
|
),
|
|
94
|
-
...
|
|
94
|
+
...d,
|
|
95
95
|
children: o
|
|
96
96
|
}
|
|
97
|
-
) :
|
|
98
|
-
|
|
97
|
+
) : m ? /* @__PURE__ */ t(A, { open: p, onOpenChange: u, ...d, children: /* @__PURE__ */ g(
|
|
98
|
+
O,
|
|
99
99
|
{
|
|
100
100
|
"data-sidebar": "sidebar",
|
|
101
101
|
"data-slot": "sidebar",
|
|
@@ -106,19 +106,19 @@ function le({
|
|
|
106
106
|
},
|
|
107
107
|
side: a,
|
|
108
108
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ g(H, { className: "fc:sr-only", children: [
|
|
110
110
|
/* @__PURE__ */ t(K, { children: "Sidebar" }),
|
|
111
111
|
/* @__PURE__ */ t(j, { children: "Displays the mobile sidebar." })
|
|
112
112
|
] }),
|
|
113
113
|
/* @__PURE__ */ t("div", { className: "fc:flex fc:h-full fc:w-full fc:flex-col", children: o })
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
|
-
) }) : /* @__PURE__ */
|
|
116
|
+
) }) : /* @__PURE__ */ g(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
className: "fc:group fc:peer fc:text-sidebar-foreground fc:hidden fc:md:block",
|
|
120
|
-
"data-state":
|
|
121
|
-
"data-collapsible":
|
|
120
|
+
"data-state": s,
|
|
121
|
+
"data-collapsible": s === "collapsed" ? i : "",
|
|
122
122
|
"data-variant": e,
|
|
123
123
|
"data-side": a,
|
|
124
124
|
"data-slot": "sidebar",
|
|
@@ -146,7 +146,7 @@ function le({
|
|
|
146
146
|
e === "floating" || e === "inset" ? "fc:p-2 fc:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "fc:group-data-[collapsible=icon]:w-(--sidebar-width-icon) fc:group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
147
147
|
n
|
|
148
148
|
),
|
|
149
|
-
...
|
|
149
|
+
...d,
|
|
150
150
|
children: /* @__PURE__ */ t(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -169,8 +169,8 @@ function ue({
|
|
|
169
169
|
...i
|
|
170
170
|
}) {
|
|
171
171
|
const { toggleSidebar: n } = N();
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
|
|
172
|
+
return /* @__PURE__ */ g(
|
|
173
|
+
R,
|
|
174
174
|
{
|
|
175
175
|
"data-sidebar": "trigger",
|
|
176
176
|
"data-slot": "sidebar-trigger",
|
|
@@ -230,12 +230,12 @@ function pe({ className: a, ...e }) {
|
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
232
|
c(pe, "SidebarInset");
|
|
233
|
-
function
|
|
233
|
+
function ge({
|
|
234
234
|
className: a,
|
|
235
235
|
...e
|
|
236
236
|
}) {
|
|
237
237
|
return /* @__PURE__ */ t(
|
|
238
|
-
|
|
238
|
+
T,
|
|
239
239
|
{
|
|
240
240
|
"data-slot": "sidebar-input",
|
|
241
241
|
"data-sidebar": "input",
|
|
@@ -244,8 +244,8 @@ function me({
|
|
|
244
244
|
}
|
|
245
245
|
);
|
|
246
246
|
}
|
|
247
|
-
c(
|
|
248
|
-
function
|
|
247
|
+
c(ge, "SidebarInput");
|
|
248
|
+
function me({ className: a, ...e }) {
|
|
249
249
|
return /* @__PURE__ */ t(
|
|
250
250
|
"div",
|
|
251
251
|
{
|
|
@@ -256,7 +256,7 @@ function ge({ className: a, ...e }) {
|
|
|
256
256
|
}
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
|
-
c(
|
|
259
|
+
c(me, "SidebarHeader");
|
|
260
260
|
function he({ className: a, ...e }) {
|
|
261
261
|
return /* @__PURE__ */ t(
|
|
262
262
|
"div",
|
|
@@ -274,7 +274,7 @@ function ve({
|
|
|
274
274
|
...e
|
|
275
275
|
}) {
|
|
276
276
|
return /* @__PURE__ */ t(
|
|
277
|
-
|
|
277
|
+
B,
|
|
278
278
|
{
|
|
279
279
|
"data-slot": "sidebar-separator",
|
|
280
280
|
"data-sidebar": "separator",
|
|
@@ -316,8 +316,9 @@ function Se({
|
|
|
316
316
|
asChild: e = !1,
|
|
317
317
|
...i
|
|
318
318
|
}) {
|
|
319
|
+
const n = e ? v.Root : "div";
|
|
319
320
|
return /* @__PURE__ */ t(
|
|
320
|
-
|
|
321
|
+
n,
|
|
321
322
|
{
|
|
322
323
|
"data-slot": "sidebar-group-label",
|
|
323
324
|
"data-sidebar": "group-label",
|
|
@@ -336,8 +337,9 @@ function Ne({
|
|
|
336
337
|
asChild: e = !1,
|
|
337
338
|
...i
|
|
338
339
|
}) {
|
|
340
|
+
const n = e ? v.Root : "button";
|
|
339
341
|
return /* @__PURE__ */ t(
|
|
340
|
-
|
|
342
|
+
n,
|
|
341
343
|
{
|
|
342
344
|
"data-slot": "sidebar-group-action",
|
|
343
345
|
"data-sidebar": "group-action",
|
|
@@ -392,7 +394,7 @@ function Me({ className: a, ...e }) {
|
|
|
392
394
|
);
|
|
393
395
|
}
|
|
394
396
|
c(Me, "SidebarMenuItem");
|
|
395
|
-
const Y =
|
|
397
|
+
const Y = C(
|
|
396
398
|
"fc:peer/menu-button fc:flex fc:w-full fc:items-center fc:gap-2 fc:overflow-hidden fc:rounded-md fc:p-2 fc:text-left fc:text-sm fc:outline-hidden fc:ring-sidebar-ring fc:transition-[width,height,padding] fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground fc:focus-visible:ring-2 fc:active:bg-sidebar-accent fc:active:text-sidebar-accent-foreground fc:disabled:pointer-events-none fc:disabled:opacity-50 fc:group-has-data-[sidebar=menu-action]/menu-item:pr-8 fc:aria-disabled:pointer-events-none fc:aria-disabled:opacity-50 fc:data-[active=true]:bg-sidebar-accent fc:data-[active=true]:font-medium fc:data-[active=true]:text-sidebar-accent-foreground fc:data-[state=open]:hover:bg-sidebar-accent fc:data-[state=open]:hover:text-sidebar-accent-foreground fc:group-data-[collapsible=icon]:size-8! fc:group-data-[collapsible=icon]:p-2! fc:[&>span:last-child]:truncate fc:[&>svg]:size-4 fc:[&>svg]:shrink-0",
|
|
397
399
|
{
|
|
398
400
|
variants: {
|
|
@@ -418,23 +420,23 @@ function ke({
|
|
|
418
420
|
variant: i = "default",
|
|
419
421
|
size: n = "default",
|
|
420
422
|
tooltip: o,
|
|
421
|
-
className:
|
|
422
|
-
...
|
|
423
|
+
className: d,
|
|
424
|
+
...m
|
|
423
425
|
}) {
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
+
const s = a ? v.Root : "button", { isMobile: p, state: u } = N(), x = /* @__PURE__ */ t(
|
|
427
|
+
s,
|
|
426
428
|
{
|
|
427
429
|
"data-slot": "sidebar-menu-button",
|
|
428
430
|
"data-sidebar": "menu-button",
|
|
429
431
|
"data-size": n,
|
|
430
432
|
"data-active": e,
|
|
431
|
-
className: r(Y({ variant: i, size: n }),
|
|
432
|
-
...
|
|
433
|
+
className: r(Y({ variant: i, size: n }), d),
|
|
434
|
+
...m
|
|
433
435
|
}
|
|
434
436
|
);
|
|
435
437
|
return o ? (typeof o == "string" && (o = {
|
|
436
438
|
children: o
|
|
437
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ g(G, { children: [
|
|
438
440
|
/* @__PURE__ */ t(L, { asChild: !0, children: x }),
|
|
439
441
|
/* @__PURE__ */ t(
|
|
440
442
|
$,
|
|
@@ -448,14 +450,15 @@ function ke({
|
|
|
448
450
|
] })) : x;
|
|
449
451
|
}
|
|
450
452
|
c(ke, "SidebarMenuButton");
|
|
451
|
-
function
|
|
453
|
+
function ze({
|
|
452
454
|
className: a,
|
|
453
455
|
asChild: e = !1,
|
|
454
456
|
showOnHover: i = !1,
|
|
455
457
|
...n
|
|
456
458
|
}) {
|
|
459
|
+
const o = e ? v.Root : "button";
|
|
457
460
|
return /* @__PURE__ */ t(
|
|
458
|
-
|
|
461
|
+
o,
|
|
459
462
|
{
|
|
460
463
|
"data-slot": "sidebar-menu-action",
|
|
461
464
|
"data-sidebar": "menu-action",
|
|
@@ -474,8 +477,8 @@ function Ce({
|
|
|
474
477
|
}
|
|
475
478
|
);
|
|
476
479
|
}
|
|
477
|
-
c(
|
|
478
|
-
function
|
|
480
|
+
c(ze, "SidebarMenuAction");
|
|
481
|
+
function Ie({
|
|
479
482
|
className: a,
|
|
480
483
|
...e
|
|
481
484
|
}) {
|
|
@@ -497,14 +500,14 @@ function ze({
|
|
|
497
500
|
}
|
|
498
501
|
);
|
|
499
502
|
}
|
|
500
|
-
c(
|
|
501
|
-
function
|
|
503
|
+
c(Ie, "SidebarMenuBadge");
|
|
504
|
+
function Ce({
|
|
502
505
|
className: a,
|
|
503
506
|
showIcon: e = !1,
|
|
504
507
|
...i
|
|
505
508
|
}) {
|
|
506
|
-
const n =
|
|
507
|
-
return /* @__PURE__ */
|
|
509
|
+
const n = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
510
|
+
return /* @__PURE__ */ g(
|
|
508
511
|
"div",
|
|
509
512
|
{
|
|
510
513
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -533,7 +536,7 @@ function Ie({
|
|
|
533
536
|
}
|
|
534
537
|
);
|
|
535
538
|
}
|
|
536
|
-
c(
|
|
539
|
+
c(Ce, "SidebarMenuSkeleton");
|
|
537
540
|
function Ee({ className: a, ...e }) {
|
|
538
541
|
return /* @__PURE__ */ t(
|
|
539
542
|
"ul",
|
|
@@ -565,15 +568,16 @@ function De({
|
|
|
565
568
|
);
|
|
566
569
|
}
|
|
567
570
|
c(De, "SidebarMenuSubItem");
|
|
568
|
-
function
|
|
571
|
+
function Re({
|
|
569
572
|
asChild: a = !1,
|
|
570
573
|
size: e = "md",
|
|
571
574
|
isActive: i = !1,
|
|
572
575
|
className: n,
|
|
573
576
|
...o
|
|
574
577
|
}) {
|
|
578
|
+
const d = a ? v.Root : "a";
|
|
575
579
|
return /* @__PURE__ */ t(
|
|
576
|
-
|
|
580
|
+
d,
|
|
577
581
|
{
|
|
578
582
|
"data-slot": "sidebar-menu-sub-button",
|
|
579
583
|
"data-sidebar": "menu-sub-button",
|
|
@@ -591,7 +595,7 @@ function Te({
|
|
|
591
595
|
}
|
|
592
596
|
);
|
|
593
597
|
}
|
|
594
|
-
c(
|
|
598
|
+
c(Re, "SidebarMenuSubButton");
|
|
595
599
|
export {
|
|
596
600
|
le as Sidebar,
|
|
597
601
|
xe as SidebarContent,
|
|
@@ -600,17 +604,17 @@ export {
|
|
|
600
604
|
Ne as SidebarGroupAction,
|
|
601
605
|
ye as SidebarGroupContent,
|
|
602
606
|
Se as SidebarGroupLabel,
|
|
603
|
-
|
|
604
|
-
|
|
607
|
+
me as SidebarHeader,
|
|
608
|
+
ge as SidebarInput,
|
|
605
609
|
pe as SidebarInset,
|
|
606
610
|
_e as SidebarMenu,
|
|
607
|
-
|
|
608
|
-
|
|
611
|
+
ze as SidebarMenuAction,
|
|
612
|
+
Ie as SidebarMenuBadge,
|
|
609
613
|
ke as SidebarMenuButton,
|
|
610
614
|
Me as SidebarMenuItem,
|
|
611
|
-
|
|
615
|
+
Ce as SidebarMenuSkeleton,
|
|
612
616
|
Ee as SidebarMenuSub,
|
|
613
|
-
|
|
617
|
+
Re as SidebarMenuSubButton,
|
|
614
618
|
De as SidebarMenuSubItem,
|
|
615
619
|
se as SidebarProvider,
|
|
616
620
|
be as SidebarRail,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
3
3
|
declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Switch };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var e = (c, t) => i(c, "name", { value: t, configurable: !0 });
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
4
|
+
import { Switch as f } from "radix-ui";
|
|
5
|
+
import { cn as a } from "../lib/utils.js";
|
|
6
|
+
function l({
|
|
7
7
|
className: c,
|
|
8
|
-
...
|
|
8
|
+
...t
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ r(
|
|
11
|
-
|
|
11
|
+
f.Root,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "switch",
|
|
14
|
-
className:
|
|
14
|
+
className: a(
|
|
15
15
|
"fc:peer fc:data-[state=checked]:bg-primary fc:data-[state=unchecked]:bg-input-border fc:focus-visible:border-ring fc:focus-visible:ring-ring/50 fc:inline-flex fc:h-[1.15rem] fc:w-8 fc:shrink-0 fc:items-center fc:rounded-full fc:border fc:border-transparent fc:shadow-xs fc:transition-all fc:outline-none fc:focus-visible:ring-[3px] fc:disabled:cursor-not-allowed fc:disabled:opacity-50",
|
|
16
16
|
c
|
|
17
17
|
),
|
|
18
|
-
...
|
|
18
|
+
...t,
|
|
19
19
|
children: /* @__PURE__ */ r(
|
|
20
|
-
|
|
20
|
+
f.Thumb,
|
|
21
21
|
{
|
|
22
22
|
"data-slot": "switch-thumb",
|
|
23
|
-
className:
|
|
23
|
+
className: a(
|
|
24
24
|
"fc:bg-input fc:dark:bg-foreground fc:pointer-events-none fc:block fc:size-4 fc:rounded-full fc:ring-0 fc:transition-transform fc:data-[state=checked]:translate-x-[calc(100%-2px)] fc:data-[state=unchecked]:translate-x-0"
|
|
25
25
|
)
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ function u({
|
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
e(l, "Switch");
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
l as Switch
|
|
34
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
3
3
|
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
2
|
var c = (t, e) => r(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as f } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
4
|
+
import { Tabs as s } from "radix-ui";
|
|
5
|
+
import { cn as a } from "../lib/utils.js";
|
|
6
|
+
function d({
|
|
7
7
|
className: t,
|
|
8
8
|
...e
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ f(
|
|
11
|
-
|
|
11
|
+
s.Root,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "tabs",
|
|
14
|
-
className:
|
|
14
|
+
className: a("fc:flex fc:flex-col fc:gap-2", t),
|
|
15
15
|
...e
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
c(
|
|
20
|
-
function
|
|
19
|
+
c(d, "Tabs");
|
|
20
|
+
function u({
|
|
21
21
|
className: t,
|
|
22
22
|
...e
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ f(
|
|
25
|
-
|
|
25
|
+
s.List,
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "tabs-list",
|
|
28
|
-
className:
|
|
28
|
+
className: a(
|
|
29
29
|
"fc:bg-tabs fc:text-muted fc:inline-flex fc:h-9 fc:w-fit fc:items-center fc:justify-center fc:rounded-lg fc:p-[3px]",
|
|
30
30
|
t
|
|
31
31
|
),
|
|
@@ -33,16 +33,16 @@ function m({
|
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
c(
|
|
37
|
-
function
|
|
36
|
+
c(u, "TabsList");
|
|
37
|
+
function b({
|
|
38
38
|
className: t,
|
|
39
39
|
...e
|
|
40
40
|
}) {
|
|
41
41
|
return /* @__PURE__ */ f(
|
|
42
|
-
|
|
42
|
+
s.Trigger,
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "tabs-trigger",
|
|
45
|
-
className:
|
|
45
|
+
className: a(
|
|
46
46
|
"fc:cursor-pointer fc:data-[state=active]:bg-primary fc:data-[state=active]:text-primary-foreground fc:focus-visible:border-ring fc:focus-visible:ring-primary/50 fc:focus-visible:outline-ring fc:dark:data-[state=active]:border-input fc:text-foreground fc:inline-flex fc:h-[calc(100%-1px)] fc:flex-1 fc:items-center fc:justify-center fc:gap-1.5 fc:rounded-md fc:border fc:border-transparent fc:px-2 fc:py-1 fc:text-sm fc:font-medium fc:whitespace-nowrap fc:transition-[color,box-shadow] fc:focus-visible:ring-[3px] fc:focus-visible:outline-1 fc:disabled:pointer-events-none fc:disabled:opacity-50 fc:data-[state=active]:shadow-sm fc:[&_svg]:pointer-events-none fc:[&_svg]:shrink-0 fc:[&_svg:not([class*='size-'])]:size-4",
|
|
47
47
|
t
|
|
48
48
|
),
|
|
@@ -50,24 +50,24 @@ function g({
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
c(
|
|
54
|
-
function
|
|
53
|
+
c(b, "TabsTrigger");
|
|
54
|
+
function p({
|
|
55
55
|
className: t,
|
|
56
56
|
...e
|
|
57
57
|
}) {
|
|
58
58
|
return /* @__PURE__ */ f(
|
|
59
|
-
|
|
59
|
+
s.Content,
|
|
60
60
|
{
|
|
61
61
|
"data-slot": "tabs-content",
|
|
62
|
-
className:
|
|
62
|
+
className: a("fc:flex-1 fc:outline-none", t),
|
|
63
63
|
...e
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
|
-
c(
|
|
67
|
+
c(p, "TabsContent");
|
|
68
68
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
d as Tabs,
|
|
70
|
+
p as TabsContent,
|
|
71
|
+
u as TabsList,
|
|
72
|
+
b as TabsTrigger
|
|
73
73
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
3
3
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var e = (t, r) => c(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as i, jsxs as d } from "react/jsx-runtime";
|
|
4
|
+
import { Tooltip as o } from "radix-ui";
|
|
5
|
+
import { cn as n } from "../lib/utils.js";
|
|
6
|
+
function l({
|
|
7
7
|
delayDuration: t = 0,
|
|
8
8
|
...r
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
10
|
+
return /* @__PURE__ */ i(
|
|
11
|
+
o.Provider,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "tooltip-provider",
|
|
14
14
|
delayDuration: t,
|
|
@@ -16,46 +16,46 @@ function g({
|
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
function
|
|
19
|
+
e(l, "TooltipProvider");
|
|
20
|
+
function g({
|
|
21
21
|
...t
|
|
22
22
|
}) {
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i(o.Root, { "data-slot": "tooltip", ...t }) });
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
function
|
|
25
|
+
e(g, "Tooltip");
|
|
26
|
+
function x({
|
|
27
27
|
...t
|
|
28
28
|
}) {
|
|
29
|
-
return /* @__PURE__ */ o
|
|
29
|
+
return /* @__PURE__ */ i(o.Trigger, { "data-slot": "tooltip-trigger", ...t });
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
function
|
|
31
|
+
e(x, "TooltipTrigger");
|
|
32
|
+
function T({
|
|
33
33
|
className: t,
|
|
34
34
|
sideOffset: r = 0,
|
|
35
35
|
children: a,
|
|
36
|
-
...
|
|
36
|
+
...f
|
|
37
37
|
}) {
|
|
38
|
-
return /* @__PURE__ */ o
|
|
39
|
-
|
|
38
|
+
return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ d(
|
|
39
|
+
o.Content,
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "tooltip-content",
|
|
42
42
|
sideOffset: r,
|
|
43
|
-
className:
|
|
43
|
+
className: n(
|
|
44
44
|
"fc:bg-dark fc:text-dark-foreground fc:animate-in fc:fade-in-0 fc:zoom-in-95 fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=closed]:zoom-out-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-fit fc:origin-(--radix-tooltip-content-transform-origin) fc:rounded-md fc:px-3 fc:py-1.5 fc:text-xs fc:text-balance",
|
|
45
45
|
t
|
|
46
46
|
),
|
|
47
|
-
...
|
|
47
|
+
...f,
|
|
48
48
|
children: [
|
|
49
49
|
a,
|
|
50
|
-
/* @__PURE__ */ o
|
|
50
|
+
/* @__PURE__ */ i(o.Arrow, { className: "fc:bg-dark fc:fill-dark fc:z-50 fc:size-2.5 fc:translate-y-[calc(-50%_-_2px)] fc:rotate-45 fc:rounded-[2px]" })
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
e(T, "TooltipContent");
|
|
56
56
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
g as Tooltip,
|
|
58
|
+
T as TooltipContent,
|
|
59
|
+
l as TooltipProvider,
|
|
60
|
+
x as TooltipTrigger
|
|
61
61
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ export { Badge } from "./components/badge";
|
|
|
4
4
|
export { Button, buttonVariants } from "./components/button";
|
|
5
5
|
export { Avatar, AvatarImage, AvatarFallback } from "./components/avatar";
|
|
6
6
|
export { Calendar } from "./components/calendar";
|
|
7
|
-
export { Card, CardHeader, CardAction, CardTitle, CardDescription, CardContent, CardFooter } from "./components/card";
|
|
7
|
+
export { Card, CardHeader, CardAction, CardTitle, CardDescription, CardContent, CardFooter, } from "./components/card";
|
|
8
8
|
export { Checkbox } from "./components/checkbox";
|
|
9
9
|
export { DatePicker } from "./components/date-picker";
|
|
10
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/dialog";
|
|
10
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from "./components/dialog";
|
|
11
11
|
export { DataLoader } from "./components/data-loader";
|
|
12
12
|
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from "./components/dropdown-menu";
|
|
13
13
|
export { FileUploader } from "./components/file-uploader";
|
|
14
|
-
export { HoverCard, HoverCardTrigger, HoverCardContent } from "./components/hover-card";
|
|
14
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent, } from "./components/hover-card";
|
|
15
15
|
export { Input } from "./components/input";
|
|
16
16
|
export { Label } from "./components/label";
|
|
17
17
|
export { ModeToggle } from "./components/mode-toggle";
|
|
@@ -42,6 +42,8 @@ export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription,
|
|
|
42
42
|
export { ThemeProvider, useTheme } from "./providers/theme-provider";
|
|
43
43
|
export { LoaderProvider, useLoader } from "./providers/loader-provider";
|
|
44
44
|
export { formatDate } from "./lib/dates";
|
|
45
|
+
export { requestApi } from "./lib/http";
|
|
45
46
|
export { isNullOrEmptyString } from "./lib/strings";
|
|
46
47
|
export { orderByText, orderBy } from "./lib/arrays";
|
|
47
48
|
export { cn, apiErrorDescription, manageApiFormErrors } from "./lib/utils";
|
|
49
|
+
export { string, number, boolean, date, array, object, mixed, ref, lazy, reach, addMethod, } from "./lib/yup";
|