@stachelock/ui 0.6.7 → 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 (353) hide show
  1. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-CA_C4dmn.js → CalendarHeader.vue_vue_type_script_setup_true_lang-Cbgbb2e5.js} +2 -2
  2. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js +368 -0
  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/{EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js → EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js} +51 -49
  5. package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-slNq2sot.js → InlineTabs.vue_vue_type_script_setup_true_lang-BWzrSbT3.js} +1 -1
  6. package/dist/{MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js → MonthCalendar.vue_vue_type_style_index_0_lang-BdrrlrNr.js} +1 -1
  7. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js +327 -0
  8. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js +304 -0
  9. package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-pEKm-uUq.js → TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js} +1 -1
  10. package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang--IKyRPkX.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js} +1 -1
  11. package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-EG0nj4F6.js → TabsInPills.vue_vue_type_script_setup_true_lang-mw68ZzS1.js} +1 -1
  12. package/dist/{calendar-DLry-Vik.js → calendar-DaXCwXP5.js} +1 -1
  13. package/dist/calendars/CalendarDashboard.d.ts +3 -1
  14. package/dist/calendars/CalendarDashboard.js +2 -2
  15. package/dist/calendars/CalendarHeader.d.ts +3 -1
  16. package/dist/calendars/CalendarHeader.js +1 -1
  17. package/dist/calendars/DayCalendar.d.ts +3 -1
  18. package/dist/calendars/DayCalendar.js +1 -1
  19. package/dist/calendars/EventCard.d.ts +3 -1
  20. package/dist/calendars/EventsList.d.ts +3 -1
  21. package/dist/calendars/MonthCalendar.d.ts +3 -1
  22. package/dist/calendars/MonthCalendar.js +1 -1
  23. package/dist/calendars/WeekCalendar.d.ts +3 -1
  24. package/dist/calendars/WeekCalendar.js +2 -2
  25. package/dist/calendars/YearCalendar.d.ts +3 -1
  26. package/dist/charts/BarChart.d.ts +3 -1
  27. package/dist/charts/BaseChart.d.ts +3 -1
  28. package/dist/charts/FunnelChart.d.ts +3 -1
  29. package/dist/charts/LineChart.d.ts +3 -1
  30. package/dist/charts/PieChart.d.ts +3 -1
  31. package/dist/charts/SparklineChart.d.ts +3 -1
  32. package/dist/charts/StatCard.d.ts +3 -1
  33. package/dist/charts/chartTheme.d.ts +0 -3
  34. package/dist/charts/index.d.ts +0 -1
  35. package/dist/components/Avatar.d.ts +3 -1
  36. package/dist/components/Badge.d.ts +3 -1
  37. package/dist/components/Banner.d.ts +3 -1
  38. package/dist/components/Breadcrumb.d.ts +3 -1
  39. package/dist/components/Button.d.ts +3 -1
  40. package/dist/components/ButtonGroup.d.ts +3 -1
  41. package/dist/components/Checkbox.d.ts +3 -1
  42. package/dist/components/CloudinaryImage.d.ts +3 -1
  43. package/dist/components/CloudinaryImage.js +52 -52
  44. package/dist/components/Loading.d.ts +3 -1
  45. package/dist/components/LoadingDots.d.ts +3 -1
  46. package/dist/components/LottieAnimation.d.ts +3 -1
  47. package/dist/components/Menu.d.ts +3 -1
  48. package/dist/components/Modal.d.ts +3 -1
  49. package/dist/components/NavLink.d.ts +3 -1
  50. package/dist/components/ProgressBar.d.ts +3 -1
  51. package/dist/components/RadialProgressBar.d.ts +3 -1
  52. package/dist/components/Table.d.ts +3 -1
  53. package/dist/components/Transition.d.ts +3 -1
  54. package/dist/composables/index.d.ts +0 -1
  55. package/dist/composables/useCalendar.d.ts +0 -3
  56. package/dist/composables/useCalendar.js +1 -1
  57. package/dist/composables/useFormValidation.d.ts +0 -3
  58. package/dist/composables/useMap.d.ts +0 -3
  59. package/dist/composables/useModal.d.ts +0 -3
  60. package/dist/composables/useNotifications.d.ts +0 -3
  61. package/dist/composables/useNotifications.js +1 -1
  62. package/dist/composables/useTabs.d.ts +0 -1
  63. package/dist/composables/useTheme.d.ts +0 -3
  64. package/dist/empty-state/ComingSoon.d.ts +3 -1
  65. package/dist/empty-state/EmptyState.d.ts +3 -1
  66. package/dist/empty-state/index.d.ts +0 -1
  67. package/dist/forms/DynamicForm.d.ts +3 -1
  68. package/dist/forms/DynamicFormField.d.ts +3 -1
  69. package/dist/forms/FormFieldWrapper.d.ts +3 -1
  70. package/dist/index.d.ts +0 -3
  71. package/dist/index.js +1677 -1341
  72. package/dist/inputs/AddDeleteButtonGroup.d.ts +3 -1
  73. package/dist/inputs/AddressInput.d.ts +3 -1
  74. package/dist/inputs/AddressInput.js +144 -141
  75. package/dist/inputs/CheckboxInput.d.ts +3 -1
  76. package/dist/inputs/ComboboxInput.d.ts +3 -1
  77. package/dist/inputs/ComboboxInput.js +1 -1
  78. package/dist/inputs/DatepickerInput.d.ts +3 -1
  79. package/dist/inputs/EmailInput.d.ts +3 -1
  80. package/dist/inputs/EmailInput.js +1 -1
  81. package/dist/inputs/EmptyInput.d.ts +3 -1
  82. package/dist/inputs/FileDropzoneInput.d.ts +3 -1
  83. package/dist/inputs/HiddenInput.d.ts +3 -1
  84. package/dist/inputs/ImageDropzoneInput.d.ts +3 -1
  85. package/dist/inputs/PhoneInput.d.ts +3 -1
  86. package/dist/inputs/PhoneInput.js +146 -145
  87. package/dist/inputs/RichTextInput.d.ts +3 -1
  88. package/dist/inputs/SelectInput.d.ts +3 -1
  89. package/dist/inputs/SelectInput.js +1 -1
  90. package/dist/inputs/SelectTextInput.d.ts +3 -1
  91. package/dist/inputs/SelectTextInput.js +1 -1
  92. package/dist/inputs/SwitchInput.d.ts +3 -1
  93. package/dist/inputs/SwitchInputGroup.d.ts +3 -1
  94. package/dist/inputs/TagifyInput.d.ts +3 -1
  95. package/dist/inputs/TextAreaInput.d.ts +3 -1
  96. package/dist/inputs/TextInput.d.ts +3 -1
  97. package/dist/inputs/TextInput.js +42 -39
  98. package/dist/layouts/DashboardLayout.d.ts +3 -1
  99. package/dist/layouts/DefaultLayout.d.ts +3 -1
  100. package/dist/layouts/HeaderLayout.d.ts +3 -1
  101. package/dist/layouts/NavigationGroup.d.ts +3 -1
  102. package/dist/layouts/NavigationItem.d.ts +3 -1
  103. package/dist/layouts/ProfileHeaderAvatar.d.ts +3 -1
  104. package/dist/layouts/ProjectLogo.d.ts +3 -1
  105. package/dist/layouts/SidebarLayout.d.ts +3 -1
  106. package/dist/loading/ContentSkeleton.d.ts +3 -1
  107. package/dist/loading/SmartLoadingIndicator.d.ts +3 -1
  108. package/dist/loading/index.d.ts +0 -1
  109. package/dist/maps/GoogleMap.d.ts +3 -1
  110. package/dist/maps/UiInfoWindow.d.ts +3 -1
  111. package/dist/maps/UiMap.d.ts +3 -1
  112. package/dist/maps/UiMapAll.d.ts +3 -1
  113. package/dist/maps/UiMapMarker.d.ts +3 -1
  114. package/dist/maps/index.d.ts +0 -1
  115. package/dist/modals/AlertModal.d.ts +3 -1
  116. package/dist/modals/BaseModal.d.ts +3 -1
  117. package/dist/modals/ImageCropperModal.d.ts +3 -1
  118. package/dist/notifications/NotificationContainer.d.ts +3 -1
  119. package/dist/notifications/NotificationToast.d.ts +3 -1
  120. package/dist/notifications/index.d.ts +0 -1
  121. package/dist/src/components/CloudinaryImage.d.ts +16 -14
  122. package/dist/src/components/LottieAnimation.d.ts +37 -6
  123. package/dist/src/components/ThemeDebugModal.d.ts +16 -6
  124. package/dist/src/components/UiAvatar.d.ts +35 -2
  125. package/dist/src/components/UiBadge.d.ts +33 -6
  126. package/dist/src/components/UiBanner.d.ts +108 -35
  127. package/dist/src/components/UiBreadcrumb.d.ts +11 -10
  128. package/dist/src/components/UiButton.d.ts +66 -13
  129. package/dist/src/components/UiButtonGroup.d.ts +37 -7
  130. package/dist/src/components/UiCheckbox.d.ts +33 -8
  131. package/dist/src/components/UiLoading.d.ts +28 -2
  132. package/dist/src/components/UiLoadingDots.d.ts +2 -2
  133. package/dist/src/components/UiMenu.d.ts +33 -5
  134. package/dist/src/components/UiModal.d.ts +3 -4
  135. package/dist/src/components/UiNavLink.d.ts +40 -6
  136. package/dist/src/components/UiProgressBar.d.ts +32 -3
  137. package/dist/src/components/UiRadialProgressBar.d.ts +34 -3
  138. package/dist/src/components/UiTable.d.ts +29 -6
  139. package/dist/src/components/UiTransition.d.ts +26 -3
  140. package/dist/src/components/avatars/AvatarIcon.d.ts +28 -6
  141. package/dist/src/components/avatars/AvatarImage.d.ts +30 -9
  142. package/dist/src/components/avatars/AvatarInitials.d.ts +24 -5
  143. package/dist/src/components/avatars/AvatarWithText.d.ts +4 -3
  144. package/dist/src/components/calendars/CalendarDashboard.d.ts +17 -5
  145. package/dist/src/components/calendars/CalendarHeader.d.ts +7 -8
  146. package/dist/src/components/calendars/DayCalendar.d.ts +17 -11
  147. package/dist/src/components/calendars/EventCard.d.ts +2 -1
  148. package/dist/src/components/calendars/EventsList.d.ts +18 -6
  149. package/dist/src/components/calendars/MonthCalendar.d.ts +30 -6
  150. package/dist/src/components/calendars/WeekCalendar.d.ts +16 -10
  151. package/dist/src/components/calendars/YearCalendar.d.ts +29 -5
  152. package/dist/src/components/charts/BarChart.d.ts +40 -7
  153. package/dist/src/components/charts/BaseChart.d.ts +80 -0
  154. package/dist/src/components/charts/FunnelChart.d.ts +34 -5
  155. package/dist/src/components/charts/LineChart.d.ts +37 -6
  156. package/dist/src/components/charts/PieChart.d.ts +37 -6
  157. package/dist/src/components/charts/SparklineChart.d.ts +32 -3
  158. package/dist/src/components/charts/StatCard.d.ts +24 -2
  159. package/dist/src/components/charts/chartTheme.d.ts +1 -0
  160. package/dist/src/components/collection-editor/CollectionEditor.d.ts +112 -0
  161. package/dist/src/components/collection-editor/CollectionItemList.d.ts +37 -7
  162. package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +34 -8
  163. package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +37 -7
  164. package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +37 -7
  165. package/dist/src/components/empty-state/ComingSoon.d.ts +29 -2
  166. package/dist/src/components/empty-state/EmptyState.d.ts +26 -4
  167. package/dist/src/components/formatters/DateFormatter.d.ts +2 -1
  168. package/dist/src/components/formatters/DateRangeFormatter.d.ts +1 -0
  169. package/dist/src/components/forms/DynamicForm.d.ts +37 -11
  170. package/dist/src/components/forms/DynamicFormField.d.ts +15 -5
  171. package/dist/src/components/forms/FormFieldWrapper.d.ts +58 -14
  172. package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +1 -1
  173. package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +1 -1
  174. package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +1 -1
  175. package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +1 -1
  176. package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +1 -1
  177. package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +1 -1
  178. package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +1 -1
  179. package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +1 -1
  180. package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +1 -1
  181. package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +1 -1
  182. package/dist/src/components/icons/brands/XBrandIcon.d.ts +1 -1
  183. package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +1 -1
  184. package/dist/src/components/index.d.ts +1 -0
  185. package/dist/src/components/inputs/AddDeleteButtonGroup.d.ts +3 -2
  186. package/dist/src/components/inputs/AddressInput.d.ts +51 -7
  187. package/dist/src/components/inputs/CheckboxInput.d.ts +37 -10
  188. package/dist/src/components/inputs/ComboboxInput.d.ts +55 -10
  189. package/dist/src/components/inputs/DatepickerInput.d.ts +43 -1046
  190. package/dist/src/components/inputs/EmailInput.d.ts +56 -12
  191. package/dist/src/components/inputs/EmptyInput.d.ts +26 -2
  192. package/dist/src/components/inputs/FileDropzoneInput.d.ts +6 -7
  193. package/dist/src/components/inputs/HiddenInput.d.ts +23 -2
  194. package/dist/src/components/inputs/ImageDropzoneInput.d.ts +9 -8
  195. package/dist/src/components/inputs/InputsShowcase.d.ts +1 -1
  196. package/dist/src/components/inputs/PhoneInput.d.ts +18 -81
  197. package/dist/src/components/inputs/RichTextInput.d.ts +81 -23
  198. package/dist/src/components/inputs/SelectInput.d.ts +41 -47
  199. package/dist/src/components/inputs/SelectTextInput.d.ts +22 -53
  200. package/dist/src/components/inputs/SwitchInput.d.ts +41 -114
  201. package/dist/src/components/inputs/SwitchInputGroup.d.ts +3 -2
  202. package/dist/src/components/inputs/TagifyInput.d.ts +8 -10
  203. package/dist/src/components/inputs/TextAreaInput.d.ts +35 -9
  204. package/dist/src/components/inputs/TextInput.d.ts +77 -14
  205. package/dist/src/components/layouts/CardLayout.d.ts +64 -18
  206. package/dist/src/components/layouts/DashboardLayout.d.ts +5 -8
  207. package/dist/src/components/layouts/DefaultLayout.d.ts +1 -1
  208. package/dist/src/components/layouts/HeaderLayout.d.ts +4 -4
  209. package/dist/src/components/layouts/InfoCard.d.ts +25 -2
  210. package/dist/src/components/layouts/NavigationGroup.d.ts +16 -5
  211. package/dist/src/components/layouts/NavigationItem.d.ts +24 -7
  212. package/dist/src/components/layouts/ProfileHeaderAvatar.d.ts +40 -10
  213. package/dist/src/components/layouts/ProjectLogo.d.ts +33 -2
  214. package/dist/src/components/layouts/PropsTable.d.ts +23 -2
  215. package/dist/src/components/layouts/ShowcaseCard.d.ts +29 -2
  216. package/dist/src/components/layouts/ShowcaseLayout.d.ts +28 -5
  217. package/dist/src/components/layouts/SidebarLayout.d.ts +4 -7
  218. package/dist/src/components/layouts/StateDisplay.d.ts +23 -2
  219. package/dist/src/components/loading/ContentSkeleton.d.ts +31 -2
  220. package/dist/src/components/loading/SmartLoadingIndicator.d.ts +47 -6
  221. package/dist/src/components/maps/GoogleMap.d.ts +9 -8
  222. package/dist/src/components/maps/UiInfoWindow.d.ts +14 -229
  223. package/dist/src/components/maps/UiMap.d.ts +103 -5093
  224. package/dist/src/components/maps/UiMapAll.d.ts +22 -1132
  225. package/dist/src/components/maps/UiMapMarker.d.ts +18 -17
  226. package/dist/src/components/modals/AlertModal.d.ts +10 -9
  227. package/dist/src/components/modals/BaseModal.d.ts +6 -5
  228. package/dist/src/components/modals/ImageCropperModal.d.ts +75 -379
  229. package/dist/src/components/notifications/NotificationToast.d.ts +18 -7
  230. package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +117 -0
  231. package/dist/src/components/profile-inputs/NamesInput.d.ts +107 -0
  232. package/dist/src/components/profile-inputs/index.d.ts +2 -0
  233. package/dist/src/components/profiles/BentoProfileLayout.d.ts +44 -2
  234. package/dist/src/components/profiles/BentoProfileLayoutSkeleton.d.ts +27 -2
  235. package/dist/src/components/profiles/ProfileCard.d.ts +30 -2
  236. package/dist/src/components/profiles/ProfileContactCard.d.ts +25 -2
  237. package/dist/src/components/profiles/ProfileHeaderCard.d.ts +26 -2
  238. package/dist/src/components/profiles/ProfileLocationCard.d.ts +28 -2
  239. package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +26 -2
  240. package/dist/src/components/profiles/ProfilePersonalCard.d.ts +25 -2
  241. package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +26 -2
  242. package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +26 -2
  243. package/dist/src/components/profiles/ProfileSocialCard.d.ts +26 -2
  244. package/dist/src/components/stepper/StepperPanels.d.ts +14 -4
  245. package/dist/src/components/tabs/InlineTabs.d.ts +28 -4
  246. package/dist/src/components/tabs/TabGroup.d.ts +32 -6
  247. package/dist/src/components/tabs/TabGroupUnderline.d.ts +32 -6
  248. package/dist/src/components/tabs/TabsInPills.d.ts +26 -4
  249. package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +37 -2
  250. package/dist/src/components/wrappers/CardWrapper.d.ts +1 -1
  251. package/dist/src/components/wrappers/DisclosureWrapper.d.ts +23 -2
  252. package/dist/src/components/wrappers/FormErrorWrapper.d.ts +25 -2
  253. package/dist/src/composables/useCalendar.d.ts +1 -0
  254. package/dist/src/composables/useCollectionEditor.d.ts +1 -0
  255. package/dist/src/composables/useFormValidation.d.ts +1 -0
  256. package/dist/src/composables/useMap.d.ts +1 -0
  257. package/dist/src/composables/useNotifications.d.ts +33 -32
  258. package/dist/src/composables/useSimpleTabs.d.ts +1 -0
  259. package/dist/src/composables/useStringTransform.d.ts +1 -0
  260. package/dist/src/composables/useTabs.d.ts +1 -0
  261. package/dist/src/config/css-variables.d.ts +1 -0
  262. package/dist/src/dev.d.ts +1 -0
  263. package/dist/src/plugin/configure.d.ts +3 -2
  264. package/dist/src/services/geocoding.service.d.ts +1 -0
  265. package/dist/src/types/calendars.d.ts +1 -0
  266. package/dist/src/types/core.d.ts +8 -7
  267. package/dist/src/types/forms.d.ts +1 -0
  268. package/dist/src/types/layouts.d.ts +1 -0
  269. package/dist/src/types/navigation.d.ts +1 -0
  270. package/dist/src/types/tables.d.ts +1 -0
  271. package/dist/src/types/ui.d.ts +6 -0
  272. package/dist/src/utils/component-registry.d.ts +1 -0
  273. package/dist/src/utils/index.d.ts +1 -0
  274. package/dist/src/utils/mapThemes.d.ts +1 -0
  275. package/dist/src/utils/phone.d.ts +1 -0
  276. package/dist/src/utils/validation.d.ts +12 -0
  277. package/dist/src/views/inputs/index.d.ts +1 -0
  278. package/dist/stepper/StepperPanels.d.ts +3 -1
  279. package/dist/stepper/index.d.ts +0 -1
  280. package/dist/style.css +1 -1
  281. package/dist/tabs/InlineTabs.d.ts +3 -1
  282. package/dist/tabs/InlineTabs.js +1 -1
  283. package/dist/tabs/TabGroup.d.ts +3 -1
  284. package/dist/tabs/TabGroup.js +1 -1
  285. package/dist/tabs/TabGroupUnderline.d.ts +3 -1
  286. package/dist/tabs/TabGroupUnderline.js +1 -1
  287. package/dist/tabs/TabsInPills.d.ts +3 -1
  288. package/dist/tabs/TabsInPills.js +1 -1
  289. package/dist/tabs/index.d.ts +0 -1
  290. package/dist/tabs/index.js +4 -4
  291. package/dist/validation-Dzczp6MS.js +22 -0
  292. package/dist/wrappers/BackgroundGradientWrapper.d.ts +3 -1
  293. package/dist/wrappers/CardWrapper.d.ts +3 -1
  294. package/dist/wrappers/DisclosureWrapper.d.ts +3 -1
  295. package/dist/wrappers/FormErrorWrapper.d.ts +3 -1
  296. package/dist/wrappers/index.d.ts +0 -1
  297. package/package.json +29 -29
  298. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-D52gzkAa.js +0 -353
  299. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-COZuuSFS.js +0 -320
  300. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js +0 -336
  301. package/dist/src/views/ButtonsShowcase.d.ts +0 -2
  302. package/dist/src/views/CalendarsShowcase.d.ts +0 -2
  303. package/dist/src/views/CardsShowcase.d.ts +0 -2
  304. package/dist/src/views/ChartsShowcase.d.ts +0 -2
  305. package/dist/src/views/EmptyStatesShowcase.d.ts +0 -2
  306. package/dist/src/views/InputsShowcase.d.ts +0 -2
  307. package/dist/src/views/KitchenSink.d.ts +0 -2
  308. package/dist/src/views/LayoutsShowcase.d.ts +0 -2
  309. package/dist/src/views/LoadingShowcase.d.ts +0 -2
  310. package/dist/src/views/MapsShowcase.d.ts +0 -2
  311. package/dist/src/views/ModalsShowcase.d.ts +0 -2
  312. package/dist/src/views/NotificationsShowcase.d.ts +0 -2
  313. package/dist/src/views/StepperShowcase.d.ts +0 -2
  314. package/dist/src/views/TabsShowcase.d.ts +0 -2
  315. package/dist/src/views/ValidationDemo.d.ts +0 -2
  316. package/dist/src/views/WrappersShowcase.d.ts +0 -2
  317. package/dist/src/views/components/AvatarPage.d.ts +0 -2
  318. package/dist/src/views/components/BadgePage.d.ts +0 -2
  319. package/dist/src/views/components/BannerPage.d.ts +0 -2
  320. package/dist/src/views/components/BreadcrumbPage.d.ts +0 -2
  321. package/dist/src/views/components/ButtonPage.d.ts +0 -2
  322. package/dist/src/views/components/CloudinaryImagePage.d.ts +0 -2
  323. package/dist/src/views/components/LoadingPage.d.ts +0 -2
  324. package/dist/src/views/components/LottiePage.d.ts +0 -2
  325. package/dist/src/views/components/MenuPage.d.ts +0 -2
  326. package/dist/src/views/components/ModalPage.d.ts +0 -2
  327. package/dist/src/views/components/ProgressPage.d.ts +0 -2
  328. package/dist/src/views/components/RichTextInputPage.d.ts +0 -2
  329. package/dist/src/views/components/TablePage.d.ts +0 -2
  330. package/dist/src/views/components/TextInputPage.d.ts +0 -2
  331. package/dist/src/views/components/TransitionPage.d.ts +0 -2
  332. package/dist/src/views/examples/CheckoutFormExample.d.ts +0 -2
  333. package/dist/src/views/examples/ContactFormExample.d.ts +0 -2
  334. package/dist/src/views/examples/RegistrationFormExample.d.ts +0 -2
  335. package/dist/src/views/examples/SettingsFormExample.d.ts +0 -2
  336. package/dist/src/views/forms/ValidationPage.d.ts +0 -2
  337. package/dist/src/views/inputs/CheckboxPage.d.ts +0 -2
  338. package/dist/src/views/inputs/ComboboxPage.d.ts +0 -2
  339. package/dist/src/views/inputs/DatepickerPage.d.ts +0 -2
  340. package/dist/src/views/inputs/EmailPage.d.ts +0 -2
  341. package/dist/src/views/inputs/FileDropzonePage.d.ts +0 -2
  342. package/dist/src/views/inputs/MiscInputsPage.d.ts +0 -2
  343. package/dist/src/views/inputs/PhonePage.d.ts +0 -2
  344. package/dist/src/views/inputs/SelectPage.d.ts +0 -2
  345. package/dist/src/views/inputs/SelectTextPage.d.ts +0 -2
  346. package/dist/src/views/inputs/SwitchGroupPage.d.ts +0 -2
  347. package/dist/src/views/inputs/SwitchPage.d.ts +0 -2
  348. package/dist/src/views/inputs/TextAreaPage.d.ts +0 -2
  349. package/dist/src/views/layouts/CardLayoutPage.d.ts +0 -2
  350. package/dist/src/views/layouts/DashboardLayoutPage.d.ts +0 -2
  351. package/dist/src/views/layouts/HeaderLayoutPage.d.ts +0 -2
  352. package/dist/src/views/layouts/SidebarLayoutPage.d.ts +0 -2
  353. package/dist/ui.css +0 -1
