@xhsreds/reds-rn-next 0.1.2 → 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/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-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-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/CkkZzOy_.js +23 -0
- package/lib/cjs/_chunks/CkkZzOy_.js.map +1 -0
- package/lib/cjs/_chunks/GhFTd1qc.js +22 -0
- package/lib/cjs/_chunks/GhFTd1qc.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/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 +97 -98
- package/lib/cjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/cjs/components/AvatarGroup/index.js +61 -21
- 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 +96 -68
- 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 +65 -20
- package/lib/cjs/components/ImagePreview/index.js.map +1 -1
- package/lib/cjs/components/List/ListItem/ListItem.js +94 -113
- package/lib/cjs/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/cjs/components/List/index.js +59 -18
- 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/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 +254 -30
- 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/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/_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/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 +95 -100
- package/lib/esm/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/esm/components/AvatarGroup/index.js +59 -19
- 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 +95 -71
- 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 +63 -18
- package/lib/esm/components/ImagePreview/index.js.map +1 -1
- package/lib/esm/components/List/ListItem/ListItem.js +92 -115
- package/lib/esm/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/esm/components/List/index.js +59 -18
- package/lib/esm/components/List/index.js.map +1 -1
- package/lib/esm/components/Picker/Picker.js +7 -2
- package/lib/esm/components/Picker/Picker.js.map +1 -1
- package/lib/esm/components/Picker/index.js +7 -2
- package/lib/esm/components/Picker/index.js.map +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 +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/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 +11 -11
- package/lib/esm/components/TabBar/TabBar.js.map +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 +253 -28
- 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/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/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 +6 -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/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/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 +17 -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
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import AvatarGroup from '
|
|
1
|
+
import { AvatarGroup } from '../../index.js';
|
|
2
2
|
export { i as AvatarGroupType } from '../../_chunks/DYs5DSy1.js';
|
|
3
|
-
import '
|
|
3
|
+
import '../ActionSheets/ActionSheets.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-native';
|
|
6
|
+
import '../../_chunks/DHJk9lIr.js';
|
|
7
|
+
import '../ActionSheets/styles.js';
|
|
8
|
+
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
9
|
+
import '../../_chunks/CwHnr-H1.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,38 +19,45 @@ 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';
|
|
32
|
+
import '../PickerView/PickerView.js';
|
|
20
33
|
import '../ProgressIndicator/ProgressIndicator.js';
|
|
21
34
|
import '../../_chunks/D361MMpE.js';
|
|
22
35
|
import '../ProgressIndicator/styles.js';
|
|
23
|
-
import 'react-native-svg';
|
|
24
36
|
import '../PickerView/styles.js';
|
|
37
|
+
import '../PickerView/Wheel.js';
|
|
38
|
+
import '../../_chunks/BCi0K_XP.js';
|
|
25
39
|
import '../Picker/Picker.js';
|
|
26
40
|
import '../../_chunks/HoMybJja.js';
|
|
27
|
-
import '
|
|
28
|
-
import '../
|
|
41
|
+
import '../../_chunks/BKEXyO9m.js';
|
|
42
|
+
import '../FAB/FAB.js';
|
|
43
|
+
import '../../_chunks/BHRAJjD2.js';
|
|
29
44
|
import '../FAB/styles.js';
|
|
30
|
-
import '../Button/styleMap.js';
|
|
31
|
-
import '@xhs/reder-icon-svg';
|
|
32
|
-
import '../Toast/styles.js';
|
|
33
45
|
import '../../_chunks/smTB3TZu.js';
|
|
46
|
+
import '../Toast/api.js';
|
|
47
|
+
import '../Toast/Toast.js';
|
|
48
|
+
import '../Toast/styles.js';
|
|
34
49
|
import '../DropDown/DropDown.js';
|
|
35
50
|
import '../../_chunks/vOnIzQRe.js';
|
|
36
51
|
import '../DropDown/styles.js';
|
|
37
52
|
import '../Tab/Tab.js';
|
|
38
53
|
import '../../_chunks/5aBuaARv.js';
|
|
39
54
|
import '../Tab/styles.js';
|
|
40
|
-
import '../Icon/Icon.js';
|
|
41
55
|
import '../Badge/Badge.js';
|
|
42
56
|
import '../../_chunks/t6qlCOwe.js';
|
|
43
57
|
import '../Badge/styles.js';
|
|
44
|
-
import '../Button/Button.js';
|
|
45
|
-
import '../../_chunks/BbMynYIz.js';
|
|
46
58
|
import '../DropDown/DropDownItem.js';
|
|
59
|
+
import '../Progress/Progress.js';
|
|
60
|
+
import '../../_chunks/CDjjInz6.js';
|
|
47
61
|
import '../Progress/styles.js';
|
|
48
62
|
import '../TabBar/TabBar.js';
|
|
49
63
|
import '../../_chunks/DUTFT_ka.js';
|
|
@@ -51,32 +65,52 @@ import '../TabBar/styles.js';
|
|
|
51
65
|
import '../NavigationBar/NavigationBar.js';
|
|
52
66
|
import '../../_chunks/DxmiznjB.js';
|
|
53
67
|
import '../NavigationBar/styles.js';
|
|
68
|
+
import '../BottomBar/BottomBar.js';
|
|
69
|
+
import '../../_chunks/6IvC8kW8.js';
|
|
54
70
|
import '../BottomBar/styles.js';
|
|
71
|
+
import '../List/List.js';
|
|
72
|
+
import '../List/ListItem/ListContext.js';
|
|
55
73
|
import '../List/styles.js';
|
|
74
|
+
import '../../_chunks/CWfZNdRH.js';
|
|
56
75
|
import '../Skeleton/Skeleton.js';
|
|
57
76
|
import '../../_chunks/7_ZK_tBb.js';
|
|
58
77
|
import '../Skeleton/Item/SkeletonItem.js';
|
|
59
78
|
import '../../_chunks/D-UGc_mn.js';
|
|
60
79
|
import '../Skeleton/Item/styles.js';
|
|
61
80
|
import '../Skeleton/styles.js';
|
|
62
|
-
import '../ImagePreview/ImagePreview.js';
|
|
63
81
|
import '../../_chunks/ByMDi00e.js';
|
|
64
82
|
import '../ImagePreview/ImageViewer.js';
|
|
65
83
|
import '../ImagePreview/Gesture/useGesture.js';
|
|
66
84
|
import '../ImagePreview/Gesture/Pinch.js';
|
|
67
85
|
import '../ImagePreview/Gesture/Pan.js';
|
|
68
86
|
import '../ImagePreview/Gesture/Tap.js';
|
|
69
|
-
import '../Tag/Tag.js';
|
|
70
|
-
import '../../_chunks/CszwJiJx.js';
|
|
71
87
|
import '../Image/Image.js';
|
|
72
88
|
import '../../_chunks/BITrbAAT.js';
|
|
73
89
|
import '../Image/styles.js';
|
|
74
90
|
import '../Image/hook/index.js';
|
|
75
91
|
import '../Image/CircularProgress.js';
|
|
92
|
+
import '../Divider/Divider.js';
|
|
93
|
+
import '../../_chunks/CLoffREn.js';
|
|
94
|
+
import '../Divider/styles.js';
|
|
95
|
+
import '../Tag/Tag.js';
|
|
96
|
+
import '../../_chunks/CszwJiJx.js';
|
|
97
|
+
import '../Popover/Popover.js';
|
|
98
|
+
import '../Popover/component.js';
|
|
99
|
+
import '../Popover/hook.js';
|
|
76
100
|
import '@floating-ui/react-native';
|
|
101
|
+
import '../../_chunks/BeWZSBnN.js';
|
|
77
102
|
import '../Switch/Switch.js';
|
|
78
103
|
import '../../_chunks/B3zY_xWO.js';
|
|
79
104
|
import '../Switch/styles.js';
|
|
105
|
+
import '../ConfigProvider/ConfigProvider.js';
|
|
106
|
+
import '../../_chunks/DKABHJAn.js';
|
|
107
|
+
import '../Text/Text.js';
|
|
108
|
+
import '../Text/hooks/cloneContainer.js';
|
|
109
|
+
import '../Text/hooks/getRenderText.js';
|
|
110
|
+
import '../Text/hooks/nativeEmojiMap/android.js';
|
|
111
|
+
import '../Text/hooks/nativeEmojiMap/ios.js';
|
|
112
|
+
import '../Text/styles.js';
|
|
113
|
+
import '../../_chunks/BswK5qRp.js';
|
|
80
114
|
import '../Collapse/Collapse.js';
|
|
81
115
|
import '../Collapse/interface/index.js';
|
|
82
116
|
import '../Collapse/hooks/useCollapseContext.js';
|
|
@@ -86,12 +120,18 @@ import '../Collapse/Item/styles.js';
|
|
|
86
120
|
import '../Empty/Empty.js';
|
|
87
121
|
import '../../_chunks/BfaGqGMC.js';
|
|
88
122
|
import '../Empty/styles.js';
|
|
123
|
+
import '../Result/Result.js';
|
|
124
|
+
import '../../_chunks/BKS4Pa1R.js';
|
|
125
|
+
import '../Result/styles.js';
|
|
126
|
+
import '../Result/hooks/useDefaultIcon.js';
|
|
89
127
|
import '../PullRefresh/PullRefresh.js';
|
|
90
128
|
import '../../_chunks/CGzZESdM.js';
|
|
91
129
|
import '../PullRefresh/component.js';
|
|
130
|
+
import '../../_chunks/LNDx6DgD.js';
|
|
92
131
|
import '../Avatar/Avatar.js';
|
|
93
132
|
import '../../_chunks/CBSrvlEa.js';
|
|
94
133
|
import '../Avatar/styles.js';
|
|
134
|
+
import '../Alert/styles.js';
|
|
95
135
|
|
|
96
136
|
|
|
97
137
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _slicedToArray } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import { StyleSheet, View, Text } from 'react-native';
|
|
4
4
|
import { B as BadgeDefaultProps } from '../../_chunks/t6qlCOwe.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { B as BottomBarDefaultProps } from '../../_chunks/6IvC8kW8.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { memo, forwardRef } from 'react';
|
|
3
3
|
import { PanResponder, TouchableWithoutFeedback, View, Text } from 'react-native';
|
|
4
4
|
import { B as ButtonDefaultProps } from '../../_chunks/BbMynYIz.js';
|
|
@@ -56,7 +56,7 @@ var Button = function Button(props) {
|
|
|
56
56
|
style: textStyles
|
|
57
57
|
}, children), iconRight && allowSlot && /* @__PURE__ */React__default.createElement(View, null, iconRight))));
|
|
58
58
|
};
|
|
59
|
-
var Button$1 = /*#__PURE__*/memo(
|
|
59
|
+
var Button$1 = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(Button));
|
|
60
60
|
|
|
61
61
|
export { Button$1 as default };
|
|
62
62
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import React, { memo, forwardRef } from \"react\";\nimport { TouchableWithoutFeedback, View, Text, ViewStyle, TextStyle, PanResponder } from \"react-native\";\nimport { RedsButton, ButtonDefaultProps } from \"./interface\";\nimport { getSizeStyles, getVariantStyles, contentMarginStyle, getStyles } from \"./styleMap\";\n\nconst Button = (props: RedsButton) => {\n const finalProps = { ...(ButtonDefaultProps as RedsButton), ...props };\n const { size, block, disabled, children, onClick, avatar, iconLeft, iconRight, shape, style = {} } = finalProps;\n const sizeStyles = getSizeStyles(finalProps);\n const variantStyles = getVariantStyles(finalProps);\n const styles = getStyles(finalProps);\n const buttonStyles: ViewStyle[] = [styles.button, sizeStyles.button, variantStyles.button, style];\n const textStyles: TextStyle[] = [sizeStyles.text, variantStyles.text];\n\n const allowSlot = size === \"xLarge\" || size === \"large\";\n\n if (allowSlot && (avatar || iconLeft)) {\n textStyles.push(contentMarginStyle.left);\n }\n\n if (allowSlot && iconRight) {\n textStyles.push(contentMarginStyle.right);\n }\n\n if (disabled) {\n buttonStyles.push(styles.disabledButton);\n }\n\n if (block) {\n buttonStyles.push(styles.block);\n }\n\n const panResponder = PanResponder.create({\n onStartShouldSetPanResponderCapture: () => {\n return true;\n },\n });\n\n return (\n <TouchableWithoutFeedback onPress={disabled ? undefined : onClick}>\n <View style={buttonStyles} {...panResponder.panHandlers}>\n {shape === \"circle\" ? (\n <>\n {allowSlot ? (\n iconLeft ? (\n <View>{iconLeft}</View>\n ) : iconRight ? (\n <View>{iconRight}</View>\n ) : (\n <Text style={textStyles}>{children}</Text>\n )\n ) : (\n <Text style={textStyles}>{children}</Text>\n )}\n </>\n ) : (\n <>\n {avatar && allowSlot && <View>{avatar}</View>}\n {iconLeft && allowSlot && <View>{iconLeft}</View>}\n <Text style={textStyles}>{children}</Text>\n {iconRight && allowSlot && <View>{iconRight}</View>}\n </>\n )}\n </View>\n </TouchableWithoutFeedback>\n );\n};\n\nexport default memo(forwardRef(Button));\n"],"names":["Button","props","finalProps","_objectSpread","ButtonDefaultProps","size","block","disabled","children","onClick","avatar","iconLeft","iconRight","shape","_finalProps$style","style","sizeStyles","getSizeStyles","variantStyles","getVariantStyles","styles","getStyles","buttonStyles","button","textStyles","text","allowSlot","push","contentMarginStyle","left","right","disabledButton","panResponder","PanResponder","create","onStartShouldSetPanResponderCapture","React","createElement","TouchableWithoutFeedback","onPress","View","panHandlers","Fragment","Text","memo","forwardRef"],"mappings":";;;;;;;;;;AAKA,IAAMA,MAAA,GAAS,SAATA,MAAAA,CAAUC,KAAsB,EAAA;EACpC,IAAMC,UAAa,GAAAC,cAAA,CAAAA,cAAA,CAAMC,EAAAA,EAAAA,kBAAA,CAAsCH,EAAAA,KAAM,CAAA,CAAA;AACrE,EAAA,IAAQI,IAAA,GAA6FH,UAAA,CAA7FG,IAAA;IAAMC,KAAO,GAAgFJ,UAAA,CAAvFI,KAAO;IAAAC,QAAA,GAAgFL,UAAA,CAAhFK,QAAA;IAAUC,QAAU,GAA4DN,UAAA,CAAtEM,QAAU;IAAAC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,IAAK,EAAA;AAAA5B,IAAAA,KAAA,EAAOS,UAAAA;KAAahB,QAAS,CAAA,EAClCI,SAAa,IAAAc,SAAA,mBAAcU,cAAA,CAAAC,aAAA,CAAAG,IAAA,EAAA,IAAA,EAAM5B,SAAU,CAC9C,CAEJ,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,eAAA,aAAegC,IAAA,
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import React, { memo, forwardRef } from \"react\";\nimport { TouchableWithoutFeedback, View, Text, ViewStyle, TextStyle, PanResponder } from \"react-native\";\nimport { RedsButton, ButtonDefaultProps } from \"./interface\";\nimport { getSizeStyles, getVariantStyles, contentMarginStyle, getStyles } from \"./styleMap\";\n\nconst Button = (props: RedsButton) => {\n const finalProps = { ...(ButtonDefaultProps as RedsButton), ...props };\n const { size, block, disabled, children, onClick, avatar, iconLeft, iconRight, shape, style = {} } = finalProps;\n const sizeStyles = getSizeStyles(finalProps);\n const variantStyles = getVariantStyles(finalProps);\n const styles = getStyles(finalProps);\n const buttonStyles: ViewStyle[] = [styles.button, sizeStyles.button, variantStyles.button, style];\n const textStyles: TextStyle[] = [sizeStyles.text, variantStyles.text];\n\n const allowSlot = size === \"xLarge\" || size === \"large\";\n\n if (allowSlot && (avatar || iconLeft)) {\n textStyles.push(contentMarginStyle.left);\n }\n\n if (allowSlot && iconRight) {\n textStyles.push(contentMarginStyle.right);\n }\n\n if (disabled) {\n buttonStyles.push(styles.disabledButton);\n }\n\n if (block) {\n buttonStyles.push(styles.block);\n }\n\n const panResponder = PanResponder.create({\n onStartShouldSetPanResponderCapture: () => {\n return true;\n },\n });\n\n return (\n <TouchableWithoutFeedback onPress={disabled ? undefined : onClick}>\n <View style={buttonStyles} {...panResponder.panHandlers}>\n {shape === \"circle\" ? (\n <>\n {allowSlot ? (\n iconLeft ? (\n <View>{iconLeft}</View>\n ) : iconRight ? (\n <View>{iconRight}</View>\n ) : (\n <Text style={textStyles}>{children}</Text>\n )\n ) : (\n <Text style={textStyles}>{children}</Text>\n )}\n </>\n ) : (\n <>\n {avatar && allowSlot && <View>{avatar}</View>}\n {iconLeft && allowSlot && <View>{iconLeft}</View>}\n <Text style={textStyles}>{children}</Text>\n {iconRight && allowSlot && <View>{iconRight}</View>}\n </>\n )}\n </View>\n </TouchableWithoutFeedback>\n );\n};\n\nexport default memo(forwardRef(Button));\n"],"names":["Button","props","finalProps","_objectSpread","ButtonDefaultProps","size","block","disabled","children","onClick","avatar","iconLeft","iconRight","shape","_finalProps$style","style","sizeStyles","getSizeStyles","variantStyles","getVariantStyles","styles","getStyles","buttonStyles","button","textStyles","text","allowSlot","push","contentMarginStyle","left","right","disabledButton","panResponder","PanResponder","create","onStartShouldSetPanResponderCapture","React","createElement","TouchableWithoutFeedback","onPress","View","panHandlers","Fragment","Text","memo","forwardRef"],"mappings":";;;;;;;;;;AAKA,IAAMA,MAAA,GAAS,SAATA,MAAAA,CAAUC,KAAsB,EAAA;EACpC,IAAMC,UAAa,GAAAC,cAAA,CAAAA,cAAA,CAAMC,EAAAA,EAAAA,kBAAA,CAAsCH,EAAAA,KAAM,CAAA,CAAA;AACrE,EAAA,IAAQI,IAAA,GAA6FH,UAAA,CAA7FG,IAAA;IAAMC,KAAO,GAAgFJ,UAAA,CAAvFI,KAAO;IAAAC,QAAA,GAAgFL,UAAA,CAAhFK,QAAA;IAAUC,QAAU,GAA4DN,UAAA,CAAtEM,QAAU;IAAAC,OAAA,GAA4DP,UAAA,CAA5DO,OAAA;IAASC,MAAQ,GAA2CR,UAAA,CAAnDQ,MAAQ;IAAAC,QAAA,GAA2CT,UAAA,CAA3CS,QAAA;IAAUC,SAAW,GAAsBV,UAAA,CAAjCU,SAAW;IAAAC,KAAA,GAAsBX,UAAA,CAAtBW,KAAA;IAAAC,iBAAA,GAAsBZ,UAAA,CAAfa,KAAQ;AAARA,IAAAA,KAAQ,GAAAD,iBAAA,KAAA,KAAA,CAAA,GAA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
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import { typography, alwaysColor } from '@xhsreds/reds-token-next';
|
|
4
4
|
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2, _ as _slicedToArray, c as _toConsumableArray } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useRef, useState, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
3
3
|
import { CollapseDefaultProps } from './interface/index.js';
|
|
4
4
|
import { CollapseContext } from './hooks/useCollapseContext.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _slicedToArray } from '../../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { Animated, Easing, View, TouchableWithoutFeedback, Text } from 'react-native';
|
|
4
4
|
import { ItemDefaultProps } from './interface/index.js';
|
|
@@ -3,7 +3,7 @@ import { StyleSheet } from 'react-native';
|
|
|
3
3
|
import { useThemeColor } from '../../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../ConfigProvider/hooks/ConfigCache/ConfigCache.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,6 +1,6 @@
|
|
|
1
1
|
export { default as Collapse } from './Collapse.js';
|
|
2
2
|
export { default as CollapseItem } from './Item/Item.js';
|
|
3
|
-
import '../../_chunks/
|
|
3
|
+
import '../../_chunks/CwHnr-H1.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './interface/index.js';
|
|
6
6
|
import './hooks/useCollapseContext.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import { configCache } from './hooks/ConfigCache/ConfigCache.js';
|
|
3
3
|
import { ConfigProviderContext } from './hooks/ConfigContext/ConfigContext.js';
|
|
4
4
|
import React__default from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as _createClass,
|
|
1
|
+
import { e as _createClass, a as _objectSpread2, f as _classCallCheck, g as _typeof } from '../../../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import { lightColor, darkColor, alwaysColor } from '@xhsreds/reds-token-next';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -2,7 +2,7 @@ import { useContext } from 'react';
|
|
|
2
2
|
import { lightColor, darkColor } from '@xhsreds/reds-token-next';
|
|
3
3
|
import { configCache } from '../ConfigCache/ConfigCache.js';
|
|
4
4
|
import { ConfigProviderContext } from '../ConfigContext/ConfigContext.js';
|
|
5
|
-
import '../../../../_chunks/
|
|
5
|
+
import '../../../../_chunks/CwHnr-H1.js';
|
|
6
6
|
|
|
7
7
|
var staticColor = {
|
|
8
8
|
lightColor: lightColor,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ConfigProvider from './ConfigProvider.js';
|
|
2
2
|
export { i as ConfigProviderType } from '../../_chunks/DKABHJAn.js';
|
|
3
3
|
export { useThemeColor } from './hooks/themeToken/useThemeToken.js';
|
|
4
|
-
import '../../_chunks/
|
|
4
|
+
import '../../_chunks/CwHnr-H1.js';
|
|
5
5
|
import './hooks/ConfigCache/ConfigCache.js';
|
|
6
6
|
import '@xhsreds/reds-token-next';
|
|
7
7
|
import './hooks/ConfigContext/ConfigContext.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
3
|
import { View, Text } from 'react-native';
|
|
4
4
|
import { D as DividerDefaultProps } from '../../_chunks/CLoffREn.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import { D as DividerDefaultProps } from '../../_chunks/CLoffREn.js';
|
|
4
4
|
import { lightColor, typography } from '@xhsreds/reds-token-next';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _slicedToArray } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useState, useMemo } from 'react';
|
|
3
3
|
import { View, TouchableWithoutFeedback, Text, ScrollView } from 'react-native';
|
|
4
4
|
import { D as DROPDOWNITEMTYPE, F as FILTER_TYPE, a as DropDownDefaultProps } from '../../_chunks/vOnIzQRe.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _slicedToArray, c as _toConsumableArray } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import { Dimensions, View, Text, TouchableWithoutFeedback, TextInput } from 'react-native';
|
|
4
4
|
import { M as MULTIPLEOPTIONCOLUMN, D as DROPDOWNITEMTYPE, b as DropDownItemDefaultProps } from '../../_chunks/vOnIzQRe.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DropDown from './DropDown.js';
|
|
2
2
|
export { default as DropDownItem } from './DropDownItem.js';
|
|
3
3
|
export { i as DropDownType } from '../../_chunks/vOnIzQRe.js';
|
|
4
|
-
import '../../_chunks/
|
|
4
|
+
import '../../_chunks/CwHnr-H1.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-native';
|
|
7
7
|
import './styles.js';
|
|
@@ -2,7 +2,7 @@ import { StyleSheet, Dimensions } from 'react-native';
|
|
|
2
2
|
import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import { useThemeColor } from '../ConfigProvider/hooks/themeToken/useThemeToken.js';
|
|
5
|
-
import '../../_chunks/
|
|
5
|
+
import '../../_chunks/CwHnr-H1.js';
|
|
6
6
|
import '@xhsreds/reds-token-next';
|
|
7
7
|
import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectSpread2 } from '../../_chunks/CwHnr-H1.js';
|
|
2
2
|
import React__default, { useMemo } from 'react';
|
|
3
3
|
import { Image, View, Text } from 'react-native';
|
|
4
4
|
import { E as EmptyDefaultProps } from '../../_chunks/BfaGqGMC.js';
|
|
@@ -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,C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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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,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":";;;;;IAKaA,cAAc,SAAdA,kBAQP;AAAA,EAAA,IAPJC,MAAA,GAAAC,IAAA,CAAAD,MAAA;IACAE,YAAA,GAAAD,IAAA,CAAAC,YAAA;IACAC,UAAA,GAAAF,IAAA,CAAAE,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;AAAE/B,IAAAA,MAAA,EAAAA,MAAAA;AAAO,GAAC,CAAA,CAAA;EAE9B,OAAA;AAAEA,IAAAA,MAAQ,EAARA,MAAQ;AAAAuC,IAAAA,QAAA,EAAAA,QAAA;AAAUK,IAAAA,UAAW,EAAXA,UAAAA;GAAW,CAAA;AACxC;;;;"}
|
|
@@ -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';
|