@xhsreds/reds-rn-next 0.11.1-beta202601091651 → 0.11.1-beta202601131926

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.
Files changed (54) hide show
  1. package/coverage/.tmp/coverage-0.json +1 -1
  2. package/coverage/.tmp/coverage-1.json +1 -1
  3. package/coverage/.tmp/coverage-10.json +1 -1
  4. package/coverage/.tmp/coverage-11.json +1 -1
  5. package/coverage/.tmp/coverage-12.json +1 -1
  6. package/coverage/.tmp/coverage-14.json +1 -1
  7. package/coverage/.tmp/coverage-15.json +1 -1
  8. package/coverage/.tmp/coverage-16.json +1 -1
  9. package/coverage/.tmp/coverage-18.json +1 -1
  10. package/coverage/.tmp/coverage-19.json +1 -1
  11. package/coverage/.tmp/coverage-2.json +1 -1
  12. package/coverage/.tmp/coverage-20.json +1 -1
  13. package/coverage/.tmp/coverage-22.json +1 -1
  14. package/coverage/.tmp/coverage-24.json +1 -1
  15. package/coverage/.tmp/coverage-3.json +1 -1
  16. package/coverage/.tmp/coverage-33.json +1 -1
  17. package/coverage/.tmp/coverage-34.json +1 -1
  18. package/coverage/.tmp/coverage-35.json +1 -1
  19. package/coverage/.tmp/coverage-37.json +1 -1
  20. package/coverage/.tmp/coverage-39.json +1 -1
  21. package/coverage/.tmp/coverage-5.json +1 -1
  22. package/coverage/.tmp/coverage-6.json +1 -1
  23. package/coverage/.tmp/coverage-7.json +1 -1
  24. package/coverage/.tmp/coverage-8.json +1 -1
  25. package/coverage/.tmp/coverage-9.json +1 -1
  26. package/lib/cjs/components/PullRefresh/RefreshControl.js +65 -0
  27. package/lib/cjs/components/PullRefresh/RefreshControl.js.map +1 -0
  28. package/lib/cjs/components/PullRefresh/index.js +2 -0
  29. package/lib/cjs/components/PullRefresh/index.js.map +1 -1
  30. package/lib/cjs/components/Radio/Radio.js +1 -0
  31. package/lib/cjs/components/Radio/Radio.js.map +1 -1
  32. package/lib/cjs/components/Radio/index.js +1 -0
  33. package/lib/cjs/components/Radio/index.js.map +1 -1
  34. package/lib/cjs/index.js +2 -0
  35. package/lib/cjs/index.js.map +1 -1
  36. package/lib/esm/components/PullRefresh/RefreshControl.js +61 -0
  37. package/lib/esm/components/PullRefresh/RefreshControl.js.map +1 -0
  38. package/lib/esm/components/PullRefresh/index.js +1 -0
  39. package/lib/esm/components/PullRefresh/index.js.map +1 -1
  40. package/lib/esm/components/Radio/Radio.js +1 -0
  41. package/lib/esm/components/Radio/Radio.js.map +1 -1
  42. package/lib/esm/components/Radio/index.js +1 -0
  43. package/lib/esm/components/Radio/index.js.map +1 -1
  44. package/lib/esm/index.js +1 -0
  45. package/lib/esm/index.js.map +1 -1
  46. package/lib/src/components/PullRefresh/RefreshControl.d.ts +9 -0
  47. package/lib/src/components/PullRefresh/index.d.ts +2 -1
  48. package/lib/types/components/PullRefresh/RefreshControl.d.ts +9 -0
  49. package/lib/types/components/PullRefresh/index.d.ts +2 -1
  50. package/package.json +2 -2
  51. package/src/components/PullRefresh/RefreshControl.tsx +40 -0
  52. package/src/components/PullRefresh/index.ts +2 -1
  53. package/src/i18n/@types/resources.d.ts +27 -27
  54. package/src/i18n/index.json +31 -31
