@xhsreds/reds-rn-next 0.10.2 → 0.10.3-beta202512232046
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/.tmp/coverage-0.json +1 -1
- package/coverage/.tmp/coverage-1.json +1 -1
- package/coverage/.tmp/coverage-10.json +1 -1
- package/coverage/.tmp/coverage-11.json +1 -1
- package/coverage/.tmp/coverage-12.json +1 -1
- package/coverage/.tmp/coverage-13.json +1 -1
- package/coverage/.tmp/coverage-14.json +1 -1
- package/coverage/.tmp/coverage-15.json +1 -1
- package/coverage/.tmp/coverage-16.json +1 -1
- package/coverage/.tmp/coverage-17.json +1 -1
- package/coverage/.tmp/coverage-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-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-36.json +1 -1
- package/coverage/.tmp/coverage-37.json +1 -1
- package/coverage/.tmp/coverage-38.json +1 -1
- package/coverage/.tmp/coverage-39.json +1 -1
- package/coverage/.tmp/coverage-4.json +1 -1
- package/coverage/.tmp/coverage-40.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/components/Alert/styles.js +1 -2
- package/lib/cjs/components/Alert/styles.js.map +1 -1
- package/lib/esm/components/Alert/styles.js +1 -2
- package/lib/esm/components/Alert/styles.js.map +1 -1
- package/lib/src/components/Alert/styles.d.ts +0 -1
- package/lib/types/components/Alert/styles.d.ts +0 -1
- package/package.json +2 -2
- package/src/components/Alert/styles.ts +0 -1
- package/src/i18n/@types/resources.d.ts +27 -27
- package/src/i18n/index.json +31 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/builds/fe/infra/reds/packages/reds-rn/src/components/
|
|
1
|
+
{"/builds/fe/infra/reds/packages/reds-rn/src/components/Form/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Form/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":35},"end":{"line":5,"column":15}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":26}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":28}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":16}},"4":{"start":{"line":6,"column":36},"end":{"line":10,"column":16}},"5":{"start":{"line":7,"column":2},"end":{"line":7,"column":39}},"6":{"start":{"line":8,"column":2},"end":{"line":8,"column":35}},"7":{"start":{"line":9,"column":2},"end":{"line":9,"column":17}},"8":{"start":{"line":11,"column":32},"end":{"line":16,"column":1}},"9":{"start":{"line":17,"column":40},"end":{"line":19,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":36},"end":{"line":1,"column":37}},"loc":{"start":{"line":1,"column":48},"end":{"line":5,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":37},"end":{"line":6,"column":38}},"loc":{"start":{"line":6,"column":50},"end":{"line":10,"column":1}},"line":6}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":3},"end":{"line":5,"column":14}},"type":"binary-expr","locations":[{"start":{"line":5,"column":3},"end":{"line":5,"column":8}},{"start":{"line":5,"column":12},"end":{"line":5,"column":14}}],"line":5},"1":{"loc":{"start":{"line":10,"column":3},"end":{"line":10,"column":15}},"type":"binary-expr","locations":[{"start":{"line":10,"column":3},"end":{"line":10,"column":9}},{"start":{"line":10,"column":13},"end":{"line":10,"column":15}}],"line":10}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1},"f":{"0":1,"1":1},"b":{"0":[1,1],"1":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Form/interface/index.ts"],"sourcesContent":["import { ReactNode } from \"react\";\nimport { ViewStyle, TextStyle } from \"react-native\";\n\nexport const enum ALIGN {\n LEFT = \"left\",\n RIGHT = \"right\",\n}\n\nexport const enum LAYOUT {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport interface FormRule {\n validator: (val: any) => boolean;\n message: string;\n}\n\nexport interface FormData {\n [key: string]: any;\n}\n\nexport interface FormRules {\n [key: string]: any[];\n}\n\nexport interface FormValidateRes {\n name: string;\n isValidate: boolean;\n messages: string[];\n}\nexport interface RedsForm {\n data: FormData;\n rules: FormRules;\n onSubmit?: (value: FormData, errors: any) => void;\n onError?: (error: any, data: FormData) => void;\n children: ReactNode[] | ReactNode;\n layout?: LAYOUT;\n align?: ALIGN;\n showSubmit?: boolean;\n submitText?: string;\n style?: ViewStyle;\n}\n\nexport interface RedsFormEvent {}\nexport const FormDefaultProps = {\n layout: LAYOUT.HORIZONTAL,\n align: ALIGN.LEFT,\n showSubmit: true,\n style: {},\n};\n\nexport interface RedsFormItem {\n /**\n * 表单内容对齐方式\n */\n align?: ALIGN | string;\n /**\n * 布局 横向/纵向\n */\n layout?: LAYOUT | string;\n /**\n * 是否可选\n */\n required?: boolean;\n /**\n * 校验规则\n */\n rules?: FormRule[];\n /**\n * label\n */\n label?: string;\n /**\n * value\n */\n value: string | number | boolean | string[] | number[];\n /**\n * name\n */\n name: string;\n /**\n * labelWidth\n */\n labelWidth?: number;\n /**\n * children\n */\n children: ReactNode;\n /**\n * styles\n */\n styles?: ViewStyle | ViewStyle[];\n /**\n * label styles\n */\n labelStyle?: ViewStyle | ViewStyle[];\n /**\n * label text styles\n */\n labelTextStyle?: TextStyle | TextStyle[];\n /**\n * formItem slot styles\n */\n formItemSlotStyles?: ViewStyle | ViewStyle[];\n /**\n * formItem style\n */\n formItemStyle?: ViewStyle | ViewStyle[];\n /**\n * label slot\n */\n LabelComponent?: ReactNode;\n /**\n * 是否展示错误提示\n */\n noError?: boolean;\n /**\n * requireStyle\n */\n requireStyle?: ViewStyle | ViewStyle[];\n}\n\nexport interface RedsFormItemEvent {\n (e: \"validate\", value: Event): any;\n}\n\nexport const RedsFormItemDefaultProps = {\n required: false,\n};\n\nexport interface IFormContext {\n rules: FormRules;\n value: FormData;\n layout?: LAYOUT | string;\n align?: ALIGN | string;\n errors: {\n [key: string]: string;\n };\n setErrors?: (val: any) => void;\n}\n"],"mappings":"AAGO,WAAW,QAAX,kBAAWA,WAAX;AACL,EAAAA,OAAA,UAAO;AACP,EAAAA,OAAA,WAAQ;AAFQ,SAAAA;AAAA,GAAA;AAKX,WAAW,SAAX,kBAAWC,YAAX;AACL,EAAAA,QAAA,gBAAa;AACb,EAAAA,QAAA,cAAW;AAFK,SAAAA;AAAA,GAAA;AAqCX,aAAM,mBAAmB;AAAA,EAC9B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,OAAO,CAAC;AACV;AA6EO,aAAM,2BAA2B;AAAA,EACtC,UAAU;AACZ;","names":["ALIGN","LAYOUT"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8686852eb18b718ac3ad1bb3c741a25f4f94216b"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Button/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Button/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":34},"end":{"line":15,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Button/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent, ViewStyle, TextStyle } from \"react-native\";\n\nexport type RedsButtonSize = \"xLarge\" | \"large\" | \"medium\" | \"small\" | \"mini\" | \"micro\";\nexport type RedsButtonType = \"primary\" | \"default\";\nexport type RedsButtonVariant = \"fill\" | \"ghost\" | \"outline\" | \"text\" | \"disabled\";\nexport type RedsButtonShape = \"capsule\" | \"circle\";\nexport type RedsButtonOutline = \"border\" | \"shadow\" | \"none\";\n\nexport interface FirstDrawFinishedProps {\n /** 埋点曝光百分比 数值范围 0 - 1 **/\n percent?: number;\n /** 外层有scrollView 必传 */\n scrollViewRef?: any;\n /** scrollView 滚动距离 */\n scrollHeight?: number;\n}\nexport interface RedsButton {\n size?: RedsButtonSize;\n type?: RedsButtonType;\n variant?: RedsButtonVariant;\n shape?: RedsButtonShape;\n block?: boolean;\n width?: string | number;\n disabled?: boolean;\n outlineType?: RedsButtonOutline;\n children?: React.ReactNode;\n style?: ViewStyle;\n avatar?: React.ReactNode;\n iconLeft?: React.ReactNode;\n iconRight?: React.ReactNode;\n onClick?: (value: GestureResponderEvent) => void;\n requireDisableClick?: boolean;\n onFirstDrawFinished?: () => void;\n textStyle?: TextStyle;\n firstDrawFinishedProps?: FirstDrawFinishedProps;\n accessibility?: Object;\n loading?: boolean;\n}\n\nexport const ButtonDefaultProps = {\n size: \"medium\",\n type: \"default\",\n variant: \"fill\",\n shape: \"capsule\",\n block: false,\n disabled: false,\n outlineType: \"border\",\n style: {},\n requireDisableClick: false,\n textStyle: {},\n firstDrawFinishedProps: {},\n accessibility: {},\n loading: false,\n};\n"],"mappings":"AAuCO,aAAM,qBAAqB;AAAA,EAChC,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AAAA,EACP,UAAU;AAAA,EACV,aAAa;AAAA,EACb,OAAO,CAAC;AAAA,EACR,qBAAqB;AAAA,EACrB,WAAW,CAAC;AAAA,EACZ,wBAAwB,CAAC;AAAA,EACzB,eAAe,CAAC;AAAA,EAChB,SAAS;AACX;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"cced91a0048df50c27938ab978a1efa7e3a9aeac"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/builds/fe/infra/reds/packages/reds-rn/src/components/
|
|
1
|
+
{"/builds/fe/infra/reds/packages/reds-rn/src/components/TabBar/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/TabBar/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":34},"end":{"line":6,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/TabBar/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nimport { RedsIcon } from \"../../Icon/interface\";\nexport interface RedsTabBar {\n list: DataType[];\n customTabBar?: DataType;\n type: \"text\" | \"icon\";\n active: string;\n value?: boolean;\n badge?: boolean;\n containerStyles?: any;\n textStyles?: any;\n activeTextStyles?: any;\n onChange?: (value: string) => any;\n}\n\nexport interface RedsBadge {\n content?: number | string;\n color?: string;\n dot?: boolean;\n max?: number | string;\n offset?: [number | string, number | string];\n showZero?: boolean;\n position?: \"topLeft\" | \"centerLeft\" | \"centerRight\" | \"topCenter\" | \"centerCenter\";\n}\n\nexport interface DataType {\n text?: string;\n key: string;\n badgeProps?: RedsBadge;\n iconProps?: RedsIcon;\n activeIconProps?: RedsIcon;\n activeColor?: string;\n normalColor?: string;\n}\n\nexport interface RedsTabBarEvent {}\nexport const TabBarDefaultProps = {\n list: [] as DataType[],\n type: \"text\",\n value: undefined,\n badge: false,\n};\n"],"mappings":"AAqCO,aAAM,qBAAqB;AAAA,EAChC,MAAM,CAAC;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AACT;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"eab58c974e6c02ecedd61e0a549fb2ada34bba69"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/builds/fe/infra/reds/packages/reds-rn/src/components/
|
|
1
|
+
{"/builds/fe/infra/reds/packages/reds-rn/src/components/Badge/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Badge/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":33},"end":{"line":10,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Badge/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nexport interface RedsBadge {\n content?: number | string;\n color?: string;\n dot?: boolean;\n max?: number | string;\n offset?: [number | string, number | string];\n showZero?: boolean;\n position?: \"topLeft\" | \"centerLeft\" | \"centerRight\" | \"topCenter\" | \"centerCenter\";\n children?: any;\n}\n\nexport interface RedsBadgeEvent {}\nexport const BadgeDefaultProps = {\n content: undefined,\n color: undefined,\n dot: false,\n max: undefined,\n offset: undefined,\n showZero: true,\n position: \"topLeft\",\n children: undefined,\n};\n"],"mappings":"AAcO,aAAM,oBAAoB;AAAA,EAC/B,SAAS;AAAA,EACT,OAAO;AAAA,EACP,KAAK;AAAA,EACL,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4a7de1e70bcb88874b26f4354b9147824dc8d870"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/builds/fe/infra/reds/packages/reds-rn/src/components/
|
|
1
|
+
{"/builds/fe/infra/reds/packages/reds-rn/src/components/NoticeBar/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/NoticeBar/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":43},"end":{"line":6,"column":23}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":36}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":43}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":46}},"4":{"start":{"line":5,"column":2},"end":{"line":5,"column":24}},"5":{"start":{"line":7,"column":49},"end":{"line":12,"column":29}},"6":{"start":{"line":8,"column":2},"end":{"line":8,"column":40}},"7":{"start":{"line":9,"column":2},"end":{"line":9,"column":53}},"8":{"start":{"line":10,"column":2},"end":{"line":10,"column":53}},"9":{"start":{"line":11,"column":2},"end":{"line":11,"column":30}},"10":{"start":{"line":13,"column":44},"end":{"line":19,"column":24}},"11":{"start":{"line":14,"column":2},"end":{"line":14,"column":35}},"12":{"start":{"line":15,"column":2},"end":{"line":15,"column":41}},"13":{"start":{"line":16,"column":2},"end":{"line":16,"column":41}},"14":{"start":{"line":17,"column":2},"end":{"line":17,"column":39}},"15":{"start":{"line":18,"column":2},"end":{"line":18,"column":25}},"16":{"start":{"line":20,"column":37},"end":{"line":30,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":44},"end":{"line":1,"column":45}},"loc":{"start":{"line":1,"column":64},"end":{"line":6,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":7,"column":50},"end":{"line":7,"column":51}},"loc":{"start":{"line":7,"column":76},"end":{"line":12,"column":1}},"line":7},"2":{"name":"(anonymous_2)","decl":{"start":{"line":13,"column":45},"end":{"line":13,"column":46}},"loc":{"start":{"line":13,"column":66},"end":{"line":19,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":3},"end":{"line":6,"column":22}},"type":"binary-expr","locations":[{"start":{"line":6,"column":3},"end":{"line":6,"column":16}},{"start":{"line":6,"column":20},"end":{"line":6,"column":22}}],"line":6},"1":{"loc":{"start":{"line":12,"column":3},"end":{"line":12,"column":28}},"type":"binary-expr","locations":[{"start":{"line":12,"column":3},"end":{"line":12,"column":22}},{"start":{"line":12,"column":26},"end":{"line":12,"column":28}}],"line":12},"2":{"loc":{"start":{"line":19,"column":3},"end":{"line":19,"column":23}},"type":"binary-expr","locations":[{"start":{"line":19,"column":3},"end":{"line":19,"column":17}},{"start":{"line":19,"column":21},"end":{"line":19,"column":23}}],"line":19}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1},"f":{"0":1,"1":1,"2":1},"b":{"0":[1,1],"1":[1,1],"2":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/NoticeBar/interface/index.ts"],"sourcesContent":["import { ViewStyle } from \"react-native\";\nimport { ReactNode } from \"react\";\n\nexport const enum NoticeBarType {\n BASIC = \"basic\",\n MUTILINE = \"muti-line\",\n SCROLLABLE = \"scrollable\",\n}\n\nexport const enum NoticeBarActionType {\n NONE = \"none\",\n TEXTACTION = \"text-action\",\n ICONACTION = \"icon-action\",\n}\n\nexport const enum NoticeBarTheme {\n INFO = \"info\",\n SUCCESS = \"success\",\n WARNING = \"warning\",\n DANGER = \"danger\",\n}\nexport interface RedsNoticeBar {\n visible?: boolean;\n content: string;\n type?: NoticeBarType;\n withIcon?: boolean;\n closable?: boolean;\n actionType?: NoticeBarActionType;\n theme?: NoticeBarTheme;\n actionText?: string;\n style?: ViewStyle;\n children?: ReactNode;\n textStyle?: ViewStyle;\n onClose?: () => void;\n onClick?: () => void;\n}\n\nexport interface RedsNoticeBarEvent {}\nexport const NoticeBarDefaultProps = {\n visible: true,\n content: \"\",\n type: NoticeBarType.BASIC,\n withIcon: false,\n closable: false,\n actionType: NoticeBarActionType.NONE,\n theme: NoticeBarTheme.INFO,\n style: {},\n textStyle: {},\n};\n"],"mappings":"AAGO,WAAW,gBAAX,kBAAWA,mBAAX;AACL,EAAAA,eAAA,WAAQ;AACR,EAAAA,eAAA,cAAW;AACX,EAAAA,eAAA,gBAAa;AAHG,SAAAA;AAAA,GAAA;AAMX,WAAW,sBAAX,kBAAWC,yBAAX;AACL,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,gBAAa;AACb,EAAAA,qBAAA,gBAAa;AAHG,SAAAA;AAAA,GAAA;AAMX,WAAW,iBAAX,kBAAWC,oBAAX;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,YAAS;AAJO,SAAAA;AAAA,GAAA;AAuBX,aAAM,wBAAwB;AAAA,EACnC,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,OAAO,CAAC;AAAA,EACR,WAAW,CAAC;AACd;","names":["NoticeBarType","NoticeBarActionType","NoticeBarTheme"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8570983024cdd0fe27fccb89fd933d840f846b98"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n },\n horizontalLine: {\n width: \"100%\",\n height: 0.5,\n backgroundColor: themeColor.Fill2,\n },\n verticalLine: {\n width: 0.5,\n height: 24,\n marginTop: 6,\n backgroundColor: themeColor.Fill2,\n },\n });\n return styles;\n};\n"],"names":["style","props","themeColor","useThemeColor","typography","useThemeTypography","styles","StyleSheet","create","modalOverlay","position","top","left","right","bottom","backgroundColor","alwaysColor","MaskBg","centeredView","flex","justifyContent","alignItems","alertContainer","width","White","borderRadius","overflow","boxShadow","alertContent","padding","title","textAlign","marginBottom","fontSize","T2FontSize","fontWeight","T2FontWeight","lineHeight","T2LineHeight","color","Title","message","maxHeight","messageText","C2FontSize","Paragraph","C2LineHeight","C2FontWeight","messageLeft","scrollOverlay","height","footer","flexDirection","paddingTop","footerText","borderTopWidth","borderTopColor","Fill2","paddingBottom","footerLayout","paddingHorizontal","footerHorizontal","paddingVertical","footerVertical","cancelButton","margin","button","dividerBox","marginTop","confirmButton","marginLeft","verButton","footerType","verCancelButton","cancelText","Description","horizontalLine","verticalLine"],"mappings":";;;;;;;;;;;IAKaA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,uEAAc,QAAQ,CAAA,CAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,4EAAmB,QAAQ,CAAA,CAAA;AACxC,EAAA,IAAAC,MAAA,GAASC,uBAAWC,MAAO,CAAA;AAC/BC,IAAAA,YAAc,EAAA;AACZC,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;MACRC,iBAAiBC,yBAAY,CAAAC,MAAAA;KAC/B;AACAC,IAAAA,YAAc,EAAA;AACZR,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA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AA,CAAM0D,YAAiB,KAAA,UAAA,GAAa,CAAI,GAAA,CAAA;AACtDT,MAAAA,MAAQ,EAAA,EAAA;AACRU,MAAAA,iBAAmB,EAAA,EAAA;KACrB;AACAc,IAAAA,UAAY,EAAA;MACVnC,OAAOrC,UAAW,CAAAyE,WAAAA;KACpB;AACAC,IAAAA,cAAgB,EAAA;AACdrD,MAAAA,KAAO,EAAA,MAAA;AACP2B,MAAAA,MAAQ,EAAA,GAAA;MACRnC,iBAAiBb,UAAW,CAAAuD,KAAAA;KAC9B;AACAoB,IAAAA,YAAc,EAAA;AACZtD,MAAAA,KAAO,EAAA,GAAA;AACP2B,MAAAA,MAAQ,EAAA,EAAA;AACRkB,MAAAA,SAAW,EAAA,CAAA;MACXrD,iBAAiBb,UAAW,CAAAuD,KAAAA;AAC9B,KAAA;AACF,GAAC,CAAA,CAAA;AACM,EAAA,OAAAnD,MAAA,CAAA;AACT;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n },\n horizontalLine: {\n width: \"100%\",\n height: 0.5,\n backgroundColor: themeColor.Fill2,\n },\n verticalLine: {\n width: 0.5,\n height: 24,\n marginTop: 6,\n backgroundColor: themeColor.Fill2,\n },\n });\n return styles;\n};\n"],"names":["style","props","themeColor","useThemeColor","typography","useThemeTypography","styles","StyleSheet","create","modalOverlay","position","top","left","right","bottom","backgroundColor","alwaysColor","MaskBg","centeredView","flex","justifyContent","alignItems","alertContainer","width","White","borderRadius","overflow","boxShadow","alertContent","padding","title","textAlign","marginBottom","fontSize","T2FontSize","fontWeight","T2FontWeight","lineHeight","T2LineHeight","color","Title","message","maxHeight","messageText","C2FontSize","Paragraph","C2LineHeight","C2FontWeight","messageLeft","scrollOverlay","height","footer","flexDirection","paddingTop","footerText","borderTopWidth","borderTopColor","Fill2","paddingBottom","footerLayout","paddingHorizontal","footerHorizontal","paddingVertical","footerVertical","cancelButton","margin","button","dividerBox","marginTop","confirmButton","marginLeft","verButton","footerType","verCancelButton","cancelText","Description","horizontalLine","verticalLine"],"mappings":";;;;;;;;;IAKaA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,cAAc,QAAQ,CAAA,CAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,mBAAmB,QAAQ,CAAA,CAAA;AACxC,EAAA,IAAAC,MAAA,GAASC,WAAWC,MAAO,CAAA;AAC/BC,IAAAA,YAAc,EAAA;AACZC,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;MACRC,iBAAiBC,WAAY,CAAAC,MAAAA;KAC/B;AACAC,IAAAA,YAAc,EAAA;AACZR,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;AACRK,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,cAAgB,EAAA,QAAA;AAChBC,MAAAA,UAAY,EAAA,Q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rB;AACAc,IAAAA,UAAY,EAAA;MACVnC,OAAOrC,UAAW,CAAAyE,WAAAA;KACpB;AACAC,IAAAA,cAAgB,EAAA;AACdrD,MAAAA,KAAO,EAAA,MAAA;AACP2B,MAAAA,MAAQ,EAAA,GAAA;MACRnC,iBAAiBb,UAAW,CAAAuD,KAAAA;KAC9B;AACAoB,IAAAA,YAAc,EAAA;AACZtD,MAAAA,KAAO,EAAA,GAAA;AACP2B,MAAAA,MAAQ,EAAA,EAAA;AACRkB,MAAAA,SAAW,EAAA,CAAA;MACXrD,iBAAiBb,UAAW,CAAAuD,KAAAA;AAC9B,KAAA;AACF,GAAC,CAAA,CAAA;AACM,EAAA,OAAAnD,MAAA,CAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xhsreds/reds-rn-next",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3-beta202512232046",
|
|
4
4
|
"author": "贾斌(呀哈) <jiabin@xiaohongshu.com>",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"dependencies": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-native-fs": "2.20.0",
|
|
27
27
|
"react-native-svg": "13.14.0",
|
|
28
28
|
"@xhs/react-native-harmony": "*",
|
|
29
|
-
"@xhsreds/reds-token-next": "0.10.
|
|
29
|
+
"@xhsreds/reds-token-next": "0.10.3-beta202512232046"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
32
32
|
"ozone-schema-web": {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
interface Resources {
|
|
2
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: "
|
|
3
|
+
sureKey: "Confirm";
|
|
4
|
+
satisfyKey: "Satisfy";
|
|
5
|
+
confirmKey: "Confirm";
|
|
6
|
+
uploadingKey: "Uploading";
|
|
7
|
+
resetKey: "Reset";
|
|
8
|
+
NoDataKey: "No data available at the moment";
|
|
9
|
+
liveStreamingKey: "live";
|
|
10
|
+
generallyKey: "Generally";
|
|
11
|
+
uploadFailedKey: "Upload failed";
|
|
12
|
+
submitKey: "Submit";
|
|
13
|
+
requestSuccessfulKey: "Request successful";
|
|
14
|
+
cancelKey: "Cancel";
|
|
15
|
+
PullDownToRefreshKey: "Pull down to refresh";
|
|
16
|
+
selectAllKey: "SelectAll";
|
|
17
|
+
requestDataKey: "Request data";
|
|
18
|
+
closeKey: "Close";
|
|
19
|
+
veryBadKey: "Very bad";
|
|
20
|
+
searchKey: "Search";
|
|
21
|
+
expandKey: "Expand";
|
|
22
|
+
IDCardPhotoKey: "ID card photo";
|
|
23
|
+
finishKey: "Finish";
|
|
24
|
+
surpriseKey: "Surprise";
|
|
25
|
+
releaseRefreshKey: "Release refresh";
|
|
26
|
+
nationalEmblemSideOfIDCardKey: "National emblem side of ID card";
|
|
27
|
+
buttonKey: "Button";
|
|
28
|
+
jumpKey: "Jump";
|
|
29
|
+
disappointmentKey: "Disappointment";
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export default Resources;
|
package/src/i18n/index.json
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"zh_tw": {
|
|
3
|
-
"componentKey": {
|
|
4
|
-
"sureKey": "確定",
|
|
5
|
-
"satisfyKey": "滿意",
|
|
6
|
-
"confirmKey": "確認",
|
|
7
|
-
"uploadingKey": "上傳中",
|
|
8
|
-
"resetKey": "重置",
|
|
9
|
-
"NoDataKey": "暫無數據",
|
|
10
|
-
"liveStreamingKey": "直播",
|
|
11
|
-
"generallyKey": "一般",
|
|
12
|
-
"uploadFailedKey": "上傳失敗",
|
|
13
|
-
"submitKey": "提交",
|
|
14
|
-
"requestSuccessfulKey": "請求成功",
|
|
15
|
-
"cancelKey": "取消",
|
|
16
|
-
"PullDownToRefreshKey": "下拉重繪",
|
|
17
|
-
"selectAllKey": "全選",
|
|
18
|
-
"requestDataKey": "請求數據中",
|
|
19
|
-
"closeKey": "收起",
|
|
20
|
-
"veryBadKey": "極差",
|
|
21
|
-
"searchKey": "蒐索",
|
|
22
|
-
"expandKey": "展開",
|
|
23
|
-
"IDCardPhotoKey": "身份證人像面",
|
|
24
|
-
"finishKey": "完成",
|
|
25
|
-
"surpriseKey": "驚喜",
|
|
26
|
-
"releaseRefreshKey": "鬆開重繪",
|
|
27
|
-
"nationalEmblemSideOfIDCardKey": "身份证国徽面",
|
|
28
|
-
"buttonKey": "按鈕",
|
|
29
|
-
"jumpKey": "跳轉",
|
|
30
|
-
"disappointmentKey": "失望"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
2
|
"en_us": {
|
|
34
3
|
"componentKey": {
|
|
35
4
|
"sureKey": "Confirm",
|
|
@@ -91,5 +60,36 @@
|
|
|
91
60
|
"jumpKey": "跳转",
|
|
92
61
|
"disappointmentKey": "失望"
|
|
93
62
|
}
|
|
63
|
+
},
|
|
64
|
+
"zh_tw": {
|
|
65
|
+
"componentKey": {
|
|
66
|
+
"sureKey": "確定",
|
|
67
|
+
"satisfyKey": "滿意",
|
|
68
|
+
"confirmKey": "確認",
|
|
69
|
+
"uploadingKey": "上傳中",
|
|
70
|
+
"resetKey": "重置",
|
|
71
|
+
"NoDataKey": "暫無數據",
|
|
72
|
+
"liveStreamingKey": "直播",
|
|
73
|
+
"generallyKey": "一般",
|
|
74
|
+
"uploadFailedKey": "上傳失敗",
|
|
75
|
+
"submitKey": "提交",
|
|
76
|
+
"requestSuccessfulKey": "請求成功",
|
|
77
|
+
"cancelKey": "取消",
|
|
78
|
+
"PullDownToRefreshKey": "下拉重繪",
|
|
79
|
+
"selectAllKey": "全選",
|
|
80
|
+
"requestDataKey": "請求數據中",
|
|
81
|
+
"closeKey": "收起",
|
|
82
|
+
"veryBadKey": "極差",
|
|
83
|
+
"searchKey": "蒐索",
|
|
84
|
+
"expandKey": "展開",
|
|
85
|
+
"IDCardPhotoKey": "身份證人像面",
|
|
86
|
+
"finishKey": "完成",
|
|
87
|
+
"surpriseKey": "驚喜",
|
|
88
|
+
"releaseRefreshKey": "鬆開重繪",
|
|
89
|
+
"nationalEmblemSideOfIDCardKey": "身份证国徽面",
|
|
90
|
+
"buttonKey": "按鈕",
|
|
91
|
+
"jumpKey": "跳轉",
|
|
92
|
+
"disappointmentKey": "失望"
|
|
93
|
+
}
|
|
94
94
|
}
|
|
95
95
|
}
|