lizaui 3.0.11

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 (348) hide show
  1. package/README.md +54 -0
  2. package/dist/button/index.cjs.js +2 -0
  3. package/dist/button/index.cjs.js.map +1 -0
  4. package/dist/button/index.es.js +5 -0
  5. package/dist/button/index.es.js.map +1 -0
  6. package/dist/button.d.ts +2 -0
  7. package/dist/calendar/index.cjs.js +425 -0
  8. package/dist/calendar/index.cjs.js.map +1 -0
  9. package/dist/calendar/index.es.js +6105 -0
  10. package/dist/calendar/index.es.js.map +1 -0
  11. package/dist/calendar.d.ts +2 -0
  12. package/dist/checkbox/index.cjs.js +2 -0
  13. package/dist/checkbox/index.cjs.js.map +1 -0
  14. package/dist/checkbox/index.es.js +6 -0
  15. package/dist/checkbox/index.es.js.map +1 -0
  16. package/dist/checkbox.d.ts +2 -0
  17. package/dist/chip/index.cjs.js +2 -0
  18. package/dist/chip/index.cjs.js.map +1 -0
  19. package/dist/chip/index.es.js +533 -0
  20. package/dist/chip/index.es.js.map +1 -0
  21. package/dist/chip.d.ts +2 -0
  22. package/dist/chunks/bundle-mjs-JiDEie86.js +2728 -0
  23. package/dist/chunks/bundle-mjs-JiDEie86.js.map +1 -0
  24. package/dist/chunks/bundle-mjs-W341Qwux.js +2 -0
  25. package/dist/chunks/bundle-mjs-W341Qwux.js.map +1 -0
  26. package/dist/chunks/button-CPpIQ7Z7.js +3971 -0
  27. package/dist/chunks/button-CPpIQ7Z7.js.map +1 -0
  28. package/dist/chunks/button-Dr5w6yIW.js +10 -0
  29. package/dist/chunks/button-Dr5w6yIW.js.map +1 -0
  30. package/dist/chunks/checkbox-C71XoTt2.js +2 -0
  31. package/dist/chunks/checkbox-C71XoTt2.js.map +1 -0
  32. package/dist/chunks/checkbox-DN309yjg.js +312 -0
  33. package/dist/chunks/checkbox-DN309yjg.js.map +1 -0
  34. package/dist/chunks/classes-7MXTIFwM.js +52 -0
  35. package/dist/chunks/classes-7MXTIFwM.js.map +1 -0
  36. package/dist/chunks/classes-P14wj2Ze.js +2 -0
  37. package/dist/chunks/classes-P14wj2Ze.js.map +1 -0
  38. package/dist/chunks/clsx-C11secjj.js +2 -0
  39. package/dist/chunks/clsx-C11secjj.js.map +1 -0
  40. package/dist/chunks/clsx-OuTLNxxd.js +17 -0
  41. package/dist/chunks/clsx-OuTLNxxd.js.map +1 -0
  42. package/dist/chunks/floating-ui.dom-9ZI0iiqa.js +2 -0
  43. package/dist/chunks/floating-ui.dom-9ZI0iiqa.js.map +1 -0
  44. package/dist/chunks/floating-ui.dom-PqoU7a4n.js +1134 -0
  45. package/dist/chunks/floating-ui.dom-PqoU7a4n.js.map +1 -0
  46. package/dist/chunks/floating-ui.react-dom-BQpCDpNU.js +2 -0
  47. package/dist/chunks/floating-ui.react-dom-BQpCDpNU.js.map +1 -0
  48. package/dist/chunks/floating-ui.react-dom-CihJ_dlB.js +204 -0
  49. package/dist/chunks/floating-ui.react-dom-CihJ_dlB.js.map +1 -0
  50. package/dist/chunks/iconBase-C4boY5mo.js +2 -0
  51. package/dist/chunks/iconBase-C4boY5mo.js.map +1 -0
  52. package/dist/chunks/iconBase-DSKTHwal.js +113 -0
  53. package/dist/chunks/iconBase-DSKTHwal.js.map +1 -0
  54. package/dist/chunks/index-CBDkd84T.js +2 -0
  55. package/dist/chunks/index-CBDkd84T.js.map +1 -0
  56. package/dist/chunks/index-C_b6-TON.js +78 -0
  57. package/dist/chunks/index-C_b6-TON.js.map +1 -0
  58. package/dist/chunks/jsx-runtime-BYq8_R6m.js +247 -0
  59. package/dist/chunks/jsx-runtime-BYq8_R6m.js.map +1 -0
  60. package/dist/chunks/jsx-runtime-DFswc9zO.js +2 -0
  61. package/dist/chunks/jsx-runtime-DFswc9zO.js.map +1 -0
  62. package/dist/chunks/pattern-CdQavADx.js +5 -0
  63. package/dist/chunks/pattern-CdQavADx.js.map +1 -0
  64. package/dist/chunks/pattern-F8jUniwt.js +2 -0
  65. package/dist/chunks/pattern-F8jUniwt.js.map +1 -0
  66. package/dist/chunks/refs-DLih6QCP.js +2 -0
  67. package/dist/chunks/refs-DLih6QCP.js.map +1 -0
  68. package/dist/chunks/refs-DcCOPvdv.js +35 -0
  69. package/dist/chunks/refs-DcCOPvdv.js.map +1 -0
  70. package/dist/chunks/select-BoiIj-gw.js +7 -0
  71. package/dist/chunks/select-BoiIj-gw.js.map +1 -0
  72. package/dist/chunks/select-Cy78fn6H.js +4267 -0
  73. package/dist/chunks/select-Cy78fn6H.js.map +1 -0
  74. package/dist/chunks/tooltip-BQVohLC7.js +2 -0
  75. package/dist/chunks/tooltip-BQVohLC7.js.map +1 -0
  76. package/dist/chunks/tooltip-CIcTjpF8.js +959 -0
  77. package/dist/chunks/tooltip-CIcTjpF8.js.map +1 -0
  78. package/dist/chunks/tv-ButAo3dF.js +2669 -0
  79. package/dist/chunks/tv-ButAo3dF.js.map +1 -0
  80. package/dist/chunks/tv-C5lw0tnu.js +2 -0
  81. package/dist/chunks/tv-C5lw0tnu.js.map +1 -0
  82. package/dist/chunks/utils-Blo0iNdk.js +15 -0
  83. package/dist/chunks/utils-Blo0iNdk.js.map +1 -0
  84. package/dist/chunks/utils-DuSyQWep.js +2 -0
  85. package/dist/chunks/utils-DuSyQWep.js.map +1 -0
  86. package/dist/chunks/v4-CRLUkzQ6.js +31 -0
  87. package/dist/chunks/v4-CRLUkzQ6.js.map +1 -0
  88. package/dist/chunks/v4-CqU37_Sa.js +2 -0
  89. package/dist/chunks/v4-CqU37_Sa.js.map +1 -0
  90. package/dist/chunks/variants-BUTPDD09.js +2 -0
  91. package/dist/chunks/variants-BUTPDD09.js.map +1 -0
  92. package/dist/chunks/variants-DhZQjbsQ.js +62 -0
  93. package/dist/chunks/variants-DhZQjbsQ.js.map +1 -0
  94. package/dist/components/button/button.d.ts +6 -0
  95. package/dist/components/button/button.d.ts.map +1 -0
  96. package/dist/components/button/index.d.ts +4 -0
  97. package/dist/components/button/index.d.ts.map +1 -0
  98. package/dist/components/button/spinner.d.ts +3 -0
  99. package/dist/components/button/spinner.d.ts.map +1 -0
  100. package/dist/components/button/use-button.d.ts +328 -0
  101. package/dist/components/button/use-button.d.ts.map +1 -0
  102. package/dist/components/calendar/date-picker/date-picker.d.ts +3 -0
  103. package/dist/components/calendar/date-picker/date-picker.d.ts.map +1 -0
  104. package/dist/components/calendar/date-picker/date-picker.style.d.ts +9 -0
  105. package/dist/components/calendar/date-picker/date-picker.style.d.ts.map +1 -0
  106. package/dist/components/calendar/date-picker/interface/date-picker.interface.d.ts +38 -0
  107. package/dist/components/calendar/date-picker/interface/date-picker.interface.d.ts.map +1 -0
  108. package/dist/components/calendar/icon/icon-calendar.d.ts +11 -0
  109. package/dist/components/calendar/icon/icon-calendar.d.ts.map +1 -0
  110. package/dist/components/calendar/index.d.ts +2 -0
  111. package/dist/components/calendar/index.d.ts.map +1 -0
  112. package/dist/components/calendar/interface/calendar-shared.interface.d.ts +4 -0
  113. package/dist/components/calendar/interface/calendar-shared.interface.d.ts.map +1 -0
  114. package/dist/components/checkbox/checkbox-icon.d.ts +9 -0
  115. package/dist/components/checkbox/checkbox-icon.d.ts.map +1 -0
  116. package/dist/components/checkbox/checkbox.d.ts +7 -0
  117. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  118. package/dist/components/checkbox/index.d.ts +5 -0
  119. package/dist/components/checkbox/index.d.ts.map +1 -0
  120. package/dist/components/checkbox/use-checkbox.d.ts +57 -0
  121. package/dist/components/checkbox/use-checkbox.d.ts.map +1 -0
  122. package/dist/components/chip/chip.d.ts +6 -0
  123. package/dist/components/chip/chip.d.ts.map +1 -0
  124. package/dist/components/chip/index.d.ts +4 -0
  125. package/dist/components/chip/index.d.ts.map +1 -0
  126. package/dist/components/chip/use-chip.d.ts +441 -0
  127. package/dist/components/chip/use-chip.d.ts.map +1 -0
  128. package/dist/components/divider/divider.d.ts +6 -0
  129. package/dist/components/divider/divider.d.ts.map +1 -0
  130. package/dist/components/divider/index.d.ts +4 -0
  131. package/dist/components/divider/index.d.ts.map +1 -0
  132. package/dist/components/divider/use-divider.d.ts +19 -0
  133. package/dist/components/divider/use-divider.d.ts.map +1 -0
  134. package/dist/components/divider/use-separator.d.ts +22 -0
  135. package/dist/components/divider/use-separator.d.ts.map +1 -0
  136. package/dist/components/icons/close-filled.d.ts +3 -0
  137. package/dist/components/icons/close-filled.d.ts.map +1 -0
  138. package/dist/components/index.d.ts +5 -0
  139. package/dist/components/index.d.ts.map +1 -0
  140. package/dist/components/pagination/function/index.d.ts +7 -0
  141. package/dist/components/pagination/function/index.d.ts.map +1 -0
  142. package/dist/components/pagination/hook/use-pagination.d.ts +3 -0
  143. package/dist/components/pagination/hook/use-pagination.d.ts.map +1 -0
  144. package/dist/components/pagination/index.d.ts +4 -0
  145. package/dist/components/pagination/index.d.ts.map +1 -0
  146. package/dist/components/pagination/interface/pagination-share.interface.d.ts +10 -0
  147. package/dist/components/pagination/interface/pagination-share.interface.d.ts.map +1 -0
  148. package/dist/components/pagination/interface/pagination.interface.d.ts +26 -0
  149. package/dist/components/pagination/interface/pagination.interface.d.ts.map +1 -0
  150. package/dist/components/pagination/pagination-item.d.ts +3 -0
  151. package/dist/components/pagination/pagination-item.d.ts.map +1 -0
  152. package/dist/components/pagination/pagination.d.ts +3 -0
  153. package/dist/components/pagination/pagination.d.ts.map +1 -0
  154. package/dist/components/ripple/ripple.d.ts +20 -0
  155. package/dist/components/ripple/ripple.d.ts.map +1 -0
  156. package/dist/components/ripple/use-ripple.d.ts +10 -0
  157. package/dist/components/ripple/use-ripple.d.ts.map +1 -0
  158. package/dist/components/select/autocomplete/autocomplete.d.ts +3 -0
  159. package/dist/components/select/autocomplete/autocomplete.d.ts.map +1 -0
  160. package/dist/components/select/index.d.ts +3 -0
  161. package/dist/components/select/index.d.ts.map +1 -0
  162. package/dist/components/select/select.d.ts +3 -0
  163. package/dist/components/select/select.d.ts.map +1 -0
  164. package/dist/components/select/style/select-theme.style.d.ts +4 -0
  165. package/dist/components/select/style/select-theme.style.d.ts.map +1 -0
  166. package/dist/components/select/sub-component/clear-indicator.d.ts +3 -0
  167. package/dist/components/select/sub-component/clear-indicator.d.ts.map +1 -0
  168. package/dist/components/select/sub-component/control-start.d.ts +3 -0
  169. package/dist/components/select/sub-component/control-start.d.ts.map +1 -0
  170. package/dist/components/select/sub-component/dropdown-indicator.d.ts +3 -0
  171. package/dist/components/select/sub-component/dropdown-indicator.d.ts.map +1 -0
  172. package/dist/components/select/sub-component/index.d.ts +9 -0
  173. package/dist/components/select/sub-component/index.d.ts.map +1 -0
  174. package/dist/components/select/sub-component/input-select.d.ts +3 -0
  175. package/dist/components/select/sub-component/input-select.d.ts.map +1 -0
  176. package/dist/components/select/sub-component/loading-indicator.d.ts +3 -0
  177. package/dist/components/select/sub-component/loading-indicator.d.ts.map +1 -0
  178. package/dist/components/select/sub-component/loading-message.d.ts +3 -0
  179. package/dist/components/select/sub-component/loading-message.d.ts.map +1 -0
  180. package/dist/components/select/sub-component/no-option-message.d.ts +3 -0
  181. package/dist/components/select/sub-component/no-option-message.d.ts.map +1 -0
  182. package/dist/components/select/sub-component/option-item.d.ts +3 -0
  183. package/dist/components/select/sub-component/option-item.d.ts.map +1 -0
  184. package/dist/components/select/sub-component/single-value.d.ts +3 -0
  185. package/dist/components/select/sub-component/single-value.d.ts.map +1 -0
  186. package/dist/components/table/body/table-body-column.d.ts +4 -0
  187. package/dist/components/table/body/table-body-column.d.ts.map +1 -0
  188. package/dist/components/table/body/table-body-row.d.ts +3 -0
  189. package/dist/components/table/body/table-body-row.d.ts.map +1 -0
  190. package/dist/components/table/body/table-body.d.ts +4 -0
  191. package/dist/components/table/body/table-body.d.ts.map +1 -0
  192. package/dist/components/table/context/table.context.d.ts +3 -0
  193. package/dist/components/table/context/table.context.d.ts.map +1 -0
  194. package/dist/components/table/header/table-header-column.d.ts +4 -0
  195. package/dist/components/table/header/table-header-column.d.ts.map +1 -0
  196. package/dist/components/table/header/table-header-row.d.ts +4 -0
  197. package/dist/components/table/header/table-header-row.d.ts.map +1 -0
  198. package/dist/components/table/header/table-header.d.ts +4 -0
  199. package/dist/components/table/header/table-header.d.ts.map +1 -0
  200. package/dist/components/table/hook/use-table-context.d.ts +2 -0
  201. package/dist/components/table/hook/use-table-context.d.ts.map +1 -0
  202. package/dist/components/table/hook/use-table.d.ts +10 -0
  203. package/dist/components/table/hook/use-table.d.ts.map +1 -0
  204. package/dist/components/table/index.d.ts +4 -0
  205. package/dist/components/table/index.d.ts.map +1 -0
  206. package/dist/components/table/interface/table-share.interface.d.ts +9 -0
  207. package/dist/components/table/interface/table-share.interface.d.ts.map +1 -0
  208. package/dist/components/table/interface/table.interface.d.ts +115 -0
  209. package/dist/components/table/interface/table.interface.d.ts.map +1 -0
  210. package/dist/components/table/search/table-search-column.d.ts +4 -0
  211. package/dist/components/table/search/table-search-column.d.ts.map +1 -0
  212. package/dist/components/table/search/table-search-row.d.ts +4 -0
  213. package/dist/components/table/search/table-search-row.d.ts.map +1 -0
  214. package/dist/components/table/table.d.ts +4 -0
  215. package/dist/components/table/table.d.ts.map +1 -0
  216. package/dist/components/tooltip/index.d.ts +2 -0
  217. package/dist/components/tooltip/index.d.ts.map +1 -0
  218. package/dist/components/tooltip/tooltip.d.ts +11 -0
  219. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  220. package/dist/components/ui/accordion.d.ts +8 -0
  221. package/dist/components/ui/accordion.d.ts.map +1 -0
  222. package/dist/components/ui/alert-dialog.d.ts +15 -0
  223. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  224. package/dist/components/ui/avatar.d.ts +13 -0
  225. package/dist/components/ui/avatar.d.ts.map +1 -0
  226. package/dist/components/ui/badge.d.ts +218 -0
  227. package/dist/components/ui/badge.d.ts.map +1 -0
  228. package/dist/components/ui/card.d.ts +10 -0
  229. package/dist/components/ui/card.d.ts.map +1 -0
  230. package/dist/components/ui/command.d.ts +19 -0
  231. package/dist/components/ui/command.d.ts.map +1 -0
  232. package/dist/components/ui/confirmation.d.ts +17 -0
  233. package/dist/components/ui/confirmation.d.ts.map +1 -0
  234. package/dist/components/ui/dialog.d.ts +16 -0
  235. package/dist/components/ui/dialog.d.ts.map +1 -0
  236. package/dist/components/ui/dropdown-menu.d.ts +26 -0
  237. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  238. package/dist/components/ui/index.d.ts +21 -0
  239. package/dist/components/ui/index.d.ts.map +1 -0
  240. package/dist/components/ui/input-otp.d.ts +12 -0
  241. package/dist/components/ui/input-otp.d.ts.map +1 -0
  242. package/dist/components/ui/input.d.ts +42 -0
  243. package/dist/components/ui/input.d.ts.map +1 -0
  244. package/dist/components/ui/label-error.d.ts +16 -0
  245. package/dist/components/ui/label-error.d.ts.map +1 -0
  246. package/dist/components/ui/label.d.ts +5 -0
  247. package/dist/components/ui/label.d.ts.map +1 -0
  248. package/dist/components/ui/menubar.d.ts +27 -0
  249. package/dist/components/ui/menubar.d.ts.map +1 -0
  250. package/dist/components/ui/modal.d.ts +16 -0
  251. package/dist/components/ui/modal.d.ts.map +1 -0
  252. package/dist/components/ui/navigation-menu.d.ts +15 -0
  253. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  254. package/dist/components/ui/popover.d.ts +8 -0
  255. package/dist/components/ui/popover.d.ts.map +1 -0
  256. package/dist/components/ui/resizable.d.ts +9 -0
  257. package/dist/components/ui/resizable.d.ts.map +1 -0
  258. package/dist/components/ui/skeleton.d.ts +3 -0
  259. package/dist/components/ui/skeleton.d.ts.map +1 -0
  260. package/dist/components/ui/switch.d.ts +13 -0
  261. package/dist/components/ui/switch.d.ts.map +1 -0
  262. package/dist/components/ui/tabs.d.ts +8 -0
  263. package/dist/components/ui/tabs.d.ts.map +1 -0
  264. package/dist/divider/index.cjs.js +2 -0
  265. package/dist/divider/index.cjs.js.map +1 -0
  266. package/dist/divider/index.es.js +67 -0
  267. package/dist/divider/index.es.js.map +1 -0
  268. package/dist/divider.d.ts +2 -0
  269. package/dist/functions/assertion.d.ts +14 -0
  270. package/dist/functions/assertion.d.ts.map +1 -0
  271. package/dist/functions/index.d.ts +5 -0
  272. package/dist/functions/index.d.ts.map +1 -0
  273. package/dist/functions/numbers.d.ts +20 -0
  274. package/dist/functions/numbers.d.ts.map +1 -0
  275. package/dist/functions/pattern.d.ts +3 -0
  276. package/dist/functions/pattern.d.ts.map +1 -0
  277. package/dist/functions/refs.d.ts +20 -0
  278. package/dist/functions/refs.d.ts.map +1 -0
  279. package/dist/hooks/use-confirmation.d.ts +21 -0
  280. package/dist/hooks/use-confirmation.d.ts.map +1 -0
  281. package/dist/hooks/use-modal.d.ts +15 -0
  282. package/dist/hooks/use-modal.d.ts.map +1 -0
  283. package/dist/index.cjs.js +2 -0
  284. package/dist/index.cjs.js.map +1 -0
  285. package/dist/index.d.ts +2 -0
  286. package/dist/index.es.js +386 -0
  287. package/dist/index.es.js.map +1 -0
  288. package/dist/lib/tv.d.ts +21 -0
  289. package/dist/lib/tv.d.ts.map +1 -0
  290. package/dist/lib/utils.d.ts +3 -0
  291. package/dist/lib/utils.d.ts.map +1 -0
  292. package/dist/lizaui.css +1 -0
  293. package/dist/pagination/index.cjs.js +2 -0
  294. package/dist/pagination/index.cjs.js.map +1 -0
  295. package/dist/pagination/index.es.js +170 -0
  296. package/dist/pagination/index.es.js.map +1 -0
  297. package/dist/pagination.d.ts +2 -0
  298. package/dist/select/index.cjs.js +2 -0
  299. package/dist/select/index.cjs.js.map +1 -0
  300. package/dist/select/index.es.js +226 -0
  301. package/dist/select/index.es.js.map +1 -0
  302. package/dist/select.d.ts +2 -0
  303. package/dist/table/index.cjs.js +2 -0
  304. package/dist/table/index.cjs.js.map +1 -0
  305. package/dist/table/index.es.js +233 -0
  306. package/dist/table/index.es.js.map +1 -0
  307. package/dist/table.d.ts +2 -0
  308. package/dist/theme/classes.d.ts +34 -0
  309. package/dist/theme/classes.d.ts.map +1 -0
  310. package/dist/theme/color/button.d.ts +162 -0
  311. package/dist/theme/color/button.d.ts.map +1 -0
  312. package/dist/theme/color/checkbox.d.ts +289 -0
  313. package/dist/theme/color/checkbox.d.ts.map +1 -0
  314. package/dist/theme/color/chip.d.ts +321 -0
  315. package/dist/theme/color/chip.d.ts.map +1 -0
  316. package/dist/theme/color/divider.d.ts +29 -0
  317. package/dist/theme/color/divider.d.ts.map +1 -0
  318. package/dist/theme/index.d.ts +3 -0
  319. package/dist/theme/index.d.ts.map +1 -0
  320. package/dist/theme/variants.d.ts +66 -0
  321. package/dist/theme/variants.d.ts.map +1 -0
  322. package/dist/tooltip/index.cjs.js +2 -0
  323. package/dist/tooltip/index.cjs.js.map +1 -0
  324. package/dist/tooltip/index.es.js +5 -0
  325. package/dist/tooltip/index.es.js.map +1 -0
  326. package/dist/tooltip.d.ts +2 -0
  327. package/dist/types/checkbox.type.d.ts +89 -0
  328. package/dist/types/checkbox.type.d.ts.map +1 -0
  329. package/dist/types/global.d.ts +5 -0
  330. package/dist/types/global.d.ts.map +1 -0
  331. package/dist/types/icon.type.d.ts +3 -0
  332. package/dist/types/icon.type.d.ts.map +1 -0
  333. package/dist/types/index.d.ts +8 -0
  334. package/dist/types/index.d.ts.map +1 -0
  335. package/dist/types/select/select-main.type.d.ts +139 -0
  336. package/dist/types/select/select-main.type.d.ts.map +1 -0
  337. package/dist/types/select/select.type.d.ts +8 -0
  338. package/dist/types/select/select.type.d.ts.map +1 -0
  339. package/dist/types/switch.type.d.ts +78 -0
  340. package/dist/types/switch.type.d.ts.map +1 -0
  341. package/dist/types/theme.d.ts +8 -0
  342. package/dist/types/theme.d.ts.map +1 -0
  343. package/dist/ui/index.cjs.js +71 -0
  344. package/dist/ui/index.cjs.js.map +1 -0
  345. package/dist/ui/index.es.js +8189 -0
  346. package/dist/ui/index.es.js.map +1 -0
  347. package/dist/ui.d.ts +2 -0
  348. package/package.json +135 -0
