@heroui/system-rsc
Advanced tools
Comparing version 0.0.0-canary-20250130123208 to 0.0.0-canary-20250130124029
@@ -106,2 +106,2 @@ import { StringToBoolean, ClassProp, ClassValue, OmitUndefined } from 'tailwind-variants'; | ||
export { ExtendVariantProps, ExtendVariantWithSlotsProps, ExtendVariants, extendVariants }; | ||
export { type ExtendVariantProps, type ExtendVariantWithSlotsProps, type ExtendVariants, extendVariants }; |
@@ -106,2 +106,2 @@ import { StringToBoolean, ClassProp, ClassValue, OmitUndefined } from 'tailwind-variants'; | ||
export { ExtendVariantProps, ExtendVariantWithSlotsProps, ExtendVariants, extendVariants }; | ||
export { type ExtendVariantProps, type ExtendVariantWithSlotsProps, type ExtendVariants, extendVariants }; |
@@ -21,2 +21,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -94,6 +98,9 @@ mod | ||
variants, | ||
defaultVariants: defaultVariants && typeof defaultVariants === "object" ? Object.keys(defaultVariants).filter((k) => !keys.includes(k)).reduce((o, k) => { | ||
o[k] = defaultVariants[k]; | ||
return o; | ||
}, []) : defaultVariants, | ||
defaultVariants: defaultVariants && typeof defaultVariants === "object" ? ( | ||
// Do not apply default variants when the props variant is different | ||
Object.keys(defaultVariants).filter((k) => !keys.includes(k)).reduce((o, k) => { | ||
o[k] = defaultVariants[k]; | ||
return o; | ||
}, []) | ||
) : defaultVariants, | ||
compoundVariants, | ||
@@ -100,0 +107,0 @@ ...hasSlots && { slots } |
@@ -21,2 +21,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -28,4 +32,4 @@ mod | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
var index_exports = {}; | ||
__export(index_exports, { | ||
extendVariants: () => extendVariants, | ||
@@ -38,3 +42,3 @@ forwardRef: () => forwardRef, | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
module.exports = __toCommonJS(index_exports); | ||
@@ -136,6 +140,9 @@ // src/utils.ts | ||
variants, | ||
defaultVariants: defaultVariants && typeof defaultVariants === "object" ? Object.keys(defaultVariants).filter((k) => !keys.includes(k)).reduce((o, k) => { | ||
o[k] = defaultVariants[k]; | ||
return o; | ||
}, []) : defaultVariants, | ||
defaultVariants: defaultVariants && typeof defaultVariants === "object" ? ( | ||
// Do not apply default variants when the props variant is different | ||
Object.keys(defaultVariants).filter((k) => !keys.includes(k)).reduce((o, k) => { | ||
o[k] = defaultVariants[k]; | ||
return o; | ||
}, []) | ||
) : defaultVariants, | ||
compoundVariants, | ||
@@ -142,0 +149,0 @@ ...hasSlots && { slots } |
@@ -49,2 +49,2 @@ import { Selection } from '@react-types/shared'; | ||
export { As, CapitalizedDOMElements, DOMAttributes, DOMElement, DOMElements, HTMLHeroUIProps, InternalForwardRefRenderFunction, Merge, MergeWithAs, OmitCommonProps, PropGetter, PropsOf, RightJoinProps, SharedSelection }; | ||
export type { As, CapitalizedDOMElements, DOMAttributes, DOMElement, DOMElements, HTMLHeroUIProps, InternalForwardRefRenderFunction, Merge, MergeWithAs, OmitCommonProps, PropGetter, PropsOf, RightJoinProps, SharedSelection }; |
@@ -9,4 +9,4 @@ import { As, RightJoinProps, PropsOf, InternalForwardRefRenderFunction } from './types.js'; | ||
declare const toIterator: (obj: any) => any; | ||
declare const mapPropsVariants: <T extends Record<string, any>, K extends keyof T>(props: T, variantKeys?: K[] | undefined, removeVariantProps?: boolean) => readonly [T | Omit<T, K>, {} | Pick<T, K>]; | ||
declare const mapPropsVariantsWithCommon: <P extends Record<any, any>, VK extends keyof P, CK extends keyof P = never>(originalProps: P, variantKeys: VK[], commonKeys?: CK[] | undefined) => readonly [Omit<P, Exclude<VK, CK>>, Pick<P, VK>]; | ||
declare const mapPropsVariants: <T extends Record<string, any>, K extends keyof T>(props: T, variantKeys?: K[], removeVariantProps?: boolean) => readonly [Omit<T, K> | T, Pick<T, K> | {}]; | ||
declare const mapPropsVariantsWithCommon: <P extends Record<any, any>, VK extends keyof P, CK extends keyof P = never>(originalProps: P, variantKeys: VK[], commonKeys?: CK[]) => readonly [Omit<P, Exclude<VK, CK>>, Pick<P, VK>]; | ||
/** | ||
@@ -13,0 +13,0 @@ * Checks if a component is a HeroUI component. |
{ | ||
"name": "@heroui/system-rsc", | ||
"version": "0.0.0-canary-20250130123208", | ||
"version": "0.0.0-canary-20250130124029", | ||
"description": "HeroUI system primitives compatibles with RSC imports", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"react": ">=18 || >=19.0.0-rc.0", | ||
"@heroui/theme": "0.0.0-canary-20250130123208" | ||
"@heroui/theme": "0.0.0-canary-20250130124029" | ||
}, | ||
@@ -32,0 +32,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
49313
25
980