@nilloq/ouds-web 0.1.3 → 0.1.5

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.
Files changed (45) hide show
  1. package/dist/button-BPOKh6G4.js +79 -0
  2. package/dist/button-LlRiSiGS.js +76 -0
  3. package/dist/button.js +2 -2
  4. package/dist/{checkbox-CS0xyJ93.js → checkbox-D-A_bSBK.js} +16 -16
  5. package/dist/checkbox.js +1 -1
  6. package/dist/elements-button.js +2 -2
  7. package/dist/elements-checkbox.js +1 -1
  8. package/dist/elements-select.js +1 -1
  9. package/dist/elements-tag.js +2 -2
  10. package/dist/elements-text-input.js +1 -1
  11. package/dist/elements.js +7 -7
  12. package/dist/index.js +6 -6
  13. package/dist/{runtime-dom.esm-bundler-Bh0p0Jto.js → runtime-dom.esm-bundler-BzNNnH8h.js} +321 -318
  14. package/dist/{select-6rG9CVMu.js → select-CA6TVlpX.js} +4 -4
  15. package/dist/select.js +1 -1
  16. package/dist/{tag-XX1_lffX.js → tag-B2qhuHjk.js} +9 -2
  17. package/dist/{tag-Gq6ZayFl.js → tag-BY32Hj5n.js} +13 -6
  18. package/dist/tag.js +2 -2
  19. package/dist/text-input-CtTr5yfe.js +151 -0
  20. package/dist/text-input-l1F2arKl.js +201 -0
  21. package/dist/text-input.js +1 -1
  22. package/dist/types/components/button/Button.vue.d.ts +3 -1
  23. package/dist/types/components/button/button.options.d.ts +8 -0
  24. package/dist/types/components/button/button.types.d.ts +3 -3
  25. package/dist/types/components/tag/Tag.vue.d.ts +2 -2
  26. package/dist/types/components/tag/tag.options.d.ts +4 -0
  27. package/dist/types/components/tag/tag.types.d.ts +3 -2
  28. package/dist/types/components/text-input/TextInput.vue.d.ts +16 -4
  29. package/dist/types/components/text-input/VueTextInput.vue.d.ts +8 -4
  30. package/dist/types/components/text-input/text-input.types.d.ts +8 -0
  31. package/dist/types/elements/button.d.ts +1 -0
  32. package/dist/types/elements/index.d.ts +2 -0
  33. package/dist/types/elements/tag.d.ts +1 -0
  34. package/dist/types/vue/button.d.ts +1 -0
  35. package/dist/types/vue/index.d.ts +2 -0
  36. package/dist/types/vue/tag.d.ts +1 -0
  37. package/dist/vue-button.js +2 -2
  38. package/dist/vue-tag.js +2 -2
  39. package/dist/vue-text-input.js +1 -1
  40. package/dist/vue.js +6 -6
  41. package/package.json +4 -1
  42. package/dist/button-DdoJkL_N.js +0 -59
  43. package/dist/button-z6rNROko.js +0 -62
  44. package/dist/text-input-9GVktDML.js +0 -113
  45. package/dist/text-input-DLbvTlpY.js +0 -73
@@ -1,4 +1,4 @@
1
- import { _ as e, a 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-Bh0p0Jto.js";
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
2
  //#region src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
3
3
  var _ = ["for"], v = [
4
4
  "id",
@@ -30,7 +30,7 @@ var _ = ["for"], v = [
30
30
  },
31
31
  setup(n) {
32
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: h(E.value) }, [a("div", { class: h(T.value) }, [a("label", { for: S.value }, [i(s.$slots, "label", {}, () => [f(g(n.label), 1)])], 8, _), a("select", o(e(p), {
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
34
  id: S.value,
35
35
  "aria-describedby": w.value,
36
36
  class: "select-input-field",
@@ -44,11 +44,11 @@ var _ = ["for"], v = [
44
44
  }, null, -1), (m(!0), l(c, null, r(n.options, (e) => (m(), l("option", {
45
45
  key: e.value,
46
46
  value: e.value
47
- }, g(e.label), 9, y))), 128))], 16, v)], 2), n.helperText ? (m(), l("p", {
47
+ }, t(e.label), 9, y))), 128))], 16, v)], 2), n.helperText ? (m(), l("p", {
48
48
  key: 0,
49
49
  id: C.value,
50
50
  class: "helper-text"
51
- }, g(n.helperText), 9, b)) : t("", !0)], 2));
51
+ }, t(n.helperText), 9, b)) : e("", !0)], 2));
52
52
  }
