@tamagui/react-native-web-internals 1.132.22 → 1.132.23

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 (153) hide show
  1. package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js +43 -73
  2. package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js.map +1 -6
  3. package/dist/esm/StyleSheet/__tests__/compiler-test.native.js +166 -174
  4. package/dist/esm/StyleSheet/__tests__/compiler-test.native.js.map +1 -6
  5. package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js +20 -18
  6. package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js.map +1 -6
  7. package/dist/esm/StyleSheet/__tests__/index-test.native.js +149 -203
  8. package/dist/esm/StyleSheet/__tests__/index-test.native.js.map +1 -6
  9. package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js +16 -16
  10. package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js.map +1 -6
  11. package/dist/esm/StyleSheet/__tests__/validate-test.native.js +10 -11
  12. package/dist/esm/StyleSheet/__tests__/validate-test.native.js.map +1 -6
  13. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js +63 -114
  14. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js.map +1 -6
  15. package/dist/esm/StyleSheet/compiler/hash.native.js +2 -4
  16. package/dist/esm/StyleSheet/compiler/hash.native.js.map +1 -6
  17. package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js +6 -7
  18. package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js.map +1 -6
  19. package/dist/esm/StyleSheet/compiler/index.native.js +220 -221
  20. package/dist/esm/StyleSheet/compiler/index.native.js.map +1 -6
  21. package/dist/esm/StyleSheet/compiler/normalizeColor.native.js +17 -15
  22. package/dist/esm/StyleSheet/compiler/normalizeColor.native.js.map +1 -6
  23. package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js +4 -6
  24. package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js.map +1 -6
  25. package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js +25 -13
  26. package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js.map +1 -6
  27. package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js +10 -15
  28. package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js.map +1 -6
  29. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js +22 -22
  30. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js.map +1 -6
  31. package/dist/esm/StyleSheet/dom/index.native.js +29 -34
  32. package/dist/esm/StyleSheet/dom/index.native.js.map +1 -6
  33. package/dist/esm/StyleSheet/index.native.js +12 -16
  34. package/dist/esm/StyleSheet/index.native.js.map +1 -6
  35. package/dist/esm/StyleSheet/preprocess.native.js +73 -44
  36. package/dist/esm/StyleSheet/preprocess.native.js.map +1 -6
  37. package/dist/esm/StyleSheet/validate.native.js +32 -33
  38. package/dist/esm/StyleSheet/validate.native.js.map +1 -6
  39. package/dist/esm/TextAncestorContext.native.js +4 -6
  40. package/dist/esm/TextAncestorContext.native.js.map +1 -6
  41. package/dist/esm/colorProps.native.js +2 -4
  42. package/dist/esm/colorProps.native.js.map +1 -6
  43. package/dist/esm/index.native.js +43 -78
  44. package/dist/esm/index.native.js.map +1 -6
  45. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js +9 -9
  46. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js.map +1 -6
  47. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js +6 -6
  48. package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js.map +1 -6
  49. package/dist/esm/modules/AccessibilityUtil/index.native.js +10 -12
  50. package/dist/esm/modules/AccessibilityUtil/index.native.js.map +1 -6
  51. package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js +6 -7
  52. package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js.map +1 -6
  53. package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js +34 -34
  54. package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js.map +1 -6
  55. package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js +25 -24
  56. package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js.map +1 -6
  57. package/dist/esm/modules/AssetRegistry/index.native.js +2 -5
  58. package/dist/esm/modules/AssetRegistry/index.native.js.map +1 -6
  59. package/dist/esm/modules/ImageLoader/index.native.js +79 -75
  60. package/dist/esm/modules/ImageLoader/index.native.js.map +1 -6
  61. package/dist/esm/modules/InteractionManager.native.js +135 -133
  62. package/dist/esm/modules/InteractionManager.native.js.map +1 -6
  63. package/dist/esm/modules/Platform/__tests__/index-test.native.js +9 -9
  64. package/dist/esm/modules/Platform/__tests__/index-test.native.js.map +1 -6
  65. package/dist/esm/modules/Platform/index.native.js +8 -9
  66. package/dist/esm/modules/Platform/index.native.js.map +1 -6
  67. package/dist/esm/modules/TextInputState/index.native.js +30 -31
  68. package/dist/esm/modules/TextInputState/index.native.js.map +1 -6
  69. package/dist/esm/modules/UIManager/__tests__/index-test.native.js +51 -49
  70. package/dist/esm/modules/UIManager/__tests__/index-test.native.js.map +1 -6
  71. package/dist/esm/modules/UIManager/index.native.js +36 -39
  72. package/dist/esm/modules/UIManager/index.native.js.map +1 -6
  73. package/dist/esm/modules/canUseDOM.native.js +4 -6
  74. package/dist/esm/modules/canUseDOM.native.js.map +1 -6
  75. package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js +51 -45
  76. package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js.map +1 -6
  77. package/dist/esm/modules/createDOMProps/index.native.js +96 -92
  78. package/dist/esm/modules/createDOMProps/index.native.js.map +1 -6
  79. package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js +189 -189
  80. package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js.map +1 -6
  81. package/dist/esm/modules/createEventHandle/index.native.js +17 -24
  82. package/dist/esm/modules/createEventHandle/index.native.js.map +1 -6
  83. package/dist/esm/modules/dismissKeyboard/index.native.js +7 -8
  84. package/dist/esm/modules/dismissKeyboard/index.native.js.map +1 -6
  85. package/dist/esm/modules/forwardedProps/index.native.js +126 -128
  86. package/dist/esm/modules/forwardedProps/index.native.js.map +1 -6
  87. package/dist/esm/modules/getBoundingClientRect/index.native.js +9 -11
  88. package/dist/esm/modules/getBoundingClientRect/index.native.js.map +1 -6
  89. package/dist/esm/modules/invariant.native.js +12 -22
  90. package/dist/esm/modules/invariant.native.js.map +1 -6
  91. package/dist/esm/modules/isSelectionValid/index.native.js +6 -5
  92. package/dist/esm/modules/isSelectionValid/index.native.js.map +1 -6
  93. package/dist/esm/modules/isWebColor/index.native.js +6 -7
  94. package/dist/esm/modules/isWebColor/index.native.js.map +1 -6
  95. package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js +9 -7
  96. package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js.map +1 -6
  97. package/dist/esm/modules/mergeRefs/index.native.js +5 -8
  98. package/dist/esm/modules/mergeRefs/index.native.js.map +1 -6
  99. package/dist/esm/modules/modality/__tests__/index-test.native.js +8 -8
  100. package/dist/esm/modules/modality/__tests__/index-test.native.js.map +1 -6
  101. package/dist/esm/modules/modality/index.native.js +55 -19
  102. package/dist/esm/modules/modality/index.native.js.map +1 -6
  103. package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js +4 -4
  104. package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js.map +1 -6
  105. package/dist/esm/modules/multiplyStyleLengthValue/index.native.js +17 -15
  106. package/dist/esm/modules/multiplyStyleLengthValue/index.native.js.map +1 -6
  107. package/dist/esm/modules/normalizeColor/index.native.js +19 -17
  108. package/dist/esm/modules/normalizeColor/index.native.js.map +1 -6
  109. package/dist/esm/modules/pick/index.native.js +3 -6
  110. package/dist/esm/modules/pick/index.native.js.map +1 -6
  111. package/dist/esm/modules/processColor/__tests__/index-test.native.js +36 -27
  112. package/dist/esm/modules/processColor/__tests__/index-test.native.js.map +1 -6
  113. package/dist/esm/modules/processColor/index.native.js +5 -9
  114. package/dist/esm/modules/processColor/index.native.js.map +1 -6
  115. package/dist/esm/modules/requestIdleCallback/index.native.js +21 -19
  116. package/dist/esm/modules/requestIdleCallback/index.native.js.map +1 -6
  117. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js +3 -5
  118. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js.map +1 -6
  119. package/dist/esm/modules/setValueForStyles/index.native.js +8 -10
  120. package/dist/esm/modules/setValueForStyles/index.native.js.map +1 -6
  121. package/dist/esm/modules/unitlessNumbers/index.native.js +60 -66
  122. package/dist/esm/modules/unitlessNumbers/index.native.js.map +1 -6
  123. package/dist/esm/modules/useElementLayout/index.native.js +5 -9
  124. package/dist/esm/modules/useElementLayout/index.native.js.map +1 -6
  125. package/dist/esm/modules/useEvent/__tests__/index-test.native.js +210 -214
  126. package/dist/esm/modules/useEvent/__tests__/index-test.native.js.map +1 -6
  127. package/dist/esm/modules/useEvent/index.native.js +21 -24
  128. package/dist/esm/modules/useEvent/index.native.js.map +1 -6
  129. package/dist/esm/modules/useHover/__tests__/index-test.native.js +161 -134
  130. package/dist/esm/modules/useHover/__tests__/index-test.native.js.map +1 -6
  131. package/dist/esm/modules/useHover/index.native.js +65 -51
  132. package/dist/esm/modules/useHover/index.native.js.map +1 -6
  133. package/dist/esm/modules/useLayoutEffect/index.native.js +5 -6
  134. package/dist/esm/modules/useLayoutEffect/index.native.js.map +1 -6
  135. package/dist/esm/modules/useLocale/index.native.js +14 -12
  136. package/dist/esm/modules/useLocale/index.native.js.map +1 -6
  137. package/dist/esm/modules/useLocale/isLocaleRTL.native.js +9 -25
  138. package/dist/esm/modules/useLocale/isLocaleRTL.native.js.map +1 -6
  139. package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js +54 -54
  140. package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js.map +1 -6
  141. package/dist/esm/modules/useMergeRefs/index.native.js +9 -16
  142. package/dist/esm/modules/useMergeRefs/index.native.js.map +1 -6
  143. package/dist/esm/modules/usePlatformMethods/index.native.js +12 -11
  144. package/dist/esm/modules/usePlatformMethods/index.native.js.map +1 -6
  145. package/dist/esm/modules/useStable/__tests__/index-test.native.js +45 -36
  146. package/dist/esm/modules/useStable/__tests__/index-test.native.js.map +1 -6
  147. package/dist/esm/modules/useStable/index.native.js +2 -4
  148. package/dist/esm/modules/useStable/index.native.js.map +1 -6
  149. package/dist/esm/styleTypes.native.js +2 -1
  150. package/dist/esm/styleTypes.native.js.map +1 -6
  151. package/dist/esm/types.native.js +2 -1
  152. package/dist/esm/types.native.js.map +1 -6
  153. package/package.json +8 -8
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/StyleSheet/__tests__/compiler-test.tsx"],
4
- "mappings": "AAOA,SAASA,QAAQC,SAASC,cAAc;AAExCC,SAAS,sBAAsB,WAAA;AAC7BA,WAAS,UAAU,WAAA;AACjBC,SAAK,gCAAgC,WAAA;AACnC,UAAMC,SAASL,OAAO;QACpBM,oBAAoB;UAAC;UAAa;;QAClCC,oBAAoB;UAClB;YAAE,MAAM;cAAEC,KAAK;YAAE;YAAG,OAAO;cAAEA,KAAK;YAAE;YAAG,QAAQ;cAAEA,KAAK;YAAG;UAAE;UAC3D;YAAEC,MAAM;cAAEC,MAAM;YAAE;YAAGC,IAAI;cAAED,MAAM;YAAG;UAAE;;QAExCE,YAAY;QACZC,kBAAkB;QAClBC,aAAa;QACbC,WAAW;QACXC,sBAAsB;QACtBC,gBAAgB;QAChBC,eAAe;QACfC,OAAO;QACPC,WAAW;QACXC,WAAW;UACT;YACEC,YAAY;YACZC,OAAO;UACT;;MAEJ,CAAA;AAEAC,aAAOnB,MAA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YAClBjB,iBAAiB;YACjBC,YAAY;YACZM,OAAO;UACT,GAEMkB,aAAa;YACjBV,kBAAkB;YAClBT,kBAAkB;YAClBgB,KAAK;YACL/C,MAAM;YACNI,aAAa;YACb6B,aAAa;UACf,GACMU,cAAc;YAClBZ,kBAAkB;YAClBE,aAAa;YACbjC,MAAM;UACR;AACAc,iBAAOtB,OAAO4B,QAAQ8B,aAAaD,YAAY7B,KAAAA,CAAAA,EAAQQ,QACrDR,QAAQuB,cAAcD,WAAAA;QAE1B,CAAA;MACF,CAAA;IACF,CAAA;EACF,CAAA;AACF,CAAA;",
5
- "names": ["atomic", "classic", "inline", "describe", "test", "result", "animationDirection", "animationKeyframes", "top", "from", "left", "to", "fontFamily", "marginHorizontal", "marginStart", "marginEnd", "placeholderTextColor", "scrollbarWidth", "pointerEvents", "start", "textAlign", "transform", "translateX", "scale", "expect", "toMatchInlineSnapshot", "font", "display", "flexShrink", "forEach", "isRTL", "dir", "initial", "borderLeftColor", "borderLeftStyle", "borderLeftWidth", "marginLeft", "paddingLeft", "toEqual", "borderRightColor", "borderRightStyle", "borderRightWidth", "right", "marginRight", "paddingRight", "clear", "float", "transitionProperty", "borderStartColor", "borderStartStyle", "borderStartWidth", "paddingStart", "expectedLTR", "expectedRTL", "borderEndColor", "borderEndStyle", "borderEndWidth", "end", "paddingEnd", "initialLTR", "initialRTL"]
6
- }
1
+ {"version":3,"names":["atomic","classic","inline","describe","test","result","animationDirection","animationKeyframes","top","from","left","to","fontFamily","marginHorizontal","marginStart","marginEnd","placeholderTextColor","scrollbarWidth","pointerEvents","start","textAlign","transform","translateX","scale","expect","toMatchInlineSnapshot","font","display","flexShrink","forEach","isRTL","dir","initial","borderLeftColor","borderLeftStyle","borderLeftWidth","marginLeft","paddingLeft","toEqual","borderRightColor","borderRightStyle","borderRightWidth","right","marginRight","paddingRight","clear","float","transitionProperty","borderStartColor","borderStartStyle","borderStartWidth","paddingStart","expectedLTR","expectedRTL","borderEndColor","borderEndStyle","borderE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dom/createOrderedCSSStyleSheet";
2
- var insertStyleElement = function() {
3
- var element = document.createElement("style"), head = document.head;
4
- return head.insertBefore(element, head.firstChild), element;
5
- }, removeStyleElement = function(element) {
6
- document.head.removeChild(element);
7
- };
8
- describe("createOrderedCSSStyleSheet", function() {
9
- describe("#insert", function() {
10
- test("insertion order for same group", function() {
1
+ import createOrderedCSSStyleSheet from "../dom/createOrderedCSSStyleSheet.native.js";
2
+ var insertStyleElement = function () {
3
+ var element = document.createElement("style"),
4
+ head = document.head;
5
+ return head.insertBefore(element, head.firstChild), element;
6
+ },
7
+ removeStyleElement = function (element) {
8
+ document.head.removeChild(element);
9
+ };
10
+ describe("createOrderedCSSStyleSheet", function () {
11
+ describe("#insert", function () {
12
+ test("insertion order for same group", function () {
11
13
  var sheet = createOrderedCSSStyleSheet();
12
14
  expect(sheet.getTextContent()).toMatchInlineSnapshot('""'), sheet.insert(".a {}", 0), expect(sheet.getTextContent()).toMatchInlineSnapshot(`
13
15
  "[stylesheet-group=\\"0\\"]{}
@@ -22,13 +24,13 @@ describe("createOrderedCSSStyleSheet", function() {
22
24
  .b {}
23
25
  .c {}"
24
26
  `);
25
- }), test("deduplication for same group", function() {
27
+ }), test("deduplication for same group", function () {
26
28
  var sheet = createOrderedCSSStyleSheet();
27
29
  sheet.insert(".a {}", 0), sheet.insert(".a {}", 0), sheet.insert(".a {}", 0), expect(sheet.getTextContent()).toMatchInlineSnapshot(`
28
30
  "[stylesheet-group=\\"0\\"]{}
29
31
  .a {}"
30
32
  `);
31
- }), test("order for same group", function() {
33
+ }), test("order for same group", function () {
32
34
  var sheet = createOrderedCSSStyleSheet();
33
35
  sheet.insert(".c {}", 0), sheet.insert(".b {}", 0), sheet.insert(".a {}", 0), expect(sheet.getTextContent()).toMatchInlineSnapshot(`
34
36
  "[stylesheet-group=\\"0\\"]{}
@@ -36,7 +38,7 @@ describe("createOrderedCSSStyleSheet", function() {
36
38
  .b {}
37
39
  .c {}"
38
40
  `);
39
- }), test("insertion order for different groups", function() {
41
+ }), test("insertion order for different groups", function () {
40
42
  var sheet = createOrderedCSSStyleSheet();
41
43
  sheet.insert(".nine-1 {}", 9.9), sheet.insert(".nine-2 {}", 9.9), sheet.insert(".three {}", 3), sheet.insert(".one {}", 1), sheet.insert(".two {}", 2.2), sheet.insert(".four-1 {}", 4), sheet.insert(".four-2 {}", 4), sheet.insert(".twenty {}", 20), sheet.insert(".ten {}", 10), sheet.insert(".twenty-point2 {}", 20.2), expect(sheet.getTextContent()).toMatchInlineSnapshot(`
42
44
  "[stylesheet-group=\\"1\\"]{}
@@ -59,11 +61,11 @@ describe("createOrderedCSSStyleSheet", function() {
59
61
  .twenty-point2 {}"
60
62
  `);
61
63
  });
62
- }), describe("client-side hydration", function() {
64
+ }), describe("client-side hydration", function () {
63
65
  var element;
64
- beforeEach(function() {
66
+ beforeEach(function () {
65
67
  element != null && removeStyleElement(element), element = insertStyleElement();
66
- }), test("from SSR CSS", function() {
68
+ }), test("from SSR CSS", function () {
67
69
  var serverSheet = createOrderedCSSStyleSheet();
68
70
  serverSheet.insert(".one { width: 10px; }", 1), serverSheet.insert(".two-1 { height: 20px; }", 2), serverSheet.insert(".two-2 { color: red; }", 2), serverSheet.insert("@keyframes anim { 0% { opacity: 1; } }", 2);
69
71
  var textContent = serverSheet.getTextContent();
@@ -79,7 +81,7 @@ describe("createOrderedCSSStyleSheet", function() {
79
81
  0% {opacity: 1;}
80
82
  }"
81
83
  `);
82
- }), test("works when the group marker is in single quotes", function() {
84
+ }), test("works when the group marker is in single quotes", function () {
83
85
  var serverSheet = createOrderedCSSStyleSheet();
84
86
  serverSheet.insert(".a { color: red }", 0), serverSheet.insert(".b { color: red }", 1);
85
87
  var textContent = serverSheet.getTextContent().replace(/"/g, "'");
@@ -95,4 +97,4 @@ describe("createOrderedCSSStyleSheet", function() {
95
97
  });
96
98
  });
97
99
  });
98
- //# sourceMappingURL=dom-createOrderedCSSStyleSheet-test.js.map
100
+ //# sourceMappingURL=dom-createOrdered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A;AACxC,UAAMG,cAAcD,YAAYJ,eAAc,EAAGS,QAAQ,MAAM,GAAA;AAG/DrB,cAAQkB,YAAYjB,SAASkB,eAAeF,WAAAA,CAAAA;AAC5C,UAAMG,cAActB,2BAA2BE,QAAQU,KAAK;AAC5DU,kBAAYN,OAAO,qBAAqB,CAAA,GACxCH,OAAOS,YAAYR,eAAc,CAAA,EAAIC,sBAAsB;;;;;;OAM1D;IACH,CAAA;EACF,CAAA;AACF,CAAA;",
5
- "names": ["createOrderedCSSStyleSheet", "insertStyleElement", "element", "document", "createElement", "head", "insertBefore", "firstChild", "removeStyleElement", "removeChild", "describe", "test", "sheet", "expect", "getTextContent", "toMatchInlineSnapshot", "insert", "beforeEach", "serverSheet", "textContent", "appendChild", "createTextNode", "clientSheet", "replace"]
6
- }
1
+ {"version":3,"names":["createOrderedCSSStyleSheet","insertStyleElement","element","document","createElement","head","insertBefore","firstChild","removeStyleElement","removeChild","describe","test","sheet","expect","getTextContent","toMatchInlineSnapshot","insert","beforeEach","serverSheet","textContent","appendChild","createTextNode","clientSheet","replace"],"sources":["../../../../src/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.tsx"],"sourcesContent":[null],"mappings":"AAOA,OAAOA,0BAAA,MAAgC;AAEvC,IAAAC,kBAAM,YAAAA,CAAA,EAA2B;IAC/B,IAAAC,OAAM,GAAAC,QAAU,CAAAC,aAAS,QAAc;MAAOC,IACxC,GAAAF,QAAO,CAAAE,IAAS;IACtB,OAAAA,IAAA,CAAKC,YAAA,CAAaJ,OAAA,EAASG,IAAA,CAAKE,UAAU,GACnCL,OAAA;EACT;EAEMM,kBAAA,GAAqB,SAAAA,CAACN,OAAY;IACtCC,QAAA,CAASE,IAAA,CAAKI,WAAA,CAAYP,OAAO;EACnC;AAEAQ,QAAA,CAAS,8BAA8B,YAAM;EAC3CA,QAAA,CAAS,WAAW,YAAM;IACxBC,IAAA,CAAK,kCAAkC,YAAM;MAC3C,IAAAC,KAAM,GAAAZ,0BAAQ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CAASkB,cAAA,CAAeF,WAAW,CAAC;MACxD,IAAAG,WAAM,GAAAtB,0BAAc,CAAAE,OAA2B,CAAAU,KAAQ;MACvDC,MAAA,CAAOS,WAAA,CAAYR,cAAA,CAAe,CAAC,EAAEC,qBAAA,CAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAS1D;IACH,CAAC,GAEDJ,IAAA,CAAK,mDAAmD,YAAM;MAE5D,IAAAO,WAAM,GAAAlB,0BAAc;MACpBkB,WAAA,CAAYF,MAAA,CAAO,qBAAqB,CAAC,GACzCE,WAAA,CAAYF,MAAA,CAAO,qBAAqB,CAAC;MACzC,IAAAG,WAAM,GAAAD,WAAc,CAAAJ,cAAY,GAAeS,OAAE,KAAQ,KAAM;MAG/DrB,OAAA,CAAQkB,WAAA,CAAYjB,QAAA,CAASkB,cAAA,CAAeF,WAAW,CAAC;MACxD,IAAAG,WAAM,GAAAtB,0BAAc,CAAAE,OAA2B,CAAAU,KAAQ;MACvDU,WAAA,CAAYN,MAAA,CAAO,qBAAqB,CAAC,GACzCH,MAAA,CAAOS,WAAA,CAAYR,cAAA,CAAe,CAAC,EAAEC,qBAAA,CAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAM1D;IACH,CAAC;EACH,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import StyleSheet from "../index";
2
- describe("StyleSheet", function() {
3
- test("getSheet", function() {
1
+ import StyleSheet from "../index.native.js";
2
+ describe("StyleSheet", function () {
3
+ test("getSheet", function () {
4
4
  expect(StyleSheet.getSheet()).toMatchInlineSnapshot(`
5
5
  {
6
6
  "id": "react-native-stylesheet",
@@ -17,7 +17,7 @@ describe("StyleSheet", function() {
17
17
  .r-top-ipm5af{top:0px;}",
18
18
  }
19
19
  `);
20
- }), test("absoluteFill", function() {
20
+ }), test("absoluteFill", function () {
21
21
  expect(StyleSheet.absoluteFill).toMatchInlineSnapshot(`
22
22
  {
23
23
  "bottom": 0,
@@ -27,7 +27,7 @@ describe("StyleSheet", function() {
27
27
  "top": 0,
28
28
  }
29
29
  `);
30
- }), test("absoluteFillObject", function() {
30
+ }), test("absoluteFillObject", function () {
31
31
  expect(StyleSheet.absoluteFillObject).toMatchInlineSnapshot(`
32
32
  {
33
33
  "bottom": 0,
@@ -37,13 +37,10 @@ describe("StyleSheet", function() {
37
37
  "top": 0,
38
38
  }
39
39
  `);
40
- }), test("compose", function() {
41
- expect(StyleSheet.compose(1, 2)).toEqual([
42
- 1,
43
- 2
44
- ]), expect(StyleSheet.compose(1, null)).toBe(1), expect(StyleSheet.compose(null, 2)).toBe(2);
45
- }), describe("create", function() {
46
- test("returns original style objects", function() {
40
+ }), test("compose", function () {
41
+ expect(StyleSheet.compose(1, 2)).toEqual([1, 2]), expect(StyleSheet.compose(1, null)).toBe(1), expect(StyleSheet.compose(null, 2)).toBe(2);
42
+ }), describe("create", function () {
43
+ test("returns original style objects", function () {
47
44
  var style = StyleSheet.create({
48
45
  root: {
49
46
  position: "absolute"
@@ -54,7 +51,7 @@ describe("StyleSheet", function() {
54
51
  "position": "absolute",
55
52
  }
56
53
  `);
57
- }), test("e2e resolves to classname", function() {
54
+ }), test("e2e resolves to classname", function () {
58
55
  var style = StyleSheet.create({
59
56
  root: {
60
57
  position: "absolute"
@@ -66,7 +63,7 @@ describe("StyleSheet", function() {
66
63
  null,
67
64
  ]
68
65
  `);
69
- }), test("e2e flattens shadow style properties", function() {
66
+ }), test("e2e flattens shadow style properties", function () {
70
67
  var style = StyleSheet.create({
71
68
  root: {
72
69
  shadowColor: "rgba(50,60,70,0.5)",
@@ -91,77 +88,56 @@ describe("StyleSheet", function() {
91
88
  ]
92
89
  `);
93
90
  });
94
- }), describe("flatten", function() {
95
- test("should merge style objects", function() {
96
- var style = StyleSheet.flatten([
97
- {
98
- opacity: 1
99
- },
100
- {
101
- order: 2
102
- }
103
- ]);
91
+ }), describe("flatten", function () {
92
+ test("should merge style objects", function () {
93
+ var style = StyleSheet.flatten([{
94
+ opacity: 1
95
+ }, {
96
+ order: 2
97
+ }]);
104
98
  expect(style).toMatchInlineSnapshot(`
105
99
  {
106
100
  "opacity": 1,
107
101
  "order": 2,
108
102
  }
109
103
  `);
110
- }), test("should override style properties", function() {
111
- var style = StyleSheet.flatten([
112
- {
113
- backgroundColor: "#000",
114
- order: 1
115
- },
116
- {
117
- backgroundColor: "#023c69",
118
- order: null
119
- }
120
- ]);
104
+ }), test("should override style properties", function () {
105
+ var style = StyleSheet.flatten([{
106
+ backgroundColor: "#000",
107
+ order: 1
108
+ }, {
109
+ backgroundColor: "#023c69",
110
+ order: null
111
+ }]);
121
112
  expect(style).toMatchInlineSnapshot(`
122
113
  {
123
114
  "backgroundColor": "#023c69",
124
115
  "order": null,
125
116
  }
126
117
  `);
127
- }), test("should overwrite properties with `undefined`", function() {
128
- var style = StyleSheet.flatten([
129
- {
130
- backgroundColor: "#000"
131
- },
132
- {
133
- backgroundColor: void 0
134
- }
135
- ]);
118
+ }), test("should overwrite properties with `undefined`", function () {
119
+ var style = StyleSheet.flatten([{
120
+ backgroundColor: "#000"
121
+ }, {
122
+ backgroundColor: void 0
123
+ }]);
136
124
  expect(style).toMatchInlineSnapshot(`
137
125
  {
138
126
  "backgroundColor": undefined,
139
127
  }
140
128
  `);
141
- }), test("should not fail on falsy values", function() {
142
- expect(function() {
143
- return StyleSheet.flatten([
144
- null,
145
- !1,
146
- void 0
147
- ]);
129
+ }), test("should not fail on falsy values", function () {
130
+ expect(function () {
131
+ return StyleSheet.flatten([null, !1, void 0]);
148
132
  }).not.toThrow();
149
- }), test("should recursively flatten arrays", function() {
150
- var style = StyleSheet.flatten([
151
- null,
152
- [],
153
- [
154
- {
155
- order: 2
156
- },
157
- {
158
- opacity: 1
159
- }
160
- ],
161
- {
162
- order: 3
163
- }
164
- ]);
133
+ }), test("should recursively flatten arrays", function () {
134
+ var style = StyleSheet.flatten([null, [], [{
135
+ order: 2
136
+ }, {
137
+ opacity: 1
138
+ }], {
139
+ order: 3
140
+ }]);
165
141
  expect(style).toMatchInlineSnapshot(`
166
142
  {
167
143
  "opacity": 1,
@@ -169,10 +145,10 @@ describe("StyleSheet", function() {
169
145
  }
170
146
  `);
171
147
  });
172
- }), test("hairlineWidth", function() {
148
+ }), test("hairlineWidth", function () {
173
149
  expect(Number.isInteger(StyleSheet.hairlineWidth) === !0).toBeTruthy();
174
- }), describe("resolve", function() {
175
- test("empty", function() {
150
+ }), describe("resolve", function () {
151
+ test("empty", function () {
176
152
  expect(StyleSheet()).toMatchInlineSnapshot(`
177
153
  [
178
154
  "",
@@ -189,85 +165,70 @@ describe("StyleSheet", function() {
189
165
  null,
190
166
  ]
191
167
  `);
192
- }), test("transforms compiled object to className", function() {
193
- expect(StyleSheet([
194
- {
195
- $$css: !0,
196
- position: "position-absolute",
197
- opacity: "opacity-05",
198
- width: "width-200"
199
- }
200
- ])).toMatchInlineSnapshot(`
168
+ }), test("transforms compiled object to className", function () {
169
+ expect(StyleSheet([{
170
+ $$css: !0,
171
+ position: "position-absolute",
172
+ opacity: "opacity-05",
173
+ width: "width-200"
174
+ }])).toMatchInlineSnapshot(`
201
175
  [
202
176
  "position-absolute opacity-05 width-200",
203
177
  null,
204
178
  ]
205
179
  `);
206
- }), test("transforms array of compiled objects to className", function() {
207
- expect(StyleSheet([
208
- {
209
- $$css: !0,
210
- borderWidth: "borderWidth-0",
211
- borderColor: "borderColor-red",
212
- display: "display-flex",
213
- width: "width-100"
214
- },
215
- {
216
- $$css: !0,
217
- position: "position-absolute",
218
- opacity: "opacity-05"
219
- },
220
- [
221
- {
222
- $$css: !0,
223
- width: "width-200"
224
- }
225
- ]
226
- ])).toMatchInlineSnapshot(`
180
+ }), test("transforms array of compiled objects to className", function () {
181
+ expect(StyleSheet([{
182
+ $$css: !0,
183
+ borderWidth: "borderWidth-0",
184
+ borderColor: "borderColor-red",
185
+ display: "display-flex",
186
+ width: "width-100"
187
+ }, {
188
+ $$css: !0,
189
+ position: "position-absolute",
190
+ opacity: "opacity-05"
191
+ }, [{
192
+ $$css: !0,
193
+ width: "width-200"
194
+ }]])).toMatchInlineSnapshot(`
227
195
  [
228
196
  "borderWidth-0 borderColor-red display-flex position-absolute opacity-05 width-200",
229
197
  null,
230
198
  ]
231
199
  `);
232
- }), test("dedupes class names and inline styles", function() {
200
+ }), test("dedupes class names and inline styles", function () {
233
201
  var styleACompiled = {
234
- $$css: !0,
235
- backgroundColor: "backgroundColor-red",
236
- display: "display-block"
237
- }, styleBCompiled = {
238
- $$css: !0,
239
- backgroundColor: "backgroundColor-green",
240
- color: "color-green"
241
- }, styleBInline = {
242
- backgroundColor: "rgba(0,0,255,1.00)",
243
- color: null
244
- }, [className1, inlineStyle1] = StyleSheet([
245
- styleACompiled,
246
- styleBCompiled,
247
- styleBInline
248
- ]);
202
+ $$css: !0,
203
+ backgroundColor: "backgroundColor-red",
204
+ display: "display-block"
205
+ },
206
+ styleBCompiled = {
207
+ $$css: !0,
208
+ backgroundColor: "backgroundColor-green",
209
+ color: "color-green"
210
+ },
211
+ styleBInline = {
212
+ backgroundColor: "rgba(0,0,255,1.00)",
213
+ color: null
214
+ },
215
+ [className1, inlineStyle1] = StyleSheet([styleACompiled, styleBCompiled, styleBInline]);
249
216
  expect(className1).toBe("display-block"), expect(inlineStyle1).toEqual({
250
217
  backgroundColor: "rgba(0,0,255,1.00)"
251
218
  });
252
- var [className2, inlineStyle2] = StyleSheet([
253
- styleACompiled,
254
- styleBInline,
255
- styleBCompiled
256
- ]);
219
+ var [className2, inlineStyle2] = StyleSheet([styleACompiled, styleBInline, styleBCompiled]);
257
220
  expect(className2).toBe("display-block backgroundColor-green color-green"), expect(inlineStyle2).toEqual(null);
258
- }), test("long form inline style properties take precedence over static shorthand properties", function() {
221
+ }), test("long form inline style properties take precedence over static shorthand properties", function () {
259
222
  var styles1 = StyleSheet.create({
260
- test: {
223
+ test: {
224
+ paddingHorizontal: "40px"
225
+ }
226
+ }),
227
+ inlineStyle1 = {
228
+ padding: "8px",
261
229
  paddingHorizontal: "40px"
262
- }
263
- }), inlineStyle1 = {
264
- padding: "8px",
265
- paddingHorizontal: "40px"
266
- };
267
- expect(StyleSheet([
268
- styles1.test,
269
- inlineStyle1
270
- ])).toMatchInlineSnapshot(`
230
+ };
231
+ expect(StyleSheet([styles1.test, inlineStyle1])).toMatchInlineSnapshot(`
271
232
  [
272
233
  "",
273
234
  {
@@ -279,17 +240,15 @@ describe("StyleSheet", function() {
279
240
  ]
280
241
  `);
281
242
  var styles2 = StyleSheet.create({
282
- test: {
243
+ test: {
244
+ marginVertical: "40px"
245
+ }
246
+ }),
247
+ inlineStyle2 = {
248
+ margin: "8px",
283
249
  marginVertical: "40px"
284
- }
285
- }), inlineStyle2 = {
286
- margin: "8px",
287
- marginVertical: "40px"
288
- };
289
- expect(StyleSheet([
290
- styles2.test,
291
- inlineStyle2
292
- ])).toMatchInlineSnapshot(`
250
+ };
251
+ expect(StyleSheet([styles2.test, inlineStyle2])).toMatchInlineSnapshot(`
293
252
  [
294
253
  "",
295
254
  {
@@ -300,30 +259,33 @@ describe("StyleSheet", function() {
300
259
  },
301
260
  ]
302
261
  `);
303
- }), test("polyfills logical styles", function() {
262
+ }), test("polyfills logical styles", function () {
304
263
  var inlineA = {
305
- start: "12.34%"
306
- }, inlineB = {
307
- textAlign: "start"
308
- }, inlineC = {
309
- marginEnd: 10
310
- }, a = StyleSheet.create({
311
- x: {
312
- ...inlineA
313
- }
314
- }).x, b = StyleSheet.create({
315
- x: {
316
- ...inlineB
317
- }
318
- }).x, c = StyleSheet.create({
319
- x: {
320
- ...inlineC
321
- }
322
- }).x, writingDirection = "rtl", inlineStyle = [
323
- inlineA,
324
- inlineB,
325
- inlineC
326
- ];
264
+ start: "12.34%"
265
+ },
266
+ inlineB = {
267
+ textAlign: "start"
268
+ },
269
+ inlineC = {
270
+ marginEnd: 10
271
+ },
272
+ a = StyleSheet.create({
273
+ x: {
274
+ ...inlineA
275
+ }
276
+ }).x,
277
+ b = StyleSheet.create({
278
+ x: {
279
+ ...inlineB
280
+ }
281
+ }).x,
282
+ c = StyleSheet.create({
283
+ x: {
284
+ ...inlineC
285
+ }
286
+ }).x,
287
+ writingDirection = "rtl",
288
+ inlineStyle = [inlineA, inlineB, inlineC];
327
289
  expect(StyleSheet(inlineStyle)).toMatchInlineSnapshot(`
328
290
  [
329
291
  "",
@@ -344,15 +306,12 @@ describe("StyleSheet", function() {
344
306
  "textAlign": "right",
345
307
  },
346
308
  ]
347
- `), expect(StyleSheet([
348
- inlineStyle,
349
- {
350
- marginLeft: 1,
351
- marginEnd: 0,
352
- marginStart: 0,
353
- marginRight: 11
354
- }
355
- ], {
309
+ `), expect(StyleSheet([inlineStyle, {
310
+ marginLeft: 1,
311
+ marginEnd: 0,
312
+ marginStart: 0,
313
+ marginRight: 11
314
+ }], {
356
315
  writingDirection
357
316
  })).toMatchInlineSnapshot(`
358
317
  [
@@ -364,13 +323,10 @@ describe("StyleSheet", function() {
364
323
  "textAlign": "right",
365
324
  },
366
325
  ]
367
- `), expect(StyleSheet([
368
- inlineStyle,
369
- {
370
- marginEnd: null,
371
- marginLeft: 11
372
- }
373
- ], {
326
+ `), expect(StyleSheet([inlineStyle, {
327
+ marginEnd: null,
328
+ marginLeft: 11
329
+ }], {
374
330
  writingDirection
375
331
  })).toMatchInlineSnapshot(`
376
332
  [
@@ -382,11 +338,7 @@ describe("StyleSheet", function() {
382
338
  },
383
339
  ]
384
340
  `);
385
- var staticStyle = [
386
- a,
387
- b,
388
- c
389
- ];
341
+ var staticStyle = [a, b, c];
390
342
  expect(StyleSheet(staticStyle)).toMatchInlineSnapshot(`
391
343
  [
392
344
  "r-left-2s0hu9 r-textAlign-fdjqy7 r-marginRight-zso239",
@@ -399,15 +351,12 @@ describe("StyleSheet", function() {
399
351
  "r-right-1bnbe1j r-textAlign-1ff274t r-marginLeft-1n0xq6e",
400
352
  null,
401
353
  ]
402
- `), expect(StyleSheet([
403
- staticStyle,
404
- {
405
- marginLeft: 1,
406
- marginEnd: 0,
407
- marginStart: 0,
408
- marginRight: 11
409
- }
410
- ], {
354
+ `), expect(StyleSheet([staticStyle, {
355
+ marginLeft: 1,
356
+ marginEnd: 0,
357
+ marginStart: 0,
358
+ marginRight: 11
359
+ }], {
411
360
  writingDirection
412
361
  })).toMatchInlineSnapshot(`
413
362
  [
@@ -417,13 +366,10 @@ describe("StyleSheet", function() {
417
366
  "marginRight": "0px",
418
367
  },
419
368
  ]
420
- `), expect(StyleSheet([
421
- staticStyle,
422
- {
423
- marginEnd: null,
424
- marginLeft: 11
425
- }
426
- ], {
369
+ `), expect(StyleSheet([staticStyle, {
370
+ marginEnd: null,
371
+ marginLeft: 11
372
+ }], {
427
373
  writingDirection
428
374
  })).toMatchInlineSnapshot(`
429
375
  [
@@ -436,4 +382,4 @@ describe("StyleSheet", function() {
436
382
  });
437
383
  });
438
384
  });
439
- //# sourceMappingURL=index-test.js.map
385
+ //# sourceMappingURL=index-test.native.js.map