@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.104

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 (349) hide show
  1. package/README.md +15 -21
  2. package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
  3. package/dist/AlertDialogTrigger-BGo_acd5.js +109 -0
  4. package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
  5. package/dist/Checkbox-B_ngk9Dj.js +249 -0
  6. package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
  7. package/dist/{CommandInput-CYYsk_31.js → CommandInput-BLq69pOT.js} +2 -2
  8. package/dist/Counter-BV680M5r.js +195 -0
  9. package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
  10. package/dist/DropdownButton-DfNojmCW.js +493 -0
  11. package/dist/FlagSelectorList-CkTR3j6O.js +856 -0
  12. package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-DRylBL2d.js} +2 -2
  13. package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
  14. package/dist/{Input-DG3snJf_.js → Input-Cf44DzfE.js} +19 -19
  15. package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
  16. package/dist/Modal-Dyn088X7.js +81 -0
  17. package/dist/Sidebar.css +1 -1
  18. package/dist/{Spinner-BegZ5yd7.js → Spinner-CUwE2bLm.js} +1 -1
  19. package/dist/Switch-aPhL5rNG.js +196 -0
  20. package/dist/Toast-3NEz7LLa.js +460 -0
  21. package/dist/Wrapper-BhqUVI1G.js +171 -0
  22. package/dist/Wrapper-CVJSuYWx.js +114 -0
  23. package/dist/{Wrapper-DtT29fc5.js → Wrapper-DP6Sxngx.js} +185 -180
  24. package/dist/components/Alert/Alert.js +22 -22
  25. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  26. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  27. package/dist/components/AlertDialog/components/index.js +1 -1
  28. package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
  29. package/dist/components/Autocomplete/components/List/List.js +22 -26
  30. package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
  31. package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
  32. package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
  33. package/dist/components/Badge/Badge.js +37 -36
  34. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  35. package/dist/components/Button/Button.js +1 -1
  36. package/dist/components/Checkbox/Checkbox.js +1 -1
  37. package/dist/components/Command/Command.js +2 -2
  38. package/dist/components/Command/components/Command.js +6 -6
  39. package/dist/components/Command/components/CommandEmpty.js +1 -1
  40. package/dist/components/Command/components/CommandGroup.js +1 -1
  41. package/dist/components/Command/components/CommandInput.js +1 -1
  42. package/dist/components/Command/components/CommandItem.js +1 -1
  43. package/dist/components/Command/components/CommandList.js +2 -2
  44. package/dist/components/Command/components/CommandSeparator.js +1 -1
  45. package/dist/components/Command/components/DialogContent.js +3 -3
  46. package/dist/components/Command/components/DialogOverlay.js +1 -1
  47. package/dist/components/Command/components/index.js +1 -1
  48. package/dist/components/Command/contexts/Command.provider.js +16 -12
  49. package/dist/components/Counter/Counter.js +1 -1
  50. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
  51. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
  52. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
  53. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  54. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  55. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  56. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +42 -50
  57. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
  58. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  59. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  60. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  61. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
  62. package/dist/components/Datepicker/DatePicker.js +15 -16
  63. package/dist/components/Drawer/Drawer.js +54 -49
  64. package/dist/components/Drawer/hooks/useDrawer.js +39 -44
  65. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  66. package/dist/components/Filter/Filter.js +25 -23
  67. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -57
  68. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
  69. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +29 -50
  70. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
  71. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -49
  72. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
  73. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
  74. package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
  75. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
  76. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -50
  77. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
  78. package/dist/components/Filter/contexts/filter.provider.js +15 -7
  79. package/dist/components/Filter/events/index.js +26 -5
  80. package/dist/components/Filter/hooks/index.js +4 -0
  81. package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
  82. package/dist/components/Filter/utils/index.js +1 -1
  83. package/dist/components/ImageUpload/ImageUpload.js +1 -1
  84. package/dist/components/Input/Input.js +1 -1
  85. package/dist/components/LineChart/LineChart.js +1 -1
  86. package/dist/components/Loading/Loading.js +1 -1
  87. package/dist/components/Modal/Modal.js +1 -1
  88. package/dist/components/Modal/components/Body/Body.js +1 -1
  89. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  90. package/dist/components/Modal/components/Header/Header.js +1 -1
  91. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  92. package/dist/components/Modal/components/index.js +1 -1
  93. package/dist/components/Modal/contexts/Modal.provider.js +26 -19
  94. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  95. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  96. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  97. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  98. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
  99. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
  100. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
  101. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  102. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
  103. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
  104. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  105. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  106. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  107. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  108. package/dist/components/PieChart/PieChart.js +33 -32
  109. package/dist/components/ProgressBar/ProgressBar.js +26 -20
  110. package/dist/components/Radio/Radio.js +28 -30
  111. package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
  112. package/dist/components/RadioGroup/RadioGroup.js +24 -24
  113. package/dist/components/Range/Range.js +15 -13
  114. package/dist/components/Select/Select.js +2 -2
  115. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  116. package/dist/components/Select/components/List/List.js +3 -3
  117. package/dist/components/Select/components/ListItem/ListItem.js +30 -30
  118. package/dist/components/Select/components/Wrapper.js +1 -1
  119. package/dist/components/Select/components/index.js +2 -2
  120. package/dist/components/Select/hooks/useSelect.js +39 -38
  121. package/dist/components/Sidebar/Sidebar.js +21 -18
  122. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
  123. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
  124. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  125. package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
  126. package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
  127. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
  128. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
  129. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
  130. package/dist/components/Sidebar/components/index.js +17 -15
  131. package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
  132. package/dist/components/Slider/Slider.js +17 -15
  133. package/dist/components/Spinner/Spinner.js +1 -1
  134. package/dist/components/Stepper/Stepper.variants.js +6 -6
  135. package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
  136. package/dist/components/Switch/Switch.js +1 -1
  137. package/dist/components/Table/components/Filter.js +1 -1
  138. package/dist/components/Tabs/Tabs.js +1 -1
  139. package/dist/components/Tabs/Tabs.variants.js +1 -1
  140. package/dist/components/Tabs/components/Content.js +1 -1
  141. package/dist/components/Tabs/components/List.js +1 -1
  142. package/dist/components/Tabs/components/Trigger.js +1 -1
  143. package/dist/components/Tag/Tag.js +1 -1
  144. package/dist/components/Tag/Tag.variants.js +17 -17
  145. package/dist/components/TagSelect/TagSelect.js +1 -1
  146. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  147. package/dist/components/TagSelect/components/index.js +1 -1
  148. package/dist/components/TagSelect/hooks/useTagSelect.js +12 -11
  149. package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
  150. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
  151. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
  152. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
  153. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
  154. package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
  155. package/dist/components/Toast/Toast.js +1 -1
  156. package/dist/components/Toast/Toast.variants.js +1 -1
  157. package/dist/components/Tooltip/Tooltip.js +1 -1
  158. package/dist/components/VirtualizedTable/VirtualizedTable.js +92 -89
  159. package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -21
  160. package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
  161. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
  162. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
  163. package/dist/components/VirtualizedTable/components/Filter/Filter.js +67 -75
  164. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
  165. package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
  166. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
  167. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
  168. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  169. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
  170. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  171. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  172. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  173. package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
  174. package/dist/components/VirtualizedTable/events/index.js +10 -25
  175. package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
  176. package/dist/components/VirtualizedTable/events/row/row.js +22 -0
  177. package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
  178. package/dist/components/VirtualizedTable/utils/index.js +4 -2
  179. package/dist/components/index.js +96 -90
  180. package/dist/{components-CYt24H4n.js → components-Cf345jTv.js} +45 -41
  181. package/dist/constants-CxJJRVK3.js +31 -0
  182. package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
  183. package/dist/dist-BUocnzkM.js +99 -0
  184. package/dist/{dist-DGO9opgu.js → dist-BZNE2Tnx.js} +51 -51
  185. package/dist/dist-BaPW7qXd2.js +166 -0
  186. package/dist/dist-BdobXn93.js +192 -0
  187. package/dist/dist-BlPTJNIm.js +118 -0
  188. package/dist/dist-C3YVLapk.js +194 -0
  189. package/dist/dist-C4j75TwZ.js +20 -0
  190. package/dist/dist-CCdbu9GU.js +46 -0
  191. package/dist/dist-CzKqHuqJ2.js +427 -0
  192. package/dist/dist-D-yS0HN8.js +228 -0
  193. package/dist/dist-D5XYRjmR.js +15 -0
  194. package/dist/dist-DDck_2lb.js +451 -0
  195. package/dist/dist-DFCz63oC2.js +1320 -0
  196. package/dist/dist-DGOjiAnB2.js +14 -0
  197. package/dist/dist-DKryKPmP.js +193 -0
  198. package/dist/dist-DX0sBG3Q.js +31 -0
  199. package/dist/dist-DYIabsrY.js +17 -0
  200. package/dist/dist-pWlMx4Fi2.js +36 -0
  201. package/dist/dist-tGUUcv8n.js +359 -0
  202. package/dist/dist-xCbHbMLA.js +116 -0
  203. package/dist/es2015-CoHq2g4y.js +231 -0
  204. package/dist/es2015-DigR3dar.js +795 -0
  205. package/dist/events.types-BG1Uh8i6.js +6 -0
  206. package/dist/hooks/index.js +6 -4
  207. package/dist/hooks/useClickOutside.js +14 -0
  208. package/dist/index.js +147 -139
  209. package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
  210. package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
  211. package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
  212. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
  213. package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  214. package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
  215. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  216. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
  217. package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
  218. package/dist/lib/components/Button/Button.types.d.ts +1 -1
  219. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
  220. package/dist/lib/components/Card/Card.types.d.ts +1 -1
  221. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
  222. package/dist/lib/components/Command/Command.types.d.ts +1 -1
  223. package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
  224. package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
  225. package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
  226. package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
  227. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
  228. package/dist/lib/components/Filter/Filter.types.d.ts +3 -1
  229. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
  230. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
  231. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
  232. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
  233. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
  234. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
  235. package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
  236. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
  237. package/dist/lib/components/Filter/contexts/filter.context.d.ts +2 -0
  238. package/dist/lib/components/Filter/events/index.d.ts +10 -2
  239. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  240. package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
  241. package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
  242. package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
  243. package/dist/lib/components/Input/Input.types.d.ts +1 -1
  244. package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
  245. package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
  246. package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
  247. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
  248. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
  249. package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
  250. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
  251. package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
  252. package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +3 -1
  253. package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
  254. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
  255. package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
  256. package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
  257. package/dist/lib/components/Range/Range.types.d.ts +1 -1
  258. package/dist/lib/components/Select/Select.types.d.ts +1 -1
  259. package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
  260. package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
  261. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +8 -7
  262. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
  263. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
  264. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
  265. package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
  266. package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
  267. package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
  268. package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
  269. package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
  270. package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
  271. package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
  272. package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
  273. package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
  274. package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
  275. package/dist/lib/components/Table/Table.types.d.ts +1 -1
  276. package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
  277. package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
  278. package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
  279. package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
  280. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
  281. package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
  282. package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
  283. package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
  284. package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
  285. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
  286. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
  287. package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
  288. package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
  289. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
  290. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
  291. package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
  292. package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
  293. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
  294. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
  295. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
  296. package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  297. package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
  298. package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
  299. package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
  300. package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
  301. package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
  302. package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
  303. package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
  304. package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
  305. package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
  306. package/dist/lib/components/index.d.ts +2 -2
  307. package/dist/lib/contexts/theme.context.d.ts +1 -1
  308. package/dist/lib/contexts/theme.hook.d.ts +1 -1
  309. package/dist/lib/hooks/index.d.ts +1 -0
  310. package/dist/lib/hooks/useClickOutside.d.ts +2 -0
  311. package/dist/package.json +38 -37
  312. package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
  313. package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
  314. package/dist/styles.css +1 -1
  315. package/dist/{table.provider-9uUt5a-s.js → table.provider-B0BafHuU.js} +429 -388
  316. package/dist/ui/civo-theme.css +4 -0
  317. package/dist/ui/kubefirst-theme.css +4 -0
  318. package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
  319. package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
  320. package/package.json +38 -37
  321. package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
  322. package/dist/Checkbox-B1rTwzR3.js +0 -240
  323. package/dist/Counter-DWKyr569.js +0 -208
  324. package/dist/DropdownButton-Beel5_gN.js +0 -92
  325. package/dist/FlagSelectorList-BARhzfj2.js +0 -848
  326. package/dist/Modal-Bcu6LLAp.js +0 -76
  327. package/dist/Switch-1RGhhTtg.js +0 -178
  328. package/dist/Toast-CS-igZor.js +0 -467
  329. package/dist/Wrapper-DNEn4fef.js +0 -161
  330. package/dist/Wrapper-DwxJAkNQ.js +0 -110
  331. package/dist/constants-DXrF9vV4.js +0 -31
  332. package/dist/dist-7edduNXi.js +0 -398
  333. package/dist/dist-B-Aoze_D.js +0 -10
  334. package/dist/dist-BkYHh2kH.js +0 -408
  335. package/dist/dist-C6Cif8-U.js +0 -28
  336. package/dist/dist-C8NWUTUh.js +0 -62
  337. package/dist/dist-CVy-ulDZ.js +0 -42
  338. package/dist/dist-CeuUxVmT.js +0 -13
  339. package/dist/dist-CfYOvauX.js +0 -125
  340. package/dist/dist-CktbIsHq.js +0 -264
  341. package/dist/dist-DGqWMRtc.js +0 -183
  342. package/dist/dist-DdFwUrO22.js +0 -11
  343. package/dist/dist-DnGj9MTf.js +0 -1692
  344. package/dist/dist-DqKFpce5.js +0 -98
  345. package/dist/dist-DvoMuWKO2.js +0 -31
  346. package/dist/dist-eAwtFCCA.js +0 -87
  347. package/dist/dist-ppXKUlVt.js +0 -10
  348. /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
  349. /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
