@tamagui/react-native-web-internals 1.114.4 → 1.115.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 (198) hide show
  1. package/dist/cjs/StyleSheet/__tests__/{compiler-createReactDOMStyle-test.js → compiler-createReactDOMStyle-test.cjs} +98 -50
  2. package/dist/cjs/StyleSheet/__tests__/{compiler-test.js → compiler-test.cjs} +158 -129
  3. package/dist/cjs/StyleSheet/__tests__/{dom-createOrderedCSSStyleSheet-test.js → dom-createOrderedCSSStyleSheet-test.cjs} +23 -19
  4. package/dist/cjs/StyleSheet/__tests__/{index-test.js → index-test.cjs} +173 -116
  5. package/dist/cjs/StyleSheet/__tests__/preprocess-test.cjs +108 -0
  6. package/dist/cjs/StyleSheet/__tests__/validate-test.cjs +36 -0
  7. package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +99 -0
  8. package/dist/cjs/StyleSheet/compiler/hash.cjs +26 -0
  9. package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +37 -0
  10. package/dist/cjs/StyleSheet/compiler/index.cjs +329 -0
  11. package/dist/cjs/StyleSheet/compiler/{normalizeColor.js → normalizeColor.cjs} +30 -20
  12. package/dist/cjs/StyleSheet/compiler/{normalizeValueWithProperty.js → normalizeValueWithProperty.cjs} +24 -15
  13. package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +60 -0
  14. package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +48 -0
  15. package/dist/cjs/StyleSheet/dom/{createOrderedCSSStyleSheet.js → createOrderedCSSStyleSheet.cjs} +36 -20
  16. package/dist/cjs/StyleSheet/dom/index.cjs +78 -0
  17. package/dist/cjs/StyleSheet/{index.js → index.cjs} +24 -19
  18. package/dist/cjs/StyleSheet/preprocess.cjs +112 -0
  19. package/dist/cjs/StyleSheet/validate.cjs +69 -0
  20. package/dist/cjs/TextAncestorContext.cjs +29 -0
  21. package/dist/cjs/{colorProps.js → colorProps.cjs} +16 -11
  22. package/dist/cjs/index.cjs +113 -0
  23. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +50 -0
  24. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +40 -0
  25. package/dist/cjs/modules/AccessibilityUtil/{index.js → index.cjs} +25 -15
  26. package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +27 -0
  27. package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +69 -0
  28. package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +48 -0
  29. package/dist/cjs/modules/AssetRegistry/{index.js → index.cjs} +16 -11
  30. package/dist/cjs/modules/ImageLoader/index.cjs +112 -0
  31. package/dist/cjs/modules/{InteractionManager.js → InteractionManager.cjs} +26 -20
  32. package/dist/cjs/modules/Platform/__tests__/index-test.cjs +48 -0
  33. package/dist/cjs/modules/Platform/index.cjs +31 -0
  34. package/dist/cjs/modules/TextInputState/{index.js → index.cjs} +23 -15
  35. package/dist/cjs/modules/UIManager/__tests__/{index-test.js → index-test.cjs} +56 -32
  36. package/dist/cjs/modules/UIManager/index.cjs +138 -0
  37. package/dist/cjs/modules/canUseDOM.cjs +28 -0
  38. package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +156 -0
  39. package/dist/cjs/modules/createDOMProps/index.cjs +138 -0
  40. package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +344 -0
  41. package/dist/cjs/modules/createEventHandle/{index.js → index.cjs} +38 -34
  42. package/dist/cjs/modules/dismissKeyboard/{index.js → index.cjs} +23 -15
  43. package/dist/cjs/modules/forwardedProps/index.cjs +160 -0
  44. package/dist/cjs/modules/getBoundingClientRect/index.cjs +29 -0
  45. package/dist/cjs/modules/invariant.cjs +36 -0
  46. package/dist/cjs/modules/isSelectionValid/index.cjs +35 -0
  47. package/dist/cjs/modules/isWebColor/index.cjs +27 -0
  48. package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +42 -0
  49. package/dist/cjs/modules/mergeRefs/index.cjs +42 -0
  50. package/dist/cjs/modules/modality/__tests__/{index-test.js → index-test.cjs} +20 -8
  51. package/dist/cjs/modules/modality/{index.js → index.cjs} +75 -19
  52. package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/{index-test.js → index-test.cjs} +16 -14
  53. package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +36 -0
  54. package/dist/cjs/modules/normalizeColor/{index.js → index.cjs} +29 -18
  55. package/dist/cjs/modules/pick/index.cjs +30 -0
  56. package/dist/cjs/modules/processColor/__tests__/{index-test.js → index-test.cjs} +17 -15
  57. package/dist/cjs/modules/processColor/{index.js → index.cjs} +25 -19
  58. package/dist/cjs/modules/requestIdleCallback/index.cjs +56 -0
  59. package/dist/cjs/modules/setValueForStyles/{dangerousStyleValue.js → dangerousStyleValue.cjs} +23 -15
  60. package/dist/cjs/modules/setValueForStyles/{index.js → index.cjs} +26 -18
  61. package/dist/cjs/modules/unitlessNumbers/index.cjs +87 -0
  62. package/dist/cjs/modules/useElementLayout/{index.js → index.cjs} +40 -23
  63. package/dist/cjs/modules/useEvent/__tests__/{index-test.js → index-test.cjs} +218 -99
  64. package/dist/cjs/modules/useEvent/index.cjs +56 -0
  65. package/dist/cjs/modules/useHover/__tests__/{index-test.js → index-test.cjs} +118 -40
  66. package/dist/cjs/modules/useHover/index.cjs +108 -0
  67. package/dist/cjs/modules/useLayoutEffect/{index.js → index.cjs} +24 -15
  68. package/dist/cjs/modules/useLocale/index.cjs +66 -0
  69. package/dist/cjs/modules/useLocale/{isLocaleRTL.js → isLocaleRTL.cjs} +23 -31
  70. package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +102 -0
  71. package/dist/cjs/modules/useMergeRefs/index.cjs +43 -0
  72. package/dist/cjs/modules/usePlatformMethods/index.cjs +48 -0
  73. package/dist/cjs/modules/useStable/__tests__/{index-test.js → index-test.cjs} +46 -23
  74. package/dist/cjs/modules/useStable/{index.js → index.cjs} +22 -14
  75. package/dist/cjs/styleTypes.cjs +16 -0
  76. package/dist/cjs/types.cjs +16 -0
  77. package/package.json +9 -8
  78. package/dist/cjs/StyleSheet/__tests__/preprocess-test.js +0 -77
  79. package/dist/cjs/StyleSheet/__tests__/validate-test.js +0 -18
  80. package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js +0 -121
  81. package/dist/cjs/StyleSheet/compiler/hash.js +0 -21
  82. package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js +0 -31
  83. package/dist/cjs/StyleSheet/compiler/index.js +0 -253
  84. package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js +0 -35
  85. package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js +0 -44
  86. package/dist/cjs/StyleSheet/dom/index.js +0 -74
  87. package/dist/cjs/StyleSheet/preprocess.js +0 -67
  88. package/dist/cjs/StyleSheet/validate.js +0 -66
  89. package/dist/cjs/TextAncestorContext.js +0 -24
  90. package/dist/cjs/index.js +0 -73
  91. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +0 -46
  92. package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +0 -30
  93. package/dist/cjs/modules/AccessibilityUtil/isDisabled.js +0 -22
  94. package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js +0 -60
  95. package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js +0 -43
  96. package/dist/cjs/modules/ImageLoader/index.js +0 -102
  97. package/dist/cjs/modules/Platform/__tests__/index-test.js +0 -46
  98. package/dist/cjs/modules/Platform/index.js +0 -26
  99. package/dist/cjs/modules/UIManager/index.js +0 -101
  100. package/dist/cjs/modules/canUseDOM.js +0 -23
  101. package/dist/cjs/modules/createDOMProps/__tests__/index-test.js +0 -106
  102. package/dist/cjs/modules/createDOMProps/index.js +0 -121
  103. package/dist/cjs/modules/createEventHandle/__tests__/index-test.js +0 -242
  104. package/dist/cjs/modules/forwardedProps/index.js +0 -145
  105. package/dist/cjs/modules/getBoundingClientRect/index.js +0 -25
  106. package/dist/cjs/modules/invariant.js +0 -35
  107. package/dist/cjs/modules/isSelectionValid/index.js +0 -27
  108. package/dist/cjs/modules/isWebColor/index.js +0 -22
  109. package/dist/cjs/modules/mergeRefs/__tests__/index-test.js +0 -34
  110. package/dist/cjs/modules/mergeRefs/index.js +0 -41
  111. package/dist/cjs/modules/multiplyStyleLengthValue/index.js +0 -28
  112. package/dist/cjs/modules/pick/index.js +0 -26
  113. package/dist/cjs/modules/requestIdleCallback/index.js +0 -44
  114. package/dist/cjs/modules/unitlessNumbers/index.js +0 -80
  115. package/dist/cjs/modules/useEvent/index.js +0 -45
  116. package/dist/cjs/modules/useHover/index.js +0 -81
  117. package/dist/cjs/modules/useLocale/index.js +0 -54
  118. package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js +0 -68
  119. package/dist/cjs/modules/useMergeRefs/index.js +0 -36
  120. package/dist/cjs/modules/usePlatformMethods/index.js +0 -39
  121. package/dist/cjs/styleTypes.js +0 -14
  122. package/dist/cjs/types.js +0 -14
  123. /package/dist/cjs/StyleSheet/__tests__/{compiler-createReactDOMStyle-test.js.map → compiler-createReactDOMStyle-test.cjs.map} +0 -0
  124. /package/dist/cjs/StyleSheet/__tests__/{compiler-test.js.map → compiler-test.cjs.map} +0 -0
  125. /package/dist/cjs/StyleSheet/__tests__/{dom-createOrderedCSSStyleSheet-test.js.map → dom-createOrderedCSSStyleSheet-test.cjs.map} +0 -0
  126. /package/dist/cjs/StyleSheet/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  127. /package/dist/cjs/StyleSheet/__tests__/{preprocess-test.js.map → preprocess-test.cjs.map} +0 -0
  128. /package/dist/cjs/StyleSheet/__tests__/{validate-test.js.map → validate-test.cjs.map} +0 -0
  129. /package/dist/cjs/StyleSheet/compiler/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
  130. /package/dist/cjs/StyleSheet/compiler/{hash.js.map → hash.cjs.map} +0 -0
  131. /package/dist/cjs/StyleSheet/compiler/{hyphenateStyleName.js.map → hyphenateStyleName.cjs.map} +0 -0
  132. /package/dist/cjs/StyleSheet/compiler/{index.js.map → index.cjs.map} +0 -0
  133. /package/dist/cjs/StyleSheet/compiler/{normalizeColor.js.map → normalizeColor.cjs.map} +0 -0
  134. /package/dist/cjs/StyleSheet/compiler/{normalizeValueWithProperty.js.map → normalizeValueWithProperty.cjs.map} +0 -0
  135. /package/dist/cjs/StyleSheet/compiler/{resolveShadowValue.js.map → resolveShadowValue.cjs.map} +0 -0
  136. /package/dist/cjs/StyleSheet/dom/{createCSSStyleSheet.js.map → createCSSStyleSheet.cjs.map} +0 -0
  137. /package/dist/cjs/StyleSheet/dom/{createOrderedCSSStyleSheet.js.map → createOrderedCSSStyleSheet.cjs.map} +0 -0
  138. /package/dist/cjs/StyleSheet/dom/{index.js.map → index.cjs.map} +0 -0
  139. /package/dist/cjs/StyleSheet/{index.js.map → index.cjs.map} +0 -0
  140. /package/dist/cjs/StyleSheet/{preprocess.js.map → preprocess.cjs.map} +0 -0
  141. /package/dist/cjs/StyleSheet/{validate.js.map → validate.cjs.map} +0 -0
  142. /package/dist/cjs/{TextAncestorContext.js.map → TextAncestorContext.cjs.map} +0 -0
  143. /package/dist/cjs/{colorProps.js.map → colorProps.cjs.map} +0 -0
  144. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  145. /package/dist/cjs/modules/AccessibilityUtil/__tests__/{propsToAccessibilityComponent-test.js.map → propsToAccessibilityComponent-test.cjs.map} +0 -0
  146. /package/dist/cjs/modules/AccessibilityUtil/__tests__/{propsToAriaRole-test.js.map → propsToAriaRole-test.cjs.map} +0 -0
  147. /package/dist/cjs/modules/AccessibilityUtil/{index.js.map → index.cjs.map} +0 -0
  148. /package/dist/cjs/modules/AccessibilityUtil/{isDisabled.js.map → isDisabled.cjs.map} +0 -0
  149. /package/dist/cjs/modules/AccessibilityUtil/{propsToAccessibilityComponent.js.map → propsToAccessibilityComponent.cjs.map} +0 -0
  150. /package/dist/cjs/modules/AccessibilityUtil/{propsToAriaRole.js.map → propsToAriaRole.cjs.map} +0 -0
  151. /package/dist/cjs/modules/AssetRegistry/{index.js.map → index.cjs.map} +0 -0
  152. /package/dist/cjs/modules/ImageLoader/{index.js.map → index.cjs.map} +0 -0
  153. /package/dist/cjs/modules/{InteractionManager.js.map → InteractionManager.cjs.map} +0 -0
  154. /package/dist/cjs/modules/Platform/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  155. /package/dist/cjs/modules/Platform/{index.js.map → index.cjs.map} +0 -0
  156. /package/dist/cjs/modules/TextInputState/{index.js.map → index.cjs.map} +0 -0
  157. /package/dist/cjs/modules/UIManager/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  158. /package/dist/cjs/modules/UIManager/{index.js.map → index.cjs.map} +0 -0
  159. /package/dist/cjs/modules/{canUseDOM.js.map → canUseDOM.cjs.map} +0 -0
  160. /package/dist/cjs/modules/createDOMProps/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  161. /package/dist/cjs/modules/createDOMProps/{index.js.map → index.cjs.map} +0 -0
  162. /package/dist/cjs/modules/createEventHandle/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  163. /package/dist/cjs/modules/createEventHandle/{index.js.map → index.cjs.map} +0 -0
  164. /package/dist/cjs/modules/dismissKeyboard/{index.js.map → index.cjs.map} +0 -0
  165. /package/dist/cjs/modules/forwardedProps/{index.js.map → index.cjs.map} +0 -0
  166. /package/dist/cjs/modules/getBoundingClientRect/{index.js.map → index.cjs.map} +0 -0
  167. /package/dist/cjs/modules/{invariant.js.map → invariant.cjs.map} +0 -0
  168. /package/dist/cjs/modules/isSelectionValid/{index.js.map → index.cjs.map} +0 -0
  169. /package/dist/cjs/modules/isWebColor/{index.js.map → index.cjs.map} +0 -0
  170. /package/dist/cjs/modules/mergeRefs/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  171. /package/dist/cjs/modules/mergeRefs/{index.js.map → index.cjs.map} +0 -0
  172. /package/dist/cjs/modules/modality/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  173. /package/dist/cjs/modules/modality/{index.js.map → index.cjs.map} +0 -0
  174. /package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  175. /package/dist/cjs/modules/multiplyStyleLengthValue/{index.js.map → index.cjs.map} +0 -0
  176. /package/dist/cjs/modules/normalizeColor/{index.js.map → index.cjs.map} +0 -0
  177. /package/dist/cjs/modules/pick/{index.js.map → index.cjs.map} +0 -0
  178. /package/dist/cjs/modules/processColor/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  179. /package/dist/cjs/modules/processColor/{index.js.map → index.cjs.map} +0 -0
  180. /package/dist/cjs/modules/requestIdleCallback/{index.js.map → index.cjs.map} +0 -0
  181. /package/dist/cjs/modules/setValueForStyles/{dangerousStyleValue.js.map → dangerousStyleValue.cjs.map} +0 -0
  182. /package/dist/cjs/modules/setValueForStyles/{index.js.map → index.cjs.map} +0 -0
  183. /package/dist/cjs/modules/unitlessNumbers/{index.js.map → index.cjs.map} +0 -0
  184. /package/dist/cjs/modules/useElementLayout/{index.js.map → index.cjs.map} +0 -0
  185. /package/dist/cjs/modules/useEvent/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  186. /package/dist/cjs/modules/useEvent/{index.js.map → index.cjs.map} +0 -0
  187. /package/dist/cjs/modules/useHover/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  188. /package/dist/cjs/modules/useHover/{index.js.map → index.cjs.map} +0 -0
  189. /package/dist/cjs/modules/useLayoutEffect/{index.js.map → index.cjs.map} +0 -0
  190. /package/dist/cjs/modules/useLocale/{index.js.map → index.cjs.map} +0 -0
  191. /package/dist/cjs/modules/useLocale/{isLocaleRTL.js.map → isLocaleRTL.cjs.map} +0 -0
  192. /package/dist/cjs/modules/useMergeRefs/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  193. /package/dist/cjs/modules/useMergeRefs/{index.js.map → index.cjs.map} +0 -0
  194. /package/dist/cjs/modules/usePlatformMethods/{index.js.map → index.cjs.map} +0 -0
  195. /package/dist/cjs/modules/useStable/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  196. /package/dist/cjs/modules/useStable/{index.js.map → index.cjs.map} +0 -0
  197. /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
  198. /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
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);
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
15
21
  var createOrderedCSSStyleSheet_exports = {};
