@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.
- package/LICENSE +21 -0
- package/README.md +17 -72
- package/dist/alert-B4w3fDHo.js +89 -0
- package/dist/alert-Chns046l.js +77 -0
- package/dist/alert.js +2 -0
- package/dist/badge-CDpWg-AO.js +57 -0
- package/dist/badge-yaFEZnEW.js +54 -0
- package/dist/badge.js +2 -0
- package/dist/{button-LlRiSiGS.js → button-nN1Pcwm6.js} +36 -21
- package/dist/button-rgIJZsYq.js +94 -0
- package/dist/button.js +1 -1
- package/dist/checkbox-D7TFFuw3.js +196 -0
- package/dist/checkbox-DfYlHYR2.js +155 -0
- package/dist/checkbox.js +1 -1
- package/dist/chip-B3v4pWZD.js +92 -0
- package/dist/chip-DGfqitrQ.js +115 -0
- package/dist/chip.js +2 -0
- package/dist/control-item-slots-BDoeNuk4.js +15 -0
- package/dist/control-item-slots-Ddp7c8w8.js +12 -0
- package/dist/elements-alert.js +2 -0
- package/dist/elements-badge.js +2 -0
- package/dist/elements-button.js +1 -1
- package/dist/elements-checkbox.js +1 -1
- package/dist/elements-chip.js +2 -0
- package/dist/elements-modal.js +2 -0
- package/dist/elements-radio.js +2 -0
- package/dist/elements-select.js +1 -1
- package/dist/elements-switch.js +2 -0
- package/dist/elements-tag.js +1 -1
- package/dist/elements-text-area.js +2 -0
- package/dist/elements-text-input.js +1 -1
- package/dist/elements.js +14 -7
- package/dist/index.js +13 -6
- package/dist/modal-BAvMVUIE.js +193 -0
- package/dist/modal-BnT5Kxjg.js +181 -0
- package/dist/modal.js +2 -0
- package/dist/radio-CDq4r1_L.js +155 -0
- package/dist/radio-TaYThYkI.js +199 -0
- package/dist/radio.js +5 -0
- package/dist/{runtime-dom.esm-bundler-BzNNnH8h.js → runtime-dom.esm-bundler-DLryEdgJ.js} +987 -839
- package/dist/select--O3jL-En.js +134 -0
- package/dist/select-NiIx8bVD.js +191 -0
- package/dist/select.js +1 -1
- package/dist/switch-BmxLKPbL.js +179 -0
- package/dist/switch-D5N-j5F7.js +140 -0
- package/dist/switch.js +5 -0
- package/dist/tag-BvOt0v-c.js +84 -0
- package/dist/tag-Un7w0uDf.js +81 -0
- package/dist/tag.js +1 -1
- package/dist/text-area-BdmAyh3N.js +163 -0
- package/dist/text-area-BgYNtAMx.js +107 -0
- package/dist/text-area.js +5 -0
- package/dist/text-input-DgFIuIOA.js +235 -0
- package/dist/text-input-i559HVOP.js +163 -0
- package/dist/text-input.js +1 -1
- package/dist/types/alert.d.ts +1 -0
- package/dist/types/badge.d.ts +1 -0
- package/dist/types/chip.d.ts +1 -0
- package/dist/types/components/alert/Alert.vue.d.ts +37 -0
- package/dist/types/components/alert/alert.context.d.ts +2 -0
- package/dist/types/components/alert/alert.options.d.ts +2 -0
- package/dist/types/components/alert/alert.types.d.ts +14 -0
- package/dist/types/components/badge/Badge.vue.d.ts +26 -0
- package/dist/types/components/badge/badge.options.d.ts +4 -0
- package/dist/types/components/badge/badge.types.d.ts +13 -0
- package/dist/types/components/button/Button.vue.d.ts +8 -5
- package/dist/types/components/button/button.options.d.ts +1 -1
- package/dist/types/components/button/button.types.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.vue.d.ts +13 -17
- package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +18 -8
- package/dist/types/components/checkbox/checkbox.context.d.ts +2 -0
- package/dist/types/components/checkbox/checkbox.types.d.ts +20 -0
- package/dist/types/components/chip/Chip.vue.d.ts +38 -0
- package/dist/types/components/chip/VueChip.vue.d.ts +32 -0
- package/dist/types/components/chip/chip.context.d.ts +2 -0
- package/dist/types/components/chip/chip.types.d.ts +27 -0
- package/dist/types/components/modal/Modal.vue.d.ts +86 -0
- package/dist/types/components/modal/modal.context.d.ts +2 -0
- package/dist/types/components/modal/modal.options.d.ts +7 -0
- package/dist/types/components/modal/modal.types.d.ts +28 -0
- package/dist/types/components/radio/Radio.vue.d.ts +22 -0
- package/dist/types/components/radio/VueRadio.vue.d.ts +36 -0
- package/dist/types/components/radio/radio.context.d.ts +2 -0
- package/dist/types/components/radio/radio.types.d.ts +36 -0
- package/dist/types/components/select/Select.vue.d.ts +17 -17
- package/dist/types/components/select/VueSelect.vue.d.ts +24 -8
- package/dist/types/components/select/select.types.d.ts +28 -0
- package/dist/types/components/shared/control-item-slots.d.ts +3 -0
- package/dist/types/components/switch/Switch.vue.d.ts +20 -0
- package/dist/types/components/switch/VueSwitch.vue.d.ts +34 -0
- package/dist/types/components/switch/switch.context.d.ts +2 -0
- package/dist/types/components/switch/switch.types.d.ts +30 -0
- package/dist/types/components/tag/Tag.vue.d.ts +9 -4
- package/dist/types/components/tag/tag.options.d.ts +1 -1
- package/dist/types/components/tag/tag.types.d.ts +4 -0
- package/dist/types/components/text-area/TextArea.vue.d.ts +22 -0
- package/dist/types/components/text-area/VueTextArea.vue.d.ts +38 -0
- package/dist/types/components/text-area/text-area.types.d.ts +34 -0
- package/dist/types/components/text-input/TextInput.vue.d.ts +19 -34
- package/dist/types/components/text-input/VueTextInput.vue.d.ts +26 -16
- package/dist/types/components/text-input/text-input.types.d.ts +26 -0
- package/dist/types/elements/alert.d.ts +5 -0
- package/dist/types/elements/badge.d.ts +5 -0
- package/dist/types/elements/chip.d.ts +4 -0
- package/dist/types/elements/index.d.ts +15 -0
- package/dist/types/elements/modal.d.ts +5 -0
- package/dist/types/elements/radio.d.ts +4 -0
- package/dist/types/elements/switch.d.ts +4 -0
- package/dist/types/elements/text-area.d.ts +4 -0
- package/dist/types/modal.d.ts +1 -0
- package/dist/types/radio.d.ts +2 -0
- package/dist/types/switch.d.ts +2 -0
- package/dist/types/text-area.d.ts +2 -0
- package/dist/types/vue/alert.d.ts +3 -0
- package/dist/types/vue/badge.d.ts +3 -0
- package/dist/types/vue/checkbox.d.ts +1 -1
- package/dist/types/vue/chip.d.ts +2 -0
- package/dist/types/vue/index.d.ts +16 -3
- package/dist/types/vue/modal.d.ts +3 -0
- package/dist/types/vue/radio.d.ts +2 -0
- package/dist/types/vue/select.d.ts +1 -1
- package/dist/types/vue/switch.d.ts +2 -0
- package/dist/types/vue/text-area.d.ts +2 -0
- package/dist/types/vue/text-input.d.ts +1 -1
- package/dist/vue-alert.js +2 -0
- package/dist/vue-badge.js +2 -0
- package/dist/vue-button.js +1 -1
- package/dist/vue-checkbox.js +1 -1
- package/dist/vue-chip.js +2 -0
- package/dist/vue-modal.js +2 -0
- package/dist/vue-radio.js +2 -0
- package/dist/vue-select.js +1 -1
- package/dist/vue-switch.js +2 -0
- package/dist/vue-tag.js +1 -1
- package/dist/vue-text-area.js +2 -0
- package/dist/vue-text-input.js +1 -1
- package/dist/vue.js +13 -6
- package/package.json +96 -11
- package/dist/button-BPOKh6G4.js +0 -79
- package/dist/checkbox-BYrgMhwO.js +0 -105
- package/dist/checkbox-D-A_bSBK.js +0 -79
- package/dist/select-CA6TVlpX.js +0 -58
- package/dist/select-CKHEHpJL.js +0 -80
- package/dist/tag-B2qhuHjk.js +0 -41
- package/dist/tag-BY32Hj5n.js +0 -44
- package/dist/text-input-CtTr5yfe.js +0 -151
- package/dist/text-input-l1F2arKl.js +0 -201
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ModalType, ModalSize, ModalVariant, ModalHeadingLevel } from "./modal.options.js";
|
|
2
|
+
export type * from "./modal.options.js";
|
|
3
|
+
export interface ModalMethods {
|
|
4
|
+
showModal(): void;
|
|
5
|
+
close(returnValue?: string): void;
|
|
6
|
+
}
|
|
7
|
+
export type ModalElement = HTMLElement & ModalMethods & {
|
|
8
|
+
open: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
description: string;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
headingLevel: ModalHeadingLevel;
|
|
13
|
+
type: ModalType;
|
|
14
|
+
size: ModalSize;
|
|
15
|
+
variant: ModalVariant;
|
|
16
|
+
iconLabel: string;
|
|
17
|
+
fixedHeight: boolean;
|
|
18
|
+
nonBlurred: boolean;
|
|
19
|
+
stickyActions: boolean;
|
|
20
|
+
horizontalActions: boolean;
|
|
21
|
+
dismissible: boolean;
|
|
22
|
+
closeLabel: string;
|
|
23
|
+
closeOnEscape: boolean;
|
|
24
|
+
closeOnBackdrop: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type ModalConstructor = CustomElementConstructor & {
|
|
27
|
+
new (initialProps?: Partial<ModalElement>): ModalElement;
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { RadioProps } from "./radio.types.js";
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
label?: (props: {}) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'extra-label'?: (props: {}) => any;
|
|
7
|
+
} & {
|
|
8
|
+
description?: (props: {}) => any;
|
|
9
|
+
} & {
|
|
10
|
+
asset?: (props: {}) => any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
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>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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;
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: string;
|
|
8
|
+
};
|
|
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
|
+
'extra-label'?: (props: {}) => any;
|
|
17
|
+
} & {
|
|
18
|
+
description?: (props: {}) => any;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
change: (event: Event) => any;
|
|
24
|
+
"update:modelValue": (value: string) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
17
|
+
export type RadioElement = HTMLElement & {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
description: string;
|
|
21
|
+
value: string;
|
|
22
|
+
checked: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
required: boolean;
|
|
25
|
+
divider: boolean;
|
|
26
|
+
name: string;
|
|
27
|
+
outlined: boolean;
|
|
28
|
+
extraLabel: string;
|
|
29
|
+
readonly: boolean;
|
|
30
|
+
invalid: boolean;
|
|
31
|
+
reverse: boolean;
|
|
32
|
+
maxWidth: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type RadioConstructor = CustomElementConstructor & {
|
|
35
|
+
new (initialProps?: Partial<RadioElement>): RadioElement;
|
|
36
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
label?: (props: typeof __VLS_1) => any;
|
|
1
|
+
import type { SelectProps } from "./select.types.js";
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
'leading-icon'?: (props: {}) => any;
|
|
5
|
+
} & {
|
|
6
|
+
label?: (props: {}) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: {}) => any;
|
|
9
|
+
} & {
|
|
10
|
+
'helper-text'?: (props: {}) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'error-text'?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'helper-link'?: (props: {}) => any;
|
|
15
|
+
};
|
|
17
16
|
};
|
|
18
|
-
|
|
17
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
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>;
|
|
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;
|
|
@@ -1,19 +1,35 @@
|
|
|
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
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_template: () => {
|
|
11
|
+
__VLS_Slots: {
|
|
12
|
+
label?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'leading-icon'?: (props: {}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
'helper-text'?: (props: {}) => any;
|
|
17
|
+
} & {
|
|
18
|
+
'error-text'?: (props: {}) => any;
|
|
19
|
+
} & {
|
|
20
|
+
'helper-link'?: (props: {}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
default?: (props: {}) => any;
|
|
23
|
+
};
|
|
9
24
|
};
|
|
10
|
-
|
|
25
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
27
|
change: (event: Event) => any;
|
|
12
28
|
"update:modelValue": (value: string) => any;
|
|
13
|
-
}, string, import("
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
30
|
onChange?: ((event: Event) => any) | undefined;
|
|
15
31
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import("
|
|
32
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
34
|
declare const _default: typeof __VLS_export;
|
|
19
35
|
export default _default;
|
|
@@ -1,11 +1,39 @@
|
|
|
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
|
+
value?: string;
|
|
12
|
+
outlined?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
maxWidth?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
}
|
|
1
19
|
export type SelectElement = HTMLElement & {
|
|
2
20
|
id: string;
|
|
3
21
|
label: string;
|
|
4
22
|
helperText: string;
|
|
23
|
+
errorText: string;
|
|
24
|
+
helperLink: string;
|
|
25
|
+
helperLinkHref: string;
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
5
30
|
value: string;
|
|
6
31
|
outlined: boolean;
|
|
7
32
|
disabled: boolean;
|
|
8
33
|
required: boolean;
|
|
34
|
+
invalid: boolean;
|
|
35
|
+
maxWidth: boolean;
|
|
36
|
+
loading: boolean;
|
|
9
37
|
};
|
|
10
38
|
export type SelectConstructor = CustomElementConstructor & {
|
|
11
39
|
new (initialProps?: Partial<SelectElement>): SelectElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SwitchProps } from "./switch.types.js";
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
label?: (props: {}) => any;
|
|
5
|
+
} & {
|
|
6
|
+
description?: (props: {}) => any;
|
|
7
|
+
} & {
|
|
8
|
+
asset?: (props: {}) => any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { SwitchProps } from "./switch.types.js";
|
|
3
|
+
interface Props extends Omit<InputHTMLAttributes, keyof SwitchProps>, Omit<SwitchProps, "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
|
+
label?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
asset?: (props: {}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
description?: (props: {}) => any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
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, {
|
|
21
|
+
change: (event: Event) => any;
|
|
22
|
+
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface SwitchProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
reverse?: boolean;
|
|
12
|
+
maxWidth?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type SwitchElement = HTMLElement & {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
description: string;
|
|
18
|
+
value: string;
|
|
19
|
+
checked: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
divider: boolean;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
invalid: boolean;
|
|
25
|
+
reverse: boolean;
|
|
26
|
+
maxWidth: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type SwitchConstructor = CustomElementConstructor & {
|
|
29
|
+
new (initialProps?: Partial<SwitchElement>): SwitchElement;
|
|
30
|
+
};
|
|
@@ -4,12 +4,17 @@ type __VLS_Props = {
|
|
|
4
4
|
statusIcon?: boolean;
|
|
5
5
|
size?: TagSize;
|
|
6
6
|
muted?: boolean;
|
|
7
|
+
bullet?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
7
10
|
};
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
declare const __VLS_template: () => {
|
|
12
|
+
__VLS_Slots: {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
};
|
|
11
15
|
};
|
|
12
|
-
|
|
16
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
17
|
+
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>;
|
|
13
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
19
|
declare const _default: typeof __VLS_export;
|
|
15
20
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const tagVariants: readonly ["neutral", "accent", "positive", "info", "warning", "negative"];
|
|
1
|
+
export declare const tagVariants: readonly ["neutral", "accent", "positive", "info", "warning", "negative", "categorical-1", "categorical-2", "categorical-3", "categorical-4", "categorical-5"];
|
|
2
2
|
export declare const tagSizes: readonly ["medium", "small"];
|
|
3
3
|
export type TagVariant = (typeof tagVariants)[number];
|
|
4
4
|
export type TagSize = (typeof tagSizes)[number];
|
|
@@ -4,6 +4,10 @@ export type TagElement = HTMLElement & {
|
|
|
4
4
|
variant: TagVariant;
|
|
5
5
|
size: TagSize;
|
|
6
6
|
muted: boolean;
|
|
7
|
+
statusIcon: boolean;
|
|
8
|
+
bullet: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
loading: boolean;
|
|
7
11
|
};
|
|
8
12
|
export type TagConstructor = CustomElementConstructor & {
|
|
9
13
|
new (initialProps?: Partial<TagElement>): TagElement;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TextAreaProps } from "./text-area.types.js";
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
label?: (props: {}) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'helper-text'?: (props: {}) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'error-text'?: (props: {}) => any;
|
|
9
|
+
} & {
|
|
10
|
+
'helper-link'?: (props: {}) => any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<TextAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextAreaProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from "vue";
|
|
2
|
+
import type { TextAreaProps } from "./text-area.types.js";
|
|
3
|
+
interface Props extends Omit<TextareaHTMLAttributes, keyof TextAreaProps>, Omit<TextAreaProps, "value"> {
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = Props;
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: string;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_template: () => {
|
|
11
|
+
__VLS_Slots: {
|
|
12
|
+
label?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'helper-text'?: (props: {}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
'error-text'?: (props: {}) => any;
|
|
17
|
+
} & {
|
|
18
|
+
'helper-link'?: (props: {}) => any;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
input: (event: Event) => any;
|
|
24
|
+
change: (event: Event) => any;
|
|
25
|
+
"update:modelValue": (value: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
28
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
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,34 @@
|
|
|
1
|
+
export interface TextAreaProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
helperText?: string;
|
|
5
|
+
errorText?: string;
|
|
6
|
+
helperLink?: string;
|
|
7
|
+
helperLinkHref?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
outlined?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
invalid?: boolean;
|
|
14
|
+
maxWidth?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type TextAreaElement = HTMLElement & {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
helperText: string;
|
|
21
|
+
errorText: string;
|
|
22
|
+
helperLink: string;
|
|
23
|
+
helperLinkHref: string;
|
|
24
|
+
value: string;
|
|
25
|
+
outlined: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
readonly: boolean;
|
|
28
|
+
required: boolean;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
maxWidth: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type TextAreaConstructor = CustomElementConstructor & {
|
|
33
|
+
new (initialProps?: Partial<TextAreaElement>): TextAreaElement;
|
|
34
|
+
};
|
|
@@ -1,38 +1,23 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
maxWidth?: boolean;
|
|
19
|
-
loading?: boolean;
|
|
20
|
-
};
|
|
21
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
22
|
-
type __VLS_Slots = {} & {
|
|
23
|
-
'leading-icon'?: (props: typeof __VLS_1) => any;
|
|
24
|
-
} & {
|
|
25
|
-
label?: (props: typeof __VLS_3) => any;
|
|
26
|
-
} & {
|
|
27
|
-
'trailing-action'?: (props: typeof __VLS_5) => any;
|
|
28
|
-
} & {
|
|
29
|
-
'helper-text'?: (props: typeof __VLS_7) => any;
|
|
30
|
-
} & {
|
|
31
|
-
'error-text'?: (props: typeof __VLS_9) => any;
|
|
32
|
-
} & {
|
|
33
|
-
'helper-link'?: (props: typeof __VLS_11) => any;
|
|
1
|
+
import type { TextInputProps } from "./text-input.types.js";
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
'leading-icon'?: (props: {}) => any;
|
|
5
|
+
} & {
|
|
6
|
+
label?: (props: {}) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'trailing-action'?: (props: {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'helper-text'?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'error-text'?: (props: {}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
'helper-link'?: (props: {}) => any;
|
|
17
|
+
};
|
|
34
18
|
};
|
|
35
|
-
|
|
19
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
22
|
declare const _default: typeof __VLS_export;
|
|
38
23
|
export default _default;
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { TextInputProps } from "./text-input.types.js";
|
|
3
|
+
interface Props extends Omit<InputHTMLAttributes, keyof TextInputProps>, Omit<TextInputProps, "value"> {
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = Props;
|
|
1
6
|
type __VLS_ModelProps = {
|
|
2
7
|
modelValue?: string;
|
|
3
8
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_template: () => {
|
|
11
|
+
__VLS_Slots: {
|
|
12
|
+
label?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'leading-icon'?: (props: {}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
'trailing-action'?: (props: {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
}) => any;
|
|
19
|
+
} & {
|
|
20
|
+
'helper-text'?: (props: {}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
'error-text'?: (props: {}) => any;
|
|
23
|
+
} & {
|
|
24
|
+
'helper-link'?: (props: {}) => any;
|
|
25
|
+
};
|
|
17
26
|
};
|
|
18
|
-
|
|
27
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
28
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
29
|
input: (event: Event) => any;
|
|
20
30
|
change: (event: Event) => any;
|
|
21
31
|
"update:modelValue": (value: string) => any;
|
|
22
|
-
}, string, import("
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
33
|
onInput?: ((event: Event) => any) | undefined;
|
|
24
34
|
onChange?: ((event: Event) => any) | undefined;
|
|
25
35
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import("
|
|
36
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
38
|
declare const _default: typeof __VLS_export;
|
|
29
39
|
export default _default;
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
+
export interface TextInputProps {
|
|
2
|
+
prefix?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
errorText?: string;
|
|
7
|
+
helperLink?: string;
|
|
8
|
+
helperLinkHref?: string;
|
|
9
|
+
/** Hidden screen-reader text between the helper link and field label. Defaults to "on". */
|
|
10
|
+
helperLinkAria?: string;
|
|
11
|
+
suffix?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
outlined?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
maxWidth?: boolean;
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
/** Screen-reader loading announcement. Defaults to "Loading". */
|
|
22
|
+
loadingText?: string;
|
|
23
|
+
}
|
|
1
24
|
export type TextInputElement = HTMLElement & {
|
|
2
25
|
id: string;
|
|
3
26
|
label: string;
|
|
27
|
+
placeholder: string;
|
|
4
28
|
helperText: string;
|
|
5
29
|
errorText: string;
|
|
6
30
|
helperLink: string;
|
|
7
31
|
helperLinkHref: string;
|
|
32
|
+
helperLinkAria: string;
|
|
8
33
|
prefix: string;
|
|
9
34
|
suffix: string;
|
|
10
35
|
value: string;
|
|
@@ -16,6 +41,7 @@ export type TextInputElement = HTMLElement & {
|
|
|
16
41
|
invalid: boolean;
|
|
17
42
|
maxWidth: boolean;
|
|
18
43
|
loading: boolean;
|
|
44
|
+
loadingText: string;
|
|
19
45
|
};
|
|
20
46
|
export type TextInputConstructor = CustomElementConstructor & {
|
|
21
47
|
new (initialProps?: Partial<TextInputElement>): TextInputElement;
|