@tamagui/react-native-web-internals 1.112.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/LICENSE +21 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +192 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js +270 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.js +378 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.native.js +417 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +117 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js +117 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.js +21 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.native.js +24 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.node.js +22 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.node.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.node.native.js +23 -0
- package/dist/cjs/StyleSheet/__tests__/dom-test.node.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.js +347 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.native.js +459 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.js +77 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.native.js +110 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.js +18 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.js.map +6 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.native.js +39 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js +121 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.native.js +142 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/hash.js +21 -0
- package/dist/cjs/StyleSheet/compiler/hash.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/hash.native.js +22 -0
- package/dist/cjs/StyleSheet/compiler/hash.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js +31 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.native.js +32 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/index.js +253 -0
- package/dist/cjs/StyleSheet/compiler/index.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/index.native.js +327 -0
- package/dist/cjs/StyleSheet/compiler/index.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js +42 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.native.js +41 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js +45 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.native.js +45 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.native.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js +35 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.js.map +6 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.native.js +37 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.native.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js +44 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.native.js +44 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.native.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js +94 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.native.js +111 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.native.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/index.js +74 -0
- package/dist/cjs/StyleSheet/dom/index.js.map +6 -0
- package/dist/cjs/StyleSheet/dom/index.native.js +76 -0
- package/dist/cjs/StyleSheet/dom/index.native.js.map +6 -0
- package/dist/cjs/StyleSheet/index.js +104 -0
- package/dist/cjs/StyleSheet/index.js.map +6 -0
- package/dist/cjs/StyleSheet/index.native.js +113 -0
- package/dist/cjs/StyleSheet/index.native.js.map +6 -0
- package/dist/cjs/StyleSheet/preprocess.js +67 -0
- package/dist/cjs/StyleSheet/preprocess.js.map +6 -0
- package/dist/cjs/StyleSheet/preprocess.native.js +76 -0
- package/dist/cjs/StyleSheet/preprocess.native.js.map +6 -0
- package/dist/cjs/StyleSheet/validate.js +66 -0
- package/dist/cjs/StyleSheet/validate.js.map +6 -0
- package/dist/cjs/StyleSheet/validate.native.js +68 -0
- package/dist/cjs/StyleSheet/validate.native.js.map +6 -0
- package/dist/cjs/TextAncestorContext.js +24 -0
- package/dist/cjs/TextAncestorContext.js.map +6 -0
- package/dist/cjs/TextAncestorContext.native.js +27 -0
- package/dist/cjs/TextAncestorContext.native.js.map +6 -0
- package/dist/cjs/colorProps.js +32 -0
- package/dist/cjs/colorProps.js.map +6 -0
- package/dist/cjs/colorProps.native.js +37 -0
- package/dist/cjs/colorProps.native.js.map +6 -0
- package/dist/cjs/index.js +71 -0
- package/dist/cjs/index.js.map +6 -0
- package/dist/cjs/index.native.js +116 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +46 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js +49 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +30 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js +39 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/index.js +36 -0
- package/dist/cjs/modules/AccessibilityUtil/index.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/index.native.js +39 -0
- package/dist/cjs/modules/AccessibilityUtil/index.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js +22 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.native.js +24 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js +60 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js +60 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js +43 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.js.map +6 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.native.js +42 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.native.js.map +6 -0
- package/dist/cjs/modules/AssetRegistry/index.js +28 -0
- package/dist/cjs/modules/AssetRegistry/index.js.map +6 -0
- package/dist/cjs/modules/AssetRegistry/index.native.js +34 -0
- package/dist/cjs/modules/AssetRegistry/index.native.js.map +6 -0
- package/dist/cjs/modules/ImageLoader/index.js +102 -0
- package/dist/cjs/modules/ImageLoader/index.js.map +6 -0
- package/dist/cjs/modules/ImageLoader/index.native.js +142 -0
- package/dist/cjs/modules/ImageLoader/index.native.js.map +6 -0
- package/dist/cjs/modules/InteractionManager.js +68 -0
- package/dist/cjs/modules/InteractionManager.js.map +6 -0
- package/dist/cjs/modules/InteractionManager.native.js +70 -0
- package/dist/cjs/modules/InteractionManager.native.js.map +6 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.js +46 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.native.js +47 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/Platform/index.js +26 -0
- package/dist/cjs/modules/Platform/index.js.map +6 -0
- package/dist/cjs/modules/Platform/index.native.js +28 -0
- package/dist/cjs/modules/Platform/index.native.js.map +6 -0
- package/dist/cjs/modules/TextInputState/index.js +59 -0
- package/dist/cjs/modules/TextInputState/index.js.map +6 -0
- package/dist/cjs/modules/TextInputState/index.native.js +58 -0
- package/dist/cjs/modules/TextInputState/index.native.js.map +6 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.js +66 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.native.js +88 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/UIManager/index.js +101 -0
- package/dist/cjs/modules/UIManager/index.js.map +6 -0
- package/dist/cjs/modules/UIManager/index.native.js +108 -0
- package/dist/cjs/modules/UIManager/index.native.js.map +6 -0
- package/dist/cjs/modules/canUseDOM.js +23 -0
- package/dist/cjs/modules/canUseDOM.js.map +6 -0
- package/dist/cjs/modules/canUseDOM.native.js +27 -0
- package/dist/cjs/modules/canUseDOM.native.js.map +6 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.js +106 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.native.js +152 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/createDOMProps/index.js +137 -0
- package/dist/cjs/modules/createDOMProps/index.js.map +6 -0
- package/dist/cjs/modules/createDOMProps/index.native.js +136 -0
- package/dist/cjs/modules/createDOMProps/index.native.js.map +6 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.js +242 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.native.js +351 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/createEventHandle/index.js +74 -0
- package/dist/cjs/modules/createEventHandle/index.js.map +6 -0
- package/dist/cjs/modules/createEventHandle/index.native.js +75 -0
- package/dist/cjs/modules/createEventHandle/index.native.js.map +6 -0
- package/dist/cjs/modules/dismissKeyboard/index.js +33 -0
- package/dist/cjs/modules/dismissKeyboard/index.js.map +6 -0
- package/dist/cjs/modules/dismissKeyboard/index.native.js +32 -0
- package/dist/cjs/modules/dismissKeyboard/index.native.js.map +6 -0
- package/dist/cjs/modules/forwardedProps/index.js +145 -0
- package/dist/cjs/modules/forwardedProps/index.js.map +6 -0
- package/dist/cjs/modules/forwardedProps/index.native.js +160 -0
- package/dist/cjs/modules/forwardedProps/index.native.js.map +6 -0
- package/dist/cjs/modules/getBoundingClientRect/index.js +25 -0
- package/dist/cjs/modules/getBoundingClientRect/index.js.map +6 -0
- package/dist/cjs/modules/getBoundingClientRect/index.native.js +28 -0
- package/dist/cjs/modules/getBoundingClientRect/index.native.js.map +6 -0
- package/dist/cjs/modules/invariant.js +35 -0
- package/dist/cjs/modules/invariant.js.map +6 -0
- package/dist/cjs/modules/invariant.native.js +48 -0
- package/dist/cjs/modules/invariant.native.js.map +6 -0
- package/dist/cjs/modules/isSelectionValid/index.js +27 -0
- package/dist/cjs/modules/isSelectionValid/index.js.map +6 -0
- package/dist/cjs/modules/isSelectionValid/index.native.js +28 -0
- package/dist/cjs/modules/isSelectionValid/index.native.js.map +6 -0
- package/dist/cjs/modules/isWebColor/index.js +22 -0
- package/dist/cjs/modules/isWebColor/index.js.map +6 -0
- package/dist/cjs/modules/isWebColor/index.native.js +24 -0
- package/dist/cjs/modules/isWebColor/index.native.js.map +6 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.js +34 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.native.js +36 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/mergeRefs/index.js +41 -0
- package/dist/cjs/modules/mergeRefs/index.js.map +6 -0
- package/dist/cjs/modules/mergeRefs/index.native.js +44 -0
- package/dist/cjs/modules/mergeRefs/index.native.js.map +6 -0
- package/dist/cjs/modules/modality/__tests__/index-test.js +20 -0
- package/dist/cjs/modules/modality/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/modality/__tests__/index-test.native.js +33 -0
- package/dist/cjs/modules/modality/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/modality/index.js +90 -0
- package/dist/cjs/modules/modality/index.js.map +6 -0
- package/dist/cjs/modules/modality/index.native.js +105 -0
- package/dist/cjs/modules/modality/index.native.js.map +6 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js +28 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.native.js +29 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js +28 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.js.map +6 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.native.js +32 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.native.js.map +6 -0
- package/dist/cjs/modules/normalizeColor/index.js +40 -0
- package/dist/cjs/modules/normalizeColor/index.js.map +6 -0
- package/dist/cjs/modules/normalizeColor/index.native.js +41 -0
- package/dist/cjs/modules/normalizeColor/index.native.js.map +6 -0
- package/dist/cjs/modules/pick/index.js +26 -0
- package/dist/cjs/modules/pick/index.js.map +6 -0
- package/dist/cjs/modules/pick/index.native.js +27 -0
- package/dist/cjs/modules/pick/index.native.js.map +6 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.js +64 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.native.js +66 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/processColor/index.js +36 -0
- package/dist/cjs/modules/processColor/index.js.map +6 -0
- package/dist/cjs/modules/processColor/index.native.js +40 -0
- package/dist/cjs/modules/processColor/index.native.js.map +6 -0
- package/dist/cjs/modules/requestIdleCallback/index.js +44 -0
- package/dist/cjs/modules/requestIdleCallback/index.js.map +6 -0
- package/dist/cjs/modules/requestIdleCallback/index.native.js +47 -0
- package/dist/cjs/modules/requestIdleCallback/index.native.js.map +6 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js +34 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.js.map +6 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.native.js +35 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.native.js.map +6 -0
- package/dist/cjs/modules/setValueForStyles/index.js +39 -0
- package/dist/cjs/modules/setValueForStyles/index.js.map +6 -0
- package/dist/cjs/modules/setValueForStyles/index.native.js +39 -0
- package/dist/cjs/modules/setValueForStyles/index.native.js.map +6 -0
- package/dist/cjs/modules/unitlessNumbers/index.js +80 -0
- package/dist/cjs/modules/unitlessNumbers/index.js.map +6 -0
- package/dist/cjs/modules/unitlessNumbers/index.native.js +92 -0
- package/dist/cjs/modules/unitlessNumbers/index.native.js.map +6 -0
- package/dist/cjs/modules/useElementLayout/index.js +65 -0
- package/dist/cjs/modules/useElementLayout/index.js.map +6 -0
- package/dist/cjs/modules/useElementLayout/index.native.js +77 -0
- package/dist/cjs/modules/useElementLayout/index.native.js.map +6 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.js +289 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.native.js +410 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useEvent/index.js +45 -0
- package/dist/cjs/modules/useEvent/index.js.map +6 -0
- package/dist/cjs/modules/useEvent/index.native.js +52 -0
- package/dist/cjs/modules/useEvent/index.native.js.map +6 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.js +195 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.native.js +270 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useHover/index.js +81 -0
- package/dist/cjs/modules/useHover/index.js.map +6 -0
- package/dist/cjs/modules/useHover/index.native.js +85 -0
- package/dist/cjs/modules/useHover/index.native.js.map +6 -0
- package/dist/cjs/modules/useLayoutEffect/index.js +31 -0
- package/dist/cjs/modules/useLayoutEffect/index.js.map +6 -0
- package/dist/cjs/modules/useLayoutEffect/index.native.js +30 -0
- package/dist/cjs/modules/useLayoutEffect/index.native.js.map +6 -0
- package/dist/cjs/modules/useLocale/index.js +54 -0
- package/dist/cjs/modules/useLocale/index.js.map +6 -0
- package/dist/cjs/modules/useLocale/index.native.js +57 -0
- package/dist/cjs/modules/useLocale/index.native.js.map +6 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.js +91 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.js.map +6 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.native.js +95 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.native.js.map +6 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js +68 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.native.js +98 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useMergeRefs/index.js +36 -0
- package/dist/cjs/modules/useMergeRefs/index.js.map +6 -0
- package/dist/cjs/modules/useMergeRefs/index.native.js +47 -0
- package/dist/cjs/modules/useMergeRefs/index.native.js.map +6 -0
- package/dist/cjs/modules/usePlatformMethods/index.js +39 -0
- package/dist/cjs/modules/usePlatformMethods/index.js.map +6 -0
- package/dist/cjs/modules/usePlatformMethods/index.native.js +50 -0
- package/dist/cjs/modules/usePlatformMethods/index.native.js.map +6 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.js +69 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.js.map +6 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.native.js +88 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.native.js.map +6 -0
- package/dist/cjs/modules/useStable/index.js +34 -0
- package/dist/cjs/modules/useStable/index.js.map +6 -0
- package/dist/cjs/modules/useStable/index.native.js +34 -0
- package/dist/cjs/modules/useStable/index.native.js.map +6 -0
- package/dist/cjs/styleTypes.js +14 -0
- package/dist/cjs/styleTypes.js.map +6 -0
- package/dist/cjs/styleTypes.native.js +15 -0
- package/dist/cjs/styleTypes.native.js.map +6 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/types.js.map +6 -0
- package/dist/cjs/types.native.js +15 -0
- package/dist/cjs/types.native.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js +173 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs +219 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js +221 -0
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.js +378 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs +408 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.native.js +408 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js +98 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs +100 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js +100 -0
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.js +21 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.mjs +25 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.native.js +26 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.node.js +22 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.node.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.node.mjs +22 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.node.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.node.native.js +22 -0
- package/dist/esm/StyleSheet/__tests__/dom-test.node.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/index-test.js +328 -0
- package/dist/esm/StyleSheet/__tests__/index-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/index-test.mjs +383 -0
- package/dist/esm/StyleSheet/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/index-test.native.js +385 -0
- package/dist/esm/StyleSheet/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.js +77 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs +109 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js +109 -0
- package/dist/esm/StyleSheet/__tests__/preprocess-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.js +18 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.js.map +6 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs +37 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.native.js +37 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js +98 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +64 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js +64 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/hash.js +5 -0
- package/dist/esm/StyleSheet/compiler/hash.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/hash.mjs +3 -0
- package/dist/esm/StyleSheet/compiler/hash.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/hash.native.js +3 -0
- package/dist/esm/StyleSheet/compiler/hash.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js +15 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs +14 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js +14 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/index.js +232 -0
- package/dist/esm/StyleSheet/compiler/index.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/index.mjs +292 -0
- package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/index.native.js +298 -0
- package/dist/esm/StyleSheet/compiler/index.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.js +19 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +18 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.native.js +20 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js +22 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs +20 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js +20 -0
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.native.js.map +1 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js +12 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.js.map +6 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs +26 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js +26 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.native.js.map +1 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js +20 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.js.map +6 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs +14 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs.map +1 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js +14 -0
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.native.js.map +1 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js +78 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.js.map +6 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs +87 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js +94 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.native.js.map +1 -0
- package/dist/esm/StyleSheet/dom/index.js +52 -0
- package/dist/esm/StyleSheet/dom/index.js.map +6 -0
- package/dist/esm/StyleSheet/dom/index.mjs +44 -0
- package/dist/esm/StyleSheet/dom/index.mjs.map +1 -0
- package/dist/esm/StyleSheet/dom/index.native.js +45 -0
- package/dist/esm/StyleSheet/dom/index.native.js.map +1 -0
- package/dist/esm/StyleSheet/index.js +94 -0
- package/dist/esm/StyleSheet/index.js.map +6 -0
- package/dist/esm/StyleSheet/index.mjs +91 -0
- package/dist/esm/StyleSheet/index.mjs.map +1 -0
- package/dist/esm/StyleSheet/index.native.js +93 -0
- package/dist/esm/StyleSheet/index.native.js.map +1 -0
- package/dist/esm/StyleSheet/preprocess.js +44 -0
- package/dist/esm/StyleSheet/preprocess.js.map +6 -0
- package/dist/esm/StyleSheet/preprocess.mjs +75 -0
- package/dist/esm/StyleSheet/preprocess.mjs.map +1 -0
- package/dist/esm/StyleSheet/preprocess.native.js +75 -0
- package/dist/esm/StyleSheet/preprocess.native.js.map +1 -0
- package/dist/esm/StyleSheet/validate.js +50 -0
- package/dist/esm/StyleSheet/validate.js.map +6 -0
- package/dist/esm/StyleSheet/validate.mjs +46 -0
- package/dist/esm/StyleSheet/validate.mjs.map +1 -0
- package/dist/esm/StyleSheet/validate.native.js +46 -0
- package/dist/esm/StyleSheet/validate.native.js.map +1 -0
- package/dist/esm/TextAncestorContext.js +8 -0
- package/dist/esm/TextAncestorContext.js.map +6 -0
- package/dist/esm/TextAncestorContext.mjs +5 -0
- package/dist/esm/TextAncestorContext.mjs.map +1 -0
- package/dist/esm/TextAncestorContext.native.js +5 -0
- package/dist/esm/TextAncestorContext.native.js.map +1 -0
- package/dist/esm/colorProps.js +16 -0
- package/dist/esm/colorProps.js.map +6 -0
- package/dist/esm/colorProps.mjs +14 -0
- package/dist/esm/colorProps.mjs.map +1 -0
- package/dist/esm/colorProps.native.js +14 -0
- package/dist/esm/colorProps.native.js.map +1 -0
- package/dist/esm/index.js +76 -0
- package/dist/esm/index.js.map +6 -0
- package/dist/esm/index.mjs +43 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +43 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js +27 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.js.map +6 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs +29 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js +29 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js +11 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.js.map +6 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs +19 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js +19 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/index.js +14 -0
- package/dist/esm/modules/AccessibilityUtil/index.js.map +6 -0
- package/dist/esm/modules/AccessibilityUtil/index.mjs +11 -0
- package/dist/esm/modules/AccessibilityUtil/index.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/index.native.js +11 -0
- package/dist/esm/modules/AccessibilityUtil/index.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js +6 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.js.map +6 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs +4 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js +6 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js +36 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.js.map +6 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +35 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js +36 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.native.js.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js +27 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.js.map +6 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +25 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js +26 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.native.js.map +1 -0
- package/dist/esm/modules/AssetRegistry/index.js +12 -0
- package/dist/esm/modules/AssetRegistry/index.js.map +6 -0
- package/dist/esm/modules/AssetRegistry/index.mjs +9 -0
- package/dist/esm/modules/AssetRegistry/index.mjs.map +1 -0
- package/dist/esm/modules/AssetRegistry/index.native.js +9 -0
- package/dist/esm/modules/AssetRegistry/index.native.js.map +1 -0
- package/dist/esm/modules/ImageLoader/index.js +86 -0
- package/dist/esm/modules/ImageLoader/index.js.map +6 -0
- package/dist/esm/modules/ImageLoader/index.mjs +88 -0
- package/dist/esm/modules/ImageLoader/index.mjs.map +1 -0
- package/dist/esm/modules/ImageLoader/index.native.js +125 -0
- package/dist/esm/modules/ImageLoader/index.native.js.map +1 -0
- package/dist/esm/modules/InteractionManager.js +44 -0
- package/dist/esm/modules/InteractionManager.js.map +6 -0
- package/dist/esm/modules/InteractionManager.mjs +39 -0
- package/dist/esm/modules/InteractionManager.mjs.map +1 -0
- package/dist/esm/modules/InteractionManager.native.js +39 -0
- package/dist/esm/modules/InteractionManager.native.js.map +1 -0
- package/dist/esm/modules/Platform/__tests__/index-test.js +27 -0
- package/dist/esm/modules/Platform/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/Platform/__tests__/index-test.mjs +27 -0
- package/dist/esm/modules/Platform/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/Platform/__tests__/index-test.native.js +27 -0
- package/dist/esm/modules/Platform/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/Platform/index.js +10 -0
- package/dist/esm/modules/Platform/index.js.map +6 -0
- package/dist/esm/modules/Platform/index.mjs +8 -0
- package/dist/esm/modules/Platform/index.mjs.map +1 -0
- package/dist/esm/modules/Platform/index.native.js +10 -0
- package/dist/esm/modules/Platform/index.native.js.map +1 -0
- package/dist/esm/modules/TextInputState/index.js +35 -0
- package/dist/esm/modules/TextInputState/index.js.map +6 -0
- package/dist/esm/modules/TextInputState/index.mjs +33 -0
- package/dist/esm/modules/TextInputState/index.mjs.map +1 -0
- package/dist/esm/modules/TextInputState/index.native.js +33 -0
- package/dist/esm/modules/TextInputState/index.native.js.map +1 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.js +47 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs +69 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.native.js +71 -0
- package/dist/esm/modules/UIManager/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/UIManager/index.js +78 -0
- package/dist/esm/modules/UIManager/index.js.map +6 -0
- package/dist/esm/modules/UIManager/index.mjs +104 -0
- package/dist/esm/modules/UIManager/index.mjs.map +1 -0
- package/dist/esm/modules/UIManager/index.native.js +105 -0
- package/dist/esm/modules/UIManager/index.native.js.map +1 -0
- package/dist/esm/modules/canUseDOM.js +7 -0
- package/dist/esm/modules/canUseDOM.js.map +6 -0
- package/dist/esm/modules/canUseDOM.mjs +4 -0
- package/dist/esm/modules/canUseDOM.mjs.map +1 -0
- package/dist/esm/modules/canUseDOM.native.js +4 -0
- package/dist/esm/modules/canUseDOM.native.js.map +1 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.js +87 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs +135 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js +139 -0
- package/dist/esm/modules/createDOMProps/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/createDOMProps/index.js +114 -0
- package/dist/esm/modules/createDOMProps/index.js.map +6 -0
- package/dist/esm/modules/createDOMProps/index.mjs +115 -0
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -0
- package/dist/esm/modules/createDOMProps/index.native.js +117 -0
- package/dist/esm/modules/createDOMProps/index.native.js.map +1 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.js +229 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs +323 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js +337 -0
- package/dist/esm/modules/createEventHandle/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/createEventHandle/index.js +49 -0
- package/dist/esm/modules/createEventHandle/index.js.map +6 -0
- package/dist/esm/modules/createEventHandle/index.mjs +42 -0
- package/dist/esm/modules/createEventHandle/index.mjs.map +1 -0
- package/dist/esm/modules/createEventHandle/index.native.js +44 -0
- package/dist/esm/modules/createEventHandle/index.native.js.map +1 -0
- package/dist/esm/modules/dismissKeyboard/index.js +9 -0
- package/dist/esm/modules/dismissKeyboard/index.js.map +6 -0
- package/dist/esm/modules/dismissKeyboard/index.mjs +7 -0
- package/dist/esm/modules/dismissKeyboard/index.mjs.map +1 -0
- package/dist/esm/modules/dismissKeyboard/index.native.js +7 -0
- package/dist/esm/modules/dismissKeyboard/index.native.js.map +1 -0
- package/dist/esm/modules/forwardedProps/index.js +129 -0
- package/dist/esm/modules/forwardedProps/index.js.map +6 -0
- package/dist/esm/modules/forwardedProps/index.mjs +127 -0
- package/dist/esm/modules/forwardedProps/index.mjs.map +1 -0
- package/dist/esm/modules/forwardedProps/index.native.js +127 -0
- package/dist/esm/modules/forwardedProps/index.native.js.map +1 -0
- package/dist/esm/modules/getBoundingClientRect/index.js +9 -0
- package/dist/esm/modules/getBoundingClientRect/index.js.map +6 -0
- package/dist/esm/modules/getBoundingClientRect/index.mjs +6 -0
- package/dist/esm/modules/getBoundingClientRect/index.mjs.map +1 -0
- package/dist/esm/modules/getBoundingClientRect/index.native.js +9 -0
- package/dist/esm/modules/getBoundingClientRect/index.native.js.map +1 -0
- package/dist/esm/modules/invariant.js +19 -0
- package/dist/esm/modules/invariant.js.map +6 -0
- package/dist/esm/modules/invariant.mjs +12 -0
- package/dist/esm/modules/invariant.mjs.map +1 -0
- package/dist/esm/modules/invariant.native.js +16 -0
- package/dist/esm/modules/invariant.native.js.map +1 -0
- package/dist/esm/modules/isSelectionValid/index.js +11 -0
- package/dist/esm/modules/isSelectionValid/index.js.map +6 -0
- package/dist/esm/modules/isSelectionValid/index.mjs +12 -0
- package/dist/esm/modules/isSelectionValid/index.mjs.map +1 -0
- package/dist/esm/modules/isSelectionValid/index.native.js +12 -0
- package/dist/esm/modules/isSelectionValid/index.native.js.map +1 -0
- package/dist/esm/modules/isWebColor/index.js +6 -0
- package/dist/esm/modules/isWebColor/index.js.map +6 -0
- package/dist/esm/modules/isWebColor/index.mjs +4 -0
- package/dist/esm/modules/isWebColor/index.mjs.map +1 -0
- package/dist/esm/modules/isWebColor/index.native.js +6 -0
- package/dist/esm/modules/isWebColor/index.native.js.map +1 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.js +18 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs +21 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js +21 -0
- package/dist/esm/modules/mergeRefs/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/mergeRefs/index.js +25 -0
- package/dist/esm/modules/mergeRefs/index.js.map +6 -0
- package/dist/esm/modules/mergeRefs/index.mjs +19 -0
- package/dist/esm/modules/mergeRefs/index.mjs.map +1 -0
- package/dist/esm/modules/mergeRefs/index.native.js +20 -0
- package/dist/esm/modules/mergeRefs/index.native.js.map +1 -0
- package/dist/esm/modules/modality/__tests__/index-test.js +27 -0
- package/dist/esm/modules/modality/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/modality/__tests__/index-test.mjs +33 -0
- package/dist/esm/modules/modality/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/modality/__tests__/index-test.native.js +33 -0
- package/dist/esm/modules/modality/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/modality/index.js +67 -0
- package/dist/esm/modules/modality/index.js.map +6 -0
- package/dist/esm/modules/modality/index.mjs +109 -0
- package/dist/esm/modules/modality/index.mjs.map +1 -0
- package/dist/esm/modules/modality/index.native.js +111 -0
- package/dist/esm/modules/modality/index.native.js.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.js +9 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs +9 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js +9 -0
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.js +12 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.js.map +6 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs +13 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.native.js +17 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.native.js.map +1 -0
- package/dist/esm/modules/normalizeColor/index.js +17 -0
- package/dist/esm/modules/normalizeColor/index.js.map +6 -0
- package/dist/esm/modules/normalizeColor/index.mjs +17 -0
- package/dist/esm/modules/normalizeColor/index.mjs.map +1 -0
- package/dist/esm/modules/normalizeColor/index.native.js +20 -0
- package/dist/esm/modules/normalizeColor/index.native.js.map +1 -0
- package/dist/esm/modules/pick/index.js +10 -0
- package/dist/esm/modules/pick/index.js.map +6 -0
- package/dist/esm/modules/pick/index.mjs +7 -0
- package/dist/esm/modules/pick/index.mjs.map +1 -0
- package/dist/esm/modules/pick/index.native.js +7 -0
- package/dist/esm/modules/pick/index.native.js.map +1 -0
- package/dist/esm/modules/processColor/__tests__/index-test.js +45 -0
- package/dist/esm/modules/processColor/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/processColor/__tests__/index-test.mjs +45 -0
- package/dist/esm/modules/processColor/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/processColor/__tests__/index-test.native.js +56 -0
- package/dist/esm/modules/processColor/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/processColor/index.js +12 -0
- package/dist/esm/modules/processColor/index.js.map +6 -0
- package/dist/esm/modules/processColor/index.mjs +8 -0
- package/dist/esm/modules/processColor/index.mjs.map +1 -0
- package/dist/esm/modules/processColor/index.native.js +8 -0
- package/dist/esm/modules/processColor/index.native.js.map +1 -0
- package/dist/esm/modules/requestIdleCallback/index.js +20 -0
- package/dist/esm/modules/requestIdleCallback/index.js.map +6 -0
- package/dist/esm/modules/requestIdleCallback/index.mjs +21 -0
- package/dist/esm/modules/requestIdleCallback/index.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback/index.native.js +21 -0
- package/dist/esm/modules/requestIdleCallback/index.native.js.map +1 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js +10 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.js.map +6 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +8 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js +8 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.native.js.map +1 -0
- package/dist/esm/modules/setValueForStyles/index.js +15 -0
- package/dist/esm/modules/setValueForStyles/index.js.map +6 -0
- package/dist/esm/modules/setValueForStyles/index.mjs +13 -0
- package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -0
- package/dist/esm/modules/setValueForStyles/index.native.js +12 -0
- package/dist/esm/modules/setValueForStyles/index.native.js.map +1 -0
- package/dist/esm/modules/unitlessNumbers/index.js +64 -0
- package/dist/esm/modules/unitlessNumbers/index.js.map +6 -0
- package/dist/esm/modules/unitlessNumbers/index.mjs +63 -0
- package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -0
- package/dist/esm/modules/unitlessNumbers/index.native.js +65 -0
- package/dist/esm/modules/unitlessNumbers/index.native.js.map +1 -0
- package/dist/esm/modules/useElementLayout/index.js +43 -0
- package/dist/esm/modules/useElementLayout/index.js.map +6 -0
- package/dist/esm/modules/useElementLayout/index.mjs +48 -0
- package/dist/esm/modules/useElementLayout/index.mjs.map +1 -0
- package/dist/esm/modules/useElementLayout/index.native.js +50 -0
- package/dist/esm/modules/useElementLayout/index.native.js.map +1 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.js +275 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs +387 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.native.js +391 -0
- package/dist/esm/modules/useEvent/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useEvent/index.js +23 -0
- package/dist/esm/modules/useEvent/index.js.map +6 -0
- package/dist/esm/modules/useEvent/index.mjs +22 -0
- package/dist/esm/modules/useEvent/index.mjs.map +1 -0
- package/dist/esm/modules/useEvent/index.native.js +26 -0
- package/dist/esm/modules/useEvent/index.native.js.map +1 -0
- package/dist/esm/modules/useHover/__tests__/index-test.js +187 -0
- package/dist/esm/modules/useHover/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/useHover/__tests__/index-test.mjs +252 -0
- package/dist/esm/modules/useHover/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/useHover/__tests__/index-test.native.js +283 -0
- package/dist/esm/modules/useHover/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useHover/index.js +59 -0
- package/dist/esm/modules/useHover/index.js.map +6 -0
- package/dist/esm/modules/useHover/index.mjs +74 -0
- package/dist/esm/modules/useHover/index.mjs.map +1 -0
- package/dist/esm/modules/useHover/index.native.js +77 -0
- package/dist/esm/modules/useHover/index.native.js.map +1 -0
- package/dist/esm/modules/useLayoutEffect/index.js +8 -0
- package/dist/esm/modules/useLayoutEffect/index.js.map +6 -0
- package/dist/esm/modules/useLayoutEffect/index.mjs +6 -0
- package/dist/esm/modules/useLayoutEffect/index.mjs.map +1 -0
- package/dist/esm/modules/useLayoutEffect/index.native.js +6 -0
- package/dist/esm/modules/useLayoutEffect/index.native.js.map +1 -0
- package/dist/esm/modules/useLocale/index.js +32 -0
- package/dist/esm/modules/useLocale/index.js.map +6 -0
- package/dist/esm/modules/useLocale/index.mjs +30 -0
- package/dist/esm/modules/useLocale/index.mjs.map +1 -0
- package/dist/esm/modules/useLocale/index.native.js +31 -0
- package/dist/esm/modules/useLocale/index.native.js.map +1 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.js +75 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.js.map +6 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs +60 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +1 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.native.js +58 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.native.js.map +1 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.js +53 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs +81 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js +82 -0
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useMergeRefs/index.js +13 -0
- package/dist/esm/modules/useMergeRefs/index.js.map +6 -0
- package/dist/esm/modules/useMergeRefs/index.mjs +9 -0
- package/dist/esm/modules/useMergeRefs/index.mjs.map +1 -0
- package/dist/esm/modules/useMergeRefs/index.native.js +12 -0
- package/dist/esm/modules/useMergeRefs/index.native.js.map +1 -0
- package/dist/esm/modules/usePlatformMethods/index.js +16 -0
- package/dist/esm/modules/usePlatformMethods/index.js.map +6 -0
- package/dist/esm/modules/usePlatformMethods/index.mjs +13 -0
- package/dist/esm/modules/usePlatformMethods/index.mjs.map +1 -0
- package/dist/esm/modules/usePlatformMethods/index.native.js +23 -0
- package/dist/esm/modules/usePlatformMethods/index.native.js.map +1 -0
- package/dist/esm/modules/useStable/__tests__/index-test.js +53 -0
- package/dist/esm/modules/useStable/__tests__/index-test.js.map +6 -0
- package/dist/esm/modules/useStable/__tests__/index-test.mjs +71 -0
- package/dist/esm/modules/useStable/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/modules/useStable/__tests__/index-test.native.js +81 -0
- package/dist/esm/modules/useStable/__tests__/index-test.native.js.map +1 -0
- package/dist/esm/modules/useStable/index.js +10 -0
- package/dist/esm/modules/useStable/index.js.map +6 -0
- package/dist/esm/modules/useStable/index.mjs +8 -0
- package/dist/esm/modules/useStable/index.mjs.map +1 -0
- package/dist/esm/modules/useStable/index.native.js +8 -0
- package/dist/esm/modules/useStable/index.native.js.map +1 -0
- package/dist/esm/styleTypes.js +1 -0
- package/dist/esm/styleTypes.js.map +6 -0
- package/dist/esm/styleTypes.mjs +2 -0
- package/dist/esm/styleTypes.mjs.map +1 -0
- package/dist/esm/styleTypes.native.js +2 -0
- package/dist/esm/styleTypes.native.js.map +1 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/types.js.map +6 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/package.json +51 -0
- package/src/StyleSheet/__tests__/compiler-createReactDOMStyle-test.tsx +236 -0
- package/src/StyleSheet/__tests__/compiler-test.tsx +426 -0
- package/src/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.tsx +169 -0
- package/src/StyleSheet/__tests__/dom-test.node.tsx +34 -0
- package/src/StyleSheet/__tests__/dom-test.tsx +60 -0
- package/src/StyleSheet/__tests__/index-test.tsx +406 -0
- package/src/StyleSheet/__tests__/preprocess-test.tsx +107 -0
- package/src/StyleSheet/__tests__/validate-test.tsx +42 -0
- package/src/StyleSheet/compiler/createReactDOMStyle.tsx +217 -0
- package/src/StyleSheet/compiler/hash.tsx +1 -0
- package/src/StyleSheet/compiler/hyphenateStyleName.tsx +27 -0
- package/src/StyleSheet/compiler/index.tsx +478 -0
- package/src/StyleSheet/compiler/normalizeColor.tsx +37 -0
- package/src/StyleSheet/compiler/normalizeValueWithProperty.tsx +37 -0
- package/src/StyleSheet/compiler/resolveShadowValue.tsx +28 -0
- package/src/StyleSheet/dom/createCSSStyleSheet.tsx +43 -0
- package/src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx +195 -0
- package/src/StyleSheet/dom/index.tsx +92 -0
- package/src/StyleSheet/index.tsx +183 -0
- package/src/StyleSheet/preprocess.tsx +119 -0
- package/src/StyleSheet/validate.tsx +90 -0
- package/src/TextAncestorContext.tsx +14 -0
- package/src/colorProps.tsx +12 -0
- package/src/index.tsx +43 -0
- package/src/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.tsx +44 -0
- package/src/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.tsx +25 -0
- package/src/modules/AccessibilityUtil/index.tsx +20 -0
- package/src/modules/AccessibilityUtil/isDisabled.tsx +15 -0
- package/src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx +54 -0
- package/src/modules/AccessibilityUtil/propsToAriaRole.tsx +39 -0
- package/src/modules/AssetRegistry/index.tsx +32 -0
- package/src/modules/ImageLoader/index.tsx +167 -0
- package/src/modules/InteractionManager.tsx +63 -0
- package/src/modules/Platform/__tests__/index-test.tsx +45 -0
- package/src/modules/Platform/index.tsx +17 -0
- package/src/modules/TextInputState/index.tsx +64 -0
- package/src/modules/UIManager/__tests__/index-test.tsx +87 -0
- package/src/modules/UIManager/index.tsx +121 -0
- package/src/modules/canUseDOM.tsx +16 -0
- package/src/modules/createDOMProps/__tests__/index-test.tsx +138 -0
- package/src/modules/createDOMProps/index.tsx +372 -0
- package/src/modules/createEventHandle/__tests__/index-test.tsx +459 -0
- package/src/modules/createEventHandle/index.tsx +100 -0
- package/src/modules/dismissKeyboard/index.tsx +16 -0
- package/src/modules/forwardedProps/index.tsx +144 -0
- package/src/modules/getBoundingClientRect/index.tsx +19 -0
- package/src/modules/invariant.ts +23 -0
- package/src/modules/isSelectionValid/index.tsx +20 -0
- package/src/modules/isWebColor/index.tsx +16 -0
- package/src/modules/mergeRefs/__tests__/index-test.tsx +32 -0
- package/src/modules/mergeRefs/index.tsx +36 -0
- package/src/modules/modality/__tests__/index-test.tsx +66 -0
- package/src/modules/modality/index.tsx +228 -0
- package/src/modules/multiplyStyleLengthValue/__tests__/index-test.tsx +23 -0
- package/src/modules/multiplyStyleLengthValue/index.tsx +28 -0
- package/src/modules/normalizeColor/index.tsx +34 -0
- package/src/modules/pick/index.tsx +25 -0
- package/src/modules/processColor/__tests__/index-test.tsx +78 -0
- package/src/modules/processColor/index.tsx +28 -0
- package/src/modules/requestIdleCallback/index.tsx +36 -0
- package/src/modules/setValueForStyles/dangerousStyleValue.tsx +52 -0
- package/src/modules/setValueForStyles/index.tsx +41 -0
- package/src/modules/unitlessNumbers/index.tsx +79 -0
- package/src/modules/useElementLayout/index.tsx +93 -0
- package/src/modules/useEvent/__tests__/index-test.tsx +511 -0
- package/src/modules/useEvent/index.tsx +64 -0
- package/src/modules/useHover/__tests__/index-test.tsx +342 -0
- package/src/modules/useHover/index.tsx +181 -0
- package/src/modules/useLayoutEffect/index.ts +19 -0
- package/src/modules/useLocale/index.tsx +60 -0
- package/src/modules/useLocale/isLocaleRTL.tsx +74 -0
- package/src/modules/useMergeRefs/__tests__/index-test.tsx +91 -0
- package/src/modules/useMergeRefs/index.tsx +22 -0
- package/src/modules/usePlatformMethods/index.tsx +40 -0
- package/src/modules/useStable/__tests__/index-test.tsx +101 -0
- package/src/modules/useStable/index.tsx +24 -0
- package/src/styleTypes.ts +321 -0
- package/src/types.ts +77 -0
- package/types/StyleSheet/compiler/createReactDOMStyle.d.ts +18 -0
- package/types/StyleSheet/compiler/createReactDOMStyle.d.ts.map +1 -0
- package/types/StyleSheet/compiler/hash.d.ts +2 -0
- package/types/StyleSheet/compiler/hash.d.ts.map +1 -0
- package/types/StyleSheet/compiler/hyphenateStyleName.d.ts +11 -0
- package/types/StyleSheet/compiler/hyphenateStyleName.d.ts.map +1 -0
- package/types/StyleSheet/compiler/index.d.ts +39 -0
- package/types/StyleSheet/compiler/index.d.ts.map +1 -0
- package/types/StyleSheet/compiler/normalizeColor.d.ts +11 -0
- package/types/StyleSheet/compiler/normalizeColor.d.ts.map +1 -0
- package/types/StyleSheet/compiler/normalizeValueWithProperty.d.ts +10 -0
- package/types/StyleSheet/compiler/normalizeValueWithProperty.d.ts.map +1 -0
- package/types/StyleSheet/compiler/resolveShadowValue.d.ts +11 -0
- package/types/StyleSheet/compiler/resolveShadowValue.d.ts.map +1 -0
- package/types/StyleSheet/dom/createCSSStyleSheet.d.ts +10 -0
- package/types/StyleSheet/dom/createCSSStyleSheet.d.ts.map +1 -0
- package/types/StyleSheet/dom/createOrderedCSSStyleSheet.d.ts +29 -0
- package/types/StyleSheet/dom/createOrderedCSSStyleSheet.d.ts.map +1 -0
- package/types/StyleSheet/dom/index.d.ts +15 -0
- package/types/StyleSheet/dom/index.d.ts.map +1 -0
- package/types/StyleSheet/index.d.ts +69 -0
- package/types/StyleSheet/index.d.ts.map +1 -0
- package/types/StyleSheet/preprocess.d.ts +16 -0
- package/types/StyleSheet/preprocess.d.ts.map +1 -0
- package/types/StyleSheet/validate.d.ts +10 -0
- package/types/StyleSheet/validate.d.ts.map +1 -0
- package/types/TextAncestorContext.d.ts +13 -0
- package/types/TextAncestorContext.d.ts.map +1 -0
- package/types/colorProps.d.ts +13 -0
- package/types/colorProps.d.ts.map +1 -0
- package/types/index.d.ts +42 -0
- package/types/index.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/index.d.ts +17 -0
- package/types/modules/AccessibilityUtil/index.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/isDisabled.d.ts +11 -0
- package/types/modules/AccessibilityUtil/isDisabled.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts +11 -0
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts +13 -0
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts.map +1 -0
- package/types/modules/AssetRegistry/index.d.ts +22 -0
- package/types/modules/AssetRegistry/index.d.ts.map +1 -0
- package/types/modules/ImageLoader/index.d.ts +28 -0
- package/types/modules/ImageLoader/index.d.ts.map +1 -0
- package/types/modules/InteractionManager.d.ts +34 -0
- package/types/modules/InteractionManager.d.ts.map +1 -0
- package/types/modules/Platform/index.d.ts +16 -0
- package/types/modules/Platform/index.d.ts.map +1 -0
- package/types/modules/TextInputState/index.d.ts +39 -0
- package/types/modules/TextInputState/index.d.ts.map +1 -0
- package/types/modules/UIManager/index.d.ts +20 -0
- package/types/modules/UIManager/index.d.ts.map +1 -0
- package/types/modules/canUseDOM.d.ts +11 -0
- package/types/modules/canUseDOM.d.ts.map +1 -0
- package/types/modules/createDOMProps/index.d.ts +11 -0
- package/types/modules/createDOMProps/index.d.ts.map +1 -0
- package/types/modules/createEventHandle/index.d.ts +20 -0
- package/types/modules/createEventHandle/index.d.ts.map +1 -0
- package/types/modules/dismissKeyboard/index.d.ts +11 -0
- package/types/modules/dismissKeyboard/index.d.ts.map +1 -0
- package/types/modules/forwardedProps/index.d.ts +379 -0
- package/types/modules/forwardedProps/index.d.ts.map +1 -0
- package/types/modules/getBoundingClientRect/index.d.ts +11 -0
- package/types/modules/getBoundingClientRect/index.d.ts.map +1 -0
- package/types/modules/invariant.d.ts +3 -0
- package/types/modules/invariant.d.ts.map +1 -0
- package/types/modules/isSelectionValid/index.d.ts +10 -0
- package/types/modules/isSelectionValid/index.d.ts.map +1 -0
- package/types/modules/isWebColor/index.d.ts +11 -0
- package/types/modules/isWebColor/index.d.ts.map +1 -0
- package/types/modules/mergeRefs/index.d.ts +11 -0
- package/types/modules/mergeRefs/index.d.ts.map +1 -0
- package/types/modules/modality/index.d.ts +17 -0
- package/types/modules/modality/index.d.ts.map +1 -0
- package/types/modules/multiplyStyleLengthValue/index.d.ts +11 -0
- package/types/modules/multiplyStyleLengthValue/index.d.ts.map +1 -0
- package/types/modules/normalizeColor/index.d.ts +11 -0
- package/types/modules/normalizeColor/index.d.ts.map +1 -0
- package/types/modules/pick/index.d.ts +12 -0
- package/types/modules/pick/index.d.ts.map +1 -0
- package/types/modules/processColor/index.d.ts +11 -0
- package/types/modules/processColor/index.d.ts.map +1 -0
- package/types/modules/requestIdleCallback/index.d.ts +5 -0
- package/types/modules/requestIdleCallback/index.d.ts.map +1 -0
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts +12 -0
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts.map +1 -0
- package/types/modules/setValueForStyles/index.d.ts +10 -0
- package/types/modules/setValueForStyles/index.d.ts.map +1 -0
- package/types/modules/unitlessNumbers/index.d.ts +61 -0
- package/types/modules/unitlessNumbers/index.d.ts.map +1 -0
- package/types/modules/useElementLayout/index.d.ts +12 -0
- package/types/modules/useElementLayout/index.d.ts.map +1 -0
- package/types/modules/useEvent/index.d.ts +24 -0
- package/types/modules/useEvent/index.d.ts.map +1 -0
- package/types/modules/useHover/index.d.ts +21 -0
- package/types/modules/useHover/index.d.ts.map +1 -0
- package/types/modules/useLayoutEffect/index.d.ts +14 -0
- package/types/modules/useLayoutEffect/index.d.ts.map +1 -0
- package/types/modules/useLocale/index.d.ts +14 -0
- package/types/modules/useLocale/index.d.ts.map +1 -0
- package/types/modules/useLocale/isLocaleRTL.d.ts +13 -0
- package/types/modules/useLocale/isLocaleRTL.d.ts.map +1 -0
- package/types/modules/useMergeRefs/index.d.ts +11 -0
- package/types/modules/useMergeRefs/index.d.ts.map +1 -0
- package/types/modules/usePlatformMethods/index.d.ts +19 -0
- package/types/modules/usePlatformMethods/index.d.ts.map +1 -0
- package/types/modules/useStable/index.d.ts +10 -0
- package/types/modules/useStable/index.d.ts.map +1 -0
- package/types/styleTypes.d.ts +211 -0
- package/types/styleTypes.d.ts.map +1 -0
- package/types/types.d.ts +46 -0
- package/types/types.d.ts.map +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var normalizeColor_exports = {};
|
|
24
|
+
__export(normalizeColor_exports, {
|
|
25
|
+
default: () => normalizeColor_default
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(normalizeColor_exports);
|
|
28
|
+
var import_isWebColor = __toESM(require("../../modules/isWebColor")), import_processColor = require("../../modules/processColor");
|
|
29
|
+
const normalizeColor = (color, opacity = 1) => {
|
|
30
|
+
if (color == null) return;
|
|
31
|
+
if (typeof color == "string" && (0, import_isWebColor.default)(color))
|
|
32
|
+
return color;
|
|
33
|
+
const colorInt = (0, import_processColor.processColor)(color);
|
|
34
|
+
if (colorInt != null) {
|
|
35
|
+
const r = colorInt >> 16 & 255, g = colorInt >> 8 & 255, b = colorInt & 255, alpha = ((colorInt >> 24 & 255) / 255 * opacity).toFixed(2);
|
|
36
|
+
return `rgba(${r},${g},${b},${alpha})`;
|
|
37
|
+
}
|
|
38
|
+
if (typeof color == "string")
|
|
39
|
+
return color;
|
|
40
|
+
};
|
|
41
|
+
var normalizeColor_default = normalizeColor;
|
|
42
|
+
//# sourceMappingURL=normalizeColor.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/normalizeColor.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,wBAAuB,8CACvB,sBAA6B;AAE7B,MAAM,iBAAiB,CAAC,OAAyB,UAAU,MAAqB;AAC9E,MAAI,SAAS,KAAM;AAEnB,MAAI,OAAO,SAAU,gBAAY,kBAAAA,SAAW,KAAK;AAC/C,WAAO;AAGT,QAAM,eAAW,kCAAa,KAAK;AACnC,MAAI,YAAY,MAAM;AACpB,UAAM,IAAK,YAAY,KAAM,KACvB,IAAK,YAAY,IAAK,KACtB,IAAI,WAAW,KAEf,UADM,YAAY,KAAM,OAAO,MAClB,SAAS,QAAQ,CAAC;AACrC,WAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK;AAAA,EACrC;AAGE,MAAI,OAAO,SAAU;AACnB,WAAO;AAGb;AAEA,IAAO,yBAAQ;",
|
|
5
|
+
"names": ["isWebColor"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var normalizeColor_exports = {};
|
|
25
|
+
__export(normalizeColor_exports, {
|
|
26
|
+
default: () => normalizeColor_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(normalizeColor_exports);
|
|
29
|
+
var import_isWebColor = __toESM(require("../../modules/isWebColor")), import_processColor = require("../../modules/processColor"), normalizeColor = function(color) {
|
|
30
|
+
var opacity = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
31
|
+
if (color != null) {
|
|
32
|
+
if (typeof color == "string" && (0, import_isWebColor.default)(color))
|
|
33
|
+
return color;
|
|
34
|
+
var colorInt = (0, import_processColor.processColor)(color);
|
|
35
|
+
if (colorInt != null) {
|
|
36
|
+
var r = colorInt >> 16 & 255, g = colorInt >> 8 & 255, b = colorInt & 255, a = (colorInt >> 24 & 255) / 255, alpha = (a * opacity).toFixed(2);
|
|
37
|
+
return `rgba(${r},${g},${b},${alpha})`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, normalizeColor_default = normalizeColor;
|
|
41
|
+
//# sourceMappingURL=normalizeColor.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/Users/n8/tamagui/code/core/react-native-web-internals/src/StyleSheet/compiler/normalizeColor.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AASA,wBAAuB,8CACvB,sBAA6B,uCAEvBA,iBAAiB,SAACC,OAAAA;MAAyBC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAU;AACzD,MAAID,SAAS,MAEb;QAAI,OAAOA,SAAU,gBAAYE,kBAAAA,SAAWF,KAAAA;AAC1C,aAAOA;AAGT,QAAMG,eAAWC,kCAAaJ,KAAAA;AAC9B,QAAIG,YAAY,MAAM;AACpB,UAAME,IAAKF,YAAY,KAAM,KACvBG,IAAKH,YAAY,IAAK,KACtBI,IAAIJ,WAAW,KACfK,KAAML,YAAY,KAAM,OAAO,KAC/BM,SAASD,IAAIP,SAASS,QAAQ,CAAA;AACpC,aAAO,QAAQL,CAAAA,IAAKC,CAAAA,IAAKC,CAAAA,IAAKE,KAAAA;IAChC;;AAOF,GAEA,yBAAeV;",
|
|
5
|
+
"names": ["normalizeColor", "color", "opacity", "isWebColor", "colorInt", "processColor", "r", "g", "b", "a", "alpha", "toFixed"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var normalizeValueWithProperty_exports = {};
|
|
24
|
+
__export(normalizeValueWithProperty_exports, {
|
|
25
|
+
default: () => normalizeValueWithProperty
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(normalizeValueWithProperty_exports);
|
|
28
|
+
var import_unitlessNumbers = require("../../modules/unitlessNumbers/index"), import_normalizeColor = __toESM(require("./normalizeColor"));
|
|
29
|
+
const colorProps = {
|
|
30
|
+
backgroundColor: !0,
|
|
31
|
+
borderColor: !0,
|
|
32
|
+
borderTopColor: !0,
|
|
33
|
+
borderRightColor: !0,
|
|
34
|
+
borderBottomColor: !0,
|
|
35
|
+
borderLeftColor: !0,
|
|
36
|
+
color: !0,
|
|
37
|
+
shadowColor: !0,
|
|
38
|
+
textDecorationColor: !0,
|
|
39
|
+
textShadowColor: !0
|
|
40
|
+
};
|
|
41
|
+
function normalizeValueWithProperty(value, property) {
|
|
42
|
+
let returnValue = value;
|
|
43
|
+
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.default)(value)), returnValue;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=normalizeValueWithProperty.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/normalizeValueWithProperty.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,6BAAgC,gDAChC,wBAA2B;AAE3B,MAAM,aAAa;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,OAAO;AAAA,EACP,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,iBAAiB;AACnB;AAEe,SAAR,2BACL,OACA,UACK;AACL,MAAI,cAAc;AAClB,UAAK,YAAY,QAAQ,CAAC,uCAAgB,QAAQ,MAAM,OAAO,SAAU,WACvE,cAAc,GAAG,KAAK,OACb,YAAY,QAAQ,WAAW,QAAQ,MAChD,kBAAc,sBAAAA,SAAe,KAAK,IAE7B;AACT;",
|
|
5
|
+
"names": ["normalizeColor"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var normalizeValueWithProperty_exports = {};
|
|
25
|
+
__export(normalizeValueWithProperty_exports, {
|
|
26
|
+
default: () => normalizeValueWithProperty
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(normalizeValueWithProperty_exports);
|
|
29
|
+
var import_unitlessNumbers = require("../../modules/unitlessNumbers/index"), import_normalizeColor = __toESM(require("./normalizeColor")), colorProps = {
|
|
30
|
+
backgroundColor: !0,
|
|
31
|
+
borderColor: !0,
|
|
32
|
+
borderTopColor: !0,
|
|
33
|
+
borderRightColor: !0,
|
|
34
|
+
borderBottomColor: !0,
|
|
35
|
+
borderLeftColor: !0,
|
|
36
|
+
color: !0,
|
|
37
|
+
shadowColor: !0,
|
|
38
|
+
textDecorationColor: !0,
|
|
39
|
+
textShadowColor: !0
|
|
40
|
+
};
|
|
41
|
+
function normalizeValueWithProperty(value, property) {
|
|
42
|
+
var returnValue = value;
|
|
43
|
+
return (property == null || !import_unitlessNumbers.unitlessNumbers[property]) && typeof value == "number" ? returnValue = `${value}px` : property != null && colorProps[property] && (returnValue = (0, import_normalizeColor.default)(value)), returnValue;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=normalizeValueWithProperty.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/Users/n8/tamagui/code/core/react-native-web-internals/src/StyleSheet/compiler/normalizeValueWithProperty.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AASA,6BAAgC,gDAChC,wBAA2B,sCAErBA,aAAa;EACjBC,iBAAiB;EACjBC,aAAa;EACbC,gBAAgB;EAChBC,kBAAkB;EAClBC,mBAAmB;EACnBC,iBAAiB;EACjBC,OAAO;EACPC,aAAa;EACbC,qBAAqB;EACrBC,iBAAiB;AACnB;AAEe,SAAf,2BACEC,OACAC,UAAwB;AAExB,MAAIC,cAAcF;AAClB,UAAKC,YAAY,QAAQ,CAACE,uCAAgBF,QAAAA,MAAc,OAAOD,SAAU,WACvEE,cAAc,GAAGF,KAAAA,OACRC,YAAY,QAAQZ,WAAWY,QAAAA,MACxCC,kBAAcE,sBAAAA,SAAeJ,KAAAA,IAExBE;AACT;",
|
|
5
|
+
"names": ["colorProps", "backgroundColor", "borderColor", "borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor", "color", "shadowColor", "textDecorationColor", "textShadowColor", "value", "property", "returnValue", "unitlessNumbers", "normalizeColor"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var resolveShadowValue_exports = {};
|
|
24
|
+
__export(resolveShadowValue_exports, {
|
|
25
|
+
default: () => resolveShadowValue_default
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(resolveShadowValue_exports);
|
|
28
|
+
var import_normalizeColor = __toESM(require("./normalizeColor")), import_normalizeValueWithProperty = __toESM(require("./normalizeValueWithProperty"));
|
|
29
|
+
const defaultOffset = { height: 0, width: 0 }, resolveShadowValue = (style) => {
|
|
30
|
+
const { shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style, { height, width } = shadowOffset || defaultOffset, offsetX = (0, import_normalizeValueWithProperty.default)(width), offsetY = (0, import_normalizeValueWithProperty.default)(height), blurRadius = (0, import_normalizeValueWithProperty.default)(shadowRadius || 0), color = (0, import_normalizeColor.default)(shadowColor || "black", shadowOpacity);
|
|
31
|
+
if (color != null && offsetX != null && offsetY != null && blurRadius != null)
|
|
32
|
+
return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
|
|
33
|
+
};
|
|
34
|
+
var resolveShadowValue_default = resolveShadowValue;
|
|
35
|
+
//# sourceMappingURL=resolveShadowValue.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/resolveShadowValue.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,4BAA2B,sCAC3B,oCAAuC;AAEvC,MAAM,gBAAgB,EAAE,QAAQ,GAAG,OAAO,EAAE,GAEtC,qBAAqB,CAAC,UAAiC;AAC3D,QAAM,EAAE,aAAa,cAAc,eAAe,aAAa,IAAI,OAC7D,EAAE,QAAQ,MAAM,IAAI,gBAAgB,eACpC,cAAU,kCAAAA,SAA2B,KAAK,GAC1C,cAAU,kCAAAA,SAA2B,MAAM,GAC3C,iBAAa,kCAAAA,SAA2B,gBAAgB,CAAC,GACzD,YAAQ,sBAAAC,SAAe,eAAe,SAAS,aAAa;AAClE,MAAI,SAAS,QAAQ,WAAW,QAAQ,WAAW,QAAQ,cAAc;AACvE,WAAO,GAAG,OAAO,IAAI,OAAO,IAAI,UAAU,IAAI,KAAK;AAEvD;AAEA,IAAO,6BAAQ;",
|
|
5
|
+
"names": ["normalizeValueWithProperty", "normalizeColor"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var resolveShadowValue_exports = {};
|
|
25
|
+
__export(resolveShadowValue_exports, {
|
|
26
|
+
default: () => resolveShadowValue_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(resolveShadowValue_exports);
|
|
29
|
+
var import_normalizeColor = __toESM(require("./normalizeColor")), import_normalizeValueWithProperty = __toESM(require("./normalizeValueWithProperty")), defaultOffset = {
|
|
30
|
+
height: 0,
|
|
31
|
+
width: 0
|
|
32
|
+
}, resolveShadowValue = function(style) {
|
|
33
|
+
var { shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style, { height, width } = shadowOffset || defaultOffset, offsetX = (0, import_normalizeValueWithProperty.default)(width), offsetY = (0, import_normalizeValueWithProperty.default)(height), blurRadius = (0, import_normalizeValueWithProperty.default)(shadowRadius || 0), color = (0, import_normalizeColor.default)(shadowColor || "black", shadowOpacity);
|
|
34
|
+
if (color != null && offsetX != null && offsetY != null && blurRadius != null)
|
|
35
|
+
return `${offsetX} ${offsetY} ${blurRadius} ${color}`;
|
|
36
|
+
}, resolveShadowValue_default = resolveShadowValue;
|
|
37
|
+
//# sourceMappingURL=resolveShadowValue.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/compiler/Users/n8/tamagui/code/core/react-native-web-internals/src/StyleSheet/compiler/resolveShadowValue.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAUA,4BAA2B,sCAC3B,oCAAuC,kDAEjCA,gBAAgB;EAAEC,QAAQ;EAAGC,OAAO;AAAE,GAEtCC,qBAAqB,SAACC,OAAAA;AAC1B,MAAM,EAAEC,aAAaC,cAAcC,eAAeC,aAAY,IAAKJ,OAC7D,EAAEH,QAAQC,MAAK,IAAKI,gBAAgBN,eACpCS,cAAUC,kCAAAA,SAA2BR,KAAAA,GACrCS,cAAUD,kCAAAA,SAA2BT,MAAAA,GACrCW,iBAAaF,kCAAAA,SAA2BF,gBAAgB,CAAA,GACxDK,YAAQC,sBAAAA,SAAeT,eAAe,SAASE,aAAAA;AACrD,MAAIM,SAAS,QAAQJ,WAAW,QAAQE,WAAW,QAAQC,cAAc;AACvE,WAAO,GAAGH,OAAAA,IAAWE,OAAAA,IAAWC,UAAAA,IAAcC,KAAAA;AAElD,GAEA,6BAAeV;",
|
|
5
|
+
"names": ["defaultOffset", "height", "width", "resolveShadowValue", "style", "shadowColor", "shadowOffset", "shadowOpacity", "shadowRadius", "offsetX", "normalizeValueWithProperty", "offsetY", "blurRadius", "color", "normalizeColor"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var createCSSStyleSheet_exports = {};
|
|
24
|
+
__export(createCSSStyleSheet_exports, {
|
|
25
|
+
default: () => createCSSStyleSheet
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(createCSSStyleSheet_exports);
|
|
28
|
+
var import_canUseDOM = __toESM(require("../../modules/canUseDOM"));
|
|
29
|
+
function createCSSStyleSheet(id, rootNode, textContent) {
|
|
30
|
+
if (import_canUseDOM.default) {
|
|
31
|
+
const root = rootNode ?? document;
|
|
32
|
+
let element = root.getElementById(id);
|
|
33
|
+
if (element == null)
|
|
34
|
+
if (element = document.createElement("style"), element.setAttribute("id", id), typeof textContent == "string" && element.appendChild(document.createTextNode(textContent)), root instanceof ShadowRoot)
|
|
35
|
+
root.insertBefore(element, root.firstChild);
|
|
36
|
+
else {
|
|
37
|
+
const head = root.head;
|
|
38
|
+
head && head.appendChild(element);
|
|
39
|
+
}
|
|
40
|
+
return element.sheet;
|
|
41
|
+
} else
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=createCSSStyleSheet.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/dom/createCSSStyleSheet.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,uBAAsB;AAGP,SAAR,oBACL,IACA,UACA,aACsB;AAEtB,MAAI,iBAAAA,SAAW;AACb,UAAM,OAAO,YAA8B;AAC3C,QAAI,UAAU,KAAK,eAAe,EAAE;AACpC,QAAI,WAAW;AAMb,UALA,UAAU,SAAS,cAAc,OAAO,GACxC,QAAQ,aAAa,MAAM,EAAE,GACzB,OAAO,eAAgB,YACzB,QAAQ,YAAY,SAAS,eAAe,WAAW,CAAC,GAEtD,gBAAgB;AAClB,aAAK,aAAa,SAAS,KAAK,UAAU;AAAA,WACrC;AACL,cAAM,OAAO,KAAK;AAClB,QAAI,QAEF,KAAK,YAAY,OAAO;AAAA,MAE5B;AAGF,WAAO,QAAQ;AAAA,EACjB;AACE,WAAO;AAEX;",
|
|
5
|
+
"names": ["canUseDOM"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var createCSSStyleSheet_exports = {};
|
|
25
|
+
__export(createCSSStyleSheet_exports, {
|
|
26
|
+
default: () => createCSSStyleSheet
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(createCSSStyleSheet_exports);
|
|
29
|
+
var import_canUseDOM = __toESM(require("../../modules/canUseDOM"));
|
|
30
|
+
function createCSSStyleSheet(id, rootNode, textContent) {
|
|
31
|
+
if (import_canUseDOM.default) {
|
|
32
|
+
var root = rootNode ?? document, element = root.getElementById(id);
|
|
33
|
+
if (element == null)
|
|
34
|
+
if (element = document.createElement("style"), element.setAttribute("id", id), typeof textContent == "string" && element.appendChild(document.createTextNode(textContent)), root instanceof ShadowRoot)
|
|
35
|
+
root.insertBefore(element, root.firstChild);
|
|
36
|
+
else {
|
|
37
|
+
var head = root.head;
|
|
38
|
+
head && head.appendChild(element);
|
|
39
|
+
}
|
|
40
|
+
return element.sheet;
|
|
41
|
+
} else
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=createCSSStyleSheet.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/dom/Users/n8/tamagui/code/core/react-native-web-internals/src/StyleSheet/dom/createCSSStyleSheet.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AASA,uBAAsB;AAGP,SAAf,oBACEA,IACAC,UACAC,aAAoB;AAGpB,MAAIC,iBAAAA,SAAW;AACb,QAAMC,OAAOH,YAA8BI,UACvCC,UAAUF,KAAKG,eAAeP,EAAAA;AAClC,QAAIM,WAAW;AAMb,UALAA,UAAUD,SAASG,cAAc,OAAA,GACjCF,QAAQG,aAAa,MAAMT,EAAAA,GACvB,OAAOE,eAAgB,YACzBI,QAAQI,YAAYL,SAASM,eAAeT,WAAAA,CAAAA,GAE1CE,gBAAgBQ;AAClBR,aAAKS,aAAaP,SAASF,KAAKU,UAAU;WACrC;AACL,YAAMC,OAAOX,KAAKW;AAClB,QAAIA,QAEFA,KAAKL,YAAYJ,OAAAA;MAErB;AAGF,WAAOA,QAAQU;EACjB;AACE,WAAO;AAEX;",
|
|
5
|
+
"names": ["id", "rootNode", "textContent", "canUseDOM", "root", "document", "element", "getElementById", "createElement", "setAttribute", "appendChild", "createTextNode", "ShadowRoot", "insertBefore", "firstChild", "head", "sheet"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
default: () => 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
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx"],
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": ["sheet"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var createOrderedCSSStyleSheet_exports = {};
|
|
17
|
+
__export(createOrderedCSSStyleSheet_exports, {
|
|
18
|
+
default: () => createOrderedCSSStyleSheet
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(createOrderedCSSStyleSheet_exports);
|
|
21
|
+
var slice = Array.prototype.slice;
|
|
22
|
+
function createOrderedCSSStyleSheet(sheet) {
|
|
23
|
+
var groups = {}, selectors = {};
|
|
24
|
+
if (sheet != null) {
|
|
25
|
+
var group;
|
|
26
|
+
slice.call(sheet.cssRules).forEach(function(cssRule, i) {
|
|
27
|
+
var cssText = cssRule.cssText;
|
|
28
|
+
if (cssText.indexOf("stylesheet-group") > -1)
|
|
29
|
+
group = decodeGroupRule(cssRule), groups[group] = {
|
|
30
|
+
start: i,
|
|
31
|
+
rules: [
|
|
32
|
+
cssText
|
|
33
|
+
]
|
|
34
|
+
};
|
|
35
|
+
else {
|
|
36
|
+
var selectorText = getSelectorText(cssText);
|
|
37
|
+
selectorText != null && (selectors[selectorText] = !0, groups[group].rules.push(cssText));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function sheetInsert(sheet2, group2, text) {
|
|
42
|
+
var orderedGroups = getOrderedGroups(groups), groupIndex = orderedGroups.indexOf(group2), nextGroupIndex = groupIndex + 1, nextGroup = orderedGroups[nextGroupIndex], position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length, isInserted = insertRuleAt(sheet2, text, position);
|
|
43
|
+
if (isInserted) {
|
|
44
|
+
groups[group2].start == null && (groups[group2].start = position);
|
|
45
|
+
for (var i = nextGroupIndex; i < orderedGroups.length; i += 1) {
|
|
46
|
+
var groupNumber = orderedGroups[i], previousStart = groups[groupNumber].start || 0;
|
|
47
|
+
groups[groupNumber].start = previousStart + 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return isInserted;
|
|
51
|
+
}
|
|
52
|
+
var OrderedCSSStyleSheet = {
|
|
53
|
+
/**
|
|
54
|
+
* The textContent of the style sheet.
|
|
55
|
+
*/
|
|
56
|
+
getTextContent() {
|
|
57
|
+
return getOrderedGroups(groups).map(function(group2) {
|
|
58
|
+
var rules = groups[group2].rules, marker = rules.shift();
|
|
59
|
+
return rules.sort(), rules.unshift(marker), rules.join(`
|
|
60
|
+
`);
|
|
61
|
+
}).join(`
|
|
62
|
+
`);
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Insert a rule into the style sheet
|
|
66
|
+
*/
|
|
67
|
+
insert(cssText, groupValue) {
|
|
68
|
+
var group2 = Number(groupValue);
|
|
69
|
+
if (groups[group2] == null) {
|
|
70
|
+
var markerRule = encodeGroupRule(group2);
|
|
71
|
+
groups[group2] = {
|
|
72
|
+
start: null,
|
|
73
|
+
rules: [
|
|
74
|
+
markerRule
|
|
75
|
+
]
|
|
76
|
+
}, sheet != null && sheetInsert(sheet, group2, markerRule);
|
|
77
|
+
}
|
|
78
|
+
var selectorText = getSelectorText(cssText);
|
|
79
|
+
if (selectorText != null && selectors[selectorText] == null && (selectors[selectorText] = !0, groups[group2].rules.push(cssText), sheet != null)) {
|
|
80
|
+
var isInserted = sheetInsert(sheet, group2, cssText);
|
|
81
|
+
isInserted || groups[group2].rules.pop();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
return OrderedCSSStyleSheet;
|
|
86
|
+
}
|
|
87
|
+
function encodeGroupRule(group) {
|
|
88
|
+
return `[stylesheet-group="${group}"]{}`;
|
|
89
|
+
}
|
|
90
|
+
var groupPattern = /["']/g;
|
|
91
|
+
function decodeGroupRule(cssRule) {
|
|
92
|
+
return Number(cssRule.selectorText.split(groupPattern)[1]);
|
|
93
|
+
}
|
|
94
|
+
function getOrderedGroups(obj) {
|
|
95
|
+
return Object.keys(obj).map(Number).sort(function(a, b) {
|
|
96
|
+
return a > b ? 1 : -1;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
var selectorPattern = /\s*([,])\s*/g;
|
|
100
|
+
function getSelectorText(cssText) {
|
|
101
|
+
var selector = cssText.split("{")[0].trim();
|
|
102
|
+
return selector !== "" ? selector.replace(selectorPattern, "$1") : null;
|
|
103
|
+
}
|
|
104
|
+
function insertRuleAt(root, cssText, position) {
|
|
105
|
+
try {
|
|
106
|
+
return root.insertRule(cssText, position), !0;
|
|
107
|
+
} catch {
|
|
108
|
+
return !1;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=createOrderedCSSStyleSheet.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/StyleSheet/dom/Users/n8/tamagui/code/core/react-native-web-internals/src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx"],
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": ["slice", "Array", "prototype", "sheet", "groups", "selectors", "group", "call", "cssRules", "forEach", "cssRule", "i", "cssText", "indexOf", "decodeGroupRule", "start", "rules", "selectorText", "getSelectorText", "push", "sheetInsert", "text", "orderedGroups", "getOrderedGroups", "groupIndex", "nextGroupIndex", "nextGroup", "position", "length", "isInserted", "insertRuleAt", "groupNumber", "previousStart", "OrderedCSSStyleSheet", "getTextContent", "map", "marker", "shift", "sort", "unshift", "join", "insert", "groupValue", "Number", "markerRule", "encodeGroupRule", "pop", "groupPattern", "split", "obj", "Object", "keys", "a", "b", "selectorPattern", "selector", "trim", "replace", "root", "insertRule"]
|
|
6
|
+
}
|