@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.
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-DOUGu0A2.js +180 -0
  20. package/dist/text-input-t-iE4dFj.js +130 -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 +11 -1
  29. package/dist/types/components/text-input/VueTextInput.vue.d.ts +5 -1
  30. package/dist/types/components/text-input/text-input.types.d.ts +6 -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,180 @@
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 _, useSlots as v, withCtx as y } from "vue";
2
+ //#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
3
+ var b = { class: "text-input" }, 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__ */ s({
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(t) {
64
+ let a = h(), s = v(), c = g(), _ = e(() => t.id || `ouds-text-input-${c}`), y = e(() => `${_.value}-helper`), O = e(() => `${_.value}-error`), k = e(() => `${_.value}-label`), A = e(() => `${_.value}-helper-link`), j = e(() => {
65
+ let e = [a["aria-describedby"]];
66
+ return t.helperText && !t.invalid && e.push(y.value), t.invalid && (t.errorText || s.error) && e.push(O.value), t.helperLinkHref && (t.helperLink || s["helper-link"]) && e.push(A.value), e.filter(Boolean).join(" ") || void 0;
67
+ }), M = e(() => ["text-input-container", { "text-input-container-outlined": t.outlined }]);
68
+ return (e, s) => (d(), r("div", b, [
69
+ i("div", { class: u(M.value) }, [
70
+ f(e.$slots, "leading"),
71
+ i("label", {
72
+ id: k.value,
73
+ for: _.value,
74
+ class: u({ "is-required": t.required })
75
+ }, [f(e.$slots, "label", {}, () => [o(p(t.label), 1)])], 10, x),
76
+ t.prefix || t.suffix ? (d(), r("div", {
77
+ key: 0,
78
+ class: "input-container",
79
+ "data-bs-prefix": t.prefix || void 0,
80
+ "data-bs-suffix": t.suffix || void 0
81
+ }, [i("input", l(m(a), {
82
+ id: _.value,
83
+ type: t.type,
84
+ class: "text-input-field",
85
+ placeholder: t.placeholder,
86
+ value: t.value,
87
+ disabled: t.disabled,
88
+ readonly: t.readonly,
89
+ required: t.required,
90
+ "aria-describedby": j.value,
91
+ "aria-invalid": t.invalid
92
+ }), null, 16, C)], 8, S)) : (d(), r("input", l({ key: 1 }, m(a), {
93
+ id: _.value,
94
+ type: t.type,
95
+ class: "text-input-field",
96
+ placeholder: t.placeholder,
97
+ value: t.value,
98
+ disabled: t.disabled,
99
+ readonly: t.readonly,
100
+ required: t.required,
101
+ "aria-describedby": j.value,
102
+ "aria-invalid": t.invalid
103
+ }), null, 16, w)),
104
+ f(e.$slots, "trailing")
105
+ ], 2),
106
+ t.helperText && !t.invalid ? (d(), r("p", {
107
+ key: 0,
108
+ id: y.value,
109
+ class: "helper-text"
110
+ }, [f(e.$slots, "helper", {}, () => [o(p(t.helperText), 1)])], 8, T)) : n("", !0),
111
+ t.invalid && (t.errorText || e.$slots.error) ? (d(), r("p", {
112
+ key: 1,
113
+ id: O.value,
114
+ class: "error-text"
115
+ }, [f(e.$slots, "error", {}, () => [o(p(t.errorText), 1)])], 8, E)) : n("", !0),
116
+ t.helperLinkHref && (t.helperLink || e.$slots["helper-link"]) ? (d(), r("a", {
117
+ key: 2,
118
+ id: A.value,
119
+ href: t.helperLinkHref,
120
+ "aria-labelledby": `${A.value} ${k.value}`,
121
+ class: "link link-small"
122
+ }, [f(e.$slots, "helper-link", {}, () => [o(p(t.helperLink), 1)]), s[0] ||= i("span", { class: "visually-hidden" }, "on", -1)], 8, D)) : n("", !0)
123
+ ]));
124
+ }
125
+ }), k = /* @__PURE__ */ s({
126
+ inheritAttrs: !1,
127
+ __name: "VueTextInput",
128
+ props: {
129
+ modelValue: { default: "" },
130
+ modelModifiers: {}
131
+ },
132
+ emits: /*@__PURE__*/ c(["input", "change"], ["update:modelValue"]),
133
+ setup(e, { emit: n }) {
134
+ let r = _(e, "modelValue"), i = n;
135
+ function o(e) {
136
+ r.value = e.target.value, i("input", e);
137
+ }
138
+ function s(e) {
139
+ r.value = e.target.value, i("change", e);
140
+ }
141
+ return (e, n) => (d(), t(O, l(e.$attrs, {
142
+ value: r.value,
143
+ onInput: o,
144
+ onChange: s
145
+ }), a({ _: 2 }, [
146
+ e.$slots.label ? {
147
+ name: "label",
148
+ fn: y(() => [f(e.$slots, "label")]),
149
+ key: "0"
150
+ } : void 0,
151
+ e.$slots.leading ? {
152
+ name: "leading",
153
+ fn: y(() => [f(e.$slots, "leading")]),
154
+ key: "1"
155
+ } : void 0,
156
+ e.$slots.trailing ? {
157
+ name: "trailing",
158
+ fn: y(() => [f(e.$slots, "trailing")]),
159
+ key: "2"
160
+ } : void 0,
161
+ e.$slots.helper ? {
162
+ name: "helper",
163
+ fn: y(() => [f(e.$slots, "helper")]),
164
+ key: "3"
165
+ } : void 0,
166
+ e.$slots.error ? {
167
+ name: "error",
168
+ fn: y(() => [f(e.$slots, "error")]),
169
+ key: "4"
170
+ } : void 0,
171
+ e.$slots["helper-link"] ? {
172
+ name: "helper-link",
173
+ fn: y(() => [f(e.$slots, "helper-link")]),
174
+ key: "5"
175
+ } : void 0
176
+ ]), 1040, ["value"]));
177
+ }
178
+ });
179
+ //#endregion
180
+ export { k as t };
@@ -0,0 +1,130 @@
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 };
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./text-input-DLbvTlpY.js";
1
+ import { n as e, t } from "./text-input-t-iE4dFj.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,14 +3,20 @@ 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;
12
18
  };
