@adamosuiteservices/ui 1.2.4 → 1.3.5

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 (178) hide show
  1. package/README.md +4 -0
  2. package/dist/accordion-rounded.cjs +1 -1
  3. package/dist/accordion-rounded.js +1 -1
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.js +1 -1
  6. package/dist/avatar.cjs +1 -1
  7. package/dist/avatar.js +1 -1
  8. package/dist/badge.cjs +1 -1
  9. package/dist/badge.js +1 -1
  10. package/dist/breadcrumb.cjs +1 -0
  11. package/dist/breadcrumb.js +105 -0
  12. package/dist/{button-C1n6snOY.js → button-2GdKenQI.js} +1 -1
  13. package/dist/{button-BV-_FVKZ.cjs → button-DEQVHMrX.cjs} +1 -1
  14. package/dist/button-group.cjs +1 -1
  15. package/dist/button-group.js +2 -2
  16. package/dist/button.cjs +1 -1
  17. package/dist/button.js +1 -1
  18. package/dist/calendar.cjs +1 -1
  19. package/dist/calendar.js +1 -1
  20. package/dist/{checkbox-BrmXPKTn.js → checkbox-Dr487kAg.js} +3 -3
  21. package/dist/{checkbox-Lq-HvSgc.cjs → checkbox-YWAnswaW.cjs} +1 -1
  22. package/dist/checkbox.cjs +1 -1
  23. package/dist/checkbox.js +1 -1
  24. package/dist/collapsible.cjs +1 -1
  25. package/dist/collapsible.js +1 -1
  26. package/dist/combobox.cjs +1 -1
  27. package/dist/combobox.js +6 -6
  28. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +11 -0
  29. package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +26 -0
  30. package/dist/components/ui/breadcrumb/index.d.ts +1 -0
  31. package/dist/components/ui/dialog/dialog.d.ts +2 -1
  32. package/dist/context-menu.cjs +1 -1
  33. package/dist/context-menu.js +2 -2
  34. package/dist/custom-layered-styles.css +1 -1
  35. package/dist/dialog.cjs +1 -1
  36. package/dist/dialog.js +33 -19
  37. package/dist/dropdown-menu.cjs +1 -1
  38. package/dist/dropdown-menu.js +3 -3
  39. package/dist/ellipsis-CryjZKZn.js +15 -0
  40. package/dist/ellipsis-Ct9VTDOG.cjs +6 -0
  41. package/dist/field.cjs +1 -1
  42. package/dist/field.js +2 -2
  43. package/dist/hover-card.cjs +1 -1
  44. package/dist/hover-card.js +6 -6
  45. package/dist/{index-CAOY367Y.js → index-B0M7VOwp.js} +2 -2
  46. package/dist/{index-B-ZRqW0J.js → index-BBoIAjAs.js} +3 -3
  47. package/dist/{index-gO_QEiaK.cjs → index-BDs8lUfq.cjs} +1 -1
  48. package/dist/index-BFyr34mw.cjs +5 -0
  49. package/dist/index-BMWt1NBG.js +79 -0
  50. package/dist/{index-yR-v1A4G.js → index-BX9hz-JD.js} +1 -1
  51. package/dist/{index-BGiGvaq8.cjs → index-BcGMAmWE.cjs} +1 -1
  52. package/dist/{index-IKJMQref.cjs → index-Bd0gQB0k.cjs} +1 -1
  53. package/dist/{index-VIUqZjyP.cjs → index-BeWgla7c.cjs} +1 -1
  54. package/dist/{index-EUea2gfp.js → index-BpWB3aFK.js} +1 -1
  55. package/dist/index-BvLQnI56.js +59 -0
  56. package/dist/{index-CwUFT-GQ.js → index-C0YiLSjW.js} +4 -4
  57. package/dist/{index-o0sNTcKe.js → index-CBjZooac.js} +2 -2
  58. package/dist/{index-DnS_sBBe.cjs → index-COuvjZLM.cjs} +1 -1
  59. package/dist/index-CTjlbbt9.cjs +1 -0
  60. package/dist/index-CUWMxxKG.js +97 -0
  61. package/dist/{index-C329e3yQ.js → index-CZZ3llmi.js} +2 -2
  62. package/dist/index-CjyiloO7.cjs +1 -0
  63. package/dist/{index-D3wSWKST.cjs → index-Cmx9M9cZ.cjs} +1 -1
  64. package/dist/index-CocSS1YK.cjs +1 -0
  65. package/dist/index-CzRiuk60.cjs +1 -0
  66. package/dist/index-DFPDUUq7.js +658 -0
  67. package/dist/{index-D3S7dBDI.cjs → index-DIwmXz1u.cjs} +1 -1
  68. package/dist/index-DLcqcWxM.js +29 -0
  69. package/dist/index-DMLQL2aG.js +286 -0
  70. package/dist/{index-DXQ-7kNJ.cjs → index-DMs8RL3E.cjs} +1 -1
  71. package/dist/{index-Ce3QBKyj.cjs → index-Dbj9vHNq.cjs} +1 -1
  72. package/dist/{index-BRLtxFFr.cjs → index-DmGzwG2z.cjs} +1 -1
  73. package/dist/{index-P1sVIHE3.js → index-PYkEXTqJ.js} +1 -1
  74. package/dist/{index-DulPG3F9.js → index-Se4vRnIO.js} +3 -3
  75. package/dist/index-_XxjJPRD.cjs +1 -0
  76. package/dist/{index-B-cHTKrs.js → index-yWvyIlmA.js} +4 -4
  77. package/dist/input-group.cjs +1 -1
  78. package/dist/input-group.js +1 -1
  79. package/dist/{label-Cne2J57f.cjs → label-BjXORCBM.cjs} +1 -1
  80. package/dist/{label-Ky8qBEC3.js → label-CmwGvhy1.js} +1 -1
  81. package/dist/label.cjs +1 -1
  82. package/dist/label.js +1 -1
  83. package/dist/pagination.cjs +1 -6
  84. package/dist/pagination.js +58 -69
  85. package/dist/popover-3rIoNCXs.js +306 -0
  86. package/dist/popover-FCKBtFo-.cjs +1 -0
  87. package/dist/popover.cjs +1 -1
  88. package/dist/popover.js +1 -1
  89. package/dist/progress.cjs +1 -1
  90. package/dist/progress.js +1 -1
  91. package/dist/radio-group.cjs +1 -1
  92. package/dist/radio-group.js +5 -5
  93. package/dist/select.cjs +2 -2
  94. package/dist/select.js +585 -542
  95. package/dist/{separator-CGnu_jIu.cjs → separator-BaZqZZ9R.cjs} +1 -1
  96. package/dist/{separator-BH73A90k.js → separator-DR7lQjv9.js} +1 -1
  97. package/dist/separator.cjs +1 -1
  98. package/dist/separator.js +1 -1
  99. package/dist/{sheet-CcxnJ6LH.cjs → sheet-CU-sFSaJ.cjs} +1 -1
  100. package/dist/{sheet-_DVpQIVF.js → sheet-UZWAbdXr.js} +1 -1
  101. package/dist/sheet.cjs +1 -1
  102. package/dist/sheet.js +1 -1
  103. package/dist/sidebar.cjs +1 -1
  104. package/dist/sidebar.js +4 -4
  105. package/dist/slider.cjs +1 -1
  106. package/dist/slider.js +3 -3
  107. package/dist/styles.css +1 -1
  108. package/dist/switch.cjs +1 -1
  109. package/dist/switch.js +2 -2
  110. package/dist/tabs-underline.cjs +1 -1
  111. package/dist/tabs-underline.js +1 -1
  112. package/dist/tabs.cjs +1 -1
  113. package/dist/tabs.js +1 -1
  114. package/dist/toaster.cjs +1 -1
  115. package/dist/toaster.js +1 -1
  116. package/dist/toggle.cjs +1 -1
  117. package/dist/toggle.js +1 -1
  118. package/dist/tooltip.cjs +1 -1
  119. package/dist/tooltip.js +114 -108
  120. package/dist/typography.cjs +1 -1
  121. package/dist/typography.js +16 -16
  122. package/docs/AI-GUIDE.md +321 -0
  123. package/docs/components/layout/sidebar.md +330 -0
  124. package/docs/components/layout/toaster.md +436 -0
  125. package/docs/components/ui/accordion-rounded.md +583 -0
  126. package/docs/components/ui/accordion.md +267 -0
  127. package/docs/components/ui/alert.md +671 -0
  128. package/docs/components/ui/avatar.md +588 -0
  129. package/docs/components/ui/badge.md +1024 -0
  130. package/docs/components/ui/breadcrumb.md +614 -0
  131. package/docs/components/ui/button-group.md +1002 -0
  132. package/docs/components/ui/button.md +1078 -0
  133. package/docs/components/ui/calendar.md +1159 -0
  134. package/docs/components/ui/card.md +1265 -0
  135. package/docs/components/ui/checkbox.md +292 -0
  136. package/docs/components/ui/collapsible.md +320 -0
  137. package/docs/components/ui/combobox.md +328 -0
  138. package/docs/components/ui/command.md +454 -0
  139. package/docs/components/ui/context-menu.md +540 -0
  140. package/docs/components/ui/dialog.md +628 -0
  141. package/docs/components/ui/dropdown-menu.md +731 -0
  142. package/docs/components/ui/field.md +706 -0
  143. package/docs/components/ui/hover-card.md +446 -0
  144. package/docs/components/ui/input-group.md +509 -0
  145. package/docs/components/ui/input.md +362 -0
  146. package/docs/components/ui/kbd.md +434 -0
  147. package/docs/components/ui/label.md +359 -0
  148. package/docs/components/ui/pagination.md +650 -0
  149. package/docs/components/ui/popover.md +536 -0
  150. package/docs/components/ui/progress.md +182 -0
  151. package/docs/components/ui/radio-group.md +311 -0
  152. package/docs/components/ui/select.md +352 -0
  153. package/docs/components/ui/separator.md +214 -0
  154. package/docs/components/ui/sheet.md +142 -0
  155. package/docs/components/ui/skeleton.md +140 -0
  156. package/docs/components/ui/slider.md +341 -0
  157. package/docs/components/ui/spinner.md +170 -0
  158. package/docs/components/ui/switch.md +402 -0
  159. package/docs/components/ui/table.md +183 -0
  160. package/docs/components/ui/tabs-underline.md +106 -0
  161. package/docs/components/ui/tabs.md +122 -0
  162. package/docs/components/ui/textarea.md +243 -0
  163. package/docs/components/ui/toggle.md +243 -0
  164. package/docs/components/ui/tooltip.md +320 -0
  165. package/docs/components/ui/typography.md +191 -0
  166. package/package.json +11 -5
  167. package/dist/index-6oTEokEx.js +0 -82
  168. package/dist/index-B-NyefE0.js +0 -243
  169. package/dist/index-BKbK2GzY.cjs +0 -1
  170. package/dist/index-BMitW9UR.cjs +0 -1
  171. package/dist/index-BpvjJ_T6.cjs +0 -5
  172. package/dist/index-C5wjudc-.js +0 -36
  173. package/dist/index-CezwiPd_.js +0 -615
  174. package/dist/index-D02K8KOB.js +0 -54
  175. package/dist/index-D7hQvndv.cjs +0 -1
  176. package/dist/index-DQvx1rG_.cjs +0 -1
  177. package/dist/popover-BjdTqaB8.cjs +0 -1
  178. package/dist/popover-EnVfE0YA.js +0 -263
