@lumx/vue 4.2.1-alpha.12 → 4.2.1-alpha.14
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.vue.d.ts +10 -0
- package/components/button/ButtonGroup.vue.d.ts +18 -0
- package/components/button/IconButton.vue.d.ts +10 -0
- package/components/button/index.d.ts +4 -3
- package/components/flag/Flag.vue.d.ts +18 -0
- package/components/flag/index.d.ts +1 -1
- package/components/flex-box/FlexBox.vue.d.ts +18 -0
- package/components/flex-box/index.d.ts +2 -2
- package/components/flex-box/types.d.ts +5 -0
- package/components/heading/Heading.vue.d.ts +18 -0
- package/components/heading/HeadingLevelProvider.vue.d.ts +21 -0
- package/components/heading/index.d.ts +2 -2
- package/components/icon/Icon.vue.d.ts +3 -0
- package/components/icon/index.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.vue.d.ts +5 -0
- package/components/text/index.d.ts +1 -1
- package/composables/useDisableStateProps.d.ts +4 -5
- package/index.js +1155 -1088
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/VueToJSXProps.d.ts +1 -1
- package/components/button/Button.d.ts +0 -21
- package/components/button/ButtonGroup.d.ts +0 -13
- package/components/button/IconButton.d.ts +0 -20
- package/components/flag/Flag.d.ts +0 -13
- package/components/flex-box/FlexBox.d.ts +0 -20
- package/components/heading/Heading.d.ts +0 -13
- package/components/heading/HeadingLevelProvider.d.ts +0 -12
- package/components/icon/Icon.d.ts +0 -13
- package/components/text/Text.d.ts +0 -13
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps } from '@lumx/core/js/components/Button/Button';
|
|
2
|
+
export declare const emitSchema: {
|
|
3
|
+
click: (event: MouseEvent) => boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
click: (event: MouseEvent) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
8
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonGroupProps } from '@lumx/core/js/components/Button/ButtonGroup';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconButtonProps } from '@lumx/core/js/components/Button/IconButton';
|
|
2
|
+
export declare const emitSchema: {
|
|
3
|
+
click: (event: MouseEvent) => boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<IconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
click: (event: MouseEvent) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
8
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from '@lumx/core/js/components/Button/Button';
|
|
1
2
|
import { IconButtonProps } from '@lumx/core/js/components/Button/IconButton';
|
|
2
3
|
import { ButtonGroupProps } from '@lumx/core/js/components/Button/ButtonGroup';
|
|
3
|
-
import { default as Button
|
|
4
|
-
import { default as IconButton } from './IconButton';
|
|
5
|
-
import { default as ButtonGroup } from './ButtonGroup';
|
|
4
|
+
import { default as Button } from './Button.vue';
|
|
5
|
+
import { default as IconButton } from './IconButton.vue';
|
|
6
|
+
import { default as ButtonGroup } from './ButtonGroup.vue';
|
|
6
7
|
export { Button, ButtonGroup, IconButton };
|
|
7
8
|
export type { ButtonProps, ButtonGroupProps, IconButtonProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FlagProps } from '@lumx/core/js/components/Flag';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<FlagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlagProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FlexBoxProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<FlexBoxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlexBoxProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as FlexBox } from './FlexBox';
|
|
1
|
+
import { default as FlexBox } from './FlexBox.vue';
|
|
2
2
|
export { FlexBox };
|
|
3
|
-
export type { FlexBoxProps } from './
|
|
3
|
+
export type { FlexBoxProps } from './types';
|
|
4
4
|
export type { MarginAutoAlignment, GapSize, FlexVerticalAlignment, FlexHorizontalAlignment, } from '@lumx/core/js/components/FlexBox';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HeadingProps } from '@lumx/core/js/components/Heading';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
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>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The heading level to start at. If left undefined, the parent context will be used, if any. */
|
|
3
|
+
level?: number;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -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.vue';
|
|
3
|
+
import { default as HeadingLevelProvider } from './HeadingLevelProvider.vue';
|
|
4
4
|
import { useHeadingLevel } from './useHeadingLevel';
|
|
5
5
|
export { Heading, HeadingLevelProvider, useHeadingLevel };
|
|
6
6
|
export type { HeadingProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IconProps } from '@lumx/core/js/components/Icon';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -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" | "children" | "ref"
|
|
10
|
+
declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
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" | "children" | "ref"
|
|
10
|
+
declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "children" | "ref"> & {
|
|
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" | "children" | "ref"
|
|
17
|
+
declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "children" | "ref"> & {
|
|
18
18
|
class?: string;
|
|
19
19
|
} & {
|
|
20
20
|
/** label to be used for the close button */
|
|
@@ -0,0 +1,5 @@
|
|
|
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, {
|
|
3
|
+
'tooltip-label': unknown;
|
|
4
|
+
}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface Output
|
|
2
|
+
import { DisabledProps, DisabledState } from '@lumx/core/js/utils/disabledState';
|
|
3
|
+
interface Output {
|
|
4
4
|
/** Is disabled or aria-disabled */
|
|
5
|
-
isAnyDisabled: ComputedRef<boolean
|
|
5
|
+
isAnyDisabled: ComputedRef<boolean>;
|
|
6
6
|
disabledStateProps: ComputedRef<DisabledState>;
|
|
7
|
-
otherProps: ComputedRef<Omit<TProps, 'disabled' | 'isDisabled' | 'aria-disabled' | 'ariaDisabled'>>;
|
|
8
7
|
}
|
|
9
8
|
/**
|
|
10
9
|
* Resolve disabled state from props.
|
|
@@ -12,5 +11,5 @@ interface Output<TProps extends GenericProps> {
|
|
|
12
11
|
*
|
|
13
12
|
* @params component props
|
|
14
13
|
*/
|
|
15
|
-
export declare function useDisableStateProps
|
|
14
|
+
export declare function useDisableStateProps(props: DisabledProps | ComputedRef<DisabledProps> | (() => DisabledProps)): Output;
|
|
16
15
|
export {};
|