@tamagui/react-native-web-internals 2.7.7 → 3.0.0-beta.1097.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 (296) hide show
  1. package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +150 -136
  2. package/dist/cjs/StyleSheet/compiler/hash.cjs +14 -18
  3. package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +20 -24
  4. package/dist/cjs/StyleSheet/compiler/index.cjs +294 -321
  5. package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +19 -23
  6. package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +31 -35
  7. package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +26 -38
  8. package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +36 -40
  9. package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +107 -111
  10. package/dist/cjs/StyleSheet/dom/index.cjs +69 -72
  11. package/dist/cjs/StyleSheet/index.cjs +32 -34
  12. package/dist/cjs/StyleSheet/preprocess.cjs +73 -94
  13. package/dist/cjs/StyleSheet/validate.cjs +71 -75
  14. package/dist/cjs/TextAncestorContext.cjs +14 -18
  15. package/dist/cjs/colorProps.cjs +24 -28
  16. package/dist/cjs/index.cjs +48 -50
  17. package/dist/cjs/modules/AccessibilityUtil/index.cjs +17 -21
  18. package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +14 -18
  19. package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +45 -49
  20. package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +33 -39
  21. package/dist/cjs/modules/AssetRegistry/index.cjs +17 -19
  22. package/dist/cjs/modules/ImageLoader/index.cjs +134 -141
  23. package/dist/cjs/modules/InteractionManager.cjs +211 -219
  24. package/dist/cjs/modules/Platform/index.cjs +17 -21
  25. package/dist/cjs/modules/TextInputState/index.cjs +54 -58
  26. package/dist/cjs/modules/UIManager/index.cjs +45 -51
  27. package/dist/cjs/modules/canUseDOM.cjs +14 -18
  28. package/dist/cjs/modules/createDOMProps/index.cjs +284 -359
  29. package/dist/cjs/modules/createEventHandle/index.cjs +56 -62
  30. package/dist/cjs/modules/dismissKeyboard/index.cjs +15 -19
  31. package/dist/cjs/modules/forwardedProps/index.cjs +127 -130
  32. package/dist/cjs/modules/getBoundingClientRect/index.cjs +21 -25
  33. package/dist/cjs/modules/invariant.cjs +25 -27
  34. package/dist/cjs/modules/isSelectionValid/index.cjs +21 -25
  35. package/dist/cjs/modules/isWebColor/index.cjs +14 -18
  36. package/dist/cjs/modules/mergeRefs/index.cjs +30 -34
  37. package/dist/cjs/modules/modality/index.cjs +130 -134
  38. package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +24 -28
  39. package/dist/cjs/modules/normalizeColor/index.cjs +27 -31
  40. package/dist/cjs/modules/pick/index.cjs +21 -27
  41. package/dist/cjs/modules/processColor/index.cjs +27 -36
  42. package/dist/cjs/modules/requestIdleCallback/index.cjs +27 -29
  43. package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +38 -42
  44. package/dist/cjs/modules/setValueForStyles/index.cjs +27 -34
  45. package/dist/cjs/modules/unitlessNumbers/index.cjs +73 -75
  46. package/dist/cjs/modules/useElementLayout/index.cjs +23 -31
  47. package/dist/cjs/modules/useEvent/index.cjs +39 -43
  48. package/dist/cjs/modules/useHover/index.cjs +112 -118
  49. package/dist/cjs/modules/useLayoutEffect/index.cjs +17 -26
  50. package/dist/cjs/modules/useLocale/index.cjs +32 -43
  51. package/dist/cjs/modules/useLocale/isLocaleRTL.cjs +65 -76
  52. package/dist/cjs/modules/useMergeRefs/index.cjs +18 -29
  53. package/dist/cjs/modules/usePlatformMethods/index.cjs +23 -30
  54. package/dist/cjs/modules/useStable/index.cjs +23 -32
  55. package/dist/cjs/styleTypes.cjs +9 -11
  56. package/dist/cjs/types.cjs +9 -11
  57. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +137 -119
  58. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -1
  59. package/dist/esm/StyleSheet/compiler/hash.mjs +2 -2
  60. package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs +7 -6
  61. package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +1 -1
  62. package/dist/esm/StyleSheet/compiler/index.mjs +279 -302
  63. package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -1
  64. package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +7 -5
  65. package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -1
  66. package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs +19 -17
  67. package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs.map +1 -1
  68. package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs +14 -20
  69. package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +1 -1
  70. package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs +24 -22
  71. package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs.map +1 -1
  72. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs +94 -93
  73. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -1
  74. package/dist/esm/StyleSheet/dom/index.mjs +57 -54
  75. package/dist/esm/StyleSheet/dom/index.mjs.map +1 -1
  76. package/dist/esm/StyleSheet/index.mjs +18 -17
  77. package/dist/esm/StyleSheet/index.mjs.map +1 -1
  78. package/dist/esm/StyleSheet/preprocess.mjs +58 -75
  79. package/dist/esm/StyleSheet/preprocess.mjs.map +1 -1
  80. package/dist/esm/StyleSheet/validate.mjs +58 -57
  81. package/dist/esm/StyleSheet/validate.mjs.map +1 -1
  82. package/dist/esm/TextAncestorContext.mjs +2 -0
  83. package/dist/esm/TextAncestorContext.mjs.map +1 -1
  84. package/dist/esm/colorProps.mjs +11 -10
  85. package/dist/esm/colorProps.mjs.map +1 -1
  86. package/dist/esm/index.js +22 -15
  87. package/dist/esm/index.mjs +22 -15
  88. package/dist/esm/modules/AccessibilityUtil/index.mjs +5 -3
  89. package/dist/esm/modules/AccessibilityUtil/index.mjs.map +1 -1
  90. package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs +2 -1
  91. package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs.map +1 -1
  92. package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +33 -31
  93. package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +1 -1
  94. package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +20 -21
  95. package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +1 -1
  96. package/dist/esm/modules/AssetRegistry/index.mjs +3 -2
  97. package/dist/esm/modules/AssetRegistry/index.mjs.map +1 -1
  98. package/dist/esm/modules/ImageLoader/index.mjs +120 -124
  99. package/dist/esm/modules/ImageLoader/index.mjs.map +1 -1
  100. package/dist/esm/modules/InteractionManager.mjs +199 -201
  101. package/dist/esm/modules/InteractionManager.mjs.map +1 -1
  102. package/dist/esm/modules/Platform/index.mjs +4 -3
  103. package/dist/esm/modules/Platform/index.mjs.map +1 -1
  104. package/dist/esm/modules/TextInputState/index.mjs +42 -40
  105. package/dist/esm/modules/TextInputState/index.mjs.map +1 -1
  106. package/dist/esm/modules/UIManager/index.mjs +33 -33
  107. package/dist/esm/modules/UIManager/index.mjs.map +1 -1
  108. package/dist/esm/modules/canUseDOM.mjs +1 -0
  109. package/dist/esm/modules/canUseDOM.mjs.map +1 -1
  110. package/dist/esm/modules/createDOMProps/index.mjs +271 -342
  111. package/dist/esm/modules/createDOMProps/index.mjs.map +1 -1
  112. package/dist/esm/modules/createEventHandle/index.mjs +44 -44
  113. package/dist/esm/modules/createEventHandle/index.mjs.map +1 -1
  114. package/dist/esm/modules/dismissKeyboard/index.mjs +3 -1
  115. package/dist/esm/modules/dismissKeyboard/index.mjs.map +1 -1
  116. package/dist/esm/modules/forwardedProps/index.mjs +104 -104
  117. package/dist/esm/modules/forwardedProps/index.mjs.map +1 -1
  118. package/dist/esm/modules/getBoundingClientRect/index.mjs +8 -7
  119. package/dist/esm/modules/getBoundingClientRect/index.mjs.map +1 -1
  120. package/dist/esm/modules/invariant.mjs +11 -10
  121. package/dist/esm/modules/invariant.mjs.map +1 -1
  122. package/dist/esm/modules/isSelectionValid/index.mjs +8 -7
  123. package/dist/esm/modules/isSelectionValid/index.mjs.map +1 -1
  124. package/dist/esm/modules/isWebColor/index.mjs +2 -1
  125. package/dist/esm/modules/isWebColor/index.mjs.map +1 -1
  126. package/dist/esm/modules/mergeRefs/index.mjs +17 -16
  127. package/dist/esm/modules/mergeRefs/index.mjs.map +1 -1
  128. package/dist/esm/modules/modality/index.mjs +115 -115
  129. package/dist/esm/modules/modality/index.mjs.map +1 -1
  130. package/dist/esm/modules/multiplyStyleLengthValue/index.mjs +11 -10
  131. package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -1
  132. package/dist/esm/modules/normalizeColor/index.mjs +15 -13
  133. package/dist/esm/modules/normalizeColor/index.mjs.map +1 -1
  134. package/dist/esm/modules/pick/index.mjs +8 -9
  135. package/dist/esm/modules/pick/index.mjs.map +1 -1
  136. package/dist/esm/modules/processColor/index.mjs +12 -10
  137. package/dist/esm/modules/processColor/index.mjs.map +1 -1
  138. package/dist/esm/modules/requestIdleCallback/index.mjs +14 -12
  139. package/dist/esm/modules/requestIdleCallback/index.mjs.map +1 -1
  140. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +27 -25
  141. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
  142. package/dist/esm/modules/setValueForStyles/index.mjs +15 -16
  143. package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -1
  144. package/dist/esm/modules/unitlessNumbers/index.mjs +60 -57
  145. package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -1
  146. package/dist/esm/modules/useElementLayout/index.mjs +12 -14
  147. package/dist/esm/modules/useElementLayout/index.mjs.map +1 -1
  148. package/dist/esm/modules/useEvent/index.mjs +28 -26
  149. package/dist/esm/modules/useEvent/index.mjs.map +1 -1
  150. package/dist/esm/modules/useHover/index.mjs +101 -101
  151. package/dist/esm/modules/useHover/index.mjs.map +1 -1
  152. package/dist/esm/modules/useLayoutEffect/index.mjs +2 -0
  153. package/dist/esm/modules/useLayoutEffect/index.mjs.map +1 -1
  154. package/dist/esm/modules/useLocale/index.mjs +15 -17
  155. package/dist/esm/modules/useLocale/index.mjs.map +1 -1
  156. package/dist/esm/modules/useLocale/isLocaleRTL.mjs +52 -58
  157. package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +1 -1
  158. package/dist/esm/modules/useMergeRefs/index.mjs +3 -3
  159. package/dist/esm/modules/useMergeRefs/index.mjs.map +1 -1
  160. package/dist/esm/modules/usePlatformMethods/index.mjs +11 -12
  161. package/dist/esm/modules/usePlatformMethods/index.mjs.map +1 -1
  162. package/dist/esm/modules/useStable/index.mjs +8 -6
  163. package/dist/esm/modules/useStable/index.mjs.map +1 -1
  164. package/dist/esm/styleTypes.mjs +0 -2
  165. package/dist/esm/types.mjs +0 -2
  166. package/package.json +10 -10
  167. package/src/StyleSheet/compiler/index.tsx +2 -5
  168. package/src/StyleSheet/preprocess.tsx +1 -4
  169. package/src/modules/createDOMProps/index.tsx +8 -22
  170. package/src/modules/forwardedProps/index.tsx +0 -1
  171. package/src/modules/mergeRefs/index.tsx +1 -1
  172. package/src/modules/pick/index.tsx +2 -4
  173. package/src/modules/setValueForStyles/dangerousStyleValue.tsx +1 -1
  174. package/src/modules/setValueForStyles/index.tsx +0 -3
  175. package/types/StyleSheet/compiler/createReactDOMStyle.d.ts.map +1 -1
  176. package/types/StyleSheet/compiler/index.d.ts.map +1 -1
  177. package/types/StyleSheet/compiler/normalizeColor.d.ts.map +1 -1
  178. package/types/StyleSheet/compiler/resolveShadowValue.d.ts.map +1 -1
  179. package/types/StyleSheet/index.d.ts +15 -16
  180. package/types/StyleSheet/index.d.ts.map +1 -1
  181. package/types/StyleSheet/preprocess.d.ts +1 -1
  182. package/types/StyleSheet/preprocess.d.ts.map +1 -1
  183. package/types/colorProps.d.ts.map +1 -1
  184. package/types/modules/AccessibilityUtil/index.d.ts +6 -5
  185. package/types/modules/AccessibilityUtil/index.d.ts.map +1 -1
  186. package/types/modules/AccessibilityUtil/isDisabled.d.ts.map +1 -1
  187. package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts.map +1 -1
  188. package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts.map +1 -1
  189. package/types/modules/ImageLoader/index.d.ts +1 -1
  190. package/types/modules/ImageLoader/index.d.ts.map +1 -1
  191. package/types/modules/InteractionManager.d.ts +3 -3
  192. package/types/modules/InteractionManager.d.ts.map +1 -1
  193. package/types/modules/Platform/index.d.ts.map +1 -1
  194. package/types/modules/TextInputState/index.d.ts.map +1 -1
  195. package/types/modules/UIManager/index.d.ts +1 -6
  196. package/types/modules/UIManager/index.d.ts.map +1 -1
  197. package/types/modules/createDOMProps/index.d.ts.map +1 -1
  198. package/types/modules/forwardedProps/index.d.ts +70 -74
  199. package/types/modules/forwardedProps/index.d.ts.map +1 -1
  200. package/types/modules/getBoundingClientRect/index.d.ts.map +1 -1
  201. package/types/modules/isWebColor/index.d.ts.map +1 -1
  202. package/types/modules/multiplyStyleLengthValue/index.d.ts.map +1 -1
  203. package/types/modules/normalizeColor/index.d.ts.map +1 -1
  204. package/types/modules/pick/index.d.ts.map +1 -1
  205. package/types/modules/processColor/index.d.ts.map +1 -1
  206. package/types/modules/requestIdleCallback/index.d.ts +3 -1
  207. package/types/modules/requestIdleCallback/index.d.ts.map +1 -1
  208. package/types/modules/setValueForStyles/index.d.ts.map +1 -1
  209. package/types/modules/unitlessNumbers/index.d.ts.map +1 -1
  210. package/types/modules/useLayoutEffect/index.d.ts +1 -1
  211. package/types/modules/useLayoutEffect/index.d.ts.map +1 -1
  212. package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.cjs +0 -265
  213. package/dist/cjs/StyleSheet/__tests__/compiler-test.cjs +0 -419
  214. package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.cjs +0 -160
  215. package/dist/cjs/StyleSheet/__tests__/index-test.cjs +0 -436
  216. package/dist/cjs/StyleSheet/__tests__/preprocess-test.cjs +0 -121
  217. package/dist/cjs/StyleSheet/__tests__/validate-test.cjs +0 -51
  218. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +0 -57
  219. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +0 -46
  220. package/dist/cjs/modules/Platform/__tests__/index-test.cjs +0 -56
  221. package/dist/cjs/modules/UIManager/__tests__/index-test.cjs +0 -111
  222. package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +0 -177
  223. package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +0 -422
  224. package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +0 -48
  225. package/dist/cjs/modules/modality/__tests__/index-test.cjs +0 -59
  226. package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.cjs +0 -38
  227. package/dist/cjs/modules/processColor/__tests__/index-test.cjs +0 -85
  228. package/dist/cjs/modules/useEvent/__tests__/index-test.cjs +0 -490
  229. package/dist/cjs/modules/useHover/__tests__/index-test.cjs +0 -382
  230. package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +0 -125
  231. package/dist/cjs/modules/useStable/__tests__/index-test.cjs +0 -122
  232. package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs +0 -242
  233. package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs.map +0 -1
  234. package/dist/esm/StyleSheet/__tests__/compiler-test.mjs +0 -420
  235. package/dist/esm/StyleSheet/__tests__/compiler-test.mjs.map +0 -1
  236. package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs +0 -137
  237. package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs.map +0 -1
  238. package/dist/esm/StyleSheet/__tests__/index-test.mjs +0 -413
  239. package/dist/esm/StyleSheet/__tests__/index-test.mjs.map +0 -1
  240. package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs +0 -122
  241. package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs.map +0 -1
  242. package/dist/esm/StyleSheet/__tests__/validate-test.mjs +0 -52
  243. package/dist/esm/StyleSheet/__tests__/validate-test.mjs.map +0 -1
  244. package/dist/esm/StyleSheet/compiler/hash.mjs.map +0 -1
  245. package/dist/esm/index.js.map +0 -1
  246. package/dist/esm/index.mjs.map +0 -1
  247. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs +0 -34
  248. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs.map +0 -1
  249. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs +0 -23
  250. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs.map +0 -1
  251. package/dist/esm/modules/Platform/__tests__/index-test.mjs +0 -33
  252. package/dist/esm/modules/Platform/__tests__/index-test.mjs.map +0 -1
  253. package/dist/esm/modules/UIManager/__tests__/index-test.mjs +0 -88
  254. package/dist/esm/modules/UIManager/__tests__/index-test.mjs.map +0 -1
  255. package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs +0 -154
  256. package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs.map +0 -1
  257. package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs +0 -399
  258. package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs.map +0 -1
  259. package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs +0 -25
  260. package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs.map +0 -1
  261. package/dist/esm/modules/modality/__tests__/index-test.mjs +0 -60
  262. package/dist/esm/modules/modality/__tests__/index-test.mjs.map +0 -1
  263. package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs +0 -15
  264. package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs.map +0 -1
  265. package/dist/esm/modules/processColor/__tests__/index-test.mjs +0 -62
  266. package/dist/esm/modules/processColor/__tests__/index-test.mjs.map +0 -1
  267. package/dist/esm/modules/useEvent/__tests__/index-test.mjs +0 -467
  268. package/dist/esm/modules/useEvent/__tests__/index-test.mjs.map +0 -1
  269. package/dist/esm/modules/useHover/__tests__/index-test.mjs +0 -359
  270. package/dist/esm/modules/useHover/__tests__/index-test.mjs.map +0 -1
  271. package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs +0 -102
  272. package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs.map +0 -1
  273. package/dist/esm/modules/useStable/__tests__/index-test.mjs +0 -99
  274. package/dist/esm/modules/useStable/__tests__/index-test.mjs.map +0 -1
  275. package/dist/esm/styleTypes.mjs.map +0 -1
  276. package/dist/esm/types.mjs.map +0 -1
  277. package/src/StyleSheet/__tests__/compiler-createReactDOMStyle-test.tsx +0 -236
  278. package/src/StyleSheet/__tests__/compiler-test.tsx +0 -426
  279. package/src/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.tsx +0 -169
  280. package/src/StyleSheet/__tests__/index-test.tsx +0 -406
  281. package/src/StyleSheet/__tests__/preprocess-test.tsx +0 -107
  282. package/src/StyleSheet/__tests__/validate-test.tsx +0 -42
  283. package/src/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.tsx +0 -44
  284. package/src/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.tsx +0 -25
  285. package/src/modules/Platform/__tests__/index-test.tsx +0 -45
  286. package/src/modules/UIManager/__tests__/index-test.tsx +0 -87
  287. package/src/modules/createDOMProps/__tests__/index-test.tsx +0 -138
  288. package/src/modules/createEventHandle/__tests__/index-test.tsx +0 -459
  289. package/src/modules/mergeRefs/__tests__/index-test.tsx +0 -32
  290. package/src/modules/modality/__tests__/index-test.tsx +0 -66
  291. package/src/modules/multiplyStyleLengthValue/__tests__/index-test.tsx +0 -23
  292. package/src/modules/processColor/__tests__/index-test.tsx +0 -78
  293. package/src/modules/useEvent/__tests__/index-test.tsx +0 -511
  294. package/src/modules/useHover/__tests__/index-test.tsx +0 -342
  295. package/src/modules/useMergeRefs/__tests__/index-test.tsx +0 -91
  296. package/src/modules/useStable/__tests__/index-test.tsx +0 -101
