@skybin-tech/nebula-ui 0.0.28 → 0.0.29

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 (263) hide show
  1. package/README.md +422 -356
  2. package/dist/cjs/components/Alert/Alert.cjs.map +1 -1
  3. package/dist/cjs/components/Avatar/Avatar.cjs.map +1 -1
  4. package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
  5. package/dist/cjs/components/Button/Button.cjs +1 -1
  6. package/dist/cjs/components/Button/Button.cjs.map +1 -1
  7. package/dist/cjs/components/Card/Card.cjs.map +1 -1
  8. package/dist/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
  9. package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  10. package/dist/cjs/components/Form/Checkbox.cjs.map +1 -1
  11. package/dist/cjs/components/Form/Combobox.cjs +124 -0
  12. package/dist/cjs/components/Form/Combobox.cjs.map +1 -0
  13. package/dist/cjs/components/Form/CountryPicker.cjs +101 -0
  14. package/dist/cjs/components/Form/CountryPicker.cjs.map +1 -0
  15. package/dist/cjs/components/Form/CountrySelect.cjs +111 -0
  16. package/dist/cjs/components/Form/CountrySelect.cjs.map +1 -0
  17. package/dist/cjs/components/Form/DatePicker.cjs +122 -0
  18. package/dist/cjs/components/Form/DatePicker.cjs.map +1 -0
  19. package/dist/cjs/components/Form/FieldLayout.cjs +65 -0
  20. package/dist/cjs/components/Form/FieldLayout.cjs.map +1 -0
  21. package/dist/cjs/components/Form/Form.cjs +3 -1
  22. package/dist/cjs/components/Form/Form.cjs.map +1 -1
  23. package/dist/cjs/components/Form/PhoneInput.cjs +170 -0
  24. package/dist/cjs/components/Form/PhoneInput.cjs.map +1 -0
  25. package/dist/cjs/components/Form/Radio.cjs.map +1 -1
  26. package/dist/cjs/components/Form/Select.cjs +35 -47
  27. package/dist/cjs/components/Form/Select.cjs.map +1 -1
  28. package/dist/cjs/components/Form/TextArea.cjs +1 -1
  29. package/dist/cjs/components/Form/TextArea.cjs.map +1 -1
  30. package/dist/cjs/components/Form/TextBox.cjs +50 -61
  31. package/dist/cjs/components/Form/TextBox.cjs.map +1 -1
  32. package/dist/cjs/components/Form/context.cjs +25 -11
  33. package/dist/cjs/components/Form/context.cjs.map +1 -1
  34. package/dist/cjs/components/Form/hooks.cjs.map +1 -1
  35. package/dist/cjs/components/Form/index.cjs +16 -0
  36. package/dist/cjs/components/Input/Input.cjs +2 -2
  37. package/dist/cjs/components/Input/Input.cjs.map +1 -1
  38. package/dist/cjs/components/Label/Label.cjs.map +1 -1
  39. package/dist/cjs/components/Pagination/Pagination.cjs +4 -4
  40. package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
  41. package/dist/cjs/components/Separator/Separator.cjs.map +1 -1
  42. package/dist/cjs/components/Switch/Switch.cjs.map +1 -1
  43. package/dist/cjs/components/Tabs/Tabs.cjs.map +1 -1
  44. package/dist/cjs/components/Textarea/Textarea.cjs.map +1 -1
  45. package/dist/cjs/data/countries.cjs +1062 -0
  46. package/dist/cjs/data/countries.cjs.map +1 -0
  47. package/dist/cjs/hooks/useDebounce.cjs.map +1 -1
  48. package/dist/cjs/hooks/useToast.cjs.map +1 -1
  49. package/dist/cjs/hooks/useToggle.cjs.map +1 -1
  50. package/dist/cjs/index.cjs +64 -4
  51. package/dist/cjs/primitives/alert-dialog.cjs +73 -0
  52. package/dist/cjs/primitives/alert-dialog.cjs.map +1 -0
  53. package/dist/cjs/primitives/alert.cjs.map +1 -1
  54. package/dist/cjs/primitives/avatar.cjs.map +1 -1
  55. package/dist/cjs/primitives/breadcrumb.cjs +73 -0
  56. package/dist/cjs/primitives/breadcrumb.cjs.map +1 -0
  57. package/dist/cjs/primitives/button.cjs +8 -7
  58. package/dist/cjs/primitives/button.cjs.map +1 -1
  59. package/dist/cjs/primitives/calendar.cjs.map +1 -1
  60. package/dist/cjs/primitives/card.cjs.map +1 -1
  61. package/dist/cjs/primitives/checkbox.cjs.map +1 -1
  62. package/dist/cjs/primitives/command.cjs.map +1 -1
  63. package/dist/cjs/primitives/dialog.cjs.map +1 -1
  64. package/dist/cjs/primitives/dropdown-menu.cjs.map +1 -1
  65. package/dist/cjs/primitives/input-otp.cjs +49 -0
  66. package/dist/cjs/primitives/input-otp.cjs.map +1 -0
  67. package/dist/cjs/primitives/label.cjs.map +1 -1
  68. package/dist/cjs/primitives/popover.cjs.map +1 -1
  69. package/dist/cjs/primitives/progress.cjs +24 -0
  70. package/dist/cjs/primitives/progress.cjs.map +1 -0
  71. package/dist/cjs/primitives/radio-group.cjs.map +1 -1
  72. package/dist/cjs/primitives/scroll-area.cjs.map +1 -1
  73. package/dist/cjs/primitives/select.cjs.map +1 -1
  74. package/dist/cjs/primitives/separator.cjs.map +1 -1
  75. package/dist/cjs/primitives/sheet.cjs +78 -0
  76. package/dist/cjs/primitives/sheet.cjs.map +1 -0
  77. package/dist/cjs/primitives/slider.cjs +23 -0
  78. package/dist/cjs/primitives/slider.cjs.map +1 -0
  79. package/dist/cjs/primitives/sonner.cjs.map +1 -1
  80. package/dist/cjs/primitives/switch.cjs.map +1 -1
  81. package/dist/cjs/primitives/table.cjs.map +1 -1
  82. package/dist/cjs/primitives/tabs.cjs.map +1 -1
  83. package/dist/cjs/primitives/textarea.cjs +1 -1
  84. package/dist/cjs/primitives/textarea.cjs.map +1 -1
  85. package/dist/cjs/primitives/textbox.cjs +1 -1
  86. package/dist/cjs/primitives/textbox.cjs.map +1 -1
  87. package/dist/cjs/primitives/toast.cjs.map +1 -1
  88. package/dist/cjs/primitives/toggle.cjs.map +1 -1
  89. package/dist/components/Alert/Alert.js.map +1 -1
  90. package/dist/components/AlertDialog/AlertDialog.d.ts +2 -0
  91. package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -0
  92. package/dist/components/AlertDialog/index.d.ts +2 -0
  93. package/dist/components/AlertDialog/index.d.ts.map +1 -0
  94. package/dist/components/Avatar/Avatar.js.map +1 -1
  95. package/dist/components/Badge/Badge.js.map +1 -1
  96. package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -0
  97. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  98. package/dist/components/Breadcrumb/index.d.ts +2 -0
  99. package/dist/components/Breadcrumb/index.d.ts.map +1 -0
  100. package/dist/components/Button/Button.d.ts.map +1 -1
  101. package/dist/components/Button/Button.js +2 -2
  102. package/dist/components/Button/Button.js.map +1 -1
  103. package/dist/components/Card/Card.js.map +1 -1
  104. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  105. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  106. package/dist/components/Form/Checkbox.js.map +1 -1
  107. package/dist/components/Form/Combobox.d.ts +31 -0
  108. package/dist/components/Form/Combobox.d.ts.map +1 -0
  109. package/dist/components/Form/Combobox.js +124 -0
  110. package/dist/components/Form/Combobox.js.map +1 -0
  111. package/dist/components/Form/CountryPicker.d.ts +17 -0
  112. package/dist/components/Form/CountryPicker.d.ts.map +1 -0
  113. package/dist/components/Form/CountryPicker.js +101 -0
  114. package/dist/components/Form/CountryPicker.js.map +1 -0
  115. package/dist/components/Form/CountrySelect.d.ts +32 -0
  116. package/dist/components/Form/CountrySelect.d.ts.map +1 -0
  117. package/dist/components/Form/CountrySelect.js +111 -0
  118. package/dist/components/Form/CountrySelect.js.map +1 -0
  119. package/dist/components/Form/DatePicker.d.ts +27 -0
  120. package/dist/components/Form/DatePicker.d.ts.map +1 -0
  121. package/dist/components/Form/DatePicker.js +122 -0
  122. package/dist/components/Form/DatePicker.js.map +1 -0
  123. package/dist/components/Form/FieldLayout.d.ts +15 -0
  124. package/dist/components/Form/FieldLayout.d.ts.map +1 -0
  125. package/dist/components/Form/FieldLayout.js +65 -0
  126. package/dist/components/Form/FieldLayout.js.map +1 -0
  127. package/dist/components/Form/Form.d.ts +1 -1
  128. package/dist/components/Form/Form.d.ts.map +1 -1
  129. package/dist/components/Form/Form.js +3 -1
  130. package/dist/components/Form/Form.js.map +1 -1
  131. package/dist/components/Form/PhoneInput.d.ts +38 -0
  132. package/dist/components/Form/PhoneInput.d.ts.map +1 -0
  133. package/dist/components/Form/PhoneInput.js +170 -0
  134. package/dist/components/Form/PhoneInput.js.map +1 -0
  135. package/dist/components/Form/Radio.js.map +1 -1
  136. package/dist/components/Form/Select.d.ts.map +1 -1
  137. package/dist/components/Form/Select.js +35 -47
  138. package/dist/components/Form/Select.js.map +1 -1
  139. package/dist/components/Form/TextArea.js +1 -1
  140. package/dist/components/Form/TextArea.js.map +1 -1
  141. package/dist/components/Form/TextBox.d.ts.map +1 -1
  142. package/dist/components/Form/TextBox.js +50 -61
  143. package/dist/components/Form/TextBox.js.map +1 -1
  144. package/dist/components/Form/context.d.ts.map +1 -1
  145. package/dist/components/Form/context.js +25 -11
  146. package/dist/components/Form/context.js.map +1 -1
  147. package/dist/components/Form/context.test.d.ts +2 -0
  148. package/dist/components/Form/context.test.d.ts.map +1 -0
  149. package/dist/components/Form/hooks.js.map +1 -1
  150. package/dist/components/Form/index.d.ts +12 -0
  151. package/dist/components/Form/index.d.ts.map +1 -1
  152. package/dist/components/Form/index.js +7 -1
  153. package/dist/components/Input/Input.js +2 -2
  154. package/dist/components/Input/Input.js.map +1 -1
  155. package/dist/components/InputOTP/InputOTP.d.ts +2 -0
  156. package/dist/components/InputOTP/InputOTP.d.ts.map +1 -0
  157. package/dist/components/InputOTP/index.d.ts +2 -0
  158. package/dist/components/InputOTP/index.d.ts.map +1 -0
  159. package/dist/components/Label/Label.js.map +1 -1
  160. package/dist/components/Pagination/Pagination.d.ts +2 -2
  161. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  162. package/dist/components/Pagination/Pagination.js +4 -4
  163. package/dist/components/Pagination/Pagination.js.map +1 -1
  164. package/dist/components/Progress/Progress.d.ts +2 -0
  165. package/dist/components/Progress/Progress.d.ts.map +1 -0
  166. package/dist/components/Progress/index.d.ts +2 -0
  167. package/dist/components/Progress/index.d.ts.map +1 -0
  168. package/dist/components/Separator/Separator.js.map +1 -1
  169. package/dist/components/Sheet/Sheet.d.ts +2 -0
  170. package/dist/components/Sheet/Sheet.d.ts.map +1 -0
  171. package/dist/components/Sheet/index.d.ts +2 -0
  172. package/dist/components/Sheet/index.d.ts.map +1 -0
  173. package/dist/components/Slider/Slider.d.ts +2 -0
  174. package/dist/components/Slider/Slider.d.ts.map +1 -0
  175. package/dist/components/Slider/index.d.ts +2 -0
  176. package/dist/components/Slider/index.d.ts.map +1 -0
  177. package/dist/components/Switch/Switch.js.map +1 -1
  178. package/dist/components/Tabs/Tabs.js.map +1 -1
  179. package/dist/components/Textarea/Textarea.js.map +1 -1
  180. package/dist/data/countries.d.ts +18 -0
  181. package/dist/data/countries.d.ts.map +1 -0
  182. package/dist/data/countries.js +1054 -0
  183. package/dist/data/countries.js.map +1 -0
  184. package/dist/hooks/useDebounce.js.map +1 -1
  185. package/dist/hooks/useToast.js.map +1 -1
  186. package/dist/hooks/useToggle.js.map +1 -1
  187. package/dist/index.d.ts +10 -2
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +16 -5
  190. package/dist/primitives/alert-dialog.d.ts +21 -0
  191. package/dist/primitives/alert-dialog.d.ts.map +1 -0
  192. package/dist/primitives/alert-dialog.js +60 -0
  193. package/dist/primitives/alert-dialog.js.map +1 -0
  194. package/dist/primitives/alert.js.map +1 -1
  195. package/dist/primitives/avatar.js.map +1 -1
  196. package/dist/primitives/breadcrumb.d.ts +20 -0
  197. package/dist/primitives/breadcrumb.d.ts.map +1 -0
  198. package/dist/primitives/breadcrumb.js +65 -0
  199. package/dist/primitives/breadcrumb.js.map +1 -0
  200. package/dist/primitives/button.d.ts +4 -3
  201. package/dist/primitives/button.d.ts.map +1 -1
  202. package/dist/primitives/button.js +7 -7
  203. package/dist/primitives/button.js.map +1 -1
  204. package/dist/primitives/calendar.js.map +1 -1
  205. package/dist/primitives/card.js.map +1 -1
  206. package/dist/primitives/checkbox.js.map +1 -1
  207. package/dist/primitives/command.js.map +1 -1
  208. package/dist/primitives/dialog.js.map +1 -1
  209. package/dist/primitives/dropdown-menu.js.map +1 -1
  210. package/dist/primitives/index.d.ts +6 -0
  211. package/dist/primitives/index.d.ts.map +1 -1
  212. package/dist/primitives/input-otp.d.ts +35 -0
  213. package/dist/primitives/input-otp.d.ts.map +1 -0
  214. package/dist/primitives/input-otp.js +44 -0
  215. package/dist/primitives/input-otp.js.map +1 -0
  216. package/dist/primitives/input.d.ts +1 -3
  217. package/dist/primitives/input.d.ts.map +1 -1
  218. package/dist/primitives/label.js.map +1 -1
  219. package/dist/primitives/popover.js.map +1 -1
  220. package/dist/primitives/progress.d.ts +5 -0
  221. package/dist/primitives/progress.d.ts.map +1 -0
  222. package/dist/primitives/progress.js +21 -0
  223. package/dist/primitives/progress.js.map +1 -0
  224. package/dist/primitives/radio-group.js.map +1 -1
  225. package/dist/primitives/scroll-area.js.map +1 -1
  226. package/dist/primitives/select.js.map +1 -1
  227. package/dist/primitives/separator.js.map +1 -1
  228. package/dist/primitives/sheet.d.ts +26 -0
  229. package/dist/primitives/sheet.d.ts.map +1 -0
  230. package/dist/primitives/sheet.js +66 -0
  231. package/dist/primitives/sheet.js.map +1 -0
  232. package/dist/primitives/slider.d.ts +5 -0
  233. package/dist/primitives/slider.d.ts.map +1 -0
  234. package/dist/primitives/slider.js +20 -0
  235. package/dist/primitives/slider.js.map +1 -0
  236. package/dist/primitives/sonner.js.map +1 -1
  237. package/dist/primitives/switch.js.map +1 -1
  238. package/dist/primitives/table.js.map +1 -1
  239. package/dist/primitives/tabs.js.map +1 -1
  240. package/dist/primitives/textarea.js +1 -1
  241. package/dist/primitives/textarea.js.map +1 -1
  242. package/dist/primitives/textbox.js +1 -1
  243. package/dist/primitives/textbox.js.map +1 -1
  244. package/dist/primitives/toast.js.map +1 -1
  245. package/dist/primitives/toggle.js.map +1 -1
  246. package/package.json +163 -55
  247. package/src/styles/index.css +107 -0
  248. package/dist/cjs/primitives/input.cjs +0 -20
  249. package/dist/cjs/primitives/input.cjs.map +0 -1
  250. package/dist/primitives/input.js +0 -18
  251. package/dist/primitives/input.js.map +0 -1
  252. package/dist/stories/Button.d.ts +0 -15
  253. package/dist/stories/Button.d.ts.map +0 -1
  254. package/dist/stories/Button.stories.d.ts +0 -24
  255. package/dist/stories/Button.stories.d.ts.map +0 -1
  256. package/dist/stories/Header.d.ts +0 -12
  257. package/dist/stories/Header.d.ts.map +0 -1
  258. package/dist/stories/Header.stories.d.ts +0 -19
  259. package/dist/stories/Header.stories.d.ts.map +0 -1
  260. package/dist/stories/Page.d.ts +0 -3
  261. package/dist/stories/Page.d.ts.map +0 -1
  262. package/dist/stories/Page.stories.d.ts +0 -13
  263. package/dist/stories/Page.stories.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.cjs","names":[],"sources":["../../../src/data/countries.ts"],"sourcesContent":["export interface Country {\n code: string;\n name: string;\n dialCode: string;\n}\n\nexport const COUNTRIES: Country[] = [\n {\n \"code\": \"AF\",\n \"name\": \"Afghanistan\",\n \"dialCode\": \"+93\"\n },\n {\n \"code\": \"AL\",\n \"name\": \"Albania\",\n \"dialCode\": \"+355\"\n },\n {\n \"code\": \"DZ\",\n \"name\": \"Algeria\",\n \"dialCode\": \"+213\"\n },\n {\n \"code\": \"AD\",\n \"name\": \"Andorra\",\n \"dialCode\": \"+376\"\n },\n {\n \"code\": \"AO\",\n \"name\": \"Angola\",\n \"dialCode\": \"+244\"\n },\n {\n \"code\": \"AG\",\n \"name\": \"Antigua and Barbuda\",\n \"dialCode\": \"+1268\"\n },\n {\n \"code\": \"AR\",\n \"name\": \"Argentina\",\n \"dialCode\": \"+54\"\n },\n {\n \"code\": \"AM\",\n \"name\": \"Armenia\",\n \"dialCode\": \"+374\"\n },\n {\n \"code\": \"AU\",\n \"name\": \"Australia\",\n \"dialCode\": \"+61\"\n },\n {\n \"code\": \"AT\",\n \"name\": \"Austria\",\n \"dialCode\": \"+43\"\n },\n {\n \"code\": \"AZ\",\n \"name\": \"Azerbaijan\",\n \"dialCode\": \"+994\"\n },\n {\n \"code\": \"BS\",\n \"name\": \"Bahamas\",\n \"dialCode\": \"+1242\"\n },\n {\n \"code\": \"BH\",\n \"name\": \"Bahrain\",\n \"dialCode\": \"+973\"\n },\n {\n \"code\": \"BD\",\n \"name\": \"Bangladesh\",\n \"dialCode\": \"+880\"\n },\n {\n \"code\": \"BB\",\n \"name\": \"Barbados\",\n \"dialCode\": \"+1246\"\n },\n {\n \"code\": \"BY\",\n \"name\": \"Belarus\",\n \"dialCode\": \"+375\"\n },\n {\n \"code\": \"BE\",\n \"name\": \"Belgium\",\n \"dialCode\": \"+32\"\n },\n {\n \"code\": \"BZ\",\n \"name\": \"Belize\",\n \"dialCode\": \"+501\"\n },\n {\n \"code\": \"BJ\",\n \"name\": \"Benin\",\n \"dialCode\": \"+229\"\n },\n {\n \"code\": \"BT\",\n \"name\": \"Bhutan\",\n \"dialCode\": \"+975\"\n },\n {\n \"code\": \"BO\",\n \"name\": \"Bolivia\",\n \"dialCode\": \"+591\"\n },\n {\n \"code\": \"BA\",\n \"name\": \"Bosnia and Herzegovina\",\n \"dialCode\": \"+387\"\n },\n {\n \"code\": \"BW\",\n \"name\": \"Botswana\",\n \"dialCode\": \"+267\"\n },\n {\n \"code\": \"BR\",\n \"name\": \"Brazil\",\n \"dialCode\": \"+55\"\n },\n {\n \"code\": \"BN\",\n \"name\": \"Brunei\",\n \"dialCode\": \"+673\"\n },\n {\n \"code\": \"BG\",\n \"name\": \"Bulgaria\",\n \"dialCode\": \"+359\"\n },\n {\n \"code\": \"BF\",\n \"name\": \"Burkina Faso\",\n \"dialCode\": \"+226\"\n },\n {\n \"code\": \"BI\",\n \"name\": \"Burundi\",\n \"dialCode\": \"+257\"\n },\n {\n \"code\": \"CV\",\n \"name\": \"Cabo Verde\",\n \"dialCode\": \"+238\"\n },\n {\n \"code\": \"KH\",\n \"name\": \"Cambodia\",\n \"dialCode\": \"+855\"\n },\n {\n \"code\": \"CM\",\n \"name\": \"Cameroon\",\n \"dialCode\": \"+237\"\n },\n {\n \"code\": \"CA\",\n \"name\": \"Canada\",\n \"dialCode\": \"+1\"\n },\n {\n \"code\": \"CF\",\n \"name\": \"Central African Republic\",\n \"dialCode\": \"+236\"\n },\n {\n \"code\": \"TD\",\n \"name\": \"Chad\",\n \"dialCode\": \"+235\"\n },\n {\n \"code\": \"CL\",\n \"name\": \"Chile\",\n \"dialCode\": \"+56\"\n },\n {\n \"code\": \"CN\",\n \"name\": \"China\",\n \"dialCode\": \"+86\"\n },\n {\n \"code\": \"CO\",\n \"name\": \"Colombia\",\n \"dialCode\": \"+57\"\n },\n {\n \"code\": \"KM\",\n \"name\": \"Comoros\",\n \"dialCode\": \"+269\"\n },\n {\n \"code\": \"CG\",\n \"name\": \"Congo\",\n \"dialCode\": \"+242\"\n },\n {\n \"code\": \"CD\",\n \"name\": \"Congo (DRC)\",\n \"dialCode\": \"+243\"\n },\n {\n \"code\": \"CR\",\n \"name\": \"Costa Rica\",\n \"dialCode\": \"+506\"\n },\n {\n \"code\": \"CI\",\n \"name\": \"Cote d Ivoire\",\n \"dialCode\": \"+225\"\n },\n {\n \"code\": \"HR\",\n \"name\": \"Croatia\",\n \"dialCode\": \"+385\"\n },\n {\n \"code\": \"CU\",\n \"name\": \"Cuba\",\n \"dialCode\": \"+53\"\n },\n {\n \"code\": \"CY\",\n \"name\": \"Cyprus\",\n \"dialCode\": \"+357\"\n },\n {\n \"code\": \"CZ\",\n \"name\": \"Czechia\",\n \"dialCode\": \"+420\"\n },\n {\n \"code\": \"DK\",\n \"name\": \"Denmark\",\n \"dialCode\": \"+45\"\n },\n {\n \"code\": \"DJ\",\n \"name\": \"Djibouti\",\n \"dialCode\": \"+253\"\n },\n {\n \"code\": \"DM\",\n \"name\": \"Dominica\",\n \"dialCode\": \"+1767\"\n },\n {\n \"code\": \"DO\",\n \"name\": \"Dominican Republic\",\n \"dialCode\": \"+1809\"\n },\n {\n \"code\": \"EC\",\n \"name\": \"Ecuador\",\n \"dialCode\": \"+593\"\n },\n {\n \"code\": \"EG\",\n \"name\": \"Egypt\",\n \"dialCode\": \"+20\"\n },\n {\n \"code\": \"SV\",\n \"name\": \"El Salvador\",\n \"dialCode\": \"+503\"\n },\n {\n \"code\": \"GQ\",\n \"name\": \"Equatorial Guinea\",\n \"dialCode\": \"+240\"\n },\n {\n \"code\": \"ER\",\n \"name\": \"Eritrea\",\n \"dialCode\": \"+291\"\n },\n {\n \"code\": \"EE\",\n \"name\": \"Estonia\",\n \"dialCode\": \"+372\"\n },\n {\n \"code\": \"SZ\",\n \"name\": \"Eswatini\",\n \"dialCode\": \"+268\"\n },\n {\n \"code\": \"ET\",\n \"name\": \"Ethiopia\",\n \"dialCode\": \"+251\"\n },\n {\n \"code\": \"FJ\",\n \"name\": \"Fiji\",\n \"dialCode\": \"+679\"\n },\n {\n \"code\": \"FI\",\n \"name\": \"Finland\",\n \"dialCode\": \"+358\"\n },\n {\n \"code\": \"FR\",\n \"name\": \"France\",\n \"dialCode\": \"+33\"\n },\n {\n \"code\": \"GA\",\n \"name\": \"Gabon\",\n \"dialCode\": \"+241\"\n },\n {\n \"code\": \"GM\",\n \"name\": \"Gambia\",\n \"dialCode\": \"+220\"\n },\n {\n \"code\": \"GE\",\n \"name\": \"Georgia\",\n \"dialCode\": \"+995\"\n },\n {\n \"code\": \"DE\",\n \"name\": \"Germany\",\n \"dialCode\": \"+49\"\n },\n {\n \"code\": \"GH\",\n \"name\": \"Ghana\",\n \"dialCode\": \"+233\"\n },\n {\n \"code\": \"GR\",\n \"name\": \"Greece\",\n \"dialCode\": \"+30\"\n },\n {\n \"code\": \"GD\",\n \"name\": \"Grenada\",\n \"dialCode\": \"+1473\"\n },\n {\n \"code\": \"GT\",\n \"name\": \"Guatemala\",\n \"dialCode\": \"+502\"\n },\n {\n \"code\": \"GN\",\n \"name\": \"Guinea\",\n \"dialCode\": \"+224\"\n },\n {\n \"code\": \"GW\",\n \"name\": \"Guinea-Bissau\",\n \"dialCode\": \"+245\"\n },\n {\n \"code\": \"GY\",\n \"name\": \"Guyana\",\n \"dialCode\": \"+592\"\n },\n {\n \"code\": \"HT\",\n \"name\": \"Haiti\",\n \"dialCode\": \"+509\"\n },\n {\n \"code\": \"HN\",\n \"name\": \"Honduras\",\n \"dialCode\": \"+504\"\n },\n {\n \"code\": \"HK\",\n \"name\": \"Hong Kong\",\n \"dialCode\": \"+852\"\n },\n {\n \"code\": \"HU\",\n \"name\": \"Hungary\",\n \"dialCode\": \"+36\"\n },\n {\n \"code\": \"IS\",\n \"name\": \"Iceland\",\n \"dialCode\": \"+354\"\n },\n {\n \"code\": \"IN\",\n \"name\": \"India\",\n \"dialCode\": \"+91\"\n },\n {\n \"code\": \"ID\",\n \"name\": \"Indonesia\",\n \"dialCode\": \"+62\"\n },\n {\n \"code\": \"IR\",\n \"name\": \"Iran\",\n \"dialCode\": \"+98\"\n },\n {\n \"code\": \"IQ\",\n \"name\": \"Iraq\",\n \"dialCode\": \"+964\"\n },\n {\n \"code\": \"IE\",\n \"name\": \"Ireland\",\n \"dialCode\": \"+353\"\n },\n {\n \"code\": \"IL\",\n \"name\": \"Israel\",\n \"dialCode\": \"+972\"\n },\n {\n \"code\": \"IT\",\n \"name\": \"Italy\",\n \"dialCode\": \"+39\"\n },\n {\n \"code\": \"JM\",\n \"name\": \"Jamaica\",\n \"dialCode\": \"+1876\"\n },\n {\n \"code\": \"JP\",\n \"name\": \"Japan\",\n \"dialCode\": \"+81\"\n },\n {\n \"code\": \"JO\",\n \"name\": \"Jordan\",\n \"dialCode\": \"+962\"\n },\n {\n \"code\": \"KZ\",\n \"name\": \"Kazakhstan\",\n \"dialCode\": \"+7\"\n },\n {\n \"code\": \"KE\",\n \"name\": \"Kenya\",\n \"dialCode\": \"+254\"\n },\n {\n \"code\": \"KI\",\n \"name\": \"Kiribati\",\n \"dialCode\": \"+686\"\n },\n {\n \"code\": \"KP\",\n \"name\": \"Korea (North)\",\n \"dialCode\": \"+850\"\n },\n {\n \"code\": \"KR\",\n \"name\": \"Korea (South)\",\n \"dialCode\": \"+82\"\n },\n {\n \"code\": \"XK\",\n \"name\": \"Kosovo\",\n \"dialCode\": \"+383\"\n },\n {\n \"code\": \"KW\",\n \"name\": \"Kuwait\",\n \"dialCode\": \"+965\"\n },\n {\n \"code\": \"KG\",\n \"name\": \"Kyrgyzstan\",\n \"dialCode\": \"+996\"\n },\n {\n \"code\": \"LA\",\n \"name\": \"Laos\",\n \"dialCode\": \"+856\"\n },\n {\n \"code\": \"LV\",\n \"name\": \"Latvia\",\n \"dialCode\": \"+371\"\n },\n {\n \"code\": \"LB\",\n \"name\": \"Lebanon\",\n \"dialCode\": \"+961\"\n },\n {\n \"code\": \"LS\",\n \"name\": \"Lesotho\",\n \"dialCode\": \"+266\"\n },\n {\n \"code\": \"LR\",\n \"name\": \"Liberia\",\n \"dialCode\": \"+231\"\n },\n {\n \"code\": \"LY\",\n \"name\": \"Libya\",\n \"dialCode\": \"+218\"\n },\n {\n \"code\": \"LI\",\n \"name\": \"Liechtenstein\",\n \"dialCode\": \"+423\"\n },\n {\n \"code\": \"LT\",\n \"name\": \"Lithuania\",\n \"dialCode\": \"+370\"\n },\n {\n \"code\": \"LU\",\n \"name\": \"Luxembourg\",\n \"dialCode\": \"+352\"\n },\n {\n \"code\": \"MO\",\n \"name\": \"Macao\",\n \"dialCode\": \"+853\"\n },\n {\n \"code\": \"MG\",\n \"name\": \"Madagascar\",\n \"dialCode\": \"+261\"\n },\n {\n \"code\": \"MW\",\n \"name\": \"Malawi\",\n \"dialCode\": \"+265\"\n },\n {\n \"code\": \"MY\",\n \"name\": \"Malaysia\",\n \"dialCode\": \"+60\"\n },\n {\n \"code\": \"MV\",\n \"name\": \"Maldives\",\n \"dialCode\": \"+960\"\n },\n {\n \"code\": \"ML\",\n \"name\": \"Mali\",\n \"dialCode\": \"+223\"\n },\n {\n \"code\": \"MT\",\n \"name\": \"Malta\",\n \"dialCode\": \"+356\"\n },\n {\n \"code\": \"MH\",\n \"name\": \"Marshall Islands\",\n \"dialCode\": \"+692\"\n },\n {\n \"code\": \"MR\",\n \"name\": \"Mauritania\",\n \"dialCode\": \"+222\"\n },\n {\n \"code\": \"MU\",\n \"name\": \"Mauritius\",\n \"dialCode\": \"+230\"\n },\n {\n \"code\": \"MX\",\n \"name\": \"Mexico\",\n \"dialCode\": \"+52\"\n },\n {\n \"code\": \"FM\",\n \"name\": \"Micronesia\",\n \"dialCode\": \"+691\"\n },\n {\n \"code\": \"MD\",\n \"name\": \"Moldova\",\n \"dialCode\": \"+373\"\n },\n {\n \"code\": \"MC\",\n \"name\": \"Monaco\",\n \"dialCode\": \"+377\"\n },\n {\n \"code\": \"MN\",\n \"name\": \"Mongolia\",\n \"dialCode\": \"+976\"\n },\n {\n \"code\": \"ME\",\n \"name\": \"Montenegro\",\n \"dialCode\": \"+382\"\n },\n {\n \"code\": \"MA\",\n \"name\": \"Morocco\",\n \"dialCode\": \"+212\"\n },\n {\n \"code\": \"MZ\",\n \"name\": \"Mozambique\",\n \"dialCode\": \"+258\"\n },\n {\n \"code\": \"MM\",\n \"name\": \"Myanmar\",\n \"dialCode\": \"+95\"\n },\n {\n \"code\": \"NA\",\n \"name\": \"Namibia\",\n \"dialCode\": \"+264\"\n },\n {\n \"code\": \"NR\",\n \"name\": \"Nauru\",\n \"dialCode\": \"+674\"\n },\n {\n \"code\": \"NP\",\n \"name\": \"Nepal\",\n \"dialCode\": \"+977\"\n },\n {\n \"code\": \"NL\",\n \"name\": \"Netherlands\",\n \"dialCode\": \"+31\"\n },\n {\n \"code\": \"NZ\",\n \"name\": \"New Zealand\",\n \"dialCode\": \"+64\"\n },\n {\n \"code\": \"NI\",\n \"name\": \"Nicaragua\",\n \"dialCode\": \"+505\"\n },\n {\n \"code\": \"NE\",\n \"name\": \"Niger\",\n \"dialCode\": \"+227\"\n },\n {\n \"code\": \"NG\",\n \"name\": \"Nigeria\",\n \"dialCode\": \"+234\"\n },\n {\n \"code\": \"MK\",\n \"name\": \"North Macedonia\",\n \"dialCode\": \"+389\"\n },\n {\n \"code\": \"NO\",\n \"name\": \"Norway\",\n \"dialCode\": \"+47\"\n },\n {\n \"code\": \"OM\",\n \"name\": \"Oman\",\n \"dialCode\": \"+968\"\n },\n {\n \"code\": \"PK\",\n \"name\": \"Pakistan\",\n \"dialCode\": \"+92\"\n },\n {\n \"code\": \"PW\",\n \"name\": \"Palau\",\n \"dialCode\": \"+680\"\n },\n {\n \"code\": \"PS\",\n \"name\": \"Palestine\",\n \"dialCode\": \"+970\"\n },\n {\n \"code\": \"PA\",\n \"name\": \"Panama\",\n \"dialCode\": \"+507\"\n },\n {\n \"code\": \"PG\",\n \"name\": \"Papua New Guinea\",\n \"dialCode\": \"+675\"\n },\n {\n \"code\": \"PY\",\n \"name\": \"Paraguay\",\n \"dialCode\": \"+595\"\n },\n {\n \"code\": \"PE\",\n \"name\": \"Peru\",\n \"dialCode\": \"+51\"\n },\n {\n \"code\": \"PH\",\n \"name\": \"Philippines\",\n \"dialCode\": \"+63\"\n },\n {\n \"code\": \"PL\",\n \"name\": \"Poland\",\n \"dialCode\": \"+48\"\n },\n {\n \"code\": \"PT\",\n \"name\": \"Portugal\",\n \"dialCode\": \"+351\"\n },\n {\n \"code\": \"PR\",\n \"name\": \"Puerto Rico\",\n \"dialCode\": \"+1787\"\n },\n {\n \"code\": \"QA\",\n \"name\": \"Qatar\",\n \"dialCode\": \"+974\"\n },\n {\n \"code\": \"RO\",\n \"name\": \"Romania\",\n \"dialCode\": \"+40\"\n },\n {\n \"code\": \"RU\",\n \"name\": \"Russia\",\n \"dialCode\": \"+7\"\n },\n {\n \"code\": \"RW\",\n \"name\": \"Rwanda\",\n \"dialCode\": \"+250\"\n },\n {\n \"code\": \"KN\",\n \"name\": \"Saint Kitts and Nevis\",\n \"dialCode\": \"+1869\"\n },\n {\n \"code\": \"LC\",\n \"name\": \"Saint Lucia\",\n \"dialCode\": \"+1758\"\n },\n {\n \"code\": \"VC\",\n \"name\": \"Saint Vincent and the Grenadines\",\n \"dialCode\": \"+1784\"\n },\n {\n \"code\": \"WS\",\n \"name\": \"Samoa\",\n \"dialCode\": \"+685\"\n },\n {\n \"code\": \"SM\",\n \"name\": \"San Marino\",\n \"dialCode\": \"+378\"\n },\n {\n \"code\": \"ST\",\n \"name\": \"Sao Tome and Principe\",\n \"dialCode\": \"+239\"\n },\n {\n \"code\": \"SA\",\n \"name\": \"Saudi Arabia\",\n \"dialCode\": \"+966\"\n },\n {\n \"code\": \"SN\",\n \"name\": \"Senegal\",\n \"dialCode\": \"+221\"\n },\n {\n \"code\": \"RS\",\n \"name\": \"Serbia\",\n \"dialCode\": \"+381\"\n },\n {\n \"code\": \"SC\",\n \"name\": \"Seychelles\",\n \"dialCode\": \"+248\"\n },\n {\n \"code\": \"SL\",\n \"name\": \"Sierra Leone\",\n \"dialCode\": \"+232\"\n },\n {\n \"code\": \"SG\",\n \"name\": \"Singapore\",\n \"dialCode\": \"+65\"\n },\n {\n \"code\": \"SK\",\n \"name\": \"Slovakia\",\n \"dialCode\": \"+421\"\n },\n {\n \"code\": \"SI\",\n \"name\": \"Slovenia\",\n \"dialCode\": \"+386\"\n },\n {\n \"code\": \"SB\",\n \"name\": \"Solomon Islands\",\n \"dialCode\": \"+677\"\n },\n {\n \"code\": \"SO\",\n \"name\": \"Somalia\",\n \"dialCode\": \"+252\"\n },\n {\n \"code\": \"ZA\",\n \"name\": \"South Africa\",\n \"dialCode\": \"+27\"\n },\n {\n \"code\": \"SS\",\n \"name\": \"South Sudan\",\n \"dialCode\": \"+211\"\n },\n {\n \"code\": \"ES\",\n \"name\": \"Spain\",\n \"dialCode\": \"+34\"\n },\n {\n \"code\": \"LK\",\n \"name\": \"Sri Lanka\",\n \"dialCode\": \"+94\"\n },\n {\n \"code\": \"SD\",\n \"name\": \"Sudan\",\n \"dialCode\": \"+249\"\n },\n {\n \"code\": \"SR\",\n \"name\": \"Suriname\",\n \"dialCode\": \"+597\"\n },\n {\n \"code\": \"SE\",\n \"name\": \"Sweden\",\n \"dialCode\": \"+46\"\n },\n {\n \"code\": \"CH\",\n \"name\": \"Switzerland\",\n \"dialCode\": \"+41\"\n },\n {\n \"code\": \"SY\",\n \"name\": \"Syria\",\n \"dialCode\": \"+963\"\n },\n {\n \"code\": \"TW\",\n \"name\": \"Taiwan\",\n \"dialCode\": \"+886\"\n },\n {\n \"code\": \"TJ\",\n \"name\": \"Tajikistan\",\n \"dialCode\": \"+992\"\n },\n {\n \"code\": \"TZ\",\n \"name\": \"Tanzania\",\n \"dialCode\": \"+255\"\n },\n {\n \"code\": \"TH\",\n \"name\": \"Thailand\",\n \"dialCode\": \"+66\"\n },\n {\n \"code\": \"TL\",\n \"name\": \"Timor-Leste\",\n \"dialCode\": \"+670\"\n },\n {\n \"code\": \"TG\",\n \"name\": \"Togo\",\n \"dialCode\": \"+228\"\n },\n {\n \"code\": \"TO\",\n \"name\": \"Tonga\",\n \"dialCode\": \"+676\"\n },\n {\n \"code\": \"TT\",\n \"name\": \"Trinidad and Tobago\",\n \"dialCode\": \"+1868\"\n },\n {\n \"code\": \"TN\",\n \"name\": \"Tunisia\",\n \"dialCode\": \"+216\"\n },\n {\n \"code\": \"TR\",\n \"name\": \"Turkey\",\n \"dialCode\": \"+90\"\n },\n {\n \"code\": \"TM\",\n \"name\": \"Turkmenistan\",\n \"dialCode\": \"+993\"\n },\n {\n \"code\": \"TV\",\n \"name\": \"Tuvalu\",\n \"dialCode\": \"+688\"\n },\n {\n \"code\": \"UG\",\n \"name\": \"Uganda\",\n \"dialCode\": \"+256\"\n },\n {\n \"code\": \"UA\",\n \"name\": \"Ukraine\",\n \"dialCode\": \"+380\"\n },\n {\n \"code\": \"AE\",\n \"name\": \"United Arab Emirates\",\n \"dialCode\": \"+971\"\n },\n {\n \"code\": \"GB\",\n \"name\": \"United Kingdom\",\n \"dialCode\": \"+44\"\n },\n {\n \"code\": \"US\",\n \"name\": \"United States\",\n \"dialCode\": \"+1\"\n },\n {\n \"code\": \"UY\",\n \"name\": \"Uruguay\",\n \"dialCode\": \"+598\"\n },\n {\n \"code\": \"UZ\",\n \"name\": \"Uzbekistan\",\n \"dialCode\": \"+998\"\n },\n {\n \"code\": \"VU\",\n \"name\": \"Vanuatu\",\n \"dialCode\": \"+678\"\n },\n {\n \"code\": \"VA\",\n \"name\": \"Vatican City\",\n \"dialCode\": \"+379\"\n },\n {\n \"code\": \"VE\",\n \"name\": \"Venezuela\",\n \"dialCode\": \"+58\"\n },\n {\n \"code\": \"VN\",\n \"name\": \"Vietnam\",\n \"dialCode\": \"+84\"\n },\n {\n \"code\": \"YE\",\n \"name\": \"Yemen\",\n \"dialCode\": \"+967\"\n },\n {\n \"code\": \"ZM\",\n \"name\": \"Zambia\",\n \"dialCode\": \"+260\"\n },\n {\n \"code\": \"ZW\",\n \"name\": \"Zimbabwe\",\n \"dialCode\": \"+263\"\n }\n];\n\nexport function getCountryFlag(code: string): string {\n if (!code || code.length !== 2) {\n return \"\";\n }\n\n const upper = code.toUpperCase();\n return String.fromCodePoint(\n ...upper.split(\"\").map((char) => 127397 + char.charCodeAt(0))\n );\n}\n\nexport function getCountryByCode(code: string): Country | undefined {\n return COUNTRIES.find((country) => country.code === code.toUpperCase());\n}\n\nexport function getCountryName(code: string): string {\n return getCountryByCode(code)?.name ?? code;\n}\n\nexport function getCountryDialCode(code: string): string {\n return getCountryByCode(code)?.dialCode ?? \"\";\n}\n\nexport function sortCountriesWithPriority(\n countries: Country[],\n priorityCountries: string[] = []\n): Country[] {\n const prioritySet = new Set(priorityCountries.map((code) => code.toUpperCase()));\n const priority = priorityCountries\n .map((code) => countries.find((country) => country.code === code.toUpperCase()))\n .filter((country): country is Country => !!country);\n const rest = countries.filter((country) => !prioritySet.has(country.code));\n return [...priority, ...rest];\n}\n\nexport function filterCountries(countries: Country[], query: string): Country[] {\n const normalizedQuery = query.trim().toLowerCase();\n if (!normalizedQuery) {\n return countries;\n }\n\n return countries.filter(\n (country) =>\n country.name.toLowerCase().includes(normalizedQuery) ||\n country.code.toLowerCase().includes(normalizedQuery) ||\n country.dialCode.includes(normalizedQuery)\n );\n}\n\nconst DIAL_CODE_DIGITS = new Map(\n COUNTRIES.map((country) => [country.code, country.dialCode.replace(/\\D/g, \"\")])\n);\n\nexport function formatE164(countryCode: string, nationalNumber: string): string {\n const digits = nationalNumber.replace(/\\D/g, \"\");\n const dialDigits = DIAL_CODE_DIGITS.get(countryCode.toUpperCase());\n if (!dialDigits || !digits) {\n return \"\";\n }\n\n return `+${dialDigits}${digits}`;\n}\n\nexport function parseE164(value: string): { countryCode: string; nationalNumber: string } | null {\n if (!value?.startsWith(\"+\")) {\n return null;\n }\n\n const digits = value.slice(1).replace(/\\D/g, \"\");\n if (!digits) {\n return null;\n }\n\n const sortedCountries = [...COUNTRIES].sort(\n (left, right) =>\n right.dialCode.replace(/\\D/g, \"\").length - left.dialCode.replace(/\\D/g, \"\").length\n );\n\n for (const country of sortedCountries) {\n const dialDigits = country.dialCode.replace(/\\D/g, \"\");\n if (digits.startsWith(dialDigits)) {\n return {\n countryCode: country.code,\n nationalNumber: digits.slice(dialDigits.length),\n };\n }\n }\n\n return null;\n}"],"mappings":";;AAMA,IAAa,YAAuB;CAClC;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ;EACR,YAAY;CACd;CACA;EACE,QAAQ;EACR,QAAQ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;AAEA,SAAgB,UAAU,OAAuE;CAC/F,IAAI,CAAC,OAAO,WAAW,GAAG,GACxB,OAAO;CAGT,MAAM,SAAS,MAAM,MAAM,CAAC,CAAC,CAAC,QAAQ,OAAO,EAAE;CAC/C,IAAI,CAAC,QACH,OAAO;CAGT,MAAM,kBAAkB,CAAC,GAAG,SAAS,CAAC,CAAC,MACpC,MAAM,UACL,MAAM,SAAS,QAAQ,OAAO,EAAE,CAAC,CAAC,SAAS,KAAK,SAAS,QAAQ,OAAO,EAAE,CAAC,CAAC,MAChF;CAEA,KAAK,MAAM,WAAW,iBAAiB;EACrC,MAAM,aAAa,QAAQ,SAAS,QAAQ,OAAO,EAAE;EACrD,IAAI,OAAO,WAAW,UAAU,GAC9B,OAAO;GACL,aAAa,QAAQ;GACrB,gBAAgB,OAAO,MAAM,WAAW,MAAM;EAChD;CAEJ;CAEA,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDebounce.cjs","names":[],"sources":["../../../src/hooks/useDebounce.ts"],"sourcesContent":["'use client';\n\nimport { useState, useEffect } from \"react\";\r\n\r\n/**\r\n * A hook that debounces a value by a specified delay\r\n * @param value - The value to debounce\r\n * @param delay - The delay in milliseconds (default: 500)\r\n * @returns The debounced value\r\n */\r\nexport function useDebounce<T>(value: T, delay = 500): T {\r\n const [debouncedValue, setDebouncedValue] = useState<T>(value);\r\n\r\n useEffect(() => {\r\n const timer = setTimeout(() => {\r\n setDebouncedValue(value);\r\n }, delay);\r\n\r\n return () => {\r\n clearTimeout(timer);\r\n };\r\n }, [value, delay]);\r\n\r\n return debouncedValue;\r\n}\r\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,YAAe,OAAU,QAAQ,KAAQ;CACvD,MAAM,CAAC,gBAAgB,sBAAA,GAAA,MAAA,SAAA,CAAiC,KAAK;CAE7D,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,MAAM,QAAQ,iBAAiB;GAC7B,kBAAkB,KAAK;EACzB,GAAG,KAAK;EAER,aAAa;GACX,aAAa,KAAK;EACpB;CACF,GAAG,CAAC,OAAO,KAAK,CAAC;CAEjB,OAAO;AACT"}
1
+ {"version":3,"file":"useDebounce.cjs","names":[],"sources":["../../../src/hooks/useDebounce.ts"],"sourcesContent":["'use client';\r\n\r\nimport { useState, useEffect } from \"react\";\r\n\r\n/**\r\n * A hook that debounces a value by a specified delay\r\n * @param value - The value to debounce\r\n * @param delay - The delay in milliseconds (default: 500)\r\n * @returns The debounced value\r\n */\r\nexport function useDebounce<T>(value: T, delay = 500): T {\r\n const [debouncedValue, setDebouncedValue] = useState<T>(value);\r\n\r\n useEffect(() => {\r\n const timer = setTimeout(() => {\r\n setDebouncedValue(value);\r\n }, delay);\r\n\r\n return () => {\r\n clearTimeout(timer);\r\n };\r\n }, [value, delay]);\r\n\r\n return debouncedValue;\r\n}\r\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,YAAe,OAAU,QAAQ,KAAQ;CACvD,MAAM,CAAC,gBAAgB,sBAAA,GAAA,MAAA,SAAA,CAAiC,KAAK;CAE7D,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,MAAM,QAAQ,iBAAiB;GAC7B,kBAAkB,KAAK;EACzB,GAAG,KAAK;EAER,aAAa;GACX,aAAa,KAAK;EACpB;CACF,GAAG,CAAC,OAAO,KAAK,CAAC;CAEjB,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useToast.cjs","names":[],"sources":["../../../src/hooks/useToast.ts"],"sourcesContent":["'use client';\n\nimport * as React from \"react\"\nimport type { ToastActionElement, ToastProps } from \"../primitives/toast\"\n\nconst TOAST_LIMIT = 1\nconst TOAST_REMOVE_DELAY = 1000000\n\ntype ToasterToast = ToastProps & {\n id: string\n title?: React.ReactNode\n description?: React.ReactNode\n action?: ToastActionElement\n}\n\nconst actionTypes = {\n ADD_TOAST: \"ADD_TOAST\",\n UPDATE_TOAST: \"UPDATE_TOAST\",\n DISMISS_TOAST: \"DISMISS_TOAST\",\n REMOVE_TOAST: \"REMOVE_TOAST\",\n} as const\n\nlet count = 0\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER\n return count.toString()\n}\n\ntype ActionType = typeof actionTypes\ntype Action =\n | { type: ActionType[\"ADD_TOAST\"]; toast: ToasterToast }\n | { type: ActionType[\"UPDATE_TOAST\"]; toast: Partial<ToasterToast> }\n | { type: ActionType[\"DISMISS_TOAST\"]; toastId?: ToasterToast[\"id\"] }\n | { type: ActionType[\"REMOVE_TOAST\"]; toastId?: ToasterToast[\"id\"] }\n\ninterface State {\n toasts: ToasterToast[]\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) return\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId)\n dispatch({ type: \"REMOVE_TOAST\", toastId })\n }, TOAST_REMOVE_DELAY)\n toastTimeouts.set(toastId, timeout)\n}\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case \"ADD_TOAST\":\n return { ...state, toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT) }\n case \"UPDATE_TOAST\":\n return { ...state, toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t) }\n case \"DISMISS_TOAST\": {\n const { toastId } = action\n if (toastId) {\n addToRemoveQueue(toastId)\n } else {\n state.toasts.forEach((t) => addToRemoveQueue(t.id))\n }\n return { ...state, toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined ? { ...t, open: false } : t) }\n }\n case \"REMOVE_TOAST\":\n return action.toastId === undefined\n ? { ...state, toasts: [] }\n : { ...state, toasts: state.toasts.filter((t) => t.id !== action.toastId) }\n }\n}\n\nconst listeners: Array<(state: State) => void> = []\nlet memoryState: State = { toasts: [] }\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action)\n listeners.forEach((l) => l(memoryState))\n}\n\ntype Toast = Omit<ToasterToast, \"id\">\n\nfunction toast({ ...props }: Toast) {\n const id = genId()\n const update = (props: ToasterToast) => dispatch({ type: \"UPDATE_TOAST\", toast: { ...props, id } })\n const dismiss = () => dispatch({ type: \"DISMISS_TOAST\", toastId: id })\n\n dispatch({\n type: \"ADD_TOAST\",\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => { if (!open) dismiss() },\n },\n })\n\n return { id, dismiss, update }\n}\n\nfunction useToast() {\n const [state, setState] = React.useState<State>(memoryState)\n\n React.useEffect(() => {\n listeners.push(setState)\n return () => {\n const index = listeners.indexOf(setState)\n if (index > -1) listeners.splice(index, 1)\n }\n }, [state])\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: \"DISMISS_TOAST\", toastId }),\n }\n}\n\nexport { useToast, toast }\n"],"mappings":";;;;;;AAKA,IAAM,cAAc;AACpB,IAAM,qBAAqB;AAgB3B,IAAI,QAAQ;AACZ,SAAS,QAAQ;CACf,SAAS,QAAQ,KAAK,OAAO;CAC7B,OAAO,MAAM,SAAS;AACxB;AAaA,IAAM,gCAAgB,IAAI,IAA2C;AAErE,IAAM,oBAAoB,YAAoB;CAC5C,IAAI,cAAc,IAAI,OAAO,GAAG;CAChC,MAAM,UAAU,iBAAiB;EAC/B,cAAc,OAAO,OAAO;EAC5B,SAAS;GAAE,MAAM;GAAgB;EAAQ,CAAC;CAC5C,GAAG,kBAAkB;CACrB,cAAc,IAAI,SAAS,OAAO;AACpC;AAEA,IAAa,WAAW,OAAc,WAA0B;CAC9D,QAAQ,OAAO,MAAf;EACE,KAAK,aACH,OAAO;GAAE,GAAG;GAAO,QAAQ,CAAC,OAAO,OAAO,GAAG,MAAM,MAAM,CAAC,CAAC,MAAM,GAAG,WAAW;EAAE;EACnF,KAAK,gBACH,OAAO;GAAE,GAAG;GAAO,QAAQ,MAAM,OAAO,KAAK,MAAM,EAAE,OAAO,OAAO,MAAM,KAAK;IAAE,GAAG;IAAG,GAAG,OAAO;GAAM,IAAI,CAAC;EAAE;EAC/G,KAAK,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AAC;EAC3C;CACF,GAAG,CAAC,KAAK,CAAC;CAEV,OAAO;EACL,GAAG;EACH;EACA,UAAU,YAAqB,SAAS;GAAE,MAAM;GAAiB;EAAQ,CAAC;CAC5E;AACF"}
1
+ {"version":3,"file":"useToast.cjs","names":[],"sources":["../../../src/hooks/useToast.ts"],"sourcesContent":["'use client';\r\n\r\nimport * as React from \"react\"\r\nimport type { ToastActionElement, ToastProps } from \"../primitives/toast\"\r\n\r\nconst TOAST_LIMIT = 1\r\nconst TOAST_REMOVE_DELAY = 1000000\r\n\r\ntype ToasterToast = ToastProps & {\r\n id: string\r\n title?: React.ReactNode\r\n description?: React.ReactNode\r\n action?: ToastActionElement\r\n}\r\n\r\nconst actionTypes = {\r\n ADD_TOAST: \"ADD_TOAST\",\r\n UPDATE_TOAST: \"UPDATE_TOAST\",\r\n DISMISS_TOAST: \"DISMISS_TOAST\",\r\n REMOVE_TOAST: \"REMOVE_TOAST\",\r\n} as const\r\n\r\nlet count = 0\r\nfunction genId() {\r\n count = (count + 1) % Number.MAX_SAFE_INTEGER\r\n return count.toString()\r\n}\r\n\r\ntype ActionType = typeof actionTypes\r\ntype Action =\r\n | { type: ActionType[\"ADD_TOAST\"]; toast: ToasterToast }\r\n | { type: ActionType[\"UPDATE_TOAST\"]; toast: Partial<ToasterToast> }\r\n | { type: ActionType[\"DISMISS_TOAST\"]; toastId?: ToasterToast[\"id\"] }\r\n | { type: ActionType[\"REMOVE_TOAST\"]; toastId?: ToasterToast[\"id\"] }\r\n\r\ninterface State {\r\n toasts: ToasterToast[]\r\n}\r\n\r\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()\r\n\r\nconst addToRemoveQueue = (toastId: string) => {\r\n if (toastTimeouts.has(toastId)) return\r\n const timeout = setTimeout(() => {\r\n toastTimeouts.delete(toastId)\r\n dispatch({ type: \"REMOVE_TOAST\", toastId })\r\n }, TOAST_REMOVE_DELAY)\r\n toastTimeouts.set(toastId, timeout)\r\n}\r\n\r\nexport const reducer = (state: State, action: Action): State => {\r\n switch (action.type) {\r\n case \"ADD_TOAST\":\r\n return { ...state, toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT) }\r\n case \"UPDATE_TOAST\":\r\n return { ...state, toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t) }\r\n case \"DISMISS_TOAST\": {\r\n const { toastId } = action\r\n if (toastId) {\r\n addToRemoveQueue(toastId)\r\n } else {\r\n state.toasts.forEach((t) => addToRemoveQueue(t.id))\r\n }\r\n return { ...state, toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined ? { ...t, open: false } : t) }\r\n }\r\n case \"REMOVE_TOAST\":\r\n return action.toastId === undefined\r\n ? { ...state, toasts: [] }\r\n : { ...state, toasts: state.toasts.filter((t) => t.id !== action.toastId) }\r\n }\r\n}\r\n\r\nconst listeners: Array<(state: State) => void> = []\r\nlet memoryState: State = { toasts: [] }\r\n\r\nfunction dispatch(action: Action) {\r\n memoryState = reducer(memoryState, action)\r\n listeners.forEach((l) => l(memoryState))\r\n}\r\n\r\ntype Toast = Omit<ToasterToast, \"id\">\r\n\r\nfunction toast({ ...props }: Toast) {\r\n const id = genId()\r\n const update = (props: ToasterToast) => dispatch({ type: \"UPDATE_TOAST\", toast: { ...props, id } })\r\n const dismiss = () => dispatch({ type: \"DISMISS_TOAST\", toastId: id })\r\n\r\n dispatch({\r\n type: \"ADD_TOAST\",\r\n toast: {\r\n ...props,\r\n id,\r\n open: true,\r\n onOpenChange: (open) => { if (!open) dismiss() },\r\n },\r\n })\r\n\r\n return { id, dismiss, update }\r\n}\r\n\r\nfunction useToast() {\r\n const [state, setState] = React.useState<State>(memoryState)\r\n\r\n React.useEffect(() => {\r\n listeners.push(setState)\r\n return () => {\r\n const index = listeners.indexOf(setState)\r\n if (index > -1) listeners.splice(index, 1)\r\n }\r\n }, [state])\r\n\r\n return {\r\n ...state,\r\n toast,\r\n dismiss: (toastId?: string) => dispatch({ type: \"DISMISS_TOAST\", to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O,OAAO;EAAE;CAChF;AACF;AAEA,IAAM,YAA2C,CAAC;AAClD,IAAI,cAAqB,EAAE,QAAQ,CAAC,EAAE;AAEtC,SAAS,SAAS,QAAgB;CAChC,cAAc,QAAQ,aAAa,MAAM;CACzC,UAAU,SAAS,MAAM,EAAE,WAAW,CAAC;AACzC;AAIA,SAAS,MAAM,EAAE,GAAG,SAAgB;CAClC,MAAM,KAAK,MAAM;CACjB,MAAM,UAAU,UAAwB,SAAS;EAAE,MAAM;EAAgB,OAAO;GAAE,GAAG;GAAO;EAAG;CAAE,CAAC;CAClG,MAAM,gBAAgB,SAAS;EAAE,MAAM;EAAiB,SAAS;CAAG,CAAC;CAErE,SAAS;EACP,MAAM;EACN,OAAO;GACL,GAAG;GACH;GACA,MAAM;GACN,eAAe,SAAS;IAAE,IAAI,CAAC,MAAM,QAAQ;GAAE;EACjD;CACF,CAAC;CAED,OAAO;EAAE;EAAI;EAAS;CAAO;AAC/B;AAEA,SAAS,WAAW;CAClB,MAAM,CAAC,OAAO,YAAY,MAAM,SAAgB,WAAW;CAE3D,MAAM,gBAAgB;EACpB,UAAU,KAAK,QAAQ;EACvB,aAAa;GACX,MAAM,QAAQ,UAAU,QAAQ,QAAQ;GACxC,IAAI,QAAQ,IAAI,UAAU,OAAO,OAAO,CAAC;EAC3C;CACF,GAAG,CAAC,KAAK,CAAC;CAEV,OAAO;EACL,GAAG;EACH;EACA,UAAU,YAAqB,SAAS;GAAE,MAAM;GAAiB;EAAQ,CAAC;CAC5E;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"useToggle.cjs","names":[],"sources":["../../../src/hooks/useToggle.ts"],"sourcesContent":["'use client';\n\nimport { useState, useCallback } from \"react\";\r\n\r\n/**\r\n * A hook that returns a boolean state and a function to toggle it\r\n * @param initialValue - The initial value of the toggle (default: false)\r\n * @returns A tuple containing the current value and a toggle function\r\n */\r\nexport function useToggle(initialValue = false): [boolean, () => void] {\r\n const [value, setValue] = useState(initialValue);\r\n\r\n const toggle = useCallback(() => {\r\n setValue((prev) => !prev);\r\n }, []);\r\n\r\n return [value, toggle];\r\n}\r\n"],"mappings":";;;;;;;;;AASA,SAAgB,UAAU,eAAe,OAA8B;CACrE,MAAM,CAAC,OAAO,aAAA,GAAA,MAAA,SAAA,CAAqB,YAAY;CAM/C,OAAO,CAAC,QAAA,GAAA,MAAA,YAAA,OAJyB;EAC/B,UAAU,SAAS,CAAC,IAAI;CAC1B,GAAG,CAAC,CAEW,CAAM;AACvB"}
1
+ {"version":3,"file":"useToggle.cjs","names":[],"sources":["../../../src/hooks/useToggle.ts"],"sourcesContent":["'use client';\r\n\r\nimport { useState, useCallback } from \"react\";\r\n\r\n/**\r\n * A hook that returns a boolean state and a function to toggle it\r\n * @param initialValue - The initial value of the toggle (default: false)\r\n * @returns A tuple containing the current value and a toggle function\r\n */\r\nexport function useToggle(initialValue = false): [boolean, () => void] {\r\n const [value, setValue] = useState(initialValue);\r\n\r\n const toggle = useCallback(() => {\r\n setValue((prev) => !prev);\r\n }, []);\r\n\r\n return [value, toggle];\r\n}\r\n"],"mappings":";;;;;;;;;AASA,SAAgB,UAAU,eAAe,OAA8B;CACrE,MAAM,CAAC,OAAO,aAAA,GAAA,MAAA,SAAA,CAAqB,YAAY;CAM/C,OAAO,CAAC,QAAA,GAAA,MAAA,YAAA,OAJyB;EAC/B,UAAU,SAAS,CAAC,IAAI;CAC1B,GAAG,CAAC,CAEW,CAAM;AACvB"}
@@ -8,6 +8,15 @@ const require_TextBox = require("./components/Form/TextBox.cjs");
8
8
  const require_TextArea = require("./components/Form/TextArea.cjs");
9
9
  const require_select = require("./primitives/select.cjs");
10
10
  const require_Select = require("./components/Form/Select.cjs");
11
+ const require_dialog = require("./primitives/dialog.cjs");
12
+ const require_command = require("./primitives/command.cjs");
13
+ const require_popover = require("./primitives/popover.cjs");
14
+ const require_countries = require("./data/countries.cjs");
15
+ const require_CountrySelect = require("./components/Form/CountrySelect.cjs");
16
+ const require_PhoneInput = require("./components/Form/PhoneInput.cjs");
17
+ const require_calendar = require("./primitives/calendar.cjs");
18
+ const require_DatePicker = require("./components/Form/DatePicker.cjs");
19
+ const require_Combobox = require("./components/Form/Combobox.cjs");
11
20
  const require_Checkbox = require("./components/Form/Checkbox.cjs");
12
21
  const require_Radio = require("./components/Form/Radio.cjs");
13
22
  const require_FormSwitch = require("./components/Form/FormSwitch.cjs");
@@ -24,13 +33,15 @@ const require_Input = require("./components/Input/Input.cjs");
24
33
  const require_Label = require("./components/Label/Label.cjs");
25
34
  const require_Textarea = require("./components/Textarea/Textarea.cjs");
26
35
  const require_Switch = require("./components/Switch/Switch.cjs");
27
- const require_dialog = require("./primitives/dialog.cjs");
28
- const require_popover = require("./primitives/popover.cjs");
36
+ const require_sheet = require("./primitives/sheet.cjs");
37
+ const require_alert_dialog = require("./primitives/alert-dialog.cjs");
38
+ const require_progress = require("./primitives/progress.cjs");
39
+ const require_slider = require("./primitives/slider.cjs");
40
+ const require_breadcrumb = require("./primitives/breadcrumb.cjs");
41
+ const require_input_otp = require("./primitives/input-otp.cjs");
29
42
  const require_scroll_area = require("./primitives/scroll-area.cjs");
30
43
  const require_toggle = require("./primitives/toggle.cjs");
31
44
  const require_table = require("./primitives/table.cjs");
32
- const require_command = require("./primitives/command.cjs");
33
- const require_calendar = require("./primitives/calendar.cjs");
34
45
  const require_sonner = require("./primitives/sonner.cjs");
35
46
  const require_toast = require("./primitives/toast.cjs");
36
47
  const require_useToggle = require("./hooks/useToggle.cjs");
@@ -46,12 +57,31 @@ exports.AccordionItem = require_Accordion.AccordionItem;
46
57
  exports.AccordionTrigger = require_Accordion.AccordionTrigger;
47
58
  exports.Alert = require_Alert.Alert;
48
59
  exports.AlertDescription = require_Alert.AlertDescription;
60
+ exports.AlertDialog = require_alert_dialog.AlertDialog;
61
+ exports.AlertDialogAction = require_alert_dialog.AlertDialogAction;
62
+ exports.AlertDialogCancel = require_alert_dialog.AlertDialogCancel;
63
+ exports.AlertDialogContent = require_alert_dialog.AlertDialogContent;
64
+ exports.AlertDialogDescription = require_alert_dialog.AlertDialogDescription;
65
+ exports.AlertDialogFooter = require_alert_dialog.AlertDialogFooter;
66
+ exports.AlertDialogHeader = require_alert_dialog.AlertDialogHeader;
67
+ exports.AlertDialogOverlay = require_alert_dialog.AlertDialogOverlay;
68
+ exports.AlertDialogPortal = require_alert_dialog.AlertDialogPortal;
69
+ exports.AlertDialogTitle = require_alert_dialog.AlertDialogTitle;
70
+ exports.AlertDialogTrigger = require_alert_dialog.AlertDialogTrigger;
49
71
  exports.AlertTitle = require_Alert.AlertTitle;
50
72
  exports.Avatar = require_Avatar.Avatar;
51
73
  exports.AvatarFallback = require_Avatar.AvatarFallback;
52
74
  exports.AvatarImage = require_Avatar.AvatarImage;
53
75
  exports.Badge = require_Badge.Badge;
76
+ exports.Breadcrumb = require_breadcrumb.Breadcrumb;
77
+ exports.BreadcrumbEllipsis = require_breadcrumb.BreadcrumbEllipsis;
78
+ exports.BreadcrumbItem = require_breadcrumb.BreadcrumbItem;
79
+ exports.BreadcrumbLink = require_breadcrumb.BreadcrumbLink;
80
+ exports.BreadcrumbList = require_breadcrumb.BreadcrumbList;
81
+ exports.BreadcrumbPage = require_breadcrumb.BreadcrumbPage;
82
+ exports.BreadcrumbSeparator = require_breadcrumb.BreadcrumbSeparator;
54
83
  exports.Button = require_Button.Button;
84
+ exports.COUNTRIES = require_countries.COUNTRIES;
55
85
  exports.Calendar = require_calendar.Calendar;
56
86
  exports.Card = require_Card.Card;
57
87
  exports.CardContent = require_Card.CardContent;
@@ -60,6 +90,7 @@ exports.CardFooter = require_Card.CardFooter;
60
90
  exports.CardHeader = require_Card.CardHeader;
61
91
  exports.CardTitle = require_Card.CardTitle;
62
92
  exports.Checkbox = require_Checkbox$1.Checkbox;
93
+ exports.Combobox = require_Combobox.Combobox;
63
94
  exports.Command = require_command.Command;
64
95
  exports.CommandDialog = require_command.CommandDialog;
65
96
  exports.CommandEmpty = require_command.CommandEmpty;
@@ -69,6 +100,8 @@ exports.CommandItem = require_command.CommandItem;
69
100
  exports.CommandList = require_command.CommandList;
70
101
  exports.CommandSeparator = require_command.CommandSeparator;
71
102
  exports.CommandShortcut = require_command.CommandShortcut;
103
+ exports.CountrySelect = require_CountrySelect.CountrySelect;
104
+ exports.DatePicker = require_DatePicker.DatePicker;
72
105
  exports.Dialog = require_dialog.Dialog;
73
106
  exports.DialogClose = require_dialog.DialogClose;
74
107
  exports.DialogContent = require_dialog.DialogContent;
@@ -96,10 +129,18 @@ exports.DropdownMenuSubTrigger = require_DropdownMenu.DropdownMenuSubTrigger;
96
129
  exports.DropdownMenuTrigger = require_DropdownMenu.DropdownMenuTrigger;
97
130
  exports.Form = require_Form.Form;
98
131
  exports.FormCheckbox = require_Checkbox.Checkbox;
132
+ exports.FormCombobox = require_Combobox.Combobox;
99
133
  exports.FormConfigContext = require_context.FormConfigContext;
134
+ exports.FormCountrySelect = require_CountrySelect.CountrySelect;
135
+ exports.FormDatePicker = require_DatePicker.DatePicker;
136
+ exports.FormPhoneInput = require_PhoneInput.PhoneInput;
100
137
  exports.FormSelect = require_Select.Select;
101
138
  exports.FormSwitch = require_FormSwitch.FormSwitch;
102
139
  exports.Input = require_Input.Input;
140
+ exports.InputOTP = require_input_otp.InputOTP;
141
+ exports.InputOTPGroup = require_input_otp.InputOTPGroup;
142
+ exports.InputOTPSeparator = require_input_otp.InputOTPSeparator;
143
+ exports.InputOTPSlot = require_input_otp.InputOTPSlot;
103
144
  exports.Label = require_Label.Label;
104
145
  exports.Pagination = require_Pagination.Pagination;
105
146
  exports.PaginationContent = require_Pagination.PaginationContent;
@@ -108,10 +149,12 @@ exports.PaginationItem = require_Pagination.PaginationItem;
108
149
  exports.PaginationLink = require_Pagination.PaginationLink;
109
150
  exports.PaginationNext = require_Pagination.PaginationNext;
110
151
  exports.PaginationPrevious = require_Pagination.PaginationPrevious;
152
+ exports.PhoneInput = require_PhoneInput.PhoneInput;
111
153
  exports.Popover = require_popover.Popover;
112
154
  exports.PopoverAnchor = require_popover.PopoverAnchor;
113
155
  exports.PopoverContent = require_popover.PopoverContent;
114
156
  exports.PopoverTrigger = require_popover.PopoverTrigger;
157
+ exports.Progress = require_progress.Progress;
115
158
  exports.RadioGroup = require_Radio.RadioGroup;
116
159
  exports.RadioItem = require_Radio.RadioItem;
117
160
  exports.ScrollArea = require_scroll_area.ScrollArea;
@@ -127,7 +170,18 @@ exports.SelectSeparator = require_select.SelectSeparator;
127
170
  exports.SelectTrigger = require_select.SelectTrigger;
128
171
  exports.SelectValue = require_select.SelectValue;
129
172
  exports.Separator = require_Separator.Separator;
173
+ exports.Sheet = require_sheet.Sheet;
174
+ exports.SheetClose = require_sheet.SheetClose;
175
+ exports.SheetContent = require_sheet.SheetContent;
176
+ exports.SheetDescription = require_sheet.SheetDescription;
177
+ exports.SheetFooter = require_sheet.SheetFooter;
178
+ exports.SheetHeader = require_sheet.SheetHeader;
179
+ exports.SheetOverlay = require_sheet.SheetOverlay;
180
+ exports.SheetPortal = require_sheet.SheetPortal;
181
+ exports.SheetTitle = require_sheet.SheetTitle;
182
+ exports.SheetTrigger = require_sheet.SheetTrigger;
130
183
  exports.Skeleton = require_Skeleton.Skeleton;
184
+ exports.Slider = require_slider.Slider;
131
185
  exports.Switch = require_Switch.Switch;
132
186
  exports.Table = require_table.Table;
133
187
  exports.TableBody = require_table.TableBody;
@@ -162,6 +216,12 @@ exports.buildZodSchemaFromRules = require_context.buildZodSchemaFromRules;
162
216
  exports.buttonVariants = require_Button.buttonVariants;
163
217
  exports.cn = require_cn.cn;
164
218
  exports.defaultFormConfig = require_context.defaultFormConfig;
219
+ exports.formatE164 = require_countries.formatE164;
220
+ exports.getCountryByCode = require_countries.getCountryByCode;
221
+ exports.getCountryDialCode = require_countries.getCountryDialCode;
222
+ exports.getCountryFlag = require_countries.getCountryFlag;
223
+ exports.getCountryName = require_countries.getCountryName;
224
+ exports.parseE164 = require_countries.parseE164;
165
225
  exports.toast = require_useToast.toast;
166
226
  exports.toggleVariants = require_toggle.toggleVariants;
167
227
  exports.useDebounce = require_useDebounce.useDebounce;
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
3
+ const require_cn = require("../utils/cn.cjs");
4
+ const require_button = require("./button.cjs");
5
+ let react = require("react");
6
+ react = require_runtime.__toESM(react, 1);
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ let _radix_ui_react_alert_dialog = require("@radix-ui/react-alert-dialog");
9
+ _radix_ui_react_alert_dialog = require_runtime.__toESM(_radix_ui_react_alert_dialog, 1);
10
+ //#region src/primitives/alert-dialog.tsx
11
+ var AlertDialog = _radix_ui_react_alert_dialog.Root;
12
+ var AlertDialogTrigger = _radix_ui_react_alert_dialog.Trigger;
13
+ var AlertDialogPortal = _radix_ui_react_alert_dialog.Portal;
14
+ var AlertDialogOverlay = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_alert_dialog.Overlay, {
15
+ className: require_cn.cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
16
+ ...props,
17
+ ref
18
+ }));
19
+ AlertDialogOverlay.displayName = _radix_ui_react_alert_dialog.Overlay.displayName;
20
+ var AlertDialogContent = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AlertDialogPortal, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogOverlay, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_alert_dialog.Content, {
21
+ ref,
22
+ className: require_cn.cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className),
23
+ ...props
24
+ })] }));
25
+ AlertDialogContent.displayName = _radix_ui_react_alert_dialog.Content.displayName;
26
+ var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
27
+ className: require_cn.cn("flex flex-col space-y-2 text-center sm:text-left", className),
28
+ ...props
29
+ });
30
+ AlertDialogHeader.displayName = "AlertDialogHeader";
31
+ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
32
+ className: require_cn.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
33
+ ...props
34
+ });
35
+ AlertDialogFooter.displayName = "AlertDialogFooter";
36
+ var AlertDialogTitle = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_alert_dialog.Title, {
37
+ ref,
38
+ className: require_cn.cn("text-lg font-semibold", className),
39
+ ...props
40
+ }));
41
+ AlertDialogTitle.displayName = _radix_ui_react_alert_dialog.Title.displayName;
42
+ var AlertDialogDescription = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_alert_dialog.Description, {
43
+ ref,
44
+ className: require_cn.cn("text-sm text-muted-foreground", className),
45
+ ...props
46
+ }));
47
+ AlertDialogDescription.displayName = _radix_ui_react_alert_dialog.Description.displayName;
48
+ var AlertDialogAction = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_alert_dialog.Action, {
49
+ ref,
50
+ className: require_cn.cn(require_button.buttonVariants(), className),
51
+ ...props
52
+ }));
53
+ AlertDialogAction.displayName = _radix_ui_react_alert_dialog.Action.displayName;
54
+ var AlertDialogCancel = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_alert_dialog.Cancel, {
55
+ ref,
56
+ className: require_cn.cn(require_button.buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className),
57
+ ...props
58
+ }));
59
+ AlertDialogCancel.displayName = _radix_ui_react_alert_dialog.Cancel.displayName;
60
+ //#endregion
61
+ exports.AlertDialog = AlertDialog;
62
+ exports.AlertDialogAction = AlertDialogAction;
63
+ exports.AlertDialogCancel = AlertDialogCancel;
64
+ exports.AlertDialogContent = AlertDialogContent;
65
+ exports.AlertDialogDescription = AlertDialogDescription;
66
+ exports.AlertDialogFooter = AlertDialogFooter;
67
+ exports.AlertDialogHeader = AlertDialogHeader;
68
+ exports.AlertDialogOverlay = AlertDialogOverlay;
69
+ exports.AlertDialogPortal = AlertDialogPortal;
70
+ exports.AlertDialogTitle = AlertDialogTitle;
71
+ exports.AlertDialogTrigger = AlertDialogTrigger;
72
+
73
+ //# sourceMappingURL=alert-dialog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-dialog.cjs","names":[],"sources":["../../../src/primitives/alert-dialog.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\n\nimport { cn } from \"@/utils/index\"\nimport { buttonVariants } from \"@/primitives/button\"\n\nconst AlertDialog = AlertDialogPrimitive.Root\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n ref={ref}\n />\n))\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className\n )}\n {...props}\n />\n </AlertDialogPortal>\n))\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className\n )}\n {...props}\n />\n)\nAlertDialogHeader.displayName = \"AlertDialogHeader\"\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className\n )}\n {...props}\n />\n)\nAlertDialogFooter.displayName = \"AlertDialogFooter\"\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n))\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants(), className)}\n {...props}\n />\n))\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(\n buttonVariants({ variant: \"outline\" }),\n \"mt-2 sm:mt-0\",\n className\n )}\n {...props}\n />\n))\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n}\n"],"mappings":";;;;;;;;;;AAMA,IAAM,cAAc,6BAAqB;AAEzC,IAAM,qBAAqB,6BAAqB;AAEhD,IAAM,oBAAoB,6BAAqB;AAE/C,IAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,6BAAqB,SAAtB;CACE,WAAW,WAAA,GACT,2JACA,SACF;CACA,GAAI;CACC;AACN,CAAA,CACF;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6BAAqB,QAAtB;CACO;CACL,WAAW,WAAA,GAAG,eAAA,eAAe,GAAG,SAAS;CACzC,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc,6BAAqB,OAAO;AAE5D,IAAM,oBAAoB,MAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,6BAAqB,QAAtB;CACO;CACL,WAAW,WAAA,GACT,eAAA,eAAe,EAAE,SAAS,UAAU,CAAC,GACrC,gBACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc,6BAAqB,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"alert.cjs","names":[],"sources":["../../../src/primitives/alert.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils/index\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-background text-foreground\",\n destructive:\n \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\n>(({ className, variant, ...props }, ref) => (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n))\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n {...props}\n />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n {...props}\n />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n"],"mappings":";;;;;;;;AAKA,IAAM,iBAAA,GAAA,yBAAA,IAAA,CACJ,6JACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,aACE;CACJ,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,IAAM,QAAQ,MAAM,YAGjB,EAAE,WAAW,SAAS,GAAG,SAAS,QACnC,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;CACO;CACL,MAAK;CACL,WAAW,WAAA,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,MAAM,cAAc;AAEpB,IAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;CACO;CACL,WAAW,WAAA,GAAG,gDAAgD,SAAS;CACvE,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc;AAEzB,IAAM,mBAAmB,MAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;CACO;CACL,WAAW,WAAA,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc"}
1
+ {"version":3,"file":"alert.cjs","names":[],"sources":["../../../src/primitives/alert.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport { cva, type VariantProps } from \"class-variance-authority\"\r\n\r\nimport { cn } from \"@/utils/index\"\r\n\r\nconst alertVariants = cva(\r\n \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"bg-background text-foreground\",\r\n destructive:\r\n \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n }\r\n)\r\n\r\nconst Alert = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\r\n>(({ className, variant, ...props }, ref) => (\r\n <div\r\n ref={ref}\r\n role=\"alert\"\r\n className={cn(alertVariants({ variant }), className)}\r\n {...props}\r\n />\r\n))\r\nAlert.displayName = \"Alert\"\r\n\r\nconst AlertTitle = React.forwardRef<\r\n HTMLParagraphElement,\r\n React.HTMLAttributes<HTMLHeadingElement>\r\n>(({ className, ...props }, ref) => (\r\n <h5\r\n ref={ref}\r\n className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\r\n {...props}\r\n />\r\n))\r\nAlertTitle.displayName = \"AlertTitle\"\r\n\r\nconst AlertDescription = React.forwardRef<\r\n HTMLParagraphElement,\r\n React.HTMLAttributes<HTMLParagraphElement>\r\n>(({ className, ...props }, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\r\n {...props}\r\n />\r\n))\r\nAlertDescription.displayName = \"AlertDescription\"\r\n\r\nexport { Alert, AlertTitle, AlertDescription }\r\n"],"mappings":";;;;;;;;AAKA,IAAM,iBAAA,GAAA,yBAAA,IAAA,CACJ,6JACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,aACE;CACJ,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,IAAM,QAAQ,MAAM,YAGjB,EAAE,WAAW,SAAS,GAAG,SAAS,QACnC,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;CACO;CACL,MAAK;CACL,WAAW,WAAA,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,MAAM,cAAc;AAEpB,IAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;CACO;CACL,WAAW,WAAA,GAAG,gDAAgD,SAAS;CACvE,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc;AAEzB,IAAM,mBAAmB,MAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;CACO;CACL,WAAW,WAAA,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.cjs","names":[],"sources":["../../../src/primitives/avatar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\n\nimport { cn } from \"@/utils\"\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n))\nAvatar.displayName = AvatarPrimitive.Root.displayName\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n))\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className\n )}\n {...props}\n />\n))\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\n\nexport { Avatar, AvatarImage, AvatarFallback }\n"],"mappings":";;;;;;;;;AAKA,IAAM,SAAS,MAAM,YAGlB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAgB,MAAjB;CACO;CACL,WAAW,WAAA,GACT,iEACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,OAAO,cAAc,uBAAgB,KAAK;AAE1C,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAgB,OAAjB;CACO;CACL,WAAW,WAAA,GAAG,+BAA+B,SAAS;CACtD,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,uBAAgB,MAAM;AAEhD,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAgB,UAAjB;CACO;CACL,WAAW,WAAA,GACT,wEACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc,uBAAgB,SAAS"}
1
+ {"version":3,"file":"avatar.cjs","names":[],"sources":["../../../src/primitives/avatar.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\r\n\r\nimport { cn } from \"@/utils\"\r\n\r\nconst Avatar = React.forwardRef<\r\n React.ElementRef<typeof AvatarPrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\r\n>(({ className, ...props }, ref) => (\r\n <AvatarPrimitive.Root\r\n ref={ref}\r\n className={cn(\r\n \"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nAvatar.displayName = AvatarPrimitive.Root.displayName\r\n\r\nconst AvatarImage = React.forwardRef<\r\n React.ElementRef<typeof AvatarPrimitive.Image>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\r\n>(({ className, ...props }, ref) => (\r\n <AvatarPrimitive.Image\r\n ref={ref}\r\n className={cn(\"aspect-square h-full w-full\", className)}\r\n {...props}\r\n />\r\n))\r\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\r\n\r\nconst AvatarFallback = React.forwardRef<\r\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\r\n>(({ className, ...props }, ref) => (\r\n <AvatarPrimitive.Fallback\r\n ref={ref}\r\n className={cn(\r\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\r\n\r\nexport { Avatar, AvatarImage, AvatarFallback }\r\n"],"mappings":";;;;;;;;;AAKA,IAAM,SAAS,MAAM,YAGlB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAgB,MAAjB;CACO;CACL,WAAW,WAAA,GACT,iEACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,OAAO,cAAc,uBAAgB,KAAK;AAE1C,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAgB,OAAjB;CACO;CACL,WAAW,WAAA,GAAG,+BAA+B,SAAS;CACtD,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,uBAAgB,MAAM;AAEhD,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAgB,UAAjB;CACO;CACL,WAAW,WAAA,GACT,wEACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc,uBAAgB,SAAS"}
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
3
+ const require_cn = require("../utils/cn.cjs");
4
+ let react = require("react");
5
+ react = require_runtime.__toESM(react, 1);
6
+ let _radix_ui_react_slot = require("@radix-ui/react-slot");
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ let lucide_react = require("lucide-react");
9
+ //#region src/primitives/breadcrumb.tsx
10
+ var Breadcrumb = react.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
11
+ ref,
12
+ "aria-label": "breadcrumb",
13
+ ...props
14
+ }));
15
+ Breadcrumb.displayName = "Breadcrumb";
16
+ var BreadcrumbList = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ol", {
17
+ ref,
18
+ className: require_cn.cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className),
19
+ ...props
20
+ }));
21
+ BreadcrumbList.displayName = "BreadcrumbList";
22
+ var BreadcrumbItem = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
23
+ ref,
24
+ className: require_cn.cn("inline-flex items-center gap-1.5", className),
25
+ ...props
26
+ }));
27
+ BreadcrumbItem.displayName = "BreadcrumbItem";
28
+ var BreadcrumbLink = react.forwardRef(({ asChild, className, ...props }, ref) => {
29
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? _radix_ui_react_slot.Slot : "a", {
30
+ ref,
31
+ className: require_cn.cn("transition-colors hover:text-foreground", className),
32
+ ...props
33
+ });
34
+ });
35
+ BreadcrumbLink.displayName = "BreadcrumbLink";
36
+ var BreadcrumbPage = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
37
+ ref,
38
+ role: "link",
39
+ "aria-disabled": "true",
40
+ "aria-current": "page",
41
+ className: require_cn.cn("font-normal text-foreground", className),
42
+ ...props
43
+ }));
44
+ BreadcrumbPage.displayName = "BreadcrumbPage";
45
+ var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
46
+ role: "presentation",
47
+ "aria-hidden": "true",
48
+ className: require_cn.cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
49
+ ...props,
50
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRight, {})
51
+ });
52
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
53
+ var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
54
+ role: "presentation",
55
+ "aria-hidden": "true",
56
+ className: require_cn.cn("flex h-9 w-9 items-center justify-center", className),
57
+ ...props,
58
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
59
+ className: "sr-only",
60
+ children: "More"
61
+ })]
62
+ });
63
+ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
64
+ //#endregion
65
+ exports.Breadcrumb = Breadcrumb;
66
+ exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
67
+ exports.BreadcrumbItem = BreadcrumbItem;
68
+ exports.BreadcrumbLink = BreadcrumbLink;
69
+ exports.BreadcrumbList = BreadcrumbList;
70
+ exports.BreadcrumbPage = BreadcrumbPage;
71
+ exports.BreadcrumbSeparator = BreadcrumbSeparator;
72
+
73
+ //# sourceMappingURL=breadcrumb.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumb.cjs","names":[],"sources":["../../../src/primitives/breadcrumb.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/utils/index\"\n\nconst Breadcrumb = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<\"nav\"> & {\n separator?: React.ReactNode\n }\n>(({ ...props }, ref) => <nav ref={ref} aria-label=\"breadcrumb\" {...props} />)\nBreadcrumb.displayName = \"Breadcrumb\"\n\nconst BreadcrumbList = React.forwardRef<\n HTMLOListElement,\n React.ComponentPropsWithoutRef<\"ol\">\n>(({ className, ...props }, ref) => (\n <ol\n ref={ref}\n className={cn(\n \"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5\",\n className\n )}\n {...props}\n />\n))\nBreadcrumbList.displayName = \"BreadcrumbList\"\n\nconst BreadcrumbItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentPropsWithoutRef<\"li\">\n>(({ className, ...props }, ref) => (\n <li\n ref={ref}\n className={cn(\"inline-flex items-center gap-1.5\", className)}\n {...props}\n />\n))\nBreadcrumbItem.displayName = \"BreadcrumbItem\"\n\nconst BreadcrumbLink = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentPropsWithoutRef<\"a\"> & {\n asChild?: boolean\n }\n>(({ asChild, className, ...props }, ref) => {\n const Comp = asChild ? Slot : \"a\"\n\n return (\n <Comp\n ref={ref}\n className={cn(\"transition-colors hover:text-foreground\", className)}\n {...props}\n />\n )\n})\nBreadcrumbLink.displayName = \"BreadcrumbLink\"\n\nconst BreadcrumbPage = React.forwardRef<\n HTMLSpanElement,\n React.ComponentPropsWithoutRef<\"span\">\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn(\"font-normal text-foreground\", className)}\n {...props}\n />\n))\nBreadcrumbPage.displayName = \"BreadcrumbPage\"\n\nconst BreadcrumbSeparator = ({\n children,\n className,\n ...props\n}: React.ComponentProps<\"li\">) => (\n <li\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"[&>svg]:w-3.5 [&>svg]:h-3.5\", className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </li>\n)\nBreadcrumbSeparator.displayName = \"BreadcrumbSeparator\"\n\nconst BreadcrumbEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n)\nBreadcrumbEllipsis.displayName = \"BreadcrumbElipssis\"\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n}\n"],"mappings":";;;;;;;;;AAMA,IAAM,aAAa,MAAM,YAKtB,EAAE,GAAG,SAAS,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;CAAU;CAAK,cAAW;CAAa,GAAI;AAAQ,CAAA,CAAC;AAC7E,WAAW,cAAc;AAEzB,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;CACO;CACL,WAAW,WAAA,GACT,4FACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;AAE7B,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;CACO;CACL,WAAW,WAAA,GAAG,oCAAoC,SAAS;CAC3D,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;AAE7B,IAAM,iBAAiB,MAAM,YAK1B,EAAE,SAAS,WAAW,GAAG,SAAS,QAAQ;CAG3C,OACE,iBAAA,GAAA,kBAAA,IAAA,CAHW,UAAU,qBAAA,OAAO,KAG5B;EACO;EACL,WAAW,WAAA,GAAG,2CAA2C,SAAS;EAClE,GAAI;CACL,CAAA;AAEL,CAAC;AACD,eAAe,cAAc;AAE7B,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;CACO;CACL,MAAK;CACL,iBAAc;CACd,gBAAa;CACb,WAAW,WAAA,GAAG,+BAA+B,SAAS;CACtD,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;AAE7B,IAAM,uBAAuB,EAC3B,UACA,WACA,GAAG,YAEH,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;CACE,MAAK;CACL,eAAY;CACZ,WAAW,WAAA,GAAG,+BAA+B,SAAS;CACtD,GAAI;WAEH,YAAY,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,cAAD,CAAe,CAAA;AAC1B,CAAA;AAEN,oBAAoB,cAAc;AAElC,IAAM,sBAAsB,EAC1B,WACA,GAAG,YAEH,iBAAA,GAAA,kBAAA,KAAA,CAAC,QAAD;CACE,MAAK;CACL,eAAY;CACZ,WAAW,WAAA,GAAG,4CAA4C,SAAS;CACnE,GAAI;WAJN,CAME,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,gBAAD,EAAgB,WAAU,UAAW,CAAA,GACrC,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EAAM,WAAU;YAAU;CAAU,CAAA,CAChC;;AAER,mBAAmB,cAAc"}
@@ -7,7 +7,7 @@ let class_variance_authority = require("class-variance-authority");
7
7
  let _radix_ui_react_slot = require("@radix-ui/react-slot");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  //#region src/primitives/button.tsx
