@stachelock/ui 0.6.8 → 0.6.10

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 (355) hide show
  1. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-CMBsY5Y0.js → CalendarHeader.vue_vue_type_script_setup_true_lang-Cbgbb2e5.js} +2 -2
  2. package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-DacJtKYo.js → ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js} +88 -89
  3. package/dist/{DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js → DayCalendar.vue_vue_type_script_setup_true_lang-BgV8wr8v.js} +1 -1
  4. package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-Bq8Gvhsc.js → DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js} +1 -1
  5. package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-CdNtWWlT.js → DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js} +4 -4
  6. package/dist/{EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js → EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js} +51 -49
  7. package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-B6A0zsE6.js → InlineTabs.vue_vue_type_script_setup_true_lang-BWzrSbT3.js} +1 -1
  8. package/dist/{MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js → MonthCalendar.vue_vue_type_style_index_0_lang-BdrrlrNr.js} +1 -1
  9. package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-DFfKsmvj.js → SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js} +132 -135
  10. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js +304 -0
  11. package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-BzqtAqbr.js → TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js} +1 -1
  12. package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-C6OYRDCq.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js} +1 -1
  13. package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-C7T3PUnB.js → TabsInPills.vue_vue_type_script_setup_true_lang-mw68ZzS1.js} +1 -1
  14. package/dist/{calendar-DLry-Vik.js → calendar-DaXCwXP5.js} +1 -1
  15. package/dist/calendars/CalendarDashboard.d.ts +3 -1
  16. package/dist/calendars/CalendarDashboard.js +2 -2
  17. package/dist/calendars/CalendarHeader.d.ts +3 -1
  18. package/dist/calendars/CalendarHeader.js +1 -1
  19. package/dist/calendars/DayCalendar.d.ts +3 -1
  20. package/dist/calendars/DayCalendar.js +1 -1
  21. package/dist/calendars/EventCard.d.ts +3 -1
  22. package/dist/calendars/EventsList.d.ts +3 -1
  23. package/dist/calendars/MonthCalendar.d.ts +3 -1
  24. package/dist/calendars/MonthCalendar.js +1 -1
  25. package/dist/calendars/WeekCalendar.d.ts +3 -1
  26. package/dist/calendars/WeekCalendar.js +2 -2
  27. package/dist/calendars/YearCalendar.d.ts +3 -1
  28. package/dist/charts/BarChart.d.ts +3 -1
  29. package/dist/charts/BaseChart.d.ts +3 -1
  30. package/dist/charts/FunnelChart.d.ts +3 -1
  31. package/dist/charts/LineChart.d.ts +3 -1
  32. package/dist/charts/PieChart.d.ts +3 -1
  33. package/dist/charts/SparklineChart.d.ts +3 -1
  34. package/dist/charts/StatCard.d.ts +3 -1
  35. package/dist/charts/chartTheme.d.ts +0 -3
  36. package/dist/charts/index.d.ts +0 -1
  37. package/dist/components/Avatar.d.ts +3 -1
  38. package/dist/components/Badge.d.ts +3 -1
  39. package/dist/components/Banner.d.ts +3 -1
  40. package/dist/components/Breadcrumb.d.ts +3 -1
  41. package/dist/components/Button.d.ts +3 -1
  42. package/dist/components/ButtonGroup.d.ts +3 -1
  43. package/dist/components/Checkbox.d.ts +3 -1
  44. package/dist/components/CloudinaryImage.d.ts +3 -1
  45. package/dist/components/CloudinaryImage.js +52 -52
  46. package/dist/components/Loading.d.ts +3 -1
  47. package/dist/components/LoadingDots.d.ts +3 -1
  48. package/dist/components/LottieAnimation.d.ts +3 -1
  49. package/dist/components/Menu.d.ts +3 -1
  50. package/dist/components/Modal.d.ts +3 -1
  51. package/dist/components/NavLink.d.ts +3 -1
  52. package/dist/components/ProgressBar.d.ts +3 -1
  53. package/dist/components/RadialProgressBar.d.ts +3 -1
  54. package/dist/components/Table.d.ts +3 -1
  55. package/dist/components/Transition.d.ts +3 -1
  56. package/dist/composables/index.d.ts +0 -1
  57. package/dist/composables/useCalendar.d.ts +0 -3
  58. package/dist/composables/useCalendar.js +1 -1
  59. package/dist/composables/useFormValidation.d.ts +0 -3
  60. package/dist/composables/useMap.d.ts +0 -3
  61. package/dist/composables/useModal.d.ts +0 -3
  62. package/dist/composables/useNotifications.d.ts +0 -3
  63. package/dist/composables/useNotifications.js +1 -1
  64. package/dist/composables/useTabs.d.ts +0 -1
  65. package/dist/composables/useTheme.d.ts +0 -3
  66. package/dist/empty-state/ComingSoon.d.ts +3 -1
  67. package/dist/empty-state/EmptyState.d.ts +3 -1
  68. package/dist/empty-state/index.d.ts +0 -1
  69. package/dist/forms/DynamicForm.d.ts +3 -1
  70. package/dist/forms/DynamicForm.js +1 -1
  71. package/dist/forms/DynamicFormField.d.ts +3 -1
  72. package/dist/forms/DynamicFormField.js +1 -1
  73. package/dist/forms/FormFieldWrapper.d.ts +3 -1
  74. package/dist/index.d.ts +0 -3
  75. package/dist/index.js +1677 -1341
  76. package/dist/inputs/AddDeleteButtonGroup.d.ts +3 -1
  77. package/dist/inputs/AddressInput.d.ts +3 -1
  78. package/dist/inputs/AddressInput.js +22 -21
  79. package/dist/inputs/CheckboxInput.d.ts +3 -1
  80. package/dist/inputs/ComboboxInput.d.ts +3 -1
  81. package/dist/inputs/ComboboxInput.js +1 -1
  82. package/dist/inputs/DatepickerInput.d.ts +3 -1
  83. package/dist/inputs/EmailInput.d.ts +3 -1
  84. package/dist/inputs/EmailInput.js +1 -1
  85. package/dist/inputs/EmptyInput.d.ts +3 -1
  86. package/dist/inputs/FileDropzoneInput.d.ts +3 -1
  87. package/dist/inputs/HiddenInput.d.ts +3 -1
  88. package/dist/inputs/ImageDropzoneInput.d.ts +3 -1
  89. package/dist/inputs/PhoneInput.d.ts +3 -1
  90. package/dist/inputs/PhoneInput.js +146 -145
  91. package/dist/inputs/RichTextInput.d.ts +3 -1
  92. package/dist/inputs/SelectInput.d.ts +3 -1
  93. package/dist/inputs/SelectInput.js +1 -1
  94. package/dist/inputs/SelectTextInput.d.ts +3 -1
  95. package/dist/inputs/SelectTextInput.js +1 -1
  96. package/dist/inputs/SwitchInput.d.ts +3 -1
  97. package/dist/inputs/SwitchInputGroup.d.ts +3 -1
  98. package/dist/inputs/TagifyInput.d.ts +3 -1
  99. package/dist/inputs/TextAreaInput.d.ts +3 -1
  100. package/dist/inputs/TextInput.d.ts +3 -1
  101. package/dist/inputs/TextInput.js +111 -3
  102. package/dist/layouts/DashboardLayout.d.ts +3 -1
  103. package/dist/layouts/DefaultLayout.d.ts +3 -1
  104. package/dist/layouts/HeaderLayout.d.ts +3 -1
  105. package/dist/layouts/NavigationGroup.d.ts +3 -1
  106. package/dist/layouts/NavigationItem.d.ts +3 -1
  107. package/dist/layouts/ProfileHeaderAvatar.d.ts +3 -1
  108. package/dist/layouts/ProjectLogo.d.ts +3 -1
  109. package/dist/layouts/SidebarLayout.d.ts +3 -1
  110. package/dist/loading/ContentSkeleton.d.ts +3 -1
  111. package/dist/loading/SmartLoadingIndicator.d.ts +3 -1
  112. package/dist/loading/index.d.ts +0 -1
  113. package/dist/maps/GoogleMap.d.ts +3 -1
  114. package/dist/maps/UiInfoWindow.d.ts +3 -1
  115. package/dist/maps/UiMap.d.ts +3 -1
  116. package/dist/maps/UiMapAll.d.ts +3 -1
  117. package/dist/maps/UiMapMarker.d.ts +3 -1
  118. package/dist/maps/index.d.ts +0 -1
  119. package/dist/modals/AlertModal.d.ts +3 -1
  120. package/dist/modals/BaseModal.d.ts +3 -1
  121. package/dist/modals/ImageCropperModal.d.ts +3 -1
  122. package/dist/notifications/NotificationContainer.d.ts +3 -1
  123. package/dist/notifications/NotificationToast.d.ts +3 -1
  124. package/dist/notifications/index.d.ts +0 -1
  125. package/dist/src/components/CloudinaryImage.d.ts +16 -14
  126. package/dist/src/components/LottieAnimation.d.ts +37 -6
  127. package/dist/src/components/ThemeDebugModal.d.ts +16 -6
  128. package/dist/src/components/UiAvatar.d.ts +35 -2
  129. package/dist/src/components/UiBadge.d.ts +33 -6
  130. package/dist/src/components/UiBanner.d.ts +108 -35
  131. package/dist/src/components/UiBreadcrumb.d.ts +11 -10
  132. package/dist/src/components/UiButton.d.ts +66 -13
  133. package/dist/src/components/UiButtonGroup.d.ts +37 -7
  134. package/dist/src/components/UiCheckbox.d.ts +33 -8
  135. package/dist/src/components/UiLoading.d.ts +28 -2
  136. package/dist/src/components/UiLoadingDots.d.ts +2 -2
  137. package/dist/src/components/UiMenu.d.ts +33 -5
  138. package/dist/src/components/UiModal.d.ts +3 -4
  139. package/dist/src/components/UiNavLink.d.ts +40 -6
  140. package/dist/src/components/UiProgressBar.d.ts +32 -3
  141. package/dist/src/components/UiRadialProgressBar.d.ts +34 -3
  142. package/dist/src/components/UiTable.d.ts +29 -6
  143. package/dist/src/components/UiTransition.d.ts +26 -3
  144. package/dist/src/components/avatars/AvatarIcon.d.ts +28 -6
  145. package/dist/src/components/avatars/AvatarImage.d.ts +30 -9
  146. package/dist/src/components/avatars/AvatarInitials.d.ts +24 -5
  147. package/dist/src/components/avatars/AvatarWithText.d.ts +4 -3
  148. package/dist/src/components/calendars/CalendarDashboard.d.ts +17 -5
  149. package/dist/src/components/calendars/CalendarHeader.d.ts +7 -8
  150. package/dist/src/components/calendars/DayCalendar.d.ts +17 -11
  151. package/dist/src/components/calendars/EventCard.d.ts +2 -1
  152. package/dist/src/components/calendars/EventsList.d.ts +18 -6
  153. package/dist/src/components/calendars/MonthCalendar.d.ts +30 -6
  154. package/dist/src/components/calendars/WeekCalendar.d.ts +16 -10
  155. package/dist/src/components/calendars/YearCalendar.d.ts +29 -5
  156. package/dist/src/components/charts/BarChart.d.ts +40 -7
  157. package/dist/src/components/charts/BaseChart.d.ts +80 -0
  158. package/dist/src/components/charts/FunnelChart.d.ts +34 -5
  159. package/dist/src/components/charts/LineChart.d.ts +37 -6
  160. package/dist/src/components/charts/PieChart.d.ts +37 -6
  161. package/dist/src/components/charts/SparklineChart.d.ts +32 -3
  162. package/dist/src/components/charts/StatCard.d.ts +24 -2
  163. package/dist/src/components/charts/chartTheme.d.ts +1 -0
  164. package/dist/src/components/collection-editor/CollectionEditor.d.ts +112 -0
  165. package/dist/src/components/collection-editor/CollectionItemList.d.ts +37 -7
  166. package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +34 -8
  167. package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +37 -7
  168. package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +37 -7
  169. package/dist/src/components/empty-state/ComingSoon.d.ts +29 -2
  170. package/dist/src/components/empty-state/EmptyState.d.ts +26 -4
  171. package/dist/src/components/formatters/DateFormatter.d.ts +2 -1
  172. package/dist/src/components/formatters/DateRangeFormatter.d.ts +1 -0
  173. package/dist/src/components/forms/DynamicForm.d.ts +37 -11
  174. package/dist/src/components/forms/DynamicFormField.d.ts +15 -5
  175. package/dist/src/components/forms/FormFieldWrapper.d.ts +58 -14
  176. package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +1 -1
  177. package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +1 -1
  178. package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +1 -1
  179. package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +1 -1
  180. package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +1 -1
  181. package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +1 -1
  182. package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +1 -1
  183. package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +1 -1
  184. package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +1 -1
  185. package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +1 -1
  186. package/dist/src/components/icons/brands/XBrandIcon.d.ts +1 -1
  187. package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +1 -1
  188. package/dist/src/components/index.d.ts +1 -0
  189. package/dist/src/components/inputs/AddDeleteButtonGroup.d.ts +3 -2
  190. package/dist/src/components/inputs/AddressInput.d.ts +45 -7
  191. package/dist/src/components/inputs/CheckboxInput.d.ts +37 -10
  192. package/dist/src/components/inputs/ComboboxInput.d.ts +54 -12
  193. package/dist/src/components/inputs/DatepickerInput.d.ts +43 -1046
  194. package/dist/src/components/inputs/EmailInput.d.ts +56 -12
  195. package/dist/src/components/inputs/EmptyInput.d.ts +26 -2
  196. package/dist/src/components/inputs/FileDropzoneInput.d.ts +6 -7
  197. package/dist/src/components/inputs/HiddenInput.d.ts +23 -2
  198. package/dist/src/components/inputs/ImageDropzoneInput.d.ts +9 -8
  199. package/dist/src/components/inputs/InputsShowcase.d.ts +1 -1
  200. package/dist/src/components/inputs/PhoneInput.d.ts +18 -81
  201. package/dist/src/components/inputs/RichTextInput.d.ts +81 -23
  202. package/dist/src/components/inputs/SelectInput.d.ts +41 -47
  203. package/dist/src/components/inputs/SelectTextInput.d.ts +22 -53
  204. package/dist/src/components/inputs/SwitchInput.d.ts +41 -114
  205. package/dist/src/components/inputs/SwitchInputGroup.d.ts +3 -2
  206. package/dist/src/components/inputs/TagifyInput.d.ts +8 -10
  207. package/dist/src/components/inputs/TextAreaInput.d.ts +35 -9
  208. package/dist/src/components/inputs/TextInput.d.ts +76 -14
  209. package/dist/src/components/layouts/CardLayout.d.ts +64 -18
  210. package/dist/src/components/layouts/DashboardLayout.d.ts +5 -8
  211. package/dist/src/components/layouts/DefaultLayout.d.ts +1 -1
  212. package/dist/src/components/layouts/HeaderLayout.d.ts +4 -4
  213. package/dist/src/components/layouts/InfoCard.d.ts +25 -2
  214. package/dist/src/components/layouts/NavigationGroup.d.ts +16 -5
  215. package/dist/src/components/layouts/NavigationItem.d.ts +24 -7
  216. package/dist/src/components/layouts/ProfileHeaderAvatar.d.ts +40 -10
  217. package/dist/src/components/layouts/ProjectLogo.d.ts +33 -2
  218. package/dist/src/components/layouts/PropsTable.d.ts +23 -2
  219. package/dist/src/components/layouts/ShowcaseCard.d.ts +29 -2
  220. package/dist/src/components/layouts/ShowcaseLayout.d.ts +28 -5
  221. package/dist/src/components/layouts/SidebarLayout.d.ts +4 -7
  222. package/dist/src/components/layouts/StateDisplay.d.ts +23 -2
  223. package/dist/src/components/loading/ContentSkeleton.d.ts +31 -2
  224. package/dist/src/components/loading/SmartLoadingIndicator.d.ts +47 -6
  225. package/dist/src/components/maps/GoogleMap.d.ts +9 -8
  226. package/dist/src/components/maps/UiInfoWindow.d.ts +14 -229
  227. package/dist/src/components/maps/UiMap.d.ts +103 -5093
  228. package/dist/src/components/maps/UiMapAll.d.ts +22 -1132
  229. package/dist/src/components/maps/UiMapMarker.d.ts +18 -17
  230. package/dist/src/components/modals/AlertModal.d.ts +10 -9
  231. package/dist/src/components/modals/BaseModal.d.ts +6 -5
  232. package/dist/src/components/modals/ImageCropperModal.d.ts +75 -379
  233. package/dist/src/components/notifications/NotificationToast.d.ts +18 -7
  234. package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +117 -0
  235. package/dist/src/components/profile-inputs/NamesInput.d.ts +107 -0
  236. package/dist/src/components/profile-inputs/index.d.ts +2 -0
  237. package/dist/src/components/profiles/BentoProfileLayout.d.ts +44 -2
  238. package/dist/src/components/profiles/BentoProfileLayoutSkeleton.d.ts +27 -2
  239. package/dist/src/components/profiles/ProfileCard.d.ts +30 -2
  240. package/dist/src/components/profiles/ProfileContactCard.d.ts +25 -2
  241. package/dist/src/components/profiles/ProfileHeaderCard.d.ts +26 -2
  242. package/dist/src/components/profiles/ProfileLocationCard.d.ts +28 -2
  243. package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +26 -2
  244. package/dist/src/components/profiles/ProfilePersonalCard.d.ts +25 -2
  245. package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +26 -2
  246. package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +26 -2
  247. package/dist/src/components/profiles/ProfileSocialCard.d.ts +26 -2
  248. package/dist/src/components/stepper/StepperPanels.d.ts +14 -4
  249. package/dist/src/components/tabs/InlineTabs.d.ts +28 -4
  250. package/dist/src/components/tabs/TabGroup.d.ts +32 -6
  251. package/dist/src/components/tabs/TabGroupUnderline.d.ts +32 -6
  252. package/dist/src/components/tabs/TabsInPills.d.ts +26 -4
  253. package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +37 -2
  254. package/dist/src/components/wrappers/CardWrapper.d.ts +1 -1
  255. package/dist/src/components/wrappers/DisclosureWrapper.d.ts +23 -2
  256. package/dist/src/components/wrappers/FormErrorWrapper.d.ts +25 -2
  257. package/dist/src/composables/useCalendar.d.ts +1 -0
  258. package/dist/src/composables/useCollectionEditor.d.ts +1 -0
  259. package/dist/src/composables/useFormValidation.d.ts +1 -0
  260. package/dist/src/composables/useMap.d.ts +1 -0
  261. package/dist/src/composables/useNotifications.d.ts +33 -32
  262. package/dist/src/composables/useSimpleTabs.d.ts +1 -0
  263. package/dist/src/composables/useStringTransform.d.ts +1 -0
  264. package/dist/src/composables/useTabs.d.ts +1 -0
  265. package/dist/src/config/css-variables.d.ts +1 -0
  266. package/dist/src/dev.d.ts +1 -0
  267. package/dist/src/plugin/configure.d.ts +3 -2
  268. package/dist/src/services/geocoding.service.d.ts +1 -0
  269. package/dist/src/types/calendars.d.ts +1 -0
  270. package/dist/src/types/core.d.ts +8 -7
  271. package/dist/src/types/forms.d.ts +1 -0
  272. package/dist/src/types/layouts.d.ts +1 -0
  273. package/dist/src/types/navigation.d.ts +1 -0
  274. package/dist/src/types/tables.d.ts +1 -0
  275. package/dist/src/types/ui.d.ts +1 -0
  276. package/dist/src/utils/component-registry.d.ts +1 -0
  277. package/dist/src/utils/mapThemes.d.ts +1 -0
  278. package/dist/src/utils/phone.d.ts +1 -0
  279. package/dist/src/utils/validation.d.ts +1 -0
  280. package/dist/src/views/inputs/index.d.ts +1 -0
  281. package/dist/stepper/StepperPanels.d.ts +3 -1
  282. package/dist/stepper/index.d.ts +0 -1
  283. package/dist/style.css +1 -1
  284. package/dist/tabs/InlineTabs.d.ts +3 -1
  285. package/dist/tabs/InlineTabs.js +1 -1
  286. package/dist/tabs/TabGroup.d.ts +3 -1
  287. package/dist/tabs/TabGroup.js +1 -1
  288. package/dist/tabs/TabGroupUnderline.d.ts +3 -1
  289. package/dist/tabs/TabGroupUnderline.js +1 -1
  290. package/dist/tabs/TabsInPills.d.ts +3 -1
  291. package/dist/tabs/TabsInPills.js +1 -1
  292. package/dist/tabs/index.d.ts +0 -1
  293. package/dist/tabs/index.js +4 -4
  294. package/dist/validation-Dzczp6MS.js +22 -0
  295. package/dist/wrappers/BackgroundGradientWrapper.d.ts +3 -1
  296. package/dist/wrappers/CardWrapper.d.ts +3 -1
  297. package/dist/wrappers/DisclosureWrapper.d.ts +3 -1
  298. package/dist/wrappers/FormErrorWrapper.d.ts +3 -1
  299. package/dist/wrappers/index.d.ts +0 -1
  300. package/package.json +29 -29
  301. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-C3BGLjY1.js +0 -336
  302. package/dist/TextInput-C5IzX7m_.js +0 -131
  303. package/dist/src/views/ButtonsShowcase.d.ts +0 -2
  304. package/dist/src/views/CalendarsShowcase.d.ts +0 -2
  305. package/dist/src/views/CardsShowcase.d.ts +0 -2
  306. package/dist/src/views/ChartsShowcase.d.ts +0 -2
  307. package/dist/src/views/EmptyStatesShowcase.d.ts +0 -2
  308. package/dist/src/views/InputsShowcase.d.ts +0 -2
  309. package/dist/src/views/KitchenSink.d.ts +0 -2
  310. package/dist/src/views/LayoutsShowcase.d.ts +0 -2
  311. package/dist/src/views/LoadingShowcase.d.ts +0 -2
  312. package/dist/src/views/MapsShowcase.d.ts +0 -2
  313. package/dist/src/views/ModalsShowcase.d.ts +0 -2
  314. package/dist/src/views/NotificationsShowcase.d.ts +0 -2
  315. package/dist/src/views/StepperShowcase.d.ts +0 -2
  316. package/dist/src/views/TabsShowcase.d.ts +0 -2
  317. package/dist/src/views/ValidationDemo.d.ts +0 -2
  318. package/dist/src/views/WrappersShowcase.d.ts +0 -2
  319. package/dist/src/views/components/AvatarPage.d.ts +0 -2
  320. package/dist/src/views/components/BadgePage.d.ts +0 -2
  321. package/dist/src/views/components/BannerPage.d.ts +0 -2
  322. package/dist/src/views/components/BreadcrumbPage.d.ts +0 -2
  323. package/dist/src/views/components/ButtonPage.d.ts +0 -2
  324. package/dist/src/views/components/CloudinaryImagePage.d.ts +0 -2
  325. package/dist/src/views/components/LoadingPage.d.ts +0 -2
  326. package/dist/src/views/components/LottiePage.d.ts +0 -2
  327. package/dist/src/views/components/MenuPage.d.ts +0 -2
  328. package/dist/src/views/components/ModalPage.d.ts +0 -2
  329. package/dist/src/views/components/ProgressPage.d.ts +0 -2
  330. package/dist/src/views/components/RichTextInputPage.d.ts +0 -2
  331. package/dist/src/views/components/TablePage.d.ts +0 -2
  332. package/dist/src/views/components/TextInputPage.d.ts +0 -2
  333. package/dist/src/views/components/TransitionPage.d.ts +0 -2
  334. package/dist/src/views/examples/CheckoutFormExample.d.ts +0 -2
  335. package/dist/src/views/examples/ContactFormExample.d.ts +0 -2
  336. package/dist/src/views/examples/RegistrationFormExample.d.ts +0 -2
  337. package/dist/src/views/examples/SettingsFormExample.d.ts +0 -2
  338. package/dist/src/views/forms/ValidationPage.d.ts +0 -2
  339. package/dist/src/views/inputs/CheckboxPage.d.ts +0 -2
  340. package/dist/src/views/inputs/ComboboxPage.d.ts +0 -2
  341. package/dist/src/views/inputs/DatepickerPage.d.ts +0 -2
  342. package/dist/src/views/inputs/EmailPage.d.ts +0 -2
  343. package/dist/src/views/inputs/FileDropzonePage.d.ts +0 -2
  344. package/dist/src/views/inputs/MiscInputsPage.d.ts +0 -2
  345. package/dist/src/views/inputs/PhonePage.d.ts +0 -2
  346. package/dist/src/views/inputs/SelectPage.d.ts +0 -2
  347. package/dist/src/views/inputs/SelectTextPage.d.ts +0 -2
  348. package/dist/src/views/inputs/SwitchGroupPage.d.ts +0 -2
  349. package/dist/src/views/inputs/SwitchPage.d.ts +0 -2
  350. package/dist/src/views/inputs/TextAreaPage.d.ts +0 -2
  351. package/dist/src/views/layouts/CardLayoutPage.d.ts +0 -2
  352. package/dist/src/views/layouts/DashboardLayoutPage.d.ts +0 -2
  353. package/dist/src/views/layouts/HeaderLayoutPage.d.ts +0 -2
  354. package/dist/src/views/layouts/SidebarLayoutPage.d.ts +0 -2
  355. package/dist/ui.css +0 -1
