@rpxl/recast
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,4 +0,4 @@ | ||
export type { RecastThemeProps, RecastClientOptions } from "./client/types.js"; | ||
export type { RecastThemeProp } from "./core/types.js"; | ||
export * from "./client/hooks/useRecastClasses.js"; | ||
export { createRecastComponent } from "./client/createRecastComponent.js"; | ||
export type { RecastThemeProps, RecastClientOptions } from "./client/types"; | ||
export type { RecastThemeProp } from "./core/types"; | ||
export * from "./client/hooks/useRecastClasses"; | ||
export { createRecastComponent } from "./client/createRecastComponent"; |
@@ -1,2 +0,2 @@ | ||
import { RecastClientOptions } from "./types.js"; | ||
import { RecastClientOptions } from "./types"; | ||
export declare const DEFAULT_RECAST_CLIENT_OPTIONS: Required<RecastClientOptions>; |
import React from "react"; | ||
import type { Breakpoints, MaybeBreakpoints, ComponentProps, RecastClientOptionsTyped } from "../client/types.js"; | ||
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types.js"; | ||
import type { Breakpoints, MaybeBreakpoints, ComponentProps, RecastClientOptionsTyped } from "../client/types"; | ||
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types"; | ||
export declare const createRecastComponent: <P, BaseTheme>(Component: React.ComponentType<P>, key: string) => { | ||
@@ -5,0 +5,0 @@ recast: <D extends string, S extends Size<BaseTheme, S>, V extends Variant<BaseTheme, V, S>, M extends Modifier<BaseTheme, M, S, V>, B extends Breakpoints<B>>(displayName: D, styles: RecastStyles<BaseTheme, S, V, M>, options?: RecastClientOptionsTyped<B> | undefined) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<Extract<ComponentProps<P, S, V, M, MaybeBreakpoints<B>>, P>, MaybeSize<S> | MaybeVariant<V>> & Partial<Record<keyof M, boolean>>> & React.RefAttributes<React.ElementRef<React.ComponentType<P>>>>; |
@@ -1,4 +0,4 @@ | ||
import { Viewports } from "../types.js"; | ||
import { Viewports } from "../types"; | ||
export declare const useBreakpoint: (viewports: Viewports, isResponsive?: boolean, delay?: number) => { | ||
breakpoint: string; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { RecastClientOptions } from "../types.js"; | ||
import { RecastClientOptions } from "../types"; | ||
type Props = { | ||
@@ -3,0 +3,0 @@ themekey?: string; |
@@ -1,2 +0,2 @@ | ||
export type { RecastThemeProp, RecastStyles } from "./core/types.js"; | ||
export { validateRecastStyles } from "./core/validateRecastStyles.js"; | ||
export type { RecastThemeProp, RecastStyles } from "./core/types"; | ||
export { validateRecastStyles } from "./core/validateRecastStyles"; |
@@ -1,2 +0,2 @@ | ||
import { Styles } from "./types.js"; | ||
import { Styles } from "./types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Theme instance singleton |
@@ -1,2 +0,2 @@ | ||
import { Styles } from "../types.js"; | ||
import { Styles } from "../types"; | ||
type Modifiers = Record<string, Record<string, string | string[] | Record<string, string | string[]>>>; | ||
@@ -3,0 +3,0 @@ type GetModifierClassesProps = { |
@@ -1,2 +0,2 @@ | ||
import { Styles } from "../types.js"; | ||
import { Styles } from "../types"; | ||
type GetVariantClassesProps = { | ||
@@ -3,0 +3,0 @@ theme: Styles; |
@@ -1,2 +0,2 @@ | ||
import { Modifier, RecastStyles, Size, Variant } from "./types.js"; | ||
import { Modifier, RecastStyles, Size, Variant } from "./types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Utility to validate a components recast styles object shape |
@@ -1,4 +0,4 @@ | ||
export type { RecastThemeProps, RecastServerOptions } from "./server/types.js"; | ||
export type { RecastThemeProp } from "./core/types.js"; | ||
export * from "./server/hooks/useRecastClasses.js"; | ||
export { createRecastComponent } from "./server/createRecastComponent.js"; | ||
export type { RecastThemeProps, RecastServerOptions } from "./server/types"; | ||
export type { RecastThemeProp } from "./core/types"; | ||
export * from "./server/hooks/useRecastClasses"; | ||
export { createRecastComponent } from "./server/createRecastComponent"; |
@@ -1,2 +0,2 @@ | ||
import { RecastServerOptions } from "./types.js"; | ||
import { RecastServerOptions } from "./types"; | ||
export declare const DEFAULT_RECAST_CONTEXT: RecastServerOptions; |
import React from "react"; | ||
import type { ComponentProps, RecastServerOptions } from "../server/types.js"; | ||
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types.js"; | ||
import type { ComponentProps, RecastServerOptions } from "../server/types"; | ||
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types"; | ||
export declare const createRecastComponent: <P, BaseTheme>(Component: React.ComponentType<P>, key: string) => { | ||
@@ -5,0 +5,0 @@ recast: <D extends string, S extends Size<BaseTheme, S>, V extends Variant<BaseTheme, V, S>, M extends Modifier<BaseTheme, M, S, V>>(displayName: D, styles: RecastStyles<BaseTheme, S, V, M>, options?: RecastServerOptions) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<Extract<ComponentProps<P, S, V, M>, P>, MaybeSize<S> | MaybeVariant<V>> & Partial<Record<keyof M, boolean>>> & React.RefAttributes<React.ElementRef<React.ComponentType<P>>>>; |
@@ -1,2 +0,2 @@ | ||
import type { RecastServerOptions } from "../../server/types.js"; | ||
import type { RecastServerOptions } from "../../server/types"; | ||
type Props = { | ||
@@ -3,0 +3,0 @@ themekey?: string; |
{ | ||
"name": "@rpxl/recast", | ||
"license": "MIT", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
224206