@nilloq/ouds-web 0.1.6 → 0.1.8

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 (120) hide show
  1. package/README.md +17 -115
  2. package/dist/{alert-bsnEmrzb.js → alert-B4w3fDHo.js} +2 -2
  3. package/dist/{alert-By364Om4.js → alert-Chns046l.js} +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/{badge-fffoaFuZ.js → badge-CDpWg-AO.js} +1 -1
  6. package/dist/badge.js +1 -1
  7. package/dist/{button-BUziAVbu.js → button-OgsnDYrO.js} +4 -3
  8. package/dist/{button-nN1Pcwm6.js → button-gcQ7CyWb.js} +3 -2
  9. package/dist/button.js +1 -1
  10. package/dist/checkbox-D7TFFuw3.js +196 -0
  11. package/dist/checkbox-DfYlHYR2.js +155 -0
  12. package/dist/checkbox.js +1 -1
  13. package/dist/chip-B3v4pWZD.js +92 -0
  14. package/dist/chip-DGfqitrQ.js +115 -0
  15. package/dist/chip.js +2 -0
  16. package/dist/{control-item-slots-BNXNsI1e.js → control-item-slots-BDoeNuk4.js} +5 -2
  17. package/dist/{control-item-slots-XV8Gjvf1.js → control-item-slots-Ddp7c8w8.js} +4 -1
  18. package/dist/elements-alert.js +1 -1
  19. package/dist/elements-badge.js +1 -1
  20. package/dist/elements-button.js +1 -1
  21. package/dist/elements-checkbox.js +1 -1
  22. package/dist/elements-chip.js +2 -0
  23. package/dist/elements-modal.js +1 -1
  24. package/dist/elements-radio.js +1 -1
  25. package/dist/elements-select.js +1 -1
  26. package/dist/elements-switch.js +1 -1
  27. package/dist/elements-tag.js +1 -1
  28. package/dist/elements-text-area.js +1 -1
  29. package/dist/elements-text-input.js +1 -1
  30. package/dist/elements.js +14 -13
  31. package/dist/index.js +13 -12
  32. package/dist/{modal-IEXNB8St.js → modal-BAvMVUIE.js} +2 -2
  33. package/dist/{modal-CHjaB_yR.js → modal-BnT5Kxjg.js} +1 -1
  34. package/dist/modal.js +1 -1
  35. package/dist/radio-CDq4r1_L.js +155 -0
  36. package/dist/radio-TaYThYkI.js +199 -0
  37. package/dist/radio.js +1 -1
  38. package/dist/{runtime-dom.esm-bundler-BeOO_l6v.js → runtime-dom.esm-bundler-DLryEdgJ.js} +1 -1
  39. package/dist/select-BWhJ-QB-.js +195 -0
  40. package/dist/select-BbeCpnsY.js +136 -0
  41. package/dist/select.js +1 -1
  42. package/dist/switch-BmxLKPbL.js +179 -0
  43. package/dist/switch-D5N-j5F7.js +140 -0
  44. package/dist/switch.js +1 -1
  45. package/dist/{tag-Un7w0uDf.js → tag--KKxqOf8.js} +17 -16
  46. package/dist/tag-D6j9yaoI.js +85 -0
  47. package/dist/tag.js +1 -1
  48. package/dist/text-area-Cmn22-fj.js +108 -0
  49. package/dist/text-area-Cr8RssdQ.js +165 -0
  50. package/dist/text-area.js +1 -1
  51. package/dist/text-input-DgFIuIOA.js +235 -0
  52. package/dist/text-input-i559HVOP.js +163 -0
  53. package/dist/text-input.js +1 -1
  54. package/dist/types/chip.d.ts +1 -0
  55. package/dist/types/components/alert/Alert.vue.d.ts +3 -3
  56. package/dist/types/components/badge/Badge.vue.d.ts +1 -1
  57. package/dist/types/components/button/Button.vue.d.ts +3 -1
  58. package/dist/types/components/button/button.types.d.ts +1 -0
  59. package/dist/types/components/checkbox/Checkbox.vue.d.ts +4 -15
  60. package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +9 -3
  61. package/dist/types/components/checkbox/checkbox.types.d.ts +16 -0
  62. package/dist/types/components/chip/Chip.vue.d.ts +38 -0
  63. package/dist/types/components/chip/VueChip.vue.d.ts +32 -0
  64. package/dist/types/components/chip/chip.context.d.ts +2 -0
  65. package/dist/types/components/chip/chip.types.d.ts +27 -0
  66. package/dist/types/components/modal/Modal.vue.d.ts +8 -8
  67. package/dist/types/components/radio/Radio.vue.d.ts +2 -17
  68. package/dist/types/components/radio/VueRadio.vue.d.ts +8 -6
  69. package/dist/types/components/radio/radio.types.d.ts +16 -0
  70. package/dist/types/components/select/Select.vue.d.ts +2 -19
  71. package/dist/types/components/select/VueSelect.vue.d.ts +9 -3
  72. package/dist/types/components/select/select.types.d.ts +24 -0
  73. package/dist/types/components/shared/control-item-slots.d.ts +1 -0
  74. package/dist/types/components/switch/Switch.vue.d.ts +2 -14
  75. package/dist/types/components/switch/VueSwitch.vue.d.ts +9 -3
  76. package/dist/types/components/switch/switch.types.d.ts +13 -0
  77. package/dist/types/components/tag/Tag.vue.d.ts +3 -1
  78. package/dist/types/components/tag/tag.types.d.ts +1 -0
  79. package/dist/types/components/text-area/TextArea.vue.d.ts +2 -16
  80. package/dist/types/components/text-area/VueTextArea.vue.d.ts +9 -3
  81. package/dist/types/components/text-area/text-area.types.d.ts +18 -0
  82. package/dist/types/components/text-input/TextInput.vue.d.ts +2 -19
  83. package/dist/types/components/text-input/VueTextInput.vue.d.ts +9 -3
  84. package/dist/types/components/text-input/text-input.types.d.ts +25 -0
  85. package/dist/types/elements/chip.d.ts +4 -0
  86. package/dist/types/elements/index.d.ts +2 -0
  87. package/dist/types/vue/checkbox.d.ts +1 -1
  88. package/dist/types/vue/chip.d.ts +2 -0
  89. package/dist/types/vue/index.d.ts +8 -6
  90. package/dist/types/vue/radio.d.ts +1 -1
  91. package/dist/types/vue/select.d.ts +1 -1
  92. package/dist/types/vue/switch.d.ts +1 -1
  93. package/dist/types/vue/text-area.d.ts +1 -1
  94. package/dist/types/vue/text-input.d.ts +1 -1
  95. package/dist/vue-alert.js +1 -1
  96. package/dist/vue-button.js +1 -1
  97. package/dist/vue-checkbox.js +1 -1
  98. package/dist/vue-chip.js +2 -0
  99. package/dist/vue-modal.js +1 -1
  100. package/dist/vue-radio.js +1 -1
  101. package/dist/vue-select.js +1 -1
  102. package/dist/vue-switch.js +1 -1
  103. package/dist/vue-tag.js +1 -1
  104. package/dist/vue-text-area.js +1 -1
  105. package/dist/vue-text-input.js +1 -1
  106. package/dist/vue.js +12 -11
  107. package/package.json +15 -2
  108. package/dist/checkbox-PAgQqiIw.js +0 -145
  109. package/dist/checkbox-g6cqR6wz.js +0 -170
  110. package/dist/radio-Cmrtred_.js +0 -147
  111. package/dist/radio-CqVqsZ7n.js +0 -175
  112. package/dist/select-Bpou1HIY.js +0 -167
  113. package/dist/select-CWjTpHGb.js +0 -126
  114. package/dist/switch-CFv0JUeq.js +0 -132
  115. package/dist/switch-DEYsTCw5.js +0 -157
  116. package/dist/tag-BdB0YDBJ.js +0 -84
  117. package/dist/text-area-DkjEGpHg.js +0 -99
  118. package/dist/text-area-DqBoz2_d.js +0 -139
  119. package/dist/text-input-DnWjB1vE.js +0 -207
  120. package/dist/text-input-DxzwRS2R.js +0 -157