53
53
  }), { shadowRoot: !1 });
54
54
  function S() {
package/dist/select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./select-6rG9CVMu.js";
1
+ import { n as e, t } from "./select-CA6TVlpX.js";
2
2
  //#region src/select.ts
3
3
  e();
4
4
  //#endregion
@@ -29,6 +29,13 @@ var c = {
29
29
  ]);
30
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
31
  }
32
- });
32
+ }), u = [
33
+ "neutral",
34
+ "accent",
35
+ "positive",
36
+ "info",
37
+ "warning",
38
+ "negative"
39
+ ], d = ["medium", "small"];
33
40
  //#endregion
34
- export { l as t };
41
+ export { u as n, l as r, d as t };
@@ -1,10 +1,10 @@
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, v as c } from "./runtime-dom.esm-bundler-Bh0p0Jto.js";
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
2
  //#region src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
3
3
  var l = {
4
4
  key: 0,
5
5
  class: "tag-status-icon",
6
6
  "aria-hidden": "true"
7
- }, u = o(/* @__PURE__ */ t({
7
+ }, u = /* @__PURE__ */ t({
8
8
  __name: "Tag",
9
9
  props: {
10
10
  variant: { default: "neutral" },
@@ -29,9 +29,16 @@ var l = {
29
29
  ]);
30
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
31
  }
32
- }), { shadowRoot: !1 });
33
- function d() {
34
- typeof customElements < "u" && (customElements.get("ouds-tag") || customElements.define("ouds-tag", u));
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));
35
42
  }
36
43
  //#endregion
