@tamagui/react-native-web-internals 1.135.4-1761748186554 → 1.135.4
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 +1 -1
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +1 -1
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js +270 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.native.js +417 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.cjs +1 -1
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +1 -1
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js +117 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.cjs +1 -1
- package/dist/cjs/StyleSheet/__tests__/index-test.js +1 -1
- package/dist/cjs/StyleSheet/__tests__/index-test.native.js +459 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.native.js +110 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.native.js +39 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +24 -12
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js +17 -8
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js.map +2 -2
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.native.js +142 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/hash.native.js +22 -0
- package/dist/cjs/StyleSheet/compiler/hash.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +3 -2
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js +2 -1
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js.map +1 -1
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.native.js +32 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/index.cjs +22 -11
- package/dist/cjs/StyleSheet/compiler/index.js +15 -7
- package/dist/cjs/StyleSheet/compiler/index.js.map +2 -2
- package/dist/cjs/StyleSheet/compiler/index.native.js +327 -0
- package/dist/cjs/StyleSheet/compiler/index.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +20 -8
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js +14 -5
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js.map +2 -2
- package/dist/cjs/StyleSheet/compiler/normalizeColor.native.js +41 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +18 -7
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js +13 -5
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js.map +2 -2
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.native.js +45 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +24 -12
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js +14 -5
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js.map +2 -2
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.native.js +37 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.native.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +18 -7
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js +13 -5
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js.map +2 -2
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.native.js +44 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.native.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +1 -1
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js +1 -1
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +1 -1
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.native.js +111 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.native.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/index.cjs +22 -11
- package/dist/cjs/StyleSheet/dom/index.js +16 -8
- package/dist/cjs/StyleSheet/dom/index.js.map +2 -2
- package/dist/cjs/StyleSheet/dom/index.native.js +76 -0
- package/dist/cjs/StyleSheet/dom/index.native.js.map +6 -0
- package/dist/cjs/StyleSheet/index.cjs +1 -1
- package/dist/cjs/StyleSheet/index.js +1 -1
- package/dist/cjs/StyleSheet/index.js.map +1 -1
- package/dist/cjs/StyleSheet/index.native.js +61 -0
- package/dist/cjs/StyleSheet/index.native.js.map +6 -0
- package/dist/cjs/StyleSheet/preprocess.cjs +25 -14
- package/dist/cjs/StyleSheet/preprocess.js +13 -5
- package/dist/cjs/StyleSheet/preprocess.js.map +2 -2
- package/dist/cjs/StyleSheet/preprocess.native.js +76 -0
- package/dist/cjs/StyleSheet/preprocess.native.js.map +6 -0
- package/dist/cjs/StyleSheet/validate.native.js +68 -0
- package/dist/cjs/StyleSheet/validate.native.js.map +6 -0
- package/dist/cjs/TextAncestorContext.cjs +4 -2
- package/dist/cjs/TextAncestorContext.js +3 -1
- package/dist/cjs/TextAncestorContext.js.map +1 -1
- package/dist/cjs/TextAncestorContext.native.js +27 -0
- package/dist/cjs/TextAncestorContext.native.js.map +6 -0
- package/dist/cjs/colorProps.native.js +37 -0
- package/dist/cjs/colorProps.native.js.map +6 -0
- package/dist/cjs/index.cjs +64 -53
- package/dist/cjs/index.js +37 -30
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +120 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +1 -1
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +1 -1
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js +49 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +1 -1
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +1 -1
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js +39 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/index.cjs +25 -12
- package/dist/cjs/modules/AccessibilityUtil/index.js +17 -7
- package/dist/cjs/modules/AccessibilityUtil/index.js.map +2 -2
- package/dist/cjs/modules/AccessibilityUtil/index.native.js +39 -0
- package/dist/cjs/modules/AccessibilityUtil/index.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +3 -2
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js +2 -1
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js.map +1 -1
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.native.js +24 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +20 -8
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js +14 -5
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +2 -2
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js +60 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +3 -2
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js +2 -1
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js.map +1 -1
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.native.js +42 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.native.js.map +6 -0
- package/dist/cjs/modules/AssetRegistry/index.native.js +34 -0
- package/dist/cjs/modules/AssetRegistry/index.native.js.map +6 -0
- package/dist/cjs/modules/ImageLoader/index.cjs +4 -3
- package/dist/cjs/modules/ImageLoader/index.js +3 -2
- package/dist/cjs/modules/ImageLoader/index.js.map +1 -1
- package/dist/cjs/modules/ImageLoader/index.native.js +142 -0
- package/dist/cjs/modules/ImageLoader/index.native.js.map +6 -0
- package/dist/cjs/modules/InteractionManager.cjs +17 -6
- package/dist/cjs/modules/InteractionManager.js +12 -4
- package/dist/cjs/modules/InteractionManager.js.map +2 -2
- package/dist/cjs/modules/InteractionManager.native.js +267 -0
- package/dist/cjs/modules/InteractionManager.native.js.map +6 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.cjs +1 -1
- package/dist/cjs/modules/Platform/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/Platform/__tests__/index-test.native.js +47 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/Platform/index.cjs +3 -2
- package/dist/cjs/modules/Platform/index.js +2 -1
- package/dist/cjs/modules/Platform/index.js.map +1 -1
- package/dist/cjs/modules/Platform/index.native.js +28 -0
- package/dist/cjs/modules/Platform/index.native.js.map +6 -0
- package/dist/cjs/modules/TextInputState/index.cjs +21 -9
- package/dist/cjs/modules/TextInputState/index.js +15 -6
- package/dist/cjs/modules/TextInputState/index.js.map +2 -2
- package/dist/cjs/modules/TextInputState/index.native.js +58 -0
- package/dist/cjs/modules/TextInputState/index.native.js.map +6 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.cjs +1 -1
- package/dist/cjs/modules/UIManager/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/UIManager/__tests__/index-test.native.js +88 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/UIManager/index.cjs +3 -2
- package/dist/cjs/modules/UIManager/index.js +2 -1
- package/dist/cjs/modules/UIManager/index.js.map +1 -1
- package/dist/cjs/modules/UIManager/index.native.js +59 -0
- package/dist/cjs/modules/UIManager/index.native.js.map +6 -0
- package/dist/cjs/modules/canUseDOM.cjs +4 -2
- package/dist/cjs/modules/canUseDOM.js +3 -1
- package/dist/cjs/modules/canUseDOM.js.map +1 -1
- package/dist/cjs/modules/canUseDOM.native.js +27 -0
- package/dist/cjs/modules/canUseDOM.native.js.map +6 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +1 -1
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.native.js +152 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/createDOMProps/index.cjs +20 -8
- package/dist/cjs/modules/createDOMProps/index.js +14 -5
- package/dist/cjs/modules/createDOMProps/index.js.map +2 -2
- package/dist/cjs/modules/createDOMProps/index.native.js +139 -0
- package/dist/cjs/modules/createDOMProps/index.native.js.map +6 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +4 -4
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.js.map +1 -1
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.native.js +351 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/createEventHandle/index.cjs +18 -7
- package/dist/cjs/modules/createEventHandle/index.js +13 -5
- package/dist/cjs/modules/createEventHandle/index.js.map +2 -2
- package/dist/cjs/modules/createEventHandle/index.native.js +75 -0
- package/dist/cjs/modules/createEventHandle/index.native.js.map +6 -0
- package/dist/cjs/modules/dismissKeyboard/index.cjs +20 -8
- package/dist/cjs/modules/dismissKeyboard/index.js +14 -5
- package/dist/cjs/modules/dismissKeyboard/index.js.map +2 -2
- package/dist/cjs/modules/dismissKeyboard/index.native.js +32 -0
- package/dist/cjs/modules/dismissKeyboard/index.native.js.map +6 -0
- package/dist/cjs/modules/forwardedProps/index.native.js +160 -0
- package/dist/cjs/modules/forwardedProps/index.native.js.map +6 -0
- package/dist/cjs/modules/getBoundingClientRect/index.cjs +3 -2
- package/dist/cjs/modules/getBoundingClientRect/index.js +2 -1
- package/dist/cjs/modules/getBoundingClientRect/index.js.map +1 -1
- package/dist/cjs/modules/getBoundingClientRect/index.native.js +28 -0
- package/dist/cjs/modules/getBoundingClientRect/index.native.js.map +6 -0
- package/dist/cjs/modules/invariant.native.js +48 -0
- package/dist/cjs/modules/invariant.native.js.map +6 -0
- package/dist/cjs/modules/isSelectionValid/index.cjs +1 -1
- package/dist/cjs/modules/isSelectionValid/index.js +1 -1
- package/dist/cjs/modules/isSelectionValid/index.js.map +1 -1
- package/dist/cjs/modules/isSelectionValid/index.native.js +28 -0
- package/dist/cjs/modules/isSelectionValid/index.native.js.map +6 -0
- package/dist/cjs/modules/isWebColor/index.cjs +3 -2
- package/dist/cjs/modules/isWebColor/index.js +2 -1
- package/dist/cjs/modules/isWebColor/index.js.map +1 -1
- package/dist/cjs/modules/isWebColor/index.native.js +24 -0
- package/dist/cjs/modules/isWebColor/index.native.js.map +6 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +2 -2
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.js.map +1 -1
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.native.js +36 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/mergeRefs/index.native.js +44 -0
- package/dist/cjs/modules/mergeRefs/index.native.js.map +6 -0
- package/dist/cjs/modules/modality/__tests__/index-test.native.js +33 -0
- package/dist/cjs/modules/modality/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/modality/index.cjs +33 -22
- package/dist/cjs/modules/modality/index.js +13 -5
- package/dist/cjs/modules/modality/index.js.map +2 -2
- package/dist/cjs/modules/modality/index.native.js +105 -0
- package/dist/cjs/modules/modality/index.native.js.map +6 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.cjs +1 -1
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.native.js +29 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +3 -2
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js +2 -1
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js.map +1 -1
- package/dist/cjs/modules/multiplyStyleLengthValue/index.native.js +32 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.native.js.map +6 -0
- package/dist/cjs/modules/normalizeColor/index.cjs +20 -8
- package/dist/cjs/modules/normalizeColor/index.js +14 -5
- package/dist/cjs/modules/normalizeColor/index.js.map +2 -2
- package/dist/cjs/modules/normalizeColor/index.native.js +41 -0
- package/dist/cjs/modules/normalizeColor/index.native.js.map +6 -0
- package/dist/cjs/modules/pick/index.cjs +1 -1
- package/dist/cjs/modules/pick/index.js +1 -1
- package/dist/cjs/modules/pick/index.js.map +1 -1
- package/dist/cjs/modules/pick/index.native.js +27 -0
- package/dist/cjs/modules/pick/index.native.js.map +6 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.cjs +1 -1
- package/dist/cjs/modules/processColor/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/processColor/__tests__/index-test.native.js +66 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/processColor/index.cjs +1 -1
- package/dist/cjs/modules/processColor/index.js +1 -1
- package/dist/cjs/modules/processColor/index.native.js +40 -0
- package/dist/cjs/modules/processColor/index.native.js.map +6 -0
- package/dist/cjs/modules/requestIdleCallback/index.cjs +20 -8
- package/dist/cjs/modules/requestIdleCallback/index.js +14 -5
- package/dist/cjs/modules/requestIdleCallback/index.js.map +2 -2
- package/dist/cjs/modules/requestIdleCallback/index.native.js +47 -0
- package/dist/cjs/modules/requestIdleCallback/index.native.js.map +6 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +20 -8
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js +14 -5
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js.map +1 -1
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.native.js +35 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.native.js.map +6 -0
- package/dist/cjs/modules/setValueForStyles/index.cjs +20 -8
- package/dist/cjs/modules/setValueForStyles/index.js +14 -5
- package/dist/cjs/modules/setValueForStyles/index.js.map +2 -2
- package/dist/cjs/modules/setValueForStyles/index.native.js +39 -0
- package/dist/cjs/modules/setValueForStyles/index.native.js.map +6 -0
- package/dist/cjs/modules/unitlessNumbers/index.cjs +3 -1
- package/dist/cjs/modules/unitlessNumbers/index.js +2 -0
- package/dist/cjs/modules/unitlessNumbers/index.js.map +1 -1
- package/dist/cjs/modules/unitlessNumbers/index.native.js +92 -0
- package/dist/cjs/modules/unitlessNumbers/index.native.js.map +6 -0
- package/dist/cjs/modules/useElementLayout/index.cjs +1 -1
- package/dist/cjs/modules/useElementLayout/index.js +1 -1
- package/dist/cjs/modules/useElementLayout/index.js.map +1 -1
- package/dist/cjs/modules/useElementLayout/index.native.js +38 -0
- package/dist/cjs/modules/useElementLayout/index.native.js.map +6 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.cjs +3 -3
- package/dist/cjs/modules/useEvent/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/useEvent/__tests__/index-test.js.map +1 -1
- package/dist/cjs/modules/useEvent/__tests__/index-test.native.js +410 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useEvent/index.cjs +23 -12
- package/dist/cjs/modules/useEvent/index.js +15 -7
- package/dist/cjs/modules/useEvent/index.js.map +2 -2
- package/dist/cjs/modules/useEvent/index.native.js +52 -0
- package/dist/cjs/modules/useEvent/index.native.js.map +6 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.cjs +3 -3
- package/dist/cjs/modules/useHover/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/useHover/__tests__/index-test.js.map +1 -1
- package/dist/cjs/modules/useHover/__tests__/index-test.native.js +270 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useHover/index.cjs +24 -13
- package/dist/cjs/modules/useHover/index.js +14 -6
- package/dist/cjs/modules/useHover/index.js.map +2 -2
- package/dist/cjs/modules/useHover/index.native.js +85 -0
- package/dist/cjs/modules/useHover/index.native.js.map +6 -0
- package/dist/cjs/modules/useLayoutEffect/index.cjs +5 -4
- package/dist/cjs/modules/useLayoutEffect/index.js +4 -3
- package/dist/cjs/modules/useLayoutEffect/index.js.map +2 -2
- package/dist/cjs/modules/useLayoutEffect/index.native.js +30 -0
- package/dist/cjs/modules/useLayoutEffect/index.native.js.map +6 -0
- package/dist/cjs/modules/useLocale/index.cjs +1 -1
- package/dist/cjs/modules/useLocale/index.js +1 -1
- package/dist/cjs/modules/useLocale/index.js.map +1 -1
- package/dist/cjs/modules/useLocale/index.native.js +57 -0
- package/dist/cjs/modules/useLocale/index.native.js.map +6 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.native.js +95 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.native.js.map +6 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +2 -2
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js.map +1 -1
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.native.js +98 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useMergeRefs/index.cjs +1 -1
- package/dist/cjs/modules/useMergeRefs/index.js +1 -1
- package/dist/cjs/modules/useMergeRefs/index.js.map +1 -1
- package/dist/cjs/modules/useMergeRefs/index.native.js +47 -0
- package/dist/cjs/modules/useMergeRefs/index.native.js.map +6 -0
- package/dist/cjs/modules/usePlatformMethods/index.cjs +20 -7
- package/dist/cjs/modules/usePlatformMethods/index.js +14 -4
- package/dist/cjs/modules/usePlatformMethods/index.js.map +2 -2
- package/dist/cjs/modules/usePlatformMethods/index.native.js +44 -0
- package/dist/cjs/modules/usePlatformMethods/index.native.js.map +6 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.cjs +2 -2
- package/dist/cjs/modules/useStable/__tests__/index-test.js +1 -1
- package/dist/cjs/modules/useStable/__tests__/index-test.js.map +1 -1
- package/dist/cjs/modules/useStable/__tests__/index-test.native.js +88 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useStable/index.cjs +2 -2
- package/dist/cjs/modules/useStable/index.js +2 -2
- package/dist/cjs/modules/useStable/index.js.map +1 -1
- package/dist/cjs/modules/useStable/index.native.js +34 -0
- package/dist/cjs/modules/useStable/index.native.js.map +6 -0
- package/dist/cjs/styleTypes.native.js +15 -0
- package/dist/cjs/styleTypes.native.js.map +6 -0
- package/dist/cjs/types.native.js +15 -0
- package/dist/cjs/types.native.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js +221 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.native.js +408 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js +100 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/index-test.native.js +385 -0
- package/dist/esm/StyleSheet/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js +109 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.native.js +37 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js +5 -4
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js.map +1 -1
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +4 -3
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js +64 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/hash.native.js +3 -0
- package/dist/esm/StyleSheet/compiler/hash.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js +2 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js.map +1 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs +2 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js +14 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/index.js +3 -3
- package/dist/esm/StyleSheet/compiler/index.js.map +1 -1
- package/dist/esm/StyleSheet/compiler/index.mjs +3 -3
- package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/index.native.js +298 -0
- package/dist/esm/StyleSheet/compiler/index.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.js +3 -2
- package/dist/esm/StyleSheet/compiler/normalizeColor.js.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +3 -2
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.native.js +20 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js +2 -2
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs +2 -2
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js +20 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js +4 -3
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js.map +1 -1
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs +4 -3
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js +26 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js.map +1 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js +2 -2
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js.map +1 -1
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs +2 -2
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js +14 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js.map +1 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js +1 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +1 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs +1 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js +94 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js.map +1 -0
- package/dist/esm/StyleSheet/dom/index.js +3 -3
- package/dist/esm/StyleSheet/dom/index.js.map +1 -1
- package/dist/esm/StyleSheet/dom/index.mjs +3 -3
- package/dist/esm/StyleSheet/dom/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/index.native.js +45 -0
- package/dist/esm/StyleSheet/dom/index.native.js.map +1 -0
- package/dist/esm/StyleSheet/index.js +1 -1
- package/dist/esm/StyleSheet/index.js.map +1 -1
- package/dist/esm/StyleSheet/index.mjs +1 -1
- package/dist/esm/StyleSheet/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/index.native.js +36 -0
- package/dist/esm/StyleSheet/index.native.js.map +1 -0
- package/dist/esm/StyleSheet/preprocess.js +2 -2
- package/dist/esm/StyleSheet/preprocess.js.map +1 -1
- package/dist/esm/StyleSheet/preprocess.mjs +2 -2
- package/dist/esm/StyleSheet/preprocess.mjs.map +1 -1
- package/dist/esm/StyleSheet/preprocess.native.js +75 -0
- package/dist/esm/StyleSheet/preprocess.native.js.map +1 -0
- package/dist/esm/StyleSheet/validate.native.js +46 -0
- package/dist/esm/StyleSheet/validate.native.js.map +1 -0
- package/dist/esm/TextAncestorContext.js +3 -1
- package/dist/esm/TextAncestorContext.js.map +1 -1
- package/dist/esm/TextAncestorContext.mjs +2 -1
- package/dist/esm/TextAncestorContext.mjs.map +1 -1
- package/dist/esm/TextAncestorContext.native.js +5 -0
- package/dist/esm/TextAncestorContext.native.js.map +1 -0
- package/dist/esm/colorProps.native.js +14 -0
- package/dist/esm/colorProps.native.js.map +1 -0
- package/dist/esm/index.js +48 -48
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/index.mjs +25 -25
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +45 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js +29 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js +19 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/index.js +6 -4
- package/dist/esm/modules/AccessibilityUtil/index.js.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/index.mjs +5 -4
- package/dist/esm/modules/AccessibilityUtil/index.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/index.native.js +11 -0
- package/dist/esm/modules/AccessibilityUtil/index.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js +2 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs +2 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js +6 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js +3 -2
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +3 -2
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js +36 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js +2 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +2 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js +26 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js.map +1 -0
- package/dist/esm/modules/AssetRegistry/index.native.js +9 -0
- package/dist/esm/modules/AssetRegistry/index.native.js.map +1 -0
- package/dist/esm/modules/ImageLoader/index.js +3 -2
- package/dist/esm/modules/ImageLoader/index.js.map +1 -1
- package/dist/esm/modules/ImageLoader/index.mjs +2 -1
- package/dist/esm/modules/ImageLoader/index.mjs.map +1 -1
- package/dist/esm/modules/ImageLoader/index.native.js +125 -0
- package/dist/esm/modules/ImageLoader/index.native.js.map +1 -0
- package/dist/esm/modules/InteractionManager.js +1 -1
- package/dist/esm/modules/InteractionManager.js.map +1 -1
- package/dist/esm/modules/InteractionManager.mjs +1 -1
- package/dist/esm/modules/InteractionManager.mjs.map +1 -1
- package/dist/esm/modules/InteractionManager.native.js +241 -0
- package/dist/esm/modules/InteractionManager.native.js.map +1 -0
- package/dist/esm/modules/Platform/__tests__/index-test.native.js +27 -0
- package/dist/esm/modules/Platform/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/Platform/index.js +2 -1
- package/dist/esm/modules/Platform/index.js.map +1 -1
- package/dist/esm/modules/Platform/index.mjs +2 -1
- package/dist/esm/modules/Platform/index.mjs.map +1 -1
- package/dist/esm/modules/Platform/index.native.js +10 -0
- package/dist/esm/modules/Platform/index.native.js.map +1 -0
- package/dist/esm/modules/TextInputState/index.js +3 -2
- package/dist/esm/modules/TextInputState/index.js.map +1 -1
- package/dist/esm/modules/TextInputState/index.mjs +3 -2
- package/dist/esm/modules/TextInputState/index.mjs.map +1 -1
- package/dist/esm/modules/TextInputState/index.native.js +33 -0
- package/dist/esm/modules/TextInputState/index.native.js.map +1 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.native.js +71 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/UIManager/index.js +2 -1
- package/dist/esm/modules/UIManager/index.js.map +1 -1
- package/dist/esm/modules/UIManager/index.mjs +2 -1
- package/dist/esm/modules/UIManager/index.mjs.map +1 -1
- package/dist/esm/modules/UIManager/index.native.js +40 -0
- package/dist/esm/modules/UIManager/index.native.js.map +1 -0
- package/dist/esm/modules/canUseDOM.js +3 -1
- package/dist/esm/modules/canUseDOM.js.map +1 -1
- package/dist/esm/modules/canUseDOM.mjs +2 -1
- package/dist/esm/modules/canUseDOM.mjs.map +1 -1
- package/dist/esm/modules/canUseDOM.native.js +4 -0
- package/dist/esm/modules/canUseDOM.native.js.map +1 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js +139 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/createDOMProps/index.js +3 -2
- package/dist/esm/modules/createDOMProps/index.js.map +1 -1
- package/dist/esm/modules/createDOMProps/index.mjs +3 -2
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -1
- package/dist/esm/modules/createDOMProps/index.native.js +116 -0
- package/dist/esm/modules/createDOMProps/index.native.js.map +1 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js +337 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/createEventHandle/index.js +2 -2
- package/dist/esm/modules/createEventHandle/index.js.map +1 -1
- package/dist/esm/modules/createEventHandle/index.mjs +2 -2
- package/dist/esm/modules/createEventHandle/index.mjs.map +1 -1
- package/dist/esm/modules/createEventHandle/index.native.js +44 -0
- package/dist/esm/modules/createEventHandle/index.native.js.map +1 -0
- package/dist/esm/modules/dismissKeyboard/index.js +3 -2
- package/dist/esm/modules/dismissKeyboard/index.js.map +1 -1
- package/dist/esm/modules/dismissKeyboard/index.mjs +3 -2
- package/dist/esm/modules/dismissKeyboard/index.mjs.map +1 -1
- package/dist/esm/modules/dismissKeyboard/index.native.js +7 -0
- package/dist/esm/modules/dismissKeyboard/index.native.js.map +1 -0
- package/dist/esm/modules/forwardedProps/index.native.js +127 -0
- package/dist/esm/modules/forwardedProps/index.native.js.map +1 -0
- package/dist/esm/modules/getBoundingClientRect/index.js +2 -1
- package/dist/esm/modules/getBoundingClientRect/index.js.map +1 -1
- package/dist/esm/modules/getBoundingClientRect/index.mjs +2 -1
- package/dist/esm/modules/getBoundingClientRect/index.mjs.map +1 -1
- package/dist/esm/modules/getBoundingClientRect/index.native.js +9 -0
- package/dist/esm/modules/getBoundingClientRect/index.native.js.map +1 -0
- package/dist/esm/modules/invariant.native.js +16 -0
- package/dist/esm/modules/invariant.native.js.map +1 -0
- package/dist/esm/modules/isSelectionValid/index.js +1 -1
- package/dist/esm/modules/isSelectionValid/index.js.map +1 -1
- package/dist/esm/modules/isSelectionValid/index.mjs +1 -1
- package/dist/esm/modules/isSelectionValid/index.mjs.map +1 -1
- package/dist/esm/modules/isSelectionValid/index.native.js +12 -0
- package/dist/esm/modules/isSelectionValid/index.native.js.map +1 -0
- package/dist/esm/modules/isWebColor/index.js +2 -1
- package/dist/esm/modules/isWebColor/index.js.map +1 -1
- package/dist/esm/modules/isWebColor/index.mjs +2 -1
- package/dist/esm/modules/isWebColor/index.mjs.map +1 -1
- package/dist/esm/modules/isWebColor/index.native.js +6 -0
- package/dist/esm/modules/isWebColor/index.native.js.map +1 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js +21 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/mergeRefs/index.native.js +20 -0
- package/dist/esm/modules/mergeRefs/index.native.js.map +1 -0
- package/dist/esm/modules/modality/__tests__/index-test.native.js +33 -0
- package/dist/esm/modules/modality/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/modality/index.js +2 -2
- package/dist/esm/modules/modality/index.js.map +1 -1
- package/dist/esm/modules/modality/index.mjs +2 -2
- package/dist/esm/modules/modality/index.mjs.map +1 -1
- package/dist/esm/modules/modality/index.native.js +111 -0
- package/dist/esm/modules/modality/index.native.js.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js +9 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.js +2 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.js.map +1 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs +2 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.native.js +17 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.native.js.map +1 -0
- package/dist/esm/modules/normalizeColor/index.js +3 -2
- package/dist/esm/modules/normalizeColor/index.js.map +1 -1
- package/dist/esm/modules/normalizeColor/index.mjs +3 -2
- package/dist/esm/modules/normalizeColor/index.mjs.map +1 -1
- package/dist/esm/modules/normalizeColor/index.native.js +20 -0
- package/dist/esm/modules/normalizeColor/index.native.js.map +1 -0
- package/dist/esm/modules/pick/index.js +1 -1
- package/dist/esm/modules/pick/index.js.map +1 -1
- package/dist/esm/modules/pick/index.mjs +1 -1
- package/dist/esm/modules/pick/index.mjs.map +1 -1
- package/dist/esm/modules/pick/index.native.js +7 -0
- package/dist/esm/modules/pick/index.native.js.map +1 -0
- package/dist/esm/modules/processColor/__tests__/index-test.native.js +56 -0
- package/dist/esm/modules/processColor/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/processColor/index.native.js +8 -0
- package/dist/esm/modules/processColor/index.native.js.map +1 -0
- package/dist/esm/modules/requestIdleCallback/index.js +3 -2
- package/dist/esm/modules/requestIdleCallback/index.js.map +1 -1
- package/dist/esm/modules/requestIdleCallback/index.mjs +3 -2
- package/dist/esm/modules/requestIdleCallback/index.mjs.map +1 -1
- package/dist/esm/modules/requestIdleCallback/index.native.js +21 -0
- package/dist/esm/modules/requestIdleCallback/index.native.js.map +1 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js +3 -2
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js.map +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +3 -2
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js +8 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js.map +1 -0
- package/dist/esm/modules/setValueForStyles/index.js +3 -2
- package/dist/esm/modules/setValueForStyles/index.js.map +1 -1
- package/dist/esm/modules/setValueForStyles/index.mjs +3 -2
- package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/index.native.js +12 -0
- package/dist/esm/modules/setValueForStyles/index.native.js.map +1 -0
- package/dist/esm/modules/unitlessNumbers/index.js +2 -0
- package/dist/esm/modules/unitlessNumbers/index.js.map +1 -1
- package/dist/esm/modules/unitlessNumbers/index.mjs +2 -1
- package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -1
- package/dist/esm/modules/unitlessNumbers/index.native.js +65 -0
- package/dist/esm/modules/unitlessNumbers/index.native.js.map +1 -0
- package/dist/esm/modules/useElementLayout/index.js +1 -1
- package/dist/esm/modules/useElementLayout/index.js.map +1 -1
- package/dist/esm/modules/useElementLayout/index.mjs +1 -1
- package/dist/esm/modules/useElementLayout/index.mjs.map +1 -1
- package/dist/esm/modules/useElementLayout/index.native.js +18 -0
- package/dist/esm/modules/useElementLayout/index.native.js.map +1 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.native.js +391 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useEvent/index.js +4 -4
- package/dist/esm/modules/useEvent/index.js.map +1 -1
- package/dist/esm/modules/useEvent/index.mjs +4 -4
- package/dist/esm/modules/useEvent/index.mjs.map +1 -1
- package/dist/esm/modules/useEvent/index.native.js +26 -0
- package/dist/esm/modules/useEvent/index.native.js.map +1 -0
- package/dist/esm/modules/useHover/__tests__/index-test.native.js +283 -0
- package/dist/esm/modules/useHover/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useHover/index.js +3 -3
- package/dist/esm/modules/useHover/index.js.map +1 -1
- package/dist/esm/modules/useHover/index.mjs +3 -3
- package/dist/esm/modules/useHover/index.mjs.map +1 -1
- package/dist/esm/modules/useHover/index.native.js +77 -0
- package/dist/esm/modules/useHover/index.native.js.map +1 -0
- package/dist/esm/modules/useLayoutEffect/index.js +3 -2
- package/dist/esm/modules/useLayoutEffect/index.js.map +1 -1
- package/dist/esm/modules/useLayoutEffect/index.mjs +3 -2
- package/dist/esm/modules/useLayoutEffect/index.mjs.map +1 -1
- package/dist/esm/modules/useLayoutEffect/index.native.js +6 -0
- package/dist/esm/modules/useLayoutEffect/index.native.js.map +1 -0
- package/dist/esm/modules/useLocale/index.native.js +31 -0
- package/dist/esm/modules/useLocale/index.native.js.map +1 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.native.js +58 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.native.js.map +1 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js +82 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useMergeRefs/index.native.js +12 -0
- package/dist/esm/modules/useMergeRefs/index.native.js.map +1 -0
- package/dist/esm/modules/usePlatformMethods/index.js +3 -1
- package/dist/esm/modules/usePlatformMethods/index.js.map +1 -1
- package/dist/esm/modules/usePlatformMethods/index.mjs +3 -2
- package/dist/esm/modules/usePlatformMethods/index.mjs.map +1 -1
- package/dist/esm/modules/usePlatformMethods/index.native.js +17 -0
- package/dist/esm/modules/usePlatformMethods/index.native.js.map +1 -0
- package/dist/esm/modules/useStable/__tests__/index-test.native.js +81 -0
- package/dist/esm/modules/useStable/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useStable/index.js +1 -1
- package/dist/esm/modules/useStable/index.js.map +1 -1
- package/dist/esm/modules/useStable/index.mjs +1 -1
- package/dist/esm/modules/useStable/index.mjs.map +1 -1
- package/dist/esm/modules/useStable/index.native.js +8 -0
- package/dist/esm/modules/useStable/index.native.js.map +1 -0
- package/dist/esm/styleTypes.native.js +2 -0
- package/dist/esm/styleTypes.native.js.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/package.json +16 -12
- package/src/StyleSheet/compiler/createReactDOMStyle.tsx +5 -3
- package/src/StyleSheet/compiler/hyphenateStyleName.tsx +3 -1
- package/src/StyleSheet/compiler/index.tsx +3 -3
- package/src/StyleSheet/compiler/normalizeColor.tsx +4 -2
- package/src/StyleSheet/compiler/normalizeValueWithProperty.tsx +2 -2
- package/src/StyleSheet/compiler/resolveShadowValue.tsx +5 -3
- package/src/StyleSheet/dom/createCSSStyleSheet.tsx +2 -2
- package/src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx +1 -1
- package/src/StyleSheet/dom/index.tsx +3 -3
- package/src/StyleSheet/index.tsx +1 -1
- package/src/StyleSheet/preprocess.tsx +2 -2
- package/src/TextAncestorContext.tsx +2 -1
- package/src/index.tsx +24 -24
- package/src/modules/AccessibilityUtil/index.tsx +5 -3
- package/src/modules/AccessibilityUtil/isDisabled.tsx +3 -1
- package/src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx +4 -2
- package/src/modules/AccessibilityUtil/propsToAriaRole.tsx +3 -1
- package/src/modules/ImageLoader/index.tsx +3 -1
- package/src/modules/InteractionManager.tsx +1 -1
- package/src/modules/Platform/index.tsx +3 -1
- package/src/modules/TextInputState/index.tsx +4 -2
- package/src/modules/UIManager/index.tsx +3 -1
- package/src/modules/canUseDOM.tsx +2 -0
- package/src/modules/createDOMProps/index.tsx +4 -2
- package/src/modules/createEventHandle/index.tsx +2 -2
- package/src/modules/dismissKeyboard/index.tsx +4 -2
- package/src/modules/getBoundingClientRect/index.tsx +3 -1
- package/src/modules/isSelectionValid/index.tsx +1 -1
- package/src/modules/isWebColor/index.tsx +3 -1
- package/src/modules/modality/index.tsx +2 -2
- package/src/modules/multiplyStyleLengthValue/index.tsx +3 -1
- package/src/modules/normalizeColor/index.tsx +4 -2
- package/src/modules/pick/index.tsx +1 -1
- package/src/modules/requestIdleCallback/index.tsx +6 -3
- package/src/modules/setValueForStyles/dangerousStyleValue.tsx +4 -2
- package/src/modules/setValueForStyles/index.tsx +4 -2
- package/src/modules/unitlessNumbers/index.tsx +2 -0
- package/src/modules/useElementLayout/index.tsx +1 -1
- package/src/modules/useEvent/index.tsx +4 -4
- package/src/modules/useHover/index.tsx +3 -3
- package/src/modules/useLayoutEffect/index.ts +4 -2
- package/src/modules/usePlatformMethods/index.tsx +3 -1
- package/src/modules/useStable/index.tsx +1 -1
- package/types/StyleSheet/compiler/createReactDOMStyle.d.ts +2 -2
- package/types/StyleSheet/compiler/createReactDOMStyle.d.ts.map +1 -1
- package/types/StyleSheet/compiler/hyphenateStyleName.d.ts +2 -1
- package/types/StyleSheet/compiler/hyphenateStyleName.d.ts.map +1 -1
- package/types/StyleSheet/compiler/normalizeColor.d.ts +2 -1
- package/types/StyleSheet/compiler/normalizeColor.d.ts.map +1 -1
- package/types/StyleSheet/compiler/normalizeValueWithProperty.d.ts +1 -1
- package/types/StyleSheet/compiler/normalizeValueWithProperty.d.ts.map +1 -1
- package/types/StyleSheet/compiler/resolveShadowValue.d.ts +2 -1
- package/types/StyleSheet/compiler/resolveShadowValue.d.ts.map +1 -1
- package/types/StyleSheet/dom/createCSSStyleSheet.d.ts +1 -1
- package/types/StyleSheet/dom/createCSSStyleSheet.d.ts.map +1 -1
- package/types/StyleSheet/dom/createOrderedCSSStyleSheet.d.ts +1 -1
- package/types/StyleSheet/dom/createOrderedCSSStyleSheet.d.ts.map +1 -1
- package/types/StyleSheet/index.d.ts +3 -3
- package/types/StyleSheet/index.d.ts.map +1 -1
- package/types/TextAncestorContext.d.ts +2 -0
- package/types/TextAncestorContext.d.ts.map +1 -1
- package/types/index.d.ts +24 -24
- package/types/index.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/index.d.ts +1 -0
- package/types/modules/AccessibilityUtil/index.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/isDisabled.d.ts +2 -1
- package/types/modules/AccessibilityUtil/isDisabled.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts +2 -1
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts +2 -1
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts.map +1 -1
- package/types/modules/ImageLoader/index.d.ts +2 -1
- package/types/modules/ImageLoader/index.d.ts.map +1 -1
- package/types/modules/Platform/index.d.ts +2 -1
- package/types/modules/Platform/index.d.ts.map +1 -1
- package/types/modules/TextInputState/index.d.ts +2 -1
- package/types/modules/TextInputState/index.d.ts.map +1 -1
- package/types/modules/UIManager/index.d.ts +2 -1
- package/types/modules/UIManager/index.d.ts.map +1 -1
- package/types/modules/canUseDOM.d.ts +1 -0
- package/types/modules/canUseDOM.d.ts.map +1 -1
- package/types/modules/createDOMProps/index.d.ts +2 -1
- package/types/modules/createDOMProps/index.d.ts.map +1 -1
- package/types/modules/createEventHandle/index.d.ts +1 -1
- package/types/modules/createEventHandle/index.d.ts.map +1 -1
- package/types/modules/dismissKeyboard/index.d.ts +2 -1
- package/types/modules/dismissKeyboard/index.d.ts.map +1 -1
- package/types/modules/getBoundingClientRect/index.d.ts +2 -1
- package/types/modules/getBoundingClientRect/index.d.ts.map +1 -1
- package/types/modules/isSelectionValid/index.d.ts +1 -1
- package/types/modules/isSelectionValid/index.d.ts.map +1 -1
- package/types/modules/isWebColor/index.d.ts +2 -1
- package/types/modules/isWebColor/index.d.ts.map +1 -1
- package/types/modules/multiplyStyleLengthValue/index.d.ts +2 -1
- package/types/modules/multiplyStyleLengthValue/index.d.ts.map +1 -1
- package/types/modules/normalizeColor/index.d.ts +2 -1
- package/types/modules/normalizeColor/index.d.ts.map +1 -1
- package/types/modules/pick/index.d.ts +1 -1
- package/types/modules/pick/index.d.ts.map +1 -1
- package/types/modules/requestIdleCallback/index.d.ts +4 -2
- package/types/modules/requestIdleCallback/index.d.ts.map +1 -1
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts +2 -1
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts.map +1 -1
- package/types/modules/setValueForStyles/index.d.ts +2 -1
- package/types/modules/setValueForStyles/index.d.ts.map +1 -1
- package/types/modules/unitlessNumbers/index.d.ts +1 -0
- package/types/modules/unitlessNumbers/index.d.ts.map +1 -1
- package/types/modules/useElementLayout/index.d.ts +1 -1
- package/types/modules/useElementLayout/index.d.ts.map +1 -1
- package/types/modules/useEvent/index.d.ts +1 -1
- package/types/modules/useEvent/index.d.ts.map +1 -1
- package/types/modules/useHover/index.d.ts +1 -1
- package/types/modules/useHover/index.d.ts.map +1 -1
- package/types/modules/useLayoutEffect/index.d.ts +2 -1
- package/types/modules/useLayoutEffect/index.d.ts.map +1 -1
- package/types/modules/usePlatformMethods/index.d.ts +1 -0
- package/types/modules/usePlatformMethods/index.d.ts.map +1 -1
- package/types/modules/useStable/index.d.ts +1 -1
- package/types/modules/useStable/index.d.ts.map +1 -1
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var compiler_exports = {};
|
|
25
|
+
__export(compiler_exports, {
|
|
26
|
+
atomic: () => atomic,
|
|
27
|
+
classic: () => classic,
|
|
28
|
+
inline: () => inline,
|
|
29
|
+
stringifyValueWithProperty: () => stringifyValueWithProperty
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(compiler_exports);
|
|
32
|
+
var import_simple_hash = require("@tamagui/simple-hash"), import_createReactDOMStyle = __toESM(require("./createReactDOMStyle")), import_hyphenateStyleName = __toESM(require("./hyphenateStyleName")), import_normalizeValueWithProperty = __toESM(require("./normalizeValueWithProperty")), cache = /* @__PURE__ */ new Map(), emptyObject = {}, classicGroup = 1, atomicGroup = 2.2, customGroup = {
|
|
33
|
+
borderColor: 2,
|
|
34
|
+
borderRadius: 2,
|
|
35
|
+
borderStyle: 2,
|
|
36
|
+
borderWidth: 2,
|
|
37
|
+
display: 2,
|
|
38
|
+
flex: 2,
|
|
39
|
+
margin: 2,
|
|
40
|
+
overflow: 2,
|
|
41
|
+
overscrollBehavior: 2,
|
|
42
|
+
padding: 2,
|
|
43
|
+
marginHorizontal: 2.1,
|
|
44
|
+
marginVertical: 2.1,
|
|
45
|
+
paddingHorizontal: 2.1,
|
|
46
|
+
paddingVertical: 2.1
|
|
47
|
+
}, borderTopLeftRadius = "borderTopLeftRadius", borderTopRightRadius = "borderTopRightRadius", borderBottomLeftRadius = "borderBottomLeftRadius", borderBottomRightRadius = "borderBottomRightRadius", borderLeftColor = "borderLeftColor", borderLeftStyle = "borderLeftStyle", borderLeftWidth = "borderLeftWidth", borderRightColor = "borderRightColor", borderRightStyle = "borderRightStyle", borderRightWidth = "borderRightWidth", right = "right", marginLeft = "marginLeft", marginRight = "marginRight", paddingLeft = "paddingLeft", paddingRight = "paddingRight", left = "left", PROPERTIES_FLIP = {
|
|
48
|
+
[borderTopLeftRadius]: borderTopRightRadius,
|
|
49
|
+
[borderTopRightRadius]: borderTopLeftRadius,
|
|
50
|
+
[borderBottomLeftRadius]: borderBottomRightRadius,
|
|
51
|
+
[borderBottomRightRadius]: borderBottomLeftRadius,
|
|
52
|
+
[borderLeftColor]: borderRightColor,
|
|
53
|
+
[borderLeftStyle]: borderRightStyle,
|
|
54
|
+
[borderLeftWidth]: borderRightWidth,
|
|
55
|
+
[borderRightColor]: borderLeftColor,
|
|
56
|
+
[borderRightStyle]: borderLeftStyle,
|
|
57
|
+
[borderRightWidth]: borderLeftWidth,
|
|
58
|
+
[left]: right,
|
|
59
|
+
[marginLeft]: marginRight,
|
|
60
|
+
[marginRight]: marginLeft,
|
|
61
|
+
[paddingLeft]: paddingRight,
|
|
62
|
+
[paddingRight]: paddingLeft,
|
|
63
|
+
[right]: left
|
|
64
|
+
}, PROPERTIES_I18N = {
|
|
65
|
+
borderTopStartRadius: borderTopLeftRadius,
|
|
66
|
+
borderTopEndRadius: borderTopRightRadius,
|
|
67
|
+
borderBottomStartRadius: borderBottomLeftRadius,
|
|
68
|
+
borderBottomEndRadius: borderBottomRightRadius,
|
|
69
|
+
borderStartColor: borderLeftColor,
|
|
70
|
+
borderStartStyle: borderLeftStyle,
|
|
71
|
+
borderStartWidth: borderLeftWidth,
|
|
72
|
+
borderEndColor: borderRightColor,
|
|
73
|
+
borderEndStyle: borderRightStyle,
|
|
74
|
+
borderEndWidth: borderRightWidth,
|
|
75
|
+
end: right,
|
|
76
|
+
marginStart: marginLeft,
|
|
77
|
+
marginEnd: marginRight,
|
|
78
|
+
paddingStart: paddingLeft,
|
|
79
|
+
paddingEnd: paddingRight,
|
|
80
|
+
start: left
|
|
81
|
+
}, PROPERTIES_VALUE = [
|
|
82
|
+
"clear",
|
|
83
|
+
"float",
|
|
84
|
+
"textAlign"
|
|
85
|
+
];
|
|
86
|
+
function atomic(style) {
|
|
87
|
+
var compiledStyle = {
|
|
88
|
+
$$css: !0
|
|
89
|
+
}, compiledRules = [];
|
|
90
|
+
function atomicCompile(prop, value) {
|
|
91
|
+
var valueString = stringifyValueWithProperty(value, prop), cacheKey = prop + valueString, cachedResult = cache.get(cacheKey), identifier;
|
|
92
|
+
if (cachedResult != null)
|
|
93
|
+
identifier = cachedResult[0], compiledRules.push(cachedResult[1]);
|
|
94
|
+
else {
|
|
95
|
+
identifier = createIdentifier("r", prop, value);
|
|
96
|
+
var order = customGroup[prop] || atomicGroup, rules = createAtomicRules(identifier, prop, value), orderedRules = [
|
|
97
|
+
rules,
|
|
98
|
+
order
|
|
99
|
+
];
|
|
100
|
+
compiledRules.push(orderedRules), cache.set(cacheKey, [
|
|
101
|
+
identifier,
|
|
102
|
+
orderedRules
|
|
103
|
+
]);
|
|
104
|
+
}
|
|
105
|
+
return identifier;
|
|
106
|
+
}
|
|
107
|
+
return Object.keys(style).sort().forEach(function(prop) {
|
|
108
|
+
var value = style[prop];
|
|
109
|
+
if (value != null) {
|
|
110
|
+
var localizeableValue;
|
|
111
|
+
if (PROPERTIES_VALUE.indexOf(prop) > -1) {
|
|
112
|
+
var left2 = atomicCompile(prop, "left"), right2 = atomicCompile(prop, "right");
|
|
113
|
+
value === "start" ? localizeableValue = [
|
|
114
|
+
left2,
|
|
115
|
+
right2
|
|
116
|
+
] : value === "end" && (localizeableValue = [
|
|
117
|
+
right2,
|
|
118
|
+
left2
|
|
119
|
+
]);
|
|
120
|
+
}
|
|
121
|
+
var propPolyfill = PROPERTIES_I18N[prop];
|
|
122
|
+
if (propPolyfill != null) {
|
|
123
|
+
var ltr = atomicCompile(propPolyfill, value), rtl = atomicCompile(PROPERTIES_FLIP[propPolyfill], value);
|
|
124
|
+
localizeableValue = [
|
|
125
|
+
ltr,
|
|
126
|
+
rtl
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
if (prop === "transitionProperty") {
|
|
130
|
+
for (var values = Array.isArray(value) ? value : [
|
|
131
|
+
value
|
|
132
|
+
], polyfillIndices = [], i = 0; i < values.length; i++) {
|
|
133
|
+
var val = values[i];
|
|
134
|
+
typeof val == "string" && PROPERTIES_I18N[val] != null && polyfillIndices.push(i);
|
|
135
|
+
}
|
|
136
|
+
if (polyfillIndices.length > 0) {
|
|
137
|
+
var ltrPolyfillValues = [
|
|
138
|
+
...values
|
|
139
|
+
], rtlPolyfillValues = [
|
|
140
|
+
...values
|
|
141
|
+
];
|
|
142
|
+
polyfillIndices.forEach(function(i2) {
|
|
143
|
+
var ltrVal = ltrPolyfillValues[i2];
|
|
144
|
+
if (typeof ltrVal == "string") {
|
|
145
|
+
var ltrPolyfill = PROPERTIES_I18N[ltrVal], rtlPolyfill = PROPERTIES_FLIP[ltrPolyfill];
|
|
146
|
+
ltrPolyfillValues[i2] = ltrPolyfill, rtlPolyfillValues[i2] = rtlPolyfill;
|
|
147
|
+
var ltr2 = atomicCompile(prop, ltrPolyfillValues), rtl2 = atomicCompile(prop, rtlPolyfillValues);
|
|
148
|
+
localizeableValue = [
|
|
149
|
+
ltr2,
|
|
150
|
+
rtl2
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
localizeableValue == null ? localizeableValue = atomicCompile(prop, value) : compiledStyle.$$css$localize = !0, compiledStyle[prop] = localizeableValue;
|
|
157
|
+
}
|
|
158
|
+
}), [
|
|
159
|
+
compiledStyle,
|
|
160
|
+
compiledRules
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
function classic(style, name) {
|
|
164
|
+
var compiledStyle = {
|
|
165
|
+
$$css: !0
|
|
166
|
+
}, compiledRules = [], { animationKeyframes, ...rest } = style, identifier = createIdentifier("css", name, style), selector = `.${identifier}`, animationName;
|
|
167
|
+
if (animationKeyframes != null) {
|
|
168
|
+
var [animationNames, keyframesRules] = processKeyframesValue(animationKeyframes);
|
|
169
|
+
animationName = animationNames.join(","), compiledRules.push(...keyframesRules);
|
|
170
|
+
}
|
|
171
|
+
var block = createDeclarationBlock({
|
|
172
|
+
...rest,
|
|
173
|
+
animationName
|
|
174
|
+
});
|
|
175
|
+
return compiledRules.push(`${selector}${block}`), compiledStyle[identifier] = identifier, [
|
|
176
|
+
compiledStyle,
|
|
177
|
+
[
|
|
178
|
+
[
|
|
179
|
+
compiledRules,
|
|
180
|
+
classicGroup
|
|
181
|
+
]
|
|
182
|
+
]
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
function inline(originalStyle, isRTL) {
|
|
186
|
+
var _loop = function(originalProp2) {
|
|
187
|
+
var originalValue = style[originalProp2], prop = originalProp2, value = originalValue;
|
|
188
|
+
if (!Object.prototype.hasOwnProperty.call(style, originalProp2) || originalValue == null)
|
|
189
|
+
return "continue";
|
|
190
|
+
PROPERTIES_VALUE.indexOf(originalProp2) > -1 && (originalValue === "start" ? value = isRTL ? "right" : "left" : originalValue === "end" && (value = isRTL ? "left" : "right"));
|
|
191
|
+
var propPolyfill = PROPERTIES_I18N[originalProp2];
|
|
192
|
+
if (propPolyfill != null && (prop = isRTL ? PROPERTIES_FLIP[propPolyfill] : propPolyfill), originalProp2 === "transitionProperty") {
|
|
193
|
+
var originalValues = Array.isArray(originalValue) ? originalValue : [
|
|
194
|
+
originalValue
|
|
195
|
+
];
|
|
196
|
+
originalValues.forEach(function(val, i) {
|
|
197
|
+
if (typeof val == "string") {
|
|
198
|
+
var valuePolyfill = PROPERTIES_I18N[val];
|
|
199
|
+
valuePolyfill != null && (originalValues[i] = isRTL ? PROPERTIES_FLIP[valuePolyfill] : valuePolyfill);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
frozenProps[prop] || (nextStyle[prop] = value), PROPERTIES_I18N.hasOwnProperty(originalProp2) && (frozenProps[prop] = !0);
|
|
204
|
+
}, style = originalStyle || emptyObject, frozenProps = {}, nextStyle = {};
|
|
205
|
+
for (var originalProp in style) _loop(originalProp);
|
|
206
|
+
return (0, import_createReactDOMStyle.default)(nextStyle, !0);
|
|
207
|
+
}
|
|
208
|
+
function stringifyValueWithProperty(value, property) {
|
|
209
|
+
var normalizedValue = (0, import_normalizeValueWithProperty.default)(value, property);
|
|
210
|
+
return typeof normalizedValue != "string" ? JSON.stringify(normalizedValue || "") : normalizedValue;
|
|
211
|
+
}
|
|
212
|
+
function createAtomicRules(identifier, property, value) {
|
|
213
|
+
var rules = [], selector = `.${identifier}`;
|
|
214
|
+
switch (property) {
|
|
215
|
+
case "animationKeyframes": {
|
|
216
|
+
var [animationNames, keyframesRules] = processKeyframesValue(value), block = createDeclarationBlock({
|
|
217
|
+
animationName: animationNames.join(",")
|
|
218
|
+
});
|
|
219
|
+
rules.push(`${selector}${block}`, ...keyframesRules);
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
// Equivalent to using '::placeholder'
|
|
223
|
+
case "placeholderTextColor": {
|
|
224
|
+
var block1 = createDeclarationBlock({
|
|
225
|
+
color: value,
|
|
226
|
+
opacity: 1
|
|
227
|
+
});
|
|
228
|
+
rules.push(`${selector}::-webkit-input-placeholder${block1}`, `${selector}::-moz-placeholder${block1}`, `${selector}:-ms-input-placeholder${block1}`, `${selector}::placeholder${block1}`);
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
// Polyfill for additional 'pointer-events' values
|
|
232
|
+
// See d13f78622b233a0afc0c7a200c0a0792c8ca9e58
|
|
233
|
+
case "pointerEvents": {
|
|
234
|
+
var finalValue = value;
|
|
235
|
+
if (value === "auto" || value === "box-only") {
|
|
236
|
+
if (finalValue = "auto!important", value === "box-only") {
|
|
237
|
+
var block2 = createDeclarationBlock({
|
|
238
|
+
pointerEvents: "none"
|
|
239
|
+
});
|
|
240
|
+
rules.push(`${selector}>*${block2}`);
|
|
241
|
+
}
|
|
242
|
+
} else if ((value === "none" || value === "box-none") && (finalValue = "none!important", value === "box-none")) {
|
|
243
|
+
var block3 = createDeclarationBlock({
|
|
244
|
+
pointerEvents: "auto"
|
|
245
|
+
});
|
|
246
|
+
rules.push(`${selector}>*${block3}`);
|
|
247
|
+
}
|
|
248
|
+
var block4 = createDeclarationBlock({
|
|
249
|
+
pointerEvents: finalValue
|
|
250
|
+
});
|
|
251
|
+
rules.push(`${selector}${block4}`);
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
// Polyfill for draft spec
|
|
255
|
+
// https://drafts.csswg.org/css-scrollbars-1/
|
|
256
|
+
case "scrollbarWidth": {
|
|
257
|
+
value === "none" && rules.push(`${selector}::-webkit-scrollbar{display:none}`);
|
|
258
|
+
var block5 = createDeclarationBlock({
|
|
259
|
+
scrollbarWidth: value
|
|
260
|
+
});
|
|
261
|
+
rules.push(`${selector}${block5}`);
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
default: {
|
|
265
|
+
var block6 = createDeclarationBlock({
|
|
266
|
+
[property]: value
|
|
267
|
+
});
|
|
268
|
+
rules.push(`${selector}${block6}`);
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return rules;
|
|
273
|
+
}
|
|
274
|
+
function createDeclarationBlock(style) {
|
|
275
|
+
var domStyle = (0, import_createReactDOMStyle.default)(style), declarationsString = Object.keys(domStyle).map(function(property) {
|
|
276
|
+
var value = domStyle[property], prop = (0, import_hyphenateStyleName.default)(property);
|
|
277
|
+
return Array.isArray(value) ? value.map(function(v) {
|
|
278
|
+
return `${prop}:${v}`;
|
|
279
|
+
}).join(";") : `${prop}:${value}`;
|
|
280
|
+
}).sort().join(";");
|
|
281
|
+
return `{${declarationsString};}`;
|
|
282
|
+
}
|
|
283
|
+
function createIdentifier(prefix, name, value) {
|
|
284
|
+
var hashedString = (0, import_simple_hash.simpleHash)(name + stringifyValueWithProperty(value, name));
|
|
285
|
+
return process.env.NODE_ENV !== "production" ? `${prefix}-${name}-${hashedString}` : `${prefix}-${hashedString}`;
|
|
286
|
+
}
|
|
287
|
+
function createKeyframes(keyframes) {
|
|
288
|
+
var prefixes = [
|
|
289
|
+
"-webkit-",
|
|
290
|
+
""
|
|
291
|
+
], identifier = createIdentifier("r", "animation", keyframes), steps = "{" + Object.keys(keyframes).map(function(stepName) {
|
|
292
|
+
var rule = keyframes[stepName], block = createDeclarationBlock(rule);
|
|
293
|
+
return `${stepName}${block}`;
|
|
294
|
+
}).join("") + "}", rules = prefixes.map(function(prefix) {
|
|
295
|
+
return `@${prefix}keyframes ${identifier}${steps}`;
|
|
296
|
+
});
|
|
297
|
+
return [
|
|
298
|
+
identifier,
|
|
299
|
+
rules
|
|
300
|
+
];
|
|
301
|
+
}
|
|
302
|
+
function processKeyframesValue(keyframesValue) {
|
|
303
|
+
if (typeof keyframesValue == "number")
|
|
304
|
+
throw new Error(`Invalid CSS keyframes type: ${typeof keyframesValue}`);
|
|
305
|
+
var animationNames = [], rules = [], value = Array.isArray(keyframesValue) ? keyframesValue : [
|
|
306
|
+
keyframesValue
|
|
307
|
+
];
|
|
308
|
+
return value.forEach(function(keyframes) {
|
|
309
|
+
if (typeof keyframes == "string")
|
|
310
|
+
animationNames.push(keyframes);
|
|
311
|
+
else {
|
|
312
|
+
var [identifier, keyframesRules] = createKeyframes(keyframes);
|
|
313
|
+
animationNames.push(identifier), rules.push(...keyframesRules);
|
|
314
|
+
}
|
|
315
|
+
}), [
|
|
316
|
+
animationNames,
|
|
317
|
+
rules
|
|
318
|
+
];
|
|
319
|
+
}
|
|
320
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
321
|
+
0 && (module.exports = {
|
|
322
|
+
atomic,
|
|
323
|
+
classic,
|
|
324
|
+
inline,
|
|
325
|
+
stringifyValueWithProperty
|
|
326
|
+
});
|
|
327
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/index.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQI,yBAA2B,iCAC/B,6BAAgC,2CAChC,4BAA+B,0CAC/B,oCAAuC,kDACnC,QAAQ,oBAAI,IAAI,GAChB,cAAc,CAAC,GACf,eAAe,GACf,cAAc,KACd,cAAc;AAAA,EACd,aAAa;AAAA,EACb,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,iBAAiB;AACrB,GACI,sBAAsB,uBACtB,uBAAuB,wBACvB,yBAAyB,0BACzB,0BAA0B,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E,IAAI,SAAS,UAAU;AAC5D,QAAI,OAAO,UAAU,QAAQ,GACzB,QAAQ,uBAAuB,IAAI;AACvC,WAAO,GAAG,QAAQ,GAAG,KAAK;AAAA,EAC9B,CAAC,EAAE,KAAK,EAAE,IAAI,KACV,QAAQ,SAAS,IAAI,SAAS,QAAQ;AACtC,WAAO,IAAI,MAAM,aAAa,UAAU,GAAG,KAAK;AAAA,EACpD,CAAC;AACD,SAAO;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AACJ;AAGI,SAAS,sBAAsB,gBAAgB;AAC/C,MAAI,OAAO,kBAAmB;AAC1B,UAAM,IAAI,MAAM,+BAA+B,OAAO,cAAc,EAAE;AAE1E,MAAI,iBAAiB,CAAC,GAClB,QAAQ,CAAC,GACT,QAAQ,MAAM,QAAQ,cAAc,IAAI,iBAAiB;AAAA,IACzD;AAAA,EACJ;AACA,eAAM,QAAQ,SAAS,WAAW;AAC9B,QAAI,OAAO,aAAc;AAErB,qBAAe,KAAK,SAAS;AAAA,SAC1B;AAEH,UAAI,CAAC,YAAY,cAAc,IAAI,gBAAgB,SAAS;AAC5D,qBAAe,KAAK,UAAU,GAC9B,MAAM,KAAK,GAAG,cAAc;AAAA,IAChC;AAAA,EACJ,CAAC,GACM;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AACJ;",
|
|
5
|
+
"names": ["left", "right", "i", "ltr", "rtl", "originalProp", "createReactDOMStyle", "normalizeValueWithProperty", "hyphenateStyleName"]
|
|
6
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all) __defProp(target, name, {
|
|
7
9
|
get: all[name],
|
|
@@ -15,19 +17,28 @@ var __export = (target, all) => {
|
|
|
15
17
|
});
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
21
32
|
var normalizeColor_exports = {};
|
|
22
33
|
__export(normalizeColor_exports, {
|
|
23
|
-
|
|
34
|
+
default: () => normalizeColor_default
|
|
24
35
|
});
|
|
25
36
|
module.exports = __toCommonJS(normalizeColor_exports);
|
|
26
|
-
var import_isWebColor = require("../../modules/isWebColor/index.cjs"),
|
|
37
|
+
var import_isWebColor = __toESM(require("../../modules/isWebColor/index.cjs")),
|
|
27
38
|
import_processColor = require("../../modules/processColor/index.cjs");
|
|
28
39
|
const normalizeColor = (color, opacity = 1) => {
|
|
29
40
|
if (color == null) return;
|
|
30
|
-
if (typeof color == "string" && (0, import_isWebColor.
|
|
41
|
+
if (typeof color == "string" && (0, import_isWebColor.default)(color)) return color;
|
|
31
42
|
const colorInt = (0, import_processColor.processColor)(color);
|
|
32
43
|
if (colorInt != null) {
|
|
33
44
|
const r = colorInt >> 16 & 255,
|
|
@@ -37,4 +48,5 @@ const normalizeColor = (color, opacity = 1) => {
|
|
|
37
48
|
return `rgba(${r},${g},${b},${alpha})`;
|
|
38
49
|
}
|
|
39
50
|
if (typeof color == "string") return color;
|
|
40
|
-
};
|
|
51
|
+
};
|
|
52
|
+
var normalizeColor_default = normalizeColor;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
7
|
for (var name in all)
|
|
7
8
|
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -11,16 +12,23 @@ var __export = (target, all) => {
|
|
|
11
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
13
|
return to;
|
|
13
14
|
};
|
|
14
|
-
var
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
23
|
var normalizeColor_exports = {};
|
|
16
24
|
__export(normalizeColor_exports, {
|
|
17
|
-
|
|
25
|
+
default: () => normalizeColor_default
|
|
18
26
|
});
|
|
19
27
|
module.exports = __toCommonJS(normalizeColor_exports);
|
|
20
|
-
var import_isWebColor = require("../../modules/isWebColor"), import_processColor = require("../../modules/processColor");
|
|
28
|
+
var import_isWebColor = __toESM(require("../../modules/isWebColor")), import_processColor = require("../../modules/processColor");
|
|
21
29
|
const normalizeColor = (color, opacity = 1) => {
|
|
22
30
|
if (color == null) return;
|
|
23
|
-
if (typeof color == "string" && (0, import_isWebColor.
|
|
31
|
+
if (typeof color == "string" && (0, import_isWebColor.default)(color))
|
|
24
32
|
return color;
|
|
25
33
|
const colorInt = (0, import_processColor.processColor)(color);
|
|
26
34
|
if (colorInt != null) {
|
|
@@ -30,4 +38,5 @@ const normalizeColor = (color, opacity = 1) => {
|
|
|
30
38
|
if (typeof color == "string")
|
|
31
39
|
return color;
|
|
32
40
|
};
|
|
41
|
+
var normalizeColor_default = normalizeColor;
|
|
33
42
|
//# sourceMappingURL=normalizeColor.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/StyleSheet/compiler/normalizeColor.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,wBAAuB,8CACvB,sBAA6B;AAE7B,MAAM,iBAAiB,CAAC,OAAyB,UAAU,MAAqB;AAC9E,MAAI,SAAS,KAAM;AAEnB,MAAI,OAAO,SAAU,gBAAY,kBAAAA,SAAW,KAAK;AAC/C,WAAO;AAGT,QAAM,eAAW,kCAAa,KAAK;AACnC,MAAI,YAAY,MAAM;AACpB,UAAM,IAAK,YAAY,KAAM,KACvB,IAAK,YAAY,IAAK,KACtB,IAAI,WAAW,KAEf,UADM,YAAY,KAAM,OAAO,MAClB,SAAS,QAAQ,CAAC;AACrC,WAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK;AAAA,EACrC;AAGE,MAAI,OAAO,SAAU;AACnB,WAAO;AAGb;AAEA,IAAO,yBAAQ;",
|
|
5
|
+
"names": ["isWebColor"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var normalizeColor_exports = {};
|
|
25
|
+
__export(normalizeColor_exports, {
|
|
26
|
+
default: () => normalizeColor_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(normalizeColor_exports);
|
|
29
|
+
var import_isWebColor = __toESM(require("../../modules/isWebColor")), import_processColor = require("../../modules/processColor"), normalizeColor = function(color) {
|
|
30
|
+
var opacity = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
31
|
+
if (color != null) {
|
|
32
|
+
if (typeof color == "string" && (0, import_isWebColor.default)(color))
|
|
33
|
+
return color;
|
|
34
|
+
var colorInt = (0, import_processColor.processColor)(color);
|
|
35
|
+
if (colorInt != null) {
|
|
36
|
+
var r = colorInt >> 16 & 255, g = colorInt >> 8 & 255, b = colorInt & 255, a = (colorInt >> 24 & 255) / 255, alpha = (a * opacity).toFixed(2);
|
|
37
|
+
return `rgba(${r},${g},${b},${alpha})`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, normalizeColor_default = normalizeColor;
|
|
41
|
+
//# sourceMappingURL=normalizeColor.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/normalizeColor.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOI,wBAAuB,8CAC3B,sBAA6B,uCACzB,iBAAiB,SAAS,OAAO;AACjC,MAAI,UAAU,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,IAAI;AAC/E,MAAI,SAAS,MACb;AAAA,QAAI,OAAO,SAAU,gBAAY,kBAAAA,SAAW,KAAK;AAC7C,aAAO;AAEX,QAAI,eAAW,kCAAa,KAAK;AACjC,QAAI,YAAY,MAAM;AAClB,UAAI,IAAI,YAAY,KAAK,KACrB,IAAI,YAAY,IAAI,KACpB,IAAI,WAAW,KACf,KAAK,YAAY,KAAK,OAAO,KAC7B,SAAS,IAAI,SAAS,QAAQ,CAAC;AACnC,aAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK;AAAA,IACvC;AAAA;AAMJ,GACO,yBAAQ;",
|
|
5
|
+
"names": ["isWebColor"]
|
|
6
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all) __defProp(target, name, {
|
|
7
9
|
get: all[name],
|
|
@@ -15,16 +17,25 @@ var __export = (target, all) => {
|
|
|
15
17
|
});
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
21
32
|
var normalizeValueWithProperty_exports = {};
|
|
22
33
|
__export(normalizeValueWithProperty_exports, {
|
|
23
|
-
|
|
34
|
+
default: () => normalizeValueWithProperty
|
|
24
35
|
});
|
|
25
36
|
module.exports = __toCommonJS(normalizeValueWithProperty_exports);
|
|
26
37
|
var import_unitlessNumbers = require("../../modules/unitlessNumbers/index.cjs"),
|
|
27
|
-
import_normalizeColor = require("./normalizeColor.cjs");
|
|
38
|
+
import_normalizeColor = __toESM(require("./normalizeColor.cjs"));
|
|
28
39
|
const colorProps = {
|
|
29
40
|
backgroundColor: !0,
|
|
30
41
|
borderColor: !0,
|
|
@@ -39,5 +50,5 @@ const colorProps = {
|
|
|
39
50
|
};
|
|
40
51
|
function normalizeValueWithProperty(value, property) {
|
|
41
52
|
let returnValue = value;
|
|
42
|
-
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.
|
|
53
|
+
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.default)(value)), returnValue;
|
|
43
54
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
7
|
for (var name in all)
|
|
7
8
|
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -11,13 +12,20 @@ var __export = (target, all) => {
|
|
|
11
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
13
|
return to;
|
|
13
14
|
};
|
|
14
|
-
var
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
23
|
var normalizeValueWithProperty_exports = {};
|
|
16
24
|
__export(normalizeValueWithProperty_exports, {
|
|
17
|
-
|
|
25
|
+
default: () => normalizeValueWithProperty
|
|
18
26
|
});
|
|
19
27
|
module.exports = __toCommonJS(normalizeValueWithProperty_exports);
|
|
20
|
-
var import_unitlessNumbers = require("../../modules/unitlessNumbers/index"), import_normalizeColor = require("./normalizeColor");
|
|
28
|
+
var import_unitlessNumbers = require("../../modules/unitlessNumbers/index"), import_normalizeColor = __toESM(require("./normalizeColor"));
|
|
21
29
|
const colorProps = {
|
|
22
30
|
backgroundColor: !0,
|
|
23
31
|
borderColor: !0,
|
|
@@ -32,6 +40,6 @@ const colorProps = {
|
|
|
32
40
|
};
|
|
33
41
|
function normalizeValueWithProperty(value, property) {
|
|
34
42
|
let returnValue = value;
|
|
35
|
-
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.
|
|
43
|
+
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.default)(value)), returnValue;
|
|
36
44
|
}
|
|
37
45
|
//# sourceMappingURL=normalizeValueWithProperty.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/StyleSheet/compiler/normalizeValueWithProperty.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,6BAAgC,gDAChC,wBAA2B;AAE3B,MAAM,aAAa;AAAA,EACjB,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;AAEe,SAAR,2BACL,OACA,UACK;AACL,MAAI,cAAc;AAClB,UAAK,YAAY,QAAQ,CAAC,uCAAgB,QAAQ,MAAM,OAAO,SAAU,WACvE,cAAc,GAAG,KAAK,OACb,YAAY,QAAQ,WAAW,QAAQ,MAChD,kBAAc,sBAAAA,SAAe,KAAK,IAE7B;AACT;",
|
|
5
|
+
"names": ["normalizeColor"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var normalizeValueWithProperty_exports = {};
|
|
25
|
+
__export(normalizeValueWithProperty_exports, {
|
|
26
|
+
default: () => normalizeValueWithProperty
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(normalizeValueWithProperty_exports);
|
|
29
|
+
var import_unitlessNumbers = require("../../modules/unitlessNumbers/index"), import_normalizeColor = __toESM(require("./normalizeColor")), colorProps = {
|
|
30
|
+
backgroundColor: !0,
|
|
31
|
+
borderColor: !0,
|
|
32
|
+
borderTopColor: !0,
|
|
33
|
+
borderRightColor: !0,
|
|
34
|
+
borderBottomColor: !0,
|
|
35
|
+
borderLeftColor: !0,
|
|
36
|
+
color: !0,
|
|
37
|
+
shadowColor: !0,
|
|
38
|
+
textDecorationColor: !0,
|
|
39
|
+
textShadowColor: !0
|
|
40
|
+
};
|
|
41
|
+
function normalizeValueWithProperty(value, property) {
|
|
42
|
+
var returnValue = value;
|
|
43
|
+
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.default)(value)), returnValue;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=normalizeValueWithProperty.js.map
|