Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

jsxstyle-utils

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsxstyle-utils - npm Package Compare versions

Comparing version
2.1.3
to
2.1.4
+1
lib/addStyleToHead.d.ts.map
{"version":3,"file":"addStyleToHead.d.ts","sourceRoot":"","sources":["../src/addStyleToHead.ts"],"names":[],"mappings":"AA0CA,MAAM,CAAC,OAAO,yBAAyB,IAAI,EAAE,MAAM,GAAG,IAAI,CAmBzD"}
{"version":3,"file":"componentStyles.d.ts","sourceRoot":"","sources":["../src/componentStyles.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GAAG,OAAO,SAAS,EAAE,aAAa,CAAC;AAErD,oBAAY,qBAAqB,GAC7B,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,QAAQ,GACR,aAAa,GACb,WAAW,GACX,WAAW,GACX,KAAK,CAAC;AAEV,oBAAY,+BAA+B,GACvC,MAAM,GACN,YAAY,GACZ,OAAO,GACP,WAAW,GACX,UAAU,CAAC;AAEf,QAAA,MAAM,eAAe,EAAE,MAAM,CAC3B,qBAAqB,GAAG,+BAA+B,EACvD,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,eAAe,CAAC,GAAG,IAAI,CAkBxD,CAAC;AAEF,eAAe,eAAe,CAAC"}
{"version":3,"file":"dangerousStyleValue.d.ts","sourceRoot":"","sources":["../src/dangerousStyleValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgEH,MAAM,CAAC,OAAO,8BAA8B,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CA+BzE"}
{"version":3,"file":"getStyleCache.d.ts","sourceRoot":"","sources":["../src/getStyleCache.ts"],"names":[],"mappings":"AAIA,aAAK,kBAAkB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,OAAO,GAAG,IAAI,CAAC;AAkBvE,MAAM,CAAC,OAAO;;;;;;;;EAgFb"}
{"version":3,"file":"getStyleKeysForProps.d.ts","sourceRoot":"","sources":["../src/getStyleKeysForProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKxC,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;CAYzB,CAAC;AAYF,oBAAY,WAAW,GAAG,MAAM,CAC9B,MAAM,EACN;IACE,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CACF,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,+BACZ,KAAK,EAAE,aAAa,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,EAChE,MAAM,UAAQ,GACb,WAAW,GAAG,IAAI,CAqJpB"}
{"version":3,"file":"hyphenateStyleName.d.ts","sourceRoot":"","sources":["../src/hyphenateStyleName.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,6BAA6B,SAAS,EAAE,MAAM,GAAG,MAAM,CAWpE"}
{"version":3,"file":"jsxstyle-utils.d.ts","sourceRoot":"","sources":["../src/jsxstyle-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
{"version":3,"file":"stringHash.d.ts","sourceRoot":"","sources":["../src/stringHash.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,qBAAqB,GAAG,EAAE,MAAM,GAAG,MAAM,CAYtD"}
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,kDAAkD;AAClD,oBAAY,MAAM,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI;CAAE,CAAC;AAEjE;;;;GAIG;AACH,MAAM,WAAW,kBACf,SAAQ,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAAG;AAEhD;;;;GAIG;AACH,MAAM,WAAW,aACf,SAAQ,kBAAkB,EACxB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAAG"}
+1
-0
export default function addStyleToHead(rule: string): void;
//# sourceMappingURL=addStyleToHead.d.ts.map
+23
-47

@@ -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"
}