@adamosuiteservices/ui 1.0.0

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 (313) hide show
  1. package/README.md +1 -0
  2. package/dist/accordion-rounded.cjs +6 -0
  3. package/dist/accordion-rounded.js +85 -0
  4. package/dist/accordion.cjs +1 -0
  5. package/dist/accordion.js +65 -0
  6. package/dist/alert.cjs +1 -0
  7. package/dist/alert.js +69 -0
  8. package/dist/avatar.cjs +17 -0
  9. package/dist/avatar.js +248 -0
  10. package/dist/badge.cjs +1 -0
  11. package/dist/badge.js +54 -0
  12. package/dist/button-BFK0LYE1.js +58 -0
  13. package/dist/button-BnuVhhWO.cjs +1 -0
  14. package/dist/button-group.cjs +1 -0
  15. package/dist/button-group.js +76 -0
  16. package/dist/button.cjs +1 -0
  17. package/dist/button.js +5 -0
  18. package/dist/calendar.cjs +1 -0
  19. package/dist/calendar.js +2852 -0
  20. package/dist/card.cjs +1 -0
  21. package/dist/card.js +112 -0
  22. package/dist/check-CLxNVljQ.cjs +6 -0
  23. package/dist/check-Ci0GjV-B.js +11 -0
  24. package/dist/checkbox-BlfeC4MI.js +271 -0
  25. package/dist/checkbox-uByYIkZe.cjs +1 -0
  26. package/dist/checkbox.cjs +1 -0
  27. package/dist/checkbox.js +4 -0
  28. package/dist/chevron-down-BqEHzml5.cjs +6 -0
  29. package/dist/chevron-down-CpVS2Z7w.js +11 -0
  30. package/dist/chevron-left-B8QsBNvc.cjs +6 -0
  31. package/dist/chevron-left-Eal-WYLp.js +11 -0
  32. package/dist/chevron-right-BpzggHsr.cjs +6 -0
  33. package/dist/chevron-right-Cnc2tB4-.js +11 -0
  34. package/dist/circle-CX7JIirj.cjs +6 -0
  35. package/dist/circle-DYv-7Qb9.js +11 -0
  36. package/dist/collapsible.cjs +1 -0
  37. package/dist/collapsible.js +34 -0
  38. package/dist/colors.css +1 -0
  39. package/dist/combobox.cjs +6 -0
  40. package/dist/combobox.js +515 -0
  41. package/dist/components/layout/sidebar/index.d.ts +1 -0
  42. package/dist/components/layout/sidebar/sidebar.d.ts +17 -0
  43. package/dist/components/layout/sidebar/sidebar.stories.d.ts +6 -0
  44. package/dist/components/layout/toaster/index.d.ts +2 -0
  45. package/dist/components/layout/toaster/toaster.d.ts +26 -0
  46. package/dist/components/layout/toaster/toaster.stories.d.ts +15 -0
  47. package/dist/components/layout/toaster/use-toast.d.ts +1 -0
  48. package/dist/components/ui/accordion/accordion.d.ts +7 -0
  49. package/dist/components/ui/accordion/accordion.stories.d.ts +17 -0
  50. package/dist/components/ui/accordion/index.d.ts +1 -0
  51. package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +11 -0
  52. package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +21 -0
  53. package/dist/components/ui/accordion-rounded/index.d.ts +1 -0
  54. package/dist/components/ui/alert/alert.d.ts +9 -0
  55. package/dist/components/ui/alert/alert.stories.d.ts +24 -0
  56. package/dist/components/ui/alert/index.d.ts +1 -0
  57. package/dist/components/ui/avatar/avatar.d.ts +6 -0
  58. package/dist/components/ui/avatar/avatar.stories.d.ts +14 -0
  59. package/dist/components/ui/avatar/index.d.ts +1 -0
  60. package/dist/components/ui/badge/badge.d.ts +10 -0
  61. package/dist/components/ui/badge/badge.stories.d.ts +41 -0
  62. package/dist/components/ui/badge/index.d.ts +1 -0
  63. package/dist/components/ui/button/button.d.ts +10 -0
  64. package/dist/components/ui/button/button.stories.d.ts +38 -0
  65. package/dist/components/ui/button/index.d.ts +1 -0
  66. package/dist/components/ui/button-group/button-group.d.ts +11 -0
  67. package/dist/components/ui/button-group/button-group.stories.d.ts +19 -0
  68. package/dist/components/ui/button-group/index.d.ts +1 -0
  69. package/dist/components/ui/calendar/calendar.d.ts +8 -0
  70. package/dist/components/ui/calendar/calendar.stories.d.ts +27 -0
  71. package/dist/components/ui/calendar/index.d.ts +1 -0
  72. package/dist/components/ui/card/card.d.ts +13 -0
  73. package/dist/components/ui/card/card.stories.d.ts +18 -0
  74. package/dist/components/ui/card/index.d.ts +1 -0
  75. package/dist/components/ui/checkbox/checkbox.d.ts +4 -0
  76. package/dist/components/ui/checkbox/checkbox.stories.d.ts +15 -0
  77. package/dist/components/ui/checkbox/index.d.ts +1 -0
  78. package/dist/components/ui/collapsible/collapsible.d.ts +5 -0
  79. package/dist/components/ui/collapsible/collapsible.stories.d.ts +12 -0
  80. package/dist/components/ui/collapsible/index.d.ts +1 -0
  81. package/dist/components/ui/combobox/combobox.d.ts +35 -0
  82. package/dist/components/ui/combobox/combobox.stories.d.ts +27 -0
  83. package/dist/components/ui/combobox/index.d.ts +1 -0
  84. package/dist/components/ui/command/command.d.ts +18 -0
  85. package/dist/components/ui/command/index.d.ts +1 -0
  86. package/dist/components/ui/context-menu/context-menu.d.ts +25 -0
  87. package/dist/components/ui/context-menu/context-menu.stories.d.ts +10 -0
  88. package/dist/components/ui/context-menu/index.d.ts +1 -0
  89. package/dist/components/ui/dialog/dialog.d.ts +17 -0
  90. package/dist/components/ui/dialog/dialog.stories.d.ts +13 -0
  91. package/dist/components/ui/dialog/index.d.ts +1 -0
  92. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +25 -0
  93. package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +14 -0
  94. package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
  95. package/dist/components/ui/field/field.d.ts +24 -0
  96. package/dist/components/ui/field/field.stories.d.ts +18 -0
  97. package/dist/components/ui/field/index.d.ts +1 -0
  98. package/dist/components/ui/hover-card/hover-card.d.ts +6 -0
  99. package/dist/components/ui/hover-card/hover-card.stories.d.ts +25 -0
  100. package/dist/components/ui/hover-card/index.d.ts +1 -0
  101. package/dist/components/ui/input/index.d.ts +1 -0
  102. package/dist/components/ui/input/input.d.ts +3 -0
  103. package/dist/components/ui/input/input.stories.d.ts +23 -0
  104. package/dist/components/ui/input-group/Input-group.stories.d.ts +28 -0
  105. package/dist/components/ui/input-group/index.d.ts +1 -0
  106. package/dist/components/ui/input-group/input-group.d.ts +16 -0
  107. package/dist/components/ui/kbd/index.d.ts +1 -0
  108. package/dist/components/ui/kbd/kbd.d.ts +3 -0
  109. package/dist/components/ui/kbd/kbd.stories.d.ts +26 -0
  110. package/dist/components/ui/label/index.d.ts +1 -0
  111. package/dist/components/ui/label/label.d.ts +4 -0
  112. package/dist/components/ui/label/label.stories.d.ts +24 -0
  113. package/dist/components/ui/pagination/index.d.ts +1 -0
  114. package/dist/components/ui/pagination/pagination.d.ts +13 -0
  115. package/dist/components/ui/pagination/pagination.stories.d.ts +28 -0
  116. package/dist/components/ui/popover/index.d.ts +1 -0
  117. package/dist/components/ui/popover/popover.d.ts +7 -0
  118. package/dist/components/ui/popover/popover.stories.d.ts +26 -0
  119. package/dist/components/ui/progress/index.d.ts +1 -0
  120. package/dist/components/ui/progress/progress.d.ts +9 -0
  121. package/dist/components/ui/progress/progress.stories.d.ts +29 -0
  122. package/dist/components/ui/radio-group/index.d.ts +1 -0
  123. package/dist/components/ui/radio-group/radio-group.d.ts +5 -0
  124. package/dist/components/ui/radio-group/radio-group.stories.d.ts +18 -0
  125. package/dist/components/ui/select/index.d.ts +1 -0
  126. package/dist/components/ui/select/select.d.ts +15 -0
  127. package/dist/components/ui/select/select.stories.d.ts +19 -0
  128. package/dist/components/ui/separator/index.d.ts +1 -0
  129. package/dist/components/ui/separator/separator.d.ts +4 -0
  130. package/dist/components/ui/separator/separator.stories.d.ts +18 -0
  131. package/dist/components/ui/sheet/index.d.ts +1 -0
  132. package/dist/components/ui/sheet/sheet.d.ts +14 -0
  133. package/dist/components/ui/sheet/sheet.stories.d.ts +17 -0
  134. package/dist/components/ui/skeleton/index.d.ts +1 -0
  135. package/dist/components/ui/skeleton/skeleton.d.ts +2 -0
  136. package/dist/components/ui/skeleton/skeleton.stories.d.ts +22 -0
  137. package/dist/components/ui/slider/index.d.ts +1 -0
  138. package/dist/components/ui/slider/slider.d.ts +7 -0
  139. package/dist/components/ui/slider/slider.stories.d.ts +21 -0
  140. package/dist/components/ui/spinner/index.d.ts +1 -0
  141. package/dist/components/ui/spinner/spinner.d.ts +2 -0
  142. package/dist/components/ui/spinner/spinner.stories.d.ts +20 -0
  143. package/dist/components/ui/switch/index.d.ts +1 -0
  144. package/dist/components/ui/switch/switch.d.ts +4 -0
  145. package/dist/components/ui/switch/switch.stories.d.ts +17 -0
  146. package/dist/components/ui/table/index.d.ts +1 -0
  147. package/dist/components/ui/table/table.d.ts +10 -0
  148. package/dist/components/ui/table/table.stories.d.ts +11 -0
  149. package/dist/components/ui/tabs/index.d.ts +1 -0
  150. package/dist/components/ui/tabs/tabs.d.ts +7 -0
  151. package/dist/components/ui/tabs/tabs.stories.d.ts +16 -0
  152. package/dist/components/ui/tabs-underline/index.d.ts +1 -0
  153. package/dist/components/ui/tabs-underline/tabs-underline.d.ts +7 -0
  154. package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +16 -0
  155. package/dist/components/ui/textarea/index.d.ts +1 -0
  156. package/dist/components/ui/textarea/textarea.d.ts +3 -0
  157. package/dist/components/ui/textarea/textarea.stories.d.ts +21 -0
  158. package/dist/components/ui/toggle/index.d.ts +1 -0
  159. package/dist/components/ui/toggle/toggle.d.ts +9 -0
  160. package/dist/components/ui/toggle/toggle.stories.d.ts +21 -0
  161. package/dist/components/ui/tooltip/index.d.ts +1 -0
  162. package/dist/components/ui/tooltip/tooltip.d.ts +7 -0
  163. package/dist/components/ui/tooltip/tooltip.stories.d.ts +19 -0
  164. package/dist/components/ui/typography/index.d.ts +1 -0
  165. package/dist/components/ui/typography/typography.d.ts +8 -0
  166. package/dist/components/ui/typography/typography.stories.d.ts +33 -0
  167. package/dist/context-menu.cjs +1 -0
  168. package/dist/context-menu.js +427 -0
  169. package/dist/createLucideIcon-B_8CJpcQ.js +94 -0
  170. package/dist/createLucideIcon-CAtnV-yz.cjs +21 -0
  171. package/dist/custom-layered-styles.css +1 -0
  172. package/dist/dialog.cjs +1 -0
  173. package/dist/dialog.js +139 -0
  174. package/dist/dropdown-menu.cjs +1 -0
  175. package/dist/dropdown-menu.js +423 -0
  176. package/dist/field.cjs +1 -0
  177. package/dist/field.js +221 -0
  178. package/dist/fonts.css +1 -0
  179. package/dist/hooks/index.d.ts +1 -0
  180. package/dist/hooks/use-portal-container.d.ts +31 -0
  181. package/dist/hover-card.cjs +1 -0
  182. package/dist/hover-card.js +210 -0
  183. package/dist/index-0ioNhtNM.js +10 -0
  184. package/dist/index-6oTEokEx.js +82 -0
  185. package/dist/index-B-NyefE0.js +243 -0
  186. package/dist/index-B-ZRqW0J.js +118 -0
  187. package/dist/index-B-cHTKrs.js +158 -0
  188. package/dist/index-BGQepRFJ.js +27 -0
  189. package/dist/index-BGiGvaq8.cjs +1 -0
  190. package/dist/index-BKbK2GzY.cjs +1 -0
  191. package/dist/index-BMitW9UR.cjs +1 -0
  192. package/dist/index-BRLtxFFr.cjs +1 -0
  193. package/dist/index-BWaO7kQK.cjs +1 -0
  194. package/dist/index-BZPx6jYI.js +8 -0
  195. package/dist/index-BpvjJ_T6.cjs +5 -0
  196. package/dist/index-C0UREtMP.js +59 -0
  197. package/dist/index-C329e3yQ.js +134 -0
  198. package/dist/index-C5wjudc-.js +36 -0
  199. package/dist/index-C8ni3LLa.cjs +1 -0
  200. package/dist/index-CAOY367Y.js +1540 -0
  201. package/dist/index-CCKe-Mpx.js +6 -0
  202. package/dist/index-CQhYMnjT.js +34 -0
  203. package/dist/index-Ce3QBKyj.cjs +1 -0
  204. package/dist/index-CezwiPd_.js +615 -0
  205. package/dist/index-Cv867SGx.js +13 -0
  206. package/dist/index-CwUFT-GQ.js +228 -0
  207. package/dist/index-CzY-WZXL.cjs +1 -0
  208. package/dist/index-D02K8KOB.js +54 -0
  209. package/dist/index-D3S7dBDI.cjs +1 -0
  210. package/dist/index-D3wSWKST.cjs +1 -0
  211. package/dist/index-D7hQvndv.cjs +1 -0
  212. package/dist/index-DQvx1rG_.cjs +1 -0
  213. package/dist/index-DXQ-7kNJ.cjs +41 -0
  214. package/dist/index-DYxWvftI.cjs +1 -0
  215. package/dist/index-DnS_sBBe.cjs +1 -0
  216. package/dist/index-DulPG3F9.js +179 -0
  217. package/dist/index-EUea2gfp.js +70 -0
  218. package/dist/index-FxyLF8MY.js +68 -0
  219. package/dist/index-IKJMQref.cjs +1 -0
  220. package/dist/index-MQ0c3ZX_.cjs +1 -0
  221. package/dist/index-P1sVIHE3.js +32 -0
  222. package/dist/index-VIUqZjyP.cjs +1 -0
  223. package/dist/index-WIv2ndLu.cjs +1 -0
  224. package/dist/index-bSPhqlcX.cjs +1 -0
  225. package/dist/index-cwZN7ZY3.cjs +1 -0
  226. package/dist/index-gO_QEiaK.cjs +1 -0
  227. package/dist/index-iAvn1gzj.cjs +1 -0
  228. package/dist/index-o0sNTcKe.js +674 -0
  229. package/dist/index-rKs9bXHr.js +6 -0
  230. package/dist/index-yR-v1A4G.js +15 -0
  231. package/dist/input-3MDa_DYk.cjs +1 -0
  232. package/dist/input-Cl7xmQYQ.js +22 -0
  233. package/dist/input-group.cjs +1 -0
  234. package/dist/input-group.js +152 -0
  235. package/dist/input.cjs +1 -0
  236. package/dist/input.js +4 -0
  237. package/dist/jsx-runtime-BB_1_6y_.cjs +22 -0
  238. package/dist/jsx-runtime-BzflLqGi.js +282 -0
  239. package/dist/kbd.cjs +1 -0
  240. package/dist/kbd.js +31 -0
  241. package/dist/label-MxqN87DQ.cjs +1 -0
  242. package/dist/label-hg_jN6Y8.js +35 -0
  243. package/dist/label.cjs +1 -0
  244. package/dist/label.js +4 -0
  245. package/dist/lib/utils.d.ts +2 -0
  246. package/dist/minus-C0pHPx21.cjs +6 -0
  247. package/dist/minus-DE-onYs2.js +11 -0
  248. package/dist/pagination.cjs +6 -0
  249. package/dist/pagination.js +134 -0
  250. package/dist/popover-BBXe2myL.cjs +1 -0
  251. package/dist/popover-DNiRNCdn.js +263 -0
  252. package/dist/popover.cjs +1 -0
  253. package/dist/popover.js +7 -0
  254. package/dist/progress.cjs +6 -0
  255. package/dist/progress.js +137 -0
  256. package/dist/radio-group.cjs +1 -0
  257. package/dist/radio-group.js +271 -0
  258. package/dist/radius.css +1 -0
  259. package/dist/select.cjs +6 -0
  260. package/dist/select.js +987 -0
  261. package/dist/separator-C9kqOQR-.js +44 -0
  262. package/dist/separator-Dbx-SVIs.cjs +1 -0
  263. package/dist/separator.cjs +1 -0
  264. package/dist/separator.js +4 -0
  265. package/dist/sheet-0jRbqkzj.cjs +1 -0
  266. package/dist/sheet-RAbg4M5A.js +128 -0
  267. package/dist/sheet.cjs +1 -0
  268. package/dist/sheet.js +11 -0
  269. package/dist/sidebar.cjs +6 -0
  270. package/dist/sidebar.js +139 -0
  271. package/dist/skeleton.cjs +1 -0
  272. package/dist/skeleton.js +15 -0
  273. package/dist/slider.cjs +1 -0
  274. package/dist/slider.js +486 -0
  275. package/dist/space.css +1 -0
  276. package/dist/spinner.cjs +6 -0
  277. package/dist/spinner.js +24 -0
  278. package/dist/styles.css +1 -0
  279. package/dist/switch.cjs +1 -0
  280. package/dist/switch.js +154 -0
  281. package/dist/table.cjs +1 -0
  282. package/dist/table.js +115 -0
  283. package/dist/tabs-underline.cjs +1 -0
  284. package/dist/tabs-underline.js +68 -0
  285. package/dist/tabs.cjs +1 -0
  286. package/dist/tabs.js +68 -0
  287. package/dist/tailwind-animations.css +1 -0
  288. package/dist/tailwind-colors.css +1 -0
  289. package/dist/tailwind-fonts.css +1 -0
  290. package/dist/tailwind-radius.css +1 -0
  291. package/dist/tailwind-spacing.css +1 -0
  292. package/dist/tailwind-theme.css +1 -0
  293. package/dist/textarea-D76719tg.js +19 -0
  294. package/dist/textarea-UdELO_Jn.cjs +1 -0
  295. package/dist/textarea.cjs +1 -0
  296. package/dist/textarea.js +4 -0
  297. package/dist/themes.css +1 -0
  298. package/dist/toaster.cjs +1 -0
  299. package/dist/toaster.js +87 -0
  300. package/dist/toggle.cjs +1 -0
  301. package/dist/toggle.js +69 -0
  302. package/dist/tooltip.cjs +1 -0
  303. package/dist/tooltip.js +375 -0
  304. package/dist/types/theme.type.d.ts +2 -0
  305. package/dist/typography.cjs +1 -0
  306. package/dist/typography.js +34 -0
  307. package/dist/use-portal-container.cjs +1 -0
  308. package/dist/use-portal-container.js +21 -0
  309. package/dist/utils-CRiPKpXj.js +2743 -0
  310. package/dist/utils-DoxiiusW.cjs +1 -0
  311. package/dist/x-CBKgg4YL.cjs +6 -0
  312. package/dist/x-Dl66o_vF.js +14 -0
  313. package/package.json +275 -0