@@ -1,23 +1,24 @@
1
- import { defineComponent as me, inject as pe, onMounted as ye, ref as $, reactive as ve, computed as E, watch as be, createElementBlock as K, openBlock as x, createVNode as y, unref as p, withCtx as C, createElementVNode as v, createCommentVNode as R, normalizeClass as I, createBlock as O, Fragment as he, renderList as xe, toDisplayString as N, resolveDynamicComponent as ke, createTextVNode as H } from "vue";
2
- import { Combobox as we, ComboboxInput as Ce, ComboboxButton as Ie, TransitionRoot as W, ComboboxOptions as Se, ComboboxOption as Ae } from "@headlessui/vue";
3
- import { LockClosedIcon as ze, MagnifyingGlassIcon as _e, CheckIcon as $e, ChevronDownIcon as Ke, ChevronUpIcon as Ge } from "@heroicons/vue/20/solid";
4
- import { ClockIcon as Q, ExclamationCircleIcon as Te, CheckCircleIcon as Me } from "@heroicons/vue/24/outline";
5
- import { useField as Ue } from "vee-validate";
1
+ import { defineComponent as pe, inject as ye, onMounted as ve, ref as $, reactive as be, computed as K, watch as he, createElementBlock as G, openBlock as x, createVNode as y, unref as p, withCtx as C, createElementVNode as v, createCommentVNode as R, normalizeClass as I, createBlock as E, Fragment as xe, renderList as ke, toDisplayString as N, resolveDynamicComponent as we, createTextVNode as H } from "vue";
2
+ import { i as Ce } from "../validation-Dzczp6MS.js";
3
+ import { Combobox as Ie, ComboboxInput as Se, ComboboxButton as Ae, TransitionRoot as W, ComboboxOptions as ze, ComboboxOption as _e } from "@headlessui/vue";
4
+ import { LockClosedIcon as $e, MagnifyingGlassIcon as Ke, CheckIcon as Ge, ChevronDownIcon as Oe, ChevronUpIcon as Te } from "@heroicons/vue/20/solid";
5
+ import { ClockIcon as Q, ExclamationCircleIcon as Me, CheckCircleIcon as Ue } from "@heroicons/vue/24/outline";
6
+ import { useField as Ee } from "vee-validate";
6
7
  import { debounce as X } from "lodash-es";
