@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,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseAccordionItem
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Layout
|
|
5
|
+
summary: One collapsible section of BaseAccordion: a header with title and rotating arrow, plus the content.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/Accordion/BaseAccordionItem
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseAccordionItem
|
|
11
|
+
|
|
12
|
+
One collapsible section of BaseAccordion: a header with title and rotating arrow, plus the content.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseAccordionItem from "@wikicasa-dev/components/UIKit/Accordion/BaseAccordionItem";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseAccordionItem`.
|
|
19
|
+
|
|
20
|
+
Use it inside `BaseAccordion` (see that doc for single/multiple mode and `v-model`). It renders a heading (`h3` by default, change with `headerTag`) containing a full-width trigger button with `title` and a chevron that rotates when open, then the content, which animates its height.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```vue
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
import BaseAccordion from "@wikicasa-dev/components/UIKit/Accordion/BaseAccordion";
|
|
27
|
+
import BaseAccordionItem from "@wikicasa-dev/components/UIKit/Accordion/BaseAccordionItem";
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<BaseAccordion type="multiple">
|
|
32
|
+
<BaseAccordionItem value="residenziale" title="Residenziale" header-tag="h4" content-classes="typology-options">
|
|
33
|
+
<label><input type="checkbox" /> Appartamento</label>
|
|
34
|
+
<label><input type="checkbox" /> Villa</label>
|
|
35
|
+
</BaseAccordionItem>
|
|
36
|
+
|
|
37
|
+
<BaseAccordionItem value="centro" trigger-classes="zone-trigger">
|
|
38
|
+
<template #header-content>
|
|
39
|
+
<label style="flex-grow: 1"><input type="checkbox" /> Centro storico</label>
|
|
40
|
+
</template>
|
|
41
|
+
<label><input type="checkbox" /> Duomo</label>
|
|
42
|
+
<label><input type="checkbox" /> Brera</label>
|
|
43
|
+
</BaseAccordionItem>
|
|
44
|
+
</BaseAccordion>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<style>
|
|
48
|
+
.typology-options { display: flex; flex-direction: column; }
|
|
49
|
+
.zone-trigger { padding-inline: 20px !important; }
|
|
50
|
+
</style>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Do / Don't
|
|
54
|
+
|
|
55
|
+
- `value` is required and must be unique within the accordion.
|
|
56
|
+
- `header-content` slot: content placed in the header before the trigger (e.g. a checkbox that selects the whole group). With it, the trigger shrinks to the arrow, so pass a `title` only if you want text next to the arrow.
|
|
57
|
+
- `trigger` slot replaces the title and arrow inside the trigger button and removes its default padding/styling. Don't put buttons or links in it (it is already a button).
|
|
58
|
+
- `arrowColor` currently has no effect (the arrow stays #222). To recolor it, pass `arrowClasses` with a class that sets the stroke of its `path` (e.g. `.my-arrow path { stroke: #2b5dff; }`).
|
|
59
|
+
- Default spacing is 16px around the title and 16px horizontal padding in the content; override with `triggerClasses` / `contentClasses`.
|
|
60
|
+
|
|
61
|
+
## Styling hooks
|
|
62
|
+
|
|
63
|
+
Class props: `headerClasses` (the heading, a flex row), `triggerClasses` (the button), `arrowClasses` (the chevron), `contentClasses` (the panel). `class` goes on the item wrapper. The open trigger and content carry `data-state="open"` for `data-[state=open]:` utilities.
|
|
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
|
+
| `title` | `string` | | | |
|
|
74
|
+
| `arrowColor` | ``#${string}`` | | | |
|
|
75
|
+
| `arrowWidth` | `number` | `12` | | |
|
|
76
|
+
| `dataCy` | `string` | | | |
|
|
77
|
+
| `value` | `string` | | yes | |
|
|
78
|
+
| `triggerClasses` | `ClassTypeProp` | | | |
|
|
79
|
+
| `headerClasses` | `ClassTypeProp` | | | |
|
|
80
|
+
| `contentClasses` | `ClassTypeProp` | | | |
|
|
81
|
+
| `arrowClasses` | `ClassTypeProp` | | | |
|
|
82
|
+
| `headerTag` | `AsTag \| Component` | `"h3"` | | The element or component this component should render as. Can be overwritten by asChild. |
|
|
83
|
+
|
|
84
|
+
### Events
|
|
85
|
+
|
|
86
|
+
None.
|
|
87
|
+
|
|
88
|
+
### v-model
|
|
89
|
+
|
|
90
|
+
None.
|
|
91
|
+
|
|
92
|
+
### Slots
|
|
93
|
+
|
|
94
|
+
| Name | Slot props |
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| `header-content` | |
|
|
97
|
+
| `trigger` | |
|
|
98
|
+
| `default` | |
|
|
99
|
+
|
|
100
|
+
### Exposed (template ref)
|
|
101
|
+
|
|
102
|
+
None.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseAlert
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Feedback
|
|
5
|
+
summary: Inline, static message box (success/info, error, dark) shown in the page flow, e.g. under a form.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseAlert
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseAlert
|
|
11
|
+
|
|
12
|
+
Inline, static message box (success/info, error, dark) shown in the page flow, e.g. under a form.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseAlert from "@wikicasa-dev/components/UIKit/BaseAlert";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseAlert`.
|
|
19
|
+
|
|
20
|
+
Use it for a persistent message that belongs to a spot on the page: the result of a form submission, a validation summary, an informative notice. It has no close button, timer or animation: show and hide it with `v-if`. For a temporary, floating notification use `BaseSnackbar`.
|
|
21
|
+
|
|
22
|
+
The look is chosen with `alertClass`:
|
|
23
|
+
|
|
24
|
+
- `uikit-alert-w-primary`: lavender background, blue text. Success and neutral info ("Messaggio inviato all'agenzia").
|
|
25
|
+
- `uikit-alert-w-danger`: pale red background, red text. Errors.
|
|
26
|
+
- `uikit-alert-w-dark-primary`: dark blue background, white text. Strong emphasis on light pages.
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```vue
|
|
31
|
+
<script setup lang="ts">
|
|
32
|
+
import BaseAlert from "@wikicasa-dev/components/UIKit/BaseAlert";
|
|
33
|
+
import { ref } from "vue";
|
|
34
|
+
|
|
35
|
+
const status = ref<"idle" | "success" | "error">("success");
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<BaseAlert v-if="status === 'success'" alert-class="uikit-alert-w-primary" style="margin-top: 20px">
|
|
40
|
+
Richiesta inviata! L'agenzia Immobiliare Bianchi ti contatterà a breve.
|
|
41
|
+
</BaseAlert>
|
|
42
|
+
<BaseAlert v-else-if="status === 'error'" alert-class="uikit-alert-w-danger" style="margin-top: 20px">
|
|
43
|
+
Si è verificato un errore. Riprova tra qualche minuto.
|
|
44
|
+
</BaseAlert>
|
|
45
|
+
</template>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Do / Don't
|
|
49
|
+
|
|
50
|
+
- Always pass `alertClass`. Without it the box only gets padding and rounded corners, and its colors depend on which other stylesheets happen to be loaded.
|
|
51
|
+
- It renders `role="alert"`, so screen readers announce it when it appears. Don't use it for decorative or permanent page copy.
|
|
52
|
+
- The slot accepts any markup (icons, links, bold text). For an icon + text row, make it a flex row with your own class or `style="display: flex; align-items: center; gap: 12px"`.
|
|
53
|
+
- Margins and width go in your own `class`/`style`; the box itself has no outer spacing.
|
|
54
|
+
|
|
55
|
+
## Styling hooks
|
|
56
|
+
|
|
57
|
+
Classes `uikit-alert` (base: rounded, 16px padding, medium weight) plus the variant class. Override colors with utility classes in `class`.
|
|
58
|
+
|
|
59
|
+
## API
|
|
60
|
+
|
|
61
|
+
_Generated from the component's types. Do not edit by hand._
|
|
62
|
+
|
|
63
|
+
### Props
|
|
64
|
+
|
|
65
|
+
| Name | Type | Default | Required | Description |
|
|
66
|
+
| --- | --- | --- | --- | --- |
|
|
67
|
+
| `alertClass` | `AlertClass` | `""` | | |
|
|
68
|
+
|
|
69
|
+
### Events
|
|
70
|
+
|
|
71
|
+
None.
|
|
72
|
+
|
|
73
|
+
### v-model
|
|
74
|
+
|
|
75
|
+
None.
|
|
76
|
+
|
|
77
|
+
### Slots
|
|
78
|
+
|
|
79
|
+
| Name | Slot props |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| `default` | |
|
|
82
|
+
|
|
83
|
+
### Exposed (template ref)
|
|
84
|
+
|
|
85
|
+
None.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseAutocomplete
|
|
3
|
+
status: legacy
|
|
4
|
+
category: Forms
|
|
5
|
+
summary: Legacy search-as-you-type form field (BaseInput look) replaced by ClearableAutocomplete; wikicasa-nuxt no longer uses it.
|
|
6
|
+
useInstead: ClearableAutocomplete
|
|
7
|
+
import: @wikicasa-dev/components/UIKit/BaseAutocomplete
|
|
8
|
+
version: 3.0.0-alpha.3
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# BaseAutocomplete
|
|
12
|
+
|
|
13
|
+
> **Legacy.** Don't use in new designs. Use `ClearableAutocomplete` instead.
|
|
14
|
+
|
|
15
|
+
Legacy search-as-you-type form field (BaseInput look) replaced by ClearableAutocomplete; wikicasa-nuxt no longer uses it.
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import BaseAutocomplete from "@wikicasa-dev/components/UIKit/BaseAutocomplete";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Stylesheets: `css/BaseAutocomplete`.
|
|
22
|
+
|
|
23
|
+
Legacy: don't use it in new work. `ClearableAutocomplete` replaces it everywhere, including inside forms (style its trigger to match the other fields), and wikicasa-nuxt no longer uses it. This page is for reading existing code.
|
|
24
|
+
|
|
25
|
+
It wraps `BaseInput`, so it has a floating label, validation colors and icon slots. For a short fixed list use `AccessibleSelect`.
|
|
26
|
+
|
|
27
|
+
`onInputChangeCb` is called 300 ms after the user stops typing and must resolve to `{ id, label }[]` (extra fields are kept). `v-model` holds the chosen option; with nothing chosen it is `{ id: "", label: "" }`.
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```vue
|
|
32
|
+
<script setup lang="ts">
|
|
33
|
+
import { ref } from "vue";
|
|
34
|
+
import BaseAutocomplete from "@wikicasa-dev/components/UIKit/BaseAutocomplete";
|
|
35
|
+
import type { AccessibleSelectOptions } from "@wikicasa-dev/components";
|
|
36
|
+
|
|
37
|
+
type Address = AccessibleSelectOptions<{ city: string }, string>;
|
|
38
|
+
|
|
39
|
+
const ADDRESSES: Address[] = [
|
|
40
|
+
{ id: "a1", label: "Via Roma 12, Milano", city: "Milano" },
|
|
41
|
+
{ id: "a2", label: "Via Roma 3, Torino", city: "Torino" },
|
|
42
|
+
{ id: "a3", label: "Viale Monza 140, Milano", city: "Milano" },
|
|
43
|
+
];
|
|
44
|
+
// Mock search: replace with your data source
|
|
45
|
+
const searchAddress = async (q: string | null) =>
|
|
46
|
+
q ? ADDRESSES.filter((a) => a.label.toLowerCase().includes(q.toLowerCase())) : [];
|
|
47
|
+
|
|
48
|
+
const address = ref<Address>();
|
|
49
|
+
const onSelected = (opt: Address) => console.log("selected", opt.id, opt.city);
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<template>
|
|
53
|
+
<BaseAutocomplete
|
|
54
|
+
id="valuation-address"
|
|
55
|
+
v-model="address"
|
|
56
|
+
label="Indirizzo dell'immobile"
|
|
57
|
+
:on-input-change-cb="searchAddress"
|
|
58
|
+
:on-option-selected-cb="onSelected"
|
|
59
|
+
/>
|
|
60
|
+
</template>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Do / Don't
|
|
64
|
+
|
|
65
|
+
- Do pass an `id`: it derives the inner input's id (`ac_input_<id>`) and a default `data-cy`.
|
|
66
|
+
- Do set `label`, or at least `placeholder` (forwarded to the input along with `disabled`).
|
|
67
|
+
- Do return `[]` for no results: the dropdown only opens when there is at least one option. The callback also receives `null` when the field is cleared.
|
|
68
|
+
- Do use `disableCb` to pause searching while it is `true` (e.g. a prefilled address; set it back to `false` on `click`).
|
|
69
|
+
- Do choose a `theme`: `""` (default, rounded bordered list), `"bordered"`, `"all-bordered"` / `"all-bordered-thick"` (field and list merge into one card) or `"empty"` (no extra list styling).
|
|
70
|
+
- Do use the `option-content` slot (`{ option, idx }`) for richer rows, `lefticon` for a leading icon, `righticon` (`{ handleClean }`) for a clear icon.
|
|
71
|
+
- Don't call a real API in mockups; use a mock function like the one above.
|
|
72
|
+
|
|
73
|
+
## Styling hooks
|
|
74
|
+
|
|
75
|
+
- `.uikit-autocomplete { --autocomplete-dropdown-max-height }` (default `210px`).
|
|
76
|
+
- `root-classes` (attribute) on the wrapper, `inputClasses` / `fieldsetClasses` on the inner field, `dropdownClasses` on the list.
|
|
77
|
+
- Icons in `lefticon` / `righticon` use BaseInput's `text-input-icon left|right sm|md|lg` classes.
|
|
78
|
+
|
|
79
|
+
## API
|
|
80
|
+
|
|
81
|
+
_Generated from the component's types. Do not edit by hand._
|
|
82
|
+
|
|
83
|
+
### Props
|
|
84
|
+
|
|
85
|
+
| Name | Type | Default | Required | Description |
|
|
86
|
+
| --- | --- | --- | --- | --- |
|
|
87
|
+
| `isValid` | `Nullable<boolean>` | `null` | | |
|
|
88
|
+
| `theme` | `BaseAutocompleteThemes` | `""` | | |
|
|
89
|
+
| `label` | `string` | `""` | | |
|
|
90
|
+
| `disableCb` | `boolean` | `false` | | |
|
|
91
|
+
| `onInputChangeCb` | `(v: string \| null) => Promise<AccessibleSelectOptions<TPayload, TID>[]>` | | yes | |
|
|
92
|
+
| `onOptionSelectedCb` | `Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>` | `null` | | |
|
|
93
|
+
| `keepState` | `Nullable<"open" \| "closed">` | `null` | | |
|
|
94
|
+
| `cleanupOnClose` | `boolean` | `true` | | |
|
|
95
|
+
| `dropdownClasses` | `string` | `""` | | |
|
|
96
|
+
| `closeDropdownOnBodyPressed` | `boolean` | `true` | | If true, we will close the dropdown when the user clicks or touches the body of the document |
|
|
97
|
+
| `inputClasses` | `ClassTypeProp` | | | |
|
|
98
|
+
| `fieldsetClasses` | `ClassTypeProp` | | | |
|
|
99
|
+
| `dataCy` | `string` | `""` | | |
|
|
100
|
+
| `modelValue` | `AccessibleSelectOptions<TPayload, TID>` | | | The modelValue holds the value of one of the selectItems. If empty, it means that no selectItem has been selected |
|
|
101
|
+
|
|
102
|
+
### Events
|
|
103
|
+
|
|
104
|
+
| Name | Payload |
|
|
105
|
+
| --- | --- |
|
|
106
|
+
| `click` | |
|
|
107
|
+
| `update:dropdownState` | `[boolean]` |
|
|
108
|
+
| `changedValue` | `[string]` |
|
|
109
|
+
| `keydown` | `[KeyboardEvent]` |
|
|
110
|
+
| `keydownEnterPressed` | |
|
|
111
|
+
| `update:modelValue` | `[value: AccessibleSelectOptions<TPayload, TID> \| undefined]` |
|
|
112
|
+
|
|
113
|
+
### v-model
|
|
114
|
+
|
|
115
|
+
- `v-model` binds `modelValue` (`AccessibleSelectOptions<TPayload, TID>`)
|
|
116
|
+
|
|
117
|
+
### Slots
|
|
118
|
+
|
|
119
|
+
| Name | Slot props |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| `lefticon` | |
|
|
122
|
+
| `righticon` | `{ handleClean: () => void; }` |
|
|
123
|
+
| `option-content` | `{ option: AccessibleSelectOptions<TPayload, TID>; idx: number; }` |
|
|
124
|
+
|
|
125
|
+
### Exposed (template ref)
|
|
126
|
+
|
|
127
|
+
None.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseBadge
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Feedback
|
|
5
|
+
summary: Small non-interactive label or pill: listing status, "Vetrina", Premium/Gold tiers, tags and counters.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseBadge
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseBadge
|
|
11
|
+
|
|
12
|
+
Small non-interactive label or pill: listing status, "Vetrina", Premium/Gold tiers, tags and counters.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseBadge from "@wikicasa-dev/components/UIKit/BaseBadge";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseBadge`.
|
|
19
|
+
|
|
20
|
+
Use it to tag something with a short status or category, typically over a property card or next to a title. It is a plain `<span>`, not clickable; for a selectable chip use `BaseButton` with a selection variant.
|
|
21
|
+
|
|
22
|
+
Pick the look with `badgeClass` (default `uikit-badge-w-primary-sm`):
|
|
23
|
+
|
|
24
|
+
| `badgeClass` | Looks like | Typical use |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| `uikit-badge-w-primary-sm` | Small blue pill, white 10px text | Counters, "Nuovo". |
|
|
27
|
+
| `uikit-badge-w-warning` | Yellow, dark text | Highlights such as "Vetrina". |
|
|
28
|
+
| `uikit-badge-w-lavender` | Lavender, dark text, soft shadow | Neutral info tags. |
|
|
29
|
+
| `uikit-badge-w-danger` | Red, white text | Negative states ("Bloccato"). |
|
|
30
|
+
| `uikit-badge-w-dark-primary` | Dark blue background | Date/time stamps, labels over photos. Set the text color yourself (white); it sets none. |
|
|
31
|
+
| `uikit-badge-outline-tag` | Black outline, taller (36px) | Feature tags ("Balcone", "Box auto"). |
|
|
32
|
+
| `uikit-badge-outline-tag-listing` | Black outline on white, 12px text | Compact tags/counters in lists. |
|
|
33
|
+
| `badge-gold` / `badge-silver` | Gold / silver gradient | Listing quality tiers (Gold / Silver). |
|
|
34
|
+
| `badge-black` | Black gradient, white text | "Premium" agencies/listings. |
|
|
35
|
+
| `badge-gray` | Translucent blurred dark, white text | Tags placed over photos. |
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import BaseBadge from "@wikicasa-dev/components/UIKit/BaseBadge";
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<div style="position: relative">
|
|
46
|
+
<img src="/mock/bilocale-navigli.jpg" alt="Bilocale ai Navigli" style="width: 100%" />
|
|
47
|
+
<BaseBadge badge-class="uikit-badge-w-warning" style="position: absolute; top: 10px; left: 10px">
|
|
48
|
+
Vetrina
|
|
49
|
+
</BaseBadge>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<BaseBadge badge-class="badge-black">Premium</BaseBadge>
|
|
53
|
+
<BaseBadge badge-class="uikit-badge-outline-tag">Terrazzo</BaseBadge>
|
|
54
|
+
<BaseBadge badge-class="uikit-badge-w-dark-primary" style="color: #fff">12/03/2026 - 10:30</BaseBadge>
|
|
55
|
+
</template>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Do / Don't
|
|
59
|
+
|
|
60
|
+
- Keep the text to one or two words; the badge has a fixed height and does not wrap gracefully.
|
|
61
|
+
- Size and spacing tweaks (height, padding, text size) go in your own `class`/`style`; the variant classes set them too, so a class may need `!important` to win (inline `style` always wins).
|
|
62
|
+
- Don't make it interactive (no click handlers as the only action): it is not focusable and has no role.
|
|
63
|
+
|
|
64
|
+
## Styling hooks
|
|
65
|
+
|
|
66
|
+
`--badge-text-color` sets the text color of `badge-gold`, `badge-silver`, `badge-black` and `badge-gray`.
|
|
67
|
+
|
|
68
|
+
## API
|
|
69
|
+
|
|
70
|
+
_Generated from the component's types. Do not edit by hand._
|
|
71
|
+
|
|
72
|
+
### Props
|
|
73
|
+
|
|
74
|
+
| Name | Type | Default | Required | Description |
|
|
75
|
+
| --- | --- | --- | --- | --- |
|
|
76
|
+
| `badgeClass` | `"uikit-badge-w-primary-sm" \| "uikit-badge-w-warning" \| "uikit-badge-w-lavender" \| "uikit-badge-outline-tag" \| "uikit-badge-outline-tag-listing" \| "uikit-badge-w-dark-primary" \| "uikit-badge-w-danger" \| "badge-black" \| "badge-gray" \| "badge-gold" \| "badge-silver"` | `"uikit-badge-w-primary-sm"` | | |
|
|
77
|
+
|
|
78
|
+
### Events
|
|
79
|
+
|
|
80
|
+
None.
|
|
81
|
+
|
|
82
|
+
### v-model
|
|
83
|
+
|
|
84
|
+
None.
|
|
85
|
+
|
|
86
|
+
### Slots
|
|
87
|
+
|
|
88
|
+
| Name | Slot props |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| `default` | |
|
|
91
|
+
|
|
92
|
+
### Exposed (template ref)
|
|
93
|
+
|
|
94
|
+
None.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseBreadcrumb
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Navigation
|
|
5
|
+
summary: Breadcrumb trail of links separated by arrows, e.g. Home › Vendita › Milano › Navigli.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseBreadcrumb
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseBreadcrumb
|
|
11
|
+
|
|
12
|
+
Breadcrumb trail of links separated by arrows, e.g. Home › Vendita › Milano › Navigli.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseBreadcrumb from "@wikicasa-dev/components/UIKit/BaseBreadcrumb";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Use it at the top of listing, place and detail pages to show where the page sits in the site hierarchy. Pass the trail as `items`, root first; each item is `{ link, label, active?, dataTooltip? }`. The `active` item is shown in blue (normally the last one).
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```vue
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import BaseBreadcrumb from "@wikicasa-dev/components/UIKit/BaseBreadcrumb";
|
|
25
|
+
|
|
26
|
+
const items = [
|
|
27
|
+
{ link: "/", label: "Home" },
|
|
28
|
+
{ link: "/vendita-case/lombardia/", label: "Lombardia" },
|
|
29
|
+
{ link: "/vendita-case/milano/", label: "Milano" },
|
|
30
|
+
{ link: "/vendita-case/milano/navigli/", label: "Navigli", active: true },
|
|
31
|
+
];
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<BaseBreadcrumb :items="items" list-classes="breadcrumb-list" />
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<style>
|
|
39
|
+
.breadcrumb-list { flex-wrap: wrap; font-size: 12px; }
|
|
40
|
+
</style>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Do / Don't
|
|
44
|
+
|
|
45
|
+
- Every item needs a non-empty `label`: an item with an empty label is rendered as a separator instead.
|
|
46
|
+
- Long trails: pass a `listClasses` class with `flex-wrap: wrap` so it wraps on mobile instead of overflowing.
|
|
47
|
+
- Customize an item with the `item` slot (receives `item`, including its `idx`) and the arrow with the `separator` slot.
|
|
48
|
+
- `dataTooltip` is only written to the `<li>` as `data-tooltip`; it shows nothing by itself.
|
|
49
|
+
|
|
50
|
+
## Styling hooks
|
|
51
|
+
|
|
52
|
+
`listClasses` (the `<ol>`, a flex row with 10px gap) and `listItemClasses` (every `<li>`, separators included).
|
|
53
|
+
|
|
54
|
+
## API
|
|
55
|
+
|
|
56
|
+
_Generated from the component's types. Do not edit by hand._
|
|
57
|
+
|
|
58
|
+
### Props
|
|
59
|
+
|
|
60
|
+
| Name | Type | Default | Required | Description |
|
|
61
|
+
| --- | --- | --- | --- | --- |
|
|
62
|
+
| `items` | `BreadcrumbItemsType[]` | | yes | |
|
|
63
|
+
| `listClasses` | `ClassTypeProp` | | | |
|
|
64
|
+
| `listItemClasses` | `ClassTypeProp` | | | |
|
|
65
|
+
|
|
66
|
+
### Events
|
|
67
|
+
|
|
68
|
+
None.
|
|
69
|
+
|
|
70
|
+
### v-model
|
|
71
|
+
|
|
72
|
+
None.
|
|
73
|
+
|
|
74
|
+
### Slots
|
|
75
|
+
|
|
76
|
+
| Name | Slot props |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| `item` | `{ item: BreadcrumbItemsTypeWithIdx; }` |
|
|
79
|
+
| `separator` | |
|
|
80
|
+
|
|
81
|
+
### Exposed (template ref)
|
|
82
|
+
|
|
83
|
+
None.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseButton
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Actions
|
|
5
|
+
summary: The standard button: primary/secondary/danger CTAs, light and text-style buttons, selectable chips, loading state.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseButton
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseButton
|
|
11
|
+
|
|
12
|
+
The standard button: primary/secondary/danger CTAs, light and text-style buttons, selectable chips, loading state.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseButton from "@wikicasa-dev/components/UIKit/BaseButton";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Use it for every clickable action that is not navigation. Use a plain `<a>` (or the app's link component) for links to other pages. Use `BaseTabsTrigger` for tabs.
|
|
19
|
+
|
|
20
|
+
The look is chosen with `btnClass` (default `uikit-btn-w-primary`):
|
|
21
|
+
|
|
22
|
+
| `btnClass` | Looks like | Use it for |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `uikit-btn-w-primary` | Solid blue, white text | The main action of a view or form ("Cerca", "Contatta l'agenzia"). One per area. |
|
|
25
|
+
| `uikit-btn-w-secondary` | Solid light blue-lavender | Secondary action next to a primary one. |
|
|
26
|
+
| `uikit-btn-w-danger` | Solid red | Destructive/irreversible actions ("Elimina annuncio"). |
|
|
27
|
+
| `uikit-btn-w-warning` | Solid yellow, dark text | Attention-grabbing promos/upsells. Use sparingly. |
|
|
28
|
+
| `uikit-btn-light` | White, blue text | Actions on top of blue or dark backgrounds. |
|
|
29
|
+
| `uikit-btn-show-more` | White, blue text, no radius | "Mostra di più" / expand-list links. |
|
|
30
|
+
| `uikit-btn-transparent` | No background, no padding | Icon-only buttons and text-like buttons. Combine with `:with-min-width="false"`. |
|
|
31
|
+
| `uikit-btn-single-selection` | White, regular weight | One option in a single-choice group (e.g. number of rooms). Set `keepActive` on the selected one. |
|
|
32
|
+
| `uikit-btn-multi-selection` | Light gray, bordered | One option in a multi-choice group (e.g. features). Set `keepActive` on each selected one. |
|
|
33
|
+
| `uikit-btn-facile` | Solid orange | Only for CTAs of the Facile mortgage partner (its brand orange). Not a general-purpose color. |
|
|
34
|
+
|
|
35
|
+
`outlined` gives a white button with a colored border; it is styled only for `uikit-btn-w-primary`, `uikit-btn-w-secondary` and `uikit-btn-w-danger`. `size` is `sm` (36px tall), default (42px) or `lg` (47px).
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import BaseButton from "@wikicasa-dev/components/UIKit/BaseButton";
|
|
42
|
+
import { ref } from "vue";
|
|
43
|
+
|
|
44
|
+
const sending = ref(false);
|
|
45
|
+
const rooms = ref(2);
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<template>
|
|
49
|
+
<BaseButton type="button" :is-loading="sending" @click="sending = true">
|
|
50
|
+
Contatta l'agenzia
|
|
51
|
+
</BaseButton>
|
|
52
|
+
<BaseButton btn-class="uikit-btn-w-primary" outlined size="sm">Salva ricerca</BaseButton>
|
|
53
|
+
|
|
54
|
+
<BaseButton
|
|
55
|
+
v-for="n in [1, 2, 3, 4]"
|
|
56
|
+
:key="n"
|
|
57
|
+
btn-class="uikit-btn-single-selection"
|
|
58
|
+
:keep-active="rooms === n"
|
|
59
|
+
@click="rooms = n"
|
|
60
|
+
>
|
|
61
|
+
{{ n }} locali
|
|
62
|
+
</BaseButton>
|
|
63
|
+
|
|
64
|
+
<BaseButton btn-class="uikit-btn-transparent" :with-min-width="false" aria-label="Chiudi" title="Chiudi">
|
|
65
|
+
✕
|
|
66
|
+
</BaseButton>
|
|
67
|
+
</template>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Do / Don't
|
|
71
|
+
|
|
72
|
+
- Icon-only button: always pass `ariaLabel` (and `title` for a hover hint); the icon alone gives screen readers nothing.
|
|
73
|
+
- Set `type="button"` unless it should submit a form: no `type` is rendered by default, so inside a `<form>` it acts as submit.
|
|
74
|
+
- `isLoading` replaces the content with a spinner and disables the button; don't also swap the label yourself.
|
|
75
|
+
- `btnClass` only accepts the variants above. Put your own layout/spacing classes in `class`, not in `btnClass`.
|
|
76
|
+
- Full-width buttons: add `style="width: 100%"` (or your own class); a min width of 90px applies unless `:with-min-width="false"`.
|
|
77
|
+
- Content with an icon: make the button a flex row (`style="display: flex; align-items: center; gap: 10px"`). The default slot exposes `hover` (boolean) to swap icon colors.
|
|
78
|
+
- Hover colors only change from 576px up; on phones the button keeps its resting colors.
|
|
79
|
+
|
|
80
|
+
## Styling hooks
|
|
81
|
+
|
|
82
|
+
Each variant sets these CSS custom properties on the button; override them with a more specific selector or inline `style`:
|
|
83
|
+
`--btn-bg-color`, `--btn-text-color`, `--btn-border-color`, `--btn-border-width`, `--btn-border-radius`, `--btn-height`, `--btn-px`, `--btn-py`, `--btn-min-w`, `--btn-font-size`. `uikit-btn-facile` also reads `--btn-facile-color` and `--btn-facile-hover-color`.
|
|
84
|
+
|
|
85
|
+
## API
|
|
86
|
+
|
|
87
|
+
_Generated from the component's types. Do not edit by hand._
|
|
88
|
+
|
|
89
|
+
### Props
|
|
90
|
+
|
|
91
|
+
| Name | Type | Default | Required | Description |
|
|
92
|
+
| --- | --- | --- | --- | --- |
|
|
93
|
+
| `btnClass` | `"uikit-btn-w-primary" \| "uikit-btn-w-secondary" \| "uikit-btn-w-warning" \| "uikit-btn-w-danger" \| "uikit-btn-transparent" \| "uikit-btn-light" \| "uikit-btn-show-more" \| "uikit-btn-multi-selection" \| "uikit-btn-single-selection" \| "uikit-btn-facile"` | `"uikit-btn-w-primary"` | | |
|
|
94
|
+
| `outlined` | `boolean` | | | |
|
|
95
|
+
| `size` | `"" \| "lg" \| "sm"` | | | |
|
|
96
|
+
| `withMinWidth` | `boolean` | `true` | | |
|
|
97
|
+
| `keepActive` | `boolean` | | | |
|
|
98
|
+
| `isLoading` | `boolean` | | | |
|
|
99
|
+
| `disabled` | `boolean` | | | |
|
|
100
|
+
| `ariaLabel` | `string` | | | |
|
|
101
|
+
| `title` | `string` | | | Add the title for screen readers when the button consists of just an icon |
|
|
102
|
+
| `dataCy` | `string` | | | |
|
|
103
|
+
| `type` | `HTMLButtonType` | | | |
|
|
104
|
+
|
|
105
|
+
### Events
|
|
106
|
+
|
|
107
|
+
| Name | Payload |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| `click` | `[e: MouseEvent]` |
|
|
110
|
+
| `mouseover` | `[e: MouseEvent]` |
|
|
111
|
+
| `keydown` | `[e: KeyboardEvent]` |
|
|
112
|
+
| `mouseout` | `[e: MouseEvent]` |
|
|
113
|
+
|
|
114
|
+
### v-model
|
|
115
|
+
|
|
116
|
+
None.
|
|
117
|
+
|
|
118
|
+
### Slots
|
|
119
|
+
|
|
120
|
+
| Name | Slot props |
|
|
121
|
+
| --- | --- |
|
|
122
|
+
| `default` | `{ hover: boolean; }` |
|
|
123
|
+
| `spinner` | |
|
|
124
|
+
|
|
125
|
+
### Exposed (template ref)
|
|
126
|
+
|
|
127
|
+
| Name | Type |
|
|
128
|
+
| --- | --- |
|
|
129
|
+
| `getRootElement` | `() => HTMLButtonElement \| null` |
|