@lumx/vue 4.2.1-alpha.0 → 4.2.1-alpha.10
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 +4 -0
- package/components/heading/Heading.d.ts +13 -0
- package/components/heading/HeadingLevelProvider.d.ts +12 -0
- package/components/heading/index.d.ts +2 -2
- 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.d.ts +13 -0
- package/components/text/index.d.ts +1 -1
- package/composables/useDisableStateProps.d.ts +4 -3
- package/index.d.ts +1 -0
- package/index.js +1136 -1128
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/stories/utils/useAttrsWithoutHandlers.d.ts +27 -0
- package/stories/utils/withRender.d.ts +54 -0
- 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/heading/Heading.vue.d.ts +0 -17
- package/components/heading/HeadingLevelProvider.vue.d.ts +0 -21
- 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
- package/components/text/Text.vue.d.ts +0 -4
|
@@ -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>;
|
|
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" | "onChange" | "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" | "onChange" | "onClick"> & {
|
|
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>;
|
|
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" | "onChange" | "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" | "onChange" | "onClick" | "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" | "onChange" | "onClick"> & {
|
|
15
|
+
class?: string;
|
|
16
|
+
} & {
|
|
17
|
+
/** Customize the root element. */
|
|
18
|
+
as?: string;
|
|
19
|
+
} & {}, import('vue').PublicProps>;
|
|
20
|
+
export default FlexBox;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeadingProps } from '@lumx/core/js/components/Heading';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type HeadingVueProps = VueToJSXProps<HeadingProps>;
|
|
4
|
+
/**
|
|
5
|
+
* Heading component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default Heading;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface HeadingLevelProviderProps {
|
|
2
|
+
/** The heading level to start at. If left undefined, the parent context will be used, if any. */
|
|
3
|
+
level?: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* HeadingLevelProvider component.
|
|
7
|
+
*
|
|
8
|
+
* @param props Component props.
|
|
9
|
+
* @return Vue element.
|
|
10
|
+
*/
|
|
11
|
+
declare const HeadingLevelProvider: import('vue').DefineSetupFnComponent<HeadingLevelProviderProps, {}, {}, HeadingLevelProviderProps & {}, import('vue').PublicProps>;
|
|
12
|
+
export default HeadingLevelProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HeadingProps } from '@lumx/core/js/components/Heading';
|
|
2
|
-
import { default as Heading } from './Heading
|
|
3
|
-
import { default as HeadingLevelProvider } from './HeadingLevelProvider
|
|
2
|
+
import { default as Heading } from './Heading';
|
|
3
|
+
import { default as HeadingLevelProvider } from './HeadingLevelProvider';
|
|
4
4
|
import { useHeadingLevel } from './useHeadingLevel';
|
|
5
5
|
export { Heading, HeadingLevelProvider, useHeadingLevel };
|
|
6
6
|
export type { HeadingProps };
|
|
@@ -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" | "onChange" | "onClick"> & {
|
|
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" | "onChange" | "onClick"> & {
|
|
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" | "onChange" | "onClick"> & {
|
|
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" | "onChange" | "onClick"> & {
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextProps } from '@lumx/core/js/components/Text';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type TextVueProps = VueToJSXProps<TextProps>;
|
|
4
|
+
/**
|
|
5
|
+
* Text component.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const Text: import('vue').DefineSetupFnComponent<TextVueProps, {}, {}, Omit<TextProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export default Text;
|
|
@@ -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 {};
|
package/index.d.ts
CHANGED