@nilloq/ouds-web 0.1.3 → 0.1.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/button-BPOKh6G4.js +79 -0
- package/dist/button-LlRiSiGS.js +76 -0
- package/dist/button.js +2 -2
- package/dist/{checkbox-CS0xyJ93.js → checkbox-D-A_bSBK.js} +16 -16
- package/dist/checkbox.js +1 -1
- package/dist/elements-button.js +2 -2
- package/dist/elements-checkbox.js +1 -1
- package/dist/elements-select.js +1 -1
- package/dist/elements-tag.js +2 -2
- package/dist/elements-text-input.js +1 -1
- package/dist/elements.js +7 -7
- package/dist/index.js +6 -6
- package/dist/{runtime-dom.esm-bundler-Bh0p0Jto.js → runtime-dom.esm-bundler-BzNNnH8h.js} +321 -318
- package/dist/{select-6rG9CVMu.js → select-CA6TVlpX.js} +4 -4
- package/dist/select.js +1 -1
- package/dist/{tag-XX1_lffX.js → tag-B2qhuHjk.js} +9 -2
- package/dist/{tag-Gq6ZayFl.js → tag-BY32Hj5n.js} +13 -6
- package/dist/tag.js +2 -2
- package/dist/text-input-DOUGu0A2.js +180 -0
- package/dist/text-input-t-iE4dFj.js +130 -0
- package/dist/text-input.js +1 -1
- package/dist/types/components/button/Button.vue.d.ts +3 -1
- package/dist/types/components/button/button.options.d.ts +8 -0
- package/dist/types/components/button/button.types.d.ts +3 -3
- package/dist/types/components/tag/Tag.vue.d.ts +2 -2
- package/dist/types/components/tag/tag.options.d.ts +4 -0
- package/dist/types/components/tag/tag.types.d.ts +3 -2
- package/dist/types/components/text-input/TextInput.vue.d.ts +11 -1
- package/dist/types/components/text-input/VueTextInput.vue.d.ts +5 -1
- package/dist/types/components/text-input/text-input.types.d.ts +6 -0
- package/dist/types/elements/button.d.ts +1 -0
- package/dist/types/elements/index.d.ts +2 -0
- package/dist/types/elements/tag.d.ts +1 -0
- package/dist/types/vue/button.d.ts +1 -0
- package/dist/types/vue/index.d.ts +2 -0
- package/dist/types/vue/tag.d.ts +1 -0
- package/dist/vue-button.js +2 -2
- package/dist/vue-tag.js +2 -2
- package/dist/vue-text-input.js +1 -1
- package/dist/vue.js +6 -6
- package/package.json +4 -1
- package/dist/button-DdoJkL_N.js +0 -59
- package/dist/button-z6rNROko.js +0 -62
- package/dist/text-input-9GVktDML.js +0 -113
- package/dist/text-input-DLbvTlpY.js +0 -73
package/dist/button-DdoJkL_N.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c } from "vue";
|
|
2
|
-
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var l = ["type", "disabled"], u = {
|
|
4
|
-
key: 0,
|
|
5
|
-
viewBox: "0 0 40 40",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
class: "loader",
|
|
8
|
-
"aria-hidden": "true"
|
|
9
|
-
}, d = {
|
|
10
|
-
key: 1,
|
|
11
|
-
role: "status",
|
|
12
|
-
class: "visually-hidden"
|
|
13
|
-
}, f = /* @__PURE__ */ a({
|
|
14
|
-
__name: "Button",
|
|
15
|
-
props: {
|
|
16
|
-
type: { default: "button" },
|
|
17
|
-
variant: { default: "default" },
|
|
18
|
-
size: { default: "medium" },
|
|
19
|
-
iconOnly: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
disabled: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
|
-
},
|
|
27
|
-
loading: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(a) {
|
|
33
|
-
let f = e(() => [
|
|
34
|
-
"btn",
|
|
35
|
-
`btn-${a.variant}`,
|
|
36
|
-
{
|
|
37
|
-
"btn-icon": a.iconOnly,
|
|
38
|
-
"btn-small": a.size === "small",
|
|
39
|
-
"loading-indeterminate": a.loading
|
|
40
|
-
}
|
|
41
|
-
]), p = e(() => a.type === "submit" || a.type === "reset" ? a.type : "button");
|
|
42
|
-
return (e, m) => (s(), n("button", {
|
|
43
|
-
class: o(f.value),
|
|
44
|
-
type: p.value,
|
|
45
|
-
disabled: a.disabled || a.loading
|
|
46
|
-
}, [
|
|
47
|
-
c(e.$slots, "default", {}, () => [m[0] ||= i("Button", -1)]),
|
|
48
|
-
a.loading ? (s(), n("svg", u, [...m[1] ||= [r("circle", {
|
|
49
|
-
class: "loader-inner",
|
|
50
|
-
cx: "20",
|
|
51
|
-
cy: "20",
|
|
52
|
-
r: "17"
|
|
53
|
-
}, null, -1)]])) : t("", !0),
|
|
54
|
-
a.loading ? (s(), n("span", d, "Loading")) : t("", !0)
|
|
55
|
-
], 10, l));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
//#endregion
|
|
59
|
-
export { f as t };
|
package/dist/button-z6rNROko.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, f as n, i as r, o as i, r as a, s as o, t as s, u as c, v as l } from "./runtime-dom.esm-bundler-Bh0p0Jto.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
|
-
viewBox: "0 0 40 40",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
class: "loader",
|
|
8
|
-
"aria-hidden": "true"
|
|
9
|
-
}, f = {
|
|
10
|
-
key: 1,
|
|
11
|
-
role: "status",
|
|
12
|
-
class: "visually-hidden"
|
|
13
|
-
}, p = s(/* @__PURE__ */ t({
|
|
14
|
-
__name: "Button",
|
|
15
|
-
props: {
|
|
16
|
-
type: { default: "button" },
|
|
17
|
-
variant: { default: "default" },
|
|
18
|
-
size: { default: "medium" },
|
|
19
|
-
iconOnly: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
disabled: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
|
-
},
|
|
27
|
-
loading: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(t) {
|
|
33
|
-
let s = a(() => [
|
|
34
|
-
"btn",
|
|
35
|
-
`btn-${t.variant}`,
|
|
36
|
-
{
|
|
37
|
-
"btn-icon": t.iconOnly,
|
|
38
|
-
"btn-small": t.size === "small",
|
|
39
|
-
"loading-indeterminate": t.loading
|
|
40
|
-
}
|
|
41
|
-
]), p = a(() => t.type === "submit" || t.type === "reset" ? t.type : "button");
|
|
42
|
-
return (a, m) => (c(), i("button", {
|
|
43
|
-
class: l(s.value),
|
|
44
|
-
type: p.value,
|
|
45
|
-
disabled: t.disabled || t.loading
|
|
46
|
-
}, [
|
|
47
|
-
n(a.$slots, "default", {}, () => [m[0] ||= o("Button", -1)]),
|
|
48
|
-
t.loading ? (c(), i("svg", d, [...m[1] ||= [r("circle", {
|
|
49
|
-
class: "loader-inner",
|
|
50
|
-
cx: "20",
|
|
51
|
-
cy: "20",
|
|
52
|
-
r: "17"
|
|
53
|
-
}, null, -1)]])) : e("", !0),
|
|
54
|
-
t.loading ? (c(), i("span", f, "Loading")) : e("", !0)
|
|
55
|
-
], 10, u));
|
|
56
|
-
}
|
|
57
|
-
}), { shadowRoot: !1 });
|
|
58
|
-
function m() {
|
|
59
|
-
typeof customElements < "u" && (customElements.get("ouds-button") || customElements.define("ouds-button", p));
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { m as n, p as t };
|
|
@@ -1,113 +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, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h, useId as g, useModel as _, withCtx as v } from "vue";
|
|
2
|
-
//#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var y = { class: "text-input" }, b = ["for"], x = [
|
|
4
|
-
"id",
|
|
5
|
-
"type",
|
|
6
|
-
"placeholder",
|
|
7
|
-
"value",
|
|
8
|
-
"disabled",
|
|
9
|
-
"readonly",
|
|
10
|
-
"required",
|
|
11
|
-
"aria-describedby"
|
|
12
|
-
], S = ["id"], C = /* @__PURE__ */ s({
|
|
13
|
-
inheritAttrs: !1,
|
|
14
|
-
__name: "TextInput",
|
|
15
|
-
props: {
|
|
16
|
-
id: {},
|
|
17
|
-
label: { default: "Text input" },
|
|
18
|
-
placeholder: { default: " " },
|
|
19
|
-
helperText: { default: "" },
|
|
20
|
-
value: { default: "" },
|
|
21
|
-
type: { default: "text" },
|
|
22
|
-
outlined: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
readonly: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
required: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
setup(t) {
|
|
40
|
-
let a = h(), s = g(), c = e(() => t.id || `ouds-text-input-${s}`), _ = e(() => `${c.value}-helper`), v = e(() => {
|
|
41
|
-
let e = [a["aria-describedby"]];
|
|
42
|
-
return t.helperText && e.push(_.value), e.filter(Boolean).join(" ") || void 0;
|
|
43
|
-
}), C = e(() => ["text-input-container", { "text-input-container-outlined": t.outlined }]);
|
|
44
|
-
return (e, s) => (d(), r("div", y, [i("div", { class: u(C.value) }, [
|
|
45
|
-
f(e.$slots, "leading"),
|
|
46
|
-
i("label", {
|
|
47
|
-
for: c.value,
|
|
48
|
-
class: u({ "is-required": t.required })
|
|
49
|
-
}, [f(e.$slots, "label", {}, () => [o(p(t.label), 1)])], 10, b),
|
|
50
|
-
i("input", l(m(a), {
|
|
51
|
-
id: c.value,
|
|
52
|
-
type: t.type,
|
|
53
|
-
class: "text-input-field",
|
|
54
|
-
placeholder: t.placeholder,
|
|
55
|
-
value: t.value,
|
|
56
|
-
disabled: t.disabled,
|
|
57
|
-
readonly: t.readonly,
|
|
58
|
-
required: t.required,
|
|
59
|
-
"aria-describedby": v.value
|
|
60
|
-
}), null, 16, x),
|
|
61
|
-
f(e.$slots, "trailing")
|
|
62
|
-
], 2), t.helperText ? (d(), r("p", {
|
|
63
|
-
key: 0,
|
|
64
|
-
id: _.value,
|
|
65
|
-
class: "helper-text"
|
|
66
|
-
}, [f(e.$slots, "helper", {}, () => [o(p(t.helperText), 1)])], 8, S)) : n("", !0)]));
|
|
67
|
-
}
|
|
68
|
-
}), w = /* @__PURE__ */ s({
|
|
69
|
-
inheritAttrs: !1,
|
|
70
|
-
__name: "VueTextInput",
|
|
71
|
-
props: {
|
|
72
|
-
modelValue: { default: "" },
|
|
73
|
-
modelModifiers: {}
|
|
74
|
-
},
|
|
75
|
-
emits: /*@__PURE__*/ c(["input", "change"], ["update:modelValue"]),
|
|
76
|
-
setup(e, { emit: n }) {
|
|
77
|
-
let r = _(e, "modelValue"), i = n;
|
|
78
|
-
function o(e) {
|
|
79
|
-
r.value = e.target.value, i("input", e);
|
|
80
|
-
}
|
|
81
|
-
function s(e) {
|
|
82
|
-
r.value = e.target.value, i("change", e);
|
|
83
|
-
}
|
|
84
|
-
return (e, n) => (d(), t(C, l(e.$attrs, {
|
|
85
|
-
value: r.value,
|
|
86
|
-
onInput: o,
|
|
87
|
-
onChange: s
|
|
88
|
-
}), a({ _: 2 }, [
|
|
89
|
-
e.$slots.label ? {
|
|
90
|
-
name: "label",
|
|
91
|
-
fn: v(() => [f(e.$slots, "label")]),
|
|
92
|
-
key: "0"
|
|
93
|
-
} : void 0,
|
|
94
|
-
e.$slots.leading ? {
|
|
95
|
-
name: "leading",
|
|
96
|
-
fn: v(() => [f(e.$slots, "leading")]),
|
|
97
|
-
key: "1"
|
|
98
|
-
} : void 0,
|
|
99
|
-
e.$slots.trailing ? {
|
|
100
|
-
name: "trailing",
|
|
101
|
-
fn: v(() => [f(e.$slots, "trailing")]),
|
|
102
|
-
key: "2"
|
|
103
|
-
} : void 0,
|
|
104
|
-
e.$slots.helper ? {
|
|
105
|
-
name: "helper",
|
|
106
|
-
fn: v(() => [f(e.$slots, "helper")]),
|
|
107
|
-
key: "3"
|
|
108
|
-
} : void 0
|
|
109
|
-
]), 1040, ["value"]));
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
//#endregion
|
|
113
|
-
export { w as t };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, f as r, i, l as a, m as o, o as s, p as c, r as l, s as u, t as d, u as f, v as p, y as m } from "./runtime-dom.esm-bundler-Bh0p0Jto.js";
|
|
2
|
-
//#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var h = { class: "text-input" }, g = ["for"], _ = [
|
|
4
|
-
"id",
|
|
5
|
-
"type",
|
|
6
|
-
"placeholder",
|
|
7
|
-
"value",
|
|
8
|
-
"disabled",
|
|
9
|
-
"readonly",
|
|
10
|
-
"required",
|
|
11
|
-
"aria-describedby"
|
|
12
|
-
], v = ["id"], y = d(/* @__PURE__ */ n({
|
|
13
|
-
inheritAttrs: !1,
|
|
14
|
-
__name: "TextInput",
|
|
15
|
-
props: {
|
|
16
|
-
id: {},
|
|
17
|
-
label: { default: "Text input" },
|
|
18
|
-
placeholder: { default: " " },
|
|
19
|
-
helperText: { default: "" },
|
|
20
|
-
value: { default: "" },
|
|
21
|
-
type: { default: "text" },
|
|
22
|
-
outlined: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
readonly: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
required: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
setup(n) {
|
|
40
|
-
let d = c(), y = o(), b = l(() => n.id || `ouds-text-input-${y}`), x = l(() => `${b.value}-helper`), S = l(() => {
|
|
41
|
-
let e = [d["aria-describedby"]];
|
|
42
|
-
return n.helperText && e.push(x.value), e.filter(Boolean).join(" ") || void 0;
|
|
43
|
-
}), C = l(() => ["text-input-container", { "text-input-container-outlined": n.outlined }]);
|
|
44
|
-
return (o, c) => (f(), s("div", h, [i("div", { class: p(C.value) }, [
|
|
45
|
-
r(o.$slots, "leading"),
|
|
46
|
-
i("label", {
|
|
47
|
-
for: b.value,
|
|
48
|
-
class: p({ "is-required": n.required })
|
|
49
|
-
}, [r(o.$slots, "label", {}, () => [u(m(n.label), 1)])], 10, g),
|
|
50
|
-
i("input", a(e(d), {
|
|
51
|
-
id: b.value,
|
|
52
|
-
type: n.type,
|
|
53
|
-
class: "text-input-field",
|
|
54
|
-
placeholder: n.placeholder,
|
|
55
|
-
value: n.value,
|
|
56
|
-
disabled: n.disabled,
|
|
57
|
-
readonly: n.readonly,
|
|
58
|
-
required: n.required,
|
|
59
|
-
"aria-describedby": S.value
|
|
60
|
-
}), null, 16, _),
|
|
61
|
-
r(o.$slots, "trailing")
|
|
62
|
-
], 2), n.helperText ? (f(), s("p", {
|
|
63
|
-
key: 0,
|
|
64
|
-
id: x.value,
|
|
65
|
-
class: "helper-text"
|
|
66
|
-
}, [r(o.$slots, "helper", {}, () => [u(m(n.helperText), 1)])], 8, v)) : t("", !0)]));
|
|
67
|
-
}
|
|
68
|
-
}), { shadowRoot: !1 });
|
|
69
|
-
function b() {
|
|
70
|
-
typeof customElements < "u" && (customElements.get("ouds-text-input") || customElements.define("ouds-text-input", y));
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
export { b as n, y as t };
|