@lumx/vue 4.3.2-alpha.45 → 4.3.2-alpha.46
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/components/link/Link.d.ts +6 -7
- package/components/link/Link.stories.d.ts +116 -0
- package/components/link/Stories/LinkDefault.vue.d.ts +17 -0
- package/components/link/index.d.ts +3 -2
- package/index.js +1065 -1090
- package/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { LinkProps as UIProps
|
|
1
|
+
import { LinkProps as UIProps } from '@lumx/core/js/components/Link';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
-
export type LinkProps = VueToJSXProps<UIProps
|
|
3
|
+
export type LinkProps = VueToJSXProps<UIProps>;
|
|
4
4
|
export declare const emitSchema: {
|
|
5
|
-
click: (event:
|
|
5
|
+
click: (event: MouseEvent) => boolean;
|
|
6
6
|
};
|
|
7
|
-
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
8
7
|
/**
|
|
9
8
|
* Link component.
|
|
10
9
|
*
|
|
@@ -12,10 +11,10 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
12
11
|
* @return Vue element.
|
|
13
12
|
*/
|
|
14
13
|
declare const Link: import('vue').DefineSetupFnComponent<LinkProps, {
|
|
15
|
-
click: (event:
|
|
16
|
-
}, {}, Omit<UIProps, "className" |
|
|
14
|
+
click: (event: MouseEvent) => boolean;
|
|
15
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
17
16
|
class?: string;
|
|
18
17
|
} & {
|
|
19
|
-
onClick?: ((event:
|
|
18
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
20
19
|
}, import('vue').PublicProps>;
|
|
21
20
|
export default Link;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Typography } from '@lumx/core/js/constants';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: any;
|
|
4
|
+
render: any;
|
|
5
|
+
argTypes: {
|
|
6
|
+
color: {
|
|
7
|
+
control: {
|
|
8
|
+
type: "select" | "inline-radio";
|
|
9
|
+
};
|
|
10
|
+
options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
|
|
11
|
+
mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
|
|
12
|
+
};
|
|
13
|
+
colorVariant: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "select" | "inline-radio";
|
|
16
|
+
};
|
|
17
|
+
options: ("D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N")[];
|
|
18
|
+
mapping: Record<string, "D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N"> | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
args: {
|
|
22
|
+
children: string;
|
|
23
|
+
color?: import('../..').ColorWithVariants | undefined;
|
|
24
|
+
colorVariant?: import('../..').ColorVariant | undefined;
|
|
25
|
+
href?: string | undefined;
|
|
26
|
+
isDisabled?: boolean | undefined;
|
|
27
|
+
linkAs?: string | any;
|
|
28
|
+
handleClick?: ((event: any) => void) | undefined;
|
|
29
|
+
target?: string | undefined;
|
|
30
|
+
typography?: Typography | undefined;
|
|
31
|
+
ref?: import('../..').CommonRef;
|
|
32
|
+
className?: string | undefined;
|
|
33
|
+
'aria-disabled'?: import('@lumx/core/js/types/Booleanish').Booleanish | undefined;
|
|
34
|
+
disabled?: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
title: string;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
export declare const Default: {
|
|
40
|
+
args: {
|
|
41
|
+
href: string;
|
|
42
|
+
target: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const AllColors: {
|
|
46
|
+
argTypes: {
|
|
47
|
+
color: {
|
|
48
|
+
control: boolean;
|
|
49
|
+
};
|
|
50
|
+
colorVariant: {
|
|
51
|
+
control: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
decorators: ((story: any, context: any) => any)[];
|
|
55
|
+
};
|
|
56
|
+
export declare const AllStates: {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Use a custom typography and customize it via CSS variable
|
|
61
|
+
*/
|
|
62
|
+
export declare const WithCustomizableTypography: {
|
|
63
|
+
args: {
|
|
64
|
+
typography: "custom-title1";
|
|
65
|
+
};
|
|
66
|
+
render: (args: any) => {
|
|
67
|
+
components: {
|
|
68
|
+
Link: import('vue').DefineSetupFnComponent<import('../..').LinkProps, {
|
|
69
|
+
click: (event: MouseEvent) => boolean;
|
|
70
|
+
}, {}, Omit<import('@lumx/core/js/components/Link').LinkProps, "className" | import('../..').PropsToOverride | "children"> & {
|
|
71
|
+
class?: string;
|
|
72
|
+
} & {
|
|
73
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
74
|
+
}, import('vue').PublicProps>;
|
|
75
|
+
};
|
|
76
|
+
setup(): {
|
|
77
|
+
args: any;
|
|
78
|
+
};
|
|
79
|
+
template: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Check how link inherit parent typography & color.
|
|
84
|
+
* Typography should be inherited.
|
|
85
|
+
* Color should not.
|
|
86
|
+
*/
|
|
87
|
+
export declare const ParentTypographyAndColor: {
|
|
88
|
+
args: {
|
|
89
|
+
'parent.typography': undefined;
|
|
90
|
+
'parent.color': undefined;
|
|
91
|
+
};
|
|
92
|
+
render: ({ parent, ...args }: any) => {
|
|
93
|
+
components: {
|
|
94
|
+
Link: import('vue').DefineSetupFnComponent<import('../..').LinkProps, {
|
|
95
|
+
click: (event: MouseEvent) => boolean;
|
|
96
|
+
}, {}, Omit<import('@lumx/core/js/components/Link').LinkProps, "className" | import('../..').PropsToOverride | "children"> & {
|
|
97
|
+
class?: string;
|
|
98
|
+
} & {
|
|
99
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
100
|
+
}, import('vue').PublicProps>;
|
|
101
|
+
Text: import('vue').DefineSetupFnComponent<import('../..').TextProps, {}, {}, Omit<import('@lumx/core/js/components/Text').TextProps, "className" | import('../..').PropsToOverride | "children"> & {
|
|
102
|
+
class?: string;
|
|
103
|
+
} & {}, import('vue').PublicProps>;
|
|
104
|
+
Icon: import('vue').DefineSetupFnComponent<import('../icon/Icon').IconProps, {}, {}, Omit<import('../..').IconProps, "className" | import('../..').PropsToOverride | "children"> & {
|
|
105
|
+
class?: string;
|
|
106
|
+
} & {}, import('vue').PublicProps>;
|
|
107
|
+
};
|
|
108
|
+
setup(): {
|
|
109
|
+
parent: any;
|
|
110
|
+
args: any;
|
|
111
|
+
mdiEarth: string;
|
|
112
|
+
};
|
|
113
|
+
template: string;
|
|
114
|
+
};
|
|
115
|
+
decorators: ((story: any, context: any) => any)[];
|
|
116
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { default as Link, LinkProps } from './Link';
|
|
2
|
+
export { Link };
|
|
3
|
+
export type { LinkProps };
|