@stachelock/ui 0.6.8 → 0.6.11

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 (370) hide show
  1. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-CMBsY5Y0.js → CalendarHeader.vue_vue_type_script_setup_true_lang-CooyV5tq.js} +2 -2
  2. package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-DacJtKYo.js → ComboboxInput.vue_vue_type_script_setup_true_lang-Cy0Pl8Ap.js} +90 -91
  3. package/dist/{DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js → DatepickerInput.vue_vue_type_style_index_0_lang-C_0dWHo6.js} +5 -4
  4. 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
  5. package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-Bq8Gvhsc.js → DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js} +1 -1
  6. 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
  7. package/dist/EmailInput.vue_vue_type_script_setup_true_lang-59bDl9yw.js +123 -0
  8. package/dist/{FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js → FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js} +1 -1
  9. package/dist/{ImageDropzoneInput.vue_vue_type_script_setup_true_lang-7JWDfxD2.js → ImageDropzoneInput.vue_vue_type_script_setup_true_lang-Dhl2jFaM.js} +93 -89
  10. package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-B6A0zsE6.js → InlineTabs.vue_vue_type_script_setup_true_lang-DGGJem-g.js} +1 -1
  11. package/dist/{MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js → MonthCalendar.vue_vue_type_style_index_0_lang-BdrrlrNr.js} +1 -1
  12. package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-DFfKsmvj.js → SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js} +138 -140
  13. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-DYlrRigi.js +305 -0
  14. package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-BzqtAqbr.js → TabGroup.vue_vue_type_script_setup_true_lang-DTWW7kYh.js} +1 -1
  15. package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-C6OYRDCq.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-B8e7kxad.js} +1 -1
  16. package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-C7T3PUnB.js → TabsInPills.vue_vue_type_script_setup_true_lang-Dzi4ENL1.js} +1 -1
  17. package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js → TagifyInput.vue_vue_type_script_setup_true_lang-CwxJ2x1x.js} +65 -62
  18. package/dist/{TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js → TextAreaInput.vue_vue_type_script_setup_true_lang-Dtf7H1sT.js} +3 -2
  19. package/dist/{calendar-DLry-Vik.js → calendar-DaXCwXP5.js} +1 -1
  20. package/dist/calendars/CalendarDashboard.d.ts +3 -1
  21. package/dist/calendars/CalendarDashboard.js +2 -2
  22. package/dist/calendars/CalendarHeader.d.ts +3 -1
  23. package/dist/calendars/CalendarHeader.js +1 -1
  24. package/dist/calendars/DayCalendar.d.ts +3 -1
  25. package/dist/calendars/DayCalendar.js +1 -1
  26. package/dist/calendars/EventCard.d.ts +3 -1
  27. package/dist/calendars/EventsList.d.ts +3 -1
  28. package/dist/calendars/MonthCalendar.d.ts +3 -1
  29. package/dist/calendars/MonthCalendar.js +1 -1
  30. package/dist/calendars/WeekCalendar.d.ts +3 -1
  31. package/dist/calendars/WeekCalendar.js +2 -2
  32. package/dist/calendars/YearCalendar.d.ts +3 -1
  33. package/dist/charts/BarChart.d.ts +3 -1
  34. package/dist/charts/BaseChart.d.ts +3 -1
  35. package/dist/charts/FunnelChart.d.ts +3 -1
  36. package/dist/charts/LineChart.d.ts +3 -1
  37. package/dist/charts/PieChart.d.ts +3 -1
  38. package/dist/charts/SparklineChart.d.ts +3 -1
  39. package/dist/charts/StatCard.d.ts +3 -1
  40. package/dist/charts/chartTheme.d.ts +0 -3
  41. package/dist/charts/index.d.ts +0 -1
  42. package/dist/components/Avatar.d.ts +3 -1
  43. package/dist/components/Badge.d.ts +3 -1
  44. package/dist/components/Banner.d.ts +3 -1
  45. package/dist/components/Breadcrumb.d.ts +3 -1
  46. package/dist/components/Button.d.ts +3 -1
  47. package/dist/components/ButtonGroup.d.ts +3 -1
  48. package/dist/components/Checkbox.d.ts +3 -1
  49. package/dist/components/CloudinaryImage.d.ts +3 -1
  50. package/dist/components/CloudinaryImage.js +52 -52
  51. package/dist/components/Loading.d.ts +3 -1
  52. package/dist/components/LoadingDots.d.ts +3 -1
  53. package/dist/components/LottieAnimation.d.ts +3 -1
  54. package/dist/components/Menu.d.ts +3 -1
  55. package/dist/components/Modal.d.ts +3 -1
  56. package/dist/components/NavLink.d.ts +3 -1
  57. package/dist/components/ProgressBar.d.ts +3 -1
  58. package/dist/components/RadialProgressBar.d.ts +3 -1
  59. package/dist/components/Table.d.ts +3 -1
  60. package/dist/components/Transition.d.ts +3 -1
  61. package/dist/composables/index.d.ts +0 -1
  62. package/dist/composables/useCalendar.d.ts +0 -3
  63. package/dist/composables/useCalendar.js +1 -1
  64. package/dist/composables/useFormValidation.d.ts +0 -3
  65. package/dist/composables/useMap.d.ts +0 -3
  66. package/dist/composables/useModal.d.ts +0 -3
  67. package/dist/composables/useNotifications.d.ts +0 -3
  68. package/dist/composables/useNotifications.js +1 -1
  69. package/dist/composables/useTabs.d.ts +0 -1
  70. package/dist/composables/useTheme.d.ts +0 -3
  71. package/dist/empty-state/ComingSoon.d.ts +3 -1
  72. package/dist/empty-state/EmptyState.d.ts +3 -1
  73. package/dist/empty-state/index.d.ts +0 -1
  74. package/dist/forms/DynamicForm.d.ts +3 -1
  75. package/dist/forms/DynamicForm.js +1 -1
  76. package/dist/forms/DynamicFormField.d.ts +3 -1
  77. package/dist/forms/DynamicFormField.js +1 -1
  78. package/dist/forms/FormFieldWrapper.d.ts +3 -1
  79. package/dist/forms/FormFieldWrapper.js +2 -2
  80. package/dist/index.d.ts +0 -3
  81. package/dist/index.js +1677 -1341
  82. package/dist/inputs/AddDeleteButtonGroup.d.ts +3 -1
  83. package/dist/inputs/AddressInput.d.ts +3 -1
  84. package/dist/inputs/AddressInput.js +49 -47
  85. package/dist/inputs/CheckboxInput.d.ts +3 -1
  86. package/dist/inputs/ComboboxInput.d.ts +3 -1
  87. package/dist/inputs/ComboboxInput.js +1 -1
  88. package/dist/inputs/DatepickerInput.d.ts +3 -1
  89. package/dist/inputs/DatepickerInput.js +1 -1
  90. package/dist/inputs/EmailInput.d.ts +3 -1
  91. package/dist/inputs/EmailInput.js +1 -1
  92. package/dist/inputs/EmptyInput.d.ts +3 -1
  93. package/dist/inputs/FileDropzoneInput.d.ts +3 -1
  94. package/dist/inputs/FileDropzoneInput.js +1 -1
  95. package/dist/inputs/HiddenInput.d.ts +3 -1
  96. package/dist/inputs/ImageDropzoneInput.d.ts +3 -1
  97. package/dist/inputs/ImageDropzoneInput.js +1 -1
  98. package/dist/inputs/PhoneInput.d.ts +3 -1
  99. package/dist/inputs/PhoneInput.js +148 -147
  100. package/dist/inputs/RichTextInput.d.ts +3 -1
  101. package/dist/inputs/RichTextInput.js +1 -1
  102. package/dist/inputs/SelectInput.d.ts +3 -1
  103. package/dist/inputs/SelectInput.js +1 -1
  104. package/dist/inputs/SelectTextInput.d.ts +3 -1
  105. package/dist/inputs/SelectTextInput.js +1 -1
  106. package/dist/inputs/SwitchInput.d.ts +3 -1
  107. package/dist/inputs/SwitchInputGroup.d.ts +3 -1
  108. package/dist/inputs/TagifyInput.d.ts +3 -1
  109. package/dist/inputs/TagifyInput.js +1 -1
  110. package/dist/inputs/TextAreaInput.d.ts +3 -1
  111. package/dist/inputs/TextAreaInput.js +1 -1
  112. package/dist/inputs/TextInput.d.ts +3 -1
  113. package/dist/inputs/TextInput.js +116 -3
  114. package/dist/layouts/DashboardLayout.d.ts +3 -1
  115. package/dist/layouts/DefaultLayout.d.ts +3 -1
  116. package/dist/layouts/HeaderLayout.d.ts +3 -1
  117. package/dist/layouts/NavigationGroup.d.ts +3 -1
  118. package/dist/layouts/NavigationItem.d.ts +3 -1
  119. package/dist/layouts/ProfileHeaderAvatar.d.ts +3 -1
  120. package/dist/layouts/ProjectLogo.d.ts +3 -1
  121. package/dist/layouts/SidebarLayout.d.ts +3 -1
  122. package/dist/loading/ContentSkeleton.d.ts +3 -1
  123. package/dist/loading/SmartLoadingIndicator.d.ts +3 -1
  124. package/dist/loading/index.d.ts +0 -1
  125. package/dist/maps/GoogleMap.d.ts +3 -1
  126. package/dist/maps/UiInfoWindow.d.ts +3 -1
  127. package/dist/maps/UiMap.d.ts +3 -1
  128. package/dist/maps/UiMapAll.d.ts +3 -1
  129. package/dist/maps/UiMapMarker.d.ts +3 -1
  130. package/dist/maps/index.d.ts +0 -1
  131. package/dist/modals/AlertModal.d.ts +3 -1
  132. package/dist/modals/BaseModal.d.ts +3 -1
  133. package/dist/modals/ImageCropperModal.d.ts +3 -1
  134. package/dist/notifications/NotificationContainer.d.ts +3 -1
  135. package/dist/notifications/NotificationToast.d.ts +3 -1
  136. package/dist/notifications/index.d.ts +0 -1
  137. package/dist/src/components/CloudinaryImage.d.ts +16 -14
  138. package/dist/src/components/LottieAnimation.d.ts +37 -6
  139. package/dist/src/components/ThemeDebugModal.d.ts +16 -6
  140. package/dist/src/components/UiAvatar.d.ts +35 -2
  141. package/dist/src/components/UiBadge.d.ts +33 -6
  142. package/dist/src/components/UiBanner.d.ts +108 -35
  143. package/dist/src/components/UiBreadcrumb.d.ts +11 -10
  144. package/dist/src/components/UiButton.d.ts +66 -13
  145. package/dist/src/components/UiButtonGroup.d.ts +37 -7
  146. package/dist/src/components/UiCheckbox.d.ts +33 -8
  147. package/dist/src/components/UiLoading.d.ts +28 -2
  148. package/dist/src/components/UiLoadingDots.d.ts +2 -2
  149. package/dist/src/components/UiMenu.d.ts +33 -5
  150. package/dist/src/components/UiModal.d.ts +3 -4
  151. package/dist/src/components/UiNavLink.d.ts +40 -6
  152. package/dist/src/components/UiProgressBar.d.ts +32 -3
  153. package/dist/src/components/UiRadialProgressBar.d.ts +34 -3
  154. package/dist/src/components/UiTable.d.ts +29 -6
  155. package/dist/src/components/UiTransition.d.ts +26 -3
  156. package/dist/src/components/avatars/AvatarIcon.d.ts +28 -6
  157. package/dist/src/components/avatars/AvatarImage.d.ts +30 -9
  158. package/dist/src/components/avatars/AvatarInitials.d.ts +24 -5
  159. package/dist/src/components/avatars/AvatarWithText.d.ts +4 -3
  160. package/dist/src/components/calendars/CalendarDashboard.d.ts +17 -5
  161. package/dist/src/components/calendars/CalendarHeader.d.ts +7 -8
  162. package/dist/src/components/calendars/DayCalendar.d.ts +17 -11
  163. package/dist/src/components/calendars/EventCard.d.ts +2 -1
  164. package/dist/src/components/calendars/EventsList.d.ts +18 -6
  165. package/dist/src/components/calendars/MonthCalendar.d.ts +30 -6
  166. package/dist/src/components/calendars/WeekCalendar.d.ts +16 -10
  167. package/dist/src/components/calendars/YearCalendar.d.ts +29 -5
  168. package/dist/src/components/charts/BarChart.d.ts +40 -7
  169. package/dist/src/components/charts/BaseChart.d.ts +80 -0
  170. package/dist/src/components/charts/FunnelChart.d.ts +34 -5
  171. package/dist/src/components/charts/LineChart.d.ts +37 -6
  172. package/dist/src/components/charts/PieChart.d.ts +37 -6
  173. package/dist/src/components/charts/SparklineChart.d.ts +32 -3
  174. package/dist/src/components/charts/StatCard.d.ts +24 -2
  175. package/dist/src/components/charts/chartTheme.d.ts +1 -0
  176. package/dist/src/components/collection-editor/CollectionEditor.d.ts +112 -0
  177. package/dist/src/components/collection-editor/CollectionItemList.d.ts +37 -7
  178. package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +34 -8
  179. package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +37 -7
  180. package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +37 -7
  181. package/dist/src/components/empty-state/ComingSoon.d.ts +29 -2
  182. package/dist/src/components/empty-state/EmptyState.d.ts +26 -4
  183. package/dist/src/components/formatters/DateFormatter.d.ts +2 -1
  184. package/dist/src/components/formatters/DateRangeFormatter.d.ts +1 -0
  185. package/dist/src/components/forms/DynamicForm.d.ts +37 -11
  186. package/dist/src/components/forms/DynamicFormField.d.ts +15 -5
  187. package/dist/src/components/forms/FormFieldWrapper.d.ts +58 -14
  188. package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +1 -1
  189. package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +1 -1
  190. package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +1 -1
  191. package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +1 -1
  192. package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +1 -1
  193. package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +1 -1
  194. package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +1 -1
  195. package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +1 -1
  196. package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +1 -1
  197. package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +1 -1
  198. package/dist/src/components/icons/brands/XBrandIcon.d.ts +1 -1
  199. package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +1 -1
  200. package/dist/src/components/index.d.ts +1 -0
  201. package/dist/src/components/inputs/AddDeleteButtonGroup.d.ts +3 -2
  202. package/dist/src/components/inputs/AddressInput.d.ts +45 -7
  203. package/dist/src/components/inputs/CheckboxInput.d.ts +37 -10
  204. package/dist/src/components/inputs/ComboboxInput.d.ts +54 -12
  205. package/dist/src/components/inputs/DatepickerInput.d.ts +43 -1046
  206. package/dist/src/components/inputs/EmailInput.d.ts +56 -12
  207. package/dist/src/components/inputs/EmptyInput.d.ts +26 -2
  208. package/dist/src/components/inputs/FileDropzoneInput.d.ts +6 -7
  209. package/dist/src/components/inputs/HiddenInput.d.ts +23 -2
  210. package/dist/src/components/inputs/ImageDropzoneInput.d.ts +9 -8
  211. package/dist/src/components/inputs/InputsShowcase.d.ts +1 -1
  212. package/dist/src/components/inputs/PhoneInput.d.ts +18 -81
  213. package/dist/src/components/inputs/RichTextInput.d.ts +81 -23
  214. package/dist/src/components/inputs/SelectInput.d.ts +41 -47
  215. package/dist/src/components/inputs/SelectTextInput.d.ts +22 -53
  216. package/dist/src/components/inputs/SwitchInput.d.ts +41 -114
  217. package/dist/src/components/inputs/SwitchInputGroup.d.ts +3 -2
  218. package/dist/src/components/inputs/TagifyInput.d.ts +8 -10
  219. package/dist/src/components/inputs/TextAreaInput.d.ts +35 -9
  220. package/dist/src/components/inputs/TextInput.d.ts +76 -14
  221. package/dist/src/components/layouts/CardLayout.d.ts +64 -18
  222. package/dist/src/components/layouts/DashboardLayout.d.ts +5 -8
  223. package/dist/src/components/layouts/DefaultLayout.d.ts +1 -1
  224. package/dist/src/components/layouts/HeaderLayout.d.ts +4 -4
  225. package/dist/src/components/layouts/InfoCard.d.ts +25 -2
  226. package/dist/src/components/layouts/NavigationGroup.d.ts +16 -5
  227. package/dist/src/components/layouts/NavigationItem.d.ts +24 -7
  228. package/dist/src/components/layouts/ProfileHeaderAvatar.d.ts +40 -10
  229. package/dist/src/components/layouts/ProjectLogo.d.ts +33 -2
  230. package/dist/src/components/layouts/PropsTable.d.ts +23 -2
  231. package/dist/src/components/layouts/ShowcaseCard.d.ts +29 -2
  232. package/dist/src/components/layouts/ShowcaseLayout.d.ts +28 -5
  233. package/dist/src/components/layouts/SidebarLayout.d.ts +4 -7
  234. package/dist/src/components/layouts/StateDisplay.d.ts +23 -2
  235. package/dist/src/components/loading/ContentSkeleton.d.ts +31 -2
  236. package/dist/src/components/loading/SmartLoadingIndicator.d.ts +47 -6
  237. package/dist/src/components/maps/GoogleMap.d.ts +9 -8
  238. package/dist/src/components/maps/UiInfoWindow.d.ts +14 -229
  239. package/dist/src/components/maps/UiMap.d.ts +103 -5093
  240. package/dist/src/components/maps/UiMapAll.d.ts +22 -1132
  241. package/dist/src/components/maps/UiMapMarker.d.ts +18 -17
  242. package/dist/src/components/modals/AlertModal.d.ts +10 -9
  243. package/dist/src/components/modals/BaseModal.d.ts +6 -5
  244. package/dist/src/components/modals/ImageCropperModal.d.ts +75 -379
  245. package/dist/src/components/notifications/NotificationToast.d.ts +18 -7
  246. package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +117 -0
  247. package/dist/src/components/profile-inputs/NamesInput.d.ts +107 -0
  248. package/dist/src/components/profile-inputs/index.d.ts +2 -0
  249. package/dist/src/components/profiles/BentoProfileLayout.d.ts +44 -2
  250. package/dist/src/components/profiles/BentoProfileLayoutSkeleton.d.ts +27 -2
  251. package/dist/src/components/profiles/ProfileCard.d.ts +30 -2
  252. package/dist/src/components/profiles/ProfileContactCard.d.ts +25 -2
  253. package/dist/src/components/profiles/ProfileHeaderCard.d.ts +26 -2
  254. package/dist/src/components/profiles/ProfileLocationCard.d.ts +28 -2
  255. package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +26 -2
  256. package/dist/src/components/profiles/ProfilePersonalCard.d.ts +25 -2
  257. package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +26 -2
  258. package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +26 -2
  259. package/dist/src/components/profiles/ProfileSocialCard.d.ts +26 -2
  260. package/dist/src/components/stepper/StepperPanels.d.ts +14 -4
  261. package/dist/src/components/tabs/InlineTabs.d.ts +28 -4
  262. package/dist/src/components/tabs/TabGroup.d.ts +32 -6
  263. package/dist/src/components/tabs/TabGroupUnderline.d.ts +32 -6
  264. package/dist/src/components/tabs/TabsInPills.d.ts +26 -4
  265. package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +37 -2
  266. package/dist/src/components/wrappers/CardWrapper.d.ts +1 -1
  267. package/dist/src/components/wrappers/DisclosureWrapper.d.ts +23 -2
  268. package/dist/src/components/wrappers/FormErrorWrapper.d.ts +25 -2
  269. package/dist/src/composables/useCalendar.d.ts +1 -0
  270. package/dist/src/composables/useCollectionEditor.d.ts +1 -0
  271. package/dist/src/composables/useFormValidation.d.ts +1 -0
  272. package/dist/src/composables/useMap.d.ts +1 -0
  273. package/dist/src/composables/useNotifications.d.ts +33 -32
  274. package/dist/src/composables/useSimpleTabs.d.ts +1 -0
  275. package/dist/src/composables/useStringTransform.d.ts +1 -0
  276. package/dist/src/composables/useTabs.d.ts +1 -0
  277. package/dist/src/config/css-variables.d.ts +1 -0
  278. package/dist/src/dev.d.ts +1 -0
  279. package/dist/src/plugin/configure.d.ts +3 -2
  280. package/dist/src/services/geocoding.service.d.ts +1 -0
  281. package/dist/src/types/calendars.d.ts +1 -0
  282. package/dist/src/types/core.d.ts +8 -7
  283. package/dist/src/types/forms.d.ts +1 -0
  284. package/dist/src/types/layouts.d.ts +1 -0
  285. package/dist/src/types/navigation.d.ts +1 -0
  286. package/dist/src/types/tables.d.ts +1 -0
  287. package/dist/src/types/ui.d.ts +1 -0
  288. package/dist/src/utils/component-registry.d.ts +1 -0
  289. package/dist/src/utils/mapThemes.d.ts +1 -0
  290. package/dist/src/utils/phone.d.ts +1 -0
  291. package/dist/src/utils/validation.d.ts +1 -0
  292. package/dist/src/views/components/index.d.ts +1 -1
  293. package/dist/src/views/index.d.ts +1 -0
  294. package/dist/src/views/inputs/index.d.ts +2 -0
  295. package/dist/stepper/StepperPanels.d.ts +3 -1
  296. package/dist/stepper/index.d.ts +0 -1
  297. package/dist/style.css +1 -1
  298. package/dist/tabs/InlineTabs.d.ts +3 -1
  299. package/dist/tabs/InlineTabs.js +1 -1
  300. package/dist/tabs/TabGroup.d.ts +3 -1
  301. package/dist/tabs/TabGroup.js +1 -1
  302. package/dist/tabs/TabGroupUnderline.d.ts +3 -1
  303. package/dist/tabs/TabGroupUnderline.js +1 -1
  304. package/dist/tabs/TabsInPills.d.ts +3 -1
  305. package/dist/tabs/TabsInPills.js +1 -1
  306. package/dist/tabs/index.d.ts +0 -1
  307. package/dist/tabs/index.js +4 -4
  308. package/dist/validation-Dzczp6MS.js +22 -0
  309. package/dist/wrappers/BackgroundGradientWrapper.d.ts +3 -1
  310. package/dist/wrappers/CardWrapper.d.ts +3 -1
  311. package/dist/wrappers/DisclosureWrapper.d.ts +3 -1
  312. package/dist/wrappers/FormErrorWrapper.d.ts +3 -1
  313. package/dist/wrappers/index.d.ts +0 -1
  314. package/package.json +29 -29
  315. package/dist/EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js +0 -121
  316. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-C3BGLjY1.js +0 -336
  317. package/dist/TextInput-C5IzX7m_.js +0 -131
  318. package/dist/src/views/ButtonsShowcase.d.ts +0 -2
  319. package/dist/src/views/CalendarsShowcase.d.ts +0 -2
  320. package/dist/src/views/CardsShowcase.d.ts +0 -2
  321. package/dist/src/views/ChartsShowcase.d.ts +0 -2
  322. package/dist/src/views/EmptyStatesShowcase.d.ts +0 -2
  323. package/dist/src/views/InputsShowcase.d.ts +0 -2
  324. package/dist/src/views/KitchenSink.d.ts +0 -2
  325. package/dist/src/views/LayoutsShowcase.d.ts +0 -2
  326. package/dist/src/views/LoadingShowcase.d.ts +0 -2
  327. package/dist/src/views/MapsShowcase.d.ts +0 -2
  328. package/dist/src/views/ModalsShowcase.d.ts +0 -2
  329. package/dist/src/views/NotificationsShowcase.d.ts +0 -2
  330. package/dist/src/views/StepperShowcase.d.ts +0 -2
  331. package/dist/src/views/TabsShowcase.d.ts +0 -2
  332. package/dist/src/views/ValidationDemo.d.ts +0 -2
  333. package/dist/src/views/WrappersShowcase.d.ts +0 -2
  334. package/dist/src/views/components/AvatarPage.d.ts +0 -2
  335. package/dist/src/views/components/BadgePage.d.ts +0 -2
  336. package/dist/src/views/components/BannerPage.d.ts +0 -2
  337. package/dist/src/views/components/BreadcrumbPage.d.ts +0 -2
  338. package/dist/src/views/components/ButtonPage.d.ts +0 -2
  339. package/dist/src/views/components/CloudinaryImagePage.d.ts +0 -2
  340. package/dist/src/views/components/LoadingPage.d.ts +0 -2
  341. package/dist/src/views/components/LottiePage.d.ts +0 -2
  342. package/dist/src/views/components/MenuPage.d.ts +0 -2
  343. package/dist/src/views/components/ModalPage.d.ts +0 -2
  344. package/dist/src/views/components/ProgressPage.d.ts +0 -2
  345. package/dist/src/views/components/RichTextInputPage.d.ts +0 -2
  346. package/dist/src/views/components/TablePage.d.ts +0 -2
  347. package/dist/src/views/components/TextInputPage.d.ts +0 -2
  348. package/dist/src/views/components/TransitionPage.d.ts +0 -2
  349. package/dist/src/views/examples/CheckoutFormExample.d.ts +0 -2
  350. package/dist/src/views/examples/ContactFormExample.d.ts +0 -2
  351. package/dist/src/views/examples/RegistrationFormExample.d.ts +0 -2
  352. package/dist/src/views/examples/SettingsFormExample.d.ts +0 -2
  353. package/dist/src/views/forms/ValidationPage.d.ts +0 -2
  354. package/dist/src/views/inputs/CheckboxPage.d.ts +0 -2
  355. package/dist/src/views/inputs/ComboboxPage.d.ts +0 -2
  356. package/dist/src/views/inputs/DatepickerPage.d.ts +0 -2
  357. package/dist/src/views/inputs/EmailPage.d.ts +0 -2
  358. package/dist/src/views/inputs/FileDropzonePage.d.ts +0 -2
  359. package/dist/src/views/inputs/MiscInputsPage.d.ts +0 -2
  360. package/dist/src/views/inputs/PhonePage.d.ts +0 -2
  361. package/dist/src/views/inputs/SelectPage.d.ts +0 -2
  362. package/dist/src/views/inputs/SelectTextPage.d.ts +0 -2
  363. package/dist/src/views/inputs/SwitchGroupPage.d.ts +0 -2
  364. package/dist/src/views/inputs/SwitchPage.d.ts +0 -2
  365. package/dist/src/views/inputs/TextAreaPage.d.ts +0 -2
  366. package/dist/src/views/layouts/CardLayoutPage.d.ts +0 -2
  367. package/dist/src/views/layouts/DashboardLayoutPage.d.ts +0 -2
  368. package/dist/src/views/layouts/HeaderLayoutPage.d.ts +0 -2
  369. package/dist/src/views/layouts/SidebarLayoutPage.d.ts +0 -2
  370. package/dist/ui.css +0 -1