10
- var buttonVariants = (0, class_variance_authority.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
10
+ var buttonVariants = (0, class_variance_authority.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
11
11
  variants: {
12
12
  variant: {
13
13
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
@@ -19,8 +19,8 @@ var buttonVariants = (0, class_variance_authority.cva)("inline-flex items-center
19
19
  },
20
20
  size: {
21
21
  default: "h-10 px-4 py-2",
22
- sm: "h-9 px-3",
23
- lg: "h-11 px-8",
22
+ sm: "h-9 rounded-md px-3",
23
+ lg: "h-11 rounded-md px-8",
24
24
  icon: "h-10 w-10"
25
25
  }
26
26
  },
@@ -29,20 +29,21 @@ var buttonVariants = (0, class_variance_authority.cva)("inline-flex items-center
29
29
  size: "default"
30
30
  }
31
31
  });
32
- var ButtonPrimitive = react.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
32
+ var Button = react.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
33
33
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? _radix_ui_react_slot.Slot : "button", {
34
- ref,
35
34
  className: require_cn.cn(buttonVariants({
36
35
  variant,
37
36
  size,
38
37
  className
39
38
  })),
39
+ ref,
40
40
  ...props
41
41
  });
42
42
  });
43
- ButtonPrimitive.displayName = "ButtonPrimitive";
43
+ Button.displayName = "Button";
44
44
  //#endregion
