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.
Files changed (108) hide show
  1. package/dist/components/alert-dialog.d.ts +1 -1
  2. package/dist/components/alert-dialog.js +65 -59
  3. package/dist/components/avatar.d.ts +1 -1
  4. package/dist/components/avatar.js +19 -19
  5. package/dist/components/badge.js +12 -11
  6. package/dist/components/button.js +12 -11
  7. package/dist/components/checkbox.d.ts +1 -1
  8. package/dist/components/checkbox.js +17 -17
  9. package/dist/components/dialog.d.ts +1 -1
  10. package/dist/components/dialog.js +60 -60
  11. package/dist/components/dropdown-menu.d.ts +1 -1
  12. package/dist/components/dropdown-menu.js +93 -93
  13. package/dist/components/form.d.ts +2 -3
  14. package/dist/components/form.js +2 -2
  15. package/dist/components/hover-card.d.ts +1 -1
  16. package/dist/components/hover-card.js +23 -23
  17. package/dist/components/label.d.ts +1 -1
  18. package/dist/components/label.js +12 -12
  19. package/dist/components/popover.d.ts +1 -1
  20. package/dist/components/popover.js +28 -28
  21. package/dist/components/separator.d.ts +1 -1
  22. package/dist/components/separator.js +10 -10
  23. package/dist/components/sheet.d.ts +1 -1
  24. package/dist/components/sheet.js +73 -73
  25. package/dist/components/sidebar.js +73 -69
  26. package/dist/components/switch.d.ts +1 -1
  27. package/dist/components/switch.js +13 -13
  28. package/dist/components/tabs.d.ts +1 -1
  29. package/dist/components/tabs.js +22 -22
  30. package/dist/components/tooltip.d.ts +1 -1
  31. package/dist/components/tooltip.js +27 -27
  32. package/dist/index.d.ts +5 -3
  33. package/dist/index.js +186 -172
  34. package/dist/lib/http.d.ts +13 -0
  35. package/dist/lib/http.js +59 -0
  36. package/dist/lib/yup.d.ts +2 -0
  37. package/dist/lib/yup.js +88 -0
  38. package/package.json +6 -3
  39. package/dist/_virtual/index.js +0 -5
  40. package/dist/_virtual/index2.js +0 -4
  41. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
  42. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
  43. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -534
  44. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -430
  45. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -215
  46. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -159
  47. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -149
  48. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  49. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -130
  50. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  51. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -80
  52. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -258
  53. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -51
  54. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -34
  55. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -76
  56. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -265
  57. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  58. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -133
  59. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -230
  60. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -21
  61. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -149
  62. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -192
  63. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  64. package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -22
  65. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -663
  66. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -247
  67. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -224
  68. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  69. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -77
  70. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -39
  71. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -189
  72. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -27
  73. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -67
  74. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -136
  75. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -168
  76. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -348
  77. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -16
  78. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -59
  79. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -17
  80. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
  81. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  82. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
  83. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -30
  84. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -32
  85. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -54
  86. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -9
  87. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  88. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
  89. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -33
  90. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -18
  91. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -70
  92. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  93. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  94. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -73
  95. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  96. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
  97. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -13
  98. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -17
  99. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -35
  100. package/dist/node_modules/tslib/tslib.es6.js +0 -31
  101. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -9
  102. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -29
  103. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -28
  104. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  105. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -72
  106. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -73
  107. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -62
  108. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
