@xhsreds/reds-rn-next 0.1.2 → 0.1.3
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/benchmarks/out.json +900 -820
- 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-18.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-24.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 -0
- package/coverage/.tmp/coverage-3.json +1 -1
- package/coverage/.tmp/coverage-30.json +1 -0
- package/coverage/.tmp/coverage-31.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/CkkZzOy_.js +23 -0
- package/lib/cjs/_chunks/CkkZzOy_.js.map +1 -0
- package/lib/cjs/_chunks/RPaDcSae.js +20 -0
- package/lib/cjs/_chunks/RPaDcSae.js.map +1 -0
- package/lib/cjs/_chunks/bwo-gq0b.js +66 -0
- package/lib/cjs/_chunks/bwo-gq0b.js.map +1 -0
- package/lib/cjs/components/ActionSheets/ActionSheets.js +99 -0
- package/lib/cjs/components/ActionSheets/ActionSheets.js.map +1 -0
- package/lib/cjs/components/ActionSheets/index.js +37 -0
- package/lib/cjs/components/ActionSheets/index.js.map +1 -0
- package/lib/cjs/components/ActionSheets/interface/index.js +9 -0
- package/lib/cjs/components/ActionSheets/interface/index.js.map +1 -0
- package/lib/cjs/components/ActionSheets/styles.js +59 -0
- package/lib/cjs/components/ActionSheets/styles.js.map +1 -0
- package/lib/cjs/components/AvatarGroup/AvatarGroup.js +10 -4
- package/lib/cjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/cjs/components/AvatarGroup/index.js +17 -11
- package/lib/cjs/components/AvatarGroup/index.js.map +1 -1
- package/lib/cjs/components/ImagePreview/ImagePreview.js +11 -5
- package/lib/cjs/components/ImagePreview/ImagePreview.js.map +1 -1
- package/lib/cjs/components/ImagePreview/index.js +18 -12
- package/lib/cjs/components/ImagePreview/index.js.map +1 -1
- package/lib/cjs/components/List/ListItem/ListItem.js +11 -5
- package/lib/cjs/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/cjs/components/List/index.js +16 -10
- package/lib/cjs/components/List/index.js.map +1 -1
- package/lib/cjs/components/Picker/Picker.js +6 -1
- package/lib/cjs/components/Picker/Picker.js.map +1 -1
- package/lib/cjs/components/Picker/index.js +6 -1
- package/lib/cjs/components/Picker/index.js.map +1 -1
- package/lib/cjs/components/Sheets/Sheets.js +168 -16
- package/lib/cjs/components/Sheets/Sheets.js.map +1 -1
- package/lib/cjs/components/Sheets/index.js +9 -3
- package/lib/cjs/components/Sheets/index.js.map +1 -1
- package/lib/cjs/components/Sheets/interface/index.js +6 -1
- package/lib/cjs/components/Sheets/interface/index.js.map +1 -1
- package/lib/cjs/components/Sheets/styles.js +39 -11
- package/lib/cjs/components/Sheets/styles.js.map +1 -1
- package/lib/cjs/components/Silder/Silder.js +71 -0
- package/lib/cjs/components/Silder/Silder.js.map +1 -0
- package/lib/cjs/components/Silder/index.js +18 -0
- package/lib/cjs/components/Silder/index.js.map +1 -0
- package/lib/cjs/components/Silder/interface/index.js +9 -0
- package/lib/cjs/components/Silder/interface/index.js.map +1 -0
- package/lib/cjs/components/Silder/styles.js +29 -0
- package/lib/cjs/components/Silder/styles.js.map +1 -0
- package/lib/cjs/components/TabBar/TabBar.js +10 -10
- package/lib/cjs/components/TabBar/TabBar.js.map +1 -1
- package/lib/cjs/index.js +12 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/_chunks/BJ2Kj1Vd.js +58 -0
- package/lib/esm/_chunks/BJ2Kj1Vd.js.map +1 -0
- package/lib/esm/_chunks/DHJk9lIr.js +19 -0
- package/lib/esm/_chunks/DHJk9lIr.js.map +1 -0
- package/lib/esm/_chunks/RRfNwNcs.js +17 -0
- package/lib/esm/_chunks/RRfNwNcs.js.map +1 -0
- package/lib/esm/components/ActionSheets/ActionSheets.js +95 -0
- package/lib/esm/components/ActionSheets/ActionSheets.js.map +1 -0
- package/lib/esm/components/ActionSheets/index.js +31 -0
- package/lib/esm/components/ActionSheets/index.js.map +1 -0
- package/lib/esm/components/ActionSheets/interface/index.js +2 -0
- package/lib/esm/components/ActionSheets/interface/index.js.map +1 -0
- package/lib/esm/components/ActionSheets/styles.js +55 -0
- package/lib/esm/components/ActionSheets/styles.js.map +1 -0
- package/lib/esm/components/AvatarGroup/AvatarGroup.js +10 -4
- package/lib/esm/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/esm/components/AvatarGroup/index.js +17 -11
- package/lib/esm/components/AvatarGroup/index.js.map +1 -1
- package/lib/esm/components/ImagePreview/ImagePreview.js +11 -5
- package/lib/esm/components/ImagePreview/ImagePreview.js.map +1 -1
- package/lib/esm/components/ImagePreview/index.js +18 -12
- package/lib/esm/components/ImagePreview/index.js.map +1 -1
- package/lib/esm/components/List/ListItem/ListItem.js +11 -5
- package/lib/esm/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/esm/components/List/index.js +16 -10
- package/lib/esm/components/List/index.js.map +1 -1
- package/lib/esm/components/Picker/Picker.js +6 -1
- package/lib/esm/components/Picker/Picker.js.map +1 -1
- package/lib/esm/components/Picker/index.js +6 -1
- package/lib/esm/components/Picker/index.js.map +1 -1
- package/lib/esm/components/Sheets/Sheets.js +170 -18
- package/lib/esm/components/Sheets/Sheets.js.map +1 -1
- package/lib/esm/components/Sheets/index.js +9 -3
- package/lib/esm/components/Sheets/index.js.map +1 -1
- package/lib/esm/components/Sheets/interface/index.js +1 -1
- package/lib/esm/components/Sheets/styles.js +39 -11
- package/lib/esm/components/Sheets/styles.js.map +1 -1
- package/lib/esm/components/Silder/Silder.js +67 -0
- package/lib/esm/components/Silder/Silder.js.map +1 -0
- package/lib/esm/components/Silder/index.js +12 -0
- package/lib/esm/components/Silder/index.js.map +1 -0
- package/lib/esm/components/Silder/interface/index.js +3 -0
- package/lib/esm/components/Silder/interface/index.js.map +1 -0
- package/lib/esm/components/Silder/styles.js +25 -0
- package/lib/esm/components/Silder/styles.js.map +1 -0
- package/lib/esm/components/TabBar/TabBar.js +10 -10
- package/lib/esm/components/TabBar/TabBar.js.map +1 -1
- package/lib/esm/index.js +8 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/types/components/ActionSheets/ActionSheets.d.ts +10 -0
- package/lib/types/components/ActionSheets/demo/index.d.ts +2 -0
- package/lib/types/components/ActionSheets/index.d.ts +4 -0
- package/lib/types/components/ActionSheets/interface/index.d.ts +23 -0
- package/lib/types/components/ActionSheets/styles.d.ts +51 -0
- package/lib/types/components/ActionSheets/test/index.bench.d.ts +1 -0
- package/lib/types/components/ActionSheets/test/index.test.d.ts +1 -0
- package/lib/types/components/ActionSheets/test/paper.bench.d.ts +1 -0
- package/lib/types/components/FAB/test/paper.bench.d.ts +1 -0
- package/lib/types/components/Sheets/Sheets.d.ts +17 -1
- package/lib/types/components/Sheets/interface/index.d.ts +45 -0
- package/lib/types/components/Sheets/styles.d.ts +38 -9
- package/lib/types/components/Sheets/test/index.test.d.ts +1 -1
- package/lib/types/components/Silder/Silder.d.ts +13 -0
- package/lib/types/components/Silder/demo/index.d.ts +2 -0
- package/lib/types/components/Silder/index.d.ts +4 -0
- package/lib/types/components/Silder/interface/index.d.ts +19 -0
- package/lib/types/components/Silder/styles.d.ts +20 -0
- package/lib/types/components/Silder/test/index.bench.d.ts +1 -0
- package/lib/types/components/Silder/test/index.test.d.ts +1 -0
- package/lib/types/index.d.ts +2 -0
- package/package.json +2 -3
- package/src/components/ActionSheets/ActionSheets.tsx +66 -0
- package/src/components/ActionSheets/demo/index.tsx +65 -0
- package/src/components/ActionSheets/doc/index.mdx +24 -0
- package/src/components/ActionSheets/index.ts +5 -0
- package/src/components/ActionSheets/interface/index.ts +27 -0
- package/src/components/ActionSheets/styles.ts +54 -0
- package/src/components/ActionSheets/test/index.bench.tsx +13 -0
- package/src/components/ActionSheets/test/index.test.tsx +81 -0
- package/src/components/ActionSheets/test/paper.bench.tsx +17 -0
- package/src/components/Avatar/test/__snapshots__/index.test.tsx.snap +32 -0
- package/src/components/Avatar/test/paper.bench.tsx +1 -1
- package/src/components/Button/test/__snapshots__/index.test.tsx.snap +0 -10
- package/src/components/Divider/test/__snapshots__/index.test.tsx.snap +420 -6
- package/src/components/Divider/test/index.test.tsx +43 -35
- package/src/components/FAB/test/__snapshots__/index.test.tsx.snap +0 -2
- package/src/components/FAB/test/paper.bench.tsx +12 -0
- package/src/components/Picker/test/index.test.tsx +17 -25
- package/src/components/Progress/test/__snapshots__/index.test.tsx.snap +332 -3
- package/src/components/Progress/test/index.test.tsx +29 -19
- package/src/components/PullRefresh/test/index.bench.tsx +1 -1
- package/src/components/Sheets/Sheets.tsx +293 -20
- package/src/components/Sheets/demo/index.tsx +191 -14
- package/src/components/Sheets/doc/index.mdx +16 -5
- package/src/components/Sheets/interface/index.ts +50 -0
- package/src/components/Sheets/styles.ts +38 -10
- package/src/components/Sheets/test/index.test.tsx +71 -48
- package/src/components/Sheets/test/paper.bench.tsx +1 -1
- package/src/components/Silder/Silder.tsx +49 -0
- package/src/components/Silder/demo/index.tsx +53 -0
- package/src/components/Silder/doc/index.mdx +26 -0
- package/src/components/Silder/index.ts +5 -0
- package/src/components/Silder/interface/index.ts +20 -0
- package/src/components/Silder/styles.ts +24 -0
- package/src/components/Silder/test/index.bench.tsx +13 -0
- package/src/components/Silder/test/index.test.tsx +18 -0
- package/src/components/TabBar/TabBar.tsx +17 -17
- package/src/components/Toast/test/paper.bench.tsx +9 -5
- package/src/index.ts +2 -0
- package/lib/cjs/_chunks/DIhBCUjt.js +0 -17
- package/lib/cjs/_chunks/DIhBCUjt.js.map +0 -1
- package/lib/esm/_chunks/B3_9dzWY.js +0 -14
- package/lib/esm/_chunks/B3_9dzWY.js.map +0 -1
|
@@ -2,6 +2,9 @@ import { _ as _objectSpread2 } from '../../_chunks/D-HreRcG.js';
|
|
|
2
2
|
import React__default, { memo, forwardRef, useMemo } from 'react';
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
4
|
import { A as AvatarGroupDefaultProps } from '../../_chunks/DYs5DSy1.js';
|
|
5
|
+
import '../ActionSheets/ActionSheets.js';
|
|
6
|
+
import '../Silder/Silder.js';
|
|
7
|
+
import '../../_chunks/RRfNwNcs.js';
|
|
5
8
|
import '../Sheets/Sheets.js';
|
|
6
9
|
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
7
10
|
import { lightColor } from '@xhsreds/reds-token-next';
|
|
@@ -39,10 +42,16 @@ import '../PullRefresh/PullRefresh.js';
|
|
|
39
42
|
import '../Badge/styles.js';
|
|
40
43
|
import Avatar from '../Avatar/Avatar.js';
|
|
41
44
|
import '../Tab/Tab.js';
|
|
42
|
-
import '../../_chunks/
|
|
45
|
+
import '../../_chunks/DHJk9lIr.js';
|
|
46
|
+
import '../ActionSheets/styles.js';
|
|
43
47
|
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
44
48
|
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
49
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
50
|
+
import '../Silder/styles.js';
|
|
45
51
|
import '../Sheets/styles.js';
|
|
52
|
+
import '../Button/Button.js';
|
|
53
|
+
import '../../_chunks/BbMynYIz.js';
|
|
54
|
+
import '../Icon/Icon.js';
|
|
46
55
|
import '../../_chunks/D361MMpE.js';
|
|
47
56
|
import '../ProgressIndicator/styles.js';
|
|
48
57
|
import '../../_chunks/HoMybJja.js';
|
|
@@ -56,9 +65,6 @@ import '../../_chunks/smTB3TZu.js';
|
|
|
56
65
|
import '../../_chunks/vOnIzQRe.js';
|
|
57
66
|
import '../DropDown/styles.js';
|
|
58
67
|
import '../../_chunks/5aBuaARv.js';
|
|
59
|
-
import '../Icon/Icon.js';
|
|
60
|
-
import '../Button/Button.js';
|
|
61
|
-
import '../../_chunks/BbMynYIz.js';
|
|
62
68
|
import '../../_chunks/DUTFT_ka.js';
|
|
63
69
|
import '../TabBar/styles.js';
|
|
64
70
|
import '../Badge/Badge.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.js","sources":["../../../../src/components/AvatarGroup/AvatarGroup.tsx"],"sourcesContent":["import React, { useMemo, FC, useRef, memo, forwardRef } from \"react\";\nimport { View, StyleSheet, Animated } from \"react-native\";\nimport { RedsAvatarGroup, AvatarGroupDefaultProps } from \"./interface\";\nimport { Avatar } from \"../../index\";\nimport { lightColor, typography, alwaysColor } from \"@xhsreds/reds-token-next\";\n\nconst AvatarGroup = (props: RedsAvatarGroup, ref: any) => {\n const { size = AvatarGroupDefaultProps.size, avatars = [], avatarProps, maxCount, groupStyle = {} } = props;\n\n const styles = {\n outContainer: {\n flexDirection: \"row\" as \"row\",\n },\n avatarContainerStyle: {\n marginRight:\n typeof size === \"number\" ? (size > 20 ? -4 : -2) : ((size === \"large\" || size === \"xlarge\") && -4) || -2,\n },\n };\n\n const avatarList = useMemo(() => {\n let renderAvatars = [];\n const count = maxCount ? Math.min(avatars.length, maxCount) : avatars.length;\n for (let index = 0; index < count; index++) {\n renderAvatars.push(\n <Avatar\n key={index}\n size={size}\n imageUrl={avatars[index]?.url ? avatars[index]?.url : avatars[index]}\n containerStyle={StyleSheet.flatten([styles.avatarContainerStyle, { zIndex: -index }])}\n borderNum={0.5}\n outlineColor={lightColor.White}\n type={\"live\"}\n showTag={false}\n {...avatarProps}\n />,\n );\n }\n return renderAvatars;\n }, [size, avatars, groupStyle, maxCount, avatarProps]);\n\n return (\n <View ref={ref} style={StyleSheet.flatten([styles.outContainer, groupStyle])}>\n {avatarList}\n </View>\n );\n};\n\nexport default memo(forwardRef(AvatarGroup));\n"],"names":["AvatarGroup","props","ref","_props$size","size","AvatarGroupDefaultProps","_props$avatars","avatars","avatarProps","maxCount","_props$groupStyle","groupStyle","styles","outContainer","flexDirection","avatarContainerStyle","marginRight","avatarList","useMemo","renderAvatars","count","Math","min","length","index","_avatars$index","_avatars$index2","push","React","createElement","Avatar","_objectSpread","key","imageUrl","url","containerStyle","StyleSheet","flatten","zIndex","borderNum","outlineColor","lightColor","White","type","showTag","View","style","memo","forwardRef"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarGroup.js","sources":["../../../../src/components/AvatarGroup/AvatarGroup.tsx"],"sourcesContent":["import React, { useMemo, FC, useRef, memo, forwardRef } from \"react\";\nimport { View, StyleSheet, Animated } from \"react-native\";\nimport { RedsAvatarGroup, AvatarGroupDefaultProps } from \"./interface\";\nimport { Avatar } from \"../../index\";\nimport { lightColor, typography, alwaysColor } from \"@xhsreds/reds-token-next\";\n\nconst AvatarGroup = (props: RedsAvatarGroup, ref: any) => {\n const { size = AvatarGroupDefaultProps.size, avatars = [], avatarProps, maxCount, groupStyle = {} } = props;\n\n const styles = {\n outContainer: {\n flexDirection: \"row\" as \"row\",\n },\n avatarContainerStyle: {\n marginRight:\n typeof size === \"number\" ? (size > 20 ? -4 : -2) : ((size === \"large\" || size === \"xlarge\") && -4) || -2,\n },\n };\n\n const avatarList = useMemo(() => {\n let renderAvatars = [];\n const count = maxCount ? Math.min(avatars.length, maxCount) : avatars.length;\n for (let index = 0; index < count; index++) {\n renderAvatars.push(\n <Avatar\n key={index}\n size={size}\n imageUrl={avatars[index]?.url ? avatars[index]?.url : avatars[index]}\n containerStyle={StyleSheet.flatten([styles.avatarContainerStyle, { zIndex: -index }])}\n borderNum={0.5}\n outlineColor={lightColor.White}\n type={\"live\"}\n showTag={false}\n {...avatarProps}\n />,\n );\n }\n return renderAvatars;\n }, [size, avatars, groupStyle, maxCount, avatarProps]);\n\n return (\n <View ref={ref} style={StyleSheet.flatten([styles.outContainer, groupStyle])}>\n {avatarList}\n </View>\n );\n};\n\nexport default memo(forwardRef(AvatarGroup));\n"],"names":["AvatarGroup","props","ref","_props$size","size","AvatarGroupDefaultProps","_props$avatars","avatars","avatarProps","maxCount","_props$groupStyle","groupStyle","styles","outContainer","flexDirection","avatarContainerStyle","marginRight","avatarList","useMemo","renderAvatars","count","Math","min","length","index","_avatars$index","_avatars$index2","push","React","createElement","Avatar","_objectSpread","key","imageUrl","url","containerStyle","StyleSheet","flatten","zIndex","borderNum","outlineColor","lightColor","White","type","showTag","View","style","memo","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,WAAA,GAAc,SAAdA,WAAAA,CAAeC,KAAA,EAAwBC,GAAa,EAAA;AACxD,EAAA,IAAAC,WAAA,GAAsGF,KAAA,CAA9FG,IAAA;AAAAA,IAAAA,IAAA,GAAAD,WAAA,KAAA,KAAA,CAAA,GAAOE,uBAAwB,CAAAD,IAAA,GAAAD,WAAA;IAAAG,cAAA,GAA+DL,KAAA,CAAzDM,OAAU;AAAVA,IA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hBA,KAAAA,CAAAA,IAAAA,cAAA,CAAgBS,GAAA,GAAA,CAAAR,eAAA,GAAMnB,QAAQiB,KAAK,CAAA,cAAAE,eAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,eAAA,CAAgBQ,GAAM,GAAA3B,OAAA,CAAQiB,KAAK,CAAA;QACnEW,cAAA,EAAgBC,UAAW,CAAAC,OAAA,CAAQ,CAACzB,MAAA,CAAOG,oBAAsB,EAAA;AAAEuB,UAAAA,MAAQ,EAAA,CAACd,KAAAA;AAAM,SAAC,CAAC,CAAA;AACpFe,QAAAA,SAAW,EAAA,GAAA;QACXC,cAAcC,UAAW,CAAAC,KAAA;AACzBC,QAAAA,IAAM,EAAA,MAAA;AACNC,QAAAA,OAAS,EAAA,KAAA;OACLpC,EAAAA,WAAA,CACN,CACF,CAAA,CAAA;AACF,KAAA;AACO,IAAA,OAAAW,aAAA,CAAA;AACT,KAAG,CAACf,IAAA,EAAMG,SAASI,UAAY,EAAAF,QAAA,EAAUD,WAAW,CAAC,CAAA,CAAA;AAErD,EAAA,sBACGoB,cAAA,CAAAC,aAAA,CAAAgB,IAAA,EAAA;AAAK3C,IAAAA,GAAU,EAAVA,GAAU;IAAA4C,KAAA,EAAOV,UAAW,CAAAC,OAAA,CAAQ,CAACzB,MAAA,CAAOC,YAAc,EAAAF,UAAU,CAAC,CAAA;GAAA,EACxEM,UACH,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,oBAAA,aAAe8B,IAAA,eAAKC,UAAW,CAAAhD,WAAW,CAAC,CAAA;;;;"}
|
|
@@ -3,8 +3,15 @@ export { i as AvatarGroupType } from '../../_chunks/DYs5DSy1.js';
|
|
|
3
3
|
import '../../_chunks/D-HreRcG.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-native';
|
|
6
|
+
import '../ActionSheets/ActionSheets.js';
|
|
7
|
+
import '../../_chunks/DHJk9lIr.js';
|
|
8
|
+
import '../ActionSheets/styles.js';
|
|
9
|
+
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
10
|
+
import '@xhsreds/reds-token-next';
|
|
11
|
+
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
12
|
+
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
6
13
|
import '../Sheets/Sheets.js';
|
|
7
|
-
import '../../_chunks/
|
|
14
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
8
15
|
import '../Portal/core/Portal.js';
|
|
9
16
|
import '../Portal/core/hooks/usePortal.js';
|
|
10
17
|
import '../../_chunks/B-g-eq94.js';
|
|
@@ -12,23 +19,25 @@ import '../Portal/core/PortalContext.js';
|
|
|
12
19
|
import '../Portal/core/PortalHost.js';
|
|
13
20
|
import '../Portal/core/hooks/usePortalState.js';
|
|
14
21
|
import '../Portal/core/PortalProvider.js';
|
|
15
|
-
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
16
|
-
import '@xhsreds/reds-token-next';
|
|
17
|
-
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
18
|
-
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
19
22
|
import '../Sheets/styles.js';
|
|
23
|
+
import '../Button/Button.js';
|
|
24
|
+
import '../../_chunks/BbMynYIz.js';
|
|
25
|
+
import '../Button/styleMap.js';
|
|
26
|
+
import '../Icon/Icon.js';
|
|
27
|
+
import 'react-native-svg';
|
|
28
|
+
import '@xhs/reder-icon-svg';
|
|
29
|
+
import '../Silder/Silder.js';
|
|
30
|
+
import '../../_chunks/RRfNwNcs.js';
|
|
31
|
+
import '../Silder/styles.js';
|
|
20
32
|
import '../ProgressIndicator/ProgressIndicator.js';
|
|
21
33
|
import '../../_chunks/D361MMpE.js';
|
|
22
34
|
import '../ProgressIndicator/styles.js';
|
|
23
|
-
import 'react-native-svg';
|
|
24
35
|
import '../PickerView/styles.js';
|
|
25
36
|
import '../Picker/Picker.js';
|
|
26
37
|
import '../../_chunks/HoMybJja.js';
|
|
27
38
|
import '../PickerView/PickerView.js';
|
|
28
39
|
import '../PickerView/Wheel.js';
|
|
29
40
|
import '../FAB/styles.js';
|
|
30
|
-
import '../Button/styleMap.js';
|
|
31
|
-
import '@xhs/reder-icon-svg';
|
|
32
41
|
import '../Toast/styles.js';
|
|
33
42
|
import '../../_chunks/smTB3TZu.js';
|
|
34
43
|
import '../DropDown/DropDown.js';
|
|
@@ -37,12 +46,9 @@ import '../DropDown/styles.js';
|
|
|
37
46
|
import '../Tab/Tab.js';
|
|
38
47
|
import '../../_chunks/5aBuaARv.js';
|
|
39
48
|
import '../Tab/styles.js';
|
|
40
|
-
import '../Icon/Icon.js';
|
|
41
49
|
import '../Badge/Badge.js';
|
|
42
50
|
import '../../_chunks/t6qlCOwe.js';
|
|
43
51
|
import '../Badge/styles.js';
|
|
44
|
-
import '../Button/Button.js';
|
|
45
|
-
import '../../_chunks/BbMynYIz.js';
|
|
46
52
|
import '../DropDown/DropDownItem.js';
|
|
47
53
|
import '../Progress/styles.js';
|
|
48
54
|
import '../TabBar/TabBar.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,6 +2,9 @@ import React__default from 'react';
|
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { I as ImagePreviewDefaultProps } from '../../_chunks/ByMDi00e.js';
|
|
4
4
|
import ImageViewer from './ImageViewer.js';
|
|
5
|
+
import '../ActionSheets/ActionSheets.js';
|
|
6
|
+
import '../Silder/Silder.js';
|
|
7
|
+
import '../../_chunks/RRfNwNcs.js';
|
|
5
8
|
import '../Sheets/Sheets.js';
|
|
6
9
|
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
7
10
|
import '@xhsreds/reds-token-next';
|
|
@@ -41,14 +44,20 @@ import './Gesture/useGesture.js';
|
|
|
41
44
|
import './Gesture/Pinch.js';
|
|
42
45
|
import './Gesture/Pan.js';
|
|
43
46
|
import './Gesture/Tap.js';
|
|
44
|
-
import '../../_chunks/
|
|
47
|
+
import '../../_chunks/DHJk9lIr.js';
|
|
48
|
+
import '../ActionSheets/styles.js';
|
|
45
49
|
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
46
50
|
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
47
|
-
import '
|
|
51
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
48
52
|
import '../Portal/core/hooks/usePortal.js';
|
|
49
53
|
import '../../_chunks/B-g-eq94.js';
|
|
50
54
|
import '../Portal/core/PortalContext.js';
|
|
51
55
|
import '../Portal/core/hooks/usePortalState.js';
|
|
56
|
+
import '../Sheets/styles.js';
|
|
57
|
+
import '../Button/Button.js';
|
|
58
|
+
import '../../_chunks/BbMynYIz.js';
|
|
59
|
+
import '../Icon/Icon.js';
|
|
60
|
+
import '../Silder/styles.js';
|
|
52
61
|
import '../../_chunks/D361MMpE.js';
|
|
53
62
|
import '../ProgressIndicator/styles.js';
|
|
54
63
|
import '../../_chunks/HoMybJja.js';
|
|
@@ -58,9 +67,6 @@ import '../../_chunks/smTB3TZu.js';
|
|
|
58
67
|
import '../../_chunks/vOnIzQRe.js';
|
|
59
68
|
import '../DropDown/styles.js';
|
|
60
69
|
import '../../_chunks/5aBuaARv.js';
|
|
61
|
-
import '../Icon/Icon.js';
|
|
62
|
-
import '../Button/Button.js';
|
|
63
|
-
import '../../_chunks/BbMynYIz.js';
|
|
64
70
|
import '../Tab/styles.js';
|
|
65
71
|
import '../Badge/Badge.js';
|
|
66
72
|
import '../../_chunks/t6qlCOwe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePreview.js","sources":["../../../../src/components/ImagePreview/ImagePreview.tsx"],"sourcesContent":["import React, { useState, useRef, useEffect, useMemo, useCallback } from \"react\";\nimport { View, Text, TouchableWithoutFeedback, Animated, GestureResponderEvent, PanResponder } from \"react-native\";\nimport { RedsImagePreview, ImagePreviewDefaultProps } from \"./interface/index\";\nimport styles from \"./styles\";\nimport ImageContainer from \"./ImageContainer\";\nimport ImageViewer from \"./ImageViewer\";\n// import ImageViewer2 from \"./ImageViewer2\";\nimport { Image } from \"../../\";\n// import { GestureHandlerRootView } from \"react-native-gesture-handler\";\n\nconst ImagePreview = ({ removePortal }: any) => {\n return (\n <View\n style={{\n position: \"absolute\",\n backgroundColor: \"#00000033\",\n width: \"100%\",\n height: \"100%\",\n }}\n >\n <ImageViewer onClose={removePortal}>\n <Image\n width=\"100%\"\n height=\"100%\"\n resizeMode=\"contain\"\n src=\"https://picasso-static.xiaohongshu.com/fe-platform/167754d83b112dc155edd2ae5dc7f9ced481bba3.webp\"\n />\n </ImageViewer>\n </View>\n );\n};\n\nImagePreview.defaultProps = ImagePreviewDefaultProps;\n\nexport default ImagePreview;\n"],"names":["ImagePreview","_ref","removePortal","React","createElement","View","style","position","backgroundColor","width","height","ImageViewer","onClose","Image","resizeMode","src","defaultProps","ImagePreviewDefaultProps"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImagePreview.js","sources":["../../../../src/components/ImagePreview/ImagePreview.tsx"],"sourcesContent":["import React, { useState, useRef, useEffect, useMemo, useCallback } from \"react\";\nimport { View, Text, TouchableWithoutFeedback, Animated, GestureResponderEvent, PanResponder } from \"react-native\";\nimport { RedsImagePreview, ImagePreviewDefaultProps } from \"./interface/index\";\nimport styles from \"./styles\";\nimport ImageContainer from \"./ImageContainer\";\nimport ImageViewer from \"./ImageViewer\";\n// import ImageViewer2 from \"./ImageViewer2\";\nimport { Image } from \"../../\";\n// import { GestureHandlerRootView } from \"react-native-gesture-handler\";\n\nconst ImagePreview = ({ removePortal }: any) => {\n return (\n <View\n style={{\n position: \"absolute\",\n backgroundColor: \"#00000033\",\n width: \"100%\",\n height: \"100%\",\n }}\n >\n <ImageViewer onClose={removePortal}>\n <Image\n width=\"100%\"\n height=\"100%\"\n resizeMode=\"contain\"\n src=\"https://picasso-static.xiaohongshu.com/fe-platform/167754d83b112dc155edd2ae5dc7f9ced481bba3.webp\"\n />\n </ImageViewer>\n </View>\n );\n};\n\nImagePreview.defaultProps = ImagePreviewDefaultProps;\n\nexport default ImagePreview;\n"],"names":["ImagePreview","_ref","removePortal","React","createElement","View","style","position","backgroundColor","width","height","ImageViewer","onClose","Image","resizeMode","src","defaultProps","ImagePreviewDefaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,YAAe,GAAA,SAAfA,YAAeA,CAAAC,IAAA,EAA2B;AAAA,EAAA,IAAxBC,YAAA,GAAAD,IAAA,CAAAC,YAAA,CAAA;AAEpB,EAAA,sBAAAC,cAAA,CAAAC,aAAA,CAACC,IAAA,EAAA;AACCC,IAAAA,KAAO,EAAA;AACLC,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,eAAiB,EAAA,WAAA;AACjBC,MAAAA,KAAO,EAAA,MAAA;AACPC,MAAAA,MAAQ,EAAA,MAAA;AACV,KAAA;AAAA,GAAA,iBAEAP,cAAA,CAAAC,aAAA,CAACO,WAAY,EAAA;AAAAC,IAAAA,OAAA,EAASV,YAAAA;AACpB,GAAA,iBAAAC,cAAA,CAAAC,aAAA,CAACS,KAAA,EAAA;AACCJ,IAAAA,KAAM,EAAA,MAAA;AACNC,IAAAA,MAAO,EAAA,MAAA;AACPI,IAAAA,UAAW,EAAA,SAAA;AACXC,IAAAA,GAAI,EAAA,kGAAA;GACN,CACF,CACF,CAAA,CAAA;AAEJ,EAAA;AAEAf,YAAA,CAAagB,YAAe,GAAAC,wBAAA;;;;"}
|
|
@@ -3,8 +3,16 @@ export { default as ImageViewer } from './ImageViewer.js';
|
|
|
3
3
|
export { i as ImagePreviewType } from '../../_chunks/ByMDi00e.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-native';
|
|
6
|
+
import '../ActionSheets/ActionSheets.js';
|
|
7
|
+
import '../../_chunks/DHJk9lIr.js';
|
|
8
|
+
import '../ActionSheets/styles.js';
|
|
9
|
+
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
10
|
+
import '../../_chunks/D-HreRcG.js';
|
|
11
|
+
import '@xhsreds/reds-token-next';
|
|
12
|
+
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
13
|
+
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
6
14
|
import '../Sheets/Sheets.js';
|
|
7
|
-
import '../../_chunks/
|
|
15
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
8
16
|
import '../Portal/core/Portal.js';
|
|
9
17
|
import '../Portal/core/hooks/usePortal.js';
|
|
10
18
|
import '../../_chunks/B-g-eq94.js';
|
|
@@ -12,24 +20,25 @@ import '../Portal/core/PortalContext.js';
|
|
|
12
20
|
import '../Portal/core/PortalHost.js';
|
|
13
21
|
import '../Portal/core/hooks/usePortalState.js';
|
|
14
22
|
import '../Portal/core/PortalProvider.js';
|
|
15
|
-
import '../../_chunks/D-HreRcG.js';
|
|
16
|
-
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
17
|
-
import '@xhsreds/reds-token-next';
|
|
18
|
-
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
19
|
-
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
20
23
|
import '../Sheets/styles.js';
|
|
24
|
+
import '../Button/Button.js';
|
|
25
|
+
import '../../_chunks/BbMynYIz.js';
|
|
26
|
+
import '../Button/styleMap.js';
|
|
27
|
+
import '../Icon/Icon.js';
|
|
28
|
+
import 'react-native-svg';
|
|
29
|
+
import '@xhs/reder-icon-svg';
|
|
30
|
+
import '../Silder/Silder.js';
|
|
31
|
+
import '../../_chunks/RRfNwNcs.js';
|
|
32
|
+
import '../Silder/styles.js';
|
|
21
33
|
import '../ProgressIndicator/ProgressIndicator.js';
|
|
22
34
|
import '../../_chunks/D361MMpE.js';
|
|
23
35
|
import '../ProgressIndicator/styles.js';
|
|
24
|
-
import 'react-native-svg';
|
|
25
36
|
import '../PickerView/styles.js';
|
|
26
37
|
import '../Picker/Picker.js';
|
|
27
38
|
import '../../_chunks/HoMybJja.js';
|
|
28
39
|
import '../PickerView/PickerView.js';
|
|
29
40
|
import '../PickerView/Wheel.js';
|
|
30
41
|
import '../FAB/styles.js';
|
|
31
|
-
import '../Button/styleMap.js';
|
|
32
|
-
import '@xhs/reder-icon-svg';
|
|
33
42
|
import '../Toast/styles.js';
|
|
34
43
|
import '../../_chunks/smTB3TZu.js';
|
|
35
44
|
import '../DropDown/DropDown.js';
|
|
@@ -38,12 +47,9 @@ import '../DropDown/styles.js';
|
|
|
38
47
|
import '../Tab/Tab.js';
|
|
39
48
|
import '../../_chunks/5aBuaARv.js';
|
|
40
49
|
import '../Tab/styles.js';
|
|
41
|
-
import '../Icon/Icon.js';
|
|
42
50
|
import '../Badge/Badge.js';
|
|
43
51
|
import '../../_chunks/t6qlCOwe.js';
|
|
44
52
|
import '../Badge/styles.js';
|
|
45
|
-
import '../Button/Button.js';
|
|
46
|
-
import '../../_chunks/BbMynYIz.js';
|
|
47
53
|
import '../DropDown/DropDownItem.js';
|
|
48
54
|
import '../Progress/styles.js';
|
|
49
55
|
import '../TabBar/TabBar.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,6 +3,9 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
3
3
|
import { View, Text } from 'react-native';
|
|
4
4
|
import { useListContext } from './ListContext.js';
|
|
5
5
|
import styles from '../styles.js';
|
|
6
|
+
import '../../ActionSheets/ActionSheets.js';
|
|
7
|
+
import '../../Silder/Silder.js';
|
|
8
|
+
import '../../../_chunks/RRfNwNcs.js';
|
|
6
9
|
import '../../Sheets/Sheets.js';
|
|
7
10
|
import '../../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
8
11
|
import '@xhsreds/reds-token-next';
|
|
@@ -38,17 +41,22 @@ import '../../Empty/Empty.js';
|
|
|
38
41
|
import '../../PullRefresh/PullRefresh.js';
|
|
39
42
|
import '../../Badge/styles.js';
|
|
40
43
|
import '../../Tab/Tab.js';
|
|
41
|
-
import '../../../_chunks/
|
|
44
|
+
import '../../../_chunks/DHJk9lIr.js';
|
|
45
|
+
import '../../ActionSheets/styles.js';
|
|
42
46
|
import '../../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
43
47
|
import '../../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
44
|
-
import '
|
|
48
|
+
import '../../../_chunks/BJ2Kj1Vd.js';
|
|
45
49
|
import '../../Portal/core/hooks/usePortal.js';
|
|
46
50
|
import '../../../_chunks/B-g-eq94.js';
|
|
47
51
|
import '../../Portal/core/PortalContext.js';
|
|
48
52
|
import '../../Portal/core/hooks/usePortalState.js';
|
|
53
|
+
import '../../Sheets/styles.js';
|
|
54
|
+
import '../../Button/Button.js';
|
|
55
|
+
import '../../../_chunks/BbMynYIz.js';
|
|
56
|
+
import 'react-native-svg';
|
|
57
|
+
import '../../Silder/styles.js';
|
|
49
58
|
import '../../../_chunks/D361MMpE.js';
|
|
50
59
|
import '../../ProgressIndicator/styles.js';
|
|
51
|
-
import 'react-native-svg';
|
|
52
60
|
import '../../../_chunks/HoMybJja.js';
|
|
53
61
|
import '../../PickerView/PickerView.js';
|
|
54
62
|
import '../../PickerView/Wheel.js';
|
|
@@ -56,8 +64,6 @@ import '../../../_chunks/smTB3TZu.js';
|
|
|
56
64
|
import '../../../_chunks/vOnIzQRe.js';
|
|
57
65
|
import '../../DropDown/styles.js';
|
|
58
66
|
import '../../../_chunks/5aBuaARv.js';
|
|
59
|
-
import '../../Button/Button.js';
|
|
60
|
-
import '../../../_chunks/BbMynYIz.js';
|
|
61
67
|
import '../../Tab/styles.js';
|
|
62
68
|
import '../../Badge/Badge.js';
|
|
63
69
|
import '../../../_chunks/t6qlCOwe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sources":["../../../../../src/components/List/ListItem/ListItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState, ReactNode } from \"react\";\nimport { View, Text, ViewStyle, Image } from \"react-native\";\nimport { useListContext } from \"./ListContext\";\nimport styles from \"../styles\";\nimport { Icon } from \"../../../index\";\nimport { ArrowRight } from \"@xhs/reder-icon-svg\";\n\nexport interface RedsListItem {\n title: string;\n subtitle?: string;\n actionText?: string;\n size?: \"regular\" | \"expand\";\n arrow?: boolean;\n prefix?: ReactNode;\n action?: ReactNode;\n}\n\nconst ListItem: React.FC<RedsListItem> = ({\n title,\n subtitle,\n actionText,\n size = \"regular\",\n arrow = false,\n prefix,\n action,\n}) => {\n const { registerChild, unregisterChild } = useListContext();\n const [lineItem, setLineItem] = useState(false);\n\n const childInfo = {\n setLine: (value: boolean) => setLineItem(value),\n };\n\n useEffect(() => {\n registerChild(childInfo);\n return () => unregisterChild(childInfo);\n }, []);\n\n const listItemSizeToHeight = {\n regular: 48,\n expand: 60,\n };\n\n return (\n <View style={[styles.listItem, { height: listItemSizeToHeight[size] }, size === \"expand\" && styles.expand]}>\n {prefix && <View style={styles.prefix}>{prefix}</View>}\n <View style={styles.contentBox}>\n <View style={styles.contentContainer}>\n <View style={styles.textContainer}>\n <Text style={styles.title}>{title}</Text>\n {size === \"expand\" && subtitle && <Text style={styles.subtitle}>{subtitle}</Text>}\n </View>\n <View style={styles.tailContainer}>\n {action ? (\n <View style={styles.tail}>{action}</View>\n ) : (\n <View style={styles.tail}>\n <Text style={styles.tailText}>{actionText}</Text>\n {arrow && <Icon size={18} fill={\"rgba(0, 0, 0, 0.27)\"} icon={ArrowRight} />}\n </View>\n )}\n </View>\n </View>\n {lineItem && <View style={styles.hr}></View>}\n </View>\n </View>\n );\n};\n\nexport default ListItem;\n"],"names":["ListItem","title","_ref","subtitle","actionText","_ref$size","size","_ref$arrow","arrow","prefix","action","_useListContext","useListContext","registerChild","unregisterChild","_useState","useState","_useState2","_slicedToArray","lineItem","setLineItem","childInfo","setLine","value","useEffect","listItemSizeToHeight","regular","expand","React","createElement","View","style","styles","listItem","height","contentBox","contentContainer","textContainer","Text","tailContainer","tail","tailText","Icon","fill","icon","ArrowRight","hr"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.js","sources":["../../../../../src/components/List/ListItem/ListItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState, ReactNode } from \"react\";\nimport { View, Text, ViewStyle, Image } from \"react-native\";\nimport { useListContext } from \"./ListContext\";\nimport styles from \"../styles\";\nimport { Icon } from \"../../../index\";\nimport { ArrowRight } from \"@xhs/reder-icon-svg\";\n\nexport interface RedsListItem {\n title: string;\n subtitle?: string;\n actionText?: string;\n size?: \"regular\" | \"expand\";\n arrow?: boolean;\n prefix?: ReactNode;\n action?: ReactNode;\n}\n\nconst ListItem: React.FC<RedsListItem> = ({\n title,\n subtitle,\n actionText,\n size = \"regular\",\n arrow = false,\n prefix,\n action,\n}) => {\n const { registerChild, unregisterChild } = useListContext();\n const [lineItem, setLineItem] = useState(false);\n\n const childInfo = {\n setLine: (value: boolean) => setLineItem(value),\n };\n\n useEffect(() => {\n registerChild(childInfo);\n return () => unregisterChild(childInfo);\n }, []);\n\n const listItemSizeToHeight = {\n regular: 48,\n expand: 60,\n };\n\n return (\n <View style={[styles.listItem, { height: listItemSizeToHeight[size] }, size === \"expand\" && styles.expand]}>\n {prefix && <View style={styles.prefix}>{prefix}</View>}\n <View style={styles.contentBox}>\n <View style={styles.contentContainer}>\n <View style={styles.textContainer}>\n <Text style={styles.title}>{title}</Text>\n {size === \"expand\" && subtitle && <Text style={styles.subtitle}>{subtitle}</Text>}\n </View>\n <View style={styles.tailContainer}>\n {action ? (\n <View style={styles.tail}>{action}</View>\n ) : (\n <View style={styles.tail}>\n <Text style={styles.tailText}>{actionText}</Text>\n {arrow && <Icon size={18} fill={\"rgba(0, 0, 0, 0.27)\"} icon={ArrowRight} />}\n </View>\n )}\n </View>\n </View>\n {lineItem && <View style={styles.hr}></View>}\n </View>\n </View>\n );\n};\n\nexport default ListItem;\n"],"names":["ListItem","title","_ref","subtitle","actionText","_ref$size","size","_ref$arrow","arrow","prefix","action","_useListContext","useListContext","registerChild","unregisterChild","_useState","useState","_useState2","_slicedToArray","lineItem","setLineItem","childInfo","setLine","value","useEffect","listItemSizeToHeight","regular","expand","React","createElement","View","style","styles","listItem","height","contentBox","contentContainer","textContainer","Text","tailContainer","tail","tailText","Icon","fill","icon","ArrowRight","hr"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAMA,WAAmC,SAAnCA,eAQA;AAAA,EAAA,IAPJC,KAAA,GAAAC,IAAA,CAAAD,KAAA;IACAE,QAAA,GAAAD,IAAA,CAAAC,QAAA;IACAC,UAAA,GAAAF,IAAA,CAAAE,UAAA;IAAAC,SAAA,GAAAH,IAAA,CACAI,IAAO;AAAPA,IAAAA,IAAO,GAAAD,SAAA,KAAA,KAAA,CAAA,GAAA,SAAA,GAAAA,SAAA;IAAAE,UAAA,GAAAL,IAAA,CACPM,KAAQ;AAARA,IAAAA,KAAQ,GAAAD,UAAA,KAAA,KAAA,CAAA,GAA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import './ListItem/ListContext.js';
|
|
|
7
7
|
import './styles.js';
|
|
8
8
|
import '@xhsreds/reds-token-next';
|
|
9
9
|
import '../../_chunks/D-HreRcG.js';
|
|
10
|
+
import '../ActionSheets/ActionSheets.js';
|
|
11
|
+
import '../../_chunks/DHJk9lIr.js';
|
|
12
|
+
import '../ActionSheets/styles.js';
|
|
13
|
+
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
14
|
+
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
15
|
+
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
10
16
|
import '../Sheets/Sheets.js';
|
|
11
|
-
import '../../_chunks/
|
|
17
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
12
18
|
import '../Portal/core/Portal.js';
|
|
13
19
|
import '../Portal/core/hooks/usePortal.js';
|
|
14
20
|
import '../../_chunks/B-g-eq94.js';
|
|
@@ -16,23 +22,25 @@ import '../Portal/core/PortalContext.js';
|
|
|
16
22
|
import '../Portal/core/PortalHost.js';
|
|
17
23
|
import '../Portal/core/hooks/usePortalState.js';
|
|
18
24
|
import '../Portal/core/PortalProvider.js';
|
|
19
|
-
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
20
|
-
import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
21
|
-
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
22
25
|
import '../Sheets/styles.js';
|
|
26
|
+
import '../Button/Button.js';
|
|
27
|
+
import '../../_chunks/BbMynYIz.js';
|
|
28
|
+
import '../Button/styleMap.js';
|
|
29
|
+
import '../Icon/Icon.js';
|
|
30
|
+
import 'react-native-svg';
|
|
31
|
+
import '@xhs/reder-icon-svg';
|
|
32
|
+
import '../Silder/Silder.js';
|
|
33
|
+
import '../../_chunks/RRfNwNcs.js';
|
|
34
|
+
import '../Silder/styles.js';
|
|
23
35
|
import '../ProgressIndicator/ProgressIndicator.js';
|
|
24
36
|
import '../../_chunks/D361MMpE.js';
|
|
25
37
|
import '../ProgressIndicator/styles.js';
|
|
26
|
-
import 'react-native-svg';
|
|
27
38
|
import '../PickerView/styles.js';
|
|
28
39
|
import '../Picker/Picker.js';
|
|
29
40
|
import '../../_chunks/HoMybJja.js';
|
|
30
41
|
import '../PickerView/PickerView.js';
|
|
31
42
|
import '../PickerView/Wheel.js';
|
|
32
43
|
import '../FAB/styles.js';
|
|
33
|
-
import '../Button/styleMap.js';
|
|
34
|
-
import '@xhs/reder-icon-svg';
|
|
35
|
-
import '../Icon/Icon.js';
|
|
36
44
|
import '../Toast/styles.js';
|
|
37
45
|
import '../../_chunks/smTB3TZu.js';
|
|
38
46
|
import '../DropDown/DropDown.js';
|
|
@@ -44,8 +52,6 @@ import '../Tab/styles.js';
|
|
|
44
52
|
import '../Badge/Badge.js';
|
|
45
53
|
import '../../_chunks/t6qlCOwe.js';
|
|
46
54
|
import '../Badge/styles.js';
|
|
47
|
-
import '../Button/Button.js';
|
|
48
|
-
import '../../_chunks/BbMynYIz.js';
|
|
49
55
|
import '../DropDown/DropDownItem.js';
|
|
50
56
|
import '../Progress/styles.js';
|
|
51
57
|
import '../TabBar/TabBar.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,7 @@ import '../ProgressIndicator/styles.js';
|
|
|
14
14
|
import 'react-native-svg';
|
|
15
15
|
import '../PickerView/styles.js';
|
|
16
16
|
import '../PickerView/Wheel.js';
|
|
17
|
-
import '../../_chunks/
|
|
17
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
18
18
|
import '../Portal/core/Portal.js';
|
|
19
19
|
import '../Portal/core/hooks/usePortal.js';
|
|
20
20
|
import '../../_chunks/B-g-eq94.js';
|
|
@@ -23,6 +23,11 @@ import '../Portal/core/PortalHost.js';
|
|
|
23
23
|
import '../Portal/core/hooks/usePortalState.js';
|
|
24
24
|
import '../Portal/core/PortalProvider.js';
|
|
25
25
|
import '../Sheets/styles.js';
|
|
26
|
+
import '../Button/Button.js';
|
|
27
|
+
import '../../_chunks/BbMynYIz.js';
|
|
28
|
+
import '../Button/styleMap.js';
|
|
29
|
+
import '../Icon/Icon.js';
|
|
30
|
+
import '@xhs/reder-icon-svg';
|
|
26
31
|
|
|
27
32
|
var Picker = function Picker(props) {
|
|
28
33
|
var visible = props.visible,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Picker.js","sources":["../../../../src/components/Picker/Picker.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { RedsPicker, PickerDefaultProps } from \"./interface/index\";\nimport PickerView from \"../PickerView\";\nimport Sheets from \"../Sheets\";\n\nconst Picker = (props: RedsPicker) => {\n const { visible, onCancel, onChange, onConfirm } = props;\n const [value, setValue] = useState<string[]>([]);\n\n const handleConfirm = () => {\n onConfirm?.(value);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const handleChange = (val: string[]) => {\n setValue(val);\n onChange?.(val);\n };\n return (\n <Sheets visible={visible} onConfirm={handleConfirm} onCancel={handleCancel}>\n <PickerView columns={props.columns} value={props.value} onChange={handleChange} />\n </Sheets>\n );\n};\n\nPicker.defaultProps = PickerDefaultProps;\n\nexport default Picker;\n"],"names":["Picker","props","visible","onCancel","onChange","onConfirm","_useState","useState","_useState2","_slicedToArray","value","setValue","handleConfirm","handleCancel","handleChange","val","Sheets","React","createElement","PickerView","columns","defaultProps","PickerDefaultProps"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Picker.js","sources":["../../../../src/components/Picker/Picker.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { RedsPicker, PickerDefaultProps } from \"./interface/index\";\nimport PickerView from \"../PickerView\";\nimport Sheets from \"../Sheets\";\n\nconst Picker = (props: RedsPicker) => {\n const { visible, onCancel, onChange, onConfirm } = props;\n const [value, setValue] = useState<string[]>([]);\n\n const handleConfirm = () => {\n onConfirm?.(value);\n };\n\n const handleCancel = () => {\n onCancel?.();\n };\n\n const handleChange = (val: string[]) => {\n setValue(val);\n onChange?.(val);\n };\n return (\n <Sheets visible={visible} onConfirm={handleConfirm} onCancel={handleCancel}>\n <PickerView columns={props.columns} value={props.value} onChange={handleChange} />\n </Sheets>\n );\n};\n\nPicker.defaultProps = PickerDefaultProps;\n\nexport default Picker;\n"],"names":["Picker","props","visible","onCancel","onChange","onConfirm","_useState","useState","_useState2","_slicedToArray","value","setValue","handleConfirm","handleCancel","handleChange","val","Sheets","React","createElement","PickerView","columns","defaultProps","PickerDefaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,MAAA,GAAS,SAATA,MAAAA,CAAUC,KAAsB,EAAA;AACpC,EAAA,IAAQC,OAAA,GAA2CD,KAAA,CAA3CC,OAAA;IAASC,QAAU,GAAwBF,KAAA,CAAlCE,QAAU;IAAAC,QAAA,GAAwBH,KAAA,CAAxBG,QAAA;IAAUC,YAAcJ,KAAA,CAAdI;AACrC,EAAA,IAAAC,SAAA,GAA0BC,QAAA,CAAmB,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAxCI,IAAAA,KAAO,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAAG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AAEtB,EAAA,IAAMI,gBAAgB,SAAhBA,gBAAsB;AAC1BP,IAAAA,SAAA,aAAAA,SAAA,KAAA,KAAA,CAAA,IAAAA,SAAA,CAAYK,KAAK,CAAA,CAAA;GACnB,CAAA;AAEA,EAAA,IAAMG,eAAe,SAAfA,eAAqB;AACdV,IAAAA,QAAA,KAAAA,IAAAA,IAAAA,QAAA,KAAAA,KAAAA,CAAAA,IAAAA,QAAA,EAAA,CAAA;GACb,CAAA;AAEM,EAAA,IAAAW,YAAA,GAAe,SAAfA,YAAAA,CAAgBC,GAAkB,EAAA;IACtCJ,QAAA,CAASI,GAAG,CAAA,CAAA;AACZX,IAAAA,QAAA,aAAAA,QAAA,KAAA,KAAA,CAAA,IAAAA,QAAA,CAAWW,GAAG,CAAA,CAAA;GAChB,CAAA;AACA,EAAA,mDACGC,MAAO,EAAA;AAAAd,IAAAA,OAAA,EAAAA,OAAA;AAAkBG,IAAAA,SAAW,EAAAO,aAAA;AAAeT,IAAAA,UAAUU,YAAAA;AAC5D,GAAA,iBAAAI,cAAA,CAAAC,aAAA,CAACC,UAAW,EAAA;IAAAC,OAAA,EAASnB,MAAMmB,OAAS;IAAAV,KAAA,EAAOT,MAAMS,KAAO;AAAAN,IAAAA,QAAA,EAAUU,YAAAA;GAAc,CAClF,CAAA,CAAA;AAEJ,EAAA;AAEAd,MAAA,CAAOqB,YAAe,GAAAC,kBAAA;;;;"}
|
|
@@ -15,7 +15,7 @@ import 'react-native-svg';
|
|
|
15
15
|
import '../PickerView/styles.js';
|
|
16
16
|
import '../PickerView/Wheel.js';
|
|
17
17
|
import '../Sheets/Sheets.js';
|
|
18
|
-
import '../../_chunks/
|
|
18
|
+
import '../../_chunks/BJ2Kj1Vd.js';
|
|
19
19
|
import '../Portal/core/Portal.js';
|
|
20
20
|
import '../Portal/core/hooks/usePortal.js';
|
|
21
21
|
import '../../_chunks/B-g-eq94.js';
|
|
@@ -24,6 +24,11 @@ import '../Portal/core/PortalHost.js';
|
|
|
24
24
|
import '../Portal/core/hooks/usePortalState.js';
|
|
25
25
|
import '../Portal/core/PortalProvider.js';
|
|
26
26
|
import '../Sheets/styles.js';
|
|
27
|
+
import '../Button/Button.js';
|
|
28
|
+
import '../../_chunks/BbMynYIz.js';
|
|
29
|
+
import '../Button/styleMap.js';
|
|
30
|
+
import '../Icon/Icon.js';
|
|
31
|
+
import '@xhs/reder-icon-svg';
|
|
27
32
|
|
|
28
33
|
|
|
29
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|