7
- import Ee from "../forms/FormFieldWrapper.js";
8
- import G from "./TextInput.js";
9
- import { g as Oe } from "../id-DafBB_QF.js";
10
- import { Loader as Pe } from "@googlemaps/js-api-loader";
11
- import { _ as Le } from "../_plugin-vue_export-helper-CHgC5LLL.js";
8
+ import Pe from "../forms/FormFieldWrapper.js";
9
+ import O from "./TextInput.js";
10
+ import { g as Le } from "../id-DafBB_QF.js";
11
+ import { Loader as Re } from "@googlemaps/js-api-loader";
12
+ import { _ as Ne } from "../_plugin-vue_export-helper-CHgC5LLL.js";
12
13
  let k = null, U = null, L = null, T = null, F = !1;
13
- const M = /* @__PURE__ */ new Map(), Re = 1e3, Ne = 1e3 * 60 * 60 * 24;
14
- function Fe(e) {
14
+ const M = /* @__PURE__ */ new Map(), Fe = 1e3, Be = 1e3 * 60 * 60 * 24;
15
+ function De(e) {
15
16
  k = e, F = !1, T = null, L = null, U = null;
16
17
  }
17
- function De() {
18
+ function Ve() {
18
19
  return k !== null && !!k.apiKey;
19
20
  }
20
- async function D() {
21
+ async function B() {
21
22
  if (!F) {
22
23
  if (T)
23
24
  return T;
@@ -27,7 +28,7 @@ async function D() {
27
28
  );
28
29
  return T = (async () => {
29
30
  try {
30
- await new Pe({
31
+ await new Re({
31
32
  apiKey: k.apiKey,
32
33
  version: k.version || "weekly",
33
34
  id: "__stachelockGoogleMapsScriptId",
@@ -47,11 +48,11 @@ function Y(e) {
47
48
  }
48
49
  function q(e) {
49
50
  const a = M.get(e);
50
- return a ? Date.now() - a.ts > Ne ? (M.delete(e), null) : a.result : null;
51
+ return a ? Date.now() - a.ts > Be ? (M.delete(e), null) : a.result : null;
51
52
  }
52
53
  function ee(e, a) {
53
54
  try {
54
- if (M.size >= Re) {
55
+ if (M.size >= Fe) {
55
56
  const c = M.keys().next().value;
56
57
  c && M.delete(c);
57
58
  }
@@ -61,26 +62,26 @@ function ee(e, a) {
61
62
  }
62
63
  function te(e, a = 15, c = "200x200") {
63
64
  if (!k?.apiKey) return "";
64
- const n = k.staticMapsApiKey || k.apiKey, i = "https://maps.googleapis.com/maps/api/staticmap", f = new URLSearchParams({
65
+ const r = k.staticMapsApiKey || k.apiKey, i = "https://maps.googleapis.com/maps/api/staticmap", f = new URLSearchParams({
65
66
  center: `${e.lat},${e.lng}`,
66
67
  zoom: a.toString(),
67
68
  size: c,
68
- key: n,
69
+ key: r,
69
70
  markers: `color:red|${e.lat},${e.lng}`
70
71
  });
71
72
  return `${i}?${f.toString()}`;
72
73
  }
73
- async function Be(e) {
74
+ async function je(e) {
74
75
  if (!e?.trim())
75
76
  return {
76
77
  status: "INVALID_INPUT",
77
78
  message: "No placeId provided for geocoding."
78
79
  };
79
- await D();
80
+ await B();
80
81
  const a = Y({ placeId: e }), c = q(a);
81
- return c || new Promise((n) => {
82
+ return c || new Promise((r) => {
82
83
  if (!U) {
83
- n({
84
+ r({
84
85
  status: "ERROR",
85
86
  message: "Geocoder service not initialized."
86
87
  });
@@ -88,48 +89,48 @@ async function Be(e) {
88
89
  }
89
90
  U.geocode({ placeId: e }, (i, f) => {
90
91
  if (f === google.maps.GeocoderStatus.OK && i && i.length > 0) {
91
- const d = i[0], r = d.geometry ? {
92
+ const d = i[0], n = d.geometry ? {
92
93
  lat: d.geometry.location.lat(),
93
94
  lng: d.geometry.location.lng()
94
95
  } : void 0, h = {
95
96
  status: "OK",
96
97
  message: "Found address",
97
98
  address_components: d.address_components || [],
98
- location: r,
99
+ location: n,
99
100
  formatted_address: d.formatted_address || "",
100
- thumbnailUrl: r ? te(r) : void 0
101
+ thumbnailUrl: n ? te(n) : void 0
101
102
  };
102
- ee(a, h), n(h);
103
+ ee(a, h), r(h);
103
104
  } else
104
- n({
105
+ r({
105
106
  status: f.toString(),
106
107
  message: `Unable to geocode place: ${f}`
107
108
  });
108
109
  });
109
110
  });
110
111
  }
111
- function Ve(e) {
112
+ function Ze(e) {
112
113
  const a = J(e);
113
114
  if (a.length < 10) return !1;
114
- const c = /\d/.test(a), n = a.includes(","), i = /\b([A-Z]{2})\b/i.test(e), f = /\b\d{5}(?:-\d{4})?\b/.test(a);
115
- return (n || i || f) && c;
115
+ const c = /\d/.test(a), r = a.includes(","), i = /\b([A-Z]{2})\b/i.test(e), f = /\b\d{5}(?:-\d{4})?\b/.test(a);
116
+ return (r || i || f) && c;
116
117
  }
117
- async function je(e) {
118
+ async function He(e) {
118
119
  if (!e?.trim())
119
120
  return {
120
121
  status: "INVALID_INPUT",
121
122
  message: "No address provided for geocoding."
122
123
  };
123
- if (!Ve(e))
124
+ if (!Ze(e))
124
125
  return {
125
126
  status: "INVALID_INPUT",
126
127
  message: "Insufficient address information for geocoding."
127
128
  };
128
- await D();
129
+ await B();
129
130
  const a = Y(e), c = q(a);
130
- return c || new Promise((n) => {
131
+ return c || new Promise((r) => {
131
132
  if (!U) {
132
- n({
133
+ r({
133
134
  status: "ERROR",
134
135
  message: "Geocoder service not initialized."
135
136
  });
@@ -137,54 +138,54 @@ async function je(e) {
137
138
  }
138
139
  U.geocode({ address: e }, (i, f) => {
139
140
  if (f === google.maps.GeocoderStatus.OK && i && i.length > 0) {
140
- const d = i[0], r = d.geometry ? {
141
+ const d = i[0], n = d.geometry ? {
141
142
  lat: d.geometry.location.lat(),
142
143
  lng: d.geometry.location.lng()
143
144
  } : void 0, h = {
144
145
  status: "OK",
145
146
  message: "Found address",
146
147
  address_components: d.address_components || [],
147
- location: r,
148
+ location: n,
148
149
  formatted_address: d.formatted_address || "",
149
- thumbnailUrl: r ? te(r) : void 0
150
+ thumbnailUrl: n ? te(n) : void 0
150
151
  };
151
- ee(a, h), n(h);
152
+ ee(a, h), r(h);
152
153
  } else
153
- n({
154
+ r({
154
155
  status: f.toString(),
155
156
  message: `Unable to geocode address: ${f}`
156
157
  });
157
158
  });
158
159
  });
159
160
  }
160
- async function Ze(e, a) {
161
+ async function We(e, a) {
161
162
  if (!e?.trim())
162
163
  return [];
163
- if (await D(), !L)
164
+ if (await B(), !L)
164
165
  return console.warn("[Geocoding] Places library not initialized"), [];
165
166
  try {
166
- const { AutocompleteSuggestion: c } = L, n = {
167
+ const { AutocompleteSuggestion: c } = L, r = {
167
168
  input: e,
168
169
  ...a?.includedPrimaryTypes && { includedPrimaryTypes: a.includedPrimaryTypes },
169
170
  ...a?.includedRegionCodes && { includedRegionCodes: a.includedRegionCodes }
170
- }, { suggestions: i } = await c.fetchAutocompleteSuggestions(n);
171
+ }, { suggestions: i } = await c.fetchAutocompleteSuggestions(r);
171
172
  return i.filter(
172
173
  (d) => d.placePrediction !== null
173
174
  ).map((d) => {
174
- const r = d.placePrediction;
175
+ const n = d.placePrediction;
175
176
  return {
176
- placeId: r.placeId,
177
- description: r.text.toString(),
178
- mainText: r.mainText?.toString() || r.text.toString(),
179
- secondaryText: r.secondaryText?.toString() || "",
180
- types: r.types || []
177
+ placeId: n.placeId,
178
+ description: n.text.toString(),
179
+ mainText: n.mainText?.toString() || n.text.toString(),
180
+ secondaryText: n.secondaryText?.toString() || "",
181
+ types: n.types || []
181
182
  };
182
183
  });
183
184
  } catch (c) {
184
185
  return console.error("[Geocoding] Error fetching autocomplete suggestions:", c), [];
185
186
  }
186
187
  }
187
- function He(e) {
188
+ function Qe(e) {
188
189
  const a = {
189
190
  street: "",
190
191
  city: "",
@@ -194,14 +195,14 @@ function He(e) {
194
195
  };
195
196
  if (!e?.address_components)
196
197
  return a;
197
- let c = "", n = "", i = "", f = "", d = "", r = "", h = "", S = "", A = "", P = "", b = "", z = "";
198
+ let c = "", r = "", i = "", f = "", d = "", n = "", h = "", S = "", A = "", P = "", b = "", z = "";
198
199
  for (const g of e.address_components) {
199
200
  const u = g.types;
200
- u.includes("street_number") ? c = g.long_name : u.includes("route") ? n = g.long_name : u.includes("subpremise") ? i = g.long_name : u.includes("premise") ? f = g.long_name : u.includes("locality") ? d = g.long_name : u.includes("sublocality") || u.includes("sublocality_level_1") ? u.includes("sublocality_level_1") ? h = g.long_name : r = g.long_name : u.includes("administrative_area_level_2") ? S = g.long_name : u.includes("administrative_area_level_3") ? A = g.long_name : u.includes("postal_town") ? P = g.long_name : u.includes("administrative_area_level_1") ? a.state = g.short_name : u.includes("postal_code") ? b = g.long_name : u.includes("postal_code_prefix") ? z = g.long_name : u.includes("country") && (a.country = g.short_name);
201
+ u.includes("street_number") ? c = g.long_name : u.includes("route") ? r = g.long_name : u.includes("subpremise") ? i = g.long_name : u.includes("premise") ? f = g.long_name : u.includes("locality") ? d = g.long_name : u.includes("sublocality") || u.includes("sublocality_level_1") ? u.includes("sublocality_level_1") ? h = g.long_name : n = g.long_name : u.includes("administrative_area_level_2") ? S = g.long_name : u.includes("administrative_area_level_3") ? A = g.long_name : u.includes("postal_town") ? P = g.long_name : u.includes("administrative_area_level_1") ? a.state = g.short_name : u.includes("postal_code") ? b = g.long_name : u.includes("postal_code_prefix") ? z = g.long_name : u.includes("country") && (a.country = g.short_name);
201
202
  }
202
- return c && n ? a.street = `${c} ${n}` : n ? a.street = n : f && (a.street = f), i && a.street && (a.street = `${a.street}, ${i}`), a.city = d || P || h || r || A || S || "", a.zipcode = b || z || "", a;
203
+ return c && r ? a.street = `${c} ${r}` : r ? a.street = r : f && (a.street = f), i && a.street && (a.street = `${a.street}, ${i}`), a.city = d || P || h || n || A || S || "", a.zipcode = b || z || "", a;
203
204
  }
204
- function We(e) {
205
+ function Xe(e) {
205
206
  return [
206
207
  e.street,
207
208
  e.city,
@@ -209,10 +210,10 @@ function We(e) {
209
210
  e.country
210
211
  ].filter(Boolean).join(", ");
211
212
  }
212
- const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = { class: "sl-relative" }, Ye = { class: "sl-flex sl-flex-col" }, qe = {
213
+ const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = { class: "sl-relative" }, et = { class: "sl-flex sl-flex-col" }, tt = {
213
214
  key: 0,
214
215
  class: "sl-flex sl-items-center sl-justify-between"
215
- }, et = { class: "sl-flex sl-items-center sl-gap-2" }, tt = { class: "sl-grid sl-grid-cols-1 sm:sl-grid-cols-2 sl-gap-3 sl-p-3 sl-bg-gray-50 dark:sl-bg-slate-800/50 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-700" }, st = { class: "sm:sl-col-span-2" }, lt = /* @__PURE__ */ me({
216
+ }, st = { class: "sl-flex sl-items-center sl-gap-2" }, lt = { class: "sl-grid sl-grid-cols-1 sm:sl-grid-cols-2 sl-gap-3 sl-p-3 sl-bg-gray-50 dark:sl-bg-slate-800/50 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-700" }, at = { class: "sm:sl-col-span-2" }, ot = /* @__PURE__ */ pe({
216
217
  __name: "AddressInput",
217
218
  props: {
218
219
  name: {},
@@ -225,33 +226,34 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
225
226
  allowManualEntry: { type: Boolean, default: !0 },
226
227
  successMessage: { default: "" },
227
228
  tertiaryLabel: { default: "" },
228
- validateOnMount: { type: Boolean, default: !1 }
229
+ validateOnMount: { type: Boolean, default: !1 },
230
+ optional: { type: Boolean, default: void 0 }
229
231
  },
230
232
  emits: ["update:modelValue", "blur", "focus"],
231
233
  setup(e, { expose: a, emit: c }) {
232
- const n = e, i = c, f = Oe(n.name || "address-input"), d = pe("googleMaps", void 0);
233
- ye(() => {
234
- d?.apiKey && !De() && Fe({
234
+ const r = e, i = c, f = Le(r.name || "address-input"), d = ye("googleMaps", void 0);
235
+ ve(() => {
236
+ d?.apiKey && !Ve() && De({
235
237
  apiKey: d.apiKey,
236
238
  version: d.version,
237
239
  libraries: d.libraries
238
240
  });
239
241
  });
240
- const { value: r, errorMessage: h, meta: S, handleChange: A, setTouched: P } = Ue(
241
- () => n.name,
242
- n.rules,
242
+ const { value: n, errorMessage: h, meta: S, handleChange: A, setTouched: P } = Ee(
243
+ () => r.name,
244
+ r.rules,
243
245
  {
244
- validateOnMount: n.validateOnMount,
245
- initialValue: n.modelValue
246
+ validateOnMount: r.validateOnMount,
247
+ initialValue: r.modelValue
246
248
  }
247
- ), b = $([]), z = $(null), g = $(""), u = $(!1), B = $(!1), m = $("unverified"), s = ve({
249
+ ), b = $([]), z = $(null), g = $(""), u = $(!1), D = $(!1), m = $("unverified"), s = be({
248
250
  street: "",
249
251
  suite: "",
250
252
  city: "",
251
253
  state: "",
252
254
  zipcode: "",
253
255
  country: ""
254
- }), V = E(() => !!(r.value?.formattedAddress || r.value?.street)), se = E(() => n.showSuggestionCount && b.value.length > 0 ? `${b.value.length} suggestions` : n.tertiaryLabel), j = E(() => {
256
+ }), V = K(() => !!(n.value?.formattedAddress || n.value?.street)), se = K(() => r.optional !== void 0 ? r.optional : Ce(r.rules)), le = K(() => r.showSuggestionCount && b.value.length > 0 ? `${b.value.length} suggestions` : r.tertiaryLabel), j = K(() => {
255
257
  switch (m.value) {
256
258
  case "verified":
257
259
  return "sl-text-green-600 dark:sl-text-green-400";
@@ -262,7 +264,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
262
264
  default:
263
265
  return "sl-text-gray-500 dark:sl-text-slate-400";
264
266
  }
265
- }), le = E(() => {
267
+ }), ae = K(() => {
266
268
  switch (m.value) {
267
269
  case "verified":
268
270
  return "Verified";
@@ -273,47 +275,47 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
273
275
  default:
274
276
  return "Unverified";
275
277
  }
276
- }), ae = E(() => {
278
+ }), oe = K(() => {
277
279
  switch (m.value) {
278
280
  case "verified":
279
- return Me;
281
+ return Ue;
280
282
  case "error":
281
- return Te;
283
+ return Me;
282
284
  case "pending":
283
285
  return Q;
284
286
  default:
285
287
  return Q;
286
288
  }
287
- }), oe = X(async (l) => {
289
+ }), re = X(async (l) => {
288
290
  if (!l || l.length < 3) {
289
291
  b.value = [];
290
292
  return;
291
293
  }
292
- B.value = !0;
294
+ D.value = !0;
293
295
  try {
294
- const t = await Ze(l);
296
+ const t = await We(l);
295
297
  b.value = t;
296
298
  } catch (t) {
297
299
  console.error("[AddressInput] Error fetching suggestions:", t), b.value = [];
298
300
  } finally {
299
- B.value = !1;
301
+ D.value = !1;
300
302
  }
301
303
  }, 300);
302
- function re(l) {
304
+ function ne(l) {
303
305
  const t = l.target;
304
- g.value = t.value, oe(t.value);
306
+ g.value = t.value, re(t.value);
305
307
  }
306
- function ne(l) {
307
- return l ? l.description : r.value?.formattedAddress ? r.value.formattedAddress : "";
308
+ function ie(l) {
309
+ return l ? l.description : n.value?.formattedAddress ? n.value.formattedAddress : "";
308
310
  }
309
- async function ie(l) {
311
+ async function de(l) {
310
312
  if (l) {
311
313
  m.value = "pending", b.value = [];
312
314
  try {
313
- const t = await Be(l.placeId);
315
+ const t = await je(l.placeId);
314
316
  if (t.status === "OK") {
315
317
  m.value = "verified";
316
- const o = He(t);
318
+ const o = Qe(t);
317
319
  s.street = o.street, s.city = o.city, s.state = o.state, s.zipcode = o.zipcode, s.country = o.country;
318
320
  const w = {
319
321
  formattedAddress: t.formatted_address,
@@ -326,7 +328,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
326
328
  geocode: t,
327
329
  placeId: l.placeId
328
330
  };
329
- r.value = w, A(w), i("update:modelValue", w), u.value = !0;
331
+ n.value = w, A(w), i("update:modelValue", w), u.value = !0;
330
332
  } else
331
333
  m.value = "error", console.warn("[AddressInput] Geocoding failed:", t.message);
332
334
  } catch (t) {
@@ -334,15 +336,15 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
334
336
  }
335
337
  }
336
338
  }
337
- const de = ["street", "city", "state", "zipcode", "country"], ce = X(async () => {
338
- const l = We(s);
339
+ const ce = ["street", "city", "state", "zipcode", "country"], ue = X(async () => {
340
+ const l = Xe(s);
339
341
  if (!l || l.length < 10) {
340
342
  m.value = "unverified";
341
343
  return;
342
344
  }
343
345
  m.value = "pending";
344
346
  try {
345
- const t = await je(l);
347
+ const t = await He(l);
346
348
  if (t.status === "OK") {
347
349
  m.value = "verified";
348
350
  const o = {
@@ -357,7 +359,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
357
359
  placeId: void 0
358
360
  // Clear placeId since we re-geocoded
359
361
  };
360
- r.value = o, A(o), i("update:modelValue", o);
362
+ n.value = o, A(o), i("update:modelValue", o);
361
363
  } else
362
364
  m.value = "unverified";
363
365
  } catch (t) {
@@ -366,7 +368,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
366
368
  }, 600);
367
369
  function _(l) {
368
370
  const t = {
369
- ...r.value,
371
+ ...n.value,
370
372
  street: s.street,
371
373
  suite: s.suite,
372
374
  city: s.city,
@@ -374,74 +376,75 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
374
376
  zipcode: s.zipcode,
375
377
  country: s.country
376
378
  };
377
- de.includes(l) && (m.value = "unverified", t.geocode = void 0, ce()), r.value = t, A(t), i("update:modelValue", t);
379
+ ce.includes(l) && (m.value = "unverified", t.geocode = void 0, ue()), n.value = t, A(t), i("update:modelValue", t);
378
380
  }
379
- function ue(l) {
381
+ function fe(l) {
380
382
  i("focus", l);
381
383
  }
382
- function fe(l) {
384
+ function ge(l) {
383
385
  P(!0), i("blur", l);
384
386
  }
385
- be(
386
- () => n.modelValue,
387
+ he(
388
+ () => r.modelValue,
387
389
  (l) => {
388
- l && (l.geocode?.status === "OK" ? m.value = "verified" : l.geocode?.status === "ERROR" && (m.value = "error"), l !== r.value && (r.value = l, l.street !== void 0 && (s.street = l.street), l.suite !== void 0 && (s.suite = l.suite), l.city !== void 0 && (s.city = l.city), l.state !== void 0 && (s.state = l.state), l.zipcode !== void 0 && (s.zipcode = l.zipcode), l.country !== void 0 && (s.country = l.country)));
390
+ l && (l.geocode?.status === "OK" ? m.value = "verified" : l.geocode?.status === "ERROR" && (m.value = "error"), l !== n.value && (n.value = l, l.street !== void 0 && (s.street = l.street), l.suite !== void 0 && (s.suite = l.suite), l.city !== void 0 && (s.city = l.city), l.state !== void 0 && (s.state = l.state), l.zipcode !== void 0 && (s.zipcode = l.zipcode), l.country !== void 0 && (s.country = l.country)));
389
391
  },
390
392
  { immediate: !0, deep: !0 }
391
393
  );
392
- function ge() {
393
- r.value = void 0, z.value = null, g.value = "", b.value = [], u.value = !1, m.value = "unverified", s.street = "", s.suite = "", s.city = "", s.state = "", s.zipcode = "", s.country = "";
394
+ function me() {
395
+ n.value = void 0, z.value = null, g.value = "", b.value = [], u.value = !1, m.value = "unverified", s.street = "", s.suite = "", s.city = "", s.state = "", s.zipcode = "", s.country = "";
394
396
  }
395
397
  return a({
396
- resetInput: ge,
398
+ resetInput: me,
397
399
  geocodeStatus: m,
398
400
  meta: S,
399
401
  errorMessage: h
400
- }), (l, t) => (x(), K("div", Qe, [
401
- y(Ee, {
402
+ }), (l, t) => (x(), G("div", Je, [
403
+ y(Pe, {
402
404
  id: p(f),
403
405
  name: e.name,
404
406
  label: e.label,
405
- "tertiary-label": se.value,
407
+ "tertiary-label": le.value,
406
408
  "error-message": p(h),
407
409
  "success-message": e.successMessage,
408
410
  "is-valid": p(S).valid,
409
411
  "is-touched": p(S).touched,
410
- disabled: e.disabled
412
+ disabled: e.disabled,
413
+ optional: se.value
411
414
  }, {
412
415
  default: C(() => [
413
- v("div", Xe, [
414
- y(p(we), {
416
+ v("div", Ye, [
417
+ y(p(Ie), {
415
418
  modelValue: z.value,
416
419
  "onUpdate:modelValue": [
417
420
  t[0] || (t[0] = (o) => z.value = o),
418
- ie
421
+ de
419
422
  ],
420
423
  disabled: e.disabled,
421
424
  nullable: ""
422
425
  }, {
423
426
  default: C(() => [
424
- v("div", Je, [
425
- y(p(Ce), {
427
+ v("div", qe, [
428
+ y(p(Se), {
426
429
  id: p(f),
427
- "display-value": ne,
430
+ "display-value": ie,
428
431
  placeholder: e.placeholder || "Search for an address...",
429
432
  disabled: e.disabled,
430
433
  class: I([
431
- "sl-block sl-w-full sl-rounded-lg sl-border sl-py-2.5 sl-pl-3 sl-pr-10 sl-text-sm focus:sl-outline-none",
432
- e.disabled ? "sl-border-gray-200 dark:sl-border-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-border-gray-300 dark:sl-border-slate-600 sl-bg-white dark:sl-bg-slate-900 sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 focus:sl-border-stachelock-500 focus:sl-ring-2 focus:sl-ring-stachelock-500"
434
+ "sl-block sl-w-full sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset sl-py-1.5 sl-pl-3 sl-pr-10 sl-text-sm focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-inset focus:sl-ring-stachelock-600",
435
+ e.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-ring-gray-300 dark:sl-ring-slate-600 sl-bg-white dark:sl-bg-slate-800 sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500"
433
436
  ]),
434
- onChange: re,
435
- onFocus: ue,
436
- onBlur: fe
437
+ onChange: ne,
438
+ onFocus: fe,
439
+ onBlur: ge
437
440
  }, null, 8, ["id", "placeholder", "disabled", "class"]),
438
- y(p(Ie), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
441
+ y(p(Ae), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
439
442
  default: C(() => [
440
- e.disabled ? (x(), O(p(ze), {
443
+ e.disabled ? (x(), E(p($e), {
441
444
  key: 0,
442
445
  class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-500",
443
446
  "aria-hidden": "true"
444
- })) : (x(), O(p(_e), {
447
+ })) : (x(), E(p(Ke), {
445
448
  key: 1,
446
449
  class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-400",
447
450
  "aria-hidden": "true"
@@ -455,12 +458,12 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
455
458
  "leave-to": "sl-opacity-0"
456
459
  }, {
457
460
  default: C(() => [
458
- b.value.length > 0 ? (x(), O(p(Se), {
461
+ b.value.length > 0 ? (x(), E(p(ze), {
459
462
  key: 0,
460
463
  class: "sl-absolute sl-z-50 sl-mt-1 sl-max-h-60 sl-w-full sl-overflow-auto sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-py-1 sl-text-base sl-shadow-lg dark:sl-shadow-slate-900/50 sl-ring-1 sl-ring-black sl-ring-opacity-5 dark:sl-ring-slate-700 focus:sl-outline-none sm:sl-text-sm"
461
464
  }, {
462
465
  default: C(() => [
463
- (x(!0), K(he, null, xe(b.value, (o) => (x(), O(p(Ae), {
466
+ (x(!0), G(xe, null, ke(b.value, (o) => (x(), E(p(_e), {
464
467
  key: o.placeId,
465
468
  value: o,
466
469
  as: "template"
@@ -472,7 +475,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
472
475
  w ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
473
476
  ])
474
477
  }, [
475
- v("div", Ye, [
478
+ v("div", et, [
476
479
  v("span", {
477
480
  class: I(["sl-block sl-truncate", Z ? "sl-font-medium" : "sl-font-normal"])
478
481
  }, N(o.mainText), 3),
@@ -480,14 +483,14 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
480
483
  class: I(["sl-text-xs", w ? "sl-text-stachelock-100" : "sl-text-gray-500 dark:sl-text-slate-400"])
481
484
  }, N(o.secondaryText), 3)
482
485
  ]),
483
- Z ? (x(), K("span", {
486
+ Z ? (x(), G("span", {
484
487
  key: 0,
485
488
  class: I([
486
489
  "sl-absolute sl-inset-y-0 sl-left-0 sl-flex sl-items-center sl-pl-3",
487
490
  w ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"
488
491
  ])
489
492
  }, [
490
- y(p($e), {
493
+ y(p(Ge), {
491
494
  class: "sl-h-5 sl-w-5",
492
495
  "aria-hidden": "true"
493
496
  })
@@ -506,31 +509,31 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
506
509
  ]),
507
510
  _: 1
508
511
  }, 8, ["modelValue", "disabled"]),
509
- V.value && !e.disabled ? (x(), K("div", qe, [
510
- v("div", et, [
512
+ V.value && !e.disabled ? (x(), G("div", tt, [
513
+ v("div", st, [
511
514
  v("span", {
512
515
  class: I(["sl-text-xs sl-uppercase sl-font-medium", j.value])
513
- }, N(le.value), 3),
514
- (x(), O(ke(ae.value), {
516
+ }, N(ae.value), 3),
517
+ (x(), E(we(oe.value), {
515
518
  class: I(["sl-h-4 sl-w-4", j.value])
516
519
  }, null, 8, ["class"]))
517
520
  ]),
518
- u.value ? (x(), K("button", {
521
+ u.value ? (x(), G("button", {
519
522
  key: 1,
520
523
  type: "button",
521
524
  onClick: t[2] || (t[2] = (o) => u.value = !1),
522
525
  class: "sl-text-xs sl-text-gray-500 dark:sl-text-slate-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
523
526
  }, [
524
527
  t[10] || (t[10] = H(" Collapse ", -1)),
525
- y(p(Ge), { class: "sl-h-3 sl-w-3" })
526
- ])) : (x(), K("button", {
528
+ y(p(Te), { class: "sl-h-3 sl-w-3" })
529
+ ])) : (x(), G("button", {
527
530
  key: 0,
528
531
  type: "button",
529
532
  onClick: t[1] || (t[1] = (o) => u.value = !0),
530
533
  class: "sl-text-xs sl-text-stachelock-600 dark:sl-text-stachelock-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
531
534
  }, [
532
535
  t[9] || (t[9] = H(" Edit address ", -1)),
533
- y(p(Ke), { class: "sl-h-3 sl-w-3" })
536
+ y(p(Oe), { class: "sl-h-3 sl-w-3" })
534
537
  ]))
535
538
  ])) : R("", !0),
536
539
  y(p(W), {
@@ -543,9 +546,9 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
543
546
  "leave-to": "sl-opacity-0 sl-transform sl--translate-y-2"
544
547
  }, {
545
548
  default: C(() => [
546
- v("div", tt, [
547
- v("div", st, [
548
- y(G, {
549
+ v("div", lt, [
550
+ v("div", at, [
551
+ y(O, {
549
552
  name: `${e.name}_street`,
550
553
  label: "Street Address",
551
554
  value: s.street,
@@ -558,7 +561,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
558
561
  }, null, 8, ["name", "value", "disabled"])
559
562
  ]),
560
563
  v("div", null, [
561
- y(G, {
564
+ y(O, {
562
565
  name: `${e.name}_suite`,
563
566
  label: "Suite / Apt",
564
567
  value: s.suite,
@@ -572,7 +575,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
572
575
  }, null, 8, ["name", "value", "disabled"])
573
576
  ]),
574
577
  v("div", null, [
575
- y(G, {
578
+ y(O, {
576
579
  name: `${e.name}_city`,
577
580
  label: "City",
578
581
  value: s.city,
@@ -585,7 +588,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
585
588
  }, null, 8, ["name", "value", "disabled"])
586
589
  ]),
587
590
  v("div", null, [
588
- y(G, {
591
+ y(O, {
589
592
  name: `${e.name}_state`,
590
593
  label: "State",
591
594
  value: s.state,
@@ -598,7 +601,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
598
601
  }, null, 8, ["name", "value", "disabled"])
599
602
  ]),
600
603
  v("div", null, [
601
- y(G, {
604
+ y(O, {
602
605
  name: `${e.name}_zipcode`,
603
606
  label: "ZIP Code",
604
607
  value: s.zipcode,
@@ -611,7 +614,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
611
614
  }, null, 8, ["name", "value", "disabled"])
612
615
  ]),
613
616
  v("div", null, [
614
- y(G, {
617
+ y(O, {
615
618
  name: `${e.name}_country`,
616
619
  label: "Country",
617
620
  value: s.country,
@@ -630,10 +633,10 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
630
633
  ])
631
634
  ]),
632
635
  _: 1
633
- }, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "disabled"])
636
+ }, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "disabled", "optional"])
634
637
  ]));
635
638
  }
636
- }), pt = /* @__PURE__ */ Le(lt, [["__scopeId", "data-v-d65320d7"]]);
639
+ }), bt = /* @__PURE__ */ Ne(ot, [["__scopeId", "data-v-b3950b26"]]);
637
640
  export {
638
- pt as default
641
+ bt as default
639
642
  };