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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/dist/AdditionalOptions-Cx9wU01w.js +37 -0
  2. package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
  3. package/dist/Breadcrumb-C95aOsYk.js +77 -0
  4. package/dist/CalendarPanel.css +1 -1
  5. package/dist/Checkbox-Cn0UWlk8.js +239 -0
  6. package/dist/Combination-DUTBK_qM.js +486 -0
  7. package/dist/CommandInput-BKv-EZ7T.js +76 -0
  8. package/dist/Counter-DtQu_T-D.js +191 -0
  9. package/dist/DayPicker-CNWQ1Oyd.js +2884 -0
  10. package/dist/DropdownButton-B2XkEqPt.js +92 -0
  11. package/dist/FlagSelectorList-C17nmEBM.js +597 -0
  12. package/dist/ImageUpload-BzXjGZ2w.js +181 -0
  13. package/dist/Input-GBMxM3Z7.js +188 -0
  14. package/dist/Loading-DKqxR-oV.js +16 -0
  15. package/dist/Modal-DbTe8PVX.js +76 -0
  16. package/dist/Spinner-CyuXAaC8.js +41 -0
  17. package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
  18. package/dist/Switch-DjbC0A8y.js +136 -0
  19. package/dist/Toast-C3XjAvtC.js +478 -0
  20. package/dist/Wrapper-BWSOaT1y.js +1056 -0
  21. package/dist/Wrapper-CjUokv72.js +110 -0
  22. package/dist/Wrapper-DEJ-hyar.js +161 -0
  23. package/dist/assets/icons/components/Accounts.js +21 -35
  24. package/dist/assets/icons/components/AddChart.js +17 -25
  25. package/dist/assets/icons/components/AlertOutline.js +18 -26
  26. package/dist/assets/icons/components/AppRepo.js +14 -22
  27. package/dist/assets/icons/components/Apps.js +14 -22
  28. package/dist/assets/icons/components/Archives.js +14 -22
  29. package/dist/assets/icons/components/ArrowDown.js +14 -22
  30. package/dist/assets/icons/components/ArrowLeft.js +17 -25
  31. package/dist/assets/icons/components/ArrowRight.js +18 -26
  32. package/dist/assets/icons/components/ArrowUp.js +18 -26
  33. package/dist/assets/icons/components/BarChart.js +24 -32
  34. package/dist/assets/icons/components/BookOpen.js +18 -26
  35. package/dist/assets/icons/components/CalendarMonth.js +17 -25
  36. package/dist/assets/icons/components/Check.js +17 -25
  37. package/dist/assets/icons/components/CheckCircleFilled.js +25 -26
  38. package/dist/assets/icons/components/CheckCircleOutline.js +14 -22
  39. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +14 -20
  40. package/dist/assets/icons/components/ClockAlert.js +17 -25
  41. package/dist/assets/icons/components/ClockOutline.js +17 -25
  42. package/dist/assets/icons/components/Close.js +17 -25
  43. package/dist/assets/icons/components/Cloud.js +14 -19
  44. package/dist/assets/icons/components/CloudLockOutline.js +17 -25
  45. package/dist/assets/icons/components/Clusters.js +27 -41
  46. package/dist/assets/icons/components/CogOutline.js +17 -25
  47. package/dist/assets/icons/components/Copy.js +17 -25
  48. package/dist/assets/icons/components/Cpu.js +22 -36
  49. package/dist/assets/icons/components/Cube.js +14 -22
  50. package/dist/assets/icons/components/Datacenter.js +14 -22
  51. package/dist/assets/icons/components/Delete.js +18 -26
  52. package/dist/assets/icons/components/DollarSign.js +20 -28
  53. package/dist/assets/icons/components/Download.js +17 -25
  54. package/dist/assets/icons/components/Edit.js +17 -25
  55. package/dist/assets/icons/components/Ellipses.js +17 -25
  56. package/dist/assets/icons/components/Environments.js +19 -27
  57. package/dist/assets/icons/components/Error.js +17 -25
  58. package/dist/assets/icons/components/ErrorOutline.js +17 -25
  59. package/dist/assets/icons/components/Exclamation.js +21 -26
  60. package/dist/assets/icons/components/Git.js +17 -25
  61. package/dist/assets/icons/components/GitOpsCatalog.js +21 -35
  62. package/dist/assets/icons/components/GridView.js +11 -16
  63. package/dist/assets/icons/components/Help.js +24 -23
  64. package/dist/assets/icons/components/HideOutline.js +18 -32
  65. package/dist/assets/icons/components/Home.js +17 -25
  66. package/dist/assets/icons/components/Home2.js +20 -25
  67. package/dist/assets/icons/components/Id.js +14 -22
  68. package/dist/assets/icons/components/InfoCircle.js +28 -29
  69. package/dist/assets/icons/components/InformationOutline.js +14 -22
  70. package/dist/assets/icons/components/InvoiceList.js +17 -25
  71. package/dist/assets/icons/components/Key.js +17 -25
  72. package/dist/assets/icons/components/LightBulb.js +24 -38
  73. package/dist/assets/icons/components/Loader.js +15 -23
  74. package/dist/assets/icons/components/Network.js +14 -22
  75. package/dist/assets/icons/components/PagesStack.js +24 -23
  76. package/dist/assets/icons/components/Pageview.js +17 -25
  77. package/dist/assets/icons/components/People.js +17 -25
  78. package/dist/assets/icons/components/PhotoLibrary.js +17 -25
  79. package/dist/assets/icons/components/Pipeline.js +19 -27
  80. package/dist/assets/icons/components/Plus.js +17 -25
  81. package/dist/assets/icons/components/PowerSettings.js +15 -23
  82. package/dist/assets/icons/components/Preview.js +14 -22
  83. package/dist/assets/icons/components/ReceiptLong.js +11 -16
  84. package/dist/assets/icons/components/Refresh.js +14 -22
  85. package/dist/assets/icons/components/ScatterPlot.js +14 -19
  86. package/dist/assets/icons/components/Search.js +26 -26
  87. package/dist/assets/icons/components/Server.js +18 -26
  88. package/dist/assets/icons/components/Start.js +18 -26
  89. package/dist/assets/icons/components/TabNew.js +31 -45
  90. package/dist/assets/icons/components/Teams.js +17 -25
  91. package/dist/assets/icons/components/Upload.js +17 -25
  92. package/dist/assets/icons/components/Warning.js +17 -25
  93. package/dist/assets/icons/components/WarningTriangle.js +17 -25
  94. package/dist/assets/icons/components/X.js +17 -25
  95. package/dist/assets/icons/components/index.js +82 -82
  96. package/dist/assets/icons/index.js +88 -88
  97. package/dist/chevron-down-DgssmYWu.js +8 -0
  98. package/dist/chevron-left-DRJXef9g.js +8 -0
  99. package/dist/chevron-right-BooB_b7g.js +8 -0
  100. package/dist/chevron-up-DuS9MUNr.js +8 -0
  101. package/dist/chunk-D1xtDmiO.js +31 -0
  102. package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
  103. package/dist/components/Alert/Alert.js +53 -57
  104. package/dist/components/Alert/Alert.variants.js +90 -105
  105. package/dist/components/AlertDialog/AlertDialog.js +66 -124
  106. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -6
  107. package/dist/components/AlertDialog/components/index.js +2 -2
  108. package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
  109. package/dist/components/Autocomplete/Autocomplete.js +55 -79
  110. package/dist/components/Autocomplete/Autocomplete.variants.js +7 -3
  111. package/dist/components/Autocomplete/components/List/List.js +30 -42
  112. package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
  113. package/dist/components/Autocomplete/components/index.js +2 -2
  114. package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -61
  115. package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
  116. package/dist/components/Badge/Badge.js +59 -74
  117. package/dist/components/Badge/Badge.variants.js +89 -99
  118. package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
  119. package/dist/components/Breadcrumb/Breadcrumb.variants.js +9 -5
  120. package/dist/components/Breadcrumb/components/Item/Item.js +31 -45
  121. package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -65
  122. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
  123. package/dist/components/Button/Button.js +21 -39
  124. package/dist/components/Button/Button.variants.js +314 -291
  125. package/dist/components/ButtonGroup/ButtonGroup.js +80 -134
  126. package/dist/components/ButtonGroup/ButtonGroup.variants.js +20 -27
  127. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +55 -111
  128. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +88 -101
  129. package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
  130. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -42
  131. package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
  132. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +13 -32
  133. package/dist/components/ButtonGroup/components/index.js +6 -6
  134. package/dist/components/ButtonGroup/hooks/index.js +2 -2
  135. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +27 -40
  136. package/dist/components/Card/Card.js +20 -32
  137. package/dist/components/Card/Card.variants.js +40 -39
  138. package/dist/components/Checkbox/Checkbox.js +2 -364
  139. package/dist/components/Checkbox/Checkbox.variants.js +54 -64
  140. package/dist/components/Command/Command.js +27 -36
  141. package/dist/components/Command/Command.variants.js +3 -3
  142. package/dist/components/Command/components/Command.js +13 -5
  143. package/dist/components/Command/components/CommandEmpty.js +10 -13
  144. package/dist/components/Command/components/CommandGroup.js +8 -14
  145. package/dist/components/Command/components/CommandInput.js +2 -82
  146. package/dist/components/Command/components/CommandItem.js +16 -25
  147. package/dist/components/Command/components/CommandList.js +9 -12
  148. package/dist/components/Command/components/CommandSeparator.js +9 -12
  149. package/dist/components/Command/components/CommandShortcut.js +8 -17
  150. package/dist/components/Command/components/DialogContent.js +19 -28
  151. package/dist/components/Command/components/DialogOverlay.js +11 -17
  152. package/dist/components/Command/components/index.js +16 -16
  153. package/dist/components/Command/contexts/Command.context.js +1 -1
  154. package/dist/components/Command/contexts/Command.provider.js +15 -21
  155. package/dist/components/Command/contexts/index.js +2 -2
  156. package/dist/components/Counter/Counter.js +3 -209
  157. package/dist/components/Counter/Counter.variants.js +35 -48
  158. package/dist/components/DateRangePicker/DateRangePicker.js +68 -153
  159. package/dist/components/DateRangePicker/DateRangePicker.variants.js +5 -5
  160. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +64 -104
  161. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +17 -17
  162. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +5 -17
  163. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +34 -56
  164. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +181 -304
  165. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +17 -36
  166. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +79 -127
  167. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +6 -6
  168. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +2 -3
  169. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -147
  170. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
  171. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +98 -96
  172. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +75 -60
  173. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
  174. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +54 -97
  175. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +13 -8
  176. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +40 -87
  177. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +41 -88
  178. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +2 -2
  179. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +2 -2
  180. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +151 -156
  181. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -61
  182. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +2 -2
  183. package/dist/components/DateRangePicker/components/index.js +6 -6
  184. package/dist/components/DateRangePicker/constants/index.js +2 -2
  185. package/dist/components/DateRangePicker/constants/presets.js +21 -6
  186. package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
  187. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -7
  188. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +113 -170
  189. package/dist/components/DateRangePicker/contexts/index.js +6 -6
  190. package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -45
  191. package/dist/components/DateRangePicker/utils/index.js +20 -20
  192. package/dist/components/DateRangePicker/utils/presets.js +6 -8
  193. package/dist/components/DateRangePicker/utils/validation.js +48 -60
  194. package/dist/components/Datepicker/DatePicker.js +45 -133
  195. package/dist/components/Datepicker/DatePicker.variants.js +3 -3
  196. package/dist/components/Divider/Divider.js +6 -6
  197. package/dist/components/Divider/Divider.variants.js +9 -11
  198. package/dist/components/Drawer/Drawer.js +67 -125
  199. package/dist/components/Drawer/Drawer.variants.js +59 -73
  200. package/dist/components/Drawer/components/Body/Body.js +8 -17
  201. package/dist/components/Drawer/components/Body/index.js +2 -2
  202. package/dist/components/Drawer/components/Footer/Footer.js +10 -21
  203. package/dist/components/Drawer/components/Footer/index.js +2 -2
  204. package/dist/components/Drawer/components/Header/Header.js +11 -22
  205. package/dist/components/Drawer/components/Header/index.js +2 -2
  206. package/dist/components/Drawer/components/index.js +6 -6
  207. package/dist/components/Drawer/constants/index.js +1 -1
  208. package/dist/components/Drawer/contexts/Drawer.context.js +4 -4
  209. package/dist/components/Drawer/contexts/index.js +3 -3
  210. package/dist/components/Drawer/hooks/index.js +2 -2
  211. package/dist/components/Drawer/hooks/useDrawer.js +32 -36
  212. package/dist/components/DropdownButton/DropdownButton.js +2 -133
  213. package/dist/components/Filter/Filter.js +23 -20
  214. package/dist/components/Filter/Filter.variants.js +9 -5
  215. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +48 -82
  216. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -143
  217. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +40 -71
  218. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +50 -119
  219. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -57
  220. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +53 -116
  221. package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -30
  222. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +72 -135
  223. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -54
  224. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +72 -143
  225. package/dist/components/Filter/components/index.js +6 -6
  226. package/dist/components/Filter/contexts/filter.context.js +2 -4
  227. package/dist/components/Filter/contexts/filter.hook.js +5 -6
  228. package/dist/components/Filter/contexts/filter.provider.js +6 -3
  229. package/dist/components/Filter/contexts/index.js +4 -4
  230. package/dist/components/Filter/events/index.js +4 -8
  231. package/dist/components/Filter/utils/index.js +2 -2435
  232. package/dist/components/ImageUpload/ImageUpload.js +2 -221
  233. package/dist/components/ImageUpload/ImageUpload.variants.js +78 -95
  234. package/dist/components/Input/Input.js +2 -286
  235. package/dist/components/Input/Input.variants.js +47 -54
  236. package/dist/components/LineChart/LineChart.js +103 -133
  237. package/dist/components/Loading/Loading.js +2 -18
  238. package/dist/components/Loading/Loading.variants.js +2 -2
  239. package/dist/components/Modal/Modal.js +3 -8
  240. package/dist/components/Modal/components/Body/Body.js +8 -5
  241. package/dist/components/Modal/components/Footer/Footer.js +8 -11
  242. package/dist/components/Modal/components/Header/Header.js +8 -11
  243. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -10
  244. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
  245. package/dist/components/Modal/components/index.js +8 -8
  246. package/dist/components/Modal/contexts/Modal.context.js +2 -4
  247. package/dist/components/Modal/contexts/Modal.provider.js +17 -20
  248. package/dist/components/Modal/contexts/index.js +2 -2
  249. package/dist/components/Modal/hooks/useModal.js +10 -10
  250. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -32
  251. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +6 -6
  252. package/dist/components/MultiSelectDropdown/components/Item/Item.js +16 -24
  253. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +26 -35
  254. package/dist/components/MultiSelectDropdown/components/List/List.js +2 -28
  255. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +3 -3
  256. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -124
  257. package/dist/components/MultiSelectDropdown/components/index.js +4 -5
  258. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -4
  259. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -6
  260. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +100 -131
  261. package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
  262. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +12 -21
  263. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -5
  264. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +31 -38
  265. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +15 -32
  266. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -728
  267. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -54
  268. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +37 -30
  269. package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -650
  270. package/dist/components/PhoneNumberInput/components/index.js +4 -4
  271. package/dist/components/PhoneNumberInput/contexts/index.js +3 -3
  272. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +1 -1
  273. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +5 -8
  274. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6064
  275. package/dist/components/PhoneNumberInput/utils/index.js +7 -8
  276. package/dist/components/PieChart/PieChart.js +40 -66
  277. package/dist/components/ProgressBar/ProgressBar.js +27 -36
  278. package/dist/components/ProgressBar/ProgressBar.variants.js +19 -26
  279. package/dist/components/Radio/Radio.js +51 -95
  280. package/dist/components/Radio/Radio.variants.js +82 -88
  281. package/dist/components/RadioCard/RadioCard.js +14 -31
  282. package/dist/components/RadioCard/RadioCard.variants.js +7 -2
  283. package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
  284. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
  285. package/dist/components/RadioGroup/RadioGroup.js +26 -48
  286. package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
  287. package/dist/components/Range/Range.js +47 -59
  288. package/dist/components/Range/Range.variants.js +35 -44
  289. package/dist/components/Select/Select.js +35 -68
  290. package/dist/components/Select/Select.variants.js +49 -48
  291. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -9
  292. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -24
  293. package/dist/components/Select/components/EmptyList.js +2 -2
  294. package/dist/components/Select/components/List/List.js +126 -180
  295. package/dist/components/Select/components/List/List.variants.js +3 -3
  296. package/dist/components/Select/components/ListItem/ListItem.js +54 -107
  297. package/dist/components/Select/components/ListItem/ListItem.variants.js +3 -3
  298. package/dist/components/Select/components/Wrapper.js +2 -248
  299. package/dist/components/Select/components/index.js +8 -8
  300. package/dist/components/Select/constants/index.js +4 -4
  301. package/dist/components/Select/constants/list.js +2 -2
  302. package/dist/components/Select/constants/pagination.js +2 -2
  303. package/dist/components/Select/contexts/index.js +4 -4
  304. package/dist/components/Select/contexts/select.context.js +2 -2
  305. package/dist/components/Select/contexts/select.hook.js +6 -7
  306. package/dist/components/Select/contexts/select.provider.js +41 -51
  307. package/dist/components/Select/hooks/useNavigationList.js +28 -37
  308. package/dist/components/Select/hooks/useSelect.js +36 -72
  309. package/dist/components/Sidebar/Sidebar.js +22 -21
  310. package/dist/components/Sidebar/Sidebar.variants.js +4 -4
  311. package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
  312. package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
  313. package/dist/components/Sidebar/components/Logo/Logo.js +7 -4
  314. package/dist/components/Sidebar/components/Logo/Logo.variants.js +2 -2
  315. package/dist/components/Sidebar/components/Navigation/Navigation.js +13 -13
  316. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
  317. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -22
  318. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
  319. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +12 -23
  320. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +33 -40
  321. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +4 -4
  322. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +2 -2
  323. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -6
  324. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
  325. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +31 -77
  326. package/dist/components/Sidebar/components/index.js +14 -14
  327. package/dist/components/Slider/Slider.js +38 -56
  328. package/dist/components/Slider/Slider.variants.js +36 -45
  329. package/dist/components/Spinner/Spinner.js +2 -55
  330. package/dist/components/Spinner/Spinner.variants.js +37 -51
  331. package/dist/components/Stepper/Stepper.js +44 -71
  332. package/dist/components/Stepper/Stepper.variants.js +270 -229
  333. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +119 -196
  334. package/dist/components/Stepper/components/StepConnector/StepConnector.js +14 -26
  335. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -21
  336. package/dist/components/Stepper/components/StepItem/StepItem.js +4 -4
  337. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +69 -111
  338. package/dist/components/Stepper/constants/index.js +1 -1
  339. package/dist/components/Stepper/hooks/index.js +2 -2
  340. package/dist/components/Stepper/hooks/useStepItemLogic.js +15 -18
  341. package/dist/components/Stepper/utils/index.js +4 -5
  342. package/dist/components/Switch/Switch.js +2 -228
  343. package/dist/components/Switch/Switch.variants.js +2 -2
  344. package/dist/components/Table/Table.js +17 -24
  345. package/dist/components/Table/Table.variants.js +18 -25
  346. package/dist/components/Table/components/Body.js +8 -15
  347. package/dist/components/Table/components/Filter.js +13 -7
  348. package/dist/components/Table/components/Head.js +9 -16
  349. package/dist/components/Table/components/Row.js +14 -26
  350. package/dist/components/Table/components/index.js +6 -6
  351. package/dist/components/Tabs/Tabs.js +20 -20
  352. package/dist/components/Tabs/Tabs.variants.js +55 -72
  353. package/dist/components/Tabs/components/Content.js +12 -12
  354. package/dist/components/Tabs/components/List.js +16 -18
  355. package/dist/components/Tabs/components/Trigger.js +13 -15
  356. package/dist/components/Tabs/components/index.js +4 -4
  357. package/dist/components/Tag/Tag.js +25 -16
  358. package/dist/components/Tag/Tag.variants.js +32 -39
  359. package/dist/components/TagSelect/TagSelect.js +13 -7
  360. package/dist/components/TagSelect/TagSelect.variants.js +6 -6
  361. package/dist/components/TagSelect/components/Item/Item.js +13 -16
  362. package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
  363. package/dist/components/TagSelect/components/List/List.js +15 -7
  364. package/dist/components/TagSelect/components/List/List.variants.js +3 -3
  365. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -85
  366. package/dist/components/TagSelect/components/index.js +6 -6
  367. package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
  368. package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
  369. package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
  370. package/dist/components/TagSelect/contexts/index.js +4 -4
  371. package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
  372. package/dist/components/TextArea/TextArea.js +26 -33
  373. package/dist/components/TextArea/TextArea.variants.js +3 -3
  374. package/dist/components/TimePicker/TimePicker.js +12 -10
  375. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  376. package/dist/components/TimePicker/components/HoursList/HoursList.js +84 -110
  377. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -88
  378. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +56 -82
  379. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +128 -221
  380. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +34 -71
  381. package/dist/components/TimePicker/components/index.js +2 -2
  382. package/dist/components/TimePicker/contexts/index.js +6 -6
  383. package/dist/components/TimePicker/contexts/time-picker.context.js +1 -1
  384. package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
  385. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -48
  386. package/dist/components/TimePicker/utils/index.js +17 -19
  387. package/dist/components/Toast/Toast.js +3 -511
  388. package/dist/components/Toast/Toast.variants.js +32 -35
  389. package/dist/components/Tooltip/Tooltip.js +15 -34
  390. package/dist/components/Typography/Typography.js +16 -24
  391. package/dist/components/Typography/Typography.variants.js +72 -62
  392. package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -159
  393. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
  394. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
  395. package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
  396. package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
  397. package/dist/components/VirtualizedTable/assets/index.js +4 -4
  398. package/dist/components/VirtualizedTable/components/Actions/Actions.js +34 -115
  399. package/dist/components/VirtualizedTable/components/Body/Body.js +49 -111
  400. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +91 -157
  401. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -30
  402. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +27 -47
  403. package/dist/components/VirtualizedTable/components/Filter/Filter.js +99 -164
  404. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +41 -56
  405. package/dist/components/VirtualizedTable/components/Header/Header.js +36 -98
  406. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +28 -62
  407. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +38 -101
  408. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +29 -49
  409. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -23
  410. package/dist/components/VirtualizedTable/components/index.js +10 -10
  411. package/dist/components/VirtualizedTable/constants/index.js +3 -3
  412. package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
  413. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  414. package/dist/components/VirtualizedTable/contexts/table.context.js +3 -3
  415. package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
  416. package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -268
  417. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +1 -1
  418. package/dist/components/VirtualizedTable/events/index.js +19 -24
  419. package/dist/components/index.js +140 -140
  420. package/dist/components-DNFycJGm.js +120 -0
  421. package/dist/constants-D96yCePL.js +31 -0
  422. package/dist/contexts/index.js +6 -6
  423. package/dist/contexts/theme.context.js +2 -2
  424. package/dist/contexts/theme.hook.js +2 -2
  425. package/dist/contexts/theme.provider.js +2 -84
  426. package/dist/createLucideIcon-BVGkzDZC.js +42 -0
  427. package/dist/debounce-CzFlgg9h.js +86 -0
  428. package/dist/dist-B5SlrgYz.js +263 -0
  429. package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
  430. package/dist/dist-BL8l9uRy.js +361 -0
  431. package/dist/{index-DLcqcWxM.js → dist-ByyYBtbL.js} +9 -11
  432. package/dist/dist-C8r5DW7s.js +10 -0
  433. package/dist/dist-CBnErrr1.js +58 -0
  434. package/dist/dist-COY3FRYC.js +480 -0
  435. package/dist/dist-CSP6X06u.js +1701 -0
  436. package/dist/dist-DNSmoWJp.js +469 -0
  437. package/dist/dist-DRmqW28Z2.js +7479 -0
  438. package/dist/dist-DXJSck4j.js +74 -0
  439. package/dist/dist-DXXHfL7M.js +132 -0
  440. package/dist/dist-DZNdbzbm.js +120 -0
  441. package/dist/dist-DZcOdXgW.js +13 -0
  442. package/dist/dist-DeVdyMHW2.js +31 -0
  443. package/dist/{index-3fEdeexs.js → dist-DpqiA4Yn.js} +25 -28
  444. package/dist/dist-DstQl8xY.js +10 -0
  445. package/dist/dist-DtEbXv47.js +34 -0
  446. package/dist/dist-uVUx9i0a.js +223 -0
  447. package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
  448. package/dist/hooks/index.js +2 -2
  449. package/dist/hooks/useToggle.js +5 -8
  450. package/dist/icons.js +88 -88
  451. package/dist/index.js +150 -149
  452. package/dist/isObject--aYwGuhx.js +62 -0
  453. package/dist/libphonenumber-7uXgv7U8.js +81977 -0
  454. package/dist/package.json +18 -18
  455. package/dist/phone-number.provider-B5TfHi8y.js +6646 -0
  456. package/dist/prop-types-DTnODft1.js +547 -0
  457. package/dist/proxy-uLtw-ZML.js +4690 -0
  458. package/dist/style.css +1 -1
  459. package/dist/styles.css +1 -1
  460. package/dist/{index-CSWGJT-v.js → table.provider-4OQNqxH3.js} +805 -674
  461. package/dist/theme.provider-BgxXUOMP.js +74 -0
  462. package/dist/useBreadcrumb-BBm5lX0U.js +1263 -0
  463. package/dist/utils/index.js +5 -2922
  464. package/dist/utils-CQSRNcoF.js +2022 -0
  465. package/dist/utils-DHuiYnx1.js +1689 -0
  466. package/dist/x-BwIi6Wii.js +63 -0
  467. package/dist/x-a0ouxoIM.js +11 -0
  468. package/package.json +18 -18
  469. package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
  470. package/dist/Combination-BtmnusWq.js +0 -480
  471. package/dist/DayPicker-CaeUXRCF.js +0 -2798
  472. package/dist/Modal-DAWdufZ_.js +0 -120
  473. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  474. package/dist/chevron-down-BBFYYzZq.js +0 -5
  475. package/dist/chevron-left-BHBf-gQY.js +0 -5
  476. package/dist/chevron-right-DvXGOiS_.js +0 -5
  477. package/dist/chevron-up-DEfvgPCw.js +0 -54
  478. package/dist/chevron-up-IlDPxR7j.js +0 -5
  479. package/dist/createLucideIcon-CP-mMPfa.js +0 -75
  480. package/dist/debounce-DJveWHr_.js +0 -114
  481. package/dist/ellipsis-vertical-Cl3yNtOy.js +0 -9
  482. package/dist/index--l0zux8V.js +0 -200
  483. package/dist/index-0ioNhtNM.js +0 -10
  484. package/dist/index-BKMaItIC.js +0 -13
  485. package/dist/index-BKjcReYh.js +0 -55
  486. package/dist/index-BOE_3f_Z.js +0 -646
  487. package/dist/index-BRXMsxSL.js +0 -27
  488. package/dist/index-BdMNhZnh.js +0 -9
  489. package/dist/index-BmVmDQGH.js +0 -662
  490. package/dist/index-BvEpLnOv.js +0 -144
  491. package/dist/index-BvoZGpli.js +0 -60
  492. package/dist/index-C7zAY3xv.js +0 -139
  493. package/dist/index-CJnS4BVW.js +0 -93
  494. package/dist/index-Cmf-IG4l.js +0 -322
  495. package/dist/index-CrCTywU1.js +0 -314
  496. package/dist/index-D29mdTf5.js +0 -34
  497. package/dist/index-DWyM654o.js +0 -478
  498. package/dist/index-Jr0cra7i.js +0 -431
  499. package/dist/index-mPinF0Ho.js +0 -1885
  500. package/dist/index-qDQP8rW4.js +0 -7281
  501. package/dist/isObject-9XxUefZH.js +0 -97
  502. package/dist/libphonenumber-aZ-2KWIf.js +0 -11581
  503. package/dist/proxy-BGrSEZuV.js +0 -5046
  504. package/dist/useBreadcrumb-C_Wb2cXs.js +0 -1435
  505. package/dist/x-B9bYxG31.js +0 -8
  506. package/dist/x-Eoa9FJjA.js +0 -62
