🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@aesthetic/types

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/types - npm Package Compare versions

Comparing version

to
0.4.0

15

dts/css.d.ts

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

import CSST from 'csstype';
export { CSST };
import CSSType from 'csstype';
export declare type CSS = string;

@@ -8,11 +7,11 @@ export declare type Value = string | number;

export declare type GenericProperties = Record<string, Value | ValueWithFallbacks>;
export interface Properties extends CSST.Properties<Value>, CSST.PropertiesHyphen<Value> {
export interface Properties extends CSSType.Properties<Value>, CSSType.PropertiesHyphen<Value> {
}
export declare type NativeProperty = keyof CSST.PropertiesHyphen;
export declare type NativeProperty = keyof CSSType.PropertiesHyphen;
export declare type Property = keyof Properties;
export declare type Attributes<T = Properties> = {
[K in CSST.HtmlAttributes]?: T;
[K in CSSType.HtmlAttributes]?: T;
};
export declare type Pseudos<T = Properties> = {
[K in CSST.SimplePseudos]?: T;
[K in CSSType.SimplePseudos]?: T;
};

@@ -23,3 +22,3 @@ export declare type Declarations<T = Properties> = T & Attributes<T> & Pseudos<T>;

}
export declare type FontFace = CSST.AtRule.FontFace;
export declare type FontFace = CSSType.AtRule.FontFace;
export interface Keyframes<T = Properties> {

@@ -32,3 +31,3 @@ [percent: string]: T | undefined;

export declare type UnitFactory = (property: NativeProperty) => Unit | undefined;
export declare type Variables<T = Value> = Record<string, T>;
export declare type VariablesMap<T = Value> = Record<string, T>;
//# sourceMappingURL=css.d.ts.map

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

import { CSS, FontFace, Keyframes, Property, Properties, Rule, Unit, UnitFactory, Value, ValueWithFallbacks, Variables } from './css';
import { CSS, FontFace, Keyframes, Property, Properties, Rule, Unit, UnitFactory, Value, ValueWithFallbacks, VariablesMap } from './css';
import { ClassName, Direction } from './ui';

@@ -22,3 +22,3 @@ export interface CacheItem {

cssText: CSS;
cssVariables: Variables<string>;
cssVariables: VariablesMap<string>;
textContent: CSS;

@@ -36,15 +36,15 @@ type: number;

prefix: (property: string, value: string) => Record<string, string>;
prefixSelector: (selector: string, rule: CSS) => CSS;
prefixSelectors: (selectors: string[], rule: CSS) => CSS;
}
export declare type RankCache = Record<string, number>;
export interface RenderOptions {
className?: ClassName;
conditions?: string[];
deterministic?: boolean;
direction?: Direction;
className?: ClassName;
conditions?: string[];
rankings?: RankCache;
selectors?: string[];
type?: SheetType;
unit?: Unit;
vendor?: boolean;
selector?: string;
}

@@ -74,3 +74,3 @@ export interface EngineOptions {

renderVariable: (name: string, value: Value, options?: RenderOptions) => T;
setRootVariables: (variables: Variables) => void;
setRootVariables: (variables: VariablesMap) => void;
}

@@ -77,0 +77,0 @@ declare global {

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

export { default as CSST } from 'csstype';
//# sourceMappingURL=index.js.map
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var csstype = require('csstype');
function _interopDefaultLegacy(e) {
return e && typeof e === 'object' && 'default' in e ? e : {
'default': e
};
}
var csstype__default = _interopDefaultLegacy(csstype);
Object.defineProperty(exports, 'CSST', {
enumerable: true,
get: function get() {
return csstype__default['default'];
}
});
//# sourceMappingURL=index.js.map
{
"name": "@aesthetic/types",
"version": "0.3.2",
"version": "0.4.0",
"description": "Reusable TypeScript types for Aesthetic packages.",

@@ -9,3 +9,8 @@ "keywords": [

],
"repository": "https://github.com/aesthetic-suite/framework/tree/master/packages/types",
"repository": {
"type": "git",
"url": "git@github.com:aesthetic-suite/framework.git",
"directory": "packages/types"
},
"author": "Miles Johnson",
"license": "MIT",

@@ -29,3 +34,3 @@ "main": "./lib/index.js",

},
"gitHead": "7aa8110c7c8c49a6feb263abc8f3390c1c59125c"
"gitHead": "ea906850a7bd7f911a5d05cc79a811253630f94c"
}

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