package/dist/dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const o=require("./index-BpvjJ_T6.cjs"),d=require("./index-DoxiiusW.cjs"),m=require("./x-CBKgg4YL.cjs");function u({...a}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dialog",...a})}function g({...a}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dialog-portal",...a})}function x({...a}){return t.jsxRuntimeExports.jsx(o.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:d.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",a),...e})}function c({className:a,children:e,showCloseButton:i=!0,theme:r,...l}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(o.Content,{"data-theme":r,"data-slot":"dialog-content",className:d.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-xs adm:duration-200 adm:sm:max-w-lg",a),...l,children:[e,i&&t.jsxRuntimeExports.jsxs(o.Close,{"data-slot":"dialog-close",className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",children:[t.jsxRuntimeExports.jsx(m.X,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:d.cn("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left",a),...e})}function f({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:d.cn("adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",a),...e})}function j({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Title,{"data-slot":"dialog-title",className:d.cn("adm:text-lg adm:leading-none adm:font-semibold",a),...e})}function D({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Description,{"data-slot":"dialog-description",className:d.cn("adm:text-muted-foreground adm:text-sm",a),...e})}exports.Dialog=u;exports.DialogClose=x;exports.DialogContent=c;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const o=require("./index-BFyr34mw.cjs"),d=require("./index-DoxiiusW.cjs"),m=require("./x-CBKgg4YL.cjs");function u({...a}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dialog",...a})}function c({...a}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dialog-portal",...a})}function g({...a}){return t.jsxRuntimeExports.jsx(o.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:d.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",a),...e})}function x({className:a,children:e,showCloseButton:i=!0,theme:r,...l}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(o.Content,{"data-theme":r,"data-slot":"dialog-content",className:d.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-xs adm:duration-200 adm:sm:max-w-lg",a),...l,children:[e,i&&t.jsxRuntimeExports.jsxs(o.Close,{"data-slot":"dialog-close",className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",children:[t.jsxRuntimeExports.jsx(m.X,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:d.cn("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left",a),...e})}function f({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:d.cn("adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",a),...e})}function j({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Title,{"data-slot":"dialog-title",className:d.cn("adm:text-lg adm:leading-none adm:font-semibold",a),...e})}function D({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Description,{"data-slot":"dialog-description",className:d.cn("adm:text-muted-foreground adm:text-sm",a),...e})}function R({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Description,{"data-slot":"dialog-description",className:d.cn("adm:mt-2 adm:mb-6",a),...e})}exports.Dialog=u;exports.DialogBody=R;exports.DialogClose=g;exports.DialogContent=x;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=c;
package/dist/dialog.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
2
  import "react";
3
- import { R as i, C as o, a as l, D as r, O as c, P as g, T as u, b as f } from "./index-B-NyefE0.js";
4
- import { c as e } from "./index-CRiPKpXj.js";
3
+ import { R as l, C as e, a as r, D as s, O as c, P as g, T as u, b as f } from "./index-DMLQL2aG.js";
4
+ import { c as o } from "./index-CRiPKpXj.js";
5
5
  import { X as x } from "./x-Dl66o_vF.js";
6
6
  function N({
7
7
  ...a
8
8
  }) {
9
- return /* @__PURE__ */ t.jsx(i, { "data-slot": "dialog", ...a });
9
+ return /* @__PURE__ */ t.jsx(l, { "data-slot": "dialog", ...a });
10
10
  }
11
11
  function z({
12
12
  ...a
@@ -21,7 +21,7 @@ function p({
21
21
  function C({
22
22
  ...a
23
23
  }) {
24
- return /* @__PURE__ */ t.jsx(o, { "data-slot": "dialog-close", ...a });
24
+ return /* @__PURE__ */ t.jsx(e, { "data-slot": "dialog-close", ...a });
25
25
  }
26
26
  function j({
27
27
  className: a,
@@ -31,7 +31,7 @@ function j({
31
31
  c,
32
32
  {
33
33
  "data-slot": "dialog-overlay",
34
- className: e(
34
+ className: o(
35
35
  "adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",
36
36
  a
37
37
  ),
@@ -42,26 +42,26 @@ function j({
42
42
  function w({
43
43
  className: a,
44
44
  children: d,
45
- showCloseButton: s = !0,
46
- theme: m,
47
- ...n
45
+ showCloseButton: m = !0,
46
+ theme: n,
47
+ ...i
48
48
  }) {
49
49
  return /* @__PURE__ */ t.jsxs(p, { "data-slot": "dialog-portal", children: [
50
50
  /* @__PURE__ */ t.jsx(j, {}),
51
51
  /* @__PURE__ */ t.jsxs(
52
- l,
52
+ r,
53
53
  {
54
- "data-theme": m,
54
+ "data-theme": n,
55
55
  "data-slot": "dialog-content",
56
- className: e(
56
+ className: o(
57
57
  "adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-xs adm:duration-200 adm:sm:max-w-lg",
58
58
  a
59
59
  ),
60
- ...n,
60
+ ...i,
61
61
  children: [
62
62
  d,
63
- s && /* @__PURE__ */ t.jsxs(
64
- o,
63
+ m && /* @__PURE__ */ t.jsxs(
64
+ e,
65
65
  {
66
66
  "data-slot": "dialog-close",
67
67
  className: "adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
@@ -81,7 +81,7 @@ function T({ className: a, ...d }) {
81
81
  "div",
82
82
  {
83
83
  "data-slot": "dialog-header",
84
- className: e("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left", a),
84
+ className: o("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left", a),
85
85
  ...d
86
86
  }
87
87
  );
@@ -91,7 +91,7 @@ function k({ className: a, ...d }) {
91
91
  "div",
92
92
  {
93
93
  "data-slot": "dialog-footer",
94
- className: e(
94
+ className: o(
95
95
  "adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",
96
96
  a
97
97
  ),
@@ -107,7 +107,7 @@ function O({
107
107
  u,
108
108
  {
109
109
  "data-slot": "dialog-title",
110
- className: e("adm:text-lg adm:leading-none adm:font-semibold", a),
110
+ className: o("adm:text-lg adm:leading-none adm:font-semibold", a),
111
111
  ...d
112
112
  }
113
113
  );
@@ -117,16 +117,30 @@ function P({
117
117
  ...d
118
118
  }) {
119
119
  return /* @__PURE__ */ t.jsx(
120
- r,
120
+ s,
121
121
  {
122
122
  "data-slot": "dialog-description",
123
- className: e("adm:text-muted-foreground adm:text-sm", a),
123
+ className: o("adm:text-muted-foreground adm:text-sm", a),
124
+ ...d
125
+ }
126
+ );
127
+ }
128
+ function R({
129
+ className: a,
130
+ ...d
131
+ }) {
132
+ return /* @__PURE__ */ t.jsx(
133
+ s,
134
+ {
135
+ "data-slot": "dialog-description",
136
+ className: o("adm:mt-2 adm:mb-6", a),
124
137
  ...d
125
138
  }
126
139
  );
127
140
  }
128
141
  export {
129
142
  N as Dialog,
143
+ R as DialogBody,
130
144
  C as DialogClose,
131
145
  w as DialogContent,
132
146
  P as DialogDescription,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),x=require("./index-BWaO7kQK.cjs"),L=require("./index-BKbK2GzY.cjs"),H=require("./index-cwZN7ZY3.cjs"),K=require("./index-DQvx1rG_.cjs"),d=require("./index-BMitW9UR.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./index-DoxiiusW.cjs"),U=require("./check-CLxNVljQ.cjs"),B=require("./circle-CX7JIirj.cjs"),F=require("./chevron-right-BpzggHsr.cjs");function W(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=W(q);var g="DropdownMenu",[X]=H.createContextScope(g,[d.createMenuScope]),m=d.createMenuScope(),[J,D]=X(g),R=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:a,defaultOpen:i,onOpenChange:p,modal:s=!0}=e,l=m(o),v=u.useRef(null),[f,w]=x.useControllableState({prop:a,defaultProp:i??!1,onChange:p,caller:g});return r.jsxRuntimeExports.jsx(J,{scope:o,triggerId:M.useId(),triggerRef:v,contentId:M.useId(),open:f,onOpenChange:w,onOpenToggle:u.useCallback(()=>w($=>!$),[w]),modal:s,children:r.jsxRuntimeExports.jsx(d.Root3,{...l,open:f,onOpenChange:w,dir:t,modal:s,children:n})})};R.displayName=g;var b="DropdownMenuTrigger",h=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...a}=e,i=D(b,n),p=m(n);return r.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:r.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:L.composeRefs(o,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,s=>{!t&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,s=>{t||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});h.displayName=b;var Q="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:o,...n}=e,t=m(o);return r.jsxRuntimeExports.jsx(d.Portal,{...t,...n})};j.displayName=Q;var E="DropdownMenuContent",_=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=D(E,n),i=m(n),p=u.useRef(!1);return r.jsxRuntimeExports.jsx(d.Content2,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...t,ref:o,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,s=>{p.current||a.triggerRef.current?.focus(),p.current=!1,s.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,s=>{const l=s.detail.originalEvent,v=l.button===0&&l.ctrlKey===!0,f=l.button===2||v;(!a.modal||f)&&(p.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_.displayName=E;var V="DropdownMenuGroup",S=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Group,{...a,...t,ref:o})});S.displayName=V;var Y="DropdownMenuLabel",N=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Label,{...a,...t,ref:o})});N.displayName=Y;var Z="DropdownMenuItem",I=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Item2,{...a,...t,ref:o})});I.displayName=Z;var ee="DropdownMenuCheckboxItem",C=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.CheckboxItem,{...a,...t,ref:o})});C.displayName=ee;var oe="DropdownMenuRadioGroup",y=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioGroup,{...a,...t,ref:o})});y.displayName=oe;var ne="DropdownMenuRadioItem",P=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioItem,{...a,...t,ref:o})});P.displayName=ne;var te="DropdownMenuItemIndicator",O=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.ItemIndicator,{...a,...t,ref:o})});O.displayName=te;var re="DropdownMenuSeparator",A=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Separator,{...a,...t,ref:o})});A.displayName=re;var ae="DropdownMenuArrow",de=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Arrow2,{...a,...t,ref:o})});de.displayName=ae;var se=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:a,defaultOpen:i}=e,p=m(o),[s,l]=x.useControllableState({prop:t,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(d.Sub,{...p,open:s,onOpenChange:l,children:n})},ie="DropdownMenuSubTrigger",T=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubTrigger,{...a,...t,ref:o})});T.displayName=ie;var ue="DropdownMenuSubContent",k=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubContent,{...a,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});k.displayName=ue;var me=R,pe=h,z=j,ce=_,le=S,xe=N,fe=I,we=C,ge=y,ve=P,G=O,Me=A,De=se,Re=T,be=k;function he({...e}){return r.jsxRuntimeExports.jsx(me,{"data-slot":"dropdown-menu",...e})}function je({...e}){return r.jsxRuntimeExports.jsx(z,{"data-slot":"dropdown-menu-portal",...e})}function Ee({...e}){return r.jsxRuntimeExports.jsx(pe,{"data-slot":"dropdown-menu-trigger",...e})}function _e({className:e,sideOffset:o=4,...n}){return r.jsxRuntimeExports.jsx(z,{children:r.jsxRuntimeExports.jsx(ce,{"data-slot":"dropdown-menu-content",sideOffset:o,className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-xs",e),...n})})}function Se({...e}){return r.jsxRuntimeExports.jsx(le,{"data-slot":"dropdown-menu-group",...e})}function Ne({className:e,inset:o,variant:n="default",...t}){return r.jsxRuntimeExports.jsx(fe,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t})}function Ie({className:e,children:o,checked:n,...t}){return r.jsxRuntimeExports.jsxs(we,{"data-slot":"dropdown-menu-checkbox-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),checked:n,...t,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"adm:size-4"})})}),o]})}function Ce({...e}){return r.jsxRuntimeExports.jsx(ge,{"data-slot":"dropdown-menu-radio-group",...e})}function ye({className:e,children:o,...n}){return r.jsxRuntimeExports.jsxs(ve,{"data-slot":"dropdown-menu-radio-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(B.Circle,{className:"adm:size-2 adm:fill-current"})})}),o]})}function Pe({className:e,inset:o,...n}){return r.jsxRuntimeExports.jsx(xe,{"data-slot":"dropdown-menu-label","data-inset":o,className:c.cn("adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",e),...n})}function Oe({className:e,...o}){return r.jsxRuntimeExports.jsx(Me,{"data-slot":"dropdown-menu-separator",className:c.cn("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px",e),...o})}function Ae({className:e,...o}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:c.cn("adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",e),...o})}function Te({...e}){return r.jsxRuntimeExports.jsx(De,{"data-slot":"dropdown-menu-sub",...e})}function ke({className:e,inset:o,children:n,...t}){return r.jsxRuntimeExports.jsxs(Re,{"data-slot":"dropdown-menu-sub-trigger","data-inset":o,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t,children:[n,r.jsxRuntimeExports.jsx(F.ChevronRight,{className:"adm:ml-auto adm:size-4"})]})}function ze({className:e,...o}){return r.jsxRuntimeExports.jsx(be,{"data-slot":"dropdown-menu-sub-content",className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-xs",e),...o})}exports.DropdownMenu=he;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=_e;exports.DropdownMenuGroup=Se;exports.DropdownMenuItem=Ne;exports.DropdownMenuLabel=Pe;exports.DropdownMenuPortal=je;exports.DropdownMenuRadioGroup=Ce;exports.DropdownMenuRadioItem=ye;exports.DropdownMenuSeparator=Oe;exports.DropdownMenuShortcut=Ae;exports.DropdownMenuSub=Te;exports.DropdownMenuSubContent=ze;exports.DropdownMenuSubTrigger=ke;exports.DropdownMenuTrigger=Ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),x=require("./index-BWaO7kQK.cjs"),L=require("./index-_XxjJPRD.cjs"),H=require("./index-cwZN7ZY3.cjs"),K=require("./index-CocSS1YK.cjs"),d=require("./index-CTjlbbt9.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./index-DoxiiusW.cjs"),U=require("./check-CLxNVljQ.cjs"),B=require("./circle-CX7JIirj.cjs"),F=require("./chevron-right-BpzggHsr.cjs");function W(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=W(q);var g="DropdownMenu",[X]=H.createContextScope(g,[d.createMenuScope]),m=d.createMenuScope(),[J,D]=X(g),R=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:a,defaultOpen:i,onOpenChange:p,modal:s=!0}=e,l=m(o),v=u.useRef(null),[f,w]=x.useControllableState({prop:a,defaultProp:i??!1,onChange:p,caller:g});return r.jsxRuntimeExports.jsx(J,{scope:o,triggerId:M.useId(),triggerRef:v,contentId:M.useId(),open:f,onOpenChange:w,onOpenToggle:u.useCallback(()=>w($=>!$),[w]),modal:s,children:r.jsxRuntimeExports.jsx(d.Root3,{...l,open:f,onOpenChange:w,dir:t,modal:s,children:n})})};R.displayName=g;var b="DropdownMenuTrigger",h=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...a}=e,i=D(b,n),p=m(n);return r.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:r.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:L.composeRefs(o,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,s=>{!t&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,s=>{t||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});h.displayName=b;var Q="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:o,...n}=e,t=m(o);return r.jsxRuntimeExports.jsx(d.Portal,{...t,...n})};j.displayName=Q;var E="DropdownMenuContent",_=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=D(E,n),i=m(n),p=u.useRef(!1);return r.jsxRuntimeExports.jsx(d.Content2,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...t,ref:o,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,s=>{p.current||a.triggerRef.current?.focus(),p.current=!1,s.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,s=>{const l=s.detail.originalEvent,v=l.button===0&&l.ctrlKey===!0,f=l.button===2||v;(!a.modal||f)&&(p.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_.displayName=E;var V="DropdownMenuGroup",S=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Group,{...a,...t,ref:o})});S.displayName=V;var Y="DropdownMenuLabel",N=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Label,{...a,...t,ref:o})});N.displayName=Y;var Z="DropdownMenuItem",I=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Item2,{...a,...t,ref:o})});I.displayName=Z;var ee="DropdownMenuCheckboxItem",C=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.CheckboxItem,{...a,...t,ref:o})});C.displayName=ee;var oe="DropdownMenuRadioGroup",y=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioGroup,{...a,...t,ref:o})});y.displayName=oe;var ne="DropdownMenuRadioItem",P=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioItem,{...a,...t,ref:o})});P.displayName=ne;var te="DropdownMenuItemIndicator",O=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.ItemIndicator,{...a,...t,ref:o})});O.displayName=te;var re="DropdownMenuSeparator",A=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Separator,{...a,...t,ref:o})});A.displayName=re;var ae="DropdownMenuArrow",de=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Arrow2,{...a,...t,ref:o})});de.displayName=ae;var se=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:a,defaultOpen:i}=e,p=m(o),[s,l]=x.useControllableState({prop:t,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(d.Sub,{...p,open:s,onOpenChange:l,children:n})},ie="DropdownMenuSubTrigger",T=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubTrigger,{...a,...t,ref:o})});T.displayName=ie;var ue="DropdownMenuSubContent",k=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubContent,{...a,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});k.displayName=ue;var me=R,pe=h,z=j,ce=_,le=S,xe=N,fe=I,we=C,ge=y,ve=P,G=O,Me=A,De=se,Re=T,be=k;function he({...e}){return r.jsxRuntimeExports.jsx(me,{"data-slot":"dropdown-menu",...e})}function je({...e}){return r.jsxRuntimeExports.jsx(z,{"data-slot":"dropdown-menu-portal",...e})}function Ee({...e}){return r.jsxRuntimeExports.jsx(pe,{"data-slot":"dropdown-menu-trigger",...e})}function _e({className:e,sideOffset:o=4,...n}){return r.jsxRuntimeExports.jsx(z,{children:r.jsxRuntimeExports.jsx(ce,{"data-slot":"dropdown-menu-content",sideOffset:o,className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-xs",e),...n})})}function Se({...e}){return r.jsxRuntimeExports.jsx(le,{"data-slot":"dropdown-menu-group",...e})}function Ne({className:e,inset:o,variant:n="default",...t}){return r.jsxRuntimeExports.jsx(fe,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t})}function Ie({className:e,children:o,checked:n,...t}){return r.jsxRuntimeExports.jsxs(we,{"data-slot":"dropdown-menu-checkbox-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),checked:n,...t,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"adm:size-4"})})}),o]})}function Ce({...e}){return r.jsxRuntimeExports.jsx(ge,{"data-slot":"dropdown-menu-radio-group",...e})}function ye({className:e,children:o,...n}){return r.jsxRuntimeExports.jsxs(ve,{"data-slot":"dropdown-menu-radio-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(B.Circle,{className:"adm:size-2 adm:fill-current"})})}),o]})}function Pe({className:e,inset:o,...n}){return r.jsxRuntimeExports.jsx(xe,{"data-slot":"dropdown-menu-label","data-inset":o,className:c.cn("adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",e),...n})}function Oe({className:e,...o}){return r.jsxRuntimeExports.jsx(Me,{"data-slot":"dropdown-menu-separator",className:c.cn("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px",e),...o})}function Ae({className:e,...o}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:c.cn("adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",e),...o})}function Te({...e}){return r.jsxRuntimeExports.jsx(De,{"data-slot":"dropdown-menu-sub",...e})}function ke({className:e,inset:o,children:n,...t}){return r.jsxRuntimeExports.jsxs(Re,{"data-slot":"dropdown-menu-sub-trigger","data-inset":o,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t,children:[n,r.jsxRuntimeExports.jsx(F.ChevronRight,{className:"adm:ml-auto adm:size-4"})]})}function ze({className:e,...o}){return r.jsxRuntimeExports.jsx(be,{"data-slot":"dropdown-menu-sub-content",className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-xs",e),...o})}exports.DropdownMenu=he;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=_e;exports.DropdownMenuGroup=Se;exports.DropdownMenuItem=Ne;exports.DropdownMenuLabel=Pe;exports.DropdownMenuPortal=je;exports.DropdownMenuRadioGroup=Ce;exports.DropdownMenuRadioItem=ye;exports.DropdownMenuSeparator=Oe;exports.DropdownMenuShortcut=Ae;exports.DropdownMenuSub=Te;exports.DropdownMenuSubContent=ze;exports.DropdownMenuSubTrigger=ke;exports.DropdownMenuTrigger=Ee;
