@nilloq/ouds-web 0.1.7 → 0.1.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/dist/{alert-B4w3fDHo.js → alert-CVmA-CsB.js} +3 -4
- package/dist/{alert-Chns046l.js → alert-w0YLr9TU.js} +2 -3
- package/dist/alert.js +1 -2
- package/dist/{badge-yaFEZnEW.js → badge-Cr0QauxC.js} +1 -2
- package/dist/{badge-CDpWg-AO.js → badge-f7b-dlib.js} +2 -3
- package/dist/badge.js +1 -2
- package/dist/{button-nN1Pcwm6.js → button-DzXQE-cm.js} +4 -4
- package/dist/{button-rgIJZsYq.js → button-T8UblfB9.js} +5 -5
- package/dist/button.js +1 -2
- package/dist/{checkbox-DfYlHYR2.js → checkbox-BQibsn2k.js} +3 -4
- package/dist/{checkbox-D7TFFuw3.js → checkbox-CQ0KpdQ5.js} +2 -3
- package/dist/checkbox.js +2 -3
- package/dist/{chip-DGfqitrQ.js → chip-BtqaPWn4.js} +3 -4
- package/dist/{chip-B3v4pWZD.js → chip-C2vFB6-6.js} +4 -5
- package/dist/chip.js +1 -2
- package/dist/{control-item-slots-Ddp7c8w8.js → control-item-slots-CHwxixcQ.js} +1 -2
- package/dist/{control-item-slots-BDoeNuk4.js → control-item-slots-D9zNP9C4.js} +2 -3
- package/dist/elements-alert.js +1 -2
- package/dist/elements-badge.js +1 -2
- package/dist/elements-button.js +1 -2
- package/dist/elements-checkbox.js +1 -2
- package/dist/elements-chip.js +1 -2
- package/dist/elements-modal.js +1 -2
- package/dist/elements-radio.js +1 -2
- package/dist/elements-select.js +1 -2
- package/dist/elements-switch.js +1 -2
- package/dist/elements-tag.js +1 -2
- package/dist/elements-text-area.js +1 -2
- package/dist/elements-text-input.js +1 -2
- package/dist/elements.js +12 -13
- package/dist/index.js +12 -12
- package/dist/{modal-BnT5Kxjg.js → modal-B9UEm1Wl.js} +2 -3
- package/dist/{modal-BAvMVUIE.js → modal-BP4RDx-K.js} +3 -4
- package/dist/modal.js +1 -2
- package/dist/{radio-CDq4r1_L.js → radio-DPtenOOF.js} +3 -4
- package/dist/{radio-TaYThYkI.js → radio-bLSAOzFR.js} +2 -3
- package/dist/radio.js +2 -3
- package/dist/{runtime-dom.esm-bundler-DLryEdgJ.js → runtime-dom.esm-bundler-C18ibGEA.js} +741 -762
- package/dist/{select--O3jL-En.js → select-DJkX2Edj.js} +30 -29
- package/dist/{select-NiIx8bVD.js → select-NcBlPsCM.js} +29 -26
- package/dist/select.js +2 -3
- package/dist/{switch-D5N-j5F7.js → switch-Buxjn_6r.js} +3 -4
- package/dist/{switch-BmxLKPbL.js → switch-QJsTarkg.js} +2 -3
- package/dist/switch.js +2 -3
- package/dist/tag-Cwi1a5Yr.js +84 -0
- package/dist/{tag-Un7w0uDf.js → tag-e-DnolY2.js} +18 -18
- package/dist/tag.js +1 -2
- package/dist/{text-area-BgYNtAMx.js → text-area-4Qs0wp9J.js} +24 -24
- package/dist/{text-area-BdmAyh3N.js → text-area-Eb6R9C9E.js} +22 -21
- package/dist/text-area.js +2 -3
- package/dist/{text-input-DgFIuIOA.js → text-input-IJAkzZIL.js} +1 -2
- package/dist/{text-input-i559HVOP.js → text-input-YwrYlaIH.js} +2 -3
- package/dist/text-input.js +2 -3
- package/dist/types/components/button/Button.vue.d.ts +2 -0
- package/dist/types/components/button/button.types.d.ts +1 -0
- package/dist/types/components/select/select.types.d.ts +6 -0
- package/dist/types/components/tag/Tag.vue.d.ts +2 -0
- package/dist/types/components/tag/tag.types.d.ts +1 -0
- package/dist/types/components/text-area/text-area.types.d.ts +3 -0
- package/dist/vue-alert.js +1 -2
- package/dist/vue-badge.js +1 -2
- package/dist/vue-button.js +1 -2
- package/dist/vue-checkbox.js +1 -2
- package/dist/vue-chip.js +1 -2
- package/dist/vue-modal.js +1 -2
- package/dist/vue-radio.js +1 -2
- package/dist/vue-select.js +1 -2
- package/dist/vue-switch.js +1 -2
- package/dist/vue-tag.js +1 -2
- package/dist/vue-text-area.js +1 -2
- package/dist/vue-text-input.js +1 -2
- package/dist/vue.js +12 -12
- package/package.json +4 -4
- package/dist/tag-BvOt0v-c.js +0 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createSlots as a, createTextVNode as o, defineComponent as s, mergeModels as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderSlot as p, toDisplayString as m, toRef as h, unref as g, useAttrs as _, useId as v, useModel as y, useSlots as b, withCtx as x } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/components/text-area/TextArea.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var S = ["id", "for"], C = [
|
|
4
4
|
"id",
|
|
5
5
|
"placeholder",
|
|
@@ -13,7 +13,7 @@ var S = ["id", "for"], C = [
|
|
|
13
13
|
"id",
|
|
14
14
|
"href",
|
|
15
15
|
"aria-labelledby"
|
|
16
|
-
], D = /* @__PURE__ */ s({
|
|
16
|
+
], D = { class: "visually-hidden" }, O = /* @__PURE__ */ s({
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "TextArea",
|
|
19
19
|
props: {
|
|
@@ -23,6 +23,7 @@ var S = ["id", "for"], C = [
|
|
|
23
23
|
errorText: { default: "" },
|
|
24
24
|
helperLink: { default: "" },
|
|
25
25
|
helperLinkHref: { default: "" },
|
|
26
|
+
helperLinkAria: { default: "on" },
|
|
26
27
|
value: { default: "" },
|
|
27
28
|
outlined: {
|
|
28
29
|
type: Boolean,
|
|
@@ -55,51 +56,51 @@ var S = ["id", "for"], C = [
|
|
|
55
56
|
let { class: e, style: t, ...n } = a;
|
|
56
57
|
return n;
|
|
57
58
|
}
|
|
58
|
-
let c = h(() => a.id), y = b(), x = v(),
|
|
59
|
-
function
|
|
59
|
+
let c = h(() => a.id), y = b(), x = v(), O = h(() => c.value || `ouds-text-area-${x}`), k = h(() => `${O.value}-helper`), A = h(() => `${O.value}-error`), j = h(() => `${O.value}-label`), M = h(() => `${O.value}-helper-link`);
|
|
60
|
+
function N() {
|
|
60
61
|
let e = [a["aria-describedby"]];
|
|
61
|
-
return (t.helperText || y["helper-text"]) && !t.invalid && e.push(
|
|
62
|
+
return (t.helperText || y["helper-text"]) && !t.invalid && e.push(k.value), t.invalid && (t.errorText || y["error-text"]) && e.push(A.value), t.helperLinkHref && (t.helperLink || y["helper-link"]) && e.push(M.value), e.filter(Boolean).join(" ") || void 0;
|
|
62
63
|
}
|
|
63
|
-
let
|
|
64
|
+
let P = e(() => ["text-area", { "component-max-width": t.maxWidth }]), F = e(() => ["text-area-container", { "text-area-container-outlined": t.outlined }]);
|
|
64
65
|
return (e, c) => (f(), r("div", {
|
|
65
|
-
class: u([
|
|
66
|
+
class: u([P.value, g(a).class]),
|
|
66
67
|
style: d(g(a).style)
|
|
67
68
|
}, [
|
|
68
|
-
i("div", { class: u(
|
|
69
|
-
id:
|
|
70
|
-
for:
|
|
69
|
+
i("div", { class: u(F.value) }, [i("label", {
|
|
70
|
+
id: j.value,
|
|
71
|
+
for: O.value,
|
|
71
72
|
class: u({ "is-required": t.required })
|
|
72
73
|
}, [p(e.$slots, "label", {}, () => [o(m(t.label), 1)])], 10, S), i("textarea", l(s(), {
|
|
73
|
-
id:
|
|
74
|
+
id: O.value,
|
|
74
75
|
class: "text-area-field",
|
|
75
76
|
placeholder: t.placeholder || " ",
|
|
76
77
|
value: t.value,
|
|
77
78
|
disabled: t.disabled,
|
|
78
79
|
readonly: t.readonly,
|
|
79
80
|
required: t.required,
|
|
80
|
-
"aria-describedby":
|
|
81
|
+
"aria-describedby": N(),
|
|
81
82
|
"aria-invalid": t.invalid
|
|
82
83
|
}), null, 16, C)], 2),
|
|
83
84
|
(t.helperText || e.$slots["helper-text"]) && !t.invalid ? (f(), r("p", {
|
|
84
85
|
key: 0,
|
|
85
|
-
id:
|
|
86
|
+
id: k.value,
|
|
86
87
|
class: "helper-text"
|
|
87
88
|
}, [p(e.$slots, "helper-text", {}, () => [o(m(t.helperText), 1)])], 8, w)) : n("", !0),
|
|
88
89
|
t.invalid && (t.errorText || e.$slots["error-text"]) ? (f(), r("p", {
|
|
89
90
|
key: 1,
|
|
90
|
-
id:
|
|
91
|
+
id: A.value,
|
|
91
92
|
class: "error-text"
|
|
92
93
|
}, [p(e.$slots, "error-text", {}, () => [o(m(t.errorText), 1)])], 8, T)) : n("", !0),
|
|
93
94
|
t.helperLinkHref && (t.helperLink || e.$slots["helper-link"]) ? (f(), r("a", {
|
|
94
95
|
key: 2,
|
|
95
|
-
id:
|
|
96
|
+
id: M.value,
|
|
96
97
|
href: t.helperLinkHref,
|
|
97
|
-
"aria-labelledby": `${
|
|
98
|
+
"aria-labelledby": `${M.value} ${j.value}`,
|
|
98
99
|
class: "link link-small"
|
|
99
|
-
}, [p(e.$slots, "helper-link", {}, () => [o(m(t.helperLink), 1)]),
|
|
100
|
+
}, [p(e.$slots, "helper-link", {}, () => [o(m(t.helperLink), 1)]), i("span", D, m(t.helperLinkAria), 1)], 8, E)) : n("", !0)
|
|
100
101
|
], 6));
|
|
101
102
|
}
|
|
102
|
-
}),
|
|
103
|
+
}), k = /* @__PURE__ */ s({
|
|
103
104
|
inheritAttrs: !1,
|
|
104
105
|
__name: "VueTextArea",
|
|
105
106
|
props: /*@__PURE__*/ c({
|
|
@@ -109,6 +110,7 @@ var S = ["id", "for"], C = [
|
|
|
109
110
|
errorText: {},
|
|
110
111
|
helperLink: {},
|
|
111
112
|
helperLinkHref: {},
|
|
113
|
+
helperLinkAria: {},
|
|
112
114
|
outlined: { type: Boolean },
|
|
113
115
|
disabled: { type: Boolean },
|
|
114
116
|
readonly: { type: Boolean },
|
|
@@ -128,7 +130,7 @@ var S = ["id", "for"], C = [
|
|
|
128
130
|
function c(e) {
|
|
129
131
|
i.value = e.target.value, o("change", e);
|
|
130
132
|
}
|
|
131
|
-
return (e, n) => (f(), t(
|
|
133
|
+
return (e, n) => (f(), t(O, l({
|
|
132
134
|
...e.$attrs,
|
|
133
135
|
...r
|
|
134
136
|
}, {
|
|
@@ -159,5 +161,4 @@ var S = ["id", "for"], C = [
|
|
|
159
161
|
]), 1040, ["value"]));
|
|
160
162
|
}
|
|
161
163
|
});
|
|
162
|
-
|
|
163
|
-
export { O as t };
|
|
164
|
+
export { k as t };
|
package/dist/text-area.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, mergeProps as d, normalizeClass as f, normalizeProps as p, normalizeStyle as m, openBlock as h, renderSlot as g, toDisplayString as _, toRef as v, unref as y, useAttrs as b, useId as x, useModel as S, useSlots as C, withCtx as w } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var T = ["id", "for"], E = ["data-bs-prefix", "data-bs-suffix"], D = [
|
|
4
4
|
"id",
|
|
5
5
|
"type",
|
|
@@ -231,5 +231,4 @@ var T = ["id", "for"], E = ["data-bs-prefix", "data-bs-suffix"], D = [
|
|
|
231
231
|
]), 1040, ["value"]));
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
|
-
//#endregion
|
|
235
234
|
export { F as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, M as t, N as n, S as r, a as i, b as a, c as o, d as s, g as c, i as l, j as u, k as d, l as f, o as p, p as m, t as h, u as g, v as _, x as v } from "./runtime-dom.esm-bundler-
|
|
2
|
-
|
|
1
|
+
import { A as e, M as t, N as n, S as r, a as i, b as a, c as o, d as s, g as c, i as l, j as u, k as d, l as f, o as p, p as m, t as h, u as g, v as _, x as v } from "./runtime-dom.esm-bundler-C18ibGEA.js";
|
|
2
|
+
// src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var y = ["id", "for"], b = ["data-bs-prefix", "data-bs-suffix"], x = [
|
|
4
4
|
"id",
|
|
5
5
|
"type",
|
|
@@ -159,5 +159,4 @@ var y = ["id", "for"], b = ["data-bs-prefix", "data-bs-suffix"], x = [
|
|
|
159
159
|
function k() {
|
|
160
160
|
typeof customElements < "u" && (customElements.get("ouds-text-input") || customElements.define("ouds-text-input", O));
|
|
161
161
|
}
|
|
162
|
-
//#endregion
|
|
163
162
|
export { k as n, O as t };
|
package/dist/text-input.js
CHANGED
|
@@ -8,6 +8,8 @@ export interface SelectProps {
|
|
|
8
8
|
errorText?: string;
|
|
9
9
|
helperLink?: string;
|
|
10
10
|
helperLinkHref?: string;
|
|
11
|
+
/** Hidden text between the helper link and field label. Defaults to "on". */
|
|
12
|
+
helperLinkAria?: string;
|
|
11
13
|
value?: string;
|
|
12
14
|
outlined?: boolean;
|
|
13
15
|
disabled?: boolean;
|
|
@@ -15,6 +17,8 @@ export interface SelectProps {
|
|
|
15
17
|
invalid?: boolean;
|
|
16
18
|
maxWidth?: boolean;
|
|
17
19
|
loading?: boolean;
|
|
20
|
+
/** Localized screen-reader loading announcement. Defaults to "Loading". */
|
|
21
|
+
loadingText?: string;
|
|
18
22
|
}
|
|
19
23
|
export type SelectElement = HTMLElement & {
|
|
20
24
|
id: string;
|
|
@@ -23,6 +27,7 @@ export type SelectElement = HTMLElement & {
|
|
|
23
27
|
errorText: string;
|
|
24
28
|
helperLink: string;
|
|
25
29
|
helperLinkHref: string;
|
|
30
|
+
helperLinkAria: string;
|
|
26
31
|
options: {
|
|
27
32
|
label: string;
|
|
28
33
|
value: string;
|
|
@@ -34,6 +39,7 @@ export type SelectElement = HTMLElement & {
|
|
|
34
39
|
invalid: boolean;
|
|
35
40
|
maxWidth: boolean;
|
|
36
41
|
loading: boolean;
|
|
42
|
+
loadingText: string;
|
|
37
43
|
};
|
|
38
44
|
export type SelectConstructor = CustomElementConstructor & {
|
|
39
45
|
new (initialProps?: Partial<SelectElement>): SelectElement;
|
|
@@ -5,6 +5,8 @@ export interface TextAreaProps {
|
|
|
5
5
|
errorText?: string;
|
|
6
6
|
helperLink?: string;
|
|
7
7
|
helperLinkHref?: string;
|
|
8
|
+
/** Hidden text between the helper link and field label. Defaults to "on". */
|
|
9
|
+
helperLinkAria?: string;
|
|
8
10
|
value?: string;
|
|
9
11
|
outlined?: boolean;
|
|
10
12
|
disabled?: boolean;
|
|
@@ -21,6 +23,7 @@ export type TextAreaElement = HTMLElement & {
|
|
|
21
23
|
errorText: string;
|
|
22
24
|
helperLink: string;
|
|
23
25
|
helperLinkHref: string;
|
|
26
|
+
helperLinkAria: string;
|
|
24
27
|
value: string;
|
|
25
28
|
outlined: boolean;
|
|
26
29
|
disabled: boolean;
|
package/dist/vue-alert.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsAlert, t as alertVariants };
|
|
1
|
+
export { n as OudsAlert, t as alertVariants } from "./alert-w0YLr9TU.js";
|
package/dist/vue-badge.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as OudsBadge, n as badgeSizes, e as badgeVariants };
|
|
1
|
+
export { r as OudsBadge, t as badgeSizes, n as badgeVariants } from "./badge-Cr0QauxC.js";
|
package/dist/vue-button.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsButton, i as buttonNavigations, n as buttonSizes, r as buttonTypes, t as buttonVariants };
|
|
1
|
+
export { a as OudsButton, t as buttonNavigations, n as buttonSizes, r as buttonTypes, i as buttonVariants } from "./button-DzXQE-cm.js";
|
package/dist/vue-checkbox.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsCheckbox };
|
|
1
|
+
export { t as OudsCheckbox } from "./checkbox-CQ0KpdQ5.js";
|
package/dist/vue-chip.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsChip };
|
|
1
|
+
export { t as OudsChip } from "./chip-BtqaPWn4.js";
|
package/dist/vue-modal.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsModal, r as modalSizes, t as modalTypes, n as modalVariants };
|
|
1
|
+
export { i as OudsModal, t as modalSizes, n as modalTypes, r as modalVariants } from "./modal-B9UEm1Wl.js";
|
package/dist/vue-radio.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsRadio };
|
|
1
|
+
export { t as OudsRadio } from "./radio-bLSAOzFR.js";
|
package/dist/vue-select.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsSelect };
|
|
1
|
+
export { t as OudsSelect } from "./select-NcBlPsCM.js";
|
package/dist/vue-switch.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsSwitch };
|
|
1
|
+
export { t as OudsSwitch } from "./switch-QJsTarkg.js";
|
package/dist/vue-tag.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as OudsTag, n as tagSizes, e as tagVariants };
|
|
1
|
+
export { r as OudsTag, t as tagSizes, n as tagVariants } from "./tag-e-DnolY2.js";
|
package/dist/vue-text-area.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsTextArea };
|
|
1
|
+
export { t as OudsTextArea } from "./text-area-Eb6R9C9E.js";
|
package/dist/vue-text-input.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as OudsTextInput };
|
|
1
|
+
export { t as OudsTextInput } from "./text-input-IJAkzZIL.js";
|
package/dist/vue.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e, t } from "./alert-
|
|
2
|
-
import { n, r, t as i } from "./badge-
|
|
3
|
-
import { a, i as o, n as s, r as c, t as l } from "./button-
|
|
4
|
-
import { n as u, r as d, t as f } from "./tag-
|
|
5
|
-
import { t as p } from "./chip-
|
|
6
|
-
import { t as m } from "./select-
|
|
7
|
-
import { t as h } from "./checkbox-
|
|
8
|
-
import { t as g } from "./radio-
|
|
9
|
-
import { t as _ } from "./switch-
|
|
10
|
-
import { t as v } from "./text-input-
|
|
11
|
-
import { t as y } from "./text-area-
|
|
12
|
-
import { i as b, n as x, r as S, t as C } from "./modal-
|
|
1
|
+
import { n as e, t } from "./alert-w0YLr9TU.js";
|
|
2
|
+
import { n, r, t as i } from "./badge-Cr0QauxC.js";
|
|
3
|
+
import { a, i as o, n as s, r as c, t as l } from "./button-DzXQE-cm.js";
|
|
4
|
+
import { n as u, r as d, t as f } from "./tag-e-DnolY2.js";
|
|
5
|
+
import { t as p } from "./chip-BtqaPWn4.js";
|
|
6
|
+
import { t as m } from "./select-NcBlPsCM.js";
|
|
7
|
+
import { t as h } from "./checkbox-CQ0KpdQ5.js";
|
|
8
|
+
import { t as g } from "./radio-bLSAOzFR.js";
|
|
9
|
+
import { t as _ } from "./switch-QJsTarkg.js";
|
|
10
|
+
import { t as v } from "./text-input-IJAkzZIL.js";
|
|
11
|
+
import { t as y } from "./text-area-Eb6R9C9E.js";
|
|
12
|
+
import { i as b, n as x, r as S, t as C } from "./modal-B9UEm1Wl.js";
|
|
13
13
|
export { e as OudsAlert, r as OudsBadge, a as OudsButton, h as OudsCheckbox, p as OudsChip, b as OudsModal, g as OudsRadio, m as OudsSelect, _ as OudsSwitch, d as OudsTag, y as OudsTextArea, v as OudsTextInput, t as alertVariants, i as badgeSizes, n as badgeVariants, l as buttonNavigations, s as buttonSizes, c as buttonTypes, o as buttonVariants, C as modalSizes, x as modalTypes, S as modalVariants, f as tagSizes, u as tagVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nilloq/ouds-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Vue components and framework-independent custom elements styled with OUDS Web.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -186,16 +186,16 @@
|
|
|
186
186
|
},
|
|
187
187
|
"devDependencies": {
|
|
188
188
|
"@types/node": "^26.6.11",
|
|
189
|
-
"@vitejs/plugin-vue": "^6.
|
|
189
|
+
"@vitejs/plugin-vue": "^6.1.1",
|
|
190
190
|
"@vueuse/core": "^15.1.0",
|
|
191
191
|
"bumpp": "^12.3.0",
|
|
192
|
-
"marked": "^18.
|
|
192
|
+
"marked": "^18.4.0",
|
|
193
193
|
"shiki": "^4.6.0",
|
|
194
194
|
"shiki-transformer-copy-button": "^0.0.6",
|
|
195
195
|
"typescript": "^5.9.3",
|
|
196
196
|
"vite-plus": "catalog:",
|
|
197
197
|
"vue": "^3.5.46",
|
|
198
|
-
"vue-router": "^5.
|
|
198
|
+
"vue-router": "^5.6.0",
|
|
199
199
|
"vue-tsc": "^3.3.14"
|
|
200
200
|
},
|
|
201
201
|
"peerDependencies": {
|
package/dist/tag-BvOt0v-c.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, g as r, i, j as a, l as o, o as s, t as c, u as l, v as u } from "./runtime-dom.esm-bundler-DLryEdgJ.js";
|
|
2
|
-
//#region src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var d = {
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "tag-status-icon",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, f = {
|
|
8
|
-
key: 2,
|
|
9
|
-
class: "tag-bullet",
|
|
10
|
-
"aria-hidden": "true"
|
|
11
|
-
}, p = /* @__PURE__ */ n({
|
|
12
|
-
__name: "Tag",
|
|
13
|
-
props: {
|
|
14
|
-
variant: { default: "neutral" },
|
|
15
|
-
statusIcon: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !1
|
|
18
|
-
},
|
|
19
|
-
size: { default: "medium" },
|
|
20
|
-
muted: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
},
|
|
24
|
-
bullet: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
},
|
|
28
|
-
disabled: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
loading: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !1
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
setup(n) {
|
|
38
|
-
let c = e(() => n.variant.startsWith("categorical-")), p = e(() => [
|
|
39
|
-
"positive",
|
|
40
|
-
"info",
|
|
41
|
-
"warning",
|
|
42
|
-
"negative"
|
|
43
|
-
].includes(n.variant)), m = e(() => [
|
|
44
|
-
"tag",
|
|
45
|
-
n.variant !== "neutral" && `tag-${n.variant}`,
|
|
46
|
-
{
|
|
47
|
-
"tag-muted": n.muted && !c.value,
|
|
48
|
-
"tag-small": n.size === "small",
|
|
49
|
-
disabled: n.disabled,
|
|
50
|
-
loading: n.loading
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
|
-
return (e, c) => (r(), o("span", { class: a(m.value) }, [n.loading ? (r(), o(i, { key: 0 }, [c[0] ||= s("svg", {
|
|
54
|
-
viewBox: "0 0 40 40",
|
|
55
|
-
class: "tag-loader",
|
|
56
|
-
"aria-hidden": "true"
|
|
57
|
-
}, [s("circle", {
|
|
58
|
-
class: "tag-loader-inner",
|
|
59
|
-
cx: "20",
|
|
60
|
-
cy: "20",
|
|
61
|
-
r: "15"
|
|
62
|
-
})], -1), c[1] ||= s("span", {
|
|
63
|
-
role: "status",
|
|
64
|
-
class: "visually-hidden"
|
|
65
|
-
}, "Loading", -1)], 64)) : n.statusIcon && p.value ? (r(), o("span", d)) : n.bullet ? (r(), o("span", f)) : t("", !0), u(e.$slots, "default", {}, () => [c[2] ||= l("Tag", -1)])], 2));
|
|
66
|
-
}
|
|
67
|
-
}), m = [
|
|
68
|
-
"neutral",
|
|
69
|
-
"accent",
|
|
70
|
-
"positive",
|
|
71
|
-
"info",
|
|
72
|
-
"warning",
|
|
73
|
-
"negative",
|
|
74
|
-
"categorical-1",
|
|
75
|
-
"categorical-2",
|
|
76
|
-
"categorical-3",
|
|
77
|
-
"categorical-4",
|
|
78
|
-
"categorical-5"
|
|
79
|
-
], h = ["medium", "small"], g = c(p, { shadowRoot: !1 });
|
|
80
|
-
function _() {
|
|
81
|
-
typeof customElements < "u" && (customElements.get("ouds-tag") || customElements.define("ouds-tag", g));
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
export { m as i, _ as n, h as r, g as t };
|