@nilloq/ouds-web 0.1.0 → 0.1.3

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 (59) hide show
  1. package/README.md +15 -38
  2. package/dist/button-DdoJkL_N.js +59 -0
  3. package/dist/button-z6rNROko.js +62 -0
  4. package/dist/button.js +1 -1
  5. package/dist/checkbox-BYrgMhwO.js +105 -0
  6. package/dist/checkbox-CS0xyJ93.js +79 -0
  7. package/dist/checkbox.js +5 -0
  8. package/dist/elements-button.js +1 -1
  9. package/dist/elements-checkbox.js +2 -0
  10. package/dist/elements-select.js +2 -0
  11. package/dist/elements-tag.js +1 -1
  12. package/dist/elements-text-input.js +2 -0
  13. package/dist/elements.js +7 -4
  14. package/dist/index.js +6 -3
  15. package/dist/{runtime-dom.esm-bundler-aqFyuQnx.js → runtime-dom.esm-bundler-Bh0p0Jto.js} +1038 -855
  16. package/dist/select-6rG9CVMu.js +58 -0
  17. package/dist/select-CKHEHpJL.js +80 -0
  18. package/dist/select.js +5 -0
  19. package/dist/{tag-BGpa_wYn.js → tag-Gq6ZayFl.js} +8 -8
  20. package/dist/tag.js +1 -1
  21. package/dist/text-input-9GVktDML.js +113 -0
  22. package/dist/text-input-DLbvTlpY.js +73 -0
  23. package/dist/text-input.js +5 -0
  24. package/dist/types/checkbox.d.ts +2 -0
  25. package/dist/types/components/button/Button.vue.d.ts +5 -4
  26. package/dist/types/components/button/button.types.d.ts +11 -6
  27. package/dist/types/components/checkbox/Checkbox.vue.d.ts +26 -0
  28. package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +24 -0
  29. package/dist/types/components/checkbox/checkbox.types.d.ts +14 -0
  30. package/dist/types/components/select/Select.vue.d.ts +26 -0
  31. package/dist/types/components/select/VueSelect.vue.d.ts +24 -0
  32. package/dist/types/components/select/select.types.d.ts +12 -0
  33. package/dist/types/components/tag/Tag.vue.d.ts +2 -2
  34. package/dist/types/components/tag/tag.types.d.ts +5 -5
  35. package/dist/types/components/text-input/TextInput.vue.d.ts +31 -0
  36. package/dist/types/components/text-input/VueTextInput.vue.d.ts +30 -0
  37. package/dist/types/components/text-input/text-input.types.d.ts +14 -0
  38. package/dist/types/elements/button.d.ts +3 -3
  39. package/dist/types/elements/checkbox.d.ts +4 -0
  40. package/dist/types/elements/index.d.ts +6 -0
  41. package/dist/types/elements/select.d.ts +4 -0
  42. package/dist/types/elements/tag.d.ts +3 -3
  43. package/dist/types/elements/text-input.d.ts +4 -0
  44. package/dist/types/select.d.ts +2 -0
  45. package/dist/types/text-input.d.ts +2 -0
  46. package/dist/types/vue/button.d.ts +1 -1
  47. package/dist/types/vue/checkbox.d.ts +2 -0
  48. package/dist/types/vue/index.d.ts +8 -2
  49. package/dist/types/vue/select.d.ts +2 -0
  50. package/dist/types/vue/tag.d.ts +1 -1
  51. package/dist/types/vue/text-input.d.ts +2 -0
  52. package/dist/vue-button.js +1 -1
  53. package/dist/vue-checkbox.js +2 -0
  54. package/dist/vue-select.js +2 -0
  55. package/dist/vue-text-input.js +2 -0
  56. package/dist/vue.js +5 -2
  57. package/package.json +50 -12
  58. package/dist/button-BxUIuMAv.js +0 -38
  59. package/dist/button-C5MSESb5.js +0 -35