@@ -1 +1 @@
1
- {"version":3,"names":["getModality","useEvent","useLayoutEffectImpl","useLayoutEffect","emptyObject","opts","passive","lockEventType","unlockEventType","supportsPointerEvent","window","PointerEvent","dispatchCustomEvent","target","type","payload","event","document","createEvent","bubbles","cancelable","detail","initCustomEvent","dispatchEvent","getPointerType","pointerType","useHover","targetRef","config","contain","disabled","onHoverStart","onHoverChange","onHoverUpdate","onHoverEnd","canUsePE","addMoveListener","addEnterListener","addLeaveListener","addLockListener","addUnlockListener","current","hoverEnd","e","leaveListener","moveListener","x","clientX","y","clientY","hoverStart","enterListener","lockListener","lockEvent","unlockListener"],"sources":["../../../../src/modules/useHover/index.tsx"],"sourcesContent":[null],"mappings":"AASA,SAASA,WAAA,QAAmB;AAC5B,SAASC,QAAA,QAAgB;AACzB,SAASC,mBAAA,IAAuBC,eAAA,QAAuB;AAmBvD,MAAMC,WAAA,GAAc,CAAC;AACrB,MAAMC,IAAA,GAAO;EAAEC,OAAA,EAAS;AAAK;AAC7B,MAAMC,aAAA,GAAgB;AACtB,MAAMC,eAAA,GAAkB;AACxB,MAAMC,oBAAA,GAAuBA,CAAA,KAC3B,CAAC,EAAE,OAAOC,MAAA,KAAW,eAAeA,MAAA,CAAOC,YAAA,IAAgB;AAE7D,SAASC,oBACPC,MAAA,EACAC,IAAA,EACAC,OAAA,EAOA;EACA,MAAMC,KAAA,GAAQC,QAAA,CAASC,WAAA,CAAY,aAAa;EAChD,MAAM;IAA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nD,IAAId,OAAA,EAAS;YACXjB,mBAAA,CAAoBC,OAAA,EAAQN,aAAa;UAC3C;UACA2C,UAAA,CAAWP,CAAC;UACZ,MAAMS,YAAA,GAAe,SAAAA,CAAUC,SAAA,EAAW;YACxC,IAAIA,SAAA,CAAUxC,MAAA,KAAWA,OAAA,EAAQ;cAC/B6B,QAAA,CAASC,CAAC;YACZ;UACF;UACA,MAAMW,cAAA,GAAiB,SAAAA,CAAUD,SAAA,EAAW;YAC1C,IAAIA,SAAA,CAAUxC,MAAA,KAAWA,OAAA,EAAQ;cAC/BqC,UAAA,CAAWP,CAAC;YACd;UACF;UACAJ,eAAA,CAAgB1B,OAAA,EAAQ,CAACiB,QAAA,GAAWsB,YAAA,GAAe,IAAI;UACvDZ,iBAAA,CAAkB3B,OAAA,EAAQ,CAACiB,QAAA,GAAWwB,cAAA,GAAiB,IAAI;QAC7D;MACF;MAEAjB,gBAAA,CAAiBxB,MAAA,EAAQ,CAACiB,QAAA,GAAWqB,aAAA,GAAgB,IAAI;IAC3D;EACF,GAAG,CACDd,gBAAA,EACAD,eAAA,EACAE,gBAAA,EACAC,eAAA,EACAC,iBAAA,EACAX,OAAA,EACAC,QAAA,EACAC,YAAA,EACAC,aAAA,EACAC,aAAA,EACAC,UAAA,EACAP,SAAA,CACD;AACH","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/useHover/index.js"],"sourcesContent":["import { getModality } from \"../modality/index\";\nimport { useEvent } from \"../useEvent/index\";\nimport { useLayoutEffectImpl as useLayoutEffect } from \"../useLayoutEffect/index\";\nconst emptyObject = {};\nconst opts = { passive: true };\nconst lockEventType = \"react-gui:hover:lock\";\nconst unlockEventType = \"react-gui:hover:unlock\";\nconst supportsPointerEvent = () => !!(typeof window !== \"undefined\" && window.PointerEvent != null);\nfunction dispatchCustomEvent(target, type, payload) {\n const event = document.createEvent(\"CustomEvent\");\n const { bubbles = true, cancelable = true, detail } = payload || emptyObject;\n event.initCustomEvent(type, bubbles, cancelable, detail);\n target.dispatchEvent(event);\n}\nfunction getPointerType(event) {\n const { pointerType } = event;\n return pointerType != null ? pointerType : getModality();\n}\nfunction useHover(targetRef, config) {\n const { contain, disabled, onHoverStart, onHoverChange, onHoverUpdate, onHoverEnd } = config;\n const canUsePE = supportsPointerEvent();\n const addMoveListener = useEvent(canUsePE ? \"pointermove\" : \"mousemove\", opts);\n const addEnterListener = useEvent(canUsePE ? \"pointerenter\" : \"mouseenter\", opts);\n const addLeaveListener = useEvent(canUsePE ? \"pointerleave\" : \"mouseleave\", opts);\n const addLockListener = useEvent(lockEventType, opts);\n const addUnlockListener = useEvent(unlockEventType, opts);\n useLayoutEffect(() => {\n const target = targetRef.current;\n if (target !== null) {\n const hoverEnd = function(e) {\n if (onHoverEnd != null) {\n onHoverEnd(e);\n }\n if (onHoverChange != null) {\n onHoverChange(false);\n }\n addMoveListener(target, null);\n addLeaveListener(target, null);\n };\n const leaveListener = function(e) {\n const target2 = targetRef.current;\n if (target2 != null && getPointerType(e) !== \"touch\") {\n if (contain) {\n dispatchCustomEvent(target2, unlockEventType);\n }\n hoverEnd(e);\n }\n };\n const moveListener = function(e) {\n if (getPointerType(e) !== \"touch\") {\n if (onHoverUpdate != null) {\n if (e.x == null) {\n e.x = e.clientX;\n }\n if (e.y == null) {\n e.y = e.clientY;\n }\n onHoverUpdate(e);\n }\n }\n };\n const hoverStart = function(e) {\n if (onHoverStart != null) {\n onHoverStart(e);\n }\n if (onHoverChange != null) {\n onHoverChange(true);\n }\n if (onHoverUpdate != null) {\n addMoveListener(target, !disabled ? moveListener : null);\n }\n addLeaveListener(target, !disabled ? leaveListener : null);\n };\n const enterListener = function(e) {\n const target2 = targetRef.current;\n if (target2 != null && getPointerType(e) !== \"touch\") {\n if (contain) {\n dispatchCustomEvent(target2, lockEventType);\n }\n hoverStart(e);\n const lockListener = function(lockEvent) {\n if (lockEvent.target !== target2) {\n hoverEnd(e);\n }\n };\n const unlockListener = function(lockEvent) {\n if (lockEvent.target !== target2) {\n hoverStart(e);\n }\n };\n addLockListener(target2, !disabled ? lockListener : null);\n addUnlockListener(target2, !disabled ? unlockListener : null);\n }\n };\n addEnterListener(target, !disabled ? enterListener : null);\n }\n }, [\n addEnterListener,\n addMoveListener,\n addLeaveListener,\n addLockListener,\n addUnlockListener,\n contain,\n disabled,\n onHoverStart,\n onHoverChange,\n onHoverUpdate,\n onHoverEnd,\n targetRef\n ]);\n}\nexport {\n useHover\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAGA,MAAM,cAAc,CAAC;AACrB,MAAM,OAAO,EAAE,SAAS,KAAK;AAC7B,MAAM,gBAAgB;AACtB,MAAM,kBAAkB;AACxB,MAAM,6BAA6B,CAAC,EAAE,OAAO,WAAW,eAAe,OAAO,gBAAgB;AAC9F,SAAS,oBAAoB,QAAQ,MAAM,SAAS;CAClD,MAAM,QAAQ,SAAS,YAAY,aAAa;CAChD,MAAM,EAAE,UAAU,MAAM,aAAa,MAAM,WAAW,WAAW;CACjE,MAAM,gBAAgB,MAAM,SAAS,YAAY,MAAM;CACvD,OAAO,cAAc,KAAK;AAC5B;AACA,SAAS,eAAe,OAAO;CAC7B,MAAM,EAAE,gBAAgB;CACxB,OAAO,eAAe,OAAO,cAAc,YAAY;AACzD;AACA,SAAS,SAAS,WAAW,QAAQ;CACnC,MAAM,EAAE,SAAS,UAAU,cAAc,eAAe,eAAe,eAAe;CACtF,MAAM,WAAW,qBAAqB;CACtC,MAAM,kBAAkB,SAAS,WAAW,gBAAgB,aAAa,IAAI;CAC7E,MAAM,mBAAmB,SAAS,WAAW,iBAAiB,cAAc,IAAI;CAChF,MAAM,mBAAmB,SAAS,WAAW,iBAAiB,cAAc,IAAI;CAChF,MAAM,kBAAkB,SAAS,eAAe,IAAI;CACpD,MAAM,oBAAoB,SAAS,iBAAiB,IAAI;CACxD,0BAAsB;EACpB,MAAM,SAAS,UAAU;EACzB,IAAI,WAAW,MAAM;GACnB,MAAM,WAAW,SAAS,GA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AAe,IAAI;KACxD,kBAAkB,SAAS,CAAC,WAAW,iBAAiB,IAAI;IAC9D;GACF;GACA,iBAAiB,QAAQ,CAAC,WAAW,gBAAgB,IAAI;EAC3D;CACF,GAAG;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;AACH"}
@@ -1,5 +1,7 @@
1
1
  import React from "react";
