@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
@@ -43,20 +43,17 @@ function requestBorderStyleDefault(state, property, condition, identity, selecto
43
43
  const target = borderStyleDefaults[property];
44
44
  if (!target) return;
45
45
  const requests = state.flatBorderDefaultRequests ||= [];
46
- for (let index = 0; index < requests.length; index++) if (requests[index].property === target && requests[index].identity === identity) return;
47
- let wrappers;
48
- if (wrapperSource && wrapperCount) {
49
- wrappers = new Array(wrapperCount);
50
- for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
51
- }
52
- requests.push({
53
- property: target,
54
- value: "solid",
46
+ for (let index = 0; index < requests.length; index++) if (requests[index][0] === target && requests[index][3] === identity) return;
47
+ requests.push([
48
+ target,
49
+ "solid",
55
50
  condition,
56
51
  identity,
57
52
  selector,
58
- wrappers
59
- });
53
+ wrapperSource,
54
+ wrapperStart,
55
+ wrapperCount
56
+ ]);
60
57
  }
61
58
  function directStyleSignature(property, value, conditionKey = "") {
62
59
  return `${property}${conditionKey}${String(value)}`;
@@ -72,14 +69,14 @@ function registerSlot(state, atomicKey, entries) {
72
69
  const ordered = [];
73
70
  for (let index = 0; index < entries.length; index++) {
74
71
  const entry = entries[index];
75
- let value = entry.value;
76
- if (entry.property === "transform" && Array.isArray(value)) value = (0, import_transformsToString.transformsToString)(value);
77
- entry.value = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, entry.property);
78
- const precedence = entry.condition ? Math.floor(entry.condition / 256) : -1;
72
+ let value = entry[1];
73
+ if (entry[0] === "transform" && Array.isArray(value)) value = (0, import_transformsToString.transformsToString)(value);
74
+ entry[1] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, entry[0]);
75
+ const precedence = entry[2] ? Math.floor(entry[2] / 256) : -1;
79
76
  let insertAt = ordered.length;
80
77
  while (insertAt > 0) {
81
78
  const before = ordered[insertAt - 1];
82
- if ((before.condition ? Math.floor(before.condition / 256) : -1) <= precedence) break;
79
+ if ((before[2] ? Math.floor(before[2] / 256) : -1) <= precedence) break;
83
80
  insertAt--;
84
81
  }
85
82
  ordered.splice(insertAt, 0, entry);
@@ -87,51 +84,50 @@ function registerSlot(state, atomicKey, entries) {
87
84
  let signature = "";
88
85
  for (let index = 0; index < ordered.length; index++) {
89
86
  const entry = ordered[index];
90
- signature += directStyleSignature(entry.property, entry.value, entry.identity);
87
+ signature += directStyleSignature(entry[0], entry[1], entry[3]);
91
88
  }
92
89
  const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(atomicKey, ordered, signature);
93
90
  if (!built) return;
94
- const styleObject = built.styleObject ||= [
91
+ const styleObject = built[3] ||= [
95
92
  atomicKey,
96
- built.value,
97
- built.identifier,
93
+ built[2],
94
+ built[0],
98
95
  void 0,
99
- built.rules
96
+ built[1]
100
97
  ];
101
98
  (state.flatAtomics ||= {})[atomicKey] = styleObject;
102
- state.classNames[atomicKey] = built.identifier;
99
+ state.classNames[atomicKey] = built[0];
103
100
  }
104
- const streamEntry = {
105
- property: "",
106
- value: "",
107
- condition: 0,
108
- identity: "",
109
- selector: "",
110
- wrappers: void 0
111
- };
112
- const streamSlot = [streamEntry];
101
+ const scratchEntry = [
102
+ "",
103
+ "",
104
+ 0,
105
+ "",
106
+ "",
107
+ void 0,
108
+ 0,
109
+ 0
110
+ ];
111
+ const singleSlot = [scratchEntry];
113
112
  function appendSlotEntry(list, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {
114
- for (let index = 0; index < list.length; index++) if (list[index].identity === identity) {
113
+ for (let index = 0; index < list.length; index++) if (list[index][3] === identity) {
115
114
  if (weak) return;
116
- list[index].value = value;
117
- list[index].condition = condition;
118
- list[index].original = original;
115
+ list[index][1] = value;
116
+ list[index][2] = condition;
117
+ list[index][8] = original;
119
118
  return;
120
119
  }
121
- let wrappers;
122
- if (wrapperSource && wrapperCount) {
123
- wrappers = new Array(wrapperCount);
124
- for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
125
- }
126
- list.push({
120
+ list.push([
127
121
  property,
128
122
  value,
129
123
  condition,
130
124
  identity,
131
125
  selector,
132
- wrappers,
126
+ wrapperSource,
127
+ wrapperStart,
128
+ wrapperCount,
133
129
  original
134
- });
130
+ ]);
135
131
  }
136
132
  function streamAtomic(state, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {
137
133
  if (!canGenerateCSS) return;
@@ -149,7 +145,7 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
149
145
  const atomics = direct.flatAtomics;
150
146
  const streamed = atomics ? atomics[property] : void 0;
151
147
  if (singleEntry) {
152
- if (singleEntry.identity !== identity) {
148
+ if (singleEntry[3] !== identity) {
153
149
  delete singleEntries[property];
154
150
  appendSlotEntry((direct.flatSlots ||= {})[property] = [singleEntry], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
155
151
  return;
@@ -157,14 +153,16 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
157
153
  if (weak) return;
158
154
  } else if (streamed !== void 0) {
159
155
  if (identity) {
160
- appendSlotEntry((direct.flatSlots ||= {})[property] = [{
156
+ appendSlotEntry((direct.flatSlots ||= {})[property] = [[
161
157
  property,
162
- value: streamed[1],
163
- condition: 0,
164
- identity: "",
165
- selector: "",
166
- wrappers: void 0
167
- }], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
158
+ streamed[1],
159
+ 0,
160
+ "",
161
+ "",
162
+ void 0,
163
+ 0,
164
+ 0
165
+ ]], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
168
166
  return;
169
167
  }
170
168
  if (weak) return;
@@ -176,54 +174,53 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
176
174
  if (!identity) {
177
175
  const memo = (0, import_getCSSStylesAtomic.probeRawSlotIdentity)(property, value);
178
176
  if (memo) {
179
- const styleObject2 = memo.styleObject ||= [
177
+ const styleObject2 = memo[3] ||= [
180
178
  property,
181
- memo.value,
182
- memo.identifier,
179
+ memo[2],
180
+ memo[0],
183
181
  void 0,
184
- memo.rules
182
+ memo[1]
185
183
  ];
186
184
  (direct.flatAtomics ||= {})[property] = styleObject2;
187
- state.classNames[property] = memo.identifier;
185
+ state.classNames[property] = memo[0];
188
186
  return;
189
187
  }
190
188
  }
191
189
  const rawValue = value;
192
190
  if (property === "transform" && Array.isArray(value)) value = (0, import_transformsToString.transformsToString)(value);
193
191
  const normalized = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, property);
194
- streamEntry.property = property;
195
- streamEntry.value = normalized;
196
- streamEntry.condition = condition;
197
- streamEntry.identity = identity;
198
- streamEntry.selector = selector;
199
- let wrappers;
200
- if (wrapperSource && wrapperCount) {
201
- wrappers = new Array(wrapperCount);
202
- for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
203
- }
204
- streamEntry.wrappers = wrappers;
205
- const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, streamSlot, directStyleSignature(property, normalized, identity));
206
- streamEntry.wrappers = void 0;
207
- streamEntry.value = "";
192
+ scratchEntry[0] = property;
193
+ scratchEntry[1] = normalized;
194
+ scratchEntry[2] = condition;
195
+ scratchEntry[3] = identity;
196
+ scratchEntry[4] = selector;
197
+ scratchEntry[5] = wrapperSource;
198
+ scratchEntry[6] = wrapperStart;
199
+ scratchEntry[7] = wrapperCount;
200
+ const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, singleSlot, directStyleSignature(property, normalized, identity));
201
+ scratchEntry[5] = void 0;
202
+ scratchEntry[1] = "";
208
203
  if (!built) return;
209
204
  if (!identity) (0, import_getCSSStylesAtomic.storeRawSlotIdentity)(property, rawValue, built);
210
- if (identity) (direct.flatSingleEntries ||= {})[property] = {
205
+ if (identity) (direct.flatSingleEntries ||= {})[property] = [
211
206
  property,
212
- value: normalized,
207
+ normalized,
213
208
  condition,
214
209
  identity,
215
210
  selector,
216
- wrappers
217
- };
218
- const styleObject = built.styleObject ||= [
211
+ wrapperSource,
212
+ wrapperStart,
213
+ wrapperCount
214
+ ];
215
+ const styleObject = built[3] ||= [
219
216
  property,
220
- built.value,
221
- built.identifier,
217
+ built[2],
218
+ built[0],
222
219
  void 0,
223
- built.rules
220
+ built[1]
224
221
  ];
225
222
  (direct.flatAtomics ||= {})[property] = styleObject;
226
- state.classNames[property] = built.identifier;
223
+ state.classNames[property] = built[0];
227
224
  }
228
225
  function completeStreamingCSS(state) {
229
226
  if (!canGenerateCSS) return;
@@ -235,10 +232,10 @@ function completeStreamingCSS(state) {
235
232
  direct.flatBorderDefaultRequests = void 0;
236
233
  for (let index = 0; index < requests.length; index++) {
237
234
  const request = requests[index];
238
- const target = request.property;
235
+ const target = request[0];
239
236
  const targetSingle = singleEntries ? singleEntries[target] : void 0;
240
237
  if (targetSingle) {
241
- if (targetSingle.identity === request.identity) continue;
238
+ if (targetSingle[3] === request[3]) continue;
242
239
  delete singleEntries[target];
243
240
  ((direct.flatSlots ||= {})[target] = [targetSingle]).push(request);
244
241
  continue;
@@ -246,7 +243,7 @@ function completeStreamingCSS(state) {
246
243
  const slot = direct.flatSlots ? direct.flatSlots[target] : void 0;
247
244
  if (slot) {
248
245
  let covered = false;
249
- for (let t = 0; t < slot.length; t++) if (!slot[t].condition || slot[t].identity === request.identity) {
246
+ for (let t = 0; t < slot.length; t++) if (!slot[t][2] || slot[t][3] === request[3]) {
250
247
  covered = true;
251
248
  break;
252
249
  }
@@ -261,14 +258,16 @@ function completeStreamingCSS(state) {
261
258
  if (cssMode && state.transformAccumulator) {
262
259
  const transform = (0, import_runtime.finalizeTransformAccumulator)(state.transformAccumulator);
263
260
  state.transformAccumulator = void 0;
264
- const accumulated = {
265
- property: "transform",
266
- value: Array.isArray(transform) ? (0, import_transformsToString.transformsToString)(transform) : transform,
267
- condition: 0,
268
- identity: "",
269
- selector: "",
270
- wrappers: void 0
271
- };
261
+ const accumulated = [
262
+ "transform",
263
+ Array.isArray(transform) ? (0, import_transformsToString.transformsToString)(transform) : transform,
264
+ 0,
265
+ "",
266
+ "",
267
+ void 0,
268
+ 0,
269
+ 0
270
+ ];
272
271
  const slot = direct.flatSlots ? direct.flatSlots.transform : void 0;
273
272
  const transformSingle = singleEntries ? singleEntries.transform : void 0;
274
273
  if (slot) slot.unshift(accumulated);
@@ -308,30 +307,28 @@ function flushDirectStyles(state, clear = false) {
308
307
  }
309
308
  if (clear) direct.flatAtomics = void 0;
310
309
  }
311
- const compositionEntry = {
312
- property: "",
313
- value: "",
314
- condition: 0,
315
- identity: "",
316
- selector: "",
317
- wrappers: void 0
318
- };
319
310
  function addComposition(state, property) {
320
311
  if (!canGenerateCSS || state.classNames[property]) return;
321
312
  const value = property === "translate" ? "var(--t-x, 0px) var(--t-y, 0px)" : "var(--t-scale-x, 1) var(--t-scale-y, 1)";
322
313
  const defaults = property === "translate" ? "--t-x:0px;--t-y:0px" : "--t-scale-x:1;--t-scale-y:1";
323
- compositionEntry.property = property;
324
- compositionEntry.value = value;
325
- const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, [compositionEntry], directStyleSignature(property, value, ""));
314
+ scratchEntry[0] = property;
315
+ scratchEntry[1] = value;
316
+ scratchEntry[2] = 0;
317
+ scratchEntry[3] = "";
318
+ scratchEntry[4] = "";
319
+ scratchEntry[5] = void 0;
320
+ scratchEntry[6] = 0;
321
+ scratchEntry[7] = 0;
322
+ const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, singleSlot, directStyleSignature(property, value, ""));
326
323
  if (!built) return;
327
- const identifier = built.identifier;
328
- const rules = built.rules.slice();
324
+ const identifier = built[0];
325
+ const rules = built[1].slice();
329
326
  rules.unshift(`:where(.${identifier}){${defaults}}`);
330
327
  if ((0, import_insertStyleRule.shouldInsertStyleRules)(identifier)) {
331
328
  (0, import_insertStyleRule.updateRules)(identifier, rules);
332
329
  state.flatRulesToInsert[identifier] = [
333
330
  property,
334
- built.value,
331
+ built[2],
335
332
  identifier,
336
333
  void 0,
337
334
  rules
@@ -43,10 +43,8 @@ function formatDiagnosticValue(value, depth = 0, seen = /* @__PURE__ */ new Weak
43
43
  }
44
44
  const keys = [];
45
45
  for (const key in value) {
46
- if (Object.prototype.hasOwnProperty.call(value, key)) {
47
- keys.push(key);
48
- if (keys.length === 6) break;
49
- }
46
+ keys.push(key);
47
+ if (keys.length === 6) break;
50
48
  }
51
49
  const hasMore = keys.length === 6;
52
50
  if (hasMore) keys.pop();
@@ -52,10 +52,8 @@ function formatDiagnosticValue(value) {
52
52
  }
53
53
  var keys = [];
54
54
  for (var key in value) {
55
- if (Object.prototype.hasOwnProperty.call(value, key)) {
56
- keys.push(key);
57
- if (keys.length === 6) break;
58
- }
55
+ keys.push(key);
56
+ if (keys.length === 6) break;
59
57
  }
60
58
  var hasMore = keys.length === 6;
61
59
  if (hasMore) keys.pop();
@@ -52,10 +52,8 @@ function formatDiagnosticValue(value) {
52
52
  }
53
53
  var keys = [];
54
54
  for (var key in value) {
55
- if (Object.prototype.hasOwnProperty.call(value, key)) {
56
- keys.push(key);
57
- if (keys.length === 6) break;
58
- }
55
+ keys.push(key);
56
+ if (keys.length === 6) break;
59
57
  }
60
58
  var hasMore = keys.length === 6;
61
59
  if (hasMore) keys.pop();
@@ -1 +1 @@
1
- {"version":3,"file":"formatDiagnostic.native.js","names":[],"sources":["cjs/helpers/formatDiagnostic.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar formatDiagnostic_exports = {};\n__export(formatDiagnostic_exports, {\n formatDiagnostic: () => formatDiagnostic\n});\nmodule.exports = __toCommonJS(formatDiagnostic_exports);\nfunction _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}\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK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,2BAA2B,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":["cjs/helpers/formatDiagnostic.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar formatDiagnostic_exports = {};\n__export(formatDiagnostic_exports, {\n formatDiagnostic: () => formatDiagnostic\n});\nmodule.exports = __toCommonJS(formatDiagnostic_exports);\nfunction _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}\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAA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AK,GAAG,UAAU,IAAI,QAAQ,GAAG,MAAM,GAAG;AACtD"}
@@ -145,24 +145,24 @@ function buildAtomicSlotCSS(atomicKey, entries, signature) {
145
145
  }
146
146
  shortProp ||= "x";
147
147
  let identifier = `_${shortProp}-${hash}`;
148
- if (atomicKey === "pointerEvents" && entries.length === 1 && !entries[0].condition) {
149
- const value = entries[0].value;
148
+ if (atomicKey === "pointerEvents" && entries.length === 1 && !entries[0][2]) {
149
+ const value = entries[0][1];
150
150
  if (value === "box-none") identifier = "_pe-boxnone";
151
151
  else if (value === "box-only") identifier = "_pe-boxonly";
152
152
  }
153
153
  const rules = [];
154
154
  let lastValue;
155
155
  for (const entry of entries) {
156
- const value = entry.value;
156
+ const value = entry[1];
157
157
  lastValue = value;
158
- const entryRules = createAtomicRules(identifier, entry.property, value, entry.selector, entry.wrappers, 2, slotClassRepetitions(atomicKey, entry.condition));
158
+ const entryRules = createAtomicRules(identifier, entry[0], value, entry[4], entry[5], 2, slotClassRepetitions(atomicKey, entry[2]), entry[6], entry[7]);
159
159
  for (const rule of entryRules) rules.push(rule);
160
160
  }
161
- const built = {
161
+ const built = [
162
162
  identifier,
163
163
  rules,
164
- value: lastValue
165
- };
164
+ lastValue
165
+ ];
166
166
  if (slotIdentitiesSize > 1e4) {
167
167
  slotIdentities.clear();
168
168
  slotIdentitiesSize = 0;
@@ -192,7 +192,7 @@ const hyphenateStyleName = (key) => {
192
192
  hcache[key] = val;
193
193
  return val;
194
194
  };
195
- function createAtomicRules(identifier, property, value, condition = "", wrappers, direct = false, classRepetitions = 1) {
195
+ function createAtomicRules(identifier, property, value, condition = "", wrappers, direct = false, classRepetitions = 1, wrapperStart = 0, wrapperCount = wrappers?.length || 0) {
196
196
  const repetitions = direct && classRepetitions > 1 ? classRepetitions : !direct && property in import_helpers.cssShorthandLonghands ? 2 : 1;
197
197
  const cls = `.${identifier}`.repeat(repetitions);
198
198
  const selector = `${cls}${condition}`;
@@ -234,10 +234,10 @@ function createAtomicRules(identifier, property, value, condition = "", wrappers
234
234
  break;
235
235
  }
236
236
  }
237
- if (wrappers?.length) {
237
+ if (wrappers && wrapperCount) {
238
238
  for (let ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) {
239
239
  let rule = rules[ruleIndex];
240
- for (let index = wrappers.length - 1; index >= 0; index--) {
240
+ for (let index = wrapperStart + wrapperCount - 1; index >= wrapperStart; index--) {
241
241
  rule = `${wrappers[index]} {${rule}}`;
242
242
  }
243
243
  rules[ruleIndex] = rule;