@xhsreds/reds-rn-next 0.10.1-beta202512111732 → 0.10.1-beta202512111822
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/.tmp/coverage-0.json +1 -1
- package/coverage/.tmp/coverage-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-27.json +1 -1
- package/coverage/.tmp/coverage-29.json +1 -1
- package/coverage/.tmp/coverage-3.json +1 -1
- package/coverage/.tmp/coverage-30.json +1 -1
- package/coverage/.tmp/coverage-31.json +1 -1
- package/coverage/.tmp/coverage-32.json +1 -1
- package/coverage/.tmp/coverage-33.json +1 -1
- package/coverage/.tmp/coverage-34.json +1 -1
- package/coverage/.tmp/coverage-35.json +1 -1
- package/coverage/.tmp/coverage-36.json +1 -1
- package/coverage/.tmp/coverage-38.json +1 -1
- 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/i18n/index.js +33 -33
- package/lib/esm/i18n/index.js +33 -33
- package/package.json +2 -2
- package/src/components/ActionSheets/doc/index.mdx +4 -4
- package/src/components/ActionablePopover/doc/index.mdx +5 -5
- package/src/components/Alert/doc/index.mdx +7 -7
- package/src/components/Button/doc/index.mdx +4 -4
- package/src/components/Carousel/doc/index.mdx +4 -4
- package/src/components/CheckBoxGroup/doc/index.mdx +3 -3
- package/src/components/Collapse/doc/index.mdx +3 -3
- package/src/components/DatePicker/doc/index.mdx +21 -21
- package/src/components/DropDown/doc/index.mdx +6 -6
- package/src/components/Empty/doc/index.mdx +3 -3
- package/src/components/FAB/doc/index.mdx +3 -3
- package/src/components/Form/doc/index.mdx +4 -4
- package/src/components/Icon/doc/index.mdx +3 -3
- package/src/components/Image/doc/index.mdx +4 -4
- package/src/components/MiniSnackBar/doc/index.mdx +3 -3
- package/src/components/NoticeBar/doc/index.mdx +4 -4
- package/src/components/Picker/doc/index.mdx +5 -5
- package/src/components/PickerView/doc/index.mdx +3 -3
- package/src/components/Popover/doc/index.mdx +5 -5
- package/src/components/ProgressIndicator/doc/index.mdx +11 -11
- package/src/components/PullRefresh/doc/index.mdx +3 -3
- package/src/components/Radio/doc/index.mdx +3 -3
- package/src/components/Rate/doc/index.mdx +3 -3
- package/src/components/Search/doc/index.mdx +17 -17
- package/src/components/SegmentedControl/doc/index.mdx +3 -3
- package/src/components/Sheets/doc/index.mdx +35 -43
- package/src/components/Slider/doc/index.mdx +6 -6
- package/src/components/Stepper/doc/index.mdx +3 -3
- package/src/components/Switch/doc/index.mdx +4 -4
- package/src/components/Tab/doc/index.mdx +3 -3
- package/src/components/TabBar/doc/index.mdx +3 -3
- package/src/components/Tag/doc/index.mdx +4 -4
- package/src/components/Text/doc/index.mdx +4 -4
- package/src/components/TextField/doc/index.mdx +32 -32
- package/src/components/TextView/doc/index.mdx +5 -5
- package/src/components/Toast/doc/index.mdx +6 -6
- package/src/components/Uploader/doc/index.mdx +26 -26
- package/src/components/Video/doc/index.mdx +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/builds/fe/infra/reds/packages/reds-rn/src/components/
|
|
1
|
+
{"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":38},"end":{"line":5,"column":18}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":31}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":19}},"4":{"start":{"line":6,"column":32},"end":{"line":9,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":39},"end":{"line":1,"column":40}},"loc":{"start":{"line":1,"column":54},"end":{"line":5,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":3},"end":{"line":5,"column":17}},"type":"binary-expr","locations":[{"start":{"line":5,"column":3},"end":{"line":5,"column":11}},{"start":{"line":5,"column":15},"end":{"line":5,"column":17}}],"line":5}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1},"f":{"0":1},"b":{"0":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent, ImageStyle } from \"react-native\";\n\ntype IconFunction = (props: { size: number; fill?: string | string[] }) => string;\n\nexport const enum iconType {\n svg = \"svg\",\n image = \"image\",\n}\nexport interface RedsIcon {\n size?: number;\n fill?: string;\n icon?: IconFunction | string;\n type?: iconType;\n styles?: ImageStyle;\n onClick?: (value: GestureResponderEvent) => void;\n}\n\nexport interface RedsIconEvent {\n onClick?: (value: GestureResponderEvent) => void;\n}\nexport const IconDefaultProps = {\n size: 24,\n type: iconType.svg,\n};\n"],"mappings":"AAIO,WAAW,WAAX,kBAAWA,cAAX;AACL,EAAAA,UAAA,SAAM;AACN,EAAAA,UAAA,WAAQ;AAFQ,SAAAA;AAAA,GAAA;AAgBX,aAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,MAAM;AACR;","names":["iconType"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"81b964ff99f676ac34052449880e62cd29fecc96"},"/builds/fe/infra/reds/packages/reds-rn/src/components/TextField/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/TextField/interface/index.ts","statementMap":{"0":{"start":{"line":2,"column":37},"end":{"line":22,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":19},"end":{"line":16,"column":20}},"loc":{"start":{"line":16,"column":25},"end":{"line":17,"column":3}},"line":16}},"branchMap":{},"s":{"0":1},"f":{"0":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/TextField/interface/index.ts"],"sourcesContent":["import { ReactNode } from \"react\";\nimport { iconType } from \"../../Icon/interface\";\nimport { TextStyle, ViewStyle } from \"react-native\";\ntype inputTypeRN = \"default\" | \"number-pad\" | \"decimal-pad\" | \"numeric\" | \"email-address\" | \"phone-pad\" | \"url\";\ntype inputAlignType = \"left\" | \"right\";\ntype TextFieldFormatter = (val: string) => string;\ntype TextFieldFormatTrigger = \"onChange\" | \"onBlur\";\nexport interface RedsTextField {\n modelValue?: string;\n placeholder?: string;\n type?: inputTypeRN;\n maxLength?: number;\n showCount?: boolean;\n isFormItem?: boolean;\n disabled?: boolean;\n readonly?: boolean;\n clearable?: boolean;\n autofocus?: boolean;\n prefix?: ReactNode;\n suffix?: ReactNode;\n inputAlign?: inputAlignType;\n formatter?: TextFieldFormatter;\n formatterTrigger?: TextFieldFormatTrigger;\n iconType?: iconType;\n onChange?: (value: string) => any;\n onClear?: (value: string) => any;\n onFocus?: (event: any) => any;\n onBlur?: (event: any) => any;\n style?: ViewStyle;\n maxLengthStyle?: TextStyle;\n inputStyle?: ViewStyle | ViewStyle[];\n onSubmitEditing?: (nativeEvent: any) => void;\n isControl?: boolean;\n accessibility?: Object;\n placeholderStyle?: Object;\n placeholderTextColor?: String;\n ref?: any;\n clearAccessibility?: Object;\n}\n\nexport interface RedsTextFieldEvent {}\nexport const TextFieldDefaultProps = {\n type: \"default\" as inputTypeRN,\n showCount: false,\n isFormItem: false,\n disabled: false,\n readonly: false,\n clearable: false,\n autofocus: false,\n inputAlign: \"left\" as inputAlignType,\n formatterTrigger: \"onChange\" as TextFieldFormatTrigger,\n iconType: iconType.svg,\n style: {},\n maxLengthStyle: {},\n inputStyle: {},\n onSubmitEditing: () => {},\n isControl: false,\n accessibility: {},\n placeholderStyle: {},\n clearAccessibility: {},\n};\n"],"mappings":"AACA,SAAS,gBAAgB;AAwClB,aAAM,wBAAwB;AAAA,EACnC,MAAM;AAAA,EACN,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,UAAU,SAAS;AAAA,EACnB,OAAO,CAAC;AAAA,EACR,gBAAgB,CAAC;AAAA,EACjB,YAAY,CAAC;AAAA,EACb,iBAAiB,MAAM;AAAA,EAAC;AAAA,EACxB,WAAW;AAAA,EACX,eAAe,CAAC;AAAA,EAChB,kBAAkB,CAAC;AAAA,EACnB,oBAAoB,CAAC;AACvB;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"560f4b0b2547d0c93cfb05d705f4c8305eab2333"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/builds/fe/infra/reds/packages/reds-rn/src/components/
|
|
1
|
+
{"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":35},"end":{"line":4,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nexport interface RedsStepper {\n value?: number;\n max?: number;\n min?: number;\n disable?: boolean;\n onChange?: (value: number) => any;\n isControl?: boolean;\n style?: any;\n}\n\nexport interface RedsStepperEvent {}\nexport const StepperDefaultProps = {\n disable: false,\n isControl: true,\n};\n"],"mappings":"AAaO,aAAM,sBAAsB;AAAA,EACjC,SAAS;AAAA,EACT,WAAW;AACb;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"3425e3501b6767b8b3928f62737b5f0a3338c161"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/styles.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/styles.ts","statementMap":{"0":{"start":{"line":2,"column":25},"end":{"line":38,"column":1}},"1":{"start":{"line":3,"column":2},"end":{"line":37,"column":5}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":25},"end":{"line":2,"column":26}},"loc":{"start":{"line":2,"column":53},"end":{"line":38,"column":1}},"line":2}},"branchMap":{},"s":{"0":1,"1":0},"f":{"0":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nexport const getStyles = (themeColor: any, typography: any) => {\n return StyleSheet.create({\n container: {\n display: \"flex\",\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n width: 72,\n },\n opacity: {\n opacity: 0.5,\n },\n icon: {\n width: 20,\n height: 20,\n backgroundColor: themeColor.Fill1,\n borderRadius: 20,\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n lineHeight: 20,\n },\n text: {\n fontWeight: typography.B1LooseFontWeight,\n fontSize: typography.T3FontSize,\n color: themeColor.Title,\n },\n minus: {\n height: 1.5,\n width: 10,\n },\n add: {\n height: 10,\n width: 10,\n },\n });\n};\n"],"mappings":"AAAA,SAAS,kBAAkB;AACpB,aAAM,YAAY,CAAC,YAAiB,eAAoB;AAC7D,SAAO,WAAW,OAAO;AAAA,IACvB,WAAW;AAAA,MACT,SAAS;AAAA,MACT,eAAe;AAAA,MACf,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,OAAO;AAAA,IACT;AAAA,IACA,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,iBAAiB,WAAW;AAAA,MAC5B,cAAc;AAAA,MACd,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,YAAY;AAAA,IACd;AAAA,IACA,MAAM;AAAA,MACJ,YAAY,WAAW;AAAA,MACvB,UAAU,WAAW;AAAA,MACrB,OAAO,WAAW;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IACA,KAAK;AAAA,MACH,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF,CAAC;AACH;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f14da7582aa3cc63bcbee2632badf493e6859d01"}}
|
package/lib/cjs/i18n/index.js
CHANGED
|
@@ -2,37 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var zh_cn = {
|
|
6
|
-
componentKey: {
|
|
7
|
-
sureKey: "确定",
|
|
8
|
-
satisfyKey: "满意",
|
|
9
|
-
confirmKey: "确认",
|
|
10
|
-
uploadingKey: "上传中",
|
|
11
|
-
resetKey: "重置",
|
|
12
|
-
NoDataKey: "暂无数据",
|
|
13
|
-
liveStreamingKey: "直播",
|
|
14
|
-
generallyKey: "一般",
|
|
15
|
-
uploadFailedKey: "上传失败",
|
|
16
|
-
submitKey: "提交",
|
|
17
|
-
requestSuccessfulKey: "请求成功",
|
|
18
|
-
cancelKey: "取消",
|
|
19
|
-
PullDownToRefreshKey: "下拉刷新",
|
|
20
|
-
selectAllKey: "全选",
|
|
21
|
-
requestDataKey: "请求数据中",
|
|
22
|
-
closeKey: "收起",
|
|
23
|
-
veryBadKey: "极差",
|
|
24
|
-
searchKey: "搜索",
|
|
25
|
-
expandKey: "展开",
|
|
26
|
-
IDCardPhotoKey: "身份证人像面",
|
|
27
|
-
finishKey: "完成",
|
|
28
|
-
surpriseKey: "惊喜",
|
|
29
|
-
releaseRefreshKey: "松开刷新",
|
|
30
|
-
nationalEmblemSideOfIDCardKey: "身份证国徽面",
|
|
31
|
-
buttonKey: "按钮",
|
|
32
|
-
jumpKey: "跳转",
|
|
33
|
-
disappointmentKey: "失望"
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
5
|
var zh_tw = {
|
|
37
6
|
componentKey: {
|
|
38
7
|
sureKey: "確定",
|
|
@@ -95,10 +64,41 @@ var en_us = {
|
|
|
95
64
|
disappointmentKey: "Disappointment"
|
|
96
65
|
}
|
|
97
66
|
};
|
|
67
|
+
var zh_cn = {
|
|
68
|
+
componentKey: {
|
|
69
|
+
sureKey: "确定",
|
|
70
|
+
satisfyKey: "满意",
|
|
71
|
+
confirmKey: "确认",
|
|
72
|
+
uploadingKey: "上传中",
|
|
73
|
+
resetKey: "重置",
|
|
74
|
+
NoDataKey: "暂无数据",
|
|
75
|
+
liveStreamingKey: "直播",
|
|
76
|
+
generallyKey: "一般",
|
|
77
|
+
uploadFailedKey: "上传失败",
|
|
78
|
+
submitKey: "提交",
|
|
79
|
+
requestSuccessfulKey: "请求成功",
|
|
80
|
+
cancelKey: "取消",
|
|
81
|
+
PullDownToRefreshKey: "下拉刷新",
|
|
82
|
+
selectAllKey: "全选",
|
|
83
|
+
requestDataKey: "请求数据中",
|
|
84
|
+
closeKey: "收起",
|
|
85
|
+
veryBadKey: "极差",
|
|
86
|
+
searchKey: "搜索",
|
|
87
|
+
expandKey: "展开",
|
|
88
|
+
IDCardPhotoKey: "身份证人像面",
|
|
89
|
+
finishKey: "完成",
|
|
90
|
+
surpriseKey: "惊喜",
|
|
91
|
+
releaseRefreshKey: "松开刷新",
|
|
92
|
+
nationalEmblemSideOfIDCardKey: "身份证国徽面",
|
|
93
|
+
buttonKey: "按钮",
|
|
94
|
+
jumpKey: "跳转",
|
|
95
|
+
disappointmentKey: "失望"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
98
|
var i18n = {
|
|
99
|
-
zh_cn: zh_cn,
|
|
100
99
|
zh_tw: zh_tw,
|
|
101
|
-
en_us: en_us
|
|
100
|
+
en_us: en_us,
|
|
101
|
+
zh_cn: zh_cn
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
exports.default = i18n;
|
package/lib/esm/i18n/index.js
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
var zh_cn = {
|
|
2
|
-
componentKey: {
|
|
3
|
-
sureKey: "确定",
|
|
4
|
-
satisfyKey: "满意",
|
|
5
|
-
confirmKey: "确认",
|
|
6
|
-
uploadingKey: "上传中",
|
|
7
|
-
resetKey: "重置",
|
|
8
|
-
NoDataKey: "暂无数据",
|
|
9
|
-
liveStreamingKey: "直播",
|
|
10
|
-
generallyKey: "一般",
|
|
11
|
-
uploadFailedKey: "上传失败",
|
|
12
|
-
submitKey: "提交",
|
|
13
|
-
requestSuccessfulKey: "请求成功",
|
|
14
|
-
cancelKey: "取消",
|
|
15
|
-
PullDownToRefreshKey: "下拉刷新",
|
|
16
|
-
selectAllKey: "全选",
|
|
17
|
-
requestDataKey: "请求数据中",
|
|
18
|
-
closeKey: "收起",
|
|
19
|
-
veryBadKey: "极差",
|
|
20
|
-
searchKey: "搜索",
|
|
21
|
-
expandKey: "展开",
|
|
22
|
-
IDCardPhotoKey: "身份证人像面",
|
|
23
|
-
finishKey: "完成",
|
|
24
|
-
surpriseKey: "惊喜",
|
|
25
|
-
releaseRefreshKey: "松开刷新",
|
|
26
|
-
nationalEmblemSideOfIDCardKey: "身份证国徽面",
|
|
27
|
-
buttonKey: "按钮",
|
|
28
|
-
jumpKey: "跳转",
|
|
29
|
-
disappointmentKey: "失望"
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
1
|
var zh_tw = {
|
|
33
2
|
componentKey: {
|
|
34
3
|
sureKey: "確定",
|
|
@@ -91,10 +60,41 @@ var en_us = {
|
|
|
91
60
|
disappointmentKey: "Disappointment"
|
|
92
61
|
}
|
|
93
62
|
};
|
|
63
|
+
var zh_cn = {
|
|
64
|
+
componentKey: {
|
|
65
|
+
sureKey: "确定",
|
|
66
|
+
satisfyKey: "满意",
|
|
67
|
+
confirmKey: "确认",
|
|
68
|
+
uploadingKey: "上传中",
|
|
69
|
+
resetKey: "重置",
|
|
70
|
+
NoDataKey: "暂无数据",
|
|
71
|
+
liveStreamingKey: "直播",
|
|
72
|
+
generallyKey: "一般",
|
|
73
|
+
uploadFailedKey: "上传失败",
|
|
74
|
+
submitKey: "提交",
|
|
75
|
+
requestSuccessfulKey: "请求成功",
|
|
76
|
+
cancelKey: "取消",
|
|
77
|
+
PullDownToRefreshKey: "下拉刷新",
|
|
78
|
+
selectAllKey: "全选",
|
|
79
|
+
requestDataKey: "请求数据中",
|
|
80
|
+
closeKey: "收起",
|
|
81
|
+
veryBadKey: "极差",
|
|
82
|
+
searchKey: "搜索",
|
|
83
|
+
expandKey: "展开",
|
|
84
|
+
IDCardPhotoKey: "身份证人像面",
|
|
85
|
+
finishKey: "完成",
|
|
86
|
+
surpriseKey: "惊喜",
|
|
87
|
+
releaseRefreshKey: "松开刷新",
|
|
88
|
+
nationalEmblemSideOfIDCardKey: "身份证国徽面",
|
|
89
|
+
buttonKey: "按钮",
|
|
90
|
+
jumpKey: "跳转",
|
|
91
|
+
disappointmentKey: "失望"
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
94
|
var i18n = {
|
|
95
|
-
zh_cn: zh_cn,
|
|
96
95
|
zh_tw: zh_tw,
|
|
97
|
-
en_us: en_us
|
|
96
|
+
en_us: en_us,
|
|
97
|
+
zh_cn: zh_cn
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export { i18n as default, en_us, zh_cn, zh_tw };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xhsreds/reds-rn-next",
|
|
3
|
-
"version": "0.10.1-
|
|
3
|
+
"version": "0.10.1-beta202512111822",
|
|
4
4
|
"author": "贾斌(呀哈) <jiabin@xiaohongshu.com>",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"dependencies": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"react-native-svg": "13.14.0",
|
|
28
28
|
"@xhs/react-native-harmony": "*",
|
|
29
29
|
"@xhs/reds-components": "*",
|
|
30
|
-
"@xhsreds/reds-token-next": "0.10.1-
|
|
30
|
+
"@xhsreds/reds-token-next": "0.10.1-beta202512111822"
|
|
31
31
|
},
|
|
32
32
|
"peerDependenciesMeta": {
|
|
33
33
|
"ozone-schema-web": {
|
|
@@ -26,7 +26,7 @@ ActionSheets size属性继承自sheets组件 容器高度由sheets内部容器
|
|
|
26
26
|
|
|
27
27
|
### Events
|
|
28
28
|
|
|
29
|
-
| 事件 | 描述 | 类型
|
|
30
|
-
| -------- | ---------- |
|
|
31
|
-
| onClose | 关闭时触发 | ()
|
|
32
|
-
| onChange | 点击时触发 | (value: string)
|
|
29
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
30
|
+
| -------- | ---------- | ------------------------- | ------ |
|
|
31
|
+
| onClose | 关闭时触发 | () => any | |
|
|
32
|
+
| onChange | 点击时触发 | (value: string) => any | |
|
|
@@ -34,8 +34,8 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
34
34
|
|
|
35
35
|
### Events
|
|
36
36
|
|
|
37
|
-
| 事件 | 描述 | 类型
|
|
38
|
-
| --------------- | ----------------- |
|
|
39
|
-
| onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent)
|
|
40
|
-
| onVisibleChange | visible改变时触发 | (value: boolean)
|
|
41
|
-
| onClick | visible改变时触发 | (value: string | number)
|
|
37
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
38
|
+
| --------------- | ----------------- | ----------------------------------------- | ------ |
|
|
39
|
+
| onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent) => void | |
|
|
40
|
+
| onVisibleChange | visible改变时触发 | (value: boolean) => void | |
|
|
41
|
+
| onClick | visible改变时触发 | (value: string | number) => void | |
|
|
@@ -38,10 +38,10 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
38
38
|
|
|
39
39
|
### Events
|
|
40
40
|
|
|
41
|
-
| 事件 | 描述 | 类型
|
|
42
|
-
| --------- | ------------------ |
|
|
43
|
-
| onConfirm | 点击确认按钮时触发 | (value: GestureResponderEvent)
|
|
44
|
-
| onCancel | 点击取消按钮时触发 | (value: GestureResponderEvent)
|
|
45
|
-
| onOpen | 打开弹窗时触发 | ()
|
|
46
|
-
| onClose | 关闭弹窗时触发 | ()
|
|
47
|
-
| onMask | 点击确认按钮时触发 | (value: GestureResponderEvent)
|
|
41
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
42
|
+
| --------- | ------------------ | ----------------------------------------- | ------ |
|
|
43
|
+
| onConfirm | 点击确认按钮时触发 | (value: GestureResponderEvent) => void | |
|
|
44
|
+
| onCancel | 点击取消按钮时触发 | (value: GestureResponderEvent) => void | |
|
|
45
|
+
| onOpen | 打开弹窗时触发 | () => void | |
|
|
46
|
+
| onClose | 关闭弹窗时触发 | () => void | |
|
|
47
|
+
| onMask | 点击确认按钮时触发 | (value: GestureResponderEvent) => void | |
|
|
@@ -33,7 +33,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
33
33
|
|
|
34
34
|
### Events
|
|
35
35
|
|
|
36
|
-
| 事件 | 描述 | 类型
|
|
37
|
-
| ------------------- | ------------------ |
|
|
38
|
-
| onClick | 被点击时触发 | (value: GestureResponderEvent)
|
|
39
|
-
| onFirstDrawFinished | 第一次渲染结束回调 | ()
|
|
36
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
37
|
+
| ------------------- | ------------------ | ----------------------------------------- | ------ |
|
|
38
|
+
| onClick | 被点击时触发 | (value: GestureResponderEvent) => void | |
|
|
39
|
+
| onFirstDrawFinished | 第一次渲染结束回调 | () => void | |
|
|
@@ -34,7 +34,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
34
34
|
|
|
35
35
|
### Events
|
|
36
36
|
|
|
37
|
-
| 事件 | 描述 | 类型
|
|
38
|
-
| -------- | ------------------ |
|
|
39
|
-
| onChange | 当值发生变化时触发 | (value: any, index: number)
|
|
40
|
-
| onClick | 被点击时触发 | (value: any, index: number)
|
|
37
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
38
|
+
| -------- | ------------------ | -------------------------------------- | ------ |
|
|
39
|
+
| onChange | 当值发生变化时触发 | (value: any, index: number) => void | |
|
|
40
|
+
| onClick | 被点击时触发 | (value: any, index: number) => void | |
|
|
@@ -25,6 +25,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
25
25
|
|
|
26
26
|
### Events
|
|
27
27
|
|
|
28
|
-
| 事件 | 描述 | 类型
|
|
29
|
-
| -------- | ------------------ |
|
|
30
|
-
| onChange | 当值发生变化时触发 | (value: string[] | number[])
|
|
28
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
29
|
+
| -------- | ------------------ | -------------------------------------------- | ------ |
|
|
30
|
+
| onChange | 当值发生变化时触发 | (value: string[] | number[]) => void | |
|
|
@@ -19,6 +19,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
19
19
|
|
|
20
20
|
### Events
|
|
21
21
|
|
|
22
|
-
| 事件 | 描述 | 类型
|
|
23
|
-
| -------- | -------------- |
|
|
24
|
-
| onChange | 切换面板时触发 | (activeValue: ActiveValueType)
|
|
22
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
23
|
+
| -------- | -------------- | ----------------------------------------- | ------ |
|
|
24
|
+
| onChange | 切换面板时触发 | (activeValue: ActiveValueType) => void | |
|
|
@@ -10,27 +10,27 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
10
10
|
|
|
11
11
|
### Props
|
|
12
12
|
|
|
13
|
-
| 属性 | 描述 | 类型
|
|
14
|
-
| ------------- | ----------------------------------------- |
|
|
15
|
-
| visible | 是否展示datePicker | boolean
|
|
16
|
-
| value | 选中值 | string
|
|
17
|
-
| cancelText | 关闭文案 | string
|
|
18
|
-
| mode | 模式 | DatePickerMode
|
|
19
|
-
| startYear | 选择器的最小可选时间,默认为当前时间-10年 | number
|
|
20
|
-
| endYear | 选择器的最大可选时间,默认为当前时间+10年 | number
|
|
21
|
-
| startTime | 选择器的最小可选时间,优先级大于startYear | string
|
|
22
|
-
| endTime | 选择器的最大可选时间,优先级大于endYear | string
|
|
23
|
-
| label | 标题 | string
|
|
24
|
-
| formatter | 格式化时间格式 | (value: string)
|
|
25
|
-
| isDatePattern | 是否返回时间格式数据 | boolean
|
|
26
|
-
| closeText | 关闭文案 | string
|
|
27
|
-
| mask | mask | boolean
|
|
28
|
-
| hostName | hostName | string
|
|
13
|
+
| 属性 | 描述 | 类型 | 默认值 |
|
|
14
|
+
| ------------- | ----------------------------------------- | ------------------------- | --------------------------- |
|
|
15
|
+
| visible | 是否展示datePicker | boolean | false |
|
|
16
|
+
| value | 选中值 | string | |
|
|
17
|
+
| cancelText | 关闭文案 | string | |
|
|
18
|
+
| mode | 模式 | DatePickerMode | DatePickerMode.YearMonthDay |
|
|
19
|
+
| startYear | 选择器的最小可选时间,默认为当前时间-10年 | number | |
|
|
20
|
+
| endYear | 选择器的最大可选时间,默认为当前时间+10年 | number | |
|
|
21
|
+
| startTime | 选择器的最小可选时间,优先级大于startYear | string | |
|
|
22
|
+
| endTime | 选择器的最大可选时间,优先级大于endYear | string | |
|
|
23
|
+
| label | 标题 | string | |
|
|
24
|
+
| formatter | 格式化时间格式 | (value: string) => any | (value: string) => value |
|
|
25
|
+
| isDatePattern | 是否返回时间格式数据 | boolean | false |
|
|
26
|
+
| closeText | 关闭文案 | string | |
|
|
27
|
+
| mask | mask | boolean | |
|
|
28
|
+
| hostName | hostName | string | root |
|
|
29
29
|
|
|
30
30
|
### Events
|
|
31
31
|
|
|
32
|
-
| 事件 | 描述 | 类型
|
|
33
|
-
| --------- | ------------------ |
|
|
34
|
-
| onChange | 当值发生变化时触发 | (value: string)
|
|
35
|
-
| onCancel | 取消事件 | ()
|
|
36
|
-
| onConfirm | 确定事件 | (value: string)
|
|
32
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
33
|
+
| --------- | ------------------ | -------------------------- | ------------------------ |
|
|
34
|
+
| onChange | 当值发生变化时触发 | (value: string) => void | (value: string) => {} |
|
|
35
|
+
| onCancel | 取消事件 | () => void | () => {} |
|
|
36
|
+
| onConfirm | 确定事件 | (value: string) => void | (value: string) => {} |
|
|
@@ -65,9 +65,9 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
65
65
|
|
|
66
66
|
### Events
|
|
67
67
|
|
|
68
|
-
| 事件 | 描述 | 类型
|
|
69
|
-
| --------- | --------------- |
|
|
70
|
-
| onReset | filter 重置选项 | ()
|
|
71
|
-
| onConfirm | 确定选项 | ()
|
|
72
|
-
| onClose | 关闭 | ()
|
|
73
|
-
| onChange | 选择onChange | (key: string, index: number)
|
|
68
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
69
|
+
| --------- | --------------- | --------------------------------------- | ----------- |
|
|
70
|
+
| onReset | filter 重置选项 | () => void | () => {} |
|
|
71
|
+
| onConfirm | 确定选项 | () => void | () => {} |
|
|
72
|
+
| onClose | 关闭 | () => void | () => {} |
|
|
73
|
+
| onChange | 选择onChange | (key: string, index: number) => void | () => {} |
|
|
@@ -20,6 +20,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
20
20
|
|
|
21
21
|
### Events
|
|
22
22
|
|
|
23
|
-
| 事件 | 描述 | 类型
|
|
24
|
-
| ------- | ------------ |
|
|
25
|
-
| onClick | 访问链接操作 | ()
|
|
23
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
24
|
+
| ------- | ------------ | ------------- | ------ |
|
|
25
|
+
| onClick | 访问链接操作 | () => void | |
|
|
@@ -28,6 +28,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
28
28
|
|
|
29
29
|
### Events
|
|
30
30
|
|
|
31
|
-
| 事件 | 描述 | 类型
|
|
32
|
-
| ------- | ------------ |
|
|
33
|
-
| onClick | 被点击时触发 | (value: GestureResponderEvent)
|
|
31
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
32
|
+
| ------- | ------------ | ----------------------------------------- | ------ |
|
|
33
|
+
| onClick | 被点击时触发 | (value: GestureResponderEvent) => void | |
|
|
@@ -23,7 +23,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
23
23
|
|
|
24
24
|
### Events
|
|
25
25
|
|
|
26
|
-
| 事件 | 描述 | 类型
|
|
27
|
-
| -------- | -------------- |
|
|
28
|
-
| onSubmit | 点击提交时触发 | (value: FormData, errors: any)
|
|
29
|
-
| onError | 有错误时触发 | (error: any, data: FormData)
|
|
26
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
27
|
+
| -------- | -------------- | ----------------------------------------- | ------ |
|
|
28
|
+
| onSubmit | 点击提交时触发 | (value: FormData, errors: any) => void | |
|
|
29
|
+
| onError | 有错误时触发 | (error: any, data: FormData) => void | |
|
|
@@ -24,6 +24,6 @@ Jfrog平台查一下最新@xhs/reder-icon-svg-ReDs_icon版本项目中引入 按
|
|
|
24
24
|
|
|
25
25
|
### Events
|
|
26
26
|
|
|
27
|
-
| 事件 | 描述 | 类型
|
|
28
|
-
| ------- | ------------ |
|
|
29
|
-
| onClick | 被点击时触发 | (value: GestureResponderEvent)
|
|
27
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
28
|
+
| ------- | ------------ | ----------------------------------------- | ------ |
|
|
29
|
+
| onClick | 被点击时触发 | (value: GestureResponderEvent) => void | |
|
|
@@ -28,7 +28,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
28
28
|
|
|
29
29
|
### Events
|
|
30
30
|
|
|
31
|
-
| 事件 | 描述 | 类型
|
|
32
|
-
| ------------------- | ------------------ |
|
|
33
|
-
| onReload | 重新加载时触发 | (v: GestureResponderEvent)
|
|
34
|
-
| onFirstDrawFinished | 第一次渲染结束回调 | (e: Event)
|
|
31
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
32
|
+
| ------------------- | ------------------ | ------------------------------------- | ----------- |
|
|
33
|
+
| onReload | 重新加载时触发 | (v: GestureResponderEvent) => void | |
|
|
34
|
+
| onFirstDrawFinished | 第一次渲染结束回调 | (e: Event) => void | () => {} |
|
|
@@ -22,6 +22,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
22
22
|
|
|
23
23
|
### Events
|
|
24
24
|
|
|
25
|
-
| 事件 | 描述 | 类型
|
|
26
|
-
| ------- | -------- |
|
|
27
|
-
| onClick | 点击事件 | ()
|
|
25
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
26
|
+
| ------- | -------- | ------------- | ------ |
|
|
27
|
+
| onClick | 点击事件 | () => void | |
|
|
@@ -26,7 +26,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
26
26
|
|
|
27
27
|
### Events
|
|
28
28
|
|
|
29
|
-
| 事件 | 描述 | 类型
|
|
30
|
-
| ------- | ------------ |
|
|
31
|
-
| onClose | 关闭容器 | ()
|
|
32
|
-
| onClick | 被点击时触发 | ()
|
|
29
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
30
|
+
| ------- | ------------ | ------------- | ------ |
|
|
31
|
+
| onClose | 关闭容器 | () => void | |
|
|
32
|
+
| onClick | 被点击时触发 | () => void | |
|
|
@@ -21,8 +21,8 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
21
21
|
|
|
22
22
|
### Events
|
|
23
23
|
|
|
24
|
-
| 事件 | 描述 | 类型
|
|
25
|
-
| --------- | ---------------- |
|
|
26
|
-
| onConfirm | 确定回调 | (val: string[])
|
|
27
|
-
| onCancel | 取消回调 | ()
|
|
28
|
-
| onChange | 选择选项改变回调 | (val: string[])
|
|
24
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
25
|
+
| --------- | ---------------- | -------------------------- | ----------- |
|
|
26
|
+
| onConfirm | 确定回调 | (val: string[]) => void | () => {} |
|
|
27
|
+
| onCancel | 取消回调 | () => void | () => {} |
|
|
28
|
+
| onChange | 选择选项改变回调 | (val: string[]) => void | () => {} |
|
|
@@ -19,6 +19,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
19
19
|
|
|
20
20
|
### Events
|
|
21
21
|
|
|
22
|
-
| 事件 | 描述 | 类型
|
|
23
|
-
| -------- | -------- |
|
|
24
|
-
| onChange | 选择变化 | (val: string[])
|
|
22
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
23
|
+
| -------- | -------- | -------------------------- | ----------- |
|
|
24
|
+
| onChange | 选择变化 | (val: string[]) => void | () => {} |
|
|
@@ -12,7 +12,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
12
12
|
| ------------------ | --------------------------------- | --------------------------------------------------------------------------------------------------- | --------------- |
|
|
13
13
|
| visible | 是否显示气泡 | boolean | undefined |
|
|
14
14
|
| placement | 气泡方向 | "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end" | top |
|
|
15
|
-
| content | 弹出内容 | ReactNode | (()
|
|
15
|
+
| content | 弹出内容 | ReactNode | (() => ReactNode) | |
|
|
16
16
|
| opacity | 遮罩透明度 | number | 0 |
|
|
17
17
|
| mode | 主题色 | "light" | "dark" | "alwaysLight" | "alwaysDark" | light |
|
|
18
18
|
| trigger | 触发方式 | "click" | "touch" | click |
|
|
@@ -33,7 +33,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
33
33
|
|
|
34
34
|
### Events
|
|
35
35
|
|
|
36
|
-
| 事件 | 描述 | 类型
|
|
37
|
-
| --------------- | ----------------- |
|
|
38
|
-
| onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent)
|
|
39
|
-
| onVisibleChange | visible改变时触发 | (value: boolean)
|
|
36
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
37
|
+
| --------------- | ----------------- | ----------------------------------------- | ------ |
|
|
38
|
+
| onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent) => void | |
|
|
39
|
+
| onVisibleChange | visible改变时触发 | (value: boolean) => void | |
|
|
@@ -25,16 +25,16 @@ import ProgressDemo from "!!raw-loader!../demo/progress.tsx";
|
|
|
25
25
|
|
|
26
26
|
### Props
|
|
27
27
|
|
|
28
|
-
| 属性 | 描述 | 类型 | 默认值
|
|
29
|
-
| ------------ | -------------- | -------------------------------------- |
|
|
30
|
-
| percent | 当前进度 | number | 0
|
|
31
|
-
| showPercent | 展示文字 | boolean | true
|
|
32
|
-
| textStyle | 字体样式 | any |
|
|
33
|
-
| formatText | 进度条文字函数 | (percent: number)
|
|
34
|
-
| size | 进度条尺寸 | number |
|
|
35
|
-
| type | 类型 | string | default
|
|
36
|
-
| strokeColor | 边框颜色 | "dark" | "light" | "primary" |
|
|
37
|
-
| strokeWidth | 边框宽度 | number |
|
|
38
|
-
| lottieSource | lottie自定义 | string |
|
|
28
|
+
| 属性 | 描述 | 类型 | 默认值 |
|
|
29
|
+
| ------------ | -------------- | -------------------------------------- | ---------------------------------------------------------------- |
|
|
30
|
+
| percent | 当前进度 | number | 0 |
|
|
31
|
+
| showPercent | 展示文字 | boolean | true |
|
|
32
|
+
| textStyle | 字体样式 | any | |
|
|
33
|
+
| formatText | 进度条文字函数 | (percent: number) => string | (percent: number) => (percent > 100 ? "100%" : percent + "%") |
|
|
34
|
+
| size | 进度条尺寸 | number | |
|
|
35
|
+
| type | 类型 | string | default |
|
|
36
|
+
| strokeColor | 边框颜色 | "dark" | "light" | "primary" | |
|
|
37
|
+
| strokeWidth | 边框宽度 | number | |
|
|
38
|
+
| lottieSource | lottie自定义 | string | |
|
|
39
39
|
|
|
40
40
|
### Events
|
|
@@ -32,6 +32,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
32
32
|
|
|
33
33
|
### Events
|
|
34
34
|
|
|
35
|
-
| 事件 | 描述 | 类型
|
|
36
|
-
| --------- | ------------------ |
|
|
37
|
-
| onRequest | 下拉执行的请求函数 | ()
|
|
35
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
36
|
+
| --------- | ------------------ | ------------- | ------ |
|
|
37
|
+
| onRequest | 下拉执行的请求函数 | () => void | |
|
|
@@ -32,6 +32,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
|
|
|
32
32
|
|
|
33
33
|
### Events
|
|
34
34
|
|
|
35
|
-
| 事件 | 描述 | 类型
|
|
36
|
-
| ------- | -------- |
|
|
37
|
-
| onClick | 点击事件 | (value: string)
|
|
35
|
+
| 事件 | 描述 | 类型 | 默认值 |
|
|
36
|
+
| ------- | -------- | -------------------------- | ------ |
|
|
37
|
+
| onClick | 点击事件 | (value: string) => void | |
|