@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
package/dist/tabs/TabGroup.js
CHANGED
package/dist/tabs/TabsInPills.js
CHANGED
package/dist/tabs/index.d.ts
CHANGED
package/dist/tabs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as a } from "../InlineTabs.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as s } from "../TabGroup.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as n } from "../TabGroupUnderline.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as f } from "../TabsInPills.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as a } from "../InlineTabs.vue_vue_type_script_setup_true_lang-BWzrSbT3.js";
|
|
2
|
+
import { _ as s } from "../TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js";
|
|
3
|
+
import { _ as n } from "../TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js";
|
|
4
|
+
import { _ as f } from "../TabsInPills.vue_vue_type_script_setup_true_lang-mw68ZzS1.js";
|
|
5
5
|
export {
|
|
6
6
|
a as InlineTabs,
|
|
7
7
|
s as TabGroup,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function n(e) {
|
|
2
|
+
if (!e || typeof e == "object" && Object.keys(e).length === 0) return !0;
|
|
3
|
+
if (typeof e == "object" && "spec" in e)
|
|
4
|
+
return e.spec?.presence !== "required";
|
|
5
|
+
if (typeof e == "object" && "tests" in e && Array.isArray(e.tests))
|
|
6
|
+
return !e.tests.some(
|
|
7
|
+
(r) => r.OPTIONS?.name === "required" || r.name === "required"
|
|
8
|
+
);
|
|
9
|
+
if (typeof e == "object" && typeof e.describe == "function")
|
|
10
|
+
try {
|
|
11
|
+
const t = e.describe();
|
|
12
|
+
if (t.tests)
|
|
13
|
+
return !t.tests.some(
|
|
14
|
+
(r) => r.name === "required"
|
|
15
|
+
);
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
return !0;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
n as i
|
|
22
|
+
};
|
package/dist/wrappers/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stachelock/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "A comprehensive Vue 3 UI component library built with Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -121,29 +121,28 @@
|
|
|
121
121
|
},
|
|
122
122
|
"homepage": "https://github.com/stachelock/ui#readme",
|
|
123
123
|
"peerDependencies": {
|
|
124
|
-
"tailwindcss": "^3.4.0",
|
|
125
124
|
"vue": "^3.3.0"
|
|
126
125
|
},
|
|
127
126
|
"dependencies": {
|
|
128
127
|
"@cloudinary/url-gen": "^1.11.2",
|
|
129
128
|
"@cloudinary/vue": "^1.11.2",
|
|
130
129
|
"@googlemaps/js-api-loader": "^1.16.2",
|
|
131
|
-
"@headlessui/vue": "^1.7.
|
|
132
|
-
"@heroicons/vue": "^2.0
|
|
130
|
+
"@headlessui/vue": "^1.7.23",
|
|
131
|
+
"@heroicons/vue": "^2.2.0",
|
|
133
132
|
"@tanstack/table-core": "^8.20.5",
|
|
134
133
|
"@tanstack/vue-table": "^8.20.5",
|
|
135
|
-
"@tiptap/extension-highlight": "^
|
|
136
|
-
"@tiptap/extension-link": "^
|
|
137
|
-
"@tiptap/extension-placeholder": "^
|
|
138
|
-
"@tiptap/extension-task-item": "^
|
|
139
|
-
"@tiptap/extension-task-list": "^
|
|
140
|
-
"@tiptap/extension-text-align": "^
|
|
141
|
-
"@tiptap/extension-underline": "^
|
|
142
|
-
"@tiptap/pm": "^
|
|
143
|
-
"@tiptap/starter-kit": "^
|
|
144
|
-
"@tiptap/vue-3": "^
|
|
134
|
+
"@tiptap/extension-highlight": "^3.15.3",
|
|
135
|
+
"@tiptap/extension-link": "^3.15.3",
|
|
136
|
+
"@tiptap/extension-placeholder": "^3.15.3",
|
|
137
|
+
"@tiptap/extension-task-item": "^3.15.3",
|
|
138
|
+
"@tiptap/extension-task-list": "^3.15.3",
|
|
139
|
+
"@tiptap/extension-text-align": "^3.15.3",
|
|
140
|
+
"@tiptap/extension-underline": "^3.15.3",
|
|
141
|
+
"@tiptap/pm": "^3.15.3",
|
|
142
|
+
"@tiptap/starter-kit": "^3.15.3",
|
|
143
|
+
"@tiptap/vue-3": "^3.15.3",
|
|
145
144
|
"@vuepic/vue-datepicker": "^7.4.1",
|
|
146
|
-
"@vueuse/core": "^
|
|
145
|
+
"@vueuse/core": "^14.1.0",
|
|
147
146
|
"date-fns": "^3.6.0",
|
|
148
147
|
"dayjs": "^1.11.11",
|
|
149
148
|
"echarts": "^5.6.0",
|
|
@@ -161,39 +160,40 @@
|
|
|
161
160
|
},
|
|
162
161
|
"devDependencies": {
|
|
163
162
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
164
|
-
"@storybook/addon-docs": "
|
|
165
|
-
"@storybook/addon-essentials": "
|
|
166
|
-
"@storybook/addon-interactions": "
|
|
167
|
-
"@storybook/addon-links": "
|
|
168
|
-
"@storybook/blocks": "
|
|
163
|
+
"@storybook/addon-docs": "8.6",
|
|
164
|
+
"@storybook/addon-essentials": "8.6",
|
|
165
|
+
"@storybook/addon-interactions": "8.6",
|
|
166
|
+
"@storybook/addon-links": "8.6",
|
|
167
|
+
"@storybook/blocks": "8.6",
|
|
168
|
+
"@storybook/test": "^8.6.15",
|
|
169
169
|
"@storybook/testing-library": "^0.2.2",
|
|
170
|
-
"@storybook/vue3": "
|
|
171
|
-
"@storybook/vue3-vite": "
|
|
170
|
+
"@storybook/vue3": "8.6",
|
|
171
|
+
"@storybook/vue3-vite": "8.6",
|
|
172
172
|
"@tailwindcss/forms": "^0.5.7",
|
|
173
|
-
"@tailwindcss/typography": "^0.5.
|
|
173
|
+
"@tailwindcss/typography": "^0.5.15",
|
|
174
174
|
"@testing-library/vue": "^8.0.1",
|
|
175
175
|
"@tsconfig/node18": "^18.2.2",
|
|
176
176
|
"@types/google.maps": "^3.58.1",
|
|
177
177
|
"@types/lodash-es": "^4.17.12",
|
|
178
|
-
"@types/node": "^
|
|
178
|
+
"@types/node": "^22.19.6",
|
|
179
179
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
180
|
-
"@vitest/coverage-v8": "^
|
|
181
|
-
"@vitest/ui": "^
|
|
180
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
181
|
+
"@vitest/ui": "^4.0.16",
|
|
182
182
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
183
183
|
"@vue/test-utils": "^2.4.3",
|
|
184
184
|
"@vue/tsconfig": "^0.5.0",
|
|
185
|
-
"autoprefixer": "^10.4.
|
|
185
|
+
"autoprefixer": "^10.4.20",
|
|
186
186
|
"eslint": "^8.49.0",
|
|
187
187
|
"eslint-plugin-storybook": "^0.6.15",
|
|
188
188
|
"eslint-plugin-vue": "^9.17.0",
|
|
189
189
|
"jsdom": "^26.1.0",
|
|
190
190
|
"postcss": "^8.4.32",
|
|
191
|
-
"storybook": "
|
|
191
|
+
"storybook": "8.6",
|
|
192
192
|
"tailwindcss": "^3.4.17",
|
|
193
193
|
"typescript": "~5.3.0",
|
|
194
194
|
"vite": "^5.4.19",
|
|
195
195
|
"vite-plugin-dts": "^3.6.4",
|
|
196
|
-
"vitest": "^
|
|
196
|
+
"vitest": "^4.0.16",
|
|
197
197
|
"vue": "^3.5.18",
|
|
198
198
|
"vue-tsc": "^2.0.29"
|
|
199
199
|
},
|
|
@@ -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
|
-
};
|