@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,135 +1,138 @@
1
- import { jsx as A } from "react/jsx-runtime";
2
- import { c as F } from "../../../compiler-runtime-DA41awpA.js";
3
- import { useRef as G, useState as k, useEffect as q } from "react";
4
- import { MultiSelectDropdownContext as H } from "./MultiSelectDropdown.context.js";
5
- import { useToggle as K } from "../../../hooks/useToggle.js";
6
- const le = (r) => {
7
- const e = F.c(46), {
8
- children: O,
9
- defaultOptions: a,
10
- multiselect: $,
11
- value: S,
12
- onChange: h,
13
- onBlur: w,
14
- name: P,
15
- isLoading: T,
16
- noOptionsText: V
17
- } = r;
18
- let g;
19
- e[0] !== a ? (g = a === void 0 ? [] : a, e[0] = a, e[1] = g) : g = e[1];
20
- const n = g, o = $ === void 0 ? !0 : $, v = G(null), [p, B] = K(!1), [J, I] = k(n);
21
- let _;
22
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = [], e[2] = _) : _ = e[2];
23
- const [i, L] = k(_), l = S !== void 0;
24
- let x, R;
25
- e[3] !== n || e[4] !== l || e[5] !== o || e[6] !== i ? (x = () => {
26
- if (!l) {
27
- const s = new Set(i.map(Q));
28
- I(o ? n.filter((t) => !s.has(t.id)) : n.map((t) => ({
29
- ...t,
30
- isSelected: s.has(t.id)
31
- })));
1
+ import { jsx as V } from "react/jsx-runtime";
2
+ import { useRef as k, useState as R, useEffect as g, useCallback as S } from "react";
3
+ import { MultiSelectDropdownContext as C } from "./MultiSelectDropdown.context.js";
4
+ import { useToggle as E } from "../../../hooks/useToggle.js";
5
+ const q = ({
6
+ children: x,
7
+ defaultOptions: r = [],
8
+ multiselect: i = !0,
9
+ value: f,
10
+ onChange: m,
11
+ onBlur: u,
12
+ name: h,
13
+ isLoading: b,
14
+ noOptionsText: j
15
+ }) => {
16
+ const d = k(null), [w, I] = E(!1), [y, p] = R(r), [c, v] = R([]), o = f !== void 0;
17
+ g(() => {
18
+ if (!o) {
19
+ const n = new Set(
20
+ c.map((e) => e.id)
21
+ );
22
+ p(
23
+ i ? r.filter((e) => !n.has(e.id)) : r.map((e) => ({
24
+ ...e,
25
+ isSelected: n.has(e.id)
26
+ }))
27
+ );
32
28
  }
33
- }, R = [n, o, l, i], e[3] = n, e[4] = l, e[5] = o, e[6] = i, e[7] = x, e[8] = R) : (x = e[7], R = e[8]), q(x, R);
34
- let b, y;
35
- e[9] !== n || e[10] !== l || e[11] !== o || e[12] !== S ? (b = () => {
36
- if (l) {
37
- const s = S || [];
38
- L(s);
39
- const t = new Set(s.map(W));
40
- I(o ? n.filter((d) => !t.has(d.id)) : n.map((d) => ({
41
- ...d,
42
- isSelected: t.has(d.id)
43
- })));
29
+ }, [r, i, o, c]), g(() => {
30
+ if (o) {
31
+ const n = f || [];
32
+ v(n);
33
+ const e = new Set(n.map((s) => s.id));
34
+ p(
35
+ i ? r.filter((s) => !e.has(s.id)) : r.map((s) => ({
36
+ ...s,
37
+ isSelected: e.has(s.id)
38
+ }))
39
+ );
44
40
  }
45
- }, y = [S, l, n, o], e[9] = n, e[10] = l, e[11] = o, e[12] = S, e[13] = b, e[14] = y) : (b = e[13], y = e[14]), q(b, y);
46
- let C;
47
- e[15] !== P || e[16] !== h ? (C = (s) => {
48
- const t = s.map(X), d = JSON.stringify(t);
49
- v.current && (v.current.value = d), h && h({
50
- target: {
51
- value: s,
52
- name: P ?? ""
41
+ }, [f, o, r, i]);
42
+ const l = S(
43
+ (n) => {
44
+ const e = n.map(({ id: t, value: O, label: P }) => ({
45
+ id: t,
46
+ value: O ?? P
47
+ })), s = JSON.stringify(e);
48
+ d.current && (d.current.value = s), m && m({
49
+ target: {
50
+ value: n,
51
+ name: h ?? ""
52
+ }
53
+ });
54
+ },
55
+ [m, h]
56
+ ), a = S(
57
+ (n) => {
58
+ const e = w;
59
+ I(n), e && n === !1 && u && d.current && u({
60
+ target: d.current,
61
+ type: "blur"
62
+ });
63
+ },
64
+ [w, I, u, d]
65
+ ), D = S(
66
+ (n) => {
67
+ if (o) {
68
+ const t = [
69
+ ...i ? c : [],
70
+ n
71
+ ];
72
+ l(t), a(!1);
73
+ return;
53
74
  }
54
- });
55
- }, e[15] = P, e[16] = h, e[17] = C) : C = e[17];
56
- const u = C;
57
- let j;
58
- e[18] !== p || e[19] !== w || e[20] !== B ? (j = (s) => {
59
- const t = p;
60
- B(s), t && s === !1 && w && v.current && w({
61
- target: v.current,
62
- type: "blur"
63
- });
64
- }, e[18] = p, e[19] = w, e[20] = B, e[21] = j) : j = e[21];
65
- const f = j;
66
- let D;
67
- e[22] !== n || e[23] !== f || e[24] !== u || e[25] !== l || e[26] !== o || e[27] !== i ? (D = (s) => {
68
- if (l) {
69
- const c = [...o ? i : [], s];
70
- u(c), f(!1);
71
- return;
72
- }
73
- const t = [...o ? i : [], s];
74
- L(t);
75
- const d = t.map(Y);
76
- I(() => o ? n.filter((c) => !d.includes(c.id)) : n.map((c) => ({
77
- ...c,
78
- isSelected: d.includes(c.id)
79
- }))), u(t), f(!1);
80
- }, e[22] = n, e[23] = f, e[24] = u, e[25] = l, e[26] = o, e[27] = i, e[28] = D) : D = e[28];
81
- const N = D;
82
- let E;
83
- e[29] !== n || e[30] !== u || e[31] !== l || e[32] !== i ? (E = (s) => {
84
- if (l) {
85
- const c = i.filter((z) => z.id !== s.id);
86
- u(c);
87
- return;
75
+ const e = [
76
+ ...i ? c : [],
77
+ n
78
+ ];
79
+ v(e);
80
+ const s = e.map((t) => t.id);
81
+ p(() => i ? r.filter(
82
+ (t) => !s.includes(t.id)
83
+ ) : r.map((t) => ({
84
+ ...t,
85
+ isSelected: s.includes(t.id)
86
+ }))), l(e), a(!1);
87
+ },
88
+ [
89
+ r,
90
+ l,
91
+ i,
92
+ c,
93
+ a,
94
+ o
95
+ ]
96
+ ), M = S(
97
+ (n) => {
98
+ if (o) {
99
+ const t = c.filter(
100
+ (O) => O.id !== n.id
101
+ );
102
+ l(t);
103
+ return;
104
+ }
105
+ const e = c.filter(
106
+ (t) => t.id !== n.id
107
+ );
108
+ v(e);
109
+ const s = e.map((t) => t.id);
110
+ p(
111
+ () => r.filter(
112
+ (t) => !s.includes(t.id)
113
+ )
114
+ ), l(e);
115
+ },
116
+ [r, l, c, o]
117
+ );
118
+ return /* @__PURE__ */ V(
119
+ C.Provider,
120
+ {
121
+ value: {
122
+ options: y,
123
+ selectedOptions: c,
124
+ isOpen: w,
125
+ inputRef: d,
126
+ onSelectOption: D,
127
+ onRemoveOption: M,
128
+ onOpen: a,
129
+ isLoading: b,
130
+ noOptionsText: j
131
+ },
132
+ children: x
88
133
  }
89
- const t = i.filter((c) => c.id !== s.id);
90
- L(t);
91
- const d = t.map(Z);
92
- I(() => n.filter((c) => !d.includes(c.id))), u(t);
93
- }, e[29] = n, e[30] = u, e[31] = l, e[32] = i, e[33] = E) : E = e[33];
94
- const U = E;
95
- let m;
96
- e[34] !== f || e[35] !== U || e[36] !== N || e[37] !== T || e[38] !== p || e[39] !== V || e[40] !== J || e[41] !== i ? (m = {
97
- options: J,
98
- selectedOptions: i,
99
- isOpen: p,
100
- inputRef: v,
101
- onSelectOption: N,
102
- onRemoveOption: U,
103
- onOpen: f,
104
- isLoading: T,
105
- noOptionsText: V
106
- }, e[34] = f, e[35] = U, e[36] = N, e[37] = T, e[38] = p, e[39] = V, e[40] = J, e[41] = i, e[42] = m) : m = e[42];
107
- let M;
108
- return e[43] !== O || e[44] !== m ? (M = /* @__PURE__ */ A(H.Provider, { value: m, children: O }), e[43] = O, e[44] = m, e[45] = M) : M = e[45], M;
134
+ );
109
135
  };
110
- function Q(r) {
111
- return r.id;
112
- }
113
- function W(r) {
114
- return r.id;
115
- }
116
- function X(r) {
117
- const {
118
- id: e,
119
- value: O,
120
- label: a
121
- } = r;
122
- return {
123
- id: e,
124
- value: O ?? a
125
- };
126
- }
127
- function Y(r) {
128
- return r.id;
129
- }
130
- function Z(r) {
131
- return r.id;
132
- }
133
136
  export {
134
- le as MultiSelectDropdownProvider
137
+ q as MultiSelectDropdownProvider
135
138
  };
@@ -1,36 +1,32 @@
1
- import { c as p } from "../../../compiler-runtime-DA41awpA.js";
2
- import { useRef as f, useEffect as m } from "react";
3
- import { useMultiSelectDropdown as g } from "../contexts/MultiSelectDropdown.hook.js";
4
- const E = () => {
5
- const e = p.c(7), a = f(null), {
6
- onOpen: t
7
- } = g();
8
- let o, r;
9
- e[0] !== t ? (o = () => {
10
- const n = new AbortController(), u = (i) => {
11
- i.key === "Escape" && t(!1);
12
- }, d = (i) => {
13
- a.current?.contains(i.target) || t(!1);
1
+ import { useRef as l, useEffect as c, useCallback as u } from "react";
2
+ import { useMultiSelectDropdown as i } from "../contexts/MultiSelectDropdown.hook.js";
3
+ const f = () => {
4
+ const n = l(null), { onOpen: e } = i();
5
+ c(() => {
6
+ const t = new AbortController(), a = (o) => {
7
+ o.key === "Escape" && e(!1);
8
+ }, r = (o) => {
9
+ n.current?.contains(o.target) || e(!1);
14
10
  };
15
- return document.addEventListener("keydown", u, {
16
- signal: n.signal
17
- }), document.addEventListener("mousedown", d, {
18
- signal: n.signal
11
+ return document.addEventListener("keydown", a, {
12
+ signal: t.signal
13
+ }), document.addEventListener("mousedown", r, {
14
+ signal: t.signal
19
15
  }), () => {
20
- n.abort();
16
+ t.abort();
21
17
  };
22
- }, r = [t, a], e[0] = t, e[1] = o, e[2] = r) : (o = e[1], r = e[2]), m(o, r);
23
- let s;
24
- e[3] !== t ? (s = (n) => {
25
- n.target?.closest("[data-value]") || t(!0);
26
- }, e[3] = t, e[4] = s) : s = e[4];
27
- const c = s;
28
- let l;
29
- return e[5] !== c ? (l = {
30
- wrapperRef: a,
31
- handleOpen: c
32
- }, e[5] = c, e[6] = l) : l = e[6], l;
18
+ }, [e, n]);
19
+ const s = u(
20
+ (t) => {
21
+ t.target?.closest("[data-value]") || e(!0);
22
+ },
23
+ [e]
24
+ );
25
+ return {
26
+ wrapperRef: n,
27
+ handleOpen: s
28
+ };
33
29
  };
34
30
  export {
35
- E as useMultiSelectDropdown
31
+ f as useMultiSelectDropdown
36
32
  };
@@ -1,21 +1,8 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { c as d } from "../../compiler-runtime-DA41awpA.js";
3
- import { forwardRef as f } from "react";
4
- import { Wrapper as s } from "./components/Wrapper.js";
5
- import { PhoneNumberProvider as u } from "./contexts/phone-number.provider.js";
6
- const P = f((i, l) => {
7
- const e = d.c(9);
8
- let o, t;
9
- e[0] !== i ? ({
10
- defaultCountryCode: t,
11
- ...o
12
- } = i, e[0] = i, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
13
- const n = t === void 0 ? "US" : t;
14
- let r;
15
- e[3] !== o || e[4] !== l ? (r = /* @__PURE__ */ p(s, { ref: l, ...o }), e[3] = o, e[4] = l, e[5] = r) : r = e[5];
16
- let m;
17
- return e[6] !== n || e[7] !== r ? (m = /* @__PURE__ */ p(u, { defaultCountryCode: n, children: r }), e[6] = n, e[7] = r, e[8] = m) : m = e[8], m;
18
- });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { PhoneNumberProvider as t } from "./contexts/phone-number.provider.js";
4
+ import { Wrapper as f } from "./components/Wrapper.js";
5
+ const u = p(({ defaultCountryCode: o = "US", ...m }, e) => /* @__PURE__ */ r(t, { defaultCountryCode: o, children: /* @__PURE__ */ r(f, { ref: e, ...m }) }));
19
6
  export {
20
- P as PhoneNumberInput
7
+ u as PhoneNumberInput
21
8
  };
@@ -1,15 +1,45 @@
1
1
  import { c as r } from "../../index-D29mdTf5.js";
2
- const t = r(["text-sm", "relative", "border", "border-gray-300", "rounded", "data-[state=open]:border-aurora-500", "focus-within:border-aurora-500", "transition-colors", "duration-150", "dark:border-metal-700", "dark:bg-metal-800", "dark:data-[state=open]:border-metal-700", "dark:focus-within:border-metal-700"], {
3
- variants: {
4
- variant: {
5
- default: [],
6
- error: ["border-red-600", "dark:border-red-500", "data-[state=open]:border-red-500", "focus-within:border-red-500", "pr-8", "focus-visible:ring-transparent"]
2
+ const t = r(
3
+ [
4
+ "text-sm",
5
+ "relative",
6
+ "border",
7
+ "border-gray-300",
8
+ "rounded",
9
+ "data-[state=open]:border-aurora-500",
10
+ "focus-within:border-aurora-500",
11
+ "transition-colors",
12
+ "duration-150",
13
+ "dark:border-metal-700",
14
+ "dark:bg-metal-800",
15
+ "dark:data-[state=open]:border-metal-700",
16
+ "dark:focus-within:border-metal-700"
17
+ ],
18
+ {
19
+ variants: {
20
+ variant: {
21
+ default: [],
22
+ error: [
23
+ "border-red-600",
24
+ "dark:border-red-500",
25
+ "data-[state=open]:border-red-500",
26
+ "focus-within:border-red-500",
27
+ "pr-8",
28
+ "focus-visible:ring-transparent"
29
+ ]
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ variant: "default"
7
34
  }
8
- },
9
- defaultVariants: {
10
- variant: "default"
11
35
  }
12
- }), e = r(["cursor-pointer", "text-sm", "leading-5", "tracking-[0.1px]", "dark:text-slate-50"]);
36
+ ), e = r([
37
+ "cursor-pointer",
38
+ "text-sm",
39
+ "leading-5",
40
+ "tracking-[0.1px]",
41
+ "dark:text-slate-50"
42
+ ]);
13
43
  export {
14
44
  e as labelVariants,
15
45
  t as phoneNumberInputVariants
@@ -1,31 +1,36 @@
1
- import { jsx as m, jsxs as f } from "react/jsx-runtime";
2
- import { c as d } from "../../../../compiler-runtime-DA41awpA.js";
3
- import { cn as u } from "../../../../utils/index.js";
4
- import { C as x } from "../../../../chevron-up-IlDPxR7j.js";
5
- import { usePhoneNumberContext as h } from "../../contexts/phone-number.hook.js";
6
- const S = () => {
7
- const t = d.c(12), {
8
- selectedCountry: p,
9
- isOpenSelector: r,
10
- handleOpenSelector: a
11
- } = h(), {
12
- flag: c
13
- } = p;
14
- let e;
15
- t[0] !== a || t[1] !== r ? (e = () => a(!r), t[0] = a, t[1] = r, t[2] = e) : e = t[2];
16
- let o;
17
- t[3] !== c ? (o = /* @__PURE__ */ m(c, {}), t[3] = c, t[4] = o) : o = t[4];
18
- let l;
19
- t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = u("transition-all", "duration-100", "data-[state=open]:rotate-0", "data-[state=closed]:rotate-180", "w-5", "h-5", "text-slate-400"), t[5] = l) : l = t[5];
20
- const i = r ? "open" : "closed";
21
- let s;
22
- t[6] !== i ? (s = /* @__PURE__ */ m(x, { className: l, "data-state": i }), t[6] = i, t[7] = s) : s = t[7];
23
- let n;
24
- return t[8] !== e || t[9] !== o || t[10] !== s ? (n = /* @__PURE__ */ f("button", { type: "button", className: "flex items-center gap-2 cursor-pointer", onClick: e, children: [
25
- o,
26
- s
27
- ] }), t[8] = e, t[9] = o, t[10] = s, t[11] = n) : n = t[11], n;
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { cn as s } from "../../../../utils/index.js";
3
+ import { C as l } from "../../../../chevron-up-IlDPxR7j.js";
4
+ import { usePhoneNumberContext as c } from "../../contexts/phone-number.hook.js";
5
+ const u = () => {
6
+ const { selectedCountry: o, isOpenSelector: t, handleOpenSelector: a } = c(), { flag: n } = o;
7
+ return /* @__PURE__ */ r(
8
+ "button",
9
+ {
10
+ type: "button",
11
+ className: "flex items-center gap-2 cursor-pointer",
12
+ onClick: () => a(!t),
13
+ children: [
14
+ /* @__PURE__ */ e(n, {}),
15
+ /* @__PURE__ */ e(
16
+ l,
17
+ {
18
+ className: s(
19
+ "transition-all",
20
+ "duration-100",
21
+ "data-[state=open]:rotate-0",
22
+ "data-[state=closed]:rotate-180",
23
+ "w-5",
24
+ "h-5",
25
+ "text-slate-400"
26
+ ),
27
+ "data-state": t ? "open" : "closed"
28
+ }
29
+ )
30
+ ]
31
+ }
32
+ );
28
33
  };
29
34
  export {
30
- S as FlagContent
35
+ u as FlagContent
31
36
  };
@@ -638,11 +638,9 @@ const oe = ({
638
638
  showFlagOnSearch: l,
639
639
  showNameOnSearch: r
640
640
  }) => {
641
- const e = T(null), {
642
- termOfSearch: t,
643
- countries: s,
644
- handleSelectCountry: n
645
- } = V(), o = k(() => s.filter((a) => a.name.toLocaleLowerCase().includes(t.toLowerCase())), [t]), i = Q({
641
+ const e = T(null), { termOfSearch: t, countries: s, handleSelectCountry: n } = V(), o = k(() => s.filter(
642
+ (a) => a.name.toLocaleLowerCase().includes(t.toLowerCase())
643
+ ), [t]), i = Q({
646
644
  count: o.length,
647
645
  overscan: 5,
648
646
  getScrollElement: () => e.current,
@@ -650,22 +648,82 @@ const oe = ({
650
648
  });
651
649
  return D(() => {
652
650
  o.length > 0 && i.scrollToIndex(0);
653
- }, [t, i]), o.length === 0 ? /* @__PURE__ */ m("div", { className: "overflow-y-auto max-h-60 snap-y snap-mandatory", children: /* @__PURE__ */ m("ul", { className: "relative", children: /* @__PURE__ */ m("li", { className: "w-full flex items-center h-10 select-none px-6", children: /* @__PURE__ */ m(y, { variant: "body2", component: "span", className: "flex gap-2 items-center text-left", children: "No options" }) }) }) }) : /* @__PURE__ */ m("div", { ref: e, className: "overflow-y-auto max-h-60 snap-y snap-mandatory scrollbar", children: /* @__PURE__ */ m("ul", { className: "relative", style: {
654
- height: i.getTotalSize()
655
- }, children: i.getVirtualItems().map((a) => {
656
- const u = o[a.index], {
657
- flag: c,
658
- name: d,
659
- prefix: h
660
- } = u;
661
- return /* @__PURE__ */ m("li", { className: I("absolute", "w-full", "snap-start", "snap-always", "scroll-m-0", "flex", "items-center", "h-10"), style: {
662
- top: a.start,
663
- height: a.size
664
- }, children: /* @__PURE__ */ m("button", { className: I("w-full", "h-full", "cursor-pointer", "px-6", "hover:bg-gray-50", "transition-colors", "duration-150", "focus-visible:outline-0", "hover:outline-gray-100", "focus:bg-gray-50", "dark:hover:bg-metal-700"), onClick: () => n(u), children: /* @__PURE__ */ N(y, { variant: "body2", component: "span", className: "flex gap-2 items-center text-left", children: [
665
- l && /* @__PURE__ */ m(c, {}),
666
- r && /* @__PURE__ */ m(W, { text: d, prefix: h })
667
- ] }) }) }, a.key);
668
- }) }) });
651
+ }, [t, i]), o.length === 0 ? /* @__PURE__ */ m("div", { className: "overflow-y-auto max-h-60 snap-y snap-mandatory", children: /* @__PURE__ */ m("ul", { className: "relative", children: /* @__PURE__ */ m("li", { className: "w-full flex items-center h-10 select-none px-6", children: /* @__PURE__ */ m(
652
+ y,
653
+ {
654
+ variant: "body2",
655
+ component: "span",
656
+ className: "flex gap-2 items-center text-left",
657
+ children: "No options"
658
+ }
659
+ ) }) }) }) : /* @__PURE__ */ m(
660
+ "div",
661
+ {
662
+ ref: e,
663
+ className: "overflow-y-auto max-h-60 snap-y snap-mandatory scrollbar",
664
+ children: /* @__PURE__ */ m(
665
+ "ul",
666
+ {
667
+ className: "relative",
668
+ style: { height: i.getTotalSize() },
669
+ children: i.getVirtualItems().map((a) => {
670
+ const u = o[a.index], { flag: c, name: d, prefix: h } = u;
671
+ return /* @__PURE__ */ m(
672
+ "li",
673
+ {
674
+ className: I(
675
+ "absolute",
676
+ "w-full",
677
+ "snap-start",
678
+ "snap-always",
679
+ "scroll-m-0",
680
+ "flex",
681
+ "items-center",
682
+ "h-10"
683
+ ),
684
+ style: {
685
+ top: a.start,
686
+ height: a.size
687
+ },
688
+ children: /* @__PURE__ */ m(
689
+ "button",
690
+ {
691
+ className: I(
692
+ "w-full",
693
+ "h-full",
694
+ "cursor-pointer",
695
+ "px-6",
696
+ "hover:bg-gray-50",
697
+ "transition-colors",
698
+ "duration-150",
699
+ "focus-visible:outline-0",
700
+ "hover:outline-gray-100",
701
+ "focus:bg-gray-50",
702
+ "dark:hover:bg-metal-700"
703
+ ),
704
+ onClick: () => n(u),
705
+ children: /* @__PURE__ */ N(
706
+ y,
707
+ {
708
+ variant: "body2",
709
+ component: "span",
710
+ className: "flex gap-2 items-center text-left",
711
+ children: [
712
+ l && /* @__PURE__ */ m(c, {}),
713
+ r && /* @__PURE__ */ m(W, { text: d, prefix: h })
714
+ ]
715
+ }
716
+ )
717
+ }
718
+ )
719
+ },
720
+ a.key
721
+ );
722
+ })
723
+ }
724
+ )
725
+ }
726
+ );
669
727
  };
670
728
  export {
671
729
  oe as FlagSelectorList
@@ -11,15 +11,49 @@ const C = ({
11
11
  showNameOnSearch: a,
12
12
  showPlaceHolder: m = !0
13
13
  }) => {
14
- const {
15
- onChangeTermOfSearch: l
16
- } = h(), n = c((i) => {
14
+ const { onChangeTermOfSearch: l } = h(), n = c((i) => {
17
15
  l(i.target.value);
18
16
  }, []);
19
- return /* @__PURE__ */ s("div", { className: u("absolute", "top-full", "mt-1.5", "animate-in", "fade-in-0", "zoom-in-95", "w-full", "border", "border-gray-100", "bg-white", "shadow-sm", "py-2", "z-10", "rounded-sm", "dark:bg-metal-800", "dark:border-metal-700"), children: [
20
- t && /* @__PURE__ */ r("div", { className: "px-6 py-2.5", children: /* @__PURE__ */ r(d, { isSearch: !0, placeholder: m ? e : void 0, onChange: n }) }),
21
- /* @__PURE__ */ r(p, { showFlagOnSearch: o, showNameOnSearch: a })
22
- ] });
17
+ return /* @__PURE__ */ s(
18
+ "div",
19
+ {
20
+ className: u(
21
+ "absolute",
22
+ "top-full",
23
+ "mt-1.5",
24
+ "animate-in",
25
+ "fade-in-0",
26
+ "zoom-in-95",
27
+ "w-full",
28
+ "border",
29
+ "border-gray-100",
30
+ "bg-white",
31
+ "shadow-sm",
32
+ "py-2",
33
+ "z-10",
34
+ "rounded-sm",
35
+ "dark:bg-metal-800",
36
+ "dark:border-metal-700"
37
+ ),
38
+ children: [
39
+ t && /* @__PURE__ */ r("div", { className: "px-6 py-2.5", children: /* @__PURE__ */ r(
40
+ d,
41
+ {
42
+ isSearch: !0,
43
+ placeholder: m ? e : void 0,
44
+ onChange: n
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ r(
48
+ p,
49
+ {
50
+ showFlagOnSearch: o,
51
+ showNameOnSearch: a
52
+ }
53
+ )
54
+ ]
55
+ }
56
+ );
23
57
  };
24
58
  export {
25
59
  C as FlagSelectorWrapper