@@ -1 +1 @@
1
- {"/builds/fe/infra/reds/packages/reds-rn/src/components/Popover/component.tsx":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Popover/component.tsx","statementMap":{"0":{"start":{"line":3,"column":28},"end":{"line":47,"column":1}},"1":{"start":{"line":12,"column":2},"end":{"line":46,"column":11}},"2":{"start":{"line":12,"column":166},"end":{"line":12,"column":180}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":28},"end":{"line":3,"column":29}},"loc":{"start":{"line":11,"column":6},"end":{"line":47,"column":1}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":159},"end":{"line":12,"column":160}},"loc":{"start":{"line":12,"column":166},"end":{"line":12,"column":180}},"line":12}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":42},"end":{"line":16,"column":54}},"type":"binary-expr","locations":[{"start":{"line":16,"column":42},"end":{"line":16,"column":49}},{"start":{"line":16,"column":53},"end":{"line":16,"column":54}}],"line":16}},"s":{"0":1,"1":0,"2":0},"f":{"0":0,"1":0},"b":{"0":[0,0]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Popover/component.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport { Modal, View, Pressable, GestureResponderEvent, Animated, TouchableWithoutFeedback } from \"react-native\";\n\nexport const ModalWrapper = ({\n needModal,\n visible,\n children,\n onClickMask,\n opacity,\n progress,\n zIndex,\n}: {\n needModal?: boolean;\n visible: boolean;\n children: ReactNode;\n onClickMask: (e: GestureResponderEvent) => any;\n opacity?: number;\n progress: Animated.Value | number;\n zIndex: number;\n}) => {\n // if (!needModal) return visible ? children : null\n return (\n <Modal visible={visible} transparent collapsable={false}>\n <TouchableWithoutFeedback onPress={(e) => onClickMask(e)}>\n <Animated.View\n style={{\n backgroundColor: `rgba(0, 0, 0, ${opacity || 0})`,\n position: \"absolute\",\n height: \"100%\",\n width: \"100%\",\n flex: 1,\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n zIndex,\n opacity: progress,\n }}\n >\n {children}\n </Animated.View>\n </TouchableWithoutFeedback>\n </Modal>\n );\n};\n"],"mappings":"AAwBQ;AAvBR,SAAS,OAA+C,UAAU,gCAAgC;AAE3F,aAAM,eAAe,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAQM;AAEJ,SACE,uBAAC,SAAM,SAAkB,aAAW,MAAC,aAAa,OAChD,iCAAC,4BAAyB,SAAS,CAAC,MAAM,YAAY,CAAC,GACrD;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACC,OAAO;AAAA,QACL,iBAAiB,iBAAiB,WAAW,CAAC;AAAA,QAC9C,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,MAAM;AAAA,QACN,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,QACP;AAAA,QACA,SAAS;AAAA,MACX;AAAA,MAEC;AAAA;AAAA,IAfH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBA,KAjBF;AAAA;AAAA;AAAA;AAAA,SAkBA,KAnBF;AAAA;AAAA;AAAA;AAAA,SAoBA;AAEJ;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"29687ce1fcaacf48f289825960d2df4db0186be6"}}
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
- {"/builds/fe/infra/reds/packages/reds-rn/src/components/CheckBoxGroup/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/CheckBoxGroup/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":49},"end":{"line":5,"column":29}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":52}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":48}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":30}},"4":{"start":{"line":6,"column":47},"end":{"line":10,"column":27}},"5":{"start":{"line":7,"column":2},"end":{"line":7,"column":40}},"6":{"start":{"line":8,"column":2},"end":{"line":8,"column":38}},"7":{"start":{"line":9,"column":2},"end":{"line":9,"column":28}},"8":{"start":{"line":11,"column":47},"end":{"line":16,"column":27}},"9":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"10":{"start":{"line":13,"column":2},"end":{"line":13,"column":42}},"11":{"start":{"line":14,"column":2},"end":{"line":14,"column":40}},"12":{"start":{"line":15,"column":2},"end":{"line":15,"column":28}},"13":{"start":{"line":17,"column":43},"end":{"line":22,"column":23}},"14":{"start":{"line":18,"column":2},"end":{"line":18,"column":34}},"15":{"start":{"line":19,"column":2},"end":{"line":19,"column":34}},"16":{"start":{"line":20,"column":2},"end":{"line":20,"column":34}},"17":{"start":{"line":21,"column":2},"end":{"line":21,"column":24}},"18":{"start":{"line":23,"column":41},"end":{"line":30,"column":1}},"19":{"start":{"line":31,"column":40},"end":{"line":37,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":50},"end":{"line":1,"column":51}},"loc":{"start":{"line":1,"column":76},"end":{"line":5,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":48},"end":{"line":6,"column":49}},"loc":{"start":{"line":6,"column":72},"end":{"line":10,"column":1}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":11,"column":48},"end":{"line":11,"column":49}},"loc":{"start":{"line":11,"column":72},"end":{"line":16,"column":1}},"line":11},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":44},"end":{"line":17,"column":45}},"loc":{"start":{"line":17,"column":64},"end":{"line":22,"column":1}},"line":17}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":3},"end":{"line":5,"column":28}},"type":"binary-expr","locations":[{"start":{"line":5,"column":3},"end":{"line":5,"column":22}},{"start":{"line":5,"column":26},"end":{"line":5,"column":28}}],"line":5},"1":{"loc":{"start":{"line":10,"column":3},"end":{"line":10,"column":26}},"type":"binary-expr","locations":[{"start":{"line":10,"column":3},"end":{"line":10,"column":20}},{"start":{"line":10,"column":24},"end":{"line":10,"column":26}}],"line":10},"2":{"loc":{"start":{"line":16,"column":3},"end":{"line":16,"column":26}},"type":"binary-expr","locations":[{"start":{"line":16,"column":3},"end":{"line":16,"column":20}},{"start":{"line":16,"column":24},"end":{"line":16,"column":26}}],"line":16},"3":{"loc":{"start":{"line":22,"column":3},"end":{"line":22,"column":22}},"type":"binary-expr","locations":[{"start":{"line":22,"column":3},"end":{"line":22,"column":16}},{"start":{"line":22,"column":20},"end":{"line":22,"column":22}}],"line":22}},"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,"17":1,"18":1,"19":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1,1],"1":[1,1],"2":[1,1],"3":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/CheckBoxGroup/interface/index.ts"],"sourcesContent":["import { ViewStyle, TextStyle } from \"react-native\";\nimport { ReactNode } from \"react\";\n\nexport interface CheckBoxGroupOption {\n label: string;\n value: string | number;\n}\n\nexport const enum CheckBoxGroupLayout {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport const enum CheckBoxPlacement {\n RIGHT = \"right\",\n LEFT = \"left\",\n}\n\nexport const enum CheckBoxGroupSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n}\n\nexport const enum CheckedStatus {\n FULL = \"full\",\n HALF = \"half\",\n NONE = \"none\",\n}\nexport interface RedsCheckBoxGroup {\n value?: string[] | number[];\n options?: CheckBoxGroupOption[];\n disable?: boolean;\n full?: boolean;\n fullText?: string;\n fullContainerStyle?: ViewStyle;\n checkboxStyle?: ViewStyle;\n layout?: CheckBoxGroupLayout;\n size?: CheckBoxGroupSize;\n onChange?: (value: string[] | number[]) => void;\n children?: ReactNode[];\n}\n\nexport interface RedsCheckBoxGroupEvent {}\nexport const CheckBoxGroupDefaultProps = {\n value: [],\n options: [],\n disable: false,\n full: false,\n layout: CheckBoxGroupLayout.HORIZONTAL,\n size: CheckBoxGroupSize.LARGE,\n};\n\nexport interface RedsCheckBox {\n value: string | number;\n label?: string;\n placement?: CheckBoxPlacement;\n disable?: boolean;\n checked?: boolean;\n layout?: CheckBoxGroupLayout;\n style?: ViewStyle;\n size?: CheckBoxGroupSize;\n onChange?: (value: string | number, checked: boolean) => void;\n isControl?: boolean;\n labelStyle?: ViewStyle;\n labelTextStyle?: TextStyle;\n isGroup?: boolean;\n checkboxStyle?: ViewStyle;\n}\n\nexport const RedsCheckBoxDefaultProps = {\n placement: CheckBoxPlacement.RIGHT,\n layout: CheckBoxGroupLayout.HORIZONTAL,\n size: CheckBoxGroupSize.MEDIUM,\n isControl: true,\n isGroup: false,\n};\n\nexport interface ICheckBoxGroupContext {\n checkList: number[] | string[];\n}\n"],"mappings":"AAQO,WAAW,sBAAX,kBAAWA,yBAAX;AACL,EAAAA,qBAAA,gBAAa;AACb,EAAAA,qBAAA,cAAW;AAFK,SAAAA;AAAA,GAAA;AAKX,WAAW,oBAAX,kBAAWC,uBAAX;AACL,EAAAA,mBAAA,WAAQ;AACR,EAAAA,mBAAA,UAAO;AAFS,SAAAA;AAAA,GAAA;AAKX,WAAW,oBAAX,kBAAWC,uBAAX;AACL,EAAAA,mBAAA,WAAQ;AACR,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,WAAQ;AAHQ,SAAAA;AAAA,GAAA;AAMX,WAAW,gBAAX,kBAAWC,mBAAX;AACL,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,UAAO;AAHS,SAAAA;AAAA,GAAA;AAoBX,aAAM,4BAA4B;AAAA,EACvC,OAAO,CAAC;AAAA,EACR,SAAS,CAAC;AAAA,EACV,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AACR;AAmBO,aAAM,2BAA2B;AAAA,EACtC,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AACX;","names":["CheckBoxGroupLayout","CheckBoxPlacement","CheckBoxGroupSize","CheckedStatus"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fc7c8b5a271c82ad6926938b49b00c3dfd14f542"}}
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/Picker/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":34},"end":{"line":12,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":13},"end":{"line":2,"column":14}},"loc":{"start":{"line":2,"column":19},"end":{"line":3,"column":3}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":12},"end":{"line":4,"column":13}},"loc":{"start":{"line":4,"column":18},"end":{"line":5,"column":3}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":6,"column":12},"end":{"line":6,"column":13}},"loc":{"start":{"line":6,"column":18},"end":{"line":7,"column":3}},"line":6}},"branchMap":{},"s":{"0":1},"f":{"0":0,"1":0,"2":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nimport { SheetsType } from \"../../Sheets\";\n\ntype SheetsSize = SheetsType.SheetsSize;\n\nexport interface Column {\n label: string;\n value: string;\n}\nexport interface RedsPicker {\n onConfirm?: (val: string[]) => void;\n onCancel?: () => void;\n onChange?: (val: string[]) => void;\n columns: Column[][];\n value: string[];\n visible: boolean;\n accessibility?: Object;\n hostName?: string;\n bottom?: any;\n}\n\nexport interface RedsPickerEvent {}\nexport const PickerDefaultProps = {\n onConfirm: () => {},\n onCancel: () => {},\n onChange: () => {},\n columns: [],\n value: [],\n visible: false,\n accessibility: {},\n};\n"],"mappings":"AAuBO,aAAM,qBAAqB;AAAA,EAChC,WAAW,MAAM;AAAA,EAAC;AAAA,EAClB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,SAAS,CAAC;AAAA,EACV,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EACT,eAAe,CAAC;AAClB;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a054bd43402933bffcf3758b7f508a8aa18b200a"}}
1
+ {"/builds/fe/infra/reds/packages/reds-rn/src/components/DatePicker/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/DatePicker/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":44},"end":{"line":11,"column":24}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":51}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":35}},"4":{"start":{"line":5,"column":2},"end":{"line":5,"column":35}},"5":{"start":{"line":6,"column":2},"end":{"line":6,"column":47}},"6":{"start":{"line":7,"column":2},"end":{"line":7,"column":59}},"7":{"start":{"line":8,"column":2},"end":{"line":8,"column":71}},"8":{"start":{"line":9,"column":2},"end":{"line":9,"column":59}},"9":{"start":{"line":10,"column":2},"end":{"line":10,"column":25}},"10":{"start":{"line":12,"column":38},"end":{"line":24,"column":1}},"11":{"start":{"line":15,"column":24},"end":{"line":15,"column":29}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":45},"end":{"line":1,"column":46}},"loc":{"start":{"line":1,"column":66},"end":{"line":11,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":13},"end":{"line":15,"column":14}},"loc":{"start":{"line":15,"column":24},"end":{"line":15,"column":29}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":12},"end":{"line":16,"column":13}},"loc":{"start":{"line":16,"column":23},"end":{"line":17,"column":3}},"line":16},"3":{"name":"(anonymous_3)","decl":{"start":{"line":18,"column":12},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":18},"end":{"line":19,"column":3}},"line":18},"4":{"name":"(anonymous_4)","decl":{"start":{"line":20,"column":13},"end":{"line":20,"column":14}},"loc":{"start":{"line":20,"column":24},"end":{"line":21,"column":3}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":3},"end":{"line":11,"column":23}},"type":"binary-expr","locations":[{"start":{"line":11,"column":3},"end":{"line":11,"column":17}},{"start":{"line":11,"column":21},"end":{"line":11,"column":23}}],"line":11}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":0},"f":{"0":1,"1":0,"2":0,"3":0,"4":0},"b":{"0":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/DatePicker/interface/index.ts"],"sourcesContent":["export enum DatePickerMode {\n YearMonthDay = \"yearmonthday\",\n YearMonth = \"yearmonth\",\n Year = \"year\",\n Hour = \"hour\",\n HourMinute = \"hourminute\",\n HourMinuteSecond = \"hourminutesecond\",\n YearMonthDayHourMinute = \"yearmonthdayhourminute\",\n YearMonthDayHour = \"yearmonthdayhour\",\n}\nexport interface RedsDatePicker {\n visible: boolean;\n value: string;\n cancelText?: string;\n mode?: DatePickerMode;\n startYear?: number;\n endYear?: number;\n startTime?: string;\n endTime?: string;\n label: string;\n formatter?: (value: string) => any;\n onChange?: (value: string) => void;\n onCancel?: () => void;\n onConfirm?: (value: string) => void;\n isDatePattern?: boolean;\n closeText?: string;\n mask?: boolean;\n hostName?: string;\n}\n\nexport interface RedsDatePickerEvent {}\nexport const DatePickerDefaultProps = {\n visible: false,\n mode: DatePickerMode.YearMonthDay,\n formatter: (value: string) => value,\n onChange: (value: string) => {},\n onCancel: () => {},\n onConfirm: (value: string) => {},\n isDatePattern: false,\n hostName: \"root\",\n};\n"],"mappings":"AAAO,WAAK,iBAAL,kBAAKA,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,sBAAmB;AACnB,EAAAA,gBAAA,4BAAyB;AACzB,EAAAA,gBAAA,sBAAmB;AART,SAAAA;AAAA,GAAA;AA+BL,aAAM,yBAAyB;AAAA,EACpC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW,CAAC,UAAkB;AAAA,EAC9B,UAAU,CAAC,UAAkB;AAAA,EAAC;AAAA,EAC9B,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,WAAW,CAAC,UAAkB;AAAA,EAAC;AAAA,EAC/B,eAAe;AAAA,EACf,UAAU;AACZ;","names":["DatePickerMode"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9e76fc27de5c3917033e01222a48d018ce0fa2fd"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":34},"end":{"line":12,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":13},"end":{"line":2,"column":14}},"loc":{"start":{"line":2,"column":19},"end":{"line":3,"column":3}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":12},"end":{"line":4,"column":13}},"loc":{"start":{"line":4,"column":18},"end":{"line":5,"column":3}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":6,"column":12},"end":{"line":6,"column":13}},"loc":{"start":{"line":6,"column":18},"end":{"line":7,"column":3}},"line":6}},"branchMap":{},"s":{"0":1},"f":{"0":0,"1":0,"2":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nimport { SheetsType } from \"../../Sheets\";\n\ntype SheetsSize = SheetsType.SheetsSize;\n\nexport interface Column {\n label: string;\n value: string;\n}\nexport interface RedsPicker {\n onConfirm?: (val: string[]) => void;\n onCancel?: () => void;\n onChange?: (val: string[]) => void;\n columns: Column[][];\n value: string[];\n visible: boolean;\n accessibility?: Object;\n hostName?: string;\n bottom?: any;\n}\n\nexport interface RedsPickerEvent {}\nexport const PickerDefaultProps = {\n onConfirm: () => {},\n onCancel: () => {},\n onChange: () => {},\n columns: [],\n value: [],\n visible: false,\n accessibility: {},\n};\n"],"mappings":"AAuBO,aAAM,qBAAqB;AAAA,EAChC,WAAW,MAAM;AAAA,EAAC;AAAA,EAClB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,SAAS,CAAC;AAAA,EACV,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EACT,eAAe,CAAC;AAClB;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a054bd43402933bffcf3758b7f508a8aa18b200a"}}
@@ -1 +1 @@
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
+ {"/builds/fe/infra/reds/packages/reds-rn/src/components/CheckBoxGroup/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/CheckBoxGroup/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":49},"end":{"line":5,"column":29}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":52}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":48}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":30}},"4":{"start":{"line":6,"column":47},"end":{"line":10,"column":27}},"5":{"start":{"line":7,"column":2},"end":{"line":7,"column":40}},"6":{"start":{"line":8,"column":2},"end":{"line":8,"column":38}},"7":{"start":{"line":9,"column":2},"end":{"line":9,"column":28}},"8":{"start":{"line":11,"column":47},"end":{"line":16,"column":27}},"9":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"10":{"start":{"line":13,"column":2},"end":{"line":13,"column":42}},"11":{"start":{"line":14,"column":2},"end":{"line":14,"column":40}},"12":{"start":{"line":15,"column":2},"end":{"line":15,"column":28}},"13":{"start":{"line":17,"column":43},"end":{"line":22,"column":23}},"14":{"start":{"line":18,"column":2},"end":{"line":18,"column":34}},"15":{"start":{"line":19,"column":2},"end":{"line":19,"column":34}},"16":{"start":{"line":20,"column":2},"end":{"line":20,"column":34}},"17":{"start":{"line":21,"column":2},"end":{"line":21,"column":24}},"18":{"start":{"line":23,"column":41},"end":{"line":30,"column":1}},"19":{"start":{"line":31,"column":40},"end":{"line":37,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":50},"end":{"line":1,"column":51}},"loc":{"start":{"line":1,"column":76},"end":{"line":5,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":48},"end":{"line":6,"column":49}},"loc":{"start":{"line":6,"column":72},"end":{"line":10,"column":1}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":11,"column":48},"end":{"line":11,"column":49}},"loc":{"start":{"line":11,"column":72},"end":{"line":16,"column":1}},"line":11},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":44},"end":{"line":17,"column":45}},"loc":{"start":{"line":17,"column":64},"end":{"line":22,"column":1}},"line":17}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":3},"end":{"line":5,"column":28}},"type":"binary-expr","locations":[{"start":{"line":5,"column":3},"end":{"line":5,"column":22}},{"start":{"line":5,"column":26},"end":{"line":5,"column":28}}],"line":5},"1":{"loc":{"start":{"line":10,"column":3},"end":{"line":10,"column":26}},"type":"binary-expr","locations":[{"start":{"line":10,"column":3},"end":{"line":10,"column":20}},{"start":{"line":10,"column":24},"end":{"line":10,"column":26}}],"line":10},"2":{"loc":{"start":{"line":16,"column":3},"end":{"line":16,"column":26}},"type":"binary-expr","locations":[{"start":{"line":16,"column":3},"end":{"line":16,"column":20}},{"start":{"line":16,"column":24},"end":{"line":16,"column":26}}],"line":16},"3":{"loc":{"start":{"line":22,"column":3},"end":{"line":22,"column":22}},"type":"binary-expr","locations":[{"start":{"line":22,"column":3},"end":{"line":22,"column":16}},{"start":{"line":22,"column":20},"end":{"line":22,"column":22}}],"line":22}},"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,"17":1,"18":1,"19":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1,1],"1":[1,1],"2":[1,1],"3":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/CheckBoxGroup/interface/index.ts"],"sourcesContent":["import { ViewStyle, TextStyle } from \"react-native\";\nimport { ReactNode } from \"react\";\n\nexport interface CheckBoxGroupOption {\n label: string;\n value: string | number;\n}\n\nexport const enum CheckBoxGroupLayout {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport const enum CheckBoxPlacement {\n RIGHT = \"right\",\n LEFT = \"left\",\n}\n\nexport const enum CheckBoxGroupSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n}\n\nexport const enum CheckedStatus {\n FULL = \"full\",\n HALF = \"half\",\n NONE = \"none\",\n}\nexport interface RedsCheckBoxGroup {\n value?: string[] | number[];\n options?: CheckBoxGroupOption[];\n disable?: boolean;\n full?: boolean;\n fullText?: string;\n fullContainerStyle?: ViewStyle;\n checkboxStyle?: ViewStyle;\n layout?: CheckBoxGroupLayout;\n size?: CheckBoxGroupSize;\n onChange?: (value: string[] | number[]) => void;\n children?: ReactNode[];\n}\n\nexport interface RedsCheckBoxGroupEvent {}\nexport const CheckBoxGroupDefaultProps = {\n value: [],\n options: [],\n disable: false,\n full: false,\n layout: CheckBoxGroupLayout.HORIZONTAL,\n size: CheckBoxGroupSize.LARGE,\n};\n\nexport interface RedsCheckBox {\n value: string | number;\n label?: string;\n placement?: CheckBoxPlacement;\n disable?: boolean;\n checked?: boolean;\n layout?: CheckBoxGroupLayout;\n style?: ViewStyle;\n size?: CheckBoxGroupSize;\n onChange?: (value: string | number, checked: boolean) => void;\n isControl?: boolean;\n labelStyle?: ViewStyle;\n labelTextStyle?: TextStyle;\n isGroup?: boolean;\n checkboxStyle?: ViewStyle;\n}\n\nexport const RedsCheckBoxDefaultProps = {\n placement: CheckBoxPlacement.RIGHT,\n layout: CheckBoxGroupLayout.HORIZONTAL,\n size: CheckBoxGroupSize.MEDIUM,\n isControl: true,\n isGroup: false,\n};\n\nexport interface ICheckBoxGroupContext {\n checkList: number[] | string[];\n}\n"],"mappings":"AAQO,WAAW,sBAAX,kBAAWA,yBAAX;AACL,EAAAA,qBAAA,gBAAa;AACb,EAAAA,qBAAA,cAAW;AAFK,SAAAA;AAAA,GAAA;AAKX,WAAW,oBAAX,kBAAWC,uBAAX;AACL,EAAAA,mBAAA,WAAQ;AACR,EAAAA,mBAAA,UAAO;AAFS,SAAAA;AAAA,GAAA;AAKX,WAAW,oBAAX,kBAAWC,uBAAX;AACL,EAAAA,mBAAA,WAAQ;AACR,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,WAAQ;AAHQ,SAAAA;AAAA,GAAA;AAMX,WAAW,gBAAX,kBAAWC,mBAAX;AACL,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,UAAO;AAHS,SAAAA;AAAA,GAAA;AAoBX,aAAM,4BAA4B;AAAA,EACvC,OAAO,CAAC;AAAA,EACR,SAAS,CAAC;AAAA,EACV,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AACR;AAmBO,aAAM,2BAA2B;AAAA,EACtC,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AACX;","names":["CheckBoxGroupLayout","CheckBoxPlacement","CheckBoxGroupSize","CheckedStatus"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fc7c8b5a271c82ad6926938b49b00c3dfd14f542"}}
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var reactNative = require('react-native');
7
+ var components_ProgressIndicator_ProgressIndicator = require('../ProgressIndicator/ProgressIndicator.js');
8
+ require('../../_chunks/CbISStRO.js');
9
+ require('../../_chunks/CJ7e9O3k.js');
10
+ require('../ProgressIndicator/lottie/getLottieSource.js');
11
+ require('../ProgressIndicator/lottie/index.js');
12
+ require('../ProgressIndicator/lottie/pullup.js');
13
+ require('../ProgressIndicator/lottie/pullup_dark.js');
14
+ require('../ProgressIndicator/lottie/refresh.js');
15
+ require('../ProgressIndicator/lottie/refresh_dark.js');
16
+ require('../ProgressIndicator/lottie/refresh_primary.js');
17
+ require('../ProgressIndicator/lottie/progress_loading.js');
18
+ require('../ProgressIndicator/lottie/progress_loading_dark.js');
19
+ require('../ProgressIndicator/lottie/progress_loading_primary.js');
20
+ require('../ProgressIndicator/lottie/loading.js');
21
+ require('../ProgressIndicator/lottie/loading_dark.js');
22
+ require('../ProgressIndicator/lottie/loading_primary.js');
23
+ require('../ConfigProvider/hooks/ConfigCache/ConfigCache.js');
24
+ require('@xhsreds/reds-token-next');
25
+ require('../../pvCount/useUnmountedProcess.js');
26
+ require('@xhs/reds-apm/src/index.native');
27
+ require('../../pvCount/pvData.js');
28
+ require('../ConfigProvider/hooks/themeToken/useThemeToken.js');
29
+ require('../ConfigProvider/hooks/ConfigContext/ConfigContext.js');
30
+ require('../ConfigProvider/hooks/themeToken/useColorMode.js');
31
+ require('../ProgressIndicator/styles.js');
32
+ require('@xhs/lottie-react-native');
33
+
34
+ var IOSRefreshControl = function IOSRefreshControl(_ref) {
35
+ var onRefresh = _ref.onRefresh,
36
+ refreshing = _ref.refreshing,
37
+ progressViewOffset = _ref.progressViewOffset;
38
+ _ref.height;
39
+ return /* @__PURE__ */React.createElement(reactNative.RefreshControl, {
40
+ refreshing: refreshing,
41
+ onRefresh: onRefresh,
42
+ style: {
43
+ backgroundColor: "transparent"
44
+ },
45
+ tintColor: "transparent"
46
+ }, refreshing && /* @__PURE__ */React.createElement(reactNative.View, {
47
+ style: {
48
+ position: "absolute",
49
+ top: progressViewOffset || 0,
50
+ left: 0,
51
+ right: 0,
52
+ zIndex: 1e3,
53
+ alignItems: "center",
54
+ width: "100%",
55
+ backgroundColor: "transparent",
56
+ justifyContent: "center"
57
+ }
58
+ }, /* @__PURE__ */React.createElement(components_ProgressIndicator_ProgressIndicator.default, {
59
+ type: "refresh",
60
+ size: 36
61
+ })));
62
+ };
63
+
64
+ exports.default = IOSRefreshControl;
65
+ //# sourceMappingURL=RefreshControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshControl.js","sources":["../../../../src/components/PullRefresh/RefreshControl.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, RefreshControl as RNRefreshControl } from \"react-native\";\nimport { ProgressIndicator } from \"../ProgressIndicator\";\n\ninterface IOSRefreshControlProps {\n onRefresh: () => void;\n refreshing: boolean;\n progressViewOffset?: number;\n height?: number;\n}\nconst IOSRefreshControl = ({ onRefresh, refreshing, progressViewOffset, height }: IOSRefreshControlProps) => {\n return (\n <RNRefreshControl\n refreshing={refreshing}\n onRefresh={onRefresh}\n style={{ backgroundColor: \"transparent\" }}\n tintColor=\"transparent\" // 隐藏原生指示器\n >\n {refreshing && (\n <View\n style={{\n position: \"absolute\",\n top: progressViewOffset || 0,\n left: 0,\n right: 0,\n zIndex: 1000,\n alignItems: \"center\",\n width: \"100%\",\n backgroundColor: \"transparent\",\n justifyContent: \"center\",\n }}\n >\n <ProgressIndicator type={\"refresh\"} size={36} />\n </View>\n )}\n </RNRefreshControl>\n );\n};\n\nexport default IOSRefreshControl;\n"],"names":["IOSRefreshControl","onRefresh","refreshing","_ref","progressViewOffset","height","React","createElement","RNRefreshControl","style","backgroundColor","tintColor","View","position","top","left","right","zIndex","alignItems","width","justifyContent","ProgressIndicator","type","size"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,oBAAoB,SAApBA,wBAAuG;AAAA,EAAA,IAAhFC,iBAAAA;IAAWC,UAAY,GAAAC,IAAA,CAAZD,UAAY,CAAA;IAAAE,kBAAA,GAAAD,IAAA,CAAAC,kBAAA,CAAA;SAAoBC;AAEpE,EAAA,sBAAAC,KAAA,CAAAC,aAAA,CAACC,0BAAA,EAAA;AACCN,IAAAA,UAAA,EAAAA,UAAA;AACAD,IAAAA,SAAA,EAAAA,SAAA;AACAQ,IAAAA,KAAA,EAAO;AAAEC,MAAAA,eAAA,EAAiB,aAAA;KAAc;AACxCC,IAAAA,SAAU,EAAA,aAAA;GAAA,EAETT,UACC,mBAAAI,KAAA,CAAAC,aAAA,CAACK,gBAAA,EAAA;AACCH,IAAAA,KAAO,EAAA;AACLI,MAAAA,QAAU,EAAA,UAAA;MACVC,KAAKV,kBAAsB,IAAA,CAAA;AAC3BW,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,GAAA;AACRC,MAAAA,UAAY,EAAA,QAAA;AACZC,MAAAA,KAAO,EAAA,MAAA;AACPT,MAAAA,eAAiB,EAAA,aAAA;AACjBU,MAAAA,cAAgB,EAAA,QAAA;AAClB,KAAA;AAAA,GAAA,iBAECd,KAAA,CAAAC,aAAA,CAAAc,sDAAA,EAAA;AAAkBC,IAAAA,IAAM,EAAA,SAAA;AAAWC,IAAAA,MAAM,EAAA;GAAI,CAChD,CAEJ,CAAA,CAAA;AAEJ;;;;"}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var components_PullRefresh_PullRefresh = require('./PullRefresh.js');
6
6
  var components_PullRefresh_interface_index = require('../../_chunks/DUU5wf2f.js');
7
+ var components_PullRefresh_RefreshControl = require('./RefreshControl.js');
7
8
  require('../../_chunks/CbISStRO.js');
8
9
  require('react');
9
10
  require('react-native');
@@ -46,4 +47,5 @@ require('@xhs/reds-components/libs/svg');
46
47
  exports.PullRefresh = components_PullRefresh_PullRefresh.default;
47
48
  exports.default = components_PullRefresh_PullRefresh.default;
48
49
  exports.PullRefreshType = components_PullRefresh_interface_index.index;
50
+ exports.RefreshControl = components_PullRefresh_RefreshControl.default;
49
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -124,6 +124,7 @@ require('../Result/Result.js');
124
124
  require('../../_chunks/DOAnQxcP.js');
125
125
  require('../PullRefresh/PullRefresh.js');
126
126
  require('../../_chunks/DUU5wf2f.js');
127
+ require('../PullRefresh/RefreshControl.js');
127
128
  var components_Icon_Icon = require('../Icon/Icon.js');
128
129
  var components_Icon_interface_index = require('../../_chunks/NjAxlnfB.js');
129
130
  require('../Badge/Badge.js');
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.tsx","../../../../src/index.ts"],"sourcesContent":["import React, { memo, useCallback, useContext, useState, useEffect } from \"react\";\nimport { View, Text, TouchableWithoutFeedback, Image } from \"react-native\";\nimport { RedsRadio, RadioDefaultProps } from \"./interface\";\nimport { RadioGroupContext } from \"./RadioGroup\";\nimport {\n getContainerStyle,\n getIconStyleClass,\n getLabelStyle,\n getDividerStyle,\n freestyle,\n hiddenBgStyle,\n getWrapperStyle,\n getUnCheckedStyle,\n getRightIconStyle,\n getRightWrapperStyle,\n} from \"./styles\";\nimport { useThemeColor } from \"../ConfigProvider\";\nimport { Icon, IconType } from \"../../index\";\nimport useMounted from \"../../pvCount/useUnmountedProcess\";\n\nconst Radio = (props: RedsRadio) => {\n useMounted(\"Radio\");\n const finalProps = { ...(RadioDefaultProps as RedsRadio), ...props, isControl: props.isControl ?? true };\n const themeColor = useThemeColor();\n const { name, disabled, children, onClick, type: radioType } = finalProps;\n\n const [_checked, setChecked] = useState(false);\n\n // 从父组件(RadioGroup)获取上下文\n const parent = useContext(RadioGroupContext);\n\n useEffect(() => {\n finalProps.isControl && setChecked(parent?.value === name || finalProps.checked! || finalProps.modelValue || false);\n }, [finalProps.isControl, parent?.value, finalProps.checked, finalProps.modelValue]);\n\n // 确定大小和类型优先级\n const size = finalProps.size || parent?.size || \"large\";\n const type = radioType || parent?.type || \"default\";\n\n // 切换选中状态\n const toggle = useCallback(() => {\n if (_checked) return;\n if (!disabled && !parent?.disabled) {\n if (parent) {\n parent.updateValue(name ?? \"\");\n }\n if (onClick) {\n onClick(name ?? \"\");\n }\n setChecked(true);\n }\n }, [disabled, parent, name, onClick, _checked]);\n\n const containerStyle = getContainerStyle(parent?.direction, parent?.position || \"left\");\n const wrapperStyle = getWrapperStyle(parent?.direction, parent?.position || \"left\");\n const uncheckedStyle = getUnCheckedStyle(size);\n const iconStyleClass = getIconStyleClass(\n _checked,\n size,\n disabled || parent?.disabled,\n parent?.position,\n parent?.direction,\n );\n const labelStyle = getLabelStyle(disabled || parent?.disabled, size, parent?.direction);\n\n const iconSizeMap: Record<\"small\" | \"medium\" | \"large\", number> = {\n small: 12,\n medium: 16,\n large: 20,\n };\n\n const rightStyle = getRightIconStyle(size);\n\n const rightWrapperStyle = getRightWrapperStyle(size, themeColor, props.themeColor);\n\n return (\n <>\n <TouchableWithoutFeedback onPress={toggle}>\n <View style={[containerStyle]}>\n {(parent?.position === \"left\" || !parent?.position || parent?.direction === \"horizontal\") && (\n <View style={iconStyleClass}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hc9m0ki3i06d5494g900000000001nnf3trg\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n\n <View\n style={[\n // @ts-ignore\n wrapperStyle,\n !finalProps.isLast && parent?.direction === \"vertical\" && finalProps.line && getDividerStyle(),\n finalProps.containerStyle,\n ]}\n >\n {children && (\n <View style={[parent?.direction === \"vertical\" && freestyle]}>\n <Text style={[labelStyle, finalProps.textStyle]}>{children}</Text>\n </View>\n )}\n {parent?.position === \"right\" && parent?.direction === \"vertical\" && (\n <View style={[iconStyleClass, type === \"line\" && hiddenBgStyle()]}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://picasso-static.xiaohongshu.com/fe-platform/48c06b6e09bcf1516a6ad071bacab6da505a2980.png\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n </View>\n </View>\n </TouchableWithoutFeedback>\n </>\n );\n};\n\nexport default memo(Radio);\n","export * from \"./components/SegmentedControl\";\nexport * from \"./components/LanguageProvider\";\nexport * from \"./components/NoticeBar\";\nimport { bindPushDataEvent } from \"@xhs/reds-apm/src/index.native\";\nimport { pushGlobalData } from \"./pvCount/pvData\";\nexport * from \"./components/ImagePreview\";\nexport * from \"./components/Carousel\";\nexport * from \"./components/Video\";\nexport * from \"./components/SnackBar\";\nexport * from \"./components/MiniSnackBar\";\nexport * from \"./components/StatusBar\";\nexport * from \"./components/TextView\";\nexport * from \"./components/TextField\";\n// declare global {\n// var eaglet: any;\n// }\n// try {\n// if (typeof global !== \"undefined\" && global?.eaglet) {\n// global?.eaglet?.push?.(\n// {\n// measurement_name: \"reds_component_usage\",\n// measurement_data: {\n// platform: \"rn\",\n// },\n// },\n// \"ApmXrayTracker\",\n// );\n// }\n// } catch (e) {}\nexport * from \"./components/Uploader\";\nexport * from \"./components/Stepper\";\nexport * from \"./components/Rate\";\nexport * from \"./components/CheckBoxGroup\";\nexport * from \"./components/Form\";\nexport * from \"./components/DatePicker\";\nexport * from \"./components/Radio\";\nexport * from \"./components/ActionSheets\";\nexport * from \"./components/Slider\";\nexport * from \"./components/Sheets\";\nexport * from \"./components/PickerView\";\nexport * from \"./components/Picker\";\nexport * from \"./components/Alert\";\nexport * from \"./components/FAB\";\nexport * from \"./components/Toast\";\nexport * from \"./components/DropDown\";\nexport * from \"./components/Progress\";\nexport * from \"./components/TabBar\";\nexport * from \"./components/NavigationBar\";\nexport * from \"./components/BottomBar\";\nexport * from \"./components/List\";\nexport * from \"./components/Skeleton\";\nexport * from \"./components/ProgressIndicator\";\nexport * from \"./components/Divider\";\nexport * from \"./components/Portal\";\nexport * from \"./components/Tag\";\nexport * from \"./components/Image\";\nexport * from \"./components/Button\";\nexport * from \"./components/Popover\";\nexport * from \"./components/Switch\";\nexport * from \"./components/ConfigProvider\";\nexport * from \"./components/Text\";\nexport * from \"./components/Collapse\";\nexport * from \"./components/Empty\";\nexport * from \"./components/Result\";\nexport * from \"./components/PullRefresh\";\nexport * from \"./components/Icon\";\nexport * from \"./components/Badge\";\nexport * from \"./components/Avatar\";\nexport * from \"./components/AvatarGroup\";\nexport * from \"./components/Tab\";\nexport * from \"./components/SlimTabs\";\nexport * from \"./components/SlimAlert\";\nexport * from \"./components/SlimNavigationBar\";\nexport * from \"./components/Search\";\nexport * from \"./components/ActionablePopover\";\nimport \"react-native-url-polyfill/auto\";\nbindPushDataEvent(pushGlobalData);\n"],"names":["Radio","props","_props$isControl","useMounted","finalProps","_objectSpread","RadioDefaultProps","isControl","themeColor","useThemeColor","name","disabled","children","onClick","radioType","type","_useState","useState","_useState2","_slicedToArray","_checked","setChecked","parent","useContext","RadioGroupContext","useEffect","value","checked","modelValue","size","toggle","useCallback","updateValue","containerStyle","getContainerStyle","direction","position","wrapperStyle","getWrapperStyle","uncheckedStyle","getUnCheckedStyle","iconStyleClass","getIconStyleClass","labelStyle","getLabelStyle","iconSizeMap","small","medium","large","rightStyle","getRightIconStyle","rightWrapperStyle","getRightWrapperStyle","React","createElement","Fragment","TouchableWithoutFeedback","onPress","View","style","Icon","icon","customIcon","styles","customIconStyle","IconType","image","Image","source","uri","hiddenBgStyle","isLast","line","getDividerStyle","freestyle","Text","textStyle","memo","bindPushDataEvent","pushGlobalData"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AAAA,EAAA,IAAAC,gBAAA,CAAA;EAClCC,mCAAA,CAAW,OAAO,CAAA,CAAA;EACZ,IAAAC,UAAA,GAAAC,wCAAA,CAAAA,wCAAA,CAAAA,wCAAA,CAAA,EAAA,EAAmBC,kDAAA,CAAA,EAAoCL,KAAO,CAAA,EAAA,EAAA,EAAA;IAAAM,SAAA,EAAA,CAAAL,gBAAA,GAAWD,KAAM,CAAAM,SAAA,MAAAL,IAAAA,IAAAA,gBAAA,KAAAA,KAAAA,CAAAA,GAAAA,gBAAA,GAAa,IAAA;GAAK,CAAA,CAAA;AACvG,EAAA,IAAMM,aAAaC,sEAAc,EAAA,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,CAAA4D,eAAA;AACnBjD,IAAAA,IAAA,EAAMkD,wCAAkB,CAAAC,KAAA;AACxBrD,IAAAA,OAAS,EAAAiB,MAAAA;GACX,CAEA,GAAAV,QAAA,mBACGiC,KAAA,CAAAC,aAAA,CAAAI,gBAAA,EAAA;AAAKC,IAAAA,OAAOR,iBAAAA;AACX,GAAA,iBAAAE,KAAA,CAAAC,aAAA,CAACa,iBAAA,EAAA;AACCC,IAAAA,MAAQ,EAAA;AACNC,MAAAA,GAAA,EACEjE,WAAW0D,UACX,IAAA,wFAAA;KACJ;AACAH,IAAAA,KAAO,EAAA,CAACV,UAAY,EAAA7C,UAAA,CAAW4D,eAAe,CAAA;AAAA,GAChD,CACF,CAAA,EAGH,CAAC5C,QAAA,uCAAasC,gBAAK,EAAA;IAAAC,KAAA,EAAO,CAACpB,cAAA,EAAgBxB,IAAS,KAAA,MAAA,IAAUuD,qCAAc,EAAC,CAAA;GAAG,CACnF,CAEJ,CACF,CACF,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,cAAeO,aAAAA,WAAK7E,KAAK,CAAA;;ACpFzB8E,8BAAA,CAAkBC,6BAAc,CAAA;;;;"}
1
+ {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.tsx","../../../../src/index.ts"],"sourcesContent":["import React, { memo, useCallback, useContext, useState, useEffect } from \"react\";\nimport { View, Text, TouchableWithoutFeedback, Image } from \"react-native\";\nimport { RedsRadio, RadioDefaultProps } from \"./interface\";\nimport { RadioGroupContext } from \"./RadioGroup\";\nimport {\n getContainerStyle,\n getIconStyleClass,\n getLabelStyle,\n getDividerStyle,\n freestyle,\n hiddenBgStyle,\n getWrapperStyle,\n getUnCheckedStyle,\n getRightIconStyle,\n getRightWrapperStyle,\n} from \"./styles\";\nimport { useThemeColor } from \"../ConfigProvider\";\nimport { Icon, IconType } from \"../../index\";\nimport useMounted from \"../../pvCount/useUnmountedProcess\";\n\nconst Radio = (props: RedsRadio) => {\n useMounted(\"Radio\");\n const finalProps = { ...(RadioDefaultProps as RedsRadio), ...props, isControl: props.isControl ?? true };\n const themeColor = useThemeColor();\n const { name, disabled, children, onClick, type: radioType } = finalProps;\n\n const [_checked, setChecked] = useState(false);\n\n // 从父组件(RadioGroup)获取上下文\n const parent = useContext(RadioGroupContext);\n\n useEffect(() => {\n finalProps.isControl && setChecked(parent?.value === name || finalProps.checked! || finalProps.modelValue || false);\n }, [finalProps.isControl, parent?.value, finalProps.checked, finalProps.modelValue]);\n\n // 确定大小和类型优先级\n const size = finalProps.size || parent?.size || \"large\";\n const type = radioType || parent?.type || \"default\";\n\n // 切换选中状态\n const toggle = useCallback(() => {\n if (_checked) return;\n if (!disabled && !parent?.disabled) {\n if (parent) {\n parent.updateValue(name ?? \"\");\n }\n if (onClick) {\n onClick(name ?? \"\");\n }\n setChecked(true);\n }\n }, [disabled, parent, name, onClick, _checked]);\n\n const containerStyle = getContainerStyle(parent?.direction, parent?.position || \"left\");\n const wrapperStyle = getWrapperStyle(parent?.direction, parent?.position || \"left\");\n const uncheckedStyle = getUnCheckedStyle(size);\n const iconStyleClass = getIconStyleClass(\n _checked,\n size,\n disabled || parent?.disabled,\n parent?.position,\n parent?.direction,\n );\n const labelStyle = getLabelStyle(disabled || parent?.disabled, size, parent?.direction);\n\n const iconSizeMap: Record<\"small\" | \"medium\" | \"large\", number> = {\n small: 12,\n medium: 16,\n large: 20,\n };\n\n const rightStyle = getRightIconStyle(size);\n\n const rightWrapperStyle = getRightWrapperStyle(size, themeColor, props.themeColor);\n\n return (\n <>\n <TouchableWithoutFeedback onPress={toggle}>\n <View style={[containerStyle]}>\n {(parent?.position === \"left\" || !parent?.position || parent?.direction === \"horizontal\") && (\n <View style={iconStyleClass}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hc9m0ki3i06d5494g900000000001nnf3trg\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n\n <View\n style={[\n // @ts-ignore\n wrapperStyle,\n !finalProps.isLast && parent?.direction === \"vertical\" && finalProps.line && getDividerStyle(),\n finalProps.containerStyle,\n ]}\n >\n {children && (\n <View style={[parent?.direction === \"vertical\" && freestyle]}>\n <Text style={[labelStyle, finalProps.textStyle]}>{children}</Text>\n </View>\n )}\n {parent?.position === \"right\" && parent?.direction === \"vertical\" && (\n <View style={[iconStyleClass, type === \"line\" && hiddenBgStyle()]}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://picasso-static.xiaohongshu.com/fe-platform/48c06b6e09bcf1516a6ad071bacab6da505a2980.png\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n </View>\n </View>\n </TouchableWithoutFeedback>\n </>\n );\n};\n\nexport default memo(Radio);\n","export * from \"./components/SegmentedControl\";\nexport * from \"./components/LanguageProvider\";\nexport * from \"./components/NoticeBar\";\nimport { bindPushDataEvent } from \"@xhs/reds-apm/src/index.native\";\nimport { pushGlobalData } from \"./pvCount/pvData\";\nexport * from \"./components/ImagePreview\";\nexport * from \"./components/Carousel\";\nexport * from \"./components/Video\";\nexport * from \"./components/SnackBar\";\nexport * from \"./components/MiniSnackBar\";\nexport * from \"./components/StatusBar\";\nexport * from \"./components/TextView\";\nexport * from \"./components/TextField\";\n// declare global {\n// var eaglet: any;\n// }\n// try {\n// if (typeof global !== \"undefined\" && global?.eaglet) {\n// global?.eaglet?.push?.(\n// {\n// measurement_name: \"reds_component_usage\",\n// measurement_data: {\n// platform: \"rn\",\n// },\n// },\n// \"ApmXrayTracker\",\n// );\n// }\n// } catch (e) {}\nexport * from \"./components/Uploader\";\nexport * from \"./components/Stepper\";\nexport * from \"./components/Rate\";\nexport * from \"./components/CheckBoxGroup\";\nexport * from \"./components/Form\";\nexport * from \"./components/DatePicker\";\nexport * from \"./components/Radio\";\nexport * from \"./components/ActionSheets\";\nexport * from \"./components/Slider\";\nexport * from \"./components/Sheets\";\nexport * from \"./components/PickerView\";\nexport * from \"./components/Picker\";\nexport * from \"./components/Alert\";\nexport * from \"./components/FAB\";\nexport * from \"./components/Toast\";\nexport * from \"./components/DropDown\";\nexport * from \"./components/Progress\";\nexport * from \"./components/TabBar\";\nexport * from \"./components/NavigationBar\";\nexport * from \"./components/BottomBar\";\nexport * from \"./components/List\";\nexport * from \"./components/Skeleton\";\nexport * from \"./components/ProgressIndicator\";\nexport * from \"./components/Divider\";\nexport * from \"./components/Portal\";\nexport * from \"./components/Tag\";\nexport * from \"./components/Image\";\nexport * from \"./components/Button\";\nexport * from \"./components/Popover\";\nexport * from \"./components/Switch\";\nexport * from \"./components/ConfigProvider\";\nexport * from \"./components/Text\";\nexport * from \"./components/Collapse\";\nexport * from \"./components/Empty\";\nexport * from \"./components/Result\";\nexport * from \"./components/PullRefresh\";\nexport * from \"./components/Icon\";\nexport * from \"./components/Badge\";\nexport * from \"./components/Avatar\";\nexport * from \"./components/AvatarGroup\";\nexport * from \"./components/Tab\";\nexport * from \"./components/SlimTabs\";\nexport * from \"./components/SlimAlert\";\nexport * from \"./components/SlimNavigationBar\";\nexport * from \"./components/Search\";\nexport * from \"./components/ActionablePopover\";\nimport \"react-native-url-polyfill/auto\";\nbindPushDataEvent(pushGlobalData);\n"],"names":["Radio","props","_props$isControl","useMounted","finalProps","_objectSpread","RadioDefaultProps","isControl","themeColor","useThemeColor","name","disabled","children","onClick","radioType","type","_useState","useState","_useState2","_slicedToArray","_checked","setChecked","parent","useContext","RadioGroupContext","useEffect","value","checked","modelValue","size","toggle","useCallback","updateValue","containerStyle","getContainerStyle","direction","position","wrapperStyle","getWrapperStyle","uncheckedStyle","getUnCheckedStyle","iconStyleClass","getIconStyleClass","labelStyle","getLabelStyle","iconSizeMap","small","medium","large","rightStyle","getRightIconStyle","rightWrapperStyle","getRightWrapperStyle","React","createElement","Fragment","TouchableWithoutFeedback","onPress","View","style","Icon","icon","customIcon","styles","customIconStyle","IconType","image","Image","source","uri","hiddenBgStyle","isLast","line","getDividerStyle","freestyle","Text","textStyle","memo","bindPushDataEvent","pushGlobalData"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AAAA,EAAA,IAAAC,gBAAA,CAAA;EAClCC,mCAAA,CAAW,OAAO,CAAA,CAAA;EACZ,IAAAC,UAAA,GAAAC,wCAAA,CAAAA,wCAAA,CAAAA,wCAAA,CAAA,EAAA,EAAmBC,kDAAA,CAAA,EAAoCL,KAAO,CAAA,EAAA,EAAA,EAAA;IAAAM,SAAA,EAAA,CAAAL,g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C,KAAA,CAAAC,aAAA,CAACM,4BAAA,EAAA;AACCC,IAAAA,IAAA,EACEzD,WAAW0D,UACX,IAAA,iGAAA;AAEFjC,IAAAA,IAAA,EAAMgB,YAAYhB,IAAI,CAAA;IACtBkC,QAAQ3D,UAAW,CAAA4D,eAAA;AACnBjD,IAAAA,IAAA,EAAMkD,wCAAkB,CAAAC,KAAA;AACxBrD,IAAAA,OAAS,EAAAiB,MAAAA;GACX,CAEA,GAAAV,QAAA,mBACGiC,KAAA,CAAAC,aAAA,CAAAI,gBAAA,EAAA;AAAKC,IAAAA,OAAOR,iBAAAA;AACX,GAAA,iBAAAE,KAAA,CAAAC,aAAA,CAACa,iBAAA,EAAA;AACCC,IAAAA,MAAQ,EAAA;AACNC,MAAAA,GAAA,EACEjE,WAAW0D,UACX,IAAA,wFAAA;KACJ;AACAH,IAAAA,KAAO,EAAA,CAACV,UAAY,EAAA7C,UAAA,CAAW4D,eAAe,CAAA;AAAA,GAChD,CACF,CAAA,EAGH,CAAC5C,QAAA,uCAAasC,gBAAK,EAAA;IAAAC,KAAA,EAAO,CAACpB,cAAA,EAAgBxB,IAAS,KAAA,MAAA,IAAUuD,qCAAc,EAAC,CAAA;GAAG,CACnF,CAEJ,CACF,CACF,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,cAAeO,aAAAA,WAAK7E,KAAK,CAAA;;ACpFzB8E,8BAAA,CAAkBC,6BAAc,CAAA;;;;"}
@@ -231,6 +231,7 @@ require('../PullRefresh/PullRefresh.js');
231
231
  require('../../_chunks/DUU5wf2f.js');
232
232
  require('../PullRefresh/component.js');
233
233
  require('../PullRefresh/Refresh.js');
234
+ require('../PullRefresh/RefreshControl.js');
234
235
  require('../Avatar/Avatar.js');
235
236
  require('../../_chunks/BLXuMm2s.js');
236
237
  require('../Avatar/styles.js');
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/cjs/index.js CHANGED
@@ -117,6 +117,7 @@ var components_Result_Result = require('./components/Result/Result.js');
117
117
  var components_Result_interface_index = require('./_chunks/DOAnQxcP.js');
118
118
  var components_PullRefresh_PullRefresh = require('./components/PullRefresh/PullRefresh.js');
119
119
  var components_PullRefresh_interface_index = require('./_chunks/DUU5wf2f.js');
120
+ var components_PullRefresh_RefreshControl = require('./components/PullRefresh/RefreshControl.js');
120
121
  var components_Icon_Icon = require('./components/Icon/Icon.js');
121
122
  var components_Icon_interface_index = require('./_chunks/NjAxlnfB.js');
122
123
  var components_Badge_Badge = require('./components/Badge/Badge.js');
@@ -387,6 +388,7 @@ exports.Result = components_Result_Result.default;
387
388
  exports.ResultType = components_Result_interface_index.index;
388
389
  exports.PullRefresh = components_PullRefresh_PullRefresh.default;
389
390
  exports.PullRefreshType = components_PullRefresh_interface_index.index;
391
+ exports.RefreshControl = components_PullRefresh_RefreshControl.default;
390
392
  exports.Icon = components_Icon_Icon.default;
391
393
  exports.IconType = components_Icon_interface_index.index;
392
394
  exports.Badge = components_Badge_Badge.default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,61 @@
1
+ import React from 'react';
2
+ import { RefreshControl, View } from 'react-native';
3
+ import ProgressIndicator from '../ProgressIndicator/ProgressIndicator.js';
4
+ import '../../_chunks/BcGvf0Pc.js';
5
+ import '../../_chunks/B_AP2PTq.js';
6
+ import '../ProgressIndicator/lottie/getLottieSource.js';
7
+ import '../ProgressIndicator/lottie/index.js';
8
+ import '../ProgressIndicator/lottie/pullup.js';
9
+ import '../ProgressIndicator/lottie/pullup_dark.js';
10
+ import '../ProgressIndicator/lottie/refresh.js';
11
+ import '../ProgressIndicator/lottie/refresh_dark.js';
12
+ import '../ProgressIndicator/lottie/refresh_primary.js';
13
+ import '../ProgressIndicator/lottie/progress_loading.js';
14
+ import '../ProgressIndicator/lottie/progress_loading_dark.js';
15
+ import '../ProgressIndicator/lottie/progress_loading_primary.js';
16
+ import '../ProgressIndicator/lottie/loading.js';
17
+ import '../ProgressIndicator/lottie/loading_dark.js';
18
+ import '../ProgressIndicator/lottie/loading_primary.js';
19
+ import '../ConfigProvider/hooks/ConfigCache/ConfigCache.js';
20
+ import '@xhsreds/reds-token-next';
21
+ import '../../pvCount/useUnmountedProcess.js';
22
+ import '@xhs/reds-apm/src/index.native';
23
+ import '../../pvCount/pvData.js';
24
+ import '../ConfigProvider/hooks/themeToken/useThemeToken.js';
25
+ import '../ConfigProvider/hooks/ConfigContext/ConfigContext.js';
26
+ import '../ConfigProvider/hooks/themeToken/useColorMode.js';
27
+ import '../ProgressIndicator/styles.js';
28
+ import '@xhs/lottie-react-native';
29
+
30
+ var IOSRefreshControl = function IOSRefreshControl(_ref) {
31
+ var onRefresh = _ref.onRefresh,
32
+ refreshing = _ref.refreshing,
33
+ progressViewOffset = _ref.progressViewOffset;
34
+ _ref.height;
35
+ return /* @__PURE__ */React.createElement(RefreshControl, {
36
+ refreshing: refreshing,
37
+ onRefresh: onRefresh,
38
+ style: {
39
+ backgroundColor: "transparent"
40
+ },
41
+ tintColor: "transparent"
42
+ }, refreshing && /* @__PURE__ */React.createElement(View, {
43
+ style: {
44
+ position: "absolute",
45
+ top: progressViewOffset || 0,
46
+ left: 0,
47
+ right: 0,
48
+ zIndex: 1e3,
49
+ alignItems: "center",
50
+ width: "100%",
51
+ backgroundColor: "transparent",
52
+ justifyContent: "center"
53
+ }
54
+ }, /* @__PURE__ */React.createElement(ProgressIndicator, {
55
+ type: "refresh",
56
+ size: 36
57
+ })));
58
+ };
59
+
60
+ export { IOSRefreshControl as default };
61
+ //# sourceMappingURL=RefreshControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshControl.js","sources":["../../../../src/components/PullRefresh/RefreshControl.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, RefreshControl as RNRefreshControl } from \"react-native\";\nimport { ProgressIndicator } from \"../ProgressIndicator\";\n\ninterface IOSRefreshControlProps {\n onRefresh: () => void;\n refreshing: boolean;\n progressViewOffset?: number;\n height?: number;\n}\nconst IOSRefreshControl = ({ onRefresh, refreshing, progressViewOffset, height }: IOSRefreshControlProps) => {\n return (\n <RNRefreshControl\n refreshing={refreshing}\n onRefresh={onRefresh}\n style={{ backgroundColor: \"transparent\" }}\n tintColor=\"transparent\" // 隐藏原生指示器\n >\n {refreshing && (\n <View\n style={{\n position: \"absolute\",\n top: progressViewOffset || 0,\n left: 0,\n right: 0,\n zIndex: 1000,\n alignItems: \"center\",\n width: \"100%\",\n backgroundColor: \"transparent\",\n justifyContent: \"center\",\n }}\n >\n <ProgressIndicator type={\"refresh\"} size={36} />\n </View>\n )}\n </RNRefreshControl>\n );\n};\n\nexport default IOSRefreshControl;\n"],"names":["IOSRefreshControl","onRefresh","refreshing","_ref","progressViewOffset","height","React","createElement","RNRefreshControl","style","backgroundColor","tintColor","View","position","top","left","right","zIndex","alignItems","width","justifyContent","ProgressIndicator","type","size"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,oBAAoB,SAApBA,wBAAuG;AAAA,EAAA,IAAhFC,iBAAAA;IAAWC,UAAY,GAAAC,IAAA,CAAZD,UAAY,CAAA;IAAAE,kBAAA,GAAAD,IAAA,CAAAC,kBAAA,CAAA;SAAoBC;AAEpE,EAAA,sBAAAC,KAAA,CAAAC,aAAA,CAACC,cAAA,EAAA;AACCN,IAAAA,UAAA,EAAAA,UAAA;AACAD,IAAAA,SAAA,EAAAA,SAAA;AACAQ,IAAAA,KAAA,EAAO;AAAEC,MAAAA,eAAA,EAAiB,aAAA;KAAc;AACxCC,IAAAA,SAAU,EAAA,aAAA;GAAA,EAETT,UACC,mBAAAI,KAAA,CAAAC,aAAA,CAACK,IAAA,EAAA;AACCH,IAAAA,KAAO,EAAA;AACLI,MAAAA,QAAU,EAAA,UAAA;MACVC,KAAKV,kBAAsB,IAAA,CAAA;AAC3BW,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,GAAA;AACRC,MAAAA,UAAY,EAAA,QAAA;AACZC,MAAAA,KAAO,EAAA,MAAA;AACPT,MAAAA,eAAiB,EAAA,aAAA;AACjBU,MAAAA,cAAgB,EAAA,QAAA;AAClB,KAAA;AAAA,GAAA,iBAECd,KAAA,CAAAC,aAAA,CAAAc,iBAAA,EAAA;AAAkBC,IAAAA,IAAM,EAAA,SAAA;AAAWC,IAAAA,MAAM,EAAA;GAAI,CAChD,CAEJ,CAAA,CAAA;AAEJ;;;;"}
@@ -1,5 +1,6 @@
1
1
  import PullRefresh from './PullRefresh.js';
2
2
  export { i as PullRefreshType } from '../../_chunks/gC9g4Fr_.js';
3
+ export { default as RefreshControl } from './RefreshControl.js';
3
4
  import '../../_chunks/BcGvf0Pc.js';
4
5
  import 'react';
5
6
  import 'react-native';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -120,6 +120,7 @@ import '../Result/Result.js';
120
120
  import '../../_chunks/BKS4Pa1R.js';
121
121
  import '../PullRefresh/PullRefresh.js';
122
122
  import '../../_chunks/gC9g4Fr_.js';
123
+ import '../PullRefresh/RefreshControl.js';
123
124
  import Icon from '../Icon/Icon.js';
124
125
  import { i as iconType } from '../../_chunks/xi-gXLIR.js';
125
126
  import '../Badge/Badge.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.tsx","../../../../src/index.ts"],"sourcesContent":["import React, { memo, useCallback, useContext, useState, useEffect } from \"react\";\nimport { View, Text, TouchableWithoutFeedback, Image } from \"react-native\";\nimport { RedsRadio, RadioDefaultProps } from \"./interface\";\nimport { RadioGroupContext } from \"./RadioGroup\";\nimport {\n getContainerStyle,\n getIconStyleClass,\n getLabelStyle,\n getDividerStyle,\n freestyle,\n hiddenBgStyle,\n getWrapperStyle,\n getUnCheckedStyle,\n getRightIconStyle,\n getRightWrapperStyle,\n} from \"./styles\";\nimport { useThemeColor } from \"../ConfigProvider\";\nimport { Icon, IconType } from \"../../index\";\nimport useMounted from \"../../pvCount/useUnmountedProcess\";\n\nconst Radio = (props: RedsRadio) => {\n useMounted(\"Radio\");\n const finalProps = { ...(RadioDefaultProps as RedsRadio), ...props, isControl: props.isControl ?? true };\n const themeColor = useThemeColor();\n const { name, disabled, children, onClick, type: radioType } = finalProps;\n\n const [_checked, setChecked] = useState(false);\n\n // 从父组件(RadioGroup)获取上下文\n const parent = useContext(RadioGroupContext);\n\n useEffect(() => {\n finalProps.isControl && setChecked(parent?.value === name || finalProps.checked! || finalProps.modelValue || false);\n }, [finalProps.isControl, parent?.value, finalProps.checked, finalProps.modelValue]);\n\n // 确定大小和类型优先级\n const size = finalProps.size || parent?.size || \"large\";\n const type = radioType || parent?.type || \"default\";\n\n // 切换选中状态\n const toggle = useCallback(() => {\n if (_checked) return;\n if (!disabled && !parent?.disabled) {\n if (parent) {\n parent.updateValue(name ?? \"\");\n }\n if (onClick) {\n onClick(name ?? \"\");\n }\n setChecked(true);\n }\n }, [disabled, parent, name, onClick, _checked]);\n\n const containerStyle = getContainerStyle(parent?.direction, parent?.position || \"left\");\n const wrapperStyle = getWrapperStyle(parent?.direction, parent?.position || \"left\");\n const uncheckedStyle = getUnCheckedStyle(size);\n const iconStyleClass = getIconStyleClass(\n _checked,\n size,\n disabled || parent?.disabled,\n parent?.position,\n parent?.direction,\n );\n const labelStyle = getLabelStyle(disabled || parent?.disabled, size, parent?.direction);\n\n const iconSizeMap: Record<\"small\" | \"medium\" | \"large\", number> = {\n small: 12,\n medium: 16,\n large: 20,\n };\n\n const rightStyle = getRightIconStyle(size);\n\n const rightWrapperStyle = getRightWrapperStyle(size, themeColor, props.themeColor);\n\n return (\n <>\n <TouchableWithoutFeedback onPress={toggle}>\n <View style={[containerStyle]}>\n {(parent?.position === \"left\" || !parent?.position || parent?.direction === \"horizontal\") && (\n <View style={iconStyleClass}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hc9m0ki3i06d5494g900000000001nnf3trg\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n\n <View\n style={[\n // @ts-ignore\n wrapperStyle,\n !finalProps.isLast && parent?.direction === \"vertical\" && finalProps.line && getDividerStyle(),\n finalProps.containerStyle,\n ]}\n >\n {children && (\n <View style={[parent?.direction === \"vertical\" && freestyle]}>\n <Text style={[labelStyle, finalProps.textStyle]}>{children}</Text>\n </View>\n )}\n {parent?.position === \"right\" && parent?.direction === \"vertical\" && (\n <View style={[iconStyleClass, type === \"line\" && hiddenBgStyle()]}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://picasso-static.xiaohongshu.com/fe-platform/48c06b6e09bcf1516a6ad071bacab6da505a2980.png\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n </View>\n </View>\n </TouchableWithoutFeedback>\n </>\n );\n};\n\nexport default memo(Radio);\n","export * from \"./components/SegmentedControl\";\nexport * from \"./components/LanguageProvider\";\nexport * from \"./components/NoticeBar\";\nimport { bindPushDataEvent } from \"@xhs/reds-apm/src/index.native\";\nimport { pushGlobalData } from \"./pvCount/pvData\";\nexport * from \"./components/ImagePreview\";\nexport * from \"./components/Carousel\";\nexport * from \"./components/Video\";\nexport * from \"./components/SnackBar\";\nexport * from \"./components/MiniSnackBar\";\nexport * from \"./components/StatusBar\";\nexport * from \"./components/TextView\";\nexport * from \"./components/TextField\";\n// declare global {\n// var eaglet: any;\n// }\n// try {\n// if (typeof global !== \"undefined\" && global?.eaglet) {\n// global?.eaglet?.push?.(\n// {\n// measurement_name: \"reds_component_usage\",\n// measurement_data: {\n// platform: \"rn\",\n// },\n// },\n// \"ApmXrayTracker\",\n// );\n// }\n// } catch (e) {}\nexport * from \"./components/Uploader\";\nexport * from \"./components/Stepper\";\nexport * from \"./components/Rate\";\nexport * from \"./components/CheckBoxGroup\";\nexport * from \"./components/Form\";\nexport * from \"./components/DatePicker\";\nexport * from \"./components/Radio\";\nexport * from \"./components/ActionSheets\";\nexport * from \"./components/Slider\";\nexport * from \"./components/Sheets\";\nexport * from \"./components/PickerView\";\nexport * from \"./components/Picker\";\nexport * from \"./components/Alert\";\nexport * from \"./components/FAB\";\nexport * from \"./components/Toast\";\nexport * from \"./components/DropDown\";\nexport * from \"./components/Progress\";\nexport * from \"./components/TabBar\";\nexport * from \"./components/NavigationBar\";\nexport * from \"./components/BottomBar\";\nexport * from \"./components/List\";\nexport * from \"./components/Skeleton\";\nexport * from \"./components/ProgressIndicator\";\nexport * from \"./components/Divider\";\nexport * from \"./components/Portal\";\nexport * from \"./components/Tag\";\nexport * from \"./components/Image\";\nexport * from \"./components/Button\";\nexport * from \"./components/Popover\";\nexport * from \"./components/Switch\";\nexport * from \"./components/ConfigProvider\";\nexport * from \"./components/Text\";\nexport * from \"./components/Collapse\";\nexport * from \"./components/Empty\";\nexport * from \"./components/Result\";\nexport * from \"./components/PullRefresh\";\nexport * from \"./components/Icon\";\nexport * from \"./components/Badge\";\nexport * from \"./components/Avatar\";\nexport * from \"./components/AvatarGroup\";\nexport * from \"./components/Tab\";\nexport * from \"./components/SlimTabs\";\nexport * from \"./components/SlimAlert\";\nexport * from \"./components/SlimNavigationBar\";\nexport * from \"./components/Search\";\nexport * from \"./components/ActionablePopover\";\nimport \"react-native-url-polyfill/auto\";\nbindPushDataEvent(pushGlobalData);\n"],"names":["Radio","props","_props$isControl","useMounted","finalProps","_objectSpread","RadioDefaultProps","isControl","themeColor","useThemeColor","name","disabled","children","onClick","radioType","type","_useState","useState","_useState2","_slicedToArray","_checked","setChecked","parent","useContext","RadioGroupContext","useEffect","value","checked","modelValue","size","toggle","useCallback","updateValue","containerStyle","getContainerStyle","direction","position","wrapperStyle","getWrapperStyle","uncheckedStyle","getUnCheckedStyle","iconStyleClass","getIconStyleClass","labelStyle","getLabelStyle","iconSizeMap","small","medium","large","rightStyle","getRightIconStyle","rightWrapperStyle","getRightWrapperStyle","React","createElement","Fragment","TouchableWithoutFeedback","onPress","View","style","Icon","icon","customIcon","styles","customIconStyle","IconType","image","Image","source","uri","hiddenBgStyle","isLast","line","getDividerStyle","freestyle","Text","textStyle","memo","bindPushDataEvent","pushGlobalData"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AAAA,EAAA,IAAAC,gBAAA,CAAA;EAClCC,UAAA,CAAW,OAAO,CAAA,CAAA;EACZ,IAAAC,UAAA,GAAAC,cAAA,CAAAA,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAmBC,iBAAA,CAAA,EAAoCL,KAAO,CAAA,EAAA,EAAA,EAAA;IAAAM,SAAA,EAAA,CAAAL,gBAAA,GAAWD,KAAM,CAAAM,SAAA,MAAAL,IAAAA,IAAAA,gBAAA,KAAAA,KAAAA,CAAAA,GAAAA,gBAAA,GAAa,IAAA;GAAK,CAAA,CAAA;AACvG,EAAA,IAAMM,aAAaC,aAAc,EAAA,CAAA;AACjC,EAAA,IAAQC,IAAM,GAAiDN,UAAA,CAAvDM,IAAM;IAAAC,QAAA,GAAiDP,UAAA,CAAjDO,QAAA;IAAUC,WAAuCR,UAAA,CAAvCQ;IAAUC,OAAS,GAAoBT,UAAA,CAA7BS,OAAS;IAAMC,YAAcV,UAAA,CAApBW,IAAA,CAAA;AAE3C,EA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AAA,EAAA;AACCC,IAAAA,MAAQ,EAAA;AACNC,MAAAA,GAAA,EACEjE,WAAW0D,UACX,IAAA,wFAAA;KACJ;AACAH,IAAAA,KAAO,EAAA,CAACV,UAAY,EAAA7C,UAAA,CAAW4D,eAAe,CAAA;AAAA,GAChD,CACF,CAAA,EAGH,CAAC5C,QAAA,uCAAasC,IAAK,EAAA;IAAAC,KAAA,EAAO,CAACpB,cAAA,EAAgBxB,IAAS,KAAA,MAAA,IAAUuD,aAAc,EAAC,CAAA;GAAG,CACnF,CAEJ,CACF,CACF,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,cAAeO,aAAAA,KAAK7E,KAAK,CAAA;;ACpFzB8E,iBAAA,CAAkBC,cAAc,CAAA;;;;"}
1
+ {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.tsx","../../../../src/index.ts"],"sourcesContent":["import React, { memo, useCallback, useContext, useState, useEffect } from \"react\";\nimport { View, Text, TouchableWithoutFeedback, Image } from \"react-native\";\nimport { RedsRadio, RadioDefaultProps } from \"./interface\";\nimport { RadioGroupContext } from \"./RadioGroup\";\nimport {\n getContainerStyle,\n getIconStyleClass,\n getLabelStyle,\n getDividerStyle,\n freestyle,\n hiddenBgStyle,\n getWrapperStyle,\n getUnCheckedStyle,\n getRightIconStyle,\n getRightWrapperStyle,\n} from \"./styles\";\nimport { useThemeColor } from \"../ConfigProvider\";\nimport { Icon, IconType } from \"../../index\";\nimport useMounted from \"../../pvCount/useUnmountedProcess\";\n\nconst Radio = (props: RedsRadio) => {\n useMounted(\"Radio\");\n const finalProps = { ...(RadioDefaultProps as RedsRadio), ...props, isControl: props.isControl ?? true };\n const themeColor = useThemeColor();\n const { name, disabled, children, onClick, type: radioType } = finalProps;\n\n const [_checked, setChecked] = useState(false);\n\n // 从父组件(RadioGroup)获取上下文\n const parent = useContext(RadioGroupContext);\n\n useEffect(() => {\n finalProps.isControl && setChecked(parent?.value === name || finalProps.checked! || finalProps.modelValue || false);\n }, [finalProps.isControl, parent?.value, finalProps.checked, finalProps.modelValue]);\n\n // 确定大小和类型优先级\n const size = finalProps.size || parent?.size || \"large\";\n const type = radioType || parent?.type || \"default\";\n\n // 切换选中状态\n const toggle = useCallback(() => {\n if (_checked) return;\n if (!disabled && !parent?.disabled) {\n if (parent) {\n parent.updateValue(name ?? \"\");\n }\n if (onClick) {\n onClick(name ?? \"\");\n }\n setChecked(true);\n }\n }, [disabled, parent, name, onClick, _checked]);\n\n const containerStyle = getContainerStyle(parent?.direction, parent?.position || \"left\");\n const wrapperStyle = getWrapperStyle(parent?.direction, parent?.position || \"left\");\n const uncheckedStyle = getUnCheckedStyle(size);\n const iconStyleClass = getIconStyleClass(\n _checked,\n size,\n disabled || parent?.disabled,\n parent?.position,\n parent?.direction,\n );\n const labelStyle = getLabelStyle(disabled || parent?.disabled, size, parent?.direction);\n\n const iconSizeMap: Record<\"small\" | \"medium\" | \"large\", number> = {\n small: 12,\n medium: 16,\n large: 20,\n };\n\n const rightStyle = getRightIconStyle(size);\n\n const rightWrapperStyle = getRightWrapperStyle(size, themeColor, props.themeColor);\n\n return (\n <>\n <TouchableWithoutFeedback onPress={toggle}>\n <View style={[containerStyle]}>\n {(parent?.position === \"left\" || !parent?.position || parent?.direction === \"horizontal\") && (\n <View style={iconStyleClass}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hc9m0ki3i06d5494g900000000001nnf3trg\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n\n <View\n style={[\n // @ts-ignore\n wrapperStyle,\n !finalProps.isLast && parent?.direction === \"vertical\" && finalProps.line && getDividerStyle(),\n finalProps.containerStyle,\n ]}\n >\n {children && (\n <View style={[parent?.direction === \"vertical\" && freestyle]}>\n <Text style={[labelStyle, finalProps.textStyle]}>{children}</Text>\n </View>\n )}\n {parent?.position === \"right\" && parent?.direction === \"vertical\" && (\n <View style={[iconStyleClass, type === \"line\" && hiddenBgStyle()]}>\n {_checked && type === \"line\" ? (\n <Icon\n icon={\n finalProps.customIcon ||\n \"https://picasso-static.xiaohongshu.com/fe-platform/48c06b6e09bcf1516a6ad071bacab6da505a2980.png\"\n }\n size={iconSizeMap[size]}\n styles={finalProps.customIconStyle}\n type={IconType.iconType.image}\n onClick={toggle}\n />\n ) : (\n _checked && (\n <View style={rightWrapperStyle}>\n <Image\n source={{\n uri:\n finalProps.customIcon ||\n \"https://fe-platform.xhscdn.com/platform/104101l031hpc4inljq06d5494g900000000001hopc7t8\",\n }}\n style={[rightStyle, finalProps.customIconStyle]}\n />\n </View>\n )\n )}\n {!_checked && <View style={[uncheckedStyle, type === \"line\" && hiddenBgStyle()]}></View>}\n </View>\n )}\n </View>\n </View>\n </TouchableWithoutFeedback>\n </>\n );\n};\n\nexport default memo(Radio);\n","export * from \"./components/SegmentedControl\";\nexport * from \"./components/LanguageProvider\";\nexport * from \"./components/NoticeBar\";\nimport { bindPushDataEvent } from \"@xhs/reds-apm/src/index.native\";\nimport { pushGlobalData } from \"./pvCount/pvData\";\nexport * from \"./components/ImagePreview\";\nexport * from \"./components/Carousel\";\nexport * from \"./components/Video\";\nexport * from \"./components/SnackBar\";\nexport * from \"./components/MiniSnackBar\";\nexport * from \"./components/StatusBar\";\nexport * from \"./components/TextView\";\nexport * from \"./components/TextField\";\n// declare global {\n// var eaglet: any;\n// }\n// try {\n// if (typeof global !== \"undefined\" && global?.eaglet) {\n// global?.eaglet?.push?.(\n// {\n// measurement_name: \"reds_component_usage\",\n// measurement_data: {\n// platform: \"rn\",\n// },\n// },\n// \"ApmXrayTracker\",\n// );\n// }\n// } catch (e) {}\nexport * from \"./components/Uploader\";\nexport * from \"./components/Stepper\";\nexport * from \"./components/Rate\";\nexport * from \"./components/CheckBoxGroup\";\nexport * from \"./components/Form\";\nexport * from \"./components/DatePicker\";\nexport * from \"./components/Radio\";\nexport * from \"./components/ActionSheets\";\nexport * from \"./components/Slider\";\nexport * from \"./components/Sheets\";\nexport * from \"./components/PickerView\";\nexport * from \"./components/Picker\";\nexport * from \"./components/Alert\";\nexport * from \"./components/FAB\";\nexport * from \"./components/Toast\";\nexport * from \"./components/DropDown\";\nexport * from \"./components/Progress\";\nexport * from \"./components/TabBar\";\nexport * from \"./components/NavigationBar\";\nexport * from \"./components/BottomBar\";\nexport * from \"./components/List\";\nexport * from \"./components/Skeleton\";\nexport * from \"./components/ProgressIndicator\";\nexport * from \"./components/Divider\";\nexport * from \"./components/Portal\";\nexport * from \"./components/Tag\";\nexport * from \"./components/Image\";\nexport * from \"./components/Button\";\nexport * from \"./components/Popover\";\nexport * from \"./components/Switch\";\nexport * from \"./components/ConfigProvider\";\nexport * from \"./components/Text\";\nexport * from \"./components/Collapse\";\nexport * from \"./components/Empty\";\nexport * from \"./components/Result\";\nexport * from \"./components/PullRefresh\";\nexport * from \"./components/Icon\";\nexport * from \"./components/Badge\";\nexport * from \"./components/Avatar\";\nexport * from \"./components/AvatarGroup\";\nexport * from \"./components/Tab\";\nexport * from \"./components/SlimTabs\";\nexport * from \"./components/SlimAlert\";\nexport * from \"./components/SlimNavigationBar\";\nexport * from \"./components/Search\";\nexport * from \"./components/ActionablePopover\";\nimport \"react-native-url-polyfill/auto\";\nbindPushDataEvent(pushGlobalData);\n"],"names":["Radio","props","_props$isControl","useMounted","finalProps","_objectSpread","RadioDefaultProps","isControl","themeColor","useThemeColor","name","disabled","children","onClick","radioType","type","_useState","useState","_useState2","_slicedToArray","_checked","setChecked","parent","useContext","RadioGroupContext","useEffect","value","checked","modelValue","size","toggle","useCallback","updateValue","containerStyle","getContainerStyle","direction","position","wrapperStyle","getWrapperStyle","uncheckedStyle","getUnCheckedStyle","iconStyleClass","getIconStyleClass","labelStyle","getLabelStyle","iconSizeMap","small","medium","large","rightStyle","getRightIconStyle","rightWrapperStyle","getRightWrapperStyle","React","createElement","Fragment","TouchableWithoutFeedback","onPress","View","style","Icon","icon","customIcon","styles","customIconStyle","IconType","image","Image","source","uri","hiddenBgStyle","isLast","line","getDividerStyle","freestyle","Text","textStyle","memo","bindPushDataEvent","pushGlobalData"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AAAA,EAAA,IAAAC,gBAAA,CAAA;EAClCC,UAAA,CAAW,OAAO,CAAA,CAAA;EACZ,IAAAC,UAAA,GAAAC,cAAA,CAAAA,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAmBC,iBAAA,CAAA,EAAoCL,KAAO,CAAA,EAAA,EAAA,EAAA;IAAAM,SAAA,EAAA,CAAAL,gBAAA,GAAWD,KAAM,CAAAM,SAAA,MAAAL,IAAAA,IAAAA,gBAAA,KAAAA,KAAAA,CAAAA,GAAAA,gBAAA,GAAa,IAAA;GAAK,CAAA,CAAA;AACvG,EAAA,IAAMM,aAAaC,aAAc,EAAA,CAAA;AACjC,EAAA,IAAQC,IAAM,GAAiDN,UAAA,CAAvDM,IAAM;IAAAC,QAAA,GAAiDP,UAAA,CAAjDO,QAAA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,mBACGiC,KAAA,CAAAC,aAAA,CAAAI,IAAA,EAAA;AAAKC,IAAAA,OAAOR,iBAAAA;AACX,GAAA,iBAAAE,KAAA,CAAAC,aAAA,CAACa,KAAA,EAAA;AACCC,IAAAA,MAAQ,EAAA;AACNC,MAAAA,GAAA,EACEjE,WAAW0D,UACX,IAAA,wFAAA;KACJ;AACAH,IAAAA,KAAO,EAAA,CAACV,UAAY,EAAA7C,UAAA,CAAW4D,eAAe,CAAA;AAAA,GAChD,CACF,CAAA,EAGH,CAAC5C,QAAA,uCAAasC,IAAK,EAAA;IAAAC,KAAA,EAAO,CAACpB,cAAA,EAAgBxB,IAAS,KAAA,MAAA,IAAUuD,aAAc,EAAC,CAAA;GAAG,CACnF,CAEJ,CACF,CACF,CACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,cAAeO,aAAAA,KAAK7E,KAAK,CAAA;;ACpFzB8E,iBAAA,CAAkBC,cAAc,CAAA;;;;"}
@@ -227,6 +227,7 @@ import '../PullRefresh/PullRefresh.js';
227
227
  import '../../_chunks/gC9g4Fr_.js';
228
228
  import '../PullRefresh/component.js';
229
229
  import '../PullRefresh/Refresh.js';
230
+ import '../PullRefresh/RefreshControl.js';
230
231
  import '../Avatar/Avatar.js';
231
232
  import '../../_chunks/DjMhUq01.js';
232
233
  import '../Avatar/styles.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/esm/index.js CHANGED
@@ -115,6 +115,7 @@ export { default as Result } from './components/Result/Result.js';
115
115
  export { i as ResultType } from './_chunks/BKS4Pa1R.js';
116
116
  export { default as PullRefresh } from './components/PullRefresh/PullRefresh.js';
117
117
  export { i as PullRefreshType } from './_chunks/gC9g4Fr_.js';
118
+ export { default as RefreshControl } from './components/PullRefresh/RefreshControl.js';
118
119
  export { default as Icon } from './components/Icon/Icon.js';
119
120
  export { a as IconType } from './_chunks/xi-gXLIR.js';
120
121
  export { default as Badge } from './components/Badge/Badge.js';