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

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 (329) hide show
  1. package/dist/AdditionalOptions-C2FDVZhu.js +45 -0
  2. package/dist/Modal-DAWdufZ_.js +120 -0
  3. package/dist/assets/icons/components/Accounts.js +35 -23
  4. package/dist/assets/icons/components/AddChart.js +26 -20
  5. package/dist/assets/icons/components/AlertOutline.js +26 -20
  6. package/dist/assets/icons/components/AppRepo.js +26 -20
  7. package/dist/assets/icons/components/Apps.js +26 -20
  8. package/dist/assets/icons/components/Archives.js +26 -20
  9. package/dist/assets/icons/components/ArrowDown.js +26 -20
  10. package/dist/assets/icons/components/ArrowLeft.js +26 -20
  11. package/dist/assets/icons/components/ArrowRight.js +26 -20
  12. package/dist/assets/icons/components/ArrowUp.js +25 -19
  13. package/dist/assets/icons/components/BarChart.js +36 -24
  14. package/dist/assets/icons/components/BookOpen.js +30 -20
  15. package/dist/assets/icons/components/CalendarMonth.js +26 -20
  16. package/dist/assets/icons/components/Check.js +26 -20
  17. package/dist/assets/icons/components/CheckCircleFilled.js +29 -25
  18. package/dist/assets/icons/components/CheckCircleOutline.js +26 -20
  19. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +24 -20
  20. package/dist/assets/icons/components/ClockAlert.js +26 -20
  21. package/dist/assets/icons/components/ClockOutline.js +26 -20
  22. package/dist/assets/icons/components/Close.js +26 -20
  23. package/dist/assets/icons/components/Cloud.js +20 -20
  24. package/dist/assets/icons/components/CloudLockOutline.js +26 -20
  25. package/dist/assets/icons/components/Clusters.js +42 -24
  26. package/dist/assets/icons/components/CogOutline.js +26 -20
  27. package/dist/assets/icons/components/Copy.js +26 -20
  28. package/dist/assets/icons/components/Cpu.js +39 -23
  29. package/dist/assets/icons/components/Cube.js +26 -20
  30. package/dist/assets/icons/components/Datacenter.js +26 -20
  31. package/dist/assets/icons/components/Delete.js +26 -20
  32. package/dist/assets/icons/components/DollarSign.js +28 -20
  33. package/dist/assets/icons/components/Download.js +26 -20
  34. package/dist/assets/icons/components/Edit.js +26 -20
  35. package/dist/assets/icons/components/Ellipses.js +26 -20
  36. package/dist/assets/icons/components/Environments.js +28 -20
  37. package/dist/assets/icons/components/Error.js +26 -20
  38. package/dist/assets/icons/components/ErrorOutline.js +26 -20
  39. package/dist/assets/icons/components/Exclamation.js +26 -20
  40. package/dist/assets/icons/components/Git.js +26 -20
  41. package/dist/assets/icons/components/GitOpsCatalog.js +39 -23
  42. package/dist/assets/icons/components/GridView.js +20 -20
  43. package/dist/assets/icons/components/Help.js +23 -25
  44. package/dist/assets/icons/components/HideOutline.js +35 -23
  45. package/dist/assets/icons/components/Home.js +26 -20
  46. package/dist/assets/icons/components/Home2.js +26 -20
  47. package/dist/assets/icons/components/Id.js +25 -19
  48. package/dist/assets/icons/components/InfoCircle.js +29 -25
  49. package/dist/assets/icons/components/InformationOutline.js +26 -20
  50. package/dist/assets/icons/components/InvoiceList.js +26 -20
  51. package/dist/assets/icons/components/Key.js +26 -20
  52. package/dist/assets/icons/components/LightBulb.js +41 -23
  53. package/dist/assets/icons/components/Loader.js +26 -20
  54. package/dist/assets/icons/components/Network.js +26 -20
  55. package/dist/assets/icons/components/PagesStack.js +23 -25
  56. package/dist/assets/icons/components/Pageview.js +26 -20
  57. package/dist/assets/icons/components/People.js +26 -20
  58. package/dist/assets/icons/components/PhotoLibrary.js +25 -19
  59. package/dist/assets/icons/components/Pipeline.js +28 -20
  60. package/dist/assets/icons/components/Plus.js +26 -20
  61. package/dist/assets/icons/components/PowerSettings.js +26 -20
  62. package/dist/assets/icons/components/Preview.js +26 -20
  63. package/dist/assets/icons/components/ReceiptLong.js +20 -20
  64. package/dist/assets/icons/components/Refresh.js +26 -20
  65. package/dist/assets/icons/components/ScatterPlot.js +20 -20
  66. package/dist/assets/icons/components/Search.js +30 -25
  67. package/dist/assets/icons/components/Server.js +26 -20
  68. package/dist/assets/icons/components/Start.js +26 -20
  69. package/dist/assets/icons/components/TabNew.js +48 -24
  70. package/dist/assets/icons/components/Teams.js +26 -20
  71. package/dist/assets/icons/components/Upload.js +25 -19
  72. package/dist/assets/icons/components/Warning.js +26 -20
  73. package/dist/assets/icons/components/WarningTriangle.js +26 -20
  74. package/dist/assets/icons/components/X.js +26 -20
  75. package/dist/components/Alert/Alert.js +61 -78
  76. package/dist/components/Alert/Alert.variants.js +85 -30
  77. package/dist/components/AlertDialog/AlertDialog.js +128 -102
  78. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -3
  79. package/dist/components/AlertDialog/components/index.js +1 -1
  80. package/dist/components/AlertDialog/hooks/useAlertDialog.js +7 -25
  81. package/dist/components/Autocomplete/Autocomplete.js +83 -55
  82. package/dist/components/Autocomplete/Autocomplete.variants.js +21 -1
  83. package/dist/components/Autocomplete/components/List/List.js +45 -48
  84. package/dist/components/Autocomplete/components/List/List.variants.js +29 -1
  85. package/dist/components/Autocomplete/hooks/useAutocomplete.js +58 -74
  86. package/dist/components/Autocomplete/hooks/useNavigationList.js +62 -68
  87. package/dist/components/Badge/Badge.js +77 -66
  88. package/dist/components/Badge/Badge.variants.js +96 -33
  89. package/dist/components/Breadcrumb/Breadcrumb.js +70 -78
  90. package/dist/components/Breadcrumb/Breadcrumb.variants.js +7 -1
  91. package/dist/components/Breadcrumb/components/Item/Item.js +47 -33
  92. package/dist/components/Breadcrumb/components/Item/Item.variants.js +63 -26
  93. package/dist/components/Button/Button.js +40 -37
  94. package/dist/components/Button/Button.variants.js +292 -96
  95. package/dist/components/ButtonGroup/ButtonGroup.js +138 -101
  96. package/dist/components/ButtonGroup/ButtonGroup.variants.js +31 -9
  97. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +113 -105
  98. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +94 -48
  99. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +43 -26
  100. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +35 -28
  101. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +61 -63
  102. package/dist/components/Card/Card.js +35 -35
  103. package/dist/components/Card/Card.variants.js +37 -25
  104. package/dist/components/Checkbox/Checkbox.js +268 -247
  105. package/dist/components/Checkbox/Checkbox.variants.js +65 -18
  106. package/dist/components/Command/Command.js +38 -46
  107. package/dist/components/Command/Command.variants.js +44 -1
  108. package/dist/components/Command/components/Command.js +6 -19
  109. package/dist/components/Command/components/CommandEmpty.js +13 -11
  110. package/dist/components/Command/components/CommandGroup.js +17 -19
  111. package/dist/components/Command/components/CommandInput.js +52 -60
  112. package/dist/components/Command/components/CommandItem.js +26 -28
  113. package/dist/components/Command/components/CommandList.js +14 -19
  114. package/dist/components/Command/components/CommandSeparator.js +14 -19
  115. package/dist/components/Command/components/CommandShortcut.js +16 -16
  116. package/dist/components/Command/components/DialogContent.js +29 -35
  117. package/dist/components/Command/components/DialogOverlay.js +16 -18
  118. package/dist/components/Command/contexts/Command.provider.js +21 -23
  119. package/dist/components/Counter/Counter.js +154 -151
  120. package/dist/components/Counter/Counter.variants.js +53 -6
  121. package/dist/components/DateRangePicker/DateRangePicker.js +162 -93
  122. package/dist/components/DateRangePicker/DateRangePicker.variants.js +20 -1
  123. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +115 -81
  124. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +45 -1
  125. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +20 -14
  126. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +57 -50
  127. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +250 -55
  128. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +37 -33
  129. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +94 -29
  130. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +126 -10
  131. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +113 -138
  132. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +16 -2
  133. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +102 -68
  134. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +22 -1
  135. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +90 -55
  136. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +90 -55
  137. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +177 -204
  138. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +63 -58
  139. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +19 -1
  140. package/dist/components/DateRangePicker/constants/presets.js +7 -16
  141. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +3 -1
  142. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +171 -187
  143. package/dist/components/DateRangePicker/utils/disabled-dates.js +22 -16
  144. package/dist/components/DateRangePicker/utils/validation.js +17 -2
  145. package/dist/components/Datepicker/DatePicker.js +135 -80
  146. package/dist/components/Divider/Divider.js +7 -18
  147. package/dist/components/Drawer/Drawer.js +130 -108
  148. package/dist/components/Drawer/Drawer.variants.js +81 -17
  149. package/dist/components/Drawer/components/Body/Body.js +21 -18
  150. package/dist/components/Drawer/components/Footer/Footer.js +23 -18
  151. package/dist/components/Drawer/components/Header/Header.js +24 -20
  152. package/dist/components/Drawer/contexts/Drawer.context.js +2 -2
  153. package/dist/components/Drawer/hooks/useDrawer.js +57 -81
  154. package/dist/components/DropdownButton/DropdownButton.js +114 -99
  155. package/dist/components/Filter/Filter.js +29 -40
  156. package/dist/components/Filter/Filter.variants.js +17 -1
  157. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +94 -128
  158. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +144 -83
  159. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +81 -87
  160. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +120 -66
  161. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +34 -22
  162. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +117 -74
  163. package/dist/components/Filter/components/ResetButton/ResetButton.js +29 -24
  164. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +135 -83
  165. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +69 -83
  166. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +151 -80
  167. package/dist/components/Filter/contexts/filter.provider.js +4 -16
  168. package/dist/components/Filter/events/index.js +3 -3
  169. package/dist/components/ImageUpload/ImageUpload.js +150 -48
  170. package/dist/components/ImageUpload/ImageUpload.variants.js +93 -41
  171. package/dist/components/Input/Input.js +168 -43
  172. package/dist/components/Input/Input.variants.js +51 -9
  173. package/dist/components/LineChart/LineChart.js +120 -83
  174. package/dist/components/Loading/Loading.js +18 -22
  175. package/dist/components/Loading/Loading.variants.js +8 -1
  176. package/dist/components/Modal/Modal.js +2 -3
  177. package/dist/components/Modal/components/Body/Body.js +5 -16
  178. package/dist/components/Modal/components/Footer/Footer.js +11 -16
  179. package/dist/components/Modal/components/Header/Header.js +11 -16
  180. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
  181. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +28 -1
  182. package/dist/components/Modal/components/index.js +1 -1
  183. package/dist/components/Modal/contexts/Modal.context.js +3 -1
  184. package/dist/components/Modal/contexts/Modal.provider.js +23 -33
  185. package/dist/components/Modal/hooks/useModal.js +18 -29
  186. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +32 -26
  187. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +25 -1
  188. package/dist/components/MultiSelectDropdown/components/Item/Item.js +27 -32
  189. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +32 -13
  190. package/dist/components/MultiSelectDropdown/components/List/List.js +27 -26
  191. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +21 -1
  192. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +123 -73
  193. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -1
  194. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +131 -128
  195. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +26 -30
  196. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +6 -19
  197. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +39 -9
  198. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +33 -28
  199. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +79 -21
  200. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +41 -7
  201. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +36 -47
  202. package/dist/components/PhoneNumberInput/components/Wrapper.js +503 -465
  203. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +3 -1
  204. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1135 -1163
  205. package/dist/components/PieChart/PieChart.js +72 -82
  206. package/dist/components/ProgressBar/ProgressBar.js +38 -47
  207. package/dist/components/ProgressBar/ProgressBar.variants.js +28 -11
  208. package/dist/components/Radio/Radio.js +95 -71
  209. package/dist/components/Radio/Radio.variants.js +85 -33
  210. package/dist/components/RadioCard/RadioCard.js +36 -32
  211. package/dist/components/RadioCardGroup/RadioCardGroup.js +43 -42
  212. package/dist/components/RadioGroup/RadioGroup.js +48 -48
  213. package/dist/components/Range/Range.js +61 -83
  214. package/dist/components/Range/Range.variants.js +49 -19
  215. package/dist/components/Select/Select.js +65 -52
  216. package/dist/components/Select/Select.variants.js +66 -13
  217. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -3
  218. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +22 -1
  219. package/dist/components/Select/components/EmptyList.js +3 -8
  220. package/dist/components/Select/components/List/List.js +168 -89
  221. package/dist/components/Select/components/List/List.variants.js +41 -1
  222. package/dist/components/Select/components/ListItem/ListItem.js +96 -41
  223. package/dist/components/Select/components/ListItem/ListItem.variants.js +19 -1
  224. package/dist/components/Select/components/Wrapper.js +233 -110
  225. package/dist/components/Select/components/index.js +1 -1
  226. package/dist/components/Select/contexts/select.provider.js +41 -34
  227. package/dist/components/Select/hooks/useNavigationList.js +44 -50
  228. package/dist/components/Select/hooks/useSelect.js +94 -104
  229. package/dist/components/Sidebar/Sidebar.js +21 -26
  230. package/dist/components/Sidebar/Sidebar.variants.js +27 -1
  231. package/dist/components/Sidebar/components/Footer/Footer.js +6 -18
  232. package/dist/components/Sidebar/components/Footer/Footer.variants.js +8 -1
  233. package/dist/components/Sidebar/components/Logo/Logo.js +6 -18
  234. package/dist/components/Sidebar/components/Logo/Logo.variants.js +19 -1
  235. package/dist/components/Sidebar/components/Navigation/Navigation.js +17 -26
  236. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +24 -33
  237. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -24
  238. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +39 -12
  239. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +6 -17
  240. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +5 -1
  241. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +5 -20
  242. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +10 -1
  243. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +60 -21
  244. package/dist/components/Slider/Slider.js +56 -70
  245. package/dist/components/Slider/Slider.variants.js +41 -19
  246. package/dist/components/Spinner/Spinner.js +55 -56
  247. package/dist/components/Spinner/Spinner.variants.js +45 -19
  248. package/dist/components/Stepper/Stepper.js +72 -56
  249. package/dist/components/Stepper/Stepper.variants.js +188 -132
  250. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +197 -151
  251. package/dist/components/Stepper/components/StepConnector/StepConnector.js +27 -24
  252. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +20 -39
  253. package/dist/components/Stepper/components/StepItem/StepItem.js +6 -15
  254. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +111 -93
  255. package/dist/components/Stepper/hooks/useStepItemLogic.js +6 -3
  256. package/dist/components/Switch/Switch.js +178 -135
  257. package/dist/components/Switch/Switch.variants.js +40 -1
  258. package/dist/components/Table/Table.js +25 -29
  259. package/dist/components/Table/Table.variants.js +30 -6
  260. package/dist/components/Table/components/Body.js +16 -20
  261. package/dist/components/Table/components/Filter.js +7 -21
  262. package/dist/components/Table/components/Head.js +16 -20
  263. package/dist/components/Table/components/Row.js +26 -28
  264. package/dist/components/Tabs/Tabs.js +26 -34
  265. package/dist/components/Tabs/Tabs.variants.js +39 -10
  266. package/dist/components/Tabs/components/Content.js +14 -23
  267. package/dist/components/Tabs/components/List.js +19 -28
  268. package/dist/components/Tabs/components/Trigger.js +21 -25
  269. package/dist/components/Tag/Tag.js +17 -33
  270. package/dist/components/Tag/Tag.variants.js +36 -23
  271. package/dist/components/TagSelect/TagSelect.js +8 -19
  272. package/dist/components/TagSelect/TagSelect.variants.js +22 -1
  273. package/dist/components/TagSelect/components/Item/Item.js +18 -24
  274. package/dist/components/TagSelect/components/Item/Item.variants.js +26 -13
  275. package/dist/components/TagSelect/components/List/List.js +9 -22
  276. package/dist/components/TagSelect/components/List/List.variants.js +19 -1
  277. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +84 -68
  278. package/dist/components/TagSelect/contexts/TagSelect.provider.js +65 -75
  279. package/dist/components/TagSelect/hooks/useTagSelect.js +26 -30
  280. package/dist/components/TextArea/TextArea.js +34 -35
  281. package/dist/components/TextArea/TextArea.variants.js +16 -1
  282. package/dist/components/TimePicker/TimePicker.js +11 -21
  283. package/dist/components/TimePicker/TimePicker.variants.js +64 -1
  284. package/dist/components/TimePicker/components/HoursList/HoursList.js +116 -77
  285. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +88 -79
  286. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +89 -66
  287. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +228 -144
  288. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +75 -44
  289. package/dist/components/TimePicker/contexts/time-picker.hook.js +3 -1
  290. package/dist/components/TimePicker/contexts/time-picker.provider.js +58 -76
  291. package/dist/components/Toast/Toast.js +338 -374
  292. package/dist/components/Toast/Toast.variants.js +43 -10
  293. package/dist/components/Tooltip/Tooltip.js +35 -36
  294. package/dist/components/Typography/Typography.js +23 -26
  295. package/dist/components/Typography/Typography.variants.js +59 -24
  296. package/dist/components/VirtualizedTable/VirtualizedTable.js +91 -9
  297. package/dist/components/VirtualizedTable/assets/chevron-down.js +23 -13
  298. package/dist/components/VirtualizedTable/assets/chevron-up.js +22 -12
  299. package/dist/components/VirtualizedTable/components/Actions/Actions.js +115 -62
  300. package/dist/components/VirtualizedTable/components/Body/Body.js +83 -29
  301. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -104
  302. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +19 -13
  303. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +49 -43
  304. package/dist/components/VirtualizedTable/components/Filter/Filter.js +174 -116
  305. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +57 -32
  306. package/dist/components/VirtualizedTable/components/Header/Header.js +98 -61
  307. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +63 -65
  308. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +102 -32
  309. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +58 -51
  310. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +24 -20
  311. package/dist/components/VirtualizedTable/contexts/table.provider.js +158 -129
  312. package/dist/components/VirtualizedTable/events/index.js +18 -18
  313. package/dist/components/index.js +1 -1
  314. package/dist/contexts/theme.provider.js +49 -61
  315. package/dist/hooks/useToggle.js +8 -10
  316. package/dist/index-C7zAY3xv.js +139 -0
  317. package/dist/{index-kTGTSLpq.js → index-Cmf-IG4l.js} +1 -1
  318. package/dist/{index-Dy4FVowi.js → index-CrCTywU1.js} +1 -1
  319. package/dist/{index-C6mt--X_.js → index-DWyM654o.js} +5 -5
  320. package/dist/{index-B9v5VxE2.js → index-Jr0cra7i.js} +6 -6
  321. package/dist/{index-CiACf4ao.js → index-mPinF0Ho.js} +3 -3
  322. package/dist/index.js +1 -1
  323. package/dist/package.json +1 -2
  324. package/dist/utils/index.js +3 -1
  325. package/package.json +1 -2
  326. package/dist/AdditionalOptions-DiXvUzhu.js +0 -42
  327. package/dist/Modal-h5H4yxYg.js +0 -128
  328. package/dist/compiler-runtime-DA41awpA.js +0 -36
  329. package/dist/index-0g-eSmV1.js +0 -142