@@ -1,18 +1,18 @@
1
- import { t as o } from "../Checkbox-B1rTwzR3.js";
2
- import { t as m } from "../DropdownButton-Beel5_gN.js";
3
- import { t as p } from "../Breadcrumb-Bmv0vzgt.js";
4
- import { t as a } from "../Input-DG3snJf_.js";
5
- import { t as n } from "../Counter-DWKyr569.js";
1
+ import { t as o } from "../Checkbox-B_ngk9Dj.js";
2
+ import { t as m } from "../DropdownButton-DfNojmCW.js";
3
+ import { t as p } from "../Breadcrumb-Cp3abB2w.js";
4
+ import { t as a } from "../Input-Cf44DzfE.js";
5
+ import { t as n } from "../Counter-BV680M5r.js";
6
6
  import { Alert as l } from "./Alert/Alert.js";
7
7
  import { Button as g } from "./Button/Button.js";
8
- import { AlertDialog as c } from "./AlertDialog/AlertDialog.js";
8
+ import { AlertDialog as T } from "./AlertDialog/AlertDialog.js";
9
9
  import { Autocomplete as D } from "./Autocomplete/Autocomplete.js";
10
- import { t as V } from "../Loading-fD0Xiyeq.js";
11
- import { Badge as w } from "./Badge/Badge.js";
12
- import { Typography as S } from "./Typography/Typography.js";
10
+ import { t as R } from "../Loading-DUh9PMJN.js";
11
+ import { Badge as b } from "./Badge/Badge.js";
12
+ import { Typography as w } from "./Typography/Typography.js";
13
13
  import { ButtonGroup as h } from "./ButtonGroup/ButtonGroup.js";