@@ -0,0 +1,163 @@
1
+ import { A as e, M as t, N as n, S as r, a as i, b as a, c as o, d as s, g as c, i as l, j as u, k as d, l as f, o as p, p as m, t as h, u as g, v as _, x as v } from "./runtime-dom.esm-bundler-DLryEdgJ.js";
2
+ //#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
3
+ var y = ["id", "for"], b = ["data-bs-prefix", "data-bs-suffix"], x = [
4
+ "id",
5
+ "type",
6
+ "placeholder",
7
+ "value",
8
+ "disabled",
9
+ "readonly",
10
+ "required",
11
+ "aria-describedby",
12
+ "aria-invalid"
13
+ ], S = [
14
+ "id",
15
+ "type",
16
+ "placeholder",
17
+ "value",
18
+ "disabled",
19
+ "readonly",
20
+ "required",
21
+ "aria-describedby",
22
+ "aria-invalid"
23
+ ], C = ["id"], w = ["id"], T = ["id"], E = [
24
+ "id",
25
+ "href",
26
+ "aria-labelledby"
27
+ ], D = { class: "visually-hidden" }, O = h(/* @__PURE__ */ s({
28
+ inheritAttrs: !1,
29
+ __name: "TextInput",
30
+ props: {
31
+ prefix: { default: "" },
32
+ label: { default: "Text input" },
33
+ placeholder: { default: " " },
34
+ helperText: { default: "" },
35
+ errorText: { default: "" },
36
+ helperLink: { default: "" },
37
+ helperLinkHref: { default: "" },
38
+ helperLinkAria: { default: "on" },
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
+ loadingText: { default: "Loading" }
71
+ },
72
+ setup(s) {
73
+ let h = a();
74
+ function O() {
75
+ let { class: e, style: t, ...n } = h;
76
+ return n;
77
+ }
78
+ let k = d(() => h.id), A = r(), j = v(), M = d(() => k.value || `ouds-text-input-${j}`), N = d(() => `${M.value}-helper`), P = d(() => `${M.value}-error`), F = d(() => `${M.value}-label`), I = d(() => `${M.value}-helper-link`), L = d(() => `${M.value}-loading`);
79
+ function R() {
80
+ let e = [h["aria-describedby"]];
81
+ return (s.helperText || A["helper-text"]) && !s.invalid && e.push(N.value), s.invalid && (s.errorText || A["error-text"]) && e.push(P.value), s.helperLinkHref && (s.helperLink || A["helper-link"]) && e.push(I.value), s.loading && e.push(L.value), e.filter(Boolean).join(" ") || void 0;
82
+ }
83
+ let z = i(() => ["text-input", { "component-max-width": s.maxWidth }]), B = i(() => ["text-input-container", { "text-input-container-outlined": s.outlined }]), V = i(() => ["text-input-field", { "loading-indeterminate": s.loading }]);
84
+ return (r, i) => (c(), f("div", {
85
+ class: u([z.value, e(h).class]),
86
+ style: t(e(h).style)
87
+ }, [
88
+ p("div", { class: u(B.value) }, [
89
+ _(r.$slots, "leading-icon"),
90
+ p("label", {
91
+ id: F.value,
92
+ for: M.value,
93
+ class: u({ "is-required": s.required })
94
+ }, [_(r.$slots, "label", {}, () => [g(n(s.label), 1)])], 10, y),
95
+ s.prefix || s.suffix ? (c(), f("div", {
96
+ key: 0,
97
+ class: "input-container",
98
+ "data-bs-prefix": s.prefix || void 0,
99
+ "data-bs-suffix": s.suffix || void 0
100
+ }, [p("input", m(O(), {
101
+ id: M.value,
102
+ type: s.type,
103
+ class: V.value,
104
+ placeholder: s.placeholder || " ",
105
+ value: s.value,
106
+ disabled: s.disabled,
107
+ readonly: s.readonly,
108
+ required: s.required,
109
+ "aria-describedby": R(),
110
+ "aria-invalid": s.invalid
111
+ }), null, 16, x)], 8, b)) : (c(), f("input", m({ key: 1 }, O(), {
112
+ id: M.value,
113
+ type: s.type,
114
+ class: V.value,
115
+ placeholder: s.placeholder || " ",
116
+ value: s.value,
117
+ disabled: s.disabled,
118
+ readonly: s.readonly,
119
+ required: s.required,
120
+ "aria-describedby": R(),
121
+ "aria-invalid": s.invalid
122
+ }), null, 16, S)),
123
+ s.loading ? (c(), f(l, { key: 2 }, [i[0] ||= p("svg", {
124
+ viewBox: "0 0 40 40",
125
+ xmlns: "http://www.w3.org/2000/svg",
126
+ class: "loader",
127
+ "aria-hidden": "true"
128
+ }, [p("circle", {
129
+ class: "loader-inner",
130
+ cx: "20",
131
+ cy: "20",
132
+ r: "17"
133
+ })], -1), p("span", {
134
+ id: L.value,
135
+ role: "status",
136
+ class: "visually-hidden"
137
+ }, n(s.loadingText), 9, C)], 64)) : _(r.$slots, "trailing-action", { disabled: s.disabled || s.readonly }, void 0, void 0, 3)
138
+ ], 2),
139
+ (s.helperText || r.$slots["helper-text"]) && !s.invalid ? (c(), f("p", {
140
+ key: 0,
141
+ id: N.value,
142
+ class: "helper-text"
143
+ }, [_(r.$slots, "helper-text", {}, () => [g(n(s.helperText), 1)])], 8, w)) : o("", !0),
144
+ s.invalid && (s.errorText || r.$slots["error-text"]) ? (c(), f("p", {
145
+ key: 1,
146
+ id: P.value,
147
+ class: "error-text"
148
+ }, [_(r.$slots, "error-text", {}, () => [g(n(s.errorText), 1)])], 8, T)) : o("", !0),
149
+ s.helperLinkHref && (s.helperLink || r.$slots["helper-link"]) ? (c(), f("a", {
150
+ key: 2,
151
+ id: I.value,
152
+ href: s.helperLinkHref,
153
+ "aria-labelledby": `${I.value} ${F.value}`,
154
+ class: "link link-small"
155
+ }, [_(r.$slots, "helper-link", {}, () => [g(n(s.helperLink), 1)]), p("span", D, n(s.helperLinkAria), 1)], 8, E)) : o("", !0)
156
+ ], 6));
157
+ }
158
+ }), { shadowRoot: !1 });
159
+ function k() {
160
+ typeof customElements < "u" && (customElements.get("ouds-text-input") || customElements.define("ouds-text-input", O));
161
+ }
162
+ //#endregion
163
+ export { k as n, O as t };
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./text-input-DxzwRS2R.js";
1
+ import { n as e, t } from "./text-input-i559HVOP.js";
2
2
  //#region src/text-input.ts