@@ -0,0 +1,58 @@
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";
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: 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), {
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
+ }, g(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
+ }, g(n.helperText), 9, b)) : t("", !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 };
@@ -0,0 +1,80 @@
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/select.js ADDED
@@ -0,0 +1,5 @@
1
+ import { n as e, t } from "./select-6rG9CVMu.js";
2
+ //#region src/select.ts
3
+ e();
4
+ //#endregion
5
+ export { t as OudsSelect, e as defineOudsSelect };
@@ -1,10 +1,10 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./runtime-dom.esm-bundler-aqFyuQnx.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, v as c } from "./runtime-dom.esm-bundler-Bh0p0Jto.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 = c(/* @__PURE__ */ a({
7
+ }, u = o(/* @__PURE__ */ t({
8
8
  __name: "Tag",
9
9
  props: {
10
10
  variant: { default: "neutral" },
@@ -18,16 +18,16 @@ var l = {
18
18
  default: !1
19
19
  }
20
20
  },
21
- setup(a) {
22
- let c = i(() => [
21
+ setup(t) {
22
+ let o = i(() => [
23
23
  "tag",
24
- a.variant !== "neutral" && `tag-${a.variant}`,
24
+ t.variant !== "neutral" && `tag-${t.variant}`,
25
25
  {
26
- "tag-muted": a.muted,
27
- "tag-small": a.size === "small"
26
+ "tag-muted": t.muted,
27
+ "tag-small": t.size === "small"
28
28
  }
29
29
  ]);
30
- return (i, u) => (s(), n("span", { class: r(c.value) }, [a.statusIcon ? (s(), n("span", l)) : o("", !0), t(i.$slots, "default", {}, () => [u[0] ||= e("Tag", -1)])], 2));
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
32
  }), { shadowRoot: !1 });
33
33
  function d() {
package/dist/tag.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./tag-BGpa_wYn.js";
1
+ import { n as e, t } from "./tag-Gq6ZayFl.js";
2
2
  export { t as OudsTag, e as defineOudsTag };
@@ -0,0 +1,113 @@
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 };
@@ -0,0 +1,73 @@
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 };
@@ -0,0 +1,5 @@
1
+ import { n as e, t } from "./text-input-DLbvTlpY.js";
2
+ //#region src/text-input.ts
3
+ e();
4
+ //#endregion
5
+ export { t as OudsTextInput, e as defineOudsTextInput };
@@ -0,0 +1,2 @@
1
+ export { OudsCheckbox, defineOudsCheckbox } from "./elements/checkbox.js";
2
+ export type * from "./components/checkbox/checkbox.types.js";
@@ -1,10 +1,11 @@
1
- import type { OudsButtonVariant } from "./button.types.js";
1
+ import type { ButtonType, ButtonVariant, ButtonSize } from "./button.types.js";
2
2
  type __VLS_Props = {
3
- type?: "button" | "submit" | "reset";
4
- variant?: OudsButtonVariant;
5
- size?: "medium" | "small";
3
+ type?: ButtonType;
4
+ variant?: ButtonVariant;
5
+ size?: ButtonSize;
6
6
  iconOnly?: boolean;
7
7
  disabled?: boolean;
8
+ loading?: boolean;
8
9
  };
9
10
  declare var __VLS_1: {};
10
11
  type __VLS_Slots = {} & {
@@ -1,9 +1,14 @@
1
- export type OudsButtonVariant = "default" | "strong" | "brand" | "minimal" | "negative";
2
- export type OudsButtonElement = HTMLElement & {
3
- variant: OudsButtonVariant;
4
- type: "button" | "submit" | "reset";
1
+ export type ButtonType = "button" | "submit" | "reset";
2
+ export type ButtonVariant = "default" | "strong" | "brand" | "minimal" | "negative";
3
+ export type ButtonSize = "medium" | "small";
4
+ export type ButtonElement = HTMLElement & {
5
+ type: ButtonType;
6
+ variant: ButtonVariant;
7
+ size: ButtonSize;
8
+ iconOnly: boolean;
5
9
  disabled: boolean;
10
+ loading: boolean;
6
11
  };
7
- export type OudsButtonConstructor = CustomElementConstructor & {
8
- new (initialProps?: Partial<OudsButtonElement>): OudsButtonElement;
12
+ export type ButtonConstructor = CustomElementConstructor & {
13
+ new (initialProps?: Partial<ButtonElement>): ButtonElement;
9
14
  };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ label?: string;
4
+ description?: string;
5
+ value?: string;
6
+ checked?: boolean;
7
+ disabled?: boolean;
8
+ required?: boolean;
9
+ divider?: boolean;
10
+ indeterminate?: boolean;
11
+ };
12
+ declare var __VLS_1: {}, __VLS_3: {};
13
+ type __VLS_Slots = {} & {
14
+ label?: (props: typeof __VLS_1) => any;
15
+ } & {
16
+ asset?: (props: typeof __VLS_3) => any;
17
+ };
18
+ 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>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,24 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue?: boolean;
3
+ };
4
+ declare var __VLS_10: {}, __VLS_13: {};
5
+ type __VLS_Slots = {} & {
6
+ label?: (props: typeof __VLS_10) => any;
7
+ } & {
8
+ asset?: (props: typeof __VLS_13) => any;
9
+ };
10
+ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
11
+ change: (event: Event) => any;
12
+ "update:modelValue": (value: boolean) => any;
13
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
14
+ onChange?: ((event: Event) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,14 @@
1
+ export type CheckboxElement = HTMLElement & {
2
+ id: string;
3
+ label: string;
4
+ description: string;
5
+ value: string;
6
+ checked: boolean;
7
+ disabled: boolean;
8
+ required: boolean;
9
+ divider: boolean;
10
+ indeterminate: boolean;
11
+ };
12
+ export type CheckboxConstructor = CustomElementConstructor & {
13
+ new (initialProps?: Partial<CheckboxElement>): CheckboxElement;
14
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ label?: string;
4
+ options?: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ helperText?: string;
9
+ value?: string;
10
+ outlined?: boolean;
11
+ disabled?: boolean;
12
+ required?: boolean;
13
+ };
14
+ declare var __VLS_1: {};
15
+ type __VLS_Slots = {} & {
16
+ label?: (props: typeof __VLS_1) => any;
17
+ };
18
+ 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>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,24 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue?: string;
3
+ };
4
+ declare var __VLS_10: {}, __VLS_12: {};
5
+ type __VLS_Slots = {} & {
6
+ label?: (props: typeof __VLS_10) => any;
7
+ } & {
8
+ default?: (props: typeof __VLS_12) => any;
9
+ };
10
+ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
11
+ change: (event: Event) => any;
12
+ "update:modelValue": (value: string) => any;
13
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
14
+ onChange?: ((event: Event) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,12 @@
1
+ export type SelectElement = HTMLElement & {
2
+ id: string;
3
+ label: string;
4
+ helperText: string;
5
+ value: string;
6
+ outlined: boolean;
7
+ disabled: boolean;
8
+ required: boolean;
9
+ };
10
+ export type SelectConstructor = CustomElementConstructor & {
11
+ new (initialProps?: Partial<SelectElement>): SelectElement;
12
+ };
@@ -1,6 +1,6 @@
1
- import type { OudsTagVariant } from "./tag.types.js";
1
+ import type { TagVariant } from "./tag.types.js";
2
2
  type __VLS_Props = {
3
- variant?: OudsTagVariant;
3
+ variant?: TagVariant;
4
4
  statusIcon?: boolean;
5
5
  size?: "medium" | "small";
6
6
  muted?: boolean;
@@ -1,9 +1,9 @@
1
- export type OudsTagVariant = "neutral" | "accent" | "positive" | "info" | "warning" | "negative";
2
- export type OudsTagElement = HTMLElement & {
3
- variant: OudsTagVariant;
1
+ export type TagVariant = "neutral" | "accent" | "positive" | "info" | "warning" | "negative";
2
+ export type TagElement = HTMLElement & {
3
+ variant: TagVariant;
4
4
  size: "medium" | "small";
5
5
  muted: boolean;
6
6
  };
7
- export type OudsTagConstructor = CustomElementConstructor & {
8
- new (initialProps?: Partial<OudsTagElement>): OudsTagElement;
7
+ export type TagConstructor = CustomElementConstructor & {
8
+ new (initialProps?: Partial<TagElement>): TagElement;
9
9
  };
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ label?: string;
4
+ placeholder?: string;
5
+ helperText?: string;
6
+ value?: string;
7
+ type?: string;
8
+ outlined?: boolean;
9
+ disabled?: boolean;
10
+ readonly?: boolean;
11
+ required?: boolean;
12
+ };
13
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
14
+ type __VLS_Slots = {} & {
15
+ leading?: (props: typeof __VLS_1) => any;
16
+ } & {
17
+ label?: (props: typeof __VLS_3) => any;
18
+ } & {
19
+ trailing?: (props: typeof __VLS_5) => any;
20
+ } & {
21
+ helper?: (props: typeof __VLS_7) => any;
22
+ };
23
+ 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
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,30 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue?: string;
3
+ };
4
+ declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {};
5
+ type __VLS_Slots = {} & {
6
+ label?: (props: typeof __VLS_11) => any;
7
+ } & {
8
+ leading?: (props: typeof __VLS_14) => any;
9
+ } & {
10
+ trailing?: (props: typeof __VLS_17) => any;
11
+ } & {
12
+ helper?: (props: typeof __VLS_20) => any;
13
+ };
14
+ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
15
+ input: (event: Event) => any;
16
+ change: (event: Event) => any;
17
+ "update:modelValue": (value: string) => any;
18
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
19
+ onInput?: ((event: Event) => any) | undefined;
20
+ onChange?: ((event: Event) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,14 @@
1
+ export type TextInputElement = HTMLElement & {
2
+ id: string;
3
+ label: string;
4
+ helperText: string;
5
+ value: string;
6
+ type: string;
7
+ outlined: boolean;
8
+ disabled: boolean;
9
+ readonly: boolean;
10
+ required: boolean;
11
+ };
12
+ export type TextInputConstructor = CustomElementConstructor & {
13
+ new (initialProps?: Partial<TextInputElement>): TextInputElement;
14
+ };