@lumx/vue 4.1.1-alpha.6 → 4.1.1-alpha.7

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/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.1.1-alpha.6",
23
+ "version": "4.1.1-alpha.7",
24
24
  "dependencies": {
25
- "@lumx/core": "^4.1.1-alpha.6",
26
- "@lumx/icons": "^4.1.1-alpha.6",
25
+ "@lumx/core": "^4.1.1-alpha.7",
26
+ "@lumx/icons": "^4.1.1-alpha.7",
27
27
  "@vueuse/core": "^14.1.0"
28
28
  },
29
29
  "peerDependencies": {
@@ -0,0 +1,3 @@
1
+ export declare const ResetTheme: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
+ [key: string]: any;
3
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
+ import { VNode, SetupContext, EmitsOptions, FunctionalComponent } from 'vue';
1
2
  import { GenericProps, JSXElement } from '@lumx/core/js/types';
2
- import { VNode, EmitsOptions, FunctionalComponent } from 'vue';
3
3
  /**
4
4
  * Props type that includes optional children for JSX compatibility.
5
5
  */
@@ -13,6 +13,7 @@ type GenericPropsWithChildren = GenericProps & {
13
13
  export type VueToJSXProps<Props extends GenericPropsWithChildren> = Omit<Props, 'children' | 'className'> & {
14
14
  class?: string;
15
15
  };
16
+ type VueEmits = EmitsOptions | Record<string, any[]>;
16
17
  /**
17
18
  * Higher-order component that wraps a LumX Core component (which uses JSX patterns)
18
19
  * to be used as a Vue functional component.
@@ -24,5 +25,5 @@ export type VueToJSXProps<Props extends GenericPropsWithChildren> = Omit<Props,
24
25
  * @param Component The LumX Core component to wrap.
25
26
  * @returns A Vue functional component.
26
27
  */
27
- export declare const VueToJSX: <Props extends GenericPropsWithChildren, Emits extends EmitsOptions | Record<string, any[]> = Record<string, never>>(Component: (props: Props) => VNode) => FunctionalComponent<VueToJSXProps<Props>, Emits>;
28
+ export declare const VueToJSX: <Props extends GenericPropsWithChildren, Emits extends VueEmits = Record<string, never>>(Component: (props: Props) => VNode, emit?: SetupContext<Emits>["emit"], events?: string[]) => FunctionalComponent<VueToJSXProps<Props>, Emits>;
28
29
  export {};