@lumx/vue 4.2.1-alpha.1 → 4.2.1-alpha.2
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/button/Button.d.ts +21 -0
- package/components/button/ButtonGroup.d.ts +13 -0
- package/components/button/IconButton.d.ts +20 -0
- package/components/button/index.d.ts +3 -4
- package/components/flag/Flag.d.ts +13 -0
- package/components/flag/index.d.ts +1 -1
- package/components/flex-box/FlexBox.d.ts +20 -0
- package/components/flex-box/index.d.ts +2 -2
- package/components/heading/Heading.vue.d.ts +2 -1
- package/components/icon/Icon.d.ts +13 -0
- package/components/icon/index.d.ts +1 -1
- package/components/input-helper/InputHelper.d.ts +13 -0
- package/components/input-helper/index.d.ts +1 -2
- package/components/input-label/InputLabel.d.ts +13 -0
- package/components/input-label/index.d.ts +1 -2
- package/components/message/Message.d.ts +25 -0
- package/components/message/index.d.ts +1 -2
- package/components/text/Text.vue.d.ts +2 -1
- package/composables/useDisableStateProps.d.ts +4 -3
- package/index.js +1070 -1126
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/VueToJSX.d.ts +5 -12
- package/utils/VueToJSXProps.d.ts +11 -0
- package/components/button/Button.vue.d.ts +0 -9
- package/components/button/ButtonGroup.vue.d.ts +0 -17
- package/components/button/IconButton.vue.d.ts +0 -9
- package/components/flag/Flag.vue.d.ts +0 -17
- package/components/flex-box/FlexBox.vue.d.ts +0 -17
- package/components/flex-box/types.d.ts +0 -5
- package/components/icon/Icon.vue.d.ts +0 -2
- package/components/input-helper/InputHelper.vue.d.ts +0 -17
- package/components/input-label/InputLabel.vue.d.ts +0 -17
- package/components/message/Message.vue.d.ts +0 -17
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ButtonProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Button/Button';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ButtonProps = VueToJSXProps<UIProps, 'onClick'>;
|
|
4
|
+
export declare const emitSchema: {
|
|
5
|
+
click: (event: MouseEvent) => boolean;
|
|
6
|
+
};
|
|
7
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
8
|
+
/**
|
|
9
|
+
* Button component.
|
|
10
|
+
*
|
|
11
|
+
* @param props Component props.
|
|
12
|
+
* @return Vue element.
|
|
13
|
+
*/
|
|
14
|
+
declare const Button: import('vue').DefineSetupFnComponent<ButtonProps, {
|
|
15
|
+
click: (event: MouseEvent) => boolean;
|
|
16
|
+
}, {}, Omit<UIProps, "className" | "children" | "ref" | "onClick"> & {
|
|
17
|
+
class?: string;
|
|
18
|
+
} & {
|
|
19
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
20
|
+
}, import('vue').PublicProps>;
|
|
21
|
+
export default Button;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonGroupProps as UIProps } from '@lumx/core/js/components/Button/ButtonGroup';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ButtonGroupProps = VueToJSXProps<UIProps>;
|
|
4
|
+
/**
|
|
5
|
+
* ButtonGroup component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default ButtonGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconButtonProps as UIProps } from '@lumx/core/js/components/Button/IconButton';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type IconButtonProps = VueToJSXProps<UIProps, 'onClick'>;
|
|
4
|
+
export declare const emitSchema: {
|
|
5
|
+
click: (event: MouseEvent) => boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* IconButton component.
|
|
9
|
+
*
|
|
10
|
+
* @param props Component props.
|
|
11
|
+
* @return Vue element.
|
|
12
|
+
*/
|
|
13
|
+
declare const IconButton: import('vue').DefineSetupFnComponent<IconButtonProps, {
|
|
14
|
+
click: (event: MouseEvent) => boolean;
|
|
15
|
+
}, {}, Omit<UIProps, "className" | "children" | "ref" | "onClick"> & {
|
|
16
|
+
class?: string;
|
|
17
|
+
} & {
|
|
18
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
+
}, import('vue').PublicProps>;
|
|
20
|
+
export default IconButton;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ButtonProps } from '@lumx/core/js/components/Button/Button';
|
|
2
1
|
import { IconButtonProps } from '@lumx/core/js/components/Button/IconButton';
|
|
3
2
|
import { ButtonGroupProps } from '@lumx/core/js/components/Button/ButtonGroup';
|
|
4
|
-
import { default as Button } from './Button
|
|
5
|
-
import { default as IconButton } from './IconButton
|
|
6
|
-
import { default as ButtonGroup } from './ButtonGroup
|
|
3
|
+
import { default as Button, ButtonProps } from './Button';
|
|
4
|
+
import { default as IconButton } from './IconButton';
|
|
5
|
+
import { default as ButtonGroup } from './ButtonGroup';
|
|
7
6
|
export { Button, ButtonGroup, IconButton };
|
|
8
7
|
export type { ButtonProps, ButtonGroupProps, IconButtonProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlagProps as UIProps } from '@lumx/core/js/components/Flag';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type FlagProps = VueToJSXProps<UIProps, 'Text'>;
|
|
4
|
+
/**
|
|
5
|
+
* Flag component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "Text"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default Flag;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FlexBoxProps as UIProps, CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/FlexBox';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type FlexBoxProps = VueToJSXProps<UIProps> & {
|
|
4
|
+
/** Customize the root element. */
|
|
5
|
+
as?: string;
|
|
6
|
+
};
|
|
7
|
+
export { CLASSNAME, COMPONENT_NAME };
|
|
8
|
+
/**
|
|
9
|
+
* FlexBox component.
|
|
10
|
+
*
|
|
11
|
+
* @param props Component props.
|
|
12
|
+
* @return Vue element.
|
|
13
|
+
*/
|
|
14
|
+
declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
15
|
+
class?: string;
|
|
16
|
+
} & {
|
|
17
|
+
/** Customize the root element. */
|
|
18
|
+
as?: string;
|
|
19
|
+
} & {}, import('vue').PublicProps>;
|
|
20
|
+
export default FlexBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as FlexBox } from './FlexBox
|
|
1
|
+
import { default as FlexBox } from './FlexBox';
|
|
2
2
|
export { FlexBox };
|
|
3
|
-
export type { FlexBoxProps } from './
|
|
3
|
+
export type { FlexBoxProps } from './FlexBox';
|
|
4
4
|
export type { MarginAutoAlignment, GapSize, FlexVerticalAlignment, FlexHorizontalAlignment, } from '@lumx/core/js/components/FlexBox';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HeadingProps } from '@lumx/core/js/components/Heading';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
@@ -7,7 +8,7 @@ declare function __VLS_template(): {
|
|
|
7
8
|
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<HeadingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HeadingProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IconProps as UIProps } from '@lumx/core/js/components/Icon';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type IconProps = VueToJSXProps<UIProps>;
|
|
4
|
+
/**
|
|
5
|
+
* Icon component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default Icon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InputHelperProps as UIProps } from '@lumx/core/js/components/InputHelper';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type InputHelperProps = VueToJSXProps<UIProps>;
|
|
4
|
+
/**
|
|
5
|
+
* InputHelper component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default InputHelper;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InputHelperProps } from '
|
|
2
|
-
import { default as InputHelper } from './InputHelper.vue';
|
|
1
|
+
import { default as InputHelper, InputHelperProps } from './InputHelper';
|
|
3
2
|
export { InputHelper };
|
|
4
3
|
export type { InputHelperProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InputLabelProps as UIProps } from '@lumx/core/js/components/InputLabel';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type InputLabelProps = VueToJSXProps<UIProps>;
|
|
4
|
+
/**
|
|
5
|
+
* InputLabel component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default InputLabel;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MessageProps as UIProps } from '@lumx/core/js/components/Message';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type MessageProps = VueToJSXProps<Omit<UIProps, 'closeButtonProps'>> & {
|
|
4
|
+
/** label to be used for the close button */
|
|
5
|
+
closeButtonLabel?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface MessageEmits {
|
|
8
|
+
/** event emited when the Message is closed through the Close Button */
|
|
9
|
+
close: [];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Message component.
|
|
13
|
+
*
|
|
14
|
+
* @param props Component props.
|
|
15
|
+
* @return Vue element.
|
|
16
|
+
*/
|
|
17
|
+
declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "children" | "ref"> & {
|
|
18
|
+
class?: string;
|
|
19
|
+
} & {
|
|
20
|
+
/** label to be used for the close button */
|
|
21
|
+
closeButtonLabel?: string;
|
|
22
|
+
} & {
|
|
23
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}, import('vue').PublicProps>;
|
|
25
|
+
export default Message;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TextProps } from '@lumx/core/js/components/Text';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<TextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2
3
|
'tooltip-label': unknown;
|
|
3
4
|
}, any>;
|
|
4
5
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { GenericProps, DisabledState } from '@lumx/core/js/utils/disabledState';
|
|
3
|
-
interface Output {
|
|
3
|
+
interface Output<TProps extends GenericProps> {
|
|
4
4
|
/** Is disabled or aria-disabled */
|
|
5
|
-
isAnyDisabled: ComputedRef<boolean>;
|
|
5
|
+
isAnyDisabled: ComputedRef<boolean | undefined>;
|
|
6
6
|
disabledStateProps: ComputedRef<DisabledState>;
|
|
7
|
+
otherProps: ComputedRef<Omit<TProps, 'disabled' | 'isDisabled' | 'aria-disabled' | 'ariaDisabled'>>;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Resolve disabled state from props.
|
|
@@ -11,5 +12,5 @@ interface Output {
|
|
|
11
12
|
*
|
|
12
13
|
* @params component props
|
|
13
14
|
*/
|
|
14
|
-
export declare function useDisableStateProps(props:
|
|
15
|
+
export declare function useDisableStateProps<TProps extends GenericProps>(props: TProps | ComputedRef<TProps> | (() => TProps)): Output<TProps>;
|
|
15
16
|
export {};
|