@@ -1,43 +1,43 @@
1
- var n = Object.defineProperty;
2
- var o = (t, a) => n(t, "name", { value: a, configurable: !0 });
3
- import { jsx as e } from "react/jsx-runtime";
4
- import { Root as c, Trigger as f, Portal as i, Content as s } from "../node_modules/@radix-ui/react-hover-card/dist/index.js";
5
- import { cn as m } from "../lib/utils.js";
6
- function h({
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(c, { "data-slot": "hover-card", ...t });
9
+ return /* @__PURE__ */ r(e.Root, { "data-slot": "hover-card", ...t });
10
10
  }
11
- o(h, "HoverCard");
12
- function v({
11
+ o(p, "HoverCard");
12
+ function g({
13
13
  ...t
14
14
  }) {
15
- return /* @__PURE__ */ e(f, { "data-slot": "hover-card-trigger", ...t });
15
+ return /* @__PURE__ */ r(e.Trigger, { "data-slot": "hover-card-trigger", ...t });
16
16
  }
17
- o(v, "HoverCardTrigger");
18
- function C({
17
+ o(g, "HoverCardTrigger");
18
+ function u({
19
19
  className: t,
20
20
  align: a = "center",
21
- sideOffset: r = 4,
22
- ...d
21
+ sideOffset: d = 4,
22
+ ...n
23
23
  }) {
24
- return /* @__PURE__ */ e(i, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ e(
25
- s,
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: r,
30
- className: m(
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
- ...d
34
+ ...n
35
35
  }
36
36
  ) });
37
37
  }
38
- o(C, "HoverCardContent");
38
+ o(u, "HoverCardContent");
39
39
  export {
40
- h as HoverCard,
41
- C as HoverCardContent,
42
- v as HoverCardTrigger
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 * as LabelPrimitive from "@radix-ui/react-label";
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;
@@ -1,32 +1,32 @@
1
1
  var r = Object.defineProperty;
2
- var c = (e, t) => r(e, "name", { value: t, configurable: !0 });
3
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
4
- import { Root as f } from "../node_modules/@radix-ui/react-label/dist/index.js";
5
- import { cn as l } from "../lib/utils.js";
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: o,
10
- ...a
9
+ children: c,
10
+ ...o
11
11
  }) {
12
12
  return /* @__PURE__ */ s(
13
- f,
13
+ n.Root,
14
14
  {
15
15
  "data-slot": "label",
16
- className: l(
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
- ...a,
20
+ ...o,
21
21
  children: [
22
- o,
22
+ c,
23
23
  " ",
24
- t && /* @__PURE__ */ n("span", { className: "fc:text-destructive", children: "*" })
24
+ t && /* @__PURE__ */ l("span", { className: "fc:text-destructive", children: "*" })
25
25
  ]
26
26
  }
27
27
  );
28
28
  }
29
- c(u, "Label");
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 * as PopoverPrimitive from "@radix-ui/react-popover";
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 d = Object.defineProperty;
2
- var t = (o, r) => d(o, "name", { value: r, configurable: !0 });
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 { Root as c, Trigger as f, Portal as i, Content as s, Anchor as p } from "../node_modules/@radix-ui/react-popover/dist/index.js";
5
- import { cn as m } from "../lib/utils.js";
6
- function h({
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(c, { "data-slot": "popover", ...o });
9
+ return /* @__PURE__ */ e(r.Root, { "data-slot": "popover", ...o });
10
10
  }
11
- t(h, "Popover");
12
- function P({
11
+ t(l, "Popover");
12
+ function u({
13
13
  ...o
14
14
  }) {
15
- return /* @__PURE__ */ e(f, { "data-slot": "popover-trigger", ...o });
15
+ return /* @__PURE__ */ e(r.Trigger, { "data-slot": "popover-trigger", ...o });
16
16
  }
17
- t(P, "PopoverTrigger");
18
- function b({
17
+ t(u, "PopoverTrigger");
18
+ function v({
19
19
  className: o,
20
- align: r = "center",
21
- sideOffset: a = 4,
22
- ...n
20
+ align: a = "center",
21
+ sideOffset: n = 4,
22
+ ...d
23
23
  }) {
24
- return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
25
- s,
24
+ return /* @__PURE__ */ e(r.Portal, { children: /* @__PURE__ */ e(
25
+ r.Content,
26
26
  {
27
27
  "data-slot": "popover-content",
28
- align: r,
29
- sideOffset: a,
30
- className: m(
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
- ...n
34
+ ...d
35
35
  }
36
36
  ) });
37
37
  }
38
- t(b, "PopoverContent");
39
- function x({
38
+ t(v, "PopoverContent");
39
+ function g({
40
40
  ...o
41
41
  }) {
42
- return /* @__PURE__ */ e(p, { "data-slot": "popover-anchor", ...o });
42
+ return /* @__PURE__ */ e(r.Anchor, { "data-slot": "popover-anchor", ...o });
43
43
  }
44
- t(x, "PopoverAnchor");
44
+ t(g, "PopoverAnchor");
45
45
  export {
46
- h as Popover,
47
- x as PopoverAnchor,
48
- b as PopoverContent,
49
- P as PopoverTrigger
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 * as SeparatorPrimitive from "@radix-ui/react-separator";
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 r = (t, o) => n(t, "name", { value: o, configurable: !0 });
2
+ var o = (t, a) => n(t, "name", { value: a, configurable: !0 });
3
3
  import { jsx as e } from "react/jsx-runtime";
4
- import { Root as l } from "../node_modules/@radix-ui/react-separator/dist/index.js";
4
+ import { Separator as l } from "radix-ui";
5
5
  import { cn as p } from "../lib/utils.js";
6
- function s({
6
+ function h({
7
7
  className: t,
8
- orientation: o = "horizontal",
9
- decorative: a = !0,
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: a,
17
- orientation: o,
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
- r(s, "Separator");
26
+ o(h, "Separator");
27
27
  export {
28
- s as Separator
28
+ h as Separator
29
29
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as SheetPrimitive from "@radix-ui/react-dialog";
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;
@@ -1,40 +1,40 @@
1
- var l = Object.defineProperty;
2
- var a = (t, e) => l(t, "name", { value: e, configurable: !0 });
3
- import { jsx as c, jsxs as s } from "react/jsx-runtime";
4
- import { Root as d, Trigger as u, Close as r, Content as h, Title as m, Description as p, Portal as g, Overlay as x } from "../node_modules/@radix-ui/react-dialog/dist/index.js";
5
- import { XIcon as y } from "lucide-react";
6
- import { cn as f } from "../lib/utils.js";
7
- function j({ ...t }) {
8
- return /* @__PURE__ */ c(d, { "data-slot": "sheet", ...t });
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
- a(j, "Sheet");
11
- function k({
10
+ c(b, "Sheet");
11
+ function S({
12
12
  ...t
13
13
  }) {
14
- return /* @__PURE__ */ c(u, { "data-slot": "sheet-trigger", ...t });
14
+ return /* @__PURE__ */ a(f.Trigger, { "data-slot": "sheet-trigger", ...t });
15
15
  }
16
- a(k, "SheetTrigger");
17
- function D({
16
+ c(S, "SheetTrigger");
17
+ function N({
18
18
  ...t
19
19
  }) {
20
- return /* @__PURE__ */ c(r, { "data-slot": "sheet-close", ...t });
20
+ return /* @__PURE__ */ a(f.Close, { "data-slot": "sheet-close", ...t });
21
21
  }
22
- a(D, "SheetClose");
23
- function b({
22
+ c(N, "SheetClose");
23
+ function u({
24
24
  ...t
25
25
  }) {
26
- return /* @__PURE__ */ c(g, { "data-slot": "sheet-portal", ...t });
26
+ return /* @__PURE__ */ a(f.Portal, { "data-slot": "sheet-portal", ...t });
27
27
  }
28
- a(b, "SheetPortal");
29
- function S({
28
+ c(u, "SheetPortal");
29
+ function h({
30
30
  className: t,
31
31
  ...e
32
32
  }) {
33
- return /* @__PURE__ */ c(
34
- x,
33
+ return /* @__PURE__ */ a(
34
+ f.Overlay,
35
35
  {
36
36
  "data-slot": "sheet-overlay",
37
- className: f(
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
- a(S, "SheetOverlay");
46
- function O({
45
+ c(h, "SheetOverlay");
46
+ function v({
47
47
  className: t,
48
48
  children: e,
49
- side: n = "right",
50
- size: o = "s",
51
- ...i
49
+ side: r = "right",
50
+ size: s = "s",
51
+ ...l
52
52
  }) {
53
- return /* @__PURE__ */ s(b, { children: [
54
- /* @__PURE__ */ c(S, {}),
55
- /* @__PURE__ */ s(
56
- h,
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: f(
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
- n === "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
- n === "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
- o === "s" && "fc:md:max-w-1/3",
64
- o === "m" && "fc:md:max-w-1/2",
65
- o === "l" && "fc:md:max-w-2/3",
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
- ...i,
68
+ ...l,
69
69
  children: [
70
70
  e,
71
- /* @__PURE__ */ s(r, { 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__ */ c(y, { className: "fc:size-4" }),
73
- /* @__PURE__ */ c("span", { className: "fc:sr-only", children: "Close" })
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
- a(O, "SheetContent");
81
- function P({ className: t, ...e }) {
82
- return /* @__PURE__ */ c(
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: f(
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
- a(P, "SheetHeader");
95
- function z({ className: t, ...e }) {
96
- return /* @__PURE__ */ c(
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: f(
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
- a(z, "SheetFooter");
109
- function B({ className: t, ...e }) {
110
- return /* @__PURE__ */ c(
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: f("fc:p-4 fc:flex-1 fc:overflow-y-auto", t),
114
+ className: o("fc:p-4 fc:flex-1 fc:overflow-y-auto", t),
115
115
  ...e
116
116
  }
117
117
  );
118
118
  }
119
- a(B, "SheetBody");
120
- function F({
119
+ c(T, "SheetBody");
120
+ function D({
121
121
  className: t,
122
122
  ...e
123
123
  }) {
124
- return /* @__PURE__ */ c(
125
- m,
124
+ return /* @__PURE__ */ a(
125
+ f.Title,
126
126
  {
127
127
  "data-slot": "sheet-title",
128
- className: f("fc:text-foreground fc:font-semibold", t),
128
+ className: o("fc:text-foreground fc:font-semibold", t),
129
129
  ...e
130
130
  }
131
131
  );
132
132
  }
133
- a(F, "SheetTitle");
134
- function H({
133
+ c(D, "SheetTitle");
134
+ function j({
135
135
  className: t,
136
136
  ...e
137
137
  }) {
138
- return /* @__PURE__ */ c(
139
- p,
138
+ return /* @__PURE__ */ a(
139
+ f.Description,
140
140
  {
141
141
  "data-slot": "sheet-description",
142
- className: f("fc:text-muted fc:text-sm", t),
142
+ className: o("fc:text-muted fc:text-sm", t),
143
143
  ...e
144
144
  }
145
145
  );
146
146
  }
147
- a(H, "SheetDescription");
147
+ c(j, "SheetDescription");
148
148
  export {
149
- j as Sheet,
150
- B as SheetBody,
151
- D as SheetClose,
152
- O as SheetContent,
153
- H as SheetDescription,
154
- z as SheetFooter,
155
- P as SheetHeader,
156
- F as SheetTitle,
157
- k as SheetTrigger
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
  };