45
- exports.ButtonPrimitive = ButtonPrimitive;
45
+ exports.Button = Button;
46
+ exports.ButtonPrimitive = Button;
46
47
  exports.buttonVariants = buttonVariants;
47
48
 
48
49
  //# sourceMappingURL=button.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.cjs","names":[],"sources":["../../../src/primitives/button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline: \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-4 py-2\",\n sm: \"h-9 px-3\",\n lg: \"h-11 px-8\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonPrimitiveProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst ButtonPrimitive = React.forwardRef<HTMLButtonElement, ButtonPrimitiveProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp\n ref={ref}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n }\n)\nButtonPrimitive.displayName = \"ButtonPrimitive\"\n\nexport { ButtonPrimitive, buttonVariants }\n"],"mappings":";;;;;;;;;AAMA,IAAM,kBAAA,GAAA,yBAAA,IAAA,CACJ,qUACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aAAa;GACb,SAAS;GACT,WAAW;GACX,OAAO;GACP,MAAM;EACR;EACA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;EACR;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAQA,IAAM,kBAAkB,MAAM,YAC3B,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,GAAG,SAAS,QAAQ;CAEhE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAFW,UAAU,qBAAA,OAAO,UAE5B;EACO;EACL,WAAW,WAAA,GAAG,eAAe;GAAE;GAAS;GAAM;EAAU,CAAC,CAAC;EAC1D,GAAI;CACL,CAAA;AAEL,CACF;AACA,gBAAgB,cAAc"}
