@oku-ui/primitive
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -1,2 +0,2 @@ | ||
import { ComponentPublicInstance, StyleValue, IntrinsicElementAttributes, ReservedProps, FunctionalComponent, DefineComponent, Events, VNode } from 'vue'; | ||
import { ComponentPublicInstance, StyleValue, IntrinsicElementAttributes, ReservedProps, NativeElements, FunctionalComponent, DefineComponent, Events, VNode } from 'vue'; | ||
export { omit as propsOmit, pick as propsPick } from 'filter-anything'; | ||
@@ -23,6 +23,9 @@ | ||
} | ||
interface IntrinsicElements extends NativeElements { | ||
[name: string]: any; | ||
} | ||
type ElementConstructor<P> = (new () => { | ||
$props: P; | ||
}) | ((props: P, ...args: any) => FunctionalComponent<any, any>); | ||
type ComponentProps<T extends keyof JSX.IntrinsicElements | ElementConstructor<any>> = T extends ElementConstructor<infer P> ? P : T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : Record<string, never>; | ||
type ComponentProps<T extends keyof IntrinsicElements | ElementConstructor<any>> = T extends ElementConstructor<infer P> ? P : T extends keyof IntrinsicElements ? IntrinsicElements[T] : Record<string, never>; | ||
type RefElement<T extends abstract new (...args: any) => any> = Omit<InstanceType<T>, keyof ComponentPublicInstance | 'class' | 'style'>; | ||
@@ -29,0 +32,0 @@ type InstanceTypeRef<C extends abstract new (...args: any) => any, T> = Omit<InstanceType<C>, '$el'> & { |
{ | ||
"name": "@oku-ui/primitive", | ||
"type": "module", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"license": "MIT", | ||
@@ -45,4 +45,5 @@ "source": "src/index.ts", | ||
"dev": "unbuild --stub", | ||
"release": "pnpm build && pnpm bumpp --commit='version(primitive): release %s' --no-tag && pnpm publish", | ||
"clean": "rimraf ./dist && rimraf ./node_modules" | ||
} | ||
} |
@@ -11,2 +11,2 @@ # Primitive | ||
$ pnpm add @oku-ui/primitive | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30149
332
12