@wikicasa-dev/components 1.2.3 → 1.2.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/components.js +135 -3
- package/dist/components.umd.cjs +1 -32
- package/dist/src/index.d.ts +2 -0
- package/dist/src/main.d.ts +0 -2
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/dist/BaseSnackbar--aqJ1_MG.js +0 -78
- package/dist/main-CH5Gft3f.js +0 -8168
- package/dist/src/App.vue.d.ts +0 -2
- package/dist/src/UIKit/AccessibleSelect.vue.d.ts +0 -74
- package/dist/src/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -45
- package/dist/src/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +0 -59
- package/dist/src/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -29
- package/dist/src/UIKit/Accordion/BaseAccordionItem.vue.d.ts +0 -71
- package/dist/src/UIKit/BaseAlert.vue.d.ts +0 -41
- package/dist/src/UIKit/BaseAutocomplete.vue.d.ts +0 -109
- package/dist/src/UIKit/BaseBadge.vue.d.ts +0 -36
- package/dist/src/UIKit/BaseBtModal.vue.d.ts +0 -172
- package/dist/src/UIKit/BaseCard.vue.d.ts +0 -41
- package/dist/src/UIKit/BaseComplexToggle.vue.d.ts +0 -83
- package/dist/src/UIKit/BaseDropDown.vue.d.ts +0 -123
- package/dist/src/UIKit/BaseFloatingLabel.vue.d.ts +0 -44
- package/dist/src/UIKit/BaseInput.vue.d.ts +0 -143
- package/dist/src/UIKit/BaseNavItem.vue.d.ts +0 -43
- package/dist/src/UIKit/BasePagination.vue.d.ts +0 -65
- package/dist/src/UIKit/BasePaper.vue.d.ts +0 -2
- package/dist/src/UIKit/BaseSelect/SelectItem.vue.d.ts +0 -54
- package/dist/src/UIKit/BaseSlider.vue.d.ts +0 -42
- package/dist/src/UIKit/BaseSnackbar.vue.d.ts +0 -56
- package/dist/src/UIKit/BaseTab.vue.d.ts +0 -60
- package/dist/src/UIKit/BaseTextarea.vue.d.ts +0 -82
- package/dist/src/UIKit/BaseToggle.vue.d.ts +0 -36
- package/dist/src/UIKit/BaseTooltip.vue.d.ts +0 -56
- package/dist/src/UIKit/BaseUploadFile.vue.d.ts +0 -37
- package/dist/src/UIKit/Checkbox/CheckboxBtn.vue.d.ts +0 -92
- package/dist/src/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -78
- package/dist/src/UIKit/Radio/RadioButton.vue.d.ts +0 -26
- package/dist/src/UIKit/Radio/RadioGroup.vue.d.ts +0 -37
- package/dist/src/Views/AccordionSection.vue.d.ts +0 -2
- package/dist/src/Views/AlertSection.vue.d.ts +0 -2
- package/dist/src/Views/AutocompleteSection.vue.d.ts +0 -2
- package/dist/src/Views/BadgeSection.vue.d.ts +0 -2
- package/dist/src/Views/ButtonsSection.vue.d.ts +0 -2
- package/dist/src/Views/CardSection.vue.d.ts +0 -2
- package/dist/src/Views/CheckboxSection.vue.d.ts +0 -6
- package/dist/src/Views/DropdownSection.vue.d.ts +0 -35
- package/dist/src/Views/ModalSection.vue.d.ts +0 -4
- package/dist/src/Views/PaginationSection.vue.d.ts +0 -2
- package/dist/src/Views/PaperSection.vue.d.ts +0 -2
- package/dist/src/Views/RadioSection.vue.d.ts +0 -9
- package/dist/src/Views/SliderSection.vue.d.ts +0 -9
- package/dist/src/Views/SnackbarSection.vue.d.ts +0 -2
- package/dist/src/Views/TabSection.vue.d.ts +0 -2
- package/dist/src/Views/TextInputSection.vue.d.ts +0 -2
- package/dist/src/Views/TextareaSection.vue.d.ts +0 -6
- package/dist/src/Views/ToggleSection.vue.d.ts +0 -2
- package/dist/src/Views/TooltipSection.vue.d.ts +0 -2
- package/dist/src/Views/UiKitSidebar.vue.d.ts +0 -18
- package/dist/src/Views/UploadBtnSection.vue.d.ts +0 -2
- package/dist/src/Views/WikicasaUiKit.vue.d.ts +0 -19
package/dist/components.js
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
|
-
import "vue";
|
|
2
|
-
|
|
1
|
+
import { defineComponent as c, openBlock as l, createElementBlock as d, normalizeClass as u, normalizeStyle as w, createElementVNode as $, ref as f, onBeforeMount as h, withModifiers as y, createBlock as b, createCommentVNode as k, renderSlot as v, createVNode as B } from "vue";
|
|
2
|
+
const N = c({
|
|
3
|
+
name: "BaseIcon",
|
|
4
|
+
props: {
|
|
5
|
+
lazyLoading: { type: Boolean, default: !1 },
|
|
6
|
+
altAttribute: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
iconName: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
iconType: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "icon-md"
|
|
17
|
+
},
|
|
18
|
+
iconClass: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "tw-mr-5px"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}), g = (t, a) => {
|
|
24
|
+
const o = t.__vccOpts || t;
|
|
25
|
+
for (const [s, r] of a)
|
|
26
|
+
o[s] = r;
|
|
27
|
+
return o;
|
|
28
|
+
}, C = ["id", "alt", "src", "width", "height", "loading"];
|
|
29
|
+
function S(t, a, o, s, r, p) {
|
|
30
|
+
return l(), d("img", {
|
|
31
|
+
id: t.$attrs.id,
|
|
32
|
+
class: u(["tw-inline-block", t.iconType, t.iconClass]),
|
|
33
|
+
alt: t.altAttribute || t.$attrs.alt,
|
|
34
|
+
style: w(t.$attrs.style),
|
|
35
|
+
src: t.$attrs.src ? t.$attrs.src : "",
|
|
36
|
+
width: t.$attrs.width,
|
|
37
|
+
height: t.$attrs.height,
|
|
38
|
+
loading: t.lazyLoading ? "lazy" : "eager"
|
|
39
|
+
}, null, 14, C);
|
|
40
|
+
}
|
|
41
|
+
const z = /* @__PURE__ */ g(N, [["render", S], ["__scopeId", "data-v-5d8617bb"]]), L = {
|
|
42
|
+
viewBox: "0 0 128 128",
|
|
43
|
+
class: "icon-spin tw-h-6 tw-w-6"
|
|
44
|
+
}, I = ["stroke-width"], M = /* @__PURE__ */ c({
|
|
45
|
+
__name: "StaticSpinner",
|
|
46
|
+
props: {
|
|
47
|
+
thickness: { default: 9 },
|
|
48
|
+
color: { default: "tw-stroke-white" }
|
|
49
|
+
},
|
|
50
|
+
setup(t) {
|
|
51
|
+
return (a, o) => (l(), d("div", {
|
|
52
|
+
class: u(["tw-m-auto tw-flex tw-items-center tw-justify-center", a.color])
|
|
53
|
+
}, [
|
|
54
|
+
(l(), d("svg", L, [
|
|
55
|
+
$("circle", {
|
|
56
|
+
class: "path",
|
|
57
|
+
cx: "64",
|
|
58
|
+
cy: "64",
|
|
59
|
+
r: "42",
|
|
60
|
+
fill: "none",
|
|
61
|
+
"stroke-width": a.thickness
|
|
62
|
+
}, null, 8, I)
|
|
63
|
+
]))
|
|
64
|
+
], 2));
|
|
65
|
+
}
|
|
66
|
+
}), A = /* @__PURE__ */ g(M, [["__scopeId", "data-v-a9cef034"]]), E = ["id", "data-cy", "type", "data-active", "disabled", "aria-labelledby"], V = /* @__PURE__ */ c({
|
|
67
|
+
__name: "BaseButton",
|
|
68
|
+
props: {
|
|
69
|
+
lazyLoadIcon: { type: Boolean, default: !0 },
|
|
70
|
+
btnClass: { default: "" },
|
|
71
|
+
iconName: { default: "" },
|
|
72
|
+
iconNameHovering: { default: "" },
|
|
73
|
+
iconClass: { default: "tw-mr-[5px]" },
|
|
74
|
+
isEmpty: { type: Boolean, default: !1 },
|
|
75
|
+
keepActive: { type: Boolean, default: !1 },
|
|
76
|
+
isLoading: { type: Boolean, default: !1 },
|
|
77
|
+
disabled: { type: Boolean, default: !1 }
|
|
78
|
+
},
|
|
79
|
+
emits: ["mouseover", "mouseout", "click"],
|
|
80
|
+
setup(t) {
|
|
81
|
+
const a = t, o = f(!1), s = f("");
|
|
82
|
+
h(() => {
|
|
83
|
+
s.value = a.iconName ?? "";
|
|
84
|
+
});
|
|
85
|
+
const r = () => {
|
|
86
|
+
o.value = !0, a.iconNameHovering && m(a.iconNameHovering);
|
|
87
|
+
}, p = () => {
|
|
88
|
+
o.value = !1, a.iconNameHovering && m(a.iconName);
|
|
89
|
+
}, m = (e) => {
|
|
90
|
+
s.value = e;
|
|
91
|
+
};
|
|
92
|
+
return (e, n) => (l(), d("button", {
|
|
93
|
+
id: e.$attrs.id,
|
|
94
|
+
"data-cy": e.$attrs["data-cy"],
|
|
95
|
+
type: e.$attrs.type,
|
|
96
|
+
class: u([
|
|
97
|
+
{
|
|
98
|
+
"tw-btn": !e.isEmpty,
|
|
99
|
+
"tw-btn-empty": e.isEmpty,
|
|
100
|
+
"active tw-font-medium": e.keepActive,
|
|
101
|
+
"tw-flex tw-items-center tw-justify-center": e.iconName || e.isLoading
|
|
102
|
+
},
|
|
103
|
+
e.btnClass
|
|
104
|
+
]),
|
|
105
|
+
style: w(e.$attrs.style),
|
|
106
|
+
"data-active": e.keepActive,
|
|
107
|
+
disabled: e.isLoading || e.disabled,
|
|
108
|
+
"aria-labelledby": e.$attrs.id,
|
|
109
|
+
onMouseover: n[0] || (n[0] = y((i) => {
|
|
110
|
+
r(), e.$emit("mouseover", i);
|
|
111
|
+
}, ["stop"])),
|
|
112
|
+
onMouseout: n[1] || (n[1] = y((i) => {
|
|
113
|
+
p(), e.$emit("mouseout", i);
|
|
114
|
+
}, ["stop"])),
|
|
115
|
+
onClick: n[2] || (n[2] = (i) => e.$emit("click", i))
|
|
116
|
+
}, [
|
|
117
|
+
e.iconName && !e.isLoading ? (l(), b(z, {
|
|
118
|
+
key: e.$attrs.id ? e.$attrs.id : `btn-${e.iconName}`,
|
|
119
|
+
"icon-name": s.value,
|
|
120
|
+
"icon-class": e.iconClass,
|
|
121
|
+
"alt-attribute": "button icon",
|
|
122
|
+
"lazy-loading": e.lazyLoadIcon
|
|
123
|
+
}, null, 8, ["icon-name", "icon-class", "lazy-loading"])) : k("", !0),
|
|
124
|
+
e.isLoading ? v(e.$slots, "spinner", { key: 2 }, () => [
|
|
125
|
+
B(A, {
|
|
126
|
+
color: e.btnClass.includes("tw-btn-light") ? "tw-stroke-black" : "tw-stroke-white"
|
|
127
|
+
}, null, 8, ["color"])
|
|
128
|
+
]) : v(e.$slots, "default", {
|
|
129
|
+
key: 1,
|
|
130
|
+
hover: o.value
|
|
131
|
+
})
|
|
132
|
+
], 46, E));
|
|
133
|
+
}
|
|
134
|
+
});
|
|
3
135
|
export {
|
|
4
|
-
|
|
136
|
+
V as BaseButton
|
|
5
137
|
};
|