3
3
  e();
4
4
  //#endregion
@@ -0,0 +1 @@
1
+ export * from "./elements/chip.js";
@@ -22,11 +22,11 @@ declare const __VLS_template: () => {
22
22
  };
23
23
  };
24
24
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
25
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
25
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  dismiss: () => any;
27
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
28
  onDismiss?: (() => any) | undefined;
29
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
29
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
31
  declare const _default: typeof __VLS_export;
32
32
  export default _default;
@@ -15,7 +15,7 @@ declare const __VLS_template: () => {
15
15
  };
16
16
  };
17
17
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
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>;
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  onColoredBg?: boolean;
10
10
  disabled?: boolean;
11
11
  loading?: boolean;
12
+ /** Localized screen-reader loading announcement. */
13
+ loadingText?: string;
12
14
  };
13
15
  declare const __VLS_template: () => {
14
16
  __VLS_Slots: {
@@ -16,7 +18,7 @@ declare const __VLS_template: () => {
16
18
  };
17
19
  };
18
20
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
19
- 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>;
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
23
  declare const _default: typeof __VLS_export;
22
24
  export default _default;
@@ -7,6 +7,7 @@ export type ButtonElement = HTMLElement & {
7
7
  iconOnly: boolean;
8
8
  disabled: boolean;
9
9
  loading: boolean;
10
+ loadingText: string;
10
11
  expand: boolean;
11
12
  onColoredBg: boolean;
12
13
  navigation?: ButtonNavigation;
@@ -1,20 +1,9 @@
1
- type __VLS_Props = {
2
- label?: string;
3
- description?: string;
4
- value?: string;
5
- checked?: boolean;
6
- disabled?: boolean;
7
- required?: boolean;
8
- divider?: boolean;
9
- indeterminate?: boolean;
10
- readonly?: boolean;
11
- invalid?: boolean;
12
- reverse?: boolean;
13
- maxWidth?: boolean;
14
- };
1
+ import type { CheckboxProps } from "./checkbox.types.js";
15
2
  declare const __VLS_template: () => {
16
3
  __VLS_Slots: {
17
4
  label?: (props: {}) => any;
5
+ } & {
6
+ label?: (props: {}) => any;
18
7
  } & {
19
8
  description?: (props: {}) => any;
20
9
  } & {
@@ -22,7 +11,7 @@ declare const __VLS_template: () => {
22
11
  };
23
12
  };
24
13
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
25
- 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>;
14
+ declare const __VLS_base: import("vue").DefineComponent<CheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
16
  declare const _default: typeof __VLS_export;
28
17
  export default _default;
@@ -1,6 +1,12 @@
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { CheckboxProps } from "./checkbox.types.js";
3
+ interface Props extends Omit<InputHTMLAttributes, keyof CheckboxProps>, Omit<CheckboxProps, "checked"> {
4
+ }
5
+ type __VLS_Props = Props;
1
6
  type __VLS_ModelProps = {
2
7
  modelValue?: boolean;
3
8
  };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
4
10
  declare const __VLS_template: () => {
5
11
  __VLS_Slots: {
6
12
  label?: (props: {}) => any;
@@ -11,13 +17,13 @@ declare const __VLS_template: () => {
11
17
  };
12
18
  };
13
19
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
14
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
21
  change: (event: Event) => any;
16
22
  "update:modelValue": (value: boolean) => any;
17
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
23
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
24
  onChange?: ((event: Event) => any) | undefined;
19
25
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
28
  declare const _default: typeof __VLS_export;
23
29
  export default _default;
@@ -1,3 +1,18 @@
1
+ export interface CheckboxProps {
2
+ label?: string;
3
+ description?: string;
4
+ value?: string;
5
+ checked?: boolean;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ divider?: boolean;
9
+ indeterminate?: boolean;
10
+ readonly?: boolean;
11
+ invalid?: boolean;
12
+ reverse?: boolean;
13
+ maxWidth?: boolean;
14
+ standalone?: boolean;
15
+ }
1
16
  export type CheckboxElement = HTMLElement & {
2
17
  id: string;
3
18
  label: string;
@@ -12,6 +27,7 @@ export type CheckboxElement = HTMLElement & {
12
27
  invalid: boolean;
13
28
  reverse: boolean;
14
29
  maxWidth: boolean;
30
+ standalone: boolean;
15
31
  };
16
32
  export type CheckboxConstructor = CustomElementConstructor & {
17
33
  new (initialProps?: Partial<CheckboxElement>): CheckboxElement;
@@ -0,0 +1,38 @@
1
+ import type { ChipProps } from "./chip.types.js";
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ } & {
6
+ icon?: (props: {}) => any;
7
+ } & {
8
+ icon?: (props: {}) => any;
9
+ } & {
10
+ default?: (props: {}) => any;
11
+ };
12
+ };
13
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
14
+ declare const __VLS_base: import("vue").DefineComponent<ChipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ change: (event: Event) => any;
16
+ "update:checked": (checked: boolean) => any;
17
+ }, string, import("vue").PublicProps, Readonly<ChipProps> & Readonly<{
18
+ onChange?: ((event: Event) => any) | undefined;
19
+ "onUpdate:checked"?: ((checked: boolean) => any) | undefined;
20
+ }>, {
21
+ variant: import("./chip.types.js").ChipVariant;
22
+ label: string;
23
+ name: string;
24
+ value: string;
25
+ disabled: boolean;
26
+ iconOnly: boolean;
27
+ ariaLabel: string;
28
+ checked: boolean;
29
+ inputType: import("./chip.types.js").ChipInputType;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,32 @@
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { ChipProps } from "./chip.types.js";
3
+ interface Props extends Omit<InputHTMLAttributes, keyof ChipProps>, Omit<ChipProps, "checked"> {
4
+ }
5
+ type __VLS_Props = Props;
6
+ type __VLS_ModelProps = {
7
+ modelValue?: boolean;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_template: () => {
11
+ __VLS_Slots: {
12
+ default?: (props: {}) => any;
13
+ } & {
14
+ icon?: (props: {}) => any;
15
+ };
16
+ };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ change: (event: Event) => any;
20
+ "update:modelValue": (value: boolean) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ onChange?: ((event: Event) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,2 @@
1
+ import type { InjectionKey } from "vue";
2
+ export declare const chipElementIdKey: InjectionKey<string>;
@@ -0,0 +1,27 @@
1
+ export type ChipVariant = "filter" | "suggestion";
2
+ export type ChipInputType = "checkbox" | "radio";
3
+ export interface ChipProps {
4
+ variant?: ChipVariant;
5
+ inputType?: ChipInputType;
6
+ label?: string;
7
+ ariaLabel?: string;
8
+ checked?: boolean;
9
+ disabled?: boolean;
10
+ name?: string;
11
+ value?: string;
12
+ iconOnly?: boolean;
13
+ }
14
+ export type ChipElement = HTMLElement & {
15
+ variant: ChipVariant;
16
+ inputType: ChipInputType;
17
+ label: string;
18
+ ariaLabel: string;
19
+ checked: boolean;
20
+ disabled: boolean;
21
+ name: string;
22
+ value: string;
23
+ iconOnly: boolean;
24
+ };
25
+ export type ChipConstructor = CustomElementConstructor & {
26
+ new (initialProps?: Partial<ChipElement>): ChipElement;
27
+ };
@@ -44,19 +44,19 @@ declare const __VLS_template: () => {
44
44
  };
45
45
  };
46
46
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
47
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {
47
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
48
48
  showModal: typeof showModal;
49
49
  close: typeof close;
50
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
50
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ cancel: (event: Event) => any;
52
+ close: (returnValue: string) => any;
51
53
  "update:open": (open: boolean) => any;
52
54
  show: () => any;
53
- close: (returnValue: string) => any;
54
- cancel: (event: Event) => any;
55
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
55
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
56
+ onCancel?: ((event: Event) => any) | undefined;
57
+ onClose?: ((returnValue: string) => any) | undefined;
56
58
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
57
59
  onShow?: (() => any) | undefined;
58
- onClose?: ((returnValue: string) => any) | undefined;
59
- onCancel?: ((event: Event) => any) | undefined;
60
60
  }>, {
61
61
  variant: "neutral" | "positive" | "info" | "warning" | "negative";
62
62
  label: string;
@@ -75,7 +75,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Prop
75
75
  horizontalActions: boolean;
76
76
  closeOnEscape: boolean;
77
77
  closeOnBackdrop: boolean;
78
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
79
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
80
80
  declare const _default: typeof __VLS_export;
81
81
  export default _default;
@@ -1,19 +1,4 @@
1
- type __VLS_Props = {
2
- label?: string;
3
- description?: string;
4
- value?: string;
5
- checked?: boolean;
6
- disabled?: boolean;
7
- required?: boolean;
8
- divider?: boolean;
9
- outlined?: boolean;
10
- extraLabel?: string;
11
- name?: string;
12
- readonly?: boolean;
13
- invalid?: boolean;
14
- reverse?: boolean;
15
- maxWidth?: boolean;
16
- };
1
+ import type { RadioProps } from "./radio.types.js";
17
2
  declare const __VLS_template: () => {
18
3
  __VLS_Slots: {
19
4
  label?: (props: {}) => any;
@@ -26,7 +11,7 @@ declare const __VLS_template: () => {
26
11
  };
27
12
  };
28
13
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
29
- 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>;
14
+ declare const __VLS_base: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RadioProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
16
  declare const _default: typeof __VLS_export;
32
17
  export default _default;
@@ -1,6 +1,8 @@
1
- type __VLS_Props = {
2
- value?: string;
3
- };
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { RadioProps } from "./radio.types.js";
3
+ interface Props extends Omit<InputHTMLAttributes, keyof RadioProps>, Omit<RadioProps, "checked"> {
4
+ }
5
+ type __VLS_Props = Props;
4
6
  type __VLS_ModelProps = {
5
7
  modelValue?: string;
6
8
  };
@@ -17,13 +19,13 @@ declare const __VLS_template: () => {
17
19
  };
18
20
  };
19
21
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
23
  change: (event: Event) => any;
22
24
  "update:modelValue": (value: string) => any;
23
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
26
  onChange?: ((event: Event) => any) | undefined;
25
27
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
30
  declare const _default: typeof __VLS_export;
29
31
  export default _default;
@@ -1,3 +1,19 @@
1
+ export interface RadioProps {
2
+ label?: string;
3
+ description?: string;
4
+ value?: string;
5
+ checked?: boolean;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ divider?: boolean;
9
+ outlined?: boolean;
10
+ extraLabel?: string;
11
+ name?: string;
12
+ readonly?: boolean;
13
+ invalid?: boolean;
14
+ reverse?: boolean;
15
+ maxWidth?: boolean;
16
+ }
1
17
  export type RadioElement = HTMLElement & {
2
18
  id: string;
3
19
  label: string;
@@ -1,21 +1,4 @@
1
- type __VLS_Props = {
2
- label?: string;
3
- options?: {
4
- label: string;
5
- value: string;
6
- }[];
7
- helperText?: string;
8
- errorText?: string;
9
- helperLink?: string;
10
- helperLinkHref?: string;
11
- value?: string;
12
- outlined?: boolean;
13
- disabled?: boolean;
14
- required?: boolean;
15
- invalid?: boolean;
16
- maxWidth?: boolean;
17
- loading?: boolean;
18
- };
1
+ import type { SelectProps } from "./select.types.js";
19
2
  declare const __VLS_template: () => {
20
3
  __VLS_Slots: {
21
4
  'leading-icon'?: (props: {}) => any;
@@ -32,7 +15,7 @@ declare const __VLS_template: () => {
32
15
  };
33
16
  };
34
17
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
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>;
18
+ declare const __VLS_base: import("vue").DefineComponent<SelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
20
  declare const _default: typeof __VLS_export;
38
21
  export default _default;
@@ -1,6 +1,12 @@
1
+ import type { SelectHTMLAttributes } from "vue";
2
+ import type { SelectProps } from "./select.types.js";
3
+ interface Props extends Omit<SelectHTMLAttributes, keyof SelectProps>, Omit<SelectProps, "value"> {
4
+ }
5
+ type __VLS_Props = Props;
1
6
  type __VLS_ModelProps = {
2
7
  modelValue?: string;
3
8
  };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
4
10
  declare const __VLS_template: () => {
5
11
  __VLS_Slots: {
6
12
  label?: (props: {}) => any;
@@ -17,13 +23,13 @@ declare const __VLS_template: () => {
17
23
  };
18
24
  };
19
25
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
27
  change: (event: Event) => any;
22
28
  "update:modelValue": (value: string) => any;
23
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
29
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
30
  onChange?: ((event: Event) => any) | undefined;
25
31
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
32
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
33
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
34
  declare const _default: typeof __VLS_export;
29
35
  export default _default;
@@ -1,3 +1,25 @@
1
+ export interface SelectProps {
2
+ label?: string;
3
+ options?: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ helperText?: string;
8
+ errorText?: string;
9
+ helperLink?: string;
10
+ helperLinkHref?: string;
11
+ /** Hidden text between the helper link and field label. Defaults to "on". */
12
+ helperLinkAria?: string;
13
+ value?: string;
14
+ outlined?: boolean;
15
+ disabled?: boolean;
16
+ required?: boolean;
17
+ invalid?: boolean;
18
+ maxWidth?: boolean;
19
+ loading?: boolean;
20
+ /** Localized screen-reader loading announcement. Defaults to "Loading". */
21
+ loadingText?: string;
22
+ }
1
23
  export type SelectElement = HTMLElement & {
2
24
  id: string;
3
25
  label: string;
@@ -5,6 +27,7 @@ export type SelectElement = HTMLElement & {
5
27
  errorText: string;
6
28
  helperLink: string;
7
29
  helperLinkHref: string;
30
+ helperLinkAria: string;
8
31
  options: {
9
32
  label: string;
10
33
  value: string;
@@ -16,6 +39,7 @@ export type SelectElement = HTMLElement & {
16
39
  invalid: boolean;
17
40
  maxWidth: boolean;
18
41
  loading: boolean;
42
+ loadingText: string;
19
43
  };
20
44
  export type SelectConstructor = CustomElementConstructor & {
21
45
  new (initialProps?: Partial<SelectElement>): SelectElement;
@@ -1,2 +1,3 @@
1
1
  export declare function captureControlItemSlots(host: HTMLElement): void;
2
2
  export declare function useControlItemSlots(customElement: boolean): (name: string) => boolean;
3
+ export declare function hasCapturedControlItemSlot(host: HTMLElement, name: string): boolean;