tailwind-styled-components
Advanced tools
Comparing version 2.1.7 to 2.1.8
import React from "react"; | ||
declare const isTwElement: unique symbol; | ||
declare type IntrinsicElementsKeys = keyof JSX.IntrinsicElements; | ||
export declare const mergeArrays: (template: TemplateStringsArray, templateElements: (string | undefined | null)[]) => (string | null | undefined)[]; | ||
export declare const cleanTemplate: (template: (string | undefined | null)[], inheritedClasses?: string) => string; | ||
export declare const mergeArrays: (template: TemplateStringsArray, templateElements: TemplateElementResult[]) => TemplateElementResult[]; | ||
export declare const cleanTemplate: (template: TemplateElementResult[], inheritedClasses?: string) => string; | ||
declare type StripCallSignature<T> = { | ||
@@ -22,4 +22,5 @@ [K in keyof T]: T[K]; | ||
declare type NoInfer<T> = [T][T extends any ? 0 : never]; | ||
declare type TemplateElementResult = string | undefined | null | false; | ||
export interface TemplateFunction<E extends React.ComponentType<any> | IntrinsicElementsKeys> { | ||
<K extends object = {}>(template: TemplateStringsArray, ...templateElements: ((props: NoInfer<React.ComponentPropsWithRef<E>> & K) => string | undefined | null)[]): TailwindComponent<E, K>; | ||
<K extends object = {}>(template: TemplateStringsArray, ...templateElements: ((props: NoInfer<React.ComponentPropsWithRef<E>> & K) => TemplateElementResult)[]): TailwindComponent<E, K>; | ||
} | ||
@@ -26,0 +27,0 @@ declare type InnerTailwindComponentAllProps<E extends React.ComponentType<any> | IntrinsicElementsKeys | TailwindComponent<any, any>> = E extends TailwindComponent<infer E2, any> ? React.ComponentPropsWithoutRef<E2> & React.RefAttributes<React.ComponentRef<E2> | undefined> : React.ComponentPropsWithoutRef<E> & React.RefAttributes<React.ComponentRef<E> | undefined>; |
{ | ||
"name": "tailwind-styled-components", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"keywords": [ | ||
@@ -38,2 +38,3 @@ "react", | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^12.1.2", | ||
@@ -40,0 +41,0 @@ "@types/jest": "^27.4.0", |
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
36528
243
18