@hanzogui/react-native-web-internals 2.0.0
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.cjs +240 -0
- package/dist/cjs/StyleSheet/__tests__/compiler-test.cjs +407 -0
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.cjs +121 -0
- package/dist/cjs/StyleSheet/__tests__/index-test.cjs +404 -0
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.cjs +108 -0
- package/dist/cjs/StyleSheet/__tests__/validate-test.cjs +36 -0
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +87 -0
- package/dist/cjs/StyleSheet/compiler/hash.cjs +26 -0
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +36 -0
- package/dist/cjs/StyleSheet/compiler/index.cjs +318 -0
- package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +40 -0
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +43 -0
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +48 -0
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +37 -0
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +110 -0
- package/dist/cjs/StyleSheet/dom/index.cjs +67 -0
- package/dist/cjs/StyleSheet/index.cjs +57 -0
- package/dist/cjs/StyleSheet/preprocess.cjs +101 -0
- package/dist/cjs/StyleSheet/validate.cjs +69 -0
- package/dist/cjs/TextAncestorContext.cjs +27 -0
- package/dist/cjs/colorProps.cjs +37 -0
- package/dist/cjs/index.cjs +103 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +50 -0
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +40 -0
- package/dist/cjs/modules/AccessibilityUtil/index.cjs +33 -0
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +26 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +57 -0
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +47 -0
- package/dist/cjs/modules/AssetRegistry/index.cjs +33 -0
- package/dist/cjs/modules/ImageLoader/index.cjs +111 -0
- package/dist/cjs/modules/InteractionManager.cjs +184 -0
- package/dist/cjs/modules/Platform/__tests__/index-test.cjs +48 -0
- package/dist/cjs/modules/Platform/index.cjs +30 -0
- package/dist/cjs/modules/TextInputState/index.cjs +55 -0
- package/dist/cjs/modules/UIManager/__tests__/index-test.cjs +90 -0
- package/dist/cjs/modules/UIManager/index.cjs +60 -0
- package/dist/cjs/modules/canUseDOM.cjs +26 -0
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +156 -0
- package/dist/cjs/modules/createDOMProps/index.cjs +179 -0
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +344 -0
- package/dist/cjs/modules/createEventHandle/index.cjs +67 -0
- package/dist/cjs/modules/dismissKeyboard/index.cjs +29 -0
- package/dist/cjs/modules/forwardedProps/index.cjs +161 -0
- package/dist/cjs/modules/getBoundingClientRect/index.cjs +28 -0
- package/dist/cjs/modules/invariant.cjs +36 -0
- package/dist/cjs/modules/isSelectionValid/index.cjs +35 -0
- package/dist/cjs/modules/isWebColor/index.cjs +26 -0
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +42 -0
- package/dist/cjs/modules/mergeRefs/index.cjs +42 -0
- package/dist/cjs/modules/modality/__tests__/index-test.cjs +32 -0
- package/dist/cjs/modules/modality/index.cjs +135 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.cjs +30 -0
- package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +35 -0
- package/dist/cjs/modules/normalizeColor/index.cjs +39 -0
- package/dist/cjs/modules/pick/index.cjs +30 -0
- package/dist/cjs/modules/processColor/__tests__/index-test.cjs +66 -0
- package/dist/cjs/modules/processColor/index.cjs +42 -0
- package/dist/cjs/modules/requestIdleCallback/index.cjs +44 -0
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +35 -0
- package/dist/cjs/modules/setValueForStyles/index.cjs +35 -0
- package/dist/cjs/modules/unitlessNumbers/index.cjs +85 -0
- package/dist/cjs/modules/useElementLayout/index.cjs +39 -0
- package/dist/cjs/modules/useEvent/__tests__/index-test.cjs +408 -0
- package/dist/cjs/modules/useEvent/index.cjs +45 -0
- package/dist/cjs/modules/useHover/__tests__/index-test.cjs +273 -0
- package/dist/cjs/modules/useHover/index.cjs +97 -0
- package/dist/cjs/modules/useLayoutEffect/index.cjs +39 -0
- package/dist/cjs/modules/useLocale/index.cjs +66 -0
- package/dist/cjs/modules/useLocale/isLocaleRTL.cjs +83 -0
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +102 -0
- package/dist/cjs/modules/useMergeRefs/index.cjs +43 -0
- package/dist/cjs/modules/usePlatformMethods/index.cjs +35 -0
- package/dist/cjs/modules/useStable/__tests__/index-test.cjs +92 -0
- package/dist/cjs/modules/useStable/index.cjs +42 -0
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -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-test.mjs +408 -0
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs.map +1 -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__/index-test.mjs +383 -0
- package/dist/esm/StyleSheet/__tests__/index-test.mjs.map +1 -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__/validate-test.mjs +37 -0
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs.map +1 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +63 -0
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -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/hyphenateStyleName.mjs +13 -0
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +1 -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/normalizeColor.mjs +17 -0
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -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/resolveShadowValue.mjs +25 -0
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +1 -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/createOrderedCSSStyleSheet.mjs +87 -0
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -0
- package/dist/esm/StyleSheet/dom/index.mjs +44 -0
- package/dist/esm/StyleSheet/dom/index.mjs.map +1 -0
- package/dist/esm/StyleSheet/index.mjs +33 -0
- package/dist/esm/StyleSheet/index.mjs.map +1 -0
- package/dist/esm/StyleSheet/preprocess.mjs +75 -0
- package/dist/esm/StyleSheet/preprocess.mjs.map +1 -0
- package/dist/esm/StyleSheet/validate.mjs +46 -0
- package/dist/esm/StyleSheet/validate.mjs.map +1 -0
- package/dist/esm/TextAncestorContext.mjs +4 -0
- package/dist/esm/TextAncestorContext.mjs.map +1 -0
- package/dist/esm/colorProps.mjs +14 -0
- package/dist/esm/colorProps.mjs.map +1 -0
- package/dist/esm/index.js +45 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +45 -0
- package/dist/esm/index.mjs.map +1 -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__/propsToAriaRole-test.mjs +19 -0
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/index.mjs +10 -0
- package/dist/esm/modules/AccessibilityUtil/index.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs +3 -0
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +34 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +1 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +24 -0
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +1 -0
- package/dist/esm/modules/AssetRegistry/index.mjs +9 -0
- package/dist/esm/modules/AssetRegistry/index.mjs.map +1 -0
- package/dist/esm/modules/ImageLoader/index.mjs +87 -0
- package/dist/esm/modules/ImageLoader/index.mjs.map +1 -0
- package/dist/esm/modules/InteractionManager.mjs +161 -0
- package/dist/esm/modules/InteractionManager.mjs.map +1 -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/index.mjs +7 -0
- package/dist/esm/modules/Platform/index.mjs.map +1 -0
- package/dist/esm/modules/TextInputState/index.mjs +32 -0
- package/dist/esm/modules/TextInputState/index.mjs.map +1 -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/index.mjs +37 -0
- package/dist/esm/modules/UIManager/index.mjs.map +1 -0
- package/dist/esm/modules/canUseDOM.mjs +3 -0
- package/dist/esm/modules/canUseDOM.mjs.map +1 -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/index.mjs +155 -0
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -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/index.mjs +42 -0
- package/dist/esm/modules/createEventHandle/index.mjs.map +1 -0
- package/dist/esm/modules/dismissKeyboard/index.mjs +6 -0
- package/dist/esm/modules/dismissKeyboard/index.mjs.map +1 -0
- package/dist/esm/modules/forwardedProps/index.mjs +128 -0
- package/dist/esm/modules/forwardedProps/index.mjs.map +1 -0
- package/dist/esm/modules/getBoundingClientRect/index.mjs +5 -0
- package/dist/esm/modules/getBoundingClientRect/index.mjs.map +1 -0
- package/dist/esm/modules/invariant.mjs +12 -0
- package/dist/esm/modules/invariant.mjs.map +1 -0
- package/dist/esm/modules/isSelectionValid/index.mjs +12 -0
- package/dist/esm/modules/isSelectionValid/index.mjs.map +1 -0
- package/dist/esm/modules/isWebColor/index.mjs +3 -0
- package/dist/esm/modules/isWebColor/index.mjs.map +1 -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/index.mjs +19 -0
- package/dist/esm/modules/mergeRefs/index.mjs.map +1 -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/index.mjs +109 -0
- package/dist/esm/modules/modality/index.mjs.map +1 -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/index.mjs +12 -0
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -0
- package/dist/esm/modules/normalizeColor/index.mjs +16 -0
- package/dist/esm/modules/normalizeColor/index.mjs.map +1 -0
- package/dist/esm/modules/pick/index.mjs +7 -0
- package/dist/esm/modules/pick/index.mjs.map +1 -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/index.mjs +8 -0
- package/dist/esm/modules/processColor/index.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback/index.mjs +20 -0
- package/dist/esm/modules/requestIdleCallback/index.mjs.map +1 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +12 -0
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -0
- package/dist/esm/modules/setValueForStyles/index.mjs +12 -0
- package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -0
- package/dist/esm/modules/unitlessNumbers/index.mjs +62 -0
- package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -0
- package/dist/esm/modules/useElementLayout/index.mjs +16 -0
- package/dist/esm/modules/useElementLayout/index.mjs.map +1 -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/index.mjs +22 -0
- package/dist/esm/modules/useEvent/index.mjs.map +1 -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/index.mjs +74 -0
- package/dist/esm/modules/useHover/index.mjs.map +1 -0
- package/dist/esm/modules/useLayoutEffect/index.mjs +5 -0
- package/dist/esm/modules/useLayoutEffect/index.mjs.map +1 -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/isLocaleRTL.mjs +60 -0
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +1 -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/index.mjs +9 -0
- package/dist/esm/modules/useMergeRefs/index.mjs.map +1 -0
- package/dist/esm/modules/usePlatformMethods/index.mjs +12 -0
- package/dist/esm/modules/usePlatformMethods/index.mjs.map +1 -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/index.mjs +8 -0
- package/dist/esm/modules/useStable/index.mjs.map +1 -0
- package/dist/esm/styleTypes.mjs +2 -0
- package/dist/esm/styleTypes.mjs.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/package.json +58 -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__/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 +215 -0
- package/src/StyleSheet/compiler/hash.tsx +1 -0
- package/src/StyleSheet/compiler/hyphenateStyleName.tsx +25 -0
- package/src/StyleSheet/compiler/index.tsx +478 -0
- package/src/StyleSheet/compiler/normalizeColor.tsx +35 -0
- package/src/StyleSheet/compiler/normalizeValueWithProperty.tsx +34 -0
- package/src/StyleSheet/compiler/resolveShadowValue.tsx +26 -0
- package/src/StyleSheet/dom/createCSSStyleSheet.tsx +42 -0
- package/src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx +195 -0
- package/src/StyleSheet/dom/index.tsx +92 -0
- package/src/StyleSheet/index.tsx +99 -0
- package/src/StyleSheet/preprocess.tsx +119 -0
- package/src/StyleSheet/validate.tsx +90 -0
- package/src/TextAncestorContext.tsx +13 -0
- package/src/colorProps.tsx +12 -0
- package/src/index.tsx +58 -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 +18 -0
- package/src/modules/AccessibilityUtil/isDisabled.tsx +13 -0
- package/src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx +54 -0
- package/src/modules/AccessibilityUtil/propsToAriaRole.tsx +37 -0
- package/src/modules/AssetRegistry/index.tsx +32 -0
- package/src/modules/ImageLoader/index.tsx +165 -0
- package/src/modules/InteractionManager.tsx +315 -0
- package/src/modules/Platform/__tests__/index-test.tsx +45 -0
- package/src/modules/Platform/index.tsx +15 -0
- package/src/modules/TextInputState/index.tsx +62 -0
- package/src/modules/UIManager/__tests__/index-test.tsx +87 -0
- package/src/modules/UIManager/index.tsx +68 -0
- package/src/modules/canUseDOM.tsx +14 -0
- package/src/modules/createDOMProps/__tests__/index-test.tsx +138 -0
- package/src/modules/createDOMProps/index.tsx +436 -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 +14 -0
- package/src/modules/forwardedProps/index.tsx +145 -0
- package/src/modules/getBoundingClientRect/index.tsx +17 -0
- package/src/modules/invariant.ts +23 -0
- package/src/modules/isSelectionValid/index.tsx +20 -0
- package/src/modules/isWebColor/index.tsx +14 -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 +26 -0
- package/src/modules/normalizeColor/index.tsx +32 -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 +35 -0
- package/src/modules/setValueForStyles/dangerousStyleValue.tsx +74 -0
- package/src/modules/setValueForStyles/index.tsx +39 -0
- package/src/modules/unitlessNumbers/index.tsx +77 -0
- package/src/modules/useElementLayout/index.tsx +28 -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 +15 -0
- package/src/modules/useLocale/index.tsx +57 -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 +10 -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 +10 -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 +10 -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 +11 -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 +45 -0
- package/types/index.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/index.d.ts +16 -0
- package/types/modules/AccessibilityUtil/index.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/isDisabled.d.ts +10 -0
- package/types/modules/AccessibilityUtil/isDisabled.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts +10 -0
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts.map +1 -0
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts +12 -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 +27 -0
- package/types/modules/ImageLoader/index.d.ts.map +1 -0
- package/types/modules/InteractionManager.d.ts +48 -0
- package/types/modules/InteractionManager.d.ts.map +1 -0
- package/types/modules/Platform/index.d.ts +15 -0
- package/types/modules/Platform/index.d.ts.map +1 -0
- package/types/modules/TextInputState/index.d.ts +38 -0
- package/types/modules/TextInputState/index.d.ts.map +1 -0
- package/types/modules/UIManager/index.d.ts +23 -0
- package/types/modules/UIManager/index.d.ts.map +1 -0
- package/types/modules/canUseDOM.d.ts +10 -0
- package/types/modules/canUseDOM.d.ts.map +1 -0
- package/types/modules/createDOMProps/index.d.ts +12 -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 +10 -0
- package/types/modules/dismissKeyboard/index.d.ts.map +1 -0
- package/types/modules/forwardedProps/index.d.ts +383 -0
- package/types/modules/forwardedProps/index.d.ts.map +1 -0
- package/types/modules/getBoundingClientRect/index.d.ts +10 -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 +10 -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 +10 -0
- package/types/modules/multiplyStyleLengthValue/index.d.ts.map +1 -0
- package/types/modules/normalizeColor/index.d.ts +10 -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 +3 -0
- package/types/modules/requestIdleCallback/index.d.ts.map +1 -0
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts +11 -0
- package/types/modules/setValueForStyles/dangerousStyleValue.d.ts.map +1 -0
- package/types/modules/setValueForStyles/index.d.ts +9 -0
- package/types/modules/setValueForStyles/index.d.ts.map +1 -0
- package/types/modules/unitlessNumbers/index.d.ts +60 -0
- package/types/modules/unitlessNumbers/index.d.ts.map +1 -0
- package/types/modules/useElementLayout/index.d.ts +4 -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 +13 -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 +18 -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict
|
|
8
|
+
*/
|
|
9
|
+
export declare function hyphenateStyleName(name: string): string;
|
|
10
|
+
//# sourceMappingURL=hyphenateStyleName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hyphenateStyleName.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/hyphenateStyleName.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOvD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
*/
|
|
9
|
+
type Value = object | Array<any> | string | number;
|
|
10
|
+
type Style = {
|
|
11
|
+
[K in string]: Value;
|
|
12
|
+
};
|
|
13
|
+
type Rule = string;
|
|
14
|
+
type Rules = Array<Rule>;
|
|
15
|
+
type RulesData = [Rules, number];
|
|
16
|
+
type CompiledStyle = {
|
|
17
|
+
[K in string]: string | Array<string>;
|
|
18
|
+
};
|
|
19
|
+
type CompilerOutput = [CompiledStyle, Array<RulesData>];
|
|
20
|
+
export declare function atomic(style: Style): CompilerOutput;
|
|
21
|
+
/**
|
|
22
|
+
* Compile simple style object to classic CSS rules.
|
|
23
|
+
* No support for 'placeholderTextColor', 'scrollbarWidth', or 'pointerEvents'.
|
|
24
|
+
*/
|
|
25
|
+
export declare function classic(style: Style, name: string): CompilerOutput;
|
|
26
|
+
/**
|
|
27
|
+
* Compile simple style object to inline DOM styles.
|
|
28
|
+
* No support for 'animationKeyframes', 'placeholderTextColor', 'scrollbarWidth', or 'pointerEvents'.
|
|
29
|
+
*/
|
|
30
|
+
export declare function inline(originalStyle: Style, isRTL?: boolean): {
|
|
31
|
+
[K in string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Create a value string that normalizes different input values with a common
|
|
35
|
+
* output.
|
|
36
|
+
*/
|
|
37
|
+
export declare function stringifyValueWithProperty(value: Value, property: string | null): string;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAQH,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM,CAAA;AAElD,KAAK,KAAK,GAAG;KACV,CAAC,IAAI,MAAM,GAAG,KAAK;CACrB,CAAA;AAED,KAAK,IAAI,GAAG,MAAM,CAAA;AAClB,KAAK,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;AACxB,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AAEhC,KAAK,aAAa,GAAG;KAClB,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CACtC,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;AAyFvD,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,CAuFnD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAkBlE;AAED;;;GAGG;AACH,wBAAgB,MAAM,CACpB,aAAa,EAAE,KAAK,EACpB,KAAK,CAAC,EAAE,OAAO,GACd;KACA,CAAC,IAAI,MAAM,GAAG,OAAO;CACvB,CAyDA;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,MAAM,CAMR"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const normalizeColor: (color?: number | string, opacity?: number) => void | string;
|
|
10
|
+
//# sourceMappingURL=normalizeColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeColor.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/normalizeColor.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,GAAG,MAAM,EAAE,gBAAW,KAAG,IAAI,GAAG,MAsB5E,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
*/
|
|
9
|
+
export declare function normalizeValueWithProperty(value: any, property?: string | null): any;
|
|
10
|
+
//# sourceMappingURL=normalizeValueWithProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeValueWithProperty.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/normalizeValueWithProperty.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkBH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAQpF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const resolveShadowValue: (style: object) => void | string;
|
|
10
|
+
//# sourceMappingURL=resolveShadowValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveShadowValue.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/resolveShadowValue.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,IAAI,GAAG,MAUzD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
*/
|
|
9
|
+
export declare function createCSSStyleSheet(id: string, rootNode?: Document | ShadowRoot, textContent?: string): CSSStyleSheet | null;
|
|
10
|
+
//# sourceMappingURL=createCSSStyleSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCSSStyleSheet.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/dom/createCSSStyleSheet.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,EAChC,WAAW,CAAC,EAAE,MAAM,GACnB,aAAa,GAAG,IAAI,CAyBtB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
*/
|
|
9
|
+
export type OrderedCSSStyleSheet = {
|
|
10
|
+
getTextContent: () => string;
|
|
11
|
+
insert: (cssText: string, groupValue: number) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Order-based insertion of CSS.
|
|
15
|
+
*
|
|
16
|
+
* Each rule is associated with a numerically defined group.
|
|
17
|
+
* Groups are ordered within the style sheet according to their number, with the
|
|
18
|
+
* lowest first.
|
|
19
|
+
*
|
|
20
|
+
* Groups are implemented using marker rules. The selector of the first rule of
|
|
21
|
+
* each group is used only to encode the group number for hydration. An
|
|
22
|
+
* alternative implementation could rely on CSSMediaRule, allowing groups to be
|
|
23
|
+
* treated as a sub-sheet, but the Edge implementation of CSSMediaRule is
|
|
24
|
+
* broken.
|
|
25
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule
|
|
26
|
+
* https://gist.github.com/necolas/aa0c37846ad6bd3b05b727b959e82674
|
|
27
|
+
*/
|
|
28
|
+
export declare function createOrderedCSSStyleSheet(sheet: CSSStyleSheet | null): OrderedCSSStyleSheet;
|
|
29
|
+
//# sourceMappingURL=createOrderedCSSStyleSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOrderedCSSStyleSheet.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/dom/createOrderedCSSStyleSheet.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAaH,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,MAAM,MAAM,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CACtD,CAAA;AAID;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,aAAa,GAAG,IAAI,GAC1B,oBAAoB,CA8GtB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
*/
|
|
9
|
+
import type { OrderedCSSStyleSheet } from './createOrderedCSSStyleSheet';
|
|
10
|
+
type Sheet = {
|
|
11
|
+
id: string;
|
|
12
|
+
} & OrderedCSSStyleSheet;
|
|
13
|
+
export declare function createSheet(root?: HTMLElement, id?: string): Sheet;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/dom/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAGxE,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;CACX,GAAG,oBAAoB,CAAA;AAexB,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,EAAE,SAAY,GAAG,KAAK,CA2DrE"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* create
|
|
11
|
+
*/
|
|
12
|
+
declare function create(styles: any): any;
|
|
13
|
+
/**
|
|
14
|
+
* compose
|
|
15
|
+
*/
|
|
16
|
+
declare function compose(style1: any, style2: any): any;
|
|
17
|
+
/**
|
|
18
|
+
* flatten
|
|
19
|
+
*/
|
|
20
|
+
export declare function flatten(...styles: any): {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* getSheet
|
|
25
|
+
*/
|
|
26
|
+
declare function getSheet(): {
|
|
27
|
+
id: string;
|
|
28
|
+
textContent: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* resolve
|
|
32
|
+
*/
|
|
33
|
+
type StyleProps = [string, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
} | null];
|
|
36
|
+
type Options = {
|
|
37
|
+
writingDirection: 'ltr' | 'rtl';
|
|
38
|
+
};
|
|
39
|
+
export declare function StyleSheet(styles: any, options?: Options): StyleProps;
|
|
40
|
+
export declare namespace StyleSheet {
|
|
41
|
+
var absoluteFill: any;
|
|
42
|
+
var absoluteFillObject: {
|
|
43
|
+
position: string;
|
|
44
|
+
left: number;
|
|
45
|
+
right: number;
|
|
46
|
+
top: number;
|
|
47
|
+
bottom: number;
|
|
48
|
+
};
|
|
49
|
+
var create: (styles: any) => any;
|
|
50
|
+
var compose: (style1: any, style2: any) => any;
|
|
51
|
+
var flatten: typeof import(".").flatten;
|
|
52
|
+
var getSheet: () => {
|
|
53
|
+
id: string;
|
|
54
|
+
textContent: string;
|
|
55
|
+
};
|
|
56
|
+
var hairlineWidth: number;
|
|
57
|
+
}
|
|
58
|
+
export type IStyleSheet = {
|
|
59
|
+
(styles: any, options?: Options): StyleProps;
|
|
60
|
+
absoluteFill: object;
|
|
61
|
+
absoluteFillObject: object;
|
|
62
|
+
create: typeof create;
|
|
63
|
+
compose: typeof compose;
|
|
64
|
+
flatten: typeof flatten;
|
|
65
|
+
getSheet: typeof getSheet;
|
|
66
|
+
hairlineWidth: number;
|
|
67
|
+
};
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/StyleSheet/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAsBH;;GAEG;AACH,iBAAS,MAAM,CAAC,MAAM,KAAA,OAErB;AAED;;GAEG;AACH,iBAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,GAAG,CAE9C;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAY9D;AAED;;GAEG;AACH,iBAAS,QAAQ,IAAI;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAKvD;AAED;;GAEG;AACH,KAAK,UAAU,GAAG,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAAC,CAAA;AACzD,KAAK,OAAO,GAAG;IAAE,gBAAgB,EAAE,KAAK,GAAG,KAAK,CAAA;CAAE,CAAA;AAElD,wBAAgB,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,CAAG;yBAAzD,UAAU;;;;;;;;;;0BArCD,GAAG,UAAU,GAAG,KAAG,GAAG;;wBAwB1B;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;;;AAyBxD,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IAC5C,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,MAAM,EAAE,OAAO,MAAM,CAAA;IACrB,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const createBoxShadowValue: (style: object) => void | string;
|
|
10
|
+
export declare const createTextShadowValue: (style: object) => void | string;
|
|
11
|
+
/**
|
|
12
|
+
* Preprocess styles
|
|
13
|
+
*/
|
|
14
|
+
export declare const preprocess: <T extends { [K in string]: any; }>(originalStyle: T) => T;
|
|
15
|
+
export declare const processStyle: <T extends { [K in string]: any; }>(originalStyle: T) => T;
|
|
16
|
+
//# sourceMappingURL=preprocess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preprocess.d.ts","sourceRoot":"","sources":["../../src/StyleSheet/preprocess.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAaH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,IAAI,GAAG,MAU3D,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,KAAG,IAAI,GAAG,MAkB5D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,GACrB,CAAC,SAAS,GACP,CAAC,IAAI,MAAM,GAAG,GAAG,GACnB,EAED,eAAe,CAAC,KACf,CAsDF,CAAA;AAED,eAAO,MAAM,YAAY,GA7DvB,CAAC,SAAS,GACP,CAAC,IAAI,MAAM,GAAG,GAAG,GACnB,iBAEc,CAAC,KACf,CAwDmC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @noflow
|
|
8
|
+
*/
|
|
9
|
+
export declare function validate(obj: object): void;
|
|
10
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/StyleSheet/validate.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAmCH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,QA+CnC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict
|
|
8
|
+
*/
|
|
9
|
+
import type { Context } from 'react';
|
|
10
|
+
export declare const TextAncestorContext: Context<boolean>;
|
|
11
|
+
//# sourceMappingURL=TextAncestorContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAncestorContext.d.ts","sourceRoot":"","sources":["../src/TextAncestorContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGpC,eAAO,MAAM,mBAAmB,EAA2B,OAAO,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const colorProps: {
|
|
2
|
+
backgroundColor: boolean;
|
|
3
|
+
borderColor: boolean;
|
|
4
|
+
borderTopColor: boolean;
|
|
5
|
+
borderRightColor: boolean;
|
|
6
|
+
borderBottomColor: boolean;
|
|
7
|
+
borderLeftColor: boolean;
|
|
8
|
+
color: boolean;
|
|
9
|
+
shadowColor: boolean;
|
|
10
|
+
textDecorationColor: boolean;
|
|
11
|
+
textShadowColor: boolean;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=colorProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorProps.d.ts","sourceRoot":"","sources":["../src/colorProps.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;CAWtB,CAAA"}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type { ColorValue, DimensionValue, EdgeInsetsValue, GenericStyleProp, LayoutEvent, LayoutValue, PlatformMethods, PointValue, } from './types';
|
|
2
|
+
export * from './modules/AssetRegistry/index';
|
|
3
|
+
export * from './modules/forwardedProps/index';
|
|
4
|
+
export * from './modules/mergeRefs/index';
|
|
5
|
+
export * from './modules/modality/index';
|
|
6
|
+
export * from './modules/useLocale/index';
|
|
7
|
+
export { usePlatformMethods } from './modules/usePlatformMethods/index';
|
|
8
|
+
export { TextAncestorContext } from './TextAncestorContext';
|
|
9
|
+
export * from '@hanzogui/react-native-use-pressable';
|
|
10
|
+
export * from '@hanzogui/react-native-use-responder-events';
|
|
11
|
+
export { colorProps } from './colorProps';
|
|
12
|
+
export { AccessibilityUtil } from './modules/AccessibilityUtil/index';
|
|
13
|
+
export { canUseDOM } from './modules/canUseDOM';
|
|
14
|
+
export { createDOMProps } from './modules/createDOMProps/index';
|
|
15
|
+
export { stylesFromProps } from './modules/createDOMProps/index';
|
|
16
|
+
export { createReactDOMStyle, createTransformValue, } from './StyleSheet/compiler/createReactDOMStyle';
|
|
17
|
+
export { createEventHandle } from './modules/createEventHandle/index';
|
|
18
|
+
export { dismissKeyboard } from './modules/dismissKeyboard/index';
|
|
19
|
+
export { getBoundingClientRect } from './modules/getBoundingClientRect/index';
|
|
20
|
+
export { ImageLoader } from './modules/ImageLoader/index';
|
|
21
|
+
export { isSelectionValid } from './modules/isSelectionValid/index';
|
|
22
|
+
export { isWebColor } from './modules/isWebColor/index';
|
|
23
|
+
export { multiplyStyleLengthValue } from './modules/multiplyStyleLengthValue/index';
|
|
24
|
+
export { normalizeColor } from './modules/normalizeColor/index';
|
|
25
|
+
export { pick } from './modules/pick/index';
|
|
26
|
+
export { Platform } from './modules/Platform/index';
|
|
27
|
+
export * from './StyleSheet/preprocess';
|
|
28
|
+
export { flatten as flattenStyle } from './StyleSheet/index';
|
|
29
|
+
export { createSheet } from './StyleSheet/dom/index';
|
|
30
|
+
export { requestIdleCallback } from './modules/requestIdleCallback/index';
|
|
31
|
+
export { setValueForStyles } from './modules/setValueForStyles/index';
|
|
32
|
+
export { TextInputState } from './modules/TextInputState/index';
|
|
33
|
+
export { UIManager } from './modules/UIManager/index';
|
|
34
|
+
export { unitlessNumbers } from './modules/unitlessNumbers/index';
|
|
35
|
+
export { useElementLayout } from './modules/useElementLayout/index';
|
|
36
|
+
export { useEvent } from './modules/useEvent/index';
|
|
37
|
+
export { useHover } from './modules/useHover/index';
|
|
38
|
+
export { useLayoutEffectImpl as useLayoutEffect } from './modules/useLayoutEffect/index';
|
|
39
|
+
export { useStable } from './modules/useStable/index';
|
|
40
|
+
export { InteractionManager } from './modules/InteractionManager';
|
|
41
|
+
export * from './modules/invariant';
|
|
42
|
+
export { processColor } from './modules/processColor/index';
|
|
43
|
+
export { StyleSheet } from './StyleSheet/index';
|
|
44
|
+
export { useMergeRefs } from './modules/useMergeRefs/index';
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,GACX,MAAM,SAAS,CAAA;AAChB,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,cAAc,sCAAsC,CAAA;AACpD,cAAc,6CAA6C,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,mBAAmB,IAAI,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACjE,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const AccessibilityUtil: {
|
|
10
|
+
isDisabled: (props: Record<string, any>) => boolean;
|
|
11
|
+
propsToAccessibilityComponent: (props?: object) => void | string;
|
|
12
|
+
propsToAriaRole: ({ accessibilityRole, }: {
|
|
13
|
+
accessibilityRole?: string;
|
|
14
|
+
}) => string | void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/AccessibilityUtil/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,eAAO,MAAM,iBAAiB;;;;yBAK4C,CAAC;;CAD1E,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const isDisabled: (props: Record<string, any>) => boolean;
|
|
10
|
+
//# sourceMappingURL=isDisabled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDisabled.d.ts","sourceRoot":"","sources":["../../../src/modules/AccessibilityUtil/isDisabled.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,OAGD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const propsToAccessibilityComponent: (props?: object) => void | string;
|
|
10
|
+
//# sourceMappingURL=propsToAccessibilityComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propsToAccessibilityComponent.d.ts","sourceRoot":"","sources":["../../../src/modules/AccessibilityUtil/propsToAccessibilityComponent.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AA0BH,eAAO,MAAM,6BAA6B,GACxC,QAAO,MAAoB,KAC1B,IAAI,GAAG,MAiBT,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare const propsToAriaRole: ({ accessibilityRole, }: {
|
|
10
|
+
accessibilityRole?: string;
|
|
11
|
+
}) => string | void;
|
|
12
|
+
//# sourceMappingURL=propsToAriaRole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propsToAriaRole.d.ts","sourceRoot":"","sources":["../../../src/modules/AccessibilityUtil/propsToAriaRole.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiBH,eAAO,MAAM,eAAe,GAAI,wBAE7B;IACD,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,KAAG,MAAM,GAAG,IAQZ,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export type PackagerAsset = {
|
|
10
|
+
__packager_asset: boolean;
|
|
11
|
+
fileSystemLocation: string;
|
|
12
|
+
httpServerLocation: string;
|
|
13
|
+
width: number | null;
|
|
14
|
+
height: number | null;
|
|
15
|
+
scales: Array<number>;
|
|
16
|
+
hash: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function registerAsset(asset: PackagerAsset): number;
|
|
21
|
+
export declare function getAssetByID(assetId: number): PackagerAsset;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/AssetRegistry/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,gBAAgB,EAAE,OAAO,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAID,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAI1D;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAE3D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
export declare class ImageUriCache {
|
|
10
|
+
static _maximumEntries: number;
|
|
11
|
+
static _entries: {};
|
|
12
|
+
static has(uri: string): boolean;
|
|
13
|
+
static add(uri: string): void;
|
|
14
|
+
static remove(uri: string): void;
|
|
15
|
+
static _cleanUpIfNeeded(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare const ImageLoader: {
|
|
18
|
+
abort(requestId: number): void;
|
|
19
|
+
getSize(uri: string, success: (width: number, height: number) => void, failure: () => void): void;
|
|
20
|
+
has(uri: string): boolean;
|
|
21
|
+
load(uri: string, onLoad: Function, onError: Function): number;
|
|
22
|
+
prefetch(uri: string): Promise<void>;
|
|
23
|
+
queryCache(uris: Array<string>): Promise<{
|
|
24
|
+
[uri: string]: "disk/memory";
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ImageLoader/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,qBAAa,aAAa;IACxB,MAAM,CAAC,eAAe,SAAM;IAC5B,MAAM,CAAC,QAAQ,KAAK;IAEpB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAMhC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM;IActB,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM;IASzB,MAAM,CAAC,gBAAgB;CAyBxB;AAKD,eAAO,MAAM,WAAW;qBACL,MAAM;iBAUhB,MAAM,WACF,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,WACvC,MAAM,IAAI;aA6BZ,MAAM,GAAG,OAAO;cAGf,MAAM,UAAU,QAAQ,WAAW,QAAQ,GAAG,MAAM;kBAqBhD,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;qBAenB,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;KAAE,CAAC;CAS3E,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
type EventSubscription = {
|
|
9
|
+
remove: () => void;
|
|
10
|
+
};
|
|
11
|
+
type SimpleTask = {
|
|
12
|
+
name: string;
|
|
13
|
+
run: () => void;
|
|
14
|
+
};
|
|
15
|
+
type PromiseTask = {
|
|
16
|
+
name: string;
|
|
17
|
+
gen: () => Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
export type Task = SimpleTask | PromiseTask | (() => void);
|
|
20
|
+
export declare const InteractionManager: {
|
|
21
|
+
Events: {
|
|
22
|
+
interactionStart: "interactionStart";
|
|
23
|
+
interactionComplete: "interactionComplete";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Schedule a function to run after all interactions have completed.
|
|
27
|
+
*/
|
|
28
|
+
runAfterInteractions(task?: Task): {
|
|
29
|
+
then: <TResult1 = void, TResult2 = never>(onfulfilled?: ((value: void) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null) => Promise<TResult1 | TResult2>;
|
|
30
|
+
done: <TResult1 = void, TResult2 = never>(onfulfilled?: ((value: void) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null) => Promise<TResult1 | TResult2>;
|
|
31
|
+
cancel: () => void;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Notify manager that an interaction has started.
|
|
35
|
+
*/
|
|
36
|
+
createInteractionHandle(): number;
|
|
37
|
+
/**
|
|
38
|
+
* Notify manager that an interaction has completed.
|
|
39
|
+
*/
|
|
40
|
+
clearInteractionHandle(handle: number): void;
|
|
41
|
+
addListener: (eventType: "interactionStart" | "interactionComplete", listener: () => void, context?: any) => EventSubscription;
|
|
42
|
+
/**
|
|
43
|
+
* Set deadline for task processing
|
|
44
|
+
*/
|
|
45
|
+
setDeadline(deadline: number): void;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=InteractionManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionManager.d.ts","sourceRoot":"","sources":["../../src/modules/InteractionManager.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAsDD,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,IAAI,CAAA;CAChB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,CAAC,MAAM,IAAI,CAAC,CAAA;AAwG1D,eAAO,MAAM,kBAAkB;;;;;IAM7B;;OAEG;gCACyB,IAAI,GAAG;QACjC,IAAI,EAAE,CAAC,QAAQ,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EACtC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,EACxE,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,KACpE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAA;QACjC,IAAI,EAAE,CAAC,QAAQ,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EACtC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,EACxE,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,KACpE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAA;QACjC,MAAM,EAAE,MAAM,IAAI,CAAA;KACnB;IAwBD;;OAEG;+BACwB,MAAM;IAOjC;;OAEG;mCAC4B,MAAM,GAAG,IAAI;iBAOQ,CAClD,SAAS,EAAE,kBAAkB,GAAG,qBAAqB,EACrD,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,CAAC,EAAE,GAAG,KACV,iBAAiB;IAEtB;;OAEG;0BACmB,MAAM,GAAG,IAAI;CAGpC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
export declare const Platform: {
|
|
11
|
+
OS: string;
|
|
12
|
+
select: (obj: any) => any;
|
|
13
|
+
isTesting: boolean;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Platform/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,QAAQ;;kBAEL,GAAG,KAAG,GAAG;;CAExB,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* This class is responsible for coordinating the "focused"
|
|
12
|
+
* state for TextInputs. All calls relating to the keyboard
|
|
13
|
+
* should be funneled through here
|
|
14
|
+
*/
|
|
15
|
+
export declare const TextInputState: {
|
|
16
|
+
/**
|
|
17
|
+
* Internal state
|
|
18
|
+
*/
|
|
19
|
+
_currentlyFocusedNode: object | null;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the ID of the currently focused text field, if one exists
|
|
22
|
+
* If no text field is focused it returns null
|
|
23
|
+
*/
|
|
24
|
+
currentlyFocusedField(): object | null;
|
|
25
|
+
/**
|
|
26
|
+
* @param {Object} TextInputID id of the text field to focus
|
|
27
|
+
* Focuses the specified text field
|
|
28
|
+
* noop if the text field was already focused
|
|
29
|
+
*/
|
|
30
|
+
focusTextInput(textFieldNode: object | null): void;
|
|
31
|
+
/**
|
|
32
|
+
* @param {Object} textFieldNode id of the text field to focus
|
|
33
|
+
* Unfocuses the specified text field
|
|
34
|
+
* noop if it wasn't focused
|
|
35
|
+
*/
|
|
36
|
+
blurTextInput(textFieldNode: object | null): void;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/TextInputState/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACzB;;OAEG;2BAC4B,MAAM,GAAG,IAAI;IAE5C;;;OAGG;6BACsB,MAAM,GAAG,IAAI;IAOtC;;;;OAIG;kCAC2B,MAAM,GAAG,IAAI;IAS3C;;;;OAIG;iCAC0B,MAAM,GAAG,IAAI;CAQ3C,CAAA"}
|