@nextui-org/system-rsc
Advanced tools
Comparing version 0.0.0-canary-20240706180436 to 0.0.0-canary-20240706181036
@@ -1,5 +0,6 @@ | ||
export { As, CapitalizedDOMElements, DOMAttributes, DOMElement, DOMElements, HTMLNextUIProps, InternalForwardRefRenderFunction, Merge, MergeWithAs, OmitCommonProps, PropGetter, PropsOf, RightJoinProps } from './types.js'; | ||
export { As, CapitalizedDOMElements, DOMAttributes, DOMElement, DOMElements, HTMLNextUIProps, InternalForwardRefRenderFunction, Merge, MergeWithAs, OmitCommonProps, PropGetter, PropsOf, RightJoinProps, SharedSelection } from './types.js'; | ||
export { forwardRef, isNextUIEl, mapPropsVariants, mapPropsVariantsWithCommon, toIterator } from './utils.js'; | ||
export { ExtendVariantProps, ExtendVariantWithSlotsProps, ExtendVariants, extendVariants } from './extend-variants.d.js'; | ||
import '@react-types/shared'; | ||
import 'react'; | ||
import 'tailwind-variants'; |
@@ -0,4 +1,7 @@ | ||
import { Selection } from '@react-types/shared'; | ||
/** | ||
* Part of this code is taken from @chakra-ui/system ❤️ | ||
*/ | ||
type As<Props = any> = React.ElementType<Props>; | ||
@@ -41,3 +44,7 @@ type DOMElements = keyof JSX.IntrinsicElements; | ||
type PropGetter<P = Record<string, unknown>, R = DOMAttributes> = (props?: Merge<DOMAttributes, P>, ref?: React.Ref<any>) => R & React.RefAttributes<any>; | ||
type SharedSelection = Selection & { | ||
anchorKey?: string; | ||
currentKey?: string; | ||
}; | ||
export { As, CapitalizedDOMElements, DOMAttributes, DOMElement, DOMElements, HTMLNextUIProps, InternalForwardRefRenderFunction, Merge, MergeWithAs, OmitCommonProps, PropGetter, PropsOf, RightJoinProps }; | ||
export { As, CapitalizedDOMElements, DOMAttributes, DOMElement, DOMElements, HTMLNextUIProps, InternalForwardRefRenderFunction, Merge, MergeWithAs, OmitCommonProps, PropGetter, PropsOf, RightJoinProps, SharedSelection }; |
import { As, RightJoinProps, PropsOf, InternalForwardRefRenderFunction } from './types.js'; | ||
import * as React from 'react'; | ||
import '@react-types/shared'; | ||
@@ -4,0 +5,0 @@ declare function forwardRef<Component extends As, Props extends object, OmitKeys extends keyof any = never>(component: React.ForwardRefRenderFunction<any, RightJoinProps<PropsOf<Component>, Props> & { |
{ | ||
"name": "@nextui-org/system-rsc", | ||
"version": "0.0.0-canary-20240706180436", | ||
"version": "0.0.0-canary-20240706181036", | ||
"description": "NextUI system primitives compatibles with RSC imports", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"react": ">=18", | ||
"@nextui-org/theme": "0.0.0-canary-20240706180436" | ||
"@nextui-org/theme": "0.0.0-canary-20240706181036" | ||
}, | ||
@@ -32,0 +32,0 @@ "dependencies": { |
36749
961