@tokenami/css 0.0.27 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,19 +1,13 @@
1
1
  import * as Tokenami from '@tokenami/config';
2
2
  export { createConfig, defaultConfig } from '@tokenami/config';
3
- import * as CSSType from 'csstype';
4
3
  import { TokenamiProperties, TokenamiFinalConfig } from '@tokenami/dev';
5
4
 
6
5
  declare const _ALIASES: unique symbol;
7
- type Properties = {
8
- [K in keyof CSSType.Properties]: any;
9
- } & {
10
- [K in keyof CSSType.PropertiesHyphen]: any;
11
- };
12
6
  type VariantsConfig = Record<string, Record<string, TokenamiProperties>>;
13
7
  type VariantValue<T> = T extends 'true' | 'false' ? boolean : T;
14
8
  type ReponsiveKey = Extract<keyof TokenamiFinalConfig['responsive'], string>;
15
9
  type ResponsiveValue<T> = T extends string ? `${ReponsiveKey}_${T}` : never;
16
- type Override = TokenamiProperties | Properties | false | undefined;
10
+ type Override = TokenamiProperties | false | undefined;
17
11
  type Variants$1<C> = undefined extends C ? {} : {
18
12
  [V in keyof C]?: VariantValue<keyof C[V]>;
19
13
  };
package/dist/index.d.ts CHANGED
@@ -1,19 +1,13 @@
1
1
  import * as Tokenami from '@tokenami/config';
2
2
  export { createConfig, defaultConfig } from '@tokenami/config';
3
- import * as CSSType from 'csstype';
4
3
  import { TokenamiProperties, TokenamiFinalConfig } from '@tokenami/dev';
5
4
 
6
5
  declare const _ALIASES: unique symbol;
7
- type Properties = {
8
- [K in keyof CSSType.Properties]: any;
9
- } & {
10
- [K in keyof CSSType.PropertiesHyphen]: any;
11
- };
12
6
  type VariantsConfig = Record<string, Record<string, TokenamiProperties>>;
13
7
  type VariantValue<T> = T extends 'true' | 'false' ? boolean : T;
14
8
  type ReponsiveKey = Extract<keyof TokenamiFinalConfig['responsive'], string>;
15
9
  type ResponsiveValue<T> = T extends string ? `${ReponsiveKey}_${T}` : never;
16
- type Override = TokenamiProperties | Properties | false | undefined;
10
+ type Override = TokenamiProperties | false | undefined;
17
11
  type Variants$1<C> = undefined extends C ? {} : {
18
12
  [V in keyof C]?: VariantValue<keyof C[V]>;
19
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenami/css",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -12,18 +12,17 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "csstype": "^3.1.3",
16
- "@tokenami/config": "0.0.27"
15
+ "@tokenami/config": "0.0.29"
17
16
  },
18
17
  "devDependencies": {
19
18
  "tsup": "^7.0.0",
20
19
  "typescript": "^5.1.3",
21
20
  "vitest": "^0.34.6",
22
- "@tokenami/dev": "0.0.27"
21
+ "@tokenami/dev": "0.0.29"
23
22
  },
24
23
  "peerDependencies": {
25
24
  "typescript": ">= 5",
26
- "@tokenami/dev": "0.0.27"
25
+ "@tokenami/dev": "0.0.29"
27
26
  },
28
27
  "scripts": {
29
28
  "build": "tsup",