14
- import { Card as L } from "./Card/Card.js";
15
- import { DatePicker as E } from "./Datepicker/DatePicker.js";
14
+ import { Card as E } from "./Card/Card.js";
15
+ import { DatePicker as x } from "./Datepicker/DatePicker.js";
16
16
  import { Radio as I } from "./Radio/Radio.js";
17
17
  import { RadioGroup as P } from "./RadioGroup/RadioGroup.js";
18
18
  import { TimePicker as A } from "./TimePicker/TimePicker.js";
@@ -25,121 +25,127 @@ import { DateRangeFilterDropdown as K } from "./Filter/components/DateRangeFilte
25
25
  import { TextMultiSelect as X } from "./Filter/components/TextMultiSelect/TextMultiSelect.js";
26
26
  import { TimeFilterDropdown as Z } from "./Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
27
27
  import { Filter as $ } from "./Filter/Filter.js";
28
- import { t as or } from "../ImageUpload-DZTm4SBB.js";
28
+ import { t as or } from "../ImageUpload-DiwymQcU.js";
29
29
  import { LineChart as mr } from "./LineChart/LineChart.js";
30
- import { t as pr } from "../Modal-Bcu6LLAp.js";
31
- import { t as ar } from "../components-CYt24H4n.js";
30
+ import { t as pr } from "../Modal-Dyn088X7.js";
31
+ import { t as ar } from "../components-Cf345jTv.js";
32
32
  import { PhoneNumberInput as nr } from "./PhoneNumberInput/PhoneNumberInput.js";
33
33
  import { PieChart as lr } from "./PieChart/PieChart.js";
34
34
  import { ProgressBar as gr } from "./ProgressBar/ProgressBar.js";
35
- import { RadioCard as cr } from "./RadioCard/RadioCard.js";
35
+ import { RadioCard as Tr } from "./RadioCard/RadioCard.js";
36
36
  import { RadioCardGroup as Dr } from "./RadioCardGroup/RadioCardGroup.js";
