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