@wikicasa-dev/components 2.1.4-alpha.8 → 2.1.4
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/BaseAlert.d.ts +9 -20
- package/dist/UIKit/BaseBadge.d.ts +5 -40
- package/dist/UIKit/BaseBreadcrumb.js +2 -3
- package/dist/UIKit/BaseButton.d.ts +8 -9
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +0 -5
- package/dist/UIKit/BaseFloatingLabel.js +3 -1
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseInput.js +3 -1
- package/dist/UIKit/BasePagination.d.ts +3 -10
- package/dist/UIKit/BaseSlider.d.ts +10 -14
- package/dist/UIKit/BaseSlider.js +4 -1
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +8 -5
- package/dist/UIKit/BaseToggle.js +4 -1
- package/dist/UIKit/BaseTooltip.d.ts +20 -10
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +16 -9
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -1
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +5 -1
- package/dist/UIKit/Slider/SimpleSlider.d.ts +19 -0
- package/dist/UIKit/Slider/SimpleSlider.js +7 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -1
- package/dist/UIKit/types.d.ts +6 -11
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +2 -6
- package/dist/index.js +85 -100
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +13 -107
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +11 -46
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +35 -32
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +36 -56
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +45 -48
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +17 -14
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +119 -93
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +66 -70
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +134 -89
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +178 -107
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +73 -55
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +31 -27
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +33 -48
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +40 -19
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +52 -55
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +26 -20
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +19 -21
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -5
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -5
- package/package.json +17 -20
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +0 -4
- package/dist/UIKit/BaseBanner.js +0 -4
- package/dist/UIKit/BaseChip.js +0 -4
- package/dist/UIKit/BaseCollapse.js +0 -7
- package/dist/UIKit/BaseNotificationBadge.js +0 -4
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BasePin.js +0 -5
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/UIKit/DatePicker.js +0 -5
- package/dist/UIKit/InputDropdown.js +0 -4
- package/dist/UIKit/Navigation/NavigationBar.d.ts +0 -17
- package/dist/UIKit/Navigation/NavigationBar.js +0 -5
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +0 -34
- package/dist/UIKit/Navigation/NavigationBarItem.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +0 -4
- package/dist/UIKit/Tab/BaseTabItem.d.ts +0 -27
- package/dist/UIKit/Tab/BaseTabItem.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/create-plugin.js +0 -4
- package/dist/_virtual/createPlugin.js +0 -4
- package/dist/_virtual/plugin.js +0 -7
- 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 +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
- 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 +0 -19
- 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 +0 -16
- 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 +0 -29
- 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 +0 -33
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/create-plugin.js +0 -25
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/createPlugin.js +0 -34
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/plugin.js +0 -11
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
- package/dist/plugins/buttonPlugin.d.ts +0 -4
- package/dist/plugins/buttonPlugin.js +0 -232
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import n from "../_virtual/plugin.js";
|
|
2
|
-
const o = {
|
|
3
|
-
//New colors
|
|
4
|
-
primary: { value: "#F20282", hover: "#E30C79", outlineHover: "#FFF8FB" },
|
|
5
|
-
secondary: { value: "#2b5dff", hover: "#244FD9" },
|
|
6
|
-
lightgray: { value: "#C1C8D5" },
|
|
7
|
-
ghost: { value: "#FAFBFF" },
|
|
8
|
-
lavender: { value: "#E9EFFE" },
|
|
9
|
-
black: { value: "#222222" },
|
|
10
|
-
warning: { value: "#FFD167" },
|
|
11
|
-
white: { value: "#FFF", hover: "" },
|
|
12
|
-
danger: { value: "#FA4F64" }
|
|
13
|
-
}, b = n(({ addComponents: r, theme: t }) => {
|
|
14
|
-
r({
|
|
15
|
-
".btn": {
|
|
16
|
-
"--btn-px": "25px",
|
|
17
|
-
"--btn-py": "11px",
|
|
18
|
-
"--btn-bg-color": "transparent",
|
|
19
|
-
"--btn-text-color": o.black.value,
|
|
20
|
-
"--btn-border-color": "unset",
|
|
21
|
-
"--btn-border-width": "0",
|
|
22
|
-
"--btn-border-radius": "24px",
|
|
23
|
-
"--btn-border-style": "solid",
|
|
24
|
-
"--btn-height": "40px",
|
|
25
|
-
"--btn-width": "auto",
|
|
26
|
-
"--btn-font-size": t("fontSize.16"),
|
|
27
|
-
"--btn-transition": "color, background-color cubic-bezier(0.4, 0, 0.2, 1) 150ms",
|
|
28
|
-
"--btn-font-weight": `${t("fontWeight.semibold")}`,
|
|
29
|
-
display: "inline-flex",
|
|
30
|
-
"align-items": "center",
|
|
31
|
-
"justify-content": "center",
|
|
32
|
-
"font-size": "var(--btn-font-size)",
|
|
33
|
-
"font-weight": "var(--btn-font-weight)",
|
|
34
|
-
"white-space": "nowrap",
|
|
35
|
-
border: "var(--btn-border-width) var(--btn-border-color) var(--btn-border-style)",
|
|
36
|
-
"border-radius": "var(--btn-border-radius)",
|
|
37
|
-
cursor: "pointer",
|
|
38
|
-
height: "var(--btn-height)",
|
|
39
|
-
width: "var(--btn-width)",
|
|
40
|
-
"background-color": "var(--btn-bg-color)",
|
|
41
|
-
color: "var(--btn-text-color)",
|
|
42
|
-
padding: "var(--btn-py) var(--btn-px)",
|
|
43
|
-
transition: "var(--btn-transition)",
|
|
44
|
-
"line-height": "1",
|
|
45
|
-
"-webkit-tap-highlight-color": "transparent",
|
|
46
|
-
"&.btn-lg": {
|
|
47
|
-
"--btn-height": "48px",
|
|
48
|
-
"--btn-px": "24px",
|
|
49
|
-
"--btn-py": "12px"
|
|
50
|
-
},
|
|
51
|
-
"&.btn-sm": {
|
|
52
|
-
"--btn-px": "24px",
|
|
53
|
-
"--btn-py": "8px",
|
|
54
|
-
"--btn-height": "40px"
|
|
55
|
-
},
|
|
56
|
-
"&.btn-rounded": {
|
|
57
|
-
"--btn-px": "0",
|
|
58
|
-
"--btn-py": "0"
|
|
59
|
-
},
|
|
60
|
-
"&.btn-outline": {
|
|
61
|
-
"--btn-border-width": "1px",
|
|
62
|
-
"--btn-bg-color": o.white.value
|
|
63
|
-
},
|
|
64
|
-
"&.btn-primary": {
|
|
65
|
-
...e(
|
|
66
|
-
{
|
|
67
|
-
bgColor: o.primary.value,
|
|
68
|
-
textColor: o.white.value,
|
|
69
|
-
hoverBgColor: o.primary.hover
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
mainColor: o.white.hover,
|
|
73
|
-
textColor: o.primary.value,
|
|
74
|
-
hoverBgColor: o.primary.outlineHover
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
"text-transform": "uppercase"
|
|
78
|
-
},
|
|
79
|
-
"&.btn-secondary": e(
|
|
80
|
-
{
|
|
81
|
-
bgColor: o.secondary.value,
|
|
82
|
-
textColor: o.white.value,
|
|
83
|
-
hoverBgColor: o.secondary.hover
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
mainColor: o.secondary.value,
|
|
87
|
-
textColor: o.secondary.value
|
|
88
|
-
}
|
|
89
|
-
),
|
|
90
|
-
"&.btn-ternary": {
|
|
91
|
-
...e({
|
|
92
|
-
bgColor: o.white.value,
|
|
93
|
-
textColor: o.secondary.value,
|
|
94
|
-
hoverBgColor: o.white.value,
|
|
95
|
-
hoverTextColor: o.secondary.hover
|
|
96
|
-
}),
|
|
97
|
-
"--btn-border-color": o.lightgray.value,
|
|
98
|
-
"--btn-border-width": "1px",
|
|
99
|
-
"--btn-border-radius": "24px"
|
|
100
|
-
},
|
|
101
|
-
"&.btn-quaternary": {
|
|
102
|
-
"--btn-px": "0",
|
|
103
|
-
"--btn-py": "0",
|
|
104
|
-
"--btn-text-color": o.secondary.value,
|
|
105
|
-
"--btn-height": "auto",
|
|
106
|
-
"&:hover": {
|
|
107
|
-
"text-decoration": "underline",
|
|
108
|
-
"--btn-text-color": o.secondary.hover
|
|
109
|
-
},
|
|
110
|
-
"&:disabled": {
|
|
111
|
-
"--btn-bg-color": "transparent",
|
|
112
|
-
"--btn-text-color": o.lightgray.value
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"&.btn-single-selection": {
|
|
116
|
-
"--btn-px": "16px",
|
|
117
|
-
"--btn-py": "8px",
|
|
118
|
-
"--btn-border-radius": t("borderRadius.2xs"),
|
|
119
|
-
"--btn-border-color": o.lightgray.value,
|
|
120
|
-
"--btn-border-width": "1px",
|
|
121
|
-
"--btn-font-weight": t("fontWeight.regular"),
|
|
122
|
-
"&:hover": {
|
|
123
|
-
"--btn-border-color": o.secondary.value
|
|
124
|
-
},
|
|
125
|
-
"&:active,&.active,&[data-active='true']": {
|
|
126
|
-
"--btn-bg-color": o.ghost.value,
|
|
127
|
-
"--btn-text-color": o.secondary.value,
|
|
128
|
-
"--btn-border-color": o.secondary.value
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
//OLD style. Kept for retro-compatibility
|
|
133
|
-
".btn-light": e({
|
|
134
|
-
textColor: o.primary.value,
|
|
135
|
-
bgColor: o.white.value,
|
|
136
|
-
hoverTextColor: o.primary.value,
|
|
137
|
-
hoverBgColor: "#FAFAFA"
|
|
138
|
-
}),
|
|
139
|
-
".btn-warning": e({
|
|
140
|
-
bgColor: o.warning.value,
|
|
141
|
-
textColor: "#2A3761",
|
|
142
|
-
hoverBgColor: "#F2C761"
|
|
143
|
-
}),
|
|
144
|
-
".btn-danger": e(
|
|
145
|
-
{
|
|
146
|
-
bgColor: o.danger.value,
|
|
147
|
-
textColor: o.white.value,
|
|
148
|
-
hoverBgColor: "#E0485A"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
mainColor: o.danger.value,
|
|
152
|
-
textColor: o.danger.value
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
".btn-multi-selection": {
|
|
156
|
-
"--btn-py": "10px",
|
|
157
|
-
"--btn-height": "40px",
|
|
158
|
-
"font-weight": t("fontWeight.regular"),
|
|
159
|
-
"--btn-border-radius": t("borderRadius.xs"),
|
|
160
|
-
"--btn-border-color": "#EAEFFD",
|
|
161
|
-
"--btn-border-width": "1px",
|
|
162
|
-
"white-space": "normal",
|
|
163
|
-
...e({
|
|
164
|
-
textColor: o.black.value,
|
|
165
|
-
bgColor: "#F5F7FA",
|
|
166
|
-
hoverBgColor: o.lavender.value
|
|
167
|
-
})
|
|
168
|
-
},
|
|
169
|
-
".btn-facile": {
|
|
170
|
-
"--btn-facile-color": "#FF6600",
|
|
171
|
-
"--btn-facile-hover-color": "#b34700",
|
|
172
|
-
...e({
|
|
173
|
-
bgColor: "var(--btn-facile-color)",
|
|
174
|
-
textColor: o.white.value,
|
|
175
|
-
hoverBgColor: "var(--btn-facile-hover-color)",
|
|
176
|
-
hoverTextColor: o.white.value
|
|
177
|
-
})
|
|
178
|
-
},
|
|
179
|
-
".btn-show-more": {
|
|
180
|
-
"--btn-border-radius": "0",
|
|
181
|
-
"--btn-border-color": o.white.value,
|
|
182
|
-
...e({
|
|
183
|
-
textColor: "#2B5DFF",
|
|
184
|
-
bgColor: o.white.value,
|
|
185
|
-
hoverTextColor: "#3646B3",
|
|
186
|
-
hoverBgColor: o.white.value
|
|
187
|
-
})
|
|
188
|
-
},
|
|
189
|
-
".btn-transparent": {
|
|
190
|
-
"--border-color": "transparent",
|
|
191
|
-
"--btn-px": "0",
|
|
192
|
-
"--btn-py": "0",
|
|
193
|
-
"&:hover": {
|
|
194
|
-
"--btn-bg-color": "transparent",
|
|
195
|
-
"--border-color": "transparent"
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
}), e = (r, t) => ({
|
|
200
|
-
"--btn-bg-color": r.bgColor,
|
|
201
|
-
"--btn-text-color": r.textColor,
|
|
202
|
-
"&:disabled": {
|
|
203
|
-
cursor: "not-allowed"
|
|
204
|
-
},
|
|
205
|
-
"&:hover:not(:disabled)": {
|
|
206
|
-
"--btn-text-color": r.hoverTextColor,
|
|
207
|
-
"--btn-bg-color": r.hoverBgColor
|
|
208
|
-
},
|
|
209
|
-
...t ? {
|
|
210
|
-
"&.btn-outline": l(t)
|
|
211
|
-
} : {}
|
|
212
|
-
}), l = (r) => ({
|
|
213
|
-
"--btn-border-color": r.mainColor ?? r.borderColor,
|
|
214
|
-
"--btn-text-color": r.textColor,
|
|
215
|
-
"--btn-bg-color": "#fff",
|
|
216
|
-
//By default, the active section is the same of the hover section in desktop mode
|
|
217
|
-
"&:active": {
|
|
218
|
-
"--btn-bg-color": (r.mainColor ?? r.activeBgColor ?? r.hoverBgColor) + " !important",
|
|
219
|
-
//By default, on active the text is white
|
|
220
|
-
...r.activeTextColor || r.hoverTextColor ? {
|
|
221
|
-
"--btn-text-color": r.activeTextColor ?? r.hoverTextColor
|
|
222
|
-
} : {}
|
|
223
|
-
},
|
|
224
|
-
"&:hover": {
|
|
225
|
-
//By default, the text color is white
|
|
226
|
-
...r.hoverBgColor ? { "--btn-bg-color": r.hoverBgColor } : {},
|
|
227
|
-
"--btn-text-color": r.hoverTextColor ?? r.textColor
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
export {
|
|
231
|
-
b as buttonPlugin
|
|
232
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|