13
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
19
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
14
20
  type __VLS_Slots = {} & {
15
21
  leading?: (props: typeof __VLS_1) => any;
16
22
  } & {
@@ -19,6 +25,10 @@ type __VLS_Slots = {} & {
19
25
  trailing?: (props: typeof __VLS_5) => any;
20
26
  } & {
21
27
  helper?: (props: typeof __VLS_7) => any;
28
+ } & {
29
+ error?: (props: typeof __VLS_9) => any;
30
+ } & {
31
+ 'helper-link'?: (props: typeof __VLS_11) => any;
22
32
  };
23
33
  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
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,7 +1,7 @@
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
  } & {
@@ -10,6 +10,10 @@ type __VLS_Slots = {} & {
10
10
  trailing?: (props: typeof __VLS_17) => any;
11
11
  } & {
12
12
  helper?: (props: typeof __VLS_20) => any;
13
+ } & {
14
+ error?: (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,18 @@ 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;
11
17
  };
12
18
  export type TextInputConstructor = CustomElementConstructor & {
13
19
  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 };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./text-input-9GVktDML.js";
1
+ import { t as e } from "./text-input-DOUGu0A2.js";
2
2
  export { e as OudsTextInput };
package/dist/vue.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as e } from "./button-DdoJkL_N.js";
2
- import { t } from "./tag-XX1_lffX.js";
3
- import { t as n } from "./select-CKHEHpJL.js";
4
- import { t as r } from "./checkbox-BYrgMhwO.js";
5
- import { t as i } from "./text-input-9GVktDML.js";
6
- export { e as OudsButton, r as OudsCheckbox, n as OudsSelect, t as OudsTag, i as OudsTextInput };
1
+ import { a as e, i as t, n, r, t as i } from "./button-LlRiSiGS.js";
2
+ import { n as a, r as o, t as s } from "./tag-B2qhuHjk.js";
3
+ import { t as c } from "./select-CKHEHpJL.js";
4
+ import { t as l } from "./checkbox-BYrgMhwO.js";
5
+ import { t as u } from "./text-input-DOUGu0A2.js";
6
+ export { e as OudsButton, l as OudsCheckbox, c as OudsSelect, o as OudsTag, u as OudsTextInput, i as buttonNavigations, n as buttonSizes, r as buttonTypes, t as buttonVariants, s as tagSizes, a as tagVariants };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nilloq/ouds-web",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Vue components and framework-independent custom elements styled with OUDS Web.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -104,6 +104,9 @@
104
104
  "@vitejs/plugin-vue": "^6.0.10",
105
105
  "@vueuse/core": "^15.0.0",
106
106
  "bumpp": "^12.3.0",
107
+ "marked": "^18.1.1",
108
+ "shiki": "^4.5.0",
109
+ "shiki-transformer-copy-button": "^0.0.6",
107
110
  "typescript": "^5.9.3",
108
111
  "vite-plus": "catalog:",
109
112
  "vue": "^3.5.44",