@tamagui/react-native-web-internals 2.0.0-rc.3 → 2.0.0-rc.30
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/index.cjs +1 -0
- package/dist/cjs/index.js +58 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/createDOMProps/index.cjs +102 -59
- package/dist/cjs/modules/forwardedProps/index.cjs +1 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +7 -2
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +2 -2
- 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/Platform/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/TextInputState/index.mjs +1 -1
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/createDOMProps/index.mjs +102 -59
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -1
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/forwardedProps/index.mjs +1 -0
- package/dist/esm/modules/forwardedProps/index.mjs.map +1 -1
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/modality/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/processColor/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +6 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/useHover/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs +1 -1
- package/dist/esm/modules/useStable/__tests__/index-test.mjs +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/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,94 +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 createOrderedCSSStyleSheet_exports = {};
|
|
16
|
-
__export(createOrderedCSSStyleSheet_exports, {
|
|
17
|
-
createOrderedCSSStyleSheet: () => createOrderedCSSStyleSheet
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(createOrderedCSSStyleSheet_exports);
|
|
20
|
-
const slice = Array.prototype.slice;
|
|
21
|
-
function createOrderedCSSStyleSheet(sheet) {
|
|
22
|
-
const groups = {}, selectors = {};
|
|
23
|
-
if (sheet != null) {
|
|
24
|
-
let group;
|
|
25
|
-
slice.call(sheet.cssRules).forEach((cssRule, i) => {
|
|
26
|
-
const cssText = cssRule.cssText;
|
|
27
|
-
if (cssText.indexOf("stylesheet-group") > -1)
|
|
28
|
-
group = decodeGroupRule(cssRule), groups[group] = { start: i, rules: [cssText] };
|
|
29
|
-
else {
|
|
30
|
-
const selectorText = getSelectorText(cssText);
|
|
31
|
-
selectorText != null && (selectors[selectorText] = !0, groups[group].rules.push(cssText));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function sheetInsert(sheet2, group, text) {
|
|
36
|
-
const orderedGroups = getOrderedGroups(groups), nextGroupIndex = orderedGroups.indexOf(group) + 1, nextGroup = orderedGroups[nextGroupIndex], position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length, isInserted = insertRuleAt(sheet2, text, position);
|
|
37
|
-
if (isInserted) {
|
|
38
|
-
groups[group].start == null && (groups[group].start = position);
|
|
39
|
-
for (let i = nextGroupIndex; i < orderedGroups.length; i += 1) {
|
|
40
|
-
const groupNumber = orderedGroups[i], previousStart = groups[groupNumber].start || 0;
|
|
41
|
-
groups[groupNumber].start = previousStart + 1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return isInserted;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
/**
|
|
48
|
-
* The textContent of the style sheet.
|
|
49
|
-
*/
|
|
50
|
-
getTextContent() {
|
|
51
|
-
return getOrderedGroups(groups).map((group) => {
|
|
52
|
-
const rules = groups[group].rules, marker = rules.shift();
|
|
53
|
-
return rules.sort(), rules.unshift(marker), rules.join(`
|
|
54
|
-
`);
|
|
55
|
-
}).join(`
|
|
56
|
-
`);
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Insert a rule into the style sheet
|
|
60
|
-
*/
|
|
61
|
-
insert(cssText, groupValue) {
|
|
62
|
-
const group = Number(groupValue);
|
|
63
|
-
if (groups[group] == null) {
|
|
64
|
-
const markerRule = encodeGroupRule(group);
|
|
65
|
-
groups[group] = { start: null, rules: [markerRule] }, sheet != null && sheetInsert(sheet, group, markerRule);
|
|
66
|
-
}
|
|
67
|
-
const selectorText = getSelectorText(cssText);
|
|
68
|
-
selectorText != null && selectors[selectorText] == null && (selectors[selectorText] = !0, groups[group].rules.push(cssText), sheet != null && (sheetInsert(sheet, group, cssText) || groups[group].rules.pop()));
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function encodeGroupRule(group) {
|
|
73
|
-
return `[stylesheet-group="${group}"]{}`;
|
|
74
|
-
}
|
|
75
|
-
const groupPattern = /["']/g;
|
|
76
|
-
function decodeGroupRule(cssRule) {
|
|
77
|
-
return Number(cssRule.selectorText.split(groupPattern)[1]);
|
|
78
|
-
}
|
|
79
|
-
function getOrderedGroups(obj) {
|
|
80
|
-
return Object.keys(obj).map(Number).sort((a, b) => a > b ? 1 : -1);
|
|
81
|
-
}
|
|
82
|
-
const selectorPattern = /\s*([,])\s*/g;
|
|
83
|
-
function getSelectorText(cssText) {
|
|
84
|
-
const selector = cssText.split("{")[0].trim();
|
|
85
|
-
return selector !== "" ? selector.replace(selectorPattern, "$1") : null;
|
|
86
|
-
}
|
|
87
|
-
function insertRuleAt(root, cssText, position) {
|
|
88
|
-
try {
|
|
89
|
-
return root.insertRule(cssText, position), !0;
|
|
90
|
-
} catch {
|
|
91
|
-
return !1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=createOrderedCSSStyleSheet.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BA,MAAM,QAAQ,MAAM,UAAU;AAiBvB,SAAS,2BACd,OACsB;AACtB,QAAM,SAAiB,CAAC,GAClB,YAAuB,CAAC;AAK9B,MAAI,SAAS,MAAM;AACjB,QAAI;AACJ,UAAM,KAAK,MAAM,QAAQ,EAAE,QAAQ,CAAC,SAAS,MAAM;AACjD,YAAM,UAAU,QAAQ;AAExB,UAAI,QAAQ,QAAQ,kBAAkB,IAAI;AACxC,gBAAQ,gBAAgB,OAAO,GAC/B,OAAO,KAAK,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE;AAAA,WACxC;AACL,cAAM,eAAe,gBAAgB,OAAO;AAC5C,QAAI,gBAAgB,SAClB,UAAU,YAAY,IAAI,IAC1B,OAAO,KAAK,EAAE,MAAM,KAAK,OAAO;AAAA,MAEpC;AAAA,IACF,CAAC;AAAA,EACH;AAEA,WAAS,YAAYA,QAAO,OAAO,MAAM;AACvC,UAAM,gBAAgB,iBAAiB,MAAM,GAEvC,iBADa,cAAc,QAAQ,KAAK,IACV,GAC9B,YAAY,cAAc,cAAc,GAExC,WACJ,aAAa,QAAQ,OAAO,SAAS,EAAE,SAAS,OAC5C,OAAO,SAAS,EAAE,QAClBA,OAAM,SAAS,QACf,aAAa,aAAaA,QAAO,MAAM,QAAQ;AAErD,QAAI,YAAY;AAEd,MAAI,OAAO,KAAK,EAAE,SAAS,SACzB,OAAO,KAAK,EAAE,QAAQ;AAGxB,eAAS,IAAI,gBAAgB,IAAI,cAAc,QAAQ,KAAK,GAAG;AAC7D,cAAM,cAAc,cAAc,CAAC,GAC7B,gBAAgB,OAAO,WAAW,EAAE,SAAS;AACnD,eAAO,WAAW,EAAE,QAAQ,gBAAgB;AAAA,MAC9C;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AA0DA,SAxD6B;AAAA;AAAA;AAAA;AAAA,IAI3B,iBAAyB;AACvB,aAAO,iBAAiB,MAAM,EAC3B,IAAI,CAAC,UAAU;AACd,cAAM,QAAQ,OAAO,KAAK,EAAE,OAGtB,SAAS,MAAM,MAAM;AAC3B,qBAAM,KAAK,GACX,MAAM,QAAQ,MAAM,GACb,MAAM,KAAK;AAAA,CAAI;AAAA,MACxB,CAAC,EACA,KAAK;AAAA,CAAI;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IAKA,OAAO,SAAiB,YAAoB;AAC1C,YAAM,QAAQ,OAAO,UAAU;AAG/B,UAAI,OAAO,KAAK,KAAK,MAAM;AACzB,cAAM,aAAa,gBAAgB,KAAK;AAExC,eAAO,KAAK,IAAI,EAAE,OAAO,MAAM,OAAO,CAAC,UAAU,EAAE,GAE/C,SAAS,QACX,YAAY,OAAO,OAAO,UAAU;AAAA,MAExC;AAKA,YAAM,eAAe,gBAAgB,OAAO;AAC5C,MAAI,gBAAgB,QAAQ,UAAU,YAAY,KAAK,SAErD,UAAU,YAAY,IAAI,IAC1B,OAAO,KAAK,EAAE,MAAM,KAAK,OAAO,GAE5B,SAAS,SACQ,YAAY,OAAO,OAAO,OAAO,KAIlD,OAAO,KAAK,EAAE,MAAM,IAAI;AAAA,IAIhC;AAAA,EACF;AAGF;AAMA,SAAS,gBAAgB,OAAO;AAC9B,SAAO,sBAAsB,KAAK;AACpC;AAEA,MAAM,eAAe;AACrB,SAAS,gBAAgB,SAAS;AAChC,SAAO,OAAO,QAAQ,aAAa,MAAM,YAAY,EAAE,CAAC,CAAC;AAC3D;AAEA,SAAS,iBAAiB,KAEvB;AACD,SAAO,OAAO,KAAK,GAAG,EACnB,IAAI,MAAM,EACV,KAAK,CAAC,GAAG,MAAO,IAAI,IAAI,IAAI,EAAG;AACpC;AAEA,MAAM,kBAAkB;AACxB,SAAS,gBAAgB,SAAS;AAChC,QAAM,WAAW,QAAQ,MAAM,GAAG,EAAE,CAAC,EAAE,KAAK;AAC5C,SAAO,aAAa,KAAK,SAAS,QAAQ,iBAAiB,IAAI,IAAI;AACrE;AAEA,SAAS,aAAa,MAAM,SAAiB,UAA2B;AACtE,MAAI;AAEF,gBAAK,WAAW,SAAS,QAAQ,GAC1B;AAAA,EACT,QAAY;AAGV,WAAO;AAAA,EACT;AACF;",
|
|
5
|
-
"names": ["sheet"]
|
|
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 dom_exports = {};
|
|
16
|
-
__export(dom_exports, {
|
|
17
|
-
createSheet: () => createSheet
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(dom_exports);
|
|
20
|
-
var import_canUseDOM = require("../../modules/canUseDOM"), import_createCSSStyleSheet = require("./createCSSStyleSheet"), import_createOrderedCSSStyleSheet = require("./createOrderedCSSStyleSheet");
|
|
21
|
-
const defaultId = "react-native-stylesheet", roots = /* @__PURE__ */ new WeakMap(), sheets = [], initialRules = [
|
|
22
|
-
// minimal top-level reset
|
|
23
|
-
"html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}",
|
|
24
|
-
"body{margin:0;}",
|
|
25
|
-
// minimal form pseudo-element reset
|
|
26
|
-
"button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}",
|
|
27
|
-
"input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"
|
|
28
|
-
];
|
|
29
|
-
function createSheet(root, id = defaultId) {
|
|
30
|
-
let sheet;
|
|
31
|
-
function createSheet2() {
|
|
32
|
-
if (!sheet)
|
|
33
|
-
if (import_canUseDOM.canUseDOM) {
|
|
34
|
-
const rootNode = root != null ? root.getRootNode() : document;
|
|
35
|
-
if (sheets.length === 0)
|
|
36
|
-
sheet = (0, import_createOrderedCSSStyleSheet.createOrderedCSSStyleSheet)((0, import_createCSSStyleSheet.createCSSStyleSheet)(id)), initialRules.forEach((rule) => {
|
|
37
|
-
sheet.insert(rule, 0);
|
|
38
|
-
}), roots.set(rootNode, sheets.length), sheets.push(sheet);
|
|
39
|
-
else {
|
|
40
|
-
const index = roots.get(rootNode);
|
|
41
|
-
if (index == null) {
|
|
42
|
-
const initialSheet = sheets[0], textContent = initialSheet != null ? initialSheet.getTextContent() : "";
|
|
43
|
-
sheet = (0, import_createOrderedCSSStyleSheet.createOrderedCSSStyleSheet)(
|
|
44
|
-
(0, import_createCSSStyleSheet.createCSSStyleSheet)(id, rootNode, textContent)
|
|
45
|
-
), roots.set(rootNode, sheets.length), sheets.push(sheet);
|
|
46
|
-
} else
|
|
47
|
-
sheet = sheets[index];
|
|
48
|
-
}
|
|
49
|
-
} else
|
|
50
|
-
sheets.length === 0 ? (sheet = (0, import_createOrderedCSSStyleSheet.createOrderedCSSStyleSheet)((0, import_createCSSStyleSheet.createCSSStyleSheet)(id)), initialRules.forEach((rule) => {
|
|
51
|
-
sheet.insert(rule, 0);
|
|
52
|
-
}), sheets.push(sheet)) : sheet = sheets[0];
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
getTextContent() {
|
|
56
|
-
return createSheet2(), sheet.getTextContent();
|
|
57
|
-
},
|
|
58
|
-
id,
|
|
59
|
-
insert(cssText, groupValue) {
|
|
60
|
-
createSheet2(), sheets.forEach((s) => {
|
|
61
|
-
s.insert(cssText, groupValue);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/StyleSheet/dom/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,uBAA0B,oCAC1B,6BAAoC,kCAEpC,oCAA2C;AAM3C,MAAM,YAAY,2BACZ,QAAQ,oBAAI,QAAsB,GAClC,SAAS,CAAC,GAEV,eAAe;AAAA;AAAA,EAEnB;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AACF;AAEO,SAAS,YAAY,MAAoB,KAAK,WAAkB;AACrE,MAAI;AAEJ,WAASA,eAAc;AACrB,QAAI;AAEJ,UAAI,4BAAW;AACb,cAAM,WAAiB,QAAQ,OAAO,KAAK,YAAY,IAAI;AAE3D,YAAI,OAAO,WAAW;AACpB,sBAAQ,kEAA2B,gDAAoB,EAAE,CAAC,GAC1D,aAAa,QAAQ,CAAC,SAAS;AAC7B,kBAAM,OAAO,MAAM,CAAC;AAAA,UACtB,CAAC,GACD,MAAM,IAAI,UAAU,OAAO,MAAM,GACjC,OAAO,KAAK,KAAK;AAAA,aACZ;AACL,gBAAM,QAAQ,MAAM,IAAI,QAAQ;AAChC,cAAI,SAAS,MAAM;AACjB,kBAAM,eAAe,OAAO,CAAC,GAEvB,cAAc,gBAAgB,OAAO,aAAa,eAAe,IAAI;AAE3E,wBAAQ;AAAA,kBACN,gDAAoB,IAAI,UAAiB,WAAW;AAAA,YACtD,GACA,MAAM,IAAI,UAAU,OAAO,MAAM,GACjC,OAAO,KAAK,KAAK;AAAA,UACnB;AACE,oBAAQ,OAAO,KAAK;AAAA,QAExB;AAAA,MACF;AAEE,QAAI,OAAO,WAAW,KACpB,YAAQ,kEAA2B,gDAAoB,EAAE,CAAC,GAC1D,aAAa,QAAQ,CAAC,SAAS;AAC7B,gBAAM,OAAO,MAAM,CAAC;AAAA,QACtB,CAAC,GACD,OAAO,KAAK,KAAK,KAEjB,QAAQ,OAAO,CAAC;AAAA,EAGtB;AAEA,SAAO;AAAA,IACL,iBAAiB;AACf,aAAAA,aAAY,GACL,MAAM,eAAe;AAAA,IAC9B;AAAA,IACA;AAAA,IACA,OAAO,SAAiB,YAAoB;AAC1C,MAAAA,aAAY,GACZ,OAAO,QAAQ,CAAC,MAAM;AACpB,UAAE,OAAO,SAAS,UAAU;AAAA,MAC9B,CAAC;AAAA,IACH;AAAA,EACF;AACF;",
|
|
5
|
-
"names": ["createSheet"]
|
|
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
|
-
}
|
|
@@ -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
|