@open-xamu-co/ui-components-vue 3.1.0-next.9 → 4.0.0-next.1
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/CHANGELOG.md +468 -0
- package/dist/components/action/Button.stories.d.ts +8 -14
- package/dist/components/action/Button.vue.d.ts +11 -11
- package/dist/components/action/ButtonLink.stories.d.ts +4 -10
- package/dist/components/action/ButtonLink.vue.d.ts +17 -19
- package/dist/components/action/ButtonToggle.stories.d.ts +6 -10
- package/dist/components/action/ButtonToggle.vue.d.ts +7 -11
- package/dist/components/action/Link.stories.d.ts +4 -10
- package/dist/components/action/Link.vue.d.ts +7 -11
- package/dist/components/base/Action.vue.d.ts +7 -11
- package/dist/components/base/Box.vue.d.ts +13 -11
- package/dist/components/base/BrowserOnly.vue.d.ts +9 -12
- package/dist/components/base/ErrorBoundary.vue.d.ts +17 -15
- package/dist/components/base/Img.vue.d.ts +16 -56
- package/dist/components/base/Input.vue.d.ts +13 -15
- package/dist/components/base/Select.vue.d.ts +2 -1
- package/dist/components/base/Wrapper.vue.d.ts +12 -15
- package/dist/components/box/Action.stories.d.ts +4 -11
- package/dist/components/box/Action.vue.d.ts +3 -2
- package/dist/components/box/Message.stories.d.ts +4 -10
- package/dist/components/box/Message.vue.d.ts +7 -11
- package/dist/components/collapse/Simple.stories.d.ts +4 -11
- package/dist/components/collapse/Simple.vue.d.ts +7 -11
- package/dist/components/dropdown/Simple.stories.d.ts +4 -8
- package/dist/components/dropdown/Simple.vue.d.ts +37 -41
- package/dist/components/form/Input.stories.d.ts +3 -2
- package/dist/components/form/Input.vue.d.ts +2 -1
- package/dist/components/form/InputCountriesAPI.vue.d.ts +11 -19
- package/dist/components/form/InputLoop.vue.d.ts +12 -7
- package/dist/components/form/InputNValues.vue.d.ts +13 -6
- package/dist/components/form/InputOptions.vue.d.ts +19 -23
- package/dist/components/form/Simple.stories.d.ts +9 -5
- package/dist/components/form/Simple.vue.d.ts +17 -11
- package/dist/components/form/Stages.stories.d.ts +8 -69
- package/dist/components/form/Stages.vue.d.ts +29 -28
- package/dist/components/icon/Fa.stories.d.ts +4 -10
- package/dist/components/icon/Fa.vue.d.ts +2 -1
- package/dist/components/icon/Simple.stories.d.ts +4 -8
- package/dist/components/icon/Simple.vue.d.ts +7 -11
- package/dist/components/input/Color.stories.d.ts +4 -8
- package/dist/components/input/Color.vue.d.ts +11 -2
- package/dist/components/input/File.stories.d.ts +4 -10
- package/dist/components/input/File.vue.d.ts +6 -1
- package/dist/components/input/Text.stories.d.ts +4 -11
- package/dist/components/input/Text.vue.d.ts +2 -1
- package/dist/components/input/Toggle.stories.d.ts +4 -10
- package/dist/components/input/Toggle.vue.d.ts +9 -13
- package/dist/components/loader/Content.stories.d.ts +4 -8
- package/dist/components/loader/Content.vue.d.ts +7 -11
- package/dist/components/loader/ContentFetch.stories.d.ts +5 -8
- package/dist/components/loader/ContentFetch.vue.d.ts +19 -11
- package/dist/components/loader/Simple.stories.d.ts +4 -8
- package/dist/components/loader/Simple.vue.d.ts +7 -11
- package/dist/components/modal/Simple.stories.d.ts +5 -8
- package/dist/components/modal/Simple.vue.d.ts +53 -53
- package/dist/components/pagination/Content.stories.d.ts +4 -7
- package/dist/components/pagination/Content.vue.d.ts +29 -12
- package/dist/components/pagination/ContentTable.stories.d.ts +6 -8
- package/dist/components/pagination/ContentTable.vue.d.ts +62 -25
- package/dist/components/pagination/Simple.stories.d.ts +5 -8
- package/dist/components/pagination/Simple.vue.d.ts +12 -7
- package/dist/components/select/Choice.stories.d.ts +6 -11
- package/dist/components/select/Choice.vue.d.ts +2 -1
- package/dist/components/select/Filter.stories.d.ts +5 -11
- package/dist/components/select/Filter.vue.d.ts +2 -1
- package/dist/components/select/Simple.stories.d.ts +4 -11
- package/dist/components/select/Simple.vue.d.ts +2 -1
- package/dist/components/slider/Simple.stories.d.ts +4 -8
- package/dist/components/slider/Simple.vue.d.ts +50 -0
- package/dist/components/table/Body.vue.d.ts +33 -21
- package/dist/components/table/HeadActions.vue.d.ts +31 -0
- package/dist/components/table/HeadContent.vue.d.ts +22 -0
- package/dist/components/table/Simple.stories.d.ts +9 -33
- package/dist/components/table/Simple.vue.d.ts +43 -28
- package/dist/components/value/Complex.stories.d.ts +4 -8
- package/dist/components/value/Complex.vue.d.ts +2 -1
- package/dist/components/value/List.stories.d.ts +4 -27
- package/dist/components/value/List.vue.d.ts +2 -12
- package/dist/components/value/Simple.stories.d.ts +5 -10
- package/dist/components/value/Simple.vue.d.ts +10 -5
- package/dist/composables/theme.d.ts +8 -1
- package/dist/composables/utils.d.ts +2 -1
- package/dist/index-Bbn-n1yC.js +7098 -0
- package/dist/index-CyI1yZlR.cjs +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +45 -1
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.js +902 -1
- package/dist/theme-CChhGSbE.cjs +1 -0
- package/dist/theme-DWMJmaKP.js +83 -0
- package/dist/theme.cjs +1 -0
- package/dist/theme.js +7 -1
- package/dist/types/plugin.d.ts +9 -1
- package/dist/types/props.d.ts +60 -17
- package/dist/types/storybook.d.ts +10 -0
- package/package.json +40 -31
- package/dist/components/table/Head.vue.d.ts +0 -25
- package/dist/index-BtJc7cX1.js +0 -4
- package/dist/index-DTG4ktcY.mjs +0 -6753
- package/dist/index.mjs +0 -45
- package/dist/plugin.mjs +0 -874
- package/dist/screens/DropdownWithToggle.stories.d.ts +0 -11
- package/dist/screens/DropdownWithToggle.vue.d.ts +0 -2
- package/dist/screens/FormWithFetch.stories.d.ts +0 -11
- package/dist/screens/FormWithFetch.vue.d.ts +0 -2
- package/dist/screens/ModalWithFormStages.stories.d.ts +0 -11
- package/dist/screens/ModalWithFormStages.vue.d.ts +0 -2
- package/dist/screens/ModalWithToggle.stories.d.ts +0 -11
- package/dist/screens/ModalWithToggle.vue.d.ts +0 -2
- package/dist/screens/PaginationContentWithTable.stories.d.ts +0 -11
- package/dist/screens/PaginationContentWithTable.vue.d.ts +0 -8
- package/dist/screens/TableWithNestedTable.stories.d.ts +0 -11
- package/dist/screens/TableWithNestedTable.vue.d.ts +0 -8
- package/dist/theme-DSVG59vT.js +0 -1
- package/dist/theme-DVpUQx-w.mjs +0 -78
- package/dist/theme.mjs +0 -7
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import type { iUseModifiersProps, iUseStateProps, iUseThemeProps, iActionProps, iUseThemeTooltipProps } from "../../types/props";
|
|
2
2
|
interface iActionLinkProps extends iActionProps, iUseModifiersProps, iUseStateProps, iUseThemeProps, iUseThemeTooltipProps {
|
|
3
3
|
}
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
11
7
|
};
|
|
12
|
-
|
|
13
|
-
declare const
|
|
14
|
-
declare const _default:
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<iActionLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
15
11
|
export default _default;
|
|
16
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
13
|
new (): {
|
|
18
14
|
$slots: S;
|
|
19
15
|
};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import type { iActionProps } from "../../types/props";
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {};
|
|
8
|
-
rootEl: any;
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
5
|
};
|
|
10
|
-
|
|
11
|
-
declare const
|
|
12
|
-
declare const _default:
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<iActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
13
9
|
export default _default;
|
|
14
|
-
type
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
11
|
new (): {
|
|
16
12
|
$slots: S;
|
|
17
13
|
};
|
|
@@ -13,20 +13,22 @@ interface iBaseBoxProps extends iUseModifiersProps, iUseStateProps, iUseThemePro
|
|
|
13
13
|
solid?: boolean;
|
|
14
14
|
transparent?: boolean;
|
|
15
15
|
withColor?: boolean;
|
|
16
|
+
/** Prefer an opaque background */
|
|
17
|
+
opaque?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Square shape
|
|
20
|
+
*/
|
|
21
|
+
square?: boolean;
|
|
16
22
|
}
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default?(_: {}): any;
|
|
21
|
-
};
|
|
22
|
-
refs: {};
|
|
23
|
-
rootEl: any;
|
|
23
|
+
declare var __VLS_8: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_8) => any;
|
|
24
26
|
};
|
|
25
|
-
|
|
26
|
-
declare const
|
|
27
|
-
declare const _default:
|
|
27
|
+
declare const __VLS_base: import("vue").DefineComponent<iBaseBoxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBaseBoxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
28
30
|
export default _default;
|
|
29
|
-
type
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
32
|
new (): {
|
|
31
33
|
$slots: S;
|
|
32
34
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
refs: {};
|
|
8
|
-
rootEl: any;
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
fallback?: (props: typeof __VLS_3) => any;
|
|
9
6
|
};
|
|
10
|
-
|
|
11
|
-
declare const
|
|
12
|
-
declare const _default:
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
13
10
|
export default _default;
|
|
14
|
-
type
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
12
|
new (): {
|
|
16
13
|
$slots: S;
|
|
17
14
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import type { iUseThemeProps } from "../../types/props";
|
|
2
|
-
interface
|
|
2
|
+
interface iErrorBoundaryProps extends iUseThemeProps {
|
|
3
|
+
/**
|
|
4
|
+
* Where the error boundary is placed
|
|
5
|
+
* @logging Used for logging purposes
|
|
6
|
+
*/
|
|
7
|
+
at?: string;
|
|
3
8
|
errorMessage?: string;
|
|
4
9
|
}
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
10
|
+
declare var __VLS_1: {
|
|
11
|
+
errors: any;
|
|
12
|
+
}, __VLS_9: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
fallback?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
default?: (props: typeof __VLS_9) => any;
|
|
15
17
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<iErrorBoundaryProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iErrorBoundaryProps> & 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;
|
|
19
21
|
export default _default;
|
|
20
|
-
type
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
23
|
new (): {
|
|
22
24
|
$slots: S;
|
|
23
25
|
};
|
|
@@ -1,65 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1
|
+
type __VLS_Props = {
|
|
3
2
|
/**
|
|
4
3
|
* image url or path
|
|
5
4
|
*/
|
|
6
|
-
src
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
alt: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: null;
|
|
13
|
-
};
|
|
14
|
-
format: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: null;
|
|
17
|
-
};
|
|
18
|
-
loading: {
|
|
19
|
-
type: PropType<"eager" | "lazy">;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
format?: string;
|
|
8
|
+
loading?: "eager" | "lazy";
|
|
22
9
|
/**
|
|
23
10
|
* Url to an image to be used as placeholder for images that failed to load
|
|
24
11
|
* Overrides the plugin's imagePlaceholder
|
|
25
12
|
*/
|
|
26
|
-
placeholder
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: null;
|
|
37
|
-
};
|
|
38
|
-
alt: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: null;
|
|
41
|
-
};
|
|
42
|
-
format: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: null;
|
|
45
|
-
};
|
|
46
|
-
loading: {
|
|
47
|
-
type: PropType<"eager" | "lazy">;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Url to an image to be used as placeholder for images that failed to load
|
|
52
|
-
* Overrides the plugin's imagePlaceholder
|
|
53
|
-
*/
|
|
54
|
-
placeholder: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: null;
|
|
57
|
-
};
|
|
58
|
-
}>> & Readonly<{}>, {
|
|
59
|
-
alt: string;
|
|
60
|
-
placeholder: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
error: (...args: any[]) => void;
|
|
17
|
+
load: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {
|
|
61
22
|
loading: "eager" | "lazy";
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
65
25
|
export default _default;
|
|
@@ -6,27 +6,25 @@ interface iBaseInputProps extends iInputProps {
|
|
|
6
6
|
*/
|
|
7
7
|
modelValue?: unknown;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: any;
|
|
9
|
+
declare var __VLS_9: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
modelValue: unknown;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_9) => any;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
declare const __VLS_component: import("vue").DefineComponent<iBaseInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<iBaseInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
18
|
"update:model-value": (...args: any[]) => void;
|
|
19
|
+
change: (...args: any[]) => void;
|
|
24
20
|
}, string, import("vue").PublicProps, Readonly<iBaseInputProps> & Readonly<{
|
|
25
21
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
declare const
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
28
26
|
export default _default;
|
|
29
|
-
type
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
28
|
new (): {
|
|
31
29
|
$slots: S;
|
|
32
30
|
};
|
|
@@ -6,9 +6,10 @@ interface iBaseSelectProps extends iSelectProps {
|
|
|
6
6
|
*/
|
|
7
7
|
modelValue?: string | number;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<iBaseSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
"update:model-value": (...args: any[]) => void;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<iBaseSelectProps> & Readonly<{
|
|
12
12
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
13
13
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
+
import type { Teleport } from "vue";
|
|
1
2
|
import type { vComponent } from "../../types/plugin";
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
/** Wheter or not render the wrapper */
|
|
4
5
|
wrap: boolean;
|
|
5
6
|
/** Component or tag to render as wrapper */
|
|
6
|
-
wrapper?: vComponent | string;
|
|
7
|
+
wrapper?: vComponent | typeof Teleport | string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
default(v: Record<string, any>): void;
|
|
14
|
-
};
|
|
15
|
-
refs: {};
|
|
16
|
-
rootEl: any;
|
|
9
|
+
/**
|
|
10
|
+
* TODO: improve type safety for scoped slots in wrapper
|
|
11
|
+
*/
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default(v: Record<string, any>): void;
|
|
17
14
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
wrapper: vComponent | string;
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
wrapper: vComponent | typeof Teleport | string;
|
|
21
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
23
20
|
export default _default;
|
|
24
|
-
type
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
22
|
new (): {
|
|
26
23
|
$slots: S;
|
|
27
24
|
};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Action, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
label: string;
|
|
8
|
-
icon: "cubes";
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type Story = StoryObj<typeof Action>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import BoxAction from "./Action.vue";
|
|
3
|
+
declare const meta: Meta<typeof BoxAction>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
12
5
|
export declare const Sample: Story;
|
|
13
6
|
export default meta;
|
|
@@ -7,7 +7,7 @@ interface iBoxActionProps extends iActionProps, iUseModifiersProps, iUseStatePro
|
|
|
7
7
|
*/
|
|
8
8
|
icon?: IconName;
|
|
9
9
|
iconProps?: iFormIconProps & {
|
|
10
|
-
size
|
|
10
|
+
size?: number;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* image url or path
|
|
@@ -25,5 +25,6 @@ interface iBoxActionProps extends iActionProps, iUseModifiersProps, iUseStatePro
|
|
|
25
25
|
*/
|
|
26
26
|
imagePlaceholder?: string;
|
|
27
27
|
}
|
|
28
|
-
declare const
|
|
28
|
+
declare const __VLS_export: import("vue").DefineComponent<iBoxActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBoxActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
29
30
|
export default _default;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Message, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Story = StoryObj<typeof Message>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import BoxMessage from "./Message.vue";
|
|
3
|
+
declare const meta: Meta<typeof BoxMessage>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
11
5
|
export declare const Sample: Story;
|
|
12
6
|
export default meta;
|
|
@@ -5,19 +5,15 @@ interface iBoxMessageProps extends iActionProps, iUseModifiersProps, iUseStatePr
|
|
|
5
5
|
*/
|
|
6
6
|
text?: string;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
8
|
+
declare var __VLS_7: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<iBoxMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBoxMessageProps> & 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;
|
|
19
15
|
export default _default;
|
|
20
|
-
type
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
17
|
new (): {
|
|
22
18
|
$slots: S;
|
|
23
19
|
};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Simple, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
title: string;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import CollapseSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof CollapseSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
12
5
|
export declare const Sample: Story;
|
|
13
6
|
export default meta;
|
|
@@ -5,19 +5,15 @@ interface Collapse extends iUseThemeProps {
|
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
el?: vComponent | string;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
8
|
+
declare var __VLS_18: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_18) => any;
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<Collapse, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Collapse> & 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;
|
|
19
15
|
export default _default;
|
|
20
|
-
type
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
17
|
new (): {
|
|
22
18
|
$slots: S;
|
|
23
19
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Simple, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import DropdownSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof DropdownSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|
|
@@ -21,46 +21,41 @@ interface iDropdownProps extends iUseModifiersProps, iUseThemeProps {
|
|
|
21
21
|
classes?: string;
|
|
22
22
|
}
|
|
23
23
|
declare function setModel(value?: boolean): void;
|
|
24
|
-
declare
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
toggleRef: HTMLDivElement;
|
|
58
|
-
dropdownRef: HTMLDivElement;
|
|
59
|
-
};
|
|
60
|
-
rootEl: any;
|
|
24
|
+
declare var __VLS_8: {
|
|
25
|
+
model: boolean;
|
|
26
|
+
setModel: typeof setModel;
|
|
27
|
+
}, __VLS_17: {
|
|
28
|
+
model: boolean;
|
|
29
|
+
isModal: boolean;
|
|
30
|
+
setModel: typeof setModel;
|
|
31
|
+
modalRef: HTMLDialogElement | undefined;
|
|
32
|
+
dropdownRef: HTMLElement | undefined;
|
|
33
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
34
|
+
}, __VLS_19: {
|
|
35
|
+
model: boolean;
|
|
36
|
+
isModal: false;
|
|
37
|
+
setModel: typeof setModel;
|
|
38
|
+
modalRef: HTMLDialogElement | undefined;
|
|
39
|
+
dropdownRef: HTMLElement | undefined;
|
|
40
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
41
|
+
}, __VLS_22: {
|
|
42
|
+
model: boolean;
|
|
43
|
+
isModal: true;
|
|
44
|
+
setModel: typeof setModel;
|
|
45
|
+
modalRef: HTMLDialogElement | undefined;
|
|
46
|
+
dropdownRef: HTMLElement | undefined;
|
|
47
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Slots = {} & {
|
|
50
|
+
toggle?: (props: typeof __VLS_8) => any;
|
|
51
|
+
} & {
|
|
52
|
+
default?: (props: typeof __VLS_17) => any;
|
|
53
|
+
} & {
|
|
54
|
+
actions?: (props: typeof __VLS_19) => any;
|
|
55
|
+
} & {
|
|
56
|
+
actions?: (props: typeof __VLS_22) => any;
|
|
61
57
|
};
|
|
62
|
-
|
|
63
|
-
declare const __VLS_component: import("vue").DefineComponent<iDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
|
+
declare const __VLS_base: import("vue").DefineComponent<iDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
59
|
close: (...args: any[]) => void;
|
|
65
60
|
"update:model-value": (...args: any[]) => void;
|
|
66
61
|
}, string, import("vue").PublicProps, Readonly<iDropdownProps> & Readonly<{
|
|
@@ -70,9 +65,10 @@ declare const __VLS_component: import("vue").DefineComponent<iDropdownProps, {},
|
|
|
70
65
|
theme: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>;
|
|
71
66
|
classes: string;
|
|
72
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
73
|
-
declare const
|
|
68
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
|
+
declare const _default: typeof __VLS_export;
|
|
74
70
|
export default _default;
|
|
75
|
-
type
|
|
71
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
76
72
|
new (): {
|
|
77
73
|
$slots: S;
|
|
78
74
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3";
|
|
2
|
-
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import FormInputComponent from "./Input.vue";
|
|
3
|
+
declare const meta: Meta<typeof FormInputComponent>;
|
|
3
4
|
type Story = StoryObj<typeof meta>;
|
|
4
5
|
export declare const Sample: Story;
|
|
5
6
|
export default meta;
|
|
@@ -13,9 +13,10 @@ export interface iFormInputProps extends iUseThemeProps {
|
|
|
13
13
|
/** Make all inputs read only by disabling them */
|
|
14
14
|
readonly?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<iFormInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
17
|
"update:model-value": (...args: any[]) => void;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<iFormInputProps> & Readonly<{
|
|
19
19
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
21
22
|
export default _default;
|