@@ -1,51 +1,48 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { c as R } from "../../../../compiler-runtime-DA41awpA.js";
3
- import { useRef as V } from "react";
4
- import { cn as c } from "../../../../utils/index.js";
5
- import { emptyListVariants as C, listVariants as L, buttonVariants as g, listItemVariants as k } from "./List.variants.js";
6
- import { useNavigationUlList as v } from "../../hooks/useNavigationList.js";
7
- const $ = (x) => {
8
- const e = R.c(19), {
9
- className: p,
10
- inputRef: f,
11
- options: l,
12
- placeholder: u,
13
- placeholderClassName: N,
14
- wrapperRef: d,
15
- onClick: r
16
- } = x, b = V(null);
17
- let a;
18
- if (e[0] !== f || e[1] !== l || e[2] !== d ? (a = {
19
- ulRef: b,
20
- inputRef: f,
21
- wrapperRef: d,
22
- options: l
23
- }, e[0] = f, e[1] = l, e[2] = d, e[3] = a) : a = e[3], v(a), l.length === 0) {
24
- let t;
25
- e[4] !== N ? (t = c(C({
26
- className: N
27
- })), e[4] = N, e[5] = t) : t = e[5];
28
- let o;
29
- return e[6] !== u || e[7] !== t ? (o = /* @__PURE__ */ m("span", { className: t, children: u }), e[6] = u, e[7] = t, e[8] = o) : o = e[8], o;
30
- }
31
- let s;
32
- e[9] !== p ? (s = c(L({
33
- className: p
34
- })), e[9] = p, e[10] = s) : s = e[10];
35
- let i;
36
- if (e[11] !== r || e[12] !== l) {
37
- let t;
38
- e[14] !== r ? (t = (o) => {
39
- const {
40
- value: h
41
- } = o;
42
- return /* @__PURE__ */ m("li", { role: "option", tabIndex: 0, className: c(k()), children: /* @__PURE__ */ m("button", { type: "button", role: "button", className: c(g()), onClick: () => r(h), children: h }) }, h);
43
- }, e[14] = r, e[15] = t) : t = e[15], i = l.map(t), e[11] = r, e[12] = l, e[13] = i;
44
- } else
45
- i = e[13];
46
- let n;
47
- return e[16] !== s || e[17] !== i ? (n = /* @__PURE__ */ m("ul", { ref: b, role: "listbox", className: s, children: i }), e[16] = s, e[17] = i, e[18] = n) : n = e[18], n;
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useRef as f } from "react";
3
+ import { cn as r } from "../../../../utils/index.js";
4
+ import { emptyListVariants as p, buttonVariants as u, listItemVariants as b, listVariants as N } from "./List.variants.js";
5
+ import { useNavigationUlList as d } from "../../hooks/useNavigationList.js";
6
+ const y = ({
7
+ className: n,
8
+ inputRef: a,
9
+ options: s,
10
+ placeholder: l,
11
+ placeholderClassName: o,
12
+ wrapperRef: m,
13
+ onClick: c
14
+ }) => {
15
+ const i = f(null);
16
+ return d({ ulRef: i, inputRef: a, wrapperRef: m, options: s }), s.length === 0 ? /* @__PURE__ */ t(
17
+ "span",
18
+ {
19
+ className: r(
20
+ p({
21
+ className: o
22
+ })
23
+ ),
24
+ children: l
25
+ }
26
+ ) : /* @__PURE__ */ t("ul", { ref: i, role: "listbox", className: r(N({ className: n })), children: s.map(({ value: e }) => /* @__PURE__ */ t(
27
+ "li",
28
+ {
29
+ role: "option",
30
+ tabIndex: 0,
31
+ className: r(b()),
32
+ children: /* @__PURE__ */ t(
33
+ "button",
34
+ {
35
+ type: "button",
36
+ role: "button",
37
+ className: r(u()),
38
+ onClick: () => c(e),
39
+ children: e
40
+ }
41
+ )
42
+ },
43
+ e
44
+ )) });
48
45
  };
