@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getCSSStylesAtomic","AccessibilityUtil","emptyObject","hasOwnProperty","Object","prototype","isArray","Array","reactNativeOnlyProps","collapsable","contentContainerStyle","contentOffset","decelerationRate","maintainVisibleContentPosition","onLayout","onMomentumScrollBegin","onMomentumScrollEnd","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollBeginDrag","onScrollEndDrag","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","refreshControl","removeClippedSubviews","scrollEnabled","scrollEventThrottle","scrollIndicatorInsets","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","snapToAlignment","snapToEnd","snapToInterval","snapToOffsets","snapToStart","stickyHeaderIndices","ScrollComponent","uppercasePattern","toHyphenLower","match","toLowerCase","hyphenateString","str","replace","processIDRefList","idRefList","join","flattenStyle","style","result","i","styleLength","length","computedStyle","key","call","stylesFromProps","WeakMap","createDOMProps","elementType","props","options","accessibilityActiveDescendant","accessibilityAtomic","accessibilityAutoComplete","accessibilityBusy","accessibilityChecked","accessibilityColumnCount","accessibilityColumnIndex","accessibilityColumnSpan","accessibilityControls","accessibilityCurrent","accessibilityDescribedBy","accessibilityDetails","accessibilityDisabled","accessibilityErrorMessage","accessibilityExpanded","accessibilityFlowTo","accessibilityHasPopup","accessibilityHidden","accessibilityInvalid","accessibilityKeyShortcuts","accessibilityLabel","accessibilityLabelledBy","accessibilityLevel","accessibilityLiveRegion","accessibilityModal","accessibilityMultiline","accessibilityMultiSelectable","accessibilityOrientation","accessibilityOwns","accessibilityPlaceholder","accessibilityPosInSet","accessibilityPressed","accessibilityReadOnly","accessibilityRequired","accessibilityRole","accessibilityRoleDescription","accessibilityRowCount","accessibilityRowIndex","accessibilityRowSpan","accessibilitySelected","accessibilitySetSize","accessibilitySort","accessibilityValueMax","accessibilityValueMin","accessibilityValueNow","accessibilityValueText","dataSet","focusable","nativeID","pointerEvents","testID","id","domProps","disabled","role","propsToAriaRole","readOnly","required","tmgCN","className","tmgID","dataProp","dataName","dataValue","tabIndex","flat","stylesAtomic","set","reduce","acc","value","startsWith","_id"],"sources":["../../../../src/modules/createDOMProps/index.tsx"],"sourcesContent":[null],"mappings":"AASA,SAASA,kBAAA,QAA4C;AACrD,SAASC,iBAAA,QAAyB;AAElC,MAAMC,WAAA,GAAc,CAAC;AACrB,MAAMC,cAAA,GAAiBC,MAAA,CAAOC,SAAA,CAAUF,cAAA;AACxC,MAAMG,OAAA,GAAUC,KAAA,CAAMD,OAAA;AAGtB,MAAME,oBAAA,GAAgD;EACpDC,WAAA,EAAa;EACbC,qBAAA,EAAuB;EACvBC,aAAA,EAAe;EACfC,gBAAA,EAAkB;EAClBC,8BAAA,EAAgC;EAChCC,QAAA,EAAU;EACVC,qBAAA,EAAuB;EACvBC,mBAAA,EAAqB;EACrBC,wBAAA,EAA0B;EAC1BC,+BAAA,EAAiC;EACjCC,cAAA,EAAgB;EACh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AAC,MAAM,OAAOA,GAAA,CAAI+E,UAAA,CAAW,KAAK,KAAK/E,GAAA,CAAI+E,UAAA,CAAW,OAAO,GAAG;MACtEZ,SAAA,IAAa,IAAInE,GAAG;MACpB,OAAO6E,GAAA;IACT;IACA,IAAI7E,GAAA,KAAQ,WAAWA,GAAA,KAAQ,IAAI;MACjC,OAAO6E,GAAA;IACT;IACAA,GAAA,CAAI7E,GAAG,IAAI8E,KAAA;IACX,OAAOD,GAAA;EACT,GAAG,CAAC,CAAC;EAEL,IAAIV,SAAA,EAAW;IACbP,QAAA,CAASO,SAAA,GAAYA,SAAA;EACvB;EAIA,MAAMa,GAAA,GAAMZ,KAAA,IAAST,EAAA,IAAMH,QAAA;EAC3B,IAAIwB,GAAA,EAAK;IACPpB,QAAA,CAASD,EAAA,GAAKqB,GAAA;EAChB;EAEA,IAAItB,MAAA,IAAU,MAAM;IAClBE,QAAA,CAAS,aAAa,IAAIF,MAAA;EAC5B;EAEA,OAAOE,QAAA;AACT","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/createDOMProps/index.js"],"sourcesContent":["import { getCSSStylesAtomic } from \"@tamagui/web\";\nimport { AccessibilityUtil } from \"../AccessibilityUtil/index\";\nconst emptyObject = {};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst isArray = Array.isArray;\nconst reactNativeOnlyProps = {\n collapsable: true,\n contentContainerStyle: true,\n contentOffset: true,\n decelerationRate: true,\n focusable: true,\n maintainVisibleContentPosition: true,\n onLayout: true,\n onMomentumScrollBegin: true,\n onMomentumScrollEnd: true,\n onMoveShouldSetResponder: true,\n onMoveShouldSetResponderCapture: true,\n onResponderEnd: true,\n onResponderGrant: true,\n onResponderMove: true,\n onResponderReject: true,\n onResponderRelease: true,\n onResponderStart: true,\n onResponderTerminate: true,\n onResponderTerminationRequest: true,\n onScrollBeginDrag: true,\n onScrollEndDrag: true,\n onScrollShouldSetResponder: true,\n onScrollShouldSetResponderCapture: true,\n onSelectionChangeShouldSetResponder: true,\n onSelectionChangeShouldSetResponderCapture: true,\n onStartShouldSetResponder: true,\n onStartShouldSetResponderCapture: true,\n refreshControl: true,\n removeClippedSubviews: true,\n scrollEnabled: true,\n scrollEventThrottle: true,\n scrollIndicatorInsets: true,\n showsHorizontalScrollIndicator: true,\n showsVerticalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToOffsets: true,\n snapToStart: true,\n stickyHeaderIndices: true,\n ScrollComponent: true\n};\nconst uppercasePattern = /[A-Z]/g;\nfunction toHyphenLower(match) {\n return \"-\" + match.toLowerCase();\n}\nfunction hyphenateString(str) {\n return str.replace(uppercasePattern, toHyphenLower);\n}\nfunction processIDRefList(idRefList) {\n return isArray(idRefList) ? idRefList.join(\" \") : idRefList;\n}\nfunction flattenStyle(style) {\n if (style === null || typeof style !== \"object\") {\n return void 0;\n }\n if (!isArray(style)) {\n return style;\n }\n const result = {};\n for (let i = 0, styleLength = style.length; i < styleLength; ++i) {\n const computedStyle = flattenStyle(style[i]);\n if (computedStyle) {\n for (const key in computedStyle) {\n if (hasOwnProperty.call(computedStyle, key)) {\n result[key] = computedStyle[key];\n }\n }\n }\n }\n return result;\n}\nconst stylesFromProps = /* @__PURE__ */ new WeakMap();\nconst createDOMProps = (elementType, props, options) => {\n if (!props) {\n props = emptyObject;\n }\n const {\n accessibilityActiveDescendant,\n accessibilityAtomic,\n accessibilityAutoComplete,\n accessibilityBusy,\n accessibilityChecked,\n accessibilityColumnCount,\n accessibilityColumnIndex,\n accessibilityColumnSpan,\n accessibilityControls,\n accessibilityCurrent,\n accessibilityDescribedBy,\n accessibilityDetails,\n accessibilityDisabled,\n accessibilityErrorMessage,\n accessibilityExpanded,\n accessibilityFlowTo,\n accessibilityHasPopup,\n accessibilityHidden,\n accessibilityInvalid,\n accessibilityKeyShortcuts,\n accessibilityLabel,\n accessibilityLabelledBy,\n accessibilityLevel,\n accessibilityLiveRegion,\n accessibilityModal,\n accessibilityMultiline,\n accessibilityMultiSelectable,\n accessibilityOrientation,\n accessibilityOwns,\n accessibilityPlaceholder,\n accessibilityPosInSet,\n accessibilityPressed,\n accessibilityReadOnly,\n accessibilityRequired,\n /* eslint-disable */\n accessibilityRole,\n /* eslint-enable */\n accessibilityRoleDescription,\n accessibilityRowCount,\n accessibilityRowIndex,\n accessibilityRowSpan,\n accessibilitySelected,\n accessibilitySetSize,\n accessibilitySort,\n accessibilityValueMax,\n accessibilityValueMin,\n accessibilityValueNow,\n accessibilityValueText,\n dataSet,\n nativeID,\n pointerEvents,\n style,\n testID,\n id,\n // Rest\n ...domProps\n } = props;\n for (const key in domProps) {\n if (reactNativeOnlyProps[key]) {\n delete domProps[key];\n }\n }\n const disabled = accessibilityDisabled;\n const role = AccessibilityUtil.propsToAriaRole(props);\n if (accessibilityActiveDescendant != null) {\n domProps[\"aria-activedescendant\"] = accessibilityActiveDescendant;\n }\n if (accessibilityAtomic != null) {\n domProps[\"aria-atomic\"] = accessibilityAtomic;\n }\n if (accessibilityAutoComplete != null) {\n domProps[\"aria-autocomplete\"] = accessibilityAutoComplete;\n }\n if (accessibilityBusy != null) {\n domProps[\"aria-busy\"] = accessibilityBusy;\n }\n if (accessibilityChecked != null) {\n domProps[\"aria-checked\"] = accessibilityChecked;\n }\n if (accessibilityColumnCount != null) {\n domProps[\"aria-colcount\"] = accessibilityColumnCount;\n }\n if (accessibilityColumnIndex != null) {\n domProps[\"aria-colindex\"] = accessibilityColumnIndex;\n }\n if (accessibilityColumnSpan != null) {\n domProps[\"aria-colspan\"] = accessibilityColumnSpan;\n }\n if (accessibilityControls != null) {\n domProps[\"aria-controls\"] = processIDRefList(accessibilityControls);\n }\n if (accessibilityCurrent != null) {\n domProps[\"aria-current\"] = accessibilityCurrent;\n }\n if (accessibilityDescribedBy != null) {\n domProps[\"aria-describedby\"] = processIDRefList(accessibilityDescribedBy);\n }\n if (accessibilityDetails != null) {\n domProps[\"aria-details\"] = accessibilityDetails;\n }\n if (disabled === true) {\n domProps[\"aria-disabled\"] = true;\n if (elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.disabled = true;\n }\n }\n if (accessibilityErrorMessage != null) {\n domProps[\"aria-errormessage\"] = accessibilityErrorMessage;\n }\n if (accessibilityExpanded != null) {\n domProps[\"aria-expanded\"] = accessibilityExpanded;\n }\n if (accessibilityFlowTo != null) {\n domProps[\"aria-flowto\"] = processIDRefList(accessibilityFlowTo);\n }\n if (accessibilityHasPopup != null) {\n domProps[\"aria-haspopup\"] = accessibilityHasPopup;\n }\n if (accessibilityHidden === true) {\n domProps[\"aria-hidden\"] = accessibilityHidden;\n }\n if (accessibilityInvalid != null) {\n domProps[\"aria-invalid\"] = accessibilityInvalid;\n }\n if (accessibilityKeyShortcuts != null && Array.isArray(accessibilityKeyShortcuts)) {\n domProps[\"aria-keyshortcuts\"] = accessibilityKeyShortcuts.join(\" \");\n }\n if (accessibilityLabel != null) {\n domProps[\"aria-label\"] = accessibilityLabel;\n }\n if (accessibilityLabelledBy != null) {\n domProps[\"aria-labelledby\"] = processIDRefList(accessibilityLabelledBy);\n }\n if (accessibilityLevel != null) {\n domProps[\"aria-level\"] = accessibilityLevel;\n }\n if (accessibilityLiveRegion != null) {\n domProps[\"aria-live\"] = accessibilityLiveRegion === \"none\" ? \"off\" : accessibilityLiveRegion;\n }\n if (accessibilityModal != null) {\n domProps[\"aria-modal\"] = accessibilityModal;\n }\n if (accessibilityMultiline != null) {\n domProps[\"aria-multiline\"] = accessibilityMultiline;\n }\n if (accessibilityMultiSelectable != null) {\n domProps[\"aria-multiselectable\"] = accessibilityMultiSelectable;\n }\n if (accessibilityOrientation != null) {\n domProps[\"aria-orientation\"] = accessibilityOrientation;\n }\n if (accessibilityOwns != null) {\n domProps[\"aria-owns\"] = processIDRefList(accessibilityOwns);\n }\n if (accessibilityPlaceholder != null) {\n domProps[\"aria-placeholder\"] = accessibilityPlaceholder;\n }\n if (accessibilityPosInSet != null) {\n domProps[\"aria-posinset\"] = accessibilityPosInSet;\n }\n if (accessibilityPressed != null) {\n domProps[\"aria-pressed\"] = accessibilityPressed;\n }\n if (accessibilityReadOnly != null) {\n domProps[\"aria-readonly\"] = accessibilityReadOnly;\n if (elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.readOnly = true;\n }\n }\n if (accessibilityRequired != null) {\n domProps[\"aria-required\"] = accessibilityRequired;\n if (elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.required = true;\n }\n }\n if (role != null) {\n domProps[\"role\"] = role === \"none\" ? \"presentation\" : role;\n }\n if (accessibilityRoleDescription != null) {\n domProps[\"aria-roledescription\"] = accessibilityRoleDescription;\n }\n if (accessibilityRowCount != null) {\n domProps[\"aria-rowcount\"] = accessibilityRowCount;\n }\n if (accessibilityRowIndex != null) {\n domProps[\"aria-rowindex\"] = accessibilityRowIndex;\n }\n if (accessibilityRowSpan != null) {\n domProps[\"aria-rowspan\"] = accessibilityRowSpan;\n }\n if (accessibilitySelected != null) {\n domProps[\"aria-selected\"] = accessibilitySelected;\n }\n if (accessibilitySetSize != null) {\n domProps[\"aria-setsize\"] = accessibilitySetSize;\n }\n if (accessibilitySort != null) {\n domProps[\"aria-sort\"] = accessibilitySort;\n }\n if (accessibilityValueMax != null) {\n domProps[\"aria-valuemax\"] = accessibilityValueMax;\n }\n if (accessibilityValueMin != null) {\n domProps[\"aria-valuemin\"] = accessibilityValueMin;\n }\n if (accessibilityValueNow != null) {\n domProps[\"aria-valuenow\"] = accessibilityValueNow;\n }\n if (accessibilityValueText != null) {\n domProps[\"aria-valuetext\"] = accessibilityValueText;\n }\n const tmgCN = dataSet ? dataSet.className : void 0;\n const tmgID = dataSet ? dataSet.id : void 0;\n if (dataSet != null) {\n for (const dataProp in dataSet) {\n if (dataProp === \"className\" || dataProp === \"id\") continue;\n if (hasOwnProperty.call(dataSet, dataProp)) {\n const dataName = hyphenateString(dataProp);\n const dataValue = dataSet[dataProp];\n if (dataValue != null) {\n domProps[`data-${dataName}`] = dataValue;\n }\n }\n }\n }\n if (\n // These native elements are keyboard focusable by default\n elementType === \"a\" || elementType === \"button\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\"\n ) {\n if (accessibilityDisabled === true) {\n domProps.tabIndex = \"-1\";\n }\n } else if (\n // These roles are made keyboard focusable by default\n role === \"button\" || role === \"checkbox\" || role === \"link\" || role === \"radio\" || role === \"textbox\" || role === \"switch\"\n ) {\n if (domProps.tabIndex == null) {\n domProps.tabIndex = \"0\";\n }\n }\n const flat = flattenStyle(style);\n let className = tmgCN || \"\";\n if (props.className) {\n className += ` ${props.className}`;\n }\n const stylesAtomic = flat ? getCSSStylesAtomic(flat) : [];\n stylesFromProps.set(domProps, stylesAtomic);\n domProps.style = stylesAtomic.reduce((acc, [key, value]) => {\n if (key[0] === \"_\" || key.startsWith(\"is_\") || key.startsWith(\"font_\")) {\n className += ` ${key}`;\n return acc;\n }\n if (key === \"$$css\" || key === \"\") {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n if (className) {\n domProps.className = className;\n }\n const _id = tmgID || id || nativeID;\n if (_id) {\n domProps.id = _id;\n }\n if (testID != null) {\n domProps[\"data-testid\"] = testID;\n }\n return domProps;\n};\nexport {\n createDOMProps,\n stylesFromProps\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,iBAAiB,OAAO,UAAU;AACxC,MAAM,UAAU,MAAM;AACtB,MAAM,uBAAuB;CAC3B,aAAa;CACb,uBAAuB;CACvB,eAAe;CACf,kBAAkB;CAClB,WAAW;CACX,gCAAgC;CAChC,UAAU;CACV,uBAAuB;CACvB,qBAAqB;CACrB,0BAA0B;CAC1B,iCAAiC;CACjC,gBAAgB;CAChB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,oBAAoB;CACpB,kBAAkB;CAClB,sBAAsB;CACtB,+BAA+B;CAC/B,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O,IAEL,SAAS,YAAY,SAAS,cAAc,SAAS,UAAU,SAAS,WAAW,SAAS,aAAa,SAAS,UAClH;EACA,IAAI,SAAS,YAAY,MAAM;GAC7B,SAAS,WAAW;EACtB;CACF;CACA,MAAM,OAAO,aAAa,KAAK;CAC/B,IAAI,YAAY,SAAS;CACzB,IAAI,MAAM,WAAW;EACnB,aAAa,IAAI,MAAM;CACzB;CACA,MAAM,eAAe,OAAO,mBAAmB,IAAI,IAAI,CAAC;CACxD,gBAAgB,IAAI,UAAU,YAAY;CAC1C,SAAS,QAAQ,aAAa,QAAQ,KAAK,CAAC,KAAK,WAAW;EAC1D,IAAI,IAAI,OAAO,OAAO,IAAI,WAAW,KAAK,KAAK,IAAI,WAAW,OAAO,GAAG;GACtE,aAAa,IAAI;GACjB,OAAO;EACT;EACA,IAAI,QAAQ,WAAW,QAAQ,IAAI;GACjC,OAAO;EACT;EACA,IAAI,OAAO;EACX,OAAO;CACT,GAAG,CAAC,CAAC;CACL,IAAI,WAAW;EACb,SAAS,YAAY;CACvB;CACA,MAAM,MAAM,SAAS,MAAM;CAC3B,IAAI,KAAK;EACP,SAAS,KAAK;CAChB;CACA,IAAI,UAAU,MAAM;EAClB,SAAS,iBAAiB;CAC5B;CACA,OAAO;AACT"}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { canUseDOM } from "../canUseDOM.mjs";
|
|
2
|
+
|
|
2
3
|
const emptyFunction = () => {};
|
|
3
4
|
function supportsPassiveEvents() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return supported;
|
|
5
|
+
let supported = false;
|
|
6
|
+
if (canUseDOM) {
|
|
7
|
+
try {
|
|
8
|
+
const options = {};
|
|
9
|
+
Object.defineProperty(options, "passive", { get() {
|
|
10
|
+
supported = true;
|
|
11
|
+
return false;
|
|
12
|
+
} });
|
|
13
|
+
window.addEventListener("test", null, options);
|
|
14
|
+
window.removeEventListener("test", null, options);
|
|
15
|
+
} catch (e) {}
|
|
16
|
+
}
|
|
17
|
+
return supported;
|
|
19
18
|
}
|
|
20
19
|
const canUsePassiveEvents = supportsPassiveEvents();
|
|
21
20
|
function getOptions(options) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
if (options == null) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
return canUsePassiveEvents ? options : Boolean(options.capture);
|
|
26
25
|
}
|
|
27
26
|
function isPropagationStopped() {
|
|
28
|
-
|
|
27
|
+
return this.cancelBubble;
|
|
29
28
|
}
|
|
30
29
|
function isDefaultPrevented() {
|
|
31
|
-
|
|
30
|
+
return this.defaultPrevented;
|
|
32
31
|
}
|
|
33
32
|
function normalizeEvent(event) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
event.nativeEvent = event;
|
|
34
|
+
event.persist = emptyFunction;
|
|
35
|
+
event.isDefaultPrevented = isDefaultPrevented;
|
|
36
|
+
event.isPropagationStopped = isPropagationStopped;
|
|
37
|
+
return event;
|
|
39
38
|
}
|
|
40
39
|
function createEventHandle(type, options) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
const opts = getOptions(options);
|
|
41
|
+
return function(target, listener) {
|
|
42
|
+
if (target == null || typeof target.addEventListener !== "function") {
|
|
43
|
+
throw new Error("createEventHandle: called on an invalid target.");
|
|
44
|
+
}
|
|
45
|
+
const element = target;
|
|
46
|
+
if (listener != null) {
|
|
47
|
+
const compatListener = (e) => listener(normalizeEvent(e));
|
|
48
|
+
element.addEventListener(type, compatListener, opts);
|
|
49
|
+
return function removeListener() {
|
|
50
|
+
if (element != null) {
|
|
51
|
+
element.removeEventListener(type, compatListener, opts);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
} else {
|
|
55
|
+
return emptyFunction;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
59
58
|
}
|
|
59
|
+
|
|
60
60
|
export { createEventHandle };
|
|
61
61
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/createEventHandle/index.js"],"sourcesContent":["import { canUseDOM } from \"../canUseDOM\";\nconst emptyFunction = () => {\n};\nfunction supportsPassiveEvents() {\n let supported = false;\n if (canUseDOM) {\n try {\n const options = {};\n Object.defineProperty(options, \"passive\", {\n get() {\n supported = true;\n return false;\n }\n });\n window.addEventListener(\"test\", null, options);\n window.removeEventListener(\"test\", null, options);\n } catch (e) {\n }\n }\n return supported;\n}\nconst canUsePassiveEvents = supportsPassiveEvents();\nfunction getOptions(options) {\n if (options == null) {\n return false;\n }\n return canUsePassiveEvents ? options : Boolean(options.capture);\n}\nfunction isPropagationStopped() {\n return this.cancelBubble;\n}\nfunction isDefaultPrevented() {\n return this.defaultPrevented;\n}\nfunction normalizeEvent(event) {\n event.nativeEvent = event;\n event.persist = emptyFunction;\n event.isDefaultPrevented = isDefaultPrevented;\n event.isPropagationStopped = isPropagationStopped;\n return event;\n}\nfunction createEventHandle(type, options) {\n const opts = getOptions(options);\n return function(target, listener) {\n if (target == null || typeof target.addEventListener !== \"function\") {\n throw new Error(\"createEventHandle: called on an invalid target.\");\n }\n const element = target;\n if (listener != null) {\n const compatListener = (e) => listener(normalizeEvent(e));\n element.addEventListener(type, compatListener, opts);\n return function removeListener() {\n if (element != null) {\n element.removeEventListener(type, compatListener, opts);\n }\n };\n } else {\n return emptyFunction;\n }\n };\n}\nexport {\n createEventHandle\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,sBAAsB,CAC5B;AACA,SAAS,wBAAwB;CAC/B,IAAI,YAAY;CAChB,IAAI,WAAW;EACb,IAAI;GACF,MAAM,UAAU,CAAC;GACjB,OAAO,eAAe,SAAS,WAAW,EACxC,MAAM;IACJ,YAAY;IACZ,OAAO;GACT,EACF,CAAC;GACD,OAAO,iBAAiB,QAAQ,MAAM,OAAO;GAC7C,OAAO,oBAAoB,QAAQ,MAAM,OAAO;EAClD,SAAS,GAAG,CACZ;CACF;CACA,OAAO;AACT;AACA,MAAM,sBAAsB,sBAAsB;AAClD,SAAS,WAAW,SAAS;CAC3B,IAAI,WAAW,MAAM;EACnB,OAAO;CACT;CACA,OAAO,sBAAsB,UAAU,QAAQ,QAAQ,OAAO;AAChE;AACA,SAAS,uBAAuB;CAC9B,OAAO,KAAK;AACd;AACA,SAAS,qBAAqB;CAC5B,OAAO,KAAK;AACd;AACA,SAAS,eAAe,OAAO;CAC7B,MAAM,cAAc;CACpB,MAAM,UAAU;CAChB,MAAM,qBAAqB;CAC3B,MAAM,uBAAuB;CAC7B,OAAO;AACT;AACA,SAAS,kBAAkB,MAAM,SAAS;CACxC,MAAM,OAAO,WAAW,OAAO;CAC/B,OAAO,SAAS,QAAQ,UAAU;EAChC,IAAI,UAAU,QAAQ,OAAO,OAAO,qBAAqB,YAAY;GACnE,MAAM,IAAI,MAAM,iDAAiD;EACnE;EACA,MAAM,UAAU;EAChB,IAAI,YAAY,MAAM;GACpB,MAAM,kBAAkB,MAAM,SAAS,eAAe,CAAC,CAAC;GACxD,QAAQ,iBAAiB,MAAM,gBAAgB,IAAI;GACnD,OAAO,SAAS,iBAAiB;IAC/B,IAAI,WAAW,MAAM;KACnB,QAAQ,oBAAoB,MAAM,gBAAgB,IAAI;IACxD;GACF;EACF,OAAO;GACL,OAAO;EACT;CACF;AACF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TextInputState } from "../TextInputState/index.mjs";
|
|
2
|
+
|
|
2
3
|
const dismissKeyboard = () => {
|
|
3
|
-
|
|
4
|
+
TextInputState.blurTextInput(TextInputState.currentlyFocusedField());
|
|
4
5
|
};
|
|
6
|
+
|
|
5
7
|
export { dismissKeyboard };
|
|
6
8
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/dismissKeyboard/index.js"],"sourcesContent":["import { TextInputState } from \"../TextInputState/index\";\nconst dismissKeyboard = () => {\n TextInputState.blurTextInput(TextInputState.currentlyFocusedField());\n};\nexport {\n dismissKeyboard\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,wBAAwB;CAC5B,eAAe,cAAc,eAAe,sBAAsB,CAAC;AACrE"}
|
|
@@ -1,128 +1,128 @@
|
|
|
1
1
|
const defaultProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
children: true,
|
|
3
|
+
dataSet: true,
|
|
4
|
+
nativeID: true,
|
|
5
|
+
ref: true,
|
|
6
|
+
suppressHydrationWarning: true,
|
|
7
|
+
testID: true,
|
|
8
|
+
id: true
|
|
9
9
|
};
|
|
10
10
|
const accessibilityProps = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
focusable: true
|
|
11
|
+
accessibilityActiveDescendant: true,
|
|
12
|
+
accessibilityAtomic: true,
|
|
13
|
+
accessibilityAutoComplete: true,
|
|
14
|
+
accessibilityBusy: true,
|
|
15
|
+
accessibilityChecked: true,
|
|
16
|
+
accessibilityColumnCount: true,
|
|
17
|
+
accessibilityColumnIndex: true,
|
|
18
|
+
accessibilityColumnSpan: true,
|
|
19
|
+
accessibilityControls: true,
|
|
20
|
+
accessibilityCurrent: true,
|
|
21
|
+
accessibilityDescribedBy: true,
|
|
22
|
+
accessibilityDetails: true,
|
|
23
|
+
accessibilityDisabled: true,
|
|
24
|
+
accessibilityErrorMessage: true,
|
|
25
|
+
accessibilityExpanded: true,
|
|
26
|
+
accessibilityFlowTo: true,
|
|
27
|
+
accessibilityHasPopup: true,
|
|
28
|
+
accessibilityHidden: true,
|
|
29
|
+
accessibilityInvalid: true,
|
|
30
|
+
accessibilityKeyShortcuts: true,
|
|
31
|
+
accessibilityLabel: true,
|
|
32
|
+
accessibilityLabelledBy: true,
|
|
33
|
+
accessibilityLevel: true,
|
|
34
|
+
accessibilityLiveRegion: true,
|
|
35
|
+
accessibilityModal: true,
|
|
36
|
+
accessibilityMultiline: true,
|
|
37
|
+
accessibilityMultiSelectable: true,
|
|
38
|
+
accessibilityOrientation: true,
|
|
39
|
+
accessibilityOwns: true,
|
|
40
|
+
accessibilityPlaceholder: true,
|
|
41
|
+
accessibilityPosInSet: true,
|
|
42
|
+
accessibilityPressed: true,
|
|
43
|
+
accessibilityReadOnly: true,
|
|
44
|
+
accessibilityRequired: true,
|
|
45
|
+
accessibilityRole: true,
|
|
46
|
+
accessibilityRoleDescription: true,
|
|
47
|
+
accessibilityRowCount: true,
|
|
48
|
+
accessibilityRowIndex: true,
|
|
49
|
+
accessibilityRowSpan: true,
|
|
50
|
+
accessibilitySelected: true,
|
|
51
|
+
accessibilitySetSize: true,
|
|
52
|
+
accessibilitySort: true,
|
|
53
|
+
accessibilityValueMax: true,
|
|
54
|
+
accessibilityValueMin: true,
|
|
55
|
+
accessibilityValueNow: true,
|
|
56
|
+
accessibilityValueText: true,
|
|
57
|
+
dir: true
|
|
59
58
|
};
|
|
60
59
|
const clickProps = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
onClick: true,
|
|
61
|
+
onClickCapture: true,
|
|
62
|
+
onContextMenu: true
|
|
64
63
|
};
|
|
65
64
|
const focusProps = {
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
onBlur: true,
|
|
66
|
+
onFocus: true
|
|
68
67
|
};
|
|
69
68
|
const keyboardProps = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
onKeyDown: true,
|
|
70
|
+
onKeyDownCapture: true,
|
|
71
|
+
onKeyUp: true,
|
|
72
|
+
onKeyUpCapture: true
|
|
74
73
|
};
|
|
75
74
|
const mouseProps = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
onMouseDown: true,
|
|
76
|
+
onMouseEnter: true,
|
|
77
|
+
onMouseLeave: true,
|
|
78
|
+
onMouseMove: true,
|
|
79
|
+
onMouseOver: true,
|
|
80
|
+
onMouseOut: true,
|
|
81
|
+
onMouseUp: true
|
|
83
82
|
};
|
|
84
83
|
const touchProps = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
onTouchCancel: true,
|
|
85
|
+
onTouchCancelCapture: true,
|
|
86
|
+
onTouchEnd: true,
|
|
87
|
+
onTouchEndCapture: true,
|
|
88
|
+
onTouchMove: true,
|
|
89
|
+
onTouchMoveCapture: true,
|
|
90
|
+
onTouchStart: true,
|
|
91
|
+
onTouchStartCapture: true
|
|
93
92
|
};
|
|
94
93
|
const styleProps = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
classList: true,
|
|
95
|
+
className: true,
|
|
96
|
+
style: true
|
|
98
97
|
};
|
|
99
98
|
const forwardedProps = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
99
|
+
defaultProps,
|
|
100
|
+
accessibilityProps,
|
|
101
|
+
clickProps,
|
|
102
|
+
focusProps,
|
|
103
|
+
keyboardProps,
|
|
104
|
+
mouseProps,
|
|
105
|
+
touchProps,
|
|
106
|
+
styleProps
|
|
108
107
|
};
|
|
109
108
|
const forwardPropsListText = {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
109
|
+
...defaultProps,
|
|
110
|
+
...accessibilityProps,
|
|
111
|
+
...clickProps,
|
|
112
|
+
...focusProps,
|
|
113
|
+
...keyboardProps,
|
|
114
|
+
...mouseProps,
|
|
115
|
+
...touchProps,
|
|
116
|
+
...styleProps,
|
|
117
|
+
href: true,
|
|
118
|
+
lang: true,
|
|
119
|
+
pointerEvents: true
|
|
121
120
|
};
|
|
122
121
|
const forwardPropsListView = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
...forwardPropsListText,
|
|
123
|
+
onScroll: true,
|
|
124
|
+
onWheel: true
|
|
126
125
|
};
|
|
126
|
+
|
|
127
127
|
export { accessibilityProps, clickProps, defaultProps, focusProps, forwardPropsListText, forwardPropsListView, forwardedProps, keyboardProps, mouseProps, styleProps, touchProps };
|
|
128
128
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/forwardedProps/index.js"],"sourcesContent":["const defaultProps = {\n children: true,\n dataSet: true,\n nativeID: true,\n ref: true,\n suppressHydrationWarning: true,\n testID: true,\n id: true\n};\nconst accessibilityProps = {\n accessibilityActiveDescendant: true,\n accessibilityAtomic: true,\n accessibilityAutoComplete: true,\n accessibilityBusy: true,\n accessibilityChecked: true,\n accessibilityColumnCount: true,\n accessibilityColumnIndex: true,\n accessibilityColumnSpan: true,\n accessibilityControls: true,\n accessibilityCurrent: true,\n accessibilityDescribedBy: true,\n accessibilityDetails: true,\n accessibilityDisabled: true,\n accessibilityErrorMessage: true,\n accessibilityExpanded: true,\n accessibilityFlowTo: true,\n accessibilityHasPopup: true,\n accessibilityHidden: true,\n accessibilityInvalid: true,\n accessibilityKeyShortcuts: true,\n accessibilityLabel: true,\n accessibilityLabelledBy: true,\n accessibilityLevel: true,\n accessibilityLiveRegion: true,\n accessibilityModal: true,\n accessibilityMultiline: true,\n accessibilityMultiSelectable: true,\n accessibilityOrientation: true,\n accessibilityOwns: true,\n accessibilityPlaceholder: true,\n accessibilityPosInSet: true,\n accessibilityPressed: true,\n accessibilityReadOnly: true,\n accessibilityRequired: true,\n accessibilityRole: true,\n accessibilityRoleDescription: true,\n accessibilityRowCount: true,\n accessibilityRowIndex: true,\n accessibilityRowSpan: true,\n accessibilitySelected: true,\n accessibilitySetSize: true,\n accessibilitySort: true,\n accessibilityValueMax: true,\n accessibilityValueMin: true,\n accessibilityValueNow: true,\n accessibilityValueText: true,\n dir: true\n};\nconst clickProps = {\n onClick: true,\n onClickCapture: true,\n onContextMenu: true\n};\nconst focusProps = {\n onBlur: true,\n onFocus: true\n};\nconst keyboardProps = {\n onKeyDown: true,\n onKeyDownCapture: true,\n onKeyUp: true,\n onKeyUpCapture: true\n};\nconst mouseProps = {\n onMouseDown: true,\n onMouseEnter: true,\n onMouseLeave: true,\n onMouseMove: true,\n onMouseOver: true,\n onMouseOut: true,\n onMouseUp: true\n};\nconst touchProps = {\n onTouchCancel: true,\n onTouchCancelCapture: true,\n onTouchEnd: true,\n onTouchEndCapture: true,\n onTouchMove: true,\n onTouchMoveCapture: true,\n onTouchStart: true,\n onTouchStartCapture: true\n};\nconst styleProps = {\n classList: true,\n className: true,\n style: true\n};\nconst forwardedProps = {\n defaultProps,\n accessibilityProps,\n clickProps,\n focusProps,\n keyboardProps,\n mouseProps,\n touchProps,\n styleProps\n};\nconst forwardPropsListText = {\n ...defaultProps,\n ...accessibilityProps,\n ...clickProps,\n ...focusProps,\n ...keyboardProps,\n ...mouseProps,\n ...touchProps,\n ...styleProps,\n href: true,\n lang: true,\n pointerEvents: true\n};\nconst forwardPropsListView = {\n ...forwardPropsListText,\n onScroll: true,\n onWheel: true\n};\nexport {\n accessibilityProps,\n clickProps,\n defaultProps,\n focusProps,\n forwardPropsListText,\n forwardPropsListView,\n forwardedProps,\n keyboardProps,\n mouseProps,\n styleProps,\n touchProps\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,eAAe;CACnB,UAAU;CACV,SAAS;CACT,UAAU;CACV,KAAK;CACL,0BAA0B;CAC1B,QAAQ;CACR,IAAI;AACN;AACA,MAAM,qBAAqB;CACzB,+BAA+B;CAC/B,qBAAqB;CACrB,2BAA2B;CAC3B,mBAAmB;CACnB,sBAAsB;CACtB,0BAA0B;CAC1B,0BAA0B;CAC1B,yBAAyB;CACzB,uBAAuB;CACvB,sBAAsB;CACtB,0BAA0B;CAC1B,sBAAsB;CACtB,uBAAuB;CACvB,2BAA2B;CAC3B,uBAAuB;CACvB,qBAAqB;CACrB,uBAAuB;CACvB,qBAAqB;CACrB,sBAAsB;CACtB,2BAA2B;CAC3B,oBAAoB;CACpB,yBAAyB;CACzB,oBAAoB;CACpB,yBAAyB;CACzB,oBAAoB;CACpB,wBAAwB;CACxB,8BAA8B;CAC9B,0BAA0B;CAC1B,mBAAmB;CACnB,0BAA0B;CAC1B,uBAAuB;CACvB,sBAAsB;CACtB,uBAAuB;CACvB,uBAAuB;CACvB,mBAAmB;CACnB,8BAA8B;CAC9B,uBAAuB;CACvB,uBAAuB;CACvB,sBAAsB;CACtB,uBAAuB;CACvB,sBAAsB;CACtB,mBAAmB;CACnB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,wBAAwB;CACxB,KAAK;AACP;AACA,MAAM,aAAa;CACjB,SAAS;CACT,gBAAgB;CAChB,eAAe;AACjB;AACA,MAAM,aAAa;CACjB,QAAQ;CACR,SAAS;AACX;AACA,MAAM,gBAAgB;CACpB,WAAW;CACX,kBAAkB;CAClB,SAAS;CACT,gBAAgB;AAClB;AACA,MAAM,aAAa;CACjB,aAAa;CACb,cAAc;CACd,cAAc;CACd,aAAa;CACb,aAAa;CACb,YAAY;CACZ,WAAW;AACb;AACA,MAAM,aAAa;CACjB,eAAe;CACf,sBAAsB;CACtB,YAAY;CACZ,mBAAmB;CACnB,aAAa;CACb,oBAAoB;CACpB,cAAc;CACd,qBAAqB;AACvB;AACA,MAAM,aAAa;CACjB,WAAW;CACX,WAAW;CACX,OAAO;AACT;AACA,MAAM,iBAAiB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAM,uBAAuB;CAC3B,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,MAAM;CACN,MAAM;CACN,eAAe;AACjB;AACA,MAAM,uBAAuB;CAC3B,GAAG;CACH,UAAU;CACV,SAAS;AACX"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
const getBoundingClientRect = node => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const getBoundingClientRect = (node) => {
|
|
2
|
+
if (node != null) {
|
|
3
|
+
const isElement = node.nodeType === 1;
|
|
4
|
+
if (isElement && typeof node.getBoundingClientRect === "function") {
|
|
5
|
+
return node.getBoundingClientRect();
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
8
|
};
|
|
9
|
+
|
|
9
10
|
export { getBoundingClientRect };
|
|
10
11
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/getBoundingClientRect/index.js"],"sourcesContent":["const getBoundingClientRect = (node) => {\n if (node != null) {\n const isElement = node.nodeType === 1;\n if (isElement && typeof node.getBoundingClientRect === \"function\") {\n return node.getBoundingClientRect();\n }\n }\n};\nexport {\n getBoundingClientRect\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,yBAAyB,SAAS;CACtC,IAAI,QAAQ,MAAM;EAChB,MAAM,YAAY,KAAK,aAAa;EACpC,IAAI,aAAa,OAAO,KAAK,0BAA0B,YAAY;GACjE,OAAO,KAAK,sBAAsB;EACpC;CACF;AACF"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
function invariant(condition, log, ...logVars) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
if (!condition) {
|
|
3
|
+
throw new Error(process.env.NODE_ENV === "development" ? log.split("%s").flatMap((chunk, i) => [chunk, logVars[i]]).join("") : log);
|
|
4
|
+
}
|
|
5
5
|
}
|
|
6
6
|
function warning(condition, log, ...logVars) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
if (process.env.NODE_ENV === "development") {
|
|
8
|
+
try {
|
|
9
|
+
invariant(condition, log, ...logVars);
|
|
10
|
+
} catch (err) {
|
|
11
|
+
console.warn(err);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
14
|
}
|
|
15
|
+
|
|
15
16
|
export { invariant, warning };
|
|
16
17
|
//# sourceMappingURL=invariant.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"invariant.js","names":[],"sources":["esm/modules/invariant.js"],"sourcesContent":["function invariant(condition, log, ...logVars) {\n if (!condition) {\n throw new Error(\n process.env.NODE_ENV === \"development\" ? log.split(\"%s\").flatMap((chunk, i) => [chunk, logVars[i]]).join(\"\") : log\n );\n }\n}\nfunction warning(condition, log, ...logVars) {\n if (process.env.NODE_ENV === \"development\") {\n try {\n invariant(condition, log, ...logVars);\n } catch (err) {\n console.warn(err);\n }\n }\n}\nexport {\n invariant,\n warning\n};\n//# sourceMappingURL=invariant.js.map\n"],"mappings":";AAAA,SAAS,UAAU,WAAW,KAAK,GAAG,SAAS;CAC7C,IAAI,CAAC,WAAW;EACd,MAAM,IAAI,MACR,QAAQ,IAAI,aAAa,gBAAgB,IAAI,MAAM,IAAI,EAAE,SAAS,OAAO,MAAM,CAAC,OAAO,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,GACjH;CACF;AACF;AACA,SAAS,QAAQ,WAAW,KAAK,GAAG,SAAS;CAC3C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI;GACF,UAAU,WAAW,KAAK,GAAG,OAAO;EACtC,SAAS,KAAK;GACZ,QAAQ,KAAK,GAAG;EAClB;CACF;AACF"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
function isSelectionValid() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const selection = window.getSelection();
|
|
3
|
+
if (!selection) return false;
|
|
4
|
+
const string = selection.toString();
|
|
5
|
+
const anchorNode = selection.anchorNode;
|
|
6
|
+
const focusNode = selection.focusNode;
|
|
7
|
+
const isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;
|
|
8
|
+
return string.length >= 1 && string !== "\n" && !!isTextNode;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
export { isSelectionValid };
|
|
11
12
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/isSelectionValid/index.js"],"sourcesContent":["function isSelectionValid() {\n const selection = window.getSelection();\n if (!selection) return false;\n const string = selection.toString();\n const anchorNode = selection.anchorNode;\n const focusNode = selection.focusNode;\n const isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;\n return string.length >= 1 && string !== \"\\n\" && !!isTextNode;\n}\nexport {\n isSelectionValid\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,SAAS,mBAAmB;CAC1B,MAAM,YAAY,OAAO,aAAa;CACtC,IAAI,CAAC,WAAW,OAAO;CACvB,MAAM,SAAS,UAAU,SAAS;CAClC,MAAM,aAAa,UAAU;CAC7B,MAAM,YAAY,UAAU;CAC5B,MAAM,aAAa,cAAc,WAAW,aAAa,OAAO,KAAK,aAAa,aAAa,UAAU,aAAa,OAAO,KAAK;CAClI,OAAO,OAAO,UAAU,KAAK,WAAW,QAAQ,CAAC,CAAC;AACpD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
const isWebColor = color => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.startsWith("var(");
|
|
1
|
+
const isWebColor = (color) => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.startsWith("var(");
|
|
2
|
+
|
|
2
3
|
export { isWebColor };
|
|
3
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/isWebColor/index.js"],"sourcesContent":["const isWebColor = (color) => color === \"currentcolor\" || color === \"currentColor\" || color === \"inherit\" || color.startsWith(\"var(\");\nexport {\n isWebColor\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,cAAc,UAAU,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,aAAa,MAAM,WAAW,MAAM"}
|