37
- import { Range as Vr } from "./Range/Range.js";
38
- import { Select as wr } from "./Select/Select.js";
39
- import { Footer as Sr } from "./Sidebar/components/Footer/Footer.js";
40
- import { Label as hr } from "./Sidebar/components/Label/Label.js";
41
- import { Logo as Lr } from "./Sidebar/components/Logo/Logo.js";
42
- import { NavigationGroup as Er } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
43
- import { NavigationOption as Ir } from "./Sidebar/components/NavigationOption/NavigationOption.js";
44
- import { NavigationSeparator as Pr } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
45
- import { Navigation as Ar } from "./Sidebar/components/Navigation/Navigation.js";
46
- import { Sidebar as Mr } from "./Sidebar/Sidebar.js";
47
- import { Slider as yr } from "./Slider/Slider.js";
48
- import { t as Ur } from "../Spinner-BegZ5yd7.js";
49
- import { horizontalConnectorWrapperVariants as jr, stepConnectorVariants as qr, stepContentVariants as Hr, stepDescriptionVariants as Jr, stepIndicatorVariants as Kr, stepItemVariants as Qr, stepLabelVariants as Xr, stepListVariants as Yr, stepVariants as Zr, stepperVariants as _r } from "./Stepper/Stepper.variants.js";
50
- import { Stepper as ro } from "./Stepper/Stepper.js";
51
- import { t as to } from "../Switch-1RGhhTtg.js";
52
- import { Table as io } from "./Table/Table.js";
53
- import { Content as eo } from "./Tabs/components/Content.js";
54
- import { List as fo } from "./Tabs/components/List.js";
55
- import { Trigger as so } from "./Tabs/components/Trigger.js";
56
- import { Tabs as go } from "./Tabs/Tabs.js";
57
- import { Tag as co } from "./Tag/Tag.js";
58
- import { TagSelect as Do } from "./TagSelect/TagSelect.js";
59
- import { TextArea as Vo } from "./TextArea/TextArea.js";
60
- import { t as wo } from "../Toast-CS-igZor.js";
61
- import { Tooltip as So } from "./Tooltip/Tooltip.js";
62
- import { VirtualizedTableEvent as ho, sendCollapseRowEvent as Bo, sendExpandRowEvent as Lo, sendResetFiltersEvent as xo, sendToggleRowEvent as Eo } from "./VirtualizedTable/events/index.js";
63
- import { TruncateText as Io } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
64
- import { VirtualizedTable as Po } from "./VirtualizedTable/VirtualizedTable.js";
37
+ import { Range as Rr } from "./Range/Range.js";
38
+ import { Select as br } from "./Select/Select.js";
39
+ import { CollapseTrigger as wr } from "./Sidebar/components/CollapseTrigger/CollapseTrigger.js";
40
+ import { Footer as hr } from "./Sidebar/components/Footer/Footer.js";
41
+ import { Label as Er } from "./Sidebar/components/Label/Label.js";
42
+ import { Logo as xr } from "./Sidebar/components/Logo/Logo.js";
43
+ import { NavigationGroup as Ir } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
44
+ import { NavigationOption as Pr } from "./Sidebar/components/NavigationOption/NavigationOption.js";
45
+ import { NavigationSeparator as Ar } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
46
+ import { Navigation as Mr } from "./Sidebar/components/Navigation/Navigation.js";
47
+ import { Sidebar as yr } from "./Sidebar/Sidebar.js";
48
+ import { Slider as Ur } from "./Slider/Slider.js";
49
+ import { t as jr } from "../Spinner-CUwE2bLm.js";
50
+ import { horizontalConnectorWrapperVariants as Hr, stepConnectorVariants as Jr, stepContentVariants as Kr, stepDescriptionVariants as Qr, stepIndicatorVariants as Xr, stepItemVariants as Yr, stepLabelVariants as Zr, stepListVariants as _r, stepVariants as $r, stepperVariants as ro } from "./Stepper/Stepper.variants.js";
51
+ import { Stepper as to } from "./Stepper/Stepper.js";
52
+ import { t as io } from "../Switch-aPhL5rNG.js";
53
+ import { Table as eo } from "./Table/Table.js";
54
+ import { Content as fo } from "./Tabs/components/Content.js";
55
+ import { List as so } from "./Tabs/components/List.js";
56
+ import { Trigger as go } from "./Tabs/components/Trigger.js";
57
+ import { Tabs as To } from "./Tabs/Tabs.js";
58
+ import { Tag as Do } from "./Tag/Tag.js";
59
+ import { TagSelect as Ro } from "./TagSelect/TagSelect.js";
60
+ import { TextArea as bo } from "./TextArea/TextArea.js";
61
+ import { t as wo } from "../Toast-3NEz7LLa.js";
62
+ import { Tooltip as ho } from "./Tooltip/Tooltip.js";
63
+ import { t as Eo } from "../events.types-BG1Uh8i6.js";
64
+ import { sendResetFiltersEvent as xo } from "./VirtualizedTable/events/filters/filters.js";
65
+ import { sendRefreshEvent as Io } from "./VirtualizedTable/events/refresh/refresh.js";
66
+ import { sendCollapseRowEvent as Po, sendExpandRowEvent as ko, sendToggleRowEvent as Ao } from "./VirtualizedTable/events/row/row.js";
67
+ import { TruncateText as Mo } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
68
+ import { VirtualizedTable as yo } from "./VirtualizedTable/VirtualizedTable.js";
65
69
  export {
66
70
  l as Alert,
67
- c as AlertDialog,
71
+ T as AlertDialog,
68
72
  D as Autocomplete,
69
- w as Badge,
73
+ b as Badge,
70
74
  j as BadgeMultiSelect,
71
75
  p as Breadcrumb,
72
76
  g as Button,
73
77
  h as ButtonGroup,
74
- L as Card,
78
+ E as Card,
75
79
  o as Checkbox,
76
- eo as Content,
80
+ wr as CollapseTrigger,
81
+ fo as Content,
77
82
  n as Counter,
78
83
  H as DateFilterDropdown,
79
- E as DatePicker,
84
+ x as DatePicker,
80
85
  K as DateRangeFilterDropdown,
81
86
  M as DateRangePicker,
82
87
  y as Divider,
83
88
  U as Drawer,
84
- wr as Dropdown,
89
+ br as Dropdown,
85
90
  m as DropdownButton,
86
91
  $ as Filter,
87
- Sr as Footer,
92
+ hr as Footer,
88
93
  or as ImageUpload,
89
94
  a as Input,
90
- hr as Label,
95
+ Er as Label,
91
96
  mr as LineChart,
92
- fo as List,
93
- V as Loading,
94
- Lr as Logo,
97
+ so as List,
98
+ R as Loading,
99
+ xr as Logo,
95
100
  pr as Modal,
96
101
  ar as MultiSelectDropdown,
97
- Ar as Navigation,
98
- Er as NavigationGroup,
99
- Ir as NavigationOption,
100
- Pr as NavigationSeparator,
102
+ Mr as Navigation,
103
+ Ir as NavigationGroup,
104
+ Pr as NavigationOption,
105
+ Ar as NavigationSeparator,
101
106
  n as NumberInput,
102
107
  nr as PhoneNumberInput,
103
108
  lr as PieChart,
104
109
  gr as ProgressBar,
105
110
  I as Radio,
106
- cr as RadioCard,
111
+ Tr as RadioCard,
107
112
  Dr as RadioCardGroup,
108
113
  P as RadioGroup,
109
- Vr as Range,
110
- wr as Select,
111
- Mr as Sidebar,
112
- yr as Slider,
113
- Ur as Spinner,
114
- ro as Stepper,
115
- to as Switch,
116
- io as Table,
117
- go as Tabs,
118
- co as Tag,
119
- Do as TagSelect,
120
- Vo as TextArea,
114
+ Rr as Range,
115
+ br as Select,
116
+ yr as Sidebar,
117
+ Ur as Slider,
118
+ jr as Spinner,
119
+ to as Stepper,
120
+ io as Switch,
121
+ eo as Table,
122
+ To as Tabs,
123
+ Do as Tag,
124
+ Ro as TagSelect,
125
+ bo as TextArea,
121
126
  X as TextMultiSelect,
122
127
  Z as TimeFilterDropdown,
123
128
  A as TimePicker,
124
129
  wo as Toast,
125
- So as Tooltip,
126
- so as Trigger,
127
- Io as TruncateText,
128
- S as Typography,
129
- Po as VirtualizedTable,
130
- ho as VirtualizedTableEvent,
131
- jr as horizontalConnectorWrapperVariants,
132
- Bo as sendCollapseRowEvent,
133
- Lo as sendExpandRowEvent,
130
+ ho as Tooltip,
131
+ go as Trigger,
132
+ Mo as TruncateText,
133
+ w as Typography,
134
+ yo as VirtualizedTable,
135
+ Eo as VirtualizedTableEvent,
136
+ Hr as horizontalConnectorWrapperVariants,
137
+ Po as sendCollapseRowEvent,
138
+ ko as sendExpandRowEvent,
139
+ Io as sendRefreshEvent,
134
140
  xo as sendResetFiltersEvent,
135
- Eo as sendToggleRowEvent,
136
- qr as stepConnectorVariants,
137
- Hr as stepContentVariants,
138
- Jr as stepDescriptionVariants,
139
- Kr as stepIndicatorVariants,
140
- Qr as stepItemVariants,
141
- Xr as stepLabelVariants,
142
- Yr as stepListVariants,
143
- Zr as stepVariants,
144
- _r as stepperVariants
141
+ Ao as sendToggleRowEvent,
142
+ Jr as stepConnectorVariants,
143
+ Kr as stepContentVariants,
144
+ Qr as stepDescriptionVariants,
145
+ Xr as stepIndicatorVariants,
146
+ Yr as stepItemVariants,
147
+ Zr as stepLabelVariants,
148
+ _r as stepListVariants,
149
+ $r as stepVariants,
150
+ ro as stepperVariants
145
151
  };