37
- export { d as n, u as t };
44
+ export { d as i, m as n, f as r, p as t };
package/dist/tag.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./tag-Gq6ZayFl.js";
2
- export { t as OudsTag, e as defineOudsTag };
1
+ import { i as e, n as t, r as n, t as r } from "./tag-BY32Hj5n.js";
2
+ export { r as OudsTag, t as defineOudsTag, n as tagSizes, e as tagVariants };
@@ -0,0 +1,151 @@
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 };
@@ -0,0 +1,201 @@
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, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useId as _, useModel as v, useSlots as y, withCtx as b } from "vue";
2
+ //#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
3
+ var x = ["id", "for"], S = ["data-bs-prefix", "data-bs-suffix"], C = [
4
+ "id",
5
+ "type",
6
+ "placeholder",
7
+ "value",
8
+ "disabled",
9
+ "readonly",
10
+ "required",
11
+ "aria-describedby",
12
+ "aria-invalid"
13
+ ], w = [
14
+ "id",
15
+ "type",
16
+ "placeholder",
17
+ "value",
18
+ "disabled",
19
+ "readonly",
20
+ "required",
21
+ "aria-describedby",
22
+ "aria-invalid"
23
+ ], T = ["id"], E = ["id"], D = [
24
+ "id",
25
+ "href",
26
+ "aria-labelledby"
27
+ ], O = /* @__PURE__ */ c({
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 o = g(), c = y(), l = _(), v = t(() => n.id || `ouds-text-input-${l}`), b = t(() => `${v.value}-helper`), O = t(() => `${v.value}-error`), k = t(() => `${v.value}-label`), A = t(() => `${v.value}-helper-link`), j = t(() => {
73
+ let e = [o["aria-describedby"]];
74
+ return n.helperText && !n.invalid && e.push(b.value), n.invalid && (n.errorText || c["error-text"]) && e.push(O.value), n.helperLinkHref && (n.helperLink || c["helper-link"]) && e.push(A.value), e.filter(Boolean).join(" ") || void 0;
75
+ }), M = t(() => ["text-input", { "component-max-width": n.maxWidth }]), N = t(() => ["text-input-container", { "text-input-container-outlined": n.outlined }]), P = t(() => ["text-input-field", { "loading-indeterminate": n.loading }]);
76
+ return (t, c) => (f(), i("div", { class: d(M.value) }, [
77
+ a("div", { class: d(N.value) }, [
78
+ p(t.$slots, "leading-icon"),
79
+ a("label", {
80
+ id: k.value,
81
+ for: v.value,
82
+ class: d({ "is-required": n.required })
83
+ }, [p(t.$slots, "label", {}, () => [s(m(n.label), 1)])], 10, x),
84
+ n.prefix || n.suffix ? (f(), i("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", u(h(o), {
90
+ id: v.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, C)], 8, S)) : (f(), i("input", u({ key: 1 }, h(o), {
101
+ id: v.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, w)),
112
+ n.loading ? (f(), i(e, { key: 2 }, [c[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), c[1] ||= a("span", {
123
+ role: "status",
124
+ class: "visually-hidden"
125
+ }, "Loading", -1)], 64)) : p(t.$slots, "trailing-action", {}, void 0, void 0, 3)
126
+ ], 2),
127
+ (n.helperText || t.$slots["helper-text"]) && !n.invalid ? (f(), i("p", {
128
+ key: 0,
129
+ id: b.value,
130
+ class: "helper-text"
131
+ }, [p(t.$slots, "helper-text", {}, () => [s(m(n.helperText), 1)])], 8, T)) : r("", !0),
132
+ n.invalid && (n.errorText || t.$slots["error-text"]) ? (f(), i("p", {
133
+ key: 1,
134
+ id: O.value,
135
+ class: "error-text"
136
+ }, [p(t.$slots, "error-text", {}, () => [s(m(n.errorText), 1)])], 8, E)) : r("", !0),
137
+ n.helperLinkHref && (n.helperLink || t.$slots["helper-link"]) ? (f(), i("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
+ }, [p(t.$slots, "helper-link", {}, () => [s(m(n.helperLink), 1)]), c[2] ||= a("span", { class: "visually-hidden" }, "on", -1)], 8, D)) : r("", !0)
144
+ ], 2));
145
+ }
146
+ }), k = /* @__PURE__ */ c({
147
+ inheritAttrs: !1,
148
+ __name: "VueTextInput",
149
+ props: {
150
+ modelValue: { default: "" },
151
+ modelModifiers: {}
152
+ },
153
+ emits: /*@__PURE__*/ l(["input", "change"], ["update:modelValue"]),
154
+ setup(e, { emit: t }) {
155
+ let r = v(e, "modelValue"), i = t;
156
+ function a(e) {
157
+ r.value = e.target.value, i("input", e);
158
+ }
159
+ function s(e) {
160
+ r.value = e.target.value, i("change", e);
161
+ }
162
+ return (e, t) => (f(), n(O, u(e.$attrs, {
163
+ value: r.value,
164
+ onInput: a,
165
+ onChange: s
166
+ }), o({ _: 2 }, [
167
+ e.$slots.label ? {
168
+ name: "label",
169
+ fn: b(() => [p(e.$slots, "label")]),
170
+ key: "0"
171
+ } : void 0,
172
+ e.$slots["leading-icon"] ? {
173
+ name: "leading-icon",
174
+ fn: b(() => [p(e.$slots, "leading-icon")]),
175
+ key: "1"
176
+ } : void 0,
177
+ e.$slots["trailing-action"] ? {
178
+ name: "trailing-action",
179
+ fn: b(() => [p(e.$slots, "trailing-action")]),
180
+ key: "2"
181
+ } : void 0,
182
+ e.$slots["helper-text"] ? {
183
+ name: "helper-text",
184
+ fn: b(() => [p(e.$slots, "helper-text")]),
185
+ key: "3"
186
+ } : void 0,
187
+ e.$slots["error-text"] ? {
188
+ name: "error-text",
189
+ fn: b(() => [p(e.$slots, "error-text")]),
190
+ key: "4"
191
+ } : void 0,
192
+ e.$slots["helper-link"] ? {
193
+ name: "helper-link",
194
+ fn: b(() => [p(e.$slots, "helper-link")]),
195
+ key: "5"
196
+ } : void 0
197
+ ]), 1040, ["value"]));
198
+ }
199
+ });
200
+ //#endregion
201
+ export { k as t };
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./text-input-DLbvTlpY.js";
1
+ import { n as e, t } from "./text-input-CtTr5yfe.js";
2
2
  //#region src/text-input.ts
3
3
  e();
4
4
  //#endregion
@@ -1,9 +1,11 @@
1
- import type { ButtonType, ButtonVariant, ButtonSize } from "./button.types.js";
1
+ import type { ButtonType, ButtonVariant, ButtonSize, ButtonNavigation } from "./button.types.js";
2
2
  type __VLS_Props = {
3
3
  type?: ButtonType;
4
4
  variant?: ButtonVariant;
5
5
  size?: ButtonSize;
6
6
  iconOnly?: boolean;
7
+ ariaLabel?: string;
8
+ navigation?: ButtonNavigation;
7
9
  disabled?: boolean;
8
10
  loading?: boolean;
9
11
  };
