@kuma-ui/core
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,4 @@ | ||
export { styled } from "./styled"; | ||
export { k } from "./k"; | ||
export { styled } from './styled.js'; | ||
export { k } from './k.js'; | ||
import 'react'; | ||
import '@kuma-ui/system'; |
@@ -1,3 +0,5 @@ | ||
import { StyledComponentProps } from "./styled"; | ||
import { StyledProps, StyledKeyType, PseudoProps } from "@kuma-ui/system"; | ||
import { StyledComponentProps } from './styled.js'; | ||
import { StyledKeyType, StyledProps, PseudoProps } from '@kuma-ui/system'; | ||
import 'react'; | ||
type StyledComponent<T extends keyof JSX.IntrinsicElements> = React.FC<Omit<StyledComponentProps<T>, StyledKeyType> & StyledProps & Partial<PseudoProps>>; | ||
@@ -7,2 +9,3 @@ declare const k: { | ||
}; | ||
export { k }; |
@@ -1,4 +0,6 @@ | ||
import type { ComponentType } from "react"; | ||
import { ResponsiveStyle, StyledProps, StyledKeyType, PseudoProps } from "@kuma-ui/system"; | ||
export type StyledComponentProps<T> = T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : T extends ComponentType<infer P> ? P : never; | ||
import * as react from 'react'; | ||
import { ComponentType } from 'react'; | ||
import { StyledProps, ResponsiveStyle, StyledKeyType, PseudoProps } from '@kuma-ui/system'; | ||
type StyledComponentProps<T> = T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : T extends ComponentType<infer P> ? P : never; | ||
/** | ||
@@ -15,5 +17,6 @@ * A higher-order component that wraps a given component with styled-system | ||
declare function styled<T extends keyof JSX.IntrinsicElements | ComponentType<any>>(Component: T): { | ||
<P = StyledProps>(strings: TemplateStringsArray, ...interpolations: ((props: P) => ResponsiveStyle)[]): import("react").FC<Omit<StyledComponentProps<T>, StyledKeyType> & P & Partial<PseudoProps>>; | ||
<P = StyledProps>(strings: TemplateStringsArray, ...interpolations: ((props: P) => ResponsiveStyle)[]): react.FC<Omit<StyledComponentProps<T>, StyledKeyType> & P & Partial<PseudoProps>>; | ||
__zeroStyled: boolean; | ||
}; | ||
export { styled }; | ||
export { StyledComponentProps, styled }; |
{ | ||
"name": "@kuma-ui/core", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.", | ||
@@ -24,3 +24,4 @@ "repository": { | ||
"devDependencies": { | ||
"@kuma-ui/system": "0.1.1" | ||
"@types/react": "^18.0.32", | ||
"@kuma-ui/system": "0.2.0" | ||
}, | ||
@@ -34,5 +35,3 @@ "peerDependencies": { | ||
"scripts": { | ||
"build": "yarn build:dist && yarn build:declarations", | ||
"build:declarations": "tsc --emitDeclarationOnly --outDir dist", | ||
"build:dist": "tsup src --format cjs,esm --config ../../rollup.config.js", | ||
"build": "tsup --config ../../tsup.config.ts", | ||
"typecheck": "tsc --noEmit --composite false", | ||
@@ -39,0 +38,0 @@ "lint": "eslint './src/**/*.{js,ts,jsx,tsx}'", |
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
9565
2
14
173