@@ -0,0 +1,134 @@
1
+ import { j as n } from "./jsx-runtime-BzflLqGi.js";
2
+ import "react";
3
+ import { c as e } from "./utils-CRiPKpXj.js";
4
+ import { b as r } from "./button-BFK0LYE1.js";
5
+ import { C as l } from "./chevron-left-Eal-WYLp.js";
6
+ import { C as m } from "./chevron-right-Cnc2tB4-.js";
7
+ import { c } from "./createLucideIcon-B_8CJpcQ.js";
8
+ /**
9
+ * @license lucide-react v0.546.0 - ISC
10
+ *
11
+ * This source code is licensed under the ISC license.
12
+ * See the LICENSE file in the root directory of this source tree.
13
+ */
14
+ const d = [
15
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
16
+ ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
17
+ ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
18
+ ], p = c("ellipsis", d);
19
+ function y({ className: a, ...i }) {
20
+ return /* @__PURE__ */ n.jsx(
21
+ "nav",
22
+ {
23
+ role: "navigation",
24
+ "aria-label": "pagination",
25
+ "data-slot": "pagination",
26
+ className: e("adm:mx-auto adm:flex adm:w-full adm:justify-center", a),
27
+ ...i
28
+ }
29
+ );
30
+ }
31
+ function P({
32
+ className: a,
33
+ ...i
34
+ }) {
35
+ return /* @__PURE__ */ n.jsx(
36
+ "ul",
37
+ {
38
+ "data-slot": "pagination-content",
39
+ className: e("adm:flex adm:flex-row adm:items-center adm:gap-1", a),
40
+ ...i
41
+ }
42
+ );
43
+ }
44
+ function v({ ...a }) {
45
+ return /* @__PURE__ */ n.jsx("li", { "data-slot": "pagination-item", ...a });
46
+ }
47
+ function s({
48
+ className: a,
49
+ isActive: i,
50
+ size: t = "icon",
51
+ ...o
52
+ }) {
53
+ return /* @__PURE__ */ n.jsx(
54
+ "a",
55
+ {
56
+ "aria-current": i ? "page" : void 0,
57
+ "data-slot": "pagination-link",
58
+ "data-active": i,
59
+ className: e(
60
+ r({
61
+ variant: i ? "outline" : "ghost",
62
+ size: t
63
+ }),
64
+ a
65
+ ),
66
+ ...o
67
+ }
68
+ );
69
+ }
70
+ function b({
71
+ className: a,
72
+ children: i,
73
+ ...t
74
+ }) {
75
+ return /* @__PURE__ */ n.jsxs(
76
+ s,
77
+ {
78
+ "aria-label": "Go to previous page",
79
+ size: "default",
80
+ className: e("adm:gap-1 adm:px-2.5 adm:sm:pl-2.5", a),
81
+ ...t,
82
+ children: [
83
+ /* @__PURE__ */ n.jsx(l, {}),
84
+ /* @__PURE__ */ n.jsx("span", { className: "adm:hidden adm:sm:block", children: i ?? "Previous" })
85
+ ]
86
+ }
87
+ );
88
+ }
89
+ function k({
90
+ className: a,
91
+ children: i,
92
+ ...t
93
+ }) {
94
+ return /* @__PURE__ */ n.jsxs(
95
+ s,
96
+ {
97
+ "aria-label": "Go to next page",
98
+ size: "default",
99
+ className: e("adm:gap-1 adm:px-2.5 adm:sm:pr-2.5", a),
100
+ ...t,
101
+ children: [
102
+ /* @__PURE__ */ n.jsx("span", { className: "adm:hidden adm:sm:block", children: i ?? "Next" }),
103
+ /* @__PURE__ */ n.jsx(m, {})
104
+ ]
105
+ }
106
+ );
107
+ }
108
+ function z({
109
+ className: a,
110
+ ...i
111
+ }) {
112
+ return /* @__PURE__ */ n.jsxs(
113
+ "span",
114
+ {
115
+ "aria-hidden": !0,
116
+ "data-slot": "pagination-ellipsis",
117
+ className: e("adm:flex adm:size-9 adm:items-center adm:justify-center", a),
118
+ ...i,
119
+ children: [
120
+ /* @__PURE__ */ n.jsx(p, { className: "adm:size-4" }),
121
+ /* @__PURE__ */ n.jsx("span", { className: "adm:sr-only", children: "More pages" })
122
+ ]
123
+ }
124
+ );
125
+ }
126
+ export {
127
+ y as Pagination,
128
+ P as PaginationContent,
129
+ z as PaginationEllipsis,
130
+ v as PaginationItem,
131
+ s as PaginationLink,
132
+ k as PaginationNext,
133
+ b as PaginationPrevious
134
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./jsx-runtime-BB_1_6y_.cjs"),$=require("react"),f=require("./index-BWaO7kQK.cjs"),E=require("./index-BKbK2GzY.cjs"),I=require("./index-cwZN7ZY3.cjs"),H=require("./index-VIUqZjyP.cjs"),h=require("./index-DXQ-7kNJ.cjs"),z=require("./index-WIv2ndLu.cjs"),l=require("./index-BGiGvaq8.cjs"),L=require("./index-Ce3QBKyj.cjs"),O=require("./index-IKJMQref.cjs"),_=require("./index-DQvx1rG_.cjs"),G=require("./utils-DoxiiusW.cjs");function K(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 c=K($);var C="Popover",[b]=I.createContextScope(C,[l.createPopperScope]),P=l.createPopperScope(),[U,u]=b(C),w=e=>{const{__scopePopover:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:i=!1}=e,p=P(t),x=c.useRef(null),[m,g]=c.useState(!1),[R,d]=f.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(l.Root2,{...p,children:a.jsxRuntimeExports.jsx(U,{scope:t,contentId:z.useId(),triggerRef:x,open:R,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(j=>!j),[d]),hasCustomAnchor:m,onCustomAnchorAdd:c.useCallback(()=>g(!0),[]),onCustomAnchorRemove:c.useCallback(()=>g(!1),[]),modal:i,children:o})})};w.displayName=C;var N="PopoverAnchor",S=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(N,o),s=P(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=n;return c.useEffect(()=>(i(),()=>p()),[i,p]),a.jsxRuntimeExports.jsx(l.Anchor,{...s,...r,ref:t})});S.displayName=N;var y="PopoverTrigger",F=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(y,o),s=P(o),i=E.useComposedRefs(t,n.triggerRef),p=a.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":q(n.open),...r,ref:i,onClick:f.composeEventHandlers(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:a.jsxRuntimeExports.jsx(l.Anchor,{asChild:!0,...s,children:p})});F.displayName=y;var A="PopoverPortal",[V,W]=b(A,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:r,container:n}=e,s=u(A,t);return a.jsxRuntimeExports.jsx(V,{scope:t,forceMount:o,children:a.jsxRuntimeExports.jsx(O.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:n,children:r})})})};D.displayName=A;var v="PopoverContent",M=c.forwardRef((e,t)=>{const o=W(v,e.__scopePopover),{forceMount:r=o.forceMount,...n}=e,s=u(v,e.__scopePopover);return a.jsxRuntimeExports.jsx(O.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(B,{...n,ref:t}):a.jsxRuntimeExports.jsx(J,{...n,ref:t})})});M.displayName=v;var Z=E.createSlot("PopoverContent.RemoveScroll"),B=c.forwardRef((e,t)=>{const o=u(v,e.__scopePopover),r=c.useRef(null),n=E.useComposedRefs(t,r),s=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return h.hideOthers(i)},[]),a.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:Z,allowPinchZoom:!0,children:a.jsxRuntimeExports.jsx(T,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:f.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,x=p.button===0&&p.ctrlKey===!0,m=p.button===2||x;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:f.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),J=c.forwardRef((e,t)=>{const o=u(v,e.__scopePopover),r=c.useRef(!1),n=c.useRef(!1);return a.jsxRuntimeExports.jsx(T,{...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 i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=c.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onInteractOutside:g,...R}=e,d=u(v,o),j=P(o);return h.useFocusGuards(),a.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onDismiss:()=>d.onOpenChange(!1),children:a.jsxRuntimeExports.jsx(l.Content,{"data-state":q(d.open),role:"dialog",id:d.contentId,...j,...R,ref:t,style:{...R.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",Q=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=u(k,o);return a.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...r,ref:t,onClick:f.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});Q.displayName=k;var X="PopoverArrow",Y=c.forwardRef((e,t)=>{const{__scopePopover:o,...r}=e,n=P(o);return a.jsxRuntimeExports.jsx(l.Arrow,{...n,...r,ref:t})});Y.displayName=X;function q(e){return e?"open":"closed"}var ee=w,oe=S,te=F,re=D,ne=M;function se({...e}){return a.jsxRuntimeExports.jsx(ee,{"data-slot":"popover",...e})}function ae({...e}){return a.jsxRuntimeExports.jsx(te,{"data-slot":"popover-trigger",...e})}function ie({className:e,align:t="center",sideOffset:o=4,...r}){return a.jsxRuntimeExports.jsx(re,{children:a.jsxRuntimeExports.jsx(ne,{"data-slot":"popover-content",align:t,sideOffset:o,className:G.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-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-md adm:outline-hidden",e),...r})})}function ce({...e}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"popover-anchor",...e})}exports.Popover=se;exports.PopoverAnchor=ce;exports.PopoverContent=ie;exports.PopoverTrigger=ae;
@@ -0,0 +1,263 @@
1
+ import { j as s } from "./jsx-runtime-BzflLqGi.js";
2
+ import * as i from "react";
3
+ import { u as $, c as m } from "./index-C0UREtMP.js";
4
+ import { u as A, a as L } from "./index-6oTEokEx.js";
5
+ import { c as z } from "./index-FxyLF8MY.js";
6
+ import { D as G } from "./index-C329e3yQ.js";
7
+ import { h as H, R as K, u as U, F as V } from "./index-o0sNTcKe.js";
8
+ import { u as W } from "./index-Cv867SGx.js";
9
+ import { c as O, R as Z, A as _, C as q, a as B } from "./index-CAOY367Y.js";
10
+ import { P as J } from "./index-yR-v1A4G.js";
11
+ import { P as j } from "./index-EUea2gfp.js";
12
+ import { P as w } from "./index-C5wjudc-.js";
13
+ import { c as Q } from "./utils-CRiPKpXj.js";
14
+ var x = "Popover", [b] = z(x, [
15
+ O
16
+ ]), P = O(), [X, d] = b(x), E = (o) => {
17
+ const {
18
+ __scopePopover: n,
19
+ children: e,
20
+ open: a,
21
+ defaultOpen: t,
22
+ onOpenChange: r,
23
+ modal: c = !1
24
+ } = o, p = P(n), f = i.useRef(null), [v, g] = i.useState(!1), [h, u] = $({
25
+ prop: a,
26
+ defaultProp: t ?? !1,
27
+ onChange: r,
28
+ caller: x
29
+ });
30
+ return /* @__PURE__ */ s.jsx(Z, { ...p, children: /* @__PURE__ */ s.jsx(
31
+ X,
32
+ {
33
+ scope: n,
34
+ contentId: W(),
35
+ triggerRef: f,
36
+ open: h,
37
+ onOpenChange: u,
38
+ onOpenToggle: i.useCallback(() => u((C) => !C), [u]),
39
+ hasCustomAnchor: v,
40
+ onCustomAnchorAdd: i.useCallback(() => g(!0), []),
41
+ onCustomAnchorRemove: i.useCallback(() => g(!1), []),
42
+ modal: c,
43
+ children: e
44
+ }
45
+ ) });
46
+ };
47
+ E.displayName = x;
48
+ var F = "PopoverAnchor", N = i.forwardRef(
49
+ (o, n) => {
50
+ const { __scopePopover: e, ...a } = o, t = d(F, e), r = P(e), { onCustomAnchorAdd: c, onCustomAnchorRemove: p } = t;
51
+ return i.useEffect(() => (c(), () => p()), [c, p]), /* @__PURE__ */ s.jsx(_, { ...r, ...a, ref: n });
52
+ }
53
+ );
54
+ N.displayName = F;
55
+ var S = "PopoverTrigger", y = i.forwardRef(
56
+ (o, n) => {
57
+ const { __scopePopover: e, ...a } = o, t = d(S, e), r = P(e), c = A(n, t.triggerRef), p = /* @__PURE__ */ s.jsx(
58
+ w.button,
59
+ {
60
+ type: "button",
61
+ "aria-haspopup": "dialog",
62
+ "aria-expanded": t.open,
63
+ "aria-controls": t.contentId,
64
+ "data-state": I(t.open),
65
+ ...a,
66
+ ref: c,
67
+ onClick: m(o.onClick, t.onOpenToggle)
68
+ }
69
+ );
70
+ return t.hasCustomAnchor ? p : /* @__PURE__ */ s.jsx(_, { asChild: !0, ...r, children: p });
71
+ }
72
+ );
73
+ y.displayName = S;
74
+ var R = "PopoverPortal", [Y, oo] = b(R, {
75
+ forceMount: void 0
76
+ }), D = (o) => {
77
+ const { __scopePopover: n, forceMount: e, children: a, container: t } = o, r = d(R, n);
78
+ return /* @__PURE__ */ s.jsx(Y, { scope: n, forceMount: e, children: /* @__PURE__ */ s.jsx(j, { present: e || r.open, children: /* @__PURE__ */ s.jsx(J, { asChild: !0, container: t, children: a }) }) });
79
+ };
80
+ D.displayName = R;
81
+ var l = "PopoverContent", M = i.forwardRef(
82
+ (o, n) => {
83
+ const e = oo(l, o.__scopePopover), { forceMount: a = e.forceMount, ...t } = o, r = d(l, o.__scopePopover);
84
+ return /* @__PURE__ */ s.jsx(j, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s.jsx(to, { ...t, ref: n }) : /* @__PURE__ */ s.jsx(ro, { ...t, ref: n }) });
85
+ }
86
+ );
87
+ M.displayName = l;
88
+ var eo = L("PopoverContent.RemoveScroll"), to = i.forwardRef(
89
+ (o, n) => {
90
+ const e = d(l, o.__scopePopover), a = i.useRef(null), t = A(n, a), r = i.useRef(!1);
91
+ return i.useEffect(() => {
92
+ const c = a.current;
93
+ if (c) return H(c);
94
+ }, []), /* @__PURE__ */ s.jsx(K, { as: eo, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
95
+ T,
96
+ {
97
+ ...o,
98
+ ref: t,
99
+ trapFocus: e.open,
100
+ disableOutsidePointerEvents: !0,
101
+ onCloseAutoFocus: m(o.onCloseAutoFocus, (c) => {
102
+ c.preventDefault(), r.current || e.triggerRef.current?.focus();
103
+ }),
104
+ onPointerDownOutside: m(
105
+ o.onPointerDownOutside,
106
+ (c) => {
107
+ const p = c.detail.originalEvent, f = p.button === 0 && p.ctrlKey === !0, v = p.button === 2 || f;
108
+ r.current = v;
109
+ },
110
+ { checkForDefaultPrevented: !1 }
111
+ ),
112
+ onFocusOutside: m(
113
+ o.onFocusOutside,
114
+ (c) => c.preventDefault(),
115
+ { checkForDefaultPrevented: !1 }
116
+ )
117
+ }
118
+ ) });
119
+ }
120
+ ), ro = i.forwardRef(
121
+ (o, n) => {
122
+ const e = d(l, o.__scopePopover), a = i.useRef(!1), t = i.useRef(!1);
123
+ return /* @__PURE__ */ s.jsx(
124
+ T,
125
+ {
126
+ ...o,
127
+ ref: n,
128
+ trapFocus: !1,
129
+ disableOutsidePointerEvents: !1,
130
+ onCloseAutoFocus: (r) => {
131
+ o.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || e.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, t.current = !1;
132
+ },
133
+ onInteractOutside: (r) => {
134
+ o.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (t.current = !0));
135
+ const c = r.target;
136
+ e.triggerRef.current?.contains(c) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && t.current && r.preventDefault();
137
+ }
138
+ }
139
+ );
140
+ }
141
+ ), T = i.forwardRef(
142
+ (o, n) => {
143
+ const {
144
+ __scopePopover: e,
145
+ trapFocus: a,
146
+ onOpenAutoFocus: t,
147
+ onCloseAutoFocus: r,
148
+ disableOutsidePointerEvents: c,
149
+ onEscapeKeyDown: p,
150
+ onPointerDownOutside: f,
151
+ onFocusOutside: v,
152
+ onInteractOutside: g,
153
+ ...h
154
+ } = o, u = d(l, e), C = P(e);
155
+ return U(), /* @__PURE__ */ s.jsx(
156
+ V,
157
+ {
158
+ asChild: !0,
159
+ loop: !0,
160
+ trapped: a,
161
+ onMountAutoFocus: t,
162
+ onUnmountAutoFocus: r,
163
+ children: /* @__PURE__ */ s.jsx(
164
+ G,
165
+ {
166
+ asChild: !0,
167
+ disableOutsidePointerEvents: c,
168
+ onInteractOutside: g,
169
+ onEscapeKeyDown: p,
170
+ onPointerDownOutside: f,
171
+ onFocusOutside: v,
172
+ onDismiss: () => u.onOpenChange(!1),
173
+ children: /* @__PURE__ */ s.jsx(
174
+ q,
175
+ {
176
+ "data-state": I(u.open),
177
+ role: "dialog",
178
+ id: u.contentId,
179
+ ...C,
180
+ ...h,
181
+ ref: n,
182
+ style: {
183
+ ...h.style,
184
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
185
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
186
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
187
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
188
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
189
+ }
190
+ }
191
+ )
192
+ }
193
+ )
194
+ }
195
+ );
196
+ }
197
+ ), k = "PopoverClose", no = i.forwardRef(
198
+ (o, n) => {
199
+ const { __scopePopover: e, ...a } = o, t = d(k, e);
200
+ return /* @__PURE__ */ s.jsx(
201
+ w.button,
202
+ {
203
+ type: "button",
204
+ ...a,
205
+ ref: n,
206
+ onClick: m(o.onClick, () => t.onOpenChange(!1))
207
+ }
208
+ );
209
+ }
210
+ );
211
+ no.displayName = k;
212
+ var ao = "PopoverArrow", so = i.forwardRef(
213
+ (o, n) => {
214
+ const { __scopePopover: e, ...a } = o, t = P(e);
215
+ return /* @__PURE__ */ s.jsx(B, { ...t, ...a, ref: n });
216
+ }
217
+ );
218
+ so.displayName = ao;
219
+ function I(o) {
220
+ return o ? "open" : "closed";
221
+ }
222
+ var co = E, io = N, po = y, uo = D, lo = M;
223
+ function jo({
224
+ ...o
225
+ }) {
226
+ return /* @__PURE__ */ s.jsx(co, { "data-slot": "popover", ...o });
227
+ }
228
+ function wo({
229
+ ...o
230
+ }) {
231
+ return /* @__PURE__ */ s.jsx(po, { "data-slot": "popover-trigger", ...o });
232
+ }
233
+ function bo({
234
+ className: o,
235
+ align: n = "center",
236
+ sideOffset: e = 4,
237
+ ...a
238
+ }) {
239
+ return /* @__PURE__ */ s.jsx(uo, { children: /* @__PURE__ */ s.jsx(
240
+ lo,
241
+ {
242
+ "data-slot": "popover-content",
243
+ align: n,
244
+ sideOffset: e,
245
+ className: Q(
246
+ "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-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-md adm:outline-hidden",
247
+ o
248
+ ),
249
+ ...a
250
+ }
251
+ ) });
252
+ }
253
+ function Eo({
254
+ ...o
255
+ }) {
256
+ return /* @__PURE__ */ s.jsx(io, { "data-slot": "popover-anchor", ...o });
257
+ }
258
+ export {
259
+ jo as P,
260
+ wo as a,
261
+ bo as b,
262
+ Eo as c
263
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-BBXe2myL.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
@@ -0,0 +1,7 @@
1
+ import { P as e, c as a, b as p, a as P } from "./popover-DNiRNCdn.js";
2
+ export {
3
+ e as Popover,
4
+ a as PopoverAnchor,
5
+ p as PopoverContent,
6
+ P as PopoverTrigger
7
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-BB_1_6y_.cjs"),y=require("react"),h=require("./index-cwZN7ZY3.cjs"),f=require("./index-DQvx1rG_.cjs"),c=require("./utils-DoxiiusW.cjs"),g=require("./index-iAvn1gzj.cjs");function w(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const p=w(y);var l="Progress",d=100,[E]=h.createContextScope(l),[I,V]=E(l),x=p.forwardRef((e,r)=>{const{__scopeProgress:t,value:a=null,max:s,getValueLabel:N=_,...R}=e;(s||s===0)&&!m(s)&&console.error(O(`${s}`,"Progress"));const n=m(s)?s:d;a!==null&&!v(a,n)&&console.error(M(`${a}`,"Progress"));const o=v(a,n)?a:null,$=u(o)?N(o,n):void 0;return i.jsxRuntimeExports.jsx(I,{scope:t,value:o,max:n,children:i.jsxRuntimeExports.jsx(f.Primitive.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":u(o)?o:void 0,"aria-valuetext":$,role:"progressbar","data-state":j(o,n),"data-value":o??void 0,"data-max":n,...R,ref:r})})});x.displayName=l;var b="ProgressIndicator",P=p.forwardRef((e,r)=>{const{__scopeProgress:t,...a}=e,s=V(b,t);return i.jsxRuntimeExports.jsx(f.Primitive.div,{"data-state":j(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...a,ref:r})});P.displayName=b;function _(e,r){return`${Math.round(e/r*100)}%`}function j(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function u(e){return typeof e=="number"}function m(e){return u(e)&&!isNaN(e)&&e>0}function v(e,r){return u(e)&&!isNaN(e)&&e<=r&&e>=0}function O(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`}function M(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
2
+ - a positive number
3
+ - less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
4
+ - \`null\` or \`undefined\` if the progress is indeterminate.
5
+
6
+ Defaulting to \`null\`.`}var S=x,q=P;const D=g.cva("adm:relative adm:h-2 adm:w-full adm:overflow-hidden adm:rounded-full",{variants:{variant:{default:"adm:bg-primary/20",destructive:"adm:bg-destructive/20",success:"adm:bg-success/20",warning:"adm:bg-warning/20"}},defaultVariants:{variant:"default"}}),A=g.cva("adm:h-full adm:w-full adm:flex-1 adm:transition-all",{variants:{variant:{default:"adm:bg-primary",destructive:"adm:bg-destructive",success:"adm:bg-success",warning:"adm:bg-warning"}},defaultVariants:{variant:"default"}});function T({className:e,value:r,variant:t,...a}){return i.jsxRuntimeExports.jsx(S,{"data-slot":"progress",className:c.cn(D({variant:t}),e),...a,children:i.jsxRuntimeExports.jsx(q,{"data-slot":"progress-indicator",className:c.cn(A({variant:t})),style:{transform:`translateX(-${100-(r||0)}%)`}})})}exports.Progress=T;
@@ -0,0 +1,137 @@
1
+ import { j as i } from "./jsx-runtime-BzflLqGi.js";
2
+ import * as f from "react";
3
+ import { c as I } from "./index-FxyLF8MY.js";
4
+ import { P as p } from "./index-C5wjudc-.js";
5
+ import { c as m } from "./utils-CRiPKpXj.js";
6
+ import { c as g } from "./index-CQhYMnjT.js";
7
+ var u = "Progress", d = 100, [V] = I(u), [R, j] = V(u), x = f.forwardRef(
8
+ (a, r) => {
9
+ const {
10
+ __scopeProgress: n,
11
+ value: t = null,
12
+ max: e,
13
+ getValueLabel: h = y,
14
+ ...$
15
+ } = a;
16
+ (e || e === 0) && !c(e) && console.error(E(`${e}`, "Progress"));
17
+ const s = c(e) ? e : d;
18
+ t !== null && !v(t, s) && console.error(_(`${t}`, "Progress"));
19
+ const o = v(t, s) ? t : null, w = l(o) ? h(o, s) : void 0;
20
+ return /* @__PURE__ */ i.jsx(R, { scope: n, value: o, max: s, children: /* @__PURE__ */ i.jsx(
21
+ p.div,
22
+ {
23
+ "aria-valuemax": s,
24
+ "aria-valuemin": 0,
25
+ "aria-valuenow": l(o) ? o : void 0,
26
+ "aria-valuetext": w,
27
+ role: "progressbar",
28
+ "data-state": N(o, s),
29
+ "data-value": o ?? void 0,
30
+ "data-max": s,
31
+ ...$,
32
+ ref: r
33
+ }
34
+ ) });
35
+ }
36
+ );
37
+ x.displayName = u;
38
+ var P = "ProgressIndicator", b = f.forwardRef(
39
+ (a, r) => {
40
+ const { __scopeProgress: n, ...t } = a, e = j(P, n);
41
+ return /* @__PURE__ */ i.jsx(
42
+ p.div,
43
+ {
44
+ "data-state": N(e.value, e.max),
45
+ "data-value": e.value ?? void 0,
46
+ "data-max": e.max,
47
+ ...t,
48
+ ref: r
49
+ }
50
+ );
51
+ }
52
+ );
53
+ b.displayName = P;
54
+ function y(a, r) {
55
+ return `${Math.round(a / r * 100)}%`;
56
+ }
57
+ function N(a, r) {
58
+ return a == null ? "indeterminate" : a === r ? "complete" : "loading";
59
+ }
60
+ function l(a) {
61
+ return typeof a == "number";
62
+ }
63
+ function c(a) {
64
+ return l(a) && !isNaN(a) && a > 0;
65
+ }
66
+ function v(a, r) {
67
+ return l(a) && !isNaN(a) && a <= r && a >= 0;
68
+ }
69
+ function E(a, r) {
70
+ return `Invalid prop \`max\` of value \`${a}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
71
+ }
72
+ function _(a, r) {
73
+ return `Invalid prop \`value\` of value \`${a}\` supplied to \`${r}\`. The \`value\` prop must be:
74
+ - a positive number
75
+ - less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
76
+ - \`null\` or \`undefined\` if the progress is indeterminate.
77
+
78
+ Defaulting to \`null\`.`;
79
+ }
80
+ var M = x, A = b;
81
+ const C = g(
82
+ "adm:relative adm:h-2 adm:w-full adm:overflow-hidden adm:rounded-full",
83
+ {
84
+ variants: {
85
+ variant: {
86
+ default: "adm:bg-primary/20",
87
+ destructive: "adm:bg-destructive/20",
88
+ success: "adm:bg-success/20",
89
+ warning: "adm:bg-warning/20"
90
+ }
91
+ },
92
+ defaultVariants: {
93
+ variant: "default"
94
+ }
95
+ }
96
+ ), D = g(
97
+ "adm:h-full adm:w-full adm:flex-1 adm:transition-all",
98
+ {
99
+ variants: {
100
+ variant: {
101
+ default: "adm:bg-primary",
102
+ destructive: "adm:bg-destructive",
103
+ success: "adm:bg-success",
104
+ warning: "adm:bg-warning"
105
+ }
106
+ },
107
+ defaultVariants: {
108
+ variant: "default"
109
+ }
110
+ }
111
+ );
112
+ function X({
113
+ className: a,
114
+ value: r,
115
+ variant: n,
116
+ ...t
117
+ }) {
118
+ return /* @__PURE__ */ i.jsx(
119
+ M,
120
+ {
121
+ "data-slot": "progress",
122
+ className: m(C({ variant: n }), a),
123
+ ...t,
124
+ children: /* @__PURE__ */ i.jsx(
125
+ A,
126
+ {
127
+ "data-slot": "progress-indicator",
128
+ className: m(D({ variant: n })),
129
+ style: { transform: `translateX(-${100 - (r || 0)}%)` }
130
+ }
131
+ )
132
+ }
133
+ );
134
+ }
135
+ export {
136
+ X as Progress
137
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),F=require("react"),j=require("./index-BWaO7kQK.cjs"),h=require("./index-BKbK2GzY.cjs"),P=require("./index-cwZN7ZY3.cjs"),E=require("./index-DQvx1rG_.cjs"),g=require("./index-DnS_sBBe.cjs"),L=require("./index-D7hQvndv.cjs"),T=require("./index-bSPhqlcX.cjs"),B=require("./index-DYxWvftI.cjs"),z=require("./index-IKJMQref.cjs"),w=require("./utils-DoxiiusW.cjs"),K=require("./circle-CX7JIirj.cjs");function U(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const d=U(F);var C="Radio",[V,_]=P.createContextScope(C),[H,W]=V(C),k=d.forwardRef((e,r)=>{const{__scopeRadio:o,name:n,checked:t=!1,required:i,disabled:s,value:p="on",onCheck:m,form:f,...R}=e,[l,x]=d.useState(null),c=h.useComposedRefs(r,b=>x(b)),u=d.useRef(!1),v=l?f||!!l.closest("form"):!0;return a.jsxRuntimeExports.jsxs(H,{scope:o,checked:t,disabled:s,children:[a.jsxRuntimeExports.jsx(E.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":N(t),"data-disabled":s?"":void 0,disabled:s,value:p,...R,ref:c,onClick:j.composeEventHandlers(e.onClick,b=>{t||m?.(),v&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),v&&a.jsxRuntimeExports.jsx(G,{control:l,bubbles:!u.current,name:n,value:p,checked:t,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});k.displayName=C;var I="RadioIndicator",S=d.forwardRef((e,r)=>{const{__scopeRadio:o,forceMount:n,...t}=e,i=W(I,o);return a.jsxRuntimeExports.jsx(z.Presence,{present:n||i.checked,children:a.jsxRuntimeExports.jsx(E.Primitive.span,{"data-state":N(i.checked),"data-disabled":i.disabled?"":void 0,...t,ref:r})})});S.displayName=I;var X="RadioBubbleInput",G=d.forwardRef(({__scopeRadio:e,control:r,checked:o,bubbles:n=!0,...t},i)=>{const s=d.useRef(null),p=h.useComposedRefs(s,i),m=B.usePrevious(o),f=T.useSize(r);return d.useEffect(()=>{const R=s.current;if(!R)return;const l=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(l,"checked").set;if(m!==o&&c){const u=new Event("click",{bubbles:n});c.call(R,o),R.dispatchEvent(u)}},[m,o,n]),a.jsxRuntimeExports.jsx(E.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...t,tabIndex:-1,ref:p,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G.displayName=X;function N(e){return e?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[J]=P.createContextScope(y,[g.createRovingFocusGroupScope,_]),q=g.createRovingFocusGroupScope(),A=_(),[Q,Z]=J(y),O=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,name:n,defaultValue:t,value:i,required:s=!1,disabled:p=!1,orientation:m,dir:f,loop:R=!0,onValueChange:l,...x}=e,c=q(o),u=L.useDirection(f),[v,b]=j.useControllableState({prop:i,defaultProp:t??null,onChange:l,caller:y});return a.jsxRuntimeExports.jsx(Q,{scope:o,name:n,required:s,disabled:p,value:v,onValueChange:b,children:a.jsxRuntimeExports.jsx(g.Root,{asChild:!0,...c,orientation:m,dir:u,loop:R,children:a.jsxRuntimeExports.jsx(E.Primitive.div,{role:"radiogroup","aria-required":s,"aria-orientation":m,"data-disabled":p?"":void 0,dir:u,...x,ref:r})})})});O.displayName=y;var D="RadioGroupItem",M=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,disabled:n,...t}=e,i=Z(D,o),s=i.disabled||n,p=q(o),m=A(o),f=d.useRef(null),R=h.useComposedRefs(r,f),l=i.value===t.value,x=d.useRef(!1);return d.useEffect(()=>{const c=v=>{Y.includes(v.key)&&(x.current=!0)},u=()=>x.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",u)}},[]),a.jsxRuntimeExports.jsx(g.Item,{asChild:!0,...p,focusable:!s,active:l,children:a.jsxRuntimeExports.jsx(k,{disabled:s,required:i.required,checked:l,...m,...t,name:i.name,ref:R,onCheck:()=>i.onValueChange(t.value),onKeyDown:j.composeEventHandlers(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:j.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});M.displayName=D;var ee="RadioGroupIndicator",$=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,...n}=e,t=A(o);return a.jsxRuntimeExports.jsx(S,{...t,...n,ref:r})});$.displayName=ee;var oe=O,re=M,te=$;function ae({className:e,...r}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"radio-group",className:w.cn("adm:grid adm:gap-3",e),...r})}function ne({className:e,...r}){return a.jsxRuntimeExports.jsx(re,{"data-slot":"radio-group-item",className:w.cn("adm:border-input adm:text-primary adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:dark:bg-input/30 adm:aspect-square adm:size-5 adm:shrink-0 adm:rounded-full adm:border adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none adm:focus-visible:ring-[3px] adm:disabled:cursor-not-allowed adm:disabled:opacity-50",e),...r,children:a.jsxRuntimeExports.jsx(te,{"data-slot":"radio-group-indicator",className:"adm:relative adm:flex adm:items-center adm:justify-center",children:a.jsxRuntimeExports.jsx(K.Circle,{className:"adm:fill-primary adm:absolute adm:top-1/2 adm:left-1/2 adm:size-3 adm:-translate-x-1/2 adm:-translate-y-1/2"})})})}exports.RadioGroup=ae;exports.RadioGroupItem=ne;