@@ -0,0 +1,1056 @@
1
+ import { o as Ae } from "./chunk-D1xtDmiO.js";
2
+ import { t as X } from "./utils-DHuiYnx1.js";
3
+ import { Typography as ee } from "./components/Typography/Typography.js";
4
+ import { n as Ne } from "./phone-number.provider-B5TfHi8y.js";
5
+ import { usePhoneNumberContext as Be } from "./components/PhoneNumberInput/contexts/phone-number.hook.js";
6
+ import { labelVariants as Re, phoneNumberInputVariants as Ge } from "./components/PhoneNumberInput/PhoneNumberInput.variants.js";
7
+ import { getPhoneMask as Le } from "./components/PhoneNumberInput/utils/index.js";
8
+ import { FlagContent as Ve } from "./components/PhoneNumberInput/components/FlagContent/FlagContent.js";
9
+ import { FlagSelectorWrapper as xe } from "./components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js";
10
+ import { forwardRef as Ke, useCallback as De, useEffect as pe, useId as Fe, useImperativeHandle as Ue, useMemo as _e, useRef as te } from "react";
11
+ import { jsx as B, jsxs as Z } from "react/jsx-runtime";
12
+ function de(e, n) {
13
+ (n == null || n > e.length) && (n = e.length);
14
+ for (var t = 0, r = Array(n); t < n; t++) r[t] = e[t];
15
+ return r;
16
+ }
17
+ function $e(e, n, t) {
18
+ return n = Y(n), (function(r, o) {
19
+ if (o && (typeof o == "object" || typeof o == "function")) return o;
20
+ if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
21
+ return (function(a) {
22
+ if (a === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23
+ return a;
24
+ })(r);
25
+ })(e, we() ? Reflect.construct(n, t || [], Y(e).constructor) : n.apply(e, t));
26
+ }
27
+ function ze(e, n) {
28
+ if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
29
+ }
30
+ function He(e, n, t) {
31
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
32
+ }
33
+ function Oe(e, n) {
34
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
35
+ if (!t) {
36
+ if (Array.isArray(e) || (t = (function(i, u) {
37
+ if (i) {
38
+ if (typeof i == "string") return de(i, u);
39
+ var s = {}.toString.call(i).slice(8, -1);
40
+ return s === "Object" && i.constructor && (s = i.constructor.name), s === "Map" || s === "Set" ? Array.from(i) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? de(i, u) : void 0;
41
+ }
42
+ })(e)) || n) {
43
+ t && (e = t);
44
+ var r = 0, o = function() {
45
+ };
46
+ return {
47
+ s: o,
48
+ n: function() {
49
+ return r >= e.length ? { done: !0 } : {
50
+ done: !1,
51
+ value: e[r++]
52
+ };
53
+ },
54
+ e: function(i) {
55
+ throw i;
56
+ },
57
+ f: o
58
+ };
59
+ }
60
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
62
+ }
63
+ var a, l = !0, c = !1;
64
+ return {
65
+ s: function() {
66
+ t = t.call(e);
67
+ },
68
+ n: function() {
69
+ var i = t.next();
70
+ return l = i.done, i;
71
+ },
72
+ e: function(i) {
73
+ c = !0, a = i;
74
+ },
75
+ f: function() {
76
+ try {
77
+ l || t.return == null || t.return();
78
+ } finally {
79
+ if (c) throw a;
80
+ }
81
+ }
82
+ };
83
+ }
84
+ function Se(e, n, t) {
85
+ return (n = (function(r) {
86
+ var o = (function(a, l) {
87
+ if (typeof a != "object" || !a) return a;
88
+ var c = a[Symbol.toPrimitive];
89
+ if (c !== void 0) {
90
+ var i = c.call(a, l || "default");
91
+ if (typeof i != "object") return i;
92
+ throw new TypeError("@@toPrimitive must return a primitive value.");
93
+ }
94
+ return (l === "string" ? String : Number)(a);
95
+ })(r, "string");
96
+ return typeof o == "symbol" ? o : o + "";
97
+ })(n)) in e ? Object.defineProperty(e, n, {
98
+ value: t,
99
+ enumerable: !0,
100
+ configurable: !0,
101
+ writable: !0
102
+ }) : e[n] = t, e;
103
+ }
104
+ function Y(e) {
105
+ return Y = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
106
+ return n.__proto__ || Object.getPrototypeOf(n);
107
+ }, Y(e);
108
+ }
109
+ function We(e, n) {
110
+ if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
111
+ e.prototype = Object.create(n && n.prototype, { constructor: {
112
+ value: e,
113
+ writable: !0,
114
+ configurable: !0
115
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), n && re(e, n);
116
+ }
117
+ function we() {
118
+ try {
119
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
120
+ })));
121
+ } catch {
122
+ }
123
+ return (we = function() {
124
+ return !!e;
125
+ })();
126
+ }
127
+ function fe(e, n) {
128
+ var t = Object.keys(e);
129
+ if (Object.getOwnPropertySymbols) {
130
+ var r = Object.getOwnPropertySymbols(e);
131
+ n && (r = r.filter((function(o) {
132
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
133
+ }))), t.push.apply(t, r);
134
+ }
135
+ return t;
136
+ }
137
+ function J(e) {
138
+ for (var n = 1; n < arguments.length; n++) {
139
+ var t = arguments[n] != null ? arguments[n] : {};
140
+ n % 2 ? fe(Object(t), !0).forEach((function(r) {
141
+ Se(e, r, t[r]);
142
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : fe(Object(t)).forEach((function(r) {
143
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
144
+ }));
145
+ }
146
+ return e;
147
+ }
148
+ function Ze(e, n) {
149
+ if (e == null) return {};
150
+ var t, r, o = (function(l, c) {
151
+ if (l == null) return {};
152
+ var i = {};
153
+ for (var u in l) if ({}.hasOwnProperty.call(l, u)) {
154
+ if (c.includes(u)) continue;
155
+ i[u] = l[u];
156
+ }
157
+ return i;
158
+ })(e, n);
159
+ if (Object.getOwnPropertySymbols) {
160
+ var a = Object.getOwnPropertySymbols(e);
161
+ for (r = 0; r < a.length; r++) t = a[r], n.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
162
+ }
163
+ return o;
164
+ }
165
+ function re(e, n) {
166
+ return re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
167
+ return t.__proto__ = r, t;
168
+ }, re(e, n);
169
+ }
170
+ function U(e, n) {
171
+ var t, r = n.replacementChars, o = n.replacement, a = n.separate, l = r, c = "", i = Oe(e);
172
+ try {
173
+ for (i.s(); !(t = i.n()).done; ) {
174
+ var u, s = t.value, d = !Object.prototype.hasOwnProperty.call(o, s) && ((u = o[l[0]]) === null || u === void 0 ? void 0 : u.test(s));
175
+ (a && s === l[0] || d) && (l = l.slice(1), c += s);
176
+ }
177
+ } catch (S) {
178
+ i.e(S);
179
+ } finally {
180
+ i.f();
181
+ }
182
+ return c;
183
+ }
184
+ function ke(e, n) {
185
+ var t, r = n.mask, o = n.replacement, a = n.separate, l = n.showMask, c = 0, i = "", u = Oe(r);
186
+ try {
187
+ for (u.s(); !(t = u.n()).done; ) {
188
+ var s = t.value;
189
+ if (!l && e[c] === void 0) break;
190
+ Object.prototype.hasOwnProperty.call(o, s) && e[c] !== void 0 ? i += e[c++] : i += s;
191
+ }
192
+ } catch (S) {
193
+ u.e(S);
194
+ } finally {
195
+ u.f();
196
+ }
197
+ if (a && !l) {
198
+ for (var d = r.length - 1; d >= 0 && i[d] === r[d]; d--) ;
199
+ i = i.slice(0, d + 1);
200
+ }
201
+ return i;
202
+ }
203
+ function Me(e, n) {
204
+ for (var t = n.mask, r = n.replacement, o = [], a = 0; a < t.length; a++) {
205
+ var l, c = (l = e[a]) !== null && l !== void 0 ? l : t[a], i = Object.prototype.hasOwnProperty.call(r, c) ? "replacement" : e[a] !== void 0 && e[a] !== t[a] ? "input" : "mask";
206
+ o.push({
207
+ type: i,
208
+ value: c,
209
+ index: a
210
+ });
211
+ }
212
+ return o;
213
+ }
214
+ function K(e) {
215
+ return e.length > 0 ? Se({}, e, /./) : {};
216
+ }
217
+ function ae(e, n) {
218
+ for (var t = n.start, r = t === void 0 ? 0 : t, o = n.end, a = n.mask, l = n.replacement, c = n.separate, i = e.slice(r, o), u = a.slice(r, o), s = "", d = 0; d < u.length; d++) {
219
+ var S = Object.prototype.hasOwnProperty.call(l, u[d]);
220
+ S && i[d] !== void 0 && i[d] !== u[d] ? s += i[d] : S && c && (s += u[d]);
221
+ }
222
+ return s;
223
+ }
224
+ function Pe(e, n) {
225
+ var t = n.mask, r = n.replacement, o = typeof r == "string" ? K(r) : r, a = RegExp("[^".concat(Object.keys(o).join(""), "]"), "g");
226
+ return ke(U(e, {
227
+ replacementChars: t.replace(a, ""),
228
+ replacement: o,
229
+ separate: !1
230
+ }), {
231
+ mask: t,
232
+ replacement: o,
233
+ separate: !1,
234
+ showMask: !1
235
+ });
236
+ }
237
+ function Je(e, n) {
238
+ var t = n.mask, r = n.replacement, o = typeof r == "string" ? K(r) : r, a = ae(e, {
239
+ mask: t,
240
+ replacement: o,
241
+ separate: !1
242
+ }), l = RegExp("[^".concat(Object.keys(o).join(""), "]"), "g");
243
+ return U(a, {
244
+ replacementChars: t.replace(l, ""),
245
+ replacement: o,
246
+ separate: !1
247
+ });
248
+ }
249
+ function Ye(e, n) {
250
+ var t = n.mask, r = n.replacement, o = typeof r == "string" ? K(r) : r;
251
+ return Me(Pe(e, {
252
+ mask: t,
253
+ replacement: o
254
+ }), {
255
+ mask: t,
256
+ replacement: o
257
+ });
258
+ }
259
+ var Qe = [
260
+ "[",
261
+ "]",
262
+ "\\",
263
+ "/",
264
+ "^",
265
+ "$",
266
+ ".",
267
+ "|",
268
+ "?",
269
+ "*",
270
+ "+",
271
+ "(",
272
+ ")",
273
+ "{",
274
+ "}"
275
+ ];
276
+ function me(e) {
277
+ return Qe.includes(e) ? "\\".concat(e) : e;
278
+ }
279
+ function qe(e, n) {
280
+ for (var t = n.mask, r = n.replacement, o = typeof r == "string" ? K(r) : r, a = e === "partial" || e === "partial-inexact", l = e === "full" || e === "partial", c = "", i = 0; i < t.length; i++) {
281
+ var u = t[i];
282
+ i === 0 && (c = "^"), a && (c += "("), c += Object.prototype.hasOwnProperty.call(o, u) ? "".concat(l ? "(?!".concat(me(u), ")") : "", "(").concat(o[u].source, ")") : me(u), i === t.length - 1 && (a && (c += ")?".repeat(t.length)), c += "$");
283
+ }
284
+ return c;
285
+ }
286
+ function Xe(e, n) {
287
+ return new Proxy(e, { set: function(t, r, o) {
288
+ return r === "current" && (o !== e.current && (e.current !== null && n.unregister(e.current), o !== null && n.register(o)), t[r] = o, !0);
289
+ } });
290
+ }
291
+ function en(e, n, t) {
292
+ return n = $(n), (function(r, o) {
293
+ if (o && (typeof o == "object" || typeof o == "function")) return o;
294
+ if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
295
+ return (function(a) {
296
+ if (a === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
297
+ return a;
298
+ })(r);
299
+ })(e, ie() ? Reflect.construct(n, t || [], $(e).constructor) : n.apply(e, t));
300
+ }
301
+ function Ee(e, n) {
302
+ if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
303
+ }
304
+ function Ce(e, n, t) {
305
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
306
+ }
307
+ function nn(e, n, t) {
308
+ return (n = (function(r) {
309
+ var o = (function(a, l) {
310
+ if (typeof a != "object" || !a) return a;
311
+ var c = a[Symbol.toPrimitive];
312
+ if (c !== void 0) {
313
+ var i = c.call(a, l || "default");
314
+ if (typeof i != "object") return i;
315
+ throw new TypeError("@@toPrimitive must return a primitive value.");
316
+ }
317
+ return (l === "string" ? String : Number)(a);
318
+ })(r, "string");
319
+ return typeof o == "symbol" ? o : o + "";
320
+ })(n)) in e ? Object.defineProperty(e, n, {
321
+ value: t,
322
+ enumerable: !0,
323
+ configurable: !0,
324
+ writable: !0
325
+ }) : e[n] = t, e;
326
+ }
327
+ function $(e) {
328
+ return $ = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
329
+ return n.__proto__ || Object.getPrototypeOf(n);
330
+ }, $(e);
331
+ }
332
+ function tn(e, n) {
333
+ if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
334
+ e.prototype = Object.create(n && n.prototype, { constructor: {
335
+ value: e,
336
+ writable: !0,
337
+ configurable: !0
338
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), n && z(e, n);
339
+ }
340
+ function ie() {
341
+ try {
342
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
343
+ })));
344
+ } catch {
345
+ }
346
+ return (ie = function() {
347
+ return !!e;
348
+ })();
349
+ }
350
+ function ve(e, n) {
351
+ var t = Object.keys(e);
352
+ if (Object.getOwnPropertySymbols) {
353
+ var r = Object.getOwnPropertySymbols(e);
354
+ n && (r = r.filter((function(o) {
355
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
356
+ }))), t.push.apply(t, r);
357
+ }
358
+ return t;
359
+ }
360
+ function he(e) {
361
+ for (var n = 1; n < arguments.length; n++) {
362
+ var t = arguments[n] != null ? arguments[n] : {};
363
+ n % 2 ? ve(Object(t), !0).forEach((function(r) {
364
+ nn(e, r, t[r]);
365
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ve(Object(t)).forEach((function(r) {
366
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
367
+ }));
368
+ }
369
+ return e;
370
+ }
371
+ function rn(e, n) {
372
+ if (e == null) return {};
373
+ var t, r, o = (function(l, c) {
374
+ if (l == null) return {};
375
+ var i = {};
376
+ for (var u in l) if ({}.hasOwnProperty.call(l, u)) {
377
+ if (c.includes(u)) continue;
378
+ i[u] = l[u];
379
+ }
380
+ return i;
381
+ })(e, n);
382
+ if (Object.getOwnPropertySymbols) {
383
+ var a = Object.getOwnPropertySymbols(e);
384
+ for (r = 0; r < a.length; r++) t = a[r], n.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
385
+ }
386
+ return o;
387
+ }
388
+ function z(e, n) {
389
+ return z = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
390
+ return t.__proto__ = r, t;
391
+ }, z(e, n);
392
+ }
393
+ function oe(e) {
394
+ var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
395
+ return oe = function(t) {
396
+ if (t === null || !(function(o) {
397
+ try {
398
+ return Function.toString.call(o).indexOf("[native code]") !== -1;
399
+ } catch {
400
+ return typeof o == "function";
401
+ }
402
+ })(t)) return t;
403
+ if (typeof t != "function") throw new TypeError("Super expression must either be null or a function");
404
+ if (n !== void 0) {
405
+ if (n.has(t)) return n.get(t);
406
+ n.set(t, r);
407
+ }
408
+ function r() {
409
+ return (function(o, a, l) {
410
+ if (ie()) return Reflect.construct.apply(null, arguments);
411
+ var c = [null];
412
+ c.push.apply(c, a);
413
+ var i = new (o.bind.apply(o, c))();
414
+ return l && z(i, l.prototype), i;
415
+ })(t, arguments, $(this).constructor);
416
+ }
417
+ return r.prototype = Object.create(t.prototype, { constructor: {
418
+ value: r,
419
+ enumerable: !1,
420
+ writable: !0,
421
+ configurable: !0
422
+ } }), z(r, t);
423
+ }, oe(e);
424
+ }
425
+ var _ = (function(e) {
426
+ function n(t) {
427
+ var r;
428
+ return Ee(this, n), (r = en(this, n, [t])).name = "SyntheticChangeError", r;
429
+ }
430
+ return tn(n, e), Ce(n);
431
+ })(oe(Error)), ye, an = ["options"], ge = [
432
+ "text",
433
+ "email",
434
+ "tel",
435
+ "search",
436
+ "url"
437
+ ], je = Ce((function e(n) {
438
+ var t = n.init, r = n.tracking;
439
+ Ee(this, e);
440
+ var o = /* @__PURE__ */ new WeakMap();
441
+ this.register = function(a) {
442
+ var l;
443
+ if (ge.includes(a.type)) {
444
+ var c = (l = a._wrapperState) !== null && l !== void 0 ? l : {}, i = c.initialValue, u = i === void 0 ? "" : i, s = c.controlled, d = s !== void 0 && s, S = t({
445
+ initialValue: a.value || u,
446
+ controlled: d
447
+ }), P = S.value, C = S.options, y = {
448
+ value: P,
449
+ options: C,
450
+ fallbackOptions: C
451
+ }, m = {
452
+ id: -1,
453
+ cachedId: -1
454
+ }, p = {
455
+ value: "",
456
+ selectionStart: 0,
457
+ selectionEnd: 0
458
+ }, w = Object.getOwnPropertyDescriptor("_valueTracker" in a ? a : HTMLInputElement.prototype, "value");
459
+ Object.defineProperty(a, "value", he(he({}, w), {}, { set: function(h) {
460
+ var f;
461
+ p.value = h, w == null || (f = w.set) === null || f === void 0 || f.call(a, h);
462
+ } })), a.value = P;
463
+ var g = function() {
464
+ var h = function() {
465
+ var f, k;
466
+ p.selectionStart = (f = a.selectionStart) !== null && f !== void 0 ? f : 0, p.selectionEnd = (k = a.selectionEnd) !== null && k !== void 0 ? k : 0, m.id = window.setTimeout(h);
467
+ };
468
+ m.id = window.setTimeout(h);
469
+ }, E = function() {
470
+ window.clearTimeout(m.id), m.id = -1, m.cachedId = -1;
471
+ }, v = function(h) {
472
+ try {
473
+ var f, k;
474
+ if (m.cachedId === m.id) throw new _("The input selection has not been updated.");
475
+ m.cachedId = m.id;
476
+ var M = a.value, b = a.selectionStart, N = a.selectionEnd;
477
+ if (b === null || N === null) throw new _("The selection attributes have not been initialized.");
478
+ var O, j = p.value;
479
+ if (h.inputType === void 0 && (p.selectionStart = 0, p.selectionEnd = j.length), b > p.selectionStart ? O = "insert" : b <= p.selectionStart && b < p.selectionEnd ? O = "deleteBackward" : b === p.selectionEnd && M.length < j.length && (O = "deleteForward"), O === void 0 || (O === "deleteBackward" || O === "deleteForward") && M.length > j.length) throw new _("Input type detection error.");
480
+ var T = "", I = p.selectionStart, R = p.selectionEnd;
481
+ if (O === "insert") T = M.slice(p.selectionStart, b);
482
+ else {
483
+ var D = j.length - M.length;
484
+ I = b, R = b + D;
485
+ }
486
+ y.value !== j ? y.options = y.fallbackOptions : y.fallbackOptions = y.options;
487
+ var F = y.options, G = r({
488
+ inputType: O,
489
+ previousValue: j,
490
+ previousOptions: F,
491
+ value: M,
492
+ addedValue: T,
493
+ changeStart: I,
494
+ changeEnd: R,
495
+ selectionStart: b,
496
+ selectionEnd: N
497
+ }), H = G.options, A = rn(G, an);
498
+ a.value = A.value, a.setSelectionRange(A.selectionStart, A.selectionEnd), y.value = A.value, y.options = H, p.selectionStart = A.selectionStart, p.selectionEnd = A.selectionEnd, (f = a._valueTracker) === null || f === void 0 || (k = f.setValue) === null || k === void 0 || k.call(f, j);
499
+ } catch (W) {
500
+ if (a.value = p.value, a.setSelectionRange(p.selectionStart, p.selectionEnd), h.preventDefault(), h.stopPropagation(), W.name !== "SyntheticChangeError") throw W;
501
+ }
502
+ };
503
+ document.activeElement === a && g(), a.addEventListener("focus", g), a.addEventListener("blur", E), a.addEventListener("input", v), o.set(a, {
504
+ onFocus: g,
505
+ onBlur: E,
506
+ onInput: v
507
+ });
508
+ } else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(ge.join(", "), "."));
509
+ }, this.unregister = function(a) {
510
+ var l = o.get(a);
511
+ l !== void 0 && (a.removeEventListener("focus", l.onFocus), a.removeEventListener("blur", l.onBlur), a.removeEventListener("input", l.onInput), o.delete(a));
512
+ };
513
+ }));
514
+ ye = je, Object.defineProperty(ye.prototype, Symbol.toStringTag, {
515
+ writable: !1,
516
+ enumerable: !1,
517
+ configurable: !0,
518
+ value: "Input"
519
+ });
520
+ var ne = function(e) {
521
+ return function() {
522
+ for (var n = arguments.length, t = new Array(n), r = 0; r < n; r++) t[r] = arguments[r];
523
+ return new e("".concat(t.join(`
524
+
525
+ `), `
526
+ `));
527
+ };
528
+ }, be, on = ["track", "modify"];
529
+ function x(e) {
530
+ var n, t, r, o;
531
+ return {
532
+ mask: (n = e.mask) !== null && n !== void 0 ? n : "",
533
+ replacement: typeof e.replacement == "string" ? K(e.replacement) : (t = e.replacement) !== null && t !== void 0 ? t : {},
534
+ showMask: (r = e.showMask) !== null && r !== void 0 && r,
535
+ separate: (o = e.separate) !== null && o !== void 0 && o,
536
+ track: e.track,
537
+ modify: e.modify
538
+ };
539
+ }
540
+ var Te = (function(e) {
541
+ function n() {
542
+ var t, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
543
+ return ze(this, n), (t = $e(this, n, [{
544
+ init: function(o) {
545
+ var a = o.initialValue, l = o.controlled, c = x(r), i = c.mask, u = c.replacement, s = c.separate, d = c.showMask;
546
+ return a = l || a ? a : d ? i : "", process.env.NODE_ENV !== "production" && (function(S) {
547
+ var P = S.initialValue, C = S.mask, y = S.replacement;
548
+ P.length > C.length && console.error(ne(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(P, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
549
+ var m = Object.keys(y).filter((function(v) {
550
+ return v.length > 1;
551
+ }));
552
+ m.length > 0 && console.error(ne(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(m.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
553
+ for (var p = C.slice(0, P.length), w = -1, g = 0; g < p.length; g++) {
554
+ var E = Object.prototype.hasOwnProperty.call(y, p[g]);
555
+ if (!(p[g] === P[g] || E && y[p[g]].test(P[g]))) {
556
+ w = g;
557
+ break;
558
+ }
559
+ }
560
+ w !== -1 && console.error(ne(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(w, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(P, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
561
+ })({
562
+ initialValue: a,
563
+ mask: i,
564
+ replacement: u
565
+ }), {
566
+ value: a,
567
+ options: {
568
+ mask: i,
569
+ replacement: u,
570
+ separate: s
571
+ }
572
+ };
573
+ },
574
+ tracking: function(o) {
575
+ var a = o.inputType, l = o.previousValue, c = o.previousOptions, i = o.addedValue, u = o.changeStart, s = o.changeEnd, d = x(r), S = d.track, P = d.modify, C = Ze(d, on), y = C.mask, m = C.replacement, p = C.showMask, w = C.separate, g = J(J({}, a === "insert" ? {
576
+ inputType: a,
577
+ data: i
578
+ } : {
579
+ inputType: a,
580
+ data: null
581
+ }), {}, {
582
+ value: l,
583
+ selectionStart: u,
584
+ selectionEnd: s
585
+ }), E = S?.(g);
586
+ if (E === !1) throw new _("Custom tracking stop.");
587
+ E === null ? i = "" : E !== !0 && E !== void 0 && (i = E);
588
+ var v = P?.(g);
589
+ v?.mask !== void 0 && (y = v.mask), v?.replacement !== void 0 && (m = typeof v?.replacement == "string" ? K(v?.replacement) : v.replacement), v?.showMask !== void 0 && (p = v.showMask), v?.separate !== void 0 && (w = v.separate);
590
+ var h = ae(l, J({ end: u }, c)), f = ae(l, J({ start: s }, c)), k = RegExp("[^".concat(Object.keys(m).join(""), "]"), "g"), M = y.replace(k, "");
591
+ if (h && (h = U(h, {
592
+ replacementChars: M,
593
+ replacement: m,
594
+ separate: w
595
+ }), M = M.slice(h.length)), i && (i = U(i, {
596
+ replacementChars: M,
597
+ replacement: m,
598
+ separate: !1
599
+ }), M = M.slice(i.length)), a === "insert" && i === "") throw new _("The character does not match the key value of the `replacement` object.");
600
+ if (w) {
601
+ var b = y.slice(u, s).replace(k, ""), N = b.length - i.length;
602
+ N < 0 ? f = f.slice(-N) : N > 0 && (f = b.slice(-N) + f);
603
+ }
604
+ f && (f = U(f, {
605
+ replacementChars: M,
606
+ replacement: m,
607
+ separate: w
608
+ }));
609
+ var O = ke(h + i + f, {
610
+ mask: y,
611
+ replacement: m,
612
+ separate: w,
613
+ showMask: p
614
+ }), j = (function(T) {
615
+ var I, R, D, F = T.inputType, G = T.value, H = T.addedValue, A = T.beforeChangeValue, W = T.mask, le = T.replacement, Ie = T.separate, Q = Me(G, {
616
+ mask: W,
617
+ replacement: le
618
+ }).filter((function(q) {
619
+ var se = q.type;
620
+ return se === "input" || Ie && se === "replacement";
621
+ })), ce = (I = Q[A.length + H.length - 1]) === null || I === void 0 ? void 0 : I.index, L = (R = Q[A.length - 1]) === null || R === void 0 ? void 0 : R.index, V = (D = Q[A.length + H.length]) === null || D === void 0 ? void 0 : D.index;
622
+ if (F === "insert") {
623
+ if (ce !== void 0) return ce + 1;
624
+ if (V !== void 0) return V;
625
+ if (L !== void 0) return L + 1;
626
+ }
627
+ if (F === "deleteForward") {
628
+ if (V !== void 0) return V;
629
+ if (L !== void 0) return L + 1;
630
+ }
631
+ if (F === "deleteBackward") {
632
+ if (L !== void 0) return L + 1;
633
+ if (V !== void 0) return V;
634
+ }
635
+ var ue = G.split("").findIndex((function(q) {
636
+ return Object.prototype.hasOwnProperty.call(le, q);
637
+ }));
638
+ return ue !== -1 ? ue : G.length;
639
+ })({
640
+ inputType: a,
641
+ value: O,
642
+ addedValue: i,
643
+ beforeChangeValue: h,
644
+ mask: y,
645
+ replacement: m,
646
+ separate: w
647
+ });
648
+ return {
649
+ value: O,
650
+ selectionStart: j,
651
+ selectionEnd: j,
652
+ options: {
653
+ mask: y,
654
+ replacement: m,
655
+ separate: w
656
+ }
657
+ };
658
+ }
659
+ }])).format = function(o) {
660
+ return Pe(o, x(r));
661
+ }, t.formatToParts = function(o) {
662
+ return Ye(o, x(r));
663
+ }, t.unformat = function(o) {
664
+ return Je(o, x(r));
665
+ }, t.generatePattern = function(o) {
666
+ return qe(o, x(r));
667
+ }, t;
668
+ }
669
+ return We(n, je), He(n);
670
+ })();
671
+ be = Te, Object.defineProperty(be.prototype, Symbol.toStringTag, {
672
+ writable: !1,
673
+ enumerable: !1,
674
+ configurable: !0,
675
+ value: "Mask"
676
+ });
677
+ function ln() {
678
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mask, t = e.replacement, r = e.showMask, o = e.separate, a = e.track, l = e.modify, c = te(null), i = te({
679
+ mask: n,
680
+ replacement: t,
681
+ showMask: r,
682
+ separate: o,
683
+ track: a,
684
+ modify: l
685
+ });
686
+ return i.current.mask = n, i.current.replacement = t, i.current.showMask = r, i.current.separate = o, i.current.track = a, i.current.modify = l, _e((function() {
687
+ return Xe(c, new Te(i.current));
688
+ }), []);
689
+ }
690
+ var cn = {
691
+ AF: "Afghanistan",
692
+ AL: "Albania",
693
+ DZ: "Algeria",
694
+ AS: "American Samoa",
695
+ AD: "Andorra",
696
+ AO: "Angola",
697
+ AI: "Anguilla",
698
+ AQ: "Antarctica",
699
+ AG: "Antigua and Barbuda",
700
+ AR: "Argentina",
701
+ AM: "Armenia",
702
+ AW: "Aruba",
703
+ AU: "Australia",
704
+ AT: "Austria",
705
+ AZ: "Azerbaijan",
706
+ BS: "Bahamas",
707
+ BH: "Bahrain",
708
+ BD: "Bangladesh",
709
+ BB: "Barbados",
710
+ BY: "Belarus",
711
+ BE: "Belgium",
712
+ BZ: "Belize",
713
+ BJ: "Benin",
714
+ BM: "Bermuda",
715
+ BT: "Bhutan",
716
+ BO: "Bolivia",
717
+ BA: "Bosnia and Herzegovina",
718
+ BW: "Botswana",
719
+ BV: "Bouvet Island",
720
+ BR: "Brazil",
721
+ IO: "British Indian Ocean Territory",
722
+ BN: "Brunei Darussalam",
723
+ BG: "Bulgaria",
724
+ BF: "Burkina Faso",
725
+ BI: "Burundi",
726
+ KH: "Cambodia",
727
+ CM: "Cameroon",
728
+ CA: "Canada",
729
+ CV: "Cape Verde",
730
+ KY: "Cayman Islands",
731
+ CF: "Central African Republic",
732
+ TD: "Chad",
733
+ CL: "Chile",
734
+ CN: ["People's Republic of China", "China"],
735
+ CX: "Christmas Island",
736
+ CC: "Cocos (Keeling) Islands",
737
+ CO: "Colombia",
738
+ KM: "Comoros",
739
+ CG: ["Republic of the Congo", "Congo"],
740
+ CD: ["Democratic Republic of the Congo", "Congo"],
741
+ CK: "Cook Islands",
742
+ CR: "Costa Rica",
743
+ CI: [
744
+ "Cote d'Ivoire",
745
+ "Côte d'Ivoire",
746
+ "Ivory Coast"
747
+ ],
748
+ HR: "Croatia",
749
+ CU: "Cuba",
750
+ CY: "Cyprus",
751
+ CZ: ["Czech Republic", "Czechia"],
752
+ DK: "Denmark",
753
+ DJ: "Djibouti",
754
+ DM: "Dominica",
755
+ DO: "Dominican Republic",
756
+ EC: "Ecuador",
757
+ EG: "Egypt",
758
+ SV: "El Salvador",
759
+ GQ: "Equatorial Guinea",
760
+ ER: "Eritrea",
761
+ EE: "Estonia",
762
+ ET: "Ethiopia",
763
+ FK: "Falkland Islands (Malvinas)",
764
+ FO: "Faroe Islands",
765
+ FJ: "Fiji",
766
+ FI: "Finland",
767
+ FR: "France",
768
+ GF: "French Guiana",
769
+ PF: "French Polynesia",
770
+ TF: "French Southern Territories",
771
+ GA: "Gabon",
772
+ GM: [
773
+ "Republic of The Gambia",
774
+ "The Gambia",
775
+ "Gambia"
776
+ ],
777
+ GE: "Georgia",
778
+ DE: "Germany",
779
+ GH: "Ghana",
780
+ GI: "Gibraltar",
781
+ GR: "Greece",
782
+ GL: "Greenland",
783
+ GD: "Grenada",
784
+ GP: "Guadeloupe",
785
+ GU: "Guam",
786
+ GT: "Guatemala",
787
+ GN: "Guinea",
788
+ GW: "Guinea-Bissau",
789
+ GY: "Guyana",
790
+ HT: "Haiti",
791
+ HM: "Heard Island and McDonald Islands",
792
+ VA: "Holy See (Vatican City State)",
793
+ HN: "Honduras",
794
+ HK: "Hong Kong",
795
+ HU: "Hungary",
796
+ IS: "Iceland",
797
+ IN: "India",
798
+ ID: "Indonesia",
799
+ IR: ["Islamic Republic of Iran", "Iran"],
800
+ IQ: "Iraq",
801
+ IE: "Ireland",
802
+ IL: "Israel",
803
+ IT: "Italy",
804
+ JM: "Jamaica",
805
+ JP: "Japan",
806
+ JO: "Jordan",
807
+ KZ: "Kazakhstan",
808
+ KE: "Kenya",
809
+ KI: "Kiribati",
810
+ KP: "North Korea",
811
+ KR: [
812
+ "South Korea",
813
+ "Korea, Republic of",
814
+ "Republic of Korea"
815
+ ],
816
+ KW: "Kuwait",
817
+ KG: "Kyrgyzstan",
818
+ LA: "Lao People's Democratic Republic",
819
+ LV: "Latvia",
820
+ LB: "Lebanon",
821
+ LS: "Lesotho",
822
+ LR: "Liberia",
823
+ LY: "Libya",
824
+ LI: "Liechtenstein",
825
+ LT: "Lithuania",
826
+ LU: "Luxembourg",
827
+ MO: "Macao",
828
+ MG: "Madagascar",
829
+ MW: "Malawi",
830
+ MY: "Malaysia",
831
+ MV: "Maldives",
832
+ ML: "Mali",
833
+ MT: "Malta",
834
+ MH: "Marshall Islands",
835
+ MQ: "Martinique",
836
+ MR: "Mauritania",
837
+ MU: "Mauritius",
838
+ YT: "Mayotte",
839
+ MX: "Mexico",
840
+ FM: "Micronesia, Federated States of",
841
+ MD: "Moldova, Republic of",
842
+ MC: "Monaco",
843
+ MN: "Mongolia",
844
+ MS: "Montserrat",
845
+ MA: "Morocco",
846
+ MZ: "Mozambique",
847
+ MM: "Myanmar",
848
+ NA: "Namibia",
849
+ NR: "Nauru",
850
+ NP: "Nepal",
851
+ NL: [
852
+ "Netherlands",
853
+ "The Netherlands",
854
+ "Netherlands (Kingdom of the)"
855
+ ],
856
+ NC: "New Caledonia",
857
+ NZ: "New Zealand",
858
+ NI: "Nicaragua",
859
+ NE: "Niger",
860
+ NG: "Nigeria",
861
+ NU: "Niue",
862
+ NF: "Norfolk Island",
863
+ MK: ["The Republic of North Macedonia", "North Macedonia"],
864
+ MP: "Northern Mariana Islands",
865
+ NO: "Norway",
866
+ OM: "Oman",
867
+ PK: "Pakistan",
868
+ PW: "Palau",
869
+ PS: ["State of Palestine", "Palestine"],
870
+ PA: "Panama",
871
+ PG: "Papua New Guinea",
872
+ PY: "Paraguay",
873
+ PE: "Peru",
874
+ PH: "Philippines",
875
+ PN: ["Pitcairn", "Pitcairn Islands"],
876
+ PL: "Poland",
877
+ PT: "Portugal",
878
+ PR: "Puerto Rico",
879
+ QA: "Qatar",
880
+ RE: "Reunion",
881
+ RO: "Romania",
882
+ RU: ["Russian Federation", "Russia"],
883
+ RW: "Rwanda",
884
+ SH: "Saint Helena",
885
+ KN: "Saint Kitts and Nevis",
886
+ LC: "Saint Lucia",
887
+ PM: "Saint Pierre and Miquelon",
888
+ VC: "Saint Vincent and the Grenadines",
889
+ WS: "Samoa",
890
+ SM: "San Marino",
891
+ ST: "Sao Tome and Principe",
892
+ SA: "Saudi Arabia",
893
+ SN: "Senegal",
894
+ SC: "Seychelles",
895
+ SL: "Sierra Leone",
896
+ SG: "Singapore",
897
+ SK: "Slovakia",
898
+ SI: "Slovenia",
899
+ SB: "Solomon Islands",
900
+ SO: "Somalia",
901
+ ZA: "South Africa",
902
+ GS: "South Georgia and the South Sandwich Islands",
903
+ ES: "Spain",
904
+ LK: "Sri Lanka",
905
+ SD: "Sudan",
906
+ SR: "Suriname",
907
+ SJ: "Svalbard and Jan Mayen",
908
+ SZ: "Eswatini",
909
+ SE: "Sweden",
910
+ CH: "Switzerland",
911
+ SY: "Syrian Arab Republic",
912
+ TW: ["Taiwan, Province of China", "Taiwan"],
913
+ TJ: "Tajikistan",
914
+ TZ: ["United Republic of Tanzania", "Tanzania"],
915
+ TH: "Thailand",
916
+ TL: "Timor-Leste",
917
+ TG: "Togo",
918
+ TK: "Tokelau",
919
+ TO: "Tonga",
920
+ TT: "Trinidad and Tobago",
921
+ TN: "Tunisia",
922
+ TR: ["Türkiye", "Turkey"],
923
+ TM: "Turkmenistan",
924
+ TC: "Turks and Caicos Islands",
925
+ TV: "Tuvalu",
926
+ UG: "Uganda",
927
+ UA: "Ukraine",
928
+ AE: ["United Arab Emirates", "UAE"],
929
+ GB: [
930
+ "United Kingdom",
931
+ "UK",
932
+ "Great Britain"
933
+ ],
934
+ US: [
935
+ "United States of America",
936
+ "United States",
937
+ "USA",
938
+ "U.S.A.",
939
+ "US",
940
+ "U.S."
941
+ ],
942
+ UM: "United States Minor Outlying Islands",
943
+ UY: "Uruguay",
944
+ UZ: "Uzbekistan",
945
+ VU: "Vanuatu",
946
+ VE: "Venezuela",
947
+ VN: "Vietnam",
948
+ VG: "Virgin Islands, British",
949
+ VI: "Virgin Islands, U.S.",
950
+ WF: "Wallis and Futuna",
951
+ EH: "Western Sahara",
952
+ YE: "Yemen",
953
+ ZM: "Zambia",
954
+ ZW: "Zimbabwe",
955
+ AX: ["Åland Islands", "Aland Islands"],
956
+ BQ: "Bonaire, Sint Eustatius and Saba",
957
+ CW: "Curaçao",
958
+ GG: "Guernsey",
959
+ IM: "Isle of Man",
960
+ JE: "Jersey",
961
+ ME: "Montenegro",
962
+ BL: "Saint Barthélemy",
963
+ MF: "Saint Martin (French part)",
964
+ RS: "Serbia",
965
+ SX: "Sint Maarten (Dutch part)",
966
+ SS: "South Sudan",
967
+ XK: "Kosovo"
968
+ }, un = {
969
+ locale: "en",
970
+ countries: cn
971
+ }, sn = /* @__PURE__ */ Ae(Ne(), 1);
972
+ sn.registerLocale(un);
973
+ var wn = Ke(({ disabled: e = !1, error: n, helperText: t, helperTextClassName: r, isRequired: o, label: a, labelClassName: l, labelWrapperClassName: c, name: i, placeholder: u, showFlagOnSearch: s = !0, showInputFilter: d = !0, showNameOnSearch: S = !0, wrapperClassName: P, showPlaceHolder: C, ...y }, m) => {
974
+ const p = Fe(), w = i ?? p, g = te(null), { isOpenSelector: E, value: v, selectedCountry: h, onChangeValue: f, handleOpenSelector: k } = Be(), M = typeof n == "string" && n.length >= 0, b = ln({
975
+ mask: Le(h),
976
+ replacement: { _: /\d/ }
977
+ });
978
+ Ue(m, () => b.current, [b]);
979
+ const N = De((O) => {
980
+ O.target.value.startsWith(h.prefix) ? f(O.target.value) : f(`${h.prefix} `);
981
+ }, [h.prefix, f]);
982
+ return pe(() => {
983
+ const O = new AbortController(), j = (I) => {
984
+ I.key === "Escape" && k(!1);
985
+ }, T = (I) => {
986
+ g.current?.contains(I.target) || k(!1);
987
+ };
988
+ return document.addEventListener("keydown", j, { signal: O.signal }), document.addEventListener("mousedown", T, { signal: O.signal }), document.addEventListener("visibilitychange", () => {
989
+ document.hidden && k(!1);
990
+ }, { signal: O.signal }), () => {
991
+ O.abort();
992
+ };
993
+ }, [k, g]), pe(() => {
994
+ b.current && (b.current.value = h.prefix + " ");
995
+ }, [h.code]), /* @__PURE__ */ Z("div", {
996
+ className: "w-full flex flex-col gap-2",
997
+ children: [
998
+ a ? /* @__PURE__ */ B("div", {
999
+ className: X(c),
1000
+ children: /* @__PURE__ */ Z("label", {
1001
+ id: w,
1002
+ className: Re({ className: l }),
1003
+ onClick: () => !e && b.current?.focus(),
1004
+ children: [a, o && /* @__PURE__ */ B(ee, {
1005
+ component: "span",
1006
+ className: "text-red-600 dark:text-red-500 ml-1",
1007
+ children: "*"
1008
+ })]
1009
+ })
1010
+ }) : null,
1011
+ /* @__PURE__ */ Z("div", {
1012
+ ref: g,
1013
+ "data-state": E ? "open" : "closed",
1014
+ className: Ge({
1015
+ className: P,
1016
+ variant: M ? "error" : "default"
1017
+ }),
1018
+ children: [/* @__PURE__ */ Z("div", {
1019
+ className: "p-2 flex items-center gap-2.5",
1020
+ children: [/* @__PURE__ */ B(Ve, {}), /* @__PURE__ */ B("input", {
1021
+ id: a ? w : void 0,
1022
+ ref: b,
1023
+ name: i,
1024
+ autoComplete: "off",
1025
+ className: X("outline-0", "w-full", "caret-slate-800", "text-slate-800", "bg-transparent", "dark:caret-metal-50", "dark:text-metal-50", "disabled:cursor-not-allowed", "disabled:opacity-50"),
1026
+ type: "tel",
1027
+ inputMode: "tel",
1028
+ value: v,
1029
+ onChange: N,
1030
+ disabled: e,
1031
+ ...y
1032
+ })]
1033
+ }), E && /* @__PURE__ */ B(xe, {
1034
+ placeholder: u,
1035
+ showFlagOnSearch: s,
1036
+ showInputFilter: d,
1037
+ showNameOnSearch: S,
1038
+ showPlaceHolder: C
1039
+ })]
1040
+ }),
1041
+ n ? /* @__PURE__ */ B(ee, {
1042
+ component: "span",
1043
+ className: "text-xs text-red-700 dark:text-red-500",
1044
+ children: n
1045
+ }) : null,
1046
+ !n && t ? /* @__PURE__ */ B(ee, {
1047
+ component: "span",
1048
+ className: X("text-xs kubefirst-dark:text-slate-200", r),
1049
+ children: t
1050
+ }) : null
1051
+ ]
1052
+ });
1053
+ });
1054
+ export {
1055
+ wn as t
1056
+ };