1
+ {"version":3,"file":"button.cjs","names":[],"sources":["../../../src/primitives/button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils/index\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-4 py-2\",\n sm: \"h-9 rounded-md px-3\",\n lg: \"h-11 rounded-md px-8\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, Button as ButtonPrimitive, buttonVariants }\nexport type { ButtonProps as ButtonPrimitiveProps }\n"],"mappings":";;;;;;;;;AAMA,IAAM,kBAAA,GAAA,yBAAA,IAAA,CACJ,4VACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aACE;GACF,SACE;GACF,WACE;GACF,OAAO;GACP,MAAM;EACR;EACA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;EACR;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAQA,IAAM,SAAS,MAAM,YAClB,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,GAAG,SAAS,QAAQ;CAEhE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAFW,UAAU,qBAAA,OAAO,UAE5B;EACE,WAAW,WAAA,GAAG,eAAe;GAAE;GAAS;GAAM;EAAU,CAAC,CAAC;EACrD;EACL,GAAI;CACL,CAAA;AAEL,CACF;AACA,OAAO,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.cjs","names":[],"sources":["../../../src/primitives/calendar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { DayPicker } from \"react-day-picker\"\nimport { cn } from \"@/utils/cn\"\nimport { buttonVariants } from \"./button\"\nimport { ChevronLeft, ChevronRight } from \"lucide-react\"\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>\n\nfunction Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0\",\n month: \"space-y-4\",\n month_caption: \"flex justify-center pt-1 relative items-center\",\n caption_label: \"text-sm font-medium\",\n nav: \"space-x-1 flex items-center\",\n button_previous: cn(buttonVariants({ variant: \"outline\" }), \"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\"),\n button_next: cn(buttonVariants({ variant: \"outline\" }), \"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\"),\n month_grid: \"w-full border-collapse space-y-1\",\n weekdays: \"flex\",\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n week: \"flex w-full mt-2\",\n day: \"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20\",\n day_button: cn(buttonVariants({ variant: \"ghost\" }), \"h-9 w-9 p-0 font-normal aria-selected:opacity-100\"),\n range_end: \"day-range-end\",\n selected: \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n today: \"bg-accent text-accent-foreground\",\n outside: \"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30\",\n disabled: \"text-muted-foreground opacity-50\",\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground\",\n hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n Chevron: ({ orientation }) =>\n orientation === \"left\"\n ? <ChevronLeft className=\"h-4 w-4\" />\n : <ChevronRight className=\"h-4 w-4\" />,\n }}\n {...props}\n />\n )\n}\nCalendar.displayName = \"Calendar\"\n\nexport { Calendar }\n"],"mappings":";;;;;;;;;;AAQA,SAAS,SAAS,EAAE,WAAW,YAAY,kBAAkB,MAAM,GAAG,SAAwB;CAC5F,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAA,WAAD;EACmB;EACjB,WAAW,WAAA,GAAG,OAAO,SAAS;EAC9B,YAAY;GACV,QAAQ;GACR,OAAO;GACP,eAAe;GACf,eAAe;GACf,KAAK;GACL,iBAAiB,WAAA,GAAG,eAAA,eAAe,EAAE,SAAS,UAAU,CAAC,GAAG,yEAAyE;GACrI,aAAa,WAAA,GAAG,eAAA,eAAe,EAAE,SAAS,UAAU,CAAC,GAAG,0EAA0E;GAClI,YAAY;GACZ,UAAU;GACV,SAAS;GACT,MAAM;GACN,KAAK;GACL,YAAY,WAAA,GAAG,eAAA,eAAe,EAAE,SAAS,QAAQ,CAAC,GAAG,mDAAmD;GACxG,WAAW;GACX,UAAU;GACV,OAAO;GACP,SAAS;GACT,UAAU;GACV,cAAc;GACd,QAAQ;GACR,GAAG;EACL;EACA,YAAY,EACV,UAAU,EAAE,kBACV,gBAAgB,SACZ,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,aAAD,EAAa,WAAU,UAAW,CAAA,IAClC,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,cAAD,EAAc,WAAU,UAAW,CAAA,EAC3C;EACA,GAAI;CACL,CAAA;AAEL;AACA,SAAS,cAAc"}
1
+ {"version":3,"file":"calendar.cjs","names":[],"sources":["../../../src/primitives/calendar.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport { DayPicker } from \"react-day-picker\"\r\nimport { cn } from \"@/utils/cn\"\r\nimport { buttonVariants } from \"./button\"\r\nimport { ChevronLeft, ChevronRight } from \"lucide-react\"\r\n\r\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>\r\n\r\nfunction Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) {\r\n return (\r\n <DayPicker\r\n showOutsideDays={showOutsideDays}\r\n className={cn(\"p-3\", className)}\r\n classNames={{\r\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0\",\r\n month: \"space-y-4\",\r\n month_caption: \"flex justify-center pt-1 relative items-center\",\r\n caption_label: \"text-sm font-medium\",\r\n nav: \"space-x-1 flex items-center\",\r\n button_previous: cn(buttonVariants({ variant: \"outline\" }), \"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\"),\r\n button_next: cn(buttonVariants({ variant: \"outline\" }), \"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\"),\r\n month_grid: \"w-full border-collapse space-y-1\",\r\n weekdays: \"flex\",\r\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\r\n week: \"flex w-full mt-2\",\r\n day: \"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20\",\r\n day_button: cn(buttonVariants({ variant: \"ghost\" }), \"h-9 w-9 p-0 font-normal aria-selected:opacity-100\"),\r\n range_end: \"day-range-end\",\r\n selected: \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\r\n today: \"bg-accent text-accent-foreground\",\r\n outside: \"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30\",\r\n disabled: \"text-muted-foreground opacity-50\",\r\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground\",\r\n hidden: \"invisible\",\r\n ...classNames,\r\n }}\r\n components={{\r\n Chevron: ({ orientation }) =>\r\n orientation === \"left\"\r\n ? <ChevronLeft className=\"h-4 w-4\" />\r\n : <ChevronRight className=\"h-4 w-4\" />,\r\n }}\r\n {...props}\r\n />\r\n )\r\n}\r\nCalendar.displayName = \"Calendar\"\r\n\r\nexport { Calendar }\r\n"],"mappings":";;;;;;;;;;AAQA,SAAS,SAAS,EAAE,WAAW,YAAY,kBAAkB,MAAM,GAAG,SAAwB;CAC5F,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAA,WAAD;EACmB;EACjB,WAAW,WAAA,GAAG,OAAO,SAAS;EAC9B,YAAY;GACV,QAAQ;GACR,OAAO;GACP,eAAe;GACf,eAAe;GACf,KAAK;GACL,iBAAiB,WAAA,GAAG,eAAA,eAAe,EAAE,SAAS,UAAU,CAAC,GAAG,yEAAyE;GACrI,aAAa,WAAA,GAAG,eAAA,eAAe,EAAE,SAAS,UAAU,CAAC,GAAG,0EAA0E;GAClI,YAAY;GACZ,UAAU;GACV,SAAS;GACT,MAAM;GACN,KAAK;GACL,YAAY,WAAA,GAAG,eAAA,eAAe,EAAE,SAAS,QAAQ,CAAC,GAAG,mDAAmD;GACxG,WAAW;GACX,UAAU;GACV,OAAO;GACP,SAAS;GACT,UAAU;GACV,cAAc;GACd,QAAQ;GACR,GAAG;EACL;EACA,YAAY,EACV,UAAU,EAAE,kBACV,gBAAgB,SACZ,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,aAAD,EAAa,WAAU,UAAW,CAAA,IAClC,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,cAAD,EAAc,WAAU,UAAW,CAAA,EAC3C;EACA,GAAI;CACL,CAAA;AAEL;AACA,SAAS,cAAc"}