@nilloq/ouds-web 0.1.5 → 0.1.6
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/LICENSE +21 -0
- package/README.md +49 -6
- package/dist/alert-By364Om4.js +77 -0
- package/dist/alert-bsnEmrzb.js +89 -0
- package/dist/alert.js +2 -0
- package/dist/badge-fffoaFuZ.js +57 -0
- package/dist/badge-yaFEZnEW.js +54 -0
- package/dist/badge.js +2 -0
- package/dist/button-BUziAVbu.js +94 -0
- package/dist/{button-LlRiSiGS.js → button-nN1Pcwm6.js} +36 -21
- package/dist/button.js +1 -1
- package/dist/checkbox-PAgQqiIw.js +145 -0
- package/dist/checkbox-g6cqR6wz.js +170 -0
- package/dist/checkbox.js +1 -1
- package/dist/control-item-slots-BNXNsI1e.js +12 -0
- package/dist/control-item-slots-XV8Gjvf1.js +9 -0
- package/dist/elements-alert.js +2 -0
- package/dist/elements-badge.js +2 -0
- package/dist/elements-button.js +1 -1
- package/dist/elements-checkbox.js +1 -1
- package/dist/elements-modal.js +2 -0
- package/dist/elements-radio.js +2 -0
- package/dist/elements-select.js +1 -1
- package/dist/elements-switch.js +2 -0
- package/dist/elements-tag.js +1 -1
- package/dist/elements-text-area.js +2 -0
- package/dist/elements-text-input.js +1 -1
- package/dist/elements.js +13 -7
- package/dist/index.js +12 -6
- package/dist/modal-CHjaB_yR.js +181 -0
- package/dist/modal-IEXNB8St.js +193 -0
- package/dist/modal.js +2 -0
- package/dist/radio-Cmrtred_.js +147 -0
- package/dist/radio-CqVqsZ7n.js +175 -0
- package/dist/radio.js +5 -0
- package/dist/{runtime-dom.esm-bundler-BzNNnH8h.js → runtime-dom.esm-bundler-BeOO_l6v.js} +987 -839
- package/dist/select-Bpou1HIY.js +167 -0
- package/dist/select-CWjTpHGb.js +126 -0
- package/dist/select.js +1 -1
- package/dist/switch-CFv0JUeq.js +132 -0
- package/dist/switch-DEYsTCw5.js +157 -0
- package/dist/switch.js +5 -0
- package/dist/tag-BdB0YDBJ.js +84 -0
- package/dist/tag-Un7w0uDf.js +81 -0
- package/dist/tag.js +1 -1
- package/dist/text-area-DkjEGpHg.js +99 -0
- package/dist/text-area-DqBoz2_d.js +139 -0
- package/dist/text-area.js +5 -0
- package/dist/text-input-DnWjB1vE.js +207 -0
- package/dist/text-input-DxzwRS2R.js +157 -0
- package/dist/text-input.js +1 -1
- package/dist/types/alert.d.ts +1 -0
- package/dist/types/badge.d.ts +1 -0
- package/dist/types/components/alert/Alert.vue.d.ts +37 -0
- package/dist/types/components/alert/alert.context.d.ts +2 -0
- package/dist/types/components/alert/alert.options.d.ts +2 -0
- package/dist/types/components/alert/alert.types.d.ts +14 -0
- package/dist/types/components/badge/Badge.vue.d.ts +26 -0
- package/dist/types/components/badge/badge.options.d.ts +4 -0
- package/dist/types/components/badge/badge.types.d.ts +13 -0
- package/dist/types/components/button/Button.vue.d.ts +7 -4
- package/dist/types/components/button/button.options.d.ts +1 -1
- package/dist/types/components/button/button.types.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.vue.d.ts +13 -6
- package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +9 -5
- package/dist/types/components/checkbox/checkbox.context.d.ts +2 -0
- package/dist/types/components/checkbox/checkbox.types.d.ts +4 -0
- package/dist/types/components/modal/Modal.vue.d.ts +86 -0
- package/dist/types/components/modal/modal.context.d.ts +2 -0
- package/dist/types/components/modal/modal.options.d.ts +7 -0
- package/dist/types/components/modal/modal.types.d.ts +28 -0
- package/dist/types/components/radio/Radio.vue.d.ts +37 -0
- package/dist/types/components/radio/VueRadio.vue.d.ts +34 -0
- package/dist/types/components/radio/radio.context.d.ts +2 -0
- package/dist/types/components/radio/radio.types.d.ts +20 -0
- package/dist/types/components/select/Select.vue.d.ts +21 -4
- package/dist/types/components/select/VueSelect.vue.d.ts +15 -5
- package/dist/types/components/select/select.types.d.ts +10 -0
- package/dist/types/components/shared/control-item-slots.d.ts +2 -0
- package/dist/types/components/switch/Switch.vue.d.ts +32 -0
- package/dist/types/components/switch/VueSwitch.vue.d.ts +28 -0
- package/dist/types/components/switch/switch.context.d.ts +2 -0
- package/dist/types/components/switch/switch.types.d.ts +17 -0
- package/dist/types/components/tag/Tag.vue.d.ts +8 -3
- package/dist/types/components/tag/tag.options.d.ts +1 -1
- package/dist/types/components/tag/tag.types.d.ts +4 -0
- package/dist/types/components/text-area/TextArea.vue.d.ts +36 -0
- package/dist/types/components/text-area/VueTextArea.vue.d.ts +32 -0
- package/dist/types/components/text-area/text-area.types.d.ts +19 -0
- package/dist/types/components/text-input/TextInput.vue.d.ts +17 -15
- package/dist/types/components/text-input/VueTextInput.vue.d.ts +17 -13
- package/dist/types/components/text-input/text-input.types.d.ts +1 -0
- package/dist/types/elements/alert.d.ts +5 -0
- package/dist/types/elements/badge.d.ts +5 -0
- package/dist/types/elements/index.d.ts +13 -0
- package/dist/types/elements/modal.d.ts +5 -0
- package/dist/types/elements/radio.d.ts +4 -0
- package/dist/types/elements/switch.d.ts +4 -0
- package/dist/types/elements/text-area.d.ts +4 -0
- package/dist/types/modal.d.ts +1 -0
- package/dist/types/radio.d.ts +2 -0
- package/dist/types/switch.d.ts +2 -0
- package/dist/types/text-area.d.ts +2 -0
- package/dist/types/vue/alert.d.ts +3 -0
- package/dist/types/vue/badge.d.ts +3 -0
- package/dist/types/vue/index.d.ts +11 -0
- package/dist/types/vue/modal.d.ts +3 -0
- package/dist/types/vue/radio.d.ts +2 -0
- package/dist/types/vue/switch.d.ts +2 -0
- package/dist/types/vue/text-area.d.ts +2 -0
- package/dist/vue-alert.js +2 -0
- package/dist/vue-badge.js +2 -0
- package/dist/vue-button.js +1 -1
- package/dist/vue-checkbox.js +1 -1
- package/dist/vue-modal.js +2 -0
- package/dist/vue-radio.js +2 -0
- package/dist/vue-select.js +1 -1
- package/dist/vue-switch.js +2 -0
- package/dist/vue-tag.js +1 -1
- package/dist/vue-text-area.js +2 -0
- package/dist/vue-text-input.js +1 -1
- package/dist/vue.js +12 -6
- package/package.json +82 -10
- package/dist/button-BPOKh6G4.js +0 -79
- package/dist/checkbox-BYrgMhwO.js +0 -105
- package/dist/checkbox-D-A_bSBK.js +0 -79
- package/dist/select-CA6TVlpX.js +0 -58
- package/dist/select-CKHEHpJL.js +0 -80
- package/dist/tag-B2qhuHjk.js +0 -41
- package/dist/tag-BY32Hj5n.js +0 -44
- package/dist/text-input-CtTr5yfe.js +0 -151
- package/dist/text-input-l1F2arKl.js +0 -201
package/dist/button-BPOKh6G4.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, f as r, i, o as a, r as o, t as s, u as c, y as l } from "./runtime-dom.esm-bundler-BzNNnH8h.js";
|
|
2
|
-
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var u = ["type", "disabled"], d = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "visually-hidden"
|
|
6
|
-
}, f = {
|
|
7
|
-
key: 1,
|
|
8
|
-
viewBox: "0 0 40 40",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
class: "loader",
|
|
11
|
-
"aria-hidden": "true"
|
|
12
|
-
}, p = {
|
|
13
|
-
key: 2,
|
|
14
|
-
role: "status",
|
|
15
|
-
class: "visually-hidden"
|
|
16
|
-
}, m = /* @__PURE__ */ n({
|
|
17
|
-
__name: "Button",
|
|
18
|
-
props: {
|
|
19
|
-
type: { default: "button" },
|
|
20
|
-
variant: { default: "default" },
|
|
21
|
-
size: { default: "medium" },
|
|
22
|
-
iconOnly: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
ariaLabel: {},
|
|
27
|
-
navigation: {},
|
|
28
|
-
disabled: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
loading: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !1
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
setup(n) {
|
|
38
|
-
let s = o(() => [
|
|
39
|
-
"btn",
|
|
40
|
-
`btn-${n.variant}`,
|
|
41
|
-
{
|
|
42
|
-
"btn-icon": n.iconOnly,
|
|
43
|
-
"btn-small": n.size === "small",
|
|
44
|
-
"loading-indeterminate": n.loading
|
|
45
|
-
},
|
|
46
|
-
...n.navigation ? [`btn-${n.navigation}`] : []
|
|
47
|
-
]), m = o(() => n.type === "submit" || n.type === "reset" ? n.type : "button");
|
|
48
|
-
return (o, h) => (c(), a("button", {
|
|
49
|
-
class: l(s.value),
|
|
50
|
-
type: m.value,
|
|
51
|
-
disabled: n.disabled || n.loading
|
|
52
|
-
}, [
|
|
53
|
-
r(o.$slots, "default"),
|
|
54
|
-
n.ariaLabel ? (c(), a("span", d, t(n.ariaLabel), 1)) : e("", !0),
|
|
55
|
-
n.loading ? (c(), a("svg", f, [...h[0] ||= [i("circle", {
|
|
56
|
-
class: "loader-inner",
|
|
57
|
-
cx: "20",
|
|
58
|
-
cy: "20",
|
|
59
|
-
r: "17"
|
|
60
|
-
}, null, -1)]])) : e("", !0),
|
|
61
|
-
n.loading ? (c(), a("span", p, "Loading")) : e("", !0)
|
|
62
|
-
], 10, u));
|
|
63
|
-
}
|
|
64
|
-
}), h = [
|
|
65
|
-
"default",
|
|
66
|
-
"strong",
|
|
67
|
-
"brand",
|
|
68
|
-
"minimal",
|
|
69
|
-
"negative"
|
|
70
|
-
], g = ["medium", "small"], _ = [
|
|
71
|
-
"button",
|
|
72
|
-
"submit",
|
|
73
|
-
"reset"
|
|
74
|
-
], v = ["previous", "next"], y = s(m, { shadowRoot: !1 });
|
|
75
|
-
function b() {
|
|
76
|
-
typeof customElements < "u" && (customElements.get("ouds-button") || customElements.define("ouds-button", y));
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
export { _ as a, g as i, b as n, h as o, v as r, y as t };
|
|
@@ -1,105 +0,0 @@
|
|
|
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, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useId as _, useModel as v, watchEffect as y, withCtx as b } from "vue";
|
|
2
|
-
//#region src/components/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var x = { class: "control-item-assets-container" }, S = [
|
|
4
|
-
"id",
|
|
5
|
-
"value",
|
|
6
|
-
"checked",
|
|
7
|
-
"disabled",
|
|
8
|
-
"required",
|
|
9
|
-
"aria-describedby"
|
|
10
|
-
], C = { class: "control-item-text-container" }, w = ["for"], T = ["id"], E = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "control-item-assets-container"
|
|
13
|
-
}, D = /* @__PURE__ */ s({
|
|
14
|
-
inheritAttrs: !1,
|
|
15
|
-
__name: "Checkbox",
|
|
16
|
-
props: {
|
|
17
|
-
id: {},
|
|
18
|
-
label: { default: "Checkbox" },
|
|
19
|
-
description: { default: "" },
|
|
20
|
-
value: { default: "" },
|
|
21
|
-
checked: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
},
|
|
25
|
-
disabled: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
},
|
|
29
|
-
required: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
},
|
|
33
|
-
divider: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
},
|
|
37
|
-
indeterminate: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
setup(t) {
|
|
43
|
-
let a = g(), s = f(), c = _(), v = e(() => t.id || `ouds-checkbox-${c}`), b = e(() => `${v.value}-description`), D = e(() => {
|
|
44
|
-
let e = [a["aria-describedby"]];
|
|
45
|
-
return t.description && e.push(b.value), e.filter(Boolean).join(" ") || void 0;
|
|
46
|
-
}), O = e(() => ["checkbox-item", { "control-item-divider": t.divider }]);
|
|
47
|
-
return y(() => {
|
|
48
|
-
s.value && (s.value.indeterminate = t.indeterminate);
|
|
49
|
-
}), (e, c) => (d(), r("div", { class: u(O.value) }, [
|
|
50
|
-
i("div", x, [i("input", l({
|
|
51
|
-
ref_key: "input",
|
|
52
|
-
ref: s
|
|
53
|
-
}, h(a), {
|
|
54
|
-
id: v.value,
|
|
55
|
-
class: "control-item-indicator",
|
|
56
|
-
type: "checkbox",
|
|
57
|
-
value: t.value,
|
|
58
|
-
checked: t.checked,
|
|
59
|
-
disabled: t.disabled,
|
|
60
|
-
required: t.required,
|
|
61
|
-
"aria-describedby": D.value
|
|
62
|
-
}), null, 16, S)]),
|
|
63
|
-
i("div", C, [i("label", {
|
|
64
|
-
class: "control-item-label",
|
|
65
|
-
for: v.value
|
|
66
|
-
}, [p(e.$slots, "label", {}, () => [o(m(t.label), 1)])], 8, w), t.description ? (d(), r("p", {
|
|
67
|
-
key: 0,
|
|
68
|
-
id: b.value,
|
|
69
|
-
class: "control-item-description"
|
|
70
|
-
}, m(t.description), 9, T)) : n("", !0)]),
|
|
71
|
-
e.$slots.asset ? (d(), r("div", E, [p(e.$slots, "asset")])) : n("", !0)
|
|
72
|
-
], 2));
|
|
73
|
-
}
|
|
74
|
-
}), O = /* @__PURE__ */ s({
|
|
75
|
-
inheritAttrs: !1,
|
|
76
|
-
__name: "VueCheckbox",
|
|
77
|
-
props: {
|
|
78
|
-
modelValue: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !1
|
|
81
|
-
},
|
|
82
|
-
modelModifiers: {}
|
|
83
|
-
},
|
|
84
|
-
emits: /*@__PURE__*/ c(["change"], ["update:modelValue"]),
|
|
85
|
-
setup(e, { emit: n }) {
|
|
86
|
-
let r = v(e, "modelValue"), i = n;
|
|
87
|
-
function o(e) {
|
|
88
|
-
r.value = e.target.checked, i("change", e);
|
|
89
|
-
}
|
|
90
|
-
return (e, n) => (d(), t(D, l(e.$attrs, {
|
|
91
|
-
checked: r.value,
|
|
92
|
-
onChange: o
|
|
93
|
-
}), a({ _: 2 }, [e.$slots.label ? {
|
|
94
|
-
name: "label",
|
|
95
|
-
fn: b(() => [p(e.$slots, "label")]),
|
|
96
|
-
key: "0"
|
|
97
|
-
} : void 0, e.$slots.asset ? {
|
|
98
|
-
name: "asset",
|
|
99
|
-
fn: b(() => [p(e.$slots, "asset")]),
|
|
100
|
-
key: "1"
|
|
101
|
-
} : void 0]), 1040, ["checked"]));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
//#endregion
|
|
105
|
-
export { O as t };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, f as i, g as a, i as o, l as s, m as c, o as l, p as u, r as d, s as f, t as p, u as m, v as h, y as g } from "./runtime-dom.esm-bundler-BzNNnH8h.js";
|
|
2
|
-
//#region src/components/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var _ = { class: "control-item-assets-container" }, v = [
|
|
4
|
-
"id",
|
|
5
|
-
"value",
|
|
6
|
-
"checked",
|
|
7
|
-
"disabled",
|
|
8
|
-
"required",
|
|
9
|
-
"aria-describedby"
|
|
10
|
-
], y = { class: "control-item-text-container" }, b = ["for"], x = ["id"], S = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "control-item-assets-container"
|
|
13
|
-
}, C = p(/* @__PURE__ */ r({
|
|
14
|
-
inheritAttrs: !1,
|
|
15
|
-
__name: "Checkbox",
|
|
16
|
-
props: {
|
|
17
|
-
id: {},
|
|
18
|
-
label: { default: "Checkbox" },
|
|
19
|
-
description: { default: "" },
|
|
20
|
-
value: { default: "" },
|
|
21
|
-
checked: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
},
|
|
25
|
-
disabled: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
},
|
|
29
|
-
required: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
},
|
|
33
|
-
divider: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
},
|
|
37
|
-
indeterminate: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
setup(r) {
|
|
43
|
-
let p = u(), C = e(), w = c(), T = d(() => r.id || `ouds-checkbox-${w}`), E = d(() => `${T.value}-description`), D = d(() => {
|
|
44
|
-
let e = [p["aria-describedby"]];
|
|
45
|
-
return r.description && e.push(E.value), e.filter(Boolean).join(" ") || void 0;
|
|
46
|
-
}), O = d(() => ["checkbox-item", { "control-item-divider": r.divider }]);
|
|
47
|
-
return a(() => {
|
|
48
|
-
C.value && (C.value.indeterminate = r.indeterminate);
|
|
49
|
-
}), (e, a) => (m(), l("div", { class: g(O.value) }, [
|
|
50
|
-
o("div", _, [o("input", s({
|
|
51
|
-
ref_key: "input",
|
|
52
|
-
ref: C
|
|
53
|
-
}, h(p), {
|
|
54
|
-
id: T.value,
|
|
55
|
-
class: "control-item-indicator",
|
|
56
|
-
type: "checkbox",
|
|
57
|
-
value: r.value,
|
|
58
|
-
checked: r.checked,
|
|
59
|
-
disabled: r.disabled,
|
|
60
|
-
required: r.required,
|
|
61
|
-
"aria-describedby": D.value
|
|
62
|
-
}), null, 16, v)]),
|
|
63
|
-
o("div", y, [o("label", {
|
|
64
|
-
class: "control-item-label",
|
|
65
|
-
for: T.value
|
|
66
|
-
}, [i(e.$slots, "label", {}, () => [f(n(r.label), 1)])], 8, b), r.description ? (m(), l("p", {
|
|
67
|
-
key: 0,
|
|
68
|
-
id: E.value,
|
|
69
|
-
class: "control-item-description"
|
|
70
|
-
}, n(r.description), 9, x)) : t("", !0)]),
|
|
71
|
-
e.$slots.asset ? (m(), l("div", S, [i(e.$slots, "asset")])) : t("", !0)
|
|
72
|
-
], 2));
|
|
73
|
-
}
|
|
74
|
-
}), { shadowRoot: !1 });
|
|
75
|
-
function w() {
|
|
76
|
-
typeof customElements < "u" && (customElements.get("ouds-checkbox") || customElements.define("ouds-checkbox", C));
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
export { w as n, C as t };
|
package/dist/select-CA6TVlpX.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, d as r, f as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m, v as h, y as g } from "./runtime-dom.esm-bundler-BzNNnH8h.js";
|
|
2
|
-
//#region src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var _ = ["for"], v = [
|
|
4
|
-
"id",
|
|
5
|
-
"aria-describedby",
|
|
6
|
-
"value",
|
|
7
|
-
"disabled",
|
|
8
|
-
"required"
|
|
9
|
-
], y = ["value"], b = ["id"], x = p(/* @__PURE__ */ n({
|
|
10
|
-
inheritAttrs: !1,
|
|
11
|
-
__name: "Select",
|
|
12
|
-
props: {
|
|
13
|
-
id: {},
|
|
14
|
-
label: { default: "Select" },
|
|
15
|
-
options: { default: () => [] },
|
|
16
|
-
helperText: { default: "" },
|
|
17
|
-
value: { default: "" },
|
|
18
|
-
outlined: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !1
|
|
21
|
-
},
|
|
22
|
-
disabled: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
required: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
setup(n) {
|
|
32
|
-
let p = u(), x = s(), S = d(() => n.id || `ouds-select-${x}`), C = d(() => `${S.value}-helper`), w = d(() => n.helperText ? C.value : p["aria-describedby"]), T = d(() => ["select-input-container", { "select-input-container-outlined": n.outlined }]), E = d(() => ["select-input", { "is-required": n.required }]);
|
|
33
|
-
return (s, u) => (m(), l("div", { class: g(E.value) }, [a("div", { class: g(T.value) }, [a("label", { for: S.value }, [i(s.$slots, "label", {}, () => [f(t(n.label), 1)])], 8, _), a("select", o(h(p), {
|
|
34
|
-
id: S.value,
|
|
35
|
-
"aria-describedby": w.value,
|
|
36
|
-
class: "select-input-field",
|
|
37
|
-
value: n.value,
|
|
38
|
-
disabled: n.disabled,
|
|
39
|
-
required: n.required
|
|
40
|
-
}), [u[0] ||= a("option", {
|
|
41
|
-
value: "",
|
|
42
|
-
disabled: "",
|
|
43
|
-
selected: ""
|
|
44
|
-
}, null, -1), (m(!0), l(c, null, r(n.options, (e) => (m(), l("option", {
|
|
45
|
-
key: e.value,
|
|
46
|
-
value: e.value
|
|
47
|
-
}, t(e.label), 9, y))), 128))], 16, v)], 2), n.helperText ? (m(), l("p", {
|
|
48
|
-
key: 0,
|
|
49
|
-
id: C.value,
|
|
50
|
-
class: "helper-text"
|
|
51
|
-
}, t(n.helperText), 9, b)) : e("", !0)], 2));
|
|
52
|
-
}
|
|
53
|
-
}), { shadowRoot: !1 });
|
|
54
|
-
function S() {
|
|
55
|
-
typeof customElements < "u" && (customElements.get("ouds-select") || customElements.define("ouds-select", x));
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { S as n, x as t };
|
package/dist/select-CKHEHpJL.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
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, mergeModels as l, mergeProps as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, useId as v, useModel as y, withCtx as b } from "vue";
|
|
2
|
-
//#region src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var x = ["for"], S = [
|
|
4
|
-
"id",
|
|
5
|
-
"aria-describedby",
|
|
6
|
-
"value",
|
|
7
|
-
"disabled",
|
|
8
|
-
"required"
|
|
9
|
-
], C = ["value"], w = ["id"], T = /* @__PURE__ */ c({
|
|
10
|
-
inheritAttrs: !1,
|
|
11
|
-
__name: "Select",
|
|
12
|
-
props: {
|
|
13
|
-
id: {},
|
|
14
|
-
label: { default: "Select" },
|
|
15
|
-
options: { default: () => [] },
|
|
16
|
-
helperText: { default: "" },
|
|
17
|
-
value: { default: "" },
|
|
18
|
-
outlined: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !1
|
|
21
|
-
},
|
|
22
|
-
disabled: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
required: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
setup(n) {
|
|
32
|
-
let o = _(), c = v(), l = t(() => n.id || `ouds-select-${c}`), y = t(() => `${l.value}-helper`), b = t(() => n.helperText ? y.value : o["aria-describedby"]), T = t(() => ["select-input-container", { "select-input-container-outlined": n.outlined }]), E = t(() => ["select-input", { "is-required": n.required }]);
|
|
33
|
-
return (t, c) => (f(), i("div", { class: d(E.value) }, [a("div", { class: d(T.value) }, [a("label", { for: l.value }, [m(t.$slots, "label", {}, () => [s(h(n.label), 1)])], 8, x), a("select", u(g(o), {
|
|
34
|
-
id: l.value,
|
|
35
|
-
"aria-describedby": b.value,
|
|
36
|
-
class: "select-input-field",
|
|
37
|
-
value: n.value,
|
|
38
|
-
disabled: n.disabled,
|
|
39
|
-
required: n.required
|
|
40
|
-
}), [c[0] ||= a("option", {
|
|
41
|
-
value: "",
|
|
42
|
-
disabled: "",
|
|
43
|
-
selected: ""
|
|
44
|
-
}, null, -1), (f(!0), i(e, null, p(n.options, (e) => (f(), i("option", {
|
|
45
|
-
key: e.value,
|
|
46
|
-
value: e.value
|
|
47
|
-
}, h(e.label), 9, C))), 128))], 16, S)], 2), n.helperText ? (f(), i("p", {
|
|
48
|
-
key: 0,
|
|
49
|
-
id: y.value,
|
|
50
|
-
class: "helper-text"
|
|
51
|
-
}, h(n.helperText), 9, w)) : r("", !0)], 2));
|
|
52
|
-
}
|
|
53
|
-
}), E = /* @__PURE__ */ c({
|
|
54
|
-
inheritAttrs: !1,
|
|
55
|
-
__name: "VueSelect",
|
|
56
|
-
props: {
|
|
57
|
-
modelValue: { default: "" },
|
|
58
|
-
modelModifiers: {}
|
|
59
|
-
},
|
|
60
|
-
emits: /*@__PURE__*/ l(["change"], ["update:modelValue"]),
|
|
61
|
-
setup(e, { emit: t }) {
|
|
62
|
-
let r = y(e, "modelValue"), i = t;
|
|
63
|
-
function a(e) {
|
|
64
|
-
r.value = e.target.value, i("change", e);
|
|
65
|
-
}
|
|
66
|
-
return (e, t) => (f(), n(T, u(e.$attrs, {
|
|
67
|
-
value: r.value,
|
|
68
|
-
onChange: a
|
|
69
|
-
}), o({
|
|
70
|
-
default: b(() => [m(e.$slots, "default")]),
|
|
71
|
-
_: 2
|
|
72
|
-
}, [e.$slots.label ? {
|
|
73
|
-
name: "label",
|
|
74
|
-
fn: b(() => [m(e.$slots, "label")]),
|
|
75
|
-
key: "0"
|
|
76
|
-
} : void 0]), 1040, ["value"]));
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
//#endregion
|
|
80
|
-
export { E as t };
|
package/dist/tag-B2qhuHjk.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { computed as e, createCommentVNode as t, createElementBlock as n, createTextVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s } from "vue";
|
|
2
|
-
//#region src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var c = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "tag-status-icon",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, l = /* @__PURE__ */ i({
|
|
8
|
-
__name: "Tag",
|
|
9
|
-
props: {
|
|
10
|
-
variant: { default: "neutral" },
|
|
11
|
-
statusIcon: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
size: { default: "medium" },
|
|
16
|
-
muted: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(i) {
|
|
22
|
-
let l = e(() => [
|
|
23
|
-
"tag",
|
|
24
|
-
i.variant !== "neutral" && `tag-${i.variant}`,
|
|
25
|
-
{
|
|
26
|
-
"tag-muted": i.muted,
|
|
27
|
-
"tag-small": i.size === "small"
|
|
28
|
-
}
|
|
29
|
-
]);
|
|
30
|
-
return (e, u) => (o(), n("span", { class: a(l.value) }, [i.statusIcon ? (o(), n("span", c)) : t("", !0), s(e.$slots, "default", {}, () => [u[0] ||= r("Tag", -1)])], 2));
|
|
31
|
-
}
|
|
32
|
-
}), u = [
|
|
33
|
-
"neutral",
|
|
34
|
-
"accent",
|
|
35
|
-
"positive",
|
|
36
|
-
"info",
|
|
37
|
-
"warning",
|
|
38
|
-
"negative"
|
|
39
|
-
], d = ["medium", "small"];
|
|
40
|
-
//#endregion
|
|
41
|
-
export { u as n, l as r, d as t };
|
package/dist/tag-BY32Hj5n.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, f as n, o as r, r as i, s as a, t as o, u as s, y as c } from "./runtime-dom.esm-bundler-BzNNnH8h.js";
|
|
2
|
-
//#region src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var l = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "tag-status-icon",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, u = /* @__PURE__ */ t({
|
|
8
|
-
__name: "Tag",
|
|
9
|
-
props: {
|
|
10
|
-
variant: { default: "neutral" },
|
|
11
|
-
statusIcon: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
size: { default: "medium" },
|
|
16
|
-
muted: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(t) {
|
|
22
|
-
let o = i(() => [
|
|
23
|
-
"tag",
|
|
24
|
-
t.variant !== "neutral" && `tag-${t.variant}`,
|
|
25
|
-
{
|
|
26
|
-
"tag-muted": t.muted,
|
|
27
|
-
"tag-small": t.size === "small"
|
|
28
|
-
}
|
|
29
|
-
]);
|
|
30
|
-
return (i, u) => (s(), r("span", { class: c(o.value) }, [t.statusIcon ? (s(), r("span", l)) : e("", !0), n(i.$slots, "default", {}, () => [u[0] ||= a("Tag", -1)])], 2));
|
|
31
|
-
}
|
|
32
|
-
}), d = [
|
|
33
|
-
"neutral",
|
|
34
|
-
"accent",
|
|
35
|
-
"positive",
|
|
36
|
-
"info",
|
|
37
|
-
"warning",
|
|
38
|
-
"negative"
|
|
39
|
-
], f = ["medium", "small"], p = o(u, { shadowRoot: !1 });
|
|
40
|
-
function m() {
|
|
41
|
-
typeof customElements < "u" && (customElements.get("ouds-tag") || customElements.define("ouds-tag", p));
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { d as i, m as n, f as r, p as t };
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m, v as h, y as g } from "./runtime-dom.esm-bundler-BzNNnH8h.js";
|
|
2
|
-
//#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var _ = ["id", "for"], v = ["data-bs-prefix", "data-bs-suffix"], y = [
|
|
4
|
-
"id",
|
|
5
|
-
"type",
|
|
6
|
-
"placeholder",
|
|
7
|
-
"value",
|
|
8
|
-
"disabled",
|
|
9
|
-
"readonly",
|
|
10
|
-
"required",
|
|
11
|
-
"aria-describedby",
|
|
12
|
-
"aria-invalid"
|
|
13
|
-
], b = [
|
|
14
|
-
"id",
|
|
15
|
-
"type",
|
|
16
|
-
"placeholder",
|
|
17
|
-
"value",
|
|
18
|
-
"disabled",
|
|
19
|
-
"readonly",
|
|
20
|
-
"required",
|
|
21
|
-
"aria-describedby",
|
|
22
|
-
"aria-invalid"
|
|
23
|
-
], x = ["id"], S = ["id"], C = [
|
|
24
|
-
"id",
|
|
25
|
-
"href",
|
|
26
|
-
"aria-labelledby"
|
|
27
|
-
], w = p(/* @__PURE__ */ n({
|
|
28
|
-
inheritAttrs: !1,
|
|
29
|
-
__name: "TextInput",
|
|
30
|
-
props: {
|
|
31
|
-
id: {},
|
|
32
|
-
label: { default: "Text input" },
|
|
33
|
-
placeholder: { default: " " },
|
|
34
|
-
helperText: { default: "" },
|
|
35
|
-
errorText: { default: "" },
|
|
36
|
-
helperLink: { default: "" },
|
|
37
|
-
helperLinkHref: { default: "" },
|
|
38
|
-
prefix: { default: "" },
|
|
39
|
-
suffix: { default: "" },
|
|
40
|
-
value: { default: "" },
|
|
41
|
-
type: { default: "text" },
|
|
42
|
-
outlined: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
readonly: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
required: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: !1
|
|
57
|
-
},
|
|
58
|
-
invalid: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !1
|
|
61
|
-
},
|
|
62
|
-
maxWidth: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
},
|
|
66
|
-
loading: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !1
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
setup(n) {
|
|
72
|
-
let p = u(), w = i(), T = s(), E = d(() => n.id || `ouds-text-input-${T}`), D = d(() => `${E.value}-helper`), O = d(() => `${E.value}-error`), k = d(() => `${E.value}-label`), A = d(() => `${E.value}-helper-link`), j = d(() => {
|
|
73
|
-
let e = [p["aria-describedby"]];
|
|
74
|
-
return n.helperText && !n.invalid && e.push(D.value), n.invalid && (n.errorText || w["error-text"]) && e.push(O.value), n.helperLinkHref && (n.helperLink || w["helper-link"]) && e.push(A.value), e.filter(Boolean).join(" ") || void 0;
|
|
75
|
-
}), M = d(() => ["text-input", { "component-max-width": n.maxWidth }]), N = d(() => ["text-input-container", { "text-input-container-outlined": n.outlined }]), P = d(() => ["text-input-field", { "loading-indeterminate": n.loading }]);
|
|
76
|
-
return (i, s) => (m(), l("div", { class: g(M.value) }, [
|
|
77
|
-
a("div", { class: g(N.value) }, [
|
|
78
|
-
r(i.$slots, "leading-icon"),
|
|
79
|
-
a("label", {
|
|
80
|
-
id: k.value,
|
|
81
|
-
for: E.value,
|
|
82
|
-
class: g({ "is-required": n.required })
|
|
83
|
-
}, [r(i.$slots, "label", {}, () => [f(t(n.label), 1)])], 10, _),
|
|
84
|
-
n.prefix || n.suffix ? (m(), l("div", {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "input-container",
|
|
87
|
-
"data-bs-prefix": n.prefix || void 0,
|
|
88
|
-
"data-bs-suffix": n.suffix || void 0
|
|
89
|
-
}, [a("input", o(h(p), {
|
|
90
|
-
id: E.value,
|
|
91
|
-
type: n.type,
|
|
92
|
-
class: P.value,
|
|
93
|
-
placeholder: n.placeholder,
|
|
94
|
-
value: n.value,
|
|
95
|
-
disabled: n.disabled,
|
|
96
|
-
readonly: n.readonly,
|
|
97
|
-
required: n.required,
|
|
98
|
-
"aria-describedby": j.value,
|
|
99
|
-
"aria-invalid": n.invalid
|
|
100
|
-
}), null, 16, y)], 8, v)) : (m(), l("input", o({ key: 1 }, h(p), {
|
|
101
|
-
id: E.value,
|
|
102
|
-
type: n.type,
|
|
103
|
-
class: P.value,
|
|
104
|
-
placeholder: n.placeholder,
|
|
105
|
-
value: n.value,
|
|
106
|
-
disabled: n.disabled,
|
|
107
|
-
readonly: n.readonly,
|
|
108
|
-
required: n.required,
|
|
109
|
-
"aria-describedby": j.value,
|
|
110
|
-
"aria-invalid": n.invalid
|
|
111
|
-
}), null, 16, b)),
|
|
112
|
-
n.loading ? (m(), l(c, { key: 2 }, [s[0] ||= a("svg", {
|
|
113
|
-
viewBox: "0 0 40 40",
|
|
114
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
115
|
-
class: "loader",
|
|
116
|
-
"aria-hidden": "true"
|
|
117
|
-
}, [a("circle", {
|
|
118
|
-
class: "loader-inner",
|
|
119
|
-
cx: "20",
|
|
120
|
-
cy: "20",
|
|
121
|
-
r: "17"
|
|
122
|
-
})], -1), s[1] ||= a("span", {
|
|
123
|
-
role: "status",
|
|
124
|
-
class: "visually-hidden"
|
|
125
|
-
}, "Loading", -1)], 64)) : r(i.$slots, "trailing-action", {}, void 0, void 0, 3)
|
|
126
|
-
], 2),
|
|
127
|
-
(n.helperText || i.$slots["helper-text"]) && !n.invalid ? (m(), l("p", {
|
|
128
|
-
key: 0,
|
|
129
|
-
id: D.value,
|
|
130
|
-
class: "helper-text"
|
|
131
|
-
}, [r(i.$slots, "helper-text", {}, () => [f(t(n.helperText), 1)])], 8, x)) : e("", !0),
|
|
132
|
-
n.invalid && (n.errorText || i.$slots["error-text"]) ? (m(), l("p", {
|
|
133
|
-
key: 1,
|
|
134
|
-
id: O.value,
|
|
135
|
-
class: "error-text"
|
|
136
|
-
}, [r(i.$slots, "error-text", {}, () => [f(t(n.errorText), 1)])], 8, S)) : e("", !0),
|
|
137
|
-
n.helperLinkHref && (n.helperLink || i.$slots["helper-link"]) ? (m(), l("a", {
|
|
138
|
-
key: 2,
|
|
139
|
-
id: A.value,
|
|
140
|
-
href: n.helperLinkHref,
|
|
141
|
-
"aria-labelledby": `${A.value} ${k.value}`,
|
|
142
|
-
class: "link link-small"
|
|
143
|
-
}, [r(i.$slots, "helper-link", {}, () => [f(t(n.helperLink), 1)]), s[2] ||= a("span", { class: "visually-hidden" }, "on", -1)], 8, C)) : e("", !0)
|
|
144
|
-
], 2));
|
|
145
|
-
}
|
|
146
|
-
}), { shadowRoot: !1 });
|
|
147
|
-
function T() {
|
|
148
|
-
typeof customElements < "u" && (customElements.get("ouds-text-input") || customElements.define("ouds-text-input", w));
|
|
149
|
-
}
|
|
150
|
-
//#endregion
|
|
151
|
-
export { T as n, w as t };
|