@nilloq/ouds-web 0.1.4 → 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 +19 -15
- package/dist/types/components/text-input/VueTextInput.vue.d.ts +17 -13
- package/dist/types/components/text-input/text-input.types.d.ts +3 -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-DOUGu0A2.js +0 -180
- package/dist/text-input-t-iE4dFj.js +0 -130
|
@@ -1,130 +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, o as c, p as l, r as u, s as d, t as f, u as p, v as m, y as h } from "./runtime-dom.esm-bundler-BzNNnH8h.js";
|
|
2
|
-
//#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var g = { class: "text-input" }, _ = ["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 = f(/* @__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
|
-
},
|
|
63
|
-
setup(n) {
|
|
64
|
-
let f = l(), w = i(), T = s(), E = u(() => n.id || `ouds-text-input-${T}`), D = u(() => `${E.value}-helper`), O = u(() => `${E.value}-error`), k = u(() => `${E.value}-label`), A = u(() => `${E.value}-helper-link`), j = u(() => {
|
|
65
|
-
let e = [f["aria-describedby"]];
|
|
66
|
-
return n.helperText && !n.invalid && e.push(D.value), n.invalid && (n.errorText || w.error) && e.push(O.value), n.helperLinkHref && (n.helperLink || w["helper-link"]) && e.push(A.value), e.filter(Boolean).join(" ") || void 0;
|
|
67
|
-
}), M = u(() => ["text-input-container", { "text-input-container-outlined": n.outlined }]);
|
|
68
|
-
return (i, s) => (p(), c("div", g, [
|
|
69
|
-
a("div", { class: h(M.value) }, [
|
|
70
|
-
r(i.$slots, "leading"),
|
|
71
|
-
a("label", {
|
|
72
|
-
id: k.value,
|
|
73
|
-
for: E.value,
|
|
74
|
-
class: h({ "is-required": n.required })
|
|
75
|
-
}, [r(i.$slots, "label", {}, () => [d(t(n.label), 1)])], 10, _),
|
|
76
|
-
n.prefix || n.suffix ? (p(), c("div", {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: "input-container",
|
|
79
|
-
"data-bs-prefix": n.prefix || void 0,
|
|
80
|
-
"data-bs-suffix": n.suffix || void 0
|
|
81
|
-
}, [a("input", o(m(f), {
|
|
82
|
-
id: E.value,
|
|
83
|
-
type: n.type,
|
|
84
|
-
class: "text-input-field",
|
|
85
|
-
placeholder: n.placeholder,
|
|
86
|
-
value: n.value,
|
|
87
|
-
disabled: n.disabled,
|
|
88
|
-
readonly: n.readonly,
|
|
89
|
-
required: n.required,
|
|
90
|
-
"aria-describedby": j.value,
|
|
91
|
-
"aria-invalid": n.invalid
|
|
92
|
-
}), null, 16, y)], 8, v)) : (p(), c("input", o({ key: 1 }, m(f), {
|
|
93
|
-
id: E.value,
|
|
94
|
-
type: n.type,
|
|
95
|
-
class: "text-input-field",
|
|
96
|
-
placeholder: n.placeholder,
|
|
97
|
-
value: n.value,
|
|
98
|
-
disabled: n.disabled,
|
|
99
|
-
readonly: n.readonly,
|
|
100
|
-
required: n.required,
|
|
101
|
-
"aria-describedby": j.value,
|
|
102
|
-
"aria-invalid": n.invalid
|
|
103
|
-
}), null, 16, b)),
|
|
104
|
-
r(i.$slots, "trailing")
|
|
105
|
-
], 2),
|
|
106
|
-
n.helperText && !n.invalid ? (p(), c("p", {
|
|
107
|
-
key: 0,
|
|
108
|
-
id: D.value,
|
|
109
|
-
class: "helper-text"
|
|
110
|
-
}, [r(i.$slots, "helper", {}, () => [d(t(n.helperText), 1)])], 8, x)) : e("", !0),
|
|
111
|
-
n.invalid && (n.errorText || i.$slots.error) ? (p(), c("p", {
|
|
112
|
-
key: 1,
|
|
113
|
-
id: O.value,
|
|
114
|
-
class: "error-text"
|
|
115
|
-
}, [r(i.$slots, "error", {}, () => [d(t(n.errorText), 1)])], 8, S)) : e("", !0),
|
|
116
|
-
n.helperLinkHref && (n.helperLink || i.$slots["helper-link"]) ? (p(), c("a", {
|
|
117
|
-
key: 2,
|
|
118
|
-
id: A.value,
|
|
119
|
-
href: n.helperLinkHref,
|
|
120
|
-
"aria-labelledby": `${A.value} ${k.value}`,
|
|
121
|
-
class: "link link-small"
|
|
122
|
-
}, [r(i.$slots, "helper-link", {}, () => [d(t(n.helperLink), 1)]), s[0] ||= a("span", { class: "visually-hidden" }, "on", -1)], 8, C)) : e("", !0)
|
|
123
|
-
]));
|
|
124
|
-
}
|
|
125
|
-
}), { shadowRoot: !1 });
|
|
126
|
-
function T() {
|
|
127
|
-
typeof customElements < "u" && (customElements.get("ouds-text-input") || customElements.define("ouds-text-input", w));
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
export { T as n, w as t };
|