@@ -1,11 +1,12 @@
1
- import { defineComponent as Pe, inject as Le, ref as f, computed as u, toRef as Oe, watch as M, nextTick as ie, onMounted as Re, onUnmounted as Te, createBlock as O, openBlock as y, unref as b, withCtx as R, createElementVNode as i, normalizeClass as I, createVNode as B, createElementBlock as Y, createCommentVNode as D, renderSlot as Ae, toDisplayString as W, Teleport as Me, Transition as Be, normalizeStyle as De, withDirectives as Ue, withModifiers as Z, vModelText as Fe, Fragment as He, renderList as Ge, withKeys as Ke } from "vue";
2
- import { useField as qe } from "vee-validate";
3
- import { Listbox as Ye, ListboxButton as je, ListboxOptions as ze, ListboxOption as $e } from "@headlessui/vue";
4
- import { ChevronDownIcon as _e, CheckIcon as We, ExclamationCircleIcon as Ze, CheckCircleIcon as Je } from "@heroicons/vue/20/solid";
5
- import Xe from "../forms/FormFieldWrapper.js";
6
- import { g as Qe } from "../id-DafBB_QF.js";
7
- import { AsYouType as X, validatePhoneNumberLength as ea, parsePhoneNumberFromString as aa } from "libphonenumber-js";
8
- import { _ as la } from "../_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineComponent as Pe, inject as Le, ref as f, computed as i, toRef as Re, watch as M, nextTick as ie, onMounted as Te, onUnmounted as Ae, createBlock as L, openBlock as C, unref as b, withCtx as R, createElementVNode as u, normalizeClass as I, createVNode as B, createElementBlock as Y, createCommentVNode as D, renderSlot as Me, toDisplayString as W, Teleport as Be, Transition as De, normalizeStyle as Ue, withDirectives as Fe, withModifiers as Z, vModelText as He, Fragment as Ge, renderList as Ke, withKeys as qe } from "vue";
2
+ import { useField as Ye } from "vee-validate";
3
+ import { Listbox as je, ListboxButton as ze, ListboxOptions as $e, ListboxOption as _e } from "@headlessui/vue";
4
+ import { ChevronDownIcon as We, CheckIcon as Ze, ExclamationCircleIcon as Je, CheckCircleIcon as Xe } from "@heroicons/vue/20/solid";
5
+ import Qe from "../forms/FormFieldWrapper.js";
6
+ import { g as ea } from "../id-DafBB_QF.js";
7
+ import { i as aa } from "../validation-Dzczp6MS.js";
8
+ import { AsYouType as X, validatePhoneNumberLength as la, parsePhoneNumberFromString as ta } from "libphonenumber-js";
9
+ import { _ as oa } from "../_plugin-vue_export-helper-CHgC5LLL.js";
9
10
  const E = {
10
11
  US: { code: "US", name: "United States", dialCode: "+1" },
11
12
  CA: { code: "CA", name: "Canada", dialCode: "+1" },
@@ -75,13 +76,13 @@ const E = {
75
76
  }, ue = Object.values(E).sort(
76
77
  (a, s) => a.name.localeCompare(s.name)
77
78
  );
78
- function ta(a) {
79
+ function sa(a) {
79
80
  return E[a]?.dialCode ?? "+1";
80
81
  }
81
82
  function T(a, s, v = {}) {
82
- const { required: t = !1 } = v;
83
+ const { required: l = !1 } = v;
83
84
  if (!a || a.trim() === "")
84
- return t ? {
85
+ return l ? {
85
86
  isValid: !1,
86
87
  errorMessage: "Phone number is required",
87
88
  errorCode: "EMPTY"
@@ -100,23 +101,23 @@ function T(a, s, v = {}) {
100
101
  errorCode: "TOO_SHORT"
101
102
  };
102
103
  try {
103
- const C = new X(s);
104
- C.input(n);
105
- const p = C.getNumber();
106
- if (!p)
104
+ const p = new X(s);
105
+ p.input(n);
106
+ const y = p.getNumber();
107
+ if (!y)
107
108
  return {
108
109
  isValid: !1,
109
110
  errorMessage: `Invalid format for ${E[s]?.name || "selected country"}`,
110
111
  errorCode: "INVALID_FORMAT"
111
112
  };
112
- if (!p.isPossible())
113
+ if (!y.isPossible())
113
114
  return {
114
115
  isValid: !1,
115
116
  errorMessage: `Not a possible phone number for ${E[s]?.name || "this country"}`,
116
117
  errorCode: "NOT_POSSIBLE"
117
118
  };
118
- const w = ea(
119
- p.nationalNumber || n,
119
+ const w = la(
120
+ y.nationalNumber || n,
120
121
  s
121
122
  );
122
123
  if (w) {
@@ -134,26 +135,26 @@ function T(a, s, v = {}) {
134
135
  }
135
136
  return {
136
137
  isValid: !0,
137
- e164: p.number,
138
- national: p.formatNational(),
139
- international: p.formatInternational(),
140
- country: p.country
138
+ e164: y.number,
139
+ national: y.formatNational(),
140
+ international: y.formatInternational(),
141
+ country: y.country
141
142
  };
142
- } catch (C) {
143
- return console.error("Phone validation error:", C), {
143
+ } catch (p) {
144
+ return console.error("Phone validation error:", p), {
144
145
  isValid: !1,
145
146
  errorMessage: "Invalid phone number format",
146
147
  errorCode: "INVALID_FORMAT"
147
148
  };
148
149
  }
149
150
  }
150
- function oa(a, s = "US") {
151
+ function ra(a, s = "US") {
151
152
  if (!a) return "";
152
153
  try {
153
154
  const v = new X(s);
154
155
  v.input(a);
155
- const t = v.getNumber();
156
- return t ? t.formatNational() : a.replace(/^\+[0-9]{1,3}/, "").trim();
156
+ const l = v.getNumber();
157
+ return l ? l.formatNational() : a.replace(/^\+[0-9]{1,3}/, "").trim();
157
158
  } catch (v) {
158
159
  return console.error("Error formatting phone number:", v), a || "";
159
160
  }
@@ -162,7 +163,7 @@ function J(a, s = "US") {
162
163
  if (!a)
163
164
  return { formatted: "", numberObject: void 0 };
164
165
  try {
165
- const v = a.replace(/(?!^\+)[^0-9]/g, ""), t = new X(s), n = t.input(v), h = t.getNumber();
166
+ const v = a.replace(/(?!^\+)[^0-9]/g, ""), l = new X(s), n = l.input(v), h = l.getNumber();
166
167
  return { formatted: n, numberObject: h };
167
168
  } catch (v) {
168
169
  return console.error("Error formatting phone number:", v), { formatted: a, numberObject: void 0 };
@@ -171,13 +172,13 @@ function J(a, s = "US") {
171
172
  function ce(a) {
172
173
  if (!(!a || !a.startsWith("+")))
173
174
  try {
174
- const s = aa(a);
175
+ const s = ta(a);
175
176
  if (s?.country)
176
177
  return s.country;
177
178
  } catch {
178
179
  }
179
180
  }
180
- function sa(a) {
181
+ function na(a) {
181
182
  return {
182
183
  US: "(555) 123-4567",
183
184
  CA: "(555) 123-4567",
@@ -191,16 +192,16 @@ function sa(a) {
191
192
  MX: "55 1234 5678"
192
193
  }[a] || E[a]?.dialCode || "";
193
194
  }
194
- function ra(a) {
195
- return sa(a) || "Enter phone number";
195
+ function da(a) {
196
+ return na(a) || "Enter phone number";
196
197
  }
197
- const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-bg-white dark:sl-bg-slate-800 sl-px-2 sl-py-2 sl-border-b sl-border-gray-100 dark:sl-border-slate-700" }, ua = { class: "sl-max-h-56 sl-overflow-y-auto sl-overscroll-contain" }, ca = { class: "sl-flex sl-items-center sl-gap-3" }, ma = { class: "sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-bg-gray-100 sl-shadow-sm" }, fa = ["src", "alt"], va = { class: "sl-font-medium sl-w-12" }, ga = {
198
+ const ia = ["src", "alt"], ua = { class: "sl-font-medium" }, ca = { class: "sl-bg-white dark:sl-bg-slate-800 sl-px-2 sl-py-2 sl-border-b sl-border-gray-100 dark:sl-border-slate-700" }, ma = { class: "sl-max-h-56 sl-overflow-y-auto sl-overscroll-contain" }, fa = { class: "sl-flex sl-items-center sl-gap-3" }, va = { class: "sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-bg-gray-100 sl-shadow-sm" }, ga = ["src", "alt"], ha = { class: "sl-font-medium sl-w-12" }, pa = {
198
199
  key: 0,
199
200
  class: "sl-px-3 sl-py-4 sl-text-sm sl-text-gray-500 dark:sl-text-gray-300 sl-text-center"
200
- }, ha = ["id", "name", "value", "placeholder", "autocomplete", "disabled", "aria-describedby", "aria-invalid", "onKeydown"], Ca = {
201
+ }, Ca = ["id", "name", "value", "placeholder", "autocomplete", "disabled", "aria-describedby", "aria-invalid", "onKeydown"], ya = {
201
202
  key: 0,
202
203
  class: "sl-flex sl-items-center sl-pr-3 sl-pointer-events-none"
203
- }, ya = /* @__PURE__ */ Pe({
204
+ }, ba = /* @__PURE__ */ Pe({
204
205
  __name: "PhoneInput",
205
206
  props: {
206
207
  name: {
@@ -278,22 +279,22 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
278
279
  },
279
280
  emits: ["update:modelValue", "update:value", "update:country", "update-metadata", "submit", "focus", "blur", "validated"],
280
281
  setup(a, { expose: s, emit: v }) {
281
- const t = a, n = v, h = Le("phoneInput", {}), C = f(null), p = f(null), w = f(null), S = f(null), U = f({ top: 0, left: 0 }), k = u(() => Qe(t.name)), j = Oe(t, "name"), Q = u(() => t.modelValue ?? t.value ?? ""), r = f(
282
- t.defaultCountry || h.defaultCountry || "US"
282
+ const l = a, n = v, h = Le("phoneInput", {}), p = f(null), y = f(null), w = f(null), S = f(null), U = f({ top: 0, left: 0 }), k = i(() => ea(l.name)), j = Re(l, "name"), Q = i(() => l.modelValue ?? l.value ?? ""), r = f(
283
+ l.defaultCountry || h.defaultCountry || "US"
283
284
  ), V = f(""), c = f(""), m = f(""), F = f(""), N = f(!1), ee = f(!1), {
284
285
  meta: A,
285
286
  errorMessage: me,
286
287
  handleBlur: fe,
287
288
  handleChange: ae,
288
289
  setTouched: ve
289
- } = qe(j, t.rules, {
290
+ } = Ye(j, l.rules, {
290
291
  initialValue: Q.value
291
- }), le = u(() => E[r.value] || E.US), z = u({
292
+ }), le = i(() => E[r.value] || E.US), ge = i(() => l.required ? !1 : aa(l.rules)), z = i({
292
293
  get: () => le.value,
293
294
  set: (e) => {
294
295
  e && e.code !== r.value && de(e.code);
295
296
  }
296
- }), ge = u(() => ta(r.value)), he = u(() => t.placeholder || ra(r.value)), $ = u(() => F.value || me.value), H = u(() => !!$.value && (A.touched || t.showErrors)), Ce = u(() => (H.value || N.value && t.colorfulValidation) && (A.touched || t.showErrors)), te = u(() => N.value && !!c.value && !F.value && t.colorfulValidation), ye = u(() => t.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-600" : H.value ? "sl-ring-red-500 focus-within:sl-ring-red-500" : te.value && t.colorfulValidation ? "sl-ring-green-500 focus-within:sl-ring-green-500" : "sl-ring-gray-300 dark:sl-ring-slate-600 focus-within:sl-ring-primary-600"), pe = u(() => ({
297
+ }), he = i(() => sa(r.value)), pe = i(() => l.placeholder || da(r.value)), $ = i(() => F.value || me.value), H = i(() => !!$.value && (A.touched || l.showErrors)), Ce = i(() => (H.value || N.value && l.colorfulValidation) && (A.touched || l.showErrors)), te = i(() => N.value && !!c.value && !F.value && l.colorfulValidation), ye = i(() => l.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-600" : H.value ? "sl-ring-red-500 focus-within:sl-ring-red-500" : te.value && l.colorfulValidation ? "sl-ring-green-500 focus-within:sl-ring-green-500" : "sl-ring-gray-300 dark:sl-ring-slate-600 focus-within:sl-ring-primary-600"), be = i(() => ({
297
298
  top: `${U.value.top}px`,
298
299
  left: `${U.value.left}px`
299
300
  })), oe = async () => {
@@ -306,48 +307,48 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
306
307
  };
307
308
  }
308
309
  }, G = () => {
309
- P.value && oe();
310
- }, P = f(!1), be = () => {
311
- P.value = !P.value, P.value && oe();
310
+ O.value && oe();
311
+ }, O = f(!1), we = () => {
312
+ O.value = !O.value, O.value && oe();
312
313
  };
313
314
  M(z, () => {
314
- P.value = !1;
315
+ O.value = !1;
315
316
  });
316
317
  const se = (e) => {
317
318
  const o = e.target;
318
- w.value && !w.value.contains(o) && !o.closest('[role="listbox"]') && (P.value = !1);
319
- }, we = u(() => {
319
+ w.value && !w.value.contains(o) && !o.closest('[role="listbox"]') && (O.value = !1);
320
+ }, xe = i(() => {
320
321
  const e = [];
321
- return $.value && e.push(`${k.value}-error`), t.hint && e.push(`${k.value}-hint`), e.length > 0 ? e.join(" ") : void 0;
322
- }), re = u(() => {
322
+ return $.value && e.push(`${k.value}-error`), l.hint && e.push(`${k.value}-hint`), e.length > 0 ? e.join(" ") : void 0;
323
+ }), re = i(() => {
323
324
  let e = [...ue];
324
325
  if (h.preferredCountries?.length) {
325
- const l = e.filter(
326
+ const t = e.filter(
326
327
  (g) => h.preferredCountries.includes(g.code)
327
328
  ), d = e.filter(
328
329
  (g) => !h.preferredCountries.includes(g.code)
329
330
  );
330
- e = [...l, ...d];
331
+ e = [...t, ...d];
331
332
  }
332
333
  if (h.excludedCountries?.length && (e = e.filter(
333
- (l) => !h.excludedCountries.includes(l.code)
334
+ (t) => !h.excludedCountries.includes(t.code)
334
335
  )), !V.value) return e;
335
336
  const o = V.value.toLowerCase();
336
337
  return e.filter(
337
- (l) => l.name.toLowerCase().includes(o) || l.dialCode.includes(o) || l.code.toLowerCase().includes(o)
338
+ (t) => t.name.toLowerCase().includes(o) || t.dialCode.includes(o) || t.code.toLowerCase().includes(o)
338
339
  );
339
- }), ne = (e) => `https://flagcdn.com/w40/${e.toLowerCase()}.png`, xe = (e) => {
340
+ }), ne = (e) => `https://flagcdn.com/w40/${e.toLowerCase()}.png`, Ie = (e) => {
340
341
  const o = e.target;
341
342
  o.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239ca3af"%3E%3Cpath d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/%3E%3C/svg%3E';
342
343
  }, de = (e) => {
343
344
  if (r.value = e, V.value = "", n("update:country", e), ee.value && c.value) {
344
- const { formatted: o, numberObject: l } = J(c.value, e);
345
- c.value = o, l?.number && (m.value = l.number, L(l.number));
346
- const d = T(c.value, e, { required: t.required });
345
+ const { formatted: o, numberObject: t } = J(c.value, e);
346
+ c.value = o, t?.number && (m.value = t.number, P(t.number));
347
+ const d = T(c.value, e, { required: l.required });
347
348
  K(d);
348
349
  }
349
350
  ie(() => {
350
- C.value?.focus();
351
+ p.value?.focus();
351
352
  });
352
353
  }, K = (e) => {
353
354
  N.value = e.isValid, F.value = e.errorMessage || "", n("validated", e), n("update-metadata", {
@@ -355,78 +356,78 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
355
356
  valid: e.isValid,
356
357
  e164: e.e164
357
358
  });
358
- }, L = (e) => {
359
+ }, P = (e) => {
359
360
  n("update:modelValue", e), n("update:value", e);
360
- }, Ie = (e) => {
361
- const o = e.target, l = o.value;
361
+ }, Ee = (e) => {
362
+ const o = e.target, t = o.value;
362
363
  if (ue.some(
363
- (q) => q.name.toLowerCase() === l.toLowerCase() || q.code.toLowerCase() === l.toLowerCase()
364
+ (q) => q.name.toLowerCase() === t.toLowerCase() || q.code.toLowerCase() === t.toLowerCase()
364
365
  )) return;
365
- if (!l.trim()) {
366
- c.value = "", m.value = "", L(""), ae(e);
367
- const q = T("", r.value, { required: t.required });
366
+ if (!t.trim()) {
367
+ c.value = "", m.value = "", P(""), ae(e);
368
+ const q = T("", r.value, { required: l.required });
368
369
  K(q);
369
370
  return;
370
371
  }
371
- const { formatted: g, numberObject: x } = J(l, r.value);
372
- c.value = g, o.value = g, x?.number ? (m.value = x.number, L(x.number)) : (m.value = "", L(""));
373
- const Ve = T(g, r.value, { required: t.required });
374
- K(Ve), ae(e);
375
- }, Ee = async (e) => {
372
+ const { formatted: g, numberObject: x } = J(t, r.value);
373
+ c.value = g, o.value = g, x?.number ? (m.value = x.number, P(x.number)) : (m.value = "", P(""));
374
+ const Oe = T(g, r.value, { required: l.required });
375
+ K(Oe), ae(e);
376
+ }, Se = async (e) => {
376
377
  e.preventDefault();
377
378
  const o = e.clipboardData?.getData("text") || "";
378
379
  if (!o) return;
379
- if (t.autoDetectCountry && o.startsWith("+")) {
380
+ if (l.autoDetectCountry && o.startsWith("+")) {
380
381
  const x = ce(o);
381
382
  x && x !== r.value && (r.value = x, n("update:country", x));
382
383
  }
383
- const { formatted: l, numberObject: d } = J(o, r.value);
384
- c.value = l, C.value && (C.value.value = l), d?.number ? (m.value = d.number, L(d.number)) : (m.value = "", L(""));
385
- const g = T(l, r.value, { required: t.required });
384
+ const { formatted: t, numberObject: d } = J(o, r.value);
385
+ c.value = t, p.value && (p.value.value = t), d?.number ? (m.value = d.number, P(d.number)) : (m.value = "", P(""));
386
+ const g = T(t, r.value, { required: l.required });
386
387
  K(g);
387
- }, Se = (e) => {
388
+ }, ke = (e) => {
388
389
  fe(e), ve(!0), n("blur");
389
- }, ke = () => {
390
- n("focus");
391
390
  }, Ne = () => {
391
+ n("focus");
392
+ }, Ve = () => {
392
393
  A.valid && N.value && m.value && n("submit");
393
394
  }, _ = (e) => {
394
395
  if (!e) {
395
- c.value = "", m.value = "", N.value = !t.required, F.value = "";
396
+ c.value = "", m.value = "", N.value = !l.required, F.value = "";
396
397
  return;
397
398
  }
398
- if (t.autoDetectCountry && e.startsWith("+")) {
399
+ if (l.autoDetectCountry && e.startsWith("+")) {
399
400
  const d = ce(e);
400
401
  d && (r.value = d, n("update:country", d));
401
402
  }
402
- const o = oa(e, r.value);
403
+ const o = ra(e, r.value);
403
404
  c.value = o, m.value = e.startsWith("+") ? e : "";
404
- const l = T(o, r.value, { required: t.required });
405
- N.value = l.isValid, l.e164 && (m.value = l.e164);
405
+ const t = T(o, r.value, { required: l.required });
406
+ N.value = t.isValid, t.e164 && (m.value = t.e164);
406
407
  };
407
408
  return s({
408
- focus: () => C.value?.focus(),
409
- blur: () => C.value?.blur(),
410
- validate: () => T(c.value, r.value, { required: t.required }),
409
+ focus: () => p.value?.focus(),
410
+ blur: () => p.value?.blur(),
411
+ validate: () => T(c.value, r.value, { required: l.required }),
411
412
  getE164: () => m.value,
412
413
  getCountry: () => r.value,
413
414
  setCountry: (e) => de(e)
414
- }), Re(() => {
415
- ee.value = !0, _(Q.value), window.addEventListener("scroll", G, !0), window.addEventListener("resize", G), document.addEventListener("click", se);
416
415
  }), Te(() => {
416
+ ee.value = !0, _(Q.value), window.addEventListener("scroll", G, !0), window.addEventListener("resize", G), document.addEventListener("click", se);
417
+ }), Ae(() => {
417
418
  window.removeEventListener("scroll", G, !0), window.removeEventListener("resize", G), document.removeEventListener("click", se);
418
- }), M(() => t.modelValue, (e) => {
419
+ }), M(() => l.modelValue, (e) => {
419
420
  e !== m.value && _(e);
420
- }, { immediate: !1 }), M(() => t.value, (e) => {
421
+ }, { immediate: !1 }), M(() => l.value, (e) => {
421
422
  e !== m.value && _(e);
422
- }, { immediate: !1 }), M(() => t.defaultCountry, (e) => {
423
+ }, { immediate: !1 }), M(() => l.defaultCountry, (e) => {
423
424
  e && !c.value && (r.value = e);
424
425
  }), M(V, () => {
425
- }), (e, o) => (y(), O(Xe, {
426
+ }), (e, o) => (C(), L(Qe, {
426
427
  id: k.value,
427
428
  name: j.value,
428
429
  label: a.label,
429
- optional: !a.required,
430
+ optional: ge.value,
430
431
  "error-message": $.value,
431
432
  "success-message": a.successMessage,
432
433
  "is-valid": N.value,
@@ -439,46 +440,46 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
439
440
  "colorful-validation": a.colorfulValidation
440
441
  }, {
441
442
  default: R(() => [
442
- i("div", {
443
+ u("div", {
443
444
  class: I(["sl-flex sl-rounded-md sl-ring-1 sl-ring-inset", [
444
445
  ye.value,
445
446
  a.disabled ? "sl-bg-gray-50 dark:sl-bg-slate-800 sl-shadow-none" : "sl-bg-white dark:sl-bg-slate-800 sl-shadow-sm focus-within:sl-ring-2 focus-within:sl-ring-inset"
446
447
  ]])
447
448
  }, [
448
- B(b(Ye), {
449
+ B(b(je), {
449
450
  modelValue: z.value,
450
- "onUpdate:modelValue": o[3] || (o[3] = (l) => z.value = l),
451
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => z.value = t),
451
452
  disabled: a.disabled,
452
453
  as: "div",
453
454
  class: "sl-relative sl-flex-shrink-0"
454
455
  }, {
455
456
  default: R(() => [
456
- i("div", {
457
+ u("div", {
457
458
  ref_key: "countryButtonRef",
458
459
  ref: w,
459
460
  class: "sl-h-full"
460
461
  }, [
461
- B(b(je), {
462
+ B(b(ze), {
462
463
  disabled: a.disabled,
463
464
  class: I(["sl-flex sl-items-center sl-gap-1.5 sl-h-full sl-pl-3 sl-pr-2 sl-border-r sl-text-sm focus:sl-outline-none sl-transition-colors", [
464
465
  a.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-border-gray-200 dark:sl-border-slate-600 sl-bg-transparent" : "sl-text-gray-700 dark:sl-text-gray-100 sl-border-gray-300 dark:sl-border-slate-600 hover:sl-bg-gray-50 dark:hover:sl-bg-slate-700 sl-cursor-pointer"
465
466
  ]]),
466
467
  "data-testid": "country-selector",
467
- onClick: be
468
+ onClick: we
468
469
  }, {
469
470
  default: R(() => [
470
- i("span", {
471
+ u("span", {
471
472
  class: I(["sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-shadow-sm", a.disabled ? "sl-opacity-60 sl-bg-gray-200" : "sl-bg-gray-100"])
472
473
  }, [
473
- i("img", {
474
+ u("img", {
474
475
  src: ne(r.value),
475
476
  alt: le.value.name,
476
477
  class: I(["sl-w-full sl-h-full sl-object-cover", { "sl-grayscale sl-opacity-75": a.disabled }]),
477
- onError: xe
478
- }, null, 42, na)
478
+ onError: Ie
479
+ }, null, 42, ia)
479
480
  ], 2),
480
- i("span", da, W(ge.value), 1),
481
- a.disabled ? D("", !0) : (y(), O(b(_e), {
481
+ u("span", ua, W(he.value), 1),
482
+ a.disabled ? D("", !0) : (C(), L(b(We), {
482
483
  key: 0,
483
484
  class: "sl-h-4 sl-w-4 sl-text-gray-400",
484
485
  "aria-hidden": "true"
@@ -487,8 +488,8 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
487
488
  _: 1
488
489
  }, 8, ["disabled", "class"])
489
490
  ], 512),
490
- (y(), O(Me, { to: "body" }, [
491
- B(Be, {
491
+ (C(), L(Be, { to: "body" }, [
492
+ B(De, {
492
493
  "enter-active-class": "sl-transition sl-duration-100 sl-ease-out",
493
494
  "enter-from-class": "sl-transform sl-scale-95 sl-opacity-0",
494
495
  "enter-to-class": "sl-transform sl-scale-100 sl-opacity-100",
@@ -497,18 +498,18 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
497
498
  "leave-to-class": "sl-transform sl-scale-95 sl-opacity-0"
498
499
  }, {
499
500
  default: R(() => [
500
- B(b(ze), {
501
+ B(b($e), {
501
502
  ref_key: "dropdownRef",
502
503
  ref: S,
503
- style: De([pe.value, { "z-index": "9999" }]),
504
+ style: Ue([be.value, { "z-index": "9999" }]),
504
505
  class: "sl-fixed sl-w-72 sl-rounded-lg sl-bg-white dark:sl-bg-slate-800 sl-text-sm sl-shadow-xl sl-ring-1 sl-ring-black dark:sl-ring-slate-600 sl-ring-opacity-5 focus:sl-outline-none sl-overflow-hidden"
505
506
  }, {
506
507
  default: R(() => [
507
- i("div", ia, [
508
- Ue(i("input", {
508
+ u("div", ca, [
509
+ Fe(u("input", {
509
510
  ref_key: "searchInputRef",
510
- ref: p,
511
- "onUpdate:modelValue": o[0] || (o[0] = (l) => V.value = l),
511
+ ref: y,
512
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => V.value = t),
512
513
  type: "text",
513
514
  class: "sl-w-full sl-px-3 sl-py-1.5 sl-text-sm sl-border sl-border-gray-300 dark:sl-border-slate-600 sl-rounded-md sl-bg-white dark:sl-bg-slate-700 sl-text-gray-900 dark:sl-text-gray-100 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-500 focus:sl-border-primary-500",
514
515
  placeholder: "Search countries...",
@@ -517,45 +518,45 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
517
518
  onKeydown: o[2] || (o[2] = Z(() => {
518
519
  }, ["stop"]))
519
520
  }, null, 544), [
520
- [Fe, V.value]
521
+ [He, V.value]
521
522
  ])
522
523
  ]),
523
- i("div", ua, [
524
- (y(!0), Y(He, null, Ge(re.value, (l) => (y(), O(b($e), {
525
- key: l.code,
526
- value: l,
524
+ u("div", ma, [
525
+ (C(!0), Y(Ge, null, Ke(re.value, (t) => (C(), L(b(_e), {
526
+ key: t.code,
527
+ value: t,
527
528
  as: "template"
528
529
  }, {
529
530
  default: R(({ active: d, selected: g }) => [
530
- i("li", {
531
+ u("li", {
531
532
  class: I([
532
533
  "sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-3 sl-pr-9",
533
534
  d ? "sl-bg-primary-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-gray-100"
534
535
  ]),
535
536
  "data-testid": "country-option"
536
537
  }, [
537
- i("div", ca, [
538
- i("span", ma, [
539
- i("img", {
540
- src: ne(l.code),
541
- alt: l.name,
538
+ u("div", fa, [
539
+ u("span", va, [
540
+ u("img", {
541
+ src: ne(t.code),
542
+ alt: t.name,
542
543
  class: "sl-w-full sl-h-full sl-object-cover",
543
544
  loading: "lazy"
544
- }, null, 8, fa)
545
+ }, null, 8, ga)
545
546
  ]),
546
- i("span", va, W(l.dialCode), 1),
547
- i("span", {
547
+ u("span", ha, W(t.dialCode), 1),
548
+ u("span", {
548
549
  class: I(["sl-truncate", g ? "sl-font-medium" : "sl-font-normal"])
549
- }, W(l.name), 3)
550
+ }, W(t.name), 3)
550
551
  ]),
551
- g ? (y(), Y("span", {
552
+ g ? (C(), Y("span", {
552
553
  key: 0,
553
554
  class: I([
554
555
  "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-4",
555
556
  d ? "sl-text-white" : "sl-text-primary-600"
556
557
  ])
557
558
  }, [
558
- B(b(We), {
559
+ B(b(Ze), {
559
560
  class: "sl-h-5 sl-w-5",
560
561
  "aria-hidden": "true"
561
562
  })
@@ -564,7 +565,7 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
564
565
  ]),
565
566
  _: 2
566
567
  }, 1032, ["value"]))), 128)),
567
- re.value.length === 0 ? (y(), Y("li", ga, " No countries found ")) : D("", !0)
568
+ re.value.length === 0 ? (C(), Y("li", pa, " No countries found ")) : D("", !0)
568
569
  ])
569
570
  ]),
570
571
  _: 1
@@ -576,50 +577,50 @@ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-b
576
577
  ]),
577
578
  _: 1
578
579
  }, 8, ["modelValue", "disabled"]),
579
- i("input", {
580
+ u("input", {
580
581
  ref_key: "inputRef",
581
- ref: C,
582
+ ref: p,
582
583
  id: k.value,
583
584
  name: j.value,
584
585
  type: "tel",
585
586
  value: c.value,
586
- placeholder: a.disabled ? "" : he.value,
587
+ placeholder: a.disabled ? "" : pe.value,
587
588
  autocomplete: a.autoComplete,
588
589
  inputmode: "tel",
589
590
  enterkeyhint: "go",
590
591
  disabled: a.disabled,
591
- "aria-describedby": we.value,
592
+ "aria-describedby": xe.value,
592
593
  "aria-invalid": H.value,
593
594
  class: I(["sl-block sl-flex-1 sl-min-w-0 sl-border-0 sl-bg-transparent sl-py-2 sl-px-3 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
594
595
  a.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-placeholder:text-gray-300 dark:sl-placeholder:text-gray-500" : "sl-text-gray-800 dark:sl-text-gray-100 sl-placeholder:text-gray-400 dark:sl-placeholder:text-gray-400"
595
596
  ]]),
596
- onInput: Ie,
597
- onBlur: Se,
598
- onFocus: ke,
599
- onKeydown: Ke(Z(Ne, ["prevent"]), ["enter"]),
600
- onPaste: Ee,
597
+ onInput: Ee,
598
+ onBlur: ke,
599
+ onFocus: Ne,
600
+ onKeydown: qe(Z(Ve, ["prevent"]), ["enter"]),
601
+ onPaste: Se,
601
602
  "data-testid": "phone-input"
602
- }, null, 42, ha),
603
- Ce.value ? (y(), Y("div", Ca, [
604
- H.value ? (y(), O(b(Ze), {
603
+ }, null, 42, Ca),
604
+ Ce.value ? (C(), Y("div", ya, [
605
+ H.value ? (C(), L(b(Je), {
605
606
  key: 0,
606
607
  class: "sl-h-5 sl-w-5 sl-text-red-500",
607
608
  "aria-hidden": "true",
608
609
  "data-testid": "error-icon"
609
- })) : te.value ? (y(), O(b(Je), {
610
+ })) : te.value ? (C(), L(b(Xe), {
610
611
  key: 1,
611
612
  class: "sl-h-5 sl-w-5 sl-text-green-500",
612
613
  "aria-hidden": "true",
613
614
  "data-testid": "success-icon"
614
615
  })) : D("", !0)
615
616
  ])) : D("", !0),
616
- Ae(e.$slots, "input-right", {}, void 0, !0)
617
+ Me(e.$slots, "input-right", {}, void 0, !0)
617
618
  ], 2)
618
619
  ]),
619
620
  _: 3
620
621
  }, 8, ["id", "name", "label", "optional", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "tertiary-label", "disabled", "disabled-message", "colorful-validation"]));
621
622
  }
622
- }), Pa = /* @__PURE__ */ la(ya, [["__scopeId", "data-v-7a799fd8"]]);
623
+ }), Ra = /* @__PURE__ */ oa(ba, [["__scopeId", "data-v-efbeb626"]]);
623
624
  export {
624
- Pa as default
625
+ Ra as default
625
626
  };
@@ -1 +1,3 @@
1
- export {}
1
+ export * from '../src/components/inputs/RichTextInput'
2
+ import StachelockUI from '../src/components/inputs/RichTextInput'
3
+ export default StachelockUI
@@ -1 +1,3 @@
1
- export {}
1
+ export * from '../src/components/inputs/SelectInput'
2
+ import StachelockUI from '../src/components/inputs/SelectInput'
3
+ export default StachelockUI
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SelectInput.vue_vue_type_script_setup_true_lang-DFfKsmvj.js";
1
+ import { _ as f } from "../SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1 +1,3 @@
1
- export {}
1
+ export * from '../src/components/inputs/SelectTextInput'
2
+ import StachelockUI from '../src/components/inputs/SelectTextInput'
3
+ export default StachelockUI
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SelectTextInput.vue_vue_type_script_setup_true_lang-C3BGLjY1.js";
1
+ import { _ as f } from "../SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1 +1,3 @@
1
- export {}
1
+ export * from '../src/components/inputs/SwitchInput'
2
+ import StachelockUI from '../src/components/inputs/SwitchInput'
3
+ export default StachelockUI
@@ -1 +1,3 @@
1
- export {}
1
+ export * from '../src/components/inputs/SwitchInputGroup'
2
+ import StachelockUI from '../src/components/inputs/SwitchInputGroup'
3
+ export default StachelockUI