@trsys-tech/matrix-library 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -0
  3. package/dist/_commonjshelpers.es.js +7 -0
  4. package/dist/_commonjshelpers.es.js.map +1 -0
  5. package/dist/addleadingzeros.es.js +8 -0
  6. package/dist/addleadingzeros.es.js.map +1 -0
  7. package/dist/badge.es.js +29 -0
  8. package/dist/badge.es.js.map +1 -0
  9. package/dist/breadcrumb.es.js +33 -0
  10. package/dist/breadcrumb.es.js.map +1 -0
  11. package/dist/buildformatlongfn.es.js +10 -0
  12. package/dist/buildformatlongfn.es.js.map +1 -0
  13. package/dist/buildlocalizefn.es.js +19 -0
  14. package/dist/buildlocalizefn.es.js.map +1 -0
  15. package/dist/buildmatchfn.es.js +32 -0
  16. package/dist/buildmatchfn.es.js.map +1 -0
  17. package/dist/buildmatchpatternfn.es.js +16 -0
  18. package/dist/buildmatchpatternfn.es.js.map +1 -0
  19. package/dist/button.es.js +45 -0
  20. package/dist/button.es.js.map +1 -0
  21. package/dist/calendar.es.js +96 -0
  22. package/dist/calendar.es.js.map +1 -0
  23. package/dist/calendaricon.es.js +8 -0
  24. package/dist/calendaricon.es.js.map +1 -0
  25. package/dist/card.es.js +24 -0
  26. package/dist/card.es.js.map +1 -0
  27. package/dist/checkbox.es.js +28 -0
  28. package/dist/checkbox.es.js.map +1 -0
  29. package/dist/checkicon.es.js +8 -0
  30. package/dist/checkicon.es.js.map +1 -0
  31. package/dist/chevrondownicon.es.js +8 -0
  32. package/dist/chevrondownicon.es.js.map +1 -0
  33. package/dist/chevronlefticon.es.js +8 -0
  34. package/dist/chevronlefticon.es.js.map +1 -0
  35. package/dist/chevronrighticon.es.js +8 -0
  36. package/dist/chevronrighticon.es.js.map +1 -0
  37. package/dist/chevronsrighticon.es.js +8 -0
  38. package/dist/chevronsrighticon.es.js.map +1 -0
  39. package/dist/chevronupicon.es.js +8 -0
  40. package/dist/chevronupicon.es.js.map +1 -0
  41. package/dist/chip.es.js +42 -0
  42. package/dist/chip.es.js.map +1 -0
  43. package/dist/circleicon.es.js +8 -0
  44. package/dist/circleicon.es.js.map +1 -0
  45. package/dist/clonedeep.es.js +18 -0
  46. package/dist/clonedeep.es.js.map +1 -0
  47. package/dist/clonedeep.es2.js +5 -0
  48. package/dist/clonedeep.es2.js.map +1 -0
  49. package/dist/closecircleicon.es.js +8 -0
  50. package/dist/closecircleicon.es.js.map +1 -0
  51. package/dist/closeicon.es.js +8 -0
  52. package/dist/closeicon.es.js.map +1 -0
  53. package/dist/collapsible.es.js +24 -0
  54. package/dist/collapsible.es.js.map +1 -0
  55. package/dist/combobox.es.js +35 -0
  56. package/dist/combobox.es.js.map +1 -0
  57. package/dist/command.es.js +81 -0
  58. package/dist/command.es.js.map +1 -0
  59. package/dist/components/Icons/CalendarIcon.d.ts +3 -0
  60. package/dist/components/Icons/CalendarIcon.d.ts.map +1 -0
  61. package/dist/components/Icons/CheckIcon.d.ts +3 -0
  62. package/dist/components/Icons/CheckIcon.d.ts.map +1 -0
  63. package/dist/components/Icons/ChevronDownIcon.d.ts +3 -0
  64. package/dist/components/Icons/ChevronDownIcon.d.ts.map +1 -0
  65. package/dist/components/Icons/ChevronLeftIcon.d.ts +3 -0
  66. package/dist/components/Icons/ChevronLeftIcon.d.ts.map +1 -0
  67. package/dist/components/Icons/ChevronRightIcon.d.ts +3 -0
  68. package/dist/components/Icons/ChevronRightIcon.d.ts.map +1 -0
  69. package/dist/components/Icons/ChevronUpIcon.d.ts +3 -0
  70. package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
  71. package/dist/components/Icons/ChevronsRightIcon.d.ts +3 -0
  72. package/dist/components/Icons/ChevronsRightIcon.d.ts.map +1 -0
  73. package/dist/components/Icons/CircleIcon.d.ts +3 -0
  74. package/dist/components/Icons/CircleIcon.d.ts.map +1 -0
  75. package/dist/components/Icons/CloseCircleIcon.d.ts +3 -0
  76. package/dist/components/Icons/CloseCircleIcon.d.ts.map +1 -0
  77. package/dist/components/Icons/CloseIcon.d.ts +3 -0
  78. package/dist/components/Icons/CloseIcon.d.ts.map +1 -0
  79. package/dist/components/Icons/DangerCircleIcon.d.ts +3 -0
  80. package/dist/components/Icons/DangerCircleIcon.d.ts.map +1 -0
  81. package/dist/components/Icons/ElipsisHorizontal.d.ts +3 -0
  82. package/dist/components/Icons/ElipsisHorizontal.d.ts.map +1 -0
  83. package/dist/components/Icons/ElipsisVerticalIcon.d.ts +3 -0
  84. package/dist/components/Icons/ElipsisVerticalIcon.d.ts.map +1 -0
  85. package/dist/components/Icons/HomeIcon.d.ts +3 -0
  86. package/dist/components/Icons/HomeIcon.d.ts.map +1 -0
  87. package/dist/components/Icons/InfoCircleIcon.d.ts +3 -0
  88. package/dist/components/Icons/InfoCircleIcon.d.ts.map +1 -0
  89. package/dist/components/Icons/MinusIcon.d.ts +3 -0
  90. package/dist/components/Icons/MinusIcon.d.ts.map +1 -0
  91. package/dist/components/Icons/PlusIcon.d.ts +3 -0
  92. package/dist/components/Icons/PlusIcon.d.ts.map +1 -0
  93. package/dist/components/Icons/PrintIcon.d.ts +3 -0
  94. package/dist/components/Icons/PrintIcon.d.ts.map +1 -0
  95. package/dist/components/Icons/RefreshIcon.d.ts +3 -0
  96. package/dist/components/Icons/RefreshIcon.d.ts.map +1 -0
  97. package/dist/components/Icons/SearchIcon.d.ts +3 -0
  98. package/dist/components/Icons/SearchIcon.d.ts.map +1 -0
  99. package/dist/components/Icons/SnowflakeIcon.d.ts +3 -0
  100. package/dist/components/Icons/SnowflakeIcon.d.ts.map +1 -0
  101. package/dist/components/Icons/SpinnerIcon.d.ts +3 -0
  102. package/dist/components/Icons/SpinnerIcon.d.ts.map +1 -0
  103. package/dist/components/Icons/StartIcon.d.ts +3 -0
  104. package/dist/components/Icons/StartIcon.d.ts.map +1 -0
  105. package/dist/components/Icons/SuccessCircleIcon.d.ts +3 -0
  106. package/dist/components/Icons/SuccessCircleIcon.d.ts.map +1 -0
  107. package/dist/components/Icons/TrashcanIcon.d.ts +3 -0
  108. package/dist/components/Icons/TrashcanIcon.d.ts.map +1 -0
  109. package/dist/components/Icons/WarningCircleIcon.d.ts +3 -0
  110. package/dist/components/Icons/WarningCircleIcon.d.ts.map +1 -0
  111. package/dist/components/accordion/Accordion.d.ts +8 -0
  112. package/dist/components/accordion/Accordion.d.ts.map +1 -0
  113. package/dist/components/avatar/Avatar.d.ts +7 -0
  114. package/dist/components/avatar/Avatar.d.ts.map +1 -0
  115. package/dist/components/badge/Badge.d.ts +116 -0
  116. package/dist/components/badge/Badge.d.ts.map +1 -0
  117. package/dist/components/breadcrumb/Breadcrumb.d.ts +20 -0
  118. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
  119. package/dist/components/button/Button.d.ts +143 -0
  120. package/dist/components/button/Button.d.ts.map +1 -0
  121. package/dist/components/card/Card.d.ts +16 -0
  122. package/dist/components/card/Card.d.ts.map +1 -0
  123. package/dist/components/checkbox/Checkbox.d.ts +6 -0
  124. package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
  125. package/dist/components/chip/Chip.d.ts +81 -0
  126. package/dist/components/chip/Chip.d.ts.map +1 -0
  127. package/dist/components/collapsible/Collapsible.d.ts +8 -0
  128. package/dist/components/collapsible/Collapsible.d.ts.map +1 -0
  129. package/dist/components/combobox/Combobox.d.ts +62 -0
  130. package/dist/components/combobox/Combobox.d.ts.map +1 -0
  131. package/dist/components/command/Command.d.ts +81 -0
  132. package/dist/components/command/Command.d.ts.map +1 -0
  133. package/dist/components/confirm/Confirm.d.ts +25 -0
  134. package/dist/components/confirm/Confirm.d.ts.map +1 -0
  135. package/dist/components/context-menu/ContextMenu.d.ts +28 -0
  136. package/dist/components/context-menu/ContextMenu.d.ts.map +1 -0
  137. package/dist/components/data-grid/DataGrid.d.ts +58 -0
  138. package/dist/components/data-grid/DataGrid.d.ts.map +1 -0
  139. package/dist/components/date-picker/DatePicker.d.ts +7 -0
  140. package/dist/components/date-picker/DatePicker.d.ts.map +1 -0
  141. package/dist/components/date-picker/DateRangePicker.d.ts +7 -0
  142. package/dist/components/date-picker/DateRangePicker.d.ts.map +1 -0
  143. package/dist/components/date-picker/DesktopDatePicker.d.ts +13 -0
  144. package/dist/components/date-picker/DesktopDatePicker.d.ts.map +1 -0
  145. package/dist/components/date-picker/DesktopDateRangePicker.d.ts +12 -0
  146. package/dist/components/date-picker/DesktopDateRangePicker.d.ts.map +1 -0
  147. package/dist/components/date-picker/DesktopTimePicker.d.ts +12 -0
  148. package/dist/components/date-picker/DesktopTimePicker.d.ts.map +1 -0
  149. package/dist/components/date-picker/MobileDatePicker.d.ts +15 -0
  150. package/dist/components/date-picker/MobileDatePicker.d.ts.map +1 -0
  151. package/dist/components/date-picker/MobileDateRangePicker.d.ts +15 -0
  152. package/dist/components/date-picker/MobileDateRangePicker.d.ts.map +1 -0
  153. package/dist/components/date-picker/MobileTimePicker.d.ts +12 -0
  154. package/dist/components/date-picker/MobileTimePicker.d.ts.map +1 -0
  155. package/dist/components/date-picker/TimePicker.d.ts +8 -0
  156. package/dist/components/date-picker/TimePicker.d.ts.map +1 -0
  157. package/dist/components/date-picker/TimePickerContent.d.ts +17 -0
  158. package/dist/components/date-picker/TimePickerContent.d.ts.map +1 -0
  159. package/dist/components/date-picker/calendar.d.ts +8 -0
  160. package/dist/components/date-picker/calendar.d.ts.map +1 -0
  161. package/dist/components/dialog/Dialog.d.ts +22 -0
  162. package/dist/components/dialog/Dialog.d.ts.map +1 -0
  163. package/dist/components/drawer/Drawer.d.ts +76 -0
  164. package/dist/components/drawer/Drawer.d.ts.map +1 -0
  165. package/dist/components/drawer/SwipableDrawer.d.ts +30 -0
  166. package/dist/components/drawer/SwipableDrawer.d.ts.map +1 -0
  167. package/dist/components/form/Form.d.ts +12 -0
  168. package/dist/components/form/Form.d.ts.map +1 -0
  169. package/dist/components/form-checkbox/FormCheckbox.d.ts +18 -0
  170. package/dist/components/form-checkbox/FormCheckbox.d.ts.map +1 -0
  171. package/dist/components/form-combobox/FormCombobox.d.ts +28 -0
  172. package/dist/components/form-combobox/FormCombobox.d.ts.map +1 -0
  173. package/dist/components/form-input/FormInput.d.ts +18 -0
  174. package/dist/components/form-input/FormInput.d.ts.map +1 -0
  175. package/dist/components/form-multi-select/FormMultiSelect.d.ts +19 -0
  176. package/dist/components/form-multi-select/FormMultiSelect.d.ts.map +1 -0
  177. package/dist/components/form-rating/FormRating.d.ts +20 -0
  178. package/dist/components/form-rating/FormRating.d.ts.map +1 -0
  179. package/dist/components/form-select/FormSelect.d.ts +27 -0
  180. package/dist/components/form-select/FormSelect.d.ts.map +1 -0
  181. package/dist/components/form-switch/FormSwitch.d.ts +18 -0
  182. package/dist/components/form-switch/FormSwitch.d.ts.map +1 -0
  183. package/dist/components/form-textarea/FormTextarea.d.ts +18 -0
  184. package/dist/components/form-textarea/FormTextarea.d.ts.map +1 -0
  185. package/dist/components/icon-botton/IconButton.d.ts +116 -0
  186. package/dist/components/icon-botton/IconButton.d.ts.map +1 -0
  187. package/dist/components/label/Label.d.ts +7 -0
  188. package/dist/components/label/Label.d.ts.map +1 -0
  189. package/dist/components/modal/Modal.d.ts +25 -0
  190. package/dist/components/modal/Modal.d.ts.map +1 -0
  191. package/dist/components/multi-select/MultiSelect.d.ts +144 -0
  192. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -0
  193. package/dist/components/popover/Popover.d.ts +9 -0
  194. package/dist/components/popover/Popover.d.ts.map +1 -0
  195. package/dist/components/radio-group/RadioGroup.d.ts +7 -0
  196. package/dist/components/radio-group/RadioGroup.d.ts.map +1 -0
  197. package/dist/components/rating/Rating.d.ts +124 -0
  198. package/dist/components/rating/Rating.d.ts.map +1 -0
  199. package/dist/components/select/Select.d.ts +28 -0
  200. package/dist/components/select/Select.d.ts.map +1 -0
  201. package/dist/components/separator/Separator.d.ts +5 -0
  202. package/dist/components/separator/Separator.d.ts.map +1 -0
  203. package/dist/components/sheet/Sheet.d.ts +77 -0
  204. package/dist/components/sheet/Sheet.d.ts.map +1 -0
  205. package/dist/components/sidebar/Sidebar.d.ts +160 -0
  206. package/dist/components/sidebar/Sidebar.d.ts.map +1 -0
  207. package/dist/components/skeleton/Skeleton.d.ts +7 -0
  208. package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
  209. package/dist/components/switch/Switch.d.ts +52 -0
  210. package/dist/components/switch/Switch.d.ts.map +1 -0
  211. package/dist/components/tabs/Tabs.d.ts +8 -0
  212. package/dist/components/tabs/Tabs.d.ts.map +1 -0
  213. package/dist/components/text-field/TextField.d.ts +61 -0
  214. package/dist/components/text-field/TextField.d.ts.map +1 -0
  215. package/dist/components/textarea/Textarea.d.ts +6 -0
  216. package/dist/components/textarea/Textarea.d.ts.map +1 -0
  217. package/dist/components/toast/Toast.d.ts +19 -0
  218. package/dist/components/toast/Toast.d.ts.map +1 -0
  219. package/dist/components/toast/toast-components.d.ts +129 -0
  220. package/dist/components/toast/toast-components.d.ts.map +1 -0
  221. package/dist/components/toast/use-toast.d.ts +24 -0
  222. package/dist/components/toast/use-toast.d.ts.map +1 -0
  223. package/dist/components/tooltip/Tooltip.d.ts +9 -0
  224. package/dist/components/tooltip/Tooltip.d.ts.map +1 -0
  225. package/dist/config.es.js +1066 -0
  226. package/dist/config.es.js.map +1 -0
  227. package/dist/confirm.es.js +67 -0
  228. package/dist/confirm.es.js.map +1 -0
  229. package/dist/constants.es.js +7 -0
  230. package/dist/constants.es.js.map +1 -0
  231. package/dist/constructfrom.es.js +9 -0
  232. package/dist/constructfrom.es.js.map +1 -0
  233. package/dist/dangercircleicon.es.js +17 -0
  234. package/dist/dangercircleicon.es.js.map +1 -0
  235. package/dist/datagrid.es.js +221 -0
  236. package/dist/datagrid.es.js.map +1 -0
  237. package/dist/datepicker.es.js +24 -0
  238. package/dist/datepicker.es.js.map +1 -0
  239. package/dist/daterangepicker.es.js +22 -0
  240. package/dist/daterangepicker.es.js.map +1 -0
  241. package/dist/default-theme.es.js +22 -0
  242. package/dist/default-theme.es.js.map +1 -0
  243. package/dist/default-theme.es2.js +5 -0
  244. package/dist/default-theme.es2.js.map +1 -0
  245. package/dist/defaultoptions.es.js +8 -0
  246. package/dist/defaultoptions.es.js.map +1 -0
  247. package/dist/defaulttheme.es.js +10 -0
  248. package/dist/defaulttheme.es.js.map +1 -0
  249. package/dist/desktopdatepicker.es.js +54 -0
  250. package/dist/desktopdatepicker.es.js.map +1 -0
  251. package/dist/desktopdaterangepicker.es.js +59 -0
  252. package/dist/desktopdaterangepicker.es.js.map +1 -0
  253. package/dist/desktoptimepicker.es.js +25 -0
  254. package/dist/desktoptimepicker.es.js.map +1 -0
  255. package/dist/dialog.es.js +62 -0
  256. package/dist/dialog.es.js.map +1 -0
  257. package/dist/differenceincalendardays.es.js +17 -0
  258. package/dist/differenceincalendardays.es.js.map +1 -0
  259. package/dist/drawer.es.js +66 -0
  260. package/dist/drawer.es.js.map +1 -0
  261. package/dist/elipsishorizontal.es.js +8 -0
  262. package/dist/elipsishorizontal.es.js.map +1 -0
  263. package/dist/elipsisverticalicon.es.js +8 -0
  264. package/dist/elipsisverticalicon.es.js.map +1 -0
  265. package/dist/en-us.es.js +22 -0
  266. package/dist/en-us.es.js.map +1 -0
  267. package/dist/form.es.js +66 -0
  268. package/dist/form.es.js.map +1 -0
  269. package/dist/format.es.js +59 -0
  270. package/dist/format.es.js.map +1 -0
  271. package/dist/formatdistance.es.js +71 -0
  272. package/dist/formatdistance.es.js.map +1 -0
  273. package/dist/formatlong.es.js +34 -0
  274. package/dist/formatlong.es.js.map +1 -0
  275. package/dist/formatrelative.es.js +12 -0
  276. package/dist/formatrelative.es.js.map +1 -0
  277. package/dist/formatters.es.js +518 -0
  278. package/dist/formatters.es.js.map +1 -0
  279. package/dist/formcheckbox.es.js +47 -0
  280. package/dist/formcheckbox.es.js.map +1 -0
  281. package/dist/formcombobox.es.js +116 -0
  282. package/dist/formcombobox.es.js.map +1 -0
  283. package/dist/forminput.es.js +35 -0
  284. package/dist/forminput.es.js.map +1 -0
  285. package/dist/formmultiselect.es.js +60 -0
  286. package/dist/formmultiselect.es.js.map +1 -0
  287. package/dist/formrating.es.js +53 -0
  288. package/dist/formrating.es.js.map +1 -0
  289. package/dist/formselect.es.js +88 -0
  290. package/dist/formselect.es.js.map +1 -0
  291. package/dist/formswitch.es.js +47 -0
  292. package/dist/formswitch.es.js.map +1 -0
  293. package/dist/getdayofyear.es.js +12 -0
  294. package/dist/getdayofyear.es.js.map +1 -0
  295. package/dist/getisoweek.es.js +13 -0
  296. package/dist/getisoweek.es.js.map +1 -0
  297. package/dist/getisoweekyear.es.js +16 -0
  298. package/dist/getisoweekyear.es.js.map +1 -0
  299. package/dist/gettimezoneoffsetinmilliseconds.es.js +19 -0
  300. package/dist/gettimezoneoffsetinmilliseconds.es.js.map +1 -0
  301. package/dist/getweek.es.js +13 -0
  302. package/dist/getweek.es.js.map +1 -0
  303. package/dist/getweekyear.es.js +17 -0
  304. package/dist/getweekyear.es.js.map +1 -0
  305. package/dist/iconbutton.es.js +38 -0
  306. package/dist/iconbutton.es.js.map +1 -0
  307. package/dist/index.d.ts +44 -0
  308. package/dist/index.d.ts.map +1 -0
  309. package/dist/index.es.js +201 -0
  310. package/dist/index.es.js.map +1 -0
  311. package/dist/infocircleicon.es.js +17 -0
  312. package/dist/infocircleicon.es.js.map +1 -0
  313. package/dist/isdate.es.js +8 -0
  314. package/dist/isdate.es.js.map +1 -0
  315. package/dist/isvalid.es.js +10 -0
  316. package/dist/isvalid.es.js.map +1 -0
  317. package/dist/label.es.js +12 -0
  318. package/dist/label.es.js.map +1 -0
  319. package/dist/lib/hooks/use-mobile.d.ts +2 -0
  320. package/dist/lib/hooks/use-mobile.d.ts.map +1 -0
  321. package/dist/lib/printHtml.d.ts +2 -0
  322. package/dist/lib/printHtml.d.ts.map +1 -0
  323. package/dist/lib/utils.d.ts +3 -0
  324. package/dist/lib/utils.d.ts.map +1 -0
  325. package/dist/lightformatters.es.js +60 -0
  326. package/dist/lightformatters.es.js.map +1 -0
  327. package/dist/localize.es.js +156 -0
  328. package/dist/localize.es.js.map +1 -0
  329. package/dist/longformatters.es.js +53 -0
  330. package/dist/longformatters.es.js.map +1 -0
  331. package/dist/match.es.js +111 -0
  332. package/dist/match.es.js.map +1 -0
  333. package/dist/minusicon.es.js +8 -0
  334. package/dist/minusicon.es.js.map +1 -0
  335. package/dist/mobiledatepicker.es.js +64 -0
  336. package/dist/mobiledatepicker.es.js.map +1 -0
  337. package/dist/mobiledaterangepicker.es.js +83 -0
  338. package/dist/mobiledaterangepicker.es.js.map +1 -0
  339. package/dist/mobiletimepicker.es.js +33 -0
  340. package/dist/mobiletimepicker.es.js.map +1 -0
  341. package/dist/modal.es.js +78 -0
  342. package/dist/modal.es.js.map +1 -0
  343. package/dist/multiselect.es.js +203 -0
  344. package/dist/multiselect.es.js.map +1 -0
  345. package/dist/normalizedates.es.js +12 -0
  346. package/dist/normalizedates.es.js.map +1 -0
  347. package/dist/popover.es.js +25 -0
  348. package/dist/popover.es.js.map +1 -0
  349. package/dist/printhtml.es.js +13 -0
  350. package/dist/printhtml.es.js.map +1 -0
  351. package/dist/printicon.es.js +8 -0
  352. package/dist/printicon.es.js.map +1 -0
  353. package/dist/protectedtokens.es.js +21 -0
  354. package/dist/protectedtokens.es.js.map +1 -0
  355. package/dist/radiogroup.es.js +25 -0
  356. package/dist/radiogroup.es.js.map +1 -0
  357. package/dist/rating.es.js +164 -0
  358. package/dist/rating.es.js.map +1 -0
  359. package/dist/refreshicon.es.js +8 -0
  360. package/dist/refreshicon.es.js.map +1 -0
  361. package/dist/searchicon.es.js +8 -0
  362. package/dist/searchicon.es.js.map +1 -0
  363. package/dist/select.es.js +109 -0
  364. package/dist/select.es.js.map +1 -0
  365. package/dist/separator.es.js +21 -0
  366. package/dist/separator.es.js.map +1 -0
  367. package/dist/sheet.es.js +69 -0
  368. package/dist/sheet.es.js.map +1 -0
  369. package/dist/sidebar.es.js +428 -0
  370. package/dist/sidebar.es.js.map +1 -0
  371. package/dist/skeleton.es.js +10 -0
  372. package/dist/skeleton.es.js.map +1 -0
  373. package/dist/snowflakeicon.es.js +8 -0
  374. package/dist/snowflakeicon.es.js.map +1 -0
  375. package/dist/spinnericon.es.js +18 -0
  376. package/dist/spinnericon.es.js.map +1 -0
  377. package/dist/starticon.es.js +23 -0
  378. package/dist/starticon.es.js.map +1 -0
  379. package/dist/startofday.es.js +10 -0
  380. package/dist/startofday.es.js.map +1 -0
  381. package/dist/startofisoweek.es.js +9 -0
  382. package/dist/startofisoweek.es.js.map +1 -0
  383. package/dist/startofisoweekyear.es.js +12 -0
  384. package/dist/startofisoweekyear.es.js.map +1 -0
  385. package/dist/startofweek.es.js +11 -0
  386. package/dist/startofweek.es.js.map +1 -0
  387. package/dist/startofweekyear.es.js +13 -0
  388. package/dist/startofweekyear.es.js.map +1 -0
  389. package/dist/startofyear.es.js +10 -0
  390. package/dist/startofyear.es.js.map +1 -0
  391. package/dist/style.css +1 -0
  392. package/dist/successcircleicon.es.js +17 -0
  393. package/dist/successcircleicon.es.js.map +1 -0
  394. package/dist/swipabledrawer.es.js +47 -0
  395. package/dist/swipabledrawer.es.js.map +1 -0
  396. package/dist/switch.es.js +30 -0
  397. package/dist/switch.es.js.map +1 -0
  398. package/dist/tabs.es.js +41 -0
  399. package/dist/tabs.es.js.map +1 -0
  400. package/dist/textfield.es.js +43 -0
  401. package/dist/textfield.es.js.map +1 -0
  402. package/dist/timepicker.es.js +22 -0
  403. package/dist/timepicker.es.js.map +1 -0
  404. package/dist/timepickercontent.es.js +73 -0
  405. package/dist/timepickercontent.es.js.map +1 -0
  406. package/dist/toast-components.es.js +66 -0
  407. package/dist/toast-components.es.js.map +1 -0
  408. package/dist/toast.es.js +44 -0
  409. package/dist/toast.es.js.map +1 -0
  410. package/dist/todate.es.js +9 -0
  411. package/dist/todate.es.js.map +1 -0
  412. package/dist/tooltip.es.js +30 -0
  413. package/dist/tooltip.es.js.map +1 -0
  414. package/dist/trashcanicon.es.js +6 -0
  415. package/dist/trashcanicon.es.js.map +1 -0
  416. package/dist/use-mobile.es.js +15 -0
  417. package/dist/use-mobile.es.js.map +1 -0
  418. package/dist/use-toast.es.js +25 -0
  419. package/dist/use-toast.es.js.map +1 -0
  420. package/dist/utils.es.js +9 -0
  421. package/dist/utils.es.js.map +1 -0
  422. package/dist/warningcircleicon.es.js +17 -0
  423. package/dist/warningcircleicon.es.js.map +1 -0
  424. package/package.json +132 -0