@@ -1,10 +1,10 @@
1
1
  import { j as n } from "./jsx-runtime-BzflLqGi.js";
2
2
  import * as m from "react";
3
3
  import { u as M, c as w } from "./index-C0UREtMP.js";
4
- import { c as K } from "./index-6oTEokEx.js";
4
+ import { c as K } from "./index-DLcqcWxM.js";
5
5
  import { c as U } from "./index-FxyLF8MY.js";
6
- import { P as B } from "./index-C5wjudc-.js";
7
- import { c as h, R as F, P as H, A as W, C as X, G as q, L as J, I as Q, a as V, b as Y, h as Z, d as ee, S as oe, e as ae, g as ne, f as re, i as te } from "./index-CezwiPd_.js";
6
+ import { P as B } from "./index-BMWt1NBG.js";
7
+ import { c as h, R as F, P as H, A as W, C as X, G as q, L as J, I as Q, a as V, b as Y, h as Z, d as ee, S as oe, e as ae, g as ne, f as re, i as te } from "./index-DFPDUUq7.js";
8
8
  import { u as x } from "./index-Cv867SGx.js";
9
9
  import { c as u } from "./index-CRiPKpXj.js";
10
10
  import { C as de } from "./check-Ci0GjV-B.js";
@@ -0,0 +1,15 @@
1
+ import { c } from "./createLucideIcon-B_8CJpcQ.js";
2
+ /**
3
+ * @license lucide-react v0.546.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
10
+ ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
11
+ ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
12
+ ], r = c("ellipsis", e);
13
+ export {
14
+ r as E
15
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";const c=require("./createLucideIcon-CAtnV-yz.cjs");/**
2
+ * @license lucide-react v0.546.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const e=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],i=c.createLucideIcon("ellipsis",e);exports.Ellipsis=i;
package/dist/field.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),n=require("react"),u=require("./index-BTzZJcis.cjs"),d=require("./index-DoxiiusW.cjs"),c=require("./label-Cne2J57f.cjs"),f=require("./separator-CGnu_jIu.cjs");function x({className:e,...a}){return t.jsxRuntimeExports.jsx("fieldset",{"data-slot":"field-set",className:d.cn("adm:flex adm:flex-col adm:gap-6","adm:has-[>[data-slot=checkbox-group]]:gap-3 adm:has-[>[data-slot=radio-group]]:gap-3",e),...a})}function p({className:e,variant:a="legend",...l}){return t.jsxRuntimeExports.jsx("legend",{"data-slot":"field-legend","data-variant":a,className:d.cn("adm:mb-3 adm:font-medium","adm:data-[variant=legend]:text-base","adm:data-[variant=label]:text-sm",e),...l})}function g({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-group",className:d.cn("adm:group/field-group adm:@container/field-group adm:flex adm:w-full adm:flex-col adm:gap-7 adm:data-[slot=checkbox-group]:gap-3 adm:[&>[data-slot=field-group]]:gap-4",e),...a})}const b=u.cva("adm:group/field adm:flex adm:w-full adm:gap-2 adm:data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["adm:flex-col adm:[&>*]:w-full adm:[&>.sr-only]:w-auto"],horizontal:["adm:flex-row adm:items-center","adm:[&>[data-slot=field-label]]:flex-auto","adm:has-[>[data-slot=field-content]]:items-start adm:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["adm:flex-col adm:[&>*]:w-full adm:[&>.sr-only]:w-auto adm:@md/field-group:flex-row adm:@md/field-group:items-center adm:@md/field-group:[&>*]:w-auto","adm:@md/field-group:[&>[data-slot=field-label]]:flex-auto","adm:@md/field-group:has-[>[data-slot=field-content]]:items-start adm:@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function j({className:e,orientation:a="vertical",...l}){return t.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:d.cn(b({orientation:a}),e),...l})}function h({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-content",className:d.cn("adm:group/field-content adm:flex adm:flex-1 adm:flex-col adm:gap-1.5 adm:leading-snug",e),...a})}function v({className:e,...a}){return t.jsxRuntimeExports.jsx(c.Label,{"data-slot":"field-label",className:d.cn("adm:group/field-label adm:peer/field-label adm:flex adm:w-fit adm:gap-2 adm:leading-snug adm:group-data-[disabled=true]/field:opacity-50","adm:has-[>[data-slot=field]]:w-full adm:has-[>[data-slot=field]]:flex-col adm:has-[>[data-slot=field]]:rounded-md adm:has-[>[data-slot=field]]:border adm:[&>*]:data-[slot=field]:p-4","adm:has-data-[state=checked]:bg-primary/5 adm:has-data-[state=checked]:border-primary adm:dark:has-data-[state=checked]:bg-primary/10",e),...a})}function F({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-label",className:d.cn("adm:flex adm:w-fit adm:items-center adm:gap-2 adm:text-sm adm:leading-snug adm:font-medium adm:group-data-[disabled=true]/field:opacity-50",e),...a})}function E({className:e,...a}){return t.jsxRuntimeExports.jsx("p",{"data-slot":"field-description",className:d.cn("adm:text-muted-foreground adm:text-sm adm:leading-normal adm:font-normal adm:group-has-[[data-orientation=horizontal]]/field:text-balance","adm:last:mt-0 adm:nth-last-2:-mt-1 adm:[[data-variant=legend]+&]:-mt-1.5","adm:[&>a:hover]:text-primary adm:[&>a]:underline adm:[&>a]:underline-offset-4",e),...a})}function R({children:e,className:a,...l}){return t.jsxRuntimeExports.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:d.cn("adm:relative adm:-my-2 adm:h-5 adm:text-sm adm:group-data-[variant=outline]/field-group:-mb-2",a),...l,children:[t.jsxRuntimeExports.jsx(f.Separator,{className:"adm:absolute adm:inset-0 adm:top-1/2"}),e&&t.jsxRuntimeExports.jsx("span",{className:"adm:bg-background adm:text-muted-foreground adm:relative adm:mx-auto adm:block adm:w-fit adm:px-2","data-slot":"field-separator-content",children:e})]})}function w({className:e,children:a,errors:l,...o}){const i=n.useMemo(()=>{if(a)return a;if(!l?.length)return null;const s=[...new Map(l.map(m=>[m?.message,m])).values()];return s?.length==1?s[0]?.message:t.jsxRuntimeExports.jsx("ul",{className:"adm:ml-4 adm:flex adm:list-disc adm:flex-col adm:gap-1",children:s.map((m,r)=>m?.message&&t.jsxRuntimeExports.jsx("li",{children:m.message},r))})},[a,l]);return i?t.jsxRuntimeExports.jsx("div",{role:"alert","data-slot":"field-error",className:d.cn("adm:text-destructive adm:text-sm adm:font-normal",e),...o,children:i}):null}exports.Field=j;exports.FieldContent=h;exports.FieldDescription=E;exports.FieldError=w;exports.FieldGroup=g;exports.FieldLabel=v;exports.FieldLegend=p;exports.FieldSeparator=R;exports.FieldSet=x;exports.FieldTitle=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),n=require("react"),u=require("./index-BTzZJcis.cjs"),d=require("./index-DoxiiusW.cjs"),c=require("./label-BjXORCBM.cjs"),f=require("./separator-BaZqZZ9R.cjs");function x({className:e,...a}){return t.jsxRuntimeExports.jsx("fieldset",{"data-slot":"field-set",className:d.cn("adm:flex adm:flex-col adm:gap-6","adm:has-[>[data-slot=checkbox-group]]:gap-3 adm:has-[>[data-slot=radio-group]]:gap-3",e),...a})}function p({className:e,variant:a="legend",...l}){return t.jsxRuntimeExports.jsx("legend",{"data-slot":"field-legend","data-variant":a,className:d.cn("adm:mb-3 adm:font-medium","adm:data-[variant=legend]:text-base","adm:data-[variant=label]:text-sm",e),...l})}function g({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-group",className:d.cn("adm:group/field-group adm:@container/field-group adm:flex adm:w-full adm:flex-col adm:gap-7 adm:data-[slot=checkbox-group]:gap-3 adm:[&>[data-slot=field-group]]:gap-4",e),...a})}const b=u.cva("adm:group/field adm:flex adm:w-full adm:gap-2 adm:data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["adm:flex-col adm:[&>*]:w-full adm:[&>.sr-only]:w-auto"],horizontal:["adm:flex-row adm:items-center","adm:[&>[data-slot=field-label]]:flex-auto","adm:has-[>[data-slot=field-content]]:items-start adm:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["adm:flex-col adm:[&>*]:w-full adm:[&>.sr-only]:w-auto adm:@md/field-group:flex-row adm:@md/field-group:items-center adm:@md/field-group:[&>*]:w-auto","adm:@md/field-group:[&>[data-slot=field-label]]:flex-auto","adm:@md/field-group:has-[>[data-slot=field-content]]:items-start adm:@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function j({className:e,orientation:a="vertical",...l}){return t.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:d.cn(b({orientation:a}),e),...l})}function h({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-content",className:d.cn("adm:group/field-content adm:flex adm:flex-1 adm:flex-col adm:gap-1.5 adm:leading-snug",e),...a})}function v({className:e,...a}){return t.jsxRuntimeExports.jsx(c.Label,{"data-slot":"field-label",className:d.cn("adm:group/field-label adm:peer/field-label adm:flex adm:w-fit adm:gap-2 adm:leading-snug adm:group-data-[disabled=true]/field:opacity-50","adm:has-[>[data-slot=field]]:w-full adm:has-[>[data-slot=field]]:flex-col adm:has-[>[data-slot=field]]:rounded-md adm:has-[>[data-slot=field]]:border adm:[&>*]:data-[slot=field]:p-4","adm:has-data-[state=checked]:bg-primary/5 adm:has-data-[state=checked]:border-primary adm:dark:has-data-[state=checked]:bg-primary/10",e),...a})}function F({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-label",className:d.cn("adm:flex adm:w-fit adm:items-center adm:gap-2 adm:text-sm adm:leading-snug adm:font-medium adm:group-data-[disabled=true]/field:opacity-50",e),...a})}function E({className:e,...a}){return t.jsxRuntimeExports.jsx("p",{"data-slot":"field-description",className:d.cn("adm:text-muted-foreground adm:text-sm adm:leading-normal adm:font-normal adm:group-has-[[data-orientation=horizontal]]/field:text-balance","adm:last:mt-0 adm:nth-last-2:-mt-1 adm:[[data-variant=legend]+&]:-mt-1.5","adm:[&>a:hover]:text-primary adm:[&>a]:underline adm:[&>a]:underline-offset-4",e),...a})}function R({children:e,className:a,...l}){return t.jsxRuntimeExports.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:d.cn("adm:relative adm:-my-2 adm:h-5 adm:text-sm adm:group-data-[variant=outline]/field-group:-mb-2",a),...l,children:[t.jsxRuntimeExports.jsx(f.Separator,{className:"adm:absolute adm:inset-0 adm:top-1/2"}),e&&t.jsxRuntimeExports.jsx("span",{className:"adm:bg-background adm:text-muted-foreground adm:relative adm:mx-auto adm:block adm:w-fit adm:px-2","data-slot":"field-separator-content",children:e})]})}function w({className:e,children:a,errors:l,...o}){const i=n.useMemo(()=>{if(a)return a;if(!l?.length)return null;const s=[...new Map(l.map(m=>[m?.message,m])).values()];return s?.length==1?s[0]?.message:t.jsxRuntimeExports.jsx("ul",{className:"adm:ml-4 adm:flex adm:list-disc adm:flex-col adm:gap-1",children:s.map((m,r)=>m?.message&&t.jsxRuntimeExports.jsx("li",{children:m.message},r))})},[a,l]);return i?t.jsxRuntimeExports.jsx("div",{role:"alert","data-slot":"field-error",className:d.cn("adm:text-destructive adm:text-sm adm:font-normal",e),...o,children:i}):null}exports.Field=j;exports.FieldContent=h;exports.FieldDescription=E;exports.FieldError=w;exports.FieldGroup=g;exports.FieldLabel=v;exports.FieldLegend=p;exports.FieldSeparator=R;exports.FieldSet=x;exports.FieldTitle=F;
package/dist/field.js CHANGED
@@ -2,8 +2,8 @@ import { j as e } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { useMemo as n } from "react";
3
3
  import { c as f } from "./index-BqtVL8d-.js";
4
4
  import { c as t } from "./index-CRiPKpXj.js";
5
- import { L as u } from "./label-Ky8qBEC3.js";
6
- import { S as c } from "./separator-BH73A90k.js";
5
+ import { L as u } from "./label-CmwGvhy1.js";
6
+ import { S as c } from "./separator-DR7lQjv9.js";
7
7
  function w({ className: d, ...a }) {
8
8
  return /* @__PURE__ */ e.jsx(
9
9
  "fieldset",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),l=require("./index-BWaO7kQK.cjs"),L=require("./index-cwZN7ZY3.cjs"),k=require("./index-BKbK2GzY.cjs"),f=require("./index-BGiGvaq8.cjs"),$=require("./index-Ce3QBKyj.cjs"),w=require("./index-IKJMQref.cjs"),F=require("./index-DQvx1rG_.cjs"),I=require("./index-VIUqZjyP.cjs"),U=require("./index-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=z(q);var H,P="HoverCard",[T]=L.createContextScope(P,[f.createPopperScope]),b=f.createPopperScope(),[W,j]=T(P),O=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:c,openDelay:m=700,closeDelay:v=300}=e,d=b(t),x=a.useRef(0),u=a.useRef(0),C=a.useRef(!1),p=a.useRef(!1),[h,o]=l.useControllableState({prop:n,defaultProp:i??!1,onChange:c,caller:P}),R=a.useCallback(()=>{clearTimeout(u.current),x.current=window.setTimeout(()=>o(!0),m)},[m,o]),A=a.useCallback(()=>{clearTimeout(x.current),!C.current&&!p.current&&(u.current=window.setTimeout(()=>o(!1),v))},[v,o]),M=a.useCallback(()=>o(!1),[o]);return a.useEffect(()=>()=>{clearTimeout(x.current),clearTimeout(u.current)},[]),s.jsxRuntimeExports.jsx(W,{scope:t,open:h,onOpenChange:o,onOpen:R,onClose:A,onDismiss:M,hasSelectionRef:C,isPointerDownOnContentRef:p,children:s.jsxRuntimeExports.jsx(f.Root2,{...d,children:r})})};O.displayName=P;var y="HoverCardTrigger",_=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=j(y,r),c=b(r);return s.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...c,children:s.jsxRuntimeExports.jsx(F.Primitive.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(i.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(i.onClose)),onFocus:l.composeEventHandlers(e.onFocus,i.onOpen),onBlur:l.composeEventHandlers(e.onBlur,i.onClose),onTouchStart:l.composeEventHandlers(e.onTouchStart,m=>m.preventDefault())})})});_.displayName=y;var S="HoverCardPortal",[B,G]=T(S,{forceMount:void 0}),N=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,c=j(S,t);return s.jsxRuntimeExports.jsx(B,{scope:t,forceMount:r,children:s.jsxRuntimeExports.jsx(w.Presence,{present:r||c.open,children:s.jsxRuntimeExports.jsx($.Portal,{asChild:!0,container:i,children:n})})})};N.displayName=S;var E="HoverCardContent",D=a.forwardRef((e,t)=>{const r=G(E,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,c=j(E,e.__scopeHoverCard);return s.jsxRuntimeExports.jsx(w.Presence,{present:n||c.open,children:s.jsxRuntimeExports.jsx(K,{"data-state":c.open?"open":"closed",...i,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(c.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(c.onClose)),ref:t})})});D.displayName=E;var K=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:m,...v}=e,d=j(E,r),x=b(r),u=a.useRef(null),C=k.useComposedRefs(t,u),[p,h]=a.useState(!1);return a.useEffect(()=>{if(p){const o=document.body;return H=o.style.userSelect||o.style.webkitUserSelect,o.style.userSelect="none",o.style.webkitUserSelect="none",()=>{o.style.userSelect=H,o.style.webkitUserSelect=H}}},[p]),a.useEffect(()=>{if(u.current){const o=()=>{h(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",o),()=>{document.removeEventListener("pointerup",o),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),a.useEffect(()=>{u.current&&Q(u.current).forEach(R=>R.setAttribute("tabindex","-1"))}),s.jsxRuntimeExports.jsx(I.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:m,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:l.composeEventHandlers(c,o=>{o.preventDefault()}),onDismiss:d.onDismiss,children:s.jsxRuntimeExports.jsx(f.Content,{...x,...v,onPointerDown:l.composeEventHandlers(v.onPointerDown,o=>{o.currentTarget.contains(o.target)&&h(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:C,style:{...v.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),V="HoverCardArrow",J=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=b(r);return s.jsxRuntimeExports.jsx(f.Arrow,{...i,...n,ref:t})});J.displayName=V;function g(e){return t=>t.pointerType==="touch"?void 0:e()}function Q(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var X=O,Y=_,Z=N,ee=D;function te({...e}){return s.jsxRuntimeExports.jsx(X,{"data-slot":"hover-card",...e})}function re({...e}){return s.jsxRuntimeExports.jsx(Y,{"data-slot":"hover-card-trigger",...e})}function oe({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsxRuntimeExports.jsx(Z,{"data-slot":"hover-card-portal",children:s.jsxRuntimeExports.jsx(ee,{"data-slot":"hover-card-content",align:t,sideOffset:r,className:U.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-64 adm:origin-(--radix-hover-card-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",e),...n})})}exports.HoverCard=te;exports.HoverCardContent=oe;exports.HoverCardTrigger=re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),l=require("./index-BWaO7kQK.cjs"),L=require("./index-cwZN7ZY3.cjs"),k=require("./index-_XxjJPRD.cjs"),f=require("./index-BcGMAmWE.cjs"),$=require("./index-Dbj9vHNq.cjs"),w=require("./index-Bd0gQB0k.cjs"),F=require("./index-CocSS1YK.cjs"),I=require("./index-BeWgla7c.cjs"),U=require("./index-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=z(q);var H,P="HoverCard",[T]=L.createContextScope(P,[f.createPopperScope]),b=f.createPopperScope(),[W,j]=T(P),O=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:c,openDelay:m=700,closeDelay:v=300}=e,d=b(t),x=a.useRef(0),u=a.useRef(0),C=a.useRef(!1),p=a.useRef(!1),[h,o]=l.useControllableState({prop:n,defaultProp:i??!1,onChange:c,caller:P}),R=a.useCallback(()=>{clearTimeout(u.current),x.current=window.setTimeout(()=>o(!0),m)},[m,o]),A=a.useCallback(()=>{clearTimeout(x.current),!C.current&&!p.current&&(u.current=window.setTimeout(()=>o(!1),v))},[v,o]),M=a.useCallback(()=>o(!1),[o]);return a.useEffect(()=>()=>{clearTimeout(x.current),clearTimeout(u.current)},[]),s.jsxRuntimeExports.jsx(W,{scope:t,open:h,onOpenChange:o,onOpen:R,onClose:A,onDismiss:M,hasSelectionRef:C,isPointerDownOnContentRef:p,children:s.jsxRuntimeExports.jsx(f.Root2,{...d,children:r})})};O.displayName=P;var y="HoverCardTrigger",_=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=j(y,r),c=b(r);return s.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...c,children:s.jsxRuntimeExports.jsx(F.Primitive.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(i.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(i.onClose)),onFocus:l.composeEventHandlers(e.onFocus,i.onOpen),onBlur:l.composeEventHandlers(e.onBlur,i.onClose),onTouchStart:l.composeEventHandlers(e.onTouchStart,m=>m.preventDefault())})})});_.displayName=y;var S="HoverCardPortal",[B,G]=T(S,{forceMount:void 0}),N=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,c=j(S,t);return s.jsxRuntimeExports.jsx(B,{scope:t,forceMount:r,children:s.jsxRuntimeExports.jsx(w.Presence,{present:r||c.open,children:s.jsxRuntimeExports.jsx($.Portal,{asChild:!0,container:i,children:n})})})};N.displayName=S;var E="HoverCardContent",D=a.forwardRef((e,t)=>{const r=G(E,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,c=j(E,e.__scopeHoverCard);return s.jsxRuntimeExports.jsx(w.Presence,{present:n||c.open,children:s.jsxRuntimeExports.jsx(K,{"data-state":c.open?"open":"closed",...i,onPointerEnter:l.composeEventHandlers(e.onPointerEnter,g(c.onOpen)),onPointerLeave:l.composeEventHandlers(e.onPointerLeave,g(c.onClose)),ref:t})})});D.displayName=E;var K=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:m,...v}=e,d=j(E,r),x=b(r),u=a.useRef(null),C=k.useComposedRefs(t,u),[p,h]=a.useState(!1);return a.useEffect(()=>{if(p){const o=document.body;return H=o.style.userSelect||o.style.webkitUserSelect,o.style.userSelect="none",o.style.webkitUserSelect="none",()=>{o.style.userSelect=H,o.style.webkitUserSelect=H}}},[p]),a.useEffect(()=>{if(u.current){const o=()=>{h(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",o),()=>{document.removeEventListener("pointerup",o),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),a.useEffect(()=>{u.current&&Q(u.current).forEach(R=>R.setAttribute("tabindex","-1"))}),s.jsxRuntimeExports.jsx(I.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:m,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:l.composeEventHandlers(c,o=>{o.preventDefault()}),onDismiss:d.onDismiss,children:s.jsxRuntimeExports.jsx(f.Content,{...x,...v,onPointerDown:l.composeEventHandlers(v.onPointerDown,o=>{o.currentTarget.contains(o.target)&&h(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:C,style:{...v.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),V="HoverCardArrow",J=a.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=b(r);return s.jsxRuntimeExports.jsx(f.Arrow,{...i,...n,ref:t})});J.displayName=V;function g(e){return t=>t.pointerType==="touch"?void 0:e()}function Q(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var X=O,Y=_,Z=N,ee=D;function te({...e}){return s.jsxRuntimeExports.jsx(X,{"data-slot":"hover-card",...e})}function re({...e}){return s.jsxRuntimeExports.jsx(Y,{"data-slot":"hover-card-trigger",...e})}function oe({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsxRuntimeExports.jsx(Z,{"data-slot":"hover-card-portal",children:s.jsxRuntimeExports.jsx(ee,{"data-slot":"hover-card-content",align:t,sideOffset:r,className:U.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-64 adm:origin-(--radix-hover-card-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",e),...n})})}exports.HoverCard=te;exports.HoverCardContent=oe;exports.HoverCardTrigger=re;
@@ -2,12 +2,12 @@ import { j as a } from "./jsx-runtime-BzflLqGi.js";
2
2
  import * as n from "react";
3
3
  import { u as M, c as l } from "./index-C0UREtMP.js";
4
4
  import { c as k } from "./index-FxyLF8MY.js";
5
- import { u as F } from "./index-6oTEokEx.js";
6
- import { c as T, R as I, A as U, C as $, a as W } from "./index-CAOY367Y.js";
7
- import { P as z } from "./index-yR-v1A4G.js";
8
- import { P as H } from "./index-EUea2gfp.js";
9
- import { P as B } from "./index-C5wjudc-.js";
10
- import { D as G } from "./index-C329e3yQ.js";
5
+ import { u as F } from "./index-DLcqcWxM.js";
6
+ import { c as T, R as I, A as U, C as $, a as W } from "./index-B0M7VOwp.js";
7
+ import { P as z } from "./index-BX9hz-JD.js";
8
+ import { P as H } from "./index-BpWB3aFK.js";
9
+ import { P as B } from "./index-BMWt1NBG.js";
10
+ import { D as G } from "./index-CZZ3llmi.js";
11
11
  import { c as K } from "./index-CRiPKpXj.js";
12
12
  var w, R = "HoverCard", [O] = k(R, [
13
13
  T
@@ -1,9 +1,9 @@
1
1
  import * as R from "react";
2
2
  import { useLayoutEffect as Ae } from "react";
3
3
  import * as Re from "react-dom";
4
- import { P as At } from "./index-C5wjudc-.js";
4
+ import { P as At } from "./index-BMWt1NBG.js";
5
5
  import { j as Y } from "./jsx-runtime-BzflLqGi.js";
6
- import { u as Xt } from "./index-6oTEokEx.js";
6
+ import { u as Xt } from "./index-DLcqcWxM.js";
7
7
  import { c as Ce } from "./index-FxyLF8MY.js";
8
8
  import { u as Pe } from "./index-0ioNhtNM.js";
9
9
  import { u as $t } from "./index-CCKe-Mpx.js";
@@ -2,9 +2,9 @@ import * as o from "react";
2
2
  import { u as I, c as O } from "./index-C0UREtMP.js";
3
3
  import { c as S } from "./index-FxyLF8MY.js";
4
4
  import { u as D } from "./index-CCKe-Mpx.js";
5
- import { u as M } from "./index-6oTEokEx.js";
6
- import { P as v } from "./index-C5wjudc-.js";
7
- import { P as L } from "./index-EUea2gfp.js";
5
+ import { u as M } from "./index-DLcqcWxM.js";
6
+ import { P as v } from "./index-BMWt1NBG.js";
7
+ import { P as L } from "./index-BpWB3aFK.js";
8
8
  import { u as k } from "./index-Cv867SGx.js";
9
9
  import { j as c } from "./jsx-runtime-BzflLqGi.js";
10
10
  var f = "Collapsible", [F, V] = S(f), [B, g] = F(f), T = o.forwardRef(
@@ -1 +1 @@
1
- "use strict";const o=require("react"),s=require("./index-DQvx1rG_.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=l(o);var a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u="VisuallyHidden",i=d.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(s.Primitive.span,{...e,ref:t,style:{...a,...e.style}}));i.displayName=u;var f=i;exports.Root=f;exports.VISUALLY_HIDDEN_STYLES=a;exports.VisuallyHidden=i;
1
+ "use strict";const o=require("react"),s=require("./index-CocSS1YK.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=l(o);var a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u="VisuallyHidden",i=d.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(s.Primitive.span,{...e,ref:t,style:{...a,...e.style}}));i.displayName=u;var f=i;exports.Root=f;exports.VISUALLY_HIDDEN_STYLES=a;exports.VisuallyHidden=i;
@@ -0,0 +1,5 @@
1
+ "use strict";const V=require("react"),g=require("./index-BWaO7kQK.cjs"),D=require("./index-_XxjJPRD.cjs"),O=require("./index-cwZN7ZY3.cjs"),j=require("./index-WIv2ndLu.cjs"),B=require("./index-BeWgla7c.cjs"),E=require("./index-DMs8RL3E.cjs"),Z=require("./index-Dbj9vHNq.cjs"),y=require("./index-Bd0gQB0k.cjs"),m=require("./index-CocSS1YK.cjs"),a=require("./jsx-runtime-BB_1_6y_.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=z(V);function K(e){const t=U(e),o=i.forwardRef((r,n)=>{const{children:s,...c}=r,l=i.Children.toArray(s),u=l.find(J);if(u){const p=u.props.children,x=l.map(R=>R===u?i.Children.count(p)>1?i.Children.only(null):i.isValidElement(p)?p.props.children:null:R);return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:i.isValidElement(p)?i.cloneElement(p,void 0,x):null})}return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function U(e){const t=i.forwardRef((o,r)=>{const{children:n,...s}=o;if(i.isValidElement(n)){const c=X(n),l=Q(s,n.props);return n.type!==i.Fragment&&(l.ref=r?D.composeRefs(r,c):c),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y=Symbol("radix.slottable");function J(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y}function Q(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const u=s(...l);return n(...l),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function X(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Dialog",[I]=O.createContextScope(C),[ee,d]=I(C),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:c=!0}=e,l=i.useRef(null),u=i.useRef(null),[p,x]=g.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:u,contentId:j.useId(),titleId:j.useId(),descriptionId:j.useId(),open:p,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(R=>!R),[x]),modal:c,children:o})};N.displayName=C;var b="DialogTrigger",T=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(b,o),s=D.useComposedRefs(t,n.triggerRef);return a.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":P(n.open),...r,ref:s,onClick:g.composeEventHandlers(e.onClick,n.onOpenToggle)})});T.displayName=b;var _="DialogPortal",[te,A]=I(_,{forceMount:void 0}),S=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:n}=e,s=d(_,t);return a.jsxRuntimeExports.jsx(te,{scope:t,forceMount:o,children:i.Children.map(r,c=>a.jsxRuntimeExports.jsx(y.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(Z.Portal,{asChild:!0,container:n,children:c})}))})};S.displayName=_;var v="DialogOverlay",M=i.forwardRef((e,t)=>{const o=A(v,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=d(v,e.__scopeDialog);return s.modal?a.jsxRuntimeExports.jsx(y.Presence,{present:r||s.open,children:a.jsxRuntimeExports.jsx(ne,{...n,ref:t})}):null});M.displayName=v;var oe=K("DialogOverlay.RemoveScroll"),ne=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(v,o);return a.jsxRuntimeExports.jsx(E.ReactRemoveScroll,{as:oe,allowPinchZoom:!0,shards:[n.contentRef],children:a.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":P(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),f="DialogContent",w=i.forwardRef((e,t)=>{const o=A(f,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=d(f,e.__scopeDialog);return a.jsxRuntimeExports.jsx(y.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(re,{...n,ref:t}):a.jsxRuntimeExports.jsx(se,{...n,ref:t})})});w.displayName=f;var re=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),r=i.useRef(null),n=D.useComposedRefs(t,o.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return E.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(F,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,s=>{s.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault())})}),se=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),r=i.useRef(!1),n=i.useRef(!1);return a.jsxRuntimeExports.jsx(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=s.target;o.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),F=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,...c}=e,l=d(f,o),u=i.useRef(null),p=D.useComposedRefs(t,u);return E.useFocusGuards(),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(E.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(B.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":P(l.open),...c,ref:p,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(ie,{titleId:l.titleId}),a.jsxRuntimeExports.jsx(le,{contentRef:u,descriptionId:l.descriptionId})]})]})}),h="DialogTitle",W=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(h,o);return a.jsxRuntimeExports.jsx(m.Primitive.h2,{id:n.titleId,...r,ref:t})});W.displayName=h;var $="DialogDescription",q=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d($,o);return a.jsxRuntimeExports.jsx(m.Primitive.p,{id:n.descriptionId,...r,ref:t})});q.displayName=$;var L="DialogClose",k=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(L,o);return a.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button",...r,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});k.displayName=L;function P(e){return e?"open":"closed"}var G="DialogTitleWarning",[Re,H]=O.createContext2(G,{contentName:f,titleName:h,docsSlug:"dialog"}),ie=({titleId:e})=>{const t=H(G),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
+
3
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
+
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},ae="DialogDescriptionWarning",le=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H(ae).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ce=N,ue=T,de=S,pe=M,fe=w,ge=W,xe=q,me=k;exports.Close=me;exports.Content=fe;exports.Description=xe;exports.Overlay=pe;exports.Portal=de;exports.Root=ce;exports.Title=ge;exports.Trigger=ue;
@@ -0,0 +1,79 @@
1
+ import * as i from "react";
2
+ import * as m from "react-dom";
3
+ import { c as y } from "./index-DLcqcWxM.js";
4
+ import { j as p } from "./jsx-runtime-BzflLqGi.js";
5
+ // @__NO_SIDE_EFFECTS__
6
+ function E(e) {
7
+ const r = /* @__PURE__ */ h(e), o = i.forwardRef((n, t) => {
8
+ const { children: s, ...a } = n, l = i.Children.toArray(s), c = l.find(S);
9
+ if (c) {
10
+ const f = c.props.children, d = l.map((u) => u === c ? i.Children.count(f) > 1 ? i.Children.only(null) : i.isValidElement(f) ? f.props.children : null : u);
11
+ return /* @__PURE__ */ p.jsx(r, { ...a, ref: t, children: i.isValidElement(f) ? i.cloneElement(f, void 0, d) : null });
12
+ }
13
+ return /* @__PURE__ */ p.jsx(r, { ...a, ref: t, children: s });
14
+ });
15
+ return o.displayName = `${e}.Slot`, o;
16
+ }
17
+ // @__NO_SIDE_EFFECTS__
18
+ function h(e) {
19
+ const r = i.forwardRef((o, n) => {
20
+ const { children: t, ...s } = o;
21
+ if (i.isValidElement(t)) {
22
+ const a = g(t), l = C(s, t.props);
23
+ return t.type !== i.Fragment && (l.ref = n ? y(n, a) : a), i.cloneElement(t, l);
24
+ }
25
+ return i.Children.count(t) > 1 ? i.Children.only(null) : null;
26
+ });
27
+ return r.displayName = `${e}.SlotClone`, r;
28
+ }
29
+ var v = Symbol("radix.slottable");
30
+ function S(e) {
31
+ return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === v;
32
+ }
33
+ function C(e, r) {
34
+ const o = { ...r };
35
+ for (const n in r) {
36
+ const t = e[n], s = r[n];
37
+ /^on[A-Z]/.test(n) ? t && s ? o[n] = (...l) => {
38
+ const c = s(...l);
39
+ return t(...l), c;
40
+ } : t && (o[n] = t) : n === "style" ? o[n] = { ...t, ...s } : n === "className" && (o[n] = [t, s].filter(Boolean).join(" "));
41
+ }
42
+ return { ...e, ...o };
43
+ }
44
+ function g(e) {
45
+ let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = r && "isReactWarning" in r && r.isReactWarning;
46
+ return o ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, o = r && "isReactWarning" in r && r.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
47
+ }
48
+ var R = [
49
+ "a",
50
+ "button",
51
+ "div",
52
+ "form",
53
+ "h2",
54
+ "h3",
55
+ "img",
56
+ "input",
57
+ "label",
58
+ "li",
59
+ "nav",
60
+ "ol",
61
+ "p",
62
+ "select",
63
+ "span",
64
+ "svg",
65
+ "ul"
66
+ ], b = R.reduce((e, r) => {
67
+ const o = /* @__PURE__ */ E(`Primitive.${r}`), n = i.forwardRef((t, s) => {
68
+ const { asChild: a, ...l } = t, c = a ? o : r;
69
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p.jsx(c, { ...l, ref: s });
70
+ });
71
+ return n.displayName = `Primitive.${r}`, { ...e, [r]: n };
72
+ }, {});
73
+ function j(e, r) {
74
+ e && m.flushSync(() => e.dispatchEvent(r));
75
+ }
76
+ export {
77
+ b as P,
78
+ j as d
79
+ };
@@ -1,6 +1,6 @@
1
1
  import * as o from "react";
2
2
  import n from "react-dom";
3
- import { P as f } from "./index-C5wjudc-.js";
3
+ import { P as f } from "./index-BMWt1NBG.js";
4
4
  import { u } from "./index-CCKe-Mpx.js";
5
5
  import { j as c } from "./jsx-runtime-BzflLqGi.js";
6
6
  var l = "Portal", p = o.forwardRef((r, a) => {