16
22
  __export(createOrderedCSSStyleSheet_exports, {
17
23
  default: () => createOrderedCSSStyleSheet
@@ -19,25 +25,32 @@ __export(createOrderedCSSStyleSheet_exports, {
19
25
  module.exports = __toCommonJS(createOrderedCSSStyleSheet_exports);
20
26
  const slice = Array.prototype.slice;
21
27
  function createOrderedCSSStyleSheet(sheet) {
22
- const groups = {}, selectors = {};
28
+ const groups = {},
29
+ selectors = {};
23
30
  if (sheet != null) {
24
31
  let group;
25
32
  slice.call(sheet.cssRules).forEach((cssRule, i) => {
26
33
  const cssText = cssRule.cssText;
27
- if (cssText.indexOf("stylesheet-group") > -1)
28
- group = decodeGroupRule(cssRule), groups[group] = { start: i, rules: [cssText] };
29
- else {
34
+ if (cssText.indexOf("stylesheet-group") > -1) group = decodeGroupRule(cssRule), groups[group] = {
35
+ start: i,
36
+ rules: [cssText]
37
+ };else {
30
38
  const selectorText = getSelectorText(cssText);
31
39
  selectorText != null && (selectors[selectorText] = !0, groups[group].rules.push(cssText));
32
40
  }
33
41
  });
34
42
  }
35
43
  function sheetInsert(sheet2, group, text) {
36
- const orderedGroups = getOrderedGroups(groups), nextGroupIndex = orderedGroups.indexOf(group) + 1, nextGroup = orderedGroups[nextGroupIndex], position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length, isInserted = insertRuleAt(sheet2, text, position);
44
+ const orderedGroups = getOrderedGroups(groups),
45
+ nextGroupIndex = orderedGroups.indexOf(group) + 1,
46
+ nextGroup = orderedGroups[nextGroupIndex],
47
+ position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length,
48
+ isInserted = insertRuleAt(sheet2, text, position);
37
49
  if (isInserted) {
38
50
  groups[group].start == null && (groups[group].start = position);
39
51
  for (let i = nextGroupIndex; i < orderedGroups.length; i += 1) {
40
- const groupNumber = orderedGroups[i], previousStart = groups[groupNumber].start || 0;
52
+ const groupNumber = orderedGroups[i],
53
+ previousStart = groups[groupNumber].start || 0;
41
54
  groups[groupNumber].start = previousStart + 1;
42
55
  }
43
56
  }
@@ -48,8 +61,9 @@ function createOrderedCSSStyleSheet(sheet) {
48
61
  * The textContent of the style sheet.
49
62
  */
50
63
  getTextContent() {
51
- return getOrderedGroups(groups).map((group) => {
52
- const rules = groups[group].rules, marker = rules.shift();
64
+ return getOrderedGroups(groups).map(group => {
65
+ const rules = groups[group].rules,
66
+ marker = rules.shift();
53
67
  return rules.sort(), rules.unshift(marker), rules.join(`
54
68
  `);
55
69
  }).join(`
@@ -62,7 +76,10 @@ function createOrderedCSSStyleSheet(sheet) {
62
76
  const group = Number(groupValue);
63
77
  if (groups[group] == null) {
64
78
  const markerRule = encodeGroupRule(group);
65
- groups[group] = { start: null, rules: [markerRule] }, sheet != null && sheetInsert(sheet, group, markerRule);
79
+ groups[group] = {
80
+ start: null,
81
+ rules: [markerRule]
82
+ }, sheet != null && sheetInsert(sheet, group, markerRule);
66
83
  }
67
84
  const selectorText = getSelectorText(cssText);
68
85
  selectorText != null && selectors[selectorText] == null && (selectors[selectorText] = !0, groups[group].rules.push(cssText), sheet != null && (sheetInsert(sheet, group, cssText) || groups[group].rules.pop()));
@@ -90,5 +107,4 @@ function insertRuleAt(root, cssText, position) {
90
107
  } catch {
91
108
  return !1;
92
109
  }
93
- }
94
- //# sourceMappingURL=createOrderedCSSStyleSheet.js.map
110
+ }
@@ -0,0 +1,78 @@
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,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var dom_exports = {};
33
+ __export(dom_exports, {
34
+ createSheet: () => createSheet
35
+ });
36
+ module.exports = __toCommonJS(dom_exports);
37
+ var import_canUseDOM = __toESM(require("../../modules/canUseDOM.cjs")),
38
+ import_createCSSStyleSheet = __toESM(require("./createCSSStyleSheet.cjs")),
39
+ import_createOrderedCSSStyleSheet = __toESM(require("./createOrderedCSSStyleSheet.cjs"));
40
+ const defaultId = "react-native-stylesheet",
41
+ roots = /* @__PURE__ */new WeakMap(),
42
+ sheets = [],
43
+ initialRules = [
44
+ // minimal top-level reset
45
+ "html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}", "body{margin:0;}",
46
+ // minimal form pseudo-element reset
47
+ "button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}", "input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];
48
+ function createSheet(root, id = defaultId) {
49
+ let sheet;
50
+ function createSheet2() {
51
+ if (!sheet) if (import_canUseDOM.default) {
52
+ const rootNode = root != null ? root.getRootNode() : document;
53
+ if (sheets.length === 0) sheet = (0, import_createOrderedCSSStyleSheet.default)((0, import_createCSSStyleSheet.default)(id)), initialRules.forEach(rule => {
54
+ sheet.insert(rule, 0);
55
+ }), roots.set(rootNode, sheets.length), sheets.push(sheet);else {
56
+ const index = roots.get(rootNode);
57
+ if (index == null) {
58
+ const initialSheet = sheets[0],
59
+ textContent = initialSheet != null ? initialSheet.getTextContent() : "";
60
+ sheet = (0, import_createOrderedCSSStyleSheet.default)((0, import_createCSSStyleSheet.default)(id, rootNode, textContent)), roots.set(rootNode, sheets.length), sheets.push(sheet);
61
+ } else sheet = sheets[index];
62
+ }
63
+ } else sheets.length === 0 ? (sheet = (0, import_createOrderedCSSStyleSheet.default)((0, import_createCSSStyleSheet.default)(id)), initialRules.forEach(rule => {
64
+ sheet.insert(rule, 0);
65
+ }), sheets.push(sheet)) : sheet = sheets[0];
66
+ }
67
+ return {
68
+ getTextContent() {
69
+ return createSheet2(), sheet.getTextContent();
70
+ },
71
+ id,
72
+ insert(cssText, groupValue) {
73
+ createSheet2(), sheets.forEach(s => {
74
+ s.insert(cssText, groupValue);
75
+ });
76
+ }
77
+ };
78
+ }
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
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);
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
15
21
  var StyleSheet_exports = {};
16
22
  __export(StyleSheet_exports, {
17
23
  default: () => StyleSheet,
@@ -19,12 +25,13 @@ __export(StyleSheet_exports, {
19
25
  });
20
26
  module.exports = __toCommonJS(StyleSheet_exports);
21
27
  const absoluteFillObject = {
22
- position: "absolute",
23
- left: 0,
24
- right: 0,
25
- top: 0,
26
- bottom: 0
27
- }, absoluteFill = absoluteFillObject;
28
+ position: "absolute",
29
+ left: 0,
30
+ right: 0,
31
+ top: 0,
32
+ bottom: 0
33
+ },
34
+ absoluteFill = absoluteFillObject;
28
35
  function create(styles) {
29
36
  return styles;
30
37
  }
@@ -40,13 +47,11 @@ function getSheet() {
40
47
  textContent: sheet.getTextContent()
41
48
  };
42
49
  }
43
- function StyleSheet(styles, options) {
44
- }
50
+ function StyleSheet(styles, options) {}
45
51
  StyleSheet.absoluteFill = absoluteFill;
46
52
  StyleSheet.absoluteFillObject = absoluteFillObject;
47
53
  StyleSheet.create = create;
48
54
  StyleSheet.compose = compose;
49
55
  StyleSheet.flatten = flatten;
50
56
  StyleSheet.getSheet = getSheet;
51
- StyleSheet.hairlineWidth = 1;
52
- //# sourceMappingURL=index.js.map
57
+ StyleSheet.hairlineWidth = 1;
@@ -0,0 +1,112 @@
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,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var preprocess_exports = {};
33
+ __export(preprocess_exports, {
34
+ createBoxShadowValue: () => createBoxShadowValue,
35
+ createTextShadowValue: () => createTextShadowValue,
36
+ preprocess: () => preprocess,
37
+ processStyle: () => processStyle
38
+ });
39
+ module.exports = __toCommonJS(preprocess_exports);
40
+ var import_normalizeColor = __toESM(require("./compiler/normalizeColor.cjs")),
41
+ import_normalizeValueWithProperty = __toESM(require("./compiler/normalizeValueWithProperty.cjs"));
42
+ const emptyObject = {},
43
+ defaultOffset = {
44
+ height: 0,
45
+ width: 0
46
+ },
47
+ createBoxShadowValue = style => {
48
+ const {
49
+ shadowColor,
50
+ shadowOffset,
51
+ shadowOpacity,
52
+ shadowRadius
53
+ } = style,
54
+ {
55
+ height,
56
+ width
57
+ } = shadowOffset || defaultOffset,
58
+ offsetX = (0, import_normalizeValueWithProperty.default)(width),
59
+ offsetY = (0, import_normalizeValueWithProperty.default)(height),
60
+ blurRadius = (0, import_normalizeValueWithProperty.default)(shadowRadius || 0),
61
+ color = (0, import_normalizeColor.default)(shadowColor || "black", shadowOpacity);
62
+ if (color != null && offsetX != null && offsetY != null && blurRadius != null) return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
63
+ },
64
+ createTextShadowValue = style => {
65
+ const {
66
+ textShadowColor,
67
+ textShadowOffset,
68
+ textShadowRadius
69
+ } = style,
70
+ {
71
+ height,
72
+ width
73
+ } = textShadowOffset || defaultOffset,
74
+ radius = textShadowRadius || 0,
75
+ offsetX = (0, import_normalizeValueWithProperty.default)(width),
76
+ offsetY = (0, import_normalizeValueWithProperty.default)(height),
77
+ blurRadius = (0, import_normalizeValueWithProperty.default)(radius),
78
+ color = (0, import_normalizeValueWithProperty.default)(textShadowColor, "textShadowColor");
79
+ if (color && (height !== 0 || width !== 0 || radius !== 0) && offsetX != null && offsetY != null && blurRadius != null) return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
80
+ },
81
+ preprocess = originalStyle => {
82
+ const style = originalStyle || emptyObject,
83
+ nextStyle = {};
84
+ for (const originalProp in style) {
85
+ const originalValue = style[originalProp];
86
+ let prop = originalProp,
87
+ value = originalValue;
88
+ if (!(!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null)) {
89
+ if (prop === "shadowColor" || prop === "shadowOffset" || prop === "shadowOpacity" || prop === "shadowRadius") {
90
+ const boxShadowValue = createBoxShadowValue(style);
91
+ if (boxShadowValue != null && nextStyle.boxShadow == null) {
92
+ const {
93
+ boxShadow
94
+ } = style;
95
+ prop = "boxShadow", value = boxShadow ? `${boxShadow}, ${boxShadowValue}` : boxShadowValue;
96
+ } else continue;
97
+ }
98
+ if (prop === "textShadowColor" || prop === "textShadowOffset" || prop === "textShadowRadius") {
99
+ const textShadowValue = createTextShadowValue(style);
100
+ if (textShadowValue != null && nextStyle.textShadow == null) {
101
+ const {
102
+ textShadow
103
+ } = style;
104
+ prop = "textShadow", value = textShadow ? `${textShadow}, ${textShadowValue}` : textShadowValue;
105
+ } else continue;
106
+ }
107
+ nextStyle[prop] = value;
108
+ }
109
+ }
110
+ return nextStyle;
111
+ },
112
+ processStyle = preprocess;
@@ -0,0 +1,69 @@
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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var validate_exports = {};
22
+ __export(validate_exports, {
23
+ validate: () => validate
24
+ });
25
+ module.exports = __toCommonJS(validate_exports);
26
+ const invalidShortforms = {
27
+ background: !0,
28
+ borderBottom: !0,
29
+ borderLeft: !0,
30
+ borderRight: !0,
31
+ borderTop: !0,
32
+ font: !0,
33
+ grid: !0,
34
+ outline: !0,
35
+ textDecoration: !0
36
+ },
37
+ invalidMultiValueShortforms = {
38
+ flex: !0,
39
+ margin: !0,
40
+ padding: !0,
41
+ borderColor: !0,
42
+ borderRadius: !0,
43
+ borderStyle: !0,
44
+ borderWidth: !0,
45
+ marginHorizontal: !0,
46
+ marginVertical: !0,
47
+ paddingHorizontal: !0,
48
+ paddingVertical: !0,
49
+ overflow: !0,
50
+ overscrollBehavior: !0,
51
+ backgroundPosition: !0
52
+ };
53
+ function error(message) {
54
+ console.error(message);
55
+ }
56
+ function validate(obj) {
57
+ for (const k in obj) {
58
+ const prop = k.trim(),
59
+ value = obj[prop];
60
+ let isInvalid = !1;
61
+ if (value !== null) {
62
+ if (typeof value == "string" && value.indexOf("!important") > -1) error(`Invalid style declaration "${prop}:${value}". Values cannot include "!important"`), isInvalid = !0;else {
63
+ let suggestion = "";
64
+ prop === "animation" || prop === "animationName" ? (suggestion = 'Did you mean "animationKeyframes"?', isInvalid = !0) : prop === "direction" ? (suggestion = 'Did you mean "writingDirection"?', isInvalid = !0) : prop === "verticalAlign" ? (suggestion = 'Did you mean "textAlignVertical"?', isInvalid = !0) : invalidShortforms[prop] ? (suggestion = "Please use long-form properties.", isInvalid = !0) : invalidMultiValueShortforms[prop], suggestion !== "" && error(`Invalid style property of "${prop}". ${suggestion}`);
65
+ }
66
+ isInvalid && delete obj[k];
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,29 @@
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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var TextAncestorContext_exports = {};
22
+ __export(TextAncestorContext_exports, {
23
+ TextAncestorContext: () => TextAncestorContext,
24
+ default: () => TextAncestorContext_default
25
+ });
26
+ module.exports = __toCommonJS(TextAncestorContext_exports);
27
+ var import_react = require("react");
28
+ const TextAncestorContext = (0, import_react.createContext)(!1);
29
+ var TextAncestorContext_default = TextAncestorContext;
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
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);
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
15
21
  var colorProps_exports = {};
16
22
  __export(colorProps_exports, {
17
23
  colorProps: () => colorProps
@@ -28,5 +34,4 @@ const colorProps = {
28
34
  shadowColor: !0,
29
35
  textDecorationColor: !0,
30
36
  textShadowColor: !0
31
- };
32
- //# sourceMappingURL=colorProps.js.map
37
+ };
@@ -0,0 +1,113 @@
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,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ },
20
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")),
21
+ __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
27
+ value: mod,
28
+ enumerable: !0
29
+ }) : target, mod)),
30
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
31
+ value: !0
32
+ }), mod);
33
+ var src_exports = {};
34
+ __export(src_exports, {
35
+ AccessibilityUtil: () => import_AccessibilityUtil.AccessibilityUtil,
36
+ ImageLoader: () => import_ImageLoader.default,
37
+ InteractionManager: () => import_InteractionManager.InteractionManager,
38
+ Platform: () => import_Platform.default,
39
+ StyleSheet: () => import_StyleSheet2.default,
40
+ TextAncestorContext: () => import_TextAncestorContext.TextAncestorContext,
41
+ TextInputState: () => import_TextInputState.default,
42
+ UIManager: () => import_UIManager.default,
43
+ canUseDOM: () => import_canUseDOM.default,
44
+ colorProps: () => import_colorProps.colorProps,
45
+ createDOMProps: () => import_createDOMProps.default,
46
+ createEventHandle: () => import_createEventHandle.default,
47
+ createReactDOMStyle: () => import_createReactDOMStyle.default,
48
+ createSheet: () => import_dom.createSheet,
49
+ dismissKeyboard: () => import_dismissKeyboard.default,
50
+ flattenStyle: () => import_StyleSheet.flatten,
51
+ getBoundingClientRect: () => import_getBoundingClientRect.default,
52
+ isSelectionValid: () => import_isSelectionValid.default,
53
+ isWebColor: () => import_isWebColor.default,
54
+ multiplyStyleLengthValue: () => import_multiplyStyleLengthValue.default,
55
+ normalizeColor: () => import_normalizeColor.default,
56
+ pick: () => import_pick.default,
57
+ processColor: () => import_processColor.processColor,
58
+ requestIdleCallback: () => import_requestIdleCallback.default,
59
+ setValueForStyles: () => import_setValueForStyles.default,
60
+ stylesFromProps: () => import_createDOMProps2.stylesFromProps,
61
+ unitlessNumbers: () => import_unitlessNumbers.default,
62
+ useElementLayout: () => import_useElementLayout.default,
63
+ useEvent: () => import_useEvent.default,
64
+ useHover: () => import_useHover.default,
65
+ useLayoutEffect: () => import_useLayoutEffect.default,
66
+ useMergeRefs: () => import_useMergeRefs.useMergeRefs,
67
+ usePlatformMethods: () => import_usePlatformMethods.usePlatformMethods,
68
+ useStable: () => import_useStable.default
69
+ });
70
+ module.exports = __toCommonJS(src_exports);
71
+ __reExport(src_exports, require("./modules/AssetRegistry/index.cjs"), module.exports);
72
+ __reExport(src_exports, require("./modules/forwardedProps/index.cjs"), module.exports);
73
+ __reExport(src_exports, require("./modules/mergeRefs/index.cjs"), module.exports);
74
+ __reExport(src_exports, require("./modules/modality/index.cjs"), module.exports);
75
+ __reExport(src_exports, require("./modules/useLocale/index.cjs"), module.exports);
76
+ var import_usePlatformMethods = require("./modules/usePlatformMethods/index.cjs"),
77
+ import_TextAncestorContext = require("./TextAncestorContext.cjs");
78
+ __reExport(src_exports, require("@tamagui/react-native-use-pressable"), module.exports);
79
+ __reExport(src_exports, require("@tamagui/react-native-use-responder-events"), module.exports);
80
+ var import_colorProps = require("./colorProps.cjs"),
81
+ import_AccessibilityUtil = require("./modules/AccessibilityUtil/index.cjs"),
82
+ import_canUseDOM = __toESM(require("./modules/canUseDOM.cjs")),
83
+ import_createDOMProps = __toESM(require("./modules/createDOMProps/index.cjs")),
84
+ import_createDOMProps2 = require("./modules/createDOMProps/index.cjs"),
85
+ import_createReactDOMStyle = __toESM(require("./StyleSheet/compiler/createReactDOMStyle.cjs")),
86
+ import_createEventHandle = __toESM(require("./modules/createEventHandle/index.cjs")),
87
+ import_dismissKeyboard = __toESM(require("./modules/dismissKeyboard/index.cjs")),
88
+ import_getBoundingClientRect = __toESM(require("./modules/getBoundingClientRect/index.cjs")),
89
+ import_ImageLoader = __toESM(require("./modules/ImageLoader/index.cjs")),
90
+ import_isSelectionValid = __toESM(require("./modules/isSelectionValid/index.cjs")),
91
+ import_isWebColor = __toESM(require("./modules/isWebColor/index.cjs")),
92
+ import_multiplyStyleLengthValue = __toESM(require("./modules/multiplyStyleLengthValue/index.cjs")),
93
+ import_normalizeColor = __toESM(require("./modules/normalizeColor/index.cjs")),
94
+ import_pick = __toESM(require("./modules/pick/index.cjs")),
95
+ import_Platform = __toESM(require("./modules/Platform/index.cjs"));
96
+ __reExport(src_exports, require("./StyleSheet/preprocess.cjs"), module.exports);
97
+ var import_StyleSheet = require("./StyleSheet/index.cjs"),
98
+ import_dom = require("./StyleSheet/dom/index.cjs"),
99
+ import_requestIdleCallback = __toESM(require("./modules/requestIdleCallback/index.cjs")),
100
+ import_setValueForStyles = __toESM(require("./modules/setValueForStyles/index.cjs")),
101
+ import_TextInputState = __toESM(require("./modules/TextInputState/index.cjs")),
102
+ import_UIManager = __toESM(require("./modules/UIManager/index.cjs")),
103
+ import_unitlessNumbers = __toESM(require("./modules/unitlessNumbers/index.cjs")),
104
+ import_useElementLayout = __toESM(require("./modules/useElementLayout/index.cjs")),
105
+ import_useEvent = __toESM(require("./modules/useEvent/index.cjs")),
106
+ import_useHover = __toESM(require("./modules/useHover/index.cjs")),
107
+ import_useLayoutEffect = __toESM(require("./modules/useLayoutEffect/index.cjs")),
108
+ import_useStable = __toESM(require("./modules/useStable/index.cjs")),
109
+ import_InteractionManager = require("./modules/InteractionManager.cjs");
110
+ __reExport(src_exports, require("./modules/invariant.cjs"), module.exports);
111
+ var import_processColor = require("./modules/processColor/index.cjs"),
112
+ import_StyleSheet2 = __toESM(require("./StyleSheet/index.cjs")),
113
+ import_useMergeRefs = require("./modules/useMergeRefs/index.cjs");
@@ -0,0 +1,50 @@
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,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ };
14
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
15
+ // If the importer is in node compatibility mode or this is not an ESM
16
+ // file that has been converted to a CommonJS file using a Babel-
17
+ // compatible transform (i.e. "__esModule" has not been set), then set
18
+ // "default" to the CommonJS "module.exports" for node compatibility.
19
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: !0
22
+ }) : target, mod));
23
+ var import_propsToAccessibilityComponent = __toESM(require("../propsToAccessibilityComponent.cjs"));
24
+ describe("modules/AccessibilityUtil/propsToAccessibilityComponent", () => {
25
+ test('when missing accessibility props"', () => {
26
+ expect((0, import_propsToAccessibilityComponent.default)({})).toBeUndefined();
27
+ }), test('when "accessibilityRole" is "button"', () => {
28
+ expect((0, import_propsToAccessibilityComponent.default)({
29
+ accessibilityRole: "button"
30
+ })).toBeUndefined();
31
+ }), test('when "accessibilityRole" is "heading"', () => {
32
+ expect((0, import_propsToAccessibilityComponent.default)({
33
+ accessibilityRole: "heading"
34
+ })).toEqual("h1");
35
+ }), test('when "accessibilityRole" is "heading" and "aria-level" is set', () => {
36
+ expect((0, import_propsToAccessibilityComponent.default)({
37
+ accessibilityRole: "heading",
38
+ "aria-level": 3
39
+ })).toEqual("h3");
40
+ }), test('when "accessibilityRole" is "heading" and "accessibilityLevel" is set', () => {
41
+ expect((0, import_propsToAccessibilityComponent.default)({
42
+ accessibilityRole: "heading",
43
+ accessibilityLevel: 3
44
+ })).toEqual("h3");
45
+ }), test('when "accessibilityRole" is "label"', () => {
46
+ expect((0, import_propsToAccessibilityComponent.default)({
47
+ accessibilityRole: "label"
48
+ })).toEqual("label");
49
+ });
50
+ });