@konstructio/ui 0.1.2-alpha.78 → 0.1.2-alpha.79

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 (506) hide show
  1. package/dist/AdditionalOptions-Cx9wU01w.js +37 -0
  2. package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
  3. package/dist/Breadcrumb-C95aOsYk.js +77 -0
  4. package/dist/CalendarPanel.css +1 -1
  5. package/dist/Checkbox-Cn0UWlk8.js +239 -0
  6. package/dist/Combination-DUTBK_qM.js +486 -0
  7. package/dist/CommandInput-BKv-EZ7T.js +76 -0
  8. package/dist/Counter-DtQu_T-D.js +191 -0
  9. package/dist/DayPicker-CNWQ1Oyd.js +2884 -0
  10. package/dist/DropdownButton-B2XkEqPt.js +92 -0
  11. package/dist/FlagSelectorList-C17nmEBM.js +597 -0
  12. package/dist/ImageUpload-BzXjGZ2w.js +181 -0
  13. package/dist/Input-GBMxM3Z7.js +188 -0
  14. package/dist/Loading-DKqxR-oV.js +16 -0
  15. package/dist/Modal-DbTe8PVX.js +76 -0
  16. package/dist/Spinner-CyuXAaC8.js +41 -0
  17. package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
  18. package/dist/Switch-DjbC0A8y.js +136 -0
  19. package/dist/Toast-C3XjAvtC.js +478 -0
  20. package/dist/Wrapper-BWSOaT1y.js +1056 -0
  21. package/dist/Wrapper-CjUokv72.js +110 -0
  22. package/dist/Wrapper-DEJ-hyar.js +161 -0
  23. package/dist/assets/icons/components/Accounts.js +21 -35
  24. package/dist/assets/icons/components/AddChart.js +17 -25
  25. package/dist/assets/icons/components/AlertOutline.js +18 -26
  26. package/dist/assets/icons/components/AppRepo.js +14 -22
  27. package/dist/assets/icons/components/Apps.js +14 -22
  28. package/dist/assets/icons/components/Archives.js +14 -22
  29. package/dist/assets/icons/components/ArrowDown.js +14 -22
  30. package/dist/assets/icons/components/ArrowLeft.js +17 -25
  31. package/dist/assets/icons/components/ArrowRight.js +18 -26
  32. package/dist/assets/icons/components/ArrowUp.js +18 -26
  33. package/dist/assets/icons/components/BarChart.js +24 -32
  34. package/dist/assets/icons/components/BookOpen.js +18 -26
  35. package/dist/assets/icons/components/CalendarMonth.js +17 -25
  36. package/dist/assets/icons/components/Check.js +17 -25
  37. package/dist/assets/icons/components/CheckCircleFilled.js +25 -26
  38. package/dist/assets/icons/components/CheckCircleOutline.js +14 -22
  39. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +14 -20
  40. package/dist/assets/icons/components/ClockAlert.js +17 -25
  41. package/dist/assets/icons/components/ClockOutline.js +17 -25
  42. package/dist/assets/icons/components/Close.js +17 -25
  43. package/dist/assets/icons/components/Cloud.js +14 -19
  44. package/dist/assets/icons/components/CloudLockOutline.js +17 -25
  45. package/dist/assets/icons/components/Clusters.js +27 -41
  46. package/dist/assets/icons/components/CogOutline.js +17 -25
  47. package/dist/assets/icons/components/Copy.js +17 -25
  48. package/dist/assets/icons/components/Cpu.js +22 -36
  49. package/dist/assets/icons/components/Cube.js +14 -22
  50. package/dist/assets/icons/components/Datacenter.js +14 -22
  51. package/dist/assets/icons/components/Delete.js +18 -26
  52. package/dist/assets/icons/components/DollarSign.js +20 -28
  53. package/dist/assets/icons/components/Download.js +17 -25
  54. package/dist/assets/icons/components/Edit.js +17 -25
  55. package/dist/assets/icons/components/Ellipses.js +17 -25
  56. package/dist/assets/icons/components/Environments.js +19 -27
  57. package/dist/assets/icons/components/Error.js +17 -25
  58. package/dist/assets/icons/components/ErrorOutline.js +17 -25
  59. package/dist/assets/icons/components/Exclamation.js +21 -26
  60. package/dist/assets/icons/components/Git.js +17 -25
  61. package/dist/assets/icons/components/GitOpsCatalog.js +21 -35
  62. package/dist/assets/icons/components/GridView.js +11 -16
  63. package/dist/assets/icons/components/Help.js +24 -23
  64. package/dist/assets/icons/components/HideOutline.js +18 -32
  65. package/dist/assets/icons/components/Home.js +17 -25
  66. package/dist/assets/icons/components/Home2.js +20 -25
  67. package/dist/assets/icons/components/Id.js +14 -22
  68. package/dist/assets/icons/components/InfoCircle.js +28 -29
  69. package/dist/assets/icons/components/InformationOutline.js +14 -22
  70. package/dist/assets/icons/components/InvoiceList.js +17 -25
  71. package/dist/assets/icons/components/Key.js +17 -25
  72. package/dist/assets/icons/components/LightBulb.js +24 -38
  73. package/dist/assets/icons/components/Loader.js +15 -23
  74. package/dist/assets/icons/components/Network.js +14 -22
  75. package/dist/assets/icons/components/PagesStack.js +24 -23
  76. package/dist/assets/icons/components/Pageview.js +17 -25
  77. package/dist/assets/icons/components/People.js +17 -25
  78. package/dist/assets/icons/components/PhotoLibrary.js +17 -25
  79. package/dist/assets/icons/components/Pipeline.js +19 -27
  80. package/dist/assets/icons/components/Plus.js +17 -25
  81. package/dist/assets/icons/components/PowerSettings.js +15 -23
  82. package/dist/assets/icons/components/Preview.js +14 -22
  83. package/dist/assets/icons/components/ReceiptLong.js +11 -16
  84. package/dist/assets/icons/components/Refresh.js +14 -22
  85. package/dist/assets/icons/components/ScatterPlot.js +14 -19
  86. package/dist/assets/icons/components/Search.js +26 -26
  87. package/dist/assets/icons/components/Server.js +18 -26
  88. package/dist/assets/icons/components/Start.js +18 -26
  89. package/dist/assets/icons/components/TabNew.js +31 -45
  90. package/dist/assets/icons/components/Teams.js +17 -25
  91. package/dist/assets/icons/components/Upload.js +17 -25
  92. package/dist/assets/icons/components/Warning.js +17 -25
  93. package/dist/assets/icons/components/WarningTriangle.js +17 -25
  94. package/dist/assets/icons/components/X.js +17 -25
  95. package/dist/assets/icons/components/index.js +82 -82
  96. package/dist/assets/icons/index.js +88 -88
  97. package/dist/chevron-down-DgssmYWu.js +8 -0
  98. package/dist/chevron-left-DRJXef9g.js +8 -0
  99. package/dist/chevron-right-BooB_b7g.js +8 -0
  100. package/dist/chevron-up-DuS9MUNr.js +8 -0
  101. package/dist/chunk-D1xtDmiO.js +31 -0
  102. package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
  103. package/dist/components/Alert/Alert.js +53 -57
  104. package/dist/components/Alert/Alert.variants.js +90 -105
  105. package/dist/components/AlertDialog/AlertDialog.js +66 -124
  106. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -6
  107. package/dist/components/AlertDialog/components/index.js +2 -2
  108. package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
  109. package/dist/components/Autocomplete/Autocomplete.js +55 -79
  110. package/dist/components/Autocomplete/Autocomplete.variants.js +7 -3
  111. package/dist/components/Autocomplete/components/List/List.js +30 -42
  112. package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
  113. package/dist/components/Autocomplete/components/index.js +2 -2
  114. package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -61
  115. package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
  116. package/dist/components/Badge/Badge.js +59 -74
  117. package/dist/components/Badge/Badge.variants.js +89 -99
  118. package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
  119. package/dist/components/Breadcrumb/Breadcrumb.variants.js +9 -5
  120. package/dist/components/Breadcrumb/components/Item/Item.js +31 -45
  121. package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -65
  122. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
  123. package/dist/components/Button/Button.js +21 -39
  124. package/dist/components/Button/Button.variants.js +314 -291
  125. package/dist/components/ButtonGroup/ButtonGroup.js +80 -134
  126. package/dist/components/ButtonGroup/ButtonGroup.variants.js +20 -27
  127. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +55 -111
  128. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +88 -101
  129. package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
  130. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -42
  131. package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
  132. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +13 -32
  133. package/dist/components/ButtonGroup/components/index.js +6 -6
  134. package/dist/components/ButtonGroup/hooks/index.js +2 -2
  135. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +27 -40
  136. package/dist/components/Card/Card.js +20 -32
  137. package/dist/components/Card/Card.variants.js +40 -39
  138. package/dist/components/Checkbox/Checkbox.js +2 -364
  139. package/dist/components/Checkbox/Checkbox.variants.js +54 -64
  140. package/dist/components/Command/Command.js +27 -36
  141. package/dist/components/Command/Command.variants.js +3 -3
  142. package/dist/components/Command/components/Command.js +13 -5
  143. package/dist/components/Command/components/CommandEmpty.js +10 -13
  144. package/dist/components/Command/components/CommandGroup.js +8 -14
  145. package/dist/components/Command/components/CommandInput.js +2 -82
  146. package/dist/components/Command/components/CommandItem.js +16 -25
  147. package/dist/components/Command/components/CommandList.js +9 -12
  148. package/dist/components/Command/components/CommandSeparator.js +9 -12
  149. package/dist/components/Command/components/CommandShortcut.js +8 -17
  150. package/dist/components/Command/components/DialogContent.js +19 -28
  151. package/dist/components/Command/components/DialogOverlay.js +11 -17
  152. package/dist/components/Command/components/index.js +16 -16
  153. package/dist/components/Command/contexts/Command.context.js +1 -1
  154. package/dist/components/Command/contexts/Command.provider.js +15 -21
  155. package/dist/components/Command/contexts/index.js +2 -2
  156. package/dist/components/Counter/Counter.js +3 -209
  157. package/dist/components/Counter/Counter.variants.js +35 -48
  158. package/dist/components/DateRangePicker/DateRangePicker.js +68 -153
  159. package/dist/components/DateRangePicker/DateRangePicker.variants.js +5 -5
  160. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +64 -104
  161. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +17 -17
  162. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +5 -17
  163. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +34 -56
  164. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +181 -304
  165. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +17 -36
  166. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +79 -127
  167. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +6 -6
  168. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +2 -3
  169. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -147
  170. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
  171. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +98 -96
  172. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +75 -60
  173. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
  174. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +54 -97
  175. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +13 -8
  176. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +40 -87
  177. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +41 -88
  178. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +2 -2
  179. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +2 -2
  180. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +151 -156
  181. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -61
  182. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +2 -2
  183. package/dist/components/DateRangePicker/components/index.js +6 -6
  184. package/dist/components/DateRangePicker/constants/index.js +2 -2
  185. package/dist/components/DateRangePicker/constants/presets.js +21 -6
  186. package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
  187. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -7
  188. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +113 -170
  189. package/dist/components/DateRangePicker/contexts/index.js +6 -6
  190. package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -45
  191. package/dist/components/DateRangePicker/utils/index.js +20 -20
  192. package/dist/components/DateRangePicker/utils/presets.js +6 -8
  193. package/dist/components/DateRangePicker/utils/validation.js +48 -60
  194. package/dist/components/Datepicker/DatePicker.js +45 -133
  195. package/dist/components/Datepicker/DatePicker.variants.js +3 -3
  196. package/dist/components/Divider/Divider.js +6 -6
  197. package/dist/components/Divider/Divider.variants.js +9 -11
  198. package/dist/components/Drawer/Drawer.js +67 -125
  199. package/dist/components/Drawer/Drawer.variants.js +59 -73
  200. package/dist/components/Drawer/components/Body/Body.js +8 -17
  201. package/dist/components/Drawer/components/Body/index.js +2 -2
  202. package/dist/components/Drawer/components/Footer/Footer.js +10 -21
  203. package/dist/components/Drawer/components/Footer/index.js +2 -2
  204. package/dist/components/Drawer/components/Header/Header.js +11 -22
  205. package/dist/components/Drawer/components/Header/index.js +2 -2
  206. package/dist/components/Drawer/components/index.js +6 -6
  207. package/dist/components/Drawer/constants/index.js +1 -1
  208. package/dist/components/Drawer/contexts/Drawer.context.js +4 -4
  209. package/dist/components/Drawer/contexts/index.js +3 -3
  210. package/dist/components/Drawer/hooks/index.js +2 -2
  211. package/dist/components/Drawer/hooks/useDrawer.js +32 -36
  212. package/dist/components/DropdownButton/DropdownButton.js +2 -133
  213. package/dist/components/Filter/Filter.js +23 -20
  214. package/dist/components/Filter/Filter.variants.js +9 -5
  215. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +48 -82
  216. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -143
  217. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +40 -71
  218. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +50 -119
  219. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -57
  220. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +53 -116
  221. package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -30
  222. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +72 -135
  223. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -54
  224. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +72 -143
  225. package/dist/components/Filter/components/index.js +6 -6
  226. package/dist/components/Filter/contexts/filter.context.js +2 -4
  227. package/dist/components/Filter/contexts/filter.hook.js +5 -6
  228. package/dist/components/Filter/contexts/filter.provider.js +6 -3
  229. package/dist/components/Filter/contexts/index.js +4 -4
  230. package/dist/components/Filter/events/index.js +4 -8
  231. package/dist/components/Filter/utils/index.js +2 -2435
  232. package/dist/components/ImageUpload/ImageUpload.js +2 -221
  233. package/dist/components/ImageUpload/ImageUpload.variants.js +78 -95
  234. package/dist/components/Input/Input.js +2 -286
  235. package/dist/components/Input/Input.variants.js +47 -54
  236. package/dist/components/LineChart/LineChart.js +103 -133
  237. package/dist/components/Loading/Loading.js +2 -18
  238. package/dist/components/Loading/Loading.variants.js +2 -2
  239. package/dist/components/Modal/Modal.js +3 -8
  240. package/dist/components/Modal/components/Body/Body.js +8 -5
  241. package/dist/components/Modal/components/Footer/Footer.js +8 -11
  242. package/dist/components/Modal/components/Header/Header.js +8 -11
  243. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -10
  244. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
  245. package/dist/components/Modal/components/index.js +8 -8
  246. package/dist/components/Modal/contexts/Modal.context.js +2 -4
  247. package/dist/components/Modal/contexts/Modal.provider.js +17 -20
  248. package/dist/components/Modal/contexts/index.js +2 -2
  249. package/dist/components/Modal/hooks/useModal.js +10 -10
  250. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -32
  251. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +6 -6
  252. package/dist/components/MultiSelectDropdown/components/Item/Item.js +16 -24
  253. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +26 -35
  254. package/dist/components/MultiSelectDropdown/components/List/List.js +2 -28
  255. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +3 -3
  256. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -124
  257. package/dist/components/MultiSelectDropdown/components/index.js +4 -5
  258. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -4
  259. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -6
  260. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +100 -131
  261. package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
  262. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +12 -21
  263. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -5
  264. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +31 -38
  265. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +15 -32
  266. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -728
  267. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -54
  268. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +37 -30
  269. package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -650
  270. package/dist/components/PhoneNumberInput/components/index.js +4 -4
  271. package/dist/components/PhoneNumberInput/contexts/index.js +3 -3
  272. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +1 -1
  273. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +5 -8
  274. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6064
  275. package/dist/components/PhoneNumberInput/utils/index.js +7 -8
  276. package/dist/components/PieChart/PieChart.js +40 -66
  277. package/dist/components/ProgressBar/ProgressBar.js +27 -36
  278. package/dist/components/ProgressBar/ProgressBar.variants.js +19 -26
  279. package/dist/components/Radio/Radio.js +51 -95
  280. package/dist/components/Radio/Radio.variants.js +82 -88
  281. package/dist/components/RadioCard/RadioCard.js +14 -31
  282. package/dist/components/RadioCard/RadioCard.variants.js +7 -2
  283. package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
  284. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
  285. package/dist/components/RadioGroup/RadioGroup.js +26 -48
  286. package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
  287. package/dist/components/Range/Range.js +47 -59
  288. package/dist/components/Range/Range.variants.js +35 -44
  289. package/dist/components/Select/Select.js +35 -68
  290. package/dist/components/Select/Select.variants.js +49 -48
  291. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -9
  292. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -24
  293. package/dist/components/Select/components/EmptyList.js +2 -2
  294. package/dist/components/Select/components/List/List.js +126 -180
  295. package/dist/components/Select/components/List/List.variants.js +3 -3
  296. package/dist/components/Select/components/ListItem/ListItem.js +54 -107
  297. package/dist/components/Select/components/ListItem/ListItem.variants.js +3 -3
  298. package/dist/components/Select/components/Wrapper.js +2 -248
  299. package/dist/components/Select/components/index.js +8 -8
  300. package/dist/components/Select/constants/index.js +4 -4
  301. package/dist/components/Select/constants/list.js +2 -2
  302. package/dist/components/Select/constants/pagination.js +2 -2
  303. package/dist/components/Select/contexts/index.js +4 -4
  304. package/dist/components/Select/contexts/select.context.js +2 -2
  305. package/dist/components/Select/contexts/select.hook.js +6 -7
  306. package/dist/components/Select/contexts/select.provider.js +41 -51
  307. package/dist/components/Select/hooks/useNavigationList.js +28 -37
  308. package/dist/components/Select/hooks/useSelect.js +36 -72
  309. package/dist/components/Sidebar/Sidebar.js +22 -21
  310. package/dist/components/Sidebar/Sidebar.variants.js +4 -4
  311. package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
  312. package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
  313. package/dist/components/Sidebar/components/Logo/Logo.js +7 -4
  314. package/dist/components/Sidebar/components/Logo/Logo.variants.js +2 -2
  315. package/dist/components/Sidebar/components/Navigation/Navigation.js +13 -13
  316. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
  317. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -22
  318. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
  319. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +12 -23
  320. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +33 -40
  321. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +4 -4
  322. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +2 -2
  323. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -6
  324. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
  325. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +31 -77
  326. package/dist/components/Sidebar/components/index.js +14 -14
  327. package/dist/components/Slider/Slider.js +38 -56
  328. package/dist/components/Slider/Slider.variants.js +36 -45
  329. package/dist/components/Spinner/Spinner.js +2 -55
  330. package/dist/components/Spinner/Spinner.variants.js +37 -51
  331. package/dist/components/Stepper/Stepper.js +44 -71
  332. package/dist/components/Stepper/Stepper.variants.js +270 -229
  333. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +119 -196
  334. package/dist/components/Stepper/components/StepConnector/StepConnector.js +14 -26
  335. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -21
  336. package/dist/components/Stepper/components/StepItem/StepItem.js +4 -4
  337. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +69 -111
  338. package/dist/components/Stepper/constants/index.js +1 -1
  339. package/dist/components/Stepper/hooks/index.js +2 -2
  340. package/dist/components/Stepper/hooks/useStepItemLogic.js +15 -18
  341. package/dist/components/Stepper/utils/index.js +4 -5
  342. package/dist/components/Switch/Switch.js +2 -228
  343. package/dist/components/Switch/Switch.variants.js +2 -2
  344. package/dist/components/Table/Table.js +17 -24
  345. package/dist/components/Table/Table.variants.js +18 -25
  346. package/dist/components/Table/components/Body.js +8 -15
  347. package/dist/components/Table/components/Filter.js +13 -7
  348. package/dist/components/Table/components/Head.js +9 -16
  349. package/dist/components/Table/components/Row.js +14 -26
  350. package/dist/components/Table/components/index.js +6 -6
  351. package/dist/components/Tabs/Tabs.js +20 -20
  352. package/dist/components/Tabs/Tabs.variants.js +55 -72
  353. package/dist/components/Tabs/components/Content.js +12 -12
  354. package/dist/components/Tabs/components/List.js +16 -18
  355. package/dist/components/Tabs/components/Trigger.js +13 -15
  356. package/dist/components/Tabs/components/index.js +4 -4
  357. package/dist/components/Tag/Tag.js +25 -16
  358. package/dist/components/Tag/Tag.variants.js +32 -39
  359. package/dist/components/TagSelect/TagSelect.js +13 -7
  360. package/dist/components/TagSelect/TagSelect.variants.js +6 -6
  361. package/dist/components/TagSelect/components/Item/Item.js +13 -16
  362. package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
  363. package/dist/components/TagSelect/components/List/List.js +15 -7
  364. package/dist/components/TagSelect/components/List/List.variants.js +3 -3
  365. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -85
  366. package/dist/components/TagSelect/components/index.js +6 -6
  367. package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
  368. package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
  369. package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
  370. package/dist/components/TagSelect/contexts/index.js +4 -4
  371. package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
  372. package/dist/components/TextArea/TextArea.js +26 -33
  373. package/dist/components/TextArea/TextArea.variants.js +3 -3
  374. package/dist/components/TimePicker/TimePicker.js +12 -10
  375. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  376. package/dist/components/TimePicker/components/HoursList/HoursList.js +84 -110
  377. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -88
  378. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +56 -82
  379. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +128 -221
  380. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +34 -71
  381. package/dist/components/TimePicker/components/index.js +2 -2
  382. package/dist/components/TimePicker/contexts/index.js +6 -6
  383. package/dist/components/TimePicker/contexts/time-picker.context.js +1 -1
  384. package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
  385. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -48
  386. package/dist/components/TimePicker/utils/index.js +17 -19
  387. package/dist/components/Toast/Toast.js +3 -511
  388. package/dist/components/Toast/Toast.variants.js +32 -35
  389. package/dist/components/Tooltip/Tooltip.js +15 -34
  390. package/dist/components/Typography/Typography.js +16 -24
  391. package/dist/components/Typography/Typography.variants.js +72 -62
  392. package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -159
  393. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
  394. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
  395. package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
  396. package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
  397. package/dist/components/VirtualizedTable/assets/index.js +4 -4
  398. package/dist/components/VirtualizedTable/components/Actions/Actions.js +34 -115
  399. package/dist/components/VirtualizedTable/components/Body/Body.js +49 -111
  400. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +91 -157
  401. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -30
  402. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +27 -47
  403. package/dist/components/VirtualizedTable/components/Filter/Filter.js +99 -164
  404. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +41 -56
  405. package/dist/components/VirtualizedTable/components/Header/Header.js +36 -98
  406. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +28 -62
  407. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +38 -101
  408. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +29 -49
  409. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -23
  410. package/dist/components/VirtualizedTable/components/index.js +10 -10
  411. package/dist/components/VirtualizedTable/constants/index.js +3 -3
  412. package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
  413. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  414. package/dist/components/VirtualizedTable/contexts/table.context.js +3 -3
  415. package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
  416. package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -268
  417. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +1 -1
  418. package/dist/components/VirtualizedTable/events/index.js +19 -24
  419. package/dist/components/index.js +140 -140
  420. package/dist/components-DNFycJGm.js +120 -0
  421. package/dist/constants-D96yCePL.js +31 -0
  422. package/dist/contexts/index.js +6 -6
  423. package/dist/contexts/theme.context.js +2 -2
  424. package/dist/contexts/theme.hook.js +2 -2
  425. package/dist/contexts/theme.provider.js +2 -84
  426. package/dist/createLucideIcon-BVGkzDZC.js +42 -0
  427. package/dist/debounce-CzFlgg9h.js +86 -0
  428. package/dist/dist-B5SlrgYz.js +263 -0
  429. package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
  430. package/dist/dist-BL8l9uRy.js +361 -0
  431. package/dist/{index-DLcqcWxM.js → dist-ByyYBtbL.js} +9 -11
  432. package/dist/dist-C8r5DW7s.js +10 -0
  433. package/dist/dist-CBnErrr1.js +58 -0
  434. package/dist/dist-COY3FRYC.js +480 -0
  435. package/dist/dist-CSP6X06u.js +1701 -0
  436. package/dist/dist-DNSmoWJp.js +469 -0
  437. package/dist/dist-DRmqW28Z2.js +7479 -0
  438. package/dist/dist-DXJSck4j.js +74 -0
  439. package/dist/dist-DXXHfL7M.js +132 -0
  440. package/dist/dist-DZNdbzbm.js +120 -0
  441. package/dist/dist-DZcOdXgW.js +13 -0
  442. package/dist/dist-DeVdyMHW2.js +31 -0
  443. package/dist/{index-3fEdeexs.js → dist-DpqiA4Yn.js} +25 -28
  444. package/dist/dist-DstQl8xY.js +10 -0
  445. package/dist/dist-DtEbXv47.js +34 -0
  446. package/dist/dist-uVUx9i0a.js +223 -0
  447. package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
  448. package/dist/hooks/index.js +2 -2
  449. package/dist/hooks/useToggle.js +5 -8
  450. package/dist/icons.js +88 -88
  451. package/dist/index.js +150 -149
  452. package/dist/isObject--aYwGuhx.js +62 -0
  453. package/dist/libphonenumber-7uXgv7U8.js +81977 -0
  454. package/dist/package.json +18 -18
  455. package/dist/phone-number.provider-B5TfHi8y.js +6646 -0
  456. package/dist/prop-types-DTnODft1.js +547 -0
  457. package/dist/proxy-uLtw-ZML.js +4690 -0
  458. package/dist/style.css +1 -1
  459. package/dist/styles.css +1 -1
  460. package/dist/{index-CSWGJT-v.js → table.provider-4OQNqxH3.js} +805 -674
  461. package/dist/theme.provider-BgxXUOMP.js +74 -0
  462. package/dist/useBreadcrumb-BBm5lX0U.js +1263 -0
  463. package/dist/utils/index.js +5 -2922
  464. package/dist/utils-CQSRNcoF.js +2022 -0
  465. package/dist/utils-DHuiYnx1.js +1689 -0
  466. package/dist/x-BwIi6Wii.js +63 -0
  467. package/dist/x-a0ouxoIM.js +11 -0
  468. package/package.json +18 -18
  469. package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
  470. package/dist/Combination-BtmnusWq.js +0 -480
  471. package/dist/DayPicker-CaeUXRCF.js +0 -2798
  472. package/dist/Modal-DAWdufZ_.js +0 -120
  473. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  474. package/dist/chevron-down-BBFYYzZq.js +0 -5
  475. package/dist/chevron-left-BHBf-gQY.js +0 -5
  476. package/dist/chevron-right-DvXGOiS_.js +0 -5
  477. package/dist/chevron-up-DEfvgPCw.js +0 -54
  478. package/dist/chevron-up-IlDPxR7j.js +0 -5
  479. package/dist/createLucideIcon-CP-mMPfa.js +0 -75
  480. package/dist/debounce-DJveWHr_.js +0 -114
  481. package/dist/ellipsis-vertical-Cl3yNtOy.js +0 -9
  482. package/dist/index--l0zux8V.js +0 -200
  483. package/dist/index-0ioNhtNM.js +0 -10
  484. package/dist/index-BKMaItIC.js +0 -13
  485. package/dist/index-BKjcReYh.js +0 -55
  486. package/dist/index-BOE_3f_Z.js +0 -646
  487. package/dist/index-BRXMsxSL.js +0 -27
  488. package/dist/index-BdMNhZnh.js +0 -9
  489. package/dist/index-BmVmDQGH.js +0 -662
  490. package/dist/index-BvEpLnOv.js +0 -144
  491. package/dist/index-BvoZGpli.js +0 -60
  492. package/dist/index-C7zAY3xv.js +0 -139
  493. package/dist/index-CJnS4BVW.js +0 -93
  494. package/dist/index-Cmf-IG4l.js +0 -322
  495. package/dist/index-CrCTywU1.js +0 -314
  496. package/dist/index-D29mdTf5.js +0 -34
  497. package/dist/index-DWyM654o.js +0 -478
  498. package/dist/index-Jr0cra7i.js +0 -431
  499. package/dist/index-mPinF0Ho.js +0 -1885
  500. package/dist/index-qDQP8rW4.js +0 -7281
  501. package/dist/isObject-9XxUefZH.js +0 -97
  502. package/dist/libphonenumber-aZ-2KWIf.js +0 -11581
  503. package/dist/proxy-BGrSEZuV.js +0 -5046
  504. package/dist/useBreadcrumb-C_Wb2cXs.js +0 -1435
  505. package/dist/x-B9bYxG31.js +0 -8
  506. package/dist/x-Eoa9FJjA.js +0 -62
