@wikicasa-dev/components 2.6.2-alpha.2 → 2.6.2
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/BaseButton.vue.js +14 -13
- package/dist/lazyModules/Swiper/Autoplay/index.js +1 -1
- package/dist/lazyModules/Swiper/Controller/index.js +1 -1
- package/dist/lazyModules/Swiper/Keyboard/index.js +1 -1
- package/dist/lazyModules/Swiper/Thumbs/index.js +1 -1
- package/package.json +15 -15
- /package/dist/assets/{swiper-controller.css → swiper-autoplay.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as w, useTemplateRef as v, shallowRef as g, computed as l, createElementBlock as C, openBlock as B, withModifiers as
|
|
1
|
+
import { defineComponent as w, useTemplateRef as v, shallowRef as g, computed as l, createElementBlock as C, openBlock as B, withModifiers as u, normalizeStyle as M, normalizeClass as h, renderSlot as s, createVNode as A } from "vue";
|
|
2
2
|
import L from "./StaticSpinner.js";
|
|
3
|
-
const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"],
|
|
3
|
+
const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], d = {
|
|
4
4
|
"uikit-btn-w-primary": "uikit-btn-w-primary",
|
|
5
5
|
"uikit-btn-w-secondary": "uikit-btn-w-secondary",
|
|
6
6
|
"uikit-btn-w-warning": "uikit-btn-w-warning",
|
|
@@ -15,7 +15,7 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
15
15
|
sm: "uikit-btn-sm",
|
|
16
16
|
lg: "uikit-btn-lg",
|
|
17
17
|
"": ""
|
|
18
|
-
},
|
|
18
|
+
}, $ = /* @__PURE__ */ w({
|
|
19
19
|
__name: "BaseButton",
|
|
20
20
|
props: {
|
|
21
21
|
btnClass: { default: "uikit-btn-w-primary" },
|
|
@@ -31,16 +31,16 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
31
31
|
type: {}
|
|
32
32
|
},
|
|
33
33
|
emits: ["mouseover", "mouseout", "click", "keydown"],
|
|
34
|
-
setup(t, { expose:
|
|
35
|
-
const n =
|
|
36
|
-
() => t.btnClass ?
|
|
34
|
+
setup(t, { expose: b, emit: k }) {
|
|
35
|
+
const n = k, r = v("buttonEl"), o = g(!1), m = l(() => z[t.size || ""]), y = l(
|
|
36
|
+
() => t.btnClass ? d[t.btnClass] : d["uikit-btn-w-primary"]
|
|
37
37
|
), c = () => {
|
|
38
38
|
o.value = !0;
|
|
39
39
|
}, f = () => {
|
|
40
40
|
o.value = !1;
|
|
41
41
|
};
|
|
42
|
-
return
|
|
43
|
-
getRootElement: () =>
|
|
42
|
+
return b({
|
|
43
|
+
getRootElement: () => r.value
|
|
44
44
|
}), (a, e) => (B(), C("button", {
|
|
45
45
|
ref: "buttonEl",
|
|
46
46
|
id: a.$attrs.id,
|
|
@@ -49,6 +49,7 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
49
49
|
class: h([
|
|
50
50
|
"uikit-btn",
|
|
51
51
|
{
|
|
52
|
+
"uikit-btn-outline": t.outlined,
|
|
52
53
|
"uikit-btn-empty": !t.withMinWidth,
|
|
53
54
|
"active uikit-font-medium": t.keepActive,
|
|
54
55
|
"uikit-flex uikit-items-center uikit-justify-center": t.isLoading
|
|
@@ -62,20 +63,20 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
62
63
|
disabled: t.isLoading || t.disabled,
|
|
63
64
|
"aria-label": t.ariaLabel,
|
|
64
65
|
title: t.title,
|
|
65
|
-
onMouseover: e[0] || (e[0] =
|
|
66
|
+
onMouseover: e[0] || (e[0] = u((i) => {
|
|
66
67
|
c(), n("mouseover", i);
|
|
67
68
|
}, ["stop"])),
|
|
68
|
-
onMouseout: e[1] || (e[1] =
|
|
69
|
+
onMouseout: e[1] || (e[1] = u((i) => {
|
|
69
70
|
f(), n("mouseout", i);
|
|
70
71
|
}, ["stop"])),
|
|
71
72
|
onClick: e[2] || (e[2] = (i) => n("click", i)),
|
|
72
73
|
onKeydown: e[3] || (e[3] = (i) => n("keydown", i))
|
|
73
74
|
}, [
|
|
74
|
-
t.isLoading ?
|
|
75
|
+
t.isLoading ? s(a.$slots, "spinner", { key: 1 }, () => [
|
|
75
76
|
A(L, {
|
|
76
77
|
"stroke-color": t.outlined ? "#ACB4C3" : "#fff"
|
|
77
78
|
}, null, 8, ["stroke-color"])
|
|
78
|
-
]) :
|
|
79
|
+
]) : s(a.$slots, "default", {
|
|
79
80
|
key: 0,
|
|
80
81
|
hover: o.value
|
|
81
82
|
})
|
|
@@ -83,5 +84,5 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
$ as default
|
|
87
88
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.6.2
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://bitbucket.org/wikicasa/wikicasa-fe#readme",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@wikicasa-dev/svg-icons": "1.3.
|
|
46
|
-
"@wikicasa-dev/types": "2.5.6
|
|
47
|
-
"@wikicasa-dev/utilities": "1.2.
|
|
48
|
-
"@wikicasa-dev/vue-composables": "0.1.
|
|
45
|
+
"@wikicasa-dev/svg-icons": "^1.3.3",
|
|
46
|
+
"@wikicasa-dev/types": "^2.5.6",
|
|
47
|
+
"@wikicasa-dev/utilities": "^1.2.3",
|
|
48
|
+
"@wikicasa-dev/vue-composables": "^0.1.5",
|
|
49
49
|
"date-fns": "^4.0.0",
|
|
50
50
|
"vue": "^3.5.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"chart.js": "4.5.1",
|
|
54
54
|
"chartjs-adapter-date-fns": "3.0.0",
|
|
55
|
-
"reka-ui": "^2.9.
|
|
55
|
+
"reka-ui": "^2.9.5",
|
|
56
56
|
"swiper": "^12.1.3",
|
|
57
57
|
"vue": "^3.5.32",
|
|
58
58
|
"vue-chartjs": "5.3.3"
|
|
@@ -62,24 +62,24 @@
|
|
|
62
62
|
"@types/node": "^25.5.2",
|
|
63
63
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
64
64
|
"@vue/eslint-config-typescript": "^14.7.0",
|
|
65
|
-
"@wikicasa-dev/svg-icons": "1.3.
|
|
65
|
+
"@wikicasa-dev/svg-icons": "1.3.3",
|
|
66
66
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
67
|
-
"@wikicasa-dev/types": "2.5.6
|
|
68
|
-
"@wikicasa-dev/utilities": "1.2.
|
|
69
|
-
"@wikicasa-dev/vue-composables": "0.1.
|
|
67
|
+
"@wikicasa-dev/types": "2.5.6",
|
|
68
|
+
"@wikicasa-dev/utilities": "1.2.3",
|
|
69
|
+
"@wikicasa-dev/vue-composables": "0.1.5",
|
|
70
70
|
"autoprefixer": "^10.4.27",
|
|
71
71
|
"date-fns": "4.1.0",
|
|
72
|
-
"eslint": "^10.
|
|
72
|
+
"eslint": "^10.2",
|
|
73
73
|
"eslint-config-prettier": "^10.1.8",
|
|
74
|
-
"eslint-plugin-oxlint": "~1.
|
|
74
|
+
"eslint-plugin-oxlint": "~1.59.0",
|
|
75
75
|
"eslint-plugin-vue": "~10.8.0",
|
|
76
76
|
"glob": "^13.0.6",
|
|
77
77
|
"histoire": "^1.0.0-beta.1",
|
|
78
78
|
"jiti": "^2.6.1",
|
|
79
79
|
"npm-run-all2": "^8.0.4",
|
|
80
|
-
"oxfmt": "^0.
|
|
81
|
-
"oxlint": "~1.
|
|
82
|
-
"postcss": "^8.5.
|
|
80
|
+
"oxfmt": "^0.44.0",
|
|
81
|
+
"oxlint": "~1.59.0",
|
|
82
|
+
"postcss": "^8.5.9",
|
|
83
83
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
84
84
|
"tailwindcss": "3.4.15",
|
|
85
85
|
"typescript": "~6.0.2",
|
|
File without changes
|