49
46
  export {
50
- $ as List
47
+ y as List
51
48
  };
@@ -1,5 +1,33 @@
1
1
  import { c as r } from "../../../../index-D29mdTf5.js";
2
- const o = r(["max-h-[250px]", "overflow-y-auto", "bg-white"]), e = r(["p-1", "text-center", "w-full", "block", "bg-white"]), s = r(["focus-visible:outline-none", "kubefirst:focus:bg-purple-100", "kubefirst:hover:bg-purple-100", "border-transparent", "focus:bg-aurora-50", "hover:bg-aurora-50"]), u = r(["cursor-pointer", "focus-visible:outline-none", "px-3", "py-1.5", "w-full", "text-left", "focus:bg-aurora-50", "hover:bg-aurora-50", "kubefirst:focus:bg-purple-100", "kubefirst:hover:bg-purple-100"]);
2
+ const o = r([
3
+ "max-h-[250px]",
4
+ "overflow-y-auto",
5
+ "bg-white"
6
+ ]), e = r([
7
+ "p-1",
8
+ "text-center",
9
+ "w-full",
10
+ "block",
11
+ "bg-white"
12
+ ]), s = r([
13
+ "focus-visible:outline-none",
14
+ "kubefirst:focus:bg-purple-100",
15
+ "kubefirst:hover:bg-purple-100",
16
+ "border-transparent",
17
+ "focus:bg-aurora-50",
18
+ "hover:bg-aurora-50"
19
+ ]), u = r([
20
+ "cursor-pointer",
21
+ "focus-visible:outline-none",
22
+ "px-3",
23
+ "py-1.5",
24
+ "w-full",
25
+ "text-left",
26
+ "focus:bg-aurora-50",
27
+ "hover:bg-aurora-50",
28
+ "kubefirst:focus:bg-purple-100",
29
+ "kubefirst:hover:bg-purple-100"
30
+ ]);
3
31
  export {
4
32
  u as buttonVariants,
5
33
  e as emptyListVariants,
@@ -1,92 +1,76 @@
1
- import { c as B } from "../../../compiler-runtime-DA41awpA.js";
2
- import { useState as S, useEffect as V } from "react";
3
- import { filterByValue as K } from "../../../utils/index.js";
4
- const z = (a) => {
5
- const e = B.c(27), {
6
- options: r,
7
- inputRef: n,
8
- wrapperRef: o,
9
- onChange: l
10
- } = a;
11
- let u;
12
- e[0] !== r ? (u = () => r ?? [], e[0] = r, e[1] = u) : u = e[1];
13
- const [C, x] = S(u), [O, i] = S(!1), [y, F] = S("");
14
- let f, d;
15
- e[2] !== n ? (f = () => {
1
+ import { useState as i, useEffect as d, useCallback as g } from "react";
2
+ import { filterByValue as k } from "../../../utils/index.js";
3
+ const A = ({
4
+ options: l,
5
+ inputRef: n,
6
+ wrapperRef: o,
7
+ onChange: a
8
+ }) => {
9
+ const [f, m] = i(() => l ?? []), [h, s] = i(!1), [E, b] = i("");
10
+ d(() => {
16
11
  const t = new AbortController();
17
- return n.current?.addEventListener("focus", () => i(!0), {
12
+ return n.current?.addEventListener("focus", () => s(!0), {
18
13
  signal: t.signal
19
14
  }), () => {
20
15
  t.abort();
21
16
  };
22
- }, d = [n], e[2] = n, e[3] = f, e[4] = d) : (f = e[3], d = e[4]), V(f, d);
23
- let p, g;
24
- e[5] !== n || e[6] !== o ? (p = () => {
25
- const t = new AbortController(), c = (R) => {
26
- R.key === "Escape" && (i(!1), n.current?.blur());
27
- }, k = (R) => {
28
- o.current?.contains(R.target) || i(!1);
17
+ }, [n]), d(() => {
18
+ const t = new AbortController(), r = (e) => {
19
+ e.key === "Escape" && (s(!1), n.current?.blur());
20
+ }, u = (e) => {
21
+ o.current?.contains(e.target) || s(!1);
29
22
  };
30
- return document.addEventListener("keydown", c, {
23
+ return document.addEventListener("keydown", r, {
31
24
  signal: t.signal
32
- }), document.addEventListener("mousedown", k, {
25
+ }), document.addEventListener("mousedown", u, {
33
26
  signal: t.signal
34
27
  }), () => {
35
28
  t.abort();
36
29
  };
37
- }, g = [n, o], e[5] = n, e[6] = o, e[7] = p, e[8] = g) : (p = e[7], g = e[8]), V(p, g);
38
- let m, h;
39
- e[9] !== o ? (m = () => {
30
+ }, [n, o]), d(() => {
40
31
  const t = new AbortController();
41
- return o.current?.addEventListener("focusout", (c) => {
42
- o.current?.contains(c.relatedTarget) || i(!1);
43
- }, {
44
- signal: t.signal
45
- }), () => {
32
+ return o.current?.addEventListener(
33
+ "focusout",
34
+ (r) => {
35
+ o.current?.contains(r.relatedTarget) || s(!1);
36
+ },
37
+ { signal: t.signal }
38
+ ), () => {
46
39
  t.abort();
47
40
  };
48
- }, h = [o], e[9] = o, e[10] = m, e[11] = h) : (m = e[10], h = e[11]), V(m, h);
49
- let w;
50
- e[12] !== r ? (w = (t) => {
51
- if (t.length === 0)
52
- x(r);
53
- else {
54
- const c = r.map(P), k = K(c, t).map(T);
55
- x(k);
56
- }
57
- }, e[12] = r, e[13] = w) : w = e[13];
58
- const s = w;
59
- let b;
60
- e[14] !== s || e[15] !== l ? (b = (t) => {
61
- F(t.target.value), s(t.target.value), l?.(t.target.value);
62
- }, e[14] = s, e[15] = l, e[16] = b) : b = e[16];
63
- const A = b;
64
- let E;
65
- e[17] !== s || e[18] !== l ? (E = (t) => {
66
- F(t), s(t), l?.(t), i(!1);
67
- }, e[17] = s, e[18] = l, e[19] = E) : E = e[19];
68
- const L = E;
69
- let v;
70
- return e[20] !== A || e[21] !== L || e[22] !== n || e[23] !== C || e[24] !== O || e[25] !== y ? (v = {
71
- inputRef: n,
72
- newOptions: C,
73
- showOptions: O,
74
- value: y,
75
- handleChange: A,
76
- handleSelectValue: L
77
- }, e[20] = A, e[21] = L, e[22] = n, e[23] = C, e[24] = O, e[25] = y, e[26] = v) : v = e[26], v;
78
- };
79
- function P(a) {
80
- const {
81
- value: e
82
- } = a;
83
- return e;
84
- }
85
- function T(a) {
41
+ }, [o]);
42
+ const c = g(
43
+ (t) => {
44
+ if (t.length === 0)
45
+ m(l);
46
+ else {
47
+ const r = l.map(({ value: e }) => e), u = k(r, t).map(
48
+ (e) => ({ value: e })
49
+ );
50
+ m(u);
51
+ }
52
+ },
53
+ [l]
54
+ ), v = g(
55
+ (t) => {
56
+ b(t.target.value), c(t.target.value), a?.(t.target.value);
57
+ },
58
+ [c, a]
59
+ ), O = g(
60
+ (t) => {
61
+ b(t), c(t), a?.(t), s(!1);
62
+ },
63
+ [c, a]
64
+ );
86
65
  return {
87
- value: a
66
+ inputRef: n,
67
+ newOptions: f,
68
+ showOptions: h,
69
+ value: E,
70
+ handleChange: v,
71
+ handleSelectValue: O
88
72
  };
89
- }
73
+ };
90
74
  export {
91
- z as useAutocomplete
75
+ A as useAutocomplete
92
76
  };
@@ -1,76 +1,70 @@
1
- import { c as y } from "../../../compiler-runtime-DA41awpA.js";
2
- import { useRef as A, useEffect as d } from "react";
3
- const q = (w) => {
4
- const e = y.c(18), {
5
- ulRef: r,
6
- inputRef: t,
7
- wrapperRef: u,
8
- options: c
9
- } = w, n = A(0);
10
- let i;
11
- e[0] !== t || e[1] !== r ? (i = () => {
12
- const o = r.current?.querySelectorAll("li") ?? [], s = new AbortController(), l = () => {
13
- n.current < o.length - 1 ? (n.current = n.current + 1, o[n.current].focus()) : (n.current = 0, o[0].focus());
14
- }, k = () => {
15
- n.current > 0 ? (n.current = n.current - 1, o[n.current].focus()) : (n.current = 0, t.current?.focus());
1
+ import { useRef as b, useEffect as l } from "react";
2
+ const w = ({
3
+ ulRef: t,
4
+ inputRef: o,
5
+ wrapperRef: u,
6
+ options: a
7
+ }) => {
8
+ const r = b(0);
9
+ l(() => {
10
+ const e = t.current?.querySelectorAll("li") ?? [], c = new AbortController(), n = () => {
11
+ r.current < e.length - 1 ? (r.current = r.current + 1, e[r.current].focus()) : (r.current = 0, e[0].focus());
12
+ }, i = () => {
13
+ r.current > 0 ? (r.current = r.current - 1, e[r.current].focus()) : (r.current = 0, o.current?.focus());
16
14
  };
17
- return r.current?.addEventListener("keydown", (g) => {
18
- g.preventDefault();
19
- e: switch (g.key) {
20
- case "ArrowDown": {
21
- l();
22
- break e;
15
+ return t.current?.addEventListener(
16
+ "keydown",
17
+ (s) => {
18
+ switch (s.preventDefault(), s.key) {
19
+ case "ArrowDown": {
20
+ n();
21
+ break;
22
+ }
23
+ case "Tab": {
24
+ s.shiftKey ? i() : n();
25
+ break;
26
+ }
27
+ case "ArrowUp": {
28
+ r.current === 0 ? o.current?.focus() : i();
29
+ break;
30
+ }
31
+ case "Enter": {
32
+ e[r.current].querySelector("button")?.click();
33
+ break;
34
+ }
23
35
  }
24
- case "Tab": {
25
- g.shiftKey ? k() : l();
26
- break e;
27
- }
28
- case "ArrowUp": {
29
- n.current === 0 ? t.current?.focus() : k();
30
- break e;
31
- }
32
- case "Enter":
33
- o[n.current].querySelector("button")?.click();
34
- }
35
- }, {
36
- signal: s.signal
37
- }), () => {
38
- s.abort();
36
+ },
37
+ { signal: c.signal }
38
+ ), () => {
39
+ c.abort();
39
40
  };
40
- }, e[0] = t, e[1] = r, e[2] = i) : i = e[2];
41
- let f;
42
- e[3] !== t || e[4] !== c || e[5] !== r ? (f = [t, r, c, n], e[3] = t, e[4] = c, e[5] = r, e[6] = f) : f = e[6], d(i, f);
43
- let a;
44
- e[7] !== t || e[8] !== r ? (a = () => {
45
- const o = new AbortController();
46
- return t.current?.addEventListener("keydown", (s) => {
47
- if (s.key === "ArrowDown") {
48
- const l = r.current?.querySelector("li");
49
- l && l.focus();
50
- }
51
- }, {
52
- signal: o.signal
53
- }), () => {
54
- o.abort();
41
+ }, [o, t, a, r]), l(() => {
42
+ const e = new AbortController();
43
+ return o.current?.addEventListener(
44
+ "keydown",
45
+ (c) => {
46
+ if (c.key === "ArrowDown") {
47
+ const n = t.current?.querySelector("li");
48
+ n && n.focus();
49
+ }
50
+ },
51
+ { signal: e.signal }
52
+ ), () => {
53
+ e.abort();
55
54
  };
56
- }, e[7] = t, e[8] = r, e[9] = a) : a = e[9];
57
- let b;
58
- e[10] !== t || e[11] !== c || e[12] !== r ? (b = [t, r, c], e[10] = t, e[11] = c, e[12] = r, e[13] = b) : b = e[13], d(a, b);
59
- let m, p;
60
- e[14] !== r || e[15] !== u ? (m = () => {
61
- const o = new AbortController();
62
- return u.current?.addEventListener("mouseenter", () => {
63
- (r.current?.querySelectorAll("li") ?? []).forEach(E);
64
- }, {
65
- signal: o.signal
66
- }), () => {
67
- o.abort();
55
+ }, [o, t, a]), l(() => {
56
+ const e = new AbortController();
57
+ return u.current?.addEventListener(
58
+ "mouseenter",
59
+ () => {
60
+ (t.current?.querySelectorAll("li") ?? []).forEach((n) => n.blur());
61
+ },
62
+ { signal: e.signal }
63
+ ), () => {
64
+ e.abort();
68
65
  };
69
- }, p = [r, u], e[14] = r, e[15] = u, e[16] = m, e[17] = p) : (m = e[16], p = e[17]), d(m, p);
66
+ }, [t, u]);
70
67
  };
71
- function E(w) {
72
- return w.blur();
73
- }
74
68
  export {
75
- q as useNavigationUlList
69
+ w as useNavigationUlList
76
70
  };
@@ -1,69 +1,80 @@
1
- import { jsxs as k, jsx as c } from "react/jsx-runtime";
2
- import { c as $ } from "../../compiler-runtime-DA41awpA.js";
3
- import { useRef as A, useState as B, useEffect as X } from "react";
4
- import { cn as z } from "../../utils/index.js";
5
- import { badgeVariants as q, buttonDismissVariants as F } from "./Badge.variants.js";
6
- import { S as L } from "../../index-BvoZGpli.js";
7
- import { X as G } from "../../x-B9bYxG31.js";
8
- import { LoaderIcon as H } from "../../assets/icons/components/Loader.js";
9
- const Y = (P) => {
10
- const e = $.c(32), {
11
- className: N,
12
- dismissible: E,
13
- isSelectable: R,
14
- label: m,
15
- leftIcon: d,
16
- loading: j,
17
- rightIcon: f,
18
- size: s,
19
- variant: i,
20
- onClick: t,
21
- onDismiss: y
22
- } = P, S = E === void 0 ? !1 : E, x = R === void 0 ? !0 : R, l = j === void 0 ? !1 : j, b = A(null), [D, _] = B("visible");
23
- let u;
24
- e[0] !== y ? (u = (g) => {
25
- g.stopPropagation(), y?.(), _("hidden");
26
- }, e[0] = y, e[1] = u) : u = e[1];
27
- const I = u;
28
- let p, h;
29
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
30
- const g = new AbortController();
31
- return b.current?.addEventListener("animationend", () => {
32
- b.current?.style.setProperty("display", "none"), b.current?.remove();
33
- }, {
34
- signal: g.signal
35
- }), () => g.abort();
36
- }, h = [], e[2] = p, e[3] = h) : (p = e[2], h = e[3]), X(p, h);
37
- let o;
38
- e[4] !== N || e[5] !== x || e[6] !== t || e[7] !== s || e[8] !== i ? (o = z(q({
39
- variant: i,
40
- size: s,
41
- className: N
42
- }), {
43
- "select-none": !x,
44
- "cursor-pointer": t
45
- }), e[4] = N, e[5] = x, e[6] = t, e[7] = s, e[8] = i, e[9] = o) : o = e[9];
46
- const w = t ? "button" : void 0, V = t ? 0 : void 0, C = t ? `${m} badge` : void 0;
47
- let n;
48
- e[10] !== l ? (n = l && /* @__PURE__ */ c(H, { size: 12, className: "animate-spin animate-duration-time-2" }), e[10] = l, e[11] = n) : n = e[11];
49
- let a;
50
- e[12] !== d ? (a = d ? /* @__PURE__ */ c(L, { className: "h-3 w-3", children: d }) : null, e[12] = d, e[13] = a) : a = e[13];
51
- let r;
52
- e[14] !== S || e[15] !== I || e[16] !== f || e[17] !== s || e[18] !== i ? (r = S ? /* @__PURE__ */ k("button", { type: "button", className: z(F({
53
- size: s,
54
- variant: i
55
- })), onClick: I, "aria-label": "Dismiss", children: [
56
- /* @__PURE__ */ c(G, { className: "h-full w-full" }),
57
- /* @__PURE__ */ c("span", { className: "sr-only", children: "Dismiss" })
58
- ] }) : f ? /* @__PURE__ */ c(L, { className: "h-3 w-3", children: f }) : null, e[14] = S, e[15] = I, e[16] = f, e[17] = s, e[18] = i, e[19] = r) : r = e[19];
59
- let v;
60
- return e[20] !== D || e[21] !== m || e[22] !== l || e[23] !== t || e[24] !== C || e[25] !== n || e[26] !== a || e[27] !== r || e[28] !== o || e[29] !== w || e[30] !== V ? (v = /* @__PURE__ */ k("span", { ref: b, className: o, role: w, onClick: t, tabIndex: V, "aria-label": C, "aria-busy": l, "aria-live": "polite", "data-state": D, children: [
61
- n,
62
- a,
63
- m,
64
- r
65
- ] }), e[20] = D, e[21] = m, e[22] = l, e[23] = t, e[24] = C, e[25] = n, e[26] = a, e[27] = r, e[28] = o, e[29] = w, e[30] = V, e[31] = v) : v = e[31], v;
1
+ import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
+ import { useRef as g, useState as w, useCallback as x, useEffect as V } from "react";
3
+ import { cn as u } from "../../utils/index.js";
4
+ import { buttonDismissVariants as D, badgeVariants as S } from "./Badge.variants.js";
5
+ import { S as p } from "../../index-BvoZGpli.js";
6
+ import { LoaderIcon as j } from "../../assets/icons/components/Loader.js";
7
+ import { X as E } from "../../x-B9bYxG31.js";
8
+ const $ = ({
9
+ className: b,
10
+ dismissible: f = !1,
11
+ isSelectable: h = !0,
12
+ label: r,
13
+ leftIcon: i,
14
+ loading: n = !1,
15
+ rightIcon: o,
16
+ size: l,
17
+ variant: m,
18
+ onClick: e,
19
+ onDismiss: c
20
+ }) => {
21
+ const a = g(null), [N, v] = w("visible"), y = x(
22
+ (t) => {
23
+ t.stopPropagation(), c?.(), v("hidden");
24
+ },
25
+ [c]
26
+ );
27
+ return V(() => {
28
+ const t = new AbortController();
29
+ return a.current?.addEventListener(
30
+ "animationend",
31
+ () => {
32
+ a.current?.style.setProperty("display", "none"), a.current?.remove();
33
+ },
34
+ { signal: t.signal }
35
+ ), () => t.abort();
36
+ }, []), /* @__PURE__ */ d(
37
+ "span",
38
+ {
39
+ ref: a,
40
+ className: u(S({ variant: m, size: l, className: b }), {
41
+ "select-none": !h,
42
+ "cursor-pointer": e
43
+ }),
44
+ role: e ? "button" : void 0,
45
+ onClick: e,
46
+ tabIndex: e ? 0 : void 0,
47
+ "aria-label": e ? `${r} badge` : void 0,
48
+ "aria-busy": n,
49
+ "aria-live": "polite",
50
+ "data-state": N,
51
+ children: [
52
+ n && /* @__PURE__ */ s(
53
+ j,
54
+ {
55
+ size: 12,
56
+ className: "animate-spin animate-duration-time-2"
57
+ }
58
+ ),
59
+ i ? /* @__PURE__ */ s(p, { className: "h-3 w-3", children: i }) : null,
60
+ r,
61
+ f ? /* @__PURE__ */ d(
62
+ "button",
63
+ {
64
+ type: "button",
65
+ className: u(D({ size: l, variant: m })),
66
+ onClick: y,
67
+ "aria-label": "Dismiss",
68
+ children: [
69
+ /* @__PURE__ */ s(E, { className: "h-full w-full" }),
70
+ /* @__PURE__ */ s("span", { className: "sr-only", children: "Dismiss" })
71
+ ]
72
+ }
73
+ ) : o ? /* @__PURE__ */ s(p, { className: "h-3 w-3", children: o }) : null
74
+ ]
75
+ }
76
+ );
66
77
  };
67
78
  export {
68
- Y as Badge
79
+ $ as Badge
69
80
  };