react-native-css 3.0.0-nightly.61014be → 3.0.0-nightly.d8cb1bc

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.
Files changed (214) hide show
  1. package/dist/commonjs/compiler/atRules.js +1 -1
  2. package/dist/commonjs/compiler/attributes.test.js +1 -1
  3. package/dist/commonjs/compiler/attributes.test.js.map +1 -1
  4. package/dist/commonjs/compiler/compiler.js +26 -17
  5. package/dist/commonjs/compiler/compiler.js.map +1 -1
  6. package/dist/commonjs/compiler/declarations.js +173 -74
  7. package/dist/commonjs/compiler/declarations.js.map +1 -1
  8. package/dist/commonjs/compiler/inheritance.test.js +7 -7
  9. package/dist/commonjs/compiler/inheritance.test.js.map +1 -1
  10. package/dist/commonjs/compiler/selector-builder.js +457 -0
  11. package/dist/commonjs/compiler/selector-builder.js.map +1 -0
  12. package/dist/commonjs/compiler/selectors.js +10 -6
  13. package/dist/commonjs/compiler/selectors.js.map +1 -1
  14. package/dist/commonjs/compiler/stylesheet.js +113 -39
  15. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  16. package/dist/commonjs/jest/index.js +23 -7
  17. package/dist/commonjs/jest/index.js.map +1 -1
  18. package/dist/commonjs/metro/index.js +1 -1
  19. package/dist/commonjs/metro/index.js.map +1 -1
  20. package/dist/commonjs/poison.pill.js +4 -1
  21. package/dist/commonjs/poison.pill.js.map +1 -1
  22. package/dist/commonjs/runtime/native/conditions/attributes.js +42 -0
  23. package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
  24. package/dist/commonjs/runtime/native/conditions/container-query.js +28 -21
  25. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -1
  26. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -1
  27. package/dist/commonjs/runtime/native/conditions/index.js +10 -46
  28. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -1
  29. package/dist/commonjs/runtime/native/conditions/media-query.js +17 -17
  30. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -1
  31. package/dist/commonjs/runtime/native/injection.js +3 -2
  32. package/dist/commonjs/runtime/native/injection.js.map +1 -1
  33. package/dist/commonjs/runtime/native/react/interaction.js +10 -10
  34. package/dist/commonjs/runtime/native/react/interaction.js.map +1 -1
  35. package/dist/commonjs/runtime/native/react/rules.js +9 -9
  36. package/dist/commonjs/runtime/native/react/rules.js.map +1 -1
  37. package/dist/commonjs/runtime/native/react/useNativeCss.js +1 -0
  38. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -1
  39. package/dist/commonjs/runtime/native/reactivity.js +1 -12
  40. package/dist/commonjs/runtime/native/reactivity.js.map +1 -1
  41. package/dist/commonjs/runtime/native/root.js +28 -0
  42. package/dist/commonjs/runtime/native/root.js.map +1 -0
  43. package/dist/commonjs/runtime/native/styles/calculate-props.js +53 -48
  44. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -1
  45. package/dist/commonjs/runtime/native/styles/index.js +12 -12
  46. package/dist/commonjs/runtime/native/styles/index.js.map +1 -1
  47. package/dist/commonjs/runtime/native/styles/units.js +6 -3
  48. package/dist/commonjs/runtime/native/styles/units.js.map +1 -1
  49. package/dist/commonjs/runtime/native/styles/variables.js +3 -2
  50. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -1
  51. package/dist/commonjs/runtime/utils/specificity.js +2 -1
  52. package/dist/commonjs/runtime/utils/specificity.js.map +1 -1
  53. package/dist/module/compiler/atRules.js +1 -1
  54. package/dist/module/compiler/attributes.test.js +1 -1
  55. package/dist/module/compiler/attributes.test.js.map +1 -1
  56. package/dist/module/compiler/compiler.js +26 -17
  57. package/dist/module/compiler/compiler.js.map +1 -1
  58. package/dist/module/compiler/compiler.types.js.map +1 -1
  59. package/dist/module/compiler/declarations.js +168 -70
  60. package/dist/module/compiler/declarations.js.map +1 -1
  61. package/dist/module/compiler/inheritance.test.js +7 -7
  62. package/dist/module/compiler/inheritance.test.js.map +1 -1
  63. package/dist/module/compiler/selector-builder.js +452 -0
  64. package/dist/module/compiler/selector-builder.js.map +1 -0
  65. package/dist/module/compiler/selectors.js +10 -6
  66. package/dist/module/compiler/selectors.js.map +1 -1
  67. package/dist/module/compiler/stylesheet.js +112 -38
  68. package/dist/module/compiler/stylesheet.js.map +1 -1
  69. package/dist/module/jest/index.js +23 -7
  70. package/dist/module/jest/index.js.map +1 -1
  71. package/dist/module/metro/index.js +1 -1
  72. package/dist/module/metro/index.js.map +1 -1
  73. package/dist/module/poison.pill.js +4 -1
  74. package/dist/module/poison.pill.js.map +1 -1
  75. package/dist/module/runtime/native/conditions/attributes.js +38 -0
  76. package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
  77. package/dist/module/runtime/native/conditions/container-query.js +28 -21
  78. package/dist/module/runtime/native/conditions/container-query.js.map +1 -1
  79. package/dist/module/runtime/native/conditions/guards.js.map +1 -1
  80. package/dist/module/runtime/native/conditions/index.js +10 -46
  81. package/dist/module/runtime/native/conditions/index.js.map +1 -1
  82. package/dist/module/runtime/native/conditions/media-query.js +17 -17
  83. package/dist/module/runtime/native/conditions/media-query.js.map +1 -1
  84. package/dist/module/runtime/native/injection.js +2 -1
  85. package/dist/module/runtime/native/injection.js.map +1 -1
  86. package/dist/module/runtime/native/react/interaction.js +10 -10
  87. package/dist/module/runtime/native/react/interaction.js.map +1 -1
  88. package/dist/module/runtime/native/react/rules.js +9 -9
  89. package/dist/module/runtime/native/react/rules.js.map +1 -1
  90. package/dist/module/runtime/native/react/useNativeCss.js +1 -0
  91. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -1
  92. package/dist/module/runtime/native/reactivity.js +0 -11
  93. package/dist/module/runtime/native/reactivity.js.map +1 -1
  94. package/dist/module/runtime/native/root.js +24 -0
  95. package/dist/module/runtime/native/root.js.map +1 -0
  96. package/dist/module/runtime/native/styles/calculate-props.js +53 -48
  97. package/dist/module/runtime/native/styles/calculate-props.js.map +1 -1
  98. package/dist/module/runtime/native/styles/index.js +12 -12
  99. package/dist/module/runtime/native/styles/index.js.map +1 -1
  100. package/dist/module/runtime/native/styles/units.js +6 -3
  101. package/dist/module/runtime/native/styles/units.js.map +1 -1
  102. package/dist/module/runtime/native/styles/variables.js +2 -1
  103. package/dist/module/runtime/native/styles/variables.js.map +1 -1
  104. package/dist/module/runtime/utils/specificity.js +2 -1
  105. package/dist/module/runtime/utils/specificity.js.map +1 -1
  106. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +9 -2
  107. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  108. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +5 -4
  109. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  110. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +16 -19
  111. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  112. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +23 -0
  113. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  114. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +3 -2
  115. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -1
  116. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +21 -7
  117. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  118. package/dist/typescript/commonjs/src/jest/index.d.ts +10 -3
  119. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  120. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  121. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -1
  122. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +5 -0
  123. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  124. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +3 -3
  125. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -1
  126. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +2 -2
  127. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -1
  128. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +2 -2
  129. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -1
  130. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +2 -2
  131. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -1
  132. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -1
  133. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +2 -2
  134. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -1
  135. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +2 -1
  136. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -1
  137. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +2 -10
  138. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -1
  139. package/dist/typescript/commonjs/src/runtime/native/root.d.ts +11 -0
  140. package/dist/typescript/commonjs/src/runtime/native/root.d.ts.map +1 -0
  141. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -1
  142. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -1
  143. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +1 -0
  145. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -1
  146. package/dist/typescript/module/src/compiler/compiler.d.ts +9 -2
  147. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  148. package/dist/typescript/module/src/compiler/compiler.types.d.ts +5 -4
  149. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  150. package/dist/typescript/module/src/compiler/declarations.d.ts +16 -19
  151. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  152. package/dist/typescript/module/src/compiler/selector-builder.d.ts +23 -0
  153. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  154. package/dist/typescript/module/src/compiler/selectors.d.ts +3 -2
  155. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
  156. package/dist/typescript/module/src/compiler/stylesheet.d.ts +21 -7
  157. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  158. package/dist/typescript/module/src/jest/index.d.ts +10 -3
  159. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  160. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  161. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -1
  162. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +5 -0
  163. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  164. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +3 -3
  165. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -1
  166. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +2 -2
  167. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -1
  168. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +2 -2
  169. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -1
  170. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +2 -2
  171. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -1
  172. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -1
  173. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +2 -2
  174. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -1
  175. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +2 -1
  176. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -1
  177. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +2 -10
  178. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -1
  179. package/dist/typescript/module/src/runtime/native/root.d.ts +11 -0
  180. package/dist/typescript/module/src/runtime/native/root.d.ts.map +1 -0
  181. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -1
  182. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -1
  183. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -1
  184. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +1 -0
  185. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -1
  186. package/package.json +4 -3
  187. package/src/compiler/atRules.ts +1 -1
  188. package/src/compiler/attributes.test.ts +1 -1
  189. package/src/compiler/compiler.ts +30 -31
  190. package/src/compiler/compiler.types.ts +7 -5
  191. package/src/compiler/declarations.ts +293 -69
  192. package/src/compiler/inheritance.test.ts +6 -6
  193. package/src/compiler/selector-builder.ts +531 -0
  194. package/src/compiler/selectors.ts +20 -6
  195. package/src/compiler/stylesheet.ts +154 -45
  196. package/src/jest/index.ts +30 -6
  197. package/src/metro/index.ts +6 -3
  198. package/src/poison.pill.ts +5 -1
  199. package/src/runtime/native/conditions/attributes.ts +52 -0
  200. package/src/runtime/native/conditions/container-query.ts +27 -22
  201. package/src/runtime/native/conditions/guards.ts +1 -2
  202. package/src/runtime/native/conditions/index.ts +12 -66
  203. package/src/runtime/native/conditions/media-query.ts +18 -20
  204. package/src/runtime/native/injection.ts +1 -1
  205. package/src/runtime/native/react/interaction.ts +12 -12
  206. package/src/runtime/native/react/rules.ts +9 -9
  207. package/src/runtime/native/react/useNativeCss.ts +3 -0
  208. package/src/runtime/native/reactivity.ts +2 -21
  209. package/src/runtime/native/root.ts +31 -0
  210. package/src/runtime/native/styles/calculate-props.ts +59 -49
  211. package/src/runtime/native/styles/index.ts +12 -12
  212. package/src/runtime/native/styles/units.ts +7 -3
  213. package/src/runtime/native/styles/variables.ts +2 -6
  214. package/src/runtime/utils/specificity.ts +1 -0
@@ -1,5 +1,6 @@
1
1
  import type { SelectorList } from "lightningcss";
2
- import type { AttributeQuery, CompilerOptions, ContainerQuery, MediaCondition, PseudoClassesQuery, SpecificityArray } from "./compiler.types";
2
+ import type { AttributeQuery, ContainerQuery, MediaCondition, PseudoClassesQuery, SpecificityArray } from "./compiler.types";
3
+ import { StylesheetBuilder } from "./stylesheet";
3
4
  export type NormalizeSelector = ClassNameSelector | {
4
5
  type: "rootVariables" | "universalVariables";
5
6
  subtype: "light" | "dark";
@@ -16,7 +17,7 @@ type ClassNameSelector = {
16
17
  /**
17
18
  * Turns a CSS selector into a `react-native-css` selector.
18
19
  */
19
- export declare function getSelectors(selectorList: SelectorList, isDarkMode: boolean, options: CompilerOptions, selectors?: NormalizeSelector[]): NormalizeSelector[];
20
+ export declare function getSelectors(selectorList: SelectorList, isDarkMode: boolean, builder: StylesheetBuilder, selectors?: NormalizeSelector[]): NormalizeSelector[];
20
21
  export declare function toRNProperty<T extends string>(str: T): CamelCase<T>;
21
22
  type CamelCase<S extends string> = S extends `${infer P1}-${infer P2}${infer P3}` ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` : Lowercase<S>;
22
23
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/selectors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,cAAc,CAAC;AAG3D,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,GACjB;IACE,IAAI,EAAE,eAAe,GAAG,oBAAoB,CAAC;IAC7C,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEN,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,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E,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,OAAO,EACnB,OAAO,EAAE,iBAAiB,EAC1B,SAAS,GAAE,iBAAiB,EAAO,uBAqFpC;AAmXD,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAGF,SAAS,CAAC,CAAC,CAAC,CAC9D;AAED,KAAK,SAAS,CAAC,CAAC,SAAS,MAAM,IAC7B,CAAC,SAAS,GAAG,MAAM,EAAE,IAAI,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAC1C,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE,GAClD,SAAS,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
+ import type { SelectorList } from "lightningcss";
1
2
  import type { AnimationKeyframes_V2, AnimationRecord, CompilerOptions, ContainerQuery, MediaCondition, ReactNativeCssStyleSheet, StyleDeclaration, StyleDescriptor, StyleRule, StyleRuleMapping, StyleRuleSet, VariableRecord } from "./compiler.types";
2
- import { type NormalizeSelector } from "./selectors";
3
3
  type BuilderMode = "style" | "media" | "container" | "keyframes";
4
4
  export declare class StylesheetBuilder {
5
5
  private options;
@@ -8,7 +8,7 @@ export declare class StylesheetBuilder {
8
8
  private mapping;
9
9
  descriptorProperty?: string | undefined;
10
10
  private shared;
11
- private selectors?;
11
+ private selectors;
12
12
  animationFrames?: AnimationKeyframes_V2[];
13
13
  animationDeclarations: StyleDeclaration[];
14
14
  stylesheet: ReactNativeCssStyleSheet;
@@ -21,8 +21,12 @@ export declare class StylesheetBuilder {
21
21
  animations?: AnimationRecord;
22
22
  rem: number;
23
23
  ruleOrder: number;
24
- }, selectors?: NormalizeSelector[] | undefined);
25
- fork(mode?: BuilderMode, selectors?: NormalizeSelector[] | undefined): StylesheetBuilder;
24
+ warningProperty?: string;
25
+ warningProperties: string[];
26
+ warningValues: Record<string, unknown[]>;
27
+ warningFunctions: string[];
28
+ }, selectors?: SelectorList);
29
+ fork(mode?: BuilderMode, selectors?: SelectorList): StylesheetBuilder;
26
30
  cloneRule({ ...rule }?: StyleRule): StyleRule;
27
31
  private createRuleFromPartial;
28
32
  extendRule(rule: Partial<StyleRule>): StyleRule;
@@ -30,13 +34,23 @@ export declare class StylesheetBuilder {
30
34
  setOptions<T extends keyof CompilerOptions>(key: T, value: CompilerOptions[T]): void;
31
35
  getNativeStyleSheet(): ReactNativeCssStyleSheet;
32
36
  getRuleSets(): (readonly [string, StyleRuleSet])[] | undefined;
33
- addWarning(_type: "property" | "value" | "function", _property: string | number): void;
37
+ setWarningProperty(property: string): void;
38
+ addWarning(type: "property" | "value", property: string): void;
39
+ addWarning(type: "style", property: string, value: unknown): void;
40
+ getWarnings(): {
41
+ properties?: string[];
42
+ values?: Record<string, unknown[]>;
43
+ functions?: string[];
44
+ };
45
+ addMapping(mapping: StyleRuleMapping): void;
34
46
  newRule(mapping?: StyleRuleMapping, { important }?: {
35
47
  important?: boolean | undefined;
36
48
  }): void;
37
- newRuleFork({ important }?: {
49
+ /** Used by nested declarations (for example @media inside a RuleSet) */
50
+ newNestedRule({ important }?: {
38
51
  important?: boolean | undefined;
39
52
  }): void;
53
+ /** Hack for light-dark, which requires adding a new rule without changing the current rule */
40
54
  addExtraRule(rule: Partial<StyleRule>): void;
41
55
  private addRuleToRuleSet;
42
56
  addMediaQuery(condition: MediaCondition): void;
@@ -45,7 +59,7 @@ export declare class StylesheetBuilder {
45
59
  addDescriptor(property: string, value: StyleDescriptor, forceTuple?: boolean, rule?: StyleRule): void;
46
60
  addShorthand(property: string, options: Record<string, StyleDescriptor>): void;
47
61
  private pushDescriptor;
48
- applyRuleToSelectors(selectorList?: NormalizeSelector[] | undefined): void;
62
+ applyRuleToSelectors(selectorList?: SelectorList): void;
49
63
  addContainerQuery(query: ContainerQuery): void;
50
64
  newAnimationFrames(name: string): void;
51
65
  newAnimationFrame(progress: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/stylesheet.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EAEf,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEnE,KAAK,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;AASjE,qBAAa,iBAAiB;IAa1B,OAAO,CAAC,OAAO;IACR,IAAI,EAAE,WAAW;IACxB,OAAO,CAAC,YAAY;IAGpB,OAAO,CAAC,OAAO;IACR,kBAAkB,CAAC,EAAE,MAAM;IAClC,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,SAAS,CAAC;IA3BpB,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C,qBAAqB,EAAE,gBAAgB,EAAE,CAAM;IAE/C,UAAU,EAAE,wBAAwB,CAAM;IAE1C,QAAQ,cAAqB;IAE7B,OAAO,CAAC,IAAI,CAEV;gBAGQ,OAAO,EAAE,eAAe,EACzB,IAAI,GAAE,WAAqB,EAC1B,YAAY,GAAE,SAErB,EACO,OAAO,GAAE,gBAAqB,EAC/B,kBAAkB,CAAC,EAAE,MAAM,YAAA,EAC1B,MAAM,GAAE;QACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CA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AC,OAAO,mBAAe,EAAE,EAAE,SAAiB,EAAE;;KAAK;IAS1D,wEAAwE;IACxE,aAAa,CAAC,EAAE,SAAiB,EAAE;;KAAK;IAIxC,8FAA8F;IAC9F,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;IASrC,OAAO,CAAC,gBAAgB;IAQxB,aAAa,CAAC,SAAS,EAAE,cAAc;IAKvC,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK;IAUpC,oBAAoB,CAClB,KAAK,EAAE,eAAe,EACtB,UAAU,CAAC,EAAE,OAAO,EACpB,IAAI,YAAY;IASlB,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,eAAe,EACtB,UAAU,CAAC,EAAE,OAAO,EACpB,IAAI,YAAY;IA2DlB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAUvE,OAAO,CAAC,cAAc;IA+CtB,oBAAoB,CAAC,YAAY,eAAiB,GAAG,IAAI;IA0HzD,iBAAiB,CAAC,KAAK,EAAE,cAAc;IAKvC,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAU/B,iBAAiB,CAAC,QAAQ,EAAE,MAAM;CAUnC"}
@@ -7,7 +7,14 @@ declare global {
7
7
  }
8
8
  }
9
9
  export declare const testID = "react-native-css";
10
- export declare function registerCSS(css: string, { debugCompiled, ...options }?: CompilerOptions & {
11
- debugCompiled?: boolean;
12
- }): import("../compiler").ReactNativeCssStyleSheet_V2;
10
+ export declare function registerCSS(css: string, { debug, ...options }?: CompilerOptions & {
11
+ debug?: boolean;
12
+ }): {
13
+ stylesheet: () => import("../compiler").ReactNativeCssStyleSheet_V2;
14
+ warnings: () => {
15
+ properties?: string[];
16
+ values?: Record<string, unknown[]>;
17
+ functions?: string[];
18
+ };
19
+ };
13
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/jest/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;SACzC;KACF;CACF;AAED,eAAO,MAAM,MAAM,qBAAqB,CAAC;AAUzC,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,EACE,aAA+D,EAC/D,GAAG,OAAO,EACX,GAAE,eAAe,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,qDAUtD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/jest/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;SACzC;KACF;CACF;AAED,eAAO,MAAM,MAAM,qBAAqB,CAAC;AAezC,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,EACE,KAAoB,EACpB,GAAG,OAAO,EACX,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;EA2B9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/metro/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAMnD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAEhE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mEAAmE;IACnE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,EACpD,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,CAAC,CA6MnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/metro/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAA+B,MAAM,aAAa,CAAC;AAMhF,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAEhE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mEAAmE;IACnE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,EACpD,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,CAAC,CAgNnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"poison.pill.d.ts","sourceRoot":"","sources":["../../../../src/poison.pill.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"poison.pill.d.ts","sourceRoot":"","sources":["../../../../src/poison.pill.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { AttributeQuery } from "../../../compiler";
2
+ import type { Props } from "../../runtime.types";
3
+ import type { RenderGuard } from "./guards";
4
+ export declare function testAttributes(queries: AttributeQuery[], props: Props, guards: RenderGuard[]): boolean;
5
+ //# sourceMappingURL=attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/attributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,cAAc,EAAE,EACzB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,WAAW,EAAE,WAGtB"}
@@ -1,7 +1,7 @@
1
1
  import type { ContainerQuery } from "../../../compiler";
2
- import { type ContainerContextValue, type Effect } from "../reactivity";
2
+ import { type ContainerContextValue, type Getter } from "../reactivity";
3
3
  import type { RenderGuard } from "./guards";
4
4
  export declare const DEFAULT_CONTAINER_NAME = "c:___default___";
5
- export declare function testContainerQueries(queries: ContainerQuery[], inheritedContainers: ContainerContextValue, guards: RenderGuard[], effect: Effect): boolean;
6
- export declare function testContainerQuery(query: ContainerQuery, inheritedContainers: ContainerContextValue, guards: RenderGuard[], effect?: Effect): boolean;
5
+ export declare function testContainerQueries(queries: ContainerQuery[], inheritedContainers: ContainerContextValue, guards: RenderGuard[], get: Getter): boolean;
6
+ export declare function testContainerQuery(query: ContainerQuery, inheritedContainers: ContainerContextValue, guards: RenderGuard[], get: Getter): boolean;
7
7
  //# sourceMappingURL=container-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"container-query.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/container-query.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AAExD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,EAAE,EACzB,mBAAmB,EAAE,qBAAqB,EAC1C,MAAM,EAAE,WAAW,EAAE,EACrB,MAAM,EAAE,MAAM,WAKf;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,mBAAmB,EAAE,qBAAqB,EAC1C,MAAM,EAAE,WAAW,EAAE,EACrB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAmBT"}
1
+ {"version":3,"file":"container-query.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/container-query.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AAExD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,EAAE,EACzB,mBAAmB,EAAE,qBAAqB,EAC1C,MAAM,EAAE,WAAW,EAAE,EACrB,GAAG,EAAE,MAAM,WAKZ;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,mBAAmB,EAAE,qBAAqB,EAC1C,MAAM,EAAE,WAAW,EAAE,EACrB,GAAG,EAAE,MAAM,GACV,OAAO,CAuBT"}
@@ -1,5 +1,5 @@
1
1
  import type { ComponentState } from "../react/useNativeCss";
2
- import type { ContainerContextValue, Effect, VariableContextValue } from "../reactivity";
3
- export type RenderGuard = ["a", string, any] | ["d", string, any] | ["v", string, any] | ["c", string, Effect];
2
+ import type { ContainerContextValue, VariableContextValue } from "../reactivity";
3
+ export type RenderGuard = ["a", string, any] | ["d", string, any] | ["v", string, any] | ["c", string, WeakKey];
4
4
  export declare function testGuards(state: ComponentState, currentProps: any, inheritedVariables: VariableContextValue, inheritedContainers: ContainerContextValue): boolean | undefined;
5
5
  //# sourceMappingURL=guards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EACV,qBAAqB,EACrB,MAAM,EACN,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,WAAW,GACnB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAClB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAClB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAClB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1B,wBAAgB,UAAU,CACxB,KAAK,EAAE,cAAc,EACrB,YAAY,EAAE,GAAG,EACjB,kBAAkB,EAAE,oBAAoB,EACxC,mBAAmB,EAAE,qBAAqB,uBA0B3C"}
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,WAAW,GACnB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAClB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAClB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAClB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3B,wBAAgB,UAAU,CACxB,KAAK,EAAE,cAAc,EACrB,YAAY,EAAE,GAAG,EACjB,kBAAkB,EAAE,oBAAoB,EACxC,mBAAmB,EAAE,qBAAqB,uBA0B3C"}
@@ -1,6 +1,6 @@
1
1
  import type { StyleRule } from "../../../compiler";
2
2
  import type { Props } from "../../runtime.types";
3
- import { type ContainerContextValue, type Effect } from "../reactivity";
3
+ import { type ContainerContextValue, type Getter } from "../reactivity";
4
4
  import type { RenderGuard } from "./guards";
5
- export declare function testRule(rule: StyleRule, effect: Effect, props: Props, guards: RenderGuard[], containerContext: ContainerContextValue): boolean;
5
+ export declare function testRule(rule: StyleRule, get: Getter, props: Props, guards: RenderGuard[], containerContext: ContainerContextValue): boolean;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,SAAS,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,wBAAgB,QAAQ,CACtB,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,WAAW,EAAE,EACrB,gBAAgB,EAAE,qBAAqB,WAmBxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,wBAAgB,QAAQ,CACtB,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,WAAW,EAAE,EACrB,gBAAgB,EAAE,qBAAqB,WAmBxC"}
@@ -1,4 +1,4 @@
1
1
  import type { MediaCondition } from "../../../compiler";
2
- import { type Effect } from "../reactivity";
3
- export declare function testMediaQuery(mediaQueries: MediaCondition[], effect: Effect): boolean;
2
+ import { type Getter } from "../reactivity";
3
+ export declare function testMediaQuery(mediaQueries: MediaCondition[], get: Getter): boolean;
4
4
  //# sourceMappingURL=media-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-query.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/media-query.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAuB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAEjE,wBAAgB,cAAc,CAAC,YAAY,EAAE,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,WAE5E"}
1
+ {"version":3,"file":"media-query.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/conditions/media-query.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAuB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAEjE,wBAAgB,cAAc,CAAC,YAAY,EAAE,cAAc,EAAE,EAAE,GAAG,EAAE,MAAM,WAEzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,wBAAwB,EACxB,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,wBAAgB,eAAe,SAE9B;yBAFe,eAAe;;;;;;;;;0BAaa,wBAAwB;;AATpE,eAAO,MAAM,eAAe,uBAAgB,CAAC"}
1
+ {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,wBAAwB,EACxB,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAGtB,wBAAgB,eAAe,SAE9B;yBAFe,eAAe;;;;;;;;;0BAaa,wBAAwB;;AATpE,eAAO,MAAM,eAAe,uBAAgB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { type Effect } from "../reactivity";
1
+ import { type Getter as WeakKey } from "../reactivity";
2
2
  type Handler = (event: unknown) => void;
3
3
  export type InteractionType = "onLayout" | "onHoverIn" | "onHoverOut" | "onPress" | "onPressIn" | "onPressOut" | "onFocus" | "onBlur";
4
- export declare function getInteractionHandler(effect: Effect, type: InteractionType, handler?: Handler): (event: any) => void;
4
+ export declare function getInteractionHandler(weakKey: WeakKey, type: InteractionType, handler?: Handler): (event: any) => void;
5
5
  export {};
6
6
  //# sourceMappingURL=interaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/react/interaction.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAOvB,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAExC,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,WAAW,GACX,YAAY,GACZ,SAAS,GACT,WAAW,GACX,YAAY,GACZ,SAAS,GACT,QAAQ,CAAC;AAab,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,eAAe,EACrB,OAAO,UAAwB,WA7BL,GAAG,KAAK,IAAI,CA4EvC"}
1
+ {"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/react/interaction.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,KAAK,MAAM,IAAI,OAAO,EACvB,MAAM,eAAe,CAAC;AAOvB,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAExC,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,WAAW,GACX,YAAY,GACZ,SAAS,GACT,WAAW,GACX,YAAY,GACZ,SAAS,GACT,QAAQ,CAAC;AAab,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,eAAe,EACrB,OAAO,UAAwB,WA7BL,GAAG,KAAK,IAAI,CA4EvC"}
@@ -1,7 +1,7 @@
1
1
  import { type ComponentType } from "react";
2
2
  import type { StyledConfiguration } from "../../runtime.types";
3
3
  import { type RenderGuard } from "../conditions/guards";
4
- import { type ContainerContextValue, type Effect, type VariableContextValue } from "../reactivity";
4
+ import { type ContainerContextValue, type Effect, type Getter, type VariableContextValue } from "../reactivity";
5
5
  import { stylesFamily } from "../styles";
6
6
  export type Config = {
7
7
  source: string;
@@ -13,6 +13,7 @@ export type ComponentState = {
13
13
  configs: Config[];
14
14
  /** Reactive tracking */
15
15
  ruleEffect: Effect;
16
+ ruleEffectGetter: Getter;
16
17
  styleEffect: Effect;
17
18
  /** The components props */
18
19
  currentProps?: Record<string, any> | undefined | null;
@@ -1 +1 @@
1
- {"version":3,"file":"useNativeCss.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/react/useNativeCss.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KA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EAAE,SAAS,GAAG,OAAO,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,EACrD,OAAO,GAAE,MAAM,EAA+C,oKAqG/D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,YAgChE"}
@@ -1,5 +1,5 @@
1
1
  import { type ColorSchemeName, type LayoutRectangle } from "react-native";
2
- import type { LightDarkVariable, StyleDescriptor } from "../../compiler";
2
+ import type { StyleDescriptor } from "../../compiler";
3
3
  export type Effect = {
4
4
  observers: Set<Effect>;
5
5
  run(): void;
@@ -33,14 +33,6 @@ export type VariableContextValue = Record<string, StyleDescriptor> & {
33
33
  [VAR_SYMBOL]: true;
34
34
  };
35
35
  export declare const VariableContext: import("react").Context<VariableContextValue>;
36
- export declare const rootVariables: ((key: string, args: void) => Observable<StyleDescriptor, LightDarkVariable>) & {
37
- delete(key: string): boolean;
38
- clear(): void;
39
- };
40
- export declare const universalVariables: ((key: string, args: void) => Observable<StyleDescriptor, LightDarkVariable>) & {
41
- delete(key: string): boolean;
42
- clear(): void;
43
- };
44
36
  /** Units *********************************************************************/
45
37
  export declare const rem: Observable<number, number>;
46
38
  /** Pseudo Classes ************************************************************/
@@ -54,7 +46,7 @@ export declare const vh: Observable<number, number>;
54
46
  /** Color Scheme **************************************************************/
55
47
  export declare const colorScheme: Observable<ColorSchemeName, ColorSchemeName>;
56
48
  /** Containers ****************************************************************/
57
- export type ContainerContextValue = Record<string, Effect>;
49
+ export type ContainerContextValue = Record<string, WeakKey>;
58
50
  export declare const ContainerContext: import("react").Context<ContainerContextValue>;
59
51
  export declare const containerLayoutFamily: WeakFamilyFn<WeakKey, void, Observable<LayoutRectangle, LayoutRectangle>>;
60
52
  export declare const containerWidthFamily: WeakFamilyFn<WeakKey, void, Observable<number, number>>;
@@ -1 +1 @@
1
- {"version":3,"file":"reactivity.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/reactivity.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzE,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,GAAG,IAAI,IAAI,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI;IAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC;IAChC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IACxB,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB,CAAC;AACF,KAAK,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,KAAK,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,KAAK,CAAC;AAE1E,eAAO,MAAM,eAAe,EAAE;IAC5B,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClB,CAAC;AAEP,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,EAC3C,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,EAC9B,QAAQ,GAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,KAAK,OAAmB,0BAkFh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,IAAI,EAAE,MAAM,CAAC,CAAC;AACnC,wBAAgB,UAAU,CAAC,GAAG,SAAS,OAAO,EAAE,IAAI,GAAG,SAAS,EAAE,MAAM,GAAG,GAAG,EAC5E,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,KAAK,MAAM,GACnC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAoBnC,gFAAgF;AAEhF,eAAO,MAAM,UAAU,eAAiC,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG;IACnE,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,eAAe,+CAE1B,CAAC;AAEH,gFAAgF;AAEhF,eAAO,MAAM,GAAG,4BAAiB,CAAC;AAElC,gFAAgF;AAEhF,eAAO,MAAM,WAAW,2DAAsC,CAAC;AAC/D,eAAO,MAAM,YAAY,2DAA+C,CAAC;AACzE,eAAO,MAAM,WAAW,2DAA+C,CAAC;AAExE,gFAAgF;AAEhF,eAAO,MAAM,UAAU,kFAAuC,CAAC;AAC/D,eAAO,MAAM,EAAE,4BAEd,CAAC;AACF,eAAO,MAAM,EAAE,4BAEd,CAAC;AAEF,gFAAgF;AAEhF,eAAO,MAAM,WAAW,8CAEvB,CAAC;AAGF,gFAAgF;AAEhF,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5D,eAAO,MAAM,gBAAgB,gDAA2C,CAAC;AAEzE,eAAO,MAAM,qBAAqB,2EAOhC,CAAC;AAEH,eAAO,MAAM,oBAAoB,yDAI/B,CAAC;AAEH,eAAO,MAAM,qBAAqB,yDAIhC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { StyleDescriptor, VariableValue } from "react-native-css/compiler";
2
+ import { type Observable } from "./reactivity";
3
+ export declare const rootVariables: ((key: string, args: void) => Observable<StyleDescriptor, VariableValue[]>) & {
4
+ delete(key: string): boolean;
5
+ clear(): void;
6
+ };
7
+ export declare const universalVariables: ((key: string, args: void) => Observable<StyleDescriptor, VariableValue[]>) & {
8
+ delete(key: string): boolean;
9
+ clear(): void;
10
+ };
11
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGhF,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AA0BnE,eAAO,MAAM,aAAa;;;CAAuB,CAAC;AAClD,eAAO,MAAM,kBAAkB;;;CAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"calculate-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/calculate-props.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAGvB,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,CAAC,SAAS,GAAG,cAAc,GAAG,oBAAoB,CAAC,EAAE,EAC5D,MAAM,GAAE,WAAW,EAAO,EAC1B,kBAAkB,GAAE,oBAEnB,EACD,eAAe,GAAE,cAEhB;;;;EA6DF;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,gBAAgB,EAAE,EAChC,eAAe,EAAE,cAAc,EAC/B,kBAAkB,EAAE,oBAAoB,EACxC,aAAa,GAAE,CAAC,MAAM,IAAI,CAAC,EAAO,EAClC,MAAM,GAAE,WAAW,EAAO,EAC1B,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAChC,cAAc,sBAAS,QAqExB"}
1
+ {"version":3,"file":"calculate-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/calculate-props.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAGvB,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,CAAC,SAAS,GAAG,cAAc,GAAG,oBAAoB,CAAC,EAAE,EAC5D,MAAM,GAAE,WAAW,EAAO,EAC1B,kBAAkB,GAAE,oBAEnB,EACD,eAAe,GAAE,cAEhB;;;;EA6DF;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,gBAAgB,EAAE,EAChC,eAAe,EAAE,cAAc,EAC/B,kBAAkB,EAAE,oBAAoB,EACxC,aAAa,GAAE,CAAC,MAAM,IAAI,CAAC,EAAO,EAClC,MAAM,GAAE,WAAW,EAAO,EAC1B,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAChC,cAAc,sBAAS,QA+ExB"}
@@ -1 +1 @@
1
- {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/units.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,eAAO,MAAM,EAAE,EAAE,qBAchB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAQhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAQhB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,qBAQjB,CAAC"}
1
+ {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/units.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,eAAO,MAAM,EAAE,EAAE,qBAkBhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAQhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAQhB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,qBAQjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/variables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAIL,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEzE,wBAAgB,WAAW,CACzB,OAAO,EAAE,kBAAkB,EAC3B,EAAE,EAAE,aAAa,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,WAyE7B"}
1
+ {"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/variables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAc,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEzE,wBAAgB,WAAW,CACzB,OAAO,EAAE,kBAAkB,EAC3B,EAAE,EAAE,aAAa,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,WAyE7B"}
@@ -6,6 +6,7 @@ export declare const Specificity: {
6
6
  Important: number;
7
7
  Inline: number;
8
8
  PseudoElements: number;
9
+ PseudoClass: number;
9
10
  };
10
11
  export declare const inlineSpecificity: SpecificityArray;
11
12
  export declare const specificityCompareFn: (a: StyleRule | InlineStyleRecord, b: StyleRule | InlineStyleRecord) => number;
@@ -1 +1 @@
1
- {"version":3,"file":"specificity.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/specificity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,WAAW;;;;;;CAQvB,CAAC;AAQF,eAAO,MAAM,iBAAiB,EAAE,gBAAqB,CAAC;AAGtD,eAAO,MAAM,oBAAoB,GAC/B,GAAG,SAAS,GAAG,iBAAiB,EAChC,GAAG,SAAS,GAAG,iBAAiB,WAkBjC,CAAC"}
1
+ {"version":3,"file":"specificity.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/specificity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,WAAW;;;;;;;CASvB,CAAC;AAQF,eAAO,MAAM,iBAAiB,EAAE,gBAAqB,CAAC;AAGtD,eAAO,MAAM,oBAAoB,GAC/B,GAAG,SAAS,GAAG,iBAAiB,EAChC,GAAG,SAAS,GAAG,iBAAiB,WAkBjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-css",
3
- "version": "3.0.0-nightly.61014be",
3
+ "version": "3.0.0-nightly.d8cb1bc",
4
4
  "exports": {
5
5
  ".": {
6
6
  "source": "./src/index.ts",
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "./jest": {
42
42
  "source": "./src/jest/index.ts",
43
+ "react-native": "./src/jest/index.ts",
43
44
  "import": {
44
45
  "types": "./dist/typescript/module/src/jest/index.d.ts",
45
46
  "default": "./dist/module/jest/index.js"
@@ -102,8 +103,8 @@
102
103
  "lint": "eslint",
103
104
  "prepare": "bob build",
104
105
  "prepublishOnly": "bob build",
105
- "release": "release-it",
106
- "release:nightly": "release-it 3.0.0-nightly.\"$(git rev-parse --short HEAD)\" --npm.tag=beta",
106
+ "release": "release-it --config ./.config/release-it.config.ts",
107
+ "release:nightly": "release-it --config ./.config/release-it.nightly.config.ts 3.0.0-nightly.\"$(git rev-parse --short HEAD)\" --npm.tag=beta && git restore :/",
107
108
  "start": "yarn example start",
108
109
  "start:build": "yarn build && yarn example build",
109
110
  "start:debug": "yarn build && yarn example debug",
@@ -132,7 +132,7 @@ function propAtRuleBlock(
132
132
  mapping[toRNProperty(fromToken.value.value)] = to.flatMap((item, index) => {
133
133
  switch (item.value.type) {
134
134
  case "delim":
135
- return index === 0 && item.value.value === "^" ? ["^"] : [];
135
+ return index === 0 && item.value.value === "*" ? ["*"] : [];
136
136
  case "ident":
137
137
  return [toRNProperty(item.value.value)];
138
138
  default:
@@ -6,7 +6,7 @@ test("multiple classes", () => {
6
6
  color: red;
7
7
  }`);
8
8
 
9
- expect(compiled).toStrictEqual({
9
+ expect(compiled.stylesheet()).toStrictEqual({
10
10
  s: [
11
11
  [
12
12
  "test",
@@ -1,4 +1,6 @@
1
1
  /* eslint-disable */
2
+ import { inspect } from "node:util";
3
+
2
4
  import { debug } from "debug";
3
5
  import {
4
6
  transform as lightningcss,
@@ -12,16 +14,11 @@ import {
12
14
  } from "lightningcss";
13
15
 
14
16
  import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules";
15
- import type {
16
- CompilerOptions,
17
- ContainerQuery,
18
- ReactNativeCssStyleSheet,
19
- } from "./compiler.types";
17
+ import type { CompilerOptions, ContainerQuery } from "./compiler.types";
20
18
  import { parseContainerCondition } from "./container-query";
21
19
  import { parseDeclaration } from "./declarations";
22
20
  import { extractKeyFrames } from "./keyframes";
23
21
  import { parseMediaQuery } from "./media-query";
24
- import { getSelectors } from "./selectors";
25
22
  import { StylesheetBuilder } from "./stylesheet";
26
23
 
27
24
  const defaultLogger = debug("react-native-css:compiler");
@@ -33,11 +30,11 @@ const defaultLogger = debug("react-native-css:compiler");
33
30
  * @param options - Compiler options
34
31
  * @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
35
32
  */
36
- export function compile(
37
- code: Buffer | string,
38
- options: CompilerOptions = {},
39
- ): ReactNativeCssStyleSheet {
33
+ export function compile(code: Buffer | string, options: CompilerOptions = {}) {
40
34
  const { logger = defaultLogger } = options;
35
+ const isLoggerEnabled =
36
+ "enabled" in logger ? logger.enabled : Boolean(logger);
37
+
41
38
  const features = Object.assign({}, options.features);
42
39
 
43
40
  if (options.selectorPrefix && options.selectorPrefix.startsWith(".")) {
@@ -67,8 +64,12 @@ export function compile(
67
64
  maybeMutateReactNativeOptions(rule, builder);
68
65
  },
69
66
  StyleSheetExit(sheet) {
70
- logger(`Found ${sheet.rules.length} rules to process`);
71
- logger(JSON.stringify(sheet.rules, null, 2));
67
+ if (isLoggerEnabled) {
68
+ logger(`Found ${sheet.rules.length} rules to process`);
69
+ logger(
70
+ inspect(sheet.rules, { depth: null, colors: true, compact: false }),
71
+ );
72
+ }
72
73
 
73
74
  for (const rule of sheet.rules) {
74
75
  // Extract the style declarations and animations from the current rule
@@ -108,7 +109,10 @@ export function compile(
108
109
  visitor,
109
110
  });
110
111
 
111
- return builder.getNativeStyleSheet();
112
+ return {
113
+ stylesheet: () => builder.getNativeStyleSheet(),
114
+ warnings: () => builder.getWarnings(),
115
+ };
112
116
  }
113
117
 
114
118
  /**
@@ -137,16 +141,16 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
137
141
 
138
142
  const declarationBlock = value.declarations;
139
143
  if (declarationBlock) {
140
- if (declarationBlock.declarations) {
141
- builder.newRuleFork();
144
+ if (declarationBlock.declarations?.length) {
145
+ builder.newNestedRule();
142
146
  for (const declaration of declarationBlock.declarations) {
143
147
  parseDeclaration(declaration, builder);
144
148
  }
145
149
  builder.applyRuleToSelectors();
146
150
  }
147
151
 
148
- if (declarationBlock.importantDeclarations) {
149
- builder.newRuleFork({ important: true });
152
+ if (declarationBlock.importantDeclarations?.length) {
153
+ builder.newNestedRule({ important: true });
150
154
  for (const declaration of declarationBlock.importantDeclarations) {
151
155
  parseDeclaration(declaration, builder);
152
156
  }
@@ -160,14 +164,9 @@ function extractRule(rule: Rule, builder: StylesheetBuilder) {
160
164
 
161
165
  const declarationBlock = value.declarations;
162
166
  const mapping = parsePropAtRule(value.rules);
163
- const selectors = getSelectors(
164
- value.selectors,
165
- false,
166
- builder.getOptions(),
167
- );
168
167
 
169
168
  // If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
170
- builder = builder.fork("style", selectors);
169
+ builder = builder.fork("style", value.selectors);
171
170
 
172
171
  if (declarationBlock) {
173
172
  if (declarationBlock.declarations) {
@@ -283,17 +282,17 @@ function extractContainer(
283
282
  builder = builder.fork("container");
284
283
 
285
284
  // Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
286
- for (const rule of containerRule.rules) {
287
- const query: ContainerQuery = {
288
- m: parseContainerCondition(containerRule.condition, builder),
289
- };
285
+ const query: ContainerQuery = {
286
+ m: parseContainerCondition(containerRule.condition, builder),
287
+ };
290
288
 
291
- if (containerRule.name) {
292
- query.n = containerRule.name;
293
- }
289
+ if (containerRule.name) {
290
+ query.n = containerRule.name;
291
+ }
294
292
 
295
- builder.addContainerQuery(query);
293
+ builder.addContainerQuery(query);
296
294
 
295
+ for (const rule of containerRule.rules) {
297
296
  extractRule(rule, builder);
298
297
  }
299
298
  }
@@ -35,9 +35,9 @@ export interface ReactNativeCssStyleSheet_V2 {
35
35
  /** KeyFrames */
36
36
  k?: Animation_V2[];
37
37
  /** Root Variables */
38
- vr?: [string, LightDarkVariable][];
38
+ vr?: RootVariables;
39
39
  /** Universal Variables */
40
- vu?: [string, LightDarkVariable][];
40
+ vu?: RootVariables;
41
41
  }
42
42
 
43
43
  /******************************** Styles ********************************/
@@ -147,10 +147,12 @@ export type StyleFunction =
147
147
  /****************************** Variables *******************************/
148
148
 
149
149
  export type VariableDescriptor = [string, StyleDescriptor];
150
- export type VariableRecord = Record<string, LightDarkVariable>;
151
- export type LightDarkVariable =
150
+ export type VariableRecord = Record<string, VariableValue[]>;
151
+ export type VariableValue =
152
152
  | [StyleDescriptor]
153
- | [StyleDescriptor, StyleDescriptor];
153
+ | [StyleDescriptor, MediaCondition[]];
154
+
155
+ export type RootVariables = [string, VariableValue[]][];
154
156
 
155
157
  export type InlineVariable = {
156
158
  [VAR_SYMBOL]: "inline";