@stylexjs/stylex 0.16.0 → 0.16.1

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.
@@ -248,9 +248,9 @@ export type IDFromVarGroup<T extends VarGroup<{}>> = T['__opaqueId'];
248
248
 
249
249
  type TTokens = Readonly<{
250
250
  [key: string]:
251
+ | NestedVarObject<null | string | number>
252
+ | StyleXVar<null | string | number>
251
253
  | CSSType<null | string | number>
252
- | string
253
- | { [key: string]: string };
254
254
  }>;
255
255
 
256
256
  type UnwrapVars<T> = T extends StyleXVar<infer U> ? U : T;
@@ -264,7 +264,7 @@ type NestedVarObject<T> =
264
264
  | T
265
265
  | Readonly<{
266
266
  default: NestedVarObject<T>;
267
- [key: `@${string}`]: NestedVarObject<T>;
267
+ [key: AtRuleStr]: NestedVarObject<T>;
268
268
  }>;
269
269
 
270
270
  export type StyleX$DefineConsts = <
@@ -248,9 +248,9 @@ export type IDFromVarGroup<T extends VarGroup<{}>> = T['__opaqueId'];
248
248
 
249
249
  type TTokens = Readonly<{
250
250
  [key: string]:
251
+ | NestedVarObject<null | string | number>
252
+ | StyleXVar<null | string | number>
251
253
  | CSSType<null | string | number>
252
- | string
253
- | { [key: string]: string };
254
254
  }>;
255
255
 
256
256
  type UnwrapVars<T> = T extends StyleXVar<infer U> ? U : T;
@@ -264,7 +264,7 @@ type NestedVarObject<T> =
264
264
  | T
265
265
  | Readonly<{
266
266
  default: NestedVarObject<T>;
267
- [key: `@${string}`]: NestedVarObject<T>;
267
+ [key: AtRuleStr]: NestedVarObject<T>;
268
268
  }>;
269
269
 
270
270
  export type StyleX$DefineConsts = <
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/stylex",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "A library for defining styles for optimized user interfaces.",
5
5
  "main": "./lib/cjs/stylex.js",
6
6
  "module": "./lib/es/stylex.mjs",
@@ -61,7 +61,7 @@
61
61
  "cross-env": "^7.0.3",
62
62
  "rimraf": "^5.0.10",
63
63
  "rollup": "^4.24.0",
64
- "scripts": "0.16.0"
64
+ "scripts": "0.16.1"
65
65
  },
66
66
  "files": [
67
67
  "lib/*"