@@ -1,33 +1,33 @@
1
- import { n as L } from "./Wrapper-DwxJAkNQ.js";
2
- import { t as o } from "./utils-Cx-WzRZF.js";
3
- import { LoaderIcon as I } from "./assets/icons/components/Loader.js";
4
- import { t as C } from "./x-a_LpoXzG.js";
1
+ import { n as I } from "./Wrapper-CVJSuYWx.js";
2
+ import { t as i } from "./utils-Cx-WzRZF.js";
3
+ import { LoaderIcon as L } from "./assets/icons/components/Loader.js";
4
+ import { t as C } from "./x-a_LpoXzG2.js";
5
5
  import { Badge as R } from "./components/Badge/Badge.js";
6
6
  import { Typography as N } from "./components/Typography/Typography.js";
7
- import { useMultiSelectDropdown as w } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js";
7
+ import { useMultiSelectDropdown as g } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js";
8
8
  import { MultiSelectDropdownProvider as V } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js";
9
- import { Item as g } from "./components/MultiSelectDropdown/components/Item/Item.js";
10
- import { listVariants as j } from "./components/MultiSelectDropdown/components/List/List.variants.js";
11
- import { useMultiSelectDropdown as T } from "./components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js";
12
- import { labelVariants as W, multiSelectDropdownVariants as $, wrapperVariants as z } from "./components/MultiSelectDropdown/MultiSelectDropdown.variants.js";
13
- import { forwardRef as b, useId as B, useImperativeHandle as F } from "react";
14
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
9
+ import { Item as b } from "./components/MultiSelectDropdown/components/Item/Item.js";
10
+ import { listVariants as $ } from "./components/MultiSelectDropdown/components/List/List.variants.js";
11
+ import { useMultiSelectDropdown as j } from "./components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js";
12
+ import { labelVariants as T, multiSelectDropdownVariants as W, wrapperVariants as z } from "./components/MultiSelectDropdown/MultiSelectDropdown.variants.js";
13
+ import { forwardRef as w, useId as B, useImperativeHandle as F } from "react";
14
+ import { jsx as e, jsxs as f } from "react/jsx-runtime";
15
15
  var H = ({ theme: n }) => {
16
- const { options: a, selectedOptions: r, isLoading: s, noOptionsText: l } = w();
16
+ const { options: a, selectedOptions: r, isLoading: o, noOptionsText: l } = g();
17
17
  return /* @__PURE__ */ e("ul", {
18
18
  role: "listbox",
19
19
  "data-theme": n,
20
- className: o(j()),
21
- children: s ? /* @__PURE__ */ e(g, {
20
+ className: i($()),
21
+ children: o ? /* @__PURE__ */ e(b, {
22
22
  option: {
23
23
  id: "loading",
24
24
  label: "Loading..."
25
25
  },
26
26
  className: "select-none pointer-events-none",
27
27
  isSelected: !1
28
- }, "loading") : a.length > 0 ? a.map((t) => /* @__PURE__ */ e(g, {
28
+ }, "loading") : a.length > 0 ? a.map((t) => /* @__PURE__ */ e(b, {
29
29
  option: t,
30
- isSelected: r.some((i) => i.id === t.id)
30
+ isSelected: r.some((s) => s.id === t.id)
31
31
  }, t.id)) : /* @__PURE__ */ e("li", {
32
32
  className: "select-none",
33
33
  children: /* @__PURE__ */ e(N, {
@@ -37,20 +37,21 @@ var H = ({ theme: n }) => {
37
37
  })
38
38
  })
39
39
  });
40
- }, y = b(({ isRequired: n, label: a, labelClassName: r, labelWrapperClassName: s, name: l, placeholder: t = "", theme: i, wrapperClassName: m }, c) => {
41
- const p = B(), x = l ? `${p}-name` : "id", { inputRef: u, isLoading: S, isOpen: f, selectedOptions: v, onOpen: O, onRemoveOption: D } = w(), { wrapperRef: M, handleOpen: k } = T();
42
- return F(c, () => u.current, [u]), /* @__PURE__ */ h("div", {
40
+ }, y = w(({ isRequired: n, label: a, labelClassName: r, labelWrapperClassName: o, name: l, placeholder: t = "", theme: s, wrapperClassName: c }, p) => {
41
+ const d = B(), x = l ? `${d}-name` : "id", { inputRef: u, isLoading: S, isOpen: h, selectedOptions: v, onOpen: O, onRemoveOption: D } = g(), { wrapperRef: M, handleOpen: k } = j();
42
+ return F(p, () => u.current, [u]), /* @__PURE__ */ f("div", {
43
43
  ref: M,
44
- className: o(z({ className: m })),
45
- "data-theme": i,
44
+ className: i(z({ className: c })),
45
+ "data-theme": s,
46
46
  children: [
47
47
  a ? /* @__PURE__ */ e("div", {
48
- className: o(s),
49
- children: /* @__PURE__ */ h(N, {
48
+ className: i(o),
49
+ children: /* @__PURE__ */ f(N, {
50
50
  component: "label",
51
51
  variant: "labelLarge",
52
+ id: `${d}-label`,
52
53
  htmlFor: x,
53
- className: o(W({ className: r })),
54
+ className: i(T({ className: r })),
54
55
  onClick: () => O(!0),
55
56
  children: [
56
57
  a,
@@ -63,53 +64,56 @@ var H = ({ theme: n }) => {
63
64
  ]
64
65
  })
65
66
  }) : null,
66
- /* @__PURE__ */ h("div", {
67
+ /* @__PURE__ */ f("div", {
67
68
  id: x,
68
- className: o($()),
69
+ className: i(W()),
69
70
  role: "combobox",
70
71
  onClick: k,
71
- "aria-expanded": f,
72
+ "aria-expanded": h,
73
+ "aria-labelledby": a ? `${d}-label` : void 0,
72
74
  children: [v.length === 0 ? /* @__PURE__ */ e("span", {
73
75
  className: "text-base text-inherit select-none",
74
76
  children: t
75
77
  }) : /* @__PURE__ */ e("div", {
76
78
  className: "flex flex-wrap gap-2",
77
- children: v.map((d) => /* @__PURE__ */ e(R, {
78
- "data-value": d.label,
79
- label: d.value ?? d.label ?? "",
79
+ children: v.map((m) => /* @__PURE__ */ e(R, {
80
+ "data-value": m.label,
81
+ label: m.value ?? m.label ?? "",
80
82
  className: "select-none",
81
- rightIcon: /* @__PURE__ */ e(C, { onClick: () => D(d) })
82
- }, d.id))
83
- }), S ? /* @__PURE__ */ e(I, {
83
+ rightIcon: /* @__PURE__ */ e(C, { onClick: () => D(m) })
84
+ }, m.id))
85
+ }), S ? /* @__PURE__ */ e(L, {
84
86
  size: 16,
85
87
  className: "animate-spin shrink-0 text-gray-400"
86
- }) : /* @__PURE__ */ e(L, { className: o("w-4 h-4 transition-all duration-50 shrink-0 text-gray-400", f ? "rotate-0" : "rotate-180") })]
88
+ }) : /* @__PURE__ */ e(I, { className: i("w-4 h-4 transition-all duration-50 shrink-0 text-gray-400", h ? "rotate-0" : "rotate-180") })]
87
89
  }),
88
90
  /* @__PURE__ */ e("input", {
89
91
  ref: u,
90
92
  type: "text",
91
93
  name: l,
92
94
  className: "hidden",
95
+ tabIndex: -1,
96
+ "aria-hidden": "true",
93
97
  readOnly: !0
94
98
  }),
95
- f ? /* @__PURE__ */ e(H, {}) : null
99
+ h ? /* @__PURE__ */ e(H, {}) : null
96
100
  ]
97
101
  });
98
102
  });
99
103
  y.displayName = "MultiSelectDropdownWrapper";
100
- var K = b(({ isLoading: n, multiselect: a, name: r, noOptionsText: s, options: l, value: t, onChange: i, onBlur: m, ...c }, p) => /* @__PURE__ */ e(V, {
104
+ var K = w(({ isLoading: n, multiselect: a, name: r, noOptionsText: o, options: l, value: t, onChange: s, onBlur: c, ...p }, d) => /* @__PURE__ */ e(V, {
101
105
  defaultOptions: l,
102
106
  multiselect: a,
103
107
  value: t,
104
- onChange: i,
105
- onBlur: m,
108
+ onChange: s,
109
+ onBlur: c,
106
110
  name: r,
107
111
  isLoading: n,
108
- noOptionsText: s,
112
+ noOptionsText: o,
109
113
  children: /* @__PURE__ */ e(y, {
110
- ref: p,
114
+ ref: d,
111
115
  name: r,
112
- ...c
116
+ ...p
113
117
  })
114
118
  }));
115
119
  K.displayName = "KonstructMultiSelectDropdown";
@@ -0,0 +1,31 @@
1
+ import { t } from "./utils-Cx-WzRZF.js";
2
+ var o = (e) => ({
3
+ root: t("w-fit", e?.root),
4
+ months: t("flex", e?.months),
5
+ month: t("flex flex-col w-[259px]", e?.month),
6
+ month_caption: "hidden",
7
+ nav: "hidden",
8
+ day_button: t("size-7.5", "flex", "items-center", "justify-center", "text-sm", "font-semibold", "cursor-pointer", "rounded-full", "hover:bg-slate-100", "dark:hover:bg-metal-700", "transition-colors", "text-slate-700", "dark:text-white", "focus:outline-none", "focus-visible:outline-none", e?.dayButton),
9
+ day: t("p-0", "w-[37px]", "h-9.5", "text-center", "align-middle", e?.day),
10
+ selected: t("[&>button]:bg-blue-600", "[&>button]:text-white", "[&>button]:hover:bg-blue-700", "dark:[&>button]:bg-aurora-500", "dark:[&>button]:hover:bg-aurora-500", "dark:[&>button]:text-metal-900", e?.selected),
11
+ range_start: t("drp-range-start", "[&>button]:!bg-blue-600", "[&>button]:!text-white", "[&>button]:!rounded-full", "[&>button]:hover:!bg-blue-700", "[&>button]:relative", "[&>button]:z-10", "dark:[&>button]:!bg-aurora-500", "dark:[&>button]:hover:!bg-aurora-500", "dark:[&>button]:!text-metal-900", "!relative", "before:absolute", "before:top-1", "before:bottom-1", "before:left-1/2", "before:right-0", "before:!bg-blue-50", "dark:before:!bg-aurora-500/10", "last:before:!hidden", e?.rangeStart),
12
+ range_end: t("drp-range-end", "[&>button]:!bg-blue-600", "[&>button]:!text-white", "[&>button]:!rounded-full", "[&>button]:hover:!bg-blue-700", "[&>button]:relative", "[&>button]:z-10", "dark:[&>button]:!bg-aurora-500", "dark:[&>button]:hover:!bg-aurora-500", "dark:[&>button]:!text-metal-900", "!relative", "before:absolute", "before:top-1", "before:bottom-1", "before:left-0", "before:right-1/2", "before:!bg-blue-50", "dark:before:!bg-aurora-500/10", "first:before:!hidden", e?.rangeEnd),
13
+ range_middle: t("drp-range-middle", "!relative", "before:absolute", "before:top-1", "before:bottom-1", "before:left-0", "before:right-0", "before:!bg-blue-50", "dark:before:!bg-aurora-500/10", "first:before:rounded-l-full", "last:before:rounded-r-full", "[&>button]:!text-slate-700", "[&>button]:!bg-transparent", "[&>button]:!rounded-full", "[&>button]:relative", "[&>button]:z-10", "[&>button]:hover:!bg-blue-100", "dark:[&>button]:!text-white", "dark:[&>button]:hover:!bg-aurora-500/20", e?.rangeMiddle),
14
+ table: t("w-full border-collapse table-fixed", e?.table),
15
+ weekdays: t("text-slate-500", "dark:text-metal-400", e?.weekdays),
16
+ weeks: t("[&>tr>td]:p-0", "[&>tr]:h-9.5", e?.weeks),
17
+ weekday: t("font-semibold", "text-xs", "uppercase", "text-slate-500", "dark:text-metal-400", "pb-4", "w-[37px]", e?.weekday),
18
+ today: t("[&>button]:text-blue-600", "dark:[&>button]:text-aurora-500", e?.today),
19
+ month_grid: "w-full",
20
+ disabled: t("[&>button]:opacity-50", "[&>button]:cursor-not-allowed", e?.disabled),
21
+ outside: t("[&>button]:!text-slate-400", "dark:[&>button]:!text-metal-500", e?.outside)
22
+ }), a = 259, b = 32, n = 720 * 60 * 60 * 1e3, l = 56, d = 28, u = 38;
23
+ export {
24
+ d as a,
25
+ a as i,
26
+ l as n,
27
+ u as o,
28
+ n as r,
29
+ o as s,
30
+ b as t
31
+ };
@@ -1,5 +1,5 @@
1
1
  import { t as b } from "./rolldown-runtime-Ck3dxwZt.js";
2
- import { n as R, o as $, t as A } from "./isObject-1ZmdWuhC.js";
2
+ import { n as R, o as $, t as A } from "./isObject-BeFFiVJK.js";
3
3
  var F = /* @__PURE__ */ b(((T, s) => {
4
4
  var u = $(), i = function() {
5
5
  return u.Date.now();
@@ -36,23 +36,23 @@ var F = /* @__PURE__ */ b(((T, s) => {
36
36
  })), X = /* @__PURE__ */ b(((T, s) => {
37
37
  var u = A(), i = F(), m = J(), t = "Expected a function", h = Math.max, y = Math.min;
38
38
  function E(g, a, r) {
39
- var o, f, _, v, n, d, x = 0, O = !1, l = !1, q = !0;
39
+ var o, f, _, d, n, v, x = 0, O = !1, l = !1, q = !0;
40
40
  if (typeof g != "function") throw new TypeError(t);
41
41
  a = m(a) || 0, u(r) && (O = !!r.leading, l = "maxWait" in r, _ = l ? h(m(r.maxWait) || 0, a) : _, q = "trailing" in r ? !!r.trailing : q);
42
42
  function N(e) {
43
43
  var c = o, p = f;
44
- return o = f = void 0, x = e, v = g.apply(p, c), v;
44
+ return o = f = void 0, x = e, d = g.apply(p, c), d;
45
45
  }
46
46
  function C(e) {
47
- return x = e, n = setTimeout(I, a), O ? N(e) : v;
47
+ return x = e, n = setTimeout(I, a), O ? N(e) : d;
48
48
  }
49
49
  function L(e) {
50
- var c = e - d, p = e - x, M = a - c;
50
+ var c = e - v, p = e - x, M = a - c;
51
51
  return l ? y(M, _ - p) : M;
52
52
  }
53
53
  function k(e) {
54
- var c = e - d, p = e - x;
55
- return d === void 0 || c >= a || c < 0 || l && p >= _;
54
+ var c = e - v, p = e - x;
55
+ return v === void 0 || c >= a || c < 0 || l && p >= _;
56
56
  }
57
57
  function I() {
58
58
  var e = i();
@@ -60,22 +60,22 @@ var F = /* @__PURE__ */ b(((T, s) => {
60
60
  n = setTimeout(I, L(e));
61
61
  }
62
62
  function W(e) {
63
- return n = void 0, q && o ? N(e) : (o = f = void 0, v);
63
+ return n = void 0, q && o ? N(e) : (o = f = void 0, d);
64
64
  }
65
65
  function j() {
66
- n !== void 0 && clearTimeout(n), x = 0, o = d = f = n = void 0;
66
+ n !== void 0 && clearTimeout(n), x = 0, o = v = f = n = void 0;
67
67
  }
68
68
  function B() {
69
- return n === void 0 ? v : W(i());
69
+ return n === void 0 ? d : W(i());
70
70
  }
71
71
  function S() {
72
72
  var e = i(), c = k(e);
73
- if (o = arguments, f = this, d = e, c) {
74
- if (n === void 0) return C(d);
73
+ if (o = arguments, f = this, v = e, c) {
74
+ if (n === void 0) return C(v);
75
75
  if (l)
76
- return clearTimeout(n), n = setTimeout(I, a), N(d);
76
+ return clearTimeout(n), n = setTimeout(I, a), N(v);
77
77
  }
78
- return n === void 0 && (n = setTimeout(I, a)), v;
78
+ return n === void 0 && (n = setTimeout(I, a)), d;
79
79
  }
80
80
  return S.cancel = j, S.flush = B, S;
81
81
  }
@@ -0,0 +1,99 @@
1
+ import { n as y } from "./dist-D-yS0HN8.js";
2
+ import * as o from "react";
3
+ var P = Object.defineProperty, f = (n, e) => P(n, "name", {
4
+ value: e,
5
+ configurable: !0
6
+ });
7
+ function g(n, e) {
8
+ return o.useReducer((t, r) => e[t][r] ?? t, n);
9
+ }
10
+ f(g, "useStateMachine");
11
+ var h = /* @__PURE__ */ f((n) => {
12
+ const { present: e, children: t } = n, r = M(e), s = typeof t == "function" ? t({ present: r.isPresent }) : o.Children.only(t), u = O(r.ref, v(s));
13
+ return typeof t == "function" || r.isPresent ? o.cloneElement(s, { ref: u }) : null;
14
+ }, "Presence");
15
+ function M(n) {
16
+ const [e, t] = o.useState(), r = o.useRef(null), s = o.useRef(n), u = o.useRef("none"), i = o.useRef(void 0), [a, l] = g(n ? "mounted" : "unmounted", {
17
+ mounted: {
18
+ UNMOUNT: "unmounted",
19
+ ANIMATION_OUT: "unmountSuspended"
20
+ },
21
+ unmountSuspended: {
22
+ MOUNT: "mounted",
23
+ ANIMATION_END: "unmounted"
24
+ },
25
+ unmounted: { MOUNT: "mounted" }
26
+ });
27
+ return o.useEffect(() => {
28
+ a === "mounted" ? (u.current = i.current ?? N(r.current), i.current = void 0) : u.current = "none";
29
+ }, [a]), y(() => {
30
+ const c = r.current, m = s.current;
31
+ if (m !== n) {
32
+ const d = u.current, p = N(c);
33
+ n ? (i.current = p, l("MOUNT")) : p === "none" || c?.display === "none" ? l("UNMOUNT") : l(m && d !== p ? "ANIMATION_OUT" : "UNMOUNT"), s.current = n;
34
+ }
35
+ }, [n, l]), y(() => {
36
+ if (e) {
37
+ let c;
38
+ const m = e.ownerDocument.defaultView ?? window, d = /* @__PURE__ */ f((R) => {
39
+ const E = N(r.current).includes(CSS.escape(R.animationName));
40
+ if (R.target === e && E && (l("ANIMATION_END"), !s.current)) {
41
+ const T = e.style.animationFillMode;
42
+ e.style.animationFillMode = "forwards", c = m.setTimeout(() => {
43
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = T);
44
+ });
45
+ }
46
+ }, "handleAnimationEnd"), p = /* @__PURE__ */ f((R) => {
47
+ R.target === e && (u.current = N(r.current));
48
+ }, "handleAnimationStart");
49
+ return e.addEventListener("animationstart", p), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
50
+ m.clearTimeout(c), e.removeEventListener("animationstart", p), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
+ };
52
+ } else l("ANIMATION_END");
53
+ }, [e, l]), {
54
+ isPresent: ["mounted", "unmountSuspended"].includes(a),
55
+ ref: o.useCallback((c) => {
56
+ if (c) {
57
+ const m = getComputedStyle(c);
58
+ r.current = m, i.current = N(m);
59
+ } else r.current = null;
60
+ t(c);
61
+ }, [])
62
+ };
63
+ }
64
+ f(M, "usePresence");
65
+ function A(n, e) {
66
+ if (typeof n == "function") return n(e);
67
+ n != null && (n.current = e);
68
+ }
69
+ f(A, "setRef");
70
+ function O(...n) {
71
+ const e = o.useRef(n);
72
+ return e.current = n, o.useCallback((t) => {
73
+ const r = e.current;
74
+ let s = !1;
75
+ const u = r.map((i) => {
76
+ const a = A(i, t);
77
+ return !s && typeof a == "function" && (s = !0), a;
78
+ });
79
+ if (s) return () => {
80
+ for (let i = 0; i < u.length; i++) {
81
+ const a = u[i];
82
+ typeof a == "function" ? a() : A(r[i], null);
83
+ }
84
+ };
85
+ }, []);
86
+ }
87
+ f(O, "useStableComposedRefs");
88
+ function N(n) {
89
+ return n?.animationName || "none";
90
+ }
91
+ f(N, "getAnimationName");
92
+ function v(n) {
93
+ let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
94
+ return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
95
+ }
96
+ f(v, "getElementRef");
97
+ export {
98
+ h as t
99
+ };