2
2
  import { canUseDOM } from "../canUseDOM.mjs";
3
+
3
4
  const useLayoutEffectImpl = canUseDOM ? React.useLayoutEffect : React.useEffect;
5
+
4
6
  export { useLayoutEffectImpl };
5
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","canUseDOM","useLayoutEffectImpl","useLayoutEffect","useEffect"],"sources":["../../../../src/modules/useLayoutEffect/index.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAYlB,SAASC,SAAA,QAAiB;AAEnB,MAAMC,mBAAA,GAAsBD,SAAA,GAAYD,KAAA,CAAMG,eAAA,GAAkBH,KAAA,CAAMI,SAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/useLayoutEffect/index.js"],"sourcesContent":["import React from \"react\";\nimport { canUseDOM } from \"../canUseDOM\";\nconst useLayoutEffectImpl = canUseDOM ? React.useLayoutEffect : React.useEffect;\nexport {\n useLayoutEffectImpl\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,MAAM,sBAAsB,YAAY,MAAM,kBAAkB,MAAM"}
@@ -1,31 +1,29 @@
1
1
  import React from "react";
2
2
  import { isLocaleRTL } from "./isLocaleRTL.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
+
4
5
  const defaultLocale = {
5
- direction: "ltr",
6
- locale: "en-US"
6
+ direction: "ltr",
7
+ locale: "en-US"
7
8
  };