@@ -1,142 +1,144 @@
1
- import { useState as f, useRef as F, useEffect as m, useMemo as U, useCallback as k } from "react";
2
- import { MS_PER_MONTH as W, SINGLE_MONTH_WIDTH as I } from "../constants/index.js";
3
- import { getNextMonth as h, getPrevMonth as g, getWeeksInMonth as w, calculateCalendarHeight as V } from "../utils/index.js";
4
- const y = ({
5
- displayedMonths: a,
6
- animationDuration: R,
7
- navigationMode: M
8
- }) => {
9
- const [o, b] = f(
10
- a[0]
11
- ), [i, C] = f(null), [n, S] = f(!1), [u, L] = f(!1), [O, N] = f(!0), X = F(null), d = F(!0), [l, E] = f(
12
- a[1]
13
- ), [s, H] = f(null), [r, D] = f(!1), [c, q] = f(!1), [$, P] = f(!0), G = F(null), _ = F(!0);
14
- m(() => {
15
- if (M === "independent") {
16
- if (d.current) {
17
- d.current = !1;
1
+ import { r as k } from "../../../../../constants-D96yCePL.js";
2
+ import { calculateCalendarHeight as p, getNextMonth as m, getPrevMonth as h, getWeeksInMonth as w } from "../utils/index.js";
3
+ import { useCallback as O, useEffect as g, useMemo as z, useRef as I, useState as s } from "react";
4
+ var U = ({ displayedMonths: u, animationDuration: M, navigationMode: F }) => {
5
+ const [o, b] = s(u[0]), [i, x] = s(null), [r, C] = s(!1), [a, L] = s(!1), [W, S] = s(!0), T = I(null), N = I(!0), [l, E] = s(u[1]), [f, D] = s(null), [n, P] = s(!1), [c, H] = s(!1), [X, _] = s(!0), A = I(null), d = I(!0);
6
+ g(() => {
7
+ if (F === "independent") {
8
+ if (N.current) {
9
+ N.current = !1;
18
10
  return;
19
11
  }
20
- if (!n) {
21
- const e = o.getTime(), t = a[0].getTime();
12
+ if (!r) {
13
+ const e = o.getTime(), t = u[0].getTime();
22
14
  if (e !== t) {
23
- const T = t - e, A = Math.round(T / W);
24
- if (Math.abs(A) === 1) {
25
- const x = A > 0 ? "left" : "right";
26
- C(x), S(!0), L(!1);
27
- } else
28
- b(a[0]);
15
+ const q = t - e, R = Math.round(q / k);
16
+ Math.abs(R) === 1 ? (x(R > 0 ? "left" : "right"), C(!0), L(!1)) : b(u[0]);
29
17
  }
30
18
  }
31
19
  }
32
- }, [a, o, n, M]), m(() => {
33
- if (M === "independent") {
34
- if (_.current) {
35
- _.current = !1;
20
+ }, [
21
+ u,
22
+ o,
23
+ r,
24
+ F
25
+ ]), g(() => {
26
+ if (F === "independent") {
27
+ if (d.current) {
28
+ d.current = !1;
36
29
  return;
37
30
  }
38
- if (!r) {
39
- const e = l.getTime(), t = a[1].getTime();
31
+ if (!n) {
32
+ const e = l.getTime(), t = u[1].getTime();
40
33
  if (e !== t) {
41
- const T = t - e, A = Math.round(T / W);
42
- if (Math.abs(A) === 1) {
43
- const x = A > 0 ? "left" : "right";
44
- H(x), D(!0), q(!1);
45
- } else
46
- E(a[1]);
34
+ const q = t - e, R = Math.round(q / k);
35
+ Math.abs(R) === 1 ? (D(R > 0 ? "left" : "right"), P(!0), H(!1)) : E(u[1]);
47
36
  }
48
37
  }
49
38
  }
50
- }, [a, l, r, M]), m(() => {
51
- n && !u && i && requestAnimationFrame(() => {
39
+ }, [
40
+ u,
41
+ l,
42
+ n,
43
+ F
44
+ ]), g(() => {
45
+ r && !a && i && (T.current && T.current.offsetHeight, requestAnimationFrame(() => {
52
46
  L(!0);
53
- });
54
- }, [n, u, i]), m(() => {
55
- r && !c && s && requestAnimationFrame(() => {
56
- q(!0);
57
- });
58
- }, [r, c, s]), m(() => {
59
- if (n && u) {
47
+ }));
48
+ }, [
49
+ r,
50
+ a,
51
+ i
52
+ ]), g(() => {
53
+ n && !c && f && (A.current && A.current.offsetHeight, requestAnimationFrame(() => {
54
+ H(!0);
55
+ }));
56
+ }, [
57
+ n,
58
+ c,
59
+ f
60
+ ]), g(() => {
61
+ if (r && a) {
60
62
  const e = setTimeout(() => {
61
- N(!1), requestAnimationFrame(() => {
62
- b((t) => i === "left" ? h(t) : g(t)), S(!1), C(null), L(!1), requestAnimationFrame(() => {
63
+ S(!1), requestAnimationFrame(() => {
64
+ T.current && T.current.offsetHeight, b((t) => i === "left" ? m(t) : h(t)), C(!1), x(null), L(!1), requestAnimationFrame(() => {
63
65
  requestAnimationFrame(() => {
64
- N(!0);
66
+ S(!0);
65
67
  });
66
68
  });
67
69
  });
68
- }, R);
70
+ }, M);
69
71
  return () => clearTimeout(e);
70
72
  }
71
73
  }, [
72
- n,
73
- u,
74
- R,
74
+ r,
75
+ a,
76
+ M,
75
77
  i
76
- ]), m(() => {
77
- if (r && c) {
78
+ ]), g(() => {
79
+ if (n && c) {
78
80
  const e = setTimeout(() => {
79
- P(!1), requestAnimationFrame(() => {
80
- E((t) => s === "left" ? h(t) : g(t)), D(!1), H(null), q(!1), requestAnimationFrame(() => {
81
+ _(!1), requestAnimationFrame(() => {
82
+ A.current && A.current.offsetHeight, E((t) => f === "left" ? m(t) : h(t)), P(!1), D(null), H(!1), requestAnimationFrame(() => {
81
83
  requestAnimationFrame(() => {
82
- P(!0);
84
+ _(!0);
83
85
  });
84
86
  });
85
87
  });
86
- }, R);
88
+ }, M);
87
89
  return () => clearTimeout(e);
88
90
  }
89
91
  }, [
90
- r,
92
+ n,
91
93
  c,
92
- R,
93
- s
94
+ M,
95
+ f
94
96
  ]);
95
- const j = U(() => {
97
+ const $ = z(() => {
96
98
  let e = o, t = l;
97
- n && i === "left" ? e = h(o) : n && i === "right" && (e = g(o)), r && s === "left" ? t = h(l) : r && s === "right" && (t = g(l));
98
- const T = Math.max(
99
- w(e),
100
- w(t)
101
- );
102
- return V(T);
99
+ return r && i === "left" ? e = m(o) : r && i === "right" && (e = h(o)), n && f === "left" ? t = m(l) : n && f === "right" && (t = h(l)), p(Math.max(w(e), w(t)));
103
100
  }, [
104
101
  o,
105
102
  l,
106
- n,
107
103
  r,
104
+ n,
108
105
  i,
109
- s
110
- ]), p = k(() => {
111
- let e = -I;
112
- return n && u && (i === "left" ? e = -2 * I : i === "right" && (e = 0)), `translateX(${e}px)`;
113
- }, [n, u, i]), z = k(() => {
114
- let e = -I;
115
- return r && c && (s === "left" ? e = -2 * I : s === "right" && (e = 0)), `translateX(${e}px)`;
116
- }, [r, c, s]), B = g(o), J = h(o), K = g(l), Q = h(l);
106
+ f
107
+ ]), G = O(() => {
108
+ let e = -259;
109
+ return r && a && (i === "left" ? e = -2 * 259 : i === "right" && (e = 0)), `translateX(${e}px)`;
110
+ }, [
111
+ r,
112
+ a,
113
+ i
114
+ ]), j = O(() => {
115
+ let e = -259;
116
+ return n && c && (f === "left" ? e = -2 * 259 : f === "right" && (e = 0)), `translateX(${e}px)`;
117
+ }, [
118
+ n,
119
+ c,
120
+ f
121
+ ]);
117
122
  return {
118
- // Left month
119
123
  leftInternalMonth: o,
120
- leftPrevMonth: B,
121
- leftNextMonth: J,
122
- leftCarouselRef: X,
123
- isLeftAnimating: n,
124
- enableLeftTransition: O,
125
- leftAnimateTransform: u,
126
- getLeftTransform: p,
127
- // Right month
124
+ leftPrevMonth: h(o),
125
+ leftNextMonth: m(o),
126
+ leftCarouselRef: T,
127
+ isLeftAnimating: r,
128
+ enableLeftTransition: W,
129
+ leftAnimateTransform: a,
130
+ getLeftTransform: G,
128
131
  rightInternalMonth: l,
129
- rightPrevMonth: K,
130
- rightNextMonth: Q,
131
- rightCarouselRef: G,
132
- isRightAnimating: r,
133
- enableRightTransition: $,
132
+ rightPrevMonth: h(l),
133
+ rightNextMonth: m(l),
134
+ rightCarouselRef: A,
135
+ isRightAnimating: n,
136
+ enableRightTransition: X,
134
137
  rightAnimateTransform: c,
135
- getRightTransform: z,
136
- // Shared
137
- calendarHeight: j
138
+ getRightTransform: j,
139
+ calendarHeight: $
138
140
  };
139
141
  };
140
142
  export {
141
- y as useIndependentCarousel
143
+ U as useIndependentCarousel
142
144
  };
@@ -1,93 +1,108 @@
1
- import { useState as f, useRef as b, useMemo as K, useEffect as I, useCallback as R } from "react";
2
- import { MS_PER_MONTH as Q, SINGLE_MONTH_WIDTH as W, GAP_WIDTH as d } from "../constants/index.js";
3
- import { getPrevMonth as M, getNextMonth as g, getWeeksInMonth as U, calculateCalendarHeight as V } from "../utils/index.js";
4
- const tt = ({
5
- displayedMonths: l,
6
- animationDuration: F,
7
- disabled: c,
8
- canNavigatePrev: _,
9
- canNavigateNext: q,
10
- navigationMode: C,
11
- navigatePrevMonth: D,
12
- navigateNextMonth: E
13
- }) => {
14
- const [n, u] = f(null), [t, a] = f(!1), [o, i] = f(!1), [G, S] = f(!0), [s, k] = f(l), P = b(null), p = b(!0), A = W + d, w = M(M(s[0])), x = M(s[0]), m = s[0], h = s[1], H = g(s[1]), L = g(g(s[1])), N = K(() => {
1
+ import { r as z } from "../../../../../constants-D96yCePL.js";
2
+ import { calculateCalendarHeight as B, getNextMonth as g, getPrevMonth as A, getWeeksInMonth as J } from "../utils/index.js";
3
+ import { useCallback as F, useEffect as R, useMemo as K, useRef as b, useState as l } from "react";
4
+ var y = ({ displayedMonths: u, animationDuration: W, disabled: c, canNavigatePrev: _, canNavigateNext: q, navigationMode: C, navigatePrevMonth: D, navigateNextMonth: E }) => {
5
+ const [n, a] = l(null), [t, m] = l(!1), [s, i] = l(!1), [k, S] = l(!0), [r, d] = l(u), f = b(null), p = b(!0), H = 291, G = A(A(r[0])), I = A(r[0]), h = r[0], T = r[1], x = g(r[1]), P = g(g(r[1])), w = K(() => {
15
6
  let e;
16
- t && n === "left" ? e = [h, H] : t && n === "right" ? e = [x, m] : e = [m, h];
17
- const r = Math.max(...e.map(U));
18
- return V(r);
7
+ return t && n === "left" ? e = [T, x] : t && n === "right" ? e = [I, h] : e = [h, T], B(Math.max(...e.map(J)));
19
8
  }, [
20
9
  t,
21
10
  n,
22
- m,
23
11
  h,
24
- H,
25
- x
26
- ]), X = 6 * W + 5 * d, T = -2 * (W + d);
27
- I(() => {
12
+ T,
13
+ x,
14
+ I
15
+ ]), L = 6 * 259 + 160, M = -2 * 291;
16
+ R(() => {
28
17
  if (C !== "independent") {
29
18
  if (p.current) {
30
19
  p.current = !1;
31
20
  return;
32
21
  }
33
22
  if (!t) {
34
- const e = s[0].getTime(), r = l[0].getTime();
35
- if (e !== r) {
36
- const B = r - e, O = Math.round(B / Q);
37
- if (Math.abs(O) === 1) {
38
- const J = O > 0 ? "left" : "right";
39
- u(J), a(!0), i(!1);
40
- } else
41
- k(l);
23
+ const e = r[0].getTime(), o = u[0].getTime();
24
+ if (e !== o) {
25
+ const j = o - e, O = Math.round(j / z);
26
+ Math.abs(O) === 1 ? (a(O > 0 ? "left" : "right"), m(!0), i(!1)) : d(u);
42
27
  }
43
28
  }
44
29
  }
45
- }, [l, s, t, C]), I(() => {
46
- t && !o && n && requestAnimationFrame(() => {
30
+ }, [
31
+ u,
32
+ r,
33
+ t,
34
+ C
35
+ ]), R(() => {
36
+ t && !s && n && (f.current && f.current.offsetHeight, requestAnimationFrame(() => {
47
37
  i(!0);
48
- });
49
- }, [t, o, n]), I(() => {
50
- if (t && o) {
38
+ }));
39
+ }, [
40
+ t,
41
+ s,
42
+ n
43
+ ]), R(() => {
44
+ if (t && s) {
51
45
  const e = setTimeout(() => {
52
46
  S(!1), requestAnimationFrame(() => {
53
- k((r) => n === "left" ? [r[1], g(r[1])] : [M(r[0]), r[0]]), a(!1), u(null), i(!1), requestAnimationFrame(() => {
47
+ f.current && f.current.offsetHeight, d((o) => n === "left" ? [o[1], g(o[1])] : [A(o[0]), o[0]]), m(!1), a(null), i(!1), requestAnimationFrame(() => {
54
48
  requestAnimationFrame(() => {
55
49
  S(!0);
56
50
  });
57
51
  });
58
52
  });
59
- }, F);
53
+ }, W);
60
54
  return () => clearTimeout(e);
61
55
  }
62
- }, [t, o, F, n]);
63
- const $ = R(() => {
64
- t || c || !_ || (u("right"), a(!0), i(!1), D());
65
- }, [t, c, _, D]), j = R(() => {
66
- t || c || !q || (u("left"), a(!0), i(!1), E());
67
- }, [t, c, q, E]), z = R(() => {
68
- let e = T;
69
- return t && o && (n === "left" ? e = T - A : n === "right" && (e = T + A)), `translateX(${e}px)`;
70
- }, [T, t, o, n, A]);
56
+ }, [
57
+ t,
58
+ s,
59
+ W,
60
+ n
61
+ ]);
62
+ const N = F(() => {
63
+ t || c || !_ || (a("right"), m(!0), i(!1), D());
64
+ }, [
65
+ t,
66
+ c,
67
+ _,
68
+ D
69
+ ]), X = F(() => {
70
+ t || c || !q || (a("left"), m(!0), i(!1), E());
71
+ }, [
72
+ t,
73
+ c,
74
+ q,
75
+ E
76
+ ]), $ = F(() => {
77
+ let e = M;
78
+ return t && s && (n === "left" ? e = M - H : n === "right" && (e = M + H)), `translateX(${e}px)`;
79
+ }, [
80
+ M,
81
+ t,
82
+ s,
83
+ n,
84
+ H
85
+ ]);
71
86
  return {
72
- carouselRef: P,
87
+ carouselRef: f,
73
88
  isAnimating: t,
74
- enableTransition: G,
75
- animateTransform: o,
76
- calendarHeight: N,
77
- carouselTotalWidth: X,
89
+ enableTransition: k,
90
+ animateTransform: s,
91
+ calendarHeight: w,
92
+ carouselTotalWidth: L,
78
93
  monthsToRender: [
79
- w,
80
- x,
81
- m,
94
+ G,
95
+ I,
82
96
  h,
83
- H,
84
- L
97
+ T,
98
+ x,
99
+ P
85
100
  ],
86
- handlePrevMonth: $,
87
- handleNextMonth: j,
88
- getTransform: z
101
+ handlePrevMonth: N,
102
+ handleNextMonth: X,
103
+ getTransform: $
89
104
  };
90
105
  };
91
106
  export {
92
- tt as useTogetherCarousel
107
+ y as useTogetherCarousel
93
108
  };
@@ -1,11 +1,11 @@
1
- import { MONTH_HEADER_HEIGHT as l, WEEKDAY_HEADER_HEIGHT as g, WEEK_ROW_HEIGHT as D } from "../constants/index.js";
2
- const h = (t) => {
3
- const e = t.getFullYear(), n = t.getMonth(), o = new Date(e, n, 1), a = new Date(e, n + 1, 0), s = o.getDay(), r = a.getDate(), c = s + r;
4
- return Math.ceil(c / 7);
5
- }, H = (t) => l + g + t * D, M = (t) => new Date(t.getFullYear(), t.getMonth() - 1, 1), u = (t) => new Date(t.getFullYear(), t.getMonth() + 1, 1);
1
+ import "../../../../../constants-D96yCePL.js";
2
+ var E = (t) => {
3
+ const e = t.getFullYear(), a = t.getMonth(), n = new Date(e, a, 1), r = new Date(e, a + 1, 0), o = n.getDay() + r.getDate();
4
+ return Math.ceil(o / 7);
5
+ }, H = (t) => 84 + t * 38, h = (t) => new Date(t.getFullYear(), t.getMonth() - 1, 1), c = (t) => new Date(t.getFullYear(), t.getMonth() + 1, 1);
6
6
  export {
7
7
  H as calculateCalendarHeight,
8
- u as getNextMonth,
9
- M as getPrevMonth,
10
- h as getWeeksInMonth
8
+ c as getNextMonth,
9
+ h as getPrevMonth,
10
+ E as getWeeksInMonth
11
11
  };
@@ -1,105 +1,62 @@
1
- import { jsxs as l, jsx as e, Fragment as L } from "react/jsx-runtime";
2
- import { cn as $ } from "../../../../utils/index.js";
3
- import { dateTimeInputsVariants as k } from "./DateTimeInputs.variants.js";
4
- import { useDateTimeInputs as w } from "./hooks/useDateTimeInputs.js";
5
- import { StartInputFields as P } from "./components/StartInputFields/StartInputFields.js";
6
- import { EndInputFields as R } from "./components/EndInputFields/EndInputFields.js";
7
- const q = ({
8
- className: m,
9
- labelStartDate: u = "Start date",
10
- labelEndDate: s = "End date",
11
- labelTime: n = "Time",
12
- ariaLabelStartDate: D = "Start date",
13
- ariaLabelEndDate: h = "End date",
14
- errorInvalidDate: p = "Invalid date",
15
- errorDateNotAvailable: T = "Date is not available",
16
- errorStartAfterEnd: g = "Start date must be before end date",
17
- errorEndBeforeStart: E = "End date must be after start date",
18
- classNames: a
19
- }) => {
20
- const {
21
- timeFormat: r,
22
- showTime: d,
23
- name: t,
24
- disabled: i,
25
- time: o,
26
- startDateValue: c,
27
- startDateError: V,
28
- handleStartDateFocus: b,
29
- handleStartDateChange: f,
30
- handleStartDateBlur: C,
31
- handleStartTimeChange: F,
32
- endDateValue: S,
33
- endDateError: I,
34
- handleEndDateFocus: v,
35
- handleEndDateChange: B,
36
- handleEndDateBlur: x,
37
- handleEndTimeChange: y,
38
- startHiddenValue: j,
39
- endHiddenValue: H
40
- } = w({
1
+ import { t as L } from "../../../../utils-DHuiYnx1.js";
2
+ import { dateTimeInputsVariants as $ } from "./DateTimeInputs.variants.js";
3
+ import { EndInputFields as k } from "./components/EndInputFields/EndInputFields.js";
4
+ import { StartInputFields as w } from "./components/StartInputFields/StartInputFields.js";
5
+ import { useDateTimeInputs as P } from "./hooks/useDateTimeInputs.js";
6
+ import { Fragment as R, jsx as e, jsxs as l } from "react/jsx-runtime";
7
+ var q = ({ className: m, labelStartDate: u = "Start date", labelEndDate: s = "End date", labelTime: n = "Time", ariaLabelStartDate: D = "Start date", ariaLabelEndDate: h = "End date", errorInvalidDate: p = "Invalid date", errorDateNotAvailable: T = "Date is not available", errorStartAfterEnd: g = "Start date must be before end date", errorEndBeforeStart: E = "End date must be after start date", classNames: a }) => {
8
+ const { timeFormat: r, showTime: d, name: t, disabled: i, time: o, startDateValue: V, startDateError: b, handleStartDateFocus: c, handleStartDateChange: f, handleStartDateBlur: C, handleStartTimeChange: F, endDateValue: S, endDateError: I, handleEndDateFocus: v, handleEndDateChange: B, handleEndDateBlur: x, handleEndTimeChange: y, startHiddenValue: j, endHiddenValue: H } = P({
41
9
  errorInvalidDate: p,
42
10
  errorDateNotAvailable: T,
43
11
  errorStartAfterEnd: g,
44
12
  errorEndBeforeStart: E
45
13
  });
46
- return /* @__PURE__ */ l(
47
- "div",
48
- {
49
- className: $(k({ className: m }), a?.root),
50
- children: [
51
- /* @__PURE__ */ e(
52
- P,
53
- {
54
- dateValue: c,
55
- timeValue: o.startTime,
56
- error: V,
57
- disabled: i,
58
- showTime: d,
59
- timeFormat: r,
60
- labelDate: u,
61
- labelTime: n,
62
- ariaLabelDate: D,
63
- onDateChange: f,
64
- onDateFocus: b,
65
- onDateBlur: C,
66
- onTimeChange: F,
67
- classNames: a
68
- }
69
- ),
70
- /* @__PURE__ */ e(
71
- R,
72
- {
73
- dateValue: S,
74
- timeValue: o.endTime,
75
- error: I,
76
- disabled: i,
77
- showTime: d,
78
- timeFormat: r,
79
- labelDate: s,
80
- labelTime: n,
81
- ariaLabelDate: h,
82
- onDateChange: B,
83
- onDateFocus: v,
84
- onDateBlur: x,
85
- onTimeChange: y,
86
- classNames: a
87
- }
88
- ),
89
- t && /* @__PURE__ */ l(L, { children: [
90
- /* @__PURE__ */ e(
91
- "input",
92
- {
93
- type: "hidden",
94
- name: `${t}-start`,
95
- value: j
96
- }
97
- ),
98
- /* @__PURE__ */ e("input", { type: "hidden", name: `${t}-end`, value: H })
99
- ] })
100
- ]
101
- }
102
- );
14
+ return /* @__PURE__ */ l("div", {
15
+ className: L($({ className: m }), a?.root),
16
+ children: [
17
+ /* @__PURE__ */ e(w, {
18
+ dateValue: V,
19
+ timeValue: o.startTime,
20
+ error: b,
21
+ disabled: i,
22
+ showTime: d,
23
+ timeFormat: r,
24
+ labelDate: u,
25
+ labelTime: n,
26
+ ariaLabelDate: D,
27
+ onDateChange: f,
28
+ onDateFocus: c,
29
+ onDateBlur: C,
30
+ onTimeChange: F,
31
+ classNames: a
32
+ }),
33
+ /* @__PURE__ */ e(k, {
34
+ dateValue: S,
35
+ timeValue: o.endTime,
36
+ error: I,
37
+ disabled: i,
38
+ showTime: d,
39
+ timeFormat: r,
40
+ labelDate: s,
41
+ labelTime: n,
42
+ ariaLabelDate: h,
43
+ onDateChange: B,
44
+ onDateFocus: v,
45
+ onDateBlur: x,
46
+ onTimeChange: y,
47
+ classNames: a
48
+ }),
49
+ t && /* @__PURE__ */ l(R, { children: [/* @__PURE__ */ e("input", {
50
+ type: "hidden",
51
+ name: `${t}-start`,
52
+ value: j
53
+ }), /* @__PURE__ */ e("input", {
54
+ type: "hidden",
55
+ name: `${t}-end`,
56
+ value: H
57
+ })] })
58
+ ]
59
+ });
103
60
  };
104
61
  q.displayName = "DateRangePickerDateTimeInputs";
105
62
  export {
@@ -1,20 +1,25 @@
1
- import { c as t } from "../../../../index-D29mdTf5.js";
2
- const a = t(["flex", "gap-8", "w-full", "px-1"]), n = t([
1
+ import { t as a } from "../../../../dist-DtEbXv47.js";
2
+ var t = a([
3
+ "flex",
4
+ "gap-8",
5
+ "w-full",
6
+ "px-1"
7
+ ]), r = a([
3
8
  "flex",
4
9
  "gap-2",
5
10
  "items-center",
6
11
  "w-66.5"
7
- ]), p = t([
12
+ ]), p = a([
8
13
  "flex",
9
14
  "flex-col",
10
15
  "gap-2",
11
16
  "w-38"
12
- ]), l = t([
17
+ ]), l = a([
13
18
  "flex",
14
19
  "flex-col",
15
20
  "gap-2",
16
21
  "flex-1"
17
- ]), r = t([
22
+ ]), i = a([
18
23
  "text-sm",
19
24
  "font-medium",
20
25
  "text-slate-500",
@@ -23,8 +28,8 @@ const a = t(["flex", "gap-8", "w-full", "px-1"]), n = t([
23
28
  ]);
24
29
  export {
25
30
  p as dateInputWrapperVariants,
26
- n as dateTimeGroupVariants,
27
- a as dateTimeInputsVariants,
28
- r as inputLabelVariants,
31
+ r as dateTimeGroupVariants,
32
+ t as dateTimeInputsVariants,
33
+ i as inputLabelVariants,
29
34
  l as timeInputWrapperVariants
30
35
  };