@nilloq/ouds-web 0.1.5 → 0.1.7

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 (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -72
  3. package/dist/alert-B4w3fDHo.js +89 -0
  4. package/dist/alert-Chns046l.js +77 -0
  5. package/dist/alert.js +2 -0
  6. package/dist/badge-CDpWg-AO.js +57 -0
  7. package/dist/badge-yaFEZnEW.js +54 -0
  8. package/dist/badge.js +2 -0
  9. package/dist/{button-LlRiSiGS.js → button-nN1Pcwm6.js} +36 -21
  10. package/dist/button-rgIJZsYq.js +94 -0
  11. package/dist/button.js +1 -1
  12. package/dist/checkbox-D7TFFuw3.js +196 -0
  13. package/dist/checkbox-DfYlHYR2.js +155 -0
  14. package/dist/checkbox.js +1 -1
  15. package/dist/chip-B3v4pWZD.js +92 -0
  16. package/dist/chip-DGfqitrQ.js +115 -0
  17. package/dist/chip.js +2 -0
  18. package/dist/control-item-slots-BDoeNuk4.js +15 -0
  19. package/dist/control-item-slots-Ddp7c8w8.js +12 -0
  20. package/dist/elements-alert.js +2 -0
  21. package/dist/elements-badge.js +2 -0
  22. package/dist/elements-button.js +1 -1
  23. package/dist/elements-checkbox.js +1 -1
  24. package/dist/elements-chip.js +2 -0
  25. package/dist/elements-modal.js +2 -0
  26. package/dist/elements-radio.js +2 -0
  27. package/dist/elements-select.js +1 -1
  28. package/dist/elements-switch.js +2 -0
  29. package/dist/elements-tag.js +1 -1
  30. package/dist/elements-text-area.js +2 -0
  31. package/dist/elements-text-input.js +1 -1
  32. package/dist/elements.js +14 -7
  33. package/dist/index.js +13 -6
  34. package/dist/modal-BAvMVUIE.js +193 -0
  35. package/dist/modal-BnT5Kxjg.js +181 -0
  36. package/dist/modal.js +2 -0
  37. package/dist/radio-CDq4r1_L.js +155 -0
  38. package/dist/radio-TaYThYkI.js +199 -0
  39. package/dist/radio.js +5 -0
  40. package/dist/{runtime-dom.esm-bundler-BzNNnH8h.js → runtime-dom.esm-bundler-DLryEdgJ.js} +987 -839
  41. package/dist/select--O3jL-En.js +134 -0
  42. package/dist/select-NiIx8bVD.js +191 -0
  43. package/dist/select.js +1 -1
  44. package/dist/switch-BmxLKPbL.js +179 -0
  45. package/dist/switch-D5N-j5F7.js +140 -0
  46. package/dist/switch.js +5 -0
  47. package/dist/tag-BvOt0v-c.js +84 -0
  48. package/dist/tag-Un7w0uDf.js +81 -0
  49. package/dist/tag.js +1 -1
  50. package/dist/text-area-BdmAyh3N.js +163 -0
  51. package/dist/text-area-BgYNtAMx.js +107 -0
  52. package/dist/text-area.js +5 -0
  53. package/dist/text-input-DgFIuIOA.js +235 -0
  54. package/dist/text-input-i559HVOP.js +163 -0
  55. package/dist/text-input.js +1 -1
  56. package/dist/types/alert.d.ts +1 -0
  57. package/dist/types/badge.d.ts +1 -0
  58. package/dist/types/chip.d.ts +1 -0
  59. package/dist/types/components/alert/Alert.vue.d.ts +37 -0
  60. package/dist/types/components/alert/alert.context.d.ts +2 -0
  61. package/dist/types/components/alert/alert.options.d.ts +2 -0
  62. package/dist/types/components/alert/alert.types.d.ts +14 -0
  63. package/dist/types/components/badge/Badge.vue.d.ts +26 -0
  64. package/dist/types/components/badge/badge.options.d.ts +4 -0
  65. package/dist/types/components/badge/badge.types.d.ts +13 -0
  66. package/dist/types/components/button/Button.vue.d.ts +8 -5
  67. package/dist/types/components/button/button.options.d.ts +1 -1
  68. package/dist/types/components/button/button.types.d.ts +2 -0
  69. package/dist/types/components/checkbox/Checkbox.vue.d.ts +13 -17
  70. package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +18 -8
  71. package/dist/types/components/checkbox/checkbox.context.d.ts +2 -0
  72. package/dist/types/components/checkbox/checkbox.types.d.ts +20 -0
  73. package/dist/types/components/chip/Chip.vue.d.ts +38 -0
  74. package/dist/types/components/chip/VueChip.vue.d.ts +32 -0
  75. package/dist/types/components/chip/chip.context.d.ts +2 -0
  76. package/dist/types/components/chip/chip.types.d.ts +27 -0
  77. package/dist/types/components/modal/Modal.vue.d.ts +86 -0
  78. package/dist/types/components/modal/modal.context.d.ts +2 -0
  79. package/dist/types/components/modal/modal.options.d.ts +7 -0
  80. package/dist/types/components/modal/modal.types.d.ts +28 -0
  81. package/dist/types/components/radio/Radio.vue.d.ts +22 -0
  82. package/dist/types/components/radio/VueRadio.vue.d.ts +36 -0
  83. package/dist/types/components/radio/radio.context.d.ts +2 -0
  84. package/dist/types/components/radio/radio.types.d.ts +36 -0
  85. package/dist/types/components/select/Select.vue.d.ts +17 -17
  86. package/dist/types/components/select/VueSelect.vue.d.ts +24 -8
  87. package/dist/types/components/select/select.types.d.ts +28 -0
  88. package/dist/types/components/shared/control-item-slots.d.ts +3 -0
  89. package/dist/types/components/switch/Switch.vue.d.ts +20 -0
  90. package/dist/types/components/switch/VueSwitch.vue.d.ts +34 -0
  91. package/dist/types/components/switch/switch.context.d.ts +2 -0
  92. package/dist/types/components/switch/switch.types.d.ts +30 -0
  93. package/dist/types/components/tag/Tag.vue.d.ts +9 -4
  94. package/dist/types/components/tag/tag.options.d.ts +1 -1
  95. package/dist/types/components/tag/tag.types.d.ts +4 -0
  96. package/dist/types/components/text-area/TextArea.vue.d.ts +22 -0
  97. package/dist/types/components/text-area/VueTextArea.vue.d.ts +38 -0
  98. package/dist/types/components/text-area/text-area.types.d.ts +34 -0
  99. package/dist/types/components/text-input/TextInput.vue.d.ts +19 -34
  100. package/dist/types/components/text-input/VueTextInput.vue.d.ts +26 -16
  101. package/dist/types/components/text-input/text-input.types.d.ts +26 -0
  102. package/dist/types/elements/alert.d.ts +5 -0
  103. package/dist/types/elements/badge.d.ts +5 -0
  104. package/dist/types/elements/chip.d.ts +4 -0
  105. package/dist/types/elements/index.d.ts +15 -0
  106. package/dist/types/elements/modal.d.ts +5 -0
  107. package/dist/types/elements/radio.d.ts +4 -0
  108. package/dist/types/elements/switch.d.ts +4 -0
  109. package/dist/types/elements/text-area.d.ts +4 -0
  110. package/dist/types/modal.d.ts +1 -0
  111. package/dist/types/radio.d.ts +2 -0
  112. package/dist/types/switch.d.ts +2 -0
  113. package/dist/types/text-area.d.ts +2 -0
  114. package/dist/types/vue/alert.d.ts +3 -0
  115. package/dist/types/vue/badge.d.ts +3 -0
  116. package/dist/types/vue/checkbox.d.ts +1 -1
  117. package/dist/types/vue/chip.d.ts +2 -0
  118. package/dist/types/vue/index.d.ts +16 -3
  119. package/dist/types/vue/modal.d.ts +3 -0
  120. package/dist/types/vue/radio.d.ts +2 -0
  121. package/dist/types/vue/select.d.ts +1 -1
  122. package/dist/types/vue/switch.d.ts +2 -0
  123. package/dist/types/vue/text-area.d.ts +2 -0
  124. package/dist/types/vue/text-input.d.ts +1 -1
  125. package/dist/vue-alert.js +2 -0
  126. package/dist/vue-badge.js +2 -0
  127. package/dist/vue-button.js +1 -1
  128. package/dist/vue-checkbox.js +1 -1
  129. package/dist/vue-chip.js +2 -0
  130. package/dist/vue-modal.js +2 -0
  131. package/dist/vue-radio.js +2 -0
  132. package/dist/vue-select.js +1 -1
  133. package/dist/vue-switch.js +2 -0
  134. package/dist/vue-tag.js +1 -1
  135. package/dist/vue-text-area.js +2 -0
  136. package/dist/vue-text-input.js +1 -1
  137. package/dist/vue.js +13 -6
  138. package/package.json +96 -11
  139. package/dist/button-BPOKh6G4.js +0 -79
  140. package/dist/checkbox-BYrgMhwO.js +0 -105
  141. package/dist/checkbox-D-A_bSBK.js +0 -79
  142. package/dist/select-CA6TVlpX.js +0 -58
  143. package/dist/select-CKHEHpJL.js +0 -80
  144. package/dist/tag-B2qhuHjk.js +0 -41
  145. package/dist/tag-BY32Hj5n.js +0 -44
  146. package/dist/text-input-CtTr5yfe.js +0 -151
  147. package/dist/text-input-l1F2arKl.js +0 -201
@@ -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-CtTr5yfe.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/alert.js";
@@ -0,0 +1 @@
1
+ export * from "./elements/badge.js";
@@ -0,0 +1 @@
1
+ export * from "./elements/chip.js";
@@ -0,0 +1,37 @@
1
+ import type { AlertVariant } from "./alert.types.js";
2
+ type __VLS_Props = {
3
+ variant?: AlertVariant;
4
+ label?: string;
5
+ description?: string;
6
+ inline?: boolean;
7
+ dismissible?: boolean;
8
+ closeLabel?: string;
9
+ iconLabel?: string;
10
+ };
11
+ declare const __VLS_template: () => {
12
+ __VLS_Slots: {
13
+ icon?: (props: {}) => any;
14
+ } & {
15
+ default?: (props: {}) => any;
16
+ } & {
17
+ default?: (props: {}) => any;
18
+ } & {
19
+ description?: (props: {}) => any;
20
+ } & {
21
+ action?: (props: {}) => any;
22
+ };
23
+ };
24
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
25
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ dismiss: () => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onDismiss?: (() => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,2 @@
1
+ import type { InjectionKey } from "vue";
2
+ export declare const alertElementKey: InjectionKey<boolean>;
@@ -0,0 +1,2 @@
1
+ export declare const alertVariants: readonly ["neutral", "accent", "positive", "info", "warning", "negative"];
2
+ export type AlertVariant = (typeof alertVariants)[number];
@@ -0,0 +1,14 @@
1
+ import type { AlertVariant } from "./alert.options.js";
2
+ export type { AlertVariant } from "./alert.options.js";
3
+ export type AlertElement = HTMLElement & {
4
+ variant: AlertVariant;
5
+ label: string;
6
+ description: string;
7
+ inline: boolean;
8
+ dismissible: boolean;
9
+ closeLabel: string;
10
+ iconLabel: string;
11
+ };
12
+ export type AlertConstructor = CustomElementConstructor & {
13
+ new (initialProps?: Partial<AlertElement>): AlertElement;
14
+ };
@@ -0,0 +1,26 @@
1
+ import type { BadgeVariant, BadgeSize } from "./badge.types.js";
2
+ type __VLS_Props = {
3
+ variant?: BadgeVariant;
4
+ size?: BadgeSize;
5
+ count?: string | number;
6
+ label?: string;
7
+ statusIcon?: boolean;
8
+ disabled?: boolean;
9
+ };
10
+ declare const __VLS_template: () => {
11
+ __VLS_Slots: {
12
+ icon?: (props: {}) => any;
13
+ } & {
14
+ default?: (props: {}) => any;
15
+ };
16
+ };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
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
+ 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,4 @@
1
+ export declare const badgeVariants: readonly ["negative", "neutral", "accent", "positive", "info", "warning"];
2
+ export declare const badgeSizes: readonly ["xsmall", "small", "medium", "large"];
3
+ export type BadgeVariant = (typeof badgeVariants)[number];
4
+ export type BadgeSize = (typeof badgeSizes)[number];
@@ -0,0 +1,13 @@
1
+ import type { BadgeVariant, BadgeSize } from "./badge.options.js";
2
+ export type { BadgeVariant, BadgeSize } from "./badge.options.js";
3
+ export type BadgeElement = HTMLElement & {
4
+ variant: BadgeVariant;
5
+ size: BadgeSize;
6
+ count?: string | number;
7
+ label: string;
8
+ statusIcon: boolean;
9
+ disabled: boolean;
10
+ };
11
+ export type BadgeConstructor = CustomElementConstructor & {
12
+ new (initialProps?: Partial<BadgeElement>): BadgeElement;
13
+ };
@@ -4,16 +4,19 @@ type __VLS_Props = {
4
4
  variant?: ButtonVariant;
5
5
  size?: ButtonSize;
6
6
  iconOnly?: boolean;
7
- ariaLabel?: string;
8
7
  navigation?: ButtonNavigation;
8
+ expand?: boolean;
9
+ onColoredBg?: boolean;
9
10
  disabled?: boolean;
10
11
  loading?: boolean;
11
12
  };
12
- declare var __VLS_1: {};
13
- type __VLS_Slots = {} & {
14
- default?: (props: typeof __VLS_1) => any;
13
+ declare const __VLS_template: () => {
14
+ __VLS_Slots: {
15
+ default?: (props: {}) => any;
16
+ };
15
17
  };
16
- 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
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
19
+ 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>;
17
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
21
  declare const _default: typeof __VLS_export;
19
22
  export default _default;
@@ -1,4 +1,4 @@
1
- export declare const buttonVariants: readonly ["default", "strong", "brand", "minimal", "negative"];
1
+ export declare const buttonVariants: readonly ["default", "strong", "brand", "minimal", "negative", "assistant"];
2
2
  export declare const buttonSizes: readonly ["medium", "small"];
3
3
  export declare const buttonTypes: readonly ["button", "submit", "reset"];
4
4
  export declare const buttonNavigations: readonly ["previous", "next"];
@@ -7,6 +7,8 @@ export type ButtonElement = HTMLElement & {
7
7
  iconOnly: boolean;
8
8
  disabled: boolean;
9
9
  loading: boolean;
10
+ expand: boolean;
11
+ onColoredBg: boolean;
10
12
  navigation?: ButtonNavigation;
11
13
  };
12
14
  export type ButtonConstructor = CustomElementConstructor & {
@@ -1,21 +1,17 @@
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;
1
+ import type { CheckboxProps } from "./checkbox.types.js";
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ label?: (props: {}) => any;
5
+ } & {
6
+ label?: (props: {}) => any;
7
+ } & {
8
+ description?: (props: {}) => any;
9
+ } & {
10
+ asset?: (props: {}) => any;
11
+ };
17
12
  };
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>;
13
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
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>;
19
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
16
  declare const _default: typeof __VLS_export;
21
17
  export default _default;
@@ -1,19 +1,29 @@
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
  };
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
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_template: () => {
11
+ __VLS_Slots: {
12
+ label?: (props: {}) => any;
13
+ } & {
14
+ asset?: (props: {}) => any;
15
+ } & {
16
+ description?: (props: {}) => any;
17
+ };
9
18
  };
10
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
19
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
21
  change: (event: Event) => any;
12
22
  "update:modelValue": (value: boolean) => any;
13
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
23
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
24
  onChange?: ((event: Event) => any) | undefined;
15
25
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
28
  declare const _default: typeof __VLS_export;
19
29
  export default _default;
@@ -0,0 +1,2 @@
1
+ import type { InjectionKey } from "vue";
2
+ export declare const checkboxElementIdKey: InjectionKey<string>;
@@ -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;
@@ -8,6 +23,11 @@ export type CheckboxElement = HTMLElement & {
8
23
  required: boolean;
9
24
  divider: boolean;
10
25
  indeterminate: boolean;
26
+ readonly: boolean;
27
+ invalid: boolean;
28
+ reverse: boolean;
29
+ maxWidth: boolean;
30
+ standalone: boolean;
11
31
  };
12
32
  export type CheckboxConstructor = CustomElementConstructor & {
13
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
+ };
@@ -0,0 +1,86 @@
1
+ import type { ModalType, ModalSize, ModalVariant, ModalHeadingLevel } from "./modal.types.js";
2
+ type __VLS_Props = {
3
+ open?: boolean;
4
+ label?: string;
5
+ description?: string;
6
+ subtitle?: string;
7
+ headingLevel?: ModalHeadingLevel;
8
+ type?: ModalType;
9
+ size?: ModalSize;
10
+ variant?: ModalVariant;
11
+ iconLabel?: string;
12
+ fixedHeight?: boolean;
13
+ nonBlurred?: boolean;
14
+ stickyActions?: boolean;
15
+ horizontalActions?: boolean;
16
+ dismissible?: boolean;
17
+ closeLabel?: string;
18
+ closeOnEscape?: boolean;
19
+ closeOnBackdrop?: boolean;
20
+ };
21
+ declare function showModal(): void;
22
+ declare function close(returnValue?: string): void;
23
+ declare const __VLS_template: () => {
24
+ __VLS_Slots: {
25
+ previous?: (props: {}) => any;
26
+ } & {
27
+ subtitle?: (props: {}) => any;
28
+ } & {
29
+ icon?: (props: {}) => any;
30
+ } & {
31
+ title?: (props: {}) => any;
32
+ } & {
33
+ description?: (props: {}) => any;
34
+ } & {
35
+ default?: (props: {}) => any;
36
+ } & {
37
+ actions?: (props: {
38
+ close: typeof close;
39
+ }) => any;
40
+ } & {
41
+ actions?: (props: {
42
+ close: typeof close;
43
+ }) => any;
44
+ };
45
+ };
46
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
47
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
48
+ showModal: typeof showModal;
49
+ close: typeof close;
50
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ cancel: (event: Event) => any;
52
+ close: (returnValue: string) => any;
53
+ "update:open": (open: boolean) => any;
54
+ show: () => any;
55
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
56
+ onCancel?: ((event: Event) => any) | undefined;
57
+ onClose?: ((returnValue: string) => any) | undefined;
58
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
59
+ onShow?: (() => any) | undefined;
60
+ }>, {
61
+ variant: "neutral" | "positive" | "info" | "warning" | "negative";
62
+ label: string;
63
+ description: string;
64
+ dismissible: boolean;
65
+ closeLabel: string;
66
+ iconLabel: string;
67
+ type: "dialog" | "fullscreen";
68
+ size: "default" | "small";
69
+ open: boolean;
70
+ subtitle: string;
71
+ headingLevel: ModalHeadingLevel;
72
+ fixedHeight: boolean;
73
+ nonBlurred: boolean;
74
+ stickyActions: boolean;
75
+ horizontalActions: boolean;
76
+ closeOnEscape: boolean;
77
+ closeOnBackdrop: boolean;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
80
+ declare const _default: typeof __VLS_export;
81
+ export default _default;
82
+ type __VLS_WithSlots<T, S> = T & {
83
+ new (): {
84
+ $slots: S;
85
+ };
86
+ };
@@ -0,0 +1,2 @@
1
+ import type { InjectionKey } from "vue";
2
+ export declare const modalElementIdKey: InjectionKey<string>;
@@ -0,0 +1,7 @@
1
+ export declare const modalTypes: readonly ["dialog", "fullscreen"];
2
+ export type ModalType = (typeof modalTypes)[number];
3
+ export declare const modalSizes: readonly ["default", "small"];
4
+ export type ModalSize = (typeof modalSizes)[number];
5
+ export declare const modalVariants: readonly ["neutral", "negative", "positive", "info", "warning"];
6
+ export type ModalVariant = (typeof modalVariants)[number];
7
+ export type ModalHeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";