@xhsreds/reds-rn-next 0.1.3 → 0.1.4
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/coverage/.tmp/coverage-0.json +1 -1
- package/coverage/.tmp/coverage-1.json +1 -1
- package/coverage/.tmp/coverage-10.json +1 -1
- package/coverage/.tmp/coverage-11.json +1 -1
- package/coverage/.tmp/coverage-12.json +1 -1
- package/coverage/.tmp/coverage-13.json +1 -1
- package/coverage/.tmp/coverage-14.json +1 -1
- package/coverage/.tmp/coverage-15.json +1 -1
- package/coverage/.tmp/coverage-16.json +1 -1
- package/coverage/.tmp/coverage-17.json +1 -1
- package/coverage/.tmp/coverage-19.json +1 -1
- package/coverage/.tmp/coverage-2.json +1 -1
- package/coverage/.tmp/coverage-20.json +1 -1
- package/coverage/.tmp/coverage-21.json +1 -1
- package/coverage/.tmp/coverage-22.json +1 -1
- package/coverage/.tmp/coverage-23.json +1 -1
- package/coverage/.tmp/coverage-25.json +1 -1
- package/coverage/.tmp/coverage-26.json +1 -1
- package/coverage/.tmp/coverage-27.json +1 -1
- package/coverage/.tmp/coverage-28.json +1 -1
- package/coverage/.tmp/coverage-29.json +1 -1
- package/coverage/.tmp/coverage-3.json +1 -1
- package/coverage/.tmp/coverage-31.json +1 -1
- package/coverage/.tmp/coverage-32.json +1 -0
- package/coverage/.tmp/coverage-4.json +1 -1
- package/coverage/.tmp/coverage-5.json +1 -1
- package/coverage/.tmp/coverage-6.json +1 -1
- package/coverage/.tmp/coverage-7.json +1 -1
- package/coverage/.tmp/coverage-8.json +1 -1
- package/coverage/.tmp/coverage-9.json +1 -1
- package/lib/cjs/_chunks/GhFTd1qc.js +22 -0
- package/lib/cjs/_chunks/GhFTd1qc.js.map +1 -0
- package/lib/cjs/components/Alert/Alert.js +143 -0
- package/lib/cjs/components/Alert/Alert.js.map +1 -0
- package/lib/cjs/components/Alert/index.js +145 -0
- package/lib/cjs/components/Alert/index.js.map +1 -0
- package/lib/cjs/components/Alert/interface/index.js +8 -0
- package/lib/cjs/components/Alert/interface/index.js.map +1 -0
- package/lib/cjs/components/Alert/styles.js +124 -0
- package/lib/cjs/components/Alert/styles.js.map +1 -0
- package/lib/cjs/components/Avatar/Avatar.js +1 -1
- package/lib/cjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/cjs/components/AvatarGroup/AvatarGroup.js +92 -99
- package/lib/cjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/cjs/components/AvatarGroup/index.js +45 -11
- package/lib/cjs/components/AvatarGroup/index.js.map +1 -1
- package/lib/cjs/components/Button/Button.js +1 -1
- package/lib/cjs/components/Button/Button.js.map +1 -1
- package/lib/cjs/components/FAB/FAB.js +1 -1
- package/lib/cjs/components/FAB/FAB.js.map +1 -1
- package/lib/cjs/components/Image/hook/index.js +2 -2
- package/lib/cjs/components/Image/hook/index.js.map +1 -1
- package/lib/cjs/components/ImagePreview/ImagePreview.js +88 -66
- package/lib/cjs/components/ImagePreview/ImagePreview.js.map +1 -1
- package/lib/cjs/components/ImagePreview/ImageViewer3.js +3 -3
- package/lib/cjs/components/ImagePreview/ImageViewer3.js.map +1 -1
- package/lib/cjs/components/ImagePreview/index.js +48 -9
- package/lib/cjs/components/ImagePreview/index.js.map +1 -1
- package/lib/cjs/components/List/ListItem/ListItem.js +86 -111
- package/lib/cjs/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/cjs/components/List/index.js +44 -9
- package/lib/cjs/components/List/index.js.map +1 -1
- package/lib/cjs/components/Tag/Tag.js +1 -1
- package/lib/cjs/components/Tag/Tag.js.map +1 -1
- package/lib/cjs/components/Text/hooks/loadFontFromFile.js +1 -1
- package/lib/cjs/components/Text/hooks/loadFontFromFile.js.map +1 -1
- package/lib/cjs/index.js +244 -30
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/_chunks/BKEXyO9m.js +19 -0
- package/lib/esm/_chunks/BKEXyO9m.js.map +1 -0
- package/lib/esm/_chunks/{D-HreRcG.js → CwHnr-H1.js} +2 -2
- package/lib/esm/_chunks/{D-HreRcG.js.map → CwHnr-H1.js.map} +1 -1
- package/lib/esm/components/ActionSheets/ActionSheets.js +1 -1
- package/lib/esm/components/ActionSheets/index.js +1 -1
- package/lib/esm/components/Alert/Alert.js +135 -0
- package/lib/esm/components/Alert/Alert.js.map +1 -0
- package/lib/esm/components/Alert/index.js +139 -0
- package/lib/esm/components/Alert/index.js.map +1 -0
- package/lib/esm/components/Alert/interface/index.js +2 -0
- package/lib/esm/components/Alert/interface/index.js.map +1 -0
- package/lib/esm/components/Alert/styles.js +122 -0
- package/lib/esm/components/Alert/styles.js.map +1 -0
- package/lib/esm/components/Avatar/Avatar.js +2 -2
- package/lib/esm/components/Avatar/Avatar.js.map +1 -1
- package/lib/esm/components/Avatar/index.js +1 -1
- package/lib/esm/components/Avatar/styles.js +1 -1
- package/lib/esm/components/AvatarGroup/AvatarGroup.js +90 -101
- package/lib/esm/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/esm/components/AvatarGroup/index.js +43 -9
- package/lib/esm/components/AvatarGroup/index.js.map +1 -1
- package/lib/esm/components/Badge/Badge.js +1 -1
- package/lib/esm/components/Badge/index.js +1 -1
- package/lib/esm/components/BottomBar/BottomBar.js +1 -1
- package/lib/esm/components/BottomBar/index.js +1 -1
- package/lib/esm/components/Button/Button.js +2 -2
- package/lib/esm/components/Button/Button.js.map +1 -1
- package/lib/esm/components/Button/index.js +1 -1
- package/lib/esm/components/Button/styleMap.js +1 -1
- package/lib/esm/components/Collapse/Collapse.js +1 -1
- package/lib/esm/components/Collapse/Item/Item.js +1 -1
- package/lib/esm/components/Collapse/Item/styles.js +1 -1
- package/lib/esm/components/Collapse/index.js +1 -1
- package/lib/esm/components/ConfigProvider/ConfigProvider.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/ConfigCache/ConfigCache.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/ConfigCache/index.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/themeToken/useThemeToken.js +1 -1
- package/lib/esm/components/ConfigProvider/index.js +1 -1
- package/lib/esm/components/Divider/Divider.js +1 -1
- package/lib/esm/components/Divider/index.js +1 -1
- package/lib/esm/components/Divider/styles.js +1 -1
- package/lib/esm/components/DropDown/DropDown.js +1 -1
- package/lib/esm/components/DropDown/DropDownItem.js +1 -1
- package/lib/esm/components/DropDown/index.js +1 -1
- package/lib/esm/components/DropDown/styles.js +1 -1
- package/lib/esm/components/Empty/Empty.js +1 -1
- package/lib/esm/components/Empty/index.js +1 -1
- package/lib/esm/components/Empty/styles.js +1 -1
- package/lib/esm/components/FAB/FAB.js +2 -2
- package/lib/esm/components/FAB/FAB.js.map +1 -1
- package/lib/esm/components/FAB/index.js +1 -1
- package/lib/esm/components/Image/Image.js +1 -1
- package/lib/esm/components/Image/hook/index.js +3 -3
- package/lib/esm/components/Image/hook/index.js.map +1 -1
- package/lib/esm/components/Image/index.js +1 -1
- package/lib/esm/components/ImagePreview/Gesture/useGesture.js +1 -1
- package/lib/esm/components/ImagePreview/ImagePreview.js +87 -69
- package/lib/esm/components/ImagePreview/ImagePreview.js.map +1 -1
- package/lib/esm/components/ImagePreview/ImageViewer.js +1 -1
- package/lib/esm/components/ImagePreview/ImageViewer3.js +4 -4
- package/lib/esm/components/ImagePreview/ImageViewer3.js.map +1 -1
- package/lib/esm/components/ImagePreview/index.js +47 -8
- package/lib/esm/components/ImagePreview/index.js.map +1 -1
- package/lib/esm/components/List/ListItem/ListItem.js +84 -113
- package/lib/esm/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/esm/components/List/index.js +43 -8
- package/lib/esm/components/List/index.js.map +1 -1
- package/lib/esm/components/Picker/Picker.js +1 -1
- package/lib/esm/components/Picker/index.js +1 -1
- package/lib/esm/components/PickerView/PickerView.js +1 -1
- package/lib/esm/components/PickerView/Wheel.js +1 -1
- package/lib/esm/components/PickerView/index.js +1 -1
- package/lib/esm/components/Popover/Popover.js +1 -1
- package/lib/esm/components/Popover/component.js +1 -1
- package/lib/esm/components/Popover/hook.js +1 -1
- package/lib/esm/components/Popover/index.js +1 -1
- package/lib/esm/components/Portal/core/PortalProvider.js +1 -1
- package/lib/esm/components/Portal/index.js +1 -1
- package/lib/esm/components/Progress/Progress.js +1 -1
- package/lib/esm/components/Progress/index.js +1 -1
- package/lib/esm/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/lib/esm/components/ProgressIndicator/index.js +1 -1
- package/lib/esm/components/ProgressIndicator/styles.js +1 -1
- package/lib/esm/components/PullRefresh/PullRefresh.js +1 -1
- package/lib/esm/components/PullRefresh/component.js +1 -1
- package/lib/esm/components/PullRefresh/index.js +1 -1
- package/lib/esm/components/Result/Result.js +1 -1
- package/lib/esm/components/Result/index.js +1 -1
- package/lib/esm/components/Result/styles.js +1 -1
- package/lib/esm/components/Sheets/Sheets.js +1 -1
- package/lib/esm/components/Sheets/index.js +1 -1
- package/lib/esm/components/Silder/Silder.js +1 -1
- package/lib/esm/components/Silder/index.js +1 -1
- package/lib/esm/components/Skeleton/Item/SkeletonItem.js +1 -1
- package/lib/esm/components/Skeleton/Skeleton.js +1 -1
- package/lib/esm/components/Skeleton/index.js +1 -1
- package/lib/esm/components/Switch/Switch.js +1 -1
- package/lib/esm/components/Switch/index.js +1 -1
- package/lib/esm/components/Tab/Tab.js +1 -1
- package/lib/esm/components/Tab/index.js +1 -1
- package/lib/esm/components/Tab/styles.js +1 -1
- package/lib/esm/components/TabBar/TabBar.js +1 -1
- package/lib/esm/components/TabBar/index.js +1 -1
- package/lib/esm/components/Tag/Tag.js +2 -2
- package/lib/esm/components/Tag/Tag.js.map +1 -1
- package/lib/esm/components/Tag/index.js +1 -1
- package/lib/esm/components/Text/Text.js +1 -1
- package/lib/esm/components/Text/hooks/cloneContainer.js +1 -1
- package/lib/esm/components/Text/hooks/index.js +1 -1
- package/lib/esm/components/Text/hooks/loadFontFromFile.js +2 -2
- package/lib/esm/components/Text/hooks/loadFontFromFile.js.map +1 -1
- package/lib/esm/components/Text/index.js +1 -1
- package/lib/esm/components/Text/styles.js +1 -1
- package/lib/esm/components/Toast/Toast.js +1 -1
- package/lib/esm/components/Toast/api.js +1 -1
- package/lib/esm/components/Toast/index.js +1 -1
- package/lib/esm/components/Toast/styles.js +1 -1
- package/lib/esm/index.js +247 -28
- package/lib/esm/index.js.map +1 -1
- package/lib/types/components/Alert/Alert.d.ts +4 -0
- package/lib/types/components/Alert/demo/index.d.ts +2 -0
- package/lib/types/components/Alert/index.d.ts +4 -0
- package/lib/types/components/Alert/interface/index.d.ts +35 -0
- package/lib/types/components/Alert/styles.d.ts +108 -0
- package/lib/types/components/Alert/test/index.bench.d.ts +1 -0
- package/lib/types/components/Alert/test/index.test.d.ts +1 -0
- package/lib/types/components/Alert/test/paper.bench.d.ts +1 -0
- package/lib/types/index.d.ts +4 -0
- package/package.json +2 -2
- package/src/components/Alert/Alert.tsx +170 -0
- package/src/components/Alert/demo/index.tsx +234 -0
- package/src/components/Alert/doc/index.mdx +37 -0
- package/src/components/Alert/index.ts +5 -0
- package/src/components/Alert/interface/index.ts +35 -0
- package/src/components/Alert/styles.ts +116 -0
- package/src/components/Alert/test/__snapshots__/index.test.tsx.snap +519 -0
- package/src/components/Alert/test/index.bench.tsx +13 -0
- package/src/components/Alert/test/index.test.tsx +62 -0
- package/src/components/Alert/test/paper.bench.tsx +26 -0
- package/src/index.ts +15 -0
|
@@ -3,7 +3,7 @@ import { StyleSheet } from 'react-native';
|
|
|
3
3
|
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import { useThemeColor } from '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
6
|
-
import '../../_chunks/
|
|
6
|
+
import '../../_chunks/CwHnr-H1.js';
|
|
7
7
|
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
8
8
|
|
|
9
9
|
var createStyles = function createStyles() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2, _ as _slicedToArray } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { memo, forwardRef, useState } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { F as FABDefaultProps } from '../../_chunks/BHRAJjD2.js';
|
|
@@ -51,7 +51,7 @@ var FAB = function FAB(props) {
|
|
|
51
51
|
onClick: onClick
|
|
52
52
|
}, children))));
|
|
53
53
|
};
|
|
54
|
-
var FAB$1 = /*#__PURE__*/memo(
|
|
54
|
+
var FAB$1 = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(FAB));
|
|
55
55
|
|
|
56
56
|
export { FAB$1 as default };
|
|
57
57
|
//# sourceMappingURL=FAB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FAB.js","sources":["../../../../src/components/FAB/FAB.tsx"],"sourcesContent":["import React, { memo, forwardRef, useState } from \"react\";\nimport { View, GestureResponderEvent, ViewStyle } from \"react-native\";\nimport { RedsFAB, FABDefaultProps } from \"./interface/index\";\nimport { styles, getPositionStyles } from \"./styles\";\nimport { Button } from \"../Button\";\nimport { Portal, PortalProvider } from \"../Portal\";\n\nconst FAB = (props: RedsFAB) => {\n const finalProps = { ...(FABDefaultProps as RedsFAB), ...props };\n const { size, type, shape, children, onClick, avatar, iconLeft, iconRight } = finalProps;\n\n const [boxWidth, setBoxWidth] = useState(0);\n const positionStyles = getPositionStyles(finalProps, boxWidth);\n const viewStyles: ViewStyle[] = [styles.container, positionStyles];\n\n return (\n <PortalProvider>\n <Portal>\n <View\n style={viewStyles}\n onLayout={(event) => {\n const { width } = event.nativeEvent.layout;\n setBoxWidth(width);\n }}\n >\n <Button\n size={size}\n type={type}\n shape={shape}\n iconLeft={iconLeft}\n iconRight={iconRight}\n avatar={avatar}\n outlineType={\"shadow\"}\n onClick={onClick}\n >\n {children}\n </Button>\n </View>\n </Portal>\n </PortalProvider>\n );\n};\n\nexport default memo(forwardRef(FAB));\n"],"names":["FAB","props","finalProps","_objectSpread","FABDefaultProps","size","type","shape","children","onClick","avatar","iconLeft","iconRight","_useState","useState","_useState2","_slicedToArray","boxWidth","setBoxWidth","positionStyles","getPositionStyles","viewStyles","styles","container","React","createElement","PortalProvider","Portal","View","style","onLayout","event","width","nativeEvent","layout","Button","outlineType","memo","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,GAAA,GAAM,SAANA,GAAAA,CAAOC,KAAmB,EAAA;EAC9B,IAAMC,UAAa,GAAAC,cAAA,CAAAA,cAAA,CAAMC,EAAAA,EAAAA,eAAA,CAAgCH,EAAAA,KAAM,CAAA,CAAA;AACzD,EAAA,IAAEI,OAAsEH,UAAA,CAAtEG;IAAMC,IAAM,GAA0DJ,UAAA,CAAhEI,IAAM;IAAAC,KAAA,GAA0DL,UAAA,CAA1DK,KAAA;IAAOC,WAAmDN,UAAA,CAAnDM;IAAUC,OAAS,GAAgCP,UAAA,CAAzCO,OAAS;IAAAC,MAAA,GAAgCR,UAAA,CAAhCQ,MAAA;IAAQC,QAAU,GAAcT,UAAA,CAAxBS,QAAU;IAAAC,SAAA,GAAcV,UAAA,CAAdU,SAAA,CAAA;AAEhE,EAAA,IAAAC,SAAA,GAAgCC,SAAS,CAAC,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAnCI,IAAAA,QAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAUG,IAAAA,WAAW,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AACtB,EAAA,IAAAI,cAAA,GAAiBC,iBAAkB,CAAAlB,UAAA,EAAYe,QAAQ,CAAA,CAAA;EAC7D,IAAMI,UAA0B,GAAA,CAACC,MAAO,CAAAC,SAAA,EAAWJ,cAAc,CAAA,CAAA;EAG/D,sBAAAK,cAAA,CAAAC,aAAA,CAACC,cACC,EAAA,IAAA,iBAAAF,cAAA,CAAAC,aAAA,CAACE,MACC,EAAA,IAAA,iBAAAH,cAAA,CAAAC,aAAA,CAACG,IAAA,EAAA;AACCC,IAAAA,KAAO,EAAAR,UAAA;AACPS,IAAAA,QAAA,EAAU,SAAVA,QAAAA,CAAWC,KAAU,EAAA;MACnB,IAAQC,KAAA,GAAUD,KAAA,CAAME,WAAY,CAAAC,MAAA,CAA5BF,KAAA,CAAA;MACRd,WAAA,CAAYc,KAAK,CAAA,CAAA;AACnB,KAAA;AAAA,GAAA,iBAEAR,cAAA,CAAAC,aAAA,CAACU,MAAA,EAAA;AACC9B,IAAAA,IAAA,EAAAA,IAAA;AACAC,IAAAA,IAAA,EAAAA,IAAA;AACAC,IAAAA,KAAA,EAAAA,KAAA;AACAI,IAAAA,QAAA,EAAAA,QAAA;AACAC,IAAAA,SAAA,EAAAA,SAAA;AACAF,IAAAA,MAAA,EAAAA,MAAA;AACA0B,IAAAA,WAAa,EAAA,QAAA;AACb3B,IAAAA,OAAA,EAAAA,OAAAA;AAAA,GAAA,EAECD,QACH,CACF,CACF,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,YAAA,aAAe6B,IAAA,
|
|
1
|
+
{"version":3,"file":"FAB.js","sources":["../../../../src/components/FAB/FAB.tsx"],"sourcesContent":["import React, { memo, forwardRef, useState } from \"react\";\nimport { View, GestureResponderEvent, ViewStyle } from \"react-native\";\nimport { RedsFAB, FABDefaultProps } from \"./interface/index\";\nimport { styles, getPositionStyles } from \"./styles\";\nimport { Button } from \"../Button\";\nimport { Portal, PortalProvider } from \"../Portal\";\n\nconst FAB = (props: RedsFAB) => {\n const finalProps = { ...(FABDefaultProps as RedsFAB), ...props };\n const { size, type, shape, children, onClick, avatar, iconLeft, iconRight } = finalProps;\n\n const [boxWidth, setBoxWidth] = useState(0);\n const positionStyles = getPositionStyles(finalProps, boxWidth);\n const viewStyles: ViewStyle[] = [styles.container, positionStyles];\n\n return (\n <PortalProvider>\n <Portal>\n <View\n style={viewStyles}\n onLayout={(event) => {\n const { width } = event.nativeEvent.layout;\n setBoxWidth(width);\n }}\n >\n <Button\n size={size}\n type={type}\n shape={shape}\n iconLeft={iconLeft}\n iconRight={iconRight}\n avatar={avatar}\n outlineType={\"shadow\"}\n onClick={onClick}\n >\n {children}\n </Button>\n </View>\n </Portal>\n </PortalProvider>\n );\n};\n\nexport default memo(forwardRef(FAB));\n"],"names":["FAB","props","finalProps","_objectSpread","FABDefaultProps","size","type","shape","children","onClick","avatar","iconLeft","iconRight","_useState","useState","_useState2","_slicedToArray","boxWidth","setBoxWidth","positionStyles","getPositionStyles","viewStyles","styles","container","React","createElement","PortalProvider","Portal","View","style","onLayout","event","width","nativeEvent","layout","Button","outlineType","memo","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,GAAA,GAAM,SAANA,GAAAA,CAAOC,KAAmB,EAAA;EAC9B,IAAMC,UAAa,GAAAC,cAAA,CAAAA,cAAA,CAAMC,EAAAA,EAAAA,eAAA,CAAgCH,EAAAA,KAAM,CAAA,CAAA;AACzD,EAAA,IAAEI,OAAsEH,UAAA,CAAtEG;IAAMC,IAAM,GAA0DJ,UAAA,CAAhEI,IAAM;IAAAC,KAAA,GAA0DL,UAAA,CAA1DK,KAAA;IAAOC,WAAmDN,UAAA,CAAnDM;IAAUC,OAAS,GAAgCP,UAAA,CAAzCO,OAAS;IAAAC,MAAA,GAAgCR,UAAA,CAAhCQ,MAAA;IAAQC,QAAU,GAAcT,UAAA,CAAxBS,QAAU;IAAAC,SAAA,GAAcV,UAAA,CAAdU,SAAA,CAAA;AAEhE,EAAA,IAAAC,SAAA,GAAgCC,SAAS,CAAC,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAnCI,IAAAA,QAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAUG,IAAAA,WAAW,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AACtB,EAAA,IAAAI,cAAA,GAAiBC,iBAAkB,CAAAlB,UAAA,EAAYe,QAAQ,CAAA,CAAA;EAC7D,IAAMI,UAA0B,GAAA,CAACC,MAAO,CAAAC,SAAA,EAAWJ,cAAc,CAAA,CAAA;EAG/D,sBAAAK,cAAA,CAAAC,aAAA,CAACC,cACC,EAAA,IAAA,iBAAAF,cAAA,CAAAC,aAAA,CAACE,MACC,EAAA,IAAA,iBAAAH,cAAA,CAAAC,aAAA,CAACG,IAAA,EAAA;AACCC,IAAAA,KAAO,EAAAR,UAAA;AACPS,IAAAA,QAAA,EAAU,SAAVA,QAAAA,CAAWC,KAAU,EAAA;MACnB,IAAQC,KAAA,GAAUD,KAAA,CAAME,WAAY,CAAAC,MAAA,CAA5BF,KAAA,CAAA;MACRd,WAAA,CAAYc,KAAK,CAAA,CAAA;AACnB,KAAA;AAAA,GAAA,iBAEAR,cAAA,CAAAC,aAAA,CAACU,MAAA,EAAA;AACC9B,IAAAA,IAAA,EAAAA,IAAA;AACAC,IAAAA,IAAA,EAAAA,IAAA;AACAC,IAAAA,KAAA,EAAAA,KAAA;AACAI,IAAAA,QAAA,EAAAA,QAAA;AACAC,IAAAA,SAAA,EAAAA,SAAA;AACAF,IAAAA,MAAA,EAAAA,MAAA;AACA0B,IAAAA,WAAa,EAAA,QAAA;AACb3B,IAAAA,OAAA,EAAAA,OAAAA;AAAA,GAAA,EAECD,QACH,CACF,CACF,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,YAAA,aAAe6B,IAAA,cAAKC,UAAW,CAAAtC,GAAG,CAAC,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as _objectWithoutProperties,
|
|
1
|
+
import { d as _objectWithoutProperties, _ as _slicedToArray, a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { memo, forwardRef, useState } from 'react';
|
|
3
3
|
import { View, Image as Image$2, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { I as ImageDefaultProps, a as IMAGE_STATUS, T as TLoadStyle, b as TErrorStyle } from '../../_chunks/BITrbAAT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _slicedToArray, h as _asyncToGenerator, i as _regeneratorRuntime } from '../../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import { useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import { T as TLoadStyle } from '../../../_chunks/BITrbAAT.js';
|
|
4
4
|
import { lightColor } from '@xhsreds/reds-token-next';
|
|
@@ -14,8 +14,8 @@ var useAveColor = function useAveColor(_ref) {
|
|
|
14
14
|
setColor = _useState2[1];
|
|
15
15
|
useEffect(function () {
|
|
16
16
|
if (!loadingAve || !url) return;
|
|
17
|
-
fetch(url + "".concat(url.includes("?") ? "&" : "?", "imageAve")).then(
|
|
18
|
-
var _ref2 = _asyncToGenerator(
|
|
17
|
+
fetch(url + "".concat(url.includes("?") ? "&" : "?", "imageAve")).then(/*#__PURE__*/function () {
|
|
18
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(a) {
|
|
19
19
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20
20
|
while (1) switch (_context.prev = _context.next) {
|
|
21
21
|
case 0:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Image/hook/index.ts"],"sourcesContent":["import { useState, useEffect, useMemo } from \"react\";\nimport { ImageSourcePropType, ImageURISource } from \"react-native\";\nimport { RedsImage, TLoadStyle } from \"../interface\";\nimport { lightColor } from \"@xhsreds/reds-token-next\";\n\nexport const useAveColor = ({\n source,\n defaultColor,\n loadingAve,\n}: {\n source: ImageSourcePropType;\n defaultColor: string;\n loadingAve: boolean;\n}) => {\n const url = (source as ImageURISource)?.uri;\n const [color, setColor] = useState(defaultColor);\n useEffect(() => {\n if (!loadingAve || !url) return;\n fetch(url + `${url.includes(\"?\") ? \"&\" : \"?\"}imageAve`)\n .then(async (a) => a.json())\n .then((res) => {\n res.RGB && setColor(res.RGB.replace(\"0x\", \"#\"));\n })\n .catch(() => {});\n }, [source, loadingAve]);\n return color;\n};\n\nconst useBlur = ({ source }: { source: ImageSourcePropType }) => {\n const url = (source as ImageURISource)?.uri;\n if (!url) return { uri: \"\" };\n return { uri: url.includes(\"?\") ? url.replace(/\\?.*/, \"?imageMogr2/blur/25x25\") : url + \"?imageMogr2/blur/25x25\" };\n};\n\nexport const useImage = ({ src, source: _source, loadStyle }: RedsImage) => {\n const source = useMemo(() => {\n if (_source) return _source;\n return { uri: src } as ImageSourcePropType;\n }, [src, _source]);\n\n const aveColor = useAveColor({\n source,\n defaultColor: lightColor.Fill1,\n loadingAve: loadStyle === TLoadStyle.AVE,\n });\n\n const blurSource = useBlur({ source });\n\n return { source, aveColor, blurSource };\n};\n"],"names":["useAveColor","source","_ref","defaultColor","loadingAve","url","uri","_useState","useState","_useState2","_slicedToArray","color","setColor","useEffect","fetch","includes","then","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","a","json","_context","stop","_x","apply","arguments","res","RGB","replace","useBlur","_ref3","useImage","src","_source","_ref4","loadStyle","useMemo","aveColor","lightColor","Fill1","TLoadStyle","AVE","blurSource"],"mappings":";;;;;IAKaA,cAAc,SAAdA,kBAQP;AAAA,EAAA,IAPJC,MAAA,GAAAC,IAAA,CAAAD,MAAA;IACAE,YAAA,GAAAD,IAAA,CAAAC,YAAA;IACAC,UAAA,GAAAF,IAAA,CAAAE,UAAA,CAAA;EAMA,IAAMC,MAAOJ,MAA2B,KAAA,IAAA,IAA3BA,MAA2B,KAA3BA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,MAA2B,CAAAK,GAAA,CAAA;AACxC,EAAA,IAAAC,SAAA,GAA0BC,SAASL,YAAY,CAAA;IAAAM,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAxCI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AACtBI,EAAAA,SAAA,CAAU,YAAM;AACV,IAAA,IAAA,CAACT,UAAc,IAAA,CAACC,GAAK,EAAA,OAAA;AACzBS,IAAAA,KAAA,CAAMT,gBAASA,GAAA,CAAIU,SAAS,GAAG,CAAA,GAAI,MAAM,GAAG,EAAU,UAAA,CAAA,EACnDC,IAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Image/hook/index.ts"],"sourcesContent":["import { useState, useEffect, useMemo } from \"react\";\nimport { ImageSourcePropType, ImageURISource } from \"react-native\";\nimport { RedsImage, TLoadStyle } from \"../interface\";\nimport { lightColor } from \"@xhsreds/reds-token-next\";\n\nexport const useAveColor = ({\n source,\n defaultColor,\n loadingAve,\n}: {\n source: ImageSourcePropType;\n defaultColor: string;\n loadingAve: boolean;\n}) => {\n const url = (source as ImageURISource)?.uri;\n const [color, setColor] = useState(defaultColor);\n useEffect(() => {\n if (!loadingAve || !url) return;\n fetch(url + `${url.includes(\"?\") ? \"&\" : \"?\"}imageAve`)\n .then(async (a) => a.json())\n .then((res) => {\n res.RGB && setColor(res.RGB.replace(\"0x\", \"#\"));\n })\n .catch(() => {});\n }, [source, loadingAve]);\n return color;\n};\n\nconst useBlur = ({ source }: { source: ImageSourcePropType }) => {\n const url = (source as ImageURISource)?.uri;\n if (!url) return { uri: \"\" };\n return { uri: url.includes(\"?\") ? url.replace(/\\?.*/, \"?imageMogr2/blur/25x25\") : url + \"?imageMogr2/blur/25x25\" };\n};\n\nexport const useImage = ({ src, source: _source, loadStyle }: RedsImage) => {\n const source = useMemo(() => {\n if (_source) return _source;\n return { uri: src } as ImageSourcePropType;\n }, [src, _source]);\n\n const aveColor = useAveColor({\n source,\n defaultColor: lightColor.Fill1,\n loadingAve: loadStyle === TLoadStyle.AVE,\n });\n\n const blurSource = useBlur({ source });\n\n return { source, aveColor, blurSource };\n};\n"],"names":["useAveColor","source","_ref","defaultColor","loadingAve","url","uri","_useState","useState","_useState2","_slicedToArray","color","setColor","useEffect","fetch","includes","then","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","a","json","_context","stop","_x","apply","arguments","res","RGB","replace","useBlur","_ref3","useImage","src","_source","_ref4","loadStyle","useMemo","aveColor","lightColor","Fill1","TLoadStyle","AVE","blurSource"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as _objectWithoutProperties,
|
|
1
|
+
import { d as _objectWithoutProperties, _ as _slicedToArray, a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { memo, forwardRef, useState } from 'react';
|
|
3
3
|
import { View, Image as Image$1, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { I as ImageDefaultProps, a as IMAGE_STATUS, T as TLoadStyle, b as TErrorStyle } from '../../_chunks/BITrbAAT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as _objectWithoutProperties,
|
|
1
|
+
import { d as _objectWithoutProperties, a as _objectSpread2 } from '../../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useRef } from 'react';
|
|
3
3
|
import { PanResponder } from 'react-native';
|
|
4
4
|
import { handler as handler$2, defaultConfig as defaultConfig$1 } from './Pinch.js';
|
|
@@ -1,117 +1,135 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import '../
|
|
7
|
-
import '../../_chunks/RRfNwNcs.js';
|
|
8
|
-
import '../Sheets/Sheets.js';
|
|
9
|
-
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'react-native';
|
|
3
|
+
import '../../_chunks/ByMDi00e.js';
|
|
4
|
+
import './ImageViewer.js';
|
|
5
|
+
export { ImagePreview as default } from '../../index.js';
|
|
6
|
+
import '../Image/Image.js';
|
|
10
7
|
import '@xhsreds/reds-token-next';
|
|
11
|
-
import '
|
|
12
|
-
import '../PickerView/styles.js';
|
|
13
|
-
import '../Picker/Picker.js';
|
|
14
|
-
import '../FAB/styles.js';
|
|
15
|
-
import '../Button/styleMap.js';
|
|
16
|
-
import '../Portal/core/Portal.js';
|
|
17
|
-
import '../Portal/core/PortalHost.js';
|
|
18
|
-
import '../Portal/core/PortalProvider.js';
|
|
19
|
-
import '@xhs/reder-icon-svg';
|
|
20
|
-
import 'react-native-svg';
|
|
21
|
-
import '../Toast/styles.js';
|
|
22
|
-
import '../DropDown/DropDown.js';
|
|
23
|
-
import '../DropDown/DropDownItem.js';
|
|
24
|
-
import '../Progress/styles.js';
|
|
25
|
-
import '../TabBar/TabBar.js';
|
|
26
|
-
import '../NavigationBar/NavigationBar.js';
|
|
27
|
-
import '../BottomBar/styles.js';
|
|
28
|
-
import '../List/styles.js';
|
|
29
|
-
import '../Skeleton/Skeleton.js';
|
|
30
|
-
import '../Skeleton/Item/SkeletonItem.js';
|
|
31
|
-
import '../Tag/Tag.js';
|
|
32
|
-
import Image from '../Image/Image.js';
|
|
33
|
-
import '@floating-ui/react-native';
|
|
34
|
-
import '../Switch/Switch.js';
|
|
35
|
-
import '../../_chunks/B3zY_xWO.js';
|
|
36
|
-
import '../Collapse/Collapse.js';
|
|
37
|
-
import '../Collapse/Item/Item.js';
|
|
38
|
-
import '../Empty/Empty.js';
|
|
39
|
-
import '../PullRefresh/PullRefresh.js';
|
|
40
|
-
import '../Badge/styles.js';
|
|
41
|
-
import '../Tab/Tab.js';
|
|
42
|
-
import '../../_chunks/D-HreRcG.js';
|
|
8
|
+
import '../../_chunks/CwHnr-H1.js';
|
|
43
9
|
import './Gesture/useGesture.js';
|
|
44
10
|
import './Gesture/Pinch.js';
|
|
45
11
|
import './Gesture/Pan.js';
|
|
46
12
|
import './Gesture/Tap.js';
|
|
13
|
+
import '../ActionSheets/ActionSheets.js';
|
|
47
14
|
import '../../_chunks/DHJk9lIr.js';
|
|
48
15
|
import '../ActionSheets/styles.js';
|
|
16
|
+
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
49
17
|
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
50
18
|
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
19
|
+
import '../Sheets/Sheets.js';
|
|
51
20
|
import '../../_chunks/BJ2Kj1Vd.js';
|
|
21
|
+
import '../Portal/core/Portal.js';
|
|
52
22
|
import '../Portal/core/hooks/usePortal.js';
|
|
53
23
|
import '../../_chunks/B-g-eq94.js';
|
|
54
24
|
import '../Portal/core/PortalContext.js';
|
|
25
|
+
import '../Portal/core/PortalHost.js';
|
|
55
26
|
import '../Portal/core/hooks/usePortalState.js';
|
|
27
|
+
import '../Portal/core/PortalProvider.js';
|
|
56
28
|
import '../Sheets/styles.js';
|
|
57
29
|
import '../Button/Button.js';
|
|
58
30
|
import '../../_chunks/BbMynYIz.js';
|
|
31
|
+
import '../Button/styleMap.js';
|
|
59
32
|
import '../Icon/Icon.js';
|
|
33
|
+
import 'react-native-svg';
|
|
34
|
+
import '@xhs/reder-icon-svg';
|
|
35
|
+
import '../Silder/Silder.js';
|
|
36
|
+
import '../../_chunks/RRfNwNcs.js';
|
|
60
37
|
import '../Silder/styles.js';
|
|
38
|
+
import '../PickerView/PickerView.js';
|
|
39
|
+
import '../ProgressIndicator/ProgressIndicator.js';
|
|
61
40
|
import '../../_chunks/D361MMpE.js';
|
|
62
41
|
import '../ProgressIndicator/styles.js';
|
|
63
|
-
import '
|
|
64
|
-
import '../PickerView/PickerView.js';
|
|
42
|
+
import '../PickerView/styles.js';
|
|
65
43
|
import '../PickerView/Wheel.js';
|
|
44
|
+
import '../../_chunks/BCi0K_XP.js';
|
|
45
|
+
import '../Picker/Picker.js';
|
|
46
|
+
import '../../_chunks/HoMybJja.js';
|
|
47
|
+
import '../../_chunks/BKEXyO9m.js';
|
|
48
|
+
import '../FAB/FAB.js';
|
|
49
|
+
import '../../_chunks/BHRAJjD2.js';
|
|
50
|
+
import '../FAB/styles.js';
|
|
66
51
|
import '../../_chunks/smTB3TZu.js';
|
|
52
|
+
import '../Toast/api.js';
|
|
53
|
+
import '../Toast/Toast.js';
|
|
54
|
+
import '../Toast/styles.js';
|
|
55
|
+
import '../DropDown/DropDown.js';
|
|
67
56
|
import '../../_chunks/vOnIzQRe.js';
|
|
68
57
|
import '../DropDown/styles.js';
|
|
58
|
+
import '../Tab/Tab.js';
|
|
69
59
|
import '../../_chunks/5aBuaARv.js';
|
|
70
60
|
import '../Tab/styles.js';
|
|
71
61
|
import '../Badge/Badge.js';
|
|
72
62
|
import '../../_chunks/t6qlCOwe.js';
|
|
63
|
+
import '../Badge/styles.js';
|
|
64
|
+
import '../DropDown/DropDownItem.js';
|
|
65
|
+
import '../Progress/Progress.js';
|
|
66
|
+
import '../../_chunks/CDjjInz6.js';
|
|
67
|
+
import '../Progress/styles.js';
|
|
68
|
+
import '../TabBar/TabBar.js';
|
|
73
69
|
import '../../_chunks/DUTFT_ka.js';
|
|
74
70
|
import '../TabBar/styles.js';
|
|
71
|
+
import '../NavigationBar/NavigationBar.js';
|
|
75
72
|
import '../../_chunks/DxmiznjB.js';
|
|
76
73
|
import '../NavigationBar/styles.js';
|
|
74
|
+
import '../BottomBar/BottomBar.js';
|
|
75
|
+
import '../../_chunks/6IvC8kW8.js';
|
|
76
|
+
import '../BottomBar/styles.js';
|
|
77
|
+
import '../List/List.js';
|
|
78
|
+
import '../List/ListItem/ListContext.js';
|
|
79
|
+
import '../List/styles.js';
|
|
80
|
+
import '../../_chunks/CWfZNdRH.js';
|
|
81
|
+
import '../Skeleton/Skeleton.js';
|
|
77
82
|
import '../../_chunks/7_ZK_tBb.js';
|
|
78
|
-
import '../Skeleton/
|
|
83
|
+
import '../Skeleton/Item/SkeletonItem.js';
|
|
79
84
|
import '../../_chunks/D-UGc_mn.js';
|
|
80
85
|
import '../Skeleton/Item/styles.js';
|
|
86
|
+
import '../Skeleton/styles.js';
|
|
87
|
+
import '../Divider/Divider.js';
|
|
88
|
+
import '../../_chunks/CLoffREn.js';
|
|
89
|
+
import '../Divider/styles.js';
|
|
90
|
+
import '../Tag/Tag.js';
|
|
81
91
|
import '../../_chunks/CszwJiJx.js';
|
|
82
92
|
import '../../_chunks/BITrbAAT.js';
|
|
83
|
-
import '../
|
|
84
|
-
import '../
|
|
85
|
-
import '../
|
|
93
|
+
import '../Popover/Popover.js';
|
|
94
|
+
import '../Popover/component.js';
|
|
95
|
+
import '../Popover/hook.js';
|
|
96
|
+
import '@floating-ui/react-native';
|
|
97
|
+
import '../../_chunks/BeWZSBnN.js';
|
|
98
|
+
import '../Switch/Switch.js';
|
|
99
|
+
import '../../_chunks/B3zY_xWO.js';
|
|
86
100
|
import '../Switch/styles.js';
|
|
101
|
+
import '../ConfigProvider/ConfigProvider.js';
|
|
102
|
+
import '../../_chunks/DKABHJAn.js';
|
|
103
|
+
import '../Text/Text.js';
|
|
104
|
+
import '../Text/hooks/cloneContainer.js';
|
|
105
|
+
import '../Text/hooks/getRenderText.js';
|
|
106
|
+
import '../Text/hooks/nativeEmojiMap/android.js';
|
|
107
|
+
import '../Text/hooks/nativeEmojiMap/ios.js';
|
|
108
|
+
import '../Text/styles.js';
|
|
109
|
+
import '../../_chunks/BswK5qRp.js';
|
|
110
|
+
import '../Collapse/Collapse.js';
|
|
87
111
|
import '../Collapse/interface/index.js';
|
|
88
112
|
import '../Collapse/hooks/useCollapseContext.js';
|
|
113
|
+
import '../Collapse/Item/Item.js';
|
|
89
114
|
import '../Collapse/Item/interface/index.js';
|
|
90
115
|
import '../Collapse/Item/styles.js';
|
|
116
|
+
import '../Empty/Empty.js';
|
|
91
117
|
import '../../_chunks/BfaGqGMC.js';
|
|
92
118
|
import '../Empty/styles.js';
|
|
119
|
+
import '../Result/Result.js';
|
|
120
|
+
import '../../_chunks/BKS4Pa1R.js';
|
|
121
|
+
import '../Result/styles.js';
|
|
122
|
+
import '../Result/hooks/useDefaultIcon.js';
|
|
123
|
+
import '../PullRefresh/PullRefresh.js';
|
|
93
124
|
import '../../_chunks/CGzZESdM.js';
|
|
94
125
|
import '../PullRefresh/component.js';
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
}, /* @__PURE__ */React__default.createElement(ImageViewer, {
|
|
106
|
-
onClose: removePortal
|
|
107
|
-
}, /* @__PURE__ */React__default.createElement(Image, {
|
|
108
|
-
width: "100%",
|
|
109
|
-
height: "100%",
|
|
110
|
-
resizeMode: "contain",
|
|
111
|
-
src: "https://picasso-static.xiaohongshu.com/fe-platform/167754d83b112dc155edd2ae5dc7f9ced481bba3.webp"
|
|
112
|
-
})));
|
|
113
|
-
};
|
|
114
|
-
ImagePreview.defaultProps = ImagePreviewDefaultProps;
|
|
115
|
-
|
|
116
|
-
export { ImagePreview as default };
|
|
126
|
+
import '../../_chunks/LNDx6DgD.js';
|
|
127
|
+
import '../Avatar/Avatar.js';
|
|
128
|
+
import '../../_chunks/CBSrvlEa.js';
|
|
129
|
+
import '../Avatar/styles.js';
|
|
130
|
+
import '../../_chunks/DYs5DSy1.js';
|
|
131
|
+
import '../Alert/styles.js';
|
|
132
|
+
import '../Image/styles.js';
|
|
133
|
+
import '../Image/hook/index.js';
|
|
134
|
+
import '../Image/CircularProgress.js';
|
|
117
135
|
//# sourceMappingURL=ImagePreview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePreview.js","sources":[
|
|
1
|
+
{"version":3,"file":"ImagePreview.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import { Animated, View } from 'react-native';
|
|
3
3
|
import React__default, { useRef } from 'react';
|
|
4
4
|
import useGesture from './Gesture/useGesture.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as _typeof, e as _createClass, j as _inherits, f as _classCallCheck,
|
|
1
|
+
import { g as _typeof, e as _createClass, j as _inherits, f as _classCallCheck, a as _objectSpread2, k as _callSuper } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { StyleSheet, Animated, View, PanResponder } from 'react-native';
|
|
4
4
|
|
|
@@ -226,7 +226,7 @@ var ImageViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
226
226
|
_this.zoomLastDistance = null;
|
|
227
227
|
_this.horizontalWholeCounter = 0;
|
|
228
228
|
_this.verticalWholeCounter = 0;
|
|
229
|
-
_this.lastTouchStartTime = (
|
|
229
|
+
_this.lastTouchStartTime = (/* @__PURE__ */new Date()).getTime();
|
|
230
230
|
_this.isDoubleClick = false;
|
|
231
231
|
_this.isLongPress = false;
|
|
232
232
|
_this.isHorizontalWrap = false;
|
|
@@ -259,7 +259,7 @@ var ImageViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
259
259
|
}
|
|
260
260
|
}, _this.props.longPressTime);
|
|
261
261
|
if (evt.nativeEvent.changedTouches.length <= 1) {
|
|
262
|
-
if ((
|
|
262
|
+
if ((/* @__PURE__ */new Date()).getTime() - _this.lastClickTime < (_this.props.doubleClickInterval || 0)) {
|
|
263
263
|
_this.lastClickTime = 0;
|
|
264
264
|
_this.doubleClickX = evt.nativeEvent.changedTouches[0].pageX;
|
|
265
265
|
_this.doubleClickY = evt.nativeEvent.changedTouches[0].pageY;
|
|
@@ -301,7 +301,7 @@ var ImageViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
301
301
|
})]).start();
|
|
302
302
|
}
|
|
303
303
|
} else {
|
|
304
|
-
_this.lastClickTime = (
|
|
304
|
+
_this.lastClickTime = (/* @__PURE__ */new Date()).getTime();
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
},
|