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.11.2 to 0.11.3

2

dist/__preGlobalStyle.d.ts
import type { CssRule } from './styleOrder';
import type { ForBuild } from './types/common';
import type { KazeGlobalStyle } from './types/globalStyle';
export declare type ForBuildGlobalStyle = {
export type ForBuildGlobalStyle = {
cssRules: CssRule[];

@@ -6,0 +6,0 @@ index: number;

import type { CssRule } from './styleOrder';
import type { ClassesObject, Classes, ForBuild } from './types/common';
import type { KazeStyle } from './types/style';
export declare type ForBuildStyle<K extends string> = {
export type ForBuildStyle<K extends string> = {
classesObject: ClassesObject<K>;

@@ -6,0 +6,0 @@ cssRules: CssRule[];

import type { CssRule } from './styleOrder';
import type { KazeGlobalStyle } from './types/globalStyle';
declare type Result = {
type Result = {
cssRules: CssRule[];

@@ -5,0 +5,0 @@ };

import type { CssRule } from './styleOrder';
import type { Classes, ClassesObject } from './types/common';
import type { KazeStyle } from './types/style';
declare type Result<K extends string> = {
type Result<K extends string> = {
cssRules: CssRule[];

@@ -6,0 +6,0 @@ classes: Classes<K>;

import { ClassName } from './ClassName';
declare type ClassNamesArgs = (string | false | undefined | null | ClassName)[];
type ClassNamesArgs = (string | false | undefined | null | ClassName)[];
export declare const mergeStyle: (..._classNames: ClassNamesArgs) => string;
export {};

@@ -5,7 +5,7 @@ import type { ClassName } from './ClassName';

import type { SupportStyle } from './types/style';
declare type ResolvedStyle = {
type ResolvedStyle = {
classNameObject: ClassName['object'];
cssRules: CssRule[];
};
declare type Args = {
type Args = {
style: SupportStyle;

@@ -12,0 +12,0 @@ selectors?: Selectors;

@@ -1,2 +0,2 @@

declare type StyleElement = HTMLStyleElement & {
type StyleElement = HTMLStyleElement & {
rules: string[];

@@ -3,0 +3,0 @@ };

export declare const styleOrder: readonly ["global", "normal", "link", "visited", "focusWithin", "focus", "focusVisible", "hover", "active", "keyframes", "atRules", "media"];
export declare type StyleOrder = typeof styleOrder[number];
export declare type CssRule = {
export type StyleOrder = typeof styleOrder[number];
export type CssRule = {
order: StyleOrder;
value: string;
};
import type { ClassName } from '../ClassName';
import type { CssRule } from '../styleOrder';
export declare type CssValue = string | number | undefined;
export declare type NestedChar = ':' | '&' | ' ' | '@' | ',' | '>' | '~' | '+' | '[' | '.' | '#';
export declare type Classes<K extends string> = Record<K, string>;
export declare type ClassesObject<K extends string> = Record<K, ClassName['object']>;
export declare type Selectors = {
export type CssValue = string | number | undefined;
export type NestedChar = ':' | '&' | ' ' | '@' | ',' | '>' | '~' | '+' | '[' | '.' | '#';
export type Classes<K extends string> = Record<K, string>;
export type ClassesObject<K extends string> = Record<K, ClassName['object']>;
export type Selectors = {
nested: string;
atRules: string[];
};
export declare type ForBuild = {
export type ForBuild = {
filename: string;

@@ -13,0 +13,0 @@ globalStyles: {

import type { Pseudos, PropertiesFallback, AtRule } from 'csstype';
import type { CssValue, NestedChar } from './common';
import type { AndArray, IncludeStr } from './utils';
declare type SupportGlobalRules = PropertiesFallback<AndArray<CssValue>>;
declare type FontFaceRules = AtRule.FontFaceFallback<CssValue>;
declare type GlobalPseudosRules = {
type SupportGlobalRules = PropertiesFallback<AndArray<CssValue>>;
type FontFaceRules = AtRule.FontFaceFallback<CssValue>;
type GlobalPseudosRules = {
[_ in Pseudos]?: SupportGlobalStyle;
};
declare type GlobalStringRules = {
type GlobalStringRules = {
[_ in IncludeStr<NestedChar>]?: SupportGlobalStyle;
};
declare type GlobalSelector = keyof HTMLElementTagNameMap | '*';
declare type PredictGlobalSelector = Pseudos | GlobalSelector | `${GlobalSelector}${Pseudos}`;
export declare type SupportGlobalStyle = SupportGlobalRules & GlobalPseudosRules & GlobalStringRules;
export declare type KazeGlobalStyle<T extends string> = {
type GlobalSelector = keyof HTMLElementTagNameMap | '*';
type PredictGlobalSelector = Pseudos | GlobalSelector | `${GlobalSelector}${Pseudos}`;
export type SupportGlobalStyle = SupportGlobalRules & GlobalPseudosRules & GlobalStringRules;
export type KazeGlobalStyle<T extends string> = {
'@font-face'?: FontFaceRules;

@@ -17,0 +17,0 @@ } & {

import type { Pseudos, PropertiesFallback } from 'csstype';
import type { CssValue, NestedChar } from './common';
import type { IncludeStr } from './utils';
declare type SupportRules = Omit<PropertiesFallback<CssValue>, 'animationName'>;
declare type PredictProperties = '@media (max-width: 0)' | '@media (min-width: 0)' | '@media (prefers-color-scheme: dark)' | '@media (prefers-color-scheme: light)' | '@layer utilities' | '@layer base' | '@supports ()' | '@supports not ()';
declare type PredictRules = {
type SupportRules = Omit<PropertiesFallback<CssValue>, 'animationName'>;
type PredictProperties = '@media (max-width: 0)' | '@media (min-width: 0)' | '@media (prefers-color-scheme: dark)' | '@media (prefers-color-scheme: light)' | '@layer utilities' | '@layer base' | '@supports ()' | '@supports not ()';
type PredictRules = {
[_ in PredictProperties]?: SupportStyle;
};
declare type PseudosRules = {
type PseudosRules = {
[_ in Pseudos]?: SupportStyle;
};
declare type StringRules = {
type StringRules = {
[_ in IncludeStr<NestedChar>]?: SupportStyle;
};
declare type AnimationNameRules = {
type AnimationNameRules = {
animationName?: KeyframesRules | string;
};
export declare type KeyframesRules = {
export type KeyframesRules = {
[_ in 'from' | 'to']?: SupportRules;

@@ -23,4 +23,4 @@ } & {

};
export declare type SupportStyle = SupportRules & PseudosRules & PredictRules & StringRules & AnimationNameRules;
export declare type KazeStyle<T extends string> = Record<T, SupportStyle>;
export type SupportStyle = SupportRules & PseudosRules & PredictRules & StringRules & AnimationNameRules;
export type KazeStyle<T extends string> = Record<T, SupportStyle>;
export {};

@@ -1,9 +0,9 @@

export declare type ValueOf<T> = T[keyof T];
export declare type AndArray<T> = T | T[];
declare type Key = string | number | symbol;
export declare type NestedObj<T> = {
export type ValueOf<T> = T[keyof T];
export type AndArray<T> = T | T[];
type Key = string | number | symbol;
export type NestedObj<T> = {
[_ in Key]?: NestedObj<T> | T;
};
declare type UnionToIntersection<U> = (U extends unknown ? (_: U) => void : never) extends (_: infer I) => void ? I : never;
export declare type IncludeStr<T extends AndArray<string>> = T extends string ? `${string}${T}${string}` : UnionToIntersection<`${string}${T[number]}${string}`>;
type UnionToIntersection<U> = (U extends unknown ? (_: U) => void : never) extends (_: infer I) => void ? I : never;
export type IncludeStr<T extends AndArray<string>> = T extends string ? `${string}${T}${string}` : UnionToIntersection<`${string}${T[number]}${string}`>;
export {};
import type { Selectors } from '../types/common';
declare type Args = {
type Args = {
selectors: Selectors;

@@ -4,0 +4,0 @@ };

import type { Selectors } from '../types/common';
declare type Args = {
type Args = {
selector: string;

@@ -4,0 +4,0 @@ selectors: Selectors;

import type { CssValue, Selectors } from '../types/common';
import type { AndArray, NestedObj } from '../types/utils';
declare type Args = {
type Args = {
style: NestedObj<AndArray<CssValue>>;

@@ -5,0 +5,0 @@ selector: string;

import type { CssValue, Selectors } from '../types/common';
import type { AndArray } from '../types/utils';
declare type Args = {
type Args = {
selectors: Selectors;

@@ -5,0 +5,0 @@ property: string;

import type { Selectors } from '../types/common';
declare type Args = {
type Args = {
selectors: Selectors;

@@ -4,0 +4,0 @@ property: string;

@@ -1,2 +0,2 @@

declare type Args = {
type Args = {
nested: string;

@@ -3,0 +3,0 @@ current: string;

import type { Selectors } from '../types/common';
declare type Args = {
type Args = {
property: string;

@@ -4,0 +4,0 @@ selectors: Selectors;

import type { CssValue } from '../types/common';
import type { AndArray } from '../types/utils';
declare type Args = {
type Args = {
property: string;

@@ -5,0 +5,0 @@ styleValue: AndArray<CssValue>;

{
"name": "@kaze-style/core",
"version": "0.11.2",
"version": "0.11.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Taishi Naritomi",

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