@@ -0,0 +1,17 @@
1
+ import { jsxs as l, jsx as c } from "react/jsx-runtime";
2
+ function t(i) {
3
+ return /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...i, children: [
4
+ /* @__PURE__ */ c("circle", { cx: "12", cy: "12", fill: "#106d2b", r: "12" }),
5
+ /* @__PURE__ */ c(
6
+ "path",
7
+ {
8
+ d: "m17.8 8.897-7.037 7.037a.485.485 0 0 1-.417.204.616.616 0 0 1-.439-.182l-3.725-3.725a.62.62 0 1 1 .878-.878l3.286 3.287 6.597-6.596a.62.62 0 0 1 .878 0 .575.575 0 0 1-.022.853z",
9
+ fill: "#fff"
10
+ }
11
+ )
12
+ ] });
13
+ }
14
+ export {
15
+ t as SuccessCircleIcon
16
+ };
17
+ //# sourceMappingURL=successcircleicon.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"successcircleicon.es.js","sources":["../src/components/Icons/SuccessCircleIcon.tsx"],"sourcesContent":["import { SVGProps } from \"react\";\r\n\r\nexport function SuccessCircleIcon(props: SVGProps<SVGSVGElement>) {\r\n return (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" {...props}>\r\n <circle cx=\"12\" cy=\"12\" fill=\"#106d2b\" r=\"12\" />\r\n <path\r\n d=\"m17.8 8.897-7.037 7.037a.485.485 0 0 1-.417.204.616.616 0 0 1-.439-.182l-3.725-3.725a.62.62 0 1 1 .878-.878l3.286 3.287 6.597-6.596a.62.62 0 0 1 .878 0 .575.575 0 0 1-.022.853z\"\r\n fill=\"#fff\"\r\n />\r\n </svg>\r\n );\r\n}\r\n"],"names":["SuccessCircleIcon","props","jsxs","jsx"],"mappings":";AAEO,SAASA,EAAkBC,GAAgC;AAE9D,SAAA,gBAAAC,EAAC,OAAI,EAAA,OAAM,8BAA6B,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAa,GAAGD,GACrF,UAAA;AAAA,IAAC,gBAAAE,EAAA,UAAA,EAAO,IAAG,MAAK,IAAG,MAAK,MAAK,WAAU,GAAE,KAAK,CAAA;AAAA,IAC9C,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,MAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EACP,GACF;AAEJ;"}
@@ -0,0 +1,47 @@
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { Drawer as t } from "vaul";
4
+ import { cn as i } from "./utils.es.js";
5
+ const d = ({ shouldScaleBackground: e = !0, ...a }) => /* @__PURE__ */ r(t.Root, { shouldScaleBackground: e, ...a });
6
+ d.displayName = "SwipableDrawer";
7
+ const m = t.Trigger;
8
+ m.displayName = "SwipableDrawerTrigger";
9
+ const n = t.Portal, c = t.Close;
10
+ c.displayName = "SwipableDrawerClose";
11
+ const w = o.forwardRef(({ className: e, ...a }, l) => /* @__PURE__ */ r(t.Overlay, { ref: l, className: i("fixed inset-0 z-50 bg-black/80", e), ...a }));
12
+ w.displayName = "SwipableDrawerOverlay";
13
+ const b = o.forwardRef(({ className: e, children: a, ...l }, p) => /* @__PURE__ */ s(n, { children: [
14
+ /* @__PURE__ */ r(w, {}),
15
+ /* @__PURE__ */ s(
16
+ t.Content,
17
+ {
18
+ ref: p,
19
+ className: i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", e),
20
+ ...l,
21
+ children: [
22
+ /* @__PURE__ */ r("div", { className: "mx-auto my-2 h-1.5 w-[100px] rounded-full bg-muted" }),
23
+ a
24
+ ]
25
+ }
26
+ )
27
+ ] }));
28
+ b.displayName = "SwipableDrawerContent";
29
+ const D = ({ className: e, ...a }) => /* @__PURE__ */ r("div", { className: i("grid gap-1.5 p-4 text-center sm:text-left", e), ...a });
30
+ D.displayName = "SwipableDrawerHeader";
31
+ const f = ({ className: e, ...a }) => /* @__PURE__ */ r("div", { className: i("mt-auto flex flex-col gap-2 p-4", e), ...a });
32
+ f.displayName = "SwipableDrawerFooter";
33
+ const S = o.forwardRef(({ className: e, ...a }, l) => /* @__PURE__ */ r(t.Title, { ref: l, className: i("text-lg font-semibold leading-none tracking-tight", e), ...a }));
34
+ S.displayName = "SwipableDrawerTitle";
35
+ const g = o.forwardRef(({ className: e, ...a }, l) => /* @__PURE__ */ r(t.Description, { ref: l, className: i("text-sm text-muted-foreground", e), ...a }));
36
+ g.displayName = "SwipableDrawerDescription";
37
+ export {
38
+ d as SwipableDrawer,
39
+ c as SwipableDrawerClose,
40
+ b as SwipableDrawerContent,
41
+ g as SwipableDrawerDescription,
42
+ f as SwipableDrawerFooter,
43
+ D as SwipableDrawerHeader,
44
+ S as SwipableDrawerTitle,
45
+ m as SwipableDrawerTrigger
46
+ };
47
+ //# sourceMappingURL=swipabledrawer.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipabledrawer.es.js","sources":["../src/components/drawer/SwipableDrawer.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport { Drawer as DrawerPrimitive } from \"vaul\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nconst SwipableDrawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\r\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\r\n);\r\nSwipableDrawer.displayName = \"SwipableDrawer\";\r\ntype SwipableDrawerProps = React.ComponentProps<typeof SwipableDrawer>;\r\n\r\nconst SwipableDrawerTrigger = DrawerPrimitive.Trigger;\r\nSwipableDrawerTrigger.displayName = \"SwipableDrawerTrigger\";\r\ntype SwipableDrawerTriggerProps = React.ComponentProps<typeof SwipableDrawerTrigger>;\r\n\r\nconst SwipableDrawerPortal = DrawerPrimitive.Portal;\r\n\r\nconst SwipableDrawerClose = DrawerPrimitive.Close;\r\nSwipableDrawerClose.displayName = \"SwipableDrawerClose\";\r\ntype SwipableDrawerCloseProps = React.ComponentProps<typeof SwipableDrawerClose>;\r\n\r\nconst SwipableDrawerOverlay = React.forwardRef<\r\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\r\n>(({ className, ...props }, ref) => <DrawerPrimitive.Overlay ref={ref} className={cn(\"fixed inset-0 z-50 bg-black/80\", className)} {...props} />);\r\nSwipableDrawerOverlay.displayName = \"SwipableDrawerOverlay\";\r\n\r\nconst SwipableDrawerContent = React.forwardRef<\r\n React.ElementRef<typeof DrawerPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\r\n>(({ className, children, ...props }, ref) => (\r\n <SwipableDrawerPortal>\r\n <SwipableDrawerOverlay />\r\n <DrawerPrimitive.Content\r\n ref={ref}\r\n className={cn(\"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background\", className)}\r\n {...props}\r\n >\r\n <div className=\"mx-auto my-2 h-1.5 w-[100px] rounded-full bg-muted\" />\r\n {children}\r\n </DrawerPrimitive.Content>\r\n </SwipableDrawerPortal>\r\n));\r\nSwipableDrawerContent.displayName = \"SwipableDrawerContent\";\r\ntype SwipableDrawerContentProps = React.ComponentProps<typeof SwipableDrawerContent>;\r\n\r\nconst SwipableDrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div className={cn(\"grid gap-1.5 p-4 text-center sm:text-left\", className)} {...props} />\r\n);\r\nSwipableDrawerHeader.displayName = \"SwipableDrawerHeader\";\r\ntype SwipableDrawerHeaderProps = React.ComponentProps<typeof SwipableDrawerHeader>;\r\n\r\nconst SwipableDrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)} {...props} />\r\n);\r\nSwipableDrawerFooter.displayName = \"SwipableDrawerFooter\";\r\ntype SwipableDrawerFooterProps = React.ComponentProps<typeof SwipableDrawerFooter>;\r\n\r\nconst SwipableDrawerTitle = React.forwardRef<\r\n React.ElementRef<typeof DrawerPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\r\n>(({ className, ...props }, ref) => (\r\n <DrawerPrimitive.Title ref={ref} className={cn(\"text-lg font-semibold leading-none tracking-tight\", className)} {...props} />\r\n));\r\nSwipableDrawerTitle.displayName = \"SwipableDrawerTitle\";\r\ntype SwipableDrawerTitleProps = React.ComponentProps<typeof SwipableDrawerTitle>;\r\n\r\nconst SwipableDrawerDescription = React.forwardRef<\r\n React.ElementRef<typeof DrawerPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\r\n>(({ className, ...props }, ref) => <DrawerPrimitive.Description ref={ref} className={cn(\"text-sm text-muted-foreground\", className)} {...props} />);\r\nSwipableDrawerDescription.displayName = \"SwipableDrawerDescription\";\r\ntype SwipableDrawerDescriptionProps = React.ComponentProps<typeof SwipableDrawerDescription>;\r\n\r\nexport {\r\n SwipableDrawer,\r\n SwipableDrawerTrigger,\r\n SwipableDrawerClose,\r\n SwipableDrawerContent,\r\n SwipableDrawerHeader,\r\n SwipableDrawerFooter,\r\n SwipableDrawerTitle,\r\n SwipableDrawerDescription,\r\n type SwipableDrawerProps,\r\n type SwipableDrawerTriggerProps,\r\n type SwipableDrawerCloseProps,\r\n type SwipableDrawerContentProps,\r\n type SwipableDrawerHeaderProps,\r\n type SwipableDrawerFooterProps,\r\n type SwipableDrawerTitleProps,\r\n type SwipableDrawerDescriptionProps,\r\n};\r\n"],"names":["SwipableDrawer","shouldScaleBackground","props","jsx","DrawerPrimitive","SwipableDrawerTrigger","SwipableDrawerPortal","SwipableDrawerClose","SwipableDrawerOverlay","React","className","ref","cn","SwipableDrawerContent","children","jsxs","SwipableDrawerHeader","SwipableDrawerFooter","SwipableDrawerTitle","SwipableDrawerDescription"],"mappings":";;;;AAOA,MAAMA,IAAiB,CAAC,EAAE,uBAAAC,IAAwB,IAAM,GAAGC,EAAA,MACzD,gBAAAC,EAACC,EAAgB,MAAhB,EAAqB,uBAAAH,GAA+C,GAAGC,EAAO,CAAA;AAEjFF,EAAe,cAAc;AAG7B,MAAMK,IAAwBD,EAAgB;AAC9CC,EAAsB,cAAc;AAGpC,MAAMC,IAAuBF,EAAgB,QAEvCG,IAAsBH,EAAgB;AAC5CG,EAAoB,cAAc;AAGlC,MAAMC,IAAwBC,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAM,GAAGS,MAAQ,gBAAAR,EAACC,EAAgB,SAAhB,EAAwB,KAAAO,GAAU,WAAWC,EAAG,kCAAkCF,CAAS,GAAI,GAAGR,EAAA,CAAO,CAAE;AAChJM,EAAsB,cAAc;AAEpC,MAAMK,IAAwBJ,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,UAAAI,GAAU,GAAGZ,EAAM,GAAGS,MACpC,gBAAAI,EAACT,GACC,EAAA,UAAA;AAAA,EAAA,gBAAAH,EAACK,GAAsB,EAAA;AAAA,EACvB,gBAAAO;AAAA,IAACX,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAO;AAAA,MACA,WAAWC,EAAG,kGAAkGF,CAAS;AAAA,MACxH,GAAGR;AAAA,MAEJ,UAAA;AAAA,QAAC,gBAAAC,EAAA,OAAA,EAAI,WAAU,qDAAqD,CAAA;AAAA,QACnEW;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACH,GACF,CACD;AACDD,EAAsB,cAAc;AAGpC,MAAMG,IAAuB,CAAC,EAAE,WAAAN,GAAW,GAAGR,EAAM,MACjD,gBAAAC,EAAA,OAAA,EAAI,WAAWS,EAAG,6CAA6CF,CAAS,GAAI,GAAGR,EAAO,CAAA;AAEzFc,EAAqB,cAAc;AAGnC,MAAMC,IAAuB,CAAC,EAAE,WAAAP,GAAW,GAAGR,EAAM,MACjD,gBAAAC,EAAA,OAAA,EAAI,WAAWS,EAAG,mCAAmCF,CAAS,GAAI,GAAGR,EAAO,CAAA;AAE/Ee,EAAqB,cAAc;AAG7B,MAAAC,IAAsBT,EAAM,WAGhC,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAM,GAAGS,MAC1B,gBAAAR,EAACC,EAAgB,OAAhB,EAAsB,KAAAO,GAAU,WAAWC,EAAG,qDAAqDF,CAAS,GAAI,GAAGR,GAAO,CAC5H;AACDgB,EAAoB,cAAc;AAG5B,MAAAC,IAA4BV,EAAM,WAGtC,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAM,GAAGS,MAAQ,gBAAAR,EAACC,EAAgB,aAAhB,EAA4B,KAAAO,GAAU,WAAWC,EAAG,iCAAiCF,CAAS,GAAI,GAAGR,GAAO,CAAE;AACnJiB,EAA0B,cAAc;"}
@@ -0,0 +1,30 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import * as a from "@radix-ui/react-switch";
4
+ import { cn as e } from "./utils.es.js";
5
+ import { tv as c } from "tailwind-variants";
6
+ const d = c({
7
+ base: "peer inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
8
+ variants: {
9
+ size: {
10
+ sm: "h-4 w-7 [&>span]:h-3 [&>span]:w-3 [&>span]:data-[state=checked]:translate-x-3",
11
+ md: "h-5 w-9 [&>span]:h-4 [&>span]:w-4 [&>span]:data-[state=checked]:translate-x-4",
12
+ lg: "h-6 w-11 [&>span]:h-5 [&>span]:w-5 [&>span]:data-[state=checked]:translate-x-5"
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ size: "md"
17
+ }
18
+ }), l = o.forwardRef(({ className: t, size: r, ...n }, i) => /* @__PURE__ */ s(a.Root, { className: e(d({ size: r, className: t })), ...n, ref: i, children: /* @__PURE__ */ s(
19
+ a.Thumb,
20
+ {
21
+ className: e(
22
+ "pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0"
23
+ )
24
+ }
25
+ ) }));
26
+ l.displayName = a.Root.displayName;
27
+ export {
28
+ l as Switch
29
+ };
30
+ //# sourceMappingURL=switch.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.es.js","sources":["../src/components/switch/Switch.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\nimport { tv, VariantProps } from \"tailwind-variants\";\r\n\r\nconst switchVariants = tv({\r\n base: \"peer inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\r\n variants: {\r\n size: {\r\n sm: \"h-4 w-7 [&>span]:h-3 [&>span]:w-3 [&>span]:data-[state=checked]:translate-x-3\",\r\n md: \"h-5 w-9 [&>span]:h-4 [&>span]:w-4 [&>span]:data-[state=checked]:translate-x-4\",\r\n lg: \"h-6 w-11 [&>span]:h-5 [&>span]:w-5 [&>span]:data-[state=checked]:translate-x-5\",\r\n },\r\n },\r\n defaultVariants: {\r\n size: \"md\",\r\n },\r\n});\r\n\r\ninterface SwitchProps extends SwitchPrimitives.SwitchProps, VariantProps<typeof switchVariants> {}\r\n\r\nconst Switch = React.forwardRef<React.ElementRef<typeof SwitchPrimitives.Root>, SwitchProps>(({ className, size, ...props }, ref) => (\r\n <SwitchPrimitives.Root className={cn(switchVariants({ size, className }))} {...props} ref={ref}>\r\n <SwitchPrimitives.Thumb\r\n className={cn(\r\n \"pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0\",\r\n )}\r\n />\r\n </SwitchPrimitives.Root>\r\n));\r\nSwitch.displayName = SwitchPrimitives.Root.displayName;\r\n\r\nexport { Switch, type SwitchProps };\r\n"],"names":["switchVariants","tv","Switch","React","className","size","props","ref","jsx","SwitchPrimitives","cn"],"mappings":";;;;;AAQA,MAAMA,IAAiBC,EAAG;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EAER;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GAIKC,IAASC,EAAM,WAAwE,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAS,GAAAC,MAC1H,gBAAAC,EAAAC,EAAiB,MAAjB,EAAsB,WAAWC,EAAGV,EAAe,EAAE,MAAAK,GAAM,WAAAD,GAAW,CAAC,GAAI,GAAGE,GAAO,KAAAC,GACpF,UAAA,gBAAAC;AAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,IAAA;AAAA,EACF;AACF,GACF,CACD;AACDR,EAAO,cAAcO,EAAiB,KAAK;"}
@@ -0,0 +1,41 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import { Root as m, List as i, Trigger as n, Content as d } from "@radix-ui/react-tabs";
4
+ import { cn as o } from "./utils.es.js";
5
+ const u = m, l = r.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ s(
6
+ i,
7
+ {
8
+ ref: a,
9
+ className: o(
10
+ "inline-flex h-12 w-full overflow-auto thin-scrollbar items-center justify-start bg-background p-0 text-muted-foreground md:[box-shadow:inset_0_-1px_0_hsl(var(--gray-300))]",
11
+ t
12
+ ),
13
+ ...e
14
+ }
15
+ ));
16
+ l.displayName = i.displayName;
17
+ const f = r.forwardRef(
18
+ ({ className: t, ...e }, a) => /* @__PURE__ */ s(
19
+ n,
20
+ {
21
+ ref: a,
22
+ className: o(
23
+ "inline-flex items-center justify-center whitespace-nowrap h-full px-3 py-1 text-sm font-medium disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground data-[state=active]:font-bold data-[state=active]:border-b-2 data-[state=active]:border-primary",
24
+ t
25
+ ),
26
+ ...e
27
+ }
28
+ )
29
+ );
30
+ f.displayName = n.displayName;
31
+ const c = r.forwardRef(
32
+ ({ className: t, ...e }, a) => /* @__PURE__ */ s(d, { ref: a, className: o("mt-2", t), ...e })
33
+ );
34
+ c.displayName = d.displayName;
35
+ export {
36
+ u as Tabs,
37
+ c as TabsContent,
38
+ l as TabsList,
39
+ f as TabsTrigger
40
+ };
41
+ //# sourceMappingURL=tabs.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.es.js","sources":["../src/components/tabs/Tabs.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport { Content, List, Root, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, Trigger } from \"@radix-ui/react-tabs\";\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nconst Tabs = Root;\r\n\r\nconst TabsList = React.forwardRef<React.ElementRef<typeof List>, React.ComponentPropsWithoutRef<typeof List>>(({ className, ...props }, ref) => (\r\n <List\r\n ref={ref}\r\n className={cn(\r\n \"inline-flex h-12 w-full overflow-auto thin-scrollbar items-center justify-start bg-background p-0 text-muted-foreground md:[box-shadow:inset_0_-1px_0_hsl(var(--gray-300))]\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n));\r\nTabsList.displayName = List.displayName;\r\n\r\nconst TabsTrigger = React.forwardRef<React.ElementRef<typeof Trigger>, React.ComponentPropsWithoutRef<typeof Trigger>>(\r\n ({ className, ...props }, ref) => (\r\n <Trigger\r\n ref={ref}\r\n className={cn(\r\n \"inline-flex items-center justify-center whitespace-nowrap h-full px-3 py-1 text-sm font-medium disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground data-[state=active]:font-bold data-[state=active]:border-b-2 data-[state=active]:border-primary\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n ),\r\n);\r\nTabsTrigger.displayName = Trigger.displayName;\r\n\r\nconst TabsContent = React.forwardRef<React.ElementRef<typeof Content>, React.ComponentPropsWithoutRef<typeof Content>>(\r\n ({ className, ...props }, ref) => <Content ref={ref} className={cn(\"mt-2\", className)} {...props} />,\r\n);\r\nTabsContent.displayName = Content.displayName;\r\n\r\nexport { Tabs, TabsList, TabsTrigger, TabsContent, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps };\r\n"],"names":["Tabs","Root","TabsList","React","className","props","ref","jsx","List","cn","TabsTrigger","Trigger","TabsContent","Content"],"mappings":";;;;AAIA,MAAMA,IAAOC,GAEPC,IAAWC,EAAM,WAAuF,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MACtI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAS,cAAcM,EAAK;AAE5B,MAAME,IAAcP,EAAM;AAAA,EACxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MACxB,gBAAAC;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,KAAAL;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACAK,EAAY,cAAcC,EAAQ;AAElC,MAAMC,IAAcT,EAAM;AAAA,EACxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAAQ,gBAAAC,EAACM,GAAQ,EAAA,KAAAP,GAAU,WAAWG,EAAG,QAAQL,CAAS,GAAI,GAAGC,EAAO,CAAA;AACpG;AACAO,EAAY,cAAcC,EAAQ;"}
@@ -0,0 +1,43 @@
1
+ import { jsxs as x, jsx as r } from "react/jsx-runtime";
2
+ import * as c from "react";
3
+ import { tv as b } from "tailwind-variants";
4
+ import { cn as i } from "./utils.es.js";
5
+ const g = b({
6
+ base: "flex items-center w-full rounded-sm border border-input text-gray-800 bg-transparent p-0 text-xs font-medium shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-300 hover:border-primary-400 focus-within:border-primary-400 focus-within:outline-none focus-within:ring focus-within:ring-primary-100 disabled:cursor-not-allowed disabled:text-text-300 disabled:bg-gray-100 disabled:border-gray-100",
7
+ variants: {
8
+ size: {
9
+ sm: "h-7",
10
+ md: "h-9",
11
+ lg: "h-11"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ size: "md"
16
+ }
17
+ }), h = c.forwardRef(
18
+ ({ className: o, slotProps: t, suffix: e, endButton: n, startButton: s, size: a, value: l, onChange: d, defaultValue: m, type: f, ...p }, u) => /* @__PURE__ */ x("div", { ...p, className: i(g({ size: a, className: o })), children: [
19
+ s,
20
+ /* @__PURE__ */ r(
21
+ "input",
22
+ {
23
+ type: f,
24
+ ref: u,
25
+ onChange: d,
26
+ value: l,
27
+ defaultValue: m,
28
+ ...t?.inputProps ?? {},
29
+ className: i(
30
+ "focus:outline-none w-full h-full px-3 py-1 rounded-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-300",
31
+ t?.inputProps?.className
32
+ )
33
+ }
34
+ ),
35
+ typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ r("span", { className: "inline-flex items-center px-2 text-xs font-medium text-primary bg-primary-50 m-0.5 rounded-sm", children: e }) : e,
36
+ n
37
+ ] })
38
+ );
39
+ h.displayName = "TextField";
40
+ export {
41
+ h as TextField
42
+ };
43
+ //# sourceMappingURL=textfield.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textfield.es.js","sources":["../src/components/text-field/TextField.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport { tv, VariantProps } from \"tailwind-variants\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nconst textFieldVariants = tv({\r\n base: \"flex items-center w-full rounded-sm border border-input text-gray-800 bg-transparent p-0 text-xs font-medium shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-300 hover:border-primary-400 focus-within:border-primary-400 focus-within:outline-none focus-within:ring focus-within:ring-primary-100 disabled:cursor-not-allowed disabled:text-text-300 disabled:bg-gray-100 disabled:border-gray-100\",\r\n variants: {\r\n size: {\r\n sm: \"h-7\",\r\n md: \"h-9\",\r\n lg: \"h-11\",\r\n },\r\n },\r\n defaultVariants: {\r\n size: \"md\",\r\n },\r\n});\r\n\r\ninterface TextFieldProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof textFieldVariants> {\r\n type?: React.HTMLInputTypeAttribute;\r\n suffix?: React.ReactNode;\r\n endButton?: React.ReactNode;\r\n startButton?: React.ReactNode;\r\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\r\n value?: string | number;\r\n defaultValue?: string | number;\r\n slotProps?: {\r\n inputProps?: React.InputHTMLAttributes<HTMLInputElement>;\r\n };\r\n}\r\n\r\nconst TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(\r\n ({ className, slotProps, suffix, endButton, startButton, size, value, onChange, defaultValue, type, ...props }, ref) => {\r\n return (\r\n <div {...props} className={cn(textFieldVariants({ size, className }))}>\r\n {startButton}\r\n <input\r\n type={type}\r\n ref={ref}\r\n onChange={onChange}\r\n value={value}\r\n defaultValue={defaultValue}\r\n {...(slotProps?.inputProps ?? {})}\r\n className={cn(\r\n \"focus:outline-none w-full h-full px-3 py-1 rounded-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-300\",\r\n slotProps?.inputProps?.className,\r\n )}\r\n />\r\n {typeof suffix === \"string\" || typeof suffix === \"number\" ? (\r\n <span className=\"inline-flex items-center px-2 text-xs font-medium text-primary bg-primary-50 m-0.5 rounded-sm\">{suffix}</span>\r\n ) : (\r\n suffix\r\n )}\r\n {endButton}\r\n </div>\r\n );\r\n },\r\n);\r\nTextField.displayName = \"TextField\";\r\n\r\nexport { TextField, type TextFieldProps };\r\n"],"names":["textFieldVariants","tv","TextField","React","className","slotProps","suffix","endButton","startButton","size","value","onChange","defaultValue","type","props","ref","jsxs","cn","jsx"],"mappings":";;;;AAKA,MAAMA,IAAoBC,EAAG;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EAER;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GAeKC,IAAYC,EAAM;AAAA,EACtB,CAAC,EAAE,WAAAC,GAAW,WAAAC,GAAW,QAAAC,GAAQ,WAAAC,GAAW,aAAAC,GAAa,MAAAC,GAAM,OAAAC,GAAO,UAAAC,GAAU,cAAAC,GAAc,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE3G,gBAAAC,EAAA,OAAA,EAAK,GAAGF,GAAO,WAAWG,EAAGjB,EAAkB,EAAE,MAAAS,GAAM,WAAAL,GAAW,CAAC,GACjE,UAAA;AAAA,IAAAI;AAAA,IACD,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAAL;AAAA,QACA,KAAAE;AAAA,QACA,UAAAJ;AAAA,QACA,OAAAD;AAAA,QACA,cAAAE;AAAA,QACC,GAAIP,GAAW,cAAc,CAAC;AAAA,QAC/B,WAAWY;AAAA,UACT;AAAA,UACAZ,GAAW,YAAY;AAAA,QAAA;AAAA,MACzB;AAAA,IACF;AAAA,IACC,OAAOC,KAAW,YAAY,OAAOA,KAAW,WAC/C,gBAAAY,EAAC,QAAK,EAAA,WAAU,iGAAiG,UAAAZ,EAAA,CAAO,IAExHA;AAAA,IAEDC;AAAA,EAAA,GACH;AAGN;AACAL,EAAU,cAAc;"}
@@ -0,0 +1,22 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import e from "react";
3
+ import n from "./defaulttheme.es.js";
4
+ import { MobileTimePicker as s } from "./mobiletimepicker.es.js";
5
+ import { DesktopTimePicker as c } from "./desktoptimepicker.es.js";
6
+ const b = (i) => {
7
+ const [r, m] = e.useState(0);
8
+ return e.useEffect(() => {
9
+ const o = new ResizeObserver(() => {
10
+ m(window.innerWidth);
11
+ });
12
+ return o.observe(document.documentElement), () => {
13
+ o.disconnect();
14
+ };
15
+ }, []), e.useMemo(() => window !== void 0 ? window?.matchMedia?.(`(max-width: ${n.screens.md})`)?.matches : !1, [r]) ? /* @__PURE__ */ t(s, { ...i }) : /* @__PURE__ */ t(c, { ...i });
16
+ };
17
+ export {
18
+ c as DesktopTimePicker,
19
+ s as MobileTimePicker,
20
+ b as TimePicker
21
+ };
22
+ //# sourceMappingURL=timepicker.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timepicker.es.js","sources":["../src/components/date-picker/TimePicker.tsx"],"sourcesContent":["import React from \"react\";\r\nimport defaultTheme from \"tailwindcss/defaultTheme\";\r\n\r\nimport { Time } from \"./TimePickerContent\";\r\nimport { MobileTimePicker, MobileTimePickerProps } from \"./MobileTimePicker\";\r\nimport { DesktopTimePicker, DesktopTimePickerProps } from \"./DesktopTimePicker\";\r\n\r\ntype TimePickerProps = DesktopTimePickerProps & {};\r\n\r\nconst TimePicker: React.FC<TimePickerProps> = props => {\r\n // re render to show proper modal on resize\r\n const [windowSize, setWindowSize] = React.useState(0);\r\n React.useEffect(() => {\r\n const observer = new ResizeObserver(() => {\r\n setWindowSize(window.innerWidth);\r\n });\r\n\r\n observer.observe(document.documentElement);\r\n\r\n return () => {\r\n observer.disconnect();\r\n };\r\n }, []);\r\n\r\n const isMobile = React.useMemo(() => {\r\n if (window !== undefined) {\r\n return window?.matchMedia?.(`(max-width: ${defaultTheme.screens.md})`)?.matches;\r\n }\r\n return false;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [windowSize]);\r\n\r\n return isMobile ? <MobileTimePicker {...props} /> : <DesktopTimePicker {...props} />;\r\n};\r\n\r\nexport { TimePicker, DesktopTimePicker, type DesktopTimePickerProps, MobileTimePicker, type MobileTimePickerProps, type TimePickerProps, type Time };\r\n"],"names":["TimePicker","props","windowSize","setWindowSize","React","observer","defaultTheme","MobileTimePicker","jsx","DesktopTimePicker"],"mappings":";;;;;AASA,MAAMA,IAAwC,CAASC,MAAA;AAErD,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,CAAC;AACpDA,SAAAA,EAAM,UAAU,MAAM;AACd,UAAAC,IAAW,IAAI,eAAe,MAAM;AACxC,MAAAF,EAAc,OAAO,UAAU;AAAA,IAAA,CAChC;AAEQ,WAAAE,EAAA,QAAQ,SAAS,eAAe,GAElC,MAAM;AACX,MAAAA,EAAS,WAAW;AAAA,IACtB;AAAA,EACF,GAAG,EAAE,GAEYD,EAAM,QAAQ,MACzB,WAAW,SACN,QAAQ,aAAa,eAAeE,EAAa,QAAQ,EAAE,GAAG,GAAG,UAEnE,IAEN,CAACJ,CAAU,CAAC,sBAEIK,GAAkB,EAAA,GAAGN,GAAO,IAAK,gBAAAO,EAACC,GAAmB,EAAA,GAAGR,EAAO,CAAA;AACpF;"}
@@ -0,0 +1,73 @@
1
+ import { jsxs as N, jsx as o } from "react/jsx-runtime";
2
+ import { useState as S, useRef as m, useEffect as g } from "react";
3
+ import { cn as u } from "./utils.es.js";
4
+ const w = () => ({ hour: (/* @__PURE__ */ new Date()).getHours() % 12, minute: (/* @__PURE__ */ new Date()).getMinutes(), ampm: (/* @__PURE__ */ new Date()).getHours() < 12 ? "AM" : "PM" }), k = ({ isOpen: c, time: a, onTimeChange: i, slotsProps: d }) => {
5
+ const [r, s] = S(a ?? w()), e = m(r), h = m(null), x = m(null), n = 32, l = 8, b = (t) => {
6
+ h?.current?.scrollTo({
7
+ top: t * (n + l),
8
+ behavior: "smooth"
9
+ });
10
+ }, y = (t) => {
11
+ x?.current?.scrollTo({
12
+ top: t * (n + l),
13
+ behavior: "smooth"
14
+ });
15
+ }, p = (t) => {
16
+ e.current = { ...r, hour: t }, s(e.current), i(e.current);
17
+ }, v = (t) => {
18
+ e.current = { ...r, minute: t }, s(e.current), i(e.current);
19
+ }, M = (t) => {
20
+ e.current = { ...r, ampm: t }, s(e.current), i(e.current);
21
+ };
22
+ return g(() => {
23
+ c && s(a ?? w());
24
+ }, [c, a]), g(() => {
25
+ c && setTimeout(() => {
26
+ b(e.current.hour - 1), y(e.current.minute);
27
+ });
28
+ }, [c]), /* @__PURE__ */ N("div", { ...d?.content ?? {}, className: u("py-2 px-0 h-52 w-full flex justify-center gap-1", d?.content?.className), children: [
29
+ /* @__PURE__ */ o("div", { className: "w-24 px-2 h-full relative overflow-auto thin-scrollbar", ref: h, children: Array.from({ length: 12 }, (t, f) => f).map((t) => /* @__PURE__ */ o(
30
+ "button",
31
+ {
32
+ style: { height: n, marginBottom: l },
33
+ className: u(
34
+ "w-full flex justify-center items-center rounded-full text-sm font-bold text-text-400",
35
+ t + 1 === r.hour && "bg-secondary"
36
+ ),
37
+ onClick: () => p(t + 1),
38
+ children: (t + 1).toString().padStart(2, "0")
39
+ },
40
+ t + 1
41
+ )) }),
42
+ /* @__PURE__ */ o("div", { className: "h-full w-24 px-2 relative overflow-auto thin-scrollbar", ref: x, children: Array.from({ length: 60 }, (t, f) => f).map((t) => /* @__PURE__ */ o(
43
+ "button",
44
+ {
45
+ style: { height: n, marginBottom: l },
46
+ className: u(
47
+ "w-full flex justify-center items-center rounded-full text-sm font-bold text-text-400",
48
+ t === r.minute && "bg-secondary"
49
+ ),
50
+ onClick: () => v(t),
51
+ children: t.toString().padStart(2, "0")
52
+ },
53
+ t
54
+ )) }),
55
+ /* @__PURE__ */ o("div", { className: "h-full w-24 px-2 relative overflow-auto thin-scrollbar", children: ["AM", "PM"].map((t) => /* @__PURE__ */ o(
56
+ "button",
57
+ {
58
+ style: { height: n, marginBottom: l },
59
+ className: u(
60
+ "w-full flex justify-center items-center rounded-full text-sm font-bold text-text-400",
61
+ t === r.ampm && "bg-secondary"
62
+ ),
63
+ onClick: () => M(t),
64
+ children: t
65
+ },
66
+ t
67
+ )) })
68
+ ] });
69
+ };
70
+ export {
71
+ k as TimePickerContent
72
+ };
73
+ //# sourceMappingURL=timepickercontent.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timepickercontent.es.js","sources":["../src/components/date-picker/TimePickerContent.tsx"],"sourcesContent":["import { HTMLAttributes, useEffect, useRef, useState } from \"react\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\n\r\ntype Time = { hour: number; minute: number; ampm: \"AM\" | \"PM\" };\r\n\r\ntype TimePickerContentProps = {\r\n time: Time | undefined;\r\n isOpen: boolean;\r\n onTimeChange: (time: Time | undefined) => void;\r\n slotsProps?: {\r\n content?: HTMLAttributes<HTMLDivElement>;\r\n };\r\n};\r\n\r\nconst getNow = (): Time => {\r\n return { hour: new Date().getHours() % 12, minute: new Date().getMinutes(), ampm: new Date().getHours() < 12 ? \"AM\" : \"PM\" };\r\n};\r\n\r\nconst TimePickerContent: React.FC<TimePickerContentProps> = ({ isOpen, time, onTimeChange, slotsProps }) => {\r\n const [selectedtime, setSelectedTime] = useState<Time>(time ?? getNow());\r\n const selectedTimeRef = useRef<Time>(selectedtime);\r\n\r\n const hourRef = useRef<HTMLDivElement>(null);\r\n const minuteRef = useRef<HTMLDivElement>(null);\r\n\r\n const itemHeight = 32; // Assuming each item height is 40px\r\n const marginBetweenItems = 8; // Assuming margin between each item is 8px\r\n\r\n // Function to scroll to a specific hour\r\n const scrollToHour = (index: number) => {\r\n hourRef?.current?.scrollTo({\r\n top: index * (itemHeight + marginBetweenItems),\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n // Function to scroll to a specific minute\r\n const scrollToMinute = (index: number) => {\r\n minuteRef?.current?.scrollTo({\r\n top: index * (itemHeight + marginBetweenItems),\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n const handleSethour = (hour: number) => {\r\n selectedTimeRef.current = { ...selectedtime, hour };\r\n setSelectedTime(selectedTimeRef.current);\r\n onTimeChange(selectedTimeRef.current);\r\n };\r\n\r\n const handleSetMinute = (minute: number) => {\r\n selectedTimeRef.current = { ...selectedtime, minute };\r\n setSelectedTime(selectedTimeRef.current);\r\n onTimeChange(selectedTimeRef.current);\r\n };\r\n\r\n const handleSetAMPM = (ampm: \"AM\" | \"PM\") => {\r\n selectedTimeRef.current = { ...selectedtime, ampm };\r\n setSelectedTime(selectedTimeRef.current);\r\n onTimeChange(selectedTimeRef.current);\r\n };\r\n\r\n useEffect(() => {\r\n if (isOpen) {\r\n setSelectedTime(time ?? getNow());\r\n }\r\n }, [isOpen, time]);\r\n\r\n useEffect(() => {\r\n // Center the selected hour/minute on mount\r\n if (isOpen) {\r\n setTimeout(() => {\r\n scrollToHour(selectedTimeRef.current.hour - 1);\r\n scrollToMinute(selectedTimeRef.current.minute);\r\n });\r\n }\r\n }, [isOpen]);\r\n\r\n return (\r\n <div {...(slotsProps?.content ?? {})} className={cn(\"py-2 px-0 h-52 w-full flex justify-center gap-1\", slotsProps?.content?.className)}>\r\n {/* Hour Selector */}\r\n <div className=\"w-24 px-2 h-full relative overflow-auto thin-scrollbar\" ref={hourRef}>\r\n {Array.from({ length: 12 }, (_, i) => i).map(hour => (\r\n <button\r\n style={{ height: itemHeight, marginBottom: marginBetweenItems }}\r\n className={cn(\r\n \"w-full flex justify-center items-center rounded-full text-sm font-bold text-text-400\",\r\n hour + 1 === selectedtime.hour && \"bg-secondary\",\r\n )}\r\n key={hour + 1}\r\n onClick={() => handleSethour(hour + 1)}\r\n >\r\n {(hour + 1).toString().padStart(2, \"0\")}\r\n </button>\r\n ))}\r\n </div>\r\n\r\n {/* Minute Selector */}\r\n <div className=\"h-full w-24 px-2 relative overflow-auto thin-scrollbar\" ref={minuteRef}>\r\n {Array.from({ length: 60 }, (_, i) => i).map(minute => (\r\n <button\r\n style={{ height: itemHeight, marginBottom: marginBetweenItems }}\r\n className={cn(\r\n \"w-full flex justify-center items-center rounded-full text-sm font-bold text-text-400\",\r\n minute === selectedtime.minute && \"bg-secondary\",\r\n )}\r\n key={minute}\r\n onClick={() => handleSetMinute(minute)}\r\n >\r\n {minute.toString().padStart(2, \"0\")}\r\n </button>\r\n ))}\r\n </div>\r\n\r\n {/* AM/PM Selector */}\r\n <div className=\"h-full w-24 px-2 relative overflow-auto thin-scrollbar\">\r\n {[\"AM\", \"PM\"].map(ampm => (\r\n <button\r\n style={{ height: itemHeight, marginBottom: marginBetweenItems }}\r\n className={cn(\r\n \"w-full flex justify-center items-center rounded-full text-sm font-bold text-text-400\",\r\n ampm === selectedtime.ampm && \"bg-secondary\",\r\n )}\r\n key={ampm}\r\n onClick={() => handleSetAMPM(ampm as \"AM\" | \"PM\")}\r\n >\r\n {ampm}\r\n </button>\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n};\r\nexport { TimePickerContent, type TimePickerContentProps, type Time };\r\n"],"names":["getNow","TimePickerContent","isOpen","time","onTimeChange","slotsProps","selectedtime","setSelectedTime","useState","selectedTimeRef","useRef","hourRef","minuteRef","itemHeight","marginBetweenItems","scrollToHour","index","scrollToMinute","handleSethour","hour","handleSetMinute","minute","handleSetAMPM","ampm","useEffect","jsxs","cn","jsx","_","i"],"mappings":";;;AAeA,MAAMA,IAAS,OACN,EAAE,OAAU,oBAAA,KAAA,GAAO,aAAa,IAAI,SAAY,oBAAA,QAAO,WAAW,GAAG,OAAU,oBAAA,KAAA,GAAO,aAAa,KAAK,OAAO,KAAK,IAGvHC,IAAsD,CAAC,EAAE,QAAAC,GAAQ,MAAAC,GAAM,cAAAC,GAAc,YAAAC,QAAiB;AAC1G,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAeL,KAAQH,GAAQ,GACjES,IAAkBC,EAAaJ,CAAY,GAE3CK,IAAUD,EAAuB,IAAI,GACrCE,IAAYF,EAAuB,IAAI,GAEvCG,IAAa,IACbC,IAAqB,GAGrBC,IAAe,CAACC,MAAkB;AACtC,IAAAL,GAAS,SAAS,SAAS;AAAA,MACzB,KAAKK,KAASH,IAAaC;AAAA,MAC3B,UAAU;AAAA,IAAA,CACX;AAAA,EACH,GAGMG,IAAiB,CAACD,MAAkB;AACxC,IAAAJ,GAAW,SAAS,SAAS;AAAA,MAC3B,KAAKI,KAASH,IAAaC;AAAA,MAC3B,UAAU;AAAA,IAAA,CACX;AAAA,EACH,GAEMI,IAAgB,CAACC,MAAiB;AACtC,IAAAV,EAAgB,UAAU,EAAE,GAAGH,GAAc,MAAAa,EAAK,GAClDZ,EAAgBE,EAAgB,OAAO,GACvCL,EAAaK,EAAgB,OAAO;AAAA,EACtC,GAEMW,IAAkB,CAACC,MAAmB;AAC1C,IAAAZ,EAAgB,UAAU,EAAE,GAAGH,GAAc,QAAAe,EAAO,GACpDd,EAAgBE,EAAgB,OAAO,GACvCL,EAAaK,EAAgB,OAAO;AAAA,EACtC,GAEMa,IAAgB,CAACC,MAAsB;AAC3C,IAAAd,EAAgB,UAAU,EAAE,GAAGH,GAAc,MAAAiB,EAAK,GAClDhB,EAAgBE,EAAgB,OAAO,GACvCL,EAAaK,EAAgB,OAAO;AAAA,EACtC;AAEA,SAAAe,EAAU,MAAM;AACd,IAAItB,KACcK,EAAAJ,KAAQH,GAAQ;AAAA,EAClC,GACC,CAACE,GAAQC,CAAI,CAAC,GAEjBqB,EAAU,MAAM;AAEd,IAAItB,KACF,WAAW,MAAM;AACF,MAAAa,EAAAN,EAAgB,QAAQ,OAAO,CAAC,GAC9BQ,EAAAR,EAAgB,QAAQ,MAAM;AAAA,IAAA,CAC9C;AAAA,EACH,GACC,CAACP,CAAM,CAAC,GAGR,gBAAAuB,EAAA,OAAA,EAAK,GAAIpB,GAAY,WAAW,CAAK,GAAA,WAAWqB,EAAG,mDAAmDrB,GAAY,SAAS,SAAS,GAEnI,UAAA;AAAA,IAAA,gBAAAsB,EAAC,SAAI,WAAU,0DAAyD,KAAKhB,GAC1E,gBAAM,KAAK,EAAE,QAAQ,GAAA,GAAM,CAACiB,GAAGC,MAAMA,CAAC,EAAE,IAAI,CAC3CV,MAAA,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO,EAAE,QAAQd,GAAY,cAAcC,EAAmB;AAAA,QAC9D,WAAWY;AAAA,UACT;AAAA,UACAP,IAAO,MAAMb,EAAa,QAAQ;AAAA,QACpC;AAAA,QAEA,SAAS,MAAMY,EAAcC,IAAO,CAAC;AAAA,QAEnC,eAAO,GAAG,SAAA,EAAW,SAAS,GAAG,GAAG;AAAA,MAAA;AAAA,MAHjCA,IAAO;AAAA,IAKf,CAAA,GACH;AAAA,sBAGC,OAAI,EAAA,WAAU,0DAAyD,KAAKP,GAC1E,gBAAM,KAAK,EAAE,QAAQ,GAAA,GAAM,CAACgB,GAAGC,MAAMA,CAAC,EAAE,IAAI,CAC3CR,MAAA,gBAAAM;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO,EAAE,QAAQd,GAAY,cAAcC,EAAmB;AAAA,QAC9D,WAAWY;AAAA,UACT;AAAA,UACAL,MAAWf,EAAa,UAAU;AAAA,QACpC;AAAA,QAEA,SAAS,MAAMc,EAAgBC,CAAM;AAAA,QAEpC,UAAOA,EAAA,SAAW,EAAA,SAAS,GAAG,GAAG;AAAA,MAAA;AAAA,MAH7BA;AAAA,IAKR,CAAA,GACH;AAAA,IAGA,gBAAAM,EAAC,SAAI,WAAU,0DACZ,WAAC,MAAM,IAAI,EAAE,IAAI,CAChBJ,MAAA,gBAAAI;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO,EAAE,QAAQd,GAAY,cAAcC,EAAmB;AAAA,QAC9D,WAAWY;AAAA,UACT;AAAA,UACAH,MAASjB,EAAa,QAAQ;AAAA,QAChC;AAAA,QAEA,SAAS,MAAMgB,EAAcC,CAAmB;AAAA,QAE/C,UAAAA;AAAA,MAAA;AAAA,MAHIA;AAAA,IAAA,CAKR,EACH,CAAA;AAAA,EAAA,GACF;AAEJ;"}
@@ -0,0 +1,66 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import * as e from "@radix-ui/react-toast";
4
+ import { tv as d } from "tailwind-variants";
5
+ import { cn as n } from "./utils.es.js";
6
+ import { CloseIcon as l } from "./closeicon.es.js";
7
+ const y = e.Provider, c = s.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ r(
8
+ e.Viewport,
9
+ {
10
+ ref: o,
11
+ className: n("fixed z-[100] flex flex-col-reverse gap-3 max-h-dscreen w-full p-4 top-0 right-0 md:max-w-[420px] ", a),
12
+ ...t
13
+ }
14
+ ));
15
+ c.displayName = e.Viewport.displayName;
16
+ const p = d({
17
+ base: "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-lg border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full",
18
+ // data-[state=open]:sm:slide-in-from-bottom-full
19
+ variants: {
20
+ variant: {
21
+ default: "border bg-background text-foreground",
22
+ danger: "danger group border-danger bg-danger-400 text-danger-800",
23
+ success: "success group border-success bg-success-400 text-success-800",
24
+ warning: "warning group border-warning bg-warning-400 text-warning-800",
25
+ info: "info group border-info bg-info-400 text-info-700"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ variant: "default"
30
+ }
31
+ }), g = s.forwardRef(({ className: a, variant: t, ...o }, i) => /* @__PURE__ */ r(e.Root, { ref: i, className: n(p({ variant: t }), a), ...o }));
32
+ g.displayName = e.Root.displayName;
33
+ const m = s.forwardRef(
34
+ ({ className: a, ...t }, o) => /* @__PURE__ */ r(
35
+ e.Action,
36
+ {
37
+ ref: o,
38
+ className: n(
39
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.danger]:border-muted/40 group-[.danger]:hover:border-danger/30 group-[.danger]:hover:bg-danger group-[.danger]:hover:text-danger-foreground group-[.danger]:focus:ring-danger",
40
+ a
41
+ ),
42
+ ...t
43
+ }
44
+ )
45
+ );
46
+ m.displayName = e.Action.displayName;
47
+ const f = s.forwardRef(
48
+ ({ className: a, ...t }, o) => /* @__PURE__ */ r(e.Close, { ref: o, className: n("focus:outline-none focus:ring-none", a), "toast-close": "", ...t, children: /* @__PURE__ */ r(l, { className: "h-4 w-4" }) })
49
+ );
50
+ f.displayName = e.Close.displayName;
51
+ const u = s.forwardRef(
52
+ ({ className: a, ...t }, o) => /* @__PURE__ */ r(e.Title, { ref: o, className: n("text-xs font-semibold leading-5 [&+div]:text-xs", a), ...t })
53
+ );
54
+ u.displayName = e.Title.displayName;
55
+ const x = s.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ r(e.Description, { ref: o, className: n("text-sm opacity-90", a), ...t }));
56
+ x.displayName = e.Description.displayName;
57
+ export {
58
+ g as Toast,
59
+ m as ToastAction,
60
+ f as ToastClose,
61
+ x as ToastDescription,
62
+ y as ToastProvider,
63
+ u as ToastTitle,
64
+ c as ToastViewport
65
+ };
66
+ //# sourceMappingURL=toast-components.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-components.es.js","sources":["../src/components/toast/toast-components.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { cn } from \"../../lib/utils\";\nimport { CloseIcon } from \"../Icons/CloseIcon\";\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\"fixed z-[100] flex flex-col-reverse gap-3 max-h-dscreen w-full p-4 top-0 right-0 md:max-w-[420px] \", className)}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nconst toastVariants = tv({\n base: \"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-lg border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full\", // data-[state=open]:sm:slide-in-from-bottom-full\n variants: {\n variant: {\n default: \"border bg-background text-foreground\",\n danger: \"danger group border-danger bg-danger-400 text-danger-800\",\n success: \"success group border-success bg-success-400 text-success-800\",\n warning: \"warning group border-warning bg-warning-400 text-warning-800\",\n info: \"info group border-info bg-info-400 text-info-700\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ntype ToastVariant = VariantProps<typeof toastVariants>[\"variant\"];\n\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n return <ToastPrimitives.Root ref={ref} className={cn(toastVariants({ variant }), className)} {...props} />;\n});\nToast.displayName = ToastPrimitives.Root.displayName;\n\nconst ToastAction = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Action>, React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>>(\n ({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.danger]:border-muted/40 group-[.danger]:hover:border-danger/30 group-[.danger]:hover:bg-danger group-[.danger]:hover:text-danger-foreground group-[.danger]:focus:ring-danger\",\n className,\n )}\n {...props}\n />\n ),\n);\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\nconst ToastClose = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Close>, React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>>(\n ({ className, ...props }, ref) => (\n <ToastPrimitives.Close ref={ref} className={cn(\"focus:outline-none focus:ring-none\", className)} toast-close=\"\" {...props}>\n <CloseIcon className=\"h-4 w-4\" />\n </ToastPrimitives.Close>\n ),\n);\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\nconst ToastTitle = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Title>, React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>>(\n ({ className, ...props }, ref) => (\n <ToastPrimitives.Title ref={ref} className={cn(\"text-xs font-semibold leading-5 [&+div]:text-xs\", className)} {...props} />\n ),\n);\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => <ToastPrimitives.Description ref={ref} className={cn(\"text-sm opacity-90\", className)} {...props} />);\nToastDescription.displayName = ToastPrimitives.Description.displayName;\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>;\n\nexport {\n type ToastProps,\n type ToastActionElement,\n type ToastVariant,\n ToastProvider,\n ToastViewport,\n Toast,\n ToastTitle,\n ToastDescription,\n ToastClose,\n ToastAction,\n};\n"],"names":["ToastProvider","ToastPrimitives","ToastViewport","React","className","props","ref","jsx","cn","toastVariants","tv","Toast","variant","ToastAction","ToastClose","CloseIcon","ToastTitle","ToastDescription"],"mappings":";;;;;;AAOA,MAAMA,IAAgBC,EAAgB,UAEhCC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACN,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE,EAAG,sGAAsGJ,CAAS;AAAA,IAC5H,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAcD,EAAgB,SAAS;AAErD,MAAMQ,IAAgBC,EAAG;AAAA,EACvB,MAAM;AAAA;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EAEV;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC,GAIKC,IAAQR,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,SAAAQ,GAAS,GAAGP,EAAM,GAAGC,MAC3B,gBAAAC,EAAAN,EAAgB,MAAhB,EAAqB,KAAAK,GAAU,WAAWE,EAAGC,EAAc,EAAE,SAAAG,GAAS,GAAGR,CAAS,GAAI,GAAGC,EAAO,CAAA,CACzG;AACDM,EAAM,cAAcV,EAAgB,KAAK;AAEzC,MAAMY,IAAcV,EAAM;AAAA,EACxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MACxB,gBAAAC;AAAA,IAACN,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAK;AAAA,MACA,WAAWE;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACAQ,EAAY,cAAcZ,EAAgB,OAAO;AAEjD,MAAMa,IAAaX,EAAM;AAAA,EACvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAACN,EAAgB,OAAhB,EAAsB,KAAAK,GAAU,WAAWE,EAAG,sCAAsCJ,CAAS,GAAG,eAAY,IAAI,GAAGC,GAClH,UAAC,gBAAAE,EAAAQ,GAAA,EAAU,WAAU,UAAU,CAAA,EACjC,CAAA;AAEJ;AACAD,EAAW,cAAcb,EAAgB,MAAM;AAE/C,MAAMe,IAAab,EAAM;AAAA,EACvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MACvB,gBAAAC,EAAAN,EAAgB,OAAhB,EAAsB,KAAAK,GAAU,WAAWE,EAAG,mDAAmDJ,CAAS,GAAI,GAAGC,EAAO,CAAA;AAE7H;AACAW,EAAW,cAAcf,EAAgB,MAAM;AAEzC,MAAAgB,IAAmBd,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAAQ,gBAAAC,EAACN,EAAgB,aAAhB,EAA4B,KAAAK,GAAU,WAAWE,EAAG,sBAAsBJ,CAAS,GAAI,GAAGC,GAAO,CAAE;AACxIY,EAAiB,cAAchB,EAAgB,YAAY;"}
@@ -0,0 +1,44 @@
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import { useEffect as l } from "react";
3
+ import { ToastProvider as p, Toast as d, ToastTitle as T, ToastClose as h, ToastViewport as u } from "./toast-components.es.js";
4
+ import { useToasts as w, toastParams as C } from "./use-toast.es.js";
5
+ import { InfoCircleIcon as N } from "./infocircleicon.es.js";
6
+ import { SuccessCircleIcon as g } from "./successcircleicon.es.js";
7
+ import { WarningCircleIcon as I } from "./warningcircleicon.es.js";
8
+ import { DangerCircleIcon as x } from "./dangercircleicon.es.js";
9
+ function P({ limit: i = 3, duration: m = 5e3, slotProps: e }) {
10
+ const { toasts: a, removeToast: n } = w();
11
+ return l(() => {
12
+ i !== void 0 && (C.limit = i);
13
+ }, [i]), /* @__PURE__ */ s(p, { duration: m, ...e?.providerProps ?? {}, children: [
14
+ Array.from(a).map(([t, { message: c, variant: r }]) => /* @__PURE__ */ s(
15
+ d,
16
+ {
17
+ variant: r,
18
+ onOpenChange: (f) => {
19
+ f || setTimeout(() => n(t), 100);
20
+ },
21
+ ...e?.itemProps ?? {},
22
+ children: [
23
+ /* @__PURE__ */ s("div", { className: "flex gap-2 items-center", children: [
24
+ /* @__PURE__ */ s("div", { children: [
25
+ r === "danger" && /* @__PURE__ */ o(x, { className: "w-5 h-5" }),
26
+ r === "success" && /* @__PURE__ */ o(g, { className: "w-5 h-5" }),
27
+ r === "info" && /* @__PURE__ */ o(N, { className: "w-5 h-5" }),
28
+ r === "warning" && /* @__PURE__ */ o(I, { className: "w-5 h-5" })
29
+ ] }),
30
+ c && /* @__PURE__ */ o(T, { ...e?.titleProps ?? {}, children: c })
31
+ ] }),
32
+ /* @__PURE__ */ o(h, { ...e?.closeProps ?? {} })
33
+ ]
34
+ },
35
+ t
36
+ )),
37
+ /* @__PURE__ */ o(u, {})
38
+ ] });
39
+ }
40
+ P.displayName = "Toast";
41
+ export {
42
+ P as Toast
43
+ };
44
+ //# sourceMappingURL=toast.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.es.js","sources":["../src/components/toast/Toast.tsx"],"sourcesContent":["import { useEffect } from \"react\";\r\nimport { Toast as Root, ToastClose, ToastProvider, ToastTitle, ToastViewport } from \"./toast-components\";\r\n\r\nimport { useToasts, toastParams } from \"./use-toast\";\r\nimport { InfoCircleIcon } from \"../Icons/InfoCircleIcon\";\r\nimport { SuccessCircleIcon } from \"../Icons/SuccessCircleIcon\";\r\nimport { WarningCircleIcon } from \"../Icons/WarningCircleIcon\";\r\nimport { DangerCircleIcon } from \"../Icons/DangerCircleIcon\";\r\nimport { ToastProviderProps, ToastViewportProps } from \"@radix-ui/react-toast\";\r\n\r\ntype ToastProps = {\r\n limit?: number;\r\n duration?: number;\r\n slotProps?: {\r\n providerProps?: ToastProviderProps;\r\n viewportProps?: ToastViewportProps;\r\n itemProps?: React.ComponentProps<typeof Root>;\r\n closeProps?: React.ComponentProps<typeof ToastClose>;\r\n titleProps?: React.ComponentProps<typeof ToastTitle>;\r\n };\r\n};\r\n\r\nfunction Toast({ limit = 3, duration = 5000, slotProps }: ToastProps) {\r\n const { toasts, removeToast } = useToasts();\r\n\r\n useEffect(() => {\r\n if (limit !== undefined) {\r\n toastParams.limit = limit;\r\n }\r\n }, [limit]);\r\n\r\n return (\r\n <ToastProvider duration={duration} {...(slotProps?.providerProps ?? {})}>\r\n {Array.from(toasts).map(([key, { message, variant }]) => {\r\n return (\r\n <Root\r\n key={key}\r\n variant={variant}\r\n onOpenChange={open => {\r\n if (!open) {\r\n setTimeout(() => removeToast(key), 100); // let the animation finish then remove the toast\r\n }\r\n }}\r\n {...(slotProps?.itemProps ?? {})}\r\n >\r\n <div className=\"flex gap-2 items-center\">\r\n <div>\r\n {variant === \"danger\" && <DangerCircleIcon className=\"w-5 h-5\" />}\r\n {variant === \"success\" && <SuccessCircleIcon className=\"w-5 h-5\" />}\r\n {variant === \"info\" && <InfoCircleIcon className=\"w-5 h-5\" />}\r\n {variant === \"warning\" && <WarningCircleIcon className=\"w-5 h-5\" />}\r\n </div>\r\n {message && <ToastTitle {...(slotProps?.titleProps ?? {})}>{message}</ToastTitle>}\r\n </div>\r\n <ToastClose {...(slotProps?.closeProps ?? {})} />\r\n {/* {action} */}\r\n </Root>\r\n );\r\n })}\r\n <ToastViewport />\r\n </ToastProvider>\r\n );\r\n}\r\nToast.displayName = \"Toast\";\r\n\r\nexport { Toast, type ToastProps };\r\n"],"names":["Toast","limit","duration","slotProps","toasts","removeToast","useToasts","useEffect","toastParams","ToastProvider","key","message","variant","jsxs","Root","open","jsx","DangerCircleIcon","SuccessCircleIcon","InfoCircleIcon","WarningCircleIcon","ToastTitle","ToastClose","ToastViewport"],"mappings":";;;;;;;;AAsBA,SAASA,EAAM,EAAE,OAAAC,IAAQ,GAAG,UAAAC,IAAW,KAAM,WAAAC,KAAyB;AACpE,QAAM,EAAE,QAAAC,GAAQ,aAAAC,EAAY,IAAIC,EAAU;AAE1C,SAAAC,EAAU,MAAM;AACd,IAAIN,MAAU,WACZO,EAAY,QAAQP;AAAA,EACtB,GACC,CAACA,CAAK,CAAC,qBAGPQ,GAAc,EAAA,UAAAP,GAAqB,GAAIC,GAAW,iBAAiB,CACjE,GAAA,UAAA;AAAA,IAAM,MAAA,KAAKC,CAAM,EAAE,IAAI,CAAC,CAACM,GAAK,EAAE,SAAAC,GAAS,SAAAC,EAAQ,CAAC,MAE/C,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QAEC,SAAAF;AAAA,QACA,cAAc,CAAQG,MAAA;AACpB,UAAKA,KACH,WAAW,MAAMV,EAAYK,CAAG,GAAG,GAAG;AAAA,QAE1C;AAAA,QACC,GAAIP,GAAW,aAAa,CAAC;AAAA,QAE9B,UAAA;AAAA,UAAC,gBAAAU,EAAA,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,YAAA,gBAAAA,EAAC,OACE,EAAA,UAAA;AAAA,cAAAD,MAAY,YAAY,gBAAAI,EAACC,GAAiB,EAAA,WAAU,WAAU;AAAA,cAC9DL,MAAY,aAAc,gBAAAI,EAAAE,GAAA,EAAkB,WAAU,WAAU;AAAA,cAChEN,MAAY,UAAW,gBAAAI,EAAAG,GAAA,EAAe,WAAU,WAAU;AAAA,cAC1DP,MAAY,aAAc,gBAAAI,EAAAI,GAAA,EAAkB,WAAU,UAAU,CAAA;AAAA,YAAA,GACnE;AAAA,YACCT,uBAAYU,GAAY,EAAA,GAAIlB,GAAW,cAAc,CAAA,GAAM,UAAQQ,EAAA,CAAA;AAAA,UAAA,GACtE;AAAA,4BACCW,GAAY,EAAA,GAAInB,GAAW,cAAc,CAAA,EAAK,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAlB1CO;AAAA,IAoBP,CAEH;AAAA,sBACAa,GAAc,CAAA,CAAA;AAAA,EAAA,GACjB;AAEJ;AACAvB,EAAM,cAAc;"}
@@ -0,0 +1,9 @@
1
+ import { constructFrom as r } from "./constructfrom.es.js";
2
+ function e(t, o) {
3
+ return r(o || t, t);
4
+ }
5
+ export {
6
+ e as default,
7
+ e as toDate
8
+ };
9
+ //# sourceMappingURL=todate.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todate.es.js","sources":["../node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["toDate","argument","context","constructFrom"],"mappings":";AAwCO,SAASA,EAAOC,GAAUC,GAAS;AAExC,SAAOC,EAAcD,KAAWD,GAAUA,CAAQ;AACpD;","x_google_ignoreList":[0]}
@@ -0,0 +1,30 @@
1
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { Provider as n, Root as l, Trigger as p, Portal as f, Content as t, Arrow as c } from "@radix-ui/react-tooltip";
4
+ import { cn as g } from "./utils.es.js";
5
+ const y = n, N = l, b = p, x = m.forwardRef(
6
+ ({ className: e, sideOffset: a = 4, children: i, ...r }, d) => /* @__PURE__ */ o(f, { children: /* @__PURE__ */ s(
7
+ t,
8
+ {
9
+ ref: d,
10
+ sideOffset: a,
11
+ className: g(
12
+ "z-50 rounded-sm bg-primary-900 px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
13
+ e
14
+ ),
15
+ ...r,
16
+ children: [
17
+ i,
18
+ /* @__PURE__ */ o(c, { className: "w-2 h-1.5" })
19
+ ]
20
+ }
21
+ ) })
22
+ );
23
+ x.displayName = t.displayName;
24
+ export {
25
+ N as Tooltip,
26
+ x as TooltipContent,
27
+ y as TooltipProvider,
28
+ b as TooltipTrigger
29
+ };
30
+ //# sourceMappingURL=tooltip.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.es.js","sources":["../src/components/tooltip/Tooltip.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport { Root, Provider, Trigger, Portal, Content, Arrow, TooltipProps, TooltipProviderProps, TooltipTriggerProps } from \"@radix-ui/react-tooltip\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nconst TooltipProvider = Provider;\r\n\r\nconst Tooltip = Root;\r\n\r\nconst TooltipTrigger = Trigger;\r\n\r\nconst TooltipContent = React.forwardRef<React.ElementRef<typeof Content>, React.ComponentPropsWithoutRef<typeof Content>>(\r\n ({ className, sideOffset = 4, children, ...props }, ref) => (\r\n <Portal>\r\n <Content\r\n ref={ref}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n \"z-50 rounded-sm bg-primary-900 px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\r\n className,\r\n )}\r\n {...props}\r\n >\r\n {children}\r\n <Arrow className=\"w-2 h-1.5\" />\r\n </Content>\r\n </Portal>\r\n ),\r\n);\r\nTooltipContent.displayName = Content.displayName;\r\ntype TooltipContentProps = React.ComponentProps<typeof TooltipContent>;\r\n\r\nexport {\r\n Tooltip,\r\n TooltipTrigger,\r\n TooltipContent,\r\n TooltipProvider,\r\n type TooltipProps,\r\n type TooltipContentProps,\r\n type TooltipTriggerProps,\r\n type TooltipProviderProps,\r\n};\r\n"],"names":["TooltipProvider","Provider","Tooltip","Root","TooltipTrigger","Trigger","TooltipContent","React","className","sideOffset","children","props","ref","jsx","Portal","jsxs","Content","cn","Arrow"],"mappings":";;;;AAOA,MAAMA,IAAkBC,GAElBC,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAiBC,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,YAAAC,IAAa,GAAG,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MAClD,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAJ;AAAA,MACA,YAAAH;AAAA,MACA,WAAWQ;AAAA,QACT;AAAA,QACAT;AAAA,MACF;AAAA,MACC,GAAGG;AAAA,MAEH,UAAA;AAAA,QAAAD;AAAA,QACD,gBAAAG,EAACK,GAAM,EAAA,WAAU,YAAY,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,EAEjC,CAAA;AAEJ;AACAZ,EAAe,cAAcU,EAAQ;"}
@@ -0,0 +1,6 @@
1
+ import { jsx as C } from "react/jsx-runtime";
2
+ const t = (V) => /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", viewBox: "0 0 24 24", ...V, children: /* @__PURE__ */ C("path", { d: "M19.75 5.58335H16.7466L15.507 3.51434C15.1599 2.9885 14.624 2.66669 14.0115 2.66669H10.3219C9.70938 2.66669 9.14062 2.9885 8.82708 3.51434L7.58677 5.58335H4.58333C4.25977 5.58335 4 5.8433 4 6.16669V6.75002C4 7.0745 4.25977 7.33335 4.58333 7.33335H5.16667V19C5.16667 20.2888 6.2112 21.3334 7.5 21.3334H16.8333C18.1221 21.3334 19.1667 20.2888 19.1667 19V7.33335H19.75C20.0745 7.33335 20.3333 7.0745 20.3333 6.75002V6.16669C20.3333 5.8433 20.0745 5.58335 19.75 5.58335ZM10.2672 4.52169C10.3036 4.45789 10.3766 4.41669 10.4531 4.41669H13.8802C13.9577 4.41669 14.0306 4.4577 14.0671 4.5215L14.7042 5.58335H9.62917L10.2672 4.52169ZM16.8333 19.5834H7.5C7.17782 19.5834 6.91667 19.3222 6.91667 19V7.33335H17.4167V19C17.4167 19.3209 17.1542 19.5834 16.8333 19.5834ZM12.1667 17.8334C12.4891 17.8334 12.75 17.5725 12.75 17.25V9.66669C12.75 9.34425 12.4891 9.08335 12.1667 9.08335C11.8442 9.08335 11.5833 9.34585 11.5833 9.66669V17.25C11.5833 17.5709 11.8458 17.8334 12.1667 17.8334ZM9.25 17.8334C9.57083 17.8334 9.83333 17.5709 9.83333 17.25V9.66669C9.83333 9.34425 9.57244 9.08335 9.25 9.08335C8.92756 9.08335 8.66667 9.34585 8.66667 9.66669V17.25C8.66667 17.5709 8.92917 17.8334 9.25 17.8334ZM15.0833 17.8334C15.4058 17.8334 15.6667 17.5725 15.6667 17.25V9.66669C15.6667 9.34425 15.4058 9.08335 15.0833 9.08335C14.7609 9.08335 14.5 9.34585 14.5 9.66669V17.25C14.5 17.5709 14.7625 17.8334 15.0833 17.8334Z" }) });
3
+ export {
4
+ t as TrashcanIcon
5
+ };
6
+ //# sourceMappingURL=trashcanicon.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trashcanicon.es.js","sources":["../src/components/Icons/TrashcanIcon.tsx"],"sourcesContent":["import { SVGProps } from \"react\";\r\n\r\nexport const TrashcanIcon: React.FC<SVGProps<SVGSVGElement>> = props => {\r\n return (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" {...props}>\r\n <path d=\"M19.75 5.58335H16.7466L15.507 3.51434C15.1599 2.9885 14.624 2.66669 14.0115 2.66669H10.3219C9.70938 2.66669 9.14062 2.9885 8.82708 3.51434L7.58677 5.58335H4.58333C4.25977 5.58335 4 5.8433 4 6.16669V6.75002C4 7.0745 4.25977 7.33335 4.58333 7.33335H5.16667V19C5.16667 20.2888 6.2112 21.3334 7.5 21.3334H16.8333C18.1221 21.3334 19.1667 20.2888 19.1667 19V7.33335H19.75C20.0745 7.33335 20.3333 7.0745 20.3333 6.75002V6.16669C20.3333 5.8433 20.0745 5.58335 19.75 5.58335ZM10.2672 4.52169C10.3036 4.45789 10.3766 4.41669 10.4531 4.41669H13.8802C13.9577 4.41669 14.0306 4.4577 14.0671 4.5215L14.7042 5.58335H9.62917L10.2672 4.52169ZM16.8333 19.5834H7.5C7.17782 19.5834 6.91667 19.3222 6.91667 19V7.33335H17.4167V19C17.4167 19.3209 17.1542 19.5834 16.8333 19.5834ZM12.1667 17.8334C12.4891 17.8334 12.75 17.5725 12.75 17.25V9.66669C12.75 9.34425 12.4891 9.08335 12.1667 9.08335C11.8442 9.08335 11.5833 9.34585 11.5833 9.66669V17.25C11.5833 17.5709 11.8458 17.8334 12.1667 17.8334ZM9.25 17.8334C9.57083 17.8334 9.83333 17.5709 9.83333 17.25V9.66669C9.83333 9.34425 9.57244 9.08335 9.25 9.08335C8.92756 9.08335 8.66667 9.34585 8.66667 9.66669V17.25C8.66667 17.5709 8.92917 17.8334 9.25 17.8334ZM15.0833 17.8334C15.4058 17.8334 15.6667 17.5725 15.6667 17.25V9.66669C15.6667 9.34425 15.4058 9.08335 15.0833 9.08335C14.7609 9.08335 14.5 9.34585 14.5 9.66669V17.25C14.5 17.5709 14.7625 17.8334 15.0833 17.8334Z\" />\r\n </svg>\r\n );\r\n};\r\n"],"names":["TrashcanIcon","props"],"mappings":";AAEO,MAAMA,IAAkD,CAASC,wBAEnE,OAAI,EAAA,OAAM,8BAA6B,OAAM,MAAK,QAAO,MAAK,MAAK,gBAAe,SAAQ,aAAa,GAAGA,GACzG,4BAAC,QAAK,EAAA,GAAE,s3CAAs3C,CAAA,GACh4C;"}
@@ -0,0 +1,15 @@
1
+ import * as o from "react";
2
+ import s from "./defaulttheme.es.js";
3
+ function c() {
4
+ const [r, n] = o.useState(void 0), e = Number(s.screens.md.slice(0, -2));
5
+ return o.useEffect(() => {
6
+ const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => {
7
+ n(window.innerWidth < e);
8
+ };
9
+ return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i);
10
+ }, [e]), !!r;
11
+ }
12
+ export {
13
+ c as useIsMobile
14
+ };
15
+ //# sourceMappingURL=use-mobile.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mobile.es.js","sources":["../src/lib/hooks/use-mobile.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport defaultTheme from \"tailwindcss/defaultTheme\";\r\n\r\nexport function useIsMobile() {\r\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);\r\n const mobileBreakpoint = Number(defaultTheme.screens.md.slice(0, -2));\r\n\r\n React.useEffect(() => {\r\n const mql = window.matchMedia(`(max-width: ${mobileBreakpoint - 1}px)`);\r\n const onChange = () => {\r\n setIsMobile(window.innerWidth < mobileBreakpoint);\r\n };\r\n mql.addEventListener(\"change\", onChange);\r\n setIsMobile(window.innerWidth < mobileBreakpoint);\r\n return () => mql.removeEventListener(\"change\", onChange);\r\n }, [mobileBreakpoint]);\r\n\r\n return !!isMobile;\r\n}\r\n"],"names":["useIsMobile","isMobile","setIsMobile","React","mobileBreakpoint","defaultTheme","mql","onChange"],"mappings":";;AAGO,SAASA,IAAc;AAC5B,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAM,SAA8B,MAAS,GACvEC,IAAmB,OAAOC,EAAa,QAAQ,GAAG,MAAM,GAAG,EAAE,CAAC;AAEpE,SAAAF,EAAM,UAAU,MAAM;AACpB,UAAMG,IAAM,OAAO,WAAW,eAAeF,IAAmB,CAAC,KAAK,GAChEG,IAAW,MAAM;AACT,MAAAL,EAAA,OAAO,aAAaE,CAAgB;AAAA,IAClD;AACI,WAAAE,EAAA,iBAAiB,UAAUC,CAAQ,GAC3BL,EAAA,OAAO,aAAaE,CAAgB,GACzC,MAAME,EAAI,oBAAoB,UAAUC,CAAQ;AAAA,EAAA,GACtD,CAACH,CAAgB,CAAC,GAEd,CAAC,CAACH;AACX;"}