@tamagui/react-native-web-internals 2.0.0-rc.26 → 2.0.0-rc.26-1773452370596

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 (301) hide show
  1. package/package.json +8 -8
  2. package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +0 -192
  3. package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js.map +0 -6
  4. package/dist/cjs/StyleSheet/__tests__/compiler-test.js +0 -378
  5. package/dist/cjs/StyleSheet/__tests__/compiler-test.js.map +0 -6
  6. package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +0 -117
  7. package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js.map +0 -6
  8. package/dist/cjs/StyleSheet/__tests__/index-test.js +0 -347
  9. package/dist/cjs/StyleSheet/__tests__/index-test.js.map +0 -6
  10. package/dist/cjs/StyleSheet/__tests__/preprocess-test.js +0 -77
  11. package/dist/cjs/StyleSheet/__tests__/preprocess-test.js.map +0 -6
  12. package/dist/cjs/StyleSheet/__tests__/validate-test.js +0 -18
  13. package/dist/cjs/StyleSheet/__tests__/validate-test.js.map +0 -6
  14. package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js +0 -112
  15. package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js.map +0 -6
  16. package/dist/cjs/StyleSheet/compiler/hash.js +0 -21
  17. package/dist/cjs/StyleSheet/compiler/hash.js.map +0 -6
  18. package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js +0 -30
  19. package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js.map +0 -6
  20. package/dist/cjs/StyleSheet/compiler/index.js +0 -245
  21. package/dist/cjs/StyleSheet/compiler/index.js.map +0 -6
  22. package/dist/cjs/StyleSheet/compiler/normalizeColor.js +0 -33
  23. package/dist/cjs/StyleSheet/compiler/normalizeColor.js.map +0 -6
  24. package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js +0 -37
  25. package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js.map +0 -6
  26. package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js +0 -26
  27. package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js.map +0 -6
  28. package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js +0 -36
  29. package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js.map +0 -6
  30. package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js +0 -94
  31. package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +0 -6
  32. package/dist/cjs/StyleSheet/dom/index.js +0 -66
  33. package/dist/cjs/StyleSheet/dom/index.js.map +0 -6
  34. package/dist/cjs/StyleSheet/index.js +0 -52
  35. package/dist/cjs/StyleSheet/index.js.map +0 -6
  36. package/dist/cjs/StyleSheet/preprocess.js +0 -59
  37. package/dist/cjs/StyleSheet/preprocess.js.map +0 -6
  38. package/dist/cjs/StyleSheet/validate.js +0 -66
  39. package/dist/cjs/StyleSheet/validate.js.map +0 -6
  40. package/dist/cjs/TextAncestorContext.js +0 -22
  41. package/dist/cjs/TextAncestorContext.js.map +0 -6
  42. package/dist/cjs/colorProps.js +0 -32
  43. package/dist/cjs/colorProps.js.map +0 -6
  44. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +0 -46
  45. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map +0 -6
  46. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +0 -30
  47. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js.map +0 -6
  48. package/dist/cjs/modules/AccessibilityUtil/index.js +0 -26
  49. package/dist/cjs/modules/AccessibilityUtil/index.js.map +0 -6
  50. package/dist/cjs/modules/AccessibilityUtil/isDisabled.js +0 -21
  51. package/dist/cjs/modules/AccessibilityUtil/isDisabled.js.map +0 -6
  52. package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js +0 -51
  53. package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +0 -6
  54. package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js +0 -42
  55. package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js.map +0 -6
  56. package/dist/cjs/modules/AssetRegistry/index.js +0 -28
  57. package/dist/cjs/modules/AssetRegistry/index.js.map +0 -6
  58. package/dist/cjs/modules/ImageLoader/index.js +0 -101
  59. package/dist/cjs/modules/ImageLoader/index.js.map +0 -6
  60. package/dist/cjs/modules/InteractionManager.js +0 -163
  61. package/dist/cjs/modules/InteractionManager.js.map +0 -6
  62. package/dist/cjs/modules/Platform/__tests__/index-test.js +0 -46
  63. package/dist/cjs/modules/Platform/__tests__/index-test.js.map +0 -6
  64. package/dist/cjs/modules/Platform/index.js +0 -25
  65. package/dist/cjs/modules/Platform/index.js.map +0 -6
  66. package/dist/cjs/modules/TextInputState/index.js +0 -50
  67. package/dist/cjs/modules/TextInputState/index.js.map +0 -6
  68. package/dist/cjs/modules/UIManager/__tests__/index-test.js +0 -66
  69. package/dist/cjs/modules/UIManager/__tests__/index-test.js.map +0 -6
  70. package/dist/cjs/modules/UIManager/index.js +0 -57
  71. package/dist/cjs/modules/UIManager/index.js.map +0 -6
  72. package/dist/cjs/modules/canUseDOM.js +0 -21
  73. package/dist/cjs/modules/canUseDOM.js.map +0 -6
  74. package/dist/cjs/modules/createDOMProps/__tests__/index-test.js +0 -106
  75. package/dist/cjs/modules/createDOMProps/__tests__/index-test.js.map +0 -6
  76. package/dist/cjs/modules/createDOMProps/index.js +0 -170
  77. package/dist/cjs/modules/createDOMProps/index.js.map +0 -6
  78. package/dist/cjs/modules/createEventHandle/__tests__/index-test.js +0 -242
  79. package/dist/cjs/modules/createEventHandle/__tests__/index-test.js.map +0 -6
  80. package/dist/cjs/modules/createEventHandle/index.js +0 -66
  81. package/dist/cjs/modules/createEventHandle/index.js.map +0 -6
  82. package/dist/cjs/modules/dismissKeyboard/index.js +0 -24
  83. package/dist/cjs/modules/dismissKeyboard/index.js.map +0 -6
  84. package/dist/cjs/modules/forwardedProps/index.js +0 -146
  85. package/dist/cjs/modules/forwardedProps/index.js.map +0 -6
  86. package/dist/cjs/modules/getBoundingClientRect/index.js +0 -24
  87. package/dist/cjs/modules/getBoundingClientRect/index.js.map +0 -6
  88. package/dist/cjs/modules/invariant.js +0 -35
  89. package/dist/cjs/modules/invariant.js.map +0 -6
  90. package/dist/cjs/modules/isSelectionValid/index.js +0 -27
  91. package/dist/cjs/modules/isSelectionValid/index.js.map +0 -6
  92. package/dist/cjs/modules/isWebColor/index.js +0 -21
  93. package/dist/cjs/modules/isWebColor/index.js.map +0 -6
  94. package/dist/cjs/modules/mergeRefs/__tests__/index-test.js +0 -34
  95. package/dist/cjs/modules/mergeRefs/__tests__/index-test.js.map +0 -6
  96. package/dist/cjs/modules/mergeRefs/index.js +0 -41
  97. package/dist/cjs/modules/mergeRefs/index.js.map +0 -6
  98. package/dist/cjs/modules/modality/__tests__/index-test.js +0 -20
  99. package/dist/cjs/modules/modality/__tests__/index-test.js.map +0 -6
  100. package/dist/cjs/modules/modality/index.js +0 -82
  101. package/dist/cjs/modules/modality/index.js.map +0 -6
  102. package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js +0 -28
  103. package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js.map +0 -6
  104. package/dist/cjs/modules/multiplyStyleLengthValue/index.js +0 -27
  105. package/dist/cjs/modules/multiplyStyleLengthValue/index.js.map +0 -6
  106. package/dist/cjs/modules/normalizeColor/index.js +0 -31
  107. package/dist/cjs/modules/normalizeColor/index.js.map +0 -6
  108. package/dist/cjs/modules/pick/index.js +0 -26
  109. package/dist/cjs/modules/pick/index.js.map +0 -6
  110. package/dist/cjs/modules/processColor/__tests__/index-test.js +0 -64
  111. package/dist/cjs/modules/processColor/__tests__/index-test.js.map +0 -6
  112. package/dist/cjs/modules/processColor/index.js +0 -36
  113. package/dist/cjs/modules/processColor/index.js.map +0 -6
  114. package/dist/cjs/modules/requestIdleCallback/index.js +0 -35
  115. package/dist/cjs/modules/requestIdleCallback/index.js.map +0 -6
  116. package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js +0 -29
  117. package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js.map +0 -6
  118. package/dist/cjs/modules/setValueForStyles/index.js +0 -30
  119. package/dist/cjs/modules/setValueForStyles/index.js.map +0 -6
  120. package/dist/cjs/modules/unitlessNumbers/index.js +0 -78
  121. package/dist/cjs/modules/unitlessNumbers/index.js.map +0 -6
  122. package/dist/cjs/modules/useElementLayout/index.js +0 -33
  123. package/dist/cjs/modules/useElementLayout/index.js.map +0 -6
  124. package/dist/cjs/modules/useEvent/__tests__/index-test.js +0 -289
  125. package/dist/cjs/modules/useEvent/__tests__/index-test.js.map +0 -6
  126. package/dist/cjs/modules/useEvent/index.js +0 -37
  127. package/dist/cjs/modules/useEvent/index.js.map +0 -6
  128. package/dist/cjs/modules/useHover/__tests__/index-test.js +0 -195
  129. package/dist/cjs/modules/useHover/__tests__/index-test.js.map +0 -6
  130. package/dist/cjs/modules/useHover/index.js +0 -73
  131. package/dist/cjs/modules/useHover/index.js.map +0 -6
  132. package/dist/cjs/modules/useLayoutEffect/index.js +0 -30
  133. package/dist/cjs/modules/useLayoutEffect/index.js.map +0 -6
  134. package/dist/cjs/modules/useLocale/index.js +0 -54
  135. package/dist/cjs/modules/useLocale/index.js.map +0 -6
  136. package/dist/cjs/modules/useLocale/isLocaleRTL.js +0 -91
  137. package/dist/cjs/modules/useLocale/isLocaleRTL.js.map +0 -6
  138. package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js +0 -68
  139. package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js.map +0 -6
  140. package/dist/cjs/modules/useMergeRefs/index.js +0 -36
  141. package/dist/cjs/modules/useMergeRefs/index.js.map +0 -6
  142. package/dist/cjs/modules/usePlatformMethods/index.js +0 -29
  143. package/dist/cjs/modules/usePlatformMethods/index.js.map +0 -6
  144. package/dist/cjs/modules/useStable/__tests__/index-test.js +0 -69
  145. package/dist/cjs/modules/useStable/__tests__/index-test.js.map +0 -6
  146. package/dist/cjs/modules/useStable/index.js +0 -34
  147. package/dist/cjs/modules/useStable/index.js.map +0 -6
  148. package/dist/cjs/styleTypes.js +0 -14
  149. package/dist/cjs/styleTypes.js.map +0 -6
  150. package/dist/cjs/types.js +0 -14
  151. package/dist/cjs/types.js.map +0 -6
  152. package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +0 -173
  153. package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js.map +0 -6
  154. package/dist/esm/StyleSheet/__tests__/compiler-test.js +0 -378
  155. package/dist/esm/StyleSheet/__tests__/compiler-test.js.map +0 -6
  156. package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +0 -98
  157. package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js.map +0 -6
  158. package/dist/esm/StyleSheet/__tests__/index-test.js +0 -328
  159. package/dist/esm/StyleSheet/__tests__/index-test.js.map +0 -6
  160. package/dist/esm/StyleSheet/__tests__/preprocess-test.js +0 -77
  161. package/dist/esm/StyleSheet/__tests__/preprocess-test.js.map +0 -6
  162. package/dist/esm/StyleSheet/__tests__/validate-test.js +0 -18
  163. package/dist/esm/StyleSheet/__tests__/validate-test.js.map +0 -6
  164. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js +0 -97
  165. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js.map +0 -6
  166. package/dist/esm/StyleSheet/compiler/hash.js +0 -5
  167. package/dist/esm/StyleSheet/compiler/hash.js.map +0 -6
  168. package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js +0 -14
  169. package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js.map +0 -6
  170. package/dist/esm/StyleSheet/compiler/index.js +0 -232
  171. package/dist/esm/StyleSheet/compiler/index.js.map +0 -6
  172. package/dist/esm/StyleSheet/compiler/normalizeColor.js +0 -18
  173. package/dist/esm/StyleSheet/compiler/normalizeColor.js.map +0 -6
  174. package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js +0 -22
  175. package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js.map +0 -6
  176. package/dist/esm/StyleSheet/compiler/resolveShadowValue.js +0 -11
  177. package/dist/esm/StyleSheet/compiler/resolveShadowValue.js.map +0 -6
  178. package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js +0 -20
  179. package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js.map +0 -6
  180. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js +0 -78
  181. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +0 -6
  182. package/dist/esm/StyleSheet/dom/index.js +0 -52
  183. package/dist/esm/StyleSheet/dom/index.js.map +0 -6
  184. package/dist/esm/StyleSheet/index.js +0 -36
  185. package/dist/esm/StyleSheet/index.js.map +0 -6
  186. package/dist/esm/StyleSheet/preprocess.js +0 -44
  187. package/dist/esm/StyleSheet/preprocess.js.map +0 -6
  188. package/dist/esm/StyleSheet/validate.js +0 -50
  189. package/dist/esm/StyleSheet/validate.js.map +0 -6
  190. package/dist/esm/TextAncestorContext.js +0 -6
  191. package/dist/esm/TextAncestorContext.js.map +0 -6
  192. package/dist/esm/colorProps.js +0 -16
  193. package/dist/esm/colorProps.js.map +0 -6
  194. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +0 -27
  195. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map +0 -6
  196. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +0 -11
  197. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js.map +0 -6
  198. package/dist/esm/modules/AccessibilityUtil/index.js +0 -12
  199. package/dist/esm/modules/AccessibilityUtil/index.js.map +0 -6
  200. package/dist/esm/modules/AccessibilityUtil/isDisabled.js +0 -5
  201. package/dist/esm/modules/AccessibilityUtil/isDisabled.js.map +0 -6
  202. package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js +0 -35
  203. package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +0 -6
  204. package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js +0 -26
  205. package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js.map +0 -6
  206. package/dist/esm/modules/AssetRegistry/index.js +0 -12
  207. package/dist/esm/modules/AssetRegistry/index.js.map +0 -6
  208. package/dist/esm/modules/ImageLoader/index.js +0 -85
  209. package/dist/esm/modules/ImageLoader/index.js.map +0 -6
  210. package/dist/esm/modules/InteractionManager.js +0 -148
  211. package/dist/esm/modules/InteractionManager.js.map +0 -6
  212. package/dist/esm/modules/Platform/__tests__/index-test.js +0 -27
  213. package/dist/esm/modules/Platform/__tests__/index-test.js.map +0 -6
  214. package/dist/esm/modules/Platform/index.js +0 -9
  215. package/dist/esm/modules/Platform/index.js.map +0 -6
  216. package/dist/esm/modules/TextInputState/index.js +0 -34
  217. package/dist/esm/modules/TextInputState/index.js.map +0 -6
  218. package/dist/esm/modules/UIManager/__tests__/index-test.js +0 -47
  219. package/dist/esm/modules/UIManager/__tests__/index-test.js.map +0 -6
  220. package/dist/esm/modules/UIManager/index.js +0 -41
  221. package/dist/esm/modules/UIManager/index.js.map +0 -6
  222. package/dist/esm/modules/canUseDOM.js +0 -5
  223. package/dist/esm/modules/canUseDOM.js.map +0 -6
  224. package/dist/esm/modules/createDOMProps/__tests__/index-test.js +0 -87
  225. package/dist/esm/modules/createDOMProps/__tests__/index-test.js.map +0 -6
  226. package/dist/esm/modules/createDOMProps/index.js +0 -155
  227. package/dist/esm/modules/createDOMProps/index.js.map +0 -6
  228. package/dist/esm/modules/createEventHandle/__tests__/index-test.js +0 -229
  229. package/dist/esm/modules/createEventHandle/__tests__/index-test.js.map +0 -6
  230. package/dist/esm/modules/createEventHandle/index.js +0 -49
  231. package/dist/esm/modules/createEventHandle/index.js.map +0 -6
  232. package/dist/esm/modules/dismissKeyboard/index.js +0 -8
  233. package/dist/esm/modules/dismissKeyboard/index.js.map +0 -6
  234. package/dist/esm/modules/forwardedProps/index.js +0 -130
  235. package/dist/esm/modules/forwardedProps/index.js.map +0 -6
  236. package/dist/esm/modules/getBoundingClientRect/index.js +0 -8
  237. package/dist/esm/modules/getBoundingClientRect/index.js.map +0 -6
  238. package/dist/esm/modules/invariant.js +0 -19
  239. package/dist/esm/modules/invariant.js.map +0 -6
  240. package/dist/esm/modules/isSelectionValid/index.js +0 -11
  241. package/dist/esm/modules/isSelectionValid/index.js.map +0 -6
  242. package/dist/esm/modules/isWebColor/index.js +0 -5
  243. package/dist/esm/modules/isWebColor/index.js.map +0 -6
  244. package/dist/esm/modules/mergeRefs/__tests__/index-test.js +0 -18
  245. package/dist/esm/modules/mergeRefs/__tests__/index-test.js.map +0 -6
  246. package/dist/esm/modules/mergeRefs/index.js +0 -25
  247. package/dist/esm/modules/mergeRefs/index.js.map +0 -6
  248. package/dist/esm/modules/modality/__tests__/index-test.js +0 -27
  249. package/dist/esm/modules/modality/__tests__/index-test.js.map +0 -6
  250. package/dist/esm/modules/modality/index.js +0 -67
  251. package/dist/esm/modules/modality/index.js.map +0 -6
  252. package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.js +0 -9
  253. package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.js.map +0 -6
  254. package/dist/esm/modules/multiplyStyleLengthValue/index.js +0 -11
  255. package/dist/esm/modules/multiplyStyleLengthValue/index.js.map +0 -6
  256. package/dist/esm/modules/normalizeColor/index.js +0 -16
  257. package/dist/esm/modules/normalizeColor/index.js.map +0 -6
  258. package/dist/esm/modules/pick/index.js +0 -10
  259. package/dist/esm/modules/pick/index.js.map +0 -6
  260. package/dist/esm/modules/processColor/__tests__/index-test.js +0 -45
  261. package/dist/esm/modules/processColor/__tests__/index-test.js.map +0 -6
  262. package/dist/esm/modules/processColor/index.js +0 -12
  263. package/dist/esm/modules/processColor/index.js.map +0 -6
  264. package/dist/esm/modules/requestIdleCallback/index.js +0 -19
  265. package/dist/esm/modules/requestIdleCallback/index.js.map +0 -6
  266. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js +0 -14
  267. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js.map +0 -6
  268. package/dist/esm/modules/setValueForStyles/index.js +0 -14
  269. package/dist/esm/modules/setValueForStyles/index.js.map +0 -6
  270. package/dist/esm/modules/unitlessNumbers/index.js +0 -62
  271. package/dist/esm/modules/unitlessNumbers/index.js.map +0 -6
  272. package/dist/esm/modules/useElementLayout/index.js +0 -21
  273. package/dist/esm/modules/useElementLayout/index.js.map +0 -6
  274. package/dist/esm/modules/useEvent/__tests__/index-test.js +0 -275
  275. package/dist/esm/modules/useEvent/__tests__/index-test.js.map +0 -6
  276. package/dist/esm/modules/useEvent/index.js +0 -23
  277. package/dist/esm/modules/useEvent/index.js.map +0 -6
  278. package/dist/esm/modules/useHover/__tests__/index-test.js +0 -187
  279. package/dist/esm/modules/useHover/__tests__/index-test.js.map +0 -6
  280. package/dist/esm/modules/useHover/index.js +0 -59
  281. package/dist/esm/modules/useHover/index.js.map +0 -6
  282. package/dist/esm/modules/useLayoutEffect/index.js +0 -7
  283. package/dist/esm/modules/useLayoutEffect/index.js.map +0 -6
  284. package/dist/esm/modules/useLocale/index.js +0 -32
  285. package/dist/esm/modules/useLocale/index.js.map +0 -6
  286. package/dist/esm/modules/useLocale/isLocaleRTL.js +0 -75
  287. package/dist/esm/modules/useLocale/isLocaleRTL.js.map +0 -6
  288. package/dist/esm/modules/useMergeRefs/__tests__/index-test.js +0 -53
  289. package/dist/esm/modules/useMergeRefs/__tests__/index-test.js.map +0 -6
  290. package/dist/esm/modules/useMergeRefs/index.js +0 -13
  291. package/dist/esm/modules/useMergeRefs/index.js.map +0 -6
  292. package/dist/esm/modules/usePlatformMethods/index.js +0 -18
  293. package/dist/esm/modules/usePlatformMethods/index.js.map +0 -6
  294. package/dist/esm/modules/useStable/__tests__/index-test.js +0 -53
  295. package/dist/esm/modules/useStable/__tests__/index-test.js.map +0 -6
  296. package/dist/esm/modules/useStable/index.js +0 -10
  297. package/dist/esm/modules/useStable/index.js.map +0 -6
  298. package/dist/esm/styleTypes.js +0 -1
  299. package/dist/esm/styleTypes.js.map +0 -6
  300. package/dist/esm/types.js +0 -1
  301. package/dist/esm/types.js.map +0 -6
