@tamagui/react-native-web-internals 2.7.7 → 3.0.0-beta.643.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +151 -136
- package/dist/cjs/StyleSheet/compiler/hash.cjs +15 -18
- package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +21 -24
- package/dist/cjs/StyleSheet/compiler/index.cjs +295 -321
- package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +20 -23
- package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +32 -35
- package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +27 -38
- package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +37 -40
- package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +108 -111
- package/dist/cjs/StyleSheet/dom/index.cjs +70 -72
- package/dist/cjs/StyleSheet/index.cjs +33 -34
- package/dist/cjs/StyleSheet/preprocess.cjs +74 -94
- package/dist/cjs/StyleSheet/validate.cjs +72 -75
- package/dist/cjs/TextAncestorContext.cjs +15 -18
- package/dist/cjs/colorProps.cjs +25 -28
- package/dist/cjs/index.cjs +49 -50
- package/dist/cjs/modules/AccessibilityUtil/index.cjs +18 -21
- package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +15 -18
- package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +46 -49
- package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +34 -39
- package/dist/cjs/modules/AssetRegistry/index.cjs +18 -19
- package/dist/cjs/modules/ImageLoader/index.cjs +135 -141
- package/dist/cjs/modules/InteractionManager.cjs +212 -219
- package/dist/cjs/modules/Platform/index.cjs +18 -21
- package/dist/cjs/modules/TextInputState/index.cjs +55 -58
- package/dist/cjs/modules/UIManager/index.cjs +46 -51
- package/dist/cjs/modules/canUseDOM.cjs +15 -18
- package/dist/cjs/modules/createDOMProps/index.cjs +289 -358
- package/dist/cjs/modules/createEventHandle/index.cjs +57 -62
- package/dist/cjs/modules/dismissKeyboard/index.cjs +16 -19
- package/dist/cjs/modules/forwardedProps/index.cjs +128 -130
- package/dist/cjs/modules/getBoundingClientRect/index.cjs +22 -25
- package/dist/cjs/modules/invariant.cjs +26 -27
- package/dist/cjs/modules/isSelectionValid/index.cjs +22 -25
- package/dist/cjs/modules/isWebColor/index.cjs +15 -18
- package/dist/cjs/modules/mergeRefs/index.cjs +31 -34
- package/dist/cjs/modules/modality/index.cjs +131 -134
- package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +25 -28
- package/dist/cjs/modules/normalizeColor/index.cjs +28 -31
- package/dist/cjs/modules/pick/index.cjs +24 -27
- package/dist/cjs/modules/processColor/index.cjs +28 -36
- package/dist/cjs/modules/requestIdleCallback/index.cjs +28 -29
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +39 -42
- package/dist/cjs/modules/setValueForStyles/index.cjs +31 -34
- package/dist/cjs/modules/unitlessNumbers/index.cjs +74 -75
- package/dist/cjs/modules/useElementLayout/index.cjs +24 -31
- package/dist/cjs/modules/useEvent/index.cjs +40 -43
- package/dist/cjs/modules/useHover/index.cjs +113 -118
- package/dist/cjs/modules/useLayoutEffect/index.cjs +18 -26
- package/dist/cjs/modules/useLocale/index.cjs +33 -43
- package/dist/cjs/modules/useLocale/isLocaleRTL.cjs +66 -76
- package/dist/cjs/modules/useMergeRefs/index.cjs +19 -29
- package/dist/cjs/modules/usePlatformMethods/index.cjs +24 -30
- package/dist/cjs/modules/useStable/index.cjs +24 -32
- package/dist/cjs/styleTypes.cjs +10 -11
- package/dist/cjs/types.cjs +10 -11
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs +137 -119
- package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/hash.mjs +2 -2
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs +7 -6
- package/dist/esm/StyleSheet/compiler/hyphenateStyleName.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/index.mjs +279 -302
- package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs +7 -5
- package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs +19 -17
- package/dist/esm/StyleSheet/compiler/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs +14 -20
- package/dist/esm/StyleSheet/compiler/resolveShadowValue.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs +24 -22
- package/dist/esm/StyleSheet/dom/createCSSStyleSheet.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs +94 -93
- package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -1
- package/dist/esm/StyleSheet/dom/index.mjs +57 -54
- package/dist/esm/StyleSheet/dom/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/index.mjs +18 -17
- package/dist/esm/StyleSheet/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/preprocess.mjs +58 -75
- package/dist/esm/StyleSheet/preprocess.mjs.map +1 -1
- package/dist/esm/StyleSheet/validate.mjs +58 -57
- package/dist/esm/StyleSheet/validate.mjs.map +1 -1
- package/dist/esm/TextAncestorContext.mjs +2 -0
- package/dist/esm/TextAncestorContext.mjs.map +1 -1
- package/dist/esm/colorProps.mjs +11 -10
- package/dist/esm/colorProps.mjs.map +1 -1
- package/dist/esm/index.js +22 -15
- package/dist/esm/index.mjs +22 -15
- package/dist/esm/modules/AccessibilityUtil/index.mjs +5 -3
- package/dist/esm/modules/AccessibilityUtil/index.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs +2 -1
- package/dist/esm/modules/AccessibilityUtil/isDisabled.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs +33 -31
- package/dist/esm/modules/AccessibilityUtil/propsToAccessibilityComponent.mjs.map +1 -1
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs +20 -21
- package/dist/esm/modules/AccessibilityUtil/propsToAriaRole.mjs.map +1 -1
- package/dist/esm/modules/AssetRegistry/index.mjs +3 -2
- package/dist/esm/modules/AssetRegistry/index.mjs.map +1 -1
- package/dist/esm/modules/ImageLoader/index.mjs +120 -124
- package/dist/esm/modules/ImageLoader/index.mjs.map +1 -1
- package/dist/esm/modules/InteractionManager.mjs +199 -201
- package/dist/esm/modules/InteractionManager.mjs.map +1 -1
- package/dist/esm/modules/Platform/index.mjs +4 -3
- package/dist/esm/modules/Platform/index.mjs.map +1 -1
- package/dist/esm/modules/TextInputState/index.mjs +42 -40
- package/dist/esm/modules/TextInputState/index.mjs.map +1 -1
- package/dist/esm/modules/UIManager/index.mjs +33 -33
- package/dist/esm/modules/UIManager/index.mjs.map +1 -1
- package/dist/esm/modules/canUseDOM.mjs +1 -0
- package/dist/esm/modules/canUseDOM.mjs.map +1 -1
- package/dist/esm/modules/createDOMProps/index.mjs +275 -341
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -1
- package/dist/esm/modules/createEventHandle/index.mjs +44 -44
- package/dist/esm/modules/createEventHandle/index.mjs.map +1 -1
- package/dist/esm/modules/dismissKeyboard/index.mjs +3 -1
- package/dist/esm/modules/dismissKeyboard/index.mjs.map +1 -1
- package/dist/esm/modules/forwardedProps/index.mjs +104 -104
- package/dist/esm/modules/forwardedProps/index.mjs.map +1 -1
- package/dist/esm/modules/getBoundingClientRect/index.mjs +8 -7
- package/dist/esm/modules/getBoundingClientRect/index.mjs.map +1 -1
- package/dist/esm/modules/invariant.mjs +11 -10
- package/dist/esm/modules/invariant.mjs.map +1 -1
- package/dist/esm/modules/isSelectionValid/index.mjs +8 -7
- package/dist/esm/modules/isSelectionValid/index.mjs.map +1 -1
- package/dist/esm/modules/isWebColor/index.mjs +2 -1
- package/dist/esm/modules/isWebColor/index.mjs.map +1 -1
- package/dist/esm/modules/mergeRefs/index.mjs +17 -16
- package/dist/esm/modules/mergeRefs/index.mjs.map +1 -1
- package/dist/esm/modules/modality/index.mjs +115 -115
- package/dist/esm/modules/modality/index.mjs.map +1 -1
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs +11 -10
- package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -1
- package/dist/esm/modules/normalizeColor/index.mjs +15 -13
- package/dist/esm/modules/normalizeColor/index.mjs.map +1 -1
- package/dist/esm/modules/pick/index.mjs +10 -9
- package/dist/esm/modules/pick/index.mjs.map +1 -1
- package/dist/esm/modules/processColor/index.mjs +12 -10
- package/dist/esm/modules/processColor/index.mjs.map +1 -1
- package/dist/esm/modules/requestIdleCallback/index.mjs +14 -12
- package/dist/esm/modules/requestIdleCallback/index.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +27 -25
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/index.mjs +18 -16
- package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -1
- package/dist/esm/modules/unitlessNumbers/index.mjs +60 -57
- package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -1
- package/dist/esm/modules/useElementLayout/index.mjs +12 -14
- package/dist/esm/modules/useElementLayout/index.mjs.map +1 -1
- package/dist/esm/modules/useEvent/index.mjs +28 -26
- package/dist/esm/modules/useEvent/index.mjs.map +1 -1
- package/dist/esm/modules/useHover/index.mjs +101 -101
- package/dist/esm/modules/useHover/index.mjs.map +1 -1
- package/dist/esm/modules/useLayoutEffect/index.mjs +2 -0
- package/dist/esm/modules/useLayoutEffect/index.mjs.map +1 -1
- package/dist/esm/modules/useLocale/index.mjs +15 -17
- package/dist/esm/modules/useLocale/index.mjs.map +1 -1
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs +52 -58
- package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +1 -1
- package/dist/esm/modules/useMergeRefs/index.mjs +3 -3
- package/dist/esm/modules/useMergeRefs/index.mjs.map +1 -1
- package/dist/esm/modules/usePlatformMethods/index.mjs +11 -12
- package/dist/esm/modules/usePlatformMethods/index.mjs.map +1 -1
- package/dist/esm/modules/useStable/index.mjs +8 -6
- package/dist/esm/modules/useStable/index.mjs.map +1 -1
- package/dist/esm/styleTypes.mjs +0 -2
- package/dist/esm/types.mjs +0 -2
- package/package.json +8 -8
- package/src/modules/createDOMProps/index.tsx +3 -12
- package/src/modules/forwardedProps/index.tsx +0 -1
- package/src/modules/mergeRefs/index.tsx +1 -1
- package/types/StyleSheet/compiler/createReactDOMStyle.d.ts.map +1 -1
- package/types/StyleSheet/compiler/normalizeColor.d.ts.map +1 -1
- package/types/StyleSheet/compiler/resolveShadowValue.d.ts.map +1 -1
- package/types/StyleSheet/index.d.ts +15 -16
- package/types/StyleSheet/index.d.ts.map +1 -1
- package/types/StyleSheet/preprocess.d.ts +1 -1
- package/types/StyleSheet/preprocess.d.ts.map +1 -1
- package/types/colorProps.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/index.d.ts +6 -5
- package/types/modules/AccessibilityUtil/index.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/isDisabled.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/propsToAccessibilityComponent.d.ts.map +1 -1
- package/types/modules/AccessibilityUtil/propsToAriaRole.d.ts.map +1 -1
- package/types/modules/ImageLoader/index.d.ts +1 -1
- package/types/modules/ImageLoader/index.d.ts.map +1 -1
- package/types/modules/InteractionManager.d.ts +3 -3
- package/types/modules/InteractionManager.d.ts.map +1 -1
- package/types/modules/Platform/index.d.ts.map +1 -1
- package/types/modules/TextInputState/index.d.ts.map +1 -1
- package/types/modules/createDOMProps/index.d.ts.map +1 -1
- package/types/modules/forwardedProps/index.d.ts +70 -74
- package/types/modules/forwardedProps/index.d.ts.map +1 -1
- package/types/modules/getBoundingClientRect/index.d.ts.map +1 -1
- package/types/modules/isWebColor/index.d.ts.map +1 -1
- package/types/modules/multiplyStyleLengthValue/index.d.ts.map +1 -1
- package/types/modules/normalizeColor/index.d.ts.map +1 -1
- package/types/modules/processColor/index.d.ts.map +1 -1
- package/types/modules/requestIdleCallback/index.d.ts +3 -1
- package/types/modules/requestIdleCallback/index.d.ts.map +1 -1
- package/types/modules/unitlessNumbers/index.d.ts.map +1 -1
- package/types/modules/useLayoutEffect/index.d.ts +1 -1
- package/types/modules/useLayoutEffect/index.d.ts.map +1 -1
- package/dist/cjs/StyleSheet/__tests__/compiler-createReactDOMStyle-test.cjs +0 -265
- package/dist/cjs/StyleSheet/__tests__/compiler-test.cjs +0 -419
- package/dist/cjs/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.cjs +0 -160
- package/dist/cjs/StyleSheet/__tests__/index-test.cjs +0 -436
- package/dist/cjs/StyleSheet/__tests__/preprocess-test.cjs +0 -121
- package/dist/cjs/StyleSheet/__tests__/validate-test.cjs +0 -51
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.cjs +0 -57
- package/dist/cjs/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.cjs +0 -46
- package/dist/cjs/modules/Platform/__tests__/index-test.cjs +0 -56
- package/dist/cjs/modules/UIManager/__tests__/index-test.cjs +0 -111
- package/dist/cjs/modules/createDOMProps/__tests__/index-test.cjs +0 -177
- package/dist/cjs/modules/createEventHandle/__tests__/index-test.cjs +0 -422
- package/dist/cjs/modules/mergeRefs/__tests__/index-test.cjs +0 -48
- package/dist/cjs/modules/modality/__tests__/index-test.cjs +0 -59
- package/dist/cjs/modules/multiplyStyleLengthValue/__tests__/index-test.cjs +0 -38
- package/dist/cjs/modules/processColor/__tests__/index-test.cjs +0 -85
- package/dist/cjs/modules/useEvent/__tests__/index-test.cjs +0 -490
- package/dist/cjs/modules/useHover/__tests__/index-test.cjs +0 -382
- package/dist/cjs/modules/useMergeRefs/__tests__/index-test.cjs +0 -125
- package/dist/cjs/modules/useStable/__tests__/index-test.cjs +0 -122
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs +0 -242
- package/dist/esm/StyleSheet/__tests__/compiler-createReactDOMStyle-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs +0 -420
- package/dist/esm/StyleSheet/__tests__/compiler-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs +0 -137
- package/dist/esm/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/index-test.mjs +0 -413
- package/dist/esm/StyleSheet/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs +0 -122
- package/dist/esm/StyleSheet/__tests__/preprocess-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs +0 -52
- package/dist/esm/StyleSheet/__tests__/validate-test.mjs.map +0 -1
- package/dist/esm/StyleSheet/compiler/hash.mjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs +0 -34
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.mjs.map +0 -1
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs +0 -23
- package/dist/esm/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.mjs.map +0 -1
- package/dist/esm/modules/Platform/__tests__/index-test.mjs +0 -33
- package/dist/esm/modules/Platform/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs +0 -88
- package/dist/esm/modules/UIManager/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs +0 -154
- package/dist/esm/modules/createDOMProps/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs +0 -399
- package/dist/esm/modules/createEventHandle/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs +0 -25
- package/dist/esm/modules/mergeRefs/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/modality/__tests__/index-test.mjs +0 -60
- package/dist/esm/modules/modality/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs +0 -15
- package/dist/esm/modules/multiplyStyleLengthValue/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/processColor/__tests__/index-test.mjs +0 -62
- package/dist/esm/modules/processColor/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs +0 -467
- package/dist/esm/modules/useEvent/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useHover/__tests__/index-test.mjs +0 -359
- package/dist/esm/modules/useHover/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs +0 -102
- package/dist/esm/modules/useMergeRefs/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/modules/useStable/__tests__/index-test.mjs +0 -99
- package/dist/esm/modules/useStable/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/styleTypes.mjs.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/src/StyleSheet/__tests__/compiler-createReactDOMStyle-test.tsx +0 -236
- package/src/StyleSheet/__tests__/compiler-test.tsx +0 -426
- package/src/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.tsx +0 -169
- package/src/StyleSheet/__tests__/index-test.tsx +0 -406
- package/src/StyleSheet/__tests__/preprocess-test.tsx +0 -107
- package/src/StyleSheet/__tests__/validate-test.tsx +0 -42
- package/src/modules/AccessibilityUtil/__tests__/propsToAccessibilityComponent-test.tsx +0 -44
- package/src/modules/AccessibilityUtil/__tests__/propsToAriaRole-test.tsx +0 -25
- package/src/modules/Platform/__tests__/index-test.tsx +0 -45
- package/src/modules/UIManager/__tests__/index-test.tsx +0 -87
- package/src/modules/createDOMProps/__tests__/index-test.tsx +0 -138
- package/src/modules/createEventHandle/__tests__/index-test.tsx +0 -459
- package/src/modules/mergeRefs/__tests__/index-test.tsx +0 -32
- package/src/modules/modality/__tests__/index-test.tsx +0 -66
- package/src/modules/multiplyStyleLengthValue/__tests__/index-test.tsx +0 -23
- package/src/modules/processColor/__tests__/index-test.tsx +0 -78
- package/src/modules/useEvent/__tests__/index-test.tsx +0 -511
- package/src/modules/useHover/__tests__/index-test.tsx +0 -342
- package/src/modules/useMergeRefs/__tests__/index-test.tsx +0 -91
- package/src/modules/useStable/__tests__/index-test.tsx +0 -101
|
@@ -1,134 +1,152 @@
|
|
|
1
1
|
import { canUseDOM } from "../../modules/canUseDOM.mjs";
|
|
2
2
|
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.mjs";
|
|
3
|
+
|
|
3
4
|
const emptyObject = {};
|
|
4
5
|
const supportsCSS3TextDecoration = !canUseDOM || window.CSS != null && window.CSS.supports != null && (window.CSS.supports("text-decoration-line", "none") || window.CSS.supports("-webkit-text-decoration-line", "none"));
|
|
5
6
|
const ignoredProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
elevation: true,
|
|
8
|
+
overlayColor: true,
|
|
9
|
+
resizeMode: true,
|
|
10
|
+
tintColor: true
|
|
10
11
|
};
|
|
11
12
|
const MONOSPACE_FONT_STACK = "monospace,monospace";
|
|
12
|
-
const SYSTEM_FONT_STACK =
|
|
13
|
+
const SYSTEM_FONT_STACK = "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif";
|
|
13
14
|
const STYLE_SHORT_FORM_EXPANSIONS = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
borderColor: [
|
|
16
|
+
"borderTopColor",
|
|
17
|
+
"borderRightColor",
|
|
18
|
+
"borderBottomColor",
|
|
19
|
+
"borderLeftColor"
|
|
20
|
+
],
|
|
21
|
+
borderRadius: [
|
|
22
|
+
"borderTopLeftRadius",
|
|
23
|
+
"borderTopRightRadius",
|
|
24
|
+
"borderBottomRightRadius",
|
|
25
|
+
"borderBottomLeftRadius"
|
|
26
|
+
],
|
|
27
|
+
borderStyle: [
|
|
28
|
+
"borderTopStyle",
|
|
29
|
+
"borderRightStyle",
|
|
30
|
+
"borderBottomStyle",
|
|
31
|
+
"borderLeftStyle"
|
|
32
|
+
],
|
|
33
|
+
borderWidth: [
|
|
34
|
+
"borderTopWidth",
|
|
35
|
+
"borderRightWidth",
|
|
36
|
+
"borderBottomWidth",
|
|
37
|
+
"borderLeftWidth"
|
|
38
|
+
],
|
|
39
|
+
marginHorizontal: ["marginRight", "marginLeft"],
|
|
40
|
+
marginVertical: ["marginTop", "marginBottom"],
|
|
41
|
+
overflow: ["overflowX", "overflowY"],
|
|
42
|
+
overscrollBehavior: ["overscrollBehaviorX", "overscrollBehaviorY"],
|
|
43
|
+
paddingHorizontal: ["paddingRight", "paddingLeft"],
|
|
44
|
+
paddingVertical: ["paddingTop", "paddingBottom"]
|
|
24
45
|
};
|
|
25
|
-
const mapTransform = transform => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
46
|
+
const mapTransform = (transform) => {
|
|
47
|
+
const type = Object.keys(transform)[0];
|
|
48
|
+
const value = transform[type];
|
|
49
|
+
if (type === "matrix" || type === "matrix3d") {
|
|
50
|
+
return `${type}(${value.join(",")})`;
|
|
51
|
+
} else {
|
|
52
|
+
const normalizedValue = normalizeValueWithProperty(value, type);
|
|
53
|
+
return `${type}(${normalizedValue})`;
|
|
54
|
+
}
|
|
34
55
|
};
|
|
35
|
-
const createTransformValue = style => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
const createTransformValue = (style) => {
|
|
57
|
+
let transform = style.transform;
|
|
58
|
+
if (Array.isArray(style.transform)) {
|
|
59
|
+
transform = style.transform.map(mapTransform).join(" ");
|
|
60
|
+
}
|
|
61
|
+
return transform;
|
|
41
62
|
};
|
|
42
63
|
const createReactDOMStyle = (style, isInline) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return resolvedStyle;
|
|
64
|
+
if (!style) {
|
|
65
|
+
return emptyObject;
|
|
66
|
+
}
|
|
67
|
+
const resolvedStyle = {};
|
|
68
|
+
for (const prop in style) {
|
|
69
|
+
const value = style[prop];
|
|
70
|
+
if (value == null || ignoredProps[prop]) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
if (prop === "aspectRatio") {
|
|
74
|
+
resolvedStyle[prop] = value.toString();
|
|
75
|
+
} else if (prop === "backgroundClip") {
|
|
76
|
+
if (value === "text") {
|
|
77
|
+
resolvedStyle.backgroundClip = value;
|
|
78
|
+
resolvedStyle.WebkitBackgroundClip = value;
|
|
79
|
+
}
|
|
80
|
+
} else if (prop === "flex") {
|
|
81
|
+
if (value === -1) {
|
|
82
|
+
resolvedStyle.flexGrow = 0;
|
|
83
|
+
resolvedStyle.flexShrink = 1;
|
|
84
|
+
resolvedStyle.flexBasis = "auto";
|
|
85
|
+
} else {
|
|
86
|
+
resolvedStyle.flex = value;
|
|
87
|
+
}
|
|
88
|
+
} else if (prop === "font") {
|
|
89
|
+
resolvedStyle[prop] = value.replace("System", SYSTEM_FONT_STACK);
|
|
90
|
+
} else if (prop === "fontFamily") {
|
|
91
|
+
if (value.indexOf("System") > -1) {
|
|
92
|
+
const stack = value.split(/,\s*/);
|
|
93
|
+
stack[stack.indexOf("System")] = SYSTEM_FONT_STACK;
|
|
94
|
+
resolvedStyle[prop] = stack.join(",");
|
|
95
|
+
} else if (value === "monospace") {
|
|
96
|
+
resolvedStyle[prop] = MONOSPACE_FONT_STACK;
|
|
97
|
+
} else {
|
|
98
|
+
resolvedStyle[prop] = value;
|
|
99
|
+
}
|
|
100
|
+
} else if (prop === "fontVariant") {
|
|
101
|
+
if (Array.isArray(value) && value.length > 0) {
|
|
102
|
+
resolvedStyle.fontVariant = value.join(" ");
|
|
103
|
+
}
|
|
104
|
+
} else if (prop === "textAlignVertical") {
|
|
105
|
+
resolvedStyle.verticalAlign = value === "center" ? "middle" : value;
|
|
106
|
+
} else if (prop === "textDecorationLine") {
|
|
107
|
+
if (!supportsCSS3TextDecoration) {
|
|
108
|
+
resolvedStyle.textDecoration = value;
|
|
109
|
+
} else {
|
|
110
|
+
resolvedStyle.textDecorationLine = value;
|
|
111
|
+
}
|
|
112
|
+
} else if (prop === "transform" || prop === "transformMatrix") {
|
|
113
|
+
resolvedStyle.transform = createTransformValue(style);
|
|
114
|
+
} else if (prop === "writingDirection") {
|
|
115
|
+
resolvedStyle.direction = value;
|
|
116
|
+
} else {
|
|
117
|
+
const value2 = normalizeValueWithProperty(style[prop], prop);
|
|
118
|
+
const longFormProperties = STYLE_SHORT_FORM_EXPANSIONS[prop];
|
|
119
|
+
if (isInline && prop === "margin") {
|
|
120
|
+
if (style.marginHorizontal == null) {
|
|
121
|
+
resolvedStyle.marginLeft = value2;
|
|
122
|
+
resolvedStyle.marginRight = value2;
|
|
123
|
+
}
|
|
124
|
+
if (style.marginVertical == null) {
|
|
125
|
+
resolvedStyle.marginTop = value2;
|
|
126
|
+
resolvedStyle.marginBottom = value2;
|
|
127
|
+
}
|
|
128
|
+
} else if (isInline && prop === "padding") {
|
|
129
|
+
if (style.paddingHorizontal == null) {
|
|
130
|
+
resolvedStyle.paddingLeft = value2;
|
|
131
|
+
resolvedStyle.paddingRight = value2;
|
|
132
|
+
}
|
|
133
|
+
if (style.paddingVertical == null) {
|
|
134
|
+
resolvedStyle.paddingTop = value2;
|
|
135
|
+
resolvedStyle.paddingBottom = value2;
|
|
136
|
+
}
|
|
137
|
+
} else if (longFormProperties) {
|
|
138
|
+
longFormProperties.forEach((longForm, i) => {
|
|
139
|
+
if (style[longForm] == null) {
|
|
140
|
+
resolvedStyle[longForm] = value2;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
} else {
|
|
144
|
+
resolvedStyle[prop] = Array.isArray(value2) ? value2.join(",") : value2;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return resolvedStyle;
|
|
132
149
|
};
|
|
150
|
+
|
|
133
151
|
export { createReactDOMStyle, createTransformValue };
|
|
134
152
|
//# sourceMappingURL=createReactDOMStyle.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"createReactDOMStyle.js","names":[],"sources":["esm/StyleSheet/compiler/createReactDOMStyle.js"],"sourcesContent":["import { canUseDOM } from \"../../modules/canUseDOM\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst emptyObject = {};\nconst supportsCSS3TextDecoration = !canUseDOM || window.CSS != null && window.CSS.supports != null && (window.CSS.supports(\"text-decoration-line\", \"none\") || window.CSS.supports(\"-webkit-text-decoration-line\", \"none\"));\nconst ignoredProps = {\n elevation: true,\n overlayColor: true,\n resizeMode: true,\n tintColor: true\n};\nconst MONOSPACE_FONT_STACK = \"monospace,monospace\";\nconst SYSTEM_FONT_STACK = '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif';\nconst STYLE_SHORT_FORM_EXPANSIONS = {\n borderColor: [\n \"borderTopColor\",\n \"borderRightColor\",\n \"borderBottomColor\",\n \"borderLeftColor\"\n ],\n borderRadius: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomRightRadius\",\n \"borderBottomLeftRadius\"\n ],\n borderStyle: [\n \"borderTopStyle\",\n \"borderRightStyle\",\n \"borderBottomStyle\",\n \"borderLeftStyle\"\n ],\n borderWidth: [\n \"borderTopWidth\",\n \"borderRightWidth\",\n \"borderBottomWidth\",\n \"borderLeftWidth\"\n ],\n marginHorizontal: [\"marginRight\", \"marginLeft\"],\n marginVertical: [\"marginTop\", \"marginBottom\"],\n overflow: [\"overflowX\", \"overflowY\"],\n overscrollBehavior: [\"overscrollBehaviorX\", \"overscrollBehaviorY\"],\n paddingHorizontal: [\"paddingRight\", \"paddingLeft\"],\n paddingVertical: [\"paddingTop\", \"paddingBottom\"]\n};\nconst mapTransform = (transform) => {\n const type = Object.keys(transform)[0];\n const value = transform[type];\n if (type === \"matrix\" || type === \"matrix3d\") {\n return `${type}(${value.join(\",\")})`;\n } else {\n const normalizedValue = normalizeValueWithProperty(value, type);\n return `${type}(${normalizedValue})`;\n }\n};\nconst createTransformValue = (style) => {\n let transform = style.transform;\n if (Array.isArray(style.transform)) {\n transform = style.transform.map(mapTransform).join(\" \");\n }\n return transform;\n};\nconst createReactDOMStyle = (style, isInline) => {\n if (!style) {\n return emptyObject;\n }\n const resolvedStyle = {};\n for (const prop in style) {\n const value = style[prop];\n if (\n // Ignore everything with a null value\n value == null || // Ignore some React Native styles\n ignoredProps[prop]\n ) {\n continue;\n }\n if (prop === \"aspectRatio\") {\n resolvedStyle[prop] = value.toString();\n } else if (prop === \"backgroundClip\") {\n if (value === \"text\") {\n resolvedStyle.backgroundClip = value;\n resolvedStyle.WebkitBackgroundClip = value;\n }\n } else if (prop === \"flex\") {\n if (value === -1) {\n resolvedStyle.flexGrow = 0;\n resolvedStyle.flexShrink = 1;\n resolvedStyle.flexBasis = \"auto\";\n } else {\n resolvedStyle.flex = value;\n }\n } else if (prop === \"font\") {\n resolvedStyle[prop] = value.replace(\"System\", SYSTEM_FONT_STACK);\n } else if (prop === \"fontFamily\") {\n if (value.indexOf(\"System\") > -1) {\n const stack = value.split(/,\\s*/);\n stack[stack.indexOf(\"System\")] = SYSTEM_FONT_STACK;\n resolvedStyle[prop] = stack.join(\",\");\n } else if (value === \"monospace\") {\n resolvedStyle[prop] = MONOSPACE_FONT_STACK;\n } else {\n resolvedStyle[prop] = value;\n }\n } else if (prop === \"fontVariant\") {\n if (Array.isArray(value) && value.length > 0) {\n resolvedStyle.fontVariant = value.join(\" \");\n }\n } else if (prop === \"textAlignVertical\") {\n resolvedStyle.verticalAlign = value === \"center\" ? \"middle\" : value;\n } else if (prop === \"textDecorationLine\") {\n if (!supportsCSS3TextDecoration) {\n resolvedStyle.textDecoration = value;\n } else {\n resolvedStyle.textDecorationLine = value;\n }\n } else if (prop === \"transform\" || prop === \"transformMatrix\") {\n resolvedStyle.transform = createTransformValue(style);\n } else if (prop === \"writingDirection\") {\n resolvedStyle.direction = value;\n } else {\n const value2 = normalizeValueWithProperty(style[prop], prop);\n const longFormProperties = STYLE_SHORT_FORM_EXPANSIONS[prop];\n if (isInline && prop === \"margin\") {\n if (style.marginHorizontal == null) {\n resolvedStyle.marginLeft = value2;\n resolvedStyle.marginRight = value2;\n }\n if (style.marginVertical == null) {\n resolvedStyle.marginTop = value2;\n resolvedStyle.marginBottom = value2;\n }\n } else if (isInline && prop === \"padding\") {\n if (style.paddingHorizontal == null) {\n resolvedStyle.paddingLeft = value2;\n resolvedStyle.paddingRight = value2;\n }\n if (style.paddingVertical == null) {\n resolvedStyle.paddingTop = value2;\n resolvedStyle.paddingBottom = value2;\n }\n } else if (longFormProperties) {\n longFormProperties.forEach((longForm, i) => {\n if (style[longForm] == null) {\n resolvedStyle[longForm] = value2;\n }\n });\n } else {\n resolvedStyle[prop] = Array.isArray(value2) ? value2.join(\",\") : value2;\n }\n }\n }\n return resolvedStyle;\n};\nexport {\n createReactDOMStyle,\n createTransformValue\n};\n//# sourceMappingURL=createReactDOMStyle.js.map\n"],"mappings":"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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { simpleHash } from "@tamagui/simple-hash";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
export { simpleHash as default };
|
|
@@ -2,14 +2,15 @@ const uppercasePattern = /[A-Z]/g;
|
|
|
2
2
|
const msPattern = /^ms-/;
|
|
3
3
|
const cache = {};
|
|
4
4
|
function toHyphenLower(match) {
|
|
5
|
-
|
|
5
|
+
return "-" + match.toLowerCase();
|
|
6
6
|
}
|
|
7
7
|
function hyphenateStyleName(name) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
if (name in cache) {
|
|
9
|
+
return cache[name];
|
|
10
|
+
}
|
|
11
|
+
const hName = name.replace(uppercasePattern, toHyphenLower);
|
|
12
|
+
return cache[name] = msPattern.test(hName) ? "-" + hName : hName;
|
|
13
13
|
}
|
|
14
|
+
|
|
14
15
|
export { hyphenateStyleName };
|
|
15
16
|
//# sourceMappingURL=hyphenateStyleName.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"hyphenateStyleName.js","names":[],"sources":["esm/StyleSheet/compiler/hyphenateStyleName.js"],"sourcesContent":["const uppercasePattern = /[A-Z]/g;\nconst msPattern = /^ms-/;\nconst cache = {};\nfunction toHyphenLower(match) {\n return \"-\" + match.toLowerCase();\n}\nfunction hyphenateStyleName(name) {\n if (name in cache) {\n return cache[name];\n }\n const hName = name.replace(uppercasePattern, toHyphenLower);\n return cache[name] = msPattern.test(hName) ? \"-\" + hName : hName;\n}\nexport {\n hyphenateStyleName\n};\n//# sourceMappingURL=hyphenateStyleName.js.map\n"],"mappings":";AAAA,MAAM,mBAAmB;AACzB,MAAM,YAAY;AAClB,MAAM,QAAQ,CAAC;AACf,SAAS,cAAc,OAAO;CAC5B,OAAO,MAAM,MAAM,YAAY;AACjC;AACA,SAAS,mBAAmB,MAAM;CAChC,IAAI,QAAQ,OAAO;EACjB,OAAO,MAAM;CACf;CACA,MAAM,QAAQ,KAAK,QAAQ,kBAAkB,aAAa;CAC1D,OAAO,MAAM,QAAQ,UAAU,KAAK,KAAK,IAAI,MAAM,QAAQ;AAC7D"}
|