@oneb/ui-vue 0.2.4 → 0.2.9
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/README.md +7 -9
- package/dist/{OneHelpMenu-37653a53.js → OneHelpMenu-adc595d0.js} +131 -130
- package/dist/OneHelpMenu-b9ca7ee4.cjs +1 -0
- package/dist/SpinnerIcon-24e552a8.js +26 -0
- package/dist/SpinnerIcon-89c60210.cjs +1 -0
- package/dist/button/button.d.ts +1 -1
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.js +142 -3
- package/dist/button/util.d.ts +1 -1
- package/dist/buttonGroup/props.d.ts +1 -1
- package/dist/card/card.d.ts +1 -1
- package/dist/checkbox/checkbox.d.ts +41 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/common/avatar.d.ts +1 -1
- package/dist/common/index.cjs +5 -5
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +7 -4
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +14 -13
- package/dist/dropdown/menu.d.ts +1 -1
- package/dist/entityPicker/OneEntityPicker.vue.d.ts +2 -0
- package/dist/entityPicker/entityPicker.d.ts +179 -0
- package/dist/entityPicker/index.d.ts +4 -0
- package/dist/errorsPage/OneErrorPage.vue.d.ts +2 -0
- package/dist/errorsPage/errorsType.d.ts +21 -0
- package/dist/errorsPage/index.d.ts +2 -0
- package/dist/form/form.d.ts +2 -2
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +1 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -4
- package/dist/index.js +9840 -222
- package/dist/indicators/indicators.d.ts +1 -1
- package/dist/infobox/OneInfobox.vue.d.ts +2 -0
- package/dist/infobox/box.d.ts +21 -0
- package/dist/infobox/index.d.ts +2 -0
- package/dist/infobox/util.d.ts +2 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +67 -56
- package/dist/layout/layout.d.ts +1 -1
- package/dist/modal/OneModal.vue.d.ts +2 -0
- package/dist/modal/OneModalBody.vue.d.ts +2 -0
- package/dist/modal/OneModalFooter.vue.d.ts +2 -0
- package/dist/modal/OneModalHeader.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +7 -0
- package/dist/modal/modal.d.ts +46 -0
- package/dist/modal/useModal.d.ts +3 -0
- package/dist/modal/util.d.ts +2 -0
- package/dist/periodPicker/OnePeriodPicker.vue.d.ts +2 -0
- package/dist/periodPicker/OnePeriodPickerFastModal.vue.d.ts +2 -0
- package/dist/periodPicker/index.d.ts +4 -0
- package/dist/periodPicker/periodPicker.d.ts +96 -0
- package/dist/periodPicker/util.d.ts +49 -0
- package/dist/radio/OneRadio.vue.d.ts +2 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/radio.d.ts +22 -0
- package/dist/skeleton/OneSkeleton.vue.d.ts +2 -0
- package/dist/skeleton/index.d.ts +2 -0
- package/dist/skeleton/skeleton.d.ts +21 -0
- package/dist/skeleton/util.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/switch/switch.d.ts +1 -1
- package/dist/toast/OneToast.vue.d.ts +2 -0
- package/dist/toast/index.d.ts +2 -0
- package/dist/toast/utils.d.ts +2 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/package.json +58 -4
- package/dist/OneHelpMenu-05780713.cjs +0 -1
- package/dist/index-9f8735d9.cjs +0 -1
- package/dist/index-f8afb6b6.js +0 -149
- /package/dist/{button/SpinnerIcon.vue.d.ts → checkbox/OneCheckbox.vue.d.ts} +0 -0
- /package/dist/{switch → common}/SpinnerIcon.vue.d.ts +0 -0
package/dist/index-f8afb6b6.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as d, createElementVNode as k, defineComponent as C, computed as r, normalizeClass as n, withModifiers as _, createBlock as p, toDisplayString as b, resolveDynamicComponent as m, createCommentVNode as g, renderSlot as B, createTextVNode as S } from "vue";
|
|
2
|
-
import { _ as L } from "./_plugin-vue_export-helper-dad06003.js";
|
|
3
|
-
const A = {}, z = {
|
|
4
|
-
class: "spinner",
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
style: { animation: "one-sp-ico-rot 2.7s linear infinite" }
|
|
8
|
-
};
|
|
9
|
-
function F(u, o) {
|
|
10
|
-
return t(), d("svg", z, o[0] || (o[0] = [
|
|
11
|
-
k("circle", {
|
|
12
|
-
style: { "stroke-linecap": "round", animation: "one-sp-ico-dash 1.7s ease-in-out infinite" },
|
|
13
|
-
class: "opacity-75",
|
|
14
|
-
cx: "12",
|
|
15
|
-
cy: "12",
|
|
16
|
-
r: "8",
|
|
17
|
-
fill: "none",
|
|
18
|
-
stroke: "currentColor",
|
|
19
|
-
"stroke-width": "2"
|
|
20
|
-
}, null, -1)
|
|
21
|
-
]));
|
|
22
|
-
}
|
|
23
|
-
const f = /* @__PURE__ */ L(A, [["render", F]]), I = {
|
|
24
|
-
variant: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "primary"
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "md"
|
|
31
|
-
},
|
|
32
|
-
label: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
labelClass: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
icon: {
|
|
40
|
-
type: [Function, Object]
|
|
41
|
-
},
|
|
42
|
-
isLoading: {
|
|
43
|
-
type: Boolean
|
|
44
|
-
},
|
|
45
|
-
isSubmit: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: !1
|
|
48
|
-
},
|
|
49
|
-
disabled: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !1
|
|
52
|
-
},
|
|
53
|
-
active: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: !1
|
|
56
|
-
},
|
|
57
|
-
iconClass: {
|
|
58
|
-
type: [String, Array]
|
|
59
|
-
},
|
|
60
|
-
iconAfter: {
|
|
61
|
-
type: [Function, Object, String]
|
|
62
|
-
}
|
|
63
|
-
}, j = [
|
|
64
|
-
"relative inline-flex",
|
|
65
|
-
"border",
|
|
66
|
-
"items-center justify-center",
|
|
67
|
-
"font-medium whitespace-nowrap",
|
|
68
|
-
"disabled:opacity-50 disabled:cursor-default",
|
|
69
|
-
"focus:outline-none focus:ring-2",
|
|
70
|
-
"transition-colors duration-200"
|
|
71
|
-
], D = {
|
|
72
|
-
sm: ["px-2 py-1 text-sm"],
|
|
73
|
-
md: ["px-3 py-2"],
|
|
74
|
-
lg: ["px-4 py-3"]
|
|
75
|
-
}, N = {
|
|
76
|
-
primary: ["rounded-md border-transparent bg-primary-base disabled:bg-primary-hover text-sm text-white hover:bg-primary-hover focus:ring-primary-glow"],
|
|
77
|
-
secondary: ["rounded-md border-primary-stroke bg-primary-body disabled:bg-primary-body-hover text-black text-sm hover:bg-primary-body-hover focus:ring-tertiary-glow"],
|
|
78
|
-
info: ["rounded-md border-transparent bg-info-base disabled:bg-info-hover text-white text-sm hover:bg-info-hover focus:ring-info-glow"],
|
|
79
|
-
success: ["rounded-md border-transparent bg-success-base disabled:bg-success-hover text-white text-sm hover:bg-success-hover focus:ring-success-glow"],
|
|
80
|
-
warning: ["rounded-md border-transparent bg-warning-base disabled:bg-warning-hover text-white text-sm hover:bg-warning-hover focus:ring-warning-glow"],
|
|
81
|
-
danger: ["rounded-md border-transparent bg-danger-base disabled:bg-danger-hover text-white text-sm hover:bg-danger-hover focus:ring-danger-glow"],
|
|
82
|
-
touch: ["rounded-full border-transparent text-black hover:bg-primary-body-hover hover:shadow p-3 text-sm focus:ring-tertiary-glow"],
|
|
83
|
-
link: ["rounded-md border-transparent items-center text-info-base hover:text-info-hover text-sm"],
|
|
84
|
-
none: ["rounded-md border-transparent text-gray-500"],
|
|
85
|
-
mini: ["rounded-full border-transparent bg-[#FAFAFA] text-sm hover:text-green-500 disabled:text-[#525B66] focus:ring-2"]
|
|
86
|
-
}, O = (u = "primary", o = "md") => {
|
|
87
|
-
const a = [];
|
|
88
|
-
return a.push(...j), a.push(...N[u] ?? []), u !== "touch" && a.push(...D[o] ?? []), a;
|
|
89
|
-
}, V = ["disabled", "title", "type"], P = /* @__PURE__ */ C({
|
|
90
|
-
__name: "OneButton",
|
|
91
|
-
props: I,
|
|
92
|
-
emits: ["click"],
|
|
93
|
-
setup(u, { emit: o }) {
|
|
94
|
-
const a = o, s = u, v = () => {
|
|
95
|
-
a("click");
|
|
96
|
-
}, l = r(() => s.icon), i = r(() => s.iconAfter), y = r(() => {
|
|
97
|
-
const e = O(s.variant, s.size);
|
|
98
|
-
return s.variant === "touch" && s.active && e.push("bg-primary-body-active"), e;
|
|
99
|
-
}), h = r(() => s.disabled || s.isLoading), w = r(() => s.label && s.label.length > 0 && s.variant !== "touch"), x = r(() => {
|
|
100
|
-
const e = [
|
|
101
|
-
"inline-block text-ellipsis overflow-hidden"
|
|
102
|
-
];
|
|
103
|
-
return l.value != null && e.push("ml-2"), i.value != null && e.push("mr-2"), s.labelClass != null && e.push(s.labelClass), e;
|
|
104
|
-
}), c = r(() => {
|
|
105
|
-
const e = [];
|
|
106
|
-
return s.size === "sm" ? e.push("w-3 h-3") : s.size === "lg" ? e.push("w-5 h-5") : e.push("w-4 h-4"), typeof s.iconClass == "string" ? e.push(s.iconClass) : s.iconClass instanceof Array && e.push(...s.iconClass), e;
|
|
107
|
-
});
|
|
108
|
-
return (e, $) => (t(), d("button", {
|
|
109
|
-
class: n(y.value),
|
|
110
|
-
disabled: h.value,
|
|
111
|
-
title: e.label,
|
|
112
|
-
type: e.isSubmit ? "submit" : "button",
|
|
113
|
-
onClick: _(v, ["stop"])
|
|
114
|
-
}, [
|
|
115
|
-
l.value != null && e.isLoading ? (t(), p(f, {
|
|
116
|
-
key: 0,
|
|
117
|
-
class: n(c.value)
|
|
118
|
-
}, null, 8, ["class"])) : typeof l.value == "string" ? (t(), d("span", {
|
|
119
|
-
key: 1,
|
|
120
|
-
class: n(c.value)
|
|
121
|
-
}, b(l.value), 3)) : l.value != null ? (t(), p(m(l.value), {
|
|
122
|
-
key: 2,
|
|
123
|
-
class: n(c.value)
|
|
124
|
-
}, null, 8, ["class"])) : g("", !0),
|
|
125
|
-
w.value ? (t(), d("span", {
|
|
126
|
-
key: 3,
|
|
127
|
-
class: n(x.value)
|
|
128
|
-
}, [
|
|
129
|
-
B(e.$slots, "default", {}, () => [
|
|
130
|
-
S(b(e.label), 1)
|
|
131
|
-
])
|
|
132
|
-
], 2)) : g("", !0),
|
|
133
|
-
i.value != null && e.isLoading ? (t(), p(f, {
|
|
134
|
-
key: 4,
|
|
135
|
-
class: n(c.value)
|
|
136
|
-
}, null, 8, ["class"])) : typeof i.value == "string" ? (t(), d("span", {
|
|
137
|
-
key: 5,
|
|
138
|
-
class: n(c.value)
|
|
139
|
-
}, b(i.value), 3)) : i.value != null ? (t(), p(m(i.value), {
|
|
140
|
-
key: 6,
|
|
141
|
-
class: n(c.value)
|
|
142
|
-
}, null, 8, ["class"])) : g("", !0)
|
|
143
|
-
], 10, V));
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
export {
|
|
147
|
-
f as S,
|
|
148
|
-
P as _
|
|
149
|
-
};
|
|
File without changes
|
|
File without changes
|