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,43 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var o = (t, a) =>
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var o = (t, a) => c(t, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { HoverCard as e } from "radix-ui";
|
|
5
|
+
import { cn as f } from "../lib/utils.js";
|
|
6
|
+
function p({
|
|
7
7
|
...t
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ e
|
|
9
|
+
return /* @__PURE__ */ r(e.Root, { "data-slot": "hover-card", ...t });
|
|
10
10
|
}
|
|
11
|
-
o(
|
|
12
|
-
function
|
|
11
|
+
o(p, "HoverCard");
|
|
12
|
+
function g({
|
|
13
13
|
...t
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ e
|
|
15
|
+
return /* @__PURE__ */ r(e.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
16
16
|
}
|
|
17
|
-
o(
|
|
18
|
-
function
|
|
17
|
+
o(g, "HoverCardTrigger");
|
|
18
|
+
function u({
|
|
19
19
|
className: t,
|
|
20
20
|
align: a = "center",
|
|
21
|
-
sideOffset:
|
|
22
|
-
...
|
|
21
|
+
sideOffset: d = 4,
|
|
22
|
+
...n
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */ e
|
|
25
|
-
|
|
24
|
+
return /* @__PURE__ */ r(e.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ r(
|
|
25
|
+
e.Content,
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "hover-card-content",
|
|
28
28
|
align: a,
|
|
29
|
-
sideOffset:
|
|
30
|
-
className:
|
|
29
|
+
sideOffset: d,
|
|
30
|
+
className: f(
|
|
31
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-64 fc:origin-(--radix-hover-card-content-transform-origin) fc:rounded-md fc:border fc:p-4 fc:shadow-md fc:outline-hidden",
|
|
32
32
|
t
|
|
33
33
|
),
|
|
34
|
-
...
|
|
34
|
+
...n
|
|
35
35
|
}
|
|
36
36
|
) });
|
|
37
37
|
}
|
|
38
|
-
o(
|
|
38
|
+
o(u, "HoverCardContent");
|
|
39
39
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
p as HoverCard,
|
|
41
|
+
u as HoverCardContent,
|
|
42
|
+
g as HoverCardTrigger
|
|
43
43
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Label as LabelPrimitive } from "radix-ui";
|
|
3
3
|
declare function Label({ className, required, children, ...props }: React.ComponentProps<typeof LabelPrimitive.Root> & {
|
|
4
4
|
required?: boolean;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/label.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as s, jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
2
|
+
var a = (e, t) => r(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
4
|
+
import { Label as n } from "radix-ui";
|
|
5
|
+
import { cn as f } from "../lib/utils.js";
|
|
6
6
|
function u({
|
|
7
7
|
className: e,
|
|
8
8
|
required: t = !1,
|
|
9
|
-
children:
|
|
10
|
-
...
|
|
9
|
+
children: c,
|
|
10
|
+
...o
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ s(
|
|
13
|
-
|
|
13
|
+
n.Root,
|
|
14
14
|
{
|
|
15
15
|
"data-slot": "label",
|
|
16
|
-
className:
|
|
16
|
+
className: f(
|
|
17
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
|
+
...o,
|
|
21
21
|
children: [
|
|
22
|
-
|
|
22
|
+
c,
|
|
23
23
|
" ",
|
|
24
|
-
t && /* @__PURE__ */
|
|
24
|
+
t && /* @__PURE__ */ l("span", { className: "fc:text-destructive", children: "*" })
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
a(u, "Label");
|
|
30
30
|
export {
|
|
31
31
|
u as Label
|
|
32
32
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
3
3
|
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
var
|
|
2
|
-
var t = (o,
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var t = (o, a) => f(o, "name", { value: a, configurable: !0 });
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
4
|
+
import { Popover as r } from "radix-ui";
|
|
5
|
+
import { cn as i } from "../lib/utils.js";
|
|
6
|
+
function l({
|
|
7
7
|
...o
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ e(r.Root, { "data-slot": "popover", ...o });
|
|
10
10
|
}
|
|
11
|
-
t(
|
|
12
|
-
function
|
|
11
|
+
t(l, "Popover");
|
|
12
|
+
function u({
|
|
13
13
|
...o
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
15
|
+
return /* @__PURE__ */ e(r.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
16
16
|
}
|
|
17
|
-
t(
|
|
18
|
-
function
|
|
17
|
+
t(u, "PopoverTrigger");
|
|
18
|
+
function v({
|
|
19
19
|
className: o,
|
|
20
|
-
align:
|
|
21
|
-
sideOffset:
|
|
22
|
-
...
|
|
20
|
+
align: a = "center",
|
|
21
|
+
sideOffset: n = 4,
|
|
22
|
+
...d
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */ e(
|
|
25
|
-
|
|
24
|
+
return /* @__PURE__ */ e(r.Portal, { children: /* @__PURE__ */ e(
|
|
25
|
+
r.Content,
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "popover-content",
|
|
28
|
-
align:
|
|
29
|
-
sideOffset:
|
|
30
|
-
className:
|
|
28
|
+
align: a,
|
|
29
|
+
sideOffset: n,
|
|
30
|
+
className: i(
|
|
31
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
|
+
...d
|
|
35
35
|
}
|
|
36
36
|
) });
|
|
37
37
|
}
|
|
38
|
-
t(
|
|
39
|
-
function
|
|
38
|
+
t(v, "PopoverContent");
|
|
39
|
+
function g({
|
|
40
40
|
...o
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */ e(
|
|
42
|
+
return /* @__PURE__ */ e(r.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
43
43
|
}
|
|
44
|
-
t(
|
|
44
|
+
t(g, "PopoverAnchor");
|
|
45
45
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
l as Popover,
|
|
47
|
+
g as PopoverAnchor,
|
|
48
|
+
v as PopoverContent,
|
|
49
|
+
u as PopoverTrigger
|
|
50
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
3
3
|
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Separator };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var o = (t, a) => n(t, "name", { value: a, configurable: !0 });
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { Separator as l } from "radix-ui";
|
|
5
5
|
import { cn as p } from "../lib/utils.js";
|
|
6
|
-
function
|
|
6
|
+
function h({
|
|
7
7
|
className: t,
|
|
8
|
-
orientation:
|
|
9
|
-
decorative:
|
|
8
|
+
orientation: a = "horizontal",
|
|
9
|
+
decorative: r = !0,
|
|
10
10
|
...i
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
|
-
l,
|
|
13
|
+
l.Root,
|
|
14
14
|
{
|
|
15
15
|
"data-slot": "separator",
|
|
16
|
-
decorative:
|
|
17
|
-
orientation:
|
|
16
|
+
decorative: r,
|
|
17
|
+
orientation: a,
|
|
18
18
|
className: p(
|
|
19
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
20
|
t
|
|
@@ -23,7 +23,7 @@ function s({
|
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
o(h, "Separator");
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
h as Separator
|
|
29
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
3
3
|
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import { XIcon as
|
|
6
|
-
import { cn as
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var c = (t, e) => i(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { Dialog as f } from "radix-ui";
|
|
5
|
+
import { XIcon as d } from "lucide-react";
|
|
6
|
+
import { cn as o } from "../lib/utils.js";
|
|
7
|
+
function b({ ...t }) {
|
|
8
|
+
return /* @__PURE__ */ a(f.Root, { "data-slot": "sheet", ...t });
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
function
|
|
10
|
+
c(b, "Sheet");
|
|
11
|
+
function S({
|
|
12
12
|
...t
|
|
13
13
|
}) {
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ a(f.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
function
|
|
16
|
+
c(S, "SheetTrigger");
|
|
17
|
+
function N({
|
|
18
18
|
...t
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ a(f.Close, { "data-slot": "sheet-close", ...t });
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
function
|
|
22
|
+
c(N, "SheetClose");
|
|
23
|
+
function u({
|
|
24
24
|
...t
|
|
25
25
|
}) {
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ a(f.Portal, { "data-slot": "sheet-portal", ...t });
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
function
|
|
28
|
+
c(u, "SheetPortal");
|
|
29
|
+
function h({
|
|
30
30
|
className: t,
|
|
31
31
|
...e
|
|
32
32
|
}) {
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ a(
|
|
34
|
+
f.Overlay,
|
|
35
35
|
{
|
|
36
36
|
"data-slot": "sheet-overlay",
|
|
37
|
-
className:
|
|
37
|
+
className: o(
|
|
38
38
|
"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",
|
|
39
39
|
t
|
|
40
40
|
),
|
|
@@ -42,48 +42,48 @@ function S({
|
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
function
|
|
45
|
+
c(h, "SheetOverlay");
|
|
46
|
+
function v({
|
|
47
47
|
className: t,
|
|
48
48
|
children: e,
|
|
49
|
-
side:
|
|
50
|
-
size:
|
|
51
|
-
...
|
|
49
|
+
side: r = "right",
|
|
50
|
+
size: s = "s",
|
|
51
|
+
...l
|
|
52
52
|
}) {
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
53
|
+
return /* @__PURE__ */ n(u, { children: [
|
|
54
|
+
/* @__PURE__ */ a(h, {}),
|
|
55
|
+
/* @__PURE__ */ n(
|
|
56
|
+
f.Content,
|
|
57
57
|
{
|
|
58
58
|
"data-slot": "sheet-content",
|
|
59
|
-
className:
|
|
59
|
+
className: o(
|
|
60
60
|
"fc:bg-card fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:fixed fc:z-50 fc:flex fc:flex-col fc:gap-4 fc:shadow-lg fc:transition fc:ease-in-out fc:data-[state=closed]:duration-300 fc:data-[state=open]:duration-500",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
r === "right" && "fc:data-[state=closed]:slide-out-to-right fc:data-[state=open]:slide-in-from-right fc:inset-y-0 fc:right-0 fc:h-full fc:border-l fc:w-[90%]",
|
|
62
|
+
r === "left" && "fc:data-[state=closed]:slide-out-to-left fc:data-[state=open]:slide-in-from-left fc:inset-y-0 fc:left-0 fc:h-full fc:border-r fc:w-[90%]",
|
|
63
|
+
s === "s" && "fc:md:max-w-1/3",
|
|
64
|
+
s === "m" && "fc:md:max-w-1/2",
|
|
65
|
+
s === "l" && "fc:md:max-w-2/3",
|
|
66
66
|
t
|
|
67
67
|
),
|
|
68
|
-
...
|
|
68
|
+
...l,
|
|
69
69
|
children: [
|
|
70
70
|
e,
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ n(f.Close, { className: "fc:ring-offset-background fc:focus:ring-ring fc:data-[state=open]:bg-secondary 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", children: [
|
|
72
|
+
/* @__PURE__ */ a(d, { className: "fc:size-4" }),
|
|
73
|
+
/* @__PURE__ */ a("span", { className: "fc:sr-only", children: "Close" })
|
|
74
74
|
] })
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] });
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
function
|
|
82
|
-
return /* @__PURE__ */
|
|
80
|
+
c(v, "SheetContent");
|
|
81
|
+
function w({ className: t, ...e }) {
|
|
82
|
+
return /* @__PURE__ */ a(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
"data-slot": "sheet-header",
|
|
86
|
-
className:
|
|
86
|
+
className: o(
|
|
87
87
|
"fc:flex fc:flex-col fc:gap-1.5 fc:px-4 fc:pt-4 ",
|
|
88
88
|
t
|
|
89
89
|
),
|
|
@@ -91,13 +91,13 @@ function P({ className: t, ...e }) {
|
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
return /* @__PURE__ */
|
|
94
|
+
c(w, "SheetHeader");
|
|
95
|
+
function C({ className: t, ...e }) {
|
|
96
|
+
return /* @__PURE__ */ a(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
99
|
"data-slot": "sheet-footer",
|
|
100
|
-
className:
|
|
100
|
+
className: o(
|
|
101
101
|
"fc:mt-auto fc:flex fc:flex-col fc:gap-2 fc:px-4 fc:pb-4",
|
|
102
102
|
t
|
|
103
103
|
),
|
|
@@ -105,54 +105,54 @@ function z({ className: t, ...e }) {
|
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
function
|
|
110
|
-
return /* @__PURE__ */
|
|
108
|
+
c(C, "SheetFooter");
|
|
109
|
+
function T({ className: t, ...e }) {
|
|
110
|
+
return /* @__PURE__ */ a(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
"data-slot": "sheet-body",
|
|
114
|
-
className:
|
|
114
|
+
className: o("fc:p-4 fc:flex-1 fc:overflow-y-auto", t),
|
|
115
115
|
...e
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
function
|
|
119
|
+
c(T, "SheetBody");
|
|
120
|
+
function D({
|
|
121
121
|
className: t,
|
|
122
122
|
...e
|
|
123
123
|
}) {
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
|
|
124
|
+
return /* @__PURE__ */ a(
|
|
125
|
+
f.Title,
|
|
126
126
|
{
|
|
127
127
|
"data-slot": "sheet-title",
|
|
128
|
-
className:
|
|
128
|
+
className: o("fc:text-foreground fc:font-semibold", t),
|
|
129
129
|
...e
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
function
|
|
133
|
+
c(D, "SheetTitle");
|
|
134
|
+
function j({
|
|
135
135
|
className: t,
|
|
136
136
|
...e
|
|
137
137
|
}) {
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
|
|
138
|
+
return /* @__PURE__ */ a(
|
|
139
|
+
f.Description,
|
|
140
140
|
{
|
|
141
141
|
"data-slot": "sheet-description",
|
|
142
|
-
className:
|
|
142
|
+
className: o("fc:text-muted fc:text-sm", t),
|
|
143
143
|
...e
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
c(j, "SheetDescription");
|
|
148
148
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
149
|
+
b as Sheet,
|
|
150
|
+
T as SheetBody,
|
|
151
|
+
N as SheetClose,
|
|
152
|
+
v as SheetContent,
|
|
153
|
+
j as SheetDescription,
|
|
154
|
+
C as SheetFooter,
|
|
155
|
+
w as SheetHeader,
|
|
156
|
+
D as SheetTitle,
|
|
157
|
+
S as SheetTrigger
|
|
158
158
|
};
|