@@ -1,336 +0,0 @@
1
- import { defineComponent as X, ref as B, onMounted as N, onBeforeUnmount as Z, reactive as _, toRefs as ee, computed as x, watch as te, createElementBlock as o, openBlock as r, createCommentVNode as f, createElementVNode as d, createVNode as v, createBlock as O, resolveDynamicComponent as le, toDisplayString as g, unref as y, normalizeClass as h, withCtx as b, Teleport as se, Transition as P, normalizeStyle as ae, Fragment as ne, renderList as re } from "vue";
2
- import { ExclamationCircleIcon as ie, CheckCircleIcon as oe, ChevronUpDownIcon as de, CheckIcon as ce } from "@heroicons/vue/20/solid";
3
- import { Listbox as ue, ListboxButton as fe, ListboxOptions as xe, ListboxOption as ve } from "@headlessui/vue";
4
- const ye = {
5
- class: "sl-space-y-1",
6
- "data-testid": "select-text-input"
7
- }, ge = {
8
- key: 0,
9
- class: "sl-grid sl-grid-cols-3 sl-items-center"
10
- }, me = { class: "sl-col-span-2 sl-flex sl-items-center" }, pe = {
11
- key: 1,
12
- class: "sl-text-sm sl-font-medium",
13
- style: { color: "var(--sl-text-primary)" }
14
- }, he = { class: "sl-justify-self-end sl-col-start-3 sl-text-right sl-space-y-0.5" }, be = {
15
- key: 0,
16
- class: "sl-text-xs",
17
- style: { color: "var(--sl-text-muted)" }
18
- }, ke = {
19
- key: 1,
20
- class: "sl-text-2xs sl-uppercase sl-truncate sl-font-semibold sl-block",
21
- style: { color: "var(--sl-text-secondary)" }
22
- }, we = {
23
- key: 2,
24
- class: "sl-text-2xs sl-uppercase sl-truncate sl-font-semibold sl-block",
25
- style: { color: "var(--sl-text-secondary)" }
26
- }, Se = { class: "sl-relative sl-mt-1" }, Le = {
27
- key: 0,
28
- class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-3 sl-z-20 sl-pointer-events-none"
29
- }, Ce = {
30
- key: 1,
31
- class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-3 sl-z-20 sl-pointer-events-none"
32
- }, Ee = { class: "sl-relative" }, Be = { class: "sl-pointer-events-none sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, Oe = {
33
- key: 0,
34
- class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-4"
35
- }, Re = { class: "sl-flex-1 sl-relative" }, Me = ["aria-invalid", "name", "placeholder", "inputmode", "maxlength", "value", "disabled"], Ve = {
36
- key: 0,
37
- class: "sl-mt-2 sl-text-sm sl-text-red-600 dark:sl-text-red-400 sl-bg-red-50 dark:sl-bg-red-900/20 sl-ring-1 sl-ring-red-100 dark:sl-ring-red-800 sl-rounded-md sl-p-2"
38
- }, ze = {
39
- key: 1,
40
- class: "sl-text-xs sl-text-gray-500 dark:sl-text-slate-400"
41
- }, $e = /* @__PURE__ */ X({
42
- __name: "SelectTextInput",
43
- props: {
44
- name: { type: String, required: !0 },
45
- label: { type: String, default: "" },
46
- tertiaryLabel: { type: String, default: "" },
47
- secondaryLabel: { type: String, default: "" },
48
- labelIconLeft: { type: [Object, Function], default: void 0 },
49
- value: {
50
- type: [Object, String, Number],
51
- default: void 0
52
- },
53
- select: {
54
- type: Object,
55
- default: () => ({ options: [] })
56
- },
57
- text: {
58
- type: Object,
59
- default: () => ({})
60
- },
61
- delimiter: { type: String, default: " " },
62
- formatter: { type: Function },
63
- showErrors: { type: Boolean, default: !1 },
64
- hasError: { type: Boolean, default: !1 },
65
- validateOnMount: { type: Boolean, default: !1 },
66
- textValidationRegex: { type: [RegExp, Object], default: void 0 },
67
- requiredText: { type: Boolean, default: !1 },
68
- disabled: { type: Boolean, default: !1 },
69
- disabledMessage: { type: String, default: "" },
70
- colorfulValidation: { type: Boolean, default: !0 },
71
- showValidCheck: { type: Boolean, default: !0 }
72
- },
73
- emits: ["update:value", "update:validity"],
74
- setup(s, { emit: q }) {
75
- const R = B(null), M = B({
76
- top: "0px",
77
- left: "0px",
78
- width: "120px"
79
- }), k = B(!1);
80
- function V() {
81
- const e = R.value?.$el;
82
- if (!e) return;
83
- const t = e.getBoundingClientRect();
84
- M.value = {
85
- top: `${t.bottom + 4}px`,
86
- left: `${t.left}px`,
87
- width: `${Math.max(t.width, 120)}px`
88
- };
89
- }
90
- function F() {
91
- k.value = !k.value, k.value && V();
92
- }
93
- function w() {
94
- k.value && V();
95
- }
96
- N(() => {
97
- window.addEventListener("scroll", w, !0), window.addEventListener("resize", w);
98
- }), Z(() => {
99
- window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w);
100
- });
101
- const U = /\b(19|20)\d{2}\b$/;
102
- function i(e) {
103
- if (typeof e == "string") {
104
- const t = e.trim();
105
- return t.length ? t : void 0;
106
- }
107
- if (typeof e == "number") {
108
- const t = String(e);
109
- return t.length ? t : void 0;
110
- }
111
- }
112
- function z(e) {
113
- return !!e && typeof e == "object" && !Array.isArray(e) && ("select" in e || "text" in e || "display" in e);
114
- }
115
- function Y(e) {
116
- return !!(e.select || e.text || e.display);
117
- }
118
- function C(e, t, l) {
119
- return l || (e && t ? `${e} ${t}`.trim() : e || t || void 0);
120
- }
121
- function I(e) {
122
- const t = {};
123
- if (e == null) return t;
124
- if (typeof e == "string" || typeof e == "number") {
125
- const l = i(e);
126
- if (!l) return t;
127
- const u = l.match(U);
128
- if (u) {
129
- const c = u[0], p = l.slice(0, l.length - c.length).trim();
130
- p && (t.select = p), t.text = c, t.display = C(t.select, t.text);
131
- } else
132
- t.text = l, t.display = l;
133
- return t;
134
- }
135
- if (z(e)) {
136
- const l = e, u = i(l.select), c = i(l.text), p = i(l.display);
137
- return u && (t.select = u), c && (t.text = c), t.display = C(t.select, t.text, p), t;
138
- }
139
- if (typeof e == "object" && !Array.isArray(e)) {
140
- const l = e, u = i(l.select) ?? i(l.term) ?? i(l.semester), c = i(l.text) ?? i(l.year) ?? i(l.value), p = i(l.display) ?? i(l.label);
141
- return u && (t.select = u), c && (t.text = c), t.display = C(t.select, t.text, p), t;
142
- }
143
- return t;
144
- }
145
- const a = s, j = q, T = I(a.value), $ = _({
146
- localValue: T
147
- }), { localValue: n } = ee($), G = x(
148
- () => Y(T) && !z(a.value)
149
- ), A = x(() => a.select?.options || []), E = x(() => n.value.select && A.value.find((e) => e.value === n.value.select) || null), H = x(() => {
150
- const e = n.value.text;
151
- return a.textValidationRegex ? !e || String(e).trim() === "" ? a.requiredText === !0 : !a.textValidationRegex.test(String(e)) : !1;
152
- }), m = x(() => a.showErrors && (a.hasError || H.value)), D = x(
153
- () => a.showValidCheck && !m.value && !!S.value
154
- ), J = x(() => a.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-700" : a.colorfulValidation ? m.value ? "sl-ring-red-300 dark:sl-ring-red-500 focus-within:sl-ring-stachelock-600" : D.value ? "sl-ring-green-300 dark:sl-ring-green-500 focus-within:sl-ring-stachelock-600" : "sl-ring-gray-300 dark:sl-ring-slate-600 focus-within:sl-ring-stachelock-600" : "sl-ring-gray-300 dark:sl-ring-slate-600 focus-within:sl-ring-stachelock-600"), S = x(() => {
155
- const e = { select: n.value.select, text: n.value.text }, t = a.formatter ? a.formatter(e) : void 0;
156
- return t !== void 0 ? t : [e.select, e.text].filter(Boolean).join(a.delimiter).trim();
157
- }), K = x(() => {
158
- if (!m.value) return "";
159
- const e = !!n.value.select, t = !!n.value.text && String(n.value.text).trim() !== "", l = !!n.value.text && /^\d{4}$/.test(String(n.value.text));
160
- return !e && !t ? "Please select an option and enter a value." : e ? t ? !l && a.textValidationRegex ? "Please enter a valid value." : "Please complete both fields." : "Please enter a value." : "Please select an option.";
161
- });
162
- function L() {
163
- const e = S.value || void 0, t = {
164
- select: n.value.select,
165
- text: n.value.text,
166
- display: e
167
- };
168
- j("update:value", t);
169
- const l = !!(t.select && t.text && String(t.text).length > 0);
170
- j("update:validity", l);
171
- }
172
- function Q(e) {
173
- n.value.select = e?.value || void 0, k.value = !1, L();
174
- }
175
- function W(e) {
176
- n.value.text = e || void 0, L();
177
- }
178
- return te(
179
- () => a.value,
180
- (e) => {
181
- $.localValue = I(e);
182
- },
183
- { deep: !0 }
184
- ), N(() => {
185
- G.value && L();
186
- }), a.validateOnMount && L(), (e, t) => (r(), o("div", ye, [
187
- s.label || s.secondaryLabel || s.tertiaryLabel || s.disabled && s.disabledMessage ? (r(), o("div", ge, [
188
- d("div", me, [
189
- s.labelIconLeft ? (r(), O(le(s.labelIconLeft), {
190
- key: 0,
191
- class: "sl-mr-2 sl-h-4 sl-w-4 sl-text-yellow-300"
192
- })) : f("", !0),
193
- s.label ? (r(), o("label", pe, g(s.label), 1)) : f("", !0)
194
- ]),
195
- d("div", he, [
196
- s.disabled && s.disabledMessage ? (r(), o("p", be, g(s.disabledMessage), 1)) : f("", !0),
197
- s.secondaryLabel ? (r(), o("span", ke, g(s.secondaryLabel), 1)) : f("", !0),
198
- s.tertiaryLabel ? (r(), o("span", we, g(s.tertiaryLabel), 1)) : f("", !0)
199
- ])
200
- ])) : f("", !0),
201
- d("div", Se, [
202
- m.value ? (r(), o("div", Le, [
203
- v(y(ie), {
204
- class: "sl-h-5 sl-w-5 sl-text-red-500",
205
- "aria-hidden": "true"
206
- })
207
- ])) : D.value ? (r(), o("div", Ce, [
208
- v(y(oe), {
209
- class: "sl-h-5 sl-w-5 sl-text-green-500",
210
- "aria-hidden": "true"
211
- })
212
- ])) : f("", !0),
213
- d("div", {
214
- class: h(["sl-flex sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset focus-within:sl-ring-2 focus-within:sl-ring-inset", J.value])
215
- }, [
216
- v(y(ue), {
217
- "model-value": E.value,
218
- "onUpdate:modelValue": Q,
219
- disabled: s.disabled
220
- }, {
221
- default: b(() => [
222
- d("div", Ee, [
223
- v(y(fe), {
224
- ref_key: "listboxButtonRef",
225
- ref: R,
226
- class: h([
227
- "sl-relative sl-cursor-default sl-rounded-l-md sl-border-0 sl-py-2 sl-pl-3 sl-pr-10 sl-text-left sl-text-sm",
228
- "sl-bg-white dark:sl-bg-slate-900 sl-text-gray-900 dark:sl-text-slate-100",
229
- "focus:sl-outline-none focus:sl-ring-0",
230
- s.disabled ? "sl-cursor-not-allowed sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400" : ""
231
- ]),
232
- "data-testid": "select-dropdown",
233
- onClick: F
234
- }, {
235
- default: b(() => [
236
- d("span", {
237
- class: h(["sl-block sl-truncate sl-min-w-[80px]", E.value ? "" : "sl-text-gray-500 dark:sl-text-slate-400"])
238
- }, g(E.value?.label || s.select?.placeholder || "Select…"), 3),
239
- d("span", Be, [
240
- v(y(de), {
241
- class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-300",
242
- "aria-hidden": "true"
243
- })
244
- ])
245
- ]),
246
- _: 1
247
- }, 8, ["class"]),
248
- (r(), O(se, { to: "body" }, [
249
- v(P, {
250
- "leave-active-class": "sl-transition sl-duration-100 sl-ease-in",
251
- "leave-from-class": "sl-opacity-100",
252
- "leave-to-class": "sl-opacity-0"
253
- }, {
254
- default: b(() => [
255
- v(y(xe), {
256
- class: "sl-fixed sl-z-[9999] sl-max-h-56 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",
257
- style: ae(M.value)
258
- }, {
259
- default: b(() => [
260
- (r(!0), o(ne, null, re(A.value, (l) => (r(), O(y(ve), {
261
- key: l.value,
262
- value: l,
263
- as: "template"
264
- }, {
265
- default: b(({ active: u, selected: c }) => [
266
- d("li", {
267
- class: h([
268
- "sl-relative sl-cursor-default sl-select-none sl-py-2 sl-pl-3 sl-pr-9",
269
- u ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
270
- ])
271
- }, [
272
- d("span", {
273
- class: h(["sl-block sl-truncate", c ? "sl-font-medium" : "sl-font-normal"])
274
- }, g(l.label), 3),
275
- c ? (r(), o("span", Oe, [
276
- v(y(ce), {
277
- class: "sl-h-5 sl-w-5",
278
- "aria-hidden": "true"
279
- })
280
- ])) : f("", !0)
281
- ], 2)
282
- ]),
283
- _: 2
284
- }, 1032, ["value"]))), 128))
285
- ]),
286
- _: 1
287
- }, 8, ["style"])
288
- ]),
289
- _: 1
290
- })
291
- ]))
292
- ])
293
- ]),
294
- _: 1
295
- }, 8, ["model-value", "disabled"]),
296
- t[1] || (t[1] = d("div", { class: "sl-w-px sl-bg-gray-200 dark:sl-bg-slate-700 sl-self-stretch" }, null, -1)),
297
- d("div", Re, [
298
- d("input", {
299
- class: h([
300
- "sl-block sl-w-full sl-text-sm focus:sl-outline-none focus:sl-ring-0 sl-border-0 sl-py-2 sl-pl-3 sl-pr-10 sl-rounded-r-md",
301
- "sl-placeholder:text-gray-400 dark:sl-placeholder:text-slate-500",
302
- s.disabled ? "sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-bg-white dark:sl-bg-slate-900 sl-text-gray-900 dark:sl-text-slate-100"
303
- ]),
304
- "aria-invalid": m.value || void 0,
305
- name: `${s.name}__text`,
306
- placeholder: s.text?.placeholder || "",
307
- inputmode: s.text?.inputMode ?? "text",
308
- maxlength: s.text?.maxLength || void 0,
309
- value: y(n).text || "",
310
- onInput: t[0] || (t[0] = (l) => W(l.target.value)),
311
- disabled: s.disabled,
312
- "data-testid": "text-input"
313
- }, null, 42, Me)
314
- ])
315
- ], 2)
316
- ]),
317
- v(P, {
318
- "enter-active-class": "sl-transition sl-ease-out sl-duration-300",
319
- "enter-from-class": "sl-opacity-0 sl-transform sl-scale-95",
320
- "enter-to-class": "sl-opacity-100 sl-transform sl-scale-100",
321
- "leave-active-class": "sl-transition sl-ease-in sl-duration-200",
322
- "leave-from-class": "sl-opacity-100 sl-transform sl-scale-100",
323
- "leave-to-class": "sl-opacity-0 sl-transform sl-scale-95"
324
- }, {
325
- default: b(() => [
326
- m.value ? (r(), o("p", Ve, g(K.value), 1)) : f("", !0)
327
- ]),
328
- _: 1
329
- }),
330
- !m.value && S.value ? (r(), o("p", ze, g(S.value), 1)) : f("", !0)
331
- ]));
332
- }
333
- });
334
- export {
335
- $e as _
336
- };
@@ -1,131 +0,0 @@
1
- import { defineComponent as C, computed as F, ref as h, toRef as m, watch as p, nextTick as j, createElementBlock as I, openBlock as R, createVNode as T, unref as o, withCtx as u, renderSlot as y, createElementVNode as z, mergeProps as S } from "vue";
2
- import { useField as E } from "vee-validate";
3
- import { debounce as N } from "lodash-es";
4
- import A from "./forms/FormFieldWrapper.js";
5
- import { g as $ } from "./id-DafBB_QF.js";
6
- import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- function P(e) {
8
- if (!e || typeof e == "object" && Object.keys(e).length === 0) return !0;
9
- if (typeof e == "object" && "tests" in e && Array.isArray(e.tests))
10
- return !e.tests.some(
11
- (l) => l.OPTIONS?.name === "required" || l.name === "required"
12
- );
13
- if (typeof e == "object" && typeof e.describe == "function")
14
- try {
15
- const s = e.describe();
16
- if (s.tests)
17
- return !s.tests.some(
18
- (l) => l.name === "required"
19
- );
20
- } catch {
21
- return !1;
22
- }
23
- return !(typeof e == "object" && e.spec?.presence === "required" || typeof e == "function" || typeof e == "object" && Object.keys(e).length > 0);
24
- }
25
- const U = { class: "sl-form" }, W = ["name", "id", "type", "value", "placeholder", "spellcheck", "disabled"], D = /* @__PURE__ */ C({
26
- inheritAttrs: !1,
27
- __name: "TextInput",
28
- props: {
29
- boxShadow: { type: Boolean, default: !1 },
30
- type: { default: "text" },
31
- value: { default: "" },
32
- rules: { default: () => ({}) },
33
- validateOnMount: { type: Boolean, default: !0 },
34
- inputClass: { default: "" },
35
- inputStyle: { default: "" },
36
- spellcheck: { type: Boolean, default: !0 },
37
- capitalize: { type: Boolean, default: !1 },
38
- lazy: { type: Boolean, default: !1 },
39
- transformFunction: { type: Function, default: (e) => e },
40
- showErrors: { type: Boolean, default: !1 },
41
- optional: { type: Boolean, default: void 0 },
42
- name: {},
43
- label: { default: "" },
44
- placeholder: { default: "" },
45
- disabled: { type: Boolean, default: !1 },
46
- required: { type: Boolean },
47
- className: {},
48
- errorMessage: {},
49
- successMessage: { default: "" },
50
- isValid: { type: Boolean },
51
- isTouched: { type: Boolean },
52
- colorfulValidation: { type: Boolean, default: !0 },
53
- showValidCheck: { type: Boolean, default: !0 },
54
- tertiaryLabel: { default: "" },
55
- disabledMessage: { default: "" }
56
- },
57
- emits: ["update:value", "focus", "blur", "error", "update:validity"],
58
- setup(e, { emit: s }) {
59
- const a = e, l = s, b = F(() => a.optional !== void 0 ? a.optional : P(a.rules)), c = h(!1), f = $(a.name || "text-input"), v = h(a.validateOnMount), { value: i, errorMessage: g, handleChange: w, meta: d, validate: x, setTouched: k } = E(m(a, "name"), m(a, "rules"), {
60
- initialValue: a.value,
61
- validateOnValueUpdate: !a.lazy,
62
- validateOnMount: v.value
63
- }), r = (t) => l("update:value", t), B = N(r, 300);
64
- function V(t) {
65
- const n = t.target.value;
66
- a.lazy ? B(n) : r(n), w(a.transformFunction(n));
67
- }
68
- async function O(t) {
69
- c.value || (c.value = !0, k(!0)), a.lazy && r(i.value), await x(), l("blur", t);
70
- }
71
- function M(t) {
72
- l("focus", t);
73
- }
74
- return p(() => d.valid, (t) => j(() => l("update:validity", t)), { immediate: !0 }), p(() => a.value, (t) => {
75
- t !== i.value && (i.value = t);
76
- }), (t, n) => (R(), I("div", U, [
77
- T(A, {
78
- id: o(f),
79
- name: e.name,
80
- label: e.label,
81
- "tertiary-label": e.tertiaryLabel,
82
- "error-message": o(g),
83
- "success-message": e.successMessage,
84
- "is-valid": o(d).valid,
85
- "is-touched": o(d).touched,
86
- "show-errors": e.showErrors,
87
- "show-valid-check": e.showValidCheck,
88
- "colorful-validation": e.colorfulValidation,
89
- disabled: e.disabled,
90
- "disabled-message": e.disabledMessage,
91
- "box-shadow": e.boxShadow,
92
- optional: b.value
93
- }, {
94
- prefix: u(() => [
95
- y(t.$slots, "prefix", {}, void 0, !0)
96
- ]),
97
- default: u(({ inputClasses: q }) => [
98
- z("input", S(t.$attrs, {
99
- name: e.name,
100
- id: o(f),
101
- type: e.type,
102
- value: o(i),
103
- placeholder: e.placeholder,
104
- spellcheck: e.spellcheck,
105
- disabled: e.disabled,
106
- class: ["sl-block sl-w-full sl-bg-transparent placeholder:sl-text-gray-400 dark:placeholder:sl-text-gray-400 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
107
- q,
108
- "sl-py-1.5 sl-pl-2 sl-pr-2",
109
- { "sl-uppercase": e.capitalize },
110
- e.disabled ? "sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-text-gray-900 dark:sl-text-white",
111
- { "sl-pr-10": e.showValidCheck },
112
- e.inputClass
113
- ]],
114
- style: e.inputStyle,
115
- onInput: V,
116
- onFocus: M,
117
- onBlur: O
118
- }), null, 16, W)
119
- ]),
120
- "input-right": u(() => [
121
- y(t.$slots, "input-right", {}, void 0, !0)
122
- ]),
123
- _: 3
124
- }, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "colorful-validation", "disabled", "disabled-message", "box-shadow", "optional"])
125
- ]));
126
- }
127
- }), Y = /* @__PURE__ */ L(D, [["__scopeId", "data-v-653ccf8c"]]);
128
- export {
129
- Y as T,
130
- P as i
131
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;