8
9
  const LocaleContext = React.createContext(defaultLocale);
9
10
  function getLocaleDirection(locale) {
10
- return isLocaleRTL(locale) ? "rtl" : "ltr";
11
+ return isLocaleRTL(locale) ? "rtl" : "ltr";
11
12
  }
12
13
  function LocaleProvider(props) {
13
- const {
14
- direction,
15
- locale,
16
- children
17
- } = props;
18
- const needsContext = direction || locale;
19
- return needsContext ? /* @__PURE__ */jsx(LocaleContext.Provider, {
20
- value: {
21
- direction: locale ? getLocaleDirection(locale) : direction,
22
- locale
23
- },
24
- children
25
- }) : children;
14
+ const { direction, locale, children } = props;
15
+ const needsContext = direction || locale;
16
+ return needsContext ? /* @__PURE__ */ jsx(LocaleContext.Provider, {
17
+ value: {
18
+ direction: locale ? getLocaleDirection(locale) : direction,
19
+ locale
20
+ },
21
+ children
22
+ }) : children;
26
23
  }
27
24
  function useLocaleContext() {
28
- return React.useContext(LocaleContext);
25
+ return React.useContext(LocaleContext);
29
26
  }
27
+
30
28
  export { LocaleProvider, getLocaleDirection, useLocaleContext };
