@lumx/vue 4.3.2-alpha.9 → 4.4.0
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/badge/Badge.d.ts +1 -1
- package/components/badge/Badge.stories.d.ts +34 -0
- package/components/badge/BadgeWrapper.d.ts +1 -1
- package/components/badge/BadgeWrapper.stories.d.ts +18 -0
- package/components/button/Button.d.ts +1 -1
- package/components/button/ButtonGroup.d.ts +1 -1
- package/components/button/IconButton.d.ts +1 -1
- package/components/checkbox/Checkbox.d.ts +1 -1
- package/components/divider/Divider.d.ts +1 -1
- package/components/flag/Flag.d.ts +1 -1
- package/components/flag/Flag.stories.d.ts +108 -0
- package/components/flex-box/FlexBox.d.ts +1 -1
- package/components/grid-column/GridColumn.d.ts +1 -1
- package/components/grid-column/GridColumn.stories.d.ts +1 -1
- package/components/heading/Heading.d.ts +1 -1
- package/components/icon/Icon.d.ts +1 -1
- package/components/input-helper/InputHelper.d.ts +1 -1
- package/components/input-label/InputLabel.d.ts +1 -1
- package/components/link/Link.d.ts +6 -7
- package/components/link/Link.stories.d.ts +268 -0
- package/components/link/index.d.ts +3 -2
- package/components/message/Message.d.ts +1 -1
- package/components/progress/ProgressCircular.d.ts +9 -0
- package/components/progress/ProgressCircular.stories.d.ts +22 -0
- package/components/progress/ProgressLinear.d.ts +8 -0
- package/components/progress/index.d.ts +6 -0
- package/components/radio-button/RadioButton.d.ts +1 -1
- package/components/skeleton/SkeletonCircle.d.ts +1 -1
- package/components/skeleton/SkeletonRectangle.d.ts +1 -1
- package/components/skeleton/SkeletonTypography.d.ts +1 -1
- package/components/switch/Switch.d.ts +1 -1
- package/components/table/Table.d.ts +1 -1
- package/components/table/TableBody.d.ts +1 -1
- package/components/table/TableCell.d.ts +2 -2
- package/components/table/TableHeader.d.ts +1 -1
- package/components/table/TableRow.d.ts +1 -1
- package/components/text/Text.d.ts +1 -1
- package/components/thumbnail/Thumbnail.d.ts +2 -2
- package/components/thumbnail/Thumbnail.stories.d.ts +18 -10
- package/components/toolbar/Toolbar.d.ts +8 -0
- package/components/toolbar/Toolbar.stories.d.ts +19 -0
- package/components/toolbar/index.d.ts +3 -0
- package/composables/useHasEventListener.d.ts +7 -0
- package/index.d.ts +2 -0
- package/index.js +1499 -1381
- package/index.js.map +1 -1
- package/package.json +11 -6
- package/stories/decorators/withResizableBox.d.ts +2 -2
- package/stories/utils/CustomLink.vue.d.ts +29 -0
- package/utils/VueToJSX.d.ts +2 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
args: Partial<import('@lumx/core/js/components/ProgressCircular').ProgressCircularProps>;
|
|
4
|
+
argTypes: {
|
|
5
|
+
size: {
|
|
6
|
+
control: {
|
|
7
|
+
type: "select" | "inline-radio";
|
|
8
|
+
};
|
|
9
|
+
options: import('../..').ProgressCircularSize[];
|
|
10
|
+
mapping: Record<string, import('../..').ProgressCircularSize> | undefined;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Default: {};
|
|
17
|
+
export declare const AllSizes: {
|
|
18
|
+
decorators: ((story: any, context: any) => any)[];
|
|
19
|
+
};
|
|
20
|
+
export declare const Inline: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ProgressLinearProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/ProgressLinear';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ProgressLinearProps = VueToJSXProps<UIProps, 'ref'>;
|
|
4
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
5
|
+
declare const ProgressLinear: import('vue').DefineSetupFnComponent<ProgressLinearProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
6
|
+
class?: string;
|
|
7
|
+
} & {}, import('vue').PublicProps>;
|
|
8
|
+
export default ProgressLinear;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as ProgressCircular } from './ProgressCircular';
|
|
2
|
+
export type { ProgressCircularProps, ProgressCircularSize } from './ProgressCircular';
|
|
3
|
+
export { CLASSNAME as PROGRESS_CIRCULAR_CLASSNAME, COMPONENT_NAME as PROGRESS_CIRCULAR_COMPONENT_NAME } from './ProgressCircular';
|
|
4
|
+
export { default as ProgressLinear } from './ProgressLinear';
|
|
5
|
+
export type { ProgressLinearProps } from './ProgressLinear';
|
|
6
|
+
export { CLASSNAME as PROGRESS_LINEAR_CLASSNAME, COMPONENT_NAME as PROGRESS_LINEAR_COMPONENT_NAME } from './ProgressLinear';
|
|
@@ -13,7 +13,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
13
13
|
*/
|
|
14
14
|
declare const RadioButton: import('vue').DefineSetupFnComponent<RadioButtonProps, {
|
|
15
15
|
change: (value?: string, name?: string, event?: Event) => event is Event;
|
|
16
|
-
}, {}, Omit<UIProps, "className" |
|
|
16
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "inputRef" | "inputId"> & {
|
|
17
17
|
class?: string;
|
|
18
18
|
} & {
|
|
19
19
|
onChange?: ((value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
|
|
@@ -8,7 +8,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
8
8
|
* @param props Component props.
|
|
9
9
|
* @return Vue element.
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonCircle: import('vue').DefineSetupFnComponent<SkeletonCircleProps, {}, {}, Omit<UIProps, "className" |
|
|
11
|
+
declare const SkeletonCircle: import('vue').DefineSetupFnComponent<SkeletonCircleProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
12
|
class?: string;
|
|
13
13
|
} & {}, import('vue').PublicProps>;
|
|
14
14
|
export default SkeletonCircle;
|
|
@@ -8,7 +8,7 @@ export { SkeletonRectangleVariant, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
8
8
|
* @param props Component props.
|
|
9
9
|
* @return Vue element.
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonRectangle: import('vue').DefineSetupFnComponent<SkeletonRectangleProps, {}, {}, Omit<UIProps, "className" |
|
|
11
|
+
declare const SkeletonRectangle: import('vue').DefineSetupFnComponent<SkeletonRectangleProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
12
|
class?: string;
|
|
13
13
|
} & {}, import('vue').PublicProps>;
|
|
14
14
|
export default SkeletonRectangle;
|
|
@@ -8,7 +8,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
8
8
|
* @param props Component props.
|
|
9
9
|
* @return Vue element.
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonTypography: import('vue').DefineSetupFnComponent<SkeletonTypographyProps, {}, {}, Omit<UIProps, "className" |
|
|
11
|
+
declare const SkeletonTypography: import('vue').DefineSetupFnComponent<SkeletonTypographyProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
12
|
class?: string;
|
|
13
13
|
} & {}, import('vue').PublicProps>;
|
|
14
14
|
export default SkeletonTypography;
|
|
@@ -13,7 +13,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
13
13
|
*/
|
|
14
14
|
declare const Switch: import('vue').DefineSetupFnComponent<SwitchProps, {
|
|
15
15
|
change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
|
|
16
|
-
}, {}, Omit<UIProps, "className" |
|
|
16
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "inputRef" | "inputId"> & {
|
|
17
17
|
class?: string;
|
|
18
18
|
} & {
|
|
19
19
|
onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableProps as UIProps } from '@lumx/core/js/components/Table';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
export type TableProps = VueToJSXProps<UIProps>;
|
|
4
|
-
declare const Table: import('vue').DefineSetupFnComponent<TableProps, {}, {}, Omit<UIProps, "className" |
|
|
4
|
+
declare const Table: import('vue').DefineSetupFnComponent<TableProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
5
5
|
class?: string;
|
|
6
6
|
} & {}, import('vue').PublicProps>;
|
|
7
7
|
export default Table;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableBodyProps as UIProps } from '@lumx/core/js/components/Table/TableBody';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
export type TableBodyProps = VueToJSXProps<UIProps>;
|
|
4
|
-
declare const TableBody: import('vue').DefineSetupFnComponent<TableBodyProps, {}, {}, Omit<UIProps, "className" |
|
|
4
|
+
declare const TableBody: import('vue').DefineSetupFnComponent<TableBodyProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
5
5
|
class?: string;
|
|
6
6
|
} & {}, import('vue').PublicProps>;
|
|
7
7
|
export default TableBody;
|
|
@@ -2,13 +2,13 @@ import { TableCellProps as UIProps, ThOrder, TableCellVariant } from '@lumx/core
|
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
export { ThOrder, TableCellVariant };
|
|
4
4
|
export type { ThOrder as ThOrderType, TableCellVariant as TableCellVariantType, } from '@lumx/core/js/components/Table/TableCell';
|
|
5
|
-
export type TableCellProps = VueToJSXProps<UIProps
|
|
5
|
+
export type TableCellProps = VueToJSXProps<UIProps>;
|
|
6
6
|
export declare const emitSchema: {
|
|
7
7
|
headerClick: () => boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const TableCell: import('vue').DefineSetupFnComponent<TableCellProps, {
|
|
10
10
|
headerClick: () => boolean;
|
|
11
|
-
}, {}, Omit<UIProps, "className" |
|
|
11
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
12
|
class?: string;
|
|
13
13
|
} & {
|
|
14
14
|
onHeaderClick?: (() => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableHeaderProps as UIProps } from '@lumx/core/js/components/Table/TableHeader';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
export type TableHeaderProps = VueToJSXProps<UIProps>;
|
|
4
|
-
declare const TableHeader: import('vue').DefineSetupFnComponent<TableHeaderProps, {}, {}, Omit<UIProps, "className" |
|
|
4
|
+
declare const TableHeader: import('vue').DefineSetupFnComponent<TableHeaderProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
5
5
|
class?: string;
|
|
6
6
|
} & {}, import('vue').PublicProps>;
|
|
7
7
|
export default TableHeader;
|
|
@@ -4,7 +4,7 @@ export type TableRowProps = VueToJSXProps<UIProps, 'tabIndex' | 'aria-disabled'>
|
|
|
4
4
|
/** Whether the component is disabled or not. */
|
|
5
5
|
isDisabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const TableRow: import('vue').DefineSetupFnComponent<TableRowProps, {}, {}, Omit<UIProps, "className" |
|
|
7
|
+
declare const TableRow: import('vue').DefineSetupFnComponent<TableRowProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-disabled" | "tabIndex"> & {
|
|
8
8
|
class?: string;
|
|
9
9
|
} & {
|
|
10
10
|
/** Whether the component is disabled or not. */
|
|
@@ -7,7 +7,7 @@ export type TextProps = VueToJSXProps<UIProps>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const Text: import('vue').DefineSetupFnComponent<TextProps, {}, {}, Omit<UIProps, "className" |
|
|
10
|
+
declare const Text: import('vue').DefineSetupFnComponent<TextProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Text;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThumbnailProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Thumbnail';
|
|
2
2
|
import { FocusPoint } from '@lumx/core/js/components/Thumbnail/types';
|
|
3
3
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
4
|
-
export type ThumbnailProps = VueToJSXProps<Omit<UIProps, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge' | 'imgRef' | '
|
|
4
|
+
export type ThumbnailProps = VueToJSXProps<Omit<UIProps, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge' | 'imgRef' | 'fallback'>> & {
|
|
5
5
|
/** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
|
|
6
6
|
focusPoint?: FocusPoint;
|
|
7
7
|
/** ARIA disabled state */
|
|
@@ -21,7 +21,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
21
21
|
declare const Thumbnail: import('vue').DefineSetupFnComponent<ThumbnailProps, {
|
|
22
22
|
click: (event: Event) => boolean;
|
|
23
23
|
keyPress: (event: Event) => boolean;
|
|
24
|
-
}, {}, Omit<Omit<UIProps, "badge" | "isAnyDisabled" | "disabledStateProps" | "fallback" | "loadingState" | "imgRef" | "
|
|
24
|
+
}, {}, Omit<Omit<UIProps, "badge" | "isAnyDisabled" | "disabledStateProps" | "fallback" | "loadingState" | "imgRef" | "focusPointStyle">, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
25
25
|
class?: string;
|
|
26
26
|
} & {
|
|
27
27
|
/** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { AspectRatio } from '../..';
|
|
2
|
-
import { ThumbnailObjectFit } from '@lumx/core/js/components/Thumbnail/types';
|
|
3
1
|
declare const _default: {
|
|
4
2
|
component: any;
|
|
5
|
-
render: any;
|
|
3
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
6
4
|
argTypes: {
|
|
7
5
|
image: {
|
|
8
6
|
control: {
|
|
@@ -56,7 +54,7 @@ declare const _default: {
|
|
|
56
54
|
args: {
|
|
57
55
|
align?: import('../..').HorizontalAlignment | undefined;
|
|
58
56
|
alt?: string | undefined;
|
|
59
|
-
aspectRatio?: AspectRatio | undefined;
|
|
57
|
+
aspectRatio?: import('../..').AspectRatio | undefined;
|
|
60
58
|
badge?: import('react').ReactNode;
|
|
61
59
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
62
60
|
fallback?: import('react').ReactNode;
|
|
@@ -67,12 +65,12 @@ declare const _default: {
|
|
|
67
65
|
imgRef?: import('../..').CommonRef;
|
|
68
66
|
ref?: import('../..').CommonRef;
|
|
69
67
|
isLoading?: boolean | undefined;
|
|
70
|
-
objectFit?: ThumbnailObjectFit | undefined;
|
|
68
|
+
objectFit?: import('../..').ThumbnailObjectFit | undefined;
|
|
71
69
|
size?: import('../..').ThumbnailSize | undefined;
|
|
72
70
|
loading?: "eager" | "lazy" | undefined;
|
|
73
71
|
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement> | undefined;
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
handleClick?: ((event: any) => void) | undefined;
|
|
73
|
+
handleKeyPress?: ((event: any) => void) | undefined;
|
|
76
74
|
variant?: import('../..').ThumbnailVariant | undefined;
|
|
77
75
|
linkProps?: import('../..').GenericProps | undefined;
|
|
78
76
|
focusPointStyle?: import('../..').GenericProps | undefined;
|
|
@@ -87,7 +85,10 @@ declare const _default: {
|
|
|
87
85
|
};
|
|
88
86
|
export default _default;
|
|
89
87
|
export declare const Simple: {
|
|
90
|
-
|
|
88
|
+
args: {
|
|
89
|
+
image: string;
|
|
90
|
+
};
|
|
91
|
+
decorators: ((story: any, context: any) => any)[];
|
|
91
92
|
};
|
|
92
93
|
export declare const IsLoading: {
|
|
93
94
|
args: {
|
|
@@ -146,7 +147,11 @@ export declare const AsLink: {
|
|
|
146
147
|
};
|
|
147
148
|
};
|
|
148
149
|
export declare const FillHeightAndRatio: {
|
|
149
|
-
|
|
150
|
+
args: {
|
|
151
|
+
image: string;
|
|
152
|
+
fillHeight: boolean;
|
|
153
|
+
};
|
|
154
|
+
decorators: ((story: any, context: any) => any)[];
|
|
150
155
|
};
|
|
151
156
|
export declare const WithSvgImages: {
|
|
152
157
|
args: {
|
|
@@ -157,5 +162,8 @@ export declare const WithSvgImages: {
|
|
|
157
162
|
};
|
|
158
163
|
};
|
|
159
164
|
export declare const ObjectFit: {
|
|
160
|
-
|
|
165
|
+
args: {
|
|
166
|
+
size: "xl";
|
|
167
|
+
};
|
|
168
|
+
decorators: ((story: any, context: any) => any)[];
|
|
161
169
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToolbarProps as UIProps, CLASSNAME, TOOLBAR_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Toolbar';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ToolbarProps = VueToJSXProps<UIProps, 'label' | 'after' | 'before'>;
|
|
4
|
+
export { CLASSNAME, TOOLBAR_NAME, DEFAULT_PROPS };
|
|
5
|
+
declare const Toolbar: import('vue').DefineSetupFnComponent<ToolbarProps, {}, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "after" | "before"> & {
|
|
6
|
+
class?: string;
|
|
7
|
+
} & {}, import('vue').PublicProps>;
|
|
8
|
+
export default Toolbar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
render: any;
|
|
4
|
+
args: Partial<import('@lumx/core/js/components/Toolbar').ToolbarProps>;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: {
|
|
9
|
+
render: () => import("vue/jsx-runtime").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export declare const WithBefore: {
|
|
12
|
+
render: () => import("vue/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare const WithAfter: {
|
|
15
|
+
render: () => import("vue/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const WithAll: {
|
|
18
|
+
render: () => import("vue/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a specific event listener is attached to the current component instance.
|
|
3
|
+
*
|
|
4
|
+
* @param eventName - The event name to check (e.g., 'onClick', 'onKeyPress')
|
|
5
|
+
* @returns true if the event listener exists, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare const useHasEventListener: (eventName: string) => boolean;
|
package/index.d.ts
CHANGED
|
@@ -13,9 +13,11 @@ export * from './components/input-helper';
|
|
|
13
13
|
export * from './components/input-label';
|
|
14
14
|
export * from './components/link';
|
|
15
15
|
export * from './components/message';
|
|
16
|
+
export * from './components/progress';
|
|
16
17
|
export * from './components/radio-button';
|
|
17
18
|
export * from './components/skeleton';
|
|
18
19
|
export * from './components/switch';
|
|
19
20
|
export * from './components/table';
|
|
20
21
|
export * from './components/text';
|
|
21
22
|
export * from './components/thumbnail';
|
|
23
|
+
export * from './components/toolbar';
|