You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@jsxstyle/core

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsxstyle/core - npm Package Compare versions

Comparing version

to
3.0.2

4

lib/getStyleCache.d.ts

@@ -11,4 +11,4 @@ import type { GetClassNameForKeyFn } from './processProps.js';

readonly classNameCache: {
[x: string]: string;
[x: symbol]: number;
[key: string]: string;
[key: symbol]: number;
};

@@ -15,0 +15,0 @@ readonly insertRuleCache: {

import type { CustomPropertyVariant } from './generateCustomPropertiesFromVariants.js';
export declare const getVariantSwitcher: <K extends string>(variants: Record<K, CustomPropertyVariant>, overrideElement: {
export declare const getVariantSwitcher: <K extends string>(
/** Object of variants */
variants: Record<K, CustomPropertyVariant>,
/** Element that will receive the override classname */
overrideElement: {
classList: {

@@ -4,0 +8,0 @@ add(className: string): void;

@@ -15,5 +15,4 @@ import { getStyleCache } from './getStyleCache.js';

export type { StyleCache } from './getStyleCache.js';
export type { CacheObject, EventHandlerKeys } from './types.js';
export type { CacheObject, EventHandlerKeys, PseudoPrefixedProps, CSSProperties, JsxstyleComponentStyleProps, } from './types.js';
export type { CommonComponentProp } from './parseStyleProps.js';
export type { CSSProperties, JsxstyleComponentStyleProps } from './types.js';
export type { MakeCustomPropertiesFunction, BuiltCustomProperties, VariantOptions, } from './makeCustomProperties.js';

@@ -26,4 +25,4 @@ export type { VariantMap, CustomPropsObject, CustomPropValuesObject, GetCustomProperties, } from './generateCustomPropertiesFromVariants.js';

readonly classNameCache: {
[x: string]: string;
[x: symbol]: number;
[key: string]: string;
[key: symbol]: number;
};

@@ -30,0 +29,0 @@ readonly insertRuleCache: {

@@ -39,3 +39,7 @@ import type { CSSProperties } from './types.js';

export type CommonComponentProp = keyof typeof commonComponentProps;
export declare const parseStyleProps: (props: Record<string, any>, ampersandString?: string, queryString?: string) => {
export declare const parseStyleProps: (props: Record<string, any>,
/** String containing one or more `&` symbols */
ampersandString?: string,
/** String that starts with `"@media "` */
queryString?: string) => {
parsedStyleProps: Record<string, ParsedStyleProp>;

@@ -42,0 +46,0 @@ componentProps: Record<string, any>;

{
"name": "@jsxstyle/core",
"version": "3.0.1",
"version": "3.0.2",
"type": "module",

@@ -17,4 +17,4 @@ "keywords": [

"dependencies": {
"csstype": "^3.0.11"
"csstype": "^3.1.3"
}
}

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