@tokenami/css 0.0.68 → 0.0.70

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.cjs CHANGED
@@ -65,7 +65,7 @@ function createCss(config, options) {
65
65
  const cssProperties = Tokenami__namespace.getCSSPropertiesForAlias(parts.alias, config.aliases);
66
66
  for (const cssProperty of cssProperties) {
67
67
  const longProperty = createLonghandProperty(tokenProperty2, cssProperty);
68
- const isNumber = typeof value === "number" && value > 0;
68
+ const isNumber = typeof value === "number" && value !== 0;
69
69
  const parsedProperty = Tokenami__namespace.parseProperty(longProperty, globalOptions);
70
70
  overrideLonghands(overriddenStyles, parsedProperty);
71
71
  overriddenStyles[parsedProperty] = value;
@@ -130,7 +130,7 @@ function convertToMediaStyles(bp, styles) {
130
130
  });
131
131
  return Object.fromEntries(updatedEntries);
132
132
  }
133
- var css = createCss({ include: [], theme: {} }, { escapeSpecialChars: true });
133
+ var css = createCss({}, { escapeSpecialChars: true });
134
134
 
135
135
  Object.defineProperty(exports, "createConfig", {
136
136
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -37,7 +37,7 @@ type CreateCssOptions = {
37
37
  */
38
38
  escapeSpecialChars?: boolean;
39
39
  };
40
- declare function createCss(config: Tokenami.Config, options?: CreateCssOptions): CSS;
40
+ declare function createCss(config: Pick<Tokenami.Config, 'aliases'>, options?: CreateCssOptions): CSS;
41
41
  declare const css: CSS;
42
42
 
43
43
  type TokenamiStyle<P> = Omit<P, 'style'> & {
package/dist/index.d.ts CHANGED
@@ -37,7 +37,7 @@ type CreateCssOptions = {
37
37
  */
38
38
  escapeSpecialChars?: boolean;
39
39
  };
40
- declare function createCss(config: Tokenami.Config, options?: CreateCssOptions): CSS;
40
+ declare function createCss(config: Pick<Tokenami.Config, 'aliases'>, options?: CreateCssOptions): CSS;
41
41
  declare const css: CSS;
42
42
 
43
43
  type TokenamiStyle<P> = Omit<P, 'style'> & {
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ function createCss(config, options) {
44
44
  const cssProperties = Tokenami.getCSSPropertiesForAlias(parts.alias, config.aliases);
45
45
  for (const cssProperty of cssProperties) {
46
46
  const longProperty = createLonghandProperty(tokenProperty2, cssProperty);
47
- const isNumber = typeof value === "number" && value > 0;
47
+ const isNumber = typeof value === "number" && value !== 0;
48
48
  const parsedProperty = Tokenami.parseProperty(longProperty, globalOptions);
49
49
  overrideLonghands(overriddenStyles, parsedProperty);
50
50
  overriddenStyles[parsedProperty] = value;
@@ -109,6 +109,6 @@ function convertToMediaStyles(bp, styles) {
109
109
  });
110
110
  return Object.fromEntries(updatedEntries);
111
111
  }
112
- var css = createCss({ include: [], theme: {} }, { escapeSpecialChars: true });
112
+ var css = createCss({}, { escapeSpecialChars: true });
113
113
 
114
114
  export { createCss, css };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenami/css",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -34,10 +34,10 @@
34
34
  "test:watch": "vitest"
35
35
  },
36
36
  "dependencies": {
37
- "@tokenami/config": "0.0.68"
37
+ "@tokenami/config": "0.0.70"
38
38
  },
39
39
  "devDependencies": {
40
- "@tokenami/dev": "0.0.68",
40
+ "@tokenami/dev": "0.0.70",
41
41
  "tsup": "^7.0.0",
42
42
  "typescript": "^5.1.3",
43
43
  "vitest": "^0.34.6"
@@ -46,5 +46,5 @@
46
46
  "@tokenami/dev": ">= 0",
47
47
  "typescript": ">= 5"
48
48
  },
49
- "gitHead": "f5aaf703f1b71b8be565211385a749f674a24440"
49
+ "gitHead": "e42bbb02d2699ad6625106eea72fa155efebdd73"
50
50
  }