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,42 +1,42 @@
1
1
  var s = Object.defineProperty;
2
- var o = (t, a) => s(t, "name", { value: a, configurable: !0 });
3
- import { jsx as e, jsxs as f } from "react/jsx-runtime";
4
- import { Root as r, Close as n, Content as d, Description as g, Overlay as u, Portal as m, Title as p, Trigger as x } from "../node_modules/@radix-ui/react-dialog/dist/index.js";
5
- import { XIcon as v } from "lucide-react";
6
- import { cn as c } from "../lib/utils.js";
7
- function C({
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__ */ e(r, { "data-slot": "dialog", ...t });
10
+ return /* @__PURE__ */ o(c.Root, { "data-slot": "dialog", ...t });
11
11
  }
12
- o(C, "Dialog");
13
- function T({
12
+ e(D, "Dialog");
13
+ function h({
14
14
  ...t
15
15
  }) {
16
- return /* @__PURE__ */ e(x, { "data-slot": "dialog-trigger", ...t });
16
+ return /* @__PURE__ */ o(c.Trigger, { "data-slot": "dialog-trigger", ...t });
17
17
  }
18
- o(T, "DialogTrigger");
19
- function D({
18
+ e(h, "DialogTrigger");
19
+ function d({
20
20
  ...t
21
21
  }) {
22
- return /* @__PURE__ */ e(m, { "data-slot": "dialog-portal", ...t });
22
+ return /* @__PURE__ */ o(c.Portal, { "data-slot": "dialog-portal", ...t });
23
23
  }
24
- o(D, "DialogPortal");
25
- function j({
24
+ e(d, "DialogPortal");
25
+ function b({
26
26
  ...t
27
27
  }) {
28
- return /* @__PURE__ */ e(n, { "data-slot": "dialog-close", ...t });
28
+ return /* @__PURE__ */ o(c.Close, { "data-slot": "dialog-close", ...t });
29
29
  }
30
- o(j, "DialogClose");
31
- function h({
30
+ e(b, "DialogClose");
31
+ function g({
32
32
  className: t,
33
33
  ...a
34
34
  }) {
35
- return /* @__PURE__ */ e(
36
- u,
35
+ return /* @__PURE__ */ o(
36
+ c.Overlay,
37
37
  {
38
38
  "data-slot": "dialog-overlay",
39
- className: c(
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
- o(h, "DialogOverlay");
48
- function k({
47
+ e(g, "DialogOverlay");
48
+ function y({
49
49
  className: t,
50
50
  children: a,
51
- showCloseButton: l = !0,
51
+ showCloseButton: n = !0,
52
52
  ...i
53
53
  }) {
54
- return /* @__PURE__ */ e(D, { "data-slot": "dialog-portal", children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ f(
55
- d,
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: c(
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
- l && /* @__PURE__ */ f(
66
- n,
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__ */ e(v, {}),
72
- /* @__PURE__ */ e("span", { className: "fc:sr-only", children: "Close" })
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
- o(k, "DialogContent");
81
- function _({ className: t, ...a }) {
82
- return /* @__PURE__ */ e(
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: c("fc:flex fc:flex-col fc:gap-2 fc:text-center fc:sm:text-left", t),
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
- o(_, "DialogHeader");
92
- function O({ className: t, ...a }) {
93
- return /* @__PURE__ */ e(
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: c(
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
- o(O, "DialogFooter");
106
- function P({
105
+ e(w, "DialogFooter");
106
+ function z({
107
107
  className: t,
108
108
  ...a
109
109
  }) {
110
- return /* @__PURE__ */ e(
111
- p,
110
+ return /* @__PURE__ */ o(
111
+ c.Title,
112
112
  {
113
113
  "data-slot": "dialog-title",
114
- className: c("fc:text-lg fc:leading-none fc:font-semibold", t),
114
+ className: f("fc:text-lg fc:leading-none fc:font-semibold", t),
115
115
  ...a
116
116
  }
117
117
  );
118
118
  }
119
- o(P, "DialogTitle");
120
- function F({
119
+ e(z, "DialogTitle");
120
+ function C({
121
121
  className: t,
122
122
  ...a
123
123
  }) {
124
- return /* @__PURE__ */ e(
125
- g,
124
+ return /* @__PURE__ */ o(
125
+ c.Description,
126
126
  {
127
127
  "data-slot": "dialog-description",
128
- className: c("fc:text-muted fc:text-sm", t),
128
+ className: f("fc:text-muted fc:text-sm", t),
129
129
  ...a
130
130
  }
131
131
  );
132
132
  }
133
- o(F, "DialogDescription");
133
+ e(C, "DialogDescription");
134
134
  export {
135
- C as Dialog,
136
- j as DialogClose,
137
- k as DialogContent,
138
- F as DialogDescription,
139
- O as DialogFooter,
140
- _ as DialogHeader,
141
- h as DialogOverlay,
142
- D as DialogPortal,
143
- P as DialogTitle,
144
- T as DialogTrigger
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 * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
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 f = Object.defineProperty;
2
- var n = (e, o) => f(e, "name", { value: o, configurable: !0 });
3
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
4
- import { Root as u, Portal as s, Trigger as l, Content as m, Group as p, Label as g, Item as v, CheckboxItem as b, ItemIndicator as i, RadioGroup as x, RadioItem as w, Separator as h, Sub as z, SubTrigger as I, SubContent as D } from "../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
5
- import { CheckIcon as M, CircleIcon as N, ChevronRightIcon as S } from "lucide-react";
6
- import { cn as r } from "../lib/utils.js";
7
- function G({
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(u, { "data-slot": "dropdown-menu", ...e });
10
+ return /* @__PURE__ */ t(n.Root, { "data-slot": "dropdown-menu", ...e });
11
11
  }
12
- n(G, "DropdownMenu");
13
- function T({
12
+ a(x, "DropdownMenu");
13
+ function b({
14
14
  ...e
15
15
  }) {
16
- return /* @__PURE__ */ t(s, { "data-slot": "dropdown-menu-portal", ...e });
16
+ return /* @__PURE__ */ t(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
17
17
  }
18
- n(T, "DropdownMenuPortal");
19
- function j({
18
+ a(b, "DropdownMenuPortal");
19
+ function h({
20
20
  ...e
21
21
  }) {
22
22
  return /* @__PURE__ */ t(
23
- l,
23
+ n.Trigger,
24
24
  {
25
25
  "data-slot": "dropdown-menu-trigger",
26
26
  ...e
27
27
  }
28
28
  );
29
29
  }
30
- n(j, "DropdownMenuTrigger");
31
- function L({
30
+ a(h, "DropdownMenuTrigger");
31
+ function z({
32
32
  className: e,
33
33
  sideOffset: o = 4,
34
- ...a
34
+ ...r
35
35
  }) {
36
- return /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
37
- m,
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: r(
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
- ...a
45
+ ...r
46
46
  }
47
47
  ) });
48
48
  }
49
- n(L, "DropdownMenuContent");
50
- function P({
49
+ a(z, "DropdownMenuContent");
50
+ function D({
51
51
  ...e
52
52
  }) {
53
- return /* @__PURE__ */ t(p, { "data-slot": "dropdown-menu-group", ...e });
53
+ return /* @__PURE__ */ t(n.Group, { "data-slot": "dropdown-menu-group", ...e });
54
54
  }
55
- n(P, "DropdownMenuGroup");
56
- function q({
55
+ a(D, "DropdownMenuGroup");
56
+ function M({
57
57
  className: e,
58
58
  inset: o,
59
- variant: a = "default",
59
+ variant: r = "default",
60
60
  ...c
61
61
  }) {
62
62
  return /* @__PURE__ */ t(
63
- v,
63
+ n.Item,
64
64
  {
65
65
  "data-slot": "dropdown-menu-item",
66
66
  "data-inset": o,
67
- "data-variant": a,
68
- className: r(
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
- n(q, "DropdownMenuItem");
77
- function A({
76
+ a(M, "DropdownMenuItem");
77
+ function N({
78
78
  className: e,
79
79
  children: o,
80
- checked: a,
80
+ checked: r,
81
81
  ...c
82
82
  }) {
83
- return /* @__PURE__ */ d(
84
- b,
83
+ return /* @__PURE__ */ s(
84
+ n.CheckboxItem,
85
85
  {
86
86
  "data-slot": "dropdown-menu-checkbox-item",
87
- className: r(
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: a,
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(i, { children: /* @__PURE__ */ t(M, { className: "size-4" }) }) }),
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
- n(A, "DropdownMenuCheckboxItem");
101
- function B({
100
+ a(N, "DropdownMenuCheckboxItem");
101
+ function I({
102
102
  ...e
103
103
  }) {
104
104
  return /* @__PURE__ */ t(
105
- x,
105
+ n.RadioGroup,
106
106
  {
107
107
  "data-slot": "dropdown-menu-radio-group",
108
108
  ...e
109
109
  }
110
110
  );
111
111
  }
112
- n(B, "DropdownMenuRadioGroup");
113
- function E({
112
+ a(I, "DropdownMenuRadioGroup");
113
+ function y({
114
114
  className: e,
115
115
  children: o,
116
- ...a
116
+ ...r
117
117
  }) {
118
- return /* @__PURE__ */ d(
119
- w,
118
+ return /* @__PURE__ */ s(
119
+ n.RadioItem,
120
120
  {
121
121
  "data-slot": "dropdown-menu-radio-item",
122
- className: r(
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
- ...a,
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(i, { children: /* @__PURE__ */ t(N, { className: "size-2 fill-current" }) }) }),
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
- n(E, "DropdownMenuRadioItem");
135
- function F({
134
+ a(y, "DropdownMenuRadioItem");
135
+ function _({
136
136
  className: e,
137
137
  inset: o,
138
- ...a
138
+ ...r
139
139
  }) {
140
140
  return /* @__PURE__ */ t(
141
- g,
141
+ n.Label,
142
142
  {
143
143
  "data-slot": "dropdown-menu-label",
144
144
  "data-inset": o,
145
- className: r(
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
- ...a
149
+ ...r
150
150
  }
151
151
  );
152
152
  }
153
- n(F, "DropdownMenuLabel");
154
- function H({
153
+ a(_, "DropdownMenuLabel");
154
+ function k({
155
155
  className: e,
156
156
  ...o
157
157
  }) {
158
158
  return /* @__PURE__ */ t(
159
- h,
159
+ n.Separator,
160
160
  {
161
161
  "data-slot": "dropdown-menu-separator",
162
- className: r("fc:bg-border fc:-mx-1 fc:my-1 fc:h-px", e),
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
- n(H, "DropdownMenuSeparator");
168
- function J({
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: r(
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
- n(J, "DropdownMenuShortcut");
185
- function K({
184
+ a(C, "DropdownMenuShortcut");
185
+ function S({
186
186
  ...e
187
187
  }) {
188
- return /* @__PURE__ */ t(z, { "data-slot": "dropdown-menu-sub", ...e });
188
+ return /* @__PURE__ */ t(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
189
189
  }
190
- n(K, "DropdownMenuSub");
191
- function O({
190
+ a(S, "DropdownMenuSub");
191
+ function R({
192
192
  className: e,
193
193
  inset: o,
194
- children: a,
194
+ children: r,
195
195
  ...c
196
196
  }) {
197
- return /* @__PURE__ */ d(
198
- I,
197
+ return /* @__PURE__ */ s(
198
+ n.SubTrigger,
199
199
  {
200
200
  "data-slot": "dropdown-menu-sub-trigger",
201
201
  "data-inset": o,
202
- className: r(
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
- a,
209
- /* @__PURE__ */ t(S, { className: "fc:ml-auto fc:size-4" })
208
+ r,
209
+ /* @__PURE__ */ t(l, { className: "fc:ml-auto fc:size-4" })
210
210
  ]
211
211
  }
212
212
  );
213
213
  }
214
- n(O, "DropdownMenuSubTrigger");
215
- function Q({
214
+ a(R, "DropdownMenuSubTrigger");
215
+ function j({
216
216
  className: e,
217
217
  ...o
218
218
  }) {
219
219
  return /* @__PURE__ */ t(
220
- D,
220
+ n.SubContent,
221
221
  {
222
222
  "data-slot": "dropdown-menu-sub-content",
223
- className: r(
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
- n(Q, "DropdownMenuSubContent");
231
+ a(j, "DropdownMenuSubContent");
232
232
  export {
233
- G as DropdownMenu,
234
- A as DropdownMenuCheckboxItem,
235
- L as DropdownMenuContent,
236
- P as DropdownMenuGroup,
237
- q as DropdownMenuItem,
238
- F as DropdownMenuLabel,
239
- T as DropdownMenuPortal,
240
- B as DropdownMenuRadioGroup,
241
- E as DropdownMenuRadioItem,
242
- H as DropdownMenuSeparator,
243
- J as DropdownMenuShortcut,
244
- K as DropdownMenuSub,
245
- Q as DropdownMenuSubContent,
246
- O as DropdownMenuSubTrigger,
247
- j as DropdownMenuTrigger
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 * as LabelPrimitive from "@radix-ui/react-label";
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 Slot>): import("react/jsx-runtime").JSX.Element;
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, };
@@ -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 { Root as F } from "../node_modules/@radix-ui/react-slot/dist/index.js";
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 * as HoverCardPrimitive from "@radix-ui/react-hover-card";
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;