@wikicasa-dev/components 2.1.2 → 2.1.4-alpha.1
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.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.d.ts +20 -9
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.d.ts +40 -5
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
- package/dist/UIKit/BaseBanner.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.js +3 -2
- package/dist/UIKit/BaseButton.d.ts +9 -8
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseChip.js +4 -0
- package/dist/UIKit/BaseCollapse.js +7 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.d.ts +5 -0
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +3 -39
- package/dist/UIKit/BaseIcon.js +4 -25
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BaseInput.js +3 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BaseNotificationBadge.js +4 -0
- package/dist/UIKit/BasePagination.d.ts +10 -3
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +9 -9
- package/dist/UIKit/BasePin.js +5 -0
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.d.ts +14 -10
- package/dist/UIKit/BaseSlider.js +2 -206
- package/dist/UIKit/BaseSnackbar.js +5 -80
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.d.ts +5 -8
- package/dist/UIKit/BaseToggle.js +2 -41
- package/dist/UIKit/BaseTooltip.d.ts +10 -20
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/DatePicker.js +5 -0
- package/dist/UIKit/InputDropdown.js +4 -0
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
- package/dist/UIKit/Navigation/NavigationBar.js +5 -0
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
- package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
- package/dist/UIKit/Tab/BaseTabItem.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/UIKit/types.d.ts +11 -6
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/polyline.js +2 -0
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -0
- package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
- package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/NativeSelect.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +6 -1593
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +3 -2
- package/dist/index.js +96 -85
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
- package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
- package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js} +11 -11
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +9 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +2 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +15 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +22 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +34 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +12 -0
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +71 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.js +129 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.js +101 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.js +125 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.js +67 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.js +127 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.js +227 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.js +121 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.js +310 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/create-element-if-not-defined.js +12 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/ssr-window.esm.js +135 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/utils.js +91 -0
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/controller.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/navigation.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/pagination.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +213 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +8 -8
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +1 -1
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +25 -25
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +113 -0
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +193 -0
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +55 -0
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +86 -0
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +140 -0
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +185 -0
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +150 -0
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +107 -0
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -0
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +136 -0
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +109 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +50 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +78 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +110 -0
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
- package/dist/packages/components/lib/UIKit/NativeSelect.vue.js +65 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +12 -12
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +22 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +10 -9
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +46 -0
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +109 -0
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js → packages/components/lib/chart/LineChart.vue.js} +2 -2
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +4 -4
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +246 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -3
- package/package.json +21 -18
- package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
- package/dist/UIKit/Slider/SimpleSlider.js +0 -83
- 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/BaseInput.css +0 -1
- package/dist/assets/BaseShimmerLoader.css +0 -1
- package/dist/assets/BaseSlider.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/SwiperCarousel.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +0 -246
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +0 -32
- 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.Ol7Hmb-E.js +0 -202
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js +0 -58
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js +0 -66
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js +0 -137
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js +0 -151
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js +0 -164
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js +0 -43
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +0 -105
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js +0 -71
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +0 -111
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +0 -27
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/polyline.tNTK3v2u.js +0 -129
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +0 -41
- /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
- /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
- /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as l, createElementBlock as r, openBlock as i, createElementVNode as e } from "vue";
|
|
2
|
+
const n = ["width", "height"], s = { transform: "translate(-475 -2098)" }, a = ["fill"], h = /* @__PURE__ */ l({
|
|
3
|
+
__name: "BaseBannerBgElement4",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: 343 },
|
|
6
|
+
height: { default: 164 },
|
|
7
|
+
color: { default: "#de1681" }
|
|
8
|
+
},
|
|
9
|
+
setup(f) {
|
|
10
|
+
return (t, o) => (i(), r("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
13
|
+
width: t.width,
|
|
14
|
+
height: t.height,
|
|
15
|
+
viewBox: "0 0 343 164"
|
|
16
|
+
}, [
|
|
17
|
+
o[0] || (o[0] = e("defs", null, [
|
|
18
|
+
e("filter", {
|
|
19
|
+
x: "-9",
|
|
20
|
+
y: "-7",
|
|
21
|
+
width: "361",
|
|
22
|
+
height: "182",
|
|
23
|
+
filterUnits: "userSpaceOnUse"
|
|
24
|
+
}, [
|
|
25
|
+
e("feOffset", {
|
|
26
|
+
dy: "2",
|
|
27
|
+
input: "SourceAlpha"
|
|
28
|
+
}),
|
|
29
|
+
e("feGaussianBlur", {
|
|
30
|
+
stdDeviation: "3",
|
|
31
|
+
result: "blur"
|
|
32
|
+
}),
|
|
33
|
+
e("feFlood", {
|
|
34
|
+
"flood-color": "#6e6e6e",
|
|
35
|
+
"flood-opacity": "0.6"
|
|
36
|
+
}),
|
|
37
|
+
e("feComposite", {
|
|
38
|
+
operator: "in",
|
|
39
|
+
in2: "blur"
|
|
40
|
+
}),
|
|
41
|
+
e("feComposite", { in: "SourceGraphic" })
|
|
42
|
+
])
|
|
43
|
+
], -1)),
|
|
44
|
+
e("g", s, [
|
|
45
|
+
e("path", {
|
|
46
|
+
d: "M167.755,7.884C276.138,41.063,377.561,163.273,394.291,280.848S336.72,466.841,228.337,433.663,18.531,278.274,1.8,160.7,59.373-25.294,167.755,7.884Z",
|
|
47
|
+
transform: "translate(426.502 2353.926) rotate(-52)",
|
|
48
|
+
fill: t.color
|
|
49
|
+
}, null, 8, a)
|
|
50
|
+
])
|
|
51
|
+
], 8, n));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
h as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as d, createElementBlock as m, openBlock as e, normalizeClass as k, createElementVNode as n, renderSlot as o, createVNode as t, createBlock as s, resolveDynamicComponent as r, withCtx as l, createTextVNode as u, toDisplayString as a } from "vue";
|
|
2
|
+
import c from "./BaseBanner/Background/BaseBannerBgElement1.vue.js";
|
|
3
|
+
import b from "./BaseBanner/Background/BaseBannerBgElement2.vue.js";
|
|
4
|
+
import h from "./BaseBanner/Background/BaseBannerBgElement3.vue.js";
|
|
5
|
+
import p from "./BaseBanner/Background/BaseBannerBgElement4.vue.js";
|
|
6
|
+
const f = ["aria-label"], g = { class: "uikit-relative uikit-z-[2]" }, v = { class: "uikit-text max-sm:uikit-mb-md" }, L = /* @__PURE__ */ d({
|
|
7
|
+
__name: "BaseBanner",
|
|
8
|
+
props: {
|
|
9
|
+
ariaLabel: {},
|
|
10
|
+
headerTag: {},
|
|
11
|
+
title: {},
|
|
12
|
+
description: {},
|
|
13
|
+
ctaComponent: { type: [Object, Function] },
|
|
14
|
+
ctaLabel: {},
|
|
15
|
+
bannerClass: {}
|
|
16
|
+
},
|
|
17
|
+
setup(C) {
|
|
18
|
+
return (i, w) => (e(), m("section", {
|
|
19
|
+
"aria-label": i.ariaLabel,
|
|
20
|
+
class: k([
|
|
21
|
+
"uikit-relative uikit-overflow-hidden uikit-rounded-xs uikit-p-md uikit-text-white sm:uikit-p-lg",
|
|
22
|
+
i.bannerClass === "secondary" ? "uikit-bg-w-blue" : "uikit-bg-w-primary"
|
|
23
|
+
])
|
|
24
|
+
}, [
|
|
25
|
+
n("div", g, [
|
|
26
|
+
o(i.$slots, "title", {}, () => [
|
|
27
|
+
(e(), s(r(i.headerTag || "h2"), { class: "uikit-m-0 uikit-text-20 max-sm:uikit-mb-xs" }, {
|
|
28
|
+
default: l(() => [
|
|
29
|
+
u(a(i.title), 1)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}))
|
|
33
|
+
]),
|
|
34
|
+
o(i.$slots, "description", {}, () => [
|
|
35
|
+
n("p", v, a(i.description), 1)
|
|
36
|
+
])
|
|
37
|
+
]),
|
|
38
|
+
o(i.$slots, "cta", {}, () => [
|
|
39
|
+
(e(), s(r(i.ctaComponent || "button"), { class: "uikit-btn uikit-btn-w-ternary uikit-relative uikit-z-[2]" }, {
|
|
40
|
+
default: l(() => [
|
|
41
|
+
u(a(i.ctaLabel), 1)
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}))
|
|
45
|
+
]),
|
|
46
|
+
t(c, {
|
|
47
|
+
class: "uikit-pointer-events-none uikit-absolute -uikit-right-1/2 uikit-bottom-0 max-sm:uikit-hidden",
|
|
48
|
+
width: 1597,
|
|
49
|
+
height: 211,
|
|
50
|
+
color: i.bannerClass === "secondary" ? "#254fd9" : void 0
|
|
51
|
+
}, null, 8, ["color"]),
|
|
52
|
+
t(b, {
|
|
53
|
+
class: "uikit-pointer-events-none uikit-absolute -uikit-right-1/2 uikit-bottom-0 max-sm:uikit-hidden",
|
|
54
|
+
width: 1597,
|
|
55
|
+
height: 211,
|
|
56
|
+
color: i.bannerClass === "secondary" ? "#2146bf" : void 0
|
|
57
|
+
}, null, 8, ["color"]),
|
|
58
|
+
t(h, {
|
|
59
|
+
class: "uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-right-0 uikit-z-[1] sm:uikit-hidden",
|
|
60
|
+
width: 411,
|
|
61
|
+
height: 196,
|
|
62
|
+
color: i.bannerClass === "secondary" ? "#2146bf" : void 0
|
|
63
|
+
}, null, 8, ["color"]),
|
|
64
|
+
t(p, {
|
|
65
|
+
class: "uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-right-0 sm:uikit-hidden",
|
|
66
|
+
width: 411,
|
|
67
|
+
height: 196,
|
|
68
|
+
color: i.bannerClass === "secondary" ? "#254fd9" : void 0
|
|
69
|
+
}, null, 8, ["color"])
|
|
70
|
+
], 10, f));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
L as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as m, computed as k, createElementBlock as i, openBlock as l, createElementVNode as o, normalizeClass as r, Fragment as u, renderList as p, renderSlot as d, toDisplayString as b, createTextVNode as h } from "vue";
|
|
2
|
+
const f = {
|
|
3
|
+
"aria-label": "Breadcrumb",
|
|
4
|
+
class: "uikit-text"
|
|
5
|
+
}, C = ["data-tooltip", "data-active"], g = ["href"], B = /* @__PURE__ */ m({
|
|
6
|
+
__name: "BaseBreadcrumb",
|
|
7
|
+
props: {
|
|
8
|
+
items: {},
|
|
9
|
+
listClasses: {},
|
|
10
|
+
listItemClasses: {}
|
|
11
|
+
},
|
|
12
|
+
setup(a) {
|
|
13
|
+
const c = k(() => {
|
|
14
|
+
let e = 0;
|
|
15
|
+
const t = [];
|
|
16
|
+
for (; e < a.items.length; )
|
|
17
|
+
t.push({ ...a.items[e], idx: e }), e < a.items.length - 1 && t.push({ arrowIcon: !0 }), e++;
|
|
18
|
+
return t;
|
|
19
|
+
});
|
|
20
|
+
return (e, t) => (l(), i("nav", f, [
|
|
21
|
+
o("ol", {
|
|
22
|
+
class: r(["uikit-gap-10px uikit-flex uikit-items-center uikit-p-0", e.listClasses])
|
|
23
|
+
}, [
|
|
24
|
+
(l(!0), i(u, null, p(c.value, (s, n) => (l(), i(u, null, [
|
|
25
|
+
s?.label ? (l(), i("li", {
|
|
26
|
+
key: `breadcrumb-li-${n}`,
|
|
27
|
+
class: r(["uikit-breadcrumb-item uikit-list-none", e.listItemClasses]),
|
|
28
|
+
"data-tooltip": s.dataTooltip,
|
|
29
|
+
"data-active": s.active
|
|
30
|
+
}, [
|
|
31
|
+
d(e.$slots, "item", {
|
|
32
|
+
item: s
|
|
33
|
+
}, () => [
|
|
34
|
+
o("a", {
|
|
35
|
+
class: "uikit-no-underline [font-size:inherit]",
|
|
36
|
+
href: s.link
|
|
37
|
+
}, b(s.label), 9, g)
|
|
38
|
+
])
|
|
39
|
+
], 10, C)) : (l(), i("li", {
|
|
40
|
+
key: `breadcrumb-li-no-label-${n}`,
|
|
41
|
+
class: r(["uikit-list-none uikit-px-sm", e.listItemClasses]),
|
|
42
|
+
"aria-hidden": "true"
|
|
43
|
+
}, [
|
|
44
|
+
d(e.$slots, "separator", {}, () => [
|
|
45
|
+
t[0] || (t[0] = h(" / "))
|
|
46
|
+
])
|
|
47
|
+
], 2))
|
|
48
|
+
], 64))), 256))
|
|
49
|
+
], 2)
|
|
50
|
+
]));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
B as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as f, ref as c, computed as s, createElementBlock as v, openBlock as g, withModifiers as l, normalizeStyle as w, normalizeClass as B, renderSlot as r, createVNode as h } from "vue";
|
|
2
|
+
import C from "../../../../UIKit/StaticSpinner.js";
|
|
3
|
+
const M = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ f({
|
|
4
|
+
__name: "BaseButton",
|
|
5
|
+
props: {
|
|
6
|
+
btnClass: { default: "primary" },
|
|
7
|
+
outlined: { type: Boolean },
|
|
8
|
+
rounded: { type: Boolean },
|
|
9
|
+
size: {},
|
|
10
|
+
withMinWidth: { type: Boolean, default: !0 },
|
|
11
|
+
keepActive: { type: Boolean },
|
|
12
|
+
isLoading: { type: Boolean },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
ariaLabel: {},
|
|
15
|
+
title: {},
|
|
16
|
+
dataCy: {},
|
|
17
|
+
type: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["mouseover", "mouseout", "click"],
|
|
20
|
+
setup(a, { emit: u }) {
|
|
21
|
+
const n = u, d = {
|
|
22
|
+
primary: "uikit-btn-w-primary",
|
|
23
|
+
secondary: "uikit-btn-w-secondary",
|
|
24
|
+
ternary: "uikit-btn-w-ternary",
|
|
25
|
+
quaternary: "uikit-btn-w-quaternary",
|
|
26
|
+
warning: "uikit-btn-w-warning",
|
|
27
|
+
danger: "uikit-btn-w-danger",
|
|
28
|
+
transparent: "uikit-btn-transparent",
|
|
29
|
+
light: "uikit-btn-light",
|
|
30
|
+
"show-more": "uikit-btn-show-more",
|
|
31
|
+
"multi-selection": "uikit-btn-multi-selection",
|
|
32
|
+
"single-selection": "uikit-btn-single-selection",
|
|
33
|
+
facile: "uikit-btn-facile"
|
|
34
|
+
}, k = {
|
|
35
|
+
sm: "uikit-btn-sm",
|
|
36
|
+
lg: "uikit-btn-lg"
|
|
37
|
+
}, o = c(!1), b = s(
|
|
38
|
+
() => k[a.size] || "uikit-btn-md"
|
|
39
|
+
), m = s(() => a.outlined ? "uikit-btn-outline" : ""), p = () => {
|
|
40
|
+
o.value = !0;
|
|
41
|
+
}, y = () => {
|
|
42
|
+
o.value = !1;
|
|
43
|
+
};
|
|
44
|
+
return (t, e) => (g(), v("button", {
|
|
45
|
+
id: t.$attrs.id,
|
|
46
|
+
"data-cy": t.dataCy,
|
|
47
|
+
type: t.type,
|
|
48
|
+
class: B([
|
|
49
|
+
"uikit-shadow-surface uikit-btn",
|
|
50
|
+
{
|
|
51
|
+
"uikit-btn-empty": !t.withMinWidth,
|
|
52
|
+
"active uikit-font-medium": t.keepActive,
|
|
53
|
+
"uikit-flex uikit-items-center uikit-justify-center": t.isLoading
|
|
54
|
+
},
|
|
55
|
+
d[t.btnClass],
|
|
56
|
+
b.value,
|
|
57
|
+
m.value,
|
|
58
|
+
{ "uikit-btn-rounded": t.rounded }
|
|
59
|
+
]),
|
|
60
|
+
style: w(t.$attrs.style),
|
|
61
|
+
"data-active": t.keepActive,
|
|
62
|
+
disabled: t.isLoading || t.disabled,
|
|
63
|
+
"aria-label": t.ariaLabel,
|
|
64
|
+
title: t.title,
|
|
65
|
+
onMouseover: e[0] || (e[0] = l((i) => {
|
|
66
|
+
p(), n("mouseover", i);
|
|
67
|
+
}, ["stop"])),
|
|
68
|
+
onMouseout: e[1] || (e[1] = l((i) => {
|
|
69
|
+
y(), n("mouseout", i);
|
|
70
|
+
}, ["stop"])),
|
|
71
|
+
onClick: e[2] || (e[2] = (i) => n("click", i))
|
|
72
|
+
}, [
|
|
73
|
+
t.isLoading ? r(t.$slots, "spinner", { key: 1 }, () => [
|
|
74
|
+
h(C, {
|
|
75
|
+
"stroke-color": t.outlined ? "#ACB4C3" : "#fff"
|
|
76
|
+
}, null, 8, ["stroke-color"])
|
|
77
|
+
]) : r(t.$slots, "default", {
|
|
78
|
+
key: 0,
|
|
79
|
+
hover: o.value
|
|
80
|
+
})
|
|
81
|
+
], 46, M));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
S as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as m, computed as o, createBlock as u, openBlock as C, resolveDynamicComponent as p, normalizeClass as a, withCtx as y, createElementVNode as d, renderSlot as l } from "vue";
|
|
2
|
+
const g = /* @__PURE__ */ m({
|
|
3
|
+
__name: "BaseCard",
|
|
4
|
+
props: {
|
|
5
|
+
type: { default: "" },
|
|
6
|
+
rootComponent: { default: "div" },
|
|
7
|
+
cardImgClasses: { default: "" },
|
|
8
|
+
cardBodyClasses: { default: "" }
|
|
9
|
+
},
|
|
10
|
+
emits: ["click"],
|
|
11
|
+
setup(s, { emit: r }) {
|
|
12
|
+
const c = r, n = o(
|
|
13
|
+
() => s.type === "news" ? "news-card" : s.type
|
|
14
|
+
), i = o(() => s.type ? `${s.type}-img` : "");
|
|
15
|
+
return (e, t) => (C(), u(p(e.rootComponent), {
|
|
16
|
+
class: a(["card", [n.value]]),
|
|
17
|
+
onClick: t[0] || (t[0] = (f) => c("click"))
|
|
18
|
+
}, {
|
|
19
|
+
default: y(() => [
|
|
20
|
+
d("div", {
|
|
21
|
+
class: a(["card-img", [i.value, e.cardImgClasses]])
|
|
22
|
+
}, [
|
|
23
|
+
l(e.$slots, "card-image", {}, void 0, !0)
|
|
24
|
+
], 2),
|
|
25
|
+
d("div", {
|
|
26
|
+
class: a(["card-body", [e.cardBodyClasses]])
|
|
27
|
+
}, [
|
|
28
|
+
l(e.$slots, "card-description", {}, void 0, !0)
|
|
29
|
+
], 2)
|
|
30
|
+
]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 8, ["class"]));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
g as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as a, useModel as d, createBlock as s, openBlock as i, unref as o, withCtx as k, renderSlot as m, createElementBlock as n, createCommentVNode as f, createVNode as c } from "vue";
|
|
2
|
+
import { Toggle as p } from "reka-ui";
|
|
3
|
+
import { CloseIcon as x } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
const b = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "uikit-box-border uikit-flex uikit-size-sm uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-blue uikit-text-10 uikit-text-white"
|
|
8
|
+
}, C = /* @__PURE__ */ a({
|
|
9
|
+
__name: "BaseChip",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: { default: !1 },
|
|
12
|
+
modelModifiers: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(u) {
|
|
16
|
+
const e = d(u, "modelValue");
|
|
17
|
+
return (l, t) => (i(), s(o(p), {
|
|
18
|
+
modelValue: e.value,
|
|
19
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.value = r),
|
|
20
|
+
class: "uikit-flex uikit-h-xl uikit-items-center uikit-gap-x-2xs uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-py-xs uikit-text-12 hover:uikit-border-[#385CF6] data-[state=on]:uikit-border-[#385CF6] data-[state=on]:uikit-bg-w-cultured data-[state=on]:uikit-font-medium data-[state=on]:uikit-text-w-blue"
|
|
21
|
+
}, {
|
|
22
|
+
default: k(() => [
|
|
23
|
+
m(l.$slots, "default"),
|
|
24
|
+
e.value ? (i(), n("span", b, [
|
|
25
|
+
c(o(x), {
|
|
26
|
+
width: 6,
|
|
27
|
+
height: 6,
|
|
28
|
+
"stroke-color": "#fff"
|
|
29
|
+
})
|
|
30
|
+
])) : f("", !0)
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 8, ["modelValue"]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
C as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as s, mergeModels as p, useModel as d, createBlock as f, openBlock as m, unref as t, withCtx as i, createVNode as n, renderSlot as l, normalizeClass as k } from "vue";
|
|
2
|
+
import { ArrowFilledIcon as c } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
|
+
import { CollapsibleRoot as b, CollapsibleTrigger as g, CollapsibleContent as C } from "reka-ui";
|
|
5
|
+
const M = /* @__PURE__ */ s({
|
|
6
|
+
__name: "BaseCollapse",
|
|
7
|
+
props: /* @__PURE__ */ p({
|
|
8
|
+
unmountOnHide: { type: Boolean, default: !0 }
|
|
9
|
+
}, {
|
|
10
|
+
open: { default: !1 },
|
|
11
|
+
openModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:open"],
|
|
14
|
+
setup(a) {
|
|
15
|
+
const o = d(a, "open");
|
|
16
|
+
return (e, r) => (m(), f(t(b), {
|
|
17
|
+
open: o.value,
|
|
18
|
+
"onUpdate:open": r[0] || (r[0] = (u) => o.value = u),
|
|
19
|
+
"unmount-on-hide": e.unmountOnHide
|
|
20
|
+
}, {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
n(t(g), { class: "uikit-inline-flex uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-gap-xs uikit-bg-transparent uikit-p-0 uikit-font-semibold uikit-text-w-blue" }, {
|
|
23
|
+
default: i(() => [
|
|
24
|
+
l(e.$slots, "label", {}, void 0, !0),
|
|
25
|
+
l(e.$slots, "trigger", {}, () => [
|
|
26
|
+
n(t(c), {
|
|
27
|
+
"fill-color": "#2b5dff",
|
|
28
|
+
width: 14,
|
|
29
|
+
height: 16,
|
|
30
|
+
class: k([
|
|
31
|
+
"uikit-pointer-events-none uikit-transition-transform uikit-will-change-transform",
|
|
32
|
+
{
|
|
33
|
+
"uikit-rotate-180": o.value
|
|
34
|
+
}
|
|
35
|
+
])
|
|
36
|
+
}, null, 8, ["class"])
|
|
37
|
+
], !0)
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}),
|
|
41
|
+
n(t(C), { class: "collapsible-content" }, {
|
|
42
|
+
default: i(() => [
|
|
43
|
+
l(e.$slots, "default", {}, void 0, !0)
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
})
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["open", "unmount-on-hide"]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
M as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as v, mergeModels as T, useModel as y, computed as c, createElementBlock as r, openBlock as g, normalizeClass as o, createElementVNode as t, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
|
|
2
|
+
const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */ v({
|
|
3
|
+
__name: "BaseComplexToggle",
|
|
4
|
+
props: /* @__PURE__ */ T({
|
|
5
|
+
labels: {},
|
|
6
|
+
type: { default: "full" },
|
|
7
|
+
mode: { default: "" },
|
|
8
|
+
btnBgColor: { default: "uikit-bg-w-gray" },
|
|
9
|
+
btnClasses: {},
|
|
10
|
+
borderContainerColor: { default: "uikit-border-w-gray" },
|
|
11
|
+
size: { default: "" }
|
|
12
|
+
}, {
|
|
13
|
+
modelValue: {
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(n) {
|
|
20
|
+
const l = n, a = y(n, "modelValue"), s = () => {
|
|
21
|
+
a.value = l.labels.leftToggle;
|
|
22
|
+
}, u = () => {
|
|
23
|
+
a.value = l.labels.rightToggle;
|
|
24
|
+
};
|
|
25
|
+
(() => {
|
|
26
|
+
if (l.labels.leftToggle.checked) {
|
|
27
|
+
s();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (l.labels.rightToggle.checked) {
|
|
31
|
+
u();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
s();
|
|
35
|
+
})();
|
|
36
|
+
const b = (e) => a.value?.label === e.label, d = c(() => b(l.labels.leftToggle)), p = c(() => b(l.labels.rightToggle));
|
|
37
|
+
return (e, i) => (g(), r("div", {
|
|
38
|
+
id: e.$attrs.id || "",
|
|
39
|
+
"data-cy": e.$attrs["data-cy"] || "",
|
|
40
|
+
class: o(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor, e.size]])
|
|
41
|
+
}, [
|
|
42
|
+
t("div", {
|
|
43
|
+
"data-btn-bg-color": e.btnBgColor,
|
|
44
|
+
"data-cy": `bct-left-btn${e.labels.leftToggle.label ? `-${e.labels.leftToggle.label}` : ""}`,
|
|
45
|
+
class: o(["left-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
|
|
46
|
+
{
|
|
47
|
+
"base-complex-toggle-active": d.value
|
|
48
|
+
}
|
|
49
|
+
]]),
|
|
50
|
+
onClick: i[0] || (i[0] = f((h) => s(), ["stop"]))
|
|
51
|
+
}, [
|
|
52
|
+
m(e.$slots, "left_icon", {}, () => [
|
|
53
|
+
e.labels.leftToggle.icon ? (g(), r("img", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "base-complex-toggle-icon uikit-mr-10px uikit-relative uikit-z-10",
|
|
56
|
+
src: e.labels.leftToggle.icon.src,
|
|
57
|
+
alt: e.labels.leftToggle.icon.alt,
|
|
58
|
+
width: "15",
|
|
59
|
+
height: "15"
|
|
60
|
+
}, null, 8, L)) : k("", !0)
|
|
61
|
+
], !0),
|
|
62
|
+
t("span", {
|
|
63
|
+
class: "base-complex-toggle-label uikit-relative uikit-z-10",
|
|
64
|
+
innerHTML: e.labels.leftToggle.label
|
|
65
|
+
}, null, 8, M)
|
|
66
|
+
], 10, $),
|
|
67
|
+
t("div", {
|
|
68
|
+
"data-btn-bg-color": e.btnBgColor,
|
|
69
|
+
"data-cy": `bct-right-btn${e.labels.rightToggle.label ? `-${e.labels.rightToggle.label}` : ""}`,
|
|
70
|
+
class: o(["right-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
|
|
71
|
+
{
|
|
72
|
+
"base-complex-toggle-active": p.value
|
|
73
|
+
}
|
|
74
|
+
]]),
|
|
75
|
+
onClick: i[1] || (i[1] = f((h) => u(), ["stop"]))
|
|
76
|
+
}, [
|
|
77
|
+
m(e.$slots, "right_icon", {}, () => [
|
|
78
|
+
e.labels.rightToggle.icon ? (g(), r("img", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "base-complex-toggle-icon uikit-mr-10px uikit-relative uikit-z-10",
|
|
81
|
+
src: e.labels.rightToggle.icon.src,
|
|
82
|
+
alt: e.labels.rightToggle.icon.alt,
|
|
83
|
+
width: "15",
|
|
84
|
+
height: "15"
|
|
85
|
+
}, null, 8, B)) : k("", !0)
|
|
86
|
+
], !0),
|
|
87
|
+
t("span", {
|
|
88
|
+
class: "base-complex-toggle-label uikit-relative uikit-z-10",
|
|
89
|
+
innerHTML: e.labels.rightToggle.label
|
|
90
|
+
}, null, 8, V)
|
|
91
|
+
], 10, z),
|
|
92
|
+
t("div", {
|
|
93
|
+
class: o(["uikit-absolute uikit-transition-all uikit-duration-200 uikit-ease-out", [
|
|
94
|
+
e.type === "full" ? "base-complex-toggle-active-bg" : "base-complex-toggle-active-padded-bg",
|
|
95
|
+
e.btnBgColor,
|
|
96
|
+
e.mode,
|
|
97
|
+
d.value ? "translateX-left" : "translateX-right",
|
|
98
|
+
e.btnClasses
|
|
99
|
+
]])
|
|
100
|
+
}, null, 2)
|
|
101
|
+
], 10, C));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
j as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent as L, mergeModels as h, useId as M, useModel as E, ref as y, computed as H, useTemplateRef as O, watch as d, onBeforeMount as W, onMounted as $, onUnmounted as K, createElementBlock as N, openBlock as p, withModifiers as C, normalizeClass as l, renderSlot as g, createBlock as D, createVNode as T, unref as i, withCtx as S, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import R from "./BaseButton.vue.js";
|
|
3
|
+
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
|
+
const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "BaseDropDown",
|
|
9
|
+
props: /* @__PURE__ */ h({
|
|
10
|
+
dropdownClasses: { default: "" },
|
|
11
|
+
btnClasses: { default: "" },
|
|
12
|
+
withArrowIcon: { type: Boolean, default: !1 },
|
|
13
|
+
btnLabel: { default: "" },
|
|
14
|
+
labelClasses: { default: "" },
|
|
15
|
+
direction: { default: "down" },
|
|
16
|
+
arrowWidth: { default: 12 },
|
|
17
|
+
arrowStrokeColor: { default: void 0 },
|
|
18
|
+
isAbsolute: { type: Boolean, default: !0 },
|
|
19
|
+
openDropdown: { type: Boolean, default: !1 },
|
|
20
|
+
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
21
|
+
dropdownElement: { default: "div" },
|
|
22
|
+
keepState: { default: "" },
|
|
23
|
+
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
+
disableSpaceHandler: { type: Boolean, default: !1 },
|
|
25
|
+
dataCy: { default: "" }
|
|
26
|
+
}, {
|
|
27
|
+
toggleDropdown: {
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
30
|
+
toggleDropdownModifiers: {}
|
|
31
|
+
}),
|
|
32
|
+
emits: /* @__PURE__ */ h(["click", "update:dropdownState", "update:selectedIdx"], ["update:toggleDropdown"]),
|
|
33
|
+
setup(c, { emit: I }) {
|
|
34
|
+
const o = c, f = M(), n = I, k = E(c, "toggleDropdown"), t = y(!1), r = y([]), B = H(() => r.value.length), w = O("dropdown"), { activeIdx: m, selectedIdx: s } = j({
|
|
35
|
+
optionsLength: B,
|
|
36
|
+
isDropdownOpen: t,
|
|
37
|
+
activate: o.activateKeyboardController,
|
|
38
|
+
disableSpaceHandler: o.disableSpaceHandler
|
|
39
|
+
});
|
|
40
|
+
d(
|
|
41
|
+
() => o.openDropdown,
|
|
42
|
+
(e) => {
|
|
43
|
+
t.value = e;
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
immediate: !0
|
|
47
|
+
}
|
|
48
|
+
), d(t, (e) => {
|
|
49
|
+
n("update:dropdownState", e);
|
|
50
|
+
}), d(k, (e) => {
|
|
51
|
+
e && (t.value = !t.value, k.value = !1);
|
|
52
|
+
}), d(s, (e) => {
|
|
53
|
+
e !== -1 && (r.value[e].querySelector("a")?.click(), n("update:selectedIdx", e));
|
|
54
|
+
});
|
|
55
|
+
const v = () => {
|
|
56
|
+
t.value = !1;
|
|
57
|
+
}, u = () => {
|
|
58
|
+
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
59
|
+
}, b = (e) => {
|
|
60
|
+
e != null && (m.value = e);
|
|
61
|
+
}, A = (e) => {
|
|
62
|
+
e != null && (s.value = e);
|
|
63
|
+
};
|
|
64
|
+
return W(() => {
|
|
65
|
+
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
66
|
+
}), $(() => {
|
|
67
|
+
w.value && (r.value = w.value.children || []);
|
|
68
|
+
}), K(() => {
|
|
69
|
+
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
70
|
+
}), (e, a) => (p(), N("div", {
|
|
71
|
+
class: l(["uikit-relative uikit-block", e.$attrs.class]),
|
|
72
|
+
onClick: a[1] || (a[1] = C((F) => {
|
|
73
|
+
n("click"), u();
|
|
74
|
+
}, ["stop"]))
|
|
75
|
+
}, [
|
|
76
|
+
g(e.$slots, "btn_slot", {
|
|
77
|
+
toggleDropdown: u,
|
|
78
|
+
isOpen: t.value,
|
|
79
|
+
setActiveIdx: b
|
|
80
|
+
}, () => [
|
|
81
|
+
T(R, {
|
|
82
|
+
id: i(f),
|
|
83
|
+
type: "button",
|
|
84
|
+
"data-cy": e.dataCy,
|
|
85
|
+
class: l([
|
|
86
|
+
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
87
|
+
e.btnClasses
|
|
88
|
+
]),
|
|
89
|
+
"aria-expanded": t.value,
|
|
90
|
+
"btn-class": "single-selection"
|
|
91
|
+
}, {
|
|
92
|
+
default: S(() => [
|
|
93
|
+
V("span", {
|
|
94
|
+
class: l(["uikit-mr-5px", e.labelClasses]),
|
|
95
|
+
innerHTML: e.btnLabel
|
|
96
|
+
}, null, 10, x),
|
|
97
|
+
e.withArrowIcon ? (p(), D(i(U), {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: l(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
100
|
+
width: e.arrowWidth,
|
|
101
|
+
height: e.arrowWidth,
|
|
102
|
+
"stroke-color": e.arrowStrokeColor
|
|
103
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : q("", !0)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
107
|
+
]),
|
|
108
|
+
(p(), D(z(e.dropdownElement), {
|
|
109
|
+
id: "dropdown_" + i(f),
|
|
110
|
+
ref: "dropdown",
|
|
111
|
+
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
112
|
+
class: l(["uikit-border-w-lavender uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
113
|
+
e.dropdownClasses,
|
|
114
|
+
t.value ? "uikit-flex" : "uikit-hidden",
|
|
115
|
+
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
116
|
+
{ "uikit-rounded-b uikit-border-t-0": e.direction === "down" },
|
|
117
|
+
{ "uikit-absolute": e.isAbsolute }
|
|
118
|
+
]]),
|
|
119
|
+
"aria-hidden": !t.value,
|
|
120
|
+
onClick: a[0] || (a[0] = C(() => {
|
|
121
|
+
}, ["stop"]))
|
|
122
|
+
}, {
|
|
123
|
+
default: S(() => [
|
|
124
|
+
g(e.$slots, "default", {
|
|
125
|
+
isOpen: t.value,
|
|
126
|
+
toggleDropdown: u,
|
|
127
|
+
activeIdx: i(m),
|
|
128
|
+
selectedIdx: i(s),
|
|
129
|
+
setActiveIdx: b,
|
|
130
|
+
setSelectedIdx: A
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 3
|
|
134
|
+
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
135
|
+
], 2));
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
Y as default
|
|
140
|
+
};
|