@@ -1,21 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var isWebColor_exports = {};
16
- __export(isWebColor_exports, {
17
- isWebColor: () => isWebColor
18
- });
19
- module.exports = __toCommonJS(isWebColor_exports);
20
- const isWebColor = (color) => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.startsWith("var(");
21
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/isWebColor/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,MAAM,aAAa,CAAC,UACzB,UAAU,kBACV,UAAU,kBACV,UAAU,aACV,MAAM,WAAW,MAAM;",
5
- "names": []
6
- }
@@ -1,34 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- };
12
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
- // If the importer is in node compatibility mode or this is not an ESM
14
- // file that has been converted to a CommonJS file using a Babel-
15
- // compatible transform (i.e. "__esModule" has not been set), then set
16
- // "default" to the CommonJS "module.exports" for node compatibility.
17
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
- mod
19
- ));
20
- var import_react = require("@testing-library/react"), React = __toESM(require("react"), 1), import__ = __toESM(require(".."), 1), import_jsx_runtime = require("react/jsx-runtime");
21
- describe("modules/mergeRefs", () => {
22
- test("merges refs of different types", () => {
23
- const ref = React.createRef(null);
24
- let functionRefValue = null, hookRef;
25
- function Component() {
26
- const functionRef = (x) => {
27
- functionRefValue = x;
28
- };
29
- return hookRef = React.useRef(null), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: (0, import__.default)(ref, hookRef, functionRef) });
30
- }
31
- (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, {})), expect(ref.current).toBeInstanceOf(HTMLDivElement), expect(hookRef.current).toBeInstanceOf(HTMLDivElement), expect(functionRefValue).toBeInstanceOf(HTMLDivElement);
32
- });
33
- });
34
- //# sourceMappingURL=index-test.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/modules/mergeRefs/__tests__/index-test.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;AAOA,mBAAuB,mCACvB,QAAuB,8BAEvB,WAAsB,2BAYT;AAVb,SAAS,qBAAqB,MAAM;AAClC,OAAK,kCAAkC,MAAM;AAC3C,UAAM,MAAM,MAAM,UAAU,IAAI;AAChC,QAAI,mBAAmB,MACnB;AACJ,aAAS,YAAY;AACnB,YAAM,cAAc,CAAC,MAAM;AACzB,2BAAmB;AAAA,MACrB;AACA,uBAAU,MAAM,OAAO,IAAI,GACpB,4CAAC,SAAI,SAAK,SAAAA,SAAU,KAAK,SAAS,WAAW,GAAG;AAAA,IACzD;AAEA,6BAAO,4CAAC,aAAU,CAAE,GAEpB,OAAO,IAAI,OAAO,EAAE,eAAe,cAAc,GACjD,OAAO,QAAQ,OAAO,EAAE,eAAe,cAAc,GACrD,OAAO,gBAAgB,EAAE,eAAe,cAAc;AAAA,EACxD,CAAC;AACH,CAAC;",
5
- "names": ["mergeRefs"]
6
- }
@@ -1,41 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var mergeRefs_exports = {};
16
- __export(mergeRefs_exports, {
17
- mergeRefs: () => mergeRefs
18
- });
19
- module.exports = __toCommonJS(mergeRefs_exports);
20
- function mergeRefs(...args) {
21
- return function(node) {
22
- args.forEach((ref) => {
23
- if (ref != null) {
24
- if (typeof ref == "function") {
25
- ref(node);
26
- return;
27
- }
28
- if (typeof ref == "object") {
29
- ref.current = node;
30
- return;
31
- }
32
- console.error(
33
- `mergeRefs cannot handle Refs of type boolean, number or string, received ref ${String(
34
- ref
35
- )}`
36
- );
37
- }
38
- });
39
- };
40
- }
41
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/mergeRefs/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,SAAS,aACX,MACiC;AACpC,SAAO,SAAoB,MAA0B;AACnD,SAAK,QAAQ,CAAC,QAAwB;AACpC,UAAI,OAAO,MAGX;AAAA,YAAI,OAAO,OAAQ,YAAY;AAC7B,cAAI,IAAI;AACR;AAAA,QACF;AACA,YAAI,OAAO,OAAQ,UAAU;AAE3B,cAAI,UAAU;AACd;AAAA,QACF;AACA,gBAAQ;AAAA,UACN,gFAAgF;AAAA,YAC9E;AAAA,UACF,CAAC;AAAA,QACH;AAAA;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
5
- "names": []
6
- }
@@ -1,20 +0,0 @@
1
- var import_dom_event_testing_library = require("dom-event-testing-library"), import__ = require("..");
2
- (0, import_dom_event_testing_library.describeWithPointerEvent)("modules/modality", (hasPointerEvent) => {
3
- let rootNode;
4
- beforeEach(() => {
5
- (0, import_dom_event_testing_library.setPointerEvent)(hasPointerEvent), rootNode = document.createElement("div"), document.body.appendChild(rootNode);
6
- }), afterEach(() => {
7
- document.body.removeChild(rootNode), rootNode = null, (0, import_dom_event_testing_library.clearPointers)(), (0, import__.testOnly_resetActiveModality)();
8
- }), describe("getModality", () => {
9
- (0, import_dom_event_testing_library.testWithPointerType)("reflects currently-in-use modality", (pointerType) => {
10
- const target = (0, import_dom_event_testing_library.createEventTarget)(rootNode);
11
- expect((0, import__.getModality)()).toBe("keyboard"), target.pointerdown({ pointerType }), expect((0, import__.getModality)()).toBe(pointerType), target.pointerup({ pointerType }), target.keydown(), expect((0, import__.getModality)()).toBe("keyboard"), pointerType !== "touch" && (target.pointermove({ pointerType }), expect((0, import__.getModality)()).toBe(pointerType), target.keydown(), expect((0, import__.getModality)()).toBe("keyboard"));
12
- });
13
- }), describe("getActiveModality", () => {
14
- (0, import_dom_event_testing_library.testWithPointerType)("reflects last actively used modality", (pointerType) => {
15
- const target = (0, import_dom_event_testing_library.createEventTarget)(rootNode);
16
- expect((0, import__.getActiveModality)()).toBe("keyboard"), target.pointerdown({ pointerType }), expect((0, import__.getActiveModality)()).toBe(pointerType), target.pointerup({ pointerType }), target.keydown(), pointerType !== "touch" && (target.pointermove({ pointerType }), expect((0, import__.getActiveModality)()).toBe("keyboard"));
17
- });
18
- });
19
- });
20
- //# sourceMappingURL=index-test.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/modules/modality/__tests__/index-test.tsx"],
4
- "mappings": "AAOA,uCAMO,sCAEP,WAA6E;AAAA,IAE7E,2DAAyB,oBAAoB,CAAC,oBAAoB;AAChE,MAAI;AAEJ,aAAW,MAAM;AACf,0DAAgB,eAAe,GAC/B,WAAW,SAAS,cAAc,KAAK,GACvC,SAAS,KAAK,YAAY,QAAQ;AAAA,EACpC,CAAC,GAED,UAAU,MAAM;AACd,aAAS,KAAK,YAAY,QAAQ,GAClC,WAAW,UACX,gDAAc,OACd,uCAA6B;AAAA,EAC/B,CAAC,GAED,SAAS,eAAe,MAAM;AAC5B,8DAAoB,sCAAsC,CAAC,gBAAgB;AACzE,YAAM,aAAS,oDAAkB,QAAQ;AACzC,iBAAO,sBAAY,CAAC,EAAE,KAAK,UAAU,GACrC,OAAO,YAAY,EAAE,YAAY,CAAC,GAClC,WAAO,sBAAY,CAAC,EAAE,KAAK,WAAW,GACtC,OAAO,UAAU,EAAE,YAAY,CAAC,GAChC,OAAO,QAAQ,GACf,WAAO,sBAAY,CAAC,EAAE,KAAK,UAAU,GACjC,gBAAgB,YAClB,OAAO,YAAY,EAAE,YAAY,CAAC,GAClC,WAAO,sBAAY,CAAC,EAAE,KAAK,WAAW,GACtC,OAAO,QAAQ,GACf,WAAO,sBAAY,CAAC,EAAE,KAAK,UAAU;AAAA,IAEzC,CAAC;AAAA,EACH,CAAC,GAED,SAAS,qBAAqB,MAAM;AAClC,8DAAoB,wCAAwC,CAAC,gBAAgB;AAC3E,YAAM,aAAS,oDAAkB,QAAQ;AACzC,iBAAO,4BAAkB,CAAC,EAAE,KAAK,UAAU,GAC3C,OAAO,YAAY,EAAE,YAAY,CAAC,GAClC,WAAO,4BAAkB,CAAC,EAAE,KAAK,WAAW,GAC5C,OAAO,UAAU,EAAE,YAAY,CAAC,GAChC,OAAO,QAAQ,GACX,gBAAgB,YAClB,OAAO,YAAY,EAAE,YAAY,CAAC,GAClC,WAAO,4BAAkB,CAAC,EAAE,KAAK,UAAU;AAAA,IAE/C,CAAC;AAAA,EACH,CAAC;AACH,CAAC;",
5
- "names": []
6
- }
@@ -1,82 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var modality_exports = {};
16
- __export(modality_exports, {
17
- addModalityListener: () => addModalityListener,
18
- getActiveModality: () => getActiveModality,
19
- getModality: () => getModality,
20
- testOnly_resetActiveModality: () => testOnly_resetActiveModality
21
- });
22
- module.exports = __toCommonJS(modality_exports);
23
- var import_canUseDOM = require("../canUseDOM"), import_createEventHandle = require("../createEventHandle/index");
24
- const supportsPointerEvent = () => typeof window < "u" && window.PointerEvent != null;
25
- let activeModality = "keyboard", modality = "keyboard", previousModality, previousActiveModality, isEmulatingMouseEvents = !1;
26
- const listeners = /* @__PURE__ */ new Set(), KEYBOARD = "keyboard", MOUSE = "mouse", TOUCH = "touch", BLUR = "blur", CONTEXTMENU = "contextmenu", FOCUS = "focus", KEYDOWN = "keydown", MOUSEDOWN = "mousedown", MOUSEMOVE = "mousemove", MOUSEUP = "mouseup", POINTERDOWN = "pointerdown", POINTERMOVE = "pointermove", SCROLL = "scroll", SELECTIONCHANGE = "selectionchange", TOUCHCANCEL = "touchcancel", TOUCHMOVE = "touchmove", TOUCHSTART = "touchstart", VISIBILITYCHANGE = "visibilitychange", bubbleOptions = { passive: !0 }, captureOptions = { capture: !0, passive: !0 }, addBlurListener = (0, import_createEventHandle.createEventHandle)(BLUR, bubbleOptions), addFocusListener = (0, import_createEventHandle.createEventHandle)(FOCUS, bubbleOptions), addVisibilityChangeListener = (0, import_createEventHandle.createEventHandle)(VISIBILITYCHANGE, captureOptions), addKeyDownListener = (0, import_createEventHandle.createEventHandle)(KEYDOWN, captureOptions), addPointerDownListener = (0, import_createEventHandle.createEventHandle)(POINTERDOWN, captureOptions), addPointerMoveListener = (0, import_createEventHandle.createEventHandle)(POINTERMOVE, captureOptions), addContextMenuListener = (0, import_createEventHandle.createEventHandle)(CONTEXTMENU, captureOptions), addMouseDownListener = (0, import_createEventHandle.createEventHandle)(MOUSEDOWN, captureOptions), addMouseMoveListener = (0, import_createEventHandle.createEventHandle)(MOUSEMOVE, captureOptions), addMouseUpListener = (0, import_createEventHandle.createEventHandle)(MOUSEUP, captureOptions), addScrollListener = (0, import_createEventHandle.createEventHandle)(SCROLL, captureOptions), addSelectiomChangeListener = (0, import_createEventHandle.createEventHandle)(SELECTIONCHANGE, captureOptions), addTouchCancelListener = (0, import_createEventHandle.createEventHandle)(TOUCHCANCEL, captureOptions), addTouchMoveListener = (0, import_createEventHandle.createEventHandle)(TOUCHMOVE, captureOptions), addTouchStartListener = (0, import_createEventHandle.createEventHandle)(TOUCHSTART, captureOptions);
27
- function restoreModality() {
28
- (previousModality != null || previousActiveModality != null) && (previousModality != null && (modality = previousModality, previousModality = null), previousActiveModality != null && (activeModality = previousActiveModality, previousActiveModality = null), callListeners());
29
- }
30
- function onBlurWindow() {
31
- previousModality = modality, previousActiveModality = activeModality, activeModality = KEYBOARD, modality = KEYBOARD, callListeners(), isEmulatingMouseEvents = !1;
32
- }
33
- function onFocusWindow() {
34
- restoreModality();
35
- }
36
- function onKeyDown(event) {
37
- event.metaKey || event.altKey || event.ctrlKey || modality !== KEYBOARD && (modality = KEYBOARD, activeModality = KEYBOARD, callListeners());
38
- }
39
- function onVisibilityChange() {
40
- document.visibilityState !== "hidden" && restoreModality();
41
- }
42
- function onPointerish(event) {
43
- const eventType = event.type;
44
- if (supportsPointerEvent()) {
45
- if (eventType === POINTERDOWN) {
46
- activeModality !== event.pointerType && (modality = event.pointerType, activeModality = event.pointerType, callListeners());
47
- return;
48
- }
49
- if (eventType === POINTERMOVE) {
50
- modality !== event.pointerType && (modality = event.pointerType, callListeners());
51
- return;
52
- }
53
- } else {
54
- if (isEmulatingMouseEvents || (eventType === MOUSEDOWN && activeModality !== MOUSE && (modality = MOUSE, activeModality = MOUSE, callListeners()), eventType === MOUSEMOVE && modality !== MOUSE && (modality = MOUSE, callListeners())), eventType === TOUCHSTART) {
55
- isEmulatingMouseEvents = !0, event.touches && event.touches.length > 1 && (isEmulatingMouseEvents = !1), activeModality !== TOUCH && (modality = TOUCH, activeModality = TOUCH, callListeners());
56
- return;
57
- }
58
- (eventType === CONTEXTMENU || eventType === MOUSEUP || eventType === SELECTIONCHANGE || eventType === SCROLL || eventType === TOUCHCANCEL || eventType === TOUCHMOVE) && (isEmulatingMouseEvents = !1);
59
- }
60
- }
61
- import_canUseDOM.canUseDOM && (addBlurListener(window, onBlurWindow), addFocusListener(window, onFocusWindow), addKeyDownListener(document, onKeyDown), addPointerDownListener(document, onPointerish), addPointerMoveListener(document, onPointerish), addVisibilityChangeListener(document, onVisibilityChange), addContextMenuListener(document, onPointerish), addMouseDownListener(document, onPointerish), addMouseMoveListener(document, onPointerish), addMouseUpListener(document, onPointerish), addTouchCancelListener(document, onPointerish), addTouchMoveListener(document, onPointerish), addTouchStartListener(document, onPointerish), addSelectiomChangeListener(document, onPointerish), addScrollListener(document, onPointerish));
62
- function callListeners() {
63
- const value = { activeModality, modality };
64
- listeners.forEach((listener) => {
65
- listener(value);
66
- });
67
- }
68
- function getActiveModality() {
69
- return activeModality;
70
- }
71
- function getModality() {
72
- return modality;
73
- }
74
- function addModalityListener(listener) {
75
- return listeners.add(listener), () => {
76
- listeners.delete(listener);
77
- };
78
- }
79
- function testOnly_resetActiveModality() {
80
- isEmulatingMouseEvents = !1, activeModality = KEYBOARD, modality = KEYBOARD;
81
- }
82
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/modality/index.tsx"],
4
- "mappings": "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",
5
- "names": []
6
- }
@@ -1,28 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- };
12
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
- // If the importer is in node compatibility mode or this is not an ESM
14
- // file that has been converted to a CommonJS file using a Babel-
15
- // compatible transform (i.e. "__esModule" has not been set), then set
16
- // "default" to the CommonJS "module.exports" for node compatibility.
17
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
- mod
19
- ));
20
- var import__ = __toESM(require(".."), 1);
21
- describe("modules/multiplyStyleLengthValue", () => {
22
- test("number", () => {
23
- expect((0, import__.default)(2, -1)).toEqual(-2), expect((0, import__.default)(2, 2)).toEqual(4), expect((0, import__.default)(2.5, 2)).toEqual(5);
24
- }), test("length", () => {
25
- expect((0, import__.default)("2rem", -1)).toEqual("-2rem"), expect((0, import__.default)("2px", 2)).toEqual("4px"), expect((0, import__.default)("2.5em", 2)).toEqual("5em"), expect((0, import__.default)("2e3px", 2)).toEqual("4000px");
26
- });
27
- });
28
- //# sourceMappingURL=index-test.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/modules/multiplyStyleLengthValue/__tests__/index-test.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;AAOA,eAAqC;AAErC,SAAS,oCAAoC,MAAM;AACjD,OAAK,UAAU,MAAM;AACnB,eAAO,SAAAA,SAAyB,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,GAClD,WAAO,SAAAA,SAAyB,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,GAChD,WAAO,SAAAA,SAAyB,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC;AAAA,EACpD,CAAC,GAED,KAAK,UAAU,MAAM;AACnB,eAAO,SAAAA,SAAyB,QAAQ,EAAE,CAAC,EAAE,QAAQ,OAAO,GAC5D,WAAO,SAAAA,SAAyB,OAAO,CAAC,CAAC,EAAE,QAAQ,KAAK,GACxD,WAAO,SAAAA,SAAyB,SAAS,CAAC,CAAC,EAAE,QAAQ,KAAK,GAC1D,WAAO,SAAAA,SAAyB,SAAS,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC/D,CAAC;AACH,CAAC;",
5
- "names": ["multiplyStyleLengthValue"]
6
- }
@@ -1,27 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var multiplyStyleLengthValue_exports = {};
16
- __export(multiplyStyleLengthValue_exports, {
17
- multiplyStyleLengthValue: () => multiplyStyleLengthValue
18
- });
19
- module.exports = __toCommonJS(multiplyStyleLengthValue_exports);
20
- const CSS_UNIT_RE = /^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/, getUnit = (str) => str.match(CSS_UNIT_RE)[1], isNumeric = (n) => !isNaN(parseFloat(n)) && isFinite(n), multiplyStyleLengthValue = (value, multiple) => {
21
- if (typeof value == "string") {
22
- const number = parseFloat(value) * multiple, unit = getUnit(value);
23
- return `${number}${unit}`;
24
- } else if (isNumeric(value))
25
- return value * multiple;
26
- };
27
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/multiplyStyleLengthValue/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,cAAc,+CAEd,UAAU,CAAC,QAAQ,IAAI,MAAM,WAAW,EAAE,CAAC,GAE3C,YAAY,CAAC,MACV,CAAC,MAAM,WAAW,CAAC,CAAC,KAAK,SAAS,CAAC,GAG/B,2BAA2B,CAAC,OAAwB,aAAa;AAC5E,MAAI,OAAO,SAAU,UAAU;AAC7B,UAAM,SAAS,WAAW,KAAK,IAAI,UAC7B,OAAO,QAAQ,KAAK;AAC1B,WAAO,GAAG,MAAM,GAAG,IAAI;AAAA,EACzB,WAAW,UAAU,KAAK;AACxB,WAAO,QAAQ;AAEnB;",
5
- "names": []
6
- }
@@ -1,31 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var normalizeColor_exports = {};
16
- __export(normalizeColor_exports, {
17
- normalizeColor: () => normalizeColor
18
- });
19
- module.exports = __toCommonJS(normalizeColor_exports);
20
- var import_isWebColor = require("../isWebColor/index"), import_processColor = require("../processColor/index");
21
- const normalizeColor = (color, opacity = 1) => {
22
- if (color == null) return;
23
- if (typeof color == "string" && (0, import_isWebColor.isWebColor)(color))
24
- return color;
25
- const colorInt = (0, import_processColor.processColor)(color);
26
- if (colorInt != null) {
27
- const r = colorInt >> 16 & 255, g = colorInt >> 8 & 255, b = colorInt & 255, alpha = ((colorInt >> 24 & 255) / 255 * opacity).toFixed(2);
28
- return `rgba(${r},${g},${b},${alpha})`;
29
- }
30
- };
31
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/normalizeColor/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,wBAA2B,gCAC3B,sBAA6B;AAEtB,MAAM,iBAAiB,CAC5B,OACA,UAAU,MACQ;AAClB,MAAI,SAAS,KAAM;AAEnB,MAAI,OAAO,SAAU,gBAAY,8BAAW,KAAK;AAC/C,WAAO;AAGT,QAAM,eAAW,kCAAa,KAAK;AACnC,MAAI,YAAY,MAAM;AACpB,UAAM,IAAK,YAAY,KAAM,KACvB,IAAK,YAAY,IAAK,KACtB,IAAI,WAAW,KAEf,UADM,YAAY,KAAM,OAAO,MAClB,SAAS,QAAQ,CAAC;AACrC,WAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK;AAAA,EACrC;AACF;",
5
- "names": []
6
- }
@@ -1,26 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var pick_exports = {};
16
- __export(pick_exports, {
17
- pick: () => pick
18
- });
19
- module.exports = __toCommonJS(pick_exports);
20
- function pick(obj, list) {
21
- const nextObj = {};
22
- for (const key in obj)
23
- obj.hasOwnProperty(key) && list[key] === !0 && (nextObj[key] = obj[key]);
24
- return nextObj;
25
- }
26
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/pick/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,KACd,KACA,MAGQ;AACR,QAAM,UAAU,CAAC;AACjB,aAAW,OAAO;AAChB,IAAI,IAAI,eAAe,GAAG,KACpB,KAAK,GAAG,MAAM,OAChB,QAAQ,GAAG,IAAI,IAAI,GAAG;AAI5B,SAAO;AACT;",
5
- "names": []
6
- }
@@ -1,64 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- };
12
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
- // If the importer is in node compatibility mode or this is not an ESM
14
- // file that has been converted to a CommonJS file using a Babel-
15
- // compatible transform (i.e. "__esModule" has not been set), then set
16
- // "default" to the CommonJS "module.exports" for node compatibility.
17
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
- mod
19
- ));
20
- var import__ = __toESM(require(".."), 1);
21
- const platformSpecific = (x) => x;
22
- describe("processColor", () => {
23
- describe("predefined color names", () => {
24
- it("should convert red", () => {
25
- const colorFromString = (0, import__.default)("red");
26
- expect(colorFromString).toEqual(platformSpecific(4294901760));
27
- }), it("should convert white", () => {
28
- const colorFromString = (0, import__.default)("white");
29
- expect(colorFromString).toEqual(platformSpecific(4294967295));
30
- }), it("should convert black", () => {
31
- const colorFromString = (0, import__.default)("black");
32
- expect(colorFromString).toEqual(platformSpecific(4278190080));
33
- }), it("should convert transparent", () => {
34
- const colorFromString = (0, import__.default)("transparent");
35
- expect(colorFromString).toEqual(platformSpecific(0));
36
- });
37
- }), describe("RGB strings", () => {
38
- it("should convert rgb(x, y, z)", () => {
39
- const colorFromString = (0, import__.default)("rgb(10, 20, 30)");
40
- expect(colorFromString).toEqual(platformSpecific(4278850590));
41
- });
42
- }), describe("RGBA strings", () => {
43
- it("should convert rgba(x, y, z, a)", () => {
44
- const colorFromString = (0, import__.default)("rgba(10, 20, 30, 0.4)");
45
- expect(colorFromString).toEqual(platformSpecific(1711936542));
46
- });
47
- }), describe("HSL strings", () => {
48
- it("should convert hsl(x, y%, z%)", () => {
49
- const colorFromString = (0, import__.default)("hsl(318, 69%, 55%)");
50
- expect(colorFromString).toEqual(platformSpecific(4292558252));
51
- });
52
- }), describe("HSLA strings", () => {
53
- it("should convert hsla(x, y%, z%, a)", () => {
54
- const colorFromString = (0, import__.default)("hsla(318, 69%, 55%, 0.25)");
55
- expect(colorFromString).toEqual(platformSpecific(1088109996));
56
- });
57
- }), describe("hex strings", () => {
58
- it("should convert #xxxxxx", () => {
59
- const colorFromString = (0, import__.default)("#1e83c9");
60
- expect(colorFromString).toEqual(platformSpecific(4280189897));
61
- });
62
- });
63
- });
64
- //# sourceMappingURL=index-test.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/modules/processColor/__tests__/index-test.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;AAOA,eAAyB;AAEzB,MAAM,mBAAmB,CAAC,MAAM;AAEhC,SAAS,gBAAgB,MAAM;AAC7B,WAAS,0BAA0B,MAAM;AACvC,OAAG,sBAAsB,MAAM;AAC7B,YAAM,sBAAkB,SAAAA,SAAa,KAAK;AAE1C,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC,GAED,GAAG,wBAAwB,MAAM;AAC/B,YAAM,sBAAkB,SAAAA,SAAa,OAAO;AAE5C,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC,GAED,GAAG,wBAAwB,MAAM;AAC/B,YAAM,sBAAkB,SAAAA,SAAa,OAAO;AAE5C,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC,GAED,GAAG,8BAA8B,MAAM;AACrC,YAAM,sBAAkB,SAAAA,SAAa,aAAa;AAElD,aAAO,eAAe,EAAE,QAAQ,iBADZ,CACwC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC,GAED,SAAS,eAAe,MAAM;AAC5B,OAAG,+BAA+B,MAAM;AACtC,YAAM,sBAAkB,SAAAA,SAAa,iBAAiB;AAEtD,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC,GAED,SAAS,gBAAgB,MAAM;AAC7B,OAAG,mCAAmC,MAAM;AAC1C,YAAM,sBAAkB,SAAAA,SAAa,uBAAuB;AAE5D,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC,GAED,SAAS,eAAe,MAAM;AAC5B,OAAG,iCAAiC,MAAM;AACxC,YAAM,sBAAkB,SAAAA,SAAa,oBAAoB;AAEzD,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC,GAED,SAAS,gBAAgB,MAAM;AAC7B,OAAG,qCAAqC,MAAM;AAC5C,YAAM,sBAAkB,SAAAA,SAAa,2BAA2B;AAEhE,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC,GAED,SAAS,eAAe,MAAM;AAC5B,OAAG,0BAA0B,MAAM;AACjC,YAAM,sBAAkB,SAAAA,SAAa,SAAS;AAE9C,aAAO,eAAe,EAAE,QAAQ,iBADZ,UACwC,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,CAAC;AACH,CAAC;",
5
- "names": ["processColor"]
6
- }
@@ -1,36 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
- var processColor_exports = {};
24
- __export(processColor_exports, {
25
- processColor: () => processColor
26
- });
27
- module.exports = __toCommonJS(processColor_exports);
28
- var import_normalize_css_color = __toESM(require("@tamagui/normalize-css-color"), 1);
29
- const processColor = (color) => {
30
- if (color == null)
31
- return color;
32
- let int32Color = (0, import_normalize_css_color.default)(color);
33
- if (int32Color != null)
34
- return int32Color = (int32Color << 24 | int32Color >>> 8) >>> 0, int32Color;
35
- };
36
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/processColor/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,iCAA2B;AAEpB,MAAM,eAAe,CAAC,UAA2C;AACtE,MAA2B,SAAU;AACnC,WAAO;AAIT,MAAI,iBAAa,2BAAAA,SAAe,KAAK;AACrC,MAAgC,cAAe;AAI/C,yBAAe,cAAc,KAAO,eAAe,OAAQ,GAEpD;AACT;",
5
- "names": ["normalizeColor"]
6
- }
@@ -1,35 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var requestIdleCallback_exports = {};
16
- __export(requestIdleCallback_exports, {
17
- cancelIdleCallback: () => cancelIdleCallback,
18
- requestIdleCallback: () => requestIdleCallback
19
- });
20
- module.exports = __toCommonJS(requestIdleCallback_exports);
21
- var import_canUseDOM = require("../canUseDOM");
22
- const _requestIdleCallback = function(cb, options) {
23
- return setTimeout(() => {
24
- const start = Date.now();
25
- cb({
26
- didTimeout: !1,
27
- timeRemaining() {
28
- return Math.max(0, 50 - (Date.now() - start));
29
- }
30
- });
31
- }, 1);
32
- }, _cancelIdleCallback = function(id) {
33
- clearTimeout(id);
34
- }, isSupported = import_canUseDOM.canUseDOM && typeof window.requestIdleCallback < "u", requestIdleCallback = isSupported ? window.requestIdleCallback : _requestIdleCallback, cancelIdleCallback = isSupported ? window.cancelIdleCallback : _cancelIdleCallback;
35
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/requestIdleCallback/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,uBAA0B;AAE1B,MAAM,uBAAuB,SAAU,IAAc,SAAkB;AACrE,SAAO,WAAW,MAAM;AACtB,UAAM,QAAQ,KAAK,IAAI;AACvB,OAAG;AAAA,MACD,YAAY;AAAA,MACZ,gBAAgB;AACd,eAAO,KAAK,IAAI,GAAG,MAAM,KAAK,IAAI,IAAI,MAAM;AAAA,MAC9C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC;AACN,GAEM,sBAAsB,SAAU,IAAI;AACxC,eAAa,EAAE;AACjB,GAEM,cAAc,8BAAa,OAAO,OAAO,sBAAwB,KAE1D,sBAAsB,cAC/B,OAAO,sBACP,sBAES,qBAAqB,cAC9B,OAAO,qBACP;",
5
- "names": []
6
- }
@@ -1,29 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var dangerousStyleValue_exports = {};
16
- __export(dangerousStyleValue_exports, {
17
- dangerousStyleValue: () => dangerousStyleValue
18
- });
19
- module.exports = __toCommonJS(dangerousStyleValue_exports);
20
- var import_unitlessNumbers = require("../unitlessNumbers/index"), import_normalizeValueWithProperty = require("../../StyleSheet/compiler/normalizeValueWithProperty");
21
- function dangerousStyleValue(name, value, isCustomProperty) {
22
- var isEmpty = value == null || typeof value == "boolean" || value === "";
23
- return isEmpty ? "" : (typeof value == "object" && typeof value.__getValue == "function" && (value = value.__getValue()), name === "transform" && Array.isArray(value) ? value.map((t) => {
24
- const key = Object.keys(t)[0];
25
- let val = t[key];
26
- return typeof val == "object" && typeof val.__getValue == "function" && (val = val.__getValue()), key === "matrix" || key === "matrix3d" ? `${key}(${val.join(",")})` : `${key}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key)})`;
27
- }).join(" ") : !isCustomProperty && typeof value == "number" && value !== 0 && !(import_unitlessNumbers.unitlessNumbers.hasOwnProperty(name) && import_unitlessNumbers.unitlessNumbers[name]) ? value + "px" : ("" + value).trim());
28
- }
29
- //# sourceMappingURL=dangerousStyleValue.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/modules/setValueForStyles/dangerousStyleValue.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA,6BAAoD,qCACpD,oCAA2C;AAWpC,SAAS,oBAAoB,MAAM,OAAO,kBAAkB;AAWjE,MAAI,UAAU,SAAS,QAAQ,OAAO,SAAU,aAAa,UAAU;AACvE,SAAI,UACK,MAIL,OAAO,SAAU,YAAY,OAAO,MAAM,cAAe,eAC3D,QAAQ,MAAM,WAAW,IAIvB,SAAS,eAAe,MAAM,QAAQ,KAAK,IACtC,MACJ,IAAI,CAAC,MAAM;AACV,UAAM,MAAM,OAAO,KAAK,CAAC,EAAE,CAAC;AAC5B,QAAI,MAAM,EAAE,GAAG;AAKf,WAHI,OAAO,OAAQ,YAAY,OAAO,IAAI,cAAe,eACvD,MAAM,IAAI,WAAW,IAEnB,QAAQ,YAAY,QAAQ,aACvB,GAAG,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC,MAEzB,GAAG,GAAG,QAAI,8DAA2B,KAAK,GAAG,CAAC;AAAA,EACvD,CAAC,EACA,KAAK,GAAG,IAIX,CAAC,oBACD,OAAO,SAAU,YACjB,UAAU,KACV,EAAE,uBAAAA,gBAAiB,eAAe,IAAI,KAAK,uBAAAA,gBAAiB,IAAI,KAEzD,QAAQ,QAGT,KAAK,OAAO,KAAK;AAC3B;",
5
- "names": ["isUnitlessNumber"]
6
- }