@@ -0,0 +1,8 @@
1
+ export declare const buttonVariants: readonly ["default", "strong", "brand", "minimal", "negative"];
2
+ export declare const buttonSizes: readonly ["medium", "small"];
3
+ export declare const buttonTypes: readonly ["button", "submit", "reset"];
4
+ export declare const buttonNavigations: readonly ["previous", "next"];
5
+ export type ButtonVariant = (typeof buttonVariants)[number];
6
+ export type ButtonSize = (typeof buttonSizes)[number];
7
+ export type ButtonType = (typeof buttonTypes)[number];
8
+ export type ButtonNavigation = (typeof buttonNavigations)[number];
@@ -1,6 +1,5 @@
1
- export type ButtonType = "button" | "submit" | "reset";
2
- export type ButtonVariant = "default" | "strong" | "brand" | "minimal" | "negative";
3
- export type ButtonSize = "medium" | "small";
1
+ import type { ButtonType, ButtonVariant, ButtonSize, ButtonNavigation } from "./button.options.js";
2
+ export type { ButtonType, ButtonVariant, ButtonSize, ButtonNavigation } from "./button.options.js";
4
3
  export type ButtonElement = HTMLElement & {
5
4
  type: ButtonType;
6
5
  variant: ButtonVariant;
@@ -8,6 +7,7 @@ export type ButtonElement = HTMLElement & {
8
7
  iconOnly: boolean;
9
8
  disabled: boolean;
10
9
  loading: boolean;
10
+ navigation?: ButtonNavigation;
11
11
  };
12
12
  export type ButtonConstructor = CustomElementConstructor & {
13
13
  new (initialProps?: Partial<ButtonElement>): ButtonElement;
@@ -1,8 +1,8 @@
1
- import type { TagVariant } from "./tag.types.js";
1
+ import type { TagVariant, TagSize } from "./tag.types.js";
2
2
  type __VLS_Props = {
3
3
  variant?: TagVariant;
4
4
  statusIcon?: boolean;
5
- size?: "medium" | "small";
5
+ size?: TagSize;
6
6
  muted?: boolean;
7
7
  };
8
8
  declare var __VLS_1: {};
@@ -0,0 +1,4 @@
1
+ export declare const tagVariants: readonly ["neutral", "accent", "positive", "info", "warning", "negative"];
2
+ export declare const tagSizes: readonly ["medium", "small"];
3
+ export type TagVariant = (typeof tagVariants)[number];
4
+ export type TagSize = (typeof tagSizes)[number];
@@ -1,7 +1,8 @@
1
- export type TagVariant = "neutral" | "accent" | "positive" | "info" | "warning" | "negative";
1
+ import type { TagVariant, TagSize } from "./tag.options.js";
2
+ export type { TagVariant, TagSize } from "./tag.options.js";
2
3
  export type TagElement = HTMLElement & {
3
4
  variant: TagVariant;
4
- size: "medium" | "small";
5
+ size: TagSize;
5
6
  muted: boolean;
6
7
  };
7
8
  export type TagConstructor = CustomElementConstructor & {
@@ -3,22 +3,34 @@ type __VLS_Props = {
3
3
  label?: string;
4
4
  placeholder?: string;
5
5
  helperText?: string;
6
+ errorText?: string;
7
+ helperLink?: string;
8
+ helperLinkHref?: string;
9
+ prefix?: string;
10
+ suffix?: string;
6
11
  value?: string;
7
12
  type?: string;
8
13
  outlined?: boolean;
9
14
  disabled?: boolean;
10
15
  readonly?: boolean;
11
16
  required?: boolean;
17
+ invalid?: boolean;
18
+ maxWidth?: boolean;
19
+ loading?: boolean;
12
20
  };
13
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
21
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
14
22
  type __VLS_Slots = {} & {
15
- leading?: (props: typeof __VLS_1) => any;
23
+ 'leading-icon'?: (props: typeof __VLS_1) => any;
16
24
  } & {
17
25
  label?: (props: typeof __VLS_3) => any;
18
26
  } & {
19
- trailing?: (props: typeof __VLS_5) => any;
27
+ 'trailing-action'?: (props: typeof __VLS_5) => any;
20
28
  } & {
21
- helper?: (props: typeof __VLS_7) => any;
29
+ 'helper-text'?: (props: typeof __VLS_7) => any;
30
+ } & {
31
+ 'error-text'?: (props: typeof __VLS_9) => any;
32
+ } & {
33
+ 'helper-link'?: (props: typeof __VLS_11) => any;
22
34
  };
23
35
  declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
24
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,15 +1,19 @@
1
1
  type __VLS_ModelProps = {
2
2
  modelValue?: string;
3
3
  };
4
- declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {};
4
+ declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {}, __VLS_26: {};
5
5
  type __VLS_Slots = {} & {
6
6
  label?: (props: typeof __VLS_11) => any;
7
7
  } & {
8
- leading?: (props: typeof __VLS_14) => any;
8
+ 'leading-icon'?: (props: typeof __VLS_14) => any;
9
9
  } & {
10
- trailing?: (props: typeof __VLS_17) => any;
10
+ 'trailing-action'?: (props: typeof __VLS_17) => any;
11
11
  } & {
12
- helper?: (props: typeof __VLS_20) => any;
12
+ 'helper-text'?: (props: typeof __VLS_20) => any;
13
+ } & {
14
+ 'error-text'?: (props: typeof __VLS_23) => any;
15
+ } & {
16
+ 'helper-link'?: (props: typeof __VLS_26) => any;
13
17
  };
14
18
  declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
15
19
  input: (event: Event) => any;
@@ -2,12 +2,20 @@ export type TextInputElement = HTMLElement & {
2
2
  id: string;
3
3
  label: string;
4
4
  helperText: string;
5
+ errorText: string;
6
+ helperLink: string;
7
+ helperLinkHref: string;
8
+ prefix: string;
9
+ suffix: string;
5
10
  value: string;
6
11
  type: string;
7
12
  outlined: boolean;
8
13
  disabled: boolean;
9
14
  readonly: boolean;
10
15
  required: boolean;
16
+ invalid: boolean;
17
+ maxWidth: boolean;
18
+ loading: boolean;
11
19
  };
12
20
  export type TextInputConstructor = CustomElementConstructor & {
13
21
  new (initialProps?: Partial<TextInputElement>): TextInputElement;
@@ -2,3 +2,4 @@ import type { ButtonConstructor } from "../components/button/button.types.js";
2
2
  export type { ButtonConstructor, ButtonElement, ButtonVariant, } from "../components/button/button.types.js";
3
3
  export declare const OudsButton: ButtonConstructor;
4
4
  export declare function defineOudsButton(): void;
5
+ export * from "../components/button/button.options.js";
@@ -8,3 +8,5 @@ export type * from "../components/tag/tag.types.js";
8
8
  export type * from "../components/select/select.types.js";
9
9
  export type * from "../components/checkbox/checkbox.types.js";
10
10
  export type * from "../components/text-input/text-input.types.js";
11
+ export * from "../components/button/button.options.js";
12
+ export * from "../components/tag/tag.options.js";
@@ -2,3 +2,4 @@ import type { TagConstructor } from "../components/tag/tag.types.js";
2
2
  export type { TagConstructor, TagElement, TagVariant } from "../components/tag/tag.types.js";
3
3
  export declare const OudsTag: TagConstructor;
4
4
  export declare function defineOudsTag(): void;
5
+ export * from "../components/tag/tag.options.js";
@@ -1,2 +1,3 @@
1
1
  export { default as OudsButton } from "../components/button/Button.vue";
2
2
  export type { ButtonElement, ButtonVariant } from "../components/button/button.types.js";
3
+ export * from "../components/button/button.options.js";
@@ -8,3 +8,5 @@ export type { TagElement, TagVariant } from "./tag.js";
8
8
  export type { SelectElement } from "../components/select/select.types.js";
9
9
  export type { CheckboxElement } from "../components/checkbox/checkbox.types.js";
10
10
  export type { TextInputElement } from "../components/text-input/text-input.types.js";
11
+ export * from "../components/button/button.options.js";
12
+ export * from "../components/tag/tag.options.js";
@@ -1,2 +1,3 @@
1
1
  export { default as OudsTag } from "../components/tag/Tag.vue";
2
2
  export type { TagElement, TagVariant } from "../components/tag/tag.types.js";
3
+ export * from "../components/tag/tag.options.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "./button-DdoJkL_N.js";
2
- export { e as OudsButton };
1
+ import { a as e, i as t, n, r, t as i } from "./button-LlRiSiGS.js";
2
+ export { e as OudsButton, i as buttonNavigations, n as buttonSizes, r as buttonTypes, t as buttonVariants };
package/dist/vue-tag.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./tag-XX1_lffX.js";
2
- export { e as OudsTag };
1
+ import { n as e, r as t, t as n } from "./tag-B2qhuHjk.js";
2
+ export { t as OudsTag, n as tagSizes, e as tagVariants };