Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kaze-style/core

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaze-style/core - npm Package Compare versions

Comparing version 0.3.1 to 0.3.5

dist/__preStyle.d.ts

0

dist/__style.d.ts
export declare const __style: (args: Record<string, string>) => Record<string, string>;

2

dist/createStyle.d.ts

@@ -6,3 +6,3 @@ import type { KazeStyle } from './types/style';

};
export declare const createStyle: <Key extends string>(styles: Record<Key, import("./types/utils").NestedObject<import("./types/utils").NestedObject<import("./types/utils").NestedObject<import("./types/utils").NestedObject<import("./types/utils").NestedObject<import("./types/style").SupportedAllStyle>>>>>>) => Result<Key>;
export declare const createStyle: <Key extends string>(styles: Record<Key, KazeStyle>) => Result<Key>;
export {};

@@ -0,0 +0,0 @@ /**

export * from './mergeStyle';
export * from './createStyle';
export * from './__style';
export * from './__preStyle';
export type { KazeStyle, ResolvedStyle } from './types/style';
export * from './sortCSS';

@@ -1,8 +0,1 @@

'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./core.cjs.production.min.js')
} else {
module.exports = require('./core.cjs.development.js')
}
export*from"./mergeStyle";export*from"./createStyle";export*from"./__style";export*from"./__preStyle";export*from"./sortCSS";
declare type ClassNamesArgs = (string | false | undefined | null)[];
export declare const mergeStyle: (..._classNames: ClassNamesArgs) => string;
export {};

@@ -0,0 +0,0 @@ import type { KazeStyle } from './types/style';

export declare const sortCSS: (css: string) => string;

@@ -14,3 +14,3 @@ import type { AtRules, Pseudos, PropertiesFallback, StandardShorthandProperties } from 'csstype';

};
export declare const supportedShorthandProperties: readonly ["margin", "padding", "gap", "inset", "overflow"];
export declare const supportedShorthandProperties: readonly ["margin", "padding", "gap", "inset", "overflow", "borderRadius"];
export declare type SupportedShorthandProperties = typeof supportedShorthandProperties[number];

@@ -23,3 +23,4 @@ export declare type SupportedCSSProperties = Omit<PropertiesFallback<CSSValue>, 'animationName' | keyof Omit<StandardShorthandProperties, SupportedShorthandProperties>>;

classes: Record<string, string>;
index: number;
};
export {};

@@ -0,0 +0,0 @@ export declare type ValueOf<T> = T[keyof T];

export declare const combinedQuery: (currentMediaQuery: string, nestedMediaQuery: string) => string;

@@ -0,0 +0,0 @@ import type { CSSValue } from '../types/style';

@@ -0,0 +0,0 @@ import type { CSSKeyframes } from '../types/style';

import type { KazeStyle } from '../types/style';
export declare const compileObjectCSS: (style: KazeStyle) => string;
export declare const PREFIX = "z";
import type { CSSValue, SupportedCSSProperties } from '../types/style';
import type { AndArray } from '../types/utils';
export declare function generateStyles<Styles extends SupportedCSSProperties>(property: 'border' | 'padding' | 'margin', suffix: '' | 'Color' | 'Style' | 'Width', ...values: AndArray<CSSValue>[]): Styles;

@@ -0,0 +0,0 @@ import type { CSSValue } from '../types/style';

export declare const hyphenateProperty: (str: string) => string;
export declare const isMediaQuerySelector: (property: string) => boolean;
export declare const isNestedSelector: (property: string) => boolean;
export declare function isObject(val: unknown): val is Record<string, unknown>;
import type { KazeStyle } from '../types/style';
export declare const isShortHandProperty: (property: keyof KazeStyle) => property is "margin" | "padding" | "gap" | "inset" | "overflow";
export declare const isShortHandProperty: (property: keyof KazeStyle) => property is "margin" | "padding" | "gap" | "inset" | "overflow" | "borderRadius";
export declare const normalizeNestedProperty: (nestedProperty: string) => string;
export declare const omit: <T, S extends keyof T>(object: T, keys: S[]) => {} & T;
import type { CSSValue, SupportedShorthandProperties, SupportedCSSProperties } from '../types/style';
import type { AndArray } from '../types/utils';
export declare const resolveShortHandStyle: (property: SupportedShorthandProperties, styleValue: AndArray<CSSValue>) => SupportedCSSProperties;
{
"name": "@kaze-style/core",
"version": "0.3.1",
"version": "0.3.5",
"license": "MIT",

@@ -12,4 +12,5 @@ "author": "Taishi Naritomi",

},
"main": "dist/index.js",
"module": "dist/core.esm.js",
"sideEffects": false,
"main": "dist/index.cjs",
"module": "dist/index.js",
"typings": "dist/index.d.ts",

@@ -21,4 +22,4 @@ "files": [

"scripts": {
"dev": "tsdx watch --noClean",
"build": "tsdx build",
"dev": "tsx ./../../scripts/build.ts watch",
"build": "tsx ./../../scripts/build.ts",
"test": "tsdx test"

@@ -25,0 +26,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc