@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
@@ -0,0 +1,79 @@
1
+ import { a as e, b as t, c as n, f as r, i, o as a, r as o, t as s, u as c, y as l } from "./runtime-dom.esm-bundler-BzNNnH8h.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
+ class: "visually-hidden"
6
+ }, f = {
7
+ key: 1,
8
+ viewBox: "0 0 40 40",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ class: "loader",
11
+ "aria-hidden": "true"
12
+ }, p = {
13
+ key: 2,
14
+ role: "status",
15
+ class: "visually-hidden"
16
+ }, m = /* @__PURE__ */ n({
17
+ __name: "Button",
18
+ props: {
19
+ type: { default: "button" },
20
+ variant: { default: "default" },
21
+ size: { default: "medium" },
22
+ iconOnly: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ ariaLabel: {},
27
+ navigation: {},
28
+ disabled: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ loading: {
33
+ type: Boolean,
34
+ default: !1
35
+ }
36
+ },
37
+ setup(n) {
38
+ let s = o(() => [
39
+ "btn",
40
+ `btn-${n.variant}`,
41
+ {
42
+ "btn-icon": n.iconOnly,
43
+ "btn-small": n.size === "small",
44
+ "loading-indeterminate": n.loading
45
+ },
46
+ ...n.navigation ? [`btn-${n.navigation}`] : []
47
+ ]), m = o(() => n.type === "submit" || n.type === "reset" ? n.type : "button");
48
+ return (o, h) => (c(), a("button", {
49
+ class: l(s.value),
50
+ type: m.value,
51
+ disabled: n.disabled || n.loading
52
+ }, [
53
+ r(o.$slots, "default"),
54
+ n.ariaLabel ? (c(), a("span", d, t(n.ariaLabel), 1)) : e("", !0),
55
+ n.loading ? (c(), a("svg", f, [...h[0] ||= [i("circle", {
56
+ class: "loader-inner",
57
+ cx: "20",
58
+ cy: "20",
59
+ r: "17"
60
+ }, null, -1)]])) : e("", !0),
61
+ n.loading ? (c(), a("span", p, "Loading")) : e("", !0)
62
+ ], 10, u));
63
+ }
64
+ }), h = [
65
+ "default",
66
+ "strong",
67
+ "brand",
68
+ "minimal",
69
+ "negative"
70
+ ], g = ["medium", "small"], _ = [
71
+ "button",
72
+ "submit",
73
+ "reset"
74
+ ], v = ["previous", "next"], y = s(m, { shadowRoot: !1 });
75
+ function b() {
76
+ typeof customElements < "u" && (customElements.get("ouds-button") || customElements.define("ouds-button", y));
77
+ }
78
+ //#endregion
79
+ export { _ as a, g as i, b as n, h as o, v as r, y as t };
@@ -0,0 +1,76 @@
1
+ import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString 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
+ class: "visually-hidden"
6
+ }, d = {
7
+ key: 1,
8
+ viewBox: "0 0 40 40",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ class: "loader",
11
+ "aria-hidden": "true"
12
+ }, f = {
13
+ key: 2,
14
+ role: "status",
15
+ class: "visually-hidden"
16
+ }, p = /* @__PURE__ */ i({
17
+ __name: "Button",
18
+ props: {
19
+ type: { default: "button" },
20
+ variant: { default: "default" },
21
+ size: { default: "medium" },
22
+ iconOnly: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ ariaLabel: {},
27
+ navigation: {},
28
+ disabled: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ loading: {
33
+ type: Boolean,
34
+ default: !1
35
+ }
36
+ },
37
+ setup(i) {
38
+ let p = e(() => [
39
+ "btn",
40
+ `btn-${i.variant}`,
41
+ {
42
+ "btn-icon": i.iconOnly,
43
+ "btn-small": i.size === "small",
44
+ "loading-indeterminate": i.loading
45
+ },
46
+ ...i.navigation ? [`btn-${i.navigation}`] : []
47
+ ]), m = e(() => i.type === "submit" || i.type === "reset" ? i.type : "button");
48
+ return (e, h) => (o(), n("button", {
49
+ class: a(p.value),
50
+ type: m.value,
51
+ disabled: i.disabled || i.loading
52
+ }, [
53
+ s(e.$slots, "default"),
54
+ i.ariaLabel ? (o(), n("span", u, c(i.ariaLabel), 1)) : t("", !0),
55
+ i.loading ? (o(), n("svg", d, [...h[0] ||= [r("circle", {
56
+ class: "loader-inner",
57
+ cx: "20",
58
+ cy: "20",
59
+ r: "17"
60
+ }, null, -1)]])) : t("", !0),
61
+ i.loading ? (o(), n("span", f, "Loading")) : t("", !0)
62
+ ], 10, l));
63
+ }
64
+ }), m = [
65
+ "default",
66
+ "strong",
67
+ "brand",
68
+ "minimal",
69
+ "negative"
70
+ ], h = ["medium", "small"], g = [
71
+ "button",
72
+ "submit",
73
+ "reset"
74
+ ], _ = ["previous", "next"];
75
+ //#endregion
76
+ export { p as a, m as i, h as n, g as r, _ as t };
package/dist/button.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./button-z6rNROko.js";
2
- export { t as OudsButton, e as defineOudsButton };
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./button-BPOKh6G4.js";
2
+ export { a as OudsButton, i as buttonNavigations, t as buttonSizes, e as buttonTypes, r as buttonVariants, n as defineOudsButton };
@@ -1,4 +1,4 @@
1
- import { _ as e, a as t, c as n, f as r, g as i, h as a, i as o, l as s, m 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 { _ as e, a as t, b as n, c as r, f as i, g as a, i as o, l as s, m 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/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
3
3
  var _ = { class: "control-item-assets-container" }, v = [
4
4
  "id",
@@ -10,7 +10,7 @@ var _ = { class: "control-item-assets-container" }, v = [
10
10
  ], y = { class: "control-item-text-container" }, b = ["for"], x = ["id"], S = {
11
11
  key: 0,
12
12
  class: "control-item-assets-container"
13
- }, C = p(/* @__PURE__ */ n({
13
+ }, C = p(/* @__PURE__ */ r({
14
14
  inheritAttrs: !1,
15
15
  __name: "Checkbox",
16
16
  props: {
@@ -39,36 +39,36 @@ var _ = { class: "control-item-assets-container" }, v = [
39
39
  default: !1
40
40
  }
41
41
  },
42
- setup(n) {
43
- let p = u(), C = i(), w = c(), T = d(() => n.id || `ouds-checkbox-${w}`), E = d(() => `${T.value}-description`), D = d(() => {
42
+ setup(r) {
43
+ let p = u(), C = e(), w = c(), T = d(() => r.id || `ouds-checkbox-${w}`), E = d(() => `${T.value}-description`), D = d(() => {
44
44
  let e = [p["aria-describedby"]];
45
- return n.description && e.push(E.value), e.filter(Boolean).join(" ") || void 0;
46
- }), O = d(() => ["checkbox-item", { "control-item-divider": n.divider }]);
45
+ return r.description && e.push(E.value), e.filter(Boolean).join(" ") || void 0;
46
+ }), O = d(() => ["checkbox-item", { "control-item-divider": r.divider }]);
47
47
  return a(() => {
48
- C.value && (C.value.indeterminate = n.indeterminate);
49
- }), (i, a) => (m(), l("div", { class: h(O.value) }, [
48
+ C.value && (C.value.indeterminate = r.indeterminate);
49
+ }), (e, a) => (m(), l("div", { class: g(O.value) }, [
50
50
  o("div", _, [o("input", s({
51
51
  ref_key: "input",
52
52
  ref: C
53
- }, e(p), {
53
+ }, h(p), {
54
54
  id: T.value,
55
55
  class: "control-item-indicator",
56
56
  type: "checkbox",
57
- value: n.value,
58
- checked: n.checked,
59
- disabled: n.disabled,
60
- required: n.required,
57
+ value: r.value,
58
+ checked: r.checked,
59
+ disabled: r.disabled,
60
+ required: r.required,
61
61
  "aria-describedby": D.value
62
62
  }), null, 16, v)]),
63
63
  o("div", y, [o("label", {
64
64
  class: "control-item-label",
65
65
  for: T.value
66
- }, [r(i.$slots, "label", {}, () => [f(g(n.label), 1)])], 8, b), n.description ? (m(), l("p", {
66
+ }, [i(e.$slots, "label", {}, () => [f(n(r.label), 1)])], 8, b), r.description ? (m(), l("p", {
67
67
  key: 0,
68
68
  id: E.value,
69
69
  class: "control-item-description"
70
- }, g(n.description), 9, x)) : t("", !0)]),
71
- i.$slots.asset ? (m(), l("div", S, [r(i.$slots, "asset")])) : t("", !0)
70
+ }, n(r.description), 9, x)) : t("", !0)]),
71
+ e.$slots.asset ? (m(), l("div", S, [i(e.$slots, "asset")])) : t("", !0)
72
72
  ], 2));
73
73
  }
74
74
  }), { shadowRoot: !1 });
package/dist/checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./checkbox-CS0xyJ93.js";
1
+ import { n as e, t } from "./checkbox-D-A_bSBK.js";
2
2
  //#region src/checkbox.ts
3
3
  e();
4
4
  //#endregion
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./button-z6rNROko.js";
2
- export { t as OudsButton, e as defineOudsButton };
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./button-BPOKh6G4.js";
2
+ export { a as OudsButton, i as buttonNavigations, t as buttonSizes, e as buttonTypes, r as buttonVariants, n as defineOudsButton };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./checkbox-CS0xyJ93.js";
1
+ import { n as e, t } from "./checkbox-D-A_bSBK.js";
2
2
  export { t as OudsCheckbox, e as defineOudsCheckbox };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./select-6rG9CVMu.js";
1
+ import { n as e, t } from "./select-CA6TVlpX.js";
2
2
  export { t as OudsSelect, e as defineOudsSelect };
@@ -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 };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./text-input-DLbvTlpY.js";
1
+ import { n as e, t } from "./text-input-CtTr5yfe.js";
2
2
  export { t as OudsTextInput, e as defineOudsTextInput };
package/dist/elements.js CHANGED
@@ -1,8 +1,8 @@
1
- import { n as e, t } from "./button-z6rNROko.js";
2
- import { n, t as r } from "./tag-Gq6ZayFl.js";
3
- import { n as i, t as a } from "./select-6rG9CVMu.js";
4
- import { n as o, t as s } from "./checkbox-CS0xyJ93.js";
5
- import { n as c, t as l } from "./text-input-DLbvTlpY.js";
6
- e(), n(), i(), o(), c();
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./button-BPOKh6G4.js";
2
+ import { i as o, n as s, r as c, t as l } from "./tag-BY32Hj5n.js";
3
+ import { n as u, t as d } from "./select-CA6TVlpX.js";
4
+ import { n as f, t as p } from "./checkbox-D-A_bSBK.js";
5
+ import { n as m, t as h } from "./text-input-CtTr5yfe.js";
6
+ n(), s(), u(), f(), m();
7
7
  //#endregion
8
- export { t as OudsButton, s as OudsCheckbox, a as OudsSelect, r as OudsTag, l as OudsTextInput, e as defineOudsButton, o as defineOudsCheckbox, i as defineOudsSelect, n as defineOudsTag, c as defineOudsTextInput };
8
+ export { a as OudsButton, p as OudsCheckbox, d as OudsSelect, l as OudsTag, h as OudsTextInput, i as buttonNavigations, t as buttonSizes, e as buttonTypes, r as buttonVariants, n as defineOudsButton, f as defineOudsCheckbox, u as defineOudsSelect, s as defineOudsTag, m as defineOudsTextInput, c as tagSizes, o as tagVariants };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { n as e, t } from "./button-z6rNROko.js";
2
- import { n, t as r } from "./tag-Gq6ZayFl.js";
3
- import { n as i, t as a } from "./select-6rG9CVMu.js";
4
- import { n as o, t as s } from "./checkbox-CS0xyJ93.js";
5
- import { n as c, t as l } from "./text-input-DLbvTlpY.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./button-BPOKh6G4.js";
2
+ import { i as o, n as s, r as c, t as l } from "./tag-BY32Hj5n.js";
3
+ import { n as u, t as d } from "./select-CA6TVlpX.js";
4
+ import { n as f, t as p } from "./checkbox-D-A_bSBK.js";
5
+ import { n as m, t as h } from "./text-input-CtTr5yfe.js";
6
6
  import "./elements.js";
7
- export { t as OudsButton, s as OudsCheckbox, a as OudsSelect, r as OudsTag, l as OudsTextInput, e as defineOudsButton, o as defineOudsCheckbox, i as defineOudsSelect, n as defineOudsTag, c as defineOudsTextInput };
7
+ export { a as OudsButton, p as OudsCheckbox, d as OudsSelect, l as OudsTag, h as OudsTextInput, i as buttonNavigations, t as buttonSizes, e as buttonTypes, r as buttonVariants, n as defineOudsButton, f as defineOudsCheckbox, u as defineOudsSelect, s as defineOudsTag, m as defineOudsTextInput, c as tagSizes, o as tagVariants };