31
29
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","isLocaleRTL","jsx","defaultLocale","direction","locale","LocaleContext","createContext","getLocaleDirection","LocaleProvider","props","children","needsContext","Provider","value","useLocaleContext","useContext"],"sources":["../../../../src/modules/useLocale/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AASlB,SAASC,WAAA,QAAmB;AAgCxB,SAAAC,GAAA;AAhBJ,MAAMC,aAAA,GAAgB;EACpBC,SAAA,EAAW;EACXC,MAAA,EAAQ;AACV;AAEA,MAAMC,aAAA,GAAgBN,KAAA,CAAMO,aAAA,CAA2BJ,aAAoB;AAEpE,SAASK,mBAAmBH,MAAA,EAAkC;EACnE,OAAOJ,WAAA,CAAYI,MAAM,IAAI,QAAQ;AACvC;AAEO,SAASI,eAAeC,KAAA,EAAsB;EACnD,MAAM;IAAEN,SAAA;IAAWC,MAAA;IAAQM;EAAS,IAAID,KAAA;EACxC,MAAME,YAAA,GAAeR,SAAA,IAAaC,MAAA;EAElC,OAAOO,YAAA,GACL,eAAAV,GAAA,CAACI,aAAA,CAAcO,QAAA,EAAd;IACCC,KAAA,EAAO;MACLV,SAAA,EAAWC,MAAA,GAASG,kBAAA,CAAmBH,MAAM,IAAID,SAAA;MACjDC;IACF;IAECM;EAAA,CACH,IAEAA,QAAA;AAEJ;AAEO,SAASI,iBAAA,EAAgC;EAC9C,OAAOf,KAAA,CAAMgB,UAAA,CAAWV,aAAa;AACvC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/useLocale/index.js"],"sourcesContent":["import React from \"react\";\nimport { isLocaleRTL } from \"./isLocaleRTL\";\nimport { jsx } from \"react/jsx-runtime\";\nconst defaultLocale = {\n direction: \"ltr\",\n locale: \"en-US\"\n};\nconst LocaleContext = React.createContext(defaultLocale);\nfunction getLocaleDirection(locale) {\n return isLocaleRTL(locale) ? \"rtl\" : \"ltr\";\n}\nfunction LocaleProvider(props) {\n const { direction, locale, children } = props;\n const needsContext = direction || locale;\n return needsContext ? /* @__PURE__ */ jsx(\n LocaleContext.Provider,\n {\n value: {\n direction: locale ? getLocaleDirection(locale) : direction,\n locale\n },\n children\n }\n ) : children;\n}\nfunction useLocaleContext() {\n return React.useContext(LocaleContext);\n}\nexport {\n LocaleProvider,\n getLocaleDirection,\n useLocaleContext\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAGA,MAAM,gBAAgB;CACpB,WAAW;CACX,QAAQ;AACV;AACA,MAAM,gBAAgB,MAAM,cAAc,aAAa;AACvD,SAAS,mBAAmB,QAAQ;CAClC,OAAO,YAAY,MAAM,IAAI,QAAQ;AACvC;AACA,SAAS,eAAe,OAAO;CAC7B,MAAM,EAAE,WAAW,QAAQ,aAAa;CACxC,MAAM,eAAe,aAAa;CAClC,OAAO,eAA+B,oBACpC,cAAc,UACd;EACE,OAAO;GACL,WAAW,SAAS,mBAAmB,MAAM,IAAI;GACjD;EACF;EACA;CACF,CACF,IAAI;AACN;AACA,SAAS,mBAAmB;CAC1B,OAAO,MAAM,WAAW,aAAa;AACvC"}
@@ -1,63 +1,57 @@
1
- const rtlScripts = /* @__PURE__ */new Set(["Arab", "Syrc", "Samr", "Mand", "Thaa", "Mend", "Nkoo", "Adlm", "Rohg", "Hebr"]);
2
- const rtlLangs = /* @__PURE__ */new Set(["ae",
3
- // Avestan
4
- "ar",
5
- // Arabic
6
- "arc",
7
- // Aramaic
8
- "bcc",
9
- // Southern Balochi
10
- "bqi",
11
- // Bakthiari
12
- "ckb",
13
- // Sorani
14
- "dv",
15
- // Dhivehi
16
- "fa", "far",
17
- // Persian
18
- "glk",
19
- // Gilaki
20
- "he", "iw",
21
- // Hebrew
22
- "khw",
23
- // Khowar
24
- "ks",
25
- // Kashmiri
26
- "ku",
27
- // Kurdish
28
- "mzn",
29
- // Mazanderani
30
- "nqo",
31
- // N'Ko
32
- "pnb",
33
- // Western Punjabi
34
- "ps",
35
- // Pashto
36
- "sd",
37
- // Sindhi
38
- "ug",
39
- // Uyghur
40
- "ur",
41
- // Urdu
42
- "yi"
43
- // Yiddish
1
+ const rtlScripts = /* @__PURE__ */ new Set([
2
+ "Arab",
3
+ "Syrc",
4
+ "Samr",
5
+ "Mand",
6
+ "Thaa",
7
+ "Mend",
8
+ "Nkoo",
9
+ "Adlm",
10
+ "Rohg",
11
+ "Hebr"
44
12
  ]);
45
- const cache = /* @__PURE__ */new Map();
13
+ const rtlLangs = /* @__PURE__ */ new Set([
14
+ "ae",
15
+ "ar",
16
+ "arc",
17
+ "bcc",
18
+ "bqi",
19
+ "ckb",
20
+ "dv",
21
+ "fa",
22
+ "far",
23
+ "glk",
24
+ "he",
25
+ "iw",
26
+ "khw",
27
+ "ks",
28
+ "ku",
29
+ "mzn",
30
+ "nqo",
31
+ "pnb",
32
+ "ps",
33
+ "sd",
34
+ "ug",
35
+ "ur",
36
+ "yi"
37
+ ]);
38
+ const cache = /* @__PURE__ */ new Map();
46
39
  function isLocaleRTL(locale) {
47
- const cachedRTL = cache.get(locale);
48
- if (cachedRTL) {
49
- return cachedRTL;
50
- }
51
- let isRTL = false;
52
- if (Intl.Locale) {
53
- const script = new Intl.Locale(locale).maximize().script;
54
- isRTL = rtlScripts.has(script);
55
- } else {
56
- const lang = locale.split("-")[0];
57
- isRTL = rtlLangs.has(lang);
58
- }
59
- cache.set(locale, isRTL);
60
- return isRTL;
40
+ const cachedRTL = cache.get(locale);
41
+ if (cachedRTL) {
42
+ return cachedRTL;
43
+ }
44
+ let isRTL = false;
45
+ if (Intl.Locale) {
46
+ const script = new Intl.Locale(locale).maximize().script;
47
+ isRTL = rtlScripts.has(script);
48
+ } else {
49
+ const lang = locale.split("-")[0];
50
+ isRTL = rtlLangs.has(lang);
51
+ }
52
+ cache.set(locale, isRTL);
53
+ return isRTL;
61
54
  }
55
+
62
56
  export { isLocaleRTL };
63
57
  //# sourceMappingURL=isLocaleRTL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["rtlScripts","Set","rtlLangs","cache","Map","isLocaleRTL","locale","cachedRTL","get","isRTL","Intl","Locale","script","maximize","has","lang","split","set"],"sources":["../../../../src/modules/useLocale/isLocaleRTL.tsx"],"sourcesContent":[null],"mappings":"AASA,MAAMA,UAAA,GAAa,mBAAIC,GAAA,CAAI,CACzB,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,OACD;AAED,MAAMC,QAAA,GAAW,mBAAID,GAAA,CAAI,CACvB;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA,MACA;AAAA;AACA;AAAA;AACA,MACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AAAA,CACD;AAED,MAAME,KAAA,GAAQ,mBAAIC,GAAA,CAAI;AAKf,SAASC,YAAYC,MAAA,EAAyB;EACnD,MAAMC,SAAA,GAAYJ,KAAA,CAAMK,GAAA,CAAIF,MAAM;EAClC,IAAIC,SAAA,EAAW;IACb,OAAOA,SAAA;EACT;EAEA,IAAIE,KAAA,GAAQ;EAEZ,IAAIC,IAAA,CAAKC,MAAA,EAAQ;IAEf,MAAMC,MAAA,GAAS,IAAIF,IAAA,CAAKC,MAAA,CAAOL,MAAM,EAAEO,QAAA,CAAS,EAAED,MAAA;IAClDH,KAAA,GAAQT,UAAA,CAAWc,GAAA,CAAIF,MAAa;EACtC,OAAO;IAEL,MAAMG,IAAA,GAAOT,MAAA,CAAOU,KAAA,CAAM,GAAG,EAAE,CAAC;IAChCP,KAAA,GAAQP,QAAA,CAASY,GAAA,CAAIC,IAAI;EAC3B;EAEAZ,KAAA,CAAMc,GAAA,CAAIX,MAAA,EAAQG,KAAK;EACvB,OAAOA,KAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"isLocaleRTL.js","names":[],"sources":["esm/modules/useLocale/isLocaleRTL.js"],"sourcesContent":["const rtlScripts = /* @__PURE__ */ new Set([\n \"Arab\",\n \"Syrc\",\n \"Samr\",\n \"Mand\",\n \"Thaa\",\n \"Mend\",\n \"Nkoo\",\n \"Adlm\",\n \"Rohg\",\n \"Hebr\"\n]);\nconst rtlLangs = /* @__PURE__ */ new Set([\n \"ae\",\n // Avestan\n \"ar\",\n // Arabic\n \"arc\",\n // Aramaic\n \"bcc\",\n // Southern Balochi\n \"bqi\",\n // Bakthiari\n \"ckb\",\n // Sorani\n \"dv\",\n // Dhivehi\n \"fa\",\n \"far\",\n // Persian\n \"glk\",\n // Gilaki\n \"he\",\n \"iw\",\n // Hebrew\n \"khw\",\n // Khowar\n \"ks\",\n // Kashmiri\n \"ku\",\n // Kurdish\n \"mzn\",\n // Mazanderani\n \"nqo\",\n // N'Ko\n \"pnb\",\n // Western Punjabi\n \"ps\",\n // Pashto\n \"sd\",\n // Sindhi\n \"ug\",\n // Uyghur\n \"ur\",\n // Urdu\n \"yi\"\n // Yiddish\n]);\nconst cache = /* @__PURE__ */ new Map();\nfunction isLocaleRTL(locale) {\n const cachedRTL = cache.get(locale);\n if (cachedRTL) {\n return cachedRTL;\n }\n let isRTL = false;\n if (Intl.Locale) {\n const script = new Intl.Locale(locale).maximize().script;\n isRTL = rtlScripts.has(script);\n } else {\n const lang = locale.split(\"-\")[0];\n isRTL = rtlLangs.has(lang);\n }\n cache.set(locale, isRTL);\n return isRTL;\n}\nexport {\n isLocaleRTL\n};\n//# sourceMappingURL=isLocaleRTL.js.map\n"],"mappings":";AAAA,MAAM,6BAA6B,IAAI,IAAI;CACzC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,2BAA2B,IAAI,IAAI;CACvC;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;AAEF,CAAC;AACD,MAAM,wBAAwB,IAAI,IAAI;AACtC,SAAS,YAAY,QAAQ;CAC3B,MAAM,YAAY,MAAM,IAAI,MAAM;CAClC,IAAI,WAAW;EACb,OAAO;CACT;CACA,IAAI,QAAQ;CACZ,IAAI,KAAK,QAAQ;EACf,MAAM,SAAS,IAAI,KAAK,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;EAClD,QAAQ,WAAW,IAAI,MAAM;CAC/B,OAAO;EACL,MAAM,OAAO,OAAO,MAAM,GAAG,CAAC,CAAC;EAC/B,QAAQ,SAAS,IAAI,IAAI;CAC3B;CACA,MAAM,IAAI,QAAQ,KAAK;CACvB,OAAO;AACT"}
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
2
  import { mergeRefs } from "../mergeRefs/index.mjs";
3
+
3
4
  function useMergeRefs(...args) {
4
- return React.useMemo(() => mergeRefs(...args),
5
- // eslint-disable-next-line
6
- [...args]);
5
+ return React.useMemo(() => mergeRefs(...args), [...args]);
7
6
  }
7
+
8
8
  export { useMergeRefs };
9
9
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","mergeRefs","useMergeRefs","args","useMemo"],"sources":["../../../../src/modules/useMergeRefs/index.tsx"],"sourcesContent":[null],"mappings":"AASA,YAAYA,KAAA,MAAW;AAEvB,SAASC,SAAA,QAAiB;AAEnB,SAASC,aAAA,GACXC,IAAA,EACiC;EACpC,OAAOH,KAAA,CAAMI,OAAA,CACX,MAAMH,SAAA,CAAU,GAAGE,IAAI;EAAA;EAEvB,CAAC,GAAGA,IAAI,CACV;AACF","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/useMergeRefs/index.js"],"sourcesContent":["import * as React from \"react\";\nimport { mergeRefs } from \"../mergeRefs/index\";\nfunction useMergeRefs(...args) {\n return React.useMemo(\n () => mergeRefs(...args),\n // eslint-disable-next-line\n [...args]\n );\n}\nexport {\n useMergeRefs\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,SAAS,aAAa,GAAG,MAAM;CAC7B,OAAO,MAAM,cACL,UAAU,GAAG,IAAI,GAEvB,CAAC,GAAG,IAAI,CACV;AACF"}
@@ -1,17 +1,16 @@
1
1
  import { createMeasure, createMeasureInWindow, createMeasureLayout } from "@tamagui/use-element-layout";
2
2
  import { useStable } from "../useStable/index.mjs";
3
- function usePlatformMethods({
4
- pointerEvents,
5
- style
6
- }) {
7
- const ref = useStable(() => hostNode => {
8
- if (hostNode != null) {
9
- hostNode.measure = createMeasure(hostNode);
10
- hostNode.measureLayout = createMeasureLayout(hostNode);
11
- hostNode.measureInWindow = createMeasureInWindow(hostNode);
12
- }
13
- });
14
- return ref;
3
+
4
+ function usePlatformMethods({ pointerEvents, style }) {
5
+ const ref = useStable(() => (hostNode) => {
6
+ if (hostNode != null) {
7
+ hostNode.measure = createMeasure(hostNode);
8
+ hostNode.measureLayout = createMeasureLayout(hostNode);
9
+ hostNode.measureInWindow = createMeasureInWindow(hostNode);
10
+ }
11
+ });
12
+ return ref;
15
13
  }
14
+
16
15
  export { usePlatformMethods };
17
16
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["createMeasure","createMeasureInWindow","createMeasureLayout","useStable","usePlatformMethods","pointerEvents","style","ref","hostNode","measure","measureLayout","measureInWindow"],"sources":["../../../../src/modules/usePlatformMethods/index.tsx"],"sourcesContent":[null],"mappings":"AASA,SACEA,aAAA,EACAC,qBAAA,EACAC,mBAAA,QACK;AAEP,SAASC,SAAA,QAAiB;AAMnB,SAASC,mBAAmB;EACjCC,aAAA;EACAC;AACF,GAG4B;EAG1B,MAAMC,GAAA,GAAMJ,SAAA,CAAU,MAAOK,QAAA,IAAkB;IAC7C,IAAIA,QAAA,IAAY,MAAM;MACpBA,QAAA,CAASC,OAAA,GAAUT,aAAA,CAAcQ,QAAQ;MACzCA,QAAA,CAASE,aAAA,GAAgBR,mBAAA,CAAoBM,QAAQ;MACrDA,QAAA,CAASG,eAAA,GAAkBV,qBAAA,CAAsBO,QAAQ;IAC3D;EACF,CAAC;EAED,OAAOD,GAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/usePlatformMethods/index.js"],"sourcesContent":["import {\n createMeasure,\n createMeasureInWindow,\n createMeasureLayout\n} from \"@tamagui/use-element-layout\";\nimport { useStable } from \"../useStable/index\";\nfunction usePlatformMethods({\n pointerEvents,\n style\n}) {\n const ref = useStable(() => (hostNode) => {\n if (hostNode != null) {\n hostNode.measure = createMeasure(hostNode);\n hostNode.measureLayout = createMeasureLayout(hostNode);\n hostNode.measureInWindow = createMeasureInWindow(hostNode);\n }\n });\n return ref;\n}\nexport {\n usePlatformMethods\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAMA,SAAS,mBAAmB,EAC1B,eACA,SACC;CACD,MAAM,MAAM,iBAAiB,aAAa;EACxC,IAAI,YAAY,MAAM;GACpB,SAAS,UAAU,cAAc,QAAQ;GACzC,SAAS,gBAAgB,oBAAoB,QAAQ;GACrD,SAAS,kBAAkB,sBAAsB,QAAQ;EAC3D;CACF,CAAC;CACD,OAAO;AACT"}
@@ -1,11 +1,13 @@
1
1
  import * as React from "react";
2
- const UNINITIALIZED = typeof Symbol === "function" && typeof /* @__PURE__ */Symbol() === "symbol" ? /* @__PURE__ */Symbol() : Object.freeze({});
2
+
3
+ const UNINITIALIZED = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol() === "symbol" ? /* @__PURE__ */ Symbol() : Object.freeze({});
3
4
  function useStable(getInitialValue) {
4
- const ref = React.useRef(UNINITIALIZED);
5
- if (ref.current === UNINITIALIZED) {
6
- ref.current = getInitialValue();
7
- }
8
- return ref.current;
5
+ const ref = React.useRef(UNINITIALIZED);
6
+ if (ref.current === UNINITIALIZED) {
7
+ ref.current = getInitialValue();
8
+ }
9
+ return ref.current;
9
10
  }
11
+
10
12
  export { useStable };
11
13
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","UNINITIALIZED","Symbol","Object","freeze","useStable","getInitialValue","ref","useRef","current"],"sources":["../../../../src/modules/useStable/index.tsx"],"sourcesContent":[null],"mappings":"AASA,YAAYA,KAAA,MAAW;AAEvB,MAAMC,aAAA,GACJ,OAAOC,MAAA,KAAW,cAAc,OAAO,eAAAA,MAAA,CAAO,MAAM,WAChD,eAAAA,MAAA,CAAO,IACPC,MAAA,CAAOC,MAAA,CAAO,CAAC,CAAC;AAEf,SAASC,UAAaC,eAAA,EAA6B;EACxD,MAAMC,GAAA,GAAMP,KAAA,CAAMQ,MAAA,CAAYP,aAAa;EAC3C,IAAIM,GAAA,CAAIE,OAAA,KAAYR,aAAA,EAAe;IACjCM,GAAA,CAAIE,OAAA,GAAUH,eAAA,CAAgB;EAChC;EAEA,OAAOC,GAAA,CAAIE,OAAA;AACb","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/useStable/index.js"],"sourcesContent":["import * as React from \"react\";\nconst UNINITIALIZED = typeof Symbol === \"function\" && typeof /* @__PURE__ */ Symbol() === \"symbol\" ? /* @__PURE__ */ Symbol() : Object.freeze({});\nfunction useStable(getInitialValue) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = getInitialValue();\n }\n return ref.current;\n}\nexport {\n useStable\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,gBAAgB,OAAO,WAAW,cAAc,OAAuB,uBAAO,MAAM,WAA2B,uBAAO,IAAI,OAAO,OAAO,CAAC,CAAC;AAChJ,SAAS,UAAU,iBAAiB;CAClC,MAAM,MAAM,MAAM,OAAO,aAAa;CACtC,IAAI,IAAI,YAAY,eAAe;EACjC,IAAI,UAAU,gBAAgB;CAChC;CACA,OAAO,IAAI;AACb"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=styleTypes.mjs.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/react-native-web-internals",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.1097.1",
4
4
  "description": "React Native for Web",
5
5
  "keywords": [
6
6
  "react",
@@ -36,17 +36,17 @@
36
36
  "clean:build": "tamagui-build clean:build"
37
37
  },
38
38
  "dependencies": {
39
- "@tamagui/normalize-css-color": "2.7.7",
40
- "@tamagui/react-native-use-pressable": "2.7.7",
41
- "@tamagui/react-native-use-responder-events": "2.7.7",
42
- "@tamagui/simple-hash": "2.7.7",
43
- "@tamagui/use-element-layout": "2.7.7",
44
- "@tamagui/web": "2.7.7"
39
+ "@tamagui/normalize-css-color": "3.0.0-beta.1097.1",
40
+ "@tamagui/react-native-use-pressable": "3.0.0-beta.1097.1",
41
+ "@tamagui/react-native-use-responder-events": "3.0.0-beta.1097.1",
42
+ "@tamagui/simple-hash": "3.0.0-beta.1097.1",
43
+ "@tamagui/use-element-layout": "3.0.0-beta.1097.1",
44
+ "@tamagui/web": "3.0.0-beta.1097.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "2.7.7",
48
- "react": ">=19",
49
- "react-dom": "*"
47
+ "@tamagui/build": "3.0.0-beta.1097.1",
48
+ "react": "19.2.3",
49
+ "react-dom": "19.2.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=19",
@@ -249,10 +249,7 @@ export function inline(
249
249
  let prop = originalProp
250
250
  let value = originalValue
251
251
 
252
- if (
253
- !Object.prototype.hasOwnProperty.call(style, originalProp) ||
254
- originalValue == null
255
- ) {
252
+ if (originalValue == null) {
256
253
  continue
257
254
  }
258
255
 
@@ -290,7 +287,7 @@ export function inline(
290
287
  nextStyle[prop] = value
291
288
  }
292
289
 
293
- if (PROPERTIES_I18N.hasOwnProperty(originalProp)) {
290
+ if (originalProp in PROPERTIES_I18N) {
294
291
  frozenProps[prop] = true
295
292
  }
296
293
  }
@@ -69,10 +69,7 @@ export const preprocess = <
69
69
  let prop = originalProp
70
70
  let value = originalValue
71
71
 
72
- if (
73
- !Object.prototype.hasOwnProperty.call(style, originalProp) ||
74
- originalValue == null
75
- ) {
72
+ if (originalValue == null) {
76
73
  continue
77
74
  }
78
75
 
@@ -11,7 +11,6 @@ import { getCSSStylesAtomic, type StyleObject } from '@tamagui/web'
11
11
  import { AccessibilityUtil } from '../AccessibilityUtil/index'
12
12
 
13
13
  const emptyObject = {}
14
- const hasOwnProperty = Object.prototype.hasOwnProperty
15
14
  const isArray = Array.isArray
16
15
 
17
16
  // react-native props that should be stripped before reaching the DOM
@@ -20,6 +19,7 @@ const reactNativeOnlyProps: Record<string, boolean> = {
20
19
  contentContainerStyle: true,
21
20
  contentOffset: true,
22
21
  decelerationRate: true,
22
+ focusable: true,
23
23
  maintainVisibleContentPosition: true,
24
24
  onLayout: true,
25
25
  onMomentumScrollBegin: true,
@@ -83,9 +83,7 @@ function flattenStyle(style: any): any {
83
83
  const computedStyle = flattenStyle(style[i])
84
84
  if (computedStyle) {
85
85
  for (const key in computedStyle) {
86
- if (hasOwnProperty.call(computedStyle, key)) {
87
- result[key] = computedStyle[key]
88
- }
86
+ result[key] = computedStyle[key]
89
87
  }
90
88
  }
91
89
  }
@@ -151,7 +149,6 @@ export const createDOMProps = (elementType, props, options?) => {
151
149
  accessibilityValueNow,
152
150
  accessibilityValueText,
153
151
  dataSet,
154
- focusable,
155
152
  nativeID,
156
153
  pointerEvents,
157
154
  style,
@@ -347,21 +344,15 @@ export const createDOMProps = (elementType, props, options?) => {
347
344
  if (dataSet != null) {
348
345
  for (const dataProp in dataSet) {
349
346
  if (dataProp === 'className' || dataProp === 'id') continue
350
- if (hasOwnProperty.call(dataSet, dataProp)) {
351
- const dataName = hyphenateString(dataProp)
352
- const dataValue = dataSet[dataProp]
353
- if (dataValue != null) {
354
- domProps[`data-${dataName}`] = dataValue
355
- }
347
+ const dataName = hyphenateString(dataProp)
348
+ const dataValue = dataSet[dataProp]
349
+ if (dataValue != null) {
350
+ domProps[`data-${dataName}`] = dataValue
356
351
  }
357
352
  }
358
353
  }
359
354
 
360
355
  // FOCUS
361
- // "focusable" indicates that an element may be a keyboard tab-stop.
362
- if (focusable === false) {
363
- domProps.tabIndex = '-1'
364
- }
365
356
  if (
366
357
  // These native elements are keyboard focusable by default
367
358
  elementType === 'a' ||
@@ -370,7 +361,7 @@ export const createDOMProps = (elementType, props, options?) => {
370
361
  elementType === 'select' ||
371
362
  elementType === 'textarea'
372
363
  ) {
373
- if (focusable === false || accessibilityDisabled === true) {
364
+ if (accessibilityDisabled === true) {
374
365
  domProps.tabIndex = '-1'
375
366
  }
376
367
  } else if (
@@ -382,12 +373,7 @@ export const createDOMProps = (elementType, props, options?) => {
382
373
  role === 'textbox' ||
383
374
  role === 'switch'
384
375
  ) {
385
- if (focusable !== false) {
386
- domProps.tabIndex = '0'
387
- }
388
- } else {
389
- // Everything else must explicitly set the prop
390
- if (focusable === true) {
376
+ if (domProps.tabIndex == null) {
391
377
  domProps.tabIndex = '0'
392
378
  }
393
379
  }
@@ -65,7 +65,6 @@ export const accessibilityProps = {
65
65
  accessibilityValueNow: true,
66
66
  accessibilityValueText: true,
67
67
  dir: true,
68
- focusable: true,
69
68
  }
70
69
 
71
70
  export const clickProps = {
@@ -12,7 +12,7 @@ import type * as React from 'react'
12
12
  export function mergeRefs(
13
13
  ...args: ReadonlyArray<React.Ref<any>>
14
14
  ): (node: HTMLElement | null) => void {
15
- return function forwardRef(node: HTMLElement | null) {
15
+ return function mergedRef(node: HTMLElement | null) {
16
16
  args.forEach((ref: React.Ref<any>) => {
17
17
  if (ref == null) {
18
18
  return
@@ -15,10 +15,8 @@ export function pick(
15
15
  ): object {
16
16
  const nextObj = {}
17
17
  for (const key in obj) {
18
- if (obj.hasOwnProperty(key)) {
19
- if (list[key] === true) {
20
- nextObj[key] = obj[key]
21
- }
18
+ if (list[key] === true) {
19
+ nextObj[key] = obj[key]
22
20
  }
23
21
  }
24
22
  return nextObj
@@ -65,7 +65,7 @@ export function dangerousStyleValue(name, value, isCustomProperty) {
65
65
  !isCustomProperty &&
66
66
  typeof value === 'number' &&
67
67
  value !== 0 &&
68
- !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])
68
+ !isUnitlessNumber[name]
69
69
  ) {
70
70
  return value + 'px' // Presumes implicit 'px' suffix for unitless numbers
71
71
  }
@@ -22,9 +22,6 @@ import { dangerousStyleValue } from './dangerousStyleValue'
22
22
  export function setValueForStyles(node, styles) {
23
23
  const style = node.style
24
24
  for (let styleName in styles) {
25
- if (!styles.hasOwnProperty(styleName)) {
26
- continue
27
- }
28
25
  const isCustomProperty = styleName.indexOf('--') === 0
29
26
  const styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty)
30
27
  if (styleName === 'float') {
@@ -1 +1 @@
1
- {"version":3,"file":"createReactDOMStyle.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/createReactDOMStyle.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAKH,KAAK,KAAK,GAAG;KACV,CAAC,IAAI,MAAM,GAAG,GAAG;CACnB,CAAA;AAqFD,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,KAAG,MAMnD,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,EAAE,WAAW,OAAO,KAAG,KAsGtE,CAAA"}
1
+ {"version":3,"file":"createReactDOMStyle.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/createReactDOMStyle.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAKH,KAAK,KAAK,GAAG;KACV,CAAC,IAAI,MAAM,GAAG,GAAG;CACnB,CAAA;AAqFD,eAAO,MAAM,oBAAoB,UAAW,KAAK,KAAG,MAMnD,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,mBAAmB,UAAW,KAAK,aAAa,OAAO,KAAG,KAsGtE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAQH,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM,CAAA;AAElD,KAAK,KAAK,GAAG;KACV,CAAC,IAAI,MAAM,GAAG,KAAK;CACrB,CAAA;AAED,KAAK,IAAI,GAAG,MAAM,CAAA;AAClB,KAAK,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;AACxB,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AAEhC,KAAK,aAAa,GAAG;KAClB,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CACtC,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;AAyFvD,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,CAuFnD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,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0BAA0B,CACxC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,MAAM,CAMR"}
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeColor.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/normalizeColor.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,GAAG,MAAM,EAAE,gBAAW,KAAG,IAAI,GAAG,MAsB5E,CAAA"}
1
+ {"version":3,"file":"normalizeColor.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/normalizeColor.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,eAAO,MAAM,cAAc,WAAY,MAAM,GAAG,MAAM,uBAAgB,IAAI,GAAG,MAsB5E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveShadowValue.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/resolveShadowValue.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,IAAI,GAAG,MAUzD,CAAA"}
1
+ {"version":3,"file":"resolveShadowValue.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/resolveShadowValue.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,IAAI,GAAG,MAUzD,CAAA"}
@@ -6,6 +6,14 @@
6
6
  *
7
7
  * @flow
8
8
  */
9
+ declare const absoluteFillObject: {
10
+ position: string;
11
+ left: number;
12
+ right: number;
13
+ top: number;
14
+ bottom: number;
15
+ };
16
+ declare const absoluteFill: any;
9
17
  /**
10
18
  * create
11
19
  */
@@ -38,22 +46,13 @@ type Options = {
38
46
  };
39
47
  export declare function StyleSheet(styles: any, options?: Options): StyleProps;
40
48
  export declare namespace StyleSheet {
41
- var absoluteFill: any;
42
- var absoluteFillObject: {
43
- position: string;
44
- left: number;
45
- right: number;
46
- top: number;
47
- bottom: number;
48
- };
49
- var create: (styles: any) => any;
50
- var compose: (style1: any, style2: any) => any;
51
- var flatten: typeof import(".").flatten;
52
- var getSheet: () => {
53
- id: string;
54
- textContent: string;
55
- };
56
- var hairlineWidth: number;
49
+ export { absoluteFill };
50
+ export { absoluteFillObject };
51
+ export { create };
52
+ export { compose };
53
+ export { flatten };
54
+ export { getSheet };
55
+ export var hairlineWidth: number;
57
56
  }
58
57
  export type IStyleSheet = {
59
58
  (styles: any, options?: Options): StyleProps;