@tamagui/react-native-web-internals 1.132.20 → 1.132.22
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.
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js +73 -43
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js.map +6 -1
- package/dist/esm/StyleSheet/__tests__/compiler-test.native.js +174 -166
- package/dist/esm/StyleSheet/__tests__/compiler-test.native.js.map +6 -1
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js +18 -20
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js.map +6 -1
- package/dist/esm/StyleSheet/__tests__/index-test.native.js +203 -149
- package/dist/esm/StyleSheet/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js +16 -16
- package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js.map +6 -1
- package/dist/esm/StyleSheet/__tests__/validate-test.native.js +11 -10
- package/dist/esm/StyleSheet/__tests__/validate-test.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js +114 -63
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/hash.native.js +4 -2
- package/dist/esm/StyleSheet/compiler/hash.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js +7 -6
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/index.native.js +221 -220
- package/dist/esm/StyleSheet/compiler/index.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.native.js +15 -17
- package/dist/esm/StyleSheet/compiler/normalizeColor.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js +6 -4
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js.map +6 -1
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js +13 -25
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js.map +6 -1
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js +15 -10
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js.map +6 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js +22 -22
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js.map +6 -1
- package/dist/esm/StyleSheet/dom/index.native.js +34 -29
- package/dist/esm/StyleSheet/dom/index.native.js.map +6 -1
- package/dist/esm/StyleSheet/index.native.js +16 -12
- package/dist/esm/StyleSheet/index.native.js.map +6 -1
- package/dist/esm/StyleSheet/preprocess.native.js +44 -73
- package/dist/esm/StyleSheet/preprocess.native.js.map +6 -1
- package/dist/esm/StyleSheet/validate.native.js +33 -32
- package/dist/esm/StyleSheet/validate.native.js.map +6 -1
- package/dist/esm/TextAncestorContext.native.js +6 -4
- package/dist/esm/TextAncestorContext.native.js.map +6 -1
- package/dist/esm/colorProps.native.js +4 -2
- package/dist/esm/colorProps.native.js.map +6 -1
- package/dist/esm/index.native.js +78 -43
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js +9 -9
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js.map +6 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js +6 -6
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js.map +6 -1
- package/dist/esm/modules/AccessibilityUtil/index.native.js +12 -10
- package/dist/esm/modules/AccessibilityUtil/index.native.js.map +6 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js +7 -6
- package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js.map +6 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js +34 -34
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js.map +6 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js +24 -25
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js.map +6 -1
- package/dist/esm/modules/AssetRegistry/index.native.js +5 -2
- package/dist/esm/modules/AssetRegistry/index.native.js.map +6 -1
- package/dist/esm/modules/ImageLoader/index.native.js +75 -79
- package/dist/esm/modules/ImageLoader/index.native.js.map +6 -1
- package/dist/esm/modules/InteractionManager.native.js +133 -135
- package/dist/esm/modules/InteractionManager.native.js.map +6 -1
- package/dist/esm/modules/Platform/__tests__/index-test.native.js +9 -9
- package/dist/esm/modules/Platform/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/Platform/index.native.js +9 -8
- package/dist/esm/modules/Platform/index.native.js.map +6 -1
- package/dist/esm/modules/TextInputState/index.native.js +31 -30
- package/dist/esm/modules/TextInputState/index.native.js.map +6 -1
- package/dist/esm/modules/UIManager/__tests__/index-test.native.js +49 -51
- package/dist/esm/modules/UIManager/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/UIManager/index.native.js +39 -36
- package/dist/esm/modules/UIManager/index.native.js.map +6 -1
- package/dist/esm/modules/canUseDOM.native.js +6 -4
- package/dist/esm/modules/canUseDOM.native.js.map +6 -1
- package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js +45 -51
- package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/createDOMProps/index.native.js +92 -96
- package/dist/esm/modules/createDOMProps/index.native.js.map +6 -1
- package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js +189 -189
- package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/createEventHandle/index.native.js +24 -17
- package/dist/esm/modules/createEventHandle/index.native.js.map +6 -1
- package/dist/esm/modules/dismissKeyboard/index.native.js +8 -7
- package/dist/esm/modules/dismissKeyboard/index.native.js.map +6 -1
- package/dist/esm/modules/forwardedProps/index.native.js +128 -126
- package/dist/esm/modules/forwardedProps/index.native.js.map +6 -1
- package/dist/esm/modules/getBoundingClientRect/index.native.js +11 -9
- package/dist/esm/modules/getBoundingClientRect/index.native.js.map +6 -1
- package/dist/esm/modules/invariant.native.js +22 -12
- package/dist/esm/modules/invariant.native.js.map +6 -1
- package/dist/esm/modules/isSelectionValid/index.native.js +5 -6
- package/dist/esm/modules/isSelectionValid/index.native.js.map +6 -1
- package/dist/esm/modules/isWebColor/index.native.js +7 -6
- package/dist/esm/modules/isWebColor/index.native.js.map +6 -1
- package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js +7 -9
- package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/mergeRefs/index.native.js +8 -5
- package/dist/esm/modules/mergeRefs/index.native.js.map +6 -1
- package/dist/esm/modules/modality/__tests__/index-test.native.js +8 -8
- package/dist/esm/modules/modality/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/modality/index.native.js +19 -55
- package/dist/esm/modules/modality/index.native.js.map +6 -1
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js +4 -4
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.native.js +15 -17
- package/dist/esm/modules/multiplyStyleLengthValue/index.native.js.map +6 -1
- package/dist/esm/modules/normalizeColor/index.native.js +17 -19
- package/dist/esm/modules/normalizeColor/index.native.js.map +6 -1
- package/dist/esm/modules/pick/index.native.js +6 -3
- package/dist/esm/modules/pick/index.native.js.map +6 -1
- package/dist/esm/modules/processColor/__tests__/index-test.native.js +27 -36
- package/dist/esm/modules/processColor/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/processColor/index.native.js +9 -5
- package/dist/esm/modules/processColor/index.native.js.map +6 -1
- package/dist/esm/modules/requestIdleCallback/index.native.js +19 -21
- package/dist/esm/modules/requestIdleCallback/index.native.js.map +6 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js +5 -3
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js.map +6 -1
- package/dist/esm/modules/setValueForStyles/index.native.js +10 -8
- package/dist/esm/modules/setValueForStyles/index.native.js.map +6 -1
- package/dist/esm/modules/unitlessNumbers/index.native.js +66 -60
- package/dist/esm/modules/unitlessNumbers/index.native.js.map +6 -1
- package/dist/esm/modules/useElementLayout/index.native.js +9 -5
- package/dist/esm/modules/useElementLayout/index.native.js.map +6 -1
- package/dist/esm/modules/useEvent/__tests__/index-test.native.js +214 -210
- package/dist/esm/modules/useEvent/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/useEvent/index.native.js +24 -21
- package/dist/esm/modules/useEvent/index.native.js.map +6 -1
- package/dist/esm/modules/useHover/__tests__/index-test.native.js +134 -161
- package/dist/esm/modules/useHover/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/useHover/index.native.js +51 -65
- package/dist/esm/modules/useHover/index.native.js.map +6 -1
- package/dist/esm/modules/useLayoutEffect/index.native.js +6 -5
- package/dist/esm/modules/useLayoutEffect/index.native.js.map +6 -1
- package/dist/esm/modules/useLocale/index.native.js +12 -14
- package/dist/esm/modules/useLocale/index.native.js.map +6 -1
- package/dist/esm/modules/useLocale/isLocaleRTL.native.js +25 -9
- package/dist/esm/modules/useLocale/isLocaleRTL.native.js.map +6 -1
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js +54 -54
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/useMergeRefs/index.native.js +16 -9
- package/dist/esm/modules/useMergeRefs/index.native.js.map +6 -1
- package/dist/esm/modules/usePlatformMethods/index.native.js +11 -12
- package/dist/esm/modules/usePlatformMethods/index.native.js.map +6 -1
- package/dist/esm/modules/useStable/__tests__/index-test.native.js +36 -45
- package/dist/esm/modules/useStable/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/modules/useStable/index.native.js +4 -2
- package/dist/esm/modules/useStable/index.native.js.map +6 -1
- package/dist/esm/styleTypes.native.js +1 -2
- package/dist/esm/styleTypes.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/package.json +8 -8
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
var TextAncestorContext = /* @__PURE__ */createContext(!1),
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var TextAncestorContext = /* @__PURE__ */ createContext(!1), TextAncestorContext_default = TextAncestorContext;
|
|
3
|
+
export {
|
|
4
|
+
TextAncestorContext,
|
|
5
|
+
TextAncestorContext_default as default
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=TextAncestorContext.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/TextAncestorContext.tsx"],
|
|
4
|
+
"mappings": "AAUA,SAASA,qBAAqB;AAEvB,IAAMC,sBAAsBD,8BAAc,EAAA,GACjD,8BAAeC;",
|
|
5
|
+
"names": ["createContext", "TextAncestorContext"]
|
|
6
|
+
}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/colorProps.tsx"],
|
|
4
|
+
"mappings": "AAAO,IAAMA,aAAa;EACxBC,iBAAiB;EACjBC,aAAa;EACbC,gBAAgB;EAChBC,kBAAkB;EAClBC,mBAAmB;EACnBC,iBAAiB;EACjBC,OAAO;EACPC,aAAa;EACbC,qBAAqB;EACrBC,iBAAiB;AACnB;",
|
|
5
|
+
"names": ["colorProps", "backgroundColor", "borderColor", "borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor", "color", "shadowColor", "textDecorationColor", "textShadowColor"]
|
|
6
|
+
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,45 +1,80 @@
|
|
|
1
|
-
export * from "./modules/AssetRegistry/index
|
|
2
|
-
export * from "./modules/forwardedProps/index
|
|
3
|
-
export * from "./modules/mergeRefs/index
|
|
4
|
-
export * from "./modules/modality/index
|
|
5
|
-
export * from "./modules/useLocale/index
|
|
6
|
-
import { usePlatformMethods } from "./modules/usePlatformMethods/index
|
|
7
|
-
import { TextAncestorContext } from "./TextAncestorContext
|
|
1
|
+
export * from "./modules/AssetRegistry/index";
|
|
2
|
+
export * from "./modules/forwardedProps/index";
|
|
3
|
+
export * from "./modules/mergeRefs/index";
|
|
4
|
+
export * from "./modules/modality/index";
|
|
5
|
+
export * from "./modules/useLocale/index";
|
|
6
|
+
import { usePlatformMethods } from "./modules/usePlatformMethods/index";
|
|
7
|
+
import { TextAncestorContext } from "./TextAncestorContext";
|
|
8
8
|
export * from "@tamagui/react-native-use-pressable";
|
|
9
9
|
export * from "@tamagui/react-native-use-responder-events";
|
|
10
|
-
import { colorProps } from "./colorProps
|
|
11
|
-
import { AccessibilityUtil } from "./modules/AccessibilityUtil/index
|
|
12
|
-
import { default as default2 } from "./modules/canUseDOM
|
|
13
|
-
import { default as default3 } from "./modules/createDOMProps/index
|
|
14
|
-
import { stylesFromProps } from "./modules/createDOMProps/index
|
|
15
|
-
import { default as default4 } from "./StyleSheet/compiler/createReactDOMStyle
|
|
16
|
-
import { default as default5 } from "./modules/createEventHandle/index
|
|
17
|
-
import { default as default6 } from "./modules/dismissKeyboard/index
|
|
18
|
-
import { default as default7 } from "./modules/getBoundingClientRect/index
|
|
19
|
-
import { default as default8 } from "./modules/ImageLoader/index
|
|
20
|
-
import { default as default9 } from "./modules/isSelectionValid/index
|
|
21
|
-
import { default as default10 } from "./modules/isWebColor/index
|
|
22
|
-
import { default as default11 } from "./modules/multiplyStyleLengthValue/index
|
|
23
|
-
import { default as default12 } from "./modules/normalizeColor/index
|
|
24
|
-
import { default as default13 } from "./modules/pick/index
|
|
25
|
-
import { default as default14 } from "./modules/Platform/index
|
|
26
|
-
export * from "./StyleSheet/preprocess
|
|
27
|
-
import { flatten } from "./StyleSheet/index
|
|
28
|
-
import { createSheet } from "./StyleSheet/dom/index
|
|
29
|
-
import { default as default15 } from "./modules/requestIdleCallback/index
|
|
30
|
-
import { default as default16 } from "./modules/setValueForStyles/index
|
|
31
|
-
import { default as default17 } from "./modules/TextInputState/index
|
|
32
|
-
import { default as default18 } from "./modules/UIManager/index
|
|
33
|
-
import { default as default19 } from "./modules/unitlessNumbers/index
|
|
34
|
-
import { default as default20 } from "./modules/useElementLayout/index
|
|
35
|
-
import { default as default21 } from "./modules/useEvent/index
|
|
36
|
-
import { default as default22 } from "./modules/useHover/index
|
|
37
|
-
import { default as default23 } from "./modules/useLayoutEffect/index
|
|
38
|
-
import { default as default24 } from "./modules/useStable/index
|
|
39
|
-
import { InteractionManager } from "./modules/InteractionManager
|
|
40
|
-
export * from "./modules/invariant
|
|
41
|
-
import { processColor } from "./modules/processColor/index
|
|
42
|
-
import { default as default25 } from "./StyleSheet/index
|
|
43
|
-
import { useMergeRefs } from "./modules/useMergeRefs/index
|
|
44
|
-
export {
|
|
45
|
-
|
|
10
|
+
import { colorProps } from "./colorProps";
|
|
11
|
+
import { AccessibilityUtil } from "./modules/AccessibilityUtil/index";
|
|
12
|
+
import { default as default2 } from "./modules/canUseDOM";
|
|
13
|
+
import { default as default3 } from "./modules/createDOMProps/index";
|
|
14
|
+
import { stylesFromProps } from "./modules/createDOMProps/index";
|
|
15
|
+
import { default as default4 } from "./StyleSheet/compiler/createReactDOMStyle";
|
|
16
|
+
import { default as default5 } from "./modules/createEventHandle/index";
|
|
17
|
+
import { default as default6 } from "./modules/dismissKeyboard/index";
|
|
18
|
+
import { default as default7 } from "./modules/getBoundingClientRect/index";
|
|
19
|
+
import { default as default8 } from "./modules/ImageLoader/index";
|
|
20
|
+
import { default as default9 } from "./modules/isSelectionValid/index";
|
|
21
|
+
import { default as default10 } from "./modules/isWebColor/index";
|
|
22
|
+
import { default as default11 } from "./modules/multiplyStyleLengthValue/index";
|
|
23
|
+
import { default as default12 } from "./modules/normalizeColor/index";
|
|
24
|
+
import { default as default13 } from "./modules/pick/index";
|
|
25
|
+
import { default as default14 } from "./modules/Platform/index";
|
|
26
|
+
export * from "./StyleSheet/preprocess";
|
|
27
|
+
import { flatten } from "./StyleSheet/index";
|
|
28
|
+
import { createSheet } from "./StyleSheet/dom/index";
|
|
29
|
+
import { default as default15 } from "./modules/requestIdleCallback/index";
|
|
30
|
+
import { default as default16 } from "./modules/setValueForStyles/index";
|
|
31
|
+
import { default as default17 } from "./modules/TextInputState/index";
|
|
32
|
+
import { default as default18 } from "./modules/UIManager/index";
|
|
33
|
+
import { default as default19 } from "./modules/unitlessNumbers/index";
|
|
34
|
+
import { default as default20 } from "./modules/useElementLayout/index";
|
|
35
|
+
import { default as default21 } from "./modules/useEvent/index";
|
|
36
|
+
import { default as default22 } from "./modules/useHover/index";
|
|
37
|
+
import { default as default23 } from "./modules/useLayoutEffect/index";
|
|
38
|
+
import { default as default24 } from "./modules/useStable/index";
|
|
39
|
+
import { InteractionManager } from "./modules/InteractionManager";
|
|
40
|
+
export * from "./modules/invariant";
|
|
41
|
+
import { processColor } from "./modules/processColor/index";
|
|
42
|
+
import { default as default25 } from "./StyleSheet/index";
|
|
43
|
+
import { useMergeRefs } from "./modules/useMergeRefs/index";
|
|
44
|
+
export {
|
|
45
|
+
AccessibilityUtil,
|
|
46
|
+
default8 as ImageLoader,
|
|
47
|
+
InteractionManager,
|
|
48
|
+
default14 as Platform,
|
|
49
|
+
default25 as StyleSheet,
|
|
50
|
+
TextAncestorContext,
|
|
51
|
+
default17 as TextInputState,
|
|
52
|
+
default18 as UIManager,
|
|
53
|
+
default2 as canUseDOM,
|
|
54
|
+
colorProps,
|
|
55
|
+
default3 as createDOMProps,
|
|
56
|
+
default5 as createEventHandle,
|
|
57
|
+
default4 as createReactDOMStyle,
|
|
58
|
+
createSheet,
|
|
59
|
+
default6 as dismissKeyboard,
|
|
60
|
+
flatten as flattenStyle,
|
|
61
|
+
default7 as getBoundingClientRect,
|
|
62
|
+
default9 as isSelectionValid,
|
|
63
|
+
default10 as isWebColor,
|
|
64
|
+
default11 as multiplyStyleLengthValue,
|
|
65
|
+
default12 as normalizeColor,
|
|
66
|
+
default13 as pick,
|
|
67
|
+
processColor,
|
|
68
|
+
default15 as requestIdleCallback,
|
|
69
|
+
default16 as setValueForStyles,
|
|
70
|
+
stylesFromProps,
|
|
71
|
+
default19 as unitlessNumbers,
|
|
72
|
+
default20 as useElementLayout,
|
|
73
|
+
default21 as useEvent,
|
|
74
|
+
default22 as useHover,
|
|
75
|
+
default23 as useLayoutEffect,
|
|
76
|
+
useMergeRefs,
|
|
77
|
+
usePlatformMethods,
|
|
78
|
+
default24 as useStable
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.tsx"],
|
|
4
|
+
"mappings": "AAUA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAASA,0BAA0B;AACnC,SAASC,2BAA2B;AAEpC,cAAc;AACd,cAAc;AAEd,SAASC,kBAAkB;AAC3B,SAASC,yBAAyB;AAClC,SAAoBC,WAAXC,gBAA4B;AACrC,SAAoBC,WAAXD,gBAAiC;AAC1C,SAASE,uBAAuB;AAChC,SAAoBC,WAAXH,gBAAsC;AAC/C,SAAoBI,WAAXJ,gBAAoC;AAC7C,SAAoBK,WAAXL,gBAAkC;AAC3C,SAAoBM,WAAXN,gBAAwC;AACjD,SAAoBO,WAAXP,gBAA8B;AACvC,SAAoBQ,WAAXR,gBAAmC;AAC5C,SAAoBS,WAAXT,iBAA6B;AACtC,SAAoBU,WAAXV,iBAA2C;AACpD,SAAoBW,WAAXX,iBAAiC;AAC1C,SAAoBY,WAAXZ,iBAAuB;AAChC,SAAoBa,WAAXb,iBAA2B;AACpC,cAAc;AACd,SAAoBc,eAAoB;AACxC,SAASC,mBAAmB;AAC5B,SAAoBC,WAAXhB,iBAAsC;AAC/C,SAAoBiB,WAAXjB,iBAAoC;AAC7C,SAAoBkB,WAAXlB,iBAAiC;AAC1C,SAAoBmB,WAAXnB,iBAA4B;AACrC,SAAoBoB,WAAXpB,iBAAkC;AAC3C,SAAoBqB,WAAXrB,iBAAmC;AAC5C,SAAoBsB,WAAXtB,iBAA2B;AACpC,SAAoBuB,WAAXvB,iBAA2B;AACpC,SAAoBwB,WAAXxB,iBAAkC;AAC3C,SAAoByB,WAAXzB,iBAA4B;AACrC,SAAS0B,0BAA0B;AACnC,cAAc;AACd,SAASC,oBAAoB;AAC7B,SAAoBC,WAAX5B,iBAA6B;AACtC,SAAS6B,oBAAoB;",
|
|
5
|
+
"names": ["usePlatformMethods", "TextAncestorContext", "colorProps", "AccessibilityUtil", "canUseDOM", "default", "createDOMProps", "stylesFromProps", "createReactDOMStyle", "createEventHandle", "dismissKeyboard", "getBoundingClientRect", "ImageLoader", "isSelectionValid", "isWebColor", "multiplyStyleLengthValue", "normalizeColor", "pick", "Platform", "flattenStyle", "createSheet", "requestIdleCallback", "setValueForStyles", "TextInputState", "UIManager", "unitlessNumbers", "useElementLayout", "useEvent", "useHover", "useLayoutEffect", "useStable", "InteractionManager", "processColor", "StyleSheet", "useMergeRefs"]
|
|
6
|
+
}
|
package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import propsToAccessibilityComponent from "../propsToAccessibilityComponent
|
|
2
|
-
describe("modules/AccessibilityUtil/propsToAccessibilityComponent", function
|
|
3
|
-
test('when missing accessibility props"', function
|
|
1
|
+
import propsToAccessibilityComponent from "../propsToAccessibilityComponent";
|
|
2
|
+
describe("modules/AccessibilityUtil/propsToAccessibilityComponent", function() {
|
|
3
|
+
test('when missing accessibility props"', function() {
|
|
4
4
|
expect(propsToAccessibilityComponent({})).toBeUndefined();
|
|
5
|
-
}), test('when "accessibilityRole" is "button"', function
|
|
5
|
+
}), test('when "accessibilityRole" is "button"', function() {
|
|
6
6
|
expect(propsToAccessibilityComponent({
|
|
7
7
|
accessibilityRole: "button"
|
|
8
8
|
})).toBeUndefined();
|
|
9
|
-
}), test('when "accessibilityRole" is "heading"', function
|
|
9
|
+
}), test('when "accessibilityRole" is "heading"', function() {
|
|
10
10
|
expect(propsToAccessibilityComponent({
|
|
11
11
|
accessibilityRole: "heading"
|
|
12
12
|
})).toEqual("h1");
|
|
13
|
-
}), test('when "accessibilityRole" is "heading" and "aria-level" is set', function
|
|
13
|
+
}), test('when "accessibilityRole" is "heading" and "aria-level" is set', function() {
|
|
14
14
|
expect(propsToAccessibilityComponent({
|
|
15
15
|
accessibilityRole: "heading",
|
|
16
16
|
"aria-level": 3
|
|
17
17
|
})).toEqual("h3");
|
|
18
|
-
}), test('when "accessibilityRole" is "heading" and "accessibilityLevel" is set', function
|
|
18
|
+
}), test('when "accessibilityRole" is "heading" and "accessibilityLevel" is set', function() {
|
|
19
19
|
expect(propsToAccessibilityComponent({
|
|
20
20
|
accessibilityRole: "heading",
|
|
21
21
|
accessibilityLevel: 3
|
|
22
22
|
})).toEqual("h3");
|
|
23
|
-
}), test('when "accessibilityRole" is "label"', function
|
|
23
|
+
}), test('when "accessibilityRole" is "label"', function() {
|
|
24
24
|
expect(propsToAccessibilityComponent({
|
|
25
25
|
accessibilityRole: "label"
|
|
26
26
|
})).toEqual("label");
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
//# sourceMappingURL=propsToAccessibilityComponent-test.
|
|
29
|
+
//# sourceMappingURL=propsToAccessibilityComponent-test.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.tsx"],
|
|
4
|
+
"mappings": "AAOA,OAAOA,mCAAmC;AAE1CC,SAAS,2DAA2D,WAAA;AAClEC,OAAK,qCAAqC,WAAA;AACxCC,WAAOH,8BAA8B,CAAC,CAAA,CAAA,EAAII,cAAa;EACzD,CAAA,GAEAF,KAAK,wCAAwC,WAAA;AAC3CC,WAAOH,8BAA8B;MAAEK,mBAAmB;IAAS,CAAA,CAAA,EAAID,cAAa;EACtF,CAAA,GAEAF,KAAK,yCAAyC,WAAA;AAC5CC,WAAOH,8BAA8B;MAAEK,mBAAmB;IAAU,CAAA,CAAA,EAAIC,QAAQ,IAAA;EAClF,CAAA,GAEAJ,KAAK,iEAAiE,WAAA;AACpEC,WACEH,8BAA8B;MAC5BK,mBAAmB;MACnB,cAAc;IAChB,CAAA,CAAA,EACAC,QAAQ,IAAA;EACZ,CAAA,GAEAJ,KAAK,yEAAyE,WAAA;AAC5EC,WACEH,8BAA8B;MAC5BK,mBAAmB;MACnBE,oBAAoB;IACtB,CAAA,CAAA,EACAD,QAAQ,IAAA;EACZ,CAAA,GAEAJ,KAAK,uCAAuC,WAAA;AAC1CC,WAAOH,8BAA8B;MAAEK,mBAAmB;IAAQ,CAAA,CAAA,EAAIC,QAAQ,OAAA;EAChF,CAAA;AACF,CAAA;",
|
|
5
|
+
"names": ["propsToAccessibilityComponent", "describe", "test", "expect", "toBeUndefined", "accessibilityRole", "toEqual", "accessibilityLevel"]
|
|
6
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import propsToAriaRole from "../propsToAriaRole
|
|
2
|
-
describe("modules/AccessibilityUtil/propsToAriaRole", function
|
|
3
|
-
test("when missing accessibility props", function
|
|
1
|
+
import propsToAriaRole from "../propsToAriaRole";
|
|
2
|
+
describe("modules/AccessibilityUtil/propsToAriaRole", function() {
|
|
3
|
+
test("when missing accessibility props", function() {
|
|
4
4
|
expect(propsToAriaRole({})).toBeUndefined();
|
|
5
|
-
}), test('when "accessibilityRole" is defined', function
|
|
5
|
+
}), test('when "accessibilityRole" is defined', function() {
|
|
6
6
|
expect(propsToAriaRole({
|
|
7
7
|
accessibilityRole: "banner"
|
|
8
8
|
})).toEqual("banner");
|
|
9
|
-
}), test('when "accessibilityRole" is a native-only value', function
|
|
9
|
+
}), test('when "accessibilityRole" is a native-only value', function() {
|
|
10
10
|
expect(propsToAriaRole({
|
|
11
11
|
accessibilityRole: "none"
|
|
12
12
|
})).toEqual("presentation"), expect(propsToAriaRole({
|
|
@@ -16,4 +16,4 @@ describe("modules/AccessibilityUtil/propsToAriaRole", function () {
|
|
|
16
16
|
})).toEqual(void 0);
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
-
//# sourceMappingURL=propsToAriaRole-test.
|
|
19
|
+
//# sourceMappingURL=propsToAriaRole-test.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.tsx"],
|
|
4
|
+
"mappings": "AAOA,OAAOA,qBAAqB;AAE5BC,SAAS,6CAA6C,WAAA;AACpDC,OAAK,oCAAoC,WAAA;AACvCC,WAAOH,gBAAgB,CAAC,CAAA,CAAA,EAAII,cAAa;EAC3C,CAAA,GAEAF,KAAK,uCAAuC,WAAA;AAC1CC,WAAOH,gBAAgB;MAAEK,mBAAmB;IAAS,CAAA,CAAA,EAAIC,QAAQ,QAAA;EACnE,CAAA,GAEAJ,KAAK,mDAAmD,WAAA;AACtDC,WAAOH,gBAAgB;MAAEK,mBAAmB;IAAO,CAAA,CAAA,EAAIC,QAAQ,cAAA,GAC/DH,OAAOH,gBAAgB;MAAEK,mBAAmB;IAAc,CAAA,CAAA,EAAIC,QAAQC,MAAAA,GAEtEJ,OAAOH,gBAAgB;MAAEK,mBAAmB;IAAQ,CAAA,CAAA,EAAIC,QAAQC,MAAAA;EAClE,CAAA;AACF,CAAA;",
|
|
5
|
+
"names": ["propsToAriaRole", "describe", "test", "expect", "toBeUndefined", "accessibilityRole", "toEqual", "undefined"]
|
|
6
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import isDisabled from "./isDisabled
|
|
2
|
-
import propsToAccessibilityComponent from "./propsToAccessibilityComponent
|
|
3
|
-
import propsToAriaRole from "./propsToAriaRole
|
|
1
|
+
import isDisabled from "./isDisabled";
|
|
2
|
+
import propsToAccessibilityComponent from "./propsToAccessibilityComponent";
|
|
3
|
+
import propsToAriaRole from "./propsToAriaRole";
|
|
4
4
|
var AccessibilityUtil = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
isDisabled,
|
|
6
|
+
propsToAccessibilityComponent,
|
|
7
|
+
propsToAriaRole
|
|
8
|
+
}, AccessibilityUtil_default = AccessibilityUtil;
|
|
9
|
+
export {
|
|
10
|
+
AccessibilityUtil,
|
|
11
|
+
AccessibilityUtil_default as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/modules/AccessibilityUtil/index.tsx"],
|
|
4
|
+
"mappings": "AASA,OAAOA,gBAAgB;AACvB,OAAOC,mCAAmC;AAC1C,OAAOC,qBAAqB;AAErB,IAAMC,oBAAoB;EAC/BH;EACAC;EACAC;AACF,GAEA,4BAAeC;",
|
|
5
|
+
"names": ["isDisabled", "propsToAccessibilityComponent", "propsToAriaRole", "AccessibilityUtil"]
|
|
6
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
var isDisabled = function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var isDisabled = function(props) {
|
|
2
|
+
return props.disabled || Array.isArray(props.accessibilityStates) && props.accessibilityStates.indexOf("disabled") > -1;
|
|
3
|
+
}, isDisabled_default = isDisabled;
|
|
4
|
+
export {
|
|
5
|
+
isDisabled_default as default
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=isDisabled.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/modules/AccessibilityUtil/isDisabled.tsx"],
|
|
4
|
+
"mappings": "AASA,IAAMA,aAAa,SAACC,OAAAA;SAClBA,MAAMC,YACLC,MAAMC,QAAQH,MAAMI,mBAAmB,KACtCJ,MAAMI,oBAAoBC,QAAQ,UAAA,IAAc;GAEpD,qBAAeN;",
|
|
5
|
+
"names": ["isDisabled", "props", "disabled", "Array", "isArray", "accessibilityStates", "indexOf"]
|
|
6
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import propsToAriaRole from "./propsToAriaRole
|
|
1
|
+
import propsToAriaRole from "./propsToAriaRole";
|
|
2
2
|
var roleComponents = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (role) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return level != null ? `h${level}` : "h1";
|
|
30
|
-
}
|
|
31
|
-
return roleComponents[role];
|
|
3
|
+
article: "article",
|
|
4
|
+
banner: "header",
|
|
5
|
+
blockquote: "blockquote",
|
|
6
|
+
code: "code",
|
|
7
|
+
complementary: "aside",
|
|
8
|
+
contentinfo: "footer",
|
|
9
|
+
deletion: "del",
|
|
10
|
+
emphasis: "em",
|
|
11
|
+
figure: "figure",
|
|
12
|
+
insertion: "ins",
|
|
13
|
+
form: "form",
|
|
14
|
+
list: "ul",
|
|
15
|
+
listitem: "li",
|
|
16
|
+
main: "main",
|
|
17
|
+
navigation: "nav",
|
|
18
|
+
region: "section",
|
|
19
|
+
strong: "strong"
|
|
20
|
+
}, emptyObject = {}, propsToAccessibilityComponent = function() {
|
|
21
|
+
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : emptyObject;
|
|
22
|
+
if (props.accessibilityRole === "label")
|
|
23
|
+
return "label";
|
|
24
|
+
var role = propsToAriaRole(props);
|
|
25
|
+
if (role) {
|
|
26
|
+
if (role === "heading") {
|
|
27
|
+
var level = props.accessibilityLevel || props["aria-level"];
|
|
28
|
+
return level != null ? `h${level}` : "h1";
|
|
32
29
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
return roleComponents[role];
|
|
31
|
+
}
|
|
32
|
+
}, propsToAccessibilityComponent_default = propsToAccessibilityComponent;
|
|
33
|
+
export {
|
|
34
|
+
propsToAccessibilityComponent_default as default
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=propsToAccessibilityComponent.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx"],
|
|
4
|
+
"mappings": "AAUA,OAAOA,qBAAqB;AAE5B,IAAMC,iBAAiB;EACrBC,SAAS;EACTC,QAAQ;EACRC,YAAY;EACZC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,UAAU;EACVC,UAAU;EACVC,QAAQ;EACRC,WAAW;EACXC,MAAM;EACNC,MAAM;EACNC,UAAU;EACVC,MAAM;EACNC,YAAY;EACZC,QAAQ;EACRC,QAAQ;AACV,GAEMC,cAAc,CAAC,GAEfC,gCAAgC,WAAA;MAACC,QAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAgBF;AAErD,MAAIE,MAAMC,sBAAsB;AAC9B,WAAO;AAGT,MAAMC,OAAOvB,gBAAgBqB,KAAAA;AAC7B,MAAIE,MAAM;AACR,QAAIA,SAAS,WAAW;AACtB,UAAMC,QAAQH,MAAMI,sBAAsBJ,MAAM,YAAA;AAChD,aAAIG,SAAS,OACJ,IAAIA,KAAAA,KAEN;IACT;AACA,WAAOvB,eAAesB,IAAAA;EACxB;AACF,GAEA,wCAAeH;",
|
|
5
|
+
"names": ["propsToAriaRole", "roleComponents", "article", "banner", "blockquote", "code", "complementary", "contentinfo", "deletion", "emphasis", "figure", "insertion", "form", "list", "listitem", "main", "navigation", "region", "strong", "emptyObject", "propsToAccessibilityComponent", "props", "accessibilityRole", "role", "level", "accessibilityLevel"]
|
|
6
|
+
}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
var accessibilityRoleToWebRole = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=propsToAriaRole.native.js.map
|
|
2
|
+
adjustable: "slider",
|
|
3
|
+
button: "button",
|
|
4
|
+
header: "heading",
|
|
5
|
+
image: "img",
|
|
6
|
+
imagebutton: null,
|
|
7
|
+
keyboardkey: null,
|
|
8
|
+
label: null,
|
|
9
|
+
link: "link",
|
|
10
|
+
none: "presentation",
|
|
11
|
+
search: "search",
|
|
12
|
+
summary: "region",
|
|
13
|
+
text: null
|
|
14
|
+
}, propsToAriaRole = function(param) {
|
|
15
|
+
var { accessibilityRole } = param;
|
|
16
|
+
if (accessibilityRole) {
|
|
17
|
+
var inferredRole = accessibilityRoleToWebRole[accessibilityRole];
|
|
18
|
+
if (inferredRole !== null)
|
|
19
|
+
return inferredRole || accessibilityRole;
|
|
20
|
+
}
|
|
21
|
+
}, propsToAriaRole_default = propsToAriaRole;
|
|
22
|
+
export {
|
|
23
|
+
propsToAriaRole_default as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=propsToAriaRole.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/modules/AccessibilityUtil/propsToAriaRole.tsx"],
|
|
4
|
+
"mappings": "AASA,IAAMA,6BAA6B;EACjCC,YAAY;EACZC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,aAAa;EACbC,aAAa;EACbC,OAAO;EACPC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,MAAM;AACR,GAEMC,kBAAkB,SAAA,OAAA;MAAC,EACvBC,kBAAiB,IAGlB;AACC,MAAIA,mBAAmB;AACrB,QAAMC,eAAef,2BAA2Bc,iBAAAA;AAChD,QAAIC,iBAAiB;AAEnB,aAAOA,gBAAgBD;EAE3B;AACF,GAEA,0BAAeD;",
|
|
5
|
+
"names": ["accessibilityRoleToWebRole", "adjustable", "button", "header", "image", "imagebutton", "keyboardkey", "label", "link", "none", "search", "summary", "text", "propsToAriaRole", "accessibilityRole", "inferredRole"]
|
|
6
|
+
}
|
|
@@ -5,5 +5,8 @@ function registerAsset(asset) {
|
|
|
5
5
|
function getAssetByID(assetId) {
|
|
6
6
|
return assets[assetId - 1];
|
|
7
7
|
}
|
|
8
|
-
export {
|
|
9
|
-
|
|
8
|
+
export {
|
|
9
|
+
getAssetByID,
|
|
10
|
+
registerAsset
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/modules/AssetRegistry/index.tsx"],
|
|
4
|
+
"mappings": "AAqBA,IAAMA,SAA+B,CAAA;AAE9B,SAASC,cAAcC,OAAoB;AAGhD,SAAOF,OAAOG,KAAKD,KAAAA;AACrB;AAEO,SAASE,aAAaC,SAAe;AAC1C,SAAOL,OAAOK,UAAU,CAAA;AAC1B;",
|
|
5
|
+
"names": ["assets", "registerAsset", "asset", "push", "getAssetByID", "assetId"]
|
|
6
|
+
}
|