@lumx/vue 4.2.1-alpha.9 → 4.3.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/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 +21 -0
- package/components/checkbox/index.d.ts +3 -0
- package/components/flag/Flag.d.ts +1 -1
- package/components/flex-box/FlexBox.d.ts +1 -1
- package/components/flex-box/index.d.ts +2 -2
- 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/message/Message.d.ts +1 -1
- package/components/text/Text.d.ts +3 -3
- package/components/text/index.d.ts +1 -2
- package/composables/useDisableStateProps.d.ts +3 -3
- package/composables/useId.d.ts +7 -0
- package/index.d.ts +7 -6
- package/index.js +963 -843
- package/index.js.map +1 -1
- package/package.json +4 -5
- package/stories/decorators/withCombinations.d.ts +6 -0
- package/stories/decorators/withThemedBackground.d.ts +12 -0
- package/utils/VueToJSX.d.ts +9 -43
- package/utils/VueToJSXProps.d.ts +0 -11
|
@@ -13,7 +13,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
13
13
|
*/
|
|
14
14
|
declare const Button: import('vue').DefineSetupFnComponent<ButtonProps, {
|
|
15
15
|
click: (event: MouseEvent) => boolean;
|
|
16
|
-
}, {}, Omit<UIProps, "className" | "
|
|
16
|
+
}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
17
17
|
class?: string;
|
|
18
18
|
} & {
|
|
19
19
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
@@ -7,7 +7,7 @@ export type ButtonGroupProps = VueToJSXProps<UIProps>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | "
|
|
10
|
+
declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default ButtonGroup;
|
|
@@ -12,7 +12,7 @@ export declare const emitSchema: {
|
|
|
12
12
|
*/
|
|
13
13
|
declare const IconButton: import('vue').DefineSetupFnComponent<IconButtonProps, {
|
|
14
14
|
click: (event: MouseEvent) => boolean;
|
|
15
|
-
}, {}, Omit<UIProps, "className" | "
|
|
15
|
+
}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
16
16
|
class?: string;
|
|
17
17
|
} & {
|
|
18
18
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CheckboxProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, INTERMEDIATE_STATE } from '@lumx/core/js/components/Checkbox';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type CheckboxProps = VueToJSXProps<UIProps, 'inputId' | 'inputRef'>;
|
|
4
|
+
export declare const emitSchema: {
|
|
5
|
+
change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
|
|
6
|
+
};
|
|
7
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, INTERMEDIATE_STATE };
|
|
8
|
+
/**
|
|
9
|
+
* Checkbox component.
|
|
10
|
+
*
|
|
11
|
+
* @param props Component props.
|
|
12
|
+
* @return Vue element.
|
|
13
|
+
*/
|
|
14
|
+
declare const Checkbox: import('vue').DefineSetupFnComponent<CheckboxProps, {
|
|
15
|
+
change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
|
|
16
|
+
}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange" | "inputRef" | "inputId"> & {
|
|
17
|
+
class?: string;
|
|
18
|
+
} & {
|
|
19
|
+
onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
|
|
20
|
+
}, import('vue').PublicProps>;
|
|
21
|
+
export default Checkbox;
|
|
@@ -7,7 +7,7 @@ export type FlagProps = VueToJSXProps<UIProps, 'Text'>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | "
|
|
10
|
+
declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange" | "Text"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Flag;
|
|
@@ -11,7 +11,7 @@ export { CLASSNAME, COMPONENT_NAME };
|
|
|
11
11
|
* @param props Component props.
|
|
12
12
|
* @return Vue element.
|
|
13
13
|
*/
|
|
14
|
-
declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | "
|
|
14
|
+
declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
15
15
|
class?: string;
|
|
16
16
|
} & {
|
|
17
17
|
/** Customize the root element. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as FlexBox } from './FlexBox';
|
|
1
|
+
import { default as FlexBox, FlexBoxProps } from './FlexBox';
|
|
2
2
|
export { FlexBox };
|
|
3
|
-
export type { FlexBoxProps }
|
|
3
|
+
export type { FlexBoxProps };
|
|
4
4
|
export type { MarginAutoAlignment, GapSize, FlexVerticalAlignment, FlexHorizontalAlignment, } from '@lumx/core/js/components/FlexBox';
|
|
@@ -7,7 +7,7 @@ export type HeadingVueProps = VueToJSXProps<HeadingProps>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | "
|
|
10
|
+
declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Heading;
|
|
@@ -7,7 +7,7 @@ export type IconProps = VueToJSXProps<UIProps>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | "
|
|
10
|
+
declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Icon;
|
|
@@ -7,7 +7,7 @@ export type InputHelperProps = VueToJSXProps<UIProps>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "
|
|
10
|
+
declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default InputHelper;
|
|
@@ -7,7 +7,7 @@ export type InputLabelProps = VueToJSXProps<UIProps>;
|
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "
|
|
10
|
+
declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default InputLabel;
|
|
@@ -14,7 +14,7 @@ export interface MessageEmits {
|
|
|
14
14
|
* @param props Component props.
|
|
15
15
|
* @return Vue element.
|
|
16
16
|
*/
|
|
17
|
-
declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "
|
|
17
|
+
declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
18
18
|
class?: string;
|
|
19
19
|
} & {
|
|
20
20
|
/** label to be used for the close button */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TextProps } from '@lumx/core/js/components/Text';
|
|
1
|
+
import { TextProps as UIProps } from '@lumx/core/js/components/Text';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
-
export type
|
|
3
|
+
export type TextProps = VueToJSXProps<UIProps>;
|
|
4
4
|
/**
|
|
5
5
|
* Text component.
|
|
6
6
|
*
|
|
7
7
|
* @param props Component props.
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
|
-
declare const Text: import('vue').DefineSetupFnComponent<
|
|
10
|
+
declare const Text: import('vue').DefineSetupFnComponent<TextProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
|
|
11
11
|
class?: string;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Text;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface Output<TProps extends
|
|
2
|
+
import { DisabledProps, DisabledState } from '@lumx/core/js/utils/disabledState';
|
|
3
|
+
interface Output<TProps extends DisabledProps> {
|
|
4
4
|
/** Is disabled or aria-disabled */
|
|
5
5
|
isAnyDisabled: ComputedRef<boolean | undefined>;
|
|
6
6
|
disabledStateProps: ComputedRef<DisabledState>;
|
|
@@ -12,5 +12,5 @@ interface Output<TProps extends GenericProps> {
|
|
|
12
12
|
*
|
|
13
13
|
* @params component props
|
|
14
14
|
*/
|
|
15
|
-
export declare function useDisableStateProps<TProps extends
|
|
15
|
+
export declare function useDisableStateProps<TProps extends DisabledProps>(props: TProps | ComputedRef<TProps> | (() => TProps)): Output<TProps>;
|
|
16
16
|
export {};
|
package/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export * from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/types';
|
|
3
|
-
export * from './components/input-helper';
|
|
4
|
-
export * from './components/input-label';
|
|
5
3
|
export * from './components/button';
|
|
6
|
-
export * from './components/
|
|
7
|
-
export * from './components/text';
|
|
8
|
-
export * from './components/heading';
|
|
9
|
-
export * from './components/message';
|
|
4
|
+
export * from './components/checkbox';
|
|
10
5
|
export * from './components/flag';
|
|
11
6
|
export * from './components/flex-box';
|
|
7
|
+
export * from './components/heading';
|
|
8
|
+
export * from './components/icon';
|
|
9
|
+
export * from './components/input-helper';
|
|
10
|
+
export * from './components/input-label';
|
|
11
|
+
export * from './components/message';
|
|
12
|
+
export * from './components/text';
|