@tamagui/react-native-web-internals 2.0.0-rc.4 → 2.0.0-rc.40
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/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.cjs +62 -37
- package/dist/cjs/StyleSheet/__tests__/compiler-test.cjs +129 -117
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.cjs +69 -30
- package/dist/cjs/StyleSheet/__tests__/index-test.cjs +127 -95
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.cjs +26 -13
- package/dist/cjs/StyleSheet/__tests__/validate-test.cjs +30 -15
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +141 -68
- package/dist/cjs/StyleSheet/compiler/hash.cjs +12 -10
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +18 -14
- package/dist/cjs/StyleSheet/compiler/index.cjs +234 -173
- package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +17 -21
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +30 -23
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +36 -32
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +30 -15
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +62 -37
- package/dist/cjs/StyleSheet/dom/index.cjs +56 -34
- package/dist/cjs/StyleSheet/index.cjs +25 -18
- package/dist/cjs/StyleSheet/preprocess.cjs +94 -81
- package/dist/cjs/StyleSheet/validate.cjs +67 -44
- package/dist/cjs/TextAncestorContext.cjs +13 -11
- package/dist/cjs/colorProps.cjs +22 -20
- package/dist/cjs/index.cjs +48 -45
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +19 -12
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +17 -11
- package/dist/cjs/modules/AccessibilityUtil/index.cjs +15 -13
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +12 -10
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +45 -38
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +34 -30
- package/dist/cjs/modules/AssetRegistry/index.cjs +12 -10
- package/dist/cjs/modules/ImageLoader/index.cjs +117 -71
- package/dist/cjs/modules/InteractionManager.cjs +155 -99
- package/dist/cjs/modules/Platform/__tests__/index-test.cjs +21 -13
- package/dist/cjs/modules/Platform/index.cjs +12 -10
- package/dist/cjs/modules/TextInputState/index.cjs +28 -13
- package/dist/cjs/modules/UIManager/__tests__/index-test.cjs +77 -56
- package/dist/cjs/modules/UIManager/index.cjs +47 -42
- package/dist/cjs/modules/canUseDOM.cjs +13 -11
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +75 -54
- package/dist/cjs/modules/createDOMProps/index.cjs +353 -102
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +238 -160
- package/dist/cjs/modules/createEventHandle/index.cjs +46 -25
- package/dist/cjs/modules/dismissKeyboard/index.cjs +12 -10
- package/dist/cjs/modules/forwardedProps/index.cjs +137 -134
- package/dist/cjs/modules/getBoundingClientRect/index.cjs +18 -11
- package/dist/cjs/modules/invariant.cjs +21 -15
- package/dist/cjs/modules/isSelectionValid/index.cjs +18 -17
- package/dist/cjs/modules/isWebColor/index.cjs +12 -10
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +21 -15
- package/dist/cjs/modules/mergeRefs/index.cjs +24 -21
- package/dist/cjs/modules/modality/__tests__/index-test.cjs +44 -17
- package/dist/cjs/modules/modality/index.cjs +148 -71
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.cjs +18 -10
- package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +26 -20
- package/dist/cjs/modules/normalizeColor/index.cjs +22 -17
- package/dist/cjs/modules/pick/index.cjs +19 -11
- package/dist/cjs/modules/processColor/__tests__/index-test.cjs +43 -24
- package/dist/cjs/modules/processColor/index.cjs +32 -24
- package/dist/cjs/modules/requestIdleCallback/index.cjs +28 -26
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +37 -12
- package/dist/cjs/modules/setValueForStyles/index.cjs +25 -14
- package/dist/cjs/modules/unitlessNumbers/index.cjs +68 -64
- package/dist/cjs/modules/useElementLayout/index.cjs +25 -20
- package/dist/cjs/modules/useEvent/__tests__/index-test.cjs +255 -173
- package/dist/cjs/modules/useEvent/index.cjs +40 -28
- package/dist/cjs/modules/useHover/__tests__/index-test.cjs +233 -124
- package/dist/cjs/modules/useHover/index.cjs +105 -62
- package/dist/cjs/modules/useLayoutEffect/index.cjs +26 -24
- package/dist/cjs/modules/useLocale/index.cjs +33 -30
- package/dist/cjs/modules/useLocale/isLocaleRTL.cjs +63 -58
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +54 -31
- package/dist/cjs/modules/useMergeRefs/index.cjs +26 -24
- package/dist/cjs/modules/usePlatformMethods/index.cjs +21 -14
- package/dist/cjs/modules/useStable/__tests__/index-test.cjs +60 -30
- package/dist/cjs/modules/useStable/index.cjs +29 -24
- package/dist/cjs/styleTypes.cjs +7 -5
- package/dist/cjs/types.cjs +7 -5
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs +53 -30
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs.map +1 -1
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs +130 -118
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs.map +1 -1
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs +60 -23
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs.map +1 -1
- package/dist/esm/StyleSheet/__tests__/index-test.mjs +118 -88
- package/dist/esm/StyleSheet/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs +26 -13
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs.map +1 -1
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs +30 -15
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +127 -56
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs +6 -4
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/index.mjs +218 -159
- package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +5 -11
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs +16 -11
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs +22 -20
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs +18 -5
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs +50 -27
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/index.mjs +41 -21
- package/dist/esm/StyleSheet/dom/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/index.mjs +13 -8
- package/dist/esm/StyleSheet/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/preprocess.mjs +80 -69
- package/dist/esm/StyleSheet/preprocess.mjs.map +1 -1
- package/dist/esm/StyleSheet/validate.mjs +55 -34
- package/dist/esm/StyleSheet/validate.mjs.map +1 -1
- package/dist/esm/TextAncestorContext.mjs +1 -1
- package/dist/esm/TextAncestorContext.mjs.map +1 -1
- package/dist/esm/colorProps.mjs +10 -10
- package/dist/esm/index.js +42 -77
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs +10 -5
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs +8 -4
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +33 -28
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +22 -20
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +1 -1
- package/dist/esm/modules/ImageLoader/index.mjs +105 -61
- package/dist/esm/modules/ImageLoader/index.mjs.map +1 -1
- package/dist/esm/modules/InteractionManager.mjs +141 -87
- package/dist/esm/modules/InteractionManager.mjs.map +1 -1
- package/dist/esm/modules/Platform/__tests__/index-test.mjs +13 -7
- package/dist/esm/modules/Platform/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/TextInputState/index.mjs +17 -4
- package/dist/esm/modules/TextInputState/index.mjs.map +1 -1
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs +69 -50
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/UIManager/index.mjs +35 -32
- package/dist/esm/modules/UIManager/index.mjs.map +1 -1
- package/dist/esm/modules/canUseDOM.mjs +1 -1
- package/dist/esm/modules/canUseDOM.mjs.map +1 -1
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs +67 -48
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/createDOMProps/index.mjs +339 -90
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -1
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs +223 -147
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/createEventHandle/index.mjs +34 -15
- package/dist/esm/modules/createEventHandle/index.mjs.map +1 -1
- package/dist/esm/modules/forwardedProps/index.mjs +125 -124
- package/dist/esm/modules/forwardedProps/index.mjs.map +1 -1
- package/dist/esm/modules/getBoundingClientRect/index.mjs +6 -1
- package/dist/esm/modules/getBoundingClientRect/index.mjs.map +1 -1
- package/dist/esm/modules/invariant.mjs +9 -5
- package/dist/esm/modules/invariant.mjs.map +1 -1
- package/dist/esm/modules/isSelectionValid/index.mjs +6 -7
- package/dist/esm/modules/isSelectionValid/index.mjs.map +1 -1
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs +9 -5
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/mergeRefs/index.mjs +12 -11
- package/dist/esm/modules/mergeRefs/index.mjs.map +1 -1
- package/dist/esm/modules/modality/__tests__/index-test.mjs +43 -16
- package/dist/esm/modules/modality/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/modality/index.mjs +134 -59
- package/dist/esm/modules/modality/index.mjs.map +1 -1
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs +10 -4
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs +14 -10
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -1
- package/dist/esm/modules/normalizeColor/index.mjs +8 -5
- package/dist/esm/modules/normalizeColor/index.mjs.map +1 -1
- package/dist/esm/modules/pick/index.mjs +7 -1
- package/dist/esm/modules/pick/index.mjs.map +1 -1
- package/dist/esm/modules/processColor/__tests__/index-test.mjs +35 -18
- package/dist/esm/modules/processColor/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/processColor/index.mjs +8 -2
- package/dist/esm/modules/processColor/index.mjs.map +1 -1
- package/dist/esm/modules/requestIdleCallback/index.mjs +16 -16
- package/dist/esm/modules/requestIdleCallback/index.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +25 -2
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/index.mjs +13 -4
- package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -1
- package/dist/esm/modules/unitlessNumbers/index.mjs +56 -54
- package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -1
- package/dist/esm/modules/useElementLayout/index.mjs +11 -8
- package/dist/esm/modules/useElementLayout/index.mjs.map +1 -1
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs +241 -161
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/useEvent/index.mjs +25 -15
- package/dist/esm/modules/useEvent/index.mjs.map +1 -1
- package/dist/esm/modules/useHover/__tests__/index-test.mjs +218 -111
- package/dist/esm/modules/useHover/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/useHover/index.mjs +90 -49
- package/dist/esm/modules/useHover/index.mjs.map +1 -1
- package/dist/esm/modules/useLocale/index.mjs +6 -5
- package/dist/esm/modules/useLocale/index.mjs.map +1 -1
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs +51 -48
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +1 -1
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs +41 -20
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/usePlatformMethods/index.mjs +7 -2
- package/dist/esm/modules/usePlatformMethods/index.mjs.map +1 -1
- package/dist/esm/modules/useStable/__tests__/index-test.mjs +48 -20
- package/dist/esm/modules/useStable/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/modules/useStable/index.mjs +5 -2
- package/dist/esm/modules/useStable/index.mjs.map +1 -1
- package/package.json +9 -8
- package/src/index.tsx +4 -1
- package/src/modules/createDOMProps/index.tsx +51 -0
- package/src/modules/forwardedProps/index.tsx +1 -0
- package/src/modules/setValueForStyles/dangerousStyleValue.tsx +24 -0
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/modules/createDOMProps/index.d.ts.map +1 -1
- package/types/modules/forwardedProps/index.d.ts +4 -0
- package/types/modules/forwardedProps/index.d.ts.map +1 -1
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts.map +1 -1
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +0 -192
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js.map +0 -6
- package/dist/cjs/StyleSheet/__tests__/compiler-test.js +0 -378
- package/dist/cjs/StyleSheet/__tests__/compiler-test.js.map +0 -6
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +0 -117
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js.map +0 -6
- package/dist/cjs/StyleSheet/__tests__/index-test.js +0 -347
- package/dist/cjs/StyleSheet/__tests__/index-test.js.map +0 -6
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.js +0 -77
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.js.map +0 -6
- package/dist/cjs/StyleSheet/__tests__/validate-test.js +0 -18
- package/dist/cjs/StyleSheet/__tests__/validate-test.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js +0 -112
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/hash.js +0 -21
- package/dist/cjs/StyleSheet/compiler/hash.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js +0 -30
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/index.js +0 -245
- package/dist/cjs/StyleSheet/compiler/index.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js +0 -33
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js +0 -37
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js.map +0 -6
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js +0 -26
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js.map +0 -6
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js +0 -36
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js.map +0 -6
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js +0 -94
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +0 -6
- package/dist/cjs/StyleSheet/dom/index.js +0 -66
- package/dist/cjs/StyleSheet/dom/index.js.map +0 -6
- package/dist/cjs/StyleSheet/index.js +0 -52
- package/dist/cjs/StyleSheet/index.js.map +0 -6
- package/dist/cjs/StyleSheet/preprocess.js +0 -59
- package/dist/cjs/StyleSheet/preprocess.js.map +0 -6
- package/dist/cjs/StyleSheet/validate.js +0 -66
- package/dist/cjs/StyleSheet/validate.js.map +0 -6
- package/dist/cjs/TextAncestorContext.js +0 -22
- package/dist/cjs/TextAncestorContext.js.map +0 -6
- package/dist/cjs/colorProps.js +0 -32
- package/dist/cjs/colorProps.js.map +0 -6
- package/dist/cjs/index.js +0 -66
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +0 -46
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map +0 -6
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +0 -30
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js.map +0 -6
- package/dist/cjs/modules/AccessibilityUtil/index.js +0 -26
- package/dist/cjs/modules/AccessibilityUtil/index.js.map +0 -6
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js +0 -21
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js.map +0 -6
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js +0 -51
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +0 -6
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js +0 -42
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js.map +0 -6
- package/dist/cjs/modules/AssetRegistry/index.js +0 -28
- package/dist/cjs/modules/AssetRegistry/index.js.map +0 -6
- package/dist/cjs/modules/ImageLoader/index.js +0 -101
- package/dist/cjs/modules/ImageLoader/index.js.map +0 -6
- package/dist/cjs/modules/InteractionManager.js +0 -163
- package/dist/cjs/modules/InteractionManager.js.map +0 -6
- package/dist/cjs/modules/Platform/__tests__/index-test.js +0 -46
- package/dist/cjs/modules/Platform/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/Platform/index.js +0 -25
- package/dist/cjs/modules/Platform/index.js.map +0 -6
- package/dist/cjs/modules/TextInputState/index.js +0 -50
- package/dist/cjs/modules/TextInputState/index.js.map +0 -6
- package/dist/cjs/modules/UIManager/__tests__/index-test.js +0 -66
- package/dist/cjs/modules/UIManager/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/UIManager/index.js +0 -57
- package/dist/cjs/modules/UIManager/index.js.map +0 -6
- package/dist/cjs/modules/canUseDOM.js +0 -21
- package/dist/cjs/modules/canUseDOM.js.map +0 -6
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.js +0 -106
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/createDOMProps/index.js +0 -126
- package/dist/cjs/modules/createDOMProps/index.js.map +0 -6
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.js +0 -242
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/createEventHandle/index.js +0 -66
- package/dist/cjs/modules/createEventHandle/index.js.map +0 -6
- package/dist/cjs/modules/dismissKeyboard/index.js +0 -24
- package/dist/cjs/modules/dismissKeyboard/index.js.map +0 -6
- package/dist/cjs/modules/forwardedProps/index.js +0 -145
- package/dist/cjs/modules/forwardedProps/index.js.map +0 -6
- package/dist/cjs/modules/getBoundingClientRect/index.js +0 -24
- package/dist/cjs/modules/getBoundingClientRect/index.js.map +0 -6
- package/dist/cjs/modules/invariant.js +0 -35
- package/dist/cjs/modules/invariant.js.map +0 -6
- package/dist/cjs/modules/isSelectionValid/index.js +0 -27
- package/dist/cjs/modules/isSelectionValid/index.js.map +0 -6
- package/dist/cjs/modules/isWebColor/index.js +0 -21
- package/dist/cjs/modules/isWebColor/index.js.map +0 -6
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.js +0 -34
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/mergeRefs/index.js +0 -41
- package/dist/cjs/modules/mergeRefs/index.js.map +0 -6
- package/dist/cjs/modules/modality/__tests__/index-test.js +0 -20
- package/dist/cjs/modules/modality/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/modality/index.js +0 -82
- package/dist/cjs/modules/modality/index.js.map +0 -6
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js +0 -28
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js +0 -27
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js.map +0 -6
- package/dist/cjs/modules/normalizeColor/index.js +0 -31
- package/dist/cjs/modules/normalizeColor/index.js.map +0 -6
- package/dist/cjs/modules/pick/index.js +0 -26
- package/dist/cjs/modules/pick/index.js.map +0 -6
- package/dist/cjs/modules/processColor/__tests__/index-test.js +0 -64
- package/dist/cjs/modules/processColor/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/processColor/index.js +0 -36
- package/dist/cjs/modules/processColor/index.js.map +0 -6
- package/dist/cjs/modules/requestIdleCallback/index.js +0 -35
- package/dist/cjs/modules/requestIdleCallback/index.js.map +0 -6
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js +0 -25
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js.map +0 -6
- package/dist/cjs/modules/setValueForStyles/index.js +0 -30
- package/dist/cjs/modules/setValueForStyles/index.js.map +0 -6
- package/dist/cjs/modules/unitlessNumbers/index.js +0 -78
- package/dist/cjs/modules/unitlessNumbers/index.js.map +0 -6
- package/dist/cjs/modules/useElementLayout/index.js +0 -33
- package/dist/cjs/modules/useElementLayout/index.js.map +0 -6
- package/dist/cjs/modules/useEvent/__tests__/index-test.js +0 -289
- package/dist/cjs/modules/useEvent/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/useEvent/index.js +0 -37
- package/dist/cjs/modules/useEvent/index.js.map +0 -6
- package/dist/cjs/modules/useHover/__tests__/index-test.js +0 -195
- package/dist/cjs/modules/useHover/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/useHover/index.js +0 -73
- package/dist/cjs/modules/useHover/index.js.map +0 -6
- package/dist/cjs/modules/useLayoutEffect/index.js +0 -30
- package/dist/cjs/modules/useLayoutEffect/index.js.map +0 -6
- package/dist/cjs/modules/useLocale/index.js +0 -54
- package/dist/cjs/modules/useLocale/index.js.map +0 -6
- package/dist/cjs/modules/useLocale/isLocaleRTL.js +0 -91
- package/dist/cjs/modules/useLocale/isLocaleRTL.js.map +0 -6
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js +0 -68
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/useMergeRefs/index.js +0 -36
- package/dist/cjs/modules/useMergeRefs/index.js.map +0 -6
- package/dist/cjs/modules/usePlatformMethods/index.js +0 -29
- package/dist/cjs/modules/usePlatformMethods/index.js.map +0 -6
- package/dist/cjs/modules/useStable/__tests__/index-test.js +0 -69
- package/dist/cjs/modules/useStable/__tests__/index-test.js.map +0 -6
- package/dist/cjs/modules/useStable/index.js +0 -34
- package/dist/cjs/modules/useStable/index.js.map +0 -6
- package/dist/cjs/styleTypes.js +0 -14
- package/dist/cjs/styleTypes.js.map +0 -6
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +0 -173
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js.map +0 -6
- package/dist/esm/StyleSheet/__tests__/compiler-test.js +0 -378
- package/dist/esm/StyleSheet/__tests__/compiler-test.js.map +0 -6
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +0 -98
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js.map +0 -6
- package/dist/esm/StyleSheet/__tests__/index-test.js +0 -328
- package/dist/esm/StyleSheet/__tests__/index-test.js.map +0 -6
- package/dist/esm/StyleSheet/__tests__/preprocess-test.js +0 -77
- package/dist/esm/StyleSheet/__tests__/preprocess-test.js.map +0 -6
- package/dist/esm/StyleSheet/__tests__/validate-test.js +0 -18
- package/dist/esm/StyleSheet/__tests__/validate-test.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js +0 -97
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/hash.js +0 -5
- package/dist/esm/StyleSheet/compiler/hash.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js +0 -14
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/index.js +0 -232
- package/dist/esm/StyleSheet/compiler/index.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/normalizeColor.js +0 -18
- package/dist/esm/StyleSheet/compiler/normalizeColor.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js +0 -22
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js.map +0 -6
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js +0 -11
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js.map +0 -6
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js +0 -20
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js.map +0 -6
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js +0 -78
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +0 -6
- package/dist/esm/StyleSheet/dom/index.js +0 -52
- package/dist/esm/StyleSheet/dom/index.js.map +0 -6
- package/dist/esm/StyleSheet/index.js +0 -36
- package/dist/esm/StyleSheet/index.js.map +0 -6
- package/dist/esm/StyleSheet/preprocess.js +0 -44
- package/dist/esm/StyleSheet/preprocess.js.map +0 -6
- package/dist/esm/StyleSheet/validate.js +0 -50
- package/dist/esm/StyleSheet/validate.js.map +0 -6
- package/dist/esm/TextAncestorContext.js +0 -6
- package/dist/esm/TextAncestorContext.js.map +0 -6
- package/dist/esm/colorProps.js +0 -16
- package/dist/esm/colorProps.js.map +0 -6
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +0 -27
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map +0 -6
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +0 -11
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js.map +0 -6
- package/dist/esm/modules/AccessibilityUtil/index.js +0 -12
- package/dist/esm/modules/AccessibilityUtil/index.js.map +0 -6
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js +0 -5
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js.map +0 -6
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js +0 -35
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +0 -6
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js +0 -26
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js.map +0 -6
- package/dist/esm/modules/AssetRegistry/index.js +0 -12
- package/dist/esm/modules/AssetRegistry/index.js.map +0 -6
- package/dist/esm/modules/ImageLoader/index.js +0 -85
- package/dist/esm/modules/ImageLoader/index.js.map +0 -6
- package/dist/esm/modules/InteractionManager.js +0 -148
- package/dist/esm/modules/InteractionManager.js.map +0 -6
- package/dist/esm/modules/Platform/__tests__/index-test.js +0 -27
- package/dist/esm/modules/Platform/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/Platform/index.js +0 -9
- package/dist/esm/modules/Platform/index.js.map +0 -6
- package/dist/esm/modules/TextInputState/index.js +0 -34
- package/dist/esm/modules/TextInputState/index.js.map +0 -6
- package/dist/esm/modules/UIManager/__tests__/index-test.js +0 -47
- package/dist/esm/modules/UIManager/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/UIManager/index.js +0 -41
- package/dist/esm/modules/UIManager/index.js.map +0 -6
- package/dist/esm/modules/canUseDOM.js +0 -5
- package/dist/esm/modules/canUseDOM.js.map +0 -6
- package/dist/esm/modules/createDOMProps/__tests__/index-test.js +0 -87
- package/dist/esm/modules/createDOMProps/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/createDOMProps/index.js +0 -111
- package/dist/esm/modules/createDOMProps/index.js.map +0 -6
- package/dist/esm/modules/createEventHandle/__tests__/index-test.js +0 -229
- package/dist/esm/modules/createEventHandle/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/createEventHandle/index.js +0 -49
- package/dist/esm/modules/createEventHandle/index.js.map +0 -6
- package/dist/esm/modules/dismissKeyboard/index.js +0 -8
- package/dist/esm/modules/dismissKeyboard/index.js.map +0 -6
- package/dist/esm/modules/forwardedProps/index.js +0 -129
- package/dist/esm/modules/forwardedProps/index.js.map +0 -6
- package/dist/esm/modules/getBoundingClientRect/index.js +0 -8
- package/dist/esm/modules/getBoundingClientRect/index.js.map +0 -6
- package/dist/esm/modules/invariant.js +0 -19
- package/dist/esm/modules/invariant.js.map +0 -6
- package/dist/esm/modules/isSelectionValid/index.js +0 -11
- package/dist/esm/modules/isSelectionValid/index.js.map +0 -6
- package/dist/esm/modules/isWebColor/index.js +0 -5
- package/dist/esm/modules/isWebColor/index.js.map +0 -6
- package/dist/esm/modules/mergeRefs/__tests__/index-test.js +0 -18
- package/dist/esm/modules/mergeRefs/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/mergeRefs/index.js +0 -25
- package/dist/esm/modules/mergeRefs/index.js.map +0 -6
- package/dist/esm/modules/modality/__tests__/index-test.js +0 -27
- package/dist/esm/modules/modality/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/modality/index.js +0 -67
- package/dist/esm/modules/modality/index.js.map +0 -6
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.js +0 -9
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/multiplyStyleLengthValue/index.js +0 -11
- package/dist/esm/modules/multiplyStyleLengthValue/index.js.map +0 -6
- package/dist/esm/modules/normalizeColor/index.js +0 -16
- package/dist/esm/modules/normalizeColor/index.js.map +0 -6
- package/dist/esm/modules/pick/index.js +0 -10
- package/dist/esm/modules/pick/index.js.map +0 -6
- package/dist/esm/modules/processColor/__tests__/index-test.js +0 -45
- package/dist/esm/modules/processColor/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/processColor/index.js +0 -12
- package/dist/esm/modules/processColor/index.js.map +0 -6
- package/dist/esm/modules/requestIdleCallback/index.js +0 -19
- package/dist/esm/modules/requestIdleCallback/index.js.map +0 -6
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js +0 -9
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js.map +0 -6
- package/dist/esm/modules/setValueForStyles/index.js +0 -14
- package/dist/esm/modules/setValueForStyles/index.js.map +0 -6
- package/dist/esm/modules/unitlessNumbers/index.js +0 -62
- package/dist/esm/modules/unitlessNumbers/index.js.map +0 -6
- package/dist/esm/modules/useElementLayout/index.js +0 -21
- package/dist/esm/modules/useElementLayout/index.js.map +0 -6
- package/dist/esm/modules/useEvent/__tests__/index-test.js +0 -275
- package/dist/esm/modules/useEvent/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/useEvent/index.js +0 -23
- package/dist/esm/modules/useEvent/index.js.map +0 -6
- package/dist/esm/modules/useHover/__tests__/index-test.js +0 -187
- package/dist/esm/modules/useHover/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/useHover/index.js +0 -59
- package/dist/esm/modules/useHover/index.js.map +0 -6
- package/dist/esm/modules/useLayoutEffect/index.js +0 -7
- package/dist/esm/modules/useLayoutEffect/index.js.map +0 -6
- package/dist/esm/modules/useLocale/index.js +0 -32
- package/dist/esm/modules/useLocale/index.js.map +0 -6
- package/dist/esm/modules/useLocale/isLocaleRTL.js +0 -75
- package/dist/esm/modules/useLocale/isLocaleRTL.js.map +0 -6
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.js +0 -53
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/useMergeRefs/index.js +0 -13
- package/dist/esm/modules/useMergeRefs/index.js.map +0 -6
- package/dist/esm/modules/usePlatformMethods/index.js +0 -18
- package/dist/esm/modules/usePlatformMethods/index.js.map +0 -6
- package/dist/esm/modules/useStable/__tests__/index-test.js +0 -53
- package/dist/esm/modules/useStable/__tests__/index-test.js.map +0 -6
- package/dist/esm/modules/useStable/index.js +0 -10
- package/dist/esm/modules/useStable/index.js.map +0 -6
- package/dist/esm/styleTypes.js +0 -1
- package/dist/esm/styleTypes.js.map +0 -6
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var StyleSheet_exports = {};
|
|
16
|
-
__export(StyleSheet_exports, {
|
|
17
|
-
StyleSheet: () => StyleSheet,
|
|
18
|
-
flatten: () => flatten
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(StyleSheet_exports);
|
|
21
|
-
const absoluteFillObject = {
|
|
22
|
-
position: "absolute",
|
|
23
|
-
left: 0,
|
|
24
|
-
right: 0,
|
|
25
|
-
top: 0,
|
|
26
|
-
bottom: 0
|
|
27
|
-
}, absoluteFill = absoluteFillObject;
|
|
28
|
-
function create(styles) {
|
|
29
|
-
return styles;
|
|
30
|
-
}
|
|
31
|
-
function compose(style1, style2) {
|
|
32
|
-
return flatten(style1, style2);
|
|
33
|
-
}
|
|
34
|
-
function flatten(...styles) {
|
|
35
|
-
return styles.flat().flat().flat().flat().reduce((acc, cur) => (cur && Object.assign(acc, cur), acc), {});
|
|
36
|
-
}
|
|
37
|
-
function getSheet() {
|
|
38
|
-
return {
|
|
39
|
-
id: "",
|
|
40
|
-
textContent: sheet.getTextContent()
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function StyleSheet(styles, options) {
|
|
44
|
-
}
|
|
45
|
-
StyleSheet.absoluteFill = absoluteFill;
|
|
46
|
-
StyleSheet.absoluteFillObject = absoluteFillObject;
|
|
47
|
-
StyleSheet.create = create;
|
|
48
|
-
StyleSheet.compose = compose;
|
|
49
|
-
StyleSheet.flatten = flatten;
|
|
50
|
-
StyleSheet.getSheet = getSheet;
|
|
51
|
-
StyleSheet.hairlineWidth = 1;
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/StyleSheet/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBA,MAAM,qBAAqB;AAAA,EACzB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,EACL,QAAQ;AACV,GAEM,eAAe;AAKrB,SAAS,OAAO,QAAQ;AACtB,SAAO;AACT;AAKA,SAAS,QAAQ,QAAa,QAAkB;AAC9C,SAAO,QAAQ,QAAQ,MAAM;AAC/B;AAKO,SAAS,WAAW,QAAqC;AAC9D,SAAO,OACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,CAAC,KAAK,SACR,OACF,OAAO,OAAO,KAAK,GAAG,GAEjB,MACN,CAAC,CAAC;AACT;AAKA,SAAS,WAAgD;AACvD,SAAO;AAAA,IACL,IAAI;AAAA,IACJ,aAAa,MAAM,eAAe;AAAA,EACpC;AACF;AAQO,SAAS,WAAW,QAAa,SAA+B;AAAC;AAExE,WAAW,eAAe;AAC1B,WAAW,qBAAqB;AAChC,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,WAAW;AAGtB,WAAW,gBAAgB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var preprocess_exports = {};
|
|
16
|
-
__export(preprocess_exports, {
|
|
17
|
-
createBoxShadowValue: () => createBoxShadowValue,
|
|
18
|
-
createTextShadowValue: () => createTextShadowValue,
|
|
19
|
-
preprocess: () => preprocess,
|
|
20
|
-
processStyle: () => processStyle
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(preprocess_exports);
|
|
23
|
-
var import_normalizeColor = require("./compiler/normalizeColor"), import_normalizeValueWithProperty = require("./compiler/normalizeValueWithProperty");
|
|
24
|
-
const emptyObject = {}, defaultOffset = { height: 0, width: 0 }, createBoxShadowValue = (style) => {
|
|
25
|
-
const { shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style, { height, width } = shadowOffset || defaultOffset, offsetX = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(width), offsetY = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(height), blurRadius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(shadowRadius || 0), color = (0, import_normalizeColor.normalizeColor)(shadowColor || "black", shadowOpacity);
|
|
26
|
-
if (color != null && offsetX != null && offsetY != null && blurRadius != null)
|
|
27
|
-
return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
|
|
28
|
-
}, createTextShadowValue = (style) => {
|
|
29
|
-
const { textShadowColor, textShadowOffset, textShadowRadius } = style, { height, width } = textShadowOffset || defaultOffset, radius = textShadowRadius || 0, offsetX = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(width), offsetY = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(height), blurRadius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(radius), color = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(textShadowColor, "textShadowColor");
|
|
30
|
-
if (color && (height !== 0 || width !== 0 || radius !== 0) && offsetX != null && offsetY != null && blurRadius != null)
|
|
31
|
-
return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
|
|
32
|
-
}, preprocess = (originalStyle) => {
|
|
33
|
-
const style = originalStyle || emptyObject, nextStyle = {};
|
|
34
|
-
for (const originalProp in style) {
|
|
35
|
-
const originalValue = style[originalProp];
|
|
36
|
-
let prop = originalProp, value = originalValue;
|
|
37
|
-
if (!(!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null)) {
|
|
38
|
-
if (prop === "shadowColor" || prop === "shadowOffset" || prop === "shadowOpacity" || prop === "shadowRadius") {
|
|
39
|
-
const boxShadowValue = createBoxShadowValue(style);
|
|
40
|
-
if (boxShadowValue != null && nextStyle.boxShadow == null) {
|
|
41
|
-
const { boxShadow } = style;
|
|
42
|
-
prop = "boxShadow", value = boxShadow ? `${boxShadow}, ${boxShadowValue}` : boxShadowValue;
|
|
43
|
-
} else
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if (prop === "textShadowColor" || prop === "textShadowOffset" || prop === "textShadowRadius") {
|
|
47
|
-
const textShadowValue = createTextShadowValue(style);
|
|
48
|
-
if (textShadowValue != null && nextStyle.textShadow == null) {
|
|
49
|
-
const { textShadow } = style;
|
|
50
|
-
prop = "textShadow", value = textShadow ? `${textShadow}, ${textShadowValue}` : textShadowValue;
|
|
51
|
-
} else
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
nextStyle[prop] = value;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return nextStyle;
|
|
58
|
-
}, processStyle = preprocess;
|
|
59
|
-
//# sourceMappingURL=preprocess.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/StyleSheet/preprocess.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,4BAA+B,sCAC/B,oCAA2C;AAE3C,MAAM,cAAc,CAAC,GAMf,gBAAgB,EAAE,QAAQ,GAAG,OAAO,EAAE,GAE/B,uBAAuB,CAAC,UAAiC;AACpE,QAAM,EAAE,aAAa,cAAc,eAAe,aAAa,IAAI,OAC7D,EAAE,QAAQ,MAAM,IAAI,gBAAgB,eACpC,cAAU,8DAA2B,KAAK,GAC1C,cAAU,8DAA2B,MAAM,GAC3C,iBAAa,8DAA2B,gBAAgB,CAAC,GACzD,YAAQ,sCAAe,eAAe,SAAS,aAAa;AAClE,MAAI,SAAS,QAAQ,WAAW,QAAQ,WAAW,QAAQ,cAAc;AACvE,WAAO,GAAG,OAAO,IAAI,OAAO,IAAI,UAAU,IAAI,KAAK;AAEvD,GAEa,wBAAwB,CAAC,UAAiC;AACrE,QAAM,EAAE,iBAAiB,kBAAkB,iBAAiB,IAAI,OAC1D,EAAE,QAAQ,MAAM,IAAI,oBAAoB,eACxC,SAAS,oBAAoB,GAC7B,cAAU,8DAA2B,KAAK,GAC1C,cAAU,8DAA2B,MAAM,GAC3C,iBAAa,8DAA2B,MAAM,GAC9C,YAAQ,8DAA2B,iBAAiB,iBAAiB;AAE3E,MACE,UACC,WAAW,KAAK,UAAU,KAAK,WAAW,MAC3C,WAAW,QACX,WAAW,QACX,cAAc;AAEd,WAAO,GAAG,OAAO,IAAI,OAAO,IAAI,UAAU,IAAI,KAAK;AAEvD,GAKa,aAAa,CAKxB,kBACM;AACN,QAAM,QAAQ,iBAAiB,aACzB,YAAY,CAAC;AAEnB,aAAW,gBAAgB,OAAO;AAChC,UAAM,gBAAgB,MAAM,YAAY;AACxC,QAAI,OAAO,cACP,QAAQ;AAEZ,QACE,GAAC,OAAO,UAAU,eAAe,KAAK,OAAO,YAAY,KACzD,iBAAiB,OAMnB;AAAA,UACE,SAAS,iBACT,SAAS,kBACT,SAAS,mBACT,SAAS,gBACT;AACA,cAAM,iBAAiB,qBAAqB,KAAK;AACjD,YAAI,kBAAkB,QAAQ,UAAU,aAAa,MAAM;AACzD,gBAAM,EAAE,UAAU,IAAI;AACtB,iBAAO,aACP,QAAQ,YAAY,GAAG,SAAS,KAAK,cAAc,KAAK;AAAA,QAC1D;AACE;AAAA,MAEJ;AAGA,UACE,SAAS,qBACT,SAAS,sBACT,SAAS,oBACT;AACA,cAAM,kBAAkB,sBAAsB,KAAK;AACnD,YAAI,mBAAmB,QAAQ,UAAU,cAAc,MAAM;AAC3D,gBAAM,EAAE,WAAW,IAAI;AACvB,iBAAO,cACP,QAAQ,aAAa,GAAG,UAAU,KAAK,eAAe,KAAK;AAAA,QAC7D;AACE;AAAA,MAEJ;AAEA,gBAAU,IAAI,IAAI;AAAA;AAAA,EACpB;AAGA,SAAO;AACT,GAEa,eAAe;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var validate_exports = {};
|
|
16
|
-
__export(validate_exports, {
|
|
17
|
-
validate: () => validate
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(validate_exports);
|
|
20
|
-
const invalidShortforms = {
|
|
21
|
-
background: !0,
|
|
22
|
-
borderBottom: !0,
|
|
23
|
-
borderLeft: !0,
|
|
24
|
-
borderRight: !0,
|
|
25
|
-
borderTop: !0,
|
|
26
|
-
font: !0,
|
|
27
|
-
grid: !0,
|
|
28
|
-
outline: !0,
|
|
29
|
-
textDecoration: !0
|
|
30
|
-
}, invalidMultiValueShortforms = {
|
|
31
|
-
flex: !0,
|
|
32
|
-
margin: !0,
|
|
33
|
-
padding: !0,
|
|
34
|
-
borderColor: !0,
|
|
35
|
-
borderRadius: !0,
|
|
36
|
-
borderStyle: !0,
|
|
37
|
-
borderWidth: !0,
|
|
38
|
-
marginHorizontal: !0,
|
|
39
|
-
marginVertical: !0,
|
|
40
|
-
paddingHorizontal: !0,
|
|
41
|
-
paddingVertical: !0,
|
|
42
|
-
overflow: !0,
|
|
43
|
-
overscrollBehavior: !0,
|
|
44
|
-
backgroundPosition: !0
|
|
45
|
-
};
|
|
46
|
-
function error(message) {
|
|
47
|
-
console.error(message);
|
|
48
|
-
}
|
|
49
|
-
function validate(obj) {
|
|
50
|
-
for (const k in obj) {
|
|
51
|
-
const prop = k.trim(), value = obj[prop];
|
|
52
|
-
let isInvalid = !1;
|
|
53
|
-
if (value !== null) {
|
|
54
|
-
if (typeof value == "string" && value.indexOf("!important") > -1)
|
|
55
|
-
error(
|
|
56
|
-
`Invalid style declaration "${prop}:${value}". Values cannot include "!important"`
|
|
57
|
-
), isInvalid = !0;
|
|
58
|
-
else {
|
|
59
|
-
let suggestion = "";
|
|
60
|
-
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}`);
|
|
61
|
-
}
|
|
62
|
-
isInvalid && delete obj[k];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=validate.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/StyleSheet/validate.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,oBAAoB;AAAA,EACxB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,gBAAgB;AAClB,GAEM,8BAA8B;AAAA,EAClC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,oBAAoB;AAAA,EACpB,oBAAoB;AACtB;AAEA,SAAS,MAAM,SAAS;AACtB,UAAQ,MAAM,OAAO;AACvB;AAEO,SAAS,SAAS,KAAa;AACpC,aAAW,KAAK,KAAK;AACnB,UAAM,OAAO,EAAE,KAAK,GACd,QAAQ,IAAI,IAAI;AACtB,QAAI,YAAY;AAEhB,QAAI,UAAU,MAId;AAAA,UAAI,OAAO,SAAU,YAAY,MAAM,QAAQ,YAAY,IAAI;AAC7D;AAAA,UACE,8BAA8B,IAAI,IAAI,KAAK;AAAA,QAC7C,GACA,YAAY;AAAA,WACP;AACL,YAAI,aAAa;AACjB,QAAI,SAAS,eAAe,SAAS,mBACnC,aAAa,sCAGb,YAAY,MACH,SAAS,eAClB,aAAa,oCACb,YAAY,MACH,SAAS,mBAClB,aAAa,qCACb,YAAY,MACH,kBAAkB,IAAI,KAC/B,aAAa,oCACb,YAAY,MACH,4BAA4B,IAAI,GAOvC,eAAe,MACjB,MAAM,8BAA8B,IAAI,MAAM,UAAU,EAAE;AAAA,MAE9D;AAEA,MAAI,aACF,OAAO,IAAI,CAAC;AAAA;AAAA,EAEhB;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var TextAncestorContext_exports = {};
|
|
16
|
-
__export(TextAncestorContext_exports, {
|
|
17
|
-
TextAncestorContext: () => TextAncestorContext
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(TextAncestorContext_exports);
|
|
20
|
-
var import_react = require("react");
|
|
21
|
-
const TextAncestorContext = (0, import_react.createContext)(!1);
|
|
22
|
-
//# sourceMappingURL=TextAncestorContext.js.map
|
package/dist/cjs/colorProps.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var colorProps_exports = {};
|
|
16
|
-
__export(colorProps_exports, {
|
|
17
|
-
colorProps: () => colorProps
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(colorProps_exports);
|
|
20
|
-
const colorProps = {
|
|
21
|
-
backgroundColor: !0,
|
|
22
|
-
borderColor: !0,
|
|
23
|
-
borderTopColor: !0,
|
|
24
|
-
borderRightColor: !0,
|
|
25
|
-
borderBottomColor: !0,
|
|
26
|
-
borderLeftColor: !0,
|
|
27
|
-
color: !0,
|
|
28
|
-
shadowColor: !0,
|
|
29
|
-
textDecorationColor: !0,
|
|
30
|
-
textShadowColor: !0
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=colorProps.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/colorProps.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAa;AAAA,EACxB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,OAAO;AAAA,EACP,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,iBAAiB;AACnB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var index_exports = {};
|
|
16
|
-
__export(index_exports, {
|
|
17
|
-
AccessibilityUtil: () => import_AccessibilityUtil.AccessibilityUtil,
|
|
18
|
-
ImageLoader: () => import_ImageLoader.ImageLoader,
|
|
19
|
-
InteractionManager: () => import_InteractionManager.InteractionManager,
|
|
20
|
-
Platform: () => import_Platform.Platform,
|
|
21
|
-
StyleSheet: () => import_StyleSheet2.StyleSheet,
|
|
22
|
-
TextAncestorContext: () => import_TextAncestorContext.TextAncestorContext,
|
|
23
|
-
TextInputState: () => import_TextInputState.TextInputState,
|
|
24
|
-
UIManager: () => import_UIManager.UIManager,
|
|
25
|
-
canUseDOM: () => import_canUseDOM.canUseDOM,
|
|
26
|
-
colorProps: () => import_colorProps.colorProps,
|
|
27
|
-
createDOMProps: () => import_createDOMProps.createDOMProps,
|
|
28
|
-
createEventHandle: () => import_createEventHandle.createEventHandle,
|
|
29
|
-
createReactDOMStyle: () => import_createReactDOMStyle.createReactDOMStyle,
|
|
30
|
-
createSheet: () => import_dom.createSheet,
|
|
31
|
-
dismissKeyboard: () => import_dismissKeyboard.dismissKeyboard,
|
|
32
|
-
flattenStyle: () => import_StyleSheet.flatten,
|
|
33
|
-
getBoundingClientRect: () => import_getBoundingClientRect.getBoundingClientRect,
|
|
34
|
-
isSelectionValid: () => import_isSelectionValid.isSelectionValid,
|
|
35
|
-
isWebColor: () => import_isWebColor.isWebColor,
|
|
36
|
-
multiplyStyleLengthValue: () => import_multiplyStyleLengthValue.multiplyStyleLengthValue,
|
|
37
|
-
normalizeColor: () => import_normalizeColor.normalizeColor,
|
|
38
|
-
pick: () => import_pick.pick,
|
|
39
|
-
processColor: () => import_processColor.processColor,
|
|
40
|
-
requestIdleCallback: () => import_requestIdleCallback.requestIdleCallback,
|
|
41
|
-
setValueForStyles: () => import_setValueForStyles.setValueForStyles,
|
|
42
|
-
stylesFromProps: () => import_createDOMProps2.stylesFromProps,
|
|
43
|
-
unitlessNumbers: () => import_unitlessNumbers.unitlessNumbers,
|
|
44
|
-
useElementLayout: () => import_useElementLayout.useElementLayout,
|
|
45
|
-
useEvent: () => import_useEvent.useEvent,
|
|
46
|
-
useHover: () => import_useHover.useHover,
|
|
47
|
-
useLayoutEffect: () => import_useLayoutEffect.useLayoutEffectImpl,
|
|
48
|
-
useMergeRefs: () => import_useMergeRefs.useMergeRefs,
|
|
49
|
-
usePlatformMethods: () => import_usePlatformMethods.usePlatformMethods,
|
|
50
|
-
useStable: () => import_useStable.useStable
|
|
51
|
-
});
|
|
52
|
-
module.exports = __toCommonJS(index_exports);
|
|
53
|
-
__reExport(index_exports, require("./modules/AssetRegistry/index"), module.exports);
|
|
54
|
-
__reExport(index_exports, require("./modules/forwardedProps/index"), module.exports);
|
|
55
|
-
__reExport(index_exports, require("./modules/mergeRefs/index"), module.exports);
|
|
56
|
-
__reExport(index_exports, require("./modules/modality/index"), module.exports);
|
|
57
|
-
__reExport(index_exports, require("./modules/useLocale/index"), module.exports);
|
|
58
|
-
var import_usePlatformMethods = require("./modules/usePlatformMethods/index"), import_TextAncestorContext = require("./TextAncestorContext");
|
|
59
|
-
__reExport(index_exports, require("@tamagui/react-native-use-pressable"), module.exports);
|
|
60
|
-
__reExport(index_exports, require("@tamagui/react-native-use-responder-events"), module.exports);
|
|
61
|
-
var import_colorProps = require("./colorProps"), import_AccessibilityUtil = require("./modules/AccessibilityUtil/index"), import_canUseDOM = require("./modules/canUseDOM"), import_createDOMProps = require("./modules/createDOMProps/index"), import_createDOMProps2 = require("./modules/createDOMProps/index"), import_createReactDOMStyle = require("./StyleSheet/compiler/createReactDOMStyle"), import_createEventHandle = require("./modules/createEventHandle/index"), import_dismissKeyboard = require("./modules/dismissKeyboard/index"), import_getBoundingClientRect = require("./modules/getBoundingClientRect/index"), import_ImageLoader = require("./modules/ImageLoader/index"), import_isSelectionValid = require("./modules/isSelectionValid/index"), import_isWebColor = require("./modules/isWebColor/index"), import_multiplyStyleLengthValue = require("./modules/multiplyStyleLengthValue/index"), import_normalizeColor = require("./modules/normalizeColor/index"), import_pick = require("./modules/pick/index"), import_Platform = require("./modules/Platform/index");
|
|
62
|
-
__reExport(index_exports, require("./StyleSheet/preprocess"), module.exports);
|
|
63
|
-
var import_StyleSheet = require("./StyleSheet/index"), import_dom = require("./StyleSheet/dom/index"), import_requestIdleCallback = require("./modules/requestIdleCallback/index"), import_setValueForStyles = require("./modules/setValueForStyles/index"), import_TextInputState = require("./modules/TextInputState/index"), import_UIManager = require("./modules/UIManager/index"), import_unitlessNumbers = require("./modules/unitlessNumbers/index"), import_useElementLayout = require("./modules/useElementLayout/index"), import_useEvent = require("./modules/useEvent/index"), import_useHover = require("./modules/useHover/index"), import_useLayoutEffect = require("./modules/useLayoutEffect/index"), import_useStable = require("./modules/useStable/index"), import_InteractionManager = require("./modules/InteractionManager");
|
|
64
|
-
__reExport(index_exports, require("./modules/invariant"), module.exports);
|
|
65
|
-
var import_processColor = require("./modules/processColor/index"), import_StyleSheet2 = require("./StyleSheet/index"), import_useMergeRefs = require("./modules/useMergeRefs/index");
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,0BAAc,0CAVd;AAWA,0BAAc,2CAXd;AAYA,0BAAc,sCAZd;AAaA,0BAAc,qCAbd;AAcA,0BAAc,sCAdd;AAeA,gCAAmC,+CACnC,6BAAoC;AAEpC,0BAAc,gDAlBd;AAmBA,0BAAc,uDAnBd;AAqBA,wBAA2B,yBAC3B,2BAAkC,8CAClC,mBAA0B,gCAC1B,wBAA+B,2CAC/BA,yBAAgC,2CAChC,6BAAoC,sDACpC,2BAAkC,8CAClC,yBAAgC,4CAChC,+BAAsC,kDACtC,qBAA4B,wCAC5B,0BAAiC,6CACjC,oBAA2B,uCAC3B,kCAAyC,qDACzC,wBAA+B,2CAC/B,cAAqB,iCACrB,kBAAyB;AACzB,0BAAc,oCArCd;AAsCA,wBAAwC,+BACxC,aAA4B,mCAC5B,6BAAoC,gDACpC,2BAAkC,8CAClC,wBAA+B,2CAC/B,mBAA0B,sCAC1B,yBAAgC,4CAChC,0BAAiC,6CACjC,kBAAyB,qCACzB,kBAAyB,qCACzB,yBAAuD,4CACvD,mBAA0B,sCAC1B,4BAAmC;AACnC,0BAAc,gCAnDd;AAoDA,0BAA6B,yCAC7BC,qBAA2B,+BAC3B,sBAA6B;",
|
|
5
|
-
"names": ["import_createDOMProps", "import_StyleSheet"]
|
|
6
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
14
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
15
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
16
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
18
|
-
mod
|
|
19
|
-
));
|
|
20
|
-
var import_propsToAccessibilityComponent = __toESM(require("../propsToAccessibilityComponent"), 1);
|
|
21
|
-
describe("modules/AccessibilityUtil/propsToAccessibilityComponent", () => {
|
|
22
|
-
test('when missing accessibility props"', () => {
|
|
23
|
-
expect((0, import_propsToAccessibilityComponent.default)({})).toBeUndefined();
|
|
24
|
-
}), test('when "accessibilityRole" is "button"', () => {
|
|
25
|
-
expect((0, import_propsToAccessibilityComponent.default)({ accessibilityRole: "button" })).toBeUndefined();
|
|
26
|
-
}), test('when "accessibilityRole" is "heading"', () => {
|
|
27
|
-
expect((0, import_propsToAccessibilityComponent.default)({ accessibilityRole: "heading" })).toEqual("h1");
|
|
28
|
-
}), test('when "accessibilityRole" is "heading" and "aria-level" is set', () => {
|
|
29
|
-
expect(
|
|
30
|
-
(0, import_propsToAccessibilityComponent.default)({
|
|
31
|
-
accessibilityRole: "heading",
|
|
32
|
-
"aria-level": 3
|
|
33
|
-
})
|
|
34
|
-
).toEqual("h3");
|
|
35
|
-
}), test('when "accessibilityRole" is "heading" and "accessibilityLevel" is set', () => {
|
|
36
|
-
expect(
|
|
37
|
-
(0, import_propsToAccessibilityComponent.default)({
|
|
38
|
-
accessibilityRole: "heading",
|
|
39
|
-
accessibilityLevel: 3
|
|
40
|
-
})
|
|
41
|
-
).toEqual("h3");
|
|
42
|
-
}), test('when "accessibilityRole" is "label"', () => {
|
|
43
|
-
expect((0, import_propsToAccessibilityComponent.default)({ accessibilityRole: "label" })).toEqual("label");
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=propsToAccessibilityComponent-test.js.map
|
package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../src/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAOA,2CAA0C;AAE1C,SAAS,2DAA2D,MAAM;AACxE,OAAK,qCAAqC,MAAM;AAC9C,eAAO,qCAAAA,SAA8B,CAAC,CAAC,CAAC,EAAE,cAAc;AAAA,EAC1D,CAAC,GAED,KAAK,wCAAwC,MAAM;AACjD,eAAO,qCAAAA,SAA8B,EAAE,mBAAmB,SAAS,CAAC,CAAC,EAAE,cAAc;AAAA,EACvF,CAAC,GAED,KAAK,yCAAyC,MAAM;AAClD,eAAO,qCAAAA,SAA8B,EAAE,mBAAmB,UAAU,CAAC,CAAC,EAAE,QAAQ,IAAI;AAAA,EACtF,CAAC,GAED,KAAK,iEAAiE,MAAM;AAC1E;AAAA,UACE,qCAAAA,SAA8B;AAAA,QAC5B,mBAAmB;AAAA,QACnB,cAAc;AAAA,MAChB,CAAC;AAAA,IACH,EAAE,QAAQ,IAAI;AAAA,EAChB,CAAC,GAED,KAAK,yEAAyE,MAAM;AAClF;AAAA,UACE,qCAAAA,SAA8B;AAAA,QAC5B,mBAAmB;AAAA,QACnB,oBAAoB;AAAA,MACtB,CAAC;AAAA,IACH,EAAE,QAAQ,IAAI;AAAA,EAChB,CAAC,GAED,KAAK,uCAAuC,MAAM;AAChD,eAAO,qCAAAA,SAA8B,EAAE,mBAAmB,QAAQ,CAAC,CAAC,EAAE,QAAQ,OAAO;AAAA,EACvF,CAAC;AACH,CAAC;",
|
|
5
|
-
"names": ["propsToAccessibilityComponent"]
|
|
6
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
14
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
15
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
16
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
18
|
-
mod
|
|
19
|
-
));
|
|
20
|
-
var import_propsToAriaRole = __toESM(require("../propsToAriaRole"), 1);
|
|
21
|
-
describe("modules/AccessibilityUtil/propsToAriaRole", () => {
|
|
22
|
-
test("when missing accessibility props", () => {
|
|
23
|
-
expect((0, import_propsToAriaRole.default)({})).toBeUndefined();
|
|
24
|
-
}), test('when "accessibilityRole" is defined', () => {
|
|
25
|
-
expect((0, import_propsToAriaRole.default)({ accessibilityRole: "banner" })).toEqual("banner");
|
|
26
|
-
}), test('when "accessibilityRole" is a native-only value', () => {
|
|
27
|
-
expect((0, import_propsToAriaRole.default)({ accessibilityRole: "none" })).toEqual("presentation"), expect((0, import_propsToAriaRole.default)({ accessibilityRole: "imagebutton" })).toEqual(void 0), expect((0, import_propsToAriaRole.default)({ accessibilityRole: "label" })).toEqual(void 0);
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=propsToAriaRole-test.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../src/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAOA,6BAA4B;AAE5B,SAAS,6CAA6C,MAAM;AAC1D,OAAK,oCAAoC,MAAM;AAC7C,eAAO,uBAAAA,SAAgB,CAAC,CAAC,CAAC,EAAE,cAAc;AAAA,EAC5C,CAAC,GAED,KAAK,uCAAuC,MAAM;AAChD,eAAO,uBAAAA,SAAgB,EAAE,mBAAmB,SAAS,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC3E,CAAC,GAED,KAAK,mDAAmD,MAAM;AAC5D,eAAO,uBAAAA,SAAgB,EAAE,mBAAmB,OAAO,CAAC,CAAC,EAAE,QAAQ,cAAc,GAC7E,WAAO,uBAAAA,SAAgB,EAAE,mBAAmB,cAAc,CAAC,CAAC,EAAE,QAAQ,MAAS,GAE/E,WAAO,uBAAAA,SAAgB,EAAE,mBAAmB,QAAQ,CAAC,CAAC,EAAE,QAAQ,MAAS;AAAA,EAC3E,CAAC;AACH,CAAC;",
|
|
5
|
-
"names": ["propsToAriaRole"]
|
|
6
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var AccessibilityUtil_exports = {};
|
|
16
|
-
__export(AccessibilityUtil_exports, {
|
|
17
|
-
AccessibilityUtil: () => AccessibilityUtil
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(AccessibilityUtil_exports);
|
|
20
|
-
var import_isDisabled = require("./isDisabled"), import_propsToAccessibilityComponent = require("./propsToAccessibilityComponent"), import_propsToAriaRole = require("./propsToAriaRole");
|
|
21
|
-
const AccessibilityUtil = {
|
|
22
|
-
isDisabled: import_isDisabled.isDisabled,
|
|
23
|
-
propsToAccessibilityComponent: import_propsToAccessibilityComponent.propsToAccessibilityComponent,
|
|
24
|
-
propsToAriaRole: import_propsToAriaRole.propsToAriaRole
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var isDisabled_exports = {};
|
|
16
|
-
__export(isDisabled_exports, {
|
|
17
|
-
isDisabled: () => isDisabled
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(isDisabled_exports);
|
|
20
|
-
const isDisabled = (props) => props.disabled || Array.isArray(props.accessibilityStates) && props.accessibilityStates.indexOf("disabled") > -1;
|
|
21
|
-
//# sourceMappingURL=isDisabled.js.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var propsToAccessibilityComponent_exports = {};
|
|
16
|
-
__export(propsToAccessibilityComponent_exports, {
|
|
17
|
-
propsToAccessibilityComponent: () => propsToAccessibilityComponent
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(propsToAccessibilityComponent_exports);
|
|
20
|
-
var import_propsToAriaRole = require("./propsToAriaRole");
|
|
21
|
-
const roleComponents = {
|
|
22
|
-
article: "article",
|
|
23
|
-
banner: "header",
|
|
24
|
-
blockquote: "blockquote",
|
|
25
|
-
code: "code",
|
|
26
|
-
complementary: "aside",
|
|
27
|
-
contentinfo: "footer",
|
|
28
|
-
deletion: "del",
|
|
29
|
-
emphasis: "em",
|
|
30
|
-
figure: "figure",
|
|
31
|
-
insertion: "ins",
|
|
32
|
-
form: "form",
|
|
33
|
-
list: "ul",
|
|
34
|
-
listitem: "li",
|
|
35
|
-
main: "main",
|
|
36
|
-
navigation: "nav",
|
|
37
|
-
region: "section",
|
|
38
|
-
strong: "strong"
|
|
39
|
-
}, emptyObject = {}, propsToAccessibilityComponent = (props = emptyObject) => {
|
|
40
|
-
if (props.accessibilityRole === "label")
|
|
41
|
-
return "label";
|
|
42
|
-
const role = (0, import_propsToAriaRole.propsToAriaRole)(props);
|
|
43
|
-
if (role) {
|
|
44
|
-
if (role === "heading") {
|
|
45
|
-
const level = props.accessibilityLevel || props["aria-level"];
|
|
46
|
-
return level != null ? `h${level}` : "h1";
|
|
47
|
-
}
|
|
48
|
-
return roleComponents[role];
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=propsToAccessibilityComponent.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,6BAAgC;AAEhC,MAAM,iBAAiB;AAAA,EACrB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,eAAe;AAAA,EACf,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,QAAQ;AACV,GAEM,cAAc,CAAC,GAER,gCAAgC,CAC3C,QAAgB,gBACE;AAElB,MAAI,MAAM,sBAAsB;AAC9B,WAAO;AAGT,QAAM,WAAO,wCAAgB,KAAK;AAClC,MAAI,MAAM;AACR,QAAI,SAAS,WAAW;AACtB,YAAM,QAAQ,MAAM,sBAAsB,MAAM,YAAY;AAC5D,aAAI,SAAS,OACJ,IAAI,KAAK,KAEX;AAAA,IACT;AACA,WAAO,eAAe,IAAI;AAAA,EAC5B;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var propsToAriaRole_exports = {};
|
|
16
|
-
__export(propsToAriaRole_exports, {
|
|
17
|
-
propsToAriaRole: () => propsToAriaRole
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(propsToAriaRole_exports);
|
|
20
|
-
const accessibilityRoleToWebRole = {
|
|
21
|
-
adjustable: "slider",
|
|
22
|
-
button: "button",
|
|
23
|
-
header: "heading",
|
|
24
|
-
image: "img",
|
|
25
|
-
imagebutton: null,
|
|
26
|
-
keyboardkey: null,
|
|
27
|
-
label: null,
|
|
28
|
-
link: "link",
|
|
29
|
-
none: "presentation",
|
|
30
|
-
search: "search",
|
|
31
|
-
summary: "region",
|
|
32
|
-
text: null
|
|
33
|
-
}, propsToAriaRole = ({
|
|
34
|
-
accessibilityRole
|
|
35
|
-
}) => {
|
|
36
|
-
if (accessibilityRole) {
|
|
37
|
-
const inferredRole = accessibilityRoleToWebRole[accessibilityRole];
|
|
38
|
-
if (inferredRole !== null)
|
|
39
|
-
return inferredRole || accessibilityRole;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=propsToAriaRole.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/modules/AccessibilityUtil/propsToAriaRole.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,6BAA6B;AAAA,EACjC,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AACR,GAEa,kBAAkB,CAAC;AAAA,EAC9B;AACF,MAEqB;AACnB,MAAI,mBAAmB;AACrB,UAAM,eAAe,2BAA2B,iBAAiB;AACjE,QAAI,iBAAiB;AAEnB,aAAO,gBAAgB;AAAA,EAE3B;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|