@@ -0,0 +1,2 @@
1
+ "use strict";const n=require("./jsx-runtime-DFswc9zO.js"),d=require("react"),E=require("./index-CBDkd84T.js"),A=require("./tv-C5lw0tnu.js"),j=require("./classes-P14wj2Ze.js"),g=require("./refs-DLih6QCP.js"),q=require("./clsx-C11secjj.js"),B=A.tv({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...j.groupDataFocusVisibleClasses],hiddenInput:j.hiddenInputClasses,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},disabled:{true:{base:"opacity-80 pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",disabled:!1,lineThrough:!1}});function W(r){const{id:t,classNames:e,className:a,icon:x,children:f,disabled:o,required:w,readOnly:u,defaultChecked:c,checked:s,error:p,touched:m,onChange:i,isIndeterminate:b=!1}=r,v=d.useRef(null),C=d.useId(),R=t||C,[h]=d.useMemo(()=>[typeof s=="boolean"?s:c||!1,()=>{}],[s,c]),P=d.useCallback(y=>{if(u||o){y.preventDefault();return}i==null||i(y)},[i,u,o]),l=d.useMemo(()=>B({color:r.color,size:r.size,radius:r.radius,lineThrough:r.lineThrough,disabled:o,isInvalid:!!p&&m,disableAnimation:r.disableAnimation}),[r,o,p,m]);return{Component:"label",icon:x,children:f,isSelected:h,isIndeterminate:b,getBaseProps:()=>({className:l.base({class:q.clsx(e==null?void 0:e.base,a)}),"data-disabled":g.dataAttr(o),"data-selected":g.dataAttr(h||b)}),getWrapperProps:()=>({"aria-hidden":!0,className:l.wrapper({class:e==null?void 0:e.wrapper}),"data-selected":g.dataAttr(h||b)}),getInputProps:()=>({ref:g.mergeRefs(v,r.ref),type:"checkbox",id:R,defaultChecked:s===void 0?c:void 0,checked:s!==void 0?s:void 0,disabled:o,required:w,readOnly:u,onChange:P,className:l.hiddenInput({class:e==null?void 0:e.hiddenInput})}),getLabelProps:()=>({htmlFor:R,className:l.label({class:e==null?void 0:e.label})}),getIconProps:()=>({isSelected:h,isIndeterminate:b,disableAnimation:r.disableAnimation,className:l.icon({class:e==null?void 0:e.icon})})}}function z(r){const{isSelected:t,disableAnimation:e,...a}=r;return n.jsxRuntimeExports.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!e&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...a,children:n.jsxRuntimeExports.jsx("polyline",{points:"1 9 7 14 15 4"})})}function L(r){const{isSelected:t,disableAnimation:e,...a}=r;return n.jsxRuntimeExports.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...a,children:n.jsxRuntimeExports.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function k(r){const{isIndeterminate:t,...e}=r,a=t?L:z;return n.jsxRuntimeExports.jsx(a,{...e})}const I=d.forwardRef((r,t)=>{const{asChild:e=!1,...a}=r,{Component:x,children:f,icon:o=n.jsxRuntimeExports.jsx(k,{}),getBaseProps:w,getWrapperProps:u,getInputProps:c,getIconProps:s,getLabelProps:p}=W({...a,ref:t}),m=typeof o=="function"?o(s()):d.cloneElement(o,s()),i=e?E.Slot:x;return n.jsxRuntimeExports.jsxs(i,{...w(),children:[n.jsxRuntimeExports.jsx("input",{...c(),ref:t}),n.jsxRuntimeExports.jsx("span",{...u(),children:m}),f&&n.jsxRuntimeExports.jsx("span",{...p(),children:f})]})});I.displayName="Custom.Checkbox";exports.Checkbox=I;exports.CheckboxIcon=k;
2
+ //# sourceMappingURL=checkbox-C71XoTt2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-C71XoTt2.js","sources":["../../src/theme/color/checkbox.ts","../../src/components/checkbox/use-checkbox.ts","../../src/components/checkbox/checkbox-icon.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import { tv } from \"@/lib/tv\";\nimport type { VariantProps } from \"tailwind-variants\";\nimport { groupDataFocusVisibleClasses, hiddenInputClasses } from \"../classes\";\n\n/**\n * Checkbox wrapper **Tailwind Variants** component\n *\n * const {base, wrapper, icon, label} = checkbox({...})\n *\n * @example\n * <label className={base())}>\n * // hidden input\n * <span className={wrapper()} aria-hidden=\"true\" data-selected={selected}>\n * <svg className={icon()}>\n * // check icon\n * </svg>\n * </span>\n * <span className={label()}>Label</span>\n * </label>\n */\nconst checkbox = tv({\n\tslots: {\n\t\tbase: \"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none\",\n\t\twrapper: [\n\t\t\t\"relative\",\n\t\t\t\"inline-flex\",\n\t\t\t\"items-center\",\n\t\t\t\"justify-center\",\n\t\t\t\"flex-shrink-0\",\n\t\t\t\"overflow-hidden\",\n\t\t\t// before\n\t\t\t\"before:content-['']\",\n\t\t\t\"before:absolute\",\n\t\t\t\"before:inset-0\",\n\t\t\t\"before:border-solid\",\n\t\t\t\"before:border-2\",\n\t\t\t\"before:box-border\",\n\t\t\t\"before:border-default\",\n\t\t\t// after\n\t\t\t\"after:content-['']\",\n\t\t\t\"after:absolute\",\n\t\t\t\"after:inset-0\",\n\t\t\t\"after:scale-50\",\n\t\t\t\"after:opacity-0\",\n\t\t\t\"after:origin-center\",\n\t\t\t\"group-data-[selected=true]:after:scale-100\",\n\t\t\t\"group-data-[selected=true]:after:opacity-100\",\n\t\t\t// hover\n\t\t\t\"group-data-[hover=true]:before:bg-default-100\",\n\t\t\t// focus ring\n\t\t\t...groupDataFocusVisibleClasses,\n\t\t],\n\t\thiddenInput: hiddenInputClasses,\n\t\ticon: \"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none\",\n\t\tlabel: \"relative text-foreground select-none\",\n\t},\n\tvariants: {\n\t\tcolor: {\n\t\t\tdefault: {\n\t\t\t\twrapper: \"after:bg-default after:text-default-foreground text-default-foreground\",\n\t\t\t},\n\t\t\tprimary: {\n\t\t\t\twrapper: \"after:bg-primary after:text-primary-foreground text-primary-foreground\",\n\t\t\t},\n\t\t\tsecondary: {\n\t\t\t\twrapper: \"after:bg-secondary after:text-secondary-foreground text-secondary-foreground\",\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\twrapper: \"after:bg-success after:text-success-foreground text-success-foreground\",\n\t\t\t},\n\t\t\twarning: {\n\t\t\t\twrapper: \"after:bg-warning after:text-warning-foreground text-warning-foreground\",\n\t\t\t},\n\t\t\tdanger: {\n\t\t\t\twrapper: \"after:bg-danger after:text-danger-foreground text-danger-foreground\",\n\t\t\t},\n\t\t},\n\t\tsize: {\n\t\t\tsm: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"w-4 h-4 me-2\",\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t],\n\t\t\t\tlabel: \"text-small\",\n\t\t\t\ticon: \"w-3 h-2\",\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"w-5 h-5 me-2\",\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t],\n\t\t\t\tlabel: \"text-medium\",\n\t\t\t\ticon: \"w-4 h-3\",\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"w-6 h-6 me-2\",\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t],\n\t\t\t\tlabel: \"text-large\",\n\t\t\t\ticon: \"w-5 h-4\",\n\t\t\t},\n\t\t},\n\t\tradius: {\n\t\t\tnone: {\n\t\t\t\twrapper: \"rounded-none before:rounded-none after:rounded-none\",\n\t\t\t},\n\t\t\tsm: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tfull: {\n\t\t\t\twrapper: \"rounded-full before:rounded-full after:rounded-full\",\n\t\t\t},\n\t\t},\n\t\tlineThrough: {\n\t\t\ttrue: {\n\t\t\t\tlabel: [\n\t\t\t\t\t\"inline-flex\",\n\t\t\t\t\t\"items-center\",\n\t\t\t\t\t\"justify-center\",\n\t\t\t\t\t\"before:content-['']\",\n\t\t\t\t\t\"before:absolute\",\n\t\t\t\t\t\"before:bg-foreground\",\n\t\t\t\t\t\"before:w-0\",\n\t\t\t\t\t\"before:h-0.5\",\n\t\t\t\t\t\"group-data-[selected=true]:opacity-60\",\n\t\t\t\t\t\"group-data-[selected=true]:before:w-full\",\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\tdisabled: {\n\t\t\ttrue: {\n\t\t\t\tbase: \"opacity-80 pointer-events-none\",\n\t\t\t},\n\t\t},\n\t\tisInvalid: {\n\t\t\ttrue: {\n\t\t\t\twrapper: \"before:border-danger\",\n\t\t\t\tlabel: \"text-danger\",\n\t\t\t},\n\t\t},\n\t\tdisableAnimation: {\n\t\t\ttrue: {\n\t\t\t\twrapper: \"transition-none\",\n\t\t\t\ticon: \"transition-none\",\n\t\t\t\tlabel: \"transition-none\",\n\t\t\t},\n\t\t\tfalse: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"before:transition-colors\",\n\t\t\t\t\t\"group-data-[pressed=true]:scale-95\",\n\t\t\t\t\t\"transition-transform\",\n\t\t\t\t\t\"after:transition-transform-opacity\",\n\t\t\t\t\t\"after:!ease-linear\",\n\t\t\t\t\t\"after:!duration-200\",\n\t\t\t\t\t\"motion-reduce:transition-none\",\n\t\t\t\t],\n\t\t\t\ticon: \"transition-opacity motion-reduce:transition-none\",\n\t\t\t\tlabel: \"transition-colors-opacity before:transition-width motion-reduce:transition-none\",\n\t\t\t},\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tcolor: \"primary\",\n\t\tsize: \"md\",\n\t\tdisabled: false,\n\t\tlineThrough: false,\n\t},\n});\n\nexport type CheckboxVariantProps = VariantProps<typeof checkbox>;\nexport type CheckboxSlots = keyof ReturnType<typeof checkbox>;\n\nexport { checkbox };\n","import { useCallback, useId, useMemo, useRef, type ChangeEvent } from \"react\";\r\n\r\nimport { checkbox, type CheckboxSlots, type CheckboxVariantProps } from \"@/theme/color/checkbox\";\r\nimport type { SlotsToClasses } from \"@/types\";\r\nimport { dataAttr, mergeRefs } from \"@/functions\";\r\nimport clsx from \"clsx\";\r\n\r\nexport interface UseCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof CheckboxVariantProps>, CheckboxVariantProps {\r\n\tclassNames?: SlotsToClasses<CheckboxSlots>;\r\n\tclassName?: string;\r\n\ticon?: React.ReactNode | ((props: CheckboxIconProps) => React.ReactNode);\r\n\tchildren?: React.ReactNode;\r\n\tisIndeterminate?: boolean;\r\n\tref?: React.Ref<HTMLInputElement>;\r\n\terror?: string;\r\n\ttouched?: boolean;\r\n\trequired?: boolean;\r\n}\r\n\r\nexport interface CheckboxIconProps {\r\n\tid?: string;\r\n\tisSelected: boolean;\r\n\tisIndeterminate?: boolean;\r\n\tdisableAnimation?: boolean;\r\n\tclassName?: string;\r\n}\r\n\r\nexport function useCheckbox(props: UseCheckboxProps) {\r\n\tconst {\r\n\t\tid,\r\n\t\tclassNames,\r\n\t\tclassName,\r\n\t\ticon,\r\n\t\tchildren,\r\n\t\tdisabled,\r\n\t\trequired,\r\n\t\treadOnly,\r\n\t\tdefaultChecked,\r\n\t\tchecked,\r\n\t\terror,\r\n\t\ttouched,\r\n\t\tonChange,\r\n\t\tisIndeterminate = false,\r\n\t} = props;\r\n\r\n\tconst internalRef = useRef<HTMLInputElement>(null);\r\n\tconst inputId = useId();\r\n\tconst resolvedId = id || inputId;\r\n\r\n\tconst [isSelected] = useMemo(() => {\r\n\t\treturn [typeof checked === \"boolean\" ? checked : defaultChecked || false, () => {}];\r\n\t}, [checked, defaultChecked]);\r\n\r\n\tconst handleChange = useCallback(\r\n\t\t(e: ChangeEvent<HTMLInputElement>) => {\r\n\t\t\tif (readOnly || disabled) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tonChange?.(e);\r\n\t\t},\r\n\t\t[onChange, readOnly, disabled],\r\n\t);\r\n\r\n\tconst slots = useMemo(\r\n\t\t() =>\r\n\t\t\tcheckbox({\r\n\t\t\t\tcolor: props.color,\r\n\t\t\t\tsize: props.size,\r\n\t\t\t\tradius: props.radius,\r\n\t\t\t\tlineThrough: props.lineThrough,\r\n\t\t\t\tdisabled: disabled,\r\n\t\t\t\tisInvalid: !!error && touched,\r\n\t\t\t\tdisableAnimation: props.disableAnimation,\r\n\t\t\t}),\r\n\t\t[props, disabled, error, touched],\r\n\t);\r\n\r\n\tconst getBaseProps = () => ({\r\n\t\t\"className\": slots.base({ class: clsx(classNames?.base, className) }),\r\n\t\t\"data-disabled\": dataAttr(disabled),\r\n\t\t\"data-selected\": dataAttr(isSelected || isIndeterminate),\r\n\t});\r\n\r\n\tconst getWrapperProps = () => ({\r\n\t\t\"aria-hidden\": true,\r\n\t\t\"className\": slots.wrapper({ class: classNames?.wrapper }),\r\n\t\t\"data-selected\": dataAttr(isSelected || isIndeterminate),\r\n\t});\r\n\r\n\tconst getInputProps = () => ({\r\n\t\tref: mergeRefs(internalRef, props.ref),\r\n\t\ttype: \"checkbox\",\r\n\t\tid: resolvedId,\r\n\t\tdefaultChecked: checked === undefined ? defaultChecked : undefined,\r\n\t\tchecked: checked !== undefined ? checked : undefined,\r\n\t\tdisabled,\r\n\t\trequired,\r\n\t\treadOnly,\r\n\t\tonChange: handleChange,\r\n\t\tclassName: slots.hiddenInput({ class: classNames?.hiddenInput }),\r\n\t});\r\n\r\n\tconst getLabelProps = () => ({\r\n\t\thtmlFor: resolvedId,\r\n\t\tclassName: slots.label({ class: classNames?.label }),\r\n\t});\r\n\r\n\tconst getIconProps = (): CheckboxIconProps => ({\r\n\t\tisSelected,\r\n\t\tisIndeterminate,\r\n\t\tdisableAnimation: props.disableAnimation,\r\n\t\tclassName: slots.icon({ class: classNames?.icon }),\r\n\t});\r\n\r\n\tconst Component = \"label\";\r\n\r\n\treturn {\r\n\t\tComponent,\r\n\t\ticon,\r\n\t\tchildren,\r\n\t\tisSelected,\r\n\t\tisIndeterminate,\r\n\t\tgetBaseProps,\r\n\t\tgetWrapperProps,\r\n\t\tgetInputProps,\r\n\t\tgetLabelProps,\r\n\t\tgetIconProps,\r\n\t};\r\n}\r\n\r\nexport type UseCheckboxReturn = ReturnType<typeof useCheckbox>;\r\n","import type { UseCheckboxReturn } from \"./use-checkbox\";\n\ntype CheckboxIconProps = Partial<ReturnType<UseCheckboxReturn[\"getIconProps\"]>>;\n\nfunction CheckIcon(props: CheckboxIconProps) {\n\tconst { isSelected, disableAnimation, ...otherProps } = props;\n\n\treturn (\n\t\t<svg\n\t\t\taria-hidden=\"true\"\n\t\t\tfill=\"none\"\n\t\t\trole=\"presentation\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeDasharray={22}\n\t\t\tstrokeDashoffset={isSelected ? 44 : 66}\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\tstyle={\n\t\t\t\t!disableAnimation && isSelected\n\t\t\t\t\t? {\n\t\t\t\t\t\t\ttransition: \"stroke-dashoffset 250ms linear 0.2s\",\n\t\t\t\t\t }\n\t\t\t\t\t: {}\n\t\t\t}\n\t\t\tviewBox=\"0 0 17 18\"\n\t\t\t{...otherProps}\n\t\t>\n\t\t\t<polyline points=\"1 9 7 14 15 4\" />\n\t\t</svg>\n\t);\n}\n\nfunction IndeterminateIcon(props: CheckboxIconProps) {\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\tconst { isSelected, disableAnimation, ...otherProps } = props;\n\n\treturn (\n\t\t<svg stroke=\"currentColor\" strokeWidth={3} viewBox=\"0 0 24 24\" {...otherProps}>\n\t\t\t<line x1=\"21\" x2=\"3\" y1=\"12\" y2=\"12\" />\n\t\t</svg>\n\t);\n}\n\n/**\n * CheckboxIcon is used to visually indicate the checked or indeterminate\n * state of a checkbox.\n */\nexport function CheckboxIcon(props: CheckboxIconProps) {\n\tconst { isIndeterminate, ...otherProps } = props;\n\tconst BaseIcon = isIndeterminate ? IndeterminateIcon : CheckIcon;\n\n\treturn <BaseIcon {...otherProps} />;\n}\n","// checkbox.tsx\r\nimport { forwardRef } from \"react\";\r\nimport { cloneElement, type ReactElement } from \"react\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\n\r\nimport { useCheckbox, type UseCheckboxProps } from \"./use-checkbox\";\r\nimport { CheckboxIcon } from \"./checkbox-icon\";\r\n\r\nexport interface CheckboxProps extends UseCheckboxProps {\r\n\tasChild?: boolean;\r\n}\r\n\r\nconst Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {\r\n\tconst { asChild = false, ...restProps } = props;\r\n\tconst {\r\n\t\tComponent,\r\n\t\tchildren,\r\n\t\ticon = <CheckboxIcon />,\r\n\t\tgetBaseProps,\r\n\t\tgetWrapperProps,\r\n\t\tgetInputProps,\r\n\t\tgetIconProps,\r\n\t\tgetLabelProps,\r\n\t} = useCheckbox({ ...restProps, ref });\r\n\r\n\tconst clonedIcon = typeof icon === \"function\" ? icon(getIconProps()) : cloneElement(icon as ReactElement, getIconProps());\r\n\r\n\tconst Wrapper = asChild ? Slot : Component;\r\n\r\n\treturn (\r\n\t\t<Wrapper {...getBaseProps()}>\r\n\t\t\t<input {...getInputProps()} ref={ref} />\r\n\t\t\t<span {...getWrapperProps()}>{clonedIcon}</span>\r\n\t\t\t{children && <span {...getLabelProps()}>{children}</span>}\r\n\t\t</Wrapper>\r\n\t);\r\n});\r\n\r\nCheckbox.displayName = \"Custom.Checkbox\";\r\n\r\nexport default Checkbox;\r\n"],"names":["checkbox","tv","groupDataFocusVisibleClasses","hiddenInputClasses","useCheckbox","props","id","classNames","className","icon","children","disabled","required","readOnly","defaultChecked","checked","error","touched","onChange","isIndeterminate","internalRef","useRef","inputId","useId","resolvedId","isSelected","useMemo","handleChange","useCallback","e","slots","clsx","dataAttr","mergeRefs","CheckIcon","disableAnimation","otherProps","jsx","IndeterminateIcon","CheckboxIcon","BaseIcon","Checkbox","forwardRef","ref","asChild","restProps","Component","getBaseProps","getWrapperProps","getInputProps","getIconProps","getLabelProps","clonedIcon","cloneElement","Wrapper","Slot","jsxs"],"mappings":"+OAoBMA,EAAWC,EAAAA,GAAG,CACnB,MAAO,CACN,KAAM,gIACN,QAAS,CACR,WACA,cACA,eACA,iBACA,gBACA,kBAEA,sBACA,kBACA,iBACA,sBACA,kBACA,oBACA,wBAEA,qBACA,iBACA,gBACA,iBACA,kBACA,sBACA,6CACA,+CAEA,gDAEA,GAAGC,EAAAA,4BACJ,EACA,YAAaC,EAAA,mBACb,KAAM,oFACN,MAAO,sCACR,EACA,SAAU,CACT,MAAO,CACN,QAAS,CACR,QAAS,wEACV,EACA,QAAS,CACR,QAAS,wEACV,EACA,UAAW,CACV,QAAS,8EACV,EACA,QAAS,CACR,QAAS,wEACV,EACA,QAAS,CACR,QAAS,wEACV,EACA,OAAQ,CACP,QAAS,qEAAA,CAEX,EACA,KAAM,CACL,GAAI,CACH,QAAS,CACR,eACA,iDACA,wDACA,sDACD,EACA,MAAO,aACP,KAAM,SACP,EACA,GAAI,CACH,QAAS,CACR,eACA,iDACA,wDACA,sDACD,EACA,MAAO,cACP,KAAM,SACP,EACA,GAAI,CACH,QAAS,CACR,eACA,iDACA,wDACA,sDACD,EACA,MAAO,aACP,KAAM,SAAA,CAER,EACA,OAAQ,CACP,KAAM,CACL,QAAS,qDACV,EACA,GAAI,CACH,QAAS,CACR,iDACA,wDACA,sDAAA,CAEF,EACA,GAAI,CACH,QAAS,CACR,iDACA,wDACA,sDAAA,CAEF,EACA,GAAI,CACH,QAAS,CACR,iDACA,wDACA,sDAAA,CAEF,EACA,KAAM,CACL,QAAS,qDAAA,CAEX,EACA,YA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,CAAA,GAAGY,EAAc,EAAG,IAAAN,CAAU,CAAA,EACrCN,EAAA,kBAAA,IAAA,OAAA,CAAM,GAAGW,EAAA,EAAoB,SAAWI,EAAA,EACxC1C,GAAa2B,EAAA,kBAAA,IAAA,OAAA,CAAM,GAAGc,EAAA,EAAkB,SAAAzC,CAAS,CAAA,CAAA,EACnD,CAEF,CAAC,EAED+B,EAAS,YAAc"}
@@ -0,0 +1,312 @@
1
+ import { j as n } from "./jsx-runtime-BYq8_R6m.js";
2
+ import { useRef as C, useId as P, useMemo as I, useCallback as j, forwardRef as A, cloneElement as B } from "react";
3
+ import { S as W } from "./index-C_b6-TON.js";
4
+ import { t as z } from "./tv-ButAo3dF.js";
5
+ import { h as L, g as S } from "./classes-7MXTIFwM.js";
6
+ import { m as D, d as x } from "./refs-DcCOPvdv.js";
7
+ import { c as T } from "./clsx-OuTLNxxd.js";
8
+ const E = z({
9
+ slots: {
10
+ base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
11
+ wrapper: [
12
+ "relative",
13
+ "inline-flex",
14
+ "items-center",
15
+ "justify-center",
16
+ "flex-shrink-0",
17
+ "overflow-hidden",
18
+ // before
19
+ "before:content-['']",
20
+ "before:absolute",
21
+ "before:inset-0",
22
+ "before:border-solid",
23
+ "before:border-2",
24
+ "before:box-border",
25
+ "before:border-default",
26
+ // after
27
+ "after:content-['']",
28
+ "after:absolute",
29
+ "after:inset-0",
30
+ "after:scale-50",
31
+ "after:opacity-0",
32
+ "after:origin-center",
33
+ "group-data-[selected=true]:after:scale-100",
34
+ "group-data-[selected=true]:after:opacity-100",
35
+ // hover
36
+ "group-data-[hover=true]:before:bg-default-100",
37
+ // focus ring
38
+ ...S
39
+ ],
40
+ hiddenInput: L,
41
+ icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",
42
+ label: "relative text-foreground select-none"
43
+ },
44
+ variants: {
45
+ color: {
46
+ default: {
47
+ wrapper: "after:bg-default after:text-default-foreground text-default-foreground"
48
+ },
49
+ primary: {
50
+ wrapper: "after:bg-primary after:text-primary-foreground text-primary-foreground"
51
+ },
52
+ secondary: {
53
+ wrapper: "after:bg-secondary after:text-secondary-foreground text-secondary-foreground"
54
+ },
55
+ success: {
56
+ wrapper: "after:bg-success after:text-success-foreground text-success-foreground"
57
+ },
58
+ warning: {
59
+ wrapper: "after:bg-warning after:text-warning-foreground text-warning-foreground"
60
+ },
61
+ danger: {
62
+ wrapper: "after:bg-danger after:text-danger-foreground text-danger-foreground"
63
+ }
64
+ },
65
+ size: {
66
+ sm: {
67
+ wrapper: [
68
+ "w-4 h-4 me-2",
69
+ "rounded-[calc(theme(borderRadius.medium)*0.5)]",
70
+ "before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
71
+ "after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
72
+ ],
73
+ label: "text-small",
74
+ icon: "w-3 h-2"
75
+ },
76
+ md: {
77
+ wrapper: [
78
+ "w-5 h-5 me-2",
79
+ "rounded-[calc(theme(borderRadius.medium)*0.6)]",
80
+ "before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
81
+ "after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
82
+ ],
83
+ label: "text-medium",
84
+ icon: "w-4 h-3"
85
+ },
86
+ lg: {
87
+ wrapper: [
88
+ "w-6 h-6 me-2",
89
+ "rounded-[calc(theme(borderRadius.medium)*0.7)]",
90
+ "before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
91
+ "after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
92
+ ],
93
+ label: "text-large",
94
+ icon: "w-5 h-4"
95
+ }
96
+ },
97
+ radius: {
98
+ none: {
99
+ wrapper: "rounded-none before:rounded-none after:rounded-none"
100
+ },
101
+ sm: {
102
+ wrapper: [
103
+ "rounded-[calc(theme(borderRadius.medium)*0.5)]",
104
+ "before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
105
+ "after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
106
+ ]
107
+ },
108
+ md: {
109
+ wrapper: [
110
+ "rounded-[calc(theme(borderRadius.medium)*0.6)]",
111
+ "before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
112
+ "after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
113
+ ]
114
+ },
115
+ lg: {
116
+ wrapper: [
117
+ "rounded-[calc(theme(borderRadius.medium)*0.7)]",
118
+ "before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
119
+ "after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
120
+ ]
121
+ },
122
+ full: {
123
+ wrapper: "rounded-full before:rounded-full after:rounded-full"
124
+ }
125
+ },
126
+ lineThrough: {
127
+ true: {
128
+ label: [
129
+ "inline-flex",
130
+ "items-center",
131
+ "justify-center",
132
+ "before:content-['']",
133
+ "before:absolute",
134
+ "before:bg-foreground",
135
+ "before:w-0",
136
+ "before:h-0.5",
137
+ "group-data-[selected=true]:opacity-60",
138
+ "group-data-[selected=true]:before:w-full"
139
+ ]
140
+ }
141
+ },
142
+ disabled: {
143
+ true: {
144
+ base: "opacity-80 pointer-events-none"
145
+ }
146
+ },
147
+ isInvalid: {
148
+ true: {
149
+ wrapper: "before:border-danger",
150
+ label: "text-danger"
151
+ }
152
+ },
153
+ disableAnimation: {
154
+ true: {
155
+ wrapper: "transition-none",
156
+ icon: "transition-none",
157
+ label: "transition-none"
158
+ },
159
+ false: {
160
+ wrapper: [
161
+ "before:transition-colors",
162
+ "group-data-[pressed=true]:scale-95",
163
+ "transition-transform",
164
+ "after:transition-transform-opacity",
165
+ "after:!ease-linear",
166
+ "after:!duration-200",
167
+ "motion-reduce:transition-none"
168
+ ],
169
+ icon: "transition-opacity motion-reduce:transition-none",
170
+ label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
171
+ }
172
+ }
173
+ },
174
+ defaultVariants: {
175
+ color: "primary",
176
+ size: "md",
177
+ disabled: !1,
178
+ lineThrough: !1
179
+ }
180
+ });
181
+ function F(r) {
182
+ const {
183
+ id: t,
184
+ classNames: e,
185
+ className: a,
186
+ icon: h,
187
+ children: l,
188
+ disabled: o,
189
+ required: g,
190
+ readOnly: s,
191
+ defaultChecked: c,
192
+ checked: d,
193
+ error: f,
194
+ touched: m,
195
+ onChange: i,
196
+ isIndeterminate: p = !1
197
+ } = r, R = C(null), k = P(), w = t || k, [b] = I(() => [typeof d == "boolean" ? d : c || !1, () => {
198
+ }], [d, c]), v = j(
199
+ (y) => {
200
+ if (s || o) {
201
+ y.preventDefault();
202
+ return;
203
+ }
204
+ i == null || i(y);
205
+ },
206
+ [i, s, o]
207
+ ), u = I(
208
+ () => E({
209
+ color: r.color,
210
+ size: r.size,
211
+ radius: r.radius,
212
+ lineThrough: r.lineThrough,
213
+ disabled: o,
214
+ isInvalid: !!f && m,
215
+ disableAnimation: r.disableAnimation
216
+ }),
217
+ [r, o, f, m]
218
+ );
219
+ return {
220
+ Component: "label",
221
+ icon: h,
222
+ children: l,
223
+ isSelected: b,
224
+ isIndeterminate: p,
225
+ getBaseProps: () => ({
226
+ className: u.base({ class: T(e == null ? void 0 : e.base, a) }),
227
+ "data-disabled": x(o),
228
+ "data-selected": x(b || p)
229
+ }),
230
+ getWrapperProps: () => ({
231
+ "aria-hidden": !0,
232
+ className: u.wrapper({ class: e == null ? void 0 : e.wrapper }),
233
+ "data-selected": x(b || p)
234
+ }),
235
+ getInputProps: () => ({
236
+ ref: D(R, r.ref),
237
+ type: "checkbox",
238
+ id: w,
239
+ defaultChecked: d === void 0 ? c : void 0,
240
+ checked: d !== void 0 ? d : void 0,
241
+ disabled: o,
242
+ required: g,
243
+ readOnly: s,
244
+ onChange: v,
245
+ className: u.hiddenInput({ class: e == null ? void 0 : e.hiddenInput })
246
+ }),
247
+ getLabelProps: () => ({
248
+ htmlFor: w,
249
+ className: u.label({ class: e == null ? void 0 : e.label })
250
+ }),
251
+ getIconProps: () => ({
252
+ isSelected: b,
253
+ isIndeterminate: p,
254
+ disableAnimation: r.disableAnimation,
255
+ className: u.icon({ class: e == null ? void 0 : e.icon })
256
+ })
257
+ };
258
+ }
259
+ function V(r) {
260
+ const { isSelected: t, disableAnimation: e, ...a } = r;
261
+ return /* @__PURE__ */ n.jsx(
262
+ "svg",
263
+ {
264
+ "aria-hidden": "true",
265
+ fill: "none",
266
+ role: "presentation",
267
+ stroke: "currentColor",
268
+ strokeDasharray: 22,
269
+ strokeDashoffset: t ? 44 : 66,
270
+ strokeLinecap: "round",
271
+ strokeLinejoin: "round",
272
+ strokeWidth: 2,
273
+ style: !e && t ? {
274
+ transition: "stroke-dashoffset 250ms linear 0.2s"
275
+ } : {},
276
+ viewBox: "0 0 17 18",
277
+ ...a,
278
+ children: /* @__PURE__ */ n.jsx("polyline", { points: "1 9 7 14 15 4" })
279
+ }
280
+ );
281
+ }
282
+ function q(r) {
283
+ const { isSelected: t, disableAnimation: e, ...a } = r;
284
+ return /* @__PURE__ */ n.jsx("svg", { stroke: "currentColor", strokeWidth: 3, viewBox: "0 0 24 24", ...a, children: /* @__PURE__ */ n.jsx("line", { x1: "21", x2: "3", y1: "12", y2: "12" }) });
285
+ }
286
+ function M(r) {
287
+ const { isIndeterminate: t, ...e } = r, a = t ? q : V;
288
+ return /* @__PURE__ */ n.jsx(a, { ...e });
289
+ }
290
+ const O = A((r, t) => {
291
+ const { asChild: e = !1, ...a } = r, {
292
+ Component: h,
293
+ children: l,
294
+ icon: o = /* @__PURE__ */ n.jsx(M, {}),
295
+ getBaseProps: g,
296
+ getWrapperProps: s,
297
+ getInputProps: c,
298
+ getIconProps: d,
299
+ getLabelProps: f
300
+ } = F({ ...a, ref: t }), m = typeof o == "function" ? o(d()) : B(o, d()), i = e ? W : h;
301
+ return /* @__PURE__ */ n.jsxs(i, { ...g(), children: [
302
+ /* @__PURE__ */ n.jsx("input", { ...c(), ref: t }),
303
+ /* @__PURE__ */ n.jsx("span", { ...s(), children: m }),
304
+ l && /* @__PURE__ */ n.jsx("span", { ...f(), children: l })
305
+ ] });
306
+ });
307
+ O.displayName = "Custom.Checkbox";
308
+ export {
309
+ O as C,
310
+ M as a
311
+ };
312
+ //# sourceMappingURL=checkbox-DN309yjg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-DN309yjg.js","sources":["../../src/theme/color/checkbox.ts","../../src/components/checkbox/use-checkbox.ts","../../src/components/checkbox/checkbox-icon.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import { tv } from \"@/lib/tv\";\nimport type { VariantProps } from \"tailwind-variants\";\nimport { groupDataFocusVisibleClasses, hiddenInputClasses } from \"../classes\";\n\n/**\n * Checkbox wrapper **Tailwind Variants** component\n *\n * const {base, wrapper, icon, label} = checkbox({...})\n *\n * @example\n * <label className={base())}>\n * // hidden input\n * <span className={wrapper()} aria-hidden=\"true\" data-selected={selected}>\n * <svg className={icon()}>\n * // check icon\n * </svg>\n * </span>\n * <span className={label()}>Label</span>\n * </label>\n */\nconst checkbox = tv({\n\tslots: {\n\t\tbase: \"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none\",\n\t\twrapper: [\n\t\t\t\"relative\",\n\t\t\t\"inline-flex\",\n\t\t\t\"items-center\",\n\t\t\t\"justify-center\",\n\t\t\t\"flex-shrink-0\",\n\t\t\t\"overflow-hidden\",\n\t\t\t// before\n\t\t\t\"before:content-['']\",\n\t\t\t\"before:absolute\",\n\t\t\t\"before:inset-0\",\n\t\t\t\"before:border-solid\",\n\t\t\t\"before:border-2\",\n\t\t\t\"before:box-border\",\n\t\t\t\"before:border-default\",\n\t\t\t// after\n\t\t\t\"after:content-['']\",\n\t\t\t\"after:absolute\",\n\t\t\t\"after:inset-0\",\n\t\t\t\"after:scale-50\",\n\t\t\t\"after:opacity-0\",\n\t\t\t\"after:origin-center\",\n\t\t\t\"group-data-[selected=true]:after:scale-100\",\n\t\t\t\"group-data-[selected=true]:after:opacity-100\",\n\t\t\t// hover\n\t\t\t\"group-data-[hover=true]:before:bg-default-100\",\n\t\t\t// focus ring\n\t\t\t...groupDataFocusVisibleClasses,\n\t\t],\n\t\thiddenInput: hiddenInputClasses,\n\t\ticon: \"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none\",\n\t\tlabel: \"relative text-foreground select-none\",\n\t},\n\tvariants: {\n\t\tcolor: {\n\t\t\tdefault: {\n\t\t\t\twrapper: \"after:bg-default after:text-default-foreground text-default-foreground\",\n\t\t\t},\n\t\t\tprimary: {\n\t\t\t\twrapper: \"after:bg-primary after:text-primary-foreground text-primary-foreground\",\n\t\t\t},\n\t\t\tsecondary: {\n\t\t\t\twrapper: \"after:bg-secondary after:text-secondary-foreground text-secondary-foreground\",\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\twrapper: \"after:bg-success after:text-success-foreground text-success-foreground\",\n\t\t\t},\n\t\t\twarning: {\n\t\t\t\twrapper: \"after:bg-warning after:text-warning-foreground text-warning-foreground\",\n\t\t\t},\n\t\t\tdanger: {\n\t\t\t\twrapper: \"after:bg-danger after:text-danger-foreground text-danger-foreground\",\n\t\t\t},\n\t\t},\n\t\tsize: {\n\t\t\tsm: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"w-4 h-4 me-2\",\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t],\n\t\t\t\tlabel: \"text-small\",\n\t\t\t\ticon: \"w-3 h-2\",\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"w-5 h-5 me-2\",\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t],\n\t\t\t\tlabel: \"text-medium\",\n\t\t\t\ticon: \"w-4 h-3\",\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"w-6 h-6 me-2\",\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t],\n\t\t\t\tlabel: \"text-large\",\n\t\t\t\ticon: \"w-5 h-4\",\n\t\t\t},\n\t\t},\n\t\tradius: {\n\t\t\tnone: {\n\t\t\t\twrapper: \"rounded-none before:rounded-none after:rounded-none\",\n\t\t\t},\n\t\t\tsm: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.5)]\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.6)]\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"before:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t\t\"after:rounded-[calc(theme(borderRadius.medium)*0.7)]\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tfull: {\n\t\t\t\twrapper: \"rounded-full before:rounded-full after:rounded-full\",\n\t\t\t},\n\t\t},\n\t\tlineThrough: {\n\t\t\ttrue: {\n\t\t\t\tlabel: [\n\t\t\t\t\t\"inline-flex\",\n\t\t\t\t\t\"items-center\",\n\t\t\t\t\t\"justify-center\",\n\t\t\t\t\t\"before:content-['']\",\n\t\t\t\t\t\"before:absolute\",\n\t\t\t\t\t\"before:bg-foreground\",\n\t\t\t\t\t\"before:w-0\",\n\t\t\t\t\t\"before:h-0.5\",\n\t\t\t\t\t\"group-data-[selected=true]:opacity-60\",\n\t\t\t\t\t\"group-data-[selected=true]:before:w-full\",\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\tdisabled: {\n\t\t\ttrue: {\n\t\t\t\tbase: \"opacity-80 pointer-events-none\",\n\t\t\t},\n\t\t},\n\t\tisInvalid: {\n\t\t\ttrue: {\n\t\t\t\twrapper: \"before:border-danger\",\n\t\t\t\tlabel: \"text-danger\",\n\t\t\t},\n\t\t},\n\t\tdisableAnimation: {\n\t\t\ttrue: {\n\t\t\t\twrapper: \"transition-none\",\n\t\t\t\ticon: \"transition-none\",\n\t\t\t\tlabel: \"transition-none\",\n\t\t\t},\n\t\t\tfalse: {\n\t\t\t\twrapper: [\n\t\t\t\t\t\"before:transition-colors\",\n\t\t\t\t\t\"group-data-[pressed=true]:scale-95\",\n\t\t\t\t\t\"transition-transform\",\n\t\t\t\t\t\"after:transition-transform-opacity\",\n\t\t\t\t\t\"after:!ease-linear\",\n\t\t\t\t\t\"after:!duration-200\",\n\t\t\t\t\t\"motion-reduce:transition-none\",\n\t\t\t\t],\n\t\t\t\ticon: \"transition-opacity motion-reduce:transition-none\",\n\t\t\t\tlabel: \"transition-colors-opacity before:transition-width motion-reduce:transition-none\",\n\t\t\t},\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tcolor: \"primary\",\n\t\tsize: \"md\",\n\t\tdisabled: false,\n\t\tlineThrough: false,\n\t},\n});\n\nexport type CheckboxVariantProps = VariantProps<typeof checkbox>;\nexport type CheckboxSlots = keyof ReturnType<typeof checkbox>;\n\nexport { checkbox };\n","import { useCallback, useId, useMemo, useRef, type ChangeEvent } from \"react\";\r\n\r\nimport { checkbox, type CheckboxSlots, type CheckboxVariantProps } from \"@/theme/color/checkbox\";\r\nimport type { SlotsToClasses } from \"@/types\";\r\nimport { dataAttr, mergeRefs } from \"@/functions\";\r\nimport clsx from \"clsx\";\r\n\r\nexport interface UseCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof CheckboxVariantProps>, CheckboxVariantProps {\r\n\tclassNames?: SlotsToClasses<CheckboxSlots>;\r\n\tclassName?: string;\r\n\ticon?: React.ReactNode | ((props: CheckboxIconProps) => React.ReactNode);\r\n\tchildren?: React.ReactNode;\r\n\tisIndeterminate?: boolean;\r\n\tref?: React.Ref<HTMLInputElement>;\r\n\terror?: string;\r\n\ttouched?: boolean;\r\n\trequired?: boolean;\r\n}\r\n\r\nexport interface CheckboxIconProps {\r\n\tid?: string;\r\n\tisSelected: boolean;\r\n\tisIndeterminate?: boolean;\r\n\tdisableAnimation?: boolean;\r\n\tclassName?: string;\r\n}\r\n\r\nexport function useCheckbox(props: UseCheckboxProps) {\r\n\tconst {\r\n\t\tid,\r\n\t\tclassNames,\r\n\t\tclassName,\r\n\t\ticon,\r\n\t\tchildren,\r\n\t\tdisabled,\r\n\t\trequired,\r\n\t\treadOnly,\r\n\t\tdefaultChecked,\r\n\t\tchecked,\r\n\t\terror,\r\n\t\ttouched,\r\n\t\tonChange,\r\n\t\tisIndeterminate = false,\r\n\t} = props;\r\n\r\n\tconst internalRef = useRef<HTMLInputElement>(null);\r\n\tconst inputId = useId();\r\n\tconst resolvedId = id || inputId;\r\n\r\n\tconst [isSelected] = useMemo(() => {\r\n\t\treturn [typeof checked === \"boolean\" ? checked : defaultChecked || false, () => {}];\r\n\t}, [checked, defaultChecked]);\r\n\r\n\tconst handleChange = useCallback(\r\n\t\t(e: ChangeEvent<HTMLInputElement>) => {\r\n\t\t\tif (readOnly || disabled) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tonChange?.(e);\r\n\t\t},\r\n\t\t[onChange, readOnly, disabled],\r\n\t);\r\n\r\n\tconst slots = useMemo(\r\n\t\t() =>\r\n\t\t\tcheckbox({\r\n\t\t\t\tcolor: props.color,\r\n\t\t\t\tsize: props.size,\r\n\t\t\t\tradius: props.radius,\r\n\t\t\t\tlineThrough: props.lineThrough,\r\n\t\t\t\tdisabled: disabled,\r\n\t\t\t\tisInvalid: !!error && touched,\r\n\t\t\t\tdisableAnimation: props.disableAnimation,\r\n\t\t\t}),\r\n\t\t[props, disabled, error, touched],\r\n\t);\r\n\r\n\tconst getBaseProps = () => ({\r\n\t\t\"className\": slots.base({ class: clsx(classNames?.base, className) }),\r\n\t\t\"data-disabled\": dataAttr(disabled),\r\n\t\t\"data-selected\": dataAttr(isSelected || isIndeterminate),\r\n\t});\r\n\r\n\tconst getWrapperProps = () => ({\r\n\t\t\"aria-hidden\": true,\r\n\t\t\"className\": slots.wrapper({ class: classNames?.wrapper }),\r\n\t\t\"data-selected\": dataAttr(isSelected || isIndeterminate),\r\n\t});\r\n\r\n\tconst getInputProps = () => ({\r\n\t\tref: mergeRefs(internalRef, props.ref),\r\n\t\ttype: \"checkbox\",\r\n\t\tid: resolvedId,\r\n\t\tdefaultChecked: checked === undefined ? defaultChecked : undefined,\r\n\t\tchecked: checked !== undefined ? checked : undefined,\r\n\t\tdisabled,\r\n\t\trequired,\r\n\t\treadOnly,\r\n\t\tonChange: handleChange,\r\n\t\tclassName: slots.hiddenInput({ class: classNames?.hiddenInput }),\r\n\t});\r\n\r\n\tconst getLabelProps = () => ({\r\n\t\thtmlFor: resolvedId,\r\n\t\tclassName: slots.label({ class: classNames?.label }),\r\n\t});\r\n\r\n\tconst getIconProps = (): CheckboxIconProps => ({\r\n\t\tisSelected,\r\n\t\tisIndeterminate,\r\n\t\tdisableAnimation: props.disableAnimation,\r\n\t\tclassName: slots.icon({ class: classNames?.icon }),\r\n\t});\r\n\r\n\tconst Component = \"label\";\r\n\r\n\treturn {\r\n\t\tComponent,\r\n\t\ticon,\r\n\t\tchildren,\r\n\t\tisSelected,\r\n\t\tisIndeterminate,\r\n\t\tgetBaseProps,\r\n\t\tgetWrapperProps,\r\n\t\tgetInputProps,\r\n\t\tgetLabelProps,\r\n\t\tgetIconProps,\r\n\t};\r\n}\r\n\r\nexport type UseCheckboxReturn = ReturnType<typeof useCheckbox>;\r\n","import type { UseCheckboxReturn } from \"./use-checkbox\";\n\ntype CheckboxIconProps = Partial<ReturnType<UseCheckboxReturn[\"getIconProps\"]>>;\n\nfunction CheckIcon(props: CheckboxIconProps) {\n\tconst { isSelected, disableAnimation, ...otherProps } = props;\n\n\treturn (\n\t\t<svg\n\t\t\taria-hidden=\"true\"\n\t\t\tfill=\"none\"\n\t\t\trole=\"presentation\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeDasharray={22}\n\t\t\tstrokeDashoffset={isSelected ? 44 : 66}\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\tstyle={\n\t\t\t\t!disableAnimation && isSelected\n\t\t\t\t\t? {\n\t\t\t\t\t\t\ttransition: \"stroke-dashoffset 250ms linear 0.2s\",\n\t\t\t\t\t }\n\t\t\t\t\t: {}\n\t\t\t}\n\t\t\tviewBox=\"0 0 17 18\"\n\t\t\t{...otherProps}\n\t\t>\n\t\t\t<polyline points=\"1 9 7 14 15 4\" />\n\t\t</svg>\n\t);\n}\n\nfunction IndeterminateIcon(props: CheckboxIconProps) {\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\tconst { isSelected, disableAnimation, ...otherProps } = props;\n\n\treturn (\n\t\t<svg stroke=\"currentColor\" strokeWidth={3} viewBox=\"0 0 24 24\" {...otherProps}>\n\t\t\t<line x1=\"21\" x2=\"3\" y1=\"12\" y2=\"12\" />\n\t\t</svg>\n\t);\n}\n\n/**\n * CheckboxIcon is used to visually indicate the checked or indeterminate\n * state of a checkbox.\n */\nexport function CheckboxIcon(props: CheckboxIconProps) {\n\tconst { isIndeterminate, ...otherProps } = props;\n\tconst BaseIcon = isIndeterminate ? IndeterminateIcon : CheckIcon;\n\n\treturn <BaseIcon {...otherProps} />;\n}\n","// checkbox.tsx\r\nimport { forwardRef } from \"react\";\r\nimport { cloneElement, type ReactElement } from \"react\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\n\r\nimport { useCheckbox, type UseCheckboxProps } from \"./use-checkbox\";\r\nimport { CheckboxIcon } from \"./checkbox-icon\";\r\n\r\nexport interface CheckboxProps extends UseCheckboxProps {\r\n\tasChild?: boolean;\r\n}\r\n\r\nconst Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {\r\n\tconst { asChild = false, ...restProps } = props;\r\n\tconst {\r\n\t\tComponent,\r\n\t\tchildren,\r\n\t\ticon = <CheckboxIcon />,\r\n\t\tgetBaseProps,\r\n\t\tgetWrapperProps,\r\n\t\tgetInputProps,\r\n\t\tgetIconProps,\r\n\t\tgetLabelProps,\r\n\t} = useCheckbox({ ...restProps, ref });\r\n\r\n\tconst clonedIcon = typeof icon === \"function\" ? icon(getIconProps()) : cloneElement(icon as ReactElement, getIconProps());\r\n\r\n\tconst Wrapper = asChild ? Slot : Component;\r\n\r\n\treturn (\r\n\t\t<Wrapper {...getBaseProps()}>\r\n\t\t\t<input {...getInputProps()} ref={ref} />\r\n\t\t\t<span {...getWrapperProps()}>{clonedIcon}</span>\r\n\t\t\t{children && <span {...getLabelProps()}>{children}</span>}\r\n\t\t</Wrapper>\r\n\t);\r\n});\r\n\r\nCheckbox.displayName = \"Custom.Checkbox\";\r\n\r\nexport default Checkbox;\r\n"],"names":["checkbox","tv","groupDataFocusVisibleClasses","hiddenInputClasses","useCheckbox","props","id","classNames","className","icon","children","disabled","required","readOnly","defaultChecked","checked","error","touched","onChange","isIndeterminate","internalRef","useRef","inputId","useId","resolvedId","isSelected","useMemo","handleChange","useCallback","e","slots","clsx","dataAttr","mergeRefs","CheckIcon","disableAnimation","otherProps","jsx","IndeterminateIcon","CheckboxIcon","BaseIcon","Checkbox","forwardRef","ref","asChild","restProps","Component","getBaseProps","getWrapperProps","getInputProps","getIconProps","getLabelProps","clonedIcon","cloneElement","Wrapper","Slot","jsxs"],"mappings":";;;;;;;AAoBA,MAAMA,IAAWC,EAAG;AAAA,EACnB,OAAO;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MAEA;AAAA;AAAA,MAEA,GAAGC;AAAA,IACJ;AAAA,IACA,aAAaC;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,EACR;AAAA,EACA,UAAU;AAAA,IACT,OAAO;AAAA,MACN,SAAS;AAAA,QACR,SAAS;AAAA,MACV;AAAA,MACA,SAAS;AAAA,QACR,SAAS;AAAA,MACV;AAAA,MACA,WAAW;AAAA,QACV,SAAS;AAAA,MACV;AAAA,MACA,SAAS;AAAA,QACR,SAAS;AAAA,MACV;AAAA,MACA,SAAS;AAAA,QACR,SAAS;AAAA,MACV;AAAA,MACA,QAAQ;AAAA,QACP,SAAS;AAAA,MAAA;AAAA,IAEX;AAAA,IACA,MAAM;AAAA,MACL,IAAI;AAAA,QACH,SAAS;AAAA,UACR;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACD;AAAA,QACA,OAAO;AAAA,QACP,MAAM;AAAA,MACP;AAAA,MACA,IAAI;AAAA,QACH,SAAS;AAAA,UACR;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACD;AAAA,QACA,OAAO;AAAA,QACP,MAAM;AAAA,MACP;AAAA,MACA,IAAI;AAAA,QACH,SAAS;AAAA,UACR;A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I,IAAUV,IAAUW,IAAOT;AAEjC,SACEU,gBAAAA,EAAA,KAAAF,GAAA,EAAS,GAAGP,EAAA,GACZ,UAAA;AAAA,IAAAV,gBAAAA,EAAAA,IAAC,SAAO,EAAA,GAAGY,EAAc,GAAG,KAAAN,EAAU,CAAA;AAAA,IACrCN,gBAAAA,EAAA,IAAA,QAAA,EAAM,GAAGW,EAAA,GAAoB,UAAWI,GAAA;AAAA,IACxC1C,KAAa2B,gBAAAA,EAAA,IAAA,QAAA,EAAM,GAAGc,EAAA,GAAkB,UAAAzC,EAAS,CAAA;AAAA,EAAA,GACnD;AAEF,CAAC;AAED+B,EAAS,cAAc;"}
@@ -0,0 +1,52 @@
1
+ const e = [
2
+ "outline-none",
3
+ "data-[focus-visible=true]:z-10",
4
+ "data-[focus-visible=true]:outline-2",
5
+ "data-[focus-visible=true]:outline-focus",
6
+ "data-[focus-visible=true]:outline-offset-2"
7
+ ], r = [
8
+ "outline-none",
9
+ "group-data-[focus-visible=true]:z-10",
10
+ "group-data-[focus-visible=true]:ring-2",
11
+ "group-data-[focus-visible=true]:ring-focus",
12
+ "group-data-[focus-visible=true]:ring-offset-2",
13
+ "group-data-[focus-visible=true]:ring-offset-background"
14
+ ], o = ["outline-none", "ring-2", "ring-focus", "ring-offset-2", "ring-offset-background"], s = {
15
+ default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
16
+ primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
17
+ secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
18
+ success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
19
+ warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
20
+ danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
21
+ }, i = [
22
+ // Font styles
23
+ "font-inherit",
24
+ "text-[100%]",
25
+ "leading-[1.15]",
26
+ // Reset margins and padding
27
+ "m-0",
28
+ "p-0",
29
+ // Overflow and box-sizing
30
+ "overflow-visible",
31
+ "box-border",
32
+ // Positioning & Hit area
33
+ "absolute",
34
+ "top-0",
35
+ "w-full",
36
+ "h-full",
37
+ // Opacity and z-index
38
+ "opacity-[0.0001]",
39
+ "z-[1]",
40
+ // Cursor
41
+ "cursor-pointer",
42
+ // Disabled state
43
+ "disabled:cursor-default"
44
+ ];
45
+ export {
46
+ s as c,
47
+ e as d,
48
+ r as g,
49
+ i as h,
50
+ o as r
51
+ };
52
+ //# sourceMappingURL=classes-7MXTIFwM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classes-7MXTIFwM.js","sources":["../../src/theme/classes.ts"],"sourcesContent":["/**\n * This is the base classNames for all elements.\n * Is meant to be used with the `addBase` method from tailwindcss.\n */\nexport const baseStyles = (prefix: string) => ({\n\tcolor: `hsl(var(--${prefix}-foreground))`,\n\tbackgroundColor: `hsl(var(--${prefix}-background))`,\n});\n\n/**\n * focus classNames when the element is focused by keyboard.\n */\nexport const focusVisibleClasses = [\"focus-visible:z-10\", \"focus-visible:outline-2\", \"focus-visible:outline-focus\", \"focus-visible:outline-offset-2\"];\n\nexport const dataFocusVisibleClasses = [\n\t\"outline-none\",\n\t\"data-[focus-visible=true]:z-10\",\n\t\"data-[focus-visible=true]:outline-2\",\n\t\"data-[focus-visible=true]:outline-focus\",\n\t\"data-[focus-visible=true]:outline-offset-2\",\n];\n\nexport const groupDataFocusVisibleClasses = [\n\t\"outline-none\",\n\t\"group-data-[focus-visible=true]:z-10\",\n\t\"group-data-[focus-visible=true]:ring-2\",\n\t\"group-data-[focus-visible=true]:ring-focus\",\n\t\"group-data-[focus-visible=true]:ring-offset-2\",\n\t\"group-data-[focus-visible=true]:ring-offset-background\",\n];\n\nexport const ringClasses = [\"outline-none\", \"ring-2\", \"ring-focus\", \"ring-offset-2\", \"ring-offset-background\"];\n\n/**\n * This classes centers the element by using absolute positioning.\n */\nexport const translateCenterClasses = [\"absolute\", \"top-1/2\", \"left-1/2\", \"-translate-x-1/2\", \"-translate-y-1/2\"];\n\nexport const absoluteFullClasses = [\"absolute\", \"inset-0\"];\n\n/**\n * This object defines CSS classes for collapsing adjacent variant borders.\n * It includes classes for different variants like default, primary, secondary, etc.\n */\nexport const collapseAdjacentVariantBorders = {\n\tdefault: [\"[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tprimary: [\"[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tsecondary: [\"[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tsuccess: [\"[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\twarning: [\"[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tdanger: [\"[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n};\n\nexport const hiddenInputClasses = [\n\t// Font styles\n\t\"font-inherit\",\n\t\"text-[100%]\",\n\t\"leading-[1.15]\",\n\n\t// Reset margins and padding\n\t\"m-0\",\n\t\"p-0\",\n\n\t// Overflow and box-sizing\n\t\"overflow-visible\",\n\t\"box-border\",\n\n\t// Positioning & Hit area\n\t\"absolute\",\n\t\"top-0\",\n\t\"w-full\",\n\t\"h-full\",\n\n\t// Opacity and z-index\n\t\"opacity-[0.0001]\",\n\t\"z-[1]\",\n\n\t// Cursor\n\t\"cursor-pointer\",\n\n\t// Disabled state\n\t\"disabled:cursor-default\",\n];\n"],"names":["dataFocusVisibleClasses","groupDataFocusVisibleClasses","ringClasses","collapseAdjacentVariantBorders","hiddenInputClasses"],"mappings":"AAcO,MAAMA,IAA0B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAEaC,IAA+B;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAEaC,IAAc,CAAC,gBAAgB,UAAU,cAAc,iBAAiB,wBAAwB,GAahGC,IAAiC;AAAA,EAC7C,SAAS,CAAC,2EAA2E;AAAA,EACrF,SAAS,CAAC,2EAA2E;AAAA,EACrF,WAAW,CAAC,6EAA6E;AAAA,EACzF,SAAS,CAAC,2EAA2E;AAAA,EACrF,SAAS,CAAC,2EAA2E;AAAA,EACrF,QAAQ,CAAC,0EAA0E;AACpF,GAEaC,IAAqB;AAAA;AAAA,EAEjC;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA;AACD;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],r=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],s=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],o={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},i=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"];exports.collapseAdjacentVariantBorders=o;exports.dataFocusVisibleClasses=e;exports.groupDataFocusVisibleClasses=r;exports.hiddenInputClasses=i;exports.ringClasses=s;
2
+ //# sourceMappingURL=classes-P14wj2Ze.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classes-P14wj2Ze.js","sources":["../../src/theme/classes.ts"],"sourcesContent":["/**\n * This is the base classNames for all elements.\n * Is meant to be used with the `addBase` method from tailwindcss.\n */\nexport const baseStyles = (prefix: string) => ({\n\tcolor: `hsl(var(--${prefix}-foreground))`,\n\tbackgroundColor: `hsl(var(--${prefix}-background))`,\n});\n\n/**\n * focus classNames when the element is focused by keyboard.\n */\nexport const focusVisibleClasses = [\"focus-visible:z-10\", \"focus-visible:outline-2\", \"focus-visible:outline-focus\", \"focus-visible:outline-offset-2\"];\n\nexport const dataFocusVisibleClasses = [\n\t\"outline-none\",\n\t\"data-[focus-visible=true]:z-10\",\n\t\"data-[focus-visible=true]:outline-2\",\n\t\"data-[focus-visible=true]:outline-focus\",\n\t\"data-[focus-visible=true]:outline-offset-2\",\n];\n\nexport const groupDataFocusVisibleClasses = [\n\t\"outline-none\",\n\t\"group-data-[focus-visible=true]:z-10\",\n\t\"group-data-[focus-visible=true]:ring-2\",\n\t\"group-data-[focus-visible=true]:ring-focus\",\n\t\"group-data-[focus-visible=true]:ring-offset-2\",\n\t\"group-data-[focus-visible=true]:ring-offset-background\",\n];\n\nexport const ringClasses = [\"outline-none\", \"ring-2\", \"ring-focus\", \"ring-offset-2\", \"ring-offset-background\"];\n\n/**\n * This classes centers the element by using absolute positioning.\n */\nexport const translateCenterClasses = [\"absolute\", \"top-1/2\", \"left-1/2\", \"-translate-x-1/2\", \"-translate-y-1/2\"];\n\nexport const absoluteFullClasses = [\"absolute\", \"inset-0\"];\n\n/**\n * This object defines CSS classes for collapsing adjacent variant borders.\n * It includes classes for different variants like default, primary, secondary, etc.\n */\nexport const collapseAdjacentVariantBorders = {\n\tdefault: [\"[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tprimary: [\"[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tsecondary: [\"[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tsuccess: [\"[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\twarning: [\"[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n\tdanger: [\"[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]\"],\n};\n\nexport const hiddenInputClasses = [\n\t// Font styles\n\t\"font-inherit\",\n\t\"text-[100%]\",\n\t\"leading-[1.15]\",\n\n\t// Reset margins and padding\n\t\"m-0\",\n\t\"p-0\",\n\n\t// Overflow and box-sizing\n\t\"overflow-visible\",\n\t\"box-border\",\n\n\t// Positioning & Hit area\n\t\"absolute\",\n\t\"top-0\",\n\t\"w-full\",\n\t\"h-full\",\n\n\t// Opacity and z-index\n\t\"opacity-[0.0001]\",\n\t\"z-[1]\",\n\n\t// Cursor\n\t\"cursor-pointer\",\n\n\t// Disabled state\n\t\"disabled:cursor-default\",\n];\n"],"names":["dataFocusVisibleClasses","groupDataFocusVisibleClasses","ringClasses","collapseAdjacentVariantBorders","hiddenInputClasses"],"mappings":"aAcO,MAAMA,EAA0B,CACtC,eACA,iCACA,sCACA,0CACA,4CACD,EAEaC,EAA+B,CAC3C,eACA,uCACA,yCACA,6CACA,gDACA,wDACD,EAEaC,EAAc,CAAC,eAAgB,SAAU,aAAc,gBAAiB,wBAAwB,EAahGC,EAAiC,CAC7C,QAAS,CAAC,2EAA2E,EACrF,QAAS,CAAC,2EAA2E,EACrF,UAAW,CAAC,6EAA6E,EACzF,QAAS,CAAC,2EAA2E,EACrF,QAAS,CAAC,2EAA2E,EACrF,OAAQ,CAAC,0EAA0E,CACpF,EAEaC,EAAqB,CAEjC,eACA,cACA,iBAGA,MACA,MAGA,mBACA,aAGA,WACA,QACA,SACA,SAGA,mBACA,QAGA,iBAGA,yBACD"}
@@ -0,0 +1,2 @@
1
+ "use strict";function i(r){var f,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(f=0;f<s;f++)r[f]&&(n=i(r[f]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function o(){for(var r,f,n=0,t="",s=arguments.length;n<s;n++)(r=arguments[n])&&(f=i(r))&&(t&&(t+=" "),t+=f);return t}exports.clsx=o;
2
+ //# sourceMappingURL=clsx-C11secjj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clsx-C11secjj.js","sources":["../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","o","clsx"],"mappings":"aAAA,SAASA,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAa,OAAOH,GAAjB,UAA8B,OAAOA,GAAjB,SAAmBG,GAAGH,UAAoB,OAAOA,GAAjB,SAAmB,GAAG,MAAM,QAAQA,CAAC,EAAE,CAAC,IAAII,EAAEJ,EAAE,OAAO,IAAIC,EAAE,EAAEA,EAAEG,EAAEH,IAAID,EAAEC,CAAC,IAAIC,EAAEH,EAAEC,EAAEC,CAAC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,KAAM,KAAIA,KAAKF,EAAEA,EAAEE,CAAC,IAAIC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASE,GAAM,CAAC,QAAQL,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGC,EAAE,UAAU,OAAOF,EAAEE,EAAEF,KAAKF,EAAE,UAAUE,CAAC,KAAKD,EAAEF,EAAEC,CAAC,KAAKG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC","x_google_ignoreList":[0]}
@@ -0,0 +1,17 @@
1
+ function a(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) {
5
+ var o = r.length;
6
+ for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
7
+ } else for (n in r) r[n] && (t && (t += " "), t += n);
8
+ return t;
9
+ }
10
+ function i() {
11
+ for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
12
+ return t;
13
+ }
14
+ export {
15
+ i as c
16
+ };
17
+ //# sourceMappingURL=clsx-OuTLNxxd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clsx-OuTLNxxd.js","sources":["../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","clsx"],"mappings":"AAAA,SAASA,EAAEC,GAAE;AAAC,MAAIC,GAAEC,GAAEC,IAAE;AAAG,MAAa,OAAOH,KAAjB,YAA8B,OAAOA,KAAjB,SAAmB,CAAAG,KAAGH;AAAA,WAAoB,OAAOA,KAAjB,SAAmB,KAAG,MAAM,QAAQA,CAAC,GAAE;AAAC,QAAI,IAAEA,EAAE;AAAO,SAAIC,IAAE,GAAEA,IAAE,GAAEA,IAAI,CAAAD,EAAEC,CAAC,MAAIC,IAAEH,EAAEC,EAAEC,CAAC,CAAC,OAAKE,MAAIA,KAAG,MAAKA,KAAGD;AAAA,EAAE,MAAM,MAAIA,KAAKF,EAAE,CAAAA,EAAEE,CAAC,MAAIC,MAAIA,KAAG,MAAKA,KAAGD;AAAG,SAAOC;AAAC;AAAQ,SAASC,IAAM;AAAC,WAAQJ,GAAEC,GAAEC,IAAE,GAAEC,IAAE,IAAG,IAAE,UAAU,QAAOD,IAAE,GAAEA,IAAI,EAACF,IAAE,UAAUE,CAAC,OAAKD,IAAEF,EAAEC,CAAC,OAAKG,MAAIA,KAAG,MAAKA,KAAGF;AAAG,SAAOE;AAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const Bt=["top","right","bottom","left"],U=Math.min,C=Math.max,ot=Math.round,it=Math.floor,W=t=>({x:t,y:t}),Nt={left:"right",right:"left",bottom:"top",top:"bottom"},Vt={start:"end",end:"start"};function dt(t,e,n){return C(t,U(e,n))}function $(t,e){return typeof t=="function"?t(e):t}function z(t){return t.split("-")[0]}function Z(t){return t.split("-")[1]}function pt(t){return t==="x"?"y":"x"}function wt(t){return t==="y"?"height":"width"}function V(t){return["top","bottom"].includes(z(t))?"y":"x"}function xt(t){return pt(V(t))}function $t(t,e,n){n===void 0&&(n=!1);const i=Z(t),o=xt(t),s=wt(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=st(r)),[r,st(r)]}function zt(t){const e=st(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>Vt[e])}function _t(t,e,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?s:r;default:return[]}}function It(t,e,n,i){const o=Z(t);let s=_t(z(t),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),e&&(s=s.concat(s.map(mt)))),s}function st(t){return t.replace(/left|right|bottom|top/g,e=>Nt[e])}function jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Lt(t){return typeof t!="number"?jt(t):{top:t,right:t,bottom:t,left:t}}function rt(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function At(t,e,n){let{reference:i,floating:o}=t;const s=V(e),r=xt(e),c=wt(r),l=z(e),f=s==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,h=i[c]/2-o[c]/2;let a;switch(l){case"top":a={x:d,y:i.y-o.height};break;case"bottom":a={x:d,y:i.y+i.height};break;case"right":a={x:i.x+i.width,y:u};break;case"left":a={x:i.x-o.width,y:u};break;default:a={x:i.x,y:i.y}}switch(Z(e)){case"start":a[r]-=h*(n&&f?-1:1);break;case"end":a[r]+=h*(n&&f?-1:1);break}return a}const Yt=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(e));let f=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=At(f,i,l),h=i,a={},m=0;for(let g=0;g<c.length;g++){const{name:p,fn:w}=c[g],{x,y,data:b,reset:v}=await w({x:d,y:u,initialPlacement:i,placement:h,strategy:o,middlewareData:a,rects:f,platform:r,elements:{reference:t,floating:e}});d=x??d,u=y??u,a={...a,[p]:{...a[p],...b}},v&&m<=50&&(m++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=At(f,h,l)),g=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:a}};async function et(t,e){var n;e===void 0&&(e={});const{x:i,y:o,platform:s,rects:r,elements:c,strategy:l}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:a=0}=$(e,t),m=Lt(a),p=c[h?u==="floating"?"reference":"floating":u],w=rt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(p)))==null||n?p:p.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:d,strategy:l})),x=u==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),b=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},v=rt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:l}):x);return{top:(w.top-v.top+m.top)/b.y,bottom:(v.bottom-w.bottom+m.bottom)/b.y,left:(w.left-v.left+m.left)/b.x,right:(v.right-w.right+m.right)/b.x}}const qt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:r,elements:c,middlewareData:l}=e,{element:f,padding:d=0}=$(t,e)||{};if(f==null)return{};const u=Lt(d),h={x:n,y:i},a=xt(o),m=wt(a),g=await r.getDimensions(f),p=a==="y",w=p?"top":"left",x=p?"bottom":"right",y=p?"clientHeight":"clientWidth",b=s.reference[m]+s.reference[a]-h[a]-s.floating[m],v=h[a]-s.reference[a],O=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let A=O?O[y]:0;(!A||!await(r.isElement==null?void 0:r.isElement(O)))&&(A=c.floating[y]||s.floating[m]);const B=b/2-v/2,P=A/2-g[m]/2-1,T=U(u[w],P),I=U(u[x],P),M=T,j=A-g[m]-I,k=A/2-g[m]/2+B,S=dt(M,k,j),X=!l.arrow&&Z(o)!=null&&k!==S&&s.reference[m]/2-(k<M?T:I)-g[m]/2<0,N=X?k<M?k-M:k-j:0;return{[a]:h[a]+N,data:{[a]:S,centerOffset:k-S-N,...X&&{alignmentOffset:N}},reset:X}}}),Ut=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:f}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...p}=$(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=z(o),x=V(c),y=z(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(f.floating)),v=h||(y||!g?[st(c)]:zt(c)),O=m!=="none";!h&&O&&v.push(...It(c,g,m,b));const A=[c,...v],B=await et(e,p),P=[];let T=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&P.push(B[w]),u){const S=$t(o,r,b);P.push(B[S[0]],B[S[1]])}if(T=[...T,{placement:o,overflows:P}],!P.every(S=>S<=0)){var I,M;const S=(((I=s.flip)==null?void 0:I.index)||0)+1,X=A[S];if(X){var j;const Y=u==="alignment"?x!==V(X):!1,F=((j=T[0])==null?void 0:j.overflows[0])>0;if(!Y||F)return{data:{index:S,overflows:T},reset:{placement:X}}}let N=(M=T.filter(Y=>Y.overflows[0]<=0).sort((Y,F)=>Y.overflows[1]-F.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(a){case"bestFit":{var k;const Y=(k=T.filter(F=>{if(O){const q=V(F.placement);return q===x||q==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(q=>q>0).reduce((q,Ht)=>q+Ht,0)]).sort((F,q)=>F[1]-q[1])[0])==null?void 0:k[0];Y&&(N=Y);break}case"initialPlacement":N=c;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Ot(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Rt(t){return Bt.some(e=>t[e]>=0)}const Xt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...o}=$(t,e);switch(i){case"referenceHidden":{const s=await et(e,{...o,elementContext:"reference"}),r=Ot(s,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Rt(r)}}}case"escaped":{const s=await et(e,{...o,altBoundary:!0}),r=Ot(s,n.floating);return{data:{escapedOffsets:r,escaped:Rt(r)}}}default:return{}}}}};async function Kt(t,e){const{placement:n,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=z(n),c=Z(n),l=V(n)==="y",f=["left","top"].includes(r)?-1:1,d=s&&l?-1:1,u=$(e,t);let{mainAxis:h,crossAxis:a,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof m=="number"&&(a=c==="end"?m*-1:m),l?{x:a*d,y:h*f}:{x:h*f,y:a*d}}const Gt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:s,placement:r,middlewareData:c}=e,l=await Kt(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}},Jt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:p=>{let{x:w,y:x}=p;return{x:w,y:x}}},...l}=$(t,e),f={x:n,y:i},d=await et(e,l),u=V(z(o)),h=pt(u);let a=f[h],m=f[u];if(s){const p=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=a+d[p],y=a-d[w];a=dt(x,a,y)}if(r){const p=u==="y"?"top":"left",w=u==="y"?"bottom":"right",x=m+d[p],y=m-d[w];m=dt(x,m,y)}const g=c.fn({...e,[h]:a,[u]:m});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[h]:s,[u]:r}}}}}},Qt=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:s,middlewareData:r}=e,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=$(t,e),d={x:n,y:i},u=V(o),h=pt(u);let a=d[h],m=d[u];const g=$(c,e),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const y=h==="y"?"height":"width",b=s.reference[h]-s.floating[y]+p.mainAxis,v=s.reference[h]+s.reference[y]-p.mainAxis;a<b?a=b:a>v&&(a=v)}if(f){var w,x;const y=h==="y"?"width":"height",b=["top","left"].includes(z(o)),v=s.reference[u]-s.floating[y]+(b&&((w=r.offset)==null?void 0:w[u])||0)+(b?0:p.crossAxis),O=s.reference[u]+s.reference[y]+(b?0:((x=r.offset)==null?void 0:x[u])||0)-(b?p.crossAxis:0);m<v?m=v:m>O&&(m=O)}return{[h]:a,[u]:m}}}},Zt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:s,platform:r,elements:c}=e,{apply:l=()=>{},...f}=$(t,e),d=await et(e,f),u=z(o),h=Z(o),a=V(o)==="y",{width:m,height:g}=s.floating;let p,w;u==="top"||u==="bottom"?(p=u,w=h===(await(r.isRTL==null?void 0:r.isRTL(c.floating))?"start":"end")?"left":"right"):(w=u,p=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,y=m-d.left-d.right,b=U(g-d[p],x),v=U(m-d[w],y),O=!e.middlewareData.shift;let A=b,B=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(B=y),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(A=x),O&&!h){const T=C(d.left,0),I=C(d.right,0),M=C(d.top,0),j=C(d.bottom,0);a?B=m-2*(T!==0||I!==0?T+I:C(d.left,d.right)):A=g-2*(M!==0||j!==0?M+j:C(d.top,d.bottom))}await l({...e,availableWidth:B,availableHeight:A});const P=await r.getDimensions(c.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function ct(){return typeof window<"u"}function tt(t){return Et(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Et(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Et(t){return ct()?t instanceof Node||t instanceof R(t).Node:!1}function L(t){return ct()?t instanceof Element||t instanceof R(t).Element:!1}function D(t){return ct()?t instanceof HTMLElement||t instanceof R(t).HTMLElement:!1}function ht(t){return!ct()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function nt(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=E(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function te(t){return["table","td","th"].includes(tt(t))}function lt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function yt(t){const e=ft(),n=L(t)?E(t):t;return["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function ee(t){let e=_(t);for(;D(e)&&!K(e);){if(yt(e))return e;if(lt(e))return null;e=_(e)}return null}function ft(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function K(t){return["html","body","#document"].includes(tt(t))}function E(t){return R(t).getComputedStyle(t)}function at(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ht(t)&&t.host||H(t);return ht(e)?e.host:e}function St(t){const e=_(t);return K(e)?t.ownerDocument?t.ownerDocument.body:t.body:D(e)&&nt(e)?e:St(e)}function Q(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=St(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),r=R(o);if(s){const c=gt(r);return e.concat(r,r.visualViewport||[],nt(o)?o:[],c&&n?Q(c):[])}return e.concat(o,Q(o,[],n))}function gt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dt(t){const e=E(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=D(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,c=ot(n)!==s||ot(i)!==r;return c&&(n=s,i=r),{width:n,height:i,$:c}}function vt(t){return L(t)?t:t.contextElement}function J(t){const e=vt(t);if(!D(e))return W(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:s}=Dt(e);let r=(s?ot(n.width):n.width)/i,c=(s?ot(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const ne=W(0);function Pt(t){const e=R(t);return!ft()||!e.visualViewport?ne:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ie(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function G(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),s=vt(t);let r=W(1);e&&(i?L(i)&&(r=J(i)):r=J(t));const c=ie(s,n,i)?Pt(s):W(0);let l=(o.left+c.x)/r.x,f=(o.top+c.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(s){const h=R(s),a=i&&L(i)?R(i):i;let m=h,g=gt(m);for(;g&&i&&a!==m;){const p=J(g),w=g.getBoundingClientRect(),x=E(g),y=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*p.x,b=w.top+(g.clientTop+parseFloat(x.paddingTop))*p.y;l*=p.x,f*=p.y,d*=p.x,u*=p.y,l+=y,f+=b,m=R(g),g=gt(m)}}return rt({width:d,height:u,x:l,y:f})}function bt(t,e){const n=at(t).scrollLeft;return e?e.left+n:G(H(t)).left+n}function Mt(t,e,n){n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:bt(t,i)),s=i.top+e.scrollTop;return{x:o,y:s}}function oe(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const s=o==="fixed",r=H(i),c=e?lt(e.floating):!1;if(i===r||c&&s)return n;let l={scrollLeft:0,scrollTop:0},f=W(1);const d=W(0),u=D(i);if((u||!u&&!s)&&((tt(i)!=="body"||nt(r))&&(l=at(i)),D(i))){const a=G(i);f=J(i),d.x=a.x+i.clientLeft,d.y=a.y+i.clientTop}const h=r&&!u&&!s?Mt(r,l,!0):W(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+d.x+h.x,y:n.y*f.y-l.scrollTop*f.y+d.y+h.y}}function se(t){return Array.from(t.getClientRects())}function re(t){const e=H(t),n=at(t),i=t.ownerDocument.body,o=C(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=C(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+bt(t);const c=-n.scrollTop;return E(i).direction==="rtl"&&(r+=C(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:c}}function ce(t,e){const n=R(t),i=H(t),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,c=0,l=0;if(o){s=o.width,r=o.height;const f=ft();(!f||f&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:c,y:l}}function le(t,e){const n=G(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=D(t)?J(t):W(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,l=o*s.x,f=i*s.y;return{width:r,height:c,x:l,y:f}}function Ct(t,e,n){let i;if(e==="viewport")i=ce(t,n);else if(e==="document")i=re(H(t));else if(L(e))i=le(e,n);else{const o=Pt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return rt(i)}function kt(t,e){const n=_(t);return n===e||!L(n)||K(n)?!1:E(n).position==="fixed"||kt(n,e)}function fe(t,e){const n=e.get(t);if(n)return n;let i=Q(t,[],!1).filter(c=>L(c)&&tt(c)!=="body"),o=null;const s=E(t).position==="fixed";let r=s?_(t):t;for(;L(r)&&!K(r);){const c=E(r),l=yt(r);!l&&c.position==="fixed"&&(o=null),(s?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nt(r)&&!l&&kt(t,r))?i=i.filter(d=>d!==r):o=c,r=_(r)}return e.set(t,i),i}function ae(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[...n==="clippingAncestors"?lt(e)?[]:fe(e,this._c):[].concat(n),i],c=r[0],l=r.reduce((f,d)=>{const u=Ct(e,d,o);return f.top=C(u.top,f.top),f.right=U(u.right,f.right),f.bottom=U(u.bottom,f.bottom),f.left=C(u.left,f.left),f},Ct(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ue(t){const{width:e,height:n}=Dt(t);return{width:e,height:n}}function de(t,e,n){const i=D(e),o=H(e),s=n==="fixed",r=G(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const l=W(0);function f(){l.x=bt(o)}if(i||!i&&!s)if((tt(e)!=="body"||nt(o))&&(c=at(e)),i){const a=G(e,!0,s,e);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else o&&f();s&&!i&&o&&f();const d=o&&!i&&!s?Mt(o,c):W(0),u=r.left+c.scrollLeft-l.x-d.x,h=r.top+c.scrollTop-l.y-d.y;return{x:u,y:h,width:r.width,height:r.height}}function ut(t){return E(t).position==="static"}function Tt(t,e){if(!D(t)||E(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function Ft(t,e){const n=R(t);if(lt(t))return n;if(!D(t)){let o=_(t);for(;o&&!K(o);){if(L(o)&&!ut(o))return o;o=_(o)}return n}let i=Tt(t,e);for(;i&&te(i)&&ut(i);)i=Tt(i,e);return i&&K(i)&&ut(i)&&!yt(i)?n:i||ee(t)||n}const me=async function(t){const e=this.getOffsetParent||Ft,n=this.getDimensions,i=await n(t.floating);return{reference:de(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function he(t){return E(t).direction==="rtl"}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:oe,getDocumentElement:H,getClippingRect:ae,getOffsetParent:Ft,getElementRects:me,getClientRects:se,getDimensions:ue,getScale:J,isElement:L,isRTL:he};function Wt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function pe(t,e){let n=null,i;const o=H(t);function s(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const f=t.getBoundingClientRect(),{left:d,top:u,width:h,height:a}=f;if(c||e(),!h||!a)return;const m=it(u),g=it(o.clientWidth-(d+h)),p=it(o.clientHeight-(u+a)),w=it(d),y={rootMargin:-m+"px "+-g+"px "+-p+"px "+-w+"px",threshold:C(0,U(1,l))||1};let b=!0;function v(O){const A=O[0].intersectionRatio;if(A!==l){if(!b)return r();A?r(!1,A):i=setTimeout(()=>{r(!1,1e-7)},1e3)}A===1&&!Wt(f,t.getBoundingClientRect())&&r(),b=!1}try{n=new IntersectionObserver(v,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return r(!0),s}function we(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,f=vt(t),d=o||s?[...f?Q(f):[],...Q(e)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const u=f&&c?pe(f,n):null;let h=-1,a=null;r&&(a=new ResizeObserver(w=>{let[x]=w;x&&x.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=a)==null||y.observe(e)})),n()}),f&&!l&&a.observe(f),a.observe(e));let m,g=l?G(t):null;l&&p();function p(){const w=G(t);g&&!Wt(g,w)&&n(),g=w,m=requestAnimationFrame(p)}return n(),()=>{var w;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),u==null||u(),(w=a)==null||w.disconnect(),a=null,l&&cancelAnimationFrame(m)}}const xe=Gt,ye=Jt,ve=Ut,be=Zt,Ae=Xt,Oe=qt,Re=Qt,Ce=(t,e,n)=>{const i=new Map,o={platform:ge,...n},s={...o.platform,_c:i};return Yt(t,e,{...o,platform:s})};exports.arrow=Oe;exports.autoUpdate=we;exports.computePosition=Ce;exports.flip=ve;exports.getComputedStyle=E;exports.getOverflowAncestors=Q;exports.getParentNode=_;exports.getWindow=R;exports.hide=Ae;exports.isElement=L;exports.isHTMLElement=D;exports.isLastTraversableNode=K;exports.isShadowRoot=ht;exports.isWebKit=ft;exports.limitShift=Re;exports.offset=xe;exports.shift=ye;exports.size=be;
2
+ //# sourceMappingURL=floating-ui.dom-9ZI0iiqa.js.map