@kaze-style/core
Advanced tools
Comparing version 0.3.1 to 0.3.5
export declare const __style: (args: Record<string, string>) => Record<string, string>; |
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
55
0
47675
173
1