@tamagui/web 3.0.0-beta.807.1 → 3.0.0-beta.831.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.
Files changed (266) hide show
  1. package/dist/cjs/config.cjs +1 -1
  2. package/dist/cjs/config.native.cjs +1 -1
  3. package/dist/cjs/config.native.js +1 -1
  4. package/dist/cjs/config.native.js.map +1 -1
  5. package/dist/cjs/createComponent.cjs +28 -18
  6. package/dist/cjs/createComponent.native.cjs +30 -20
  7. package/dist/cjs/createComponent.native.js +30 -20
  8. package/dist/cjs/createComponent.native.js.map +1 -1
  9. package/dist/cjs/createStyledHOC.cjs +54 -4
  10. package/dist/cjs/createStyledHOC.native.cjs +55 -4
  11. package/dist/cjs/createStyledHOC.native.js +55 -4
  12. package/dist/cjs/createStyledHOC.native.js.map +1 -1
  13. package/dist/cjs/createTokens.cjs +1 -1
  14. package/dist/cjs/createTokens.native.cjs +1 -1
  15. package/dist/cjs/createTokens.native.js +1 -1
  16. package/dist/cjs/createTokens.native.js.map +1 -1
  17. package/dist/cjs/dom/html.cjs +147 -99
  18. package/dist/cjs/dom/htmlRuntime.native.cjs +6 -2
  19. package/dist/cjs/dom/htmlRuntime.native.js +6 -2
  20. package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
  21. package/dist/cjs/dom/primitives.native.cjs +16 -13
  22. package/dist/cjs/dom/primitives.native.js +16 -13
  23. package/dist/cjs/dom/primitives.native.js.map +1 -1
  24. package/dist/cjs/helpers/componentDisplayName.cjs +1 -11
  25. package/dist/cjs/helpers/componentDisplayName.native.cjs +1 -11
  26. package/dist/cjs/helpers/componentDisplayName.native.js +1 -11
  27. package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -1
  28. package/dist/cjs/helpers/directStyleCSS.cjs +101 -104
  29. package/dist/cjs/helpers/formatDiagnostic.cjs +2 -4
  30. package/dist/cjs/helpers/formatDiagnostic.native.cjs +2 -4
  31. package/dist/cjs/helpers/formatDiagnostic.native.js +2 -4
  32. package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
  33. package/dist/cjs/helpers/getCSSStylesAtomic.cjs +10 -10
  34. package/dist/cjs/helpers/getSplitStyles.cjs +168 -600
  35. package/dist/cjs/helpers/getSplitStyles.native.cjs +168 -762
  36. package/dist/cjs/helpers/getSplitStyles.native.js +168 -762
  37. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  38. package/dist/cjs/helpers/splitStyleProps.cjs +46 -0
  39. package/dist/cjs/helpers/splitStyleProps.native.cjs +49 -0
  40. package/dist/cjs/helpers/splitStyleProps.native.js +51 -0
  41. package/dist/cjs/helpers/splitStyleProps.native.js.map +1 -0
  42. package/dist/cjs/helpers/styleStaticConfig.cjs +76 -0
  43. package/dist/cjs/helpers/styleStaticConfig.native.cjs +79 -0
  44. package/dist/cjs/helpers/styleStaticConfig.native.js +81 -0
  45. package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -0
  46. package/dist/cjs/helpers/tokenCategories.cjs +32 -71
  47. package/dist/cjs/helpers/tokenCategories.native.cjs +34 -73
  48. package/dist/cjs/helpers/tokenCategories.native.js +34 -73
  49. package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
  50. package/dist/cjs/helpers/variantResolvers.cjs +87 -0
  51. package/dist/cjs/helpers/variantResolvers.native.cjs +140 -0
  52. package/dist/cjs/helpers/variantResolvers.native.js +142 -0
  53. package/dist/cjs/helpers/variantResolvers.native.js.map +1 -0
  54. package/dist/cjs/hooks/useSplitStyles.cjs +2 -2
  55. package/dist/cjs/hooks/useSplitStyles.native.cjs +2 -2
  56. package/dist/cjs/hooks/useSplitStyles.native.js +2 -2
  57. package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
  58. package/dist/cjs/index.cjs +3 -9
  59. package/dist/cjs/index.native.cjs +3 -9
  60. package/dist/cjs/index.native.js +3 -9
  61. package/dist/cjs/index.native.js.map +1 -1
  62. package/dist/cjs/internal-runtime.cjs +8 -7
  63. package/dist/cjs/internal-runtime.native.cjs +8 -7
  64. package/dist/cjs/internal-runtime.native.js +8 -7
  65. package/dist/cjs/internal-runtime.native.js.map +1 -1
  66. package/dist/cjs/static-resolve.cjs +6 -5
  67. package/dist/cjs/static-resolve.native.cjs +6 -5
  68. package/dist/cjs/static-resolve.native.js +6 -5
  69. package/dist/cjs/static-resolve.native.js.map +1 -1
  70. package/dist/cjs/styled.cjs +4 -56
  71. package/dist/cjs/styled.native.cjs +4 -58
  72. package/dist/cjs/styled.native.js +4 -58
  73. package/dist/cjs/styled.native.js.map +1 -1
  74. package/dist/cjs/types.cjs +1 -21
  75. package/dist/cjs/types.native.cjs +1 -21
  76. package/dist/cjs/types.native.js +1 -21
  77. package/dist/cjs/types.native.js.map +1 -1
  78. package/dist/cjs/views/Text.cjs +4 -2
  79. package/dist/cjs/views/Text.native.cjs +4 -2
  80. package/dist/cjs/views/Text.native.js +4 -2
  81. package/dist/cjs/views/Text.native.js.map +1 -1
  82. package/dist/cjs/views/View.cjs +4 -2
  83. package/dist/cjs/views/View.native.cjs +4 -2
  84. package/dist/cjs/views/View.native.js +4 -2
  85. package/dist/cjs/views/View.native.js.map +1 -1
  86. package/dist/esm/config.mjs +1 -1
  87. package/dist/esm/config.mjs.map +1 -1
  88. package/dist/esm/config.native.js +1 -1
  89. package/dist/esm/config.native.js.map +1 -1
  90. package/dist/esm/createComponent.mjs +29 -19
  91. package/dist/esm/createComponent.mjs.map +1 -1
  92. package/dist/esm/createComponent.native.js +31 -21
  93. package/dist/esm/createComponent.native.js.map +1 -1
  94. package/dist/esm/createStyledHOC.mjs +55 -5
  95. package/dist/esm/createStyledHOC.mjs.map +1 -1
  96. package/dist/esm/createStyledHOC.native.js +56 -5
  97. package/dist/esm/createStyledHOC.native.js.map +1 -1
  98. package/dist/esm/createTokens.mjs +1 -1
  99. package/dist/esm/createTokens.mjs.map +1 -1
  100. package/dist/esm/createTokens.native.js +1 -1
  101. package/dist/esm/createTokens.native.js.map +1 -1
  102. package/dist/esm/dom/html.mjs +147 -99
  103. package/dist/esm/dom/html.mjs.map +1 -1
  104. package/dist/esm/dom/htmlRuntime.native.js +7 -3
  105. package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
  106. package/dist/esm/dom/primitives.native.js +16 -13
  107. package/dist/esm/dom/primitives.native.js.map +1 -1
  108. package/dist/esm/helpers/componentDisplayName.mjs +1 -8
  109. package/dist/esm/helpers/componentDisplayName.mjs.map +1 -1
  110. package/dist/esm/helpers/componentDisplayName.native.js +1 -8
  111. package/dist/esm/helpers/componentDisplayName.native.js.map +1 -1
  112. package/dist/esm/helpers/directStyleCSS.mjs +101 -104
  113. package/dist/esm/helpers/directStyleCSS.mjs.map +1 -1
  114. package/dist/esm/helpers/formatDiagnostic.mjs +2 -4
  115. package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
  116. package/dist/esm/helpers/formatDiagnostic.native.js +2 -4
  117. package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
  118. package/dist/esm/helpers/getCSSStylesAtomic.mjs +10 -10
  119. package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
  120. package/dist/esm/helpers/getSplitStyles.mjs +166 -594
  121. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  122. package/dist/esm/helpers/getSplitStyles.native.js +166 -757
  123. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  124. package/dist/esm/helpers/splitStyleProps.mjs +27 -0
  125. package/dist/esm/helpers/splitStyleProps.mjs.map +1 -0
  126. package/dist/esm/helpers/splitStyleProps.native.js +28 -0
  127. package/dist/esm/helpers/splitStyleProps.native.js.map +1 -0
  128. package/dist/esm/helpers/styleStaticConfig.mjs +57 -0
  129. package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -0
  130. package/dist/esm/helpers/styleStaticConfig.native.js +58 -0
  131. package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -0
  132. package/dist/esm/helpers/tokenCategories.mjs +33 -72
  133. package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
  134. package/dist/esm/helpers/tokenCategories.native.js +35 -74
  135. package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
  136. package/dist/esm/helpers/variantResolvers.mjs +65 -0
  137. package/dist/esm/helpers/variantResolvers.mjs.map +1 -0
  138. package/dist/esm/helpers/variantResolvers.native.js +116 -0
  139. package/dist/esm/helpers/variantResolvers.native.js.map +1 -0
  140. package/dist/esm/hooks/useSplitStyles.mjs +2 -2
  141. package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
  142. package/dist/esm/hooks/useSplitStyles.native.js +2 -2
  143. package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
  144. package/dist/esm/index.js +3 -5
  145. package/dist/esm/index.mjs +3 -5
  146. package/dist/esm/index.native.js +3 -5
  147. package/dist/esm/internal-runtime.mjs +8 -7
  148. package/dist/esm/internal-runtime.mjs.map +1 -1
  149. package/dist/esm/internal-runtime.native.js +8 -7
  150. package/dist/esm/internal-runtime.native.js.map +1 -1
  151. package/dist/esm/static-resolve.mjs +8 -6
  152. package/dist/esm/static-resolve.mjs.map +1 -1
  153. package/dist/esm/static-resolve.native.js +8 -6
  154. package/dist/esm/static-resolve.native.js.map +1 -1
  155. package/dist/esm/styled.mjs +6 -57
  156. package/dist/esm/styled.mjs.map +1 -1
  157. package/dist/esm/styled.native.js +6 -59
  158. package/dist/esm/styled.native.js.map +1 -1
  159. package/dist/esm/types.mjs +1 -18
  160. package/dist/esm/types.mjs.map +1 -1
  161. package/dist/esm/types.native.js +1 -18
  162. package/dist/esm/types.native.js.map +1 -1
  163. package/dist/esm/views/Text.mjs +4 -2
  164. package/dist/esm/views/Text.mjs.map +1 -1
  165. package/dist/esm/views/Text.native.js +4 -2
  166. package/dist/esm/views/Text.native.js.map +1 -1
  167. package/dist/esm/views/View.mjs +4 -2
  168. package/dist/esm/views/View.mjs.map +1 -1
  169. package/dist/esm/views/View.native.js +4 -2
  170. package/dist/esm/views/View.native.js.map +1 -1
  171. package/package.json +15 -15
  172. package/src/config.ts +1 -1
  173. package/src/createComponent.tsx +41 -30
  174. package/src/createStyledHOC.tsx +56 -9
  175. package/src/createTokens.ts +1 -1
  176. package/src/dom/html.tsx +778 -877
  177. package/src/dom/htmlRuntime.native.tsx +7 -3
  178. package/src/dom/primitives.native.tsx +30 -39
  179. package/src/helpers/componentDisplayName.ts +0 -11
  180. package/src/helpers/directStyleCSS.ts +91 -112
  181. package/src/helpers/formatDiagnostic.ts +2 -4
  182. package/src/helpers/getCSSStylesAtomic.ts +32 -26
  183. package/src/helpers/getSplitStyles.tsx +315 -1119
  184. package/src/helpers/getVariantExtras.tsx +3 -3
  185. package/src/helpers/splitStyleProps.ts +166 -0
  186. package/src/helpers/styleFrontend.ts +8 -4
  187. package/src/helpers/styleStaticConfig.ts +88 -0
  188. package/src/helpers/tokenCategories.ts +62 -93
  189. package/src/helpers/variantResolvers.ts +121 -0
  190. package/src/hooks/useSplitStyles.tsx +17 -2
  191. package/src/hooks/useTheme.tsx +1 -1
  192. package/src/index.ts +8 -4
  193. package/src/internal-runtime.ts +10 -9
  194. package/src/static-resolve.ts +18 -14
  195. package/src/styled.tsx +7 -264
  196. package/src/types.tsx +19 -40
  197. package/src/views/Text.tsx +6 -7
  198. package/src/views/View.tsx +6 -7
  199. package/types/createComponent.d.ts.map +1 -1
  200. package/types/createStyledHOC.d.ts.map +1 -1
  201. package/types/dom/html.d.ts.map +1 -1
  202. package/types/dom/htmlRuntime.native.d.ts.map +1 -1
  203. package/types/dom/primitives.native.d.ts.map +1 -1
  204. package/types/helpers/componentDisplayName.d.ts +0 -3
  205. package/types/helpers/componentDisplayName.d.ts.map +1 -1
  206. package/types/helpers/directStyleCSS.d.ts.map +1 -1
  207. package/types/helpers/formatDiagnostic.d.ts.map +1 -1
  208. package/types/helpers/getCSSStylesAtomic.d.ts +17 -15
  209. package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
  210. package/types/helpers/getSplitStyles.d.ts +6 -6
  211. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  212. package/types/helpers/splitStyleProps.d.ts +44 -0
  213. package/types/helpers/splitStyleProps.d.ts.map +1 -0
  214. package/types/helpers/styleFrontend.d.ts +4 -4
  215. package/types/helpers/styleFrontend.d.ts.map +1 -1
  216. package/types/helpers/styleStaticConfig.d.ts +19 -0
  217. package/types/helpers/styleStaticConfig.d.ts.map +1 -0
  218. package/types/helpers/tokenCategories.d.ts +1 -1
  219. package/types/helpers/tokenCategories.d.ts.map +1 -1
  220. package/types/helpers/variantResolvers.d.ts +9 -0
  221. package/types/helpers/variantResolvers.d.ts.map +1 -0
  222. package/types/hooks/useSplitStyles.d.ts.map +1 -1
  223. package/types/index.d.ts +2 -4
  224. package/types/index.d.ts.map +1 -1
  225. package/types/internal-runtime.d.ts.map +1 -1
  226. package/types/static-resolve.d.ts +2 -2
  227. package/types/static-resolve.d.ts.map +1 -1
  228. package/types/styled.d.ts +3 -39
  229. package/types/styled.d.ts.map +1 -1
  230. package/types/types.d.ts +2 -12
  231. package/types/types.d.ts.map +1 -1
  232. package/types/views/Text.d.ts.map +1 -1
  233. package/types/views/View.d.ts.map +1 -1
  234. package/dist/cjs/helpers/getDefaultProps.cjs +0 -24
  235. package/dist/cjs/helpers/getDefaultProps.native.cjs +0 -28
  236. package/dist/cjs/helpers/getDefaultProps.native.js +0 -30
  237. package/dist/cjs/helpers/getDefaultProps.native.js.map +0 -1
  238. package/dist/cjs/helpers/themeable.cjs +0 -92
  239. package/dist/cjs/helpers/themeable.native.cjs +0 -95
  240. package/dist/cjs/helpers/themeable.native.js +0 -97
  241. package/dist/cjs/helpers/themeable.native.js.map +0 -1
  242. package/dist/cjs/hooks/useProps.cjs +0 -129
  243. package/dist/cjs/hooks/useProps.native.cjs +0 -135
  244. package/dist/cjs/hooks/useProps.native.js +0 -137
  245. package/dist/cjs/hooks/useProps.native.js.map +0 -1
  246. package/dist/esm/helpers/getDefaultProps.mjs +0 -4
  247. package/dist/esm/helpers/getDefaultProps.mjs.map +0 -1
  248. package/dist/esm/helpers/getDefaultProps.native.js +0 -6
  249. package/dist/esm/helpers/getDefaultProps.native.js.map +0 -1
  250. package/dist/esm/helpers/themeable.mjs +0 -67
  251. package/dist/esm/helpers/themeable.mjs.map +0 -1
  252. package/dist/esm/helpers/themeable.native.js +0 -68
  253. package/dist/esm/helpers/themeable.native.js.map +0 -1
  254. package/dist/esm/hooks/useProps.mjs +0 -100
  255. package/dist/esm/hooks/useProps.mjs.map +0 -1
  256. package/dist/esm/hooks/useProps.native.js +0 -104
  257. package/dist/esm/hooks/useProps.native.js.map +0 -1
  258. package/src/helpers/getDefaultProps.ts +0 -3
  259. package/src/helpers/themeable.tsx +0 -96
  260. package/src/hooks/useProps.tsx +0 -186
  261. package/types/helpers/getDefaultProps.d.ts +0 -3
  262. package/types/helpers/getDefaultProps.d.ts.map +0 -1
  263. package/types/helpers/themeable.d.ts +0 -3
  264. package/types/helpers/themeable.d.ts.map +0 -1
  265. package/types/hooks/useProps.d.ts +0 -39
  266. package/types/hooks/useProps.d.ts.map +0 -1
@@ -12,20 +12,17 @@ function requestBorderStyleDefault(state, property, condition, identity, selecto
12
12
  const target = borderStyleDefaults[property];
13
13
  if (!target) return;
14
14
  const requests = state.flatBorderDefaultRequests ||= [];
15
- for (let index = 0; index < requests.length; index++) if (requests[index].property === target && requests[index].identity === identity) return;
16
- let wrappers;
17
- if (wrapperSource && wrapperCount) {
18
- wrappers = new Array(wrapperCount);
19
- for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
20
- }
21
- requests.push({
22
- property: target,
23
- value: "solid",
15
+ for (let index = 0; index < requests.length; index++) if (requests[index][0] === target && requests[index][3] === identity) return;
16
+ requests.push([
17
+ target,
18
+ "solid",
24
19
  condition,
25
20
  identity,
26
21
  selector,
27
- wrappers
28
- });
22
+ wrapperSource,
23
+ wrapperStart,
24
+ wrapperCount
25
+ ]);
29
26
  }
30
27
  function directStyleSignature(property, value, conditionKey = "") {
31
28
  return `${property}${conditionKey}${String(value)}`;
@@ -41,14 +38,14 @@ function registerSlot(state, atomicKey, entries) {
41
38
  const ordered = [];
42
39
  for (let index = 0; index < entries.length; index++) {
43
40
  const entry = entries[index];
44
- let value = entry.value;
45
- if (entry.property === "transform" && Array.isArray(value)) value = transformsToString(value);
46
- entry.value = normalizeValueWithProperty(value, entry.property);
47
- const precedence = entry.condition ? Math.floor(entry.condition / 256) : -1;
41
+ let value = entry[1];
42
+ if (entry[0] === "transform" && Array.isArray(value)) value = transformsToString(value);
43
+ entry[1] = normalizeValueWithProperty(value, entry[0]);
44
+ const precedence = entry[2] ? Math.floor(entry[2] / 256) : -1;
48
45
  let insertAt = ordered.length;
49
46
  while (insertAt > 0) {
50
47
  const before = ordered[insertAt - 1];
51
- if ((before.condition ? Math.floor(before.condition / 256) : -1) <= precedence) break;
48
+ if ((before[2] ? Math.floor(before[2] / 256) : -1) <= precedence) break;
52
49
  insertAt--;
53
50
  }
54
51
  ordered.splice(insertAt, 0, entry);
@@ -56,51 +53,50 @@ function registerSlot(state, atomicKey, entries) {
56
53
  let signature = "";
57
54
  for (let index = 0; index < ordered.length; index++) {
58
55
  const entry = ordered[index];
59
- signature += directStyleSignature(entry.property, entry.value, entry.identity);
56
+ signature += directStyleSignature(entry[0], entry[1], entry[3]);
60
57
  }
61
58
  const built = buildAtomicSlotCSS(atomicKey, ordered, signature);
62
59
  if (!built) return;
63
- const styleObject = built.styleObject ||= [
60
+ const styleObject = built[3] ||= [
64
61
  atomicKey,
65
- built.value,
66
- built.identifier,
62
+ built[2],
63
+ built[0],
67
64
  void 0,
68
- built.rules
65
+ built[1]
69
66
  ];
70
67
  (state.flatAtomics ||= {})[atomicKey] = styleObject;
71
- state.classNames[atomicKey] = built.identifier;
68
+ state.classNames[atomicKey] = built[0];
72
69
  }
73
- const streamEntry = {
74
- property: "",
75
- value: "",
76
- condition: 0,
77
- identity: "",
78
- selector: "",
79
- wrappers: void 0
80
- };
81
- const streamSlot = [streamEntry];
70
+ const scratchEntry = [
71
+ "",
72
+ "",
73
+ 0,
74
+ "",
75
+ "",
76
+ void 0,
77
+ 0,
78
+ 0
79
+ ];
80
+ const singleSlot = [scratchEntry];
82
81
  function appendSlotEntry(list, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {
83
- for (let index = 0; index < list.length; index++) if (list[index].identity === identity) {
82
+ for (let index = 0; index < list.length; index++) if (list[index][3] === identity) {
84
83
  if (weak) return;
85
- list[index].value = value;
86
- list[index].condition = condition;
87
- list[index].original = original;
84
+ list[index][1] = value;
85
+ list[index][2] = condition;
86
+ list[index][8] = original;
88
87
  return;
89
88
  }
90
- let wrappers;
91
- if (wrapperSource && wrapperCount) {
92
- wrappers = new Array(wrapperCount);
93
- for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
94
- }
95
- list.push({
89
+ list.push([
96
90
  property,
97
91
  value,
98
92
  condition,
99
93
  identity,
100
94
  selector,
101
- wrappers,
95
+ wrapperSource,
96
+ wrapperStart,
97
+ wrapperCount,
102
98
  original
103
- });
99
+ ]);
104
100
  }
105
101
  function streamAtomic(state, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {
106
102
  if (!canGenerateCSS) return;
@@ -118,7 +114,7 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
118
114
  const atomics = direct.flatAtomics;
119
115
  const streamed = atomics ? atomics[property] : void 0;
120
116
  if (singleEntry) {
121
- if (singleEntry.identity !== identity) {
117
+ if (singleEntry[3] !== identity) {
122
118
  delete singleEntries[property];
123
119
  appendSlotEntry((direct.flatSlots ||= {})[property] = [singleEntry], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
124
120
  return;
@@ -126,14 +122,16 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
126
122
  if (weak) return;
127
123
  } else if (streamed !== void 0) {
128
124
  if (identity) {
129
- appendSlotEntry((direct.flatSlots ||= {})[property] = [{
125
+ appendSlotEntry((direct.flatSlots ||= {})[property] = [[
130
126
  property,
131
- value: streamed[1],
132
- condition: 0,
133
- identity: "",
134
- selector: "",
135
- wrappers: void 0
136
- }], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
127
+ streamed[1],
128
+ 0,
129
+ "",
130
+ "",
131
+ void 0,
132
+ 0,
133
+ 0
134
+ ]], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
137
135
  return;
138
136
  }
139
137
  if (weak) return;
@@ -145,54 +143,53 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
145
143
  if (!identity) {
146
144
  const memo = probeRawSlotIdentity(property, value);
147
145
  if (memo) {
148
- const styleObject2 = memo.styleObject ||= [
146
+ const styleObject2 = memo[3] ||= [
149
147
  property,
150
- memo.value,
151
- memo.identifier,
148
+ memo[2],
149
+ memo[0],
152
150
  void 0,
153
- memo.rules
151
+ memo[1]
154
152
  ];
155
153
  (direct.flatAtomics ||= {})[property] = styleObject2;
156
- state.classNames[property] = memo.identifier;
154
+ state.classNames[property] = memo[0];
157
155
  return;
158
156
  }
159
157
  }
160
158
  const rawValue = value;
161
159
  if (property === "transform" && Array.isArray(value)) value = transformsToString(value);
162
160
  const normalized = normalizeValueWithProperty(value, property);
163
- streamEntry.property = property;
164
- streamEntry.value = normalized;
165
- streamEntry.condition = condition;
166
- streamEntry.identity = identity;
167
- streamEntry.selector = selector;
168
- let wrappers;
169
- if (wrapperSource && wrapperCount) {
170
- wrappers = new Array(wrapperCount);
171
- for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
172
- }
173
- streamEntry.wrappers = wrappers;
174
- const built = buildAtomicSlotCSS(property, streamSlot, directStyleSignature(property, normalized, identity));
175
- streamEntry.wrappers = void 0;
176
- streamEntry.value = "";
161
+ scratchEntry[0] = property;
162
+ scratchEntry[1] = normalized;
163
+ scratchEntry[2] = condition;
164
+ scratchEntry[3] = identity;
165
+ scratchEntry[4] = selector;
166
+ scratchEntry[5] = wrapperSource;
167
+ scratchEntry[6] = wrapperStart;
168
+ scratchEntry[7] = wrapperCount;
169
+ const built = buildAtomicSlotCSS(property, singleSlot, directStyleSignature(property, normalized, identity));
170
+ scratchEntry[5] = void 0;
171
+ scratchEntry[1] = "";
177
172
  if (!built) return;
178
173
  if (!identity) storeRawSlotIdentity(property, rawValue, built);
179
- if (identity) (direct.flatSingleEntries ||= {})[property] = {
174
+ if (identity) (direct.flatSingleEntries ||= {})[property] = [
180
175
  property,
181
- value: normalized,
176
+ normalized,
182
177
  condition,
183
178
  identity,
184
179
  selector,
185
- wrappers
186
- };
187
- const styleObject = built.styleObject ||= [
180
+ wrapperSource,
181
+ wrapperStart,
182
+ wrapperCount
183
+ ];
184
+ const styleObject = built[3] ||= [
188
185
  property,
189
- built.value,
190
- built.identifier,
186
+ built[2],
187
+ built[0],
191
188
  void 0,
192
- built.rules
189
+ built[1]
193
190
  ];
194
191
  (direct.flatAtomics ||= {})[property] = styleObject;
195
- state.classNames[property] = built.identifier;
192
+ state.classNames[property] = built[0];
196
193
  }
197
194
  function completeStreamingCSS(state) {
198
195
  if (!canGenerateCSS) return;
@@ -204,10 +201,10 @@ function completeStreamingCSS(state) {
204
201
  direct.flatBorderDefaultRequests = void 0;
205
202
  for (let index = 0; index < requests.length; index++) {
206
203
  const request = requests[index];
207
- const target = request.property;
204
+ const target = request[0];
208
205
  const targetSingle = singleEntries ? singleEntries[target] : void 0;
209
206
  if (targetSingle) {
210
- if (targetSingle.identity === request.identity) continue;
207
+ if (targetSingle[3] === request[3]) continue;
211
208
  delete singleEntries[target];
212
209
  ((direct.flatSlots ||= {})[target] = [targetSingle]).push(request);
213
210
  continue;
@@ -215,7 +212,7 @@ function completeStreamingCSS(state) {
215
212
  const slot = direct.flatSlots ? direct.flatSlots[target] : void 0;
216
213
  if (slot) {
217
214
  let covered = false;
218
- for (let t = 0; t < slot.length; t++) if (!slot[t].condition || slot[t].identity === request.identity) {
215
+ for (let t = 0; t < slot.length; t++) if (!slot[t][2] || slot[t][3] === request[3]) {
219
216
  covered = true;
220
217
  break;
221
218
  }
@@ -230,14 +227,16 @@ function completeStreamingCSS(state) {
230
227
  if (cssMode && state.transformAccumulator) {
231
228
  const transform = finalizeTransformAccumulator(state.transformAccumulator);
232
229
  state.transformAccumulator = void 0;
233
- const accumulated = {
234
- property: "transform",
235
- value: Array.isArray(transform) ? transformsToString(transform) : transform,
236
- condition: 0,
237
- identity: "",
238
- selector: "",
239
- wrappers: void 0
240
- };
230
+ const accumulated = [
231
+ "transform",
232
+ Array.isArray(transform) ? transformsToString(transform) : transform,
233
+ 0,
234
+ "",
235
+ "",
236
+ void 0,
237
+ 0,
238
+ 0
239
+ ];
241
240
  const slot = direct.flatSlots ? direct.flatSlots.transform : void 0;
242
241
  const transformSingle = singleEntries ? singleEntries.transform : void 0;
243
242
  if (slot) slot.unshift(accumulated);
@@ -277,30 +276,28 @@ function flushDirectStyles(state, clear = false) {
277
276
  }
278
277
  if (clear) direct.flatAtomics = void 0;
279
278
  }
280
- const compositionEntry = {
281
- property: "",
282
- value: "",
283
- condition: 0,
284
- identity: "",
285
- selector: "",
286
- wrappers: void 0
287
- };
288
279
  function addComposition(state, property) {
289
280
  if (!canGenerateCSS || state.classNames[property]) return;
290
281
  const value = property === "translate" ? "var(--t-x, 0px) var(--t-y, 0px)" : "var(--t-scale-x, 1) var(--t-scale-y, 1)";
291
282
  const defaults = property === "translate" ? "--t-x:0px;--t-y:0px" : "--t-scale-x:1;--t-scale-y:1";
292
- compositionEntry.property = property;
293
- compositionEntry.value = value;
294
- const built = buildAtomicSlotCSS(property, [compositionEntry], directStyleSignature(property, value, ""));
283
+ scratchEntry[0] = property;
284
+ scratchEntry[1] = value;
285
+ scratchEntry[2] = 0;
286
+ scratchEntry[3] = "";
287
+ scratchEntry[4] = "";
288
+ scratchEntry[5] = void 0;
289
+ scratchEntry[6] = 0;
290
+ scratchEntry[7] = 0;
291
+ const built = buildAtomicSlotCSS(property, singleSlot, directStyleSignature(property, value, ""));
295
292
  if (!built) return;
296
- const identifier = built.identifier;
297
- const rules = built.rules.slice();
293
+ const identifier = built[0];
294
+ const rules = built[1].slice();
298
295
  rules.unshift(`:where(.${identifier}){${defaults}}`);
299
296
  if (shouldInsertStyleRules(identifier)) {
300
297
  updateRules(identifier, rules);
301
298
  state.flatRulesToInsert[identifier] = [
302
299
  property,
303
- built.value,
300
+ built[2],
304
301
  identifier,
305
302
  void 0,
306
303
  rules
@@ -1 +1 @@
1
- {"version":3,"file":"directStyleCSS.js","names":[],"sources":["esm/helpers/directStyleCSS.js"],"sourcesContent":["import { StyleObjectIdentifier, StyleObjectRules } from \"@tamagui/helpers\";\nimport { finalizeTransformAccumulator } from \"@tamagui/style-grammar/runtime\";\nimport { buildAtomicSlotCSS, probeRawSlotIdentity, storeRawSlotIdentity } from \"./getCSSStylesAtomic\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst canGenerateCSS = !process.env.TAMAGUI_DID_OUTPUT_CSS;\nfunction requestBorderStyleDefault(state, property, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount) {\n\tif (!canGenerateCSS || !state.flatShouldDoClasses) return;\n\tif (state.styleProps.noNormalize === false) return;\n\tconst target = borderStyleDefaults[property];\n\tif (!target) return;\n\tconst requests = state.flatBorderDefaultRequests ||= [];\n\tfor (let index = 0; index < requests.length; index++) if (requests[index].property === target && requests[index].identity === identity) return;\n\tlet wrappers;\n\tif (wrapperSource && wrapperCount) {\n\t\twrappers = new Array(wrapperCount);\n\t\tfor (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];\n\t}\n\trequests.push({\n\t\tproperty: target,\n\t\tvalue: \"solid\",\n\t\tcondition,\n\t\tidentity,\n\t\tselector,\n\t\twrappers\n\t});\n}\nfunction directStyleSignature(property, value, conditionKey = \"\") {\n\treturn `\u001f${property}\u001f${conditionKey}\u001e${String(value)}`;\n}\nconst borderStyleDefaults = {\n\tborderWidth: \"borderStyle\",\n\tborderTopWidth: \"borderTopStyle\",\n\tborderRightWidth: \"borderRightStyle\",\n\tborderBottomWidth: \"borderBottomStyle\",\n\tborderLeftWidth: \"borderLeftStyle\"\n};\nfunction registerSlot(state, atomicKey, entries) {\n\tconst ordered = [];\n\tfor (let index = 0; index < entries.length; index++) {\n\t\tconst entry = entries[index];\n\t\tlet value = entry.value;\n\t\tif (entry.property === \"transform\" && Array.isArray(value)) value = transformsToString(value);\n\t\tentry.value = normalizeValueWithProperty(value, entry.property);\n\t\tconst precedence = entry.condition ? Math.floor(entry.condition / 256) : -1;\n\t\tlet insertAt = ordered.length;\n\t\twhile (insertAt > 0) {\n\t\t\tconst before = ordered[insertAt - 1];\n\t\t\tif ((before.condition ? Math.floor(before.condition / 256) : -1) <= precedence) break;\n\t\t\tinsertAt--;\n\t\t}\n\t\tordered.splice(insertAt, 0, entry);\n\t}\n\tlet signature = \"\";\n\tfor (let index = 0; index < ordered.length; index++) {\n\t\tconst entry = ordered[index];\n\t\tsignature += directStyleSignature(entry.property, entry.value, entry.identity);\n\t}\n\tconst built = buildAtomicSlotCSS(atomicKey, ordered, signature);\n\tif (!built) return;\n\tconst styleObject = built.styleObject ||= [\n\t\tatomicKey,\n\t\tbuilt.value,\n\t\tbuilt.identifier,\n\t\tvoid 0,\n\t\tbuilt.rules\n\t];\n\t(state.flatAtomics ||= {})[atomicKey] = styleObject;\n\tstate.classNames[atomicKey] = built.identifier;\n}\nconst streamEntry = {\n\tproperty: \"\",\n\tvalue: \"\",\n\tcondition: 0,\n\tidentity: \"\",\n\tselector: \"\",\n\twrappers: void 0\n};\nconst streamSlot = [streamEntry];\nfunction appendSlotEntry(list, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {\n\tfor (let index = 0; index < list.length; index++) if (list[index].identity === identity) {\n\t\tif (weak) return;\n\t\tlist[index].value = value;\n\t\tlist[index].condition = condition;\n\t\tlist[index].original = original;\n\t\treturn;\n\t}\n\tlet wrappers;\n\tif (wrapperSource && wrapperCount) {\n\t\twrappers = new Array(wrapperCount);\n\t\tfor (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];\n\t}\n\tlist.push({\n\t\tproperty,\n\t\tvalue,\n\t\tcondition,\n\t\tidentity,\n\t\tselector,\n\t\twrappers,\n\t\toriginal\n\t});\n}\nfunction streamAtomic(state, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {\n\tif (!canGenerateCSS) return;\n\tconst direct = state;\n\tconst slots = direct.flatSlots;\n\tif (slots) {\n\t\tconst slot = slots[property];\n\t\tif (slot) {\n\t\t\tappendSlotEntry(slot, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\t\treturn;\n\t\t}\n\t}\n\tconst singleEntries = direct.flatSingleEntries;\n\tconst singleEntry = singleEntries ? singleEntries[property] : void 0;\n\tconst atomics = direct.flatAtomics;\n\tconst streamed = atomics ? atomics[property] : void 0;\n\tif (singleEntry) {\n\t\tif (singleEntry.identity !== identity) {\n\t\t\tdelete singleEntries[property];\n\t\t\tappendSlotEntry((direct.flatSlots ||= {})[property] = [singleEntry], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\t\treturn;\n\t\t}\n\t\tif (weak) return;\n\t} else if (streamed !== void 0) {\n\t\tif (identity) {\n\t\t\tappendSlotEntry((direct.flatSlots ||= {})[property] = [{\n\t\t\t\tproperty,\n\t\t\t\tvalue: streamed[1],\n\t\t\t\tcondition: 0,\n\t\t\t\tidentity: \"\",\n\t\t\t\tselector: \"\",\n\t\t\t\twrappers: void 0\n\t\t\t}], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\t\treturn;\n\t\t}\n\t\tif (weak) return;\n\t} else if (weak && state.classNames[property] !== void 0) return;\n\telse if (direct.flatExpectMulti === true || direct.flatDeferCSS === true) {\n\t\tappendSlotEntry((direct.flatSlots ||= {})[property] = [], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\treturn;\n\t}\n\tif (!identity) {\n\t\tconst memo = probeRawSlotIdentity(property, value);\n\t\tif (memo) {\n\t\t\tconst styleObject2 = memo.styleObject ||= [\n\t\t\t\tproperty,\n\t\t\t\tmemo.value,\n\t\t\t\tmemo.identifier,\n\t\t\t\tvoid 0,\n\t\t\t\tmemo.rules\n\t\t\t];\n\t\t\t(direct.flatAtomics ||= {})[property] = styleObject2;\n\t\t\tstate.classNames[property] = memo.identifier;\n\t\t\treturn;\n\t\t}\n\t}\n\tconst rawValue = value;\n\tif (property === \"transform\" && Array.isArray(value)) value = transformsToString(value);\n\tconst normalized = normalizeValueWithProperty(value, property);\n\tstreamEntry.property = property;\n\tstreamEntry.value = normalized;\n\tstreamEntry.condition = condition;\n\tstreamEntry.identity = identity;\n\tstreamEntry.selector = selector;\n\tlet wrappers;\n\tif (wrapperSource && wrapperCount) {\n\t\twrappers = new Array(wrapperCount);\n\t\tfor (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];\n\t}\n\tstreamEntry.wrappers = wrappers;\n\tconst built = buildAtomicSlotCSS(property, streamSlot, directStyleSignature(property, normalized, identity));\n\tstreamEntry.wrappers = void 0;\n\tstreamEntry.value = \"\";\n\tif (!built) return;\n\tif (!identity) storeRawSlotIdentity(property, rawValue, built);\n\tif (identity) (direct.flatSingleEntries ||= {})[property] = {\n\t\tproperty,\n\t\tvalue: normalized,\n\t\tcondition,\n\t\tidentity,\n\t\tselector,\n\t\twrappers\n\t};\n\tconst styleObject = built.styleObject ||= [\n\t\tproperty,\n\t\tbuilt.value,\n\t\tbuilt.identifier,\n\t\tvoid 0,\n\t\tbuilt.rules\n\t];\n\t(direct.flatAtomics ||= {})[property] = styleObject;\n\tstate.classNames[property] = built.identifier;\n}\nfunction completeStreamingCSS(state) {\n\tif (!canGenerateCSS) return;\n\tconst direct = state;\n\tconst cssMode = !!state.flatShouldDoClasses;\n\tconst singleEntries = direct.flatSingleEntries;\n\tconst requests = direct.flatBorderDefaultRequests;\n\tif (cssMode && requests) {\n\t\tdirect.flatBorderDefaultRequests = void 0;\n\t\tfor (let index = 0; index < requests.length; index++) {\n\t\t\tconst request = requests[index];\n\t\t\tconst target = request.property;\n\t\t\tconst targetSingle = singleEntries ? singleEntries[target] : void 0;\n\t\t\tif (targetSingle) {\n\t\t\t\tif (targetSingle.identity === request.identity) continue;\n\t\t\t\tdelete singleEntries[target];\n\t\t\t\t((direct.flatSlots ||= {})[target] = [targetSingle]).push(request);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst slot = direct.flatSlots ? direct.flatSlots[target] : void 0;\n\t\t\tif (slot) {\n\t\t\t\tlet covered = false;\n\t\t\t\tfor (let t = 0; t < slot.length; t++) if (!slot[t].condition || slot[t].identity === request.identity) {\n\t\t\t\t\tcovered = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (!covered) slot.push(request);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (direct.flatAtomics && direct.flatAtomics[target] !== void 0) continue;\n\t\t\tif (state.classNames[target] !== void 0) continue;\n\t\t\tregisterSlot(direct, target, [request]);\n\t\t}\n\t}\n\tif (cssMode && state.transformAccumulator) {\n\t\tconst transform = finalizeTransformAccumulator(state.transformAccumulator);\n\t\tstate.transformAccumulator = void 0;\n\t\tconst accumulated = {\n\t\t\tproperty: \"transform\",\n\t\t\tvalue: Array.isArray(transform) ? transformsToString(transform) : transform,\n\t\t\tcondition: 0,\n\t\t\tidentity: \"\",\n\t\t\tselector: \"\",\n\t\t\twrappers: void 0\n\t\t};\n\t\tconst slot = direct.flatSlots ? direct.flatSlots.transform : void 0;\n\t\tconst transformSingle = singleEntries ? singleEntries.transform : void 0;\n\t\tif (slot) slot.unshift(accumulated);\n\t\telse if (transformSingle) {\n\t\t\tdelete singleEntries.transform;\n\t\t\t(direct.flatSlots ||= {}).transform = [accumulated, transformSingle];\n\t\t} else (direct.flatSlots ||= {}).transform = [accumulated];\n\t}\n\tconst slots = direct.flatSlots;\n\tif (slots) {\n\t\tdirect.flatSlots = void 0;\n\t\tfor (const property in slots) registerSlot(direct, property, slots[property]);\n\t}\n\tconst transitions = direct.flatTransitions;\n\tif (transitions) {\n\t\tdirect.flatTransitions = void 0;\n\t\tregisterSlot(direct, \"transition\", transitions);\n\t}\n}\nfunction flushDirectStyles(state, clear = false) {\n\tif (!canGenerateCSS) {\n\t\tif (clear) state.flatAtomics = void 0;\n\t\treturn;\n\t}\n\tconst direct = state;\n\tconst atomics = direct.flatAtomics;\n\tif (!atomics) return;\n\tfor (const property in atomics) {\n\t\tconst styleObject = atomics[property];\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tconst rules = styleObject[StyleObjectRules].slice();\n\t\t\tstyleObject[StyleObjectRules] = rules;\n\t\t\tupdateRules(identifier, rules);\n\t\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n\tif (clear) direct.flatAtomics = void 0;\n}\nconst compositionEntry = {\n\tproperty: \"\",\n\tvalue: \"\",\n\tcondition: 0,\n\tidentity: \"\",\n\tselector: \"\",\n\twrappers: void 0\n};\nfunction addComposition(state, property) {\n\tif (!canGenerateCSS || state.classNames[property]) return;\n\tconst value = property === \"translate\" ? \"var(--t-x, 0px) var(--t-y, 0px)\" : \"var(--t-scale-x, 1) var(--t-scale-y, 1)\";\n\tconst defaults = property === \"translate\" ? \"--t-x:0px;--t-y:0px\" : \"--t-scale-x:1;--t-scale-y:1\";\n\tcompositionEntry.property = property;\n\tcompositionEntry.value = value;\n\tconst built = buildAtomicSlotCSS(property, [compositionEntry], directStyleSignature(property, value, \"\"));\n\tif (!built) return;\n\tconst identifier = built.identifier;\n\tconst rules = built.rules.slice();\n\trules.unshift(`:where(.${identifier}){${defaults}}`);\n\tif (shouldInsertStyleRules(identifier)) {\n\t\tupdateRules(identifier, rules);\n\t\tstate.flatRulesToInsert[identifier] = [\n\t\t\tproperty,\n\t\t\tbuilt.value,\n\t\t\tidentifier,\n\t\t\tvoid 0,\n\t\t\trules\n\t\t];\n\t}\n\tstate.classNames[property] = identifier;\n}\nfunction clearFrameAtomic(state, atomicKey) {\n\tconst direct = state;\n\tif (direct.flatAtomics) delete direct.flatAtomics[atomicKey];\n\tif (direct.flatSingleEntries) delete direct.flatSingleEntries[atomicKey];\n\tif (direct.flatSlots) delete direct.flatSlots[atomicKey];\n\tif (atomicKey === \"transition\") direct.flatTransitions = void 0;\n}\n\nexport { addComposition, canGenerateCSS, clearFrameAtomic, completeStreamingCSS, directStyleSignature, flushDirectStyles, requestBorderStyleDefault, streamAtomic };"],"mappings":";;;;;;;;AAOA,MAAM,iBAAiB,CAAC,QAAQ,IAAI;AACpC,SAAS,0BAA0B,OAAO,UAAU,WAAW,UAAU,UAAU,eAAe,cAAc,cAAc;CAC7H,IAAI,CAAC,kBAAkB,CAAC,MAAM,qBAAqB;CACnD,IAAI,MAAM,WAAW,gBAAgB,OAAO;CAC5C,MAAM,SAAS,oBAAoB;CACnC,IAAI,CAAC,QAAQ;CACb,MAAM,WAAW,MAAM,8BAA8B,CAAC;CACtD,KAAK,IAAI,QAAQ,GAAG,QAAQ,SAAS,QAAQ,SAAS,IAAI,SAAS,MAAM,CAAC,aAAa,UAAU,SAAS,MAAM,CAAC,aAAa,UAAU;CACxI,IAAI;CACJ,IAAI,iBAAiB,cAAc;EAClC,WAAW,IAAI,MAAM,YAAY;EACjC,KAAK,IAAI,QAAQ,GAAG,QAAQ,cAAc,SAAS,SAAS,SAAS,cAAc,eAAe;CACnG;CACA,SAAS,KAAK;EACb,UAAU;EACV,OAAO;EACP;EACA;EACA;EACA;CACD,CAAC;AACF;AACA,SAAS,qBAAqB,UAAU,OAAO,eAAe,IAAI;CACjE,OAAO,IAAI,SAAS,GAAG,aAAa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vC,MAAM,QAAQ,YAAY,iBAAiB,CAAC,MAAM;GAClD,YAAY,oBAAoB;GAChC,YAAY,YAAY,KAAK;GAC7B,MAAM,kBAAkB,cAAc;EACvC;CACD;CACA,IAAI,OAAO,OAAO,cAAc,KAAK;AACtC;AACA,MAAM,mBAAmB;CACxB,UAAU;CACV,OAAO;CACP,WAAW;CACX,UAAU;CACV,UAAU;CACV,UAAU,KAAK;AAChB;AACA,SAAS,eAAe,OAAO,UAAU;CACxC,IAAI,CAAC,kBAAkB,MAAM,WAAW,WAAW;CACnD,MAAM,QAAQ,aAAa,cAAc,oCAAoC;CAC7E,MAAM,WAAW,aAAa,cAAc,wBAAwB;CACpE,iBAAiB,WAAW;CAC5B,iBAAiB,QAAQ;CACzB,MAAM,QAAQ,mBAAmB,UAAU,CAAC,gBAAgB,GAAG,qBAAqB,UAAU,OAAO,EAAE,CAAC;CACxG,IAAI,CAAC,OAAO;CACZ,MAAM,aAAa,MAAM;CACzB,MAAM,QAAQ,MAAM,MAAM,MAAM;CAChC,MAAM,QAAQ,WAAW,WAAW,IAAI,SAAS,EAAE;CACnD,IAAI,uBAAuB,UAAU,GAAG;EACvC,YAAY,YAAY,KAAK;EAC7B,MAAM,kBAAkB,cAAc;GACrC;GACA,MAAM;GACN;GACA,KAAK;GACL;EACD;CACD;CACA,MAAM,WAAW,YAAY;AAC9B;AACA,SAAS,iBAAiB,OAAO,WAAW;CAC3C,MAAM,SAAS;CACf,IAAI,OAAO,aAAa,OAAO,OAAO,YAAY;CAClD,IAAI,OAAO,mBAAmB,OAAO,OAAO,kBAAkB;CAC9D,IAAI,OAAO,WAAW,OAAO,OAAO,UAAU;CAC9C,IAAI,cAAc,cAAc,OAAO,kBAAkB,KAAK;AAC/D"}
1
+ {"version":3,"file":"directStyleCSS.js","names":[],"sources":["esm/helpers/directStyleCSS.js"],"sourcesContent":["import { StyleObjectIdentifier, StyleObjectRules } from \"@tamagui/helpers\";\nimport { finalizeTransformAccumulator } from \"@tamagui/style-grammar/runtime\";\nimport { buildAtomicSlotCSS, probeRawSlotIdentity, storeRawSlotIdentity } from \"./getCSSStylesAtomic\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst canGenerateCSS = !process.env.TAMAGUI_DID_OUTPUT_CSS;\nfunction requestBorderStyleDefault(state, property, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount) {\n\tif (!canGenerateCSS || !state.flatShouldDoClasses) return;\n\tif (state.styleProps.noNormalize === false) return;\n\tconst target = borderStyleDefaults[property];\n\tif (!target) return;\n\tconst requests = state.flatBorderDefaultRequests ||= [];\n\tfor (let index = 0; index < requests.length; index++) if (requests[index][0] === target && requests[index][3] === identity) return;\n\trequests.push([\n\t\ttarget,\n\t\t\"solid\",\n\t\tcondition,\n\t\tidentity,\n\t\tselector,\n\t\twrapperSource,\n\t\twrapperStart,\n\t\twrapperCount\n\t]);\n}\nfunction directStyleSignature(property, value, conditionKey = \"\") {\n\treturn `\u001f${property}\u001f${conditionKey}\u001e${String(value)}`;\n}\nconst borderStyleDefaults = {\n\tborderWidth: \"borderStyle\",\n\tborderTopWidth: \"borderTopStyle\",\n\tborderRightWidth: \"borderRightStyle\",\n\tborderBottomWidth: \"borderBottomStyle\",\n\tborderLeftWidth: \"borderLeftStyle\"\n};\nfunction registerSlot(state, atomicKey, entries) {\n\tconst ordered = [];\n\tfor (let index = 0; index < entries.length; index++) {\n\t\tconst entry = entries[index];\n\t\tlet value = entry[1];\n\t\tif (entry[0] === \"transform\" && Array.isArray(value)) value = transformsToString(value);\n\t\tentry[1] = normalizeValueWithProperty(value, entry[0]);\n\t\tconst precedence = entry[2] ? Math.floor(entry[2] / 256) : -1;\n\t\tlet insertAt = ordered.length;\n\t\twhile (insertAt > 0) {\n\t\t\tconst before = ordered[insertAt - 1];\n\t\t\tif ((before[2] ? Math.floor(before[2] / 256) : -1) <= precedence) break;\n\t\t\tinsertAt--;\n\t\t}\n\t\tordered.splice(insertAt, 0, entry);\n\t}\n\tlet signature = \"\";\n\tfor (let index = 0; index < ordered.length; index++) {\n\t\tconst entry = ordered[index];\n\t\tsignature += directStyleSignature(entry[0], entry[1], entry[3]);\n\t}\n\tconst built = buildAtomicSlotCSS(atomicKey, ordered, signature);\n\tif (!built) return;\n\tconst styleObject = built[3] ||= [\n\t\tatomicKey,\n\t\tbuilt[2],\n\t\tbuilt[0],\n\t\tvoid 0,\n\t\tbuilt[1]\n\t];\n\t(state.flatAtomics ||= {})[atomicKey] = styleObject;\n\tstate.classNames[atomicKey] = built[0];\n}\nconst scratchEntry = [\n\t\"\",\n\t\"\",\n\t0,\n\t\"\",\n\t\"\",\n\tvoid 0,\n\t0,\n\t0\n];\nconst singleSlot = [scratchEntry];\nfunction appendSlotEntry(list, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {\n\tfor (let index = 0; index < list.length; index++) if (list[index][3] === identity) {\n\t\tif (weak) return;\n\t\tlist[index][1] = value;\n\t\tlist[index][2] = condition;\n\t\tlist[index][8] = original;\n\t\treturn;\n\t}\n\tlist.push([\n\t\tproperty,\n\t\tvalue,\n\t\tcondition,\n\t\tidentity,\n\t\tselector,\n\t\twrapperSource,\n\t\twrapperStart,\n\t\twrapperCount,\n\t\toriginal\n\t]);\n}\nfunction streamAtomic(state, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {\n\tif (!canGenerateCSS) return;\n\tconst direct = state;\n\tconst slots = direct.flatSlots;\n\tif (slots) {\n\t\tconst slot = slots[property];\n\t\tif (slot) {\n\t\t\tappendSlotEntry(slot, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\t\treturn;\n\t\t}\n\t}\n\tconst singleEntries = direct.flatSingleEntries;\n\tconst singleEntry = singleEntries ? singleEntries[property] : void 0;\n\tconst atomics = direct.flatAtomics;\n\tconst streamed = atomics ? atomics[property] : void 0;\n\tif (singleEntry) {\n\t\tif (singleEntry[3] !== identity) {\n\t\t\tdelete singleEntries[property];\n\t\t\tappendSlotEntry((direct.flatSlots ||= {})[property] = [singleEntry], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\t\treturn;\n\t\t}\n\t\tif (weak) return;\n\t} else if (streamed !== void 0) {\n\t\tif (identity) {\n\t\t\tappendSlotEntry((direct.flatSlots ||= {})[property] = [[\n\t\t\t\tproperty,\n\t\t\t\tstreamed[1],\n\t\t\t\t0,\n\t\t\t\t\"\",\n\t\t\t\t\"\",\n\t\t\t\tvoid 0,\n\t\t\t\t0,\n\t\t\t\t0\n\t\t\t]], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\t\treturn;\n\t\t}\n\t\tif (weak) return;\n\t} else if (weak && state.classNames[property] !== void 0) return;\n\telse if (direct.flatExpectMulti === true || direct.flatDeferCSS === true) {\n\t\tappendSlotEntry((direct.flatSlots ||= {})[property] = [], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);\n\t\treturn;\n\t}\n\tif (!identity) {\n\t\tconst memo = probeRawSlotIdentity(property, value);\n\t\tif (memo) {\n\t\t\tconst styleObject2 = memo[3] ||= [\n\t\t\t\tproperty,\n\t\t\t\tmemo[2],\n\t\t\t\tmemo[0],\n\t\t\t\tvoid 0,\n\t\t\t\tmemo[1]\n\t\t\t];\n\t\t\t(direct.flatAtomics ||= {})[property] = styleObject2;\n\t\t\tstate.classNames[property] = memo[0];\n\t\t\treturn;\n\t\t}\n\t}\n\tconst rawValue = value;\n\tif (property === \"transform\" && Array.isArray(value)) value = transformsToString(value);\n\tconst normalized = normalizeValueWithProperty(value, property);\n\tscratchEntry[0] = property;\n\tscratchEntry[1] = normalized;\n\tscratchEntry[2] = condition;\n\tscratchEntry[3] = identity;\n\tscratchEntry[4] = selector;\n\tscratchEntry[5] = wrapperSource;\n\tscratchEntry[6] = wrapperStart;\n\tscratchEntry[7] = wrapperCount;\n\tconst built = buildAtomicSlotCSS(property, singleSlot, directStyleSignature(property, normalized, identity));\n\tscratchEntry[5] = void 0;\n\tscratchEntry[1] = \"\";\n\tif (!built) return;\n\tif (!identity) storeRawSlotIdentity(property, rawValue, built);\n\tif (identity) (direct.flatSingleEntries ||= {})[property] = [\n\t\tproperty,\n\t\tnormalized,\n\t\tcondition,\n\t\tidentity,\n\t\tselector,\n\t\twrapperSource,\n\t\twrapperStart,\n\t\twrapperCount\n\t];\n\tconst styleObject = built[3] ||= [\n\t\tproperty,\n\t\tbuilt[2],\n\t\tbuilt[0],\n\t\tvoid 0,\n\t\tbuilt[1]\n\t];\n\t(direct.flatAtomics ||= {})[property] = styleObject;\n\tstate.classNames[property] = built[0];\n}\nfunction completeStreamingCSS(state) {\n\tif (!canGenerateCSS) return;\n\tconst direct = state;\n\tconst cssMode = !!state.flatShouldDoClasses;\n\tconst singleEntries = direct.flatSingleEntries;\n\tconst requests = direct.flatBorderDefaultRequests;\n\tif (cssMode && requests) {\n\t\tdirect.flatBorderDefaultRequests = void 0;\n\t\tfor (let index = 0; index < requests.length; index++) {\n\t\t\tconst request = requests[index];\n\t\t\tconst target = request[0];\n\t\t\tconst targetSingle = singleEntries ? singleEntries[target] : void 0;\n\t\t\tif (targetSingle) {\n\t\t\t\tif (targetSingle[3] === request[3]) continue;\n\t\t\t\tdelete singleEntries[target];\n\t\t\t\t((direct.flatSlots ||= {})[target] = [targetSingle]).push(request);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst slot = direct.flatSlots ? direct.flatSlots[target] : void 0;\n\t\t\tif (slot) {\n\t\t\t\tlet covered = false;\n\t\t\t\tfor (let t = 0; t < slot.length; t++) if (!slot[t][2] || slot[t][3] === request[3]) {\n\t\t\t\t\tcovered = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (!covered) slot.push(request);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (direct.flatAtomics && direct.flatAtomics[target] !== void 0) continue;\n\t\t\tif (state.classNames[target] !== void 0) continue;\n\t\t\tregisterSlot(direct, target, [request]);\n\t\t}\n\t}\n\tif (cssMode && state.transformAccumulator) {\n\t\tconst transform = finalizeTransformAccumulator(state.transformAccumulator);\n\t\tstate.transformAccumulator = void 0;\n\t\tconst accumulated = [\n\t\t\t\"transform\",\n\t\t\tArray.isArray(transform) ? transformsToString(transform) : transform,\n\t\t\t0,\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\tvoid 0,\n\t\t\t0,\n\t\t\t0\n\t\t];\n\t\tconst slot = direct.flatSlots ? direct.flatSlots.transform : void 0;\n\t\tconst transformSingle = singleEntries ? singleEntries.transform : void 0;\n\t\tif (slot) slot.unshift(accumulated);\n\t\telse if (transformSingle) {\n\t\t\tdelete singleEntries.transform;\n\t\t\t(direct.flatSlots ||= {}).transform = [accumulated, transformSingle];\n\t\t} else (direct.flatSlots ||= {}).transform = [accumulated];\n\t}\n\tconst slots = direct.flatSlots;\n\tif (slots) {\n\t\tdirect.flatSlots = void 0;\n\t\tfor (const property in slots) registerSlot(direct, property, slots[property]);\n\t}\n\tconst transitions = direct.flatTransitions;\n\tif (transitions) {\n\t\tdirect.flatTransitions = void 0;\n\t\tregisterSlot(direct, \"transition\", transitions);\n\t}\n}\nfunction flushDirectStyles(state, clear = false) {\n\tif (!canGenerateCSS) {\n\t\tif (clear) state.flatAtomics = void 0;\n\t\treturn;\n\t}\n\tconst direct = state;\n\tconst atomics = direct.flatAtomics;\n\tif (!atomics) return;\n\tfor (const property in atomics) {\n\t\tconst styleObject = atomics[property];\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tconst rules = styleObject[StyleObjectRules].slice();\n\t\t\tstyleObject[StyleObjectRules] = rules;\n\t\t\tupdateRules(identifier, rules);\n\t\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n\tif (clear) direct.flatAtomics = void 0;\n}\nfunction addComposition(state, property) {\n\tif (!canGenerateCSS || state.classNames[property]) return;\n\tconst value = property === \"translate\" ? \"var(--t-x, 0px) var(--t-y, 0px)\" : \"var(--t-scale-x, 1) var(--t-scale-y, 1)\";\n\tconst defaults = property === \"translate\" ? \"--t-x:0px;--t-y:0px\" : \"--t-scale-x:1;--t-scale-y:1\";\n\tscratchEntry[0] = property;\n\tscratchEntry[1] = value;\n\tscratchEntry[2] = 0;\n\tscratchEntry[3] = \"\";\n\tscratchEntry[4] = \"\";\n\tscratchEntry[5] = void 0;\n\tscratchEntry[6] = 0;\n\tscratchEntry[7] = 0;\n\tconst built = buildAtomicSlotCSS(property, singleSlot, directStyleSignature(property, value, \"\"));\n\tif (!built) return;\n\tconst identifier = built[0];\n\tconst rules = built[1].slice();\n\trules.unshift(`:where(.${identifier}){${defaults}}`);\n\tif (shouldInsertStyleRules(identifier)) {\n\t\tupdateRules(identifier, rules);\n\t\tstate.flatRulesToInsert[identifier] = [\n\t\t\tproperty,\n\t\t\tbuilt[2],\n\t\t\tidentifier,\n\t\t\tvoid 0,\n\t\t\trules\n\t\t];\n\t}\n\tstate.classNames[property] = identifier;\n}\nfunction clearFrameAtomic(state, atomicKey) {\n\tconst direct = state;\n\tif (direct.flatAtomics) delete direct.flatAtomics[atomicKey];\n\tif (direct.flatSingleEntries) delete direct.flatSingleEntries[atomicKey];\n\tif (direct.flatSlots) delete direct.flatSlots[atomicKey];\n\tif (atomicKey === \"transition\") direct.flatTransitions = void 0;\n}\n\nexport { addComposition, canGenerateCSS, clearFrameAtomic, completeStreamingCSS, directStyleSignature, flushDirectStyles, requestBorderStyleDefault, streamAtomic };"],"mappings":";;;;;;;;AAOA,MAAM,iBAAiB,CAAC,QAAQ,IAAI;AACpC,SAAS,0BAA0B,OAAO,UAAU,WAAW,UAAU,UAAU,eAAe,cAAc,cAAc;CAC7H,IAAI,CAAC,kBAAkB,CAAC,MAAM,qBAAqB;CACnD,IAAI,MAAM,WAAW,gBAAgB,OAAO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,uBAAuB,UAAU,GAAG;GACvC,MAAM,QAAQ,YAAY,iBAAiB,CAAC,MAAM;GAClD,YAAY,oBAAoB;GAChC,YAAY,YAAY,KAAK;GAC7B,MAAM,kBAAkB,cAAc;EACvC;CACD;CACA,IAAI,OAAO,OAAO,cAAc,KAAK;AACtC;AACA,SAAS,eAAe,OAAO,UAAU;CACxC,IAAI,CAAC,kBAAkB,MAAM,WAAW,WAAW;CACnD,MAAM,QAAQ,aAAa,cAAc,oCAAoC;CAC7E,MAAM,WAAW,aAAa,cAAc,wBAAwB;CACpE,aAAa,KAAK;CAClB,aAAa,KAAK;CAClB,aAAa,KAAK;CAClB,aAAa,KAAK;CAClB,aAAa,KAAK;CAClB,aAAa,KAAK,KAAK;CACvB,aAAa,KAAK;CAClB,aAAa,KAAK;CAClB,MAAM,QAAQ,mBAAmB,UAAU,YAAY,qBAAqB,UAAU,OAAO,EAAE,CAAC;CAChG,IAAI,CAAC,OAAO;CACZ,MAAM,aAAa,MAAM;CACzB,MAAM,QAAQ,MAAM,EAAE,CAAC,MAAM;CAC7B,MAAM,QAAQ,WAAW,WAAW,IAAI,SAAS,EAAE;CACnD,IAAI,uBAAuB,UAAU,GAAG;EACvC,YAAY,YAAY,KAAK;EAC7B,MAAM,kBAAkB,cAAc;GACrC;GACA,MAAM;GACN;GACA,KAAK;GACL;EACD;CACD;CACA,MAAM,WAAW,YAAY;AAC9B;AACA,SAAS,iBAAiB,OAAO,WAAW;CAC3C,MAAM,SAAS;CACf,IAAI,OAAO,aAAa,OAAO,OAAO,YAAY;CAClD,IAAI,OAAO,mBAAmB,OAAO,OAAO,kBAAkB;CAC9D,IAAI,OAAO,WAAW,OAAO,OAAO,UAAU;CAC9C,IAAI,cAAc,cAAc,OAAO,kBAAkB,KAAK;AAC/D"}
@@ -20,10 +20,8 @@ function formatDiagnosticValue(value, depth = 0, seen = /* @__PURE__ */ new Weak
20
20
  }
21
21
  const keys = [];
22
22
  for (const key in value) {
23
- if (Object.prototype.hasOwnProperty.call(value, key)) {
24
- keys.push(key);
25
- if (keys.length === 6) break;
26
- }
23
+ keys.push(key);
24
+ if (keys.length === 6) break;
27
25
  }
28
26
  const hasMore = keys.length === 6;
29
27
  if (hasMore) keys.pop();
@@ -1 +1 @@
1
- {"version":3,"file":"formatDiagnostic.js","names":[],"sources":["esm/helpers/formatDiagnostic.js"],"sourcesContent":["const maxDiagnosticValueLength = 160;\nfunction formatDiagnosticValue(value, depth = 0, seen = /* @__PURE__ */ new WeakSet()) {\n if (typeof value === \"string\") {\n const output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : value;\n return JSON.stringify(output);\n }\n if (value == null || typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n if (typeof value === \"bigint\") return `${value}n`;\n if (typeof value === \"function\") return `[Function ${value.name || \"anonymous\"}]`;\n if (typeof value !== \"object\") return String(value);\n if (seen.has(value)) return \"[Circular]\";\n if (depth === 2) return Array.isArray(value) ? \"[Array]\" : \"[Object]\";\n seen.add(value);\n if (Array.isArray(value)) {\n const items2 = value.slice(0, 5).map((item) => formatDiagnosticValue(item, depth + 1, seen));\n if (value.length > 5) items2.push(`\\u2026 ${value.length - 5} more`);\n return `[${items2.join(\", \")}]`;\n }\n const keys = [];\n for (const key in value) {\n if (Object.prototype.hasOwnProperty.call(value, key)) {\n keys.push(key);\n if (keys.length === 6) break;\n }\n }\n const hasMore = keys.length === 6;\n if (hasMore) keys.pop();\n const items = keys.map((key) => {\n try {\n return `${key}: ${formatDiagnosticValue(value[key], depth + 1, seen)}`;\n } catch {\n return `${key}: [Unavailable]`;\n }\n });\n if (hasMore) items.push(\"\\u2026 more\");\n return `{ ${items.join(\", \")} }`;\n}\nfunction formatDiagnostic(code, component, message, action, prop, received) {\n if (process.env.NODE_ENV === \"production\") {\n return `${code}: ${message}`;\n }\n const formattedValue = prop ? formatDiagnosticValue(received) : \"\";\n const boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : formattedValue;\n const value = prop ? ` Received ${prop}=${boundedValue}.` : \"\";\n return `${code} ${component}: ${message}.${value} ${action}`;\n}\nexport {\n formatDiagnostic\n};\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":";AAAA,MAAM,2BAA2B;AACjC,SAAS,sBAAsB,OAAO,QAAQ,GAAG,uBAAuB,IAAI,QAAQ,GAAG;CACrF,IAAI,OAAO,UAAU,UAAU;EAC7B,MAAM,SAAS,MAAM,SAAS,2BAA2B,GAAG,MAAM,MAAM,GAAG,2BAA2B,CAAC,EAAE,UAAU;EACnH,OAAO,KAAK,UAAU,MAAM;CAC9B;CACA,IAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW;EAC5E,OAAO,OAAO,KAAK;CACrB;CACA,IAAI,OAAO,UAAU,UAAU,OAAO,GAAG,MAAM;CAC/C,IAAI,OAAO,UAAU,YAAY,OAAO,aAAa,MAAM,QAAQ,YAAY;CAC/E,IAAI,OAAO,UAAU,UAAU,OAAO,OAAO,KAAK;CAClD,IAAI,KAAK,IAAI,KAAK,GAAG,OAAO;CAC5B,IAAI,UAAU,GAAG,OAAO,MAAM,QAAQ,KAAK,IAAI,YAAY;CAC3D,KAAK,IAAI,KAAK;CACd,IAAI,MAAM,QAAQ,KAAK,GAAG;EACxB,MAAM,SAAS,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,sBAAsB,MAAM,QAAQ,GAAG,IAAI,CAAC;EAC3F,IAAI,MAAM,SAAS,GAAG,OAAO,KAAK,UAAU,MAAM,SAAS,EAAE,MAAM;EACnE,OAAO,IAAI,OAAO,KAAK,IAAI,EAAE;CAC/B;CACA,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,OAAO,OAAO;EACvB,IAAI,OAAO,UAAU,eAAe,KAAK,OAAO,GAAG,GAAG;GACpD,KAAK,KAAK,GAAG;GACb,IAAI,KAAK,WAAW,GAAG;EACzB;CACF;CACA,MAAM,UAAU,KAAK,WAAW;CAChC,IAAI,SAAS,KAAK,IAAI;CACtB,MAAM,QAAQ,KAAK,KAAK,QAAQ;EAC9B,IAAI;GACF,OAAO,GAAG,IAAI,IAAI,sBAAsB,MAAM,MAAM,QAAQ,GAAG,IAAI;EACrE,QAAQ;GACN,OAAO,GAAG,IAAI;EAChB;CACF,CAAC;CACD,IAAI,SAAS,MAAM,KAAK,QAAa;CACrC,OAAO,KAAK,MAAM,KAAK,IAAI,EAAE;AAC/B;AACA,SAAS,iBAAiB,MAAM,WAAW,SAAS,QAAQ,MAAM,UAAU;CAC1E,IAAI,QAAQ,IAAI,aAAa,cAAc;EACzC,OAAO,GAAG,KAAK,IAAI;CACrB;CACA,MAAM,iBAAiB,OAAO,sBAAsB,QAAQ,IAAI;CAChE,MAAM,eAAe,eAAe,SAAS,2BAA2B,GAAG,eAAe,MAAM,GAAG,2BAA2B,CAAC,EAAE,UAAU;CAC3I,MAAM,QAAQ,OAAO,aAAa,KAAK,GAAG,aAAa,KAAK;CAC5D,OAAO,GAAG,KAAK,GAAG,UAAU,IAAI,QAAQ,GAAG,MAAM,GAAG;AACtD"}
1
+ {"version":3,"file":"formatDiagnostic.js","names":[],"sources":["esm/helpers/formatDiagnostic.js"],"sourcesContent":["const maxDiagnosticValueLength = 160;\nfunction formatDiagnosticValue(value, depth = 0, seen = /* @__PURE__ */ new WeakSet()) {\n if (typeof value === \"string\") {\n const output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : value;\n return JSON.stringify(output);\n }\n if (value == null || typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n if (typeof value === \"bigint\") return `${value}n`;\n if (typeof value === \"function\") return `[Function ${value.name || \"anonymous\"}]`;\n if (typeof value !== \"object\") return String(value);\n if (seen.has(value)) return \"[Circular]\";\n if (depth === 2) return Array.isArray(value) ? \"[Array]\" : \"[Object]\";\n seen.add(value);\n if (Array.isArray(value)) {\n const items2 = value.slice(0, 5).map((item) => formatDiagnosticValue(item, depth + 1, seen));\n if (value.length > 5) items2.push(`\\u2026 ${value.length - 5} more`);\n return `[${items2.join(\", \")}]`;\n }\n const keys = [];\n for (const key in value) {\n keys.push(key);\n if (keys.length === 6) break;\n }\n const hasMore = keys.length === 6;\n if (hasMore) keys.pop();\n const items = keys.map((key) => {\n try {\n return `${key}: ${formatDiagnosticValue(value[key], depth + 1, seen)}`;\n } catch {\n return `${key}: [Unavailable]`;\n }\n });\n if (hasMore) items.push(\"\\u2026 more\");\n return `{ ${items.join(\", \")} }`;\n}\nfunction formatDiagnostic(code, component, message, action, prop, received) {\n if (process.env.NODE_ENV === \"production\") {\n return `${code}: ${message}`;\n }\n const formattedValue = prop ? formatDiagnosticValue(received) : \"\";\n const boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : formattedValue;\n const value = prop ? ` Received ${prop}=${boundedValue}.` : \"\";\n return `${code} ${component}: ${message}.${value} ${action}`;\n}\nexport {\n formatDiagnostic\n};\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":";AAAA,MAAM,2BAA2B;AACjC,SAAS,sBAAsB,OAAO,QAAQ,GAAG,uBAAuB,IAAI,QAAQ,GAAG;CACrF,IAAI,OAAO,UAAU,UAAU;EAC7B,MAAM,SAAS,MAAM,SAAS,2BAA2B,GAAG,MAAM,MAAM,GAAG,2BAA2B,CAAC,EAAE,UAAU;EACnH,OAAO,KAAK,UAAU,MAAM;CAC9B;CACA,IAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW;EAC5E,OAAO,OAAO,KAAK;CACrB;CACA,IAAI,OAAO,UAAU,UAAU,OAAO,GAAG,MAAM;CAC/C,IAAI,OAAO,UAAU,YAAY,OAAO,aAAa,MAAM,QAAQ,YAAY;CAC/E,IAAI,OAAO,UAAU,UAAU,OAAO,OAAO,KAAK;CAClD,IAAI,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atDiagnosticValue(value) {
27
27
  }
28
28
  var keys = [];
29
29
  for (var key in value) {
30
- if (Object.prototype.hasOwnProperty.call(value, key)) {
31
- keys.push(key);
32
- if (keys.length === 6) break;
33
- }
30
+ keys.push(key);
31
+ if (keys.length === 6) break;
34
32
  }
35
33
  var hasMore = keys.length === 6;
36
34
  if (hasMore) keys.pop();
@@ -1 +1 @@
1
- {"version":3,"file":"formatDiagnostic.native.js","names":[],"sources":["esm/helpers/formatDiagnostic.native.js"],"sourcesContent":["function _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar maxDiagnosticValueLength = 160;\nfunction formatDiagnosticValue(value) {\n var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, seen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new WeakSet();\n if (typeof value === \"string\") {\n var output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : value;\n return JSON.stringify(output);\n }\n if (value == null || typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"bigint\") return `${value}n`;\n if (typeof value === \"function\") return `[Function ${value.name || \"anonymous\"}]`;\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) !== \"object\") return String(value);\n if (seen.has(value)) return \"[Circular]\";\n if (depth === 2) return Array.isArray(value) ? \"[Array]\" : \"[Object]\";\n seen.add(value);\n if (Array.isArray(value)) {\n var items = value.slice(0, 5).map(function(item) {\n return formatDiagnosticValue(item, depth + 1, seen);\n });\n if (value.length > 5) items.push(`\\u2026 ${value.length - 5} more`);\n return `[${items.join(\", \")}]`;\n }\n var keys = [];\n for (var key in value) {\n if (Object.prototype.hasOwnProperty.call(value, key)) {\n keys.push(key);\n if (keys.length === 6) break;\n }\n }\n var hasMore = keys.length === 6;\n if (hasMore) keys.pop();\n var items1 = keys.map(function(key2) {\n try {\n return `${key2}: ${formatDiagnosticValue(value[key2], depth + 1, seen)}`;\n } catch (e) {\n return `${key2}: [Unavailable]`;\n }\n });\n if (hasMore) items1.push(\"\\u2026 more\");\n return `{ ${items1.join(\", \")} }`;\n}\nfunction formatDiagnostic(code, component, message, action, prop, received) {\n if (process.env.NODE_ENV === \"production\") {\n return `${code}: ${message}`;\n }\n var formattedValue = prop ? formatDiagnosticValue(received) : \"\";\n var boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : formattedValue;\n var value = prop ? ` Received ${prop}=${boundedValue}.` : \"\";\n return `${code} ${component}: ${message}.${value} ${action}`;\n}\nexport {\n formatDiagnostic\n};\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":";AAAA,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAChG;AACA,IAAI,2BAA2B;AAC/B,SAAS,sBAAsB,OAAO;CACpC,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,GAAG,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,qBAAqB,IAAI,QAAQ;CACpL,IAAI,OAAO,UAAU,UAAU;EAC7B,IAAI,SAAS,MAAM,SAAS,2BAA2B,GAAG,MAAM,MAAM,GAAG,2BAA2B,CAAC,EAAE,UAAU;EACjH,OAAO,KAAK,UAAU,MAAM;CAC9B;CACA,IAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW;EAC5E,OAAO,OAAO,KAAK;CACrB;CACA,KAAK,OAAO,UAAU,cAAc,cAAc,SAAS,KAAK,OAAO,UAAU,OAAO,GAAG,MAAM;CACjG,IAAI,OAAO,UAAU,YAAY,OAAO,aAAa,MAAM,QAAQ,YAAY;CAC/E,KA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,CAAC,EAAE,UAAU;CACzI,IAAI,QAAQ,OAAO,aAAa,KAAK,GAAG,aAAa,KAAK;CAC1D,OAAO,GAAG,KAAK,GAAG,UAAU,IAAI,QAAQ,GAAG,MAAM,GAAG;AACtD"}
1
+ {"version":3,"file":"formatDiagnostic.native.js","names":[],"sources":["esm/helpers/formatDiagnostic.native.js"],"sourcesContent":["function _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar maxDiagnosticValueLength = 160;\nfunction formatDiagnosticValue(value) {\n var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, seen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new WeakSet();\n if (typeof value === \"string\") {\n var output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : value;\n return JSON.stringify(output);\n }\n if (value == null || typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"bigint\") return `${value}n`;\n if (typeof value === \"function\") return `[Function ${value.name || \"anonymous\"}]`;\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) !== \"object\") return String(value);\n if (seen.has(value)) return \"[Circular]\";\n if (depth === 2) return Array.isArray(value) ? \"[Array]\" : \"[Object]\";\n seen.add(value);\n if (Array.isArray(value)) {\n var items = value.slice(0, 5).map(function(item) {\n return formatDiagnosticValue(item, depth + 1, seen);\n });\n if (value.length > 5) items.push(`\\u2026 ${value.length - 5} more`);\n return `[${items.join(\", \")}]`;\n }\n var keys = [];\n for (var key in value) {\n keys.push(key);\n if (keys.length === 6) break;\n }\n var hasMore = keys.length === 6;\n if (hasMore) keys.pop();\n var items1 = keys.map(function(key2) {\n try {\n return `${key2}: ${formatDiagnosticValue(value[key2], depth + 1, seen)}`;\n } catch (e) {\n return `${key2}: [Unavailable]`;\n }\n });\n if (hasMore) items1.push(\"\\u2026 more\");\n return `{ ${items1.join(\", \")} }`;\n}\nfunction formatDiagnostic(code, component, message, action, prop, received) {\n if (process.env.NODE_ENV === \"production\") {\n return `${code}: ${message}`;\n }\n var formattedValue = prop ? formatDiagnosticValue(received) : \"\";\n var boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : formattedValue;\n var value = prop ? ` Received ${prop}=${boundedValue}.` : \"\";\n return `${code} ${component}: ${message}.${value} ${action}`;\n}\nexport {\n formatDiagnostic\n};\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":";AAAA,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAChG;AACA,IAAI,2BAA2B;AAC/B,SAAS,sBAAsB,OAAO;CACpC,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,GAAG,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,qBAAqB,IAAI,QAAQ;CACpL,IAAI,OAAO,UAAU,UAAU;EAC7B,IAAI,SAAS,MAAM,SAAS,2BAA2B,GAAG,MAAM,MAAM,GAAG,2BAA2B,CAAC,EAAE,UAAU;EACjH,OAAO,KAAK,UAAU,MAAM;CAC9B;CACA,IAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW;EAC5E,OAAO,OAAO,KAAK;CACrB;CACA,KAAK,OAAO,UAAU,cAAc,cAAc,SAAS,KAAK,OAAO,UAAU,OAAO,GAAG,MAAM;CACjG,IAAI,OAAO,UAAU,YAAY,OAAO,aAAa,MAAM,QAAQ,YAAY;CAC/E,KAAK,OAAO,UAAU,cAAc,cAAc,SAAS,KAAK,OAAO,UAAU,OAAO,OAAO,KAAK;CACpG,IAAI,KAAK,IAAI,KAAK,GAAG,OAAO;CAC5B,I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SlotCSS(atomicKey, entries, signature) {
115
115
  }
116
116
  shortProp ||= "x";
117
117
  let identifier = `_${shortProp}-${hash}`;
118
- if (atomicKey === "pointerEvents" && entries.length === 1 && !entries[0].condition) {
119
- const value = entries[0].value;
118
+ if (atomicKey === "pointerEvents" && entries.length === 1 && !entries[0][2]) {
119
+ const value = entries[0][1];
120
120
  if (value === "box-none") identifier = "_pe-boxnone";
121
121
  else if (value === "box-only") identifier = "_pe-boxonly";
122
122
  }
123
123
  const rules = [];
124
124
  let lastValue;
125
125
  for (const entry of entries) {
126
- const value = entry.value;
126
+ const value = entry[1];
127
127
  lastValue = value;
128
- const entryRules = createAtomicRules(identifier, entry.property, value, entry.selector, entry.wrappers, 2, slotClassRepetitions(atomicKey, entry.condition));
128
+ const entryRules = createAtomicRules(identifier, entry[0], value, entry[4], entry[5], 2, slotClassRepetitions(atomicKey, entry[2]), entry[6], entry[7]);
129
129
  for (const rule of entryRules) rules.push(rule);
130
130
  }
131
- const built = {
131
+ const built = [
132
132
  identifier,
133
133
  rules,
134
- value: lastValue
135
- };
134
+ lastValue
135
+ ];
136
136
  if (slotIdentitiesSize > 1e4) {
137
137
  slotIdentities.clear();
138
138
  slotIdentitiesSize = 0;
@@ -162,7 +162,7 @@ const hyphenateStyleName = (key) => {
162
162
  hcache[key] = val;
163
163
  return val;
164
164
  };
165
- function createAtomicRules(identifier, property, value, condition = "", wrappers, direct = false, classRepetitions = 1) {
165
+ function createAtomicRules(identifier, property, value, condition = "", wrappers, direct = false, classRepetitions = 1, wrapperStart = 0, wrapperCount = wrappers?.length || 0) {
166
166
  const repetitions = direct && classRepetitions > 1 ? classRepetitions : !direct && property in cssShorthandLonghands ? 2 : 1;
167
167
  const cls = `.${identifier}`.repeat(repetitions);
168
168
  const selector = `${cls}${condition}`;
@@ -204,10 +204,10 @@ function createAtomicRules(identifier, property, value, condition = "", wrappers
204
204
  break;
205
205
  }
206
206
  }
207
- if (wrappers?.length) {
207
+ if (wrappers && wrapperCount) {
208
208
  for (let ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) {
209
209
  let rule = rules[ruleIndex];
210
- for (let index = wrappers.length - 1; index >= 0; index--) {
210
+ for (let index = wrapperStart + wrapperCount - 1; index >= wrapperStart; index--) {
211
211
  rule = `${wrappers[index]} {${rule}}`;
212
212
  }
213
213
  rules[ruleIndex] = rule;
@@ -1 +1 @@
1
- {"version":3,"file":"getCSSStylesAtomic.js","names":[],"sources":["esm/helpers/getCSSStylesAtomic.js"],"sourcesContent":["import { cssShorthandLonghands, simpleHash } from \"@tamagui/helpers\";\nimport { getConfigMaybe } from \"../config\";\nimport { getConfigRevisionState } from \"./grammarConfig\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { styleToCSS } from \"./styleToCSS\";\nimport { transformsToString } from \"./transformsToString\";\nimport { styleToCSS as styleToCSS2 } from \"./styleToCSS\";\nfunction getCSSStylesAtomic(style) {\n if (process.env.TAMAGUI_DID_OUTPUT_CSS) return [];\n styleToCSS(style);\n const out = [];\n for (const key in style) {\n if (key === \"$$css\") continue;\n const val = style[key];\n const so = getStyleObject(val, key);\n if (so) {\n out.push(so);\n }\n }\n return out;\n}\nfunction getCSSStyleAtomic(key, val, condition = \"\", wrappers, identity, direct = false, identityKey = key, classRepetitions = 1) {\n if (process.env.TAMAGUI_DID_OUTPUT_CSS) return;\n return getStyleObject(\n val,\n key,\n condition,\n wrappers,\n identity,\n direct,\n identityKey,\n classRepetitions\n );\n}\nlet conf = null;\nlet confRevision = 0;\nconst getStyleObject = (val, key, condition = \"\", wrappers, identity, direct = false, identityKey = key, classRepetitions = 1) => {\n if (val == null) return;\n if (key === \"transform\" && Array.isArray(val)) {\n val = transformsToString(val);\n }\n const value = normalizeValueWithProperty(val, key);\n const nextConf = syncAtomicConfig();\n const rawValue = typeof value === \"string\" ? value : `${value}`;\n const hash = simpleHash(identity ?? rawValue, direct ? \"strict\" : 10) || \"0\";\n let shortProp;\n if (direct) {\n shortProp = \"\";\n for (let index = 0; index < identityKey.length; index++) {\n const code = identityKey.charCodeAt(index);\n if ((index === 0 || code >= 65 && code <= 90 || identityKey.charCodeAt(index - 1) === 45) && (code >= 65 && code <= 90 || code >= 97 && code <= 122)) {\n shortProp += identityKey[index].toLowerCase();\n }\n }\n shortProp ||= \"x\";\n } else {\n shortProp = conf?.inverseShorthands[key] || key;\n }\n let identifier = `_${shortProp}-${hash}`;\n if (key === \"pointerEvents\" && !condition) {\n if (value === \"box-none\") identifier = \"_pe-boxnone\";\n else if (value === \"box-only\") identifier = \"_pe-boxonly\";\n }\n const rules = createAtomicRules(\n identifier,\n key,\n value,\n condition,\n wrappers,\n direct,\n classRepetitions\n );\n return [\n // array for performance\n key,\n value,\n identifier,\n void 0,\n rules\n ];\n};\nconst slotIdentities = /* @__PURE__ */ new Map();\nlet slotIdentitiesSize = 0;\nconst rawSlotIdentities = /* @__PURE__ */ new Map();\nlet rawSlotIdentitiesSize = 0;\nfunction probeRawSlotIdentity(property, raw) {\n syncAtomicConfig();\n return rawSlotIdentities.get(property)?.get(raw);\n}\nfunction storeRawSlotIdentity(property, raw, identity) {\n if (rawSlotIdentitiesSize > 1e4) {\n rawSlotIdentities.clear();\n rawSlotIdentitiesSize = 0;\n }\n let byRaw = rawSlotIdentities.get(property);\n if (!byRaw) {\n byRaw = /* @__PURE__ */ new Map();\n rawSlotIdentities.set(property, byRaw);\n }\n byRaw.set(raw, identity);\n rawSlotIdentitiesSize++;\n}\nfunction syncAtomicConfig() {\n const nextConf = getConfigMaybe();\n const nextRevision = nextConf ? getConfigRevisionState(nextConf).revision : 0;\n if (nextConf !== conf || nextRevision !== confRevision) {\n conf = nextConf;\n confRevision = nextRevision;\n slotIdentities.clear();\n slotIdentitiesSize = 0;\n rawSlotIdentities.clear();\n rawSlotIdentitiesSize = 0;\n }\n return nextConf;\n}\nfunction slotClassRepetitions(atomicKey, condition) {\n const base = atomicKey === \"containerName\" || atomicKey === \"containerType\" ? condition ? Math.max(\n 2,\n 1 + (Math.floor(condition / 256) >>> 23 & 7) + (Math.floor(condition / 256) >>> 26) * 6 - (condition >>> 5 & 7)\n ) : 2 : condition ? 1 + (Math.floor(condition / 256) >>> 23 & 7) + (Math.floor(condition / 256) >>> 26) * 6 - (condition >>> 5 & 7) : 1;\n return base;\n}\nfunction buildAtomicSlotCSS(atomicKey, entries, signature) {\n if (process.env.TAMAGUI_DID_OUTPUT_CSS) return;\n syncAtomicConfig();\n let byKey = slotIdentities.get(atomicKey);\n const known = byKey?.get(signature);\n if (known) return known;\n const hash = simpleHash(signature, \"strict\") || \"0\";\n let shortProp = \"\";\n for (let index = 0; index < atomicKey.length; index++) {\n const code = atomicKey.charCodeAt(index);\n if ((index === 0 || code >= 65 && code <= 90 || atomicKey.charCodeAt(index - 1) === 45) && (code >= 65 && code <= 90 || code >= 97 && code <= 122)) {\n shortProp += atomicKey[index].toLowerCase();\n }\n }\n shortProp ||= \"x\";\n let identifier = `_${shortProp}-${hash}`;\n if (atomicKey === \"pointerEvents\" && entries.length === 1 && !entries[0].condition) {\n const value = entries[0].value;\n if (value === \"box-none\") identifier = \"_pe-boxnone\";\n else if (value === \"box-only\") identifier = \"_pe-boxonly\";\n }\n const rules = [];\n let lastValue;\n for (const entry of entries) {\n const value = entry.value;\n lastValue = value;\n const entryRules = createAtomicRules(\n identifier,\n entry.property,\n value,\n entry.selector,\n entry.wrappers,\n 2,\n slotClassRepetitions(atomicKey, entry.condition)\n );\n for (const rule of entryRules) rules.push(rule);\n }\n const built = { identifier, rules, value: lastValue };\n if (slotIdentitiesSize > 1e4) {\n slotIdentities.clear();\n slotIdentitiesSize = 0;\n byKey = void 0;\n }\n if (!byKey) {\n byKey = /* @__PURE__ */ new Map();\n slotIdentities.set(atomicKey, byKey);\n }\n byKey.set(signature, built);\n slotIdentitiesSize++;\n return built;\n}\nfunction createDeclarationBlock(style, important = false, trailingSemicolon = true) {\n let next = \"\";\n for (let index = 0; index < style.length; index++) {\n const [key, value] = style[index];\n next += `${hyphenateStyleName(key)}:${value}${important ? \" !important\" : \"\"}${trailingSemicolon || index < style.length - 1 ? \";\" : \"\"}`;\n }\n return `{${next}}`;\n}\nconst hcache = {};\nconst toHyphenLower = (match) => `-${match.toLowerCase()}`;\nconst hyphenateStyleName = (key) => {\n if (key in hcache) return hcache[key];\n const val = key.replace(/[A-Z]/g, toHyphenLower);\n hcache[key] = val;\n return val;\n};\nfunction createAtomicRules(identifier, property, value, condition = \"\", wrappers, direct = false, classRepetitions = 1) {\n const repetitions = direct && classRepetitions > 1 ? classRepetitions : !direct && property in cssShorthandLonghands ? 2 : 1;\n const cls = `.${identifier}`.repeat(repetitions);\n const selector = `${cls}${condition}`;\n let rules = [];\n switch (property) {\n // Equivalent to using '::placeholder'\n case \"placeholderTextColor\": {\n const block = createDeclarationBlock(\n [\n [\"color\", value],\n [\"opacity\", 1]\n ],\n false\n );\n rules.push(`${selector}::placeholder${block}`);\n break;\n }\n // all webkit prefixed rules\n case \"backgroundClip\":\n case \"userSelect\": {\n const propertyCapitalized = `${property[0].toUpperCase()}${property.slice(1)}`;\n const webkitProperty = `Webkit${propertyCapitalized}`;\n const block = createDeclarationBlock(\n [\n [property, value],\n [webkitProperty, value]\n ],\n false\n );\n rules.push(`${selector}${block}`);\n break;\n }\n // Polyfill for additional 'pointer-events' values\n case \"pointerEvents\": {\n if (direct) {\n const subject = value === \"none\" || value === \"box-none\" ? \"none\" : \"auto\";\n const children = value === \"none\" || value === \"box-only\" ? \"none\" : \"auto\";\n rules.push(\n `${selector}${createDeclarationBlock([[\"pointerEvents\", subject]], false, false)}`,\n `${selector}>*${createDeclarationBlock(\n [[\"pointerEvents\", children]],\n false,\n false\n )}`\n );\n break;\n }\n let finalValue = value;\n if (value === \"auto\" || value === \"box-only\") {\n finalValue = \"auto\";\n } else if (value === \"none\" || value === \"box-none\") {\n finalValue = \"none\";\n }\n const block = createDeclarationBlock([[\"pointerEvents\", finalValue]], true);\n rules.push(`${selector}${block}`);\n break;\n }\n default: {\n const block = createDeclarationBlock([[property, value]], false, !direct);\n rules.push(`${selector}${block}`);\n break;\n }\n }\n if (wrappers?.length) {\n for (let ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) {\n let rule = rules[ruleIndex];\n for (let index = wrappers.length - 1; index >= 0; index--) {\n rule = `${wrappers[index]} {${rule}}`;\n }\n rules[ruleIndex] = rule;\n }\n }\n return rules;\n}\nexport {\n buildAtomicSlotCSS,\n getCSSStyleAtomic,\n getCSSStylesAtomic,\n probeRawSlotIdentity,\n storeRawSlotIdentity,\n styleToCSS2 as styleToCSS\n};\n//# sourceMappingURL=getCSSStylesAtomic.js.map\n"],"mappings":";;;;;;;;AAOA,SAAS,mBAAmB,OAAO;CACjC,IAAI,QAAQ,IAAI,wBAAwB,OAAO,CAAC;CAChD,WAAW,KAAK;CAChB,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,OAAO;EACvB,IAAI,QAAQ,SAAS;EACrB,MAAM,MAAM,MAAM;EAClB,MAAM,KAAK,eAAe,KAAK,GAAG;EAClC,IAAI,IAAI;GACN,IAAI,KAAK,EAAE;EACb;CACF;CACA,OAAO;AACT;AACA,SAAS,kBAAkB,KAAK,KAAK,YAAY,IAAI,UAAU,UAAU,SAAS,OAAO,cAAc,KAAK,mBAAmB,GAAG;CAChI,IAAI,QAAQ,IAAI,wBAAwB;CACxC,OAAO,eACL,KACA,KACA,WACA,UACA,UACA,QACA,aACA,gBACF;AACF;AACA,IAAI,OAAO;AACX,IAAI,eAAe;AACnB,MAAM,kBAAkB,KAAK,KAAK,YAAY,IAAI,UAAU,UAAU,SAAS,OAAO,cAAc,KAAK,mBAAmB,MAAM;CAChI,IAAI,OAAO,MAAM;CACjB,IAAI,QAAQ,eAAe,MAAM,QAAQ,GAAG,GAAG;EAC7C,MAAM,mBAAmB,GAAG;CAC9B;CACA,MAAM,QAAQ,2BAA2B,KAAK,GAAG;CACjD,MAAM,WAAW,iBAAiB;CAClC,MAAM,WAAW,OAAO,UAAU,WAAW,QAAQ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,uBAAuB,CAAC,CAAC,UAAU,KAAK,CAAC,GAAG,OAAO,CAAC,MAAM;GACxE,MAAM,KAAK,GAAG,WAAW,OAAO;GAChC;EACF;CACF;CACA,IAAI,UAAU,QAAQ;EACpB,KAAK,IAAI,YAAY,GAAG,YAAY,MAAM,QAAQ,aAAa;GAC7D,IAAI,OAAO,MAAM;GACjB,KAAK,IAAI,QAAQ,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS;IACzD,OAAO,GAAG,SAAS,OAAO,IAAI,KAAK;GACrC;GACA,MAAM,aAAa;EACrB;CACF;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"getCSSStylesAtomic.js","names":[],"sources":["esm/helpers/getCSSStylesAtomic.js"],"sourcesContent":["import { cssShorthandLonghands, simpleHash } from \"@tamagui/helpers\";\nimport { getConfigMaybe } from \"../config\";\nimport { getConfigRevisionState } from \"./grammarConfig\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { styleToCSS } from \"./styleToCSS\";\nimport { transformsToString } from \"./transformsToString\";\nimport { styleToCSS as styleToCSS2 } from \"./styleToCSS\";\nfunction getCSSStylesAtomic(style) {\n if (process.env.TAMAGUI_DID_OUTPUT_CSS) return [];\n styleToCSS(style);\n const out = [];\n for (const key in style) {\n if (key === \"$$css\") continue;\n const val = style[key];\n const so = getStyleObject(val, key);\n if (so) {\n out.push(so);\n }\n }\n return out;\n}\nfunction getCSSStyleAtomic(key, val, condition = \"\", wrappers, identity, direct = false, identityKey = key, classRepetitions = 1) {\n if (process.env.TAMAGUI_DID_OUTPUT_CSS) return;\n return getStyleObject(\n val,\n key,\n condition,\n wrappers,\n identity,\n direct,\n identityKey,\n classRepetitions\n );\n}\nlet conf = null;\nlet confRevision = 0;\nconst getStyleObject = (val, key, condition = \"\", wrappers, identity, direct = false, identityKey = key, classRepetitions = 1) => {\n if (val == null) return;\n if (key === \"transform\" && Array.isArray(val)) {\n val = transformsToString(val);\n }\n const value = normalizeValueWithProperty(val, key);\n const nextConf = syncAtomicConfig();\n const rawValue = typeof value === \"string\" ? value : `${value}`;\n const hash = simpleHash(identity ?? rawValue, direct ? \"strict\" : 10) || \"0\";\n let shortProp;\n if (direct) {\n shortProp = \"\";\n for (let index = 0; index < identityKey.length; index++) {\n const code = identityKey.charCodeAt(index);\n if ((index === 0 || code >= 65 && code <= 90 || identityKey.charCodeAt(index - 1) === 45) && (code >= 65 && code <= 90 || code >= 97 && code <= 122)) {\n shortProp += identityKey[index].toLowerCase();\n }\n }\n shortProp ||= \"x\";\n } else {\n shortProp = conf?.inverseShorthands[key] || key;\n }\n let identifier = `_${shortProp}-${hash}`;\n if (key === \"pointerEvents\" && !condition) {\n if (value === \"box-none\") identifier = \"_pe-boxnone\";\n else if (value === \"box-only\") identifier = \"_pe-boxonly\";\n }\n const rules = createAtomicRules(\n identifier,\n key,\n value,\n condition,\n wrappers,\n direct,\n classRepetitions\n );\n return [\n // array for performance\n key,\n value,\n identifier,\n void 0,\n rules\n ];\n};\nconst slotIdentities = /* @__PURE__ */ new Map();\nlet slotIdentitiesSize = 0;\nconst rawSlotIdentities = /* @__PURE__ */ new Map();\nlet rawSlotIdentitiesSize = 0;\nfunction probeRawSlotIdentity(property, raw) {\n syncAtomicConfig();\n return rawSlotIdentities.get(property)?.get(raw);\n}\nfunction storeRawSlotIdentity(property, raw, identity) {\n if (rawSlotIdentitiesSize > 1e4) {\n rawSlotIdentities.clear();\n rawSlotIdentitiesSize = 0;\n }\n let byRaw = rawSlotIdentities.get(property);\n if (!byRaw) {\n byRaw = /* @__PURE__ */ new Map();\n rawSlotIdentities.set(property, byRaw);\n }\n byRaw.set(raw, identity);\n rawSlotIdentitiesSize++;\n}\nfunction syncAtomicConfig() {\n const nextConf = getConfigMaybe();\n const nextRevision = nextConf ? getConfigRevisionState(nextConf).revision : 0;\n if (nextConf !== conf || nextRevision !== confRevision) {\n conf = nextConf;\n confRevision = nextRevision;\n slotIdentities.clear();\n slotIdentitiesSize = 0;\n rawSlotIdentities.clear();\n rawSlotIdentitiesSize = 0;\n }\n return nextConf;\n}\nfunction slotClassRepetitions(atomicKey, condition) {\n const base = atomicKey === \"containerName\" || atomicKey === \"containerType\" ? condition ? Math.max(\n 2,\n 1 + (Math.floor(condition / 256) >>> 23 & 7) + (Math.floor(condition / 256) >>> 26) * 6 - (condition >>> 5 & 7)\n ) : 2 : condition ? 1 + (Math.floor(condition / 256) >>> 23 & 7) + (Math.floor(condition / 256) >>> 26) * 6 - (condition >>> 5 & 7) : 1;\n return base;\n}\nfunction buildAtomicSlotCSS(atomicKey, entries, signature) {\n if (process.env.TAMAGUI_DID_OUTPUT_CSS) return;\n syncAtomicConfig();\n let byKey = slotIdentities.get(atomicKey);\n const known = byKey?.get(signature);\n if (known) return known;\n const hash = simpleHash(signature, \"strict\") || \"0\";\n let shortProp = \"\";\n for (let index = 0; index < atomicKey.length; index++) {\n const code = atomicKey.charCodeAt(index);\n if ((index === 0 || code >= 65 && code <= 90 || atomicKey.charCodeAt(index - 1) === 45) && (code >= 65 && code <= 90 || code >= 97 && code <= 122)) {\n shortProp += atomicKey[index].toLowerCase();\n }\n }\n shortProp ||= \"x\";\n let identifier = `_${shortProp}-${hash}`;\n if (atomicKey === \"pointerEvents\" && entries.length === 1 && !entries[0][2]) {\n const value = entries[0][1];\n if (value === \"box-none\") identifier = \"_pe-boxnone\";\n else if (value === \"box-only\") identifier = \"_pe-boxonly\";\n }\n const rules = [];\n let lastValue;\n for (const entry of entries) {\n const value = entry[1];\n lastValue = value;\n const entryRules = createAtomicRules(\n identifier,\n entry[0],\n value,\n entry[4],\n entry[5],\n 2,\n slotClassRepetitions(atomicKey, entry[2]),\n entry[6],\n entry[7]\n );\n for (const rule of entryRules) rules.push(rule);\n }\n const built = [identifier, rules, lastValue];\n if (slotIdentitiesSize > 1e4) {\n slotIdentities.clear();\n slotIdentitiesSize = 0;\n byKey = void 0;\n }\n if (!byKey) {\n byKey = /* @__PURE__ */ new Map();\n slotIdentities.set(atomicKey, byKey);\n }\n byKey.set(signature, built);\n slotIdentitiesSize++;\n return built;\n}\nfunction createDeclarationBlock(style, important = false, trailingSemicolon = true) {\n let next = \"\";\n for (let index = 0; index < style.length; index++) {\n const [key, value] = style[index];\n next += `${hyphenateStyleName(key)}:${value}${important ? \" !important\" : \"\"}${trailingSemicolon || index < style.length - 1 ? \";\" : \"\"}`;\n }\n return `{${next}}`;\n}\nconst hcache = {};\nconst toHyphenLower = (match) => `-${match.toLowerCase()}`;\nconst hyphenateStyleName = (key) => {\n if (key in hcache) return hcache[key];\n const val = key.replace(/[A-Z]/g, toHyphenLower);\n hcache[key] = val;\n return val;\n};\nfunction createAtomicRules(identifier, property, value, condition = \"\", wrappers, direct = false, classRepetitions = 1, wrapperStart = 0, wrapperCount = wrappers?.length || 0) {\n const repetitions = direct && classRepetitions > 1 ? classRepetitions : !direct && property in cssShorthandLonghands ? 2 : 1;\n const cls = `.${identifier}`.repeat(repetitions);\n const selector = `${cls}${condition}`;\n let rules = [];\n switch (property) {\n // Equivalent to using '::placeholder'\n case \"placeholderTextColor\": {\n const block = createDeclarationBlock(\n [\n [\"color\", value],\n [\"opacity\", 1]\n ],\n false\n );\n rules.push(`${selector}::placeholder${block}`);\n break;\n }\n // all webkit prefixed rules\n case \"backgroundClip\":\n case \"userSelect\": {\n const propertyCapitalized = `${property[0].toUpperCase()}${property.slice(1)}`;\n const webkitProperty = `Webkit${propertyCapitalized}`;\n const block = createDeclarationBlock(\n [\n [property, value],\n [webkitProperty, value]\n ],\n false\n );\n rules.push(`${selector}${block}`);\n break;\n }\n // Polyfill for additional 'pointer-events' values\n case \"pointerEvents\": {\n if (direct) {\n const subject = value === \"none\" || value === \"box-none\" ? \"none\" : \"auto\";\n const children = value === \"none\" || value === \"box-only\" ? \"none\" : \"auto\";\n rules.push(\n `${selector}${createDeclarationBlock([[\"pointerEvents\", subject]], false, false)}`,\n `${selector}>*${createDeclarationBlock(\n [[\"pointerEvents\", children]],\n false,\n false\n )}`\n );\n break;\n }\n let finalValue = value;\n if (value === \"auto\" || value === \"box-only\") {\n finalValue = \"auto\";\n } else if (value === \"none\" || value === \"box-none\") {\n finalValue = \"none\";\n }\n const block = createDeclarationBlock([[\"pointerEvents\", finalValue]], true);\n rules.push(`${selector}${block}`);\n break;\n }\n default: {\n const block = createDeclarationBlock([[property, value]], false, !direct);\n rules.push(`${selector}${block}`);\n break;\n }\n }\n if (wrappers && wrapperCount) {\n for (let ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) {\n let rule = rules[ruleIndex];\n for (let index = wrapperStart + wrapperCount - 1; index >= wrapperStart; index--) {\n rule = `${wrappers[index]} {${rule}}`;\n }\n rules[ruleIndex] = rule;\n }\n }\n return rules;\n}\nexport {\n buildAtomicSlotCSS,\n getCSSStyleAtomic,\n getCSSStylesAtomic,\n probeRawSlotIdentity,\n storeRawSlotIdentity,\n styleToCSS2 as styleToCSS\n};\n//# sourceMappingURL=getCSSStylesAtomic.js.map\n"],"mappings":";;;;;;;;AAOA,SAAS,mBAAmB,OAAO;CACjC,IAAI,QAAQ,IAAI,wBAAwB,OAAO,CAAC;CAChD,WAAW,KAAK;CAChB,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,OAAO;EACvB,IAAI,QAAQ,SAAS;EACrB,MAAM,MAAM,MAAM;EAClB,MAAM,KAAK,eAAe,KAAK,GAAG;EAClC,IAAI,IAAI;GACN,IAAI,KAAK,EAAE;EACb;CACF;CACA,OAAO;AACT;AACA,SAAS,kBAAkB,KAAK,KAAK,YAAY,IAAI,UAAU,UAAU,SAAS,OAAO,cAAc,KAAK,mBAAmB,GAAG;CAChI,IAAI,QAAQ,IAAI,wBAAwB;CACxC,OAAO,eACL,KACA,KACA,WACA,UACA,UACA,QACA,aACA,gBACF;AACF;AACA,IAAI,OAAO;AACX,IAAI,eAAe;AACnB,MAAM,kBAAkB,KAAK,KAAK,YAAY,IAAI,UAAU,UAAU,SAAS,OAAO,cAAc,KAAK,mBAAmB,MAAM;CAChI,IAAI,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