jsxstyle-utils
Advanced tools
Comparing version 2.1.3 to 2.1.4
export default function addStyleToHead(rule: string): void; | ||
//# sourceMappingURL=addStyleToHead.d.ts.map |
@@ -1,47 +0,23 @@ | ||
declare const _default: { | ||
Block: { | ||
display: string; | ||
}; | ||
Box: null; | ||
Col: { | ||
display: string; | ||
flexDirection: string; | ||
}; | ||
Grid: { | ||
display: string; | ||
}; | ||
Inline: { | ||
display: string; | ||
}; | ||
InlineBlock: { | ||
display: string; | ||
}; | ||
InlineCol: { | ||
display: string; | ||
flexDirection: string; | ||
}; | ||
InlineRow: { | ||
display: string; | ||
flexDirection: string; | ||
}; | ||
Row: { | ||
display: string; | ||
flexDirection: string; | ||
}; | ||
Flex: { | ||
display: string; | ||
}; | ||
InlineFlex: { | ||
display: string; | ||
}; | ||
Table: { | ||
display: string; | ||
}; | ||
TableCell: { | ||
display: string; | ||
}; | ||
TableRow: { | ||
display: string; | ||
}; | ||
}; | ||
export default _default; | ||
declare type CSSProperties = import('./types').CSSProperties; | ||
export declare type JsxstyleComponentName = | ||
| 'Block' | ||
| 'Box' | ||
| 'Col' | ||
| 'Grid' | ||
| 'Inline' | ||
| 'InlineBlock' | ||
| 'InlineCol' | ||
| 'InlineRow' | ||
| 'Row'; | ||
export declare type DeprecatedJsxstyleComponentName = | ||
| 'Flex' | ||
| 'InlineFlex' | ||
| 'Table' | ||
| 'TableCell' | ||
| 'TableRow'; | ||
declare const componentStyles: Record< | ||
JsxstyleComponentName | DeprecatedJsxstyleComponentName, | ||
Pick<CSSProperties, 'display' | 'flexDirection'> | null | ||
>; | ||
export default componentStyles; | ||
//# sourceMappingURL=componentStyles.d.ts.map |
@@ -11,1 +11,2 @@ /** | ||
export default function dangerousStyleValue(name: any, value: any): string; | ||
//# sourceMappingURL=dangerousStyleValue.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import { Dict } from './types'; | ||
declare type InsertRuleCallback = (rule: string, props?: {}) => boolean | void; | ||
@@ -17,6 +16,7 @@ export default function getStyleCache(): { | ||
getClassName( | ||
props: Dict<any>, | ||
classNameProp?: string | undefined | ||
props: Record<string, any>, | ||
classNameProp?: string | false | null | undefined | ||
): string | null; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=getStyleCache.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { CSSProperties, Dict } from './types'; | ||
import { CSSProperties } from './types'; | ||
export declare const pseudoelements: { | ||
@@ -21,8 +21,11 @@ after: boolean; | ||
}; | ||
export declare type StyleKeyObj = Dict<{ | ||
styles: string; | ||
mediaQuery?: string; | ||
pseudoclass?: string; | ||
pseudoelement?: string; | ||
}> & { | ||
export declare type StyleKeyObj = Record< | ||
string, | ||
{ | ||
styles: string; | ||
mediaQuery?: string; | ||
pseudoclass?: string; | ||
pseudoelement?: string; | ||
} | ||
> & { | ||
classNameKey: string; | ||
@@ -32,5 +35,6 @@ }; | ||
props: CSSProperties & { | ||
mediaQueries?: Dict<string>; | ||
mediaQueries?: Record<string, string>; | ||
}, | ||
pretty?: boolean | ||
): StyleKeyObj | null; | ||
//# sourceMappingURL=getStyleKeysForProps.d.ts.map |
export default function hyphenateStyleName(styleName: string): string; | ||
//# sourceMappingURL=hyphenateStyleName.d.ts.map |
@@ -79,2 +79,5 @@ 'use strict'; | ||
*/ | ||
// A hearty blend of the following two files: | ||
// https://github.com/facebook/react/blob/master/src/renderers/dom/shared/CSSProperty.js | ||
// https://github.com/facebook/react/blob/master/src/renderers/dom/shared/dangerousStyleValue.js | ||
var isUnitlessNumber = { | ||
@@ -81,0 +84,0 @@ animationIterationCount: true, |
export { default as addStyleToHead } from './addStyleToHead'; | ||
export { default as componentStyles } from './componentStyles'; | ||
export { | ||
default as componentStyles, | ||
JsxstyleComponentName, | ||
DeprecatedJsxstyleComponentName, | ||
} from './componentStyles'; | ||
export { default as dangerousStyleValue } from './dangerousStyleValue'; | ||
@@ -9,2 +13,3 @@ export { default as getStyleCache } from './getStyleCache'; | ||
export { default as stringHash } from './stringHash'; | ||
export { Dict, CSSProperties, ExactCSSProperties } from './types'; | ||
export { CSSProperties, ExactCSSProperties } from './types'; | ||
//# sourceMappingURL=jsxstyle-utils.d.ts.map |
@@ -75,2 +75,5 @@ var canUseDOM = !!( | ||
*/ | ||
// A hearty blend of the following two files: | ||
// https://github.com/facebook/react/blob/master/src/renderers/dom/shared/CSSProperty.js | ||
// https://github.com/facebook/react/blob/master/src/renderers/dom/shared/dangerousStyleValue.js | ||
var isUnitlessNumber = { | ||
@@ -77,0 +80,0 @@ animationIterationCount: true, |
@@ -78,2 +78,5 @@ define('jsxstyle-utils', ['exports'], function(exports) { | ||
*/ | ||
// A hearty blend of the following two files: | ||
// https://github.com/facebook/react/blob/master/src/renderers/dom/shared/CSSProperty.js | ||
// https://github.com/facebook/react/blob/master/src/renderers/dom/shared/dangerousStyleValue.js | ||
var isUnitlessNumber = { | ||
@@ -80,0 +83,0 @@ animationIterationCount: true, |
export default function stringHash(str: string): number; | ||
//# sourceMappingURL=stringHash.d.ts.map |
import { Properties } from 'csstype'; | ||
export interface Dict<T> { | ||
[key: string]: T; | ||
} | ||
/** Make all properties in T potentially falsey */ | ||
@@ -19,2 +16,5 @@ export declare type Falsey<T> = { [P in keyof T]?: T[P] | false | null }; | ||
*/ | ||
export interface CSSProperties extends ExactCSSProperties, Dict<any> {} | ||
export interface CSSProperties | ||
extends ExactCSSProperties, | ||
Record<string, any> {} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "jsxstyle-utils", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Utilities used by jsxstyle and tooling built for jsxstyle", | ||
@@ -15,4 +15,5 @@ "author": "Pete Hunt", | ||
"dependencies": { | ||
"csstype": "^2.2.0" | ||
} | ||
"csstype": "^2.5.7" | ||
}, | ||
"gitHead": "d8b16c7e34aa33727407a311e5cfc6d6cc5d036d" | ||
} |
53716
24
1418
Updatedcsstype@^2.5.7