@lumx/vue 4.2.1-alpha.1 → 4.2.1-alpha.3
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
package/package.json
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"types": "index.d.ts",
|
|
22
22
|
"sideEffects": false,
|
|
23
|
-
"version": "4.2.1-alpha.
|
|
23
|
+
"version": "4.2.1-alpha.3",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@lumx/core": "^4.2.1-alpha.
|
|
26
|
-
"@lumx/icons": "^4.2.1-alpha.
|
|
25
|
+
"@lumx/core": "^4.2.1-alpha.3",
|
|
26
|
+
"@lumx/icons": "^4.2.1-alpha.3",
|
|
27
27
|
"@vueuse/core": "^14.1.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
package/utils/VueToJSX.d.ts
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { VNode, SetupContext, EmitsOptions, FunctionalComponent } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { NestedComponents } from '@lumx/core/js/types';
|
|
3
|
+
import { VueToJSXProps } from './VueToJSXProps';
|
|
3
4
|
/**
|
|
4
5
|
* Props type that includes optional children for JSX compatibility.
|
|
5
6
|
*/
|
|
6
|
-
type GenericPropsWithChildren =
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Props interface for components wrapped with VueToJSX.
|
|
11
|
-
* It omits JSX-specific props like `children` and `className` and adds Vue's `class`.
|
|
12
|
-
*/
|
|
13
|
-
export type VueToJSXProps<Props extends GenericPropsWithChildren> = Omit<Props, 'children' | 'className'> & {
|
|
14
|
-
class?: string;
|
|
15
|
-
};
|
|
7
|
+
type GenericPropsWithChildren = Record<string, any>;
|
|
8
|
+
export type { VueToJSXProps } from './VueToJSXProps';
|
|
16
9
|
type VueEmits = EmitsOptions | Record<string, any[]>;
|
|
17
10
|
/**
|
|
18
11
|
* Options for configuring VueToJSX wrapper behavior.
|
|
@@ -24,6 +17,7 @@ export interface VueToJSXOptions<Emits extends VueEmits = Record<string, never>>
|
|
|
24
17
|
events?: string[];
|
|
25
18
|
nestedComponents?: NestedComponents;
|
|
26
19
|
}
|
|
20
|
+
export declare const keysOf: <T>() => <K extends readonly (keyof T)[]>(...keys: [keyof T] extends [K[number]] ? K : [Error: "\u274C Missing keys in your list:", Exclude<keyof T, K[number]>]) => K;
|
|
27
21
|
/**
|
|
28
22
|
* Higher-order component that wraps a LumX Core component (which uses JSX patterns)
|
|
29
23
|
* to be used as a Vue functional component.
|
|
@@ -50,4 +44,3 @@ export interface VueToJSXOptions<Emits extends VueEmits = Record<string, never>>
|
|
|
50
44
|
* });
|
|
51
45
|
*/
|
|
52
46
|
export declare const VueToJSX: <Props extends GenericPropsWithChildren, Emits extends VueEmits = Record<string, never>>(Component: (props: Props, nestedComponents?: NestedComponents) => VNode, options?: VueToJSXOptions<Emits>) => FunctionalComponent<VueToJSXProps<Props>, Emits>;
|
|
53
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props interface for components wrapped with VueToJSX.
|
|
3
|
+
* It omits JSX-specific props like `children` and `className` and adds Vue's `class`.
|
|
4
|
+
*
|
|
5
|
+
* @template Props - The base props type
|
|
6
|
+
* @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)
|
|
7
|
+
*/
|
|
8
|
+
export type VueToJSXProps<Props, OmitProps extends keyof Props = never> = Omit<Props, 'children' | 'className' | 'ref' | OmitProps> & {
|
|
9
|
+
/** Class name forwarded to the root element of the component. */
|
|
10
|
+
class?: string;
|
|
11
|
+
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const emitSchema: {
|
|
2
|
-
click: (event: MouseEvent) => boolean;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
click: (event: MouseEvent) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const emitSchema: {
|
|
2
|
-
click: (event: MouseEvent) => boolean;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
click: (event: MouseEvent) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|