@hanzogui/react-native-web-internals 8.3.0 → 8.3.2
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/compiler/createReactDOMStyle.js +214 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js.map +1 -0
- package/dist/cjs/StyleSheet/compiler/hash.js +6 -0
- package/dist/cjs/StyleSheet/compiler/hash.js.map +1 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js +25 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js.map +1 -0
- package/dist/cjs/StyleSheet/compiler/index.js +409 -0
- package/dist/cjs/StyleSheet/compiler/index.js.map +1 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js +36 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js.map +1 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js +36 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js.map +1 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js +28 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js.map +1 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js +42 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js.map +1 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js +163 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +1 -0
- package/dist/cjs/StyleSheet/dom/index.js +87 -0
- package/dist/cjs/StyleSheet/dom/index.js.map +1 -0
- package/dist/cjs/StyleSheet/index.js +74 -0
- package/dist/cjs/StyleSheet/index.js.map +1 -0
- package/dist/cjs/StyleSheet/preprocess.js +99 -0
- package/dist/cjs/StyleSheet/preprocess.js.map +1 -0
- package/dist/cjs/StyleSheet/validate.js +90 -0
- package/dist/cjs/StyleSheet/validate.js.map +1 -0
- package/dist/cjs/TextAncestorContext.js +14 -0
- package/dist/cjs/TextAncestorContext.js.map +1 -0
- package/dist/cjs/colorProps.js +16 -0
- package/dist/cjs/colorProps.js.map +1 -0
- package/dist/cjs/index.js +83 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/modules/AccessibilityUtil/index.js +20 -0
- package/dist/cjs/modules/AccessibilityUtil/index.js.map +1 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js +16 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js.map +1 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js +52 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +1 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js +36 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js.map +1 -0
- package/dist/cjs/modules/AssetRegistry/index.js +22 -0
- package/dist/cjs/modules/AssetRegistry/index.js.map +1 -0
- package/dist/cjs/modules/ImageLoader/index.js +149 -0
- package/dist/cjs/modules/ImageLoader/index.js.map +1 -0
- package/dist/cjs/modules/InteractionManager.js +235 -0
- package/dist/cjs/modules/InteractionManager.js.map +1 -0
- package/dist/cjs/modules/Platform/index.js +18 -0
- package/dist/cjs/modules/Platform/index.js.map +1 -0
- package/dist/cjs/modules/TextInputState/index.js +61 -0
- package/dist/cjs/modules/TextInputState/index.js.map +1 -0
- package/dist/cjs/modules/UIManager/index.js +60 -0
- package/dist/cjs/modules/UIManager/index.js.map +1 -0
- package/dist/cjs/modules/canUseDOM.js +15 -0
- package/dist/cjs/modules/canUseDOM.js.map +1 -0
- package/dist/cjs/modules/createDOMProps/index.js +357 -0
- package/dist/cjs/modules/createDOMProps/index.js.map +1 -0
- package/dist/cjs/modules/createEventHandle/index.js +84 -0
- package/dist/cjs/modules/createEventHandle/index.js.map +1 -0
- package/dist/cjs/modules/dismissKeyboard/index.js +17 -0
- package/dist/cjs/modules/dismissKeyboard/index.js.map +1 -0
- package/dist/cjs/modules/forwardedProps/index.js +138 -0
- package/dist/cjs/modules/forwardedProps/index.js.map +1 -0
- package/dist/cjs/modules/getBoundingClientRect/index.js +21 -0
- package/dist/cjs/modules/getBoundingClientRect/index.js.map +1 -0
- package/dist/cjs/modules/invariant.js +26 -0
- package/dist/cjs/modules/invariant.js.map +1 -0
- package/dist/cjs/modules/isSelectionValid/index.js +23 -0
- package/dist/cjs/modules/isSelectionValid/index.js.map +1 -0
- package/dist/cjs/modules/isWebColor/index.js +17 -0
- package/dist/cjs/modules/isWebColor/index.js.map +1 -0
- package/dist/cjs/modules/mergeRefs/index.js +31 -0
- package/dist/cjs/modules/mergeRefs/index.js.map +1 -0
- package/dist/cjs/modules/modality/index.js +206 -0
- package/dist/cjs/modules/modality/index.js.map +1 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js +28 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js.map +1 -0
- package/dist/cjs/modules/normalizeColor/index.js +31 -0
- package/dist/cjs/modules/normalizeColor/index.js.map +1 -0
- package/dist/cjs/modules/pick/index.js +23 -0
- package/dist/cjs/modules/pick/index.js.map +1 -0
- package/dist/cjs/modules/processColor/index.js +29 -0
- package/dist/cjs/modules/processColor/index.js.map +1 -0
- package/dist/cjs/modules/requestIdleCallback/index.js +34 -0
- package/dist/cjs/modules/requestIdleCallback/index.js.map +1 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js +68 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js.map +1 -0
- package/dist/cjs/modules/setValueForStyles/index.js +41 -0
- package/dist/cjs/modules/setValueForStyles/index.js.map +1 -0
- package/dist/cjs/modules/unitlessNumbers/index.js +79 -0
- package/dist/cjs/modules/unitlessNumbers/index.js.map +1 -0
- package/dist/cjs/modules/useElementLayout/index.js +22 -0
- package/dist/cjs/modules/useElementLayout/index.js.map +1 -0
- package/dist/cjs/modules/useEvent/index.js +51 -0
- package/dist/cjs/modules/useEvent/index.js.map +1 -0
- package/dist/cjs/modules/useHover/index.js +146 -0
- package/dist/cjs/modules/useHover/index.js.map +1 -0
- package/dist/cjs/modules/useLayoutEffect/index.js +18 -0
- package/dist/cjs/modules/useLayoutEffect/index.js.map +1 -0
- package/dist/cjs/modules/useLocale/index.js +36 -0
- package/dist/cjs/modules/useLocale/index.js.map +1 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.js +73 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.js.map +1 -0
- package/dist/cjs/modules/useMergeRefs/index.js +20 -0
- package/dist/cjs/modules/useMergeRefs/index.js.map +1 -0
- package/dist/cjs/modules/usePlatformMethods/index.js +30 -0
- package/dist/cjs/modules/usePlatformMethods/index.js.map +1 -0
- package/dist/cjs/modules/useStable/index.js +25 -0
- package/dist/cjs/modules/useStable/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/styleTypes.js +11 -0
- package/dist/cjs/styleTypes.js.map +1 -0
- package/dist/cjs/types.js +11 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js +209 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/hash.js +2 -0
- package/dist/esm/StyleSheet/compiler/hash.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js +22 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/index.js +403 -0
- package/dist/esm/StyleSheet/compiler/index.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.js +32 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js +33 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js +24 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js.map +1 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js +39 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js.map +1 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js +160 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +1 -0
- package/dist/esm/StyleSheet/dom/index.js +84 -0
- package/dist/esm/StyleSheet/dom/index.js.map +1 -0
- package/dist/esm/StyleSheet/index.js +70 -0
- package/dist/esm/StyleSheet/index.js.map +1 -0
- package/dist/esm/StyleSheet/preprocess.js +93 -0
- package/dist/esm/StyleSheet/preprocess.js.map +1 -0
- package/dist/esm/StyleSheet/validate.js +87 -0
- package/dist/esm/StyleSheet/validate.js.map +1 -0
- package/dist/esm/TextAncestorContext.js +11 -0
- package/dist/esm/TextAncestorContext.js.map +1 -0
- package/dist/esm/colorProps.js +13 -0
- package/dist/esm/colorProps.js.map +1 -0
- package/dist/esm/index.js +44 -45
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/index.js +17 -0
- package/dist/esm/modules/AccessibilityUtil/index.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js +12 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js +48 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js +32 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js.map +1 -0
- package/dist/esm/modules/AssetRegistry/index.js +18 -0
- package/dist/esm/modules/AssetRegistry/index.js.map +1 -0
- package/dist/esm/modules/ImageLoader/index.js +145 -0
- package/dist/esm/modules/ImageLoader/index.js.map +1 -0
- package/dist/esm/modules/InteractionManager.js +232 -0
- package/dist/esm/modules/InteractionManager.js.map +1 -0
- package/dist/esm/modules/Platform/index.js +15 -0
- package/dist/esm/modules/Platform/index.js.map +1 -0
- package/dist/esm/modules/TextInputState/index.js +58 -0
- package/dist/esm/modules/TextInputState/index.js.map +1 -0
- package/dist/esm/modules/UIManager/index.js +57 -0
- package/dist/esm/modules/UIManager/index.js.map +1 -0
- package/dist/esm/modules/canUseDOM.js +12 -0
- package/dist/esm/modules/canUseDOM.js.map +1 -0
- package/dist/esm/modules/createDOMProps/index.js +353 -0
- package/dist/esm/modules/createDOMProps/index.js.map +1 -0
- package/dist/esm/modules/createEventHandle/index.js +82 -0
- package/dist/esm/modules/createEventHandle/index.js.map +1 -0
- package/dist/esm/modules/dismissKeyboard/index.js +13 -0
- package/dist/esm/modules/dismissKeyboard/index.js.map +1 -0
- package/dist/esm/modules/forwardedProps/index.js +135 -0
- package/dist/esm/modules/forwardedProps/index.js.map +1 -0
- package/dist/esm/modules/getBoundingClientRect/index.js +17 -0
- package/dist/esm/modules/getBoundingClientRect/index.js.map +1 -0
- package/dist/esm/modules/invariant.js +22 -0
- package/dist/esm/modules/invariant.js.map +1 -0
- package/dist/esm/modules/isSelectionValid/index.js +20 -0
- package/dist/esm/modules/isSelectionValid/index.js.map +1 -0
- package/dist/esm/modules/isWebColor/index.js +13 -0
- package/dist/esm/modules/isWebColor/index.js.map +1 -0
- package/dist/esm/modules/mergeRefs/index.js +28 -0
- package/dist/esm/modules/mergeRefs/index.js.map +1 -0
- package/dist/esm/modules/modality/index.js +200 -0
- package/dist/esm/modules/modality/index.js.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.js +24 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.js.map +1 -0
- package/dist/esm/modules/normalizeColor/index.js +27 -0
- package/dist/esm/modules/normalizeColor/index.js.map +1 -0
- package/dist/esm/modules/pick/index.js +20 -0
- package/dist/esm/modules/pick/index.js.map +1 -0
- package/dist/esm/modules/processColor/index.js +24 -0
- package/dist/esm/modules/processColor/index.js.map +1 -0
- package/dist/esm/modules/requestIdleCallback/index.js +31 -0
- package/dist/esm/modules/requestIdleCallback/index.js.map +1 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js +65 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js.map +1 -0
- package/dist/esm/modules/setValueForStyles/index.js +38 -0
- package/dist/esm/modules/setValueForStyles/index.js.map +1 -0
- package/dist/esm/modules/unitlessNumbers/index.js +76 -0
- package/dist/esm/modules/unitlessNumbers/index.js.map +1 -0
- package/dist/esm/modules/useElementLayout/index.js +19 -0
- package/dist/esm/modules/useElementLayout/index.js.map +1 -0
- package/dist/esm/modules/useEvent/index.js +48 -0
- package/dist/esm/modules/useEvent/index.js.map +1 -0
- package/dist/esm/modules/useHover/index.js +143 -0
- package/dist/esm/modules/useHover/index.js.map +1 -0
- package/dist/esm/modules/useLayoutEffect/index.js +14 -0
- package/dist/esm/modules/useLayoutEffect/index.js.map +1 -0
- package/dist/esm/modules/useLocale/index.js +30 -0
- package/dist/esm/modules/useLocale/index.js.map +1 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.js +70 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.js.map +1 -0
- package/dist/esm/modules/useMergeRefs/index.js +16 -0
- package/dist/esm/modules/useMergeRefs/index.js.map +1 -0
- package/dist/esm/modules/usePlatformMethods/index.js +27 -0
- package/dist/esm/modules/usePlatformMethods/index.js.map +1 -0
- package/dist/esm/modules/useStable/index.js +21 -0
- package/dist/esm/modules/useStable/index.js.map +1 -0
- package/dist/esm/styleTypes.js +10 -0
- package/dist/esm/styleTypes.js.map +1 -0
- package/dist/esm/types.js +10 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +21 -18
- package/src/StyleSheet/__tests__/compiler-createReactDOMStyle-test.tsx +1 -1
- package/src/StyleSheet/__tests__/compiler-test.tsx +2 -2
- package/src/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.tsx +1 -1
- package/src/StyleSheet/__tests__/index-test.tsx +1 -1
- package/src/StyleSheet/__tests__/preprocess-test.tsx +1 -1
- package/src/StyleSheet/__tests__/validate-test.tsx +1 -1
- package/src/StyleSheet/compiler/createReactDOMStyle.tsx +2 -2
- package/src/StyleSheet/compiler/index.tsx +3 -3
- package/src/StyleSheet/compiler/normalizeColor.tsx +2 -2
- package/src/StyleSheet/compiler/normalizeValueWithProperty.tsx +2 -2
- package/src/StyleSheet/compiler/resolveShadowValue.tsx +2 -2
- package/src/StyleSheet/dom/createCSSStyleSheet.tsx +1 -1
- package/src/StyleSheet/dom/index.tsx +4 -4
- package/src/StyleSheet/preprocess.tsx +2 -2
- package/src/index.tsx +42 -42
- package/src/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.tsx +1 -1
- package/src/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.tsx +1 -1
- package/src/modules/AccessibilityUtil/index.tsx +3 -3
- package/src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx +1 -1
- package/src/modules/InteractionManager.tsx +2 -2
- package/src/modules/Platform/__tests__/index-test.tsx +1 -1
- package/src/modules/TextInputState/index.tsx +1 -1
- package/src/modules/UIManager/__tests__/index-test.tsx +1 -1
- package/src/modules/createDOMProps/__tests__/index-test.tsx +1 -1
- package/src/modules/createDOMProps/index.tsx +1 -1
- package/src/modules/createEventHandle/__tests__/index-test.tsx +1 -1
- package/src/modules/createEventHandle/index.tsx +1 -1
- package/src/modules/dismissKeyboard/index.tsx +1 -1
- package/src/modules/mergeRefs/__tests__/index-test.tsx +1 -1
- package/src/modules/modality/__tests__/index-test.tsx +5 -1
- package/src/modules/modality/index.tsx +2 -2
- package/src/modules/multiplyStyleLengthValue/__tests__/index-test.tsx +1 -1
- package/src/modules/normalizeColor/index.tsx +2 -2
- package/src/modules/processColor/__tests__/index-test.tsx +1 -1
- package/src/modules/requestIdleCallback/index.tsx +1 -1
- package/src/modules/setValueForStyles/dangerousStyleValue.tsx +2 -2
- package/src/modules/setValueForStyles/index.tsx +1 -1
- package/src/modules/useElementLayout/index.tsx +1 -1
- package/src/modules/useEvent/__tests__/index-test.tsx +1 -1
- package/src/modules/useEvent/index.tsx +3 -3
- package/src/modules/useHover/__tests__/index-test.tsx +2 -2
- package/src/modules/useHover/index.tsx +3 -3
- package/src/modules/useLayoutEffect/index.ts +1 -1
- package/src/modules/useLocale/index.tsx +1 -1
- package/src/modules/useMergeRefs/__tests__/index-test.tsx +1 -1
- package/src/modules/useMergeRefs/index.tsx +1 -1
- package/src/modules/usePlatformMethods/index.tsx +2 -2
- package/src/modules/useStable/__tests__/index-test.tsx +1 -1
- package/src/styleTypes.ts +1 -1
- package/types/StyleSheet/compiler/createReactDOMStyle.d.ts.map +1 -1
- package/types/StyleSheet/compiler/normalizeColor.d.ts.map +1 -1
- package/types/StyleSheet/compiler/resolveShadowValue.d.ts.map +1 -1
- package/types/StyleSheet/dom/index.d.ts +1 -1
- package/types/StyleSheet/dom/index.d.ts.map +1 -1
- package/types/StyleSheet/index.d.ts +15 -16
- package/types/StyleSheet/index.d.ts.map +1 -1
- package/types/StyleSheet/preprocess.d.ts +1 -1
- package/types/StyleSheet/preprocess.d.ts.map +1 -1
- package/types/colorProps.d.ts.map +1 -1
- package/types/index.d.ts +42 -42
- package/types/index.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/index.d.ts +6 -5
- package/types/modules/AccessibilityUtil/index.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/isDisabled.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts.map +1 -1
- package/types/modules/ImageLoader/index.d.ts +1 -1
- package/types/modules/ImageLoader/index.d.ts.map +1 -1
- package/types/modules/InteractionManager.d.ts +3 -3
- package/types/modules/InteractionManager.d.ts.map +1 -1
- package/types/modules/Platform/index.d.ts.map +1 -1
- package/types/modules/TextInputState/index.d.ts.map +1 -1
- package/types/modules/createDOMProps/index.d.ts.map +1 -1
- package/types/modules/forwardedProps/index.d.ts +70 -70
- package/types/modules/forwardedProps/index.d.ts.map +1 -1
- package/types/modules/getBoundingClientRect/index.d.ts.map +1 -1
- package/types/modules/isWebColor/index.d.ts.map +1 -1
- package/types/modules/multiplyStyleLengthValue/index.d.ts.map +1 -1
- package/types/modules/normalizeColor/index.d.ts.map +1 -1
- package/types/modules/processColor/index.d.ts.map +1 -1
- package/types/modules/requestIdleCallback/index.d.ts +3 -1
- package/types/modules/requestIdleCallback/index.d.ts.map +1 -1
- 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/useLayoutEffect/index.d.ts +1 -1
- package/types/modules/useLayoutEffect/index.d.ts.map +1 -1
- package/types/modules/usePlatformMethods/index.d.ts +1 -1
- package/types/modules/usePlatformMethods/index.d.ts.map +1 -1
- package/types/styleTypes.d.ts +1 -1
- package/types/styleTypes.d.ts.map +1 -1
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.cjs +0 -265
- package/dist/cjs/StyleSheet/__tests__/compiler-test.cjs +0 -419
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.cjs +0 -160
- package/dist/cjs/StyleSheet/__tests__/index-test.cjs +0 -436
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.cjs +0 -121
- package/dist/cjs/StyleSheet/__tests__/validate-test.cjs +0 -51
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +0 -160
- package/dist/cjs/StyleSheet/compiler/hash.cjs +0 -28
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +0 -40
- package/dist/cjs/StyleSheet/compiler/index.cjs +0 -379
- package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +0 -36
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +0 -50
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +0 -52
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +0 -52
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +0 -135
- package/dist/cjs/StyleSheet/dom/index.cjs +0 -89
- package/dist/cjs/StyleSheet/index.cjs +0 -64
- package/dist/cjs/StyleSheet/preprocess.cjs +0 -114
- package/dist/cjs/StyleSheet/validate.cjs +0 -92
- package/dist/cjs/TextAncestorContext.cjs +0 -29
- package/dist/cjs/colorProps.cjs +0 -39
- package/dist/cjs/index.cjs +0 -105
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +0 -57
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +0 -46
- package/dist/cjs/modules/AccessibilityUtil/index.cjs +0 -35
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +0 -28
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +0 -64
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +0 -51
- package/dist/cjs/modules/AssetRegistry/index.cjs +0 -35
- package/dist/cjs/modules/ImageLoader/index.cjs +0 -157
- package/dist/cjs/modules/InteractionManager.cjs +0 -240
- package/dist/cjs/modules/Platform/__tests__/index-test.cjs +0 -56
- package/dist/cjs/modules/Platform/index.cjs +0 -32
- package/dist/cjs/modules/TextInputState/index.cjs +0 -70
- package/dist/cjs/modules/UIManager/__tests__/index-test.cjs +0 -111
- package/dist/cjs/modules/UIManager/index.cjs +0 -65
- package/dist/cjs/modules/canUseDOM.cjs +0 -28
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +0 -177
- package/dist/cjs/modules/createDOMProps/index.cjs +0 -387
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +0 -422
- package/dist/cjs/modules/createEventHandle/index.cjs +0 -88
- package/dist/cjs/modules/dismissKeyboard/index.cjs +0 -31
- package/dist/cjs/modules/forwardedProps/index.cjs +0 -163
- package/dist/cjs/modules/getBoundingClientRect/index.cjs +0 -35
- package/dist/cjs/modules/invariant.cjs +0 -42
- package/dist/cjs/modules/isSelectionValid/index.cjs +0 -36
- package/dist/cjs/modules/isWebColor/index.cjs +0 -28
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +0 -48
- package/dist/cjs/modules/mergeRefs/index.cjs +0 -45
- package/dist/cjs/modules/modality/__tests__/index-test.cjs +0 -59
- package/dist/cjs/modules/modality/index.cjs +0 -212
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.cjs +0 -38
- package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +0 -41
- package/dist/cjs/modules/normalizeColor/index.cjs +0 -44
- package/dist/cjs/modules/pick/index.cjs +0 -38
- package/dist/cjs/modules/processColor/__tests__/index-test.cjs +0 -85
- package/dist/cjs/modules/processColor/index.cjs +0 -50
- package/dist/cjs/modules/requestIdleCallback/index.cjs +0 -46
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +0 -55
- package/dist/cjs/modules/setValueForStyles/index.cjs +0 -46
- package/dist/cjs/modules/unitlessNumbers/index.cjs +0 -89
- package/dist/cjs/modules/useElementLayout/index.cjs +0 -44
- package/dist/cjs/modules/useEvent/__tests__/index-test.cjs +0 -490
- package/dist/cjs/modules/useEvent/index.cjs +0 -57
- package/dist/cjs/modules/useHover/__tests__/index-test.cjs +0 -382
- package/dist/cjs/modules/useHover/index.cjs +0 -140
- package/dist/cjs/modules/useLayoutEffect/index.cjs +0 -41
- package/dist/cjs/modules/useLocale/index.cjs +0 -69
- package/dist/cjs/modules/useLocale/isLocaleRTL.cjs +0 -88
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +0 -125
- package/dist/cjs/modules/useMergeRefs/index.cjs +0 -45
- package/dist/cjs/modules/usePlatformMethods/index.cjs +0 -42
- package/dist/cjs/modules/useStable/__tests__/index-test.cjs +0 -122
- package/dist/cjs/modules/useStable/index.cjs +0 -47
- package/dist/cjs/styleTypes.cjs +0 -18
- package/dist/cjs/types.cjs +0 -18
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs +0 -242
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs +0 -420
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs +0 -137
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/index-test.mjs +0 -413
- package/dist/esm/StyleSheet/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs +0 -122
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs +0 -52
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +0 -134
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/hash.mjs +0 -3
- package/dist/esm/StyleSheet/compiler/hash.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs +0 -15
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/index.mjs +0 -351
- package/dist/esm/StyleSheet/compiler/index.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +0 -11
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs +0 -25
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs +0 -27
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +0 -1
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs +0 -27
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs.map +0 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs +0 -110
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +0 -1
- package/dist/esm/StyleSheet/dom/index.mjs +0 -64
- package/dist/esm/StyleSheet/dom/index.mjs.map +0 -1
- package/dist/esm/StyleSheet/index.mjs +0 -38
- package/dist/esm/StyleSheet/index.mjs.map +0 -1
- package/dist/esm/StyleSheet/preprocess.mjs +0 -86
- package/dist/esm/StyleSheet/preprocess.mjs.map +0 -1
- package/dist/esm/StyleSheet/validate.mjs +0 -67
- package/dist/esm/StyleSheet/validate.mjs.map +0 -1
- package/dist/esm/TextAncestorContext.mjs +0 -4
- package/dist/esm/TextAncestorContext.mjs.map +0 -1
- package/dist/esm/colorProps.mjs +0 -14
- package/dist/esm/colorProps.mjs.map +0 -1
- package/dist/esm/index.mjs +0 -45
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs +0 -34
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs +0 -23
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/index.mjs +0 -10
- package/dist/esm/modules/AccessibilityUtil/index.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs +0 -3
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +0 -39
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +0 -26
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +0 -1
- package/dist/esm/modules/AssetRegistry/index.mjs +0 -9
- package/dist/esm/modules/AssetRegistry/index.mjs.map +0 -1
- package/dist/esm/modules/ImageLoader/index.mjs +0 -131
- package/dist/esm/modules/ImageLoader/index.mjs.map +0 -1
- package/dist/esm/modules/InteractionManager.mjs +0 -215
- package/dist/esm/modules/InteractionManager.mjs.map +0 -1
- package/dist/esm/modules/Platform/__tests__/index-test.mjs +0 -33
- package/dist/esm/modules/Platform/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/Platform/index.mjs +0 -7
- package/dist/esm/modules/Platform/index.mjs.map +0 -1
- package/dist/esm/modules/TextInputState/index.mjs +0 -45
- package/dist/esm/modules/TextInputState/index.mjs.map +0 -1
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs +0 -88
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/UIManager/index.mjs +0 -40
- package/dist/esm/modules/UIManager/index.mjs.map +0 -1
- package/dist/esm/modules/canUseDOM.mjs +0 -3
- package/dist/esm/modules/canUseDOM.mjs.map +0 -1
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs +0 -154
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/createDOMProps/index.mjs +0 -361
- package/dist/esm/modules/createDOMProps/index.mjs.map +0 -1
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs +0 -399
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/createEventHandle/index.mjs +0 -61
- package/dist/esm/modules/createEventHandle/index.mjs.map +0 -1
- package/dist/esm/modules/dismissKeyboard/index.mjs +0 -6
- package/dist/esm/modules/dismissKeyboard/index.mjs.map +0 -1
- package/dist/esm/modules/forwardedProps/index.mjs +0 -128
- package/dist/esm/modules/forwardedProps/index.mjs.map +0 -1
- package/dist/esm/modules/getBoundingClientRect/index.mjs +0 -10
- package/dist/esm/modules/getBoundingClientRect/index.mjs.map +0 -1
- package/dist/esm/modules/invariant.mjs +0 -16
- package/dist/esm/modules/invariant.mjs.map +0 -1
- package/dist/esm/modules/isSelectionValid/index.mjs +0 -11
- package/dist/esm/modules/isSelectionValid/index.mjs.map +0 -1
- package/dist/esm/modules/isWebColor/index.mjs +0 -3
- package/dist/esm/modules/isWebColor/index.mjs.map +0 -1
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs +0 -25
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/mergeRefs/index.mjs +0 -20
- package/dist/esm/modules/mergeRefs/index.mjs.map +0 -1
- package/dist/esm/modules/modality/__tests__/index-test.mjs +0 -60
- package/dist/esm/modules/modality/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/modality/index.mjs +0 -184
- package/dist/esm/modules/modality/index.mjs.map +0 -1
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs +0 -15
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs +0 -16
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +0 -1
- package/dist/esm/modules/normalizeColor/index.mjs +0 -19
- package/dist/esm/modules/normalizeColor/index.mjs.map +0 -1
- package/dist/esm/modules/pick/index.mjs +0 -13
- package/dist/esm/modules/pick/index.mjs.map +0 -1
- package/dist/esm/modules/processColor/__tests__/index-test.mjs +0 -62
- package/dist/esm/modules/processColor/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/processColor/index.mjs +0 -14
- package/dist/esm/modules/processColor/index.mjs.map +0 -1
- package/dist/esm/modules/requestIdleCallback/index.mjs +0 -20
- package/dist/esm/modules/requestIdleCallback/index.mjs.map +0 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +0 -30
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +0 -1
- package/dist/esm/modules/setValueForStyles/index.mjs +0 -21
- package/dist/esm/modules/setValueForStyles/index.mjs.map +0 -1
- package/dist/esm/modules/unitlessNumbers/index.mjs +0 -64
- package/dist/esm/modules/unitlessNumbers/index.mjs.map +0 -1
- package/dist/esm/modules/useElementLayout/index.mjs +0 -19
- package/dist/esm/modules/useElementLayout/index.mjs.map +0 -1
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs +0 -467
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useEvent/index.mjs +0 -32
- package/dist/esm/modules/useEvent/index.mjs.map +0 -1
- package/dist/esm/modules/useHover/__tests__/index-test.mjs +0 -359
- package/dist/esm/modules/useHover/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useHover/index.mjs +0 -115
- package/dist/esm/modules/useHover/index.mjs.map +0 -1
- package/dist/esm/modules/useLayoutEffect/index.mjs +0 -5
- package/dist/esm/modules/useLayoutEffect/index.mjs.map +0 -1
- package/dist/esm/modules/useLocale/index.mjs +0 -31
- package/dist/esm/modules/useLocale/index.mjs.map +0 -1
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs +0 -63
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +0 -1
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs +0 -102
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useMergeRefs/index.mjs +0 -9
- package/dist/esm/modules/useMergeRefs/index.mjs.map +0 -1
- package/dist/esm/modules/usePlatformMethods/index.mjs +0 -17
- package/dist/esm/modules/usePlatformMethods/index.mjs.map +0 -1
- package/dist/esm/modules/useStable/__tests__/index-test.mjs +0 -99
- package/dist/esm/modules/useStable/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useStable/index.mjs +0 -11
- package/dist/esm/modules/useStable/index.mjs.map +0 -1
- package/dist/esm/styleTypes.mjs +0 -2
- package/dist/esm/styleTypes.mjs.map +0 -1
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.mjs.map +0 -1
|
@@ -1,135 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var createOrderedCSSStyleSheet_exports = {};
|
|
24
|
-
__export(createOrderedCSSStyleSheet_exports, {
|
|
25
|
-
createOrderedCSSStyleSheet: () => createOrderedCSSStyleSheet
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(createOrderedCSSStyleSheet_exports);
|
|
28
|
-
const slice = Array.prototype.slice;
|
|
29
|
-
function createOrderedCSSStyleSheet(sheet) {
|
|
30
|
-
const groups = {};
|
|
31
|
-
const selectors = {};
|
|
32
|
-
if (sheet != null) {
|
|
33
|
-
let group;
|
|
34
|
-
slice.call(sheet.cssRules).forEach((cssRule, i) => {
|
|
35
|
-
const cssText = cssRule.cssText;
|
|
36
|
-
if (cssText.indexOf("stylesheet-group") > -1) {
|
|
37
|
-
group = decodeGroupRule(cssRule);
|
|
38
|
-
groups[group] = {
|
|
39
|
-
start: i,
|
|
40
|
-
rules: [cssText]
|
|
41
|
-
};
|
|
42
|
-
} else {
|
|
43
|
-
const selectorText = getSelectorText(cssText);
|
|
44
|
-
if (selectorText != null) {
|
|
45
|
-
selectors[selectorText] = true;
|
|
46
|
-
groups[group].rules.push(cssText);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function sheetInsert(sheet2, group, text) {
|
|
52
|
-
const orderedGroups = getOrderedGroups(groups);
|
|
53
|
-
const groupIndex = orderedGroups.indexOf(group);
|
|
54
|
-
const nextGroupIndex = groupIndex + 1;
|
|
55
|
-
const nextGroup = orderedGroups[nextGroupIndex];
|
|
56
|
-
const position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length;
|
|
57
|
-
const isInserted = insertRuleAt(sheet2, text, position);
|
|
58
|
-
if (isInserted) {
|
|
59
|
-
if (groups[group].start == null) {
|
|
60
|
-
groups[group].start = position;
|
|
61
|
-
}
|
|
62
|
-
for (let i = nextGroupIndex; i < orderedGroups.length; i += 1) {
|
|
63
|
-
const groupNumber = orderedGroups[i];
|
|
64
|
-
const previousStart = groups[groupNumber].start || 0;
|
|
65
|
-
groups[groupNumber].start = previousStart + 1;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return isInserted;
|
|
69
|
-
}
|
|
70
|
-
const OrderedCSSStyleSheet = {
|
|
71
|
-
/**
|
|
72
|
-
* The textContent of the style sheet.
|
|
73
|
-
*/
|
|
74
|
-
getTextContent() {
|
|
75
|
-
return getOrderedGroups(groups).map(group => {
|
|
76
|
-
const rules = groups[group].rules;
|
|
77
|
-
const marker = rules.shift();
|
|
78
|
-
rules.sort();
|
|
79
|
-
rules.unshift(marker);
|
|
80
|
-
return rules.join("\n");
|
|
81
|
-
}).join("\n");
|
|
82
|
-
},
|
|
83
|
-
/**
|
|
84
|
-
* Insert a rule into the style sheet
|
|
85
|
-
*/
|
|
86
|
-
insert(cssText, groupValue) {
|
|
87
|
-
const group = Number(groupValue);
|
|
88
|
-
if (groups[group] == null) {
|
|
89
|
-
const markerRule = encodeGroupRule(group);
|
|
90
|
-
groups[group] = {
|
|
91
|
-
start: null,
|
|
92
|
-
rules: [markerRule]
|
|
93
|
-
};
|
|
94
|
-
if (sheet != null) {
|
|
95
|
-
sheetInsert(sheet, group, markerRule);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const selectorText = getSelectorText(cssText);
|
|
99
|
-
if (selectorText != null && selectors[selectorText] == null) {
|
|
100
|
-
selectors[selectorText] = true;
|
|
101
|
-
groups[group].rules.push(cssText);
|
|
102
|
-
if (sheet != null) {
|
|
103
|
-
const isInserted = sheetInsert(sheet, group, cssText);
|
|
104
|
-
if (!isInserted) {
|
|
105
|
-
groups[group].rules.pop();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
return OrderedCSSStyleSheet;
|
|
112
|
-
}
|
|
113
|
-
function encodeGroupRule(group) {
|
|
114
|
-
return `[stylesheet-group="${group}"]{}`;
|
|
115
|
-
}
|
|
116
|
-
const groupPattern = /["']/g;
|
|
117
|
-
function decodeGroupRule(cssRule) {
|
|
118
|
-
return Number(cssRule.selectorText.split(groupPattern)[1]);
|
|
119
|
-
}
|
|
120
|
-
function getOrderedGroups(obj) {
|
|
121
|
-
return Object.keys(obj).map(Number).sort((a, b) => a > b ? 1 : -1);
|
|
122
|
-
}
|
|
123
|
-
const selectorPattern = /\s*([,])\s*/g;
|
|
124
|
-
function getSelectorText(cssText) {
|
|
125
|
-
const selector = cssText.split("{")[0].trim();
|
|
126
|
-
return selector !== "" ? selector.replace(selectorPattern, "$1") : null;
|
|
127
|
-
}
|
|
128
|
-
function insertRuleAt(root, cssText, position) {
|
|
129
|
-
try {
|
|
130
|
-
root.insertRule(cssText, position);
|
|
131
|
-
return true;
|
|
132
|
-
} catch (e) {
|
|
133
|
-
return false;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,89 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var dom_exports = {};
|
|
24
|
-
__export(dom_exports, {
|
|
25
|
-
createSheet: () => createSheet
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(dom_exports);
|
|
28
|
-
var import_canUseDOM = require("../../modules/canUseDOM.cjs");
|
|
29
|
-
var import_createCSSStyleSheet = require("./createCSSStyleSheet.cjs");
|
|
30
|
-
var import_createOrderedCSSStyleSheet = require("./createOrderedCSSStyleSheet.cjs");
|
|
31
|
-
const defaultId = "react-native-stylesheet";
|
|
32
|
-
const roots = /* @__PURE__ */new WeakMap();
|
|
33
|
-
const sheets = [];
|
|
34
|
-
const initialRules = [
|
|
35
|
-
// minimal top-level reset
|
|
36
|
-
"html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}", "body{margin:0;}",
|
|
37
|
-
// minimal form pseudo-element reset
|
|
38
|
-
"button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}", "input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];
|
|
39
|
-
function createSheet(root, id = defaultId) {
|
|
40
|
-
let sheet;
|
|
41
|
-
function createSheet2() {
|
|
42
|
-
if (sheet) return;
|
|
43
|
-
if (import_canUseDOM.canUseDOM) {
|
|
44
|
-
const rootNode = root != null ? root.getRootNode() : document;
|
|
45
|
-
if (sheets.length === 0) {
|
|
46
|
-
sheet = (0, import_createOrderedCSSStyleSheet.createOrderedCSSStyleSheet)((0, import_createCSSStyleSheet.createCSSStyleSheet)(id));
|
|
47
|
-
initialRules.forEach(rule => {
|
|
48
|
-
sheet.insert(rule, 0);
|
|
49
|
-
});
|
|
50
|
-
roots.set(rootNode, sheets.length);
|
|
51
|
-
sheets.push(sheet);
|
|
52
|
-
} else {
|
|
53
|
-
const index = roots.get(rootNode);
|
|
54
|
-
if (index == null) {
|
|
55
|
-
const initialSheet = sheets[0];
|
|
56
|
-
const textContent = initialSheet != null ? initialSheet.getTextContent() : "";
|
|
57
|
-
sheet = (0, import_createOrderedCSSStyleSheet.createOrderedCSSStyleSheet)((0, import_createCSSStyleSheet.createCSSStyleSheet)(id, rootNode, textContent));
|
|
58
|
-
roots.set(rootNode, sheets.length);
|
|
59
|
-
sheets.push(sheet);
|
|
60
|
-
} else {
|
|
61
|
-
sheet = sheets[index];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
} else {
|
|
65
|
-
if (sheets.length === 0) {
|
|
66
|
-
sheet = (0, import_createOrderedCSSStyleSheet.createOrderedCSSStyleSheet)((0, import_createCSSStyleSheet.createCSSStyleSheet)(id));
|
|
67
|
-
initialRules.forEach(rule => {
|
|
68
|
-
sheet.insert(rule, 0);
|
|
69
|
-
});
|
|
70
|
-
sheets.push(sheet);
|
|
71
|
-
} else {
|
|
72
|
-
sheet = sheets[0];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
getTextContent() {
|
|
78
|
-
createSheet2();
|
|
79
|
-
return sheet.getTextContent();
|
|
80
|
-
},
|
|
81
|
-
id,
|
|
82
|
-
insert(cssText, groupValue) {
|
|
83
|
-
createSheet2();
|
|
84
|
-
sheets.forEach(s => {
|
|
85
|
-
s.insert(cssText, groupValue);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
@@ -1,64 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var StyleSheet_exports = {};
|
|
24
|
-
__export(StyleSheet_exports, {
|
|
25
|
-
StyleSheet: () => StyleSheet,
|
|
26
|
-
flatten: () => flatten
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(StyleSheet_exports);
|
|
29
|
-
const absoluteFillObject = {
|
|
30
|
-
position: "absolute",
|
|
31
|
-
left: 0,
|
|
32
|
-
right: 0,
|
|
33
|
-
top: 0,
|
|
34
|
-
bottom: 0
|
|
35
|
-
};
|
|
36
|
-
const absoluteFill = absoluteFillObject;
|
|
37
|
-
function create(styles) {
|
|
38
|
-
return styles;
|
|
39
|
-
}
|
|
40
|
-
function compose(style1, style2) {
|
|
41
|
-
return flatten(style1, style2);
|
|
42
|
-
}
|
|
43
|
-
function flatten(...styles) {
|
|
44
|
-
return styles.flat().flat().flat().flat().reduce((acc, cur) => {
|
|
45
|
-
if (cur) {
|
|
46
|
-
Object.assign(acc, cur);
|
|
47
|
-
}
|
|
48
|
-
return acc;
|
|
49
|
-
}, {});
|
|
50
|
-
}
|
|
51
|
-
function getSheet() {
|
|
52
|
-
return {
|
|
53
|
-
id: "",
|
|
54
|
-
textContent: sheet.getTextContent()
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function StyleSheet(styles, options) {}
|
|
58
|
-
StyleSheet.absoluteFill = absoluteFill;
|
|
59
|
-
StyleSheet.absoluteFillObject = absoluteFillObject;
|
|
60
|
-
StyleSheet.create = create;
|
|
61
|
-
StyleSheet.compose = compose;
|
|
62
|
-
StyleSheet.flatten = flatten;
|
|
63
|
-
StyleSheet.getSheet = getSheet;
|
|
64
|
-
StyleSheet.hairlineWidth = 1;
|
|
@@ -1,114 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var preprocess_exports = {};
|
|
24
|
-
__export(preprocess_exports, {
|
|
25
|
-
createBoxShadowValue: () => createBoxShadowValue,
|
|
26
|
-
createTextShadowValue: () => createTextShadowValue,
|
|
27
|
-
preprocess: () => preprocess,
|
|
28
|
-
processStyle: () => processStyle
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(preprocess_exports);
|
|
31
|
-
var import_normalizeColor = require("./compiler/normalizeColor.cjs");
|
|
32
|
-
var import_normalizeValueWithProperty = require("./compiler/normalizeValueWithProperty.cjs");
|
|
33
|
-
const emptyObject = {};
|
|
34
|
-
const defaultOffset = {
|
|
35
|
-
height: 0,
|
|
36
|
-
width: 0
|
|
37
|
-
};
|
|
38
|
-
const createBoxShadowValue = style => {
|
|
39
|
-
const {
|
|
40
|
-
shadowColor,
|
|
41
|
-
shadowOffset,
|
|
42
|
-
shadowOpacity,
|
|
43
|
-
shadowRadius
|
|
44
|
-
} = style;
|
|
45
|
-
const {
|
|
46
|
-
height,
|
|
47
|
-
width
|
|
48
|
-
} = shadowOffset || defaultOffset;
|
|
49
|
-
const offsetX = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(width);
|
|
50
|
-
const offsetY = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(height);
|
|
51
|
-
const blurRadius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(shadowRadius || 0);
|
|
52
|
-
const color = (0, import_normalizeColor.normalizeColor)(shadowColor || "black", shadowOpacity);
|
|
53
|
-
if (color != null && offsetX != null && offsetY != null && blurRadius != null) {
|
|
54
|
-
return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const createTextShadowValue = style => {
|
|
58
|
-
const {
|
|
59
|
-
textShadowColor,
|
|
60
|
-
textShadowOffset,
|
|
61
|
-
textShadowRadius
|
|
62
|
-
} = style;
|
|
63
|
-
const {
|
|
64
|
-
height,
|
|
65
|
-
width
|
|
66
|
-
} = textShadowOffset || defaultOffset;
|
|
67
|
-
const radius = textShadowRadius || 0;
|
|
68
|
-
const offsetX = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(width);
|
|
69
|
-
const offsetY = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(height);
|
|
70
|
-
const blurRadius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(radius);
|
|
71
|
-
const color = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(textShadowColor, "textShadowColor");
|
|
72
|
-
if (color && (height !== 0 || width !== 0 || radius !== 0) && offsetX != null && offsetY != null && blurRadius != null) {
|
|
73
|
-
return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
const preprocess = originalStyle => {
|
|
77
|
-
const style = originalStyle || emptyObject;
|
|
78
|
-
const nextStyle = {};
|
|
79
|
-
for (const originalProp in style) {
|
|
80
|
-
const originalValue = style[originalProp];
|
|
81
|
-
let prop = originalProp;
|
|
82
|
-
let value = originalValue;
|
|
83
|
-
if (!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null) {
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
if (prop === "shadowColor" || prop === "shadowOffset" || prop === "shadowOpacity" || prop === "shadowRadius") {
|
|
87
|
-
const boxShadowValue = createBoxShadowValue(style);
|
|
88
|
-
if (boxShadowValue != null && nextStyle.boxShadow == null) {
|
|
89
|
-
const {
|
|
90
|
-
boxShadow
|
|
91
|
-
} = style;
|
|
92
|
-
prop = "boxShadow";
|
|
93
|
-
value = boxShadow ? `${boxShadow}, ${boxShadowValue}` : boxShadowValue;
|
|
94
|
-
} else {
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (prop === "textShadowColor" || prop === "textShadowOffset" || prop === "textShadowRadius") {
|
|
99
|
-
const textShadowValue = createTextShadowValue(style);
|
|
100
|
-
if (textShadowValue != null && nextStyle.textShadow == null) {
|
|
101
|
-
const {
|
|
102
|
-
textShadow
|
|
103
|
-
} = style;
|
|
104
|
-
prop = "textShadow";
|
|
105
|
-
value = textShadow ? `${textShadow}, ${textShadowValue}` : textShadowValue;
|
|
106
|
-
} else {
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
nextStyle[prop] = value;
|
|
111
|
-
}
|
|
112
|
-
return nextStyle;
|
|
113
|
-
};
|
|
114
|
-
const processStyle = preprocess;
|
|
@@ -1,92 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var validate_exports = {};
|
|
24
|
-
__export(validate_exports, {
|
|
25
|
-
validate: () => validate
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(validate_exports);
|
|
28
|
-
const invalidShortforms = {
|
|
29
|
-
background: true,
|
|
30
|
-
borderBottom: true,
|
|
31
|
-
borderLeft: true,
|
|
32
|
-
borderRight: true,
|
|
33
|
-
borderTop: true,
|
|
34
|
-
font: true,
|
|
35
|
-
grid: true,
|
|
36
|
-
outline: true,
|
|
37
|
-
textDecoration: true
|
|
38
|
-
};
|
|
39
|
-
const invalidMultiValueShortforms = {
|
|
40
|
-
flex: true,
|
|
41
|
-
margin: true,
|
|
42
|
-
padding: true,
|
|
43
|
-
borderColor: true,
|
|
44
|
-
borderRadius: true,
|
|
45
|
-
borderStyle: true,
|
|
46
|
-
borderWidth: true,
|
|
47
|
-
marginHorizontal: true,
|
|
48
|
-
marginVertical: true,
|
|
49
|
-
paddingHorizontal: true,
|
|
50
|
-
paddingVertical: true,
|
|
51
|
-
overflow: true,
|
|
52
|
-
overscrollBehavior: true,
|
|
53
|
-
backgroundPosition: true
|
|
54
|
-
};
|
|
55
|
-
function error(message) {
|
|
56
|
-
console.error(message);
|
|
57
|
-
}
|
|
58
|
-
function validate(obj) {
|
|
59
|
-
for (const k in obj) {
|
|
60
|
-
const prop = k.trim();
|
|
61
|
-
const value = obj[prop];
|
|
62
|
-
let isInvalid = false;
|
|
63
|
-
if (value === null) {
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
if (typeof value === "string" && value.indexOf("!important") > -1) {
|
|
67
|
-
error(`Invalid style declaration "${prop}:${value}". Values cannot include "!important"`);
|
|
68
|
-
isInvalid = true;
|
|
69
|
-
} else {
|
|
70
|
-
let suggestion = "";
|
|
71
|
-
if (prop === "animation" || prop === "animationName") {
|
|
72
|
-
suggestion = 'Did you mean "animationKeyframes"?';
|
|
73
|
-
isInvalid = true;
|
|
74
|
-
} else if (prop === "direction") {
|
|
75
|
-
suggestion = 'Did you mean "writingDirection"?';
|
|
76
|
-
isInvalid = true;
|
|
77
|
-
} else if (prop === "verticalAlign") {
|
|
78
|
-
suggestion = 'Did you mean "textAlignVertical"?';
|
|
79
|
-
isInvalid = true;
|
|
80
|
-
} else if (invalidShortforms[prop]) {
|
|
81
|
-
suggestion = "Please use long-form properties.";
|
|
82
|
-
isInvalid = true;
|
|
83
|
-
} else if (invalidMultiValueShortforms[prop]) {}
|
|
84
|
-
if (suggestion !== "") {
|
|
85
|
-
error(`Invalid style property of "${prop}". ${suggestion}`);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (isInvalid) {
|
|
89
|
-
delete obj[k];
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,29 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var TextAncestorContext_exports = {};
|
|
24
|
-
__export(TextAncestorContext_exports, {
|
|
25
|
-
TextAncestorContext: () => TextAncestorContext
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(TextAncestorContext_exports);
|
|
28
|
-
var import_react = require("react");
|
|
29
|
-
const TextAncestorContext = (0, import_react.createContext)(false);
|
package/dist/cjs/colorProps.cjs
DELETED
|
@@ -1,39 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var colorProps_exports = {};
|
|
24
|
-
__export(colorProps_exports, {
|
|
25
|
-
colorProps: () => colorProps
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(colorProps_exports);
|
|
28
|
-
const colorProps = {
|
|
29
|
-
backgroundColor: true,
|
|
30
|
-
borderColor: true,
|
|
31
|
-
borderTopColor: true,
|
|
32
|
-
borderRightColor: true,
|
|
33
|
-
borderBottomColor: true,
|
|
34
|
-
borderLeftColor: true,
|
|
35
|
-
color: true,
|
|
36
|
-
shadowColor: true,
|
|
37
|
-
textDecorationColor: true,
|
|
38
|
-
textShadowColor: true
|
|
39
|
-
};
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,105 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
}), mod);
|
|
24
|
-
var index_exports = {};
|
|
25
|
-
__export(index_exports, {
|
|
26
|
-
AccessibilityUtil: () => import_AccessibilityUtil.AccessibilityUtil,
|
|
27
|
-
ImageLoader: () => import_ImageLoader.ImageLoader,
|
|
28
|
-
InteractionManager: () => import_InteractionManager.InteractionManager,
|
|
29
|
-
Platform: () => import_Platform.Platform,
|
|
30
|
-
StyleSheet: () => import_StyleSheet2.StyleSheet,
|
|
31
|
-
TextAncestorContext: () => import_TextAncestorContext.TextAncestorContext,
|
|
32
|
-
TextInputState: () => import_TextInputState.TextInputState,
|
|
33
|
-
UIManager: () => import_UIManager.UIManager,
|
|
34
|
-
canUseDOM: () => import_canUseDOM.canUseDOM,
|
|
35
|
-
colorProps: () => import_colorProps.colorProps,
|
|
36
|
-
createDOMProps: () => import_createDOMProps.createDOMProps,
|
|
37
|
-
createEventHandle: () => import_createEventHandle.createEventHandle,
|
|
38
|
-
createReactDOMStyle: () => import_createReactDOMStyle.createReactDOMStyle,
|
|
39
|
-
createSheet: () => import_dom.createSheet,
|
|
40
|
-
createTransformValue: () => import_createReactDOMStyle.createTransformValue,
|
|
41
|
-
dismissKeyboard: () => import_dismissKeyboard.dismissKeyboard,
|
|
42
|
-
flattenStyle: () => import_StyleSheet.flatten,
|
|
43
|
-
getBoundingClientRect: () => import_getBoundingClientRect.getBoundingClientRect,
|
|
44
|
-
isSelectionValid: () => import_isSelectionValid.isSelectionValid,
|
|
45
|
-
isWebColor: () => import_isWebColor.isWebColor,
|
|
46
|
-
multiplyStyleLengthValue: () => import_multiplyStyleLengthValue.multiplyStyleLengthValue,
|
|
47
|
-
normalizeColor: () => import_normalizeColor.normalizeColor,
|
|
48
|
-
pick: () => import_pick.pick,
|
|
49
|
-
processColor: () => import_processColor.processColor,
|
|
50
|
-
requestIdleCallback: () => import_requestIdleCallback.requestIdleCallback,
|
|
51
|
-
setValueForStyles: () => import_setValueForStyles.setValueForStyles,
|
|
52
|
-
stylesFromProps: () => import_createDOMProps2.stylesFromProps,
|
|
53
|
-
unitlessNumbers: () => import_unitlessNumbers.unitlessNumbers,
|
|
54
|
-
useElementLayout: () => import_useElementLayout.useElementLayout,
|
|
55
|
-
useEvent: () => import_useEvent.useEvent,
|
|
56
|
-
useHover: () => import_useHover.useHover,
|
|
57
|
-
useLayoutEffect: () => import_useLayoutEffect.useLayoutEffectImpl,
|
|
58
|
-
useMergeRefs: () => import_useMergeRefs.useMergeRefs,
|
|
59
|
-
usePlatformMethods: () => import_usePlatformMethods.usePlatformMethods,
|
|
60
|
-
useStable: () => import_useStable.useStable
|
|
61
|
-
});
|
|
62
|
-
module.exports = __toCommonJS(index_exports);
|
|
63
|
-
__reExport(index_exports, require("./modules/AssetRegistry/index.cjs"), module.exports);
|
|
64
|
-
__reExport(index_exports, require("./modules/forwardedProps/index.cjs"), module.exports);
|
|
65
|
-
__reExport(index_exports, require("./modules/mergeRefs/index.cjs"), module.exports);
|
|
66
|
-
__reExport(index_exports, require("./modules/modality/index.cjs"), module.exports);
|
|
67
|
-
__reExport(index_exports, require("./modules/useLocale/index.cjs"), module.exports);
|
|
68
|
-
var import_usePlatformMethods = require("./modules/usePlatformMethods/index.cjs");
|
|
69
|
-
var import_TextAncestorContext = require("./TextAncestorContext.cjs");
|
|
70
|
-
__reExport(index_exports, require("@hanzogui/react-native-use-pressable"), module.exports);
|
|
71
|
-
__reExport(index_exports, require("@hanzogui/react-native-use-responder-events"), module.exports);
|
|
72
|
-
var import_colorProps = require("./colorProps.cjs");
|
|
73
|
-
var import_AccessibilityUtil = require("./modules/AccessibilityUtil/index.cjs");
|
|
74
|
-
var import_canUseDOM = require("./modules/canUseDOM.cjs");
|
|
75
|
-
var import_createDOMProps = require("./modules/createDOMProps/index.cjs");
|
|
76
|
-
var import_createDOMProps2 = require("./modules/createDOMProps/index.cjs");
|
|
77
|
-
var import_createReactDOMStyle = require("./StyleSheet/compiler/createReactDOMStyle.cjs");
|
|
78
|
-
var import_createEventHandle = require("./modules/createEventHandle/index.cjs");
|
|
79
|
-
var import_dismissKeyboard = require("./modules/dismissKeyboard/index.cjs");
|
|
80
|
-
var import_getBoundingClientRect = require("./modules/getBoundingClientRect/index.cjs");
|
|
81
|
-
var import_ImageLoader = require("./modules/ImageLoader/index.cjs");
|
|
82
|
-
var import_isSelectionValid = require("./modules/isSelectionValid/index.cjs");
|
|
83
|
-
var import_isWebColor = require("./modules/isWebColor/index.cjs");
|
|
84
|
-
var import_multiplyStyleLengthValue = require("./modules/multiplyStyleLengthValue/index.cjs");
|
|
85
|
-
var import_normalizeColor = require("./modules/normalizeColor/index.cjs");
|
|
86
|
-
var import_pick = require("./modules/pick/index.cjs");
|
|
87
|
-
var import_Platform = require("./modules/Platform/index.cjs");
|
|
88
|
-
__reExport(index_exports, require("./StyleSheet/preprocess.cjs"), module.exports);
|
|
89
|
-
var import_StyleSheet = require("./StyleSheet/index.cjs");
|
|
90
|
-
var import_dom = require("./StyleSheet/dom/index.cjs");
|
|
91
|
-
var import_requestIdleCallback = require("./modules/requestIdleCallback/index.cjs");
|
|
92
|
-
var import_setValueForStyles = require("./modules/setValueForStyles/index.cjs");
|
|
93
|
-
var import_TextInputState = require("./modules/TextInputState/index.cjs");
|
|
94
|
-
var import_UIManager = require("./modules/UIManager/index.cjs");
|
|
95
|
-
var import_unitlessNumbers = require("./modules/unitlessNumbers/index.cjs");
|
|
96
|
-
var import_useElementLayout = require("./modules/useElementLayout/index.cjs");
|
|
97
|
-
var import_useEvent = require("./modules/useEvent/index.cjs");
|
|
98
|
-
var import_useHover = require("./modules/useHover/index.cjs");
|
|
99
|
-
var import_useLayoutEffect = require("./modules/useLayoutEffect/index.cjs");
|
|
100
|
-
var import_useStable = require("./modules/useStable/index.cjs");
|
|
101
|
-
var import_InteractionManager = require("./modules/InteractionManager.cjs");
|
|
102
|
-
__reExport(index_exports, require("./modules/invariant.cjs"), module.exports);
|
|
103
|
-
var import_processColor = require("./modules/processColor/index.cjs");
|
|
104
|
-
var import_StyleSheet2 = require("./StyleSheet/index.cjs");
|
|
105
|
-
var import_useMergeRefs = require("./modules/useMergeRefs/index.cjs");
|