@wikicasa-dev/components 3.0.0-alpha.0 → 3.0.0-alpha.3
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/UIKit/AccessibleSelect.d.ts +64 -0
- package/dist/UIKit/AccessibleSelect.js +4 -0
- package/dist/UIKit/AccessibleSelect.vue.js +217 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +17 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +23 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +12 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +22 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +21 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +25 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +14 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +23 -0
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +44 -0
- package/dist/UIKit/Accordion/BaseAccordion.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +51 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +33 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +71 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +77 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +4 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +270 -0
- package/dist/UIKit/BaseAlert.d.ts +24 -0
- package/dist/UIKit/BaseAlert.js +4 -0
- package/dist/UIKit/BaseAlert.vue.js +14 -0
- package/dist/UIKit/BaseAutocomplete.d.ts +62 -0
- package/dist/UIKit/BaseAutocomplete.js +4 -0
- package/dist/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/UIKit/BaseBadge.d.ts +20 -0
- package/dist/UIKit/BaseBadge.js +4 -0
- package/dist/UIKit/BaseBadge.vue.js +17 -0
- package/dist/UIKit/BaseBreadcrumb.d.ts +34 -0
- package/dist/UIKit/BaseBreadcrumb.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.vue.js +39 -0
- package/dist/UIKit/BaseButton.d.ts +75 -0
- package/dist/UIKit/BaseButton.js +4 -0
- package/dist/UIKit/BaseButton.vue.js +90 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +54 -0
- package/dist/UIKit/BaseComplexToggle.js +5 -0
- package/dist/UIKit/BaseComplexToggle.vue.js +77 -0
- package/dist/UIKit/BaseDropDown.d.ts +95 -0
- package/dist/UIKit/BaseDropDown.js +4 -0
- package/dist/UIKit/BaseDropDown.vue.js +171 -0
- package/dist/UIKit/BaseFloatingLabel.d.ts +24 -0
- package/dist/UIKit/BaseFloatingLabel.js +5 -0
- package/dist/UIKit/BaseFloatingLabel.vue.js +43 -0
- package/dist/UIKit/BaseInput.d.ts +63 -0
- package/dist/UIKit/BaseInput.js +5 -0
- package/dist/UIKit/BaseInput.vue.js +191 -0
- package/dist/UIKit/BaseModal.d.ts +72 -0
- package/dist/UIKit/BaseModal.js +4 -0
- package/dist/UIKit/BaseModal.vue.js +161 -0
- package/dist/UIKit/{BasePagination.vue.d.ts → BasePagination.d.ts} +13 -5
- package/dist/UIKit/BasePagination.js +4 -0
- package/dist/UIKit/BasePagination.vue.js +199 -0
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +47 -0
- package/dist/UIKit/BaseSelect/SelectItem.js +4 -0
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +38 -0
- package/dist/UIKit/{BaseSlider.vue.d.ts → BaseSlider.d.ts} +6 -7
- package/dist/UIKit/BaseSlider.js +5 -0
- package/dist/UIKit/BaseSlider.vue.js +152 -0
- package/dist/UIKit/BaseSnackbar.d.ts +64 -0
- package/dist/UIKit/BaseSnackbar.js +4 -0
- package/dist/UIKit/BaseSnackbar.vue.js +140 -0
- package/dist/UIKit/{BaseTextarea.vue.d.ts → BaseTextarea.d.ts} +10 -10
- package/dist/UIKit/BaseTextarea.js +5 -0
- package/dist/UIKit/BaseTextarea.vue.js +118 -0
- package/dist/UIKit/BaseToggle.d.ts +30 -0
- package/dist/UIKit/BaseToggle.js +4 -0
- package/dist/UIKit/BaseToggle.vue.js +37 -0
- package/dist/UIKit/BaseTooltip.d.ts +37 -0
- package/dist/UIKit/BaseTooltip.js +5 -0
- package/dist/UIKit/BaseTooltip.vue.js +31 -0
- package/dist/UIKit/BaseUploadFile.d.ts +40 -0
- package/dist/UIKit/BaseUploadFile.js +4 -0
- package/dist/UIKit/BaseUploadFile.vue.js +63 -0
- package/dist/UIKit/Card/BaseCard.d.ts +25 -0
- package/dist/UIKit/Card/BaseCard.js +4 -0
- package/dist/UIKit/Card/BaseCard.vue.js +24 -0
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +15 -0
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -0
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +15 -0
- package/dist/UIKit/Card/CardImagePrimitive.js +4 -0
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -0
- package/dist/UIKit/Card/CardRootPrimitive.d.ts +20 -0
- package/dist/UIKit/Card/CardRootPrimitive.js +4 -0
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +23 -0
- package/dist/UIKit/Card/type.d.ts +3 -0
- package/dist/UIKit/Card/type.js +3 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +52 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.js +4 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +74 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.js +4 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +131 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +45 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +55 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +31 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +37 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +26 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +38 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.d.ts +4 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +4 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +19 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +90 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +4 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +33 -0
- package/dist/UIKit/Radio/RadioButton.d.ts +38 -0
- package/dist/UIKit/Radio/RadioButton.js +4 -0
- package/dist/UIKit/Radio/RadioButton.vue.js +51 -0
- package/dist/UIKit/Radio/RadioGroup.d.ts +64 -0
- package/dist/UIKit/Radio/RadioGroup.js +4 -0
- package/dist/UIKit/Radio/RadioGroup.vue.js +67 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +38 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +42 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +17 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +46 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +28 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +4 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +32 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +15 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +11 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +4 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -0
- package/dist/UIKit/Slider/{SimpleSlider.vue.d.ts → SimpleSlider.d.ts} +6 -6
- package/dist/UIKit/Slider/SimpleSlider.js +5 -0
- package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -0
- package/dist/UIKit/StaticSpinner.d.ts +7 -0
- package/dist/UIKit/StaticSpinner.js +5 -0
- package/dist/UIKit/StaticSpinner.vue.js +24 -0
- package/dist/UIKit/Tab/BaseTab.d.ts +21 -0
- package/dist/UIKit/Tab/BaseTab.js +4 -0
- package/dist/UIKit/Tab/BaseTab.vue.js +14 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +14 -0
- package/dist/UIKit/Tab/BaseTabList.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +22 -0
- package/dist/UIKit/Tab/BaseTabPanel.js +4 -0
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -0
- package/dist/UIKit/Tab/BaseTabView.d.ts +49 -0
- package/dist/UIKit/Tab/BaseTabView.js +4 -0
- package/dist/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +35 -0
- package/dist/UIKit/Tab/v2/BaseTabs.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +42 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.d.ts +14 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +25 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.d.ts +16 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +28 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.d.ts +14 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +24 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.d.ts +25 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +25 -0
- package/dist/UIKit/frameUtils.d.ts +14 -0
- package/dist/UIKit/frameUtils.js +5 -0
- package/dist/UIKit/types.d.ts +10 -52
- package/dist/UIKit/types.js +0 -0
- package/dist/UIKit/useScrollLock.d.ts +4 -0
- package/dist/UIKit/useScrollLock.js +27 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/chart/DoughnutChart.d.ts +8 -0
- package/dist/chart/DoughnutChart.js +4 -0
- package/dist/chart/DoughnutChart.vue.js +25 -0
- package/dist/chart/LineChart.d.ts +11 -0
- package/dist/chart/LineChart.js +4 -0
- package/dist/chart/LineChart.vue.js +27 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +24 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.js +4 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/components/IntersectionObserver/{IntersectionObserver.vue.d.ts → IntersectionObserver.d.ts} +16 -19
- package/dist/components/IntersectionObserver/IntersectionObserver.js +4 -0
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +50 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +21 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +4 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +27 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +4 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +24 -0
- package/dist/components/IntersectionObserver/v2/types.d.ts +4 -0
- package/dist/components/IntersectionObserver/v2/types.js +3 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.d.ts +9 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.d.ts +9 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +30 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +22 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.d.ts +69 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +98 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.d.ts +18 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +45 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.d.ts +62 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.vue.js +56 -0
- package/dist/components/carousel/Primitive/deferredImages.d.ts +17 -0
- package/dist/components/carousel/Primitive/deferredImages.js +10 -0
- package/dist/components/carousel/SwiperCarousel.d.ts +57 -0
- package/dist/components/carousel/SwiperCarousel.js +5 -0
- package/dist/components/carousel/SwiperCarousel.vue.js +197 -0
- package/dist/components/carousel/SwiperSlide.d.ts +15 -0
- package/dist/components/carousel/SwiperSlide.js +9 -0
- package/dist/composables/mock.d.ts +25 -0
- package/dist/composables/mock.js +50 -0
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +28 -0
- package/dist/composables/useValidator.js +5 -0
- package/dist/css/AccessibleSelect.css +1 -0
- package/dist/css/BaseAccordionItem.css +1 -0
- package/dist/css/BaseAlert.css +1 -0
- package/dist/css/BaseAutocomplete.css +1 -0
- package/dist/css/BaseBadge.css +1 -0
- package/dist/css/BaseCard.css +1 -0
- package/dist/css/BaseComplexToggle.css +1 -0
- package/dist/css/BaseDropDown.css +1 -0
- package/dist/css/BaseFloatingLabel.css +1 -0
- package/dist/css/BaseInput.css +1 -0
- package/dist/css/BaseModal.css +1 -0
- package/dist/css/BaseShimmerLoader.css +1 -0
- package/dist/css/BaseSlider.css +1 -0
- package/dist/css/BaseSnackbar.css +1 -0
- package/dist/css/BaseTabs.css +1 -0
- package/dist/css/BaseTabsIndicator.css +1 -0
- package/dist/css/BaseTextarea.css +1 -0
- package/dist/css/BaseTooltip.css +1 -0
- package/dist/css/CheckboxBtn.css +1 -0
- package/dist/css/ClearableAutocomplete.css +1 -0
- package/dist/css/RadioButtonItem.css +1 -0
- package/dist/css/SimpleSlider.css +1 -0
- package/dist/css/StaticSpinner.css +1 -0
- package/dist/css/SwiperCarousel.css +1 -0
- package/dist/css/SwiperNavigationPrimitive.css +1 -0
- package/dist/css/SwiperPaginationPrimitive.css +1 -0
- package/dist/css/SwiperRootPrimitive.css +1 -0
- package/dist/css/SwiperSlideImagePrimitive.css +1 -0
- package/dist/css/swiper-free-mode.css +1 -0
- package/dist/css/swiper-navigation.css +1 -0
- package/dist/css/swiper-pagination.css +1 -0
- package/dist/css/swiper-swiper.css +1 -0
- package/dist/css/swiper-zoom.css +1 -0
- package/dist/css/tailwind.css +1 -0
- package/dist/css/tokens.css +1 -0
- package/dist/docs/AccessibleSelect.md +123 -0
- package/dist/docs/AccordionContentPrimitive.md +70 -0
- package/dist/docs/AccordionHeaderPrimitive.md +70 -0
- package/dist/docs/AccordionItemPrimitive.md +98 -0
- package/dist/docs/AccordionTriggerPrimitive.md +71 -0
- package/dist/docs/BaseAccordion.md +98 -0
- package/dist/docs/BaseAccordionItem.md +102 -0
- package/dist/docs/BaseAlert.md +85 -0
- package/dist/docs/BaseAutocomplete.md +127 -0
- package/dist/docs/BaseBadge.md +94 -0
- package/dist/docs/BaseBreadcrumb.md +83 -0
- package/dist/docs/BaseButton.md +129 -0
- package/dist/docs/BaseCard.md +112 -0
- package/dist/docs/BaseComplexToggle.md +101 -0
- package/dist/docs/BaseDropDown.md +124 -0
- package/dist/docs/BaseFloatingLabel.md +91 -0
- package/dist/docs/BaseInput.md +132 -0
- package/dist/docs/BaseModal.md +131 -0
- package/dist/docs/BasePagination.md +109 -0
- package/dist/docs/BaseShimmerLoader.md +88 -0
- package/dist/docs/BaseSlider.md +89 -0
- package/dist/docs/BaseSnackbar.md +122 -0
- package/dist/docs/BaseTab.md +84 -0
- package/dist/docs/BaseTabView.md +90 -0
- package/dist/docs/BaseTabs.md +118 -0
- package/dist/docs/BaseTabsContent.md +71 -0
- package/dist/docs/BaseTabsIndicator.md +75 -0
- package/dist/docs/BaseTabsList.md +76 -0
- package/dist/docs/BaseTabsTrigger.md +70 -0
- package/dist/docs/BaseTextarea.md +101 -0
- package/dist/docs/BaseToggle.md +88 -0
- package/dist/docs/BaseTooltip.md +89 -0
- package/dist/docs/BaseUploadFile.md +96 -0
- package/dist/docs/CardDescriptionPrimitive.md +73 -0
- package/dist/docs/CardImagePrimitive.md +73 -0
- package/dist/docs/CardRootPrimitive.md +101 -0
- package/dist/docs/CheckboxBtn.md +98 -0
- package/dist/docs/CheckboxButtonGroup.md +115 -0
- package/dist/docs/CheckboxGroup.md +102 -0
- package/dist/docs/CheckboxGroupItemPrimitive.md +105 -0
- package/dist/docs/CheckboxGroupPrimitive.md +107 -0
- package/dist/docs/ClearableAutocomplete.md +137 -0
- package/dist/docs/DoughnutChart.md +88 -0
- package/dist/docs/INDEX.md +133 -0
- package/dist/docs/IntersectionObservable.md +78 -0
- package/dist/docs/IntersectionObserver.md +84 -0
- package/dist/docs/IntersectionObserverProvider.md +98 -0
- package/dist/docs/IntersectionObserverTarget.md +73 -0
- package/dist/docs/LineChart.md +98 -0
- package/dist/docs/ProgressIndicatorPrimitive.md +70 -0
- package/dist/docs/ProgressRootPrimitive.md +106 -0
- package/dist/docs/RadioButton.md +86 -0
- package/dist/docs/RadioButtonGroup.md +107 -0
- package/dist/docs/RadioButtonItem.md +103 -0
- package/dist/docs/RadioGroup.md +95 -0
- package/dist/docs/RadioGroupItemPrimitive.md +102 -0
- package/dist/docs/SelectItem.md +100 -0
- package/dist/docs/ShimmerMultiLine.md +79 -0
- package/dist/docs/SimpleSlider.md +82 -0
- package/dist/docs/StaticSpinner.md +78 -0
- package/dist/docs/SwiperCarousel.md +128 -0
- package/dist/docs/SwiperNavigationPrimitive.md +85 -0
- package/dist/docs/SwiperPaginationPrimitive.md +82 -0
- package/dist/docs/SwiperPrimitive.md +77 -0
- package/dist/docs/SwiperRootPrimitive.md +125 -0
- package/dist/docs/SwiperSlide.md +75 -0
- package/dist/docs/SwiperSlideImagePrimitive.md +100 -0
- package/dist/docs/SwiperThumbnailPrimitive.md +96 -0
- package/dist/docs/TOKENS.md +50 -0
- package/dist/docs/agent-index.md +86 -0
- package/dist/index.d.ts +68 -45
- package/dist/index.js +68 -86
- package/dist/lazyModules/ChartJs/Chart.d.ts +8 -0
- package/dist/lazyModules/ChartJs/Chart.js +4 -0
- package/dist/lazyModules/ChartJs/DoughnutChart/core.d.ts +2 -0
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +4 -0
- package/dist/lazyModules/ChartJs/LineChart/cartesian.d.ts +2 -0
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +4 -0
- package/dist/lazyModules/ChartJs/LineChart/core.d.ts +2 -0
- package/dist/lazyModules/ChartJs/LineChart/core.js +4 -0
- package/dist/lazyModules/ChartJs/Plugins/Legend.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +3 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.d.ts +0 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -0
- package/dist/lazyModules/ChartJs/Plugins/Title.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Title.js +3 -0
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +3 -0
- package/dist/lazyModules/Swiper/Autoplay/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -0
- package/dist/lazyModules/Swiper/Autoplay/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Autoplay/index.js +2 -0
- package/dist/lazyModules/Swiper/Controller/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Controller/factory.js +6 -0
- package/dist/lazyModules/Swiper/Controller/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Controller/index.js +2 -0
- package/dist/lazyModules/Swiper/FreeMode/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -0
- package/dist/lazyModules/Swiper/FreeMode/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/FreeMode/index.js +2 -0
- package/dist/lazyModules/Swiper/Keyboard/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -0
- package/dist/lazyModules/Swiper/Keyboard/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Keyboard/index.js +2 -0
- package/dist/lazyModules/Swiper/Navigation/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Navigation/factory.js +6 -0
- package/dist/lazyModules/Swiper/Navigation/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Navigation/index.js +2 -0
- package/dist/lazyModules/Swiper/Pagination/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Pagination/factory.js +6 -0
- package/dist/lazyModules/Swiper/Pagination/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Pagination/index.js +2 -0
- package/dist/lazyModules/Swiper/Thumbs/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -0
- package/dist/lazyModules/Swiper/Thumbs/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Thumbs/index.js +2 -0
- package/dist/lazyModules/Swiper/Zoom/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Zoom/factory.js +6 -0
- package/dist/lazyModules/Swiper/Zoom/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Zoom/index.js +2 -0
- package/dist/lazyModules/Swiper/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/factory.js +9 -0
- package/dist/lazyModules/Swiper/index.d.ts +20 -0
- package/dist/lazyModules/Swiper/index.js +5 -0
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -0
- package/dist/lazyModules/Swiper/types.d.ts +5 -0
- package/dist/lazyModules/Swiper/types.js +0 -0
- package/dist/lazyModules/VueChartJs/Doughnut/factory.d.ts +7 -0
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -0
- package/dist/lazyModules/VueChartJs/Doughnut/index.d.ts +9 -0
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +4 -0
- package/dist/lazyModules/VueChartJs/Line/factory.d.ts +7 -0
- package/dist/lazyModules/VueChartJs/Line/factory.js +8 -0
- package/dist/lazyModules/VueChartJs/Line/index.d.ts +9 -0
- package/dist/lazyModules/VueChartJs/Line/index.js +4 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/index.js +0 -0
- package/dist/types.js +0 -1
- package/dist/utils.js +3 -5
- package/package.json +73 -42
- package/dist/AccessibleSelect.js +0 -4
- package/dist/BaseAccordion.js +0 -4
- package/dist/BaseAccordionBtn.js +0 -4
- package/dist/BaseAccordionContent.js +0 -4
- package/dist/BaseAccordionItem.js +0 -4
- package/dist/BaseAlert.js +0 -4
- package/dist/BaseAutocomplete.js +0 -4
- package/dist/BaseBadge.js +0 -4
- package/dist/BaseBreadcrumb.js +0 -4
- package/dist/BaseButton.js +0 -4
- package/dist/BaseCard.js +0 -38
- package/dist/BaseComplexToggle.js +0 -107
- package/dist/BaseDropDown.js +0 -4
- package/dist/BaseFloatingLabel.js +0 -41
- package/dist/BaseIcon.js +0 -28
- package/dist/BaseInput.js +0 -212
- package/dist/BaseModal.js +0 -4
- package/dist/BasePagination.js +0 -4
- package/dist/BasePaper.js +0 -14
- package/dist/BaseShimmerLoader.js +0 -22
- package/dist/BaseSlider.js +0 -208
- package/dist/BaseSnackbar.js +0 -82
- package/dist/BaseTab.js +0 -4
- package/dist/BaseTabList.js +0 -4
- package/dist/BaseTabPanel.js +0 -4
- package/dist/BaseTabView.js +0 -4
- package/dist/BaseTextarea.js +0 -128
- package/dist/BaseToggle.js +0 -43
- package/dist/BaseTooltip.js +0 -42
- package/dist/BaseUploadFile.js +0 -4
- package/dist/CheckboxBtn.js +0 -76
- package/dist/CheckboxGroup.js +0 -4
- package/dist/DoughnutChart.js +0 -4
- package/dist/IntersectionObservable.js +0 -4
- package/dist/IntersectionObserver.js +0 -4
- package/dist/LineChart.js +0 -4
- package/dist/RadioButton.js +0 -4
- package/dist/RadioGroup.js +0 -4
- package/dist/SelectItem.js +0 -4
- package/dist/ShimmerMultiLine.js +0 -4
- package/dist/SimpleSlider.js +0 -83
- package/dist/StaticSpinner.js +0 -28
- package/dist/SwiperCarousel.js +0 -5
- package/dist/SwiperSlide.js +0 -14
- package/dist/UIKit/AccessibleSelect.vue.d.ts +0 -55
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -32
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +0 -34
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -30
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +0 -60
- package/dist/UIKit/BaseAlert.vue.d.ts +0 -26
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +0 -48
- package/dist/UIKit/BaseBadge.vue.d.ts +0 -22
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +0 -35
- package/dist/UIKit/BaseButton.vue.d.ts +0 -46
- package/dist/UIKit/BaseCard.vue.d.ts +0 -29
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +0 -47
- package/dist/UIKit/BaseDropDown.vue.d.ts +0 -81
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +0 -17
- package/dist/UIKit/BaseIcon.vue.d.ts +0 -11
- package/dist/UIKit/BaseInput.vue.d.ts +0 -68
- package/dist/UIKit/BaseModal.vue.d.ts +0 -63
- package/dist/UIKit/BasePaper.vue.d.ts +0 -2
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +0 -38
- package/dist/UIKit/BaseSnackbar.vue.d.ts +0 -24
- package/dist/UIKit/BaseToggle.vue.d.ts +0 -32
- package/dist/UIKit/BaseTooltip.vue.d.ts +0 -38
- package/dist/UIKit/BaseUploadFile.vue.d.ts +0 -42
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +0 -53
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -71
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +0 -27
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +0 -54
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +0 -21
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +0 -63
- package/dist/UIKit/StaticSpinner.vue.d.ts +0 -6
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +0 -23
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +0 -14
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +0 -24
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +0 -27
- package/dist/assets/BaseAlert.css +0 -1
- package/dist/assets/BaseBadge.css +0 -1
- package/dist/assets/BaseCard.css +0 -1
- package/dist/assets/BaseComplexToggle.css +0 -1
- package/dist/assets/BaseFloatingLabel.css +0 -1
- package/dist/assets/BaseIcon.css +0 -1
- package/dist/assets/BaseInput.css +0 -1
- package/dist/assets/BaseModal.css +0 -1
- package/dist/assets/BasePaper.css +0 -1
- package/dist/assets/BaseShimmerLoader.css +0 -1
- package/dist/assets/BaseSlider.css +0 -1
- package/dist/assets/BaseSnackbar.css +0 -1
- package/dist/assets/BaseTextarea.css +0 -1
- package/dist/assets/BaseToggle.css +0 -1
- package/dist/assets/BaseTooltip.css +0 -1
- package/dist/assets/CheckboxBtn.css +0 -1
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/assets/StaticSpinner.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/chart/DoughnutChart.vue.d.ts +0 -7
- package/dist/chart/LineChart.vue.d.ts +0 -19
- package/dist/chart/composables/useChartjsModules.d.ts +0 -10
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.QU1FSgY0.js +0 -246
- package/dist/chunks/ArrowIcon.Bq6Xr3uH.js +0 -28
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js +0 -32
- package/dist/chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DEk3SXLJ.js +0 -60
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Qp_TWYFE.js +0 -34
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.BJB5DnDs.js +0 -143
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +0 -19
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.S_XFg2zV.js +0 -202
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.DvAI34Oa.js +0 -19
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BrzeVW2_.js +0 -58
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.DHwyd5Gb.js +0 -66
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.OKB0gEpo.js +0 -137
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.a2qGyPhV.js +0 -150
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DdFMVFIO.js +0 -164
- package/dist/chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js +0 -15
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CxrS-Vq6.js +0 -43
- package/dist/chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js +0 -24
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGTsSVEG.js +0 -105
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.BL98w2D8.js +0 -71
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.B_9CFhd2.js +0 -111
- package/dist/chunks/CloseIcon.BZ4U3aiI.js +0 -38
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js +0 -27
- package/dist/chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js +0 -24
- package/dist/chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js +0 -52
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +0 -42
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.CxVJji0G.js +0 -58
- package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BNKSEicl.js +0 -62
- package/dist/chunks/SelectItem.vue_vue_type_script_setup_true_lang.jB3LVM3c.js +0 -41
- package/dist/chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CPUobRgG.js +0 -29
- package/dist/chunks/SwiperCarousel.BheiaKKw.js +0 -748
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/index.BJP9rQkU.js +0 -887
- package/dist/chunks/polyline.DjpLdMaW.js +0 -5256
- package/dist/chunks/useBreakpoints.BXk8Xcw3.js +0 -5189
- package/dist/city-640x359.jpg +0 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +0 -29
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +0 -57
- package/dist/components/carousel/SwiperSlide.vue.d.ts +0 -17
- package/dist/favicon.ico +0 -0
- package/dist/useChartjsModules.js +0 -48
- package/dist/useFloatingLabel.js +0 -33
- package/dist/useValidator.js +0 -8
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseCard
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Layout
|
|
5
|
+
summary: Image + body card with fixed layouts (default row, mini, vertical, news) for listings, agencies and articles.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/Card/BaseCard
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseCard
|
|
11
|
+
|
|
12
|
+
Image + body card with fixed layouts (default row, mini, vertical, news) for listings, agencies and articles.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseCard from "@wikicasa-dev/components/UIKit/Card/BaseCard";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseCard`.
|
|
19
|
+
|
|
20
|
+
Use `BaseCard` for any "picture plus text" tile: a property in a list, an agency, a news article. It renders two cells, `.card-img` (the `#card-image` slot) and `.card-body` (the `#card-description` slot), inside a rounded, shadowed, `overflow: hidden` box. Pick the layout with `type`:
|
|
21
|
+
|
|
22
|
+
- `""` (default): horizontal row. From 576px up the card is 240px tall and the image column is at most 300px wide; below 576px the height is `auto`. It stays a row on phones.
|
|
23
|
+
- `"vertical"`: image on top (200px tall), body below. Use for carousels and grids, and for phones.
|
|
24
|
+
- `"mini"`: compact row, max 370×100px, image at most 120×110px. Sidebars, "recently seen" lists.
|
|
25
|
+
- `"news"`: column from 576px up (270px tall, 150px image); a 320×100px row on phones.
|
|
26
|
+
|
|
27
|
+
Need only the image cell, a custom cell order, or extra cells? Compose `CardRootPrimitive` + `CardImagePrimitive` + `CardDescriptionPrimitive` instead.
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```vue
|
|
32
|
+
<script setup lang="ts">
|
|
33
|
+
import BaseCard from "@wikicasa-dev/components/UIKit/Card/BaseCard";
|
|
34
|
+
|
|
35
|
+
const openListing = () => console.log("open listing 4821");
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<BaseCard type="vertical" root-component="article" class="listing-card" @click="openListing">
|
|
40
|
+
<template #card-image>
|
|
41
|
+
<img
|
|
42
|
+
src="/img/trilocale-milano.jpg"
|
|
43
|
+
alt="Trilocale in vendita a Milano, zona Navigli"
|
|
44
|
+
width="640"
|
|
45
|
+
height="360"
|
|
46
|
+
style="width: 100%; height: 100%; object-fit: cover"
|
|
47
|
+
/>
|
|
48
|
+
</template>
|
|
49
|
+
<template #card-description>
|
|
50
|
+
<p class="price">€ 385.000</p>
|
|
51
|
+
<h3>Trilocale in Via Vigevano, Milano</h3>
|
|
52
|
+
<p>85 m² · 3 locali · 2° piano</p>
|
|
53
|
+
</template>
|
|
54
|
+
</BaseCard>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<style scoped>
|
|
58
|
+
.listing-card { background: #fff; cursor: pointer; }
|
|
59
|
+
</style>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Do / Don't
|
|
63
|
+
|
|
64
|
+
- Do set a background on the card (`class`): the card itself has none, only a shadow.
|
|
65
|
+
- Do make the image fill its cell (`width/height: 100%; object-fit: cover`); the cell sizes itself, the image doesn't.
|
|
66
|
+
- Do use `root-component="article"` when the card is a self-contained item in a list.
|
|
67
|
+
- Don't nest interactive cards: `click` is emitted from the whole root, so stop propagation on inner buttons/links that must not trigger it.
|
|
68
|
+
- Don't expect the default type to stack on phones; use `type="vertical"` (or a primitive composition) for a stacked mobile layout.
|
|
69
|
+
- `card-img-classes` / `card-body-classes` add classes to the two cells (padding, background, alignment).
|
|
70
|
+
|
|
71
|
+
## Styling hooks
|
|
72
|
+
|
|
73
|
+
CSS custom properties, declared on `.uikit-card` (the root) unless noted. Override them with a selector stronger than one class, e.g. `.uikit-card.listing-card { --card-height: 300px; }`, or the result depends on stylesheet order.
|
|
74
|
+
|
|
75
|
+
- Root: `--card-width`, `--card-height`, `--card-max-width` (930px), `--card-max-height`, `--card-border-radius-top-left` / `-top-right` / `-bottom-left` / `-bottom-right` (20px each).
|
|
76
|
+
- On `.card-img`: `--card-img-width`, `--card-img-height` (defaults to `--card-height`), `--card-img-max-width`, `--card-img-max-height`; in `vertical` also `--card-vertical-img-height` (200px). Target them as `.uikit-card.listing-card .card-img { … }`.
|
|
77
|
+
- On `.card-body`: `--card-body-width` (100%). Body padding is 10px 15px.
|
|
78
|
+
- Classes on the root: `uikit-card` plus `mini`, `vertical` or `news-card`.
|
|
79
|
+
|
|
80
|
+
## API
|
|
81
|
+
|
|
82
|
+
_Generated from the component's types. Do not edit by hand._
|
|
83
|
+
|
|
84
|
+
### Props
|
|
85
|
+
|
|
86
|
+
| Name | Type | Default | Required | Description |
|
|
87
|
+
| --- | --- | --- | --- | --- |
|
|
88
|
+
| `type` | `CardTypes` | `""` | | |
|
|
89
|
+
| `rootComponent` | `CardRootTypes` | `"div"` | | |
|
|
90
|
+
| `cardImgClasses` | `ClassTypeProp` | `""` | | |
|
|
91
|
+
| `cardBodyClasses` | `ClassTypeProp` | `""` | | |
|
|
92
|
+
|
|
93
|
+
### Events
|
|
94
|
+
|
|
95
|
+
| Name | Payload |
|
|
96
|
+
| --- | --- |
|
|
97
|
+
| `click` | `[MouseEvent]` |
|
|
98
|
+
|
|
99
|
+
### v-model
|
|
100
|
+
|
|
101
|
+
None.
|
|
102
|
+
|
|
103
|
+
### Slots
|
|
104
|
+
|
|
105
|
+
| Name | Slot props |
|
|
106
|
+
| --- | --- |
|
|
107
|
+
| `card-image` | |
|
|
108
|
+
| `card-description` | |
|
|
109
|
+
|
|
110
|
+
### Exposed (template ref)
|
|
111
|
+
|
|
112
|
+
None.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseComplexToggle
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Selection
|
|
5
|
+
summary: Two-option segmented toggle (pill with a sliding highlight) that picks one of two labelled choices.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseComplexToggle
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseComplexToggle
|
|
11
|
+
|
|
12
|
+
Two-option segmented toggle (pill with a sliding highlight) that picks one of two labelled choices.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseComplexToggle from "@wikicasa-dev/components/UIKit/BaseComplexToggle";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseComplexToggle`.
|
|
19
|
+
|
|
20
|
+
Use to switch between exactly two named modes: "Privato" / "Agenzia", "Tasso variabile" / "Tasso fisso", "Avviso immediato" / "Avviso giornaliero". For an on/off boolean use `BaseToggle`; for three or more options use `RadioButtonGroup`.
|
|
21
|
+
|
|
22
|
+
`labels` holds `leftToggle` and `rightToggle`, each `{ id?, label, icon?, checked?, payload? }`. `v-model` holds the whole active toggle object. On mount it selects the side marked `checked`, otherwise the left one, and emits it right away.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
import BaseComplexToggle from "@wikicasa-dev/components/UIKit/BaseComplexToggle";
|
|
30
|
+
import type { ToggleType } from "@wikicasa-dev/components";
|
|
31
|
+
|
|
32
|
+
const rateType = ref<ToggleType | null>(null);
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<BaseComplexToggle
|
|
37
|
+
v-model="rateType"
|
|
38
|
+
data-cy="mortgage-rate-toggle"
|
|
39
|
+
type="padded"
|
|
40
|
+
:labels="{
|
|
41
|
+
leftToggle: { id: 'variabile', label: 'Tasso variabile' },
|
|
42
|
+
rightToggle: { id: 'fisso', label: 'Tasso fisso', checked: true },
|
|
43
|
+
}"
|
|
44
|
+
/>
|
|
45
|
+
<p>Hai scelto: {{ rateType?.label }}</p>
|
|
46
|
+
</template>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Do / Don't
|
|
50
|
+
|
|
51
|
+
- Do give the two options different `label`s: the active side is matched by label.
|
|
52
|
+
- Do use `type="padded"` for the inset pill highlight (most common), `"full"` (default) for a highlight that fills the half.
|
|
53
|
+
- Do use `size="lg"` (342×56px) for prominent page-level choices; default is 230×42px. `mode="mobile"` widens it to 342px below the `sm` breakpoint.
|
|
54
|
+
- Do pick the highlight color with `btnBgColor` (`uikit-bg-w-primary`, `uikit-bg-w-dark-primary`, `uikit-bg-w-lavender` default, …); text turns white on dark colors automatically.
|
|
55
|
+
- Do set the initial side with `checked: true` in `labels`, not by pre-filling `v-model`.
|
|
56
|
+
- Don't rely on it for keyboard-only users: the halves are clickable `div`s, not buttons. Offer another control if keyboard access matters.
|
|
57
|
+
- Don't use more than two options.
|
|
58
|
+
|
|
59
|
+
## Styling hooks
|
|
60
|
+
|
|
61
|
+
- `.base-complex-toggle`: `--base-complex-toggle-width`, `--base-complex-toggle-height`, `--base-complex-toggle-radius`, `--base-complex-toggle-border-width`, `--base-complex-toggle-border-color`, `--padding-x-bg` / `--padding-y-bg` (inset of the padded highlight).
|
|
62
|
+
- `.base-complex-toggle-active { --base-complex-toggle-active-color }`: text color of the active side.
|
|
63
|
+
- `btnClasses` styles the sliding highlight (e.g. a custom background); `left_icon` / `right_icon` slots replace the optional `icon` images.
|
|
64
|
+
|
|
65
|
+
## API
|
|
66
|
+
|
|
67
|
+
_Generated from the component's types. Do not edit by hand._
|
|
68
|
+
|
|
69
|
+
### Props
|
|
70
|
+
|
|
71
|
+
| Name | Type | Default | Required | Description |
|
|
72
|
+
| --- | --- | --- | --- | --- |
|
|
73
|
+
| `labels` | `ComplexToggleType<TID, TPayload>` | | yes | |
|
|
74
|
+
| `type` | `"full" \| "padded"` | `"full"` | | |
|
|
75
|
+
| `mode` | `"" \| "mobile"` | `""` | | |
|
|
76
|
+
| `btnBgColor` | `BtnBgColorType` | `"uikit-bg-w-lavender"` | | |
|
|
77
|
+
| `btnClasses` | `ClassTypeProp` | | | |
|
|
78
|
+
| `borderContainerColor` | `"uikit-border-w-black" \| "uikit-border-w-primary" \| "uikit-border-w-secondary" \| "uikit-border-w-dark-primary" \| "uikit-border-w-carbon" \| "uikit-border-w-gray" \| "uikit-border-w-warning" \| "uikit-border-w-danger" \| "uikit-border-w-lavender"` | `"uikit-border-w-secondary"` | | |
|
|
79
|
+
| `size` | `"" \| "lg"` | `""` | | |
|
|
80
|
+
| `modelValue` | `Nullable<ToggleType<TID, TPayload>>` | `null` | | |
|
|
81
|
+
|
|
82
|
+
### Events
|
|
83
|
+
|
|
84
|
+
| Name | Payload |
|
|
85
|
+
| --- | --- |
|
|
86
|
+
| `update:modelValue` | `[value: Nullable<ToggleType<TID, TPayload>> \| undefined]` |
|
|
87
|
+
|
|
88
|
+
### v-model
|
|
89
|
+
|
|
90
|
+
- `v-model` binds `modelValue` (`Nullable<ToggleType<TID, TPayload>>`)
|
|
91
|
+
|
|
92
|
+
### Slots
|
|
93
|
+
|
|
94
|
+
| Name | Slot props |
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| `left_icon` | |
|
|
97
|
+
| `right_icon` | |
|
|
98
|
+
|
|
99
|
+
### Exposed (template ref)
|
|
100
|
+
|
|
101
|
+
None.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseDropDown
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Overlays
|
|
5
|
+
summary: Toggle button with an attached dropdown panel for menus, link lists and custom filter content.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseDropDown
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseDropDown
|
|
11
|
+
|
|
12
|
+
Toggle button with an attached dropdown panel for menus, link lists and custom filter content.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseDropDown from "@wikicasa-dev/components/UIKit/BaseDropDown";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseDropDown`.
|
|
19
|
+
|
|
20
|
+
Use for anything that opens a panel under (or above) a trigger: a language switcher, a user menu, a "more actions" menu on a listing card, a breadcrumb sub-menu, or a panel of custom filter controls. It handles open/close, outside click, Escape and arrow-key navigation. To choose a form value use `AccessibleSelect` (built on this component) instead.
|
|
21
|
+
|
|
22
|
+
The default trigger is a button showing `btnLabel` (plus a chevron with `withArrowIcon`). Replace it via the `btn_slot` slot and call `toggleDropdown()` yourself. Panel content goes in the default slot; its slot props are `isOpen`, `toggleDropdown`, `activeIdx`, `selectedIdx`, `setActiveIdx`, `setSelectedIdx`.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import BaseDropDown from "@wikicasa-dev/components/UIKit/BaseDropDown";
|
|
29
|
+
import SelectItem from "@wikicasa-dev/components/UIKit/BaseSelect/SelectItem";
|
|
30
|
+
|
|
31
|
+
const cities = [
|
|
32
|
+
{ label: "Milano", href: "/vendita-case/milano" },
|
|
33
|
+
{ label: "Roma", href: "/vendita-case/roma" },
|
|
34
|
+
{ label: "Torino", href: "/vendita-case/torino" },
|
|
35
|
+
];
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<BaseDropDown btn-label="Città vicine" with-arrow-icon dropdown-element="ul">
|
|
40
|
+
<template #default="{ activeIdx, setActiveIdx, toggleDropdown }">
|
|
41
|
+
<SelectItem
|
|
42
|
+
v-for="(city, idx) in cities"
|
|
43
|
+
:key="city.href"
|
|
44
|
+
:idx="idx"
|
|
45
|
+
:active="activeIdx === idx"
|
|
46
|
+
@mouseover="setActiveIdx(idx)"
|
|
47
|
+
@click="toggleDropdown()"
|
|
48
|
+
>
|
|
49
|
+
<a :href="city.href">{{ city.label }}</a>
|
|
50
|
+
</SelectItem>
|
|
51
|
+
</template>
|
|
52
|
+
</BaseDropDown>
|
|
53
|
+
</template>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Do / Don't
|
|
57
|
+
|
|
58
|
+
- Do use `dropdown-element="ul"` with `<li>` children (`SelectItem`) for lists; arrow keys move `activeIdx` over the panel's direct children, and Enter clicks the `<a>` inside the active one.
|
|
59
|
+
- Do keep `activateKeyboardController` on for menus; pass `:close-keys="['Escape']"` when the panel contains inputs, so Enter doesn't close it.
|
|
60
|
+
- Do set `direction="up"` when the trigger sits near the bottom of the screen (e.g. footer language switcher).
|
|
61
|
+
- Do use `v-model:open` to control or observe the open state; `keepState` (`"opened"` / `"closed"`) locks it.
|
|
62
|
+
- Do give a custom `btn_slot` trigger a real `<button>` with an `aria-label` (if icon-only) and `:aria-expanded="isOpen"`.
|
|
63
|
+
- Don't use it as a modal or tooltip; it is positioned inline under the trigger (`isAbsolute`), not portaled.
|
|
64
|
+
|
|
65
|
+
## Styling hooks
|
|
66
|
+
|
|
67
|
+
- `.uikit-dropdown-content` (the panel): `--dropdown-max-height` (`220px`), `--dropdown-min-width` (`90px`), `--dropdown-border-color`, `--dropdown-border-{top,right,bottom,left}-width`, `--dropdown-border-{top-left,top-right,bottom-left,bottom-right}-radius`. It also carries `data-side="up|down"`.
|
|
68
|
+
- `class` styles the root; `btnClasses` / `labelClasses` the default trigger; `dropdownClasses` the panel (z-index, width, offset); `arrowWidth` / `arrowStrokeColor` the chevron.
|
|
69
|
+
|
|
70
|
+
## API
|
|
71
|
+
|
|
72
|
+
_Generated from the component's types. Do not edit by hand._
|
|
73
|
+
|
|
74
|
+
### Props
|
|
75
|
+
|
|
76
|
+
| Name | Type | Default | Required | Description |
|
|
77
|
+
| --- | --- | --- | --- | --- |
|
|
78
|
+
| `dropdownAttrs` | `Record<string, unknown>` | | | |
|
|
79
|
+
| `dropdownClasses` | `ClassTypeProp` | `""` | | |
|
|
80
|
+
| `btnClasses` | `ClassTypeProp` | `""` | | |
|
|
81
|
+
| `withArrowIcon` | `boolean` | `false` | | |
|
|
82
|
+
| `btnLabel` | `string` | `""` | | |
|
|
83
|
+
| `labelClasses` | `ClassTypeProp` | `""` | | |
|
|
84
|
+
| `direction` | `"down" \| "up"` | `"down"` | | |
|
|
85
|
+
| `arrowWidth` | `number` | `12` | | |
|
|
86
|
+
| `arrowStrokeColor` | ``#${string}`` | `undefined` | | |
|
|
87
|
+
| `isAbsolute` | `boolean` | `true` | | |
|
|
88
|
+
| `closeWhenClickedOutside` | `boolean` | `true` | | |
|
|
89
|
+
| `dropdownElement` | `"div" \| "ol" \| "ul"` | `"div"` | | |
|
|
90
|
+
| `keepState` | `"" \| "closed" \| "opened"` | `""` | | |
|
|
91
|
+
| `activateKeyboardController` | `boolean` | `true` | | |
|
|
92
|
+
| `closeKeys` | `false \| string[]` | `["Escape", "Enter"]` | | List of keys that will close the dropdown. |
|
|
93
|
+
| `dataCy` | `string` | `""` | | |
|
|
94
|
+
| `resetKeyboardController` | `boolean` | `false` | | |
|
|
95
|
+
| `open` | `boolean` | `false` | | |
|
|
96
|
+
|
|
97
|
+
### Events
|
|
98
|
+
|
|
99
|
+
| Name | Payload |
|
|
100
|
+
| --- | --- |
|
|
101
|
+
| `click` | |
|
|
102
|
+
| `update:open` | `[value: boolean]` |
|
|
103
|
+
| `update:resetKeyboardController` | `[value: boolean]` |
|
|
104
|
+
|
|
105
|
+
### v-model
|
|
106
|
+
|
|
107
|
+
- `v-model:resetKeyboardController` (`boolean`)
|
|
108
|
+
- `v-model:open` (`boolean`)
|
|
109
|
+
|
|
110
|
+
### Slots
|
|
111
|
+
|
|
112
|
+
| Name | Slot props |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| `btn_slot` | `{ toggleDropdown: () => void; isOpen: boolean; activeIdx: number; setActiveIdx: (idx?: Nullable<number> \| undefined) => void; setSelectedIdx: (idx?: Nullable<number> \| undefined) => void; }` |
|
|
115
|
+
| `default` | `{ isOpen: boolean; toggleDropdown: () => void; activeIdx: number; selectedIdx: number; setActiveIdx: (idx?: Nullable<number> \| undefined) => void; setSelectedIdx: (idx?: Nullable<number> \| undefined) => void; }` |
|
|
116
|
+
|
|
117
|
+
### Exposed (template ref)
|
|
118
|
+
|
|
119
|
+
| Name | Type |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| `activeIdx` | `number` |
|
|
122
|
+
| `selectedIdx` | `number` |
|
|
123
|
+
| `getRootElement` | `() => HTMLDivElement \| null` |
|
|
124
|
+
| `getContentElement` | `() => HTMLElement \| null` |
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseFloatingLabel
|
|
3
|
+
status: primitive
|
|
4
|
+
category: Forms
|
|
5
|
+
summary: The floating field label used by BaseInput and BaseTextarea, for labelling custom field-like controls.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseFloatingLabel
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseFloatingLabel
|
|
11
|
+
|
|
12
|
+
> **Primitive.** A low-level building block. Prefer a `preferred` component; use primitives only to compose something that doesn't exist yet.
|
|
13
|
+
|
|
14
|
+
The floating field label used by BaseInput and BaseTextarea, for labelling custom field-like controls.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import BaseFloatingLabel from "@wikicasa-dev/components/UIKit/BaseFloatingLabel";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Stylesheets: `css/BaseFloatingLabel`.
|
|
21
|
+
|
|
22
|
+
`BaseInput`, `BaseTextarea` and `BaseUploadFile` already render it, so you only need it on its own to put the same label on a custom control (for example a dropdown trigger styled as a field) so it matches the other form fields.
|
|
23
|
+
|
|
24
|
+
It is absolutely positioned: place it inside a `position: relative` container that also holds the control, and nudge it with `class` / `style` / `labelClasses` (all land on the `<label>`). It doesn't animate by itself; you decide `labelState`.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```vue
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import BaseFloatingLabel from "@wikicasa-dev/components/UIKit/BaseFloatingLabel";
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<div style="position: relative; padding: 16px; border: 1px solid rgb(var(--uikit-color-w-secondary)); border-radius: var(--uikit-radius-xs)">
|
|
35
|
+
<button id="typology-trigger" type="button">Appartamento, Villa</button>
|
|
36
|
+
<BaseFloatingLabel
|
|
37
|
+
for="typology-trigger"
|
|
38
|
+
label-text="Tipologia"
|
|
39
|
+
label-state="floating-label"
|
|
40
|
+
style="top: -9px; padding: 0 5px; background: #fff"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Do / Don't
|
|
47
|
+
|
|
48
|
+
- Do pass `for` with the id of the control it labels.
|
|
49
|
+
- Do use `labelState="floating-label"` when the control has a value or focus, `"inline-label"` (default) to sit inside the field like a placeholder.
|
|
50
|
+
- Do give it a white background and a little horizontal padding when it floats over a border.
|
|
51
|
+
- Do pass `required` to show the asterisk; `isValid` colors it (red when `false`), `disabled` greys it out.
|
|
52
|
+
- Don't use it as a general-purpose text label or heading; it only makes sense over a field border.
|
|
53
|
+
- Don't use it next to `BaseInput` / `BaseTextarea`: they already have one.
|
|
54
|
+
|
|
55
|
+
## Styling hooks
|
|
56
|
+
|
|
57
|
+
- Root classes `floating-label` / `inline-label` reflect the state.
|
|
58
|
+
- `labelClasses` positions the `<label>`; `labelTextClasses` styles the text.
|
|
59
|
+
|
|
60
|
+
## API
|
|
61
|
+
|
|
62
|
+
_Generated from the component's types. Do not edit by hand._
|
|
63
|
+
|
|
64
|
+
### Props
|
|
65
|
+
|
|
66
|
+
| Name | Type | Default | Required | Description |
|
|
67
|
+
| --- | --- | --- | --- | --- |
|
|
68
|
+
| `labelState` | `LabelState` | `"inline-label"` | | |
|
|
69
|
+
| `isValid` | `Nullable<boolean>` | `null` | | |
|
|
70
|
+
| `labelText` | `string` | | yes | |
|
|
71
|
+
| `disabled` | `string \| boolean` | `false` | | |
|
|
72
|
+
| `labelClasses` | `ClassTypeProp` | | | |
|
|
73
|
+
| `labelTextClasses` | `ClassTypeProp` | | | |
|
|
74
|
+
|
|
75
|
+
### Events
|
|
76
|
+
|
|
77
|
+
| Name | Payload |
|
|
78
|
+
| --- | --- |
|
|
79
|
+
| `click` | `any[]` |
|
|
80
|
+
|
|
81
|
+
### v-model
|
|
82
|
+
|
|
83
|
+
None.
|
|
84
|
+
|
|
85
|
+
### Slots
|
|
86
|
+
|
|
87
|
+
None.
|
|
88
|
+
|
|
89
|
+
### Exposed (template ref)
|
|
90
|
+
|
|
91
|
+
None.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseInput
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Forms
|
|
5
|
+
summary: Single-line text field with floating label, validation state, feedback messages and optional icons.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseInput
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseInput
|
|
11
|
+
|
|
12
|
+
Single-line text field with floating label, validation state, feedback messages and optional icons.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseInput from "@wikicasa-dev/components/UIKit/BaseInput";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseInput`.
|
|
19
|
+
|
|
20
|
+
Use for any single-line text entry in a form (name, email, phone, price, surface). For multi-line text use `BaseTextarea`; for search-as-you-type use `ClearableAutocomplete`.
|
|
21
|
+
|
|
22
|
+
Native input attributes go straight on the component (`type`, `name`, `placeholder`, `maxlength`, `inputmode`, `pattern`, `min`, `max`, `disabled`, `readonly`, `autocomplete="on"`). `class` styles the outer wrapper; `inputClass` styles the `<input>` itself. An `id` is generated if you don't pass one.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
import BaseInput from "@wikicasa-dev/components/UIKit/BaseInput";
|
|
30
|
+
import { ViewPswIcon, HidePswIcon } from "@wikicasa-dev/svg-icons";
|
|
31
|
+
|
|
32
|
+
const email = ref("");
|
|
33
|
+
const price = ref<number | "">("");
|
|
34
|
+
const password = ref("");
|
|
35
|
+
|
|
36
|
+
// Shows 250000 as "250.000" while the model keeps the number
|
|
37
|
+
const priceFormatter = {
|
|
38
|
+
formatFn: (v: string) => (v && !isNaN(Number(v)) ? Number(v).toLocaleString("it-IT") : ""),
|
|
39
|
+
unFormatFn: (v: string) => (v.replace(/\D/g, "") ? Number(v.replace(/\D/g, "")) : null),
|
|
40
|
+
};
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<template>
|
|
44
|
+
<BaseInput
|
|
45
|
+
v-model="email"
|
|
46
|
+
type="email"
|
|
47
|
+
name="email"
|
|
48
|
+
label-text="Email"
|
|
49
|
+
required
|
|
50
|
+
:is-valid="email ? email.includes('@') : null"
|
|
51
|
+
:feedback="{ invalid: 'Inserisci un indirizzo email valido' }"
|
|
52
|
+
/>
|
|
53
|
+
<BaseInput v-model="price" label-text="Prezzo massimo (€)" inputmode="numeric" :formatter="priceFormatter" />
|
|
54
|
+
<BaseInput v-model="password" type="password" label-text="Password">
|
|
55
|
+
<template #righticon="{ handleShowPasswd, curType }">
|
|
56
|
+
<span class="text-input-icon right md" @click.stop="handleShowPasswd">
|
|
57
|
+
<ViewPswIcon v-if="curType === 'password'" />
|
|
58
|
+
<HidePswIcon v-else />
|
|
59
|
+
</span>
|
|
60
|
+
</template>
|
|
61
|
+
</BaseInput>
|
|
62
|
+
</template>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Do / Don't
|
|
66
|
+
|
|
67
|
+
- Do always set `labelText`: it is the field's visible and accessible label (inline when empty, floating when focused or filled).
|
|
68
|
+
- Do drive `isValid` with three states: `null` (neutral, the default), `true` (blue border + check) or `false` (red border + warning icon, shows `feedback.invalid`). `feedback` strings may be HTML; an array renders one line per entry.
|
|
69
|
+
- Do use the `feedback` slot for richer error content, and `under-label` for a small italic hint below the field.
|
|
70
|
+
- Do use `formatter` for display formatting (thousands separators): the model keeps the unformatted value. `formatFn` must handle any string it gets; an emptied field sets the model to `""`.
|
|
71
|
+
- Do use the `righticon` slot props: `handleClean()` empties the field, `handleShowPasswd()` toggles a password field, `curType` is the current input type.
|
|
72
|
+
- Don't expect `required` to block form submit: it only adds the asterisk to the label. Validate yourself.
|
|
73
|
+
- Don't change `type` after mount: it is read once.
|
|
74
|
+
|
|
75
|
+
## Styling hooks
|
|
76
|
+
|
|
77
|
+
- Put icons in the `leftIcon` / `righticon` slots with the class `text-input-icon` plus `left` or `right`, and a size `sm` (16px), `md` (20px) or `lg` (25px).
|
|
78
|
+
- `--icon-default-size` on the wrapper (default `44px`): the icon hit area.
|
|
79
|
+
- Wrapper state classes: `is-valid`, `is-invalid`, `floating-state` / `inline-state`, `has-left-icon`, `has-right-icon`.
|
|
80
|
+
- `labelClasses`, `labelTextClasses`, `fieldsetClasses` (the border) and `inputClass` accept extra utility classes.
|
|
81
|
+
|
|
82
|
+
## API
|
|
83
|
+
|
|
84
|
+
_Generated from the component's types. Do not edit by hand._
|
|
85
|
+
|
|
86
|
+
### Props
|
|
87
|
+
|
|
88
|
+
| Name | Type | Default | Required | Description |
|
|
89
|
+
| --- | --- | --- | --- | --- |
|
|
90
|
+
| `id` | `string` | | | |
|
|
91
|
+
| `inputClass` | `ClassType \| ClassType[]` | | | |
|
|
92
|
+
| `labelText` | `string` | `""` | | |
|
|
93
|
+
| `feedback` | `FeedbackLabels` | | | |
|
|
94
|
+
| `isValid` | `Nullable<boolean>` | `null` | | |
|
|
95
|
+
| `keepFloatingLabel` | `boolean` | `false` | | |
|
|
96
|
+
| `formatter` | `Nullable<Partial<{ formatFn: (value: string) => string; unFormatFn: (value: string) => Nullable<ModelValue>; }>>` | `null` | | |
|
|
97
|
+
| `labelClasses` | `ClassTypeProp` | | | |
|
|
98
|
+
| `fieldsetClasses` | `ClassTypeProp` | | | |
|
|
99
|
+
| `labelTextClasses` | `ClassTypeProp` | | | |
|
|
100
|
+
| `withLeftIcon` | `boolean` | `undefined` | | |
|
|
101
|
+
| `withRightIcon` | `boolean` | `undefined` | | |
|
|
102
|
+
| `dataCy` | `string` | | | |
|
|
103
|
+
| `modelValue` | `ModelValue` | `"" as ModelValue & {}` | | |
|
|
104
|
+
|
|
105
|
+
### Events
|
|
106
|
+
|
|
107
|
+
| Name | Payload |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| `click` | `[MouseEvent]` |
|
|
110
|
+
| `keydown` | `[KeyboardEvent]` |
|
|
111
|
+
| `keydownEnterPressed` | |
|
|
112
|
+
| `focusin` | |
|
|
113
|
+
| `focusout` | |
|
|
114
|
+
| `keyup` | `[KeyboardEvent]` |
|
|
115
|
+
| `update:modelValue` | `[value: ModelValue]` |
|
|
116
|
+
|
|
117
|
+
### v-model
|
|
118
|
+
|
|
119
|
+
- `v-model` binds `modelValue` (`ModelValue`)
|
|
120
|
+
|
|
121
|
+
### Slots
|
|
122
|
+
|
|
123
|
+
| Name | Slot props |
|
|
124
|
+
| --- | --- |
|
|
125
|
+
| `leftIcon` | |
|
|
126
|
+
| `righticon` | `{ handleClean: () => void; handleShowPasswd: () => void; curType: InputTypeHTMLAttribute; }` |
|
|
127
|
+
| `feedback` | |
|
|
128
|
+
| `under-label` | |
|
|
129
|
+
|
|
130
|
+
### Exposed (template ref)
|
|
131
|
+
|
|
132
|
+
None.
|