@xhsreds/reds-rn-next 0.10.2-beta202512181604 → 0.10.3-beta202512232045

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 (46) hide show
  1. package/coverage/.tmp/coverage-1.json +1 -1
  2. package/coverage/.tmp/coverage-10.json +1 -1
  3. package/coverage/.tmp/coverage-11.json +1 -1
  4. package/coverage/.tmp/coverage-12.json +1 -1
  5. package/coverage/.tmp/coverage-13.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-21.json +1 -1
  14. package/coverage/.tmp/coverage-22.json +1 -1
  15. package/coverage/.tmp/coverage-23.json +1 -1
  16. package/coverage/.tmp/coverage-25.json +1 -1
  17. package/coverage/.tmp/coverage-26.json +1 -1
  18. package/coverage/.tmp/coverage-27.json +1 -1
  19. package/coverage/.tmp/coverage-30.json +1 -1
  20. package/coverage/.tmp/coverage-31.json +1 -1
  21. package/coverage/.tmp/coverage-32.json +1 -1
  22. package/coverage/.tmp/coverage-33.json +1 -1
  23. package/coverage/.tmp/coverage-34.json +1 -1
  24. package/coverage/.tmp/coverage-35.json +1 -1
  25. package/coverage/.tmp/coverage-36.json +1 -1
  26. package/coverage/.tmp/coverage-38.json +1 -1
  27. package/coverage/.tmp/coverage-39.json +1 -1
  28. package/coverage/.tmp/coverage-4.json +1 -1
  29. package/coverage/.tmp/coverage-40.json +1 -1
  30. package/coverage/.tmp/coverage-41.json +1 -1
  31. package/coverage/.tmp/coverage-42.json +1 -1
  32. package/coverage/.tmp/coverage-5.json +1 -1
  33. package/coverage/.tmp/coverage-9.json +1 -1
  34. package/lib/cjs/components/Alert/styles.js +1 -2
  35. package/lib/cjs/components/Alert/styles.js.map +1 -1
  36. package/lib/cjs/pvCount/pvData.js +1 -1
  37. package/lib/esm/components/Alert/styles.js +1 -2
  38. package/lib/esm/components/Alert/styles.js.map +1 -1
  39. package/lib/esm/pvCount/pvData.js +1 -1
  40. package/lib/src/components/Alert/styles.d.ts +0 -1
  41. package/lib/types/components/Alert/styles.d.ts +0 -1
  42. package/package.json +2 -2
  43. package/src/components/Alert/styles.ts +0 -1
  44. package/src/i18n/@types/resources.d.ts +27 -27
  45. package/src/i18n/index.json +31 -31
  46. package/coverage/.tmp/coverage-43.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n fontSize: 12,\n },\n horizontalLine: {\n width: \"100%\",\n height: 0.5,\n backgroundColor: themeColor.Fill2,\n },\n verticalLine: {\n width: 0.5,\n height: 24,\n marginTop: 6,\n backgroundColor: themeColor.Fill2,\n },\n });\n return styles;\n};\n"],"names":["style","props","themeColor","useThemeColor","typography","useThemeTypography","styles","StyleSheet","create","modalOverlay","position","top","left","right","bottom","backgroundColor","alwaysColor","MaskBg","centeredView","flex","justifyContent","alignItems","alertContainer","width","White","borderRadius","overflow","boxShadow","alertContent","padding","title","textAlign","marginBottom","fontSize","T2FontSize","fontWeight","T2FontWeight","lineHeight","T2LineHeight","color","Title","message","maxHeight","messageText","C2FontSize","Paragraph","C2LineHeight","C2FontWeight","messageLeft","scrollOverlay","height","footer","flexDirection","paddingTop","footerText","borderTopWidth","borderTopColor","Fill2","paddingBottom","footerLayout","paddingHorizontal","footerHorizontal","paddingVertical","footerVertical","cancelButton","margin","button","dividerBox","marginTop","confirmButton","marginLeft","verButton","footerType","verCancelButton","cancelText","Description","horizontalLine","verticalLine"],"mappings":";;;;;;;;;;;IAKaA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,uEAAc,QAAQ,CAAA,CAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,4EAAmB,QAAQ,CAAA,CAAA;AACxC,EAAA,IAAAC,MAAA,GAASC,uBAAWC,MAAO,CAAA;AAC/BC,IAAAA,YAAc,EAAA;AACZC,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;MACRC,iBAAiBC,yBAAY,CAAAC,MAAAA;KAC/B;AACAC,IAAAA,YAAc,EAAA;AACZR,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,C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0D,YAAA,KAAiB,aAAa,CAAI,GAAA,EAAA;MACrF3B,YAAc,EAAA/B,KAAA,CAAM0D,YAAiB,KAAA,UAAA,GAAa,CAAI,GAAA,CAAA;AACtDT,MAAAA,MAAQ,EAAA,EAAA;AACRU,MAAAA,iBAAmB,EAAA,EAAA;KACrB;AACAc,IAAAA,UAAY,EAAA;MACVnC,OAAOrC,UAAW,CAAAyE,WAAA;AAClB1C,MAAAA,QAAU,EAAA,EAAA;KACZ;AACA2C,IAAAA,cAAgB,EAAA;AACdrD,MAAAA,KAAO,EAAA,MAAA;AACP2B,MAAAA,MAAQ,EAAA,GAAA;MACRnC,iBAAiBb,UAAW,CAAAuD,KAAAA;KAC9B;AACAoB,IAAAA,YAAc,EAAA;AACZtD,MAAAA,KAAO,EAAA,GAAA;AACP2B,MAAAA,MAAQ,EAAA,EAAA;AACRkB,MAAAA,SAAW,EAAA,CAAA;MACXrD,iBAAiBb,UAAW,CAAAuD,KAAAA;AAC9B,KAAA;AACF,GAAC,CAAA,CAAA;AACM,EAAA,OAAAnD,MAAA,CAAA;AACT;;;;"}
1
+ {"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n },\n horizontalLine: {\n width: \"100%\",\n height: 0.5,\n backgroundColor: themeColor.Fill2,\n },\n verticalLine: {\n width: 0.5,\n height: 24,\n marginTop: 6,\n backgroundColor: themeColor.Fill2,\n },\n });\n return styles;\n};\n"],"names":["style","props","themeColor","useThemeColor","typography","useThemeTypography","styles","StyleSheet","create","modalOverlay","position","top","left","right","bottom","backgroundColor","alwaysColor","MaskBg","centeredView","flex","justifyContent","alignItems","alertContainer","width","White","borderRadius","overflow","boxShadow","alertContent","padding","title","textAlign","marginBottom","fontSize","T2FontSize","fontWeight","T2FontWeight","lineHeight","T2LineHeight","color","Title","message","maxHeight","messageText","C2FontSize","Paragraph","C2LineHeight","C2FontWeight","messageLeft","scrollOverlay","height","footer","flexDirection","paddingTop","footerText","borderTopWidth","borderTopColor","Fill2","paddingBottom","footerLayout","paddingHorizontal","footerHorizontal","paddingVertical","footerVertical","cancelButton","margin","button","dividerBox","marginTop","confirmButton","marginLeft","verButton","footerType","verCancelButton","cancelText","Description","horizontalLine","verticalLine"],"mappings":";;;;;;;;;;;IAKaA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,uEAAc,QAAQ,CAAA,CAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,4EAAmB,QAAQ,CAAA,CAAA;AACxC,EAAA,IAAAC,MAAA,GAASC,uBAAWC,MAAO,CAAA;AAC/BC,IAAAA,YAAc,EAAA;AACZC,MAAAA,QAAU,EAAA,UA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AA;AACftD,MAAAA,IAAM,EAAA,CAAA;AACNI,MAAAA,KAAO,EAAA,MAAA;AACP0C,MAAAA,MAAQ,EAAA,CAAA;MACRK,UAAY,EAAArE,KAAA,CAAM0D,YAAiB,KAAA,UAAA,GAAa,CAAI,GAAA,EAAA;AACpDS,MAAAA,SAAA,EAAWnE,MAAMuE,UAAe,KAAA,MAAA,GAAS,IAAIvE,KAAM,CAAA0D,YAAA,KAAiB,aAAa,CAAI,GAAA,EAAA;MACrF3B,YAAc,EAAA/B,KAAA,CAAM0D,YAAiB,KAAA,UAAA,GAAa,CAAI,GAAA,CAAA;AACtDT,MAAAA,MAAQ,EAAA,EAAA;AACRU,MAAAA,iBAAmB,EAAA,EAAA;KACrB;AACAc,IAAAA,UAAY,EAAA;MACVnC,OAAOrC,UAAW,CAAAyE,WAAAA;KACpB;AACAC,IAAAA,cAAgB,EAAA;AACdrD,MAAAA,KAAO,EAAA,MAAA;AACP2B,MAAAA,MAAQ,EAAA,GAAA;MACRnC,iBAAiBb,UAAW,CAAAuD,KAAAA;KAC9B;AACAoB,IAAAA,YAAc,EAAA;AACZtD,MAAAA,KAAO,EAAA,GAAA;AACP2B,MAAAA,MAAQ,EAAA,EAAA;AACRkB,MAAAA,SAAW,EAAA,CAAA;MACXrD,iBAAiBb,UAAW,CAAAuD,KAAAA;AAC9B,KAAA;AACF,GAAC,CAAA,CAAA;AACM,EAAA,OAAAnD,MAAA,CAAA;AACT;;;;"}
@@ -3,7 +3,7 @@
3
3
  var index_native = require('@xhs/reds-apm/src/index.native');
4
4
 
5
5
  var name = "@xhs/reds-rn-next";
6
- var version = "0.10.1";
6
+ var version = "0.10.2";
7
7
  var author = "贾斌(呀哈) <jiabin@xiaohongshu.com>";
8
8
  var license = "ISC";
9
9
  var dependencies = {
@@ -144,8 +144,7 @@ var style = function style(props) {
144
144
  paddingHorizontal: 20
145
145
  },
146
146
  cancelText: {
147
- color: themeColor.Description,
148
- fontSize: 12
147
+ color: themeColor.Description
149
148
  },
150
149
  horizontalLine: {
151
150
  width: "100%",
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n fontSize: 12,\n },\n horizontalLine: {\n width: \"100%\",\n height: 0.5,\n backgroundColor: themeColor.Fill2,\n },\n verticalLine: {\n width: 0.5,\n height: 24,\n marginTop: 6,\n backgroundColor: themeColor.Fill2,\n },\n });\n return styles;\n};\n"],"names":["style","props","themeColor","useThemeColor","typography","useThemeTypography","styles","StyleSheet","create","modalOverlay","position","top","left","right","bottom","backgroundColor","alwaysColor","MaskBg","centeredView","flex","justifyContent","alignItems","alertContainer","width","White","borderRadius","overflow","boxShadow","alertContent","padding","title","textAlign","marginBottom","fontSize","T2FontSize","fontWeight","T2FontWeight","lineHeight","T2LineHeight","color","Title","message","maxHeight","messageText","C2FontSize","Paragraph","C2LineHeight","C2FontWeight","messageLeft","scrollOverlay","height","footer","flexDirection","paddingTop","footerText","borderTopWidth","borderTopColor","Fill2","paddingBottom","footerLayout","paddingHorizontal","footerHorizontal","paddingVertical","footerVertical","cancelButton","margin","button","dividerBox","marginTop","confirmButton","marginLeft","verButton","footerType","verCancelButton","cancelText","Description","horizontalLine","verticalLine"],"mappings":";;;;;;;;;IAKaA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,cAAc,QAAQ,CAAA,CAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,mBAAmB,QAAQ,CAAA,CAAA;AACxC,EAAA,IAAAC,MAAA,GAASC,WAAWC,MAAO,CAAA;AAC/BC,IAAAA,YAAc,EAAA;AACZC,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;MACRC,iBAAiBC,WAAY,CAAAC,MAAAA;KAC/B;AACAC,IAAAA,YAAc,EAAA;AACZR,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;AACRK,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,cAAgB,EAAA,QAAA;AAChBC,MAAAA,UAAY,EAAA,QAAA;KACd;AACAC,IAAAA,cAAgB,EAAA;AACdC,MAAAA,KAAO,EAAA,GAAA;MACPR,iBAAiBb,UAAW,CAAAsB,KAAA;AAC5BC,MAAAA,YAAc,EAAA,EAAA;AACdC,MAAAA,QAAU,EAAA,QAAA;AACVC,MA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A,MAAQ,EAAA,GAAA;MACRnC,iBAAiBb,UAAW,CAAAuD,KAAAA;KAC9B;AACAoB,IAAAA,YAAc,EAAA;AACZtD,MAAAA,KAAO,EAAA,GAAA;AACP2B,MAAAA,MAAQ,EAAA,EAAA;AACRkB,MAAAA,SAAW,EAAA,CAAA;MACXrD,iBAAiBb,UAAW,CAAAuD,KAAAA;AAC9B,KAAA;AACF,GAAC,CAAA,CAAA;AACM,EAAA,OAAAnD,MAAA,CAAA;AACT;;;;"}
1
+ {"version":3,"file":"styles.js","sources":["../../../../src/components/Alert/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nimport { alwaysColor } from \"@xhsreds/reds-token-next\";\nimport { useThemeColor, useThemeTypography } from \"../ConfigProvider\";\nimport { RedsAlert } from \"./interface\";\n\nexport const style = (props: RedsAlert) => {\n const themeColor = useThemeColor(\"Button\");\n const typography = useThemeTypography(\"Button\");\n const styles = StyleSheet.create({\n modalOverlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: alwaysColor.MaskBg,\n },\n centeredView: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n alertContainer: {\n width: 270,\n backgroundColor: themeColor.White,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow: \"0 2px 16px rgba(0, 0, 0, 0.1)\",\n position: \"relative\",\n top: 0,\n left: 0,\n },\n alertContent: {\n padding: 20,\n },\n title: {\n textAlign: \"center\",\n marginBottom: 8,\n fontSize: typography.T2FontSize,\n fontWeight: typography.T2FontWeight,\n lineHeight: typography.T2LineHeight,\n color: themeColor.Title,\n },\n message: {\n maxHeight: 126,\n overflow: \"hidden\",\n position: \"relative\",\n },\n messageText: {\n fontSize: typography.C2FontSize,\n color: themeColor.Paragraph,\n textAlign: \"center\",\n lineHeight: typography.C2LineHeight,\n fontWeight: typography.C2FontWeight,\n },\n messageLeft: {\n textAlign: \"left\",\n },\n scrollOverlay: {\n width: \"100%\",\n position: \"absolute\",\n left: 20,\n right: 0,\n bottom: 20,\n height: 40,\n },\n footer: {\n width: \"100%\",\n height: 48,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 0,\n },\n footerText: {\n borderTopWidth: 0.5,\n borderTopColor: themeColor.Fill2,\n paddingBottom: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingTop: props.footerLayout === \"vertical\" ? 0 : 6,\n paddingHorizontal: props.footerLayout === \"vertical\" ? 0 : 12,\n },\n footerHorizontal: {\n flexDirection: \"row\",\n paddingHorizontal: 20,\n paddingVertical: 20,\n },\n footerVertical: {\n flexDirection: \"column-reverse\",\n alignItems: \"center\",\n height: 100,\n paddingHorizontal: 20,\n },\n cancelButton: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n button: {\n flex: 1,\n width: 109,\n margin: 0,\n paddingHorizontal: 0,\n height: 36,\n },\n dividerBox: {\n marginTop: 5,\n },\n confirmButton: {\n flex: 1,\n margin: 0,\n marginLeft: 10,\n width: 109,\n height: 36,\n paddingHorizontal: 20,\n },\n verButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n verCancelButton: {\n flex: 0,\n width: \"100%\",\n margin: 0,\n marginLeft: props.footerLayout === \"vertical\" ? 0 : 10,\n marginTop: props.footerType === \"text\" ? 7 : props.footerLayout === \"vertical\" ? 7 : 10,\n marginBottom: props.footerLayout === \"vertical\" ? 7 : 0,\n height: 36,\n paddingHorizontal: 20,\n },\n cancelText: {\n color: themeColor.Description,\n },\n horizontalLine: {\n width: \"100%\",\n height: 0.5,\n backgroundColor: themeColor.Fill2,\n },\n verticalLine: {\n width: 0.5,\n height: 24,\n marginTop: 6,\n backgroundColor: themeColor.Fill2,\n },\n });\n return styles;\n};\n"],"names":["style","props","themeColor","useThemeColor","typography","useThemeTypography","styles","StyleSheet","create","modalOverlay","position","top","left","right","bottom","backgroundColor","alwaysColor","MaskBg","centeredView","flex","justifyContent","alignItems","alertContainer","width","White","borderRadius","overflow","boxShadow","alertContent","padding","title","textAlign","marginBottom","fontSize","T2FontSize","fontWeight","T2FontWeight","lineHeight","T2LineHeight","color","Title","message","maxHeight","messageText","C2FontSize","Paragraph","C2LineHeight","C2FontWeight","messageLeft","scrollOverlay","height","footer","flexDirection","paddingTop","footerText","borderTopWidth","borderTopColor","Fill2","paddingBottom","footerLayout","paddingHorizontal","footerHorizontal","paddingVertical","footerVertical","cancelButton","margin","button","dividerBox","marginTop","confirmButton","marginLeft","verButton","footerType","verCancelButton","cancelText","Description","horizontalLine","verticalLine"],"mappings":";;;;;;;;;IAKaA,KAAA,GAAQ,SAARA,KAAAA,CAASC,KAAqB,EAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,cAAc,QAAQ,CAAA,CAAA;AACnC,EAAA,IAAAC,UAAA,GAAaC,mBAAmB,QAAQ,CAAA,CAAA;AACxC,EAAA,IAAAC,MAAA,GAASC,WAAWC,MAAO,CAAA;AAC/BC,IAAAA,YAAc,EAAA;AACZC,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;MACRC,iBAAiBC,WAAY,CAAAC,MAAAA;KAC/B;AACAC,IAAAA,YAAc,EAAA;AACZR,MAAAA,QAAU,EAAA,UAAA;AACVC,MAAAA,GAAK,EAAA,CAAA;AACLC,MAAAA,IAAM,EAAA,CAAA;AACNC,MAAAA,KAAO,EAAA,CAAA;AACPC,MAAAA,MAAQ,EAAA,CAAA;AACRK,MAAAA,IAA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AAA;AACtDT,MAAAA,MAAQ,EAAA,EAAA;AACRU,MAAAA,iBAAmB,EAAA,EAAA;KACrB;AACAc,IAAAA,UAAY,EAAA;MACVnC,OAAOrC,UAAW,CAAAyE,WAAAA;KACpB;AACAC,IAAAA,cAAgB,EAAA;AACdrD,MAAAA,KAAO,EAAA,MAAA;AACP2B,MAAAA,MAAQ,EAAA,GAAA;MACRnC,iBAAiBb,UAAW,CAAAuD,KAAAA;KAC9B;AACAoB,IAAAA,YAAc,EAAA;AACZtD,MAAAA,KAAO,EAAA,GAAA;AACP2B,MAAAA,MAAQ,EAAA,EAAA;AACRkB,MAAAA,SAAW,EAAA,CAAA;MACXrD,iBAAiBb,UAAW,CAAAuD,KAAAA;AAC9B,KAAA;AACF,GAAC,CAAA,CAAA;AACM,EAAA,OAAAnD,MAAA,CAAA;AACT;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { push, pushByrequestIdleCallback } from '@xhs/reds-apm/src/index.native';
2
2
 
3
3
  var name = "@xhs/reds-rn-next";
4
- var version = "0.10.1";
4
+ var version = "0.10.2";
5
5
  var author = "贾斌(呀哈) <jiabin@xiaohongshu.com>";
6
6
  var license = "ISC";
7
7
  var dependencies = {
@@ -134,7 +134,6 @@ export declare const style: (props: RedsAlert) => {
134
134
  };
135
135
  cancelText: {
136
136
  color: string;
137
- fontSize: number;
138
137
  };
139
138
  horizontalLine: {
140
139
  width: "100%";
@@ -134,7 +134,6 @@ export declare const style: (props: RedsAlert) => {
134
134
  };
135
135
  cancelText: {
136
136
  color: string;
137
- fontSize: number;
138
137
  };
139
138
  horizontalLine: {
140
139
  width: "100%";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xhsreds/reds-rn-next",
3
- "version": "0.10.2-beta202512181604",
3
+ "version": "0.10.3-beta202512232045",
4
4
  "author": "贾斌(呀哈) <jiabin@xiaohongshu.com>",
5
5
  "license": "ISC",
6
6
  "dependencies": {
@@ -26,7 +26,7 @@
26
26
  "react-native-fs": "2.20.0",
27
27
  "react-native-svg": "13.14.0",
28
28
  "@xhs/react-native-harmony": "*",
29
- "@xhsreds/reds-token-next": "0.10.2-beta202512181604"
29
+ "@xhsreds/reds-token-next": "0.10.3-beta202512232045"
30
30
  },
31
31
  "peerDependenciesMeta": {
32
32
  "ozone-schema-web": {
@@ -141,7 +141,6 @@ export const style = (props: RedsAlert) => {
141
141
  },
142
142
  cancelText: {
143
143
  color: themeColor.Description,
144
- fontSize: 12,
145
144
  },
146
145
  horizontalLine: {
147
146
  width: "100%",
@@ -1,32 +1,32 @@
1
1
  interface Resources {
2
2
  componentKey: {
3
- sureKey: "Confirm";
4
- satisfyKey: "Satisfy";
5
- confirmKey: "Confirm";
6
- uploadingKey: "Uploading";
7
- resetKey: "Reset";
8
- NoDataKey: "No data available at the moment";
9
- liveStreamingKey: "live";
10
- generallyKey: "Generally";
11
- uploadFailedKey: "Upload failed";
12
- submitKey: "Submit";
13
- requestSuccessfulKey: "Request successful";
14
- cancelKey: "Cancel";
15
- PullDownToRefreshKey: "Pull down to refresh";
16
- selectAllKey: "SelectAll";
17
- requestDataKey: "Request data";
18
- closeKey: "Close";
19
- veryBadKey: "Very bad";
20
- searchKey: "Search";
21
- expandKey: "Expand";
22
- IDCardPhotoKey: "ID card photo";
23
- finishKey: "Finish";
24
- surpriseKey: "Surprise";
25
- releaseRefreshKey: "Release refresh";
26
- nationalEmblemSideOfIDCardKey: "National emblem side of ID card";
27
- buttonKey: "Button";
28
- jumpKey: "Jump";
29
- disappointmentKey: "Disappointment";
3
+ sureKey: "确定";
4
+ satisfyKey: "满意";
5
+ confirmKey: "确认";
6
+ uploadingKey: "上传中";
7
+ resetKey: "重置";
8
+ NoDataKey: "暂无数据";
9
+ liveStreamingKey: "直播";
10
+ generallyKey: "一般";
11
+ uploadFailedKey: "上传失败";
12
+ submitKey: "提交";
13
+ requestSuccessfulKey: "请求成功";
14
+ cancelKey: "取消";
15
+ PullDownToRefreshKey: "下拉刷新";
16
+ selectAllKey: "全选";
17
+ requestDataKey: "请求数据中";
18
+ closeKey: "收起";
19
+ veryBadKey: "极差";
20
+ searchKey: "搜索";
21
+ expandKey: "展开";
22
+ IDCardPhotoKey: "身份证人像面";
23
+ finishKey: "完成";
24
+ surpriseKey: "惊喜";
25
+ releaseRefreshKey: "松开刷新";
26
+ nationalEmblemSideOfIDCardKey: "身份证国徽面";
27
+ buttonKey: "按钮";
28
+ jumpKey: "跳转";
29
+ disappointmentKey: "失望";
30
30
  };
31
31
  }
32
32
  export default Resources;
@@ -1,35 +1,4 @@
1
1
  {
2
- "en_us": {
3
- "componentKey": {
4
- "sureKey": "Confirm",
5
- "satisfyKey": "Satisfy",
6
- "confirmKey": "Confirm",
7
- "uploadingKey": "Uploading",
8
- "resetKey": "Reset",
9
- "NoDataKey": "No data available at the moment",
10
- "liveStreamingKey": "live",
11
- "generallyKey": "Generally",
12
- "uploadFailedKey": "Upload failed",
13
- "submitKey": "Submit",
14
- "requestSuccessfulKey": "Request successful",
15
- "cancelKey": "Cancel",
16
- "PullDownToRefreshKey": "Pull down to refresh",
17
- "selectAllKey": "SelectAll",
18
- "requestDataKey": "Request data",
19
- "closeKey": "Close",
20
- "veryBadKey": "Very bad",
21
- "searchKey": "Search",
22
- "expandKey": "Expand",
23
- "IDCardPhotoKey": "ID card photo",
24
- "finishKey": "Finish",
25
- "surpriseKey": "Surprise",
26
- "releaseRefreshKey": "Release refresh",
27
- "nationalEmblemSideOfIDCardKey": "National emblem side of ID card",
28
- "buttonKey": "Button",
29
- "jumpKey": "Jump",
30
- "disappointmentKey": "Disappointment"
31
- }
32
- },
33
2
  "zh_cn": {
34
3
  "componentKey": {
35
4
  "sureKey": "确定",
@@ -91,5 +60,36 @@
91
60
  "jumpKey": "跳轉",
92
61
  "disappointmentKey": "失望"
93
62
  }
63
+ },
64
+ "en_us": {
65
+ "componentKey": {
66
+ "sureKey": "Confirm",
67
+ "satisfyKey": "Satisfy",
68
+ "confirmKey": "Confirm",
69
+ "uploadingKey": "Uploading",
70
+ "resetKey": "Reset",
71
+ "NoDataKey": "No data available at the moment",
72
+ "liveStreamingKey": "live",
73
+ "generallyKey": "Generally",
74
+ "uploadFailedKey": "Upload failed",
75
+ "submitKey": "Submit",
76
+ "requestSuccessfulKey": "Request successful",
77
+ "cancelKey": "Cancel",
78
+ "PullDownToRefreshKey": "Pull down to refresh",
79
+ "selectAllKey": "SelectAll",
80
+ "requestDataKey": "Request data",
81
+ "closeKey": "Close",
82
+ "veryBadKey": "Very bad",
83
+ "searchKey": "Search",
84
+ "expandKey": "Expand",
85
+ "IDCardPhotoKey": "ID card photo",
86
+ "finishKey": "Finish",
87
+ "surpriseKey": "Surprise",
88
+ "releaseRefreshKey": "Release refresh",
89
+ "nationalEmblemSideOfIDCardKey": "National emblem side of ID card",
90
+ "buttonKey": "Button",
91
+ "jumpKey": "Jump",
92
+ "disappointmentKey": "Disappointment"
93
+ }
94
94
  }
95
95
  }
@@ -1 +0,0 @@
1
- {"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":38},"end":{"line":5,"column":18}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":31}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":19}},"4":{"start":{"line":6,"column":32},"end":{"line":9,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":39},"end":{"line":1,"column":40}},"loc":{"start":{"line":1,"column":54},"end":{"line":5,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":3},"end":{"line":5,"column":17}},"type":"binary-expr","locations":[{"start":{"line":5,"column":3},"end":{"line":5,"column":11}},{"start":{"line":5,"column":15},"end":{"line":5,"column":17}}],"line":5}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1},"f":{"0":1},"b":{"0":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent, ImageStyle } from \"react-native\";\n\ntype IconFunction = (props: { size: number; fill?: string | string[] }) => string;\n\nexport const enum iconType {\n svg = \"svg\",\n image = \"image\",\n}\nexport interface RedsIcon {\n size?: number;\n fill?: string;\n icon?: IconFunction | string;\n type?: iconType;\n styles?: ImageStyle;\n onClick?: (value: GestureResponderEvent) => void;\n}\n\nexport interface RedsIconEvent {\n onClick?: (value: GestureResponderEvent) => void;\n}\nexport const IconDefaultProps = {\n size: 24,\n type: iconType.svg,\n};\n"],"mappings":"AAIO,WAAW,WAAX,kBAAWA,cAAX;AACL,EAAAA,UAAA,SAAM;AACN,EAAAA,UAAA,WAAQ;AAFQ,SAAAA;AAAA,GAAA;AAgBX,aAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,MAAM;AACR;","names":["iconType"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"81b964ff99f676ac34052449880e62cd29fecc96"},"/builds/fe/infra/reds/packages/reds-rn/src/pvCount/pvData.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/pvCount/pvData.ts","statementMap":{"0":{"start":{"line":4,"column":19},"end":{"line":4,"column":21}},"1":{"start":{"line":5,"column":30},"end":{"line":19,"column":1}},"2":{"start":{"line":6,"column":2},"end":{"line":18,"column":3}},"3":{"start":{"line":7,"column":4},"end":{"line":16,"column":7}},"4":{"start":{"line":17,"column":4},"end":{"line":17,"column":22}},"5":{"start":{"line":20,"column":23},"end":{"line":27,"column":1}},"6":{"start":{"line":21,"column":2},"end":{"line":25,"column":3}},"7":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":34}},"9":{"start":{"line":26,"column":2},"end":{"line":26,"column":44}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":30},"end":{"line":5,"column":31}},"loc":{"start":{"line":5,"column":36},"end":{"line":19,"column":1}},"line":5},"1":{"name":"(anonymous_1)","decl":{"start":{"line":20,"column":23},"end":{"line":20,"column":24}},"loc":{"start":{"line":20,"column":42},"end":{"line":27,"column":1}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":2},"end":{"line":18,"column":3}},"type":"if","locations":[{"start":{"line":6,"column":2},"end":{"line":18,"column":3}},{"start":{},"end":{}}],"line":6},"1":{"loc":{"start":{"line":21,"column":2},"end":{"line":25,"column":3}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":25,"column":3}},{"start":{"line":23,"column":9},"end":{"line":25,"column":3}}],"line":21}},"s":{"0":1,"1":1,"2":0,"3":0,"4":0,"5":1,"6":0,"7":0,"8":0,"9":0},"f":{"0":0,"1":0},"b":{"0":[0,0],"1":[0,0]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/pvCount/pvData.ts"],"sourcesContent":["import pack from \"../../package.json\";\nimport { push } from \"@xhs/reds-apm/src/index.native\";\nimport { pushByrequestIdleCallback } from \"@xhs/reds-apm/src/index.native\";\n\nlet globalPvData: Record<string, number> = {};\nexport const pushGlobalData = () => {\n if (Object.keys(globalPvData).length) {\n push({\n context_artifactName: \"reds-rn-next\",\n context_aritfactVersion: pack.version,\n measurement_name: \"reds_component_usage_pv\",\n measurement_data: {\n packageName: process.env.APP_NAME,\n packageVersion: process.env.APP_VERSION,\n pvData: JSON.stringify(globalPvData),\n },\n });\n // 上报完数据后清空数据\n globalPvData = {};\n }\n};\n\nexport const pvCount = (componentName: string) => {\n if (!globalPvData[componentName]) {\n globalPvData[componentName] = 1;\n } else {\n globalPvData[componentName]++;\n }\n pushByrequestIdleCallback(pushGlobalData);\n};\n"],"mappings":"AAAA,OAAO,UAAU;AACjB,SAAS,YAAY;AACrB,SAAS,iCAAiC;AAE1C,IAAI,eAAuC,CAAC;AACrC,aAAM,iBAAiB,MAAM;AAClC,MAAI,OAAO,KAAK,YAAY,EAAE,QAAQ;AACpC,SAAK;AAAA,MACH,sBAAsB;AAAA,MACtB,yBAAyB,KAAK;AAAA,MAC9B,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,QAChB,aAAa,QAAQ,IAAI;AAAA,QACzB,gBAAgB,QAAQ,IAAI;AAAA,QAC5B,QAAQ,KAAK,UAAU,YAAY;AAAA,MACrC;AAAA,IACF,CAAC;AAED,mBAAe,CAAC;AAAA,EAClB;AACF;AAEO,aAAM,UAAU,CAAC,kBAA0B;AAChD,MAAI,CAAC,aAAa,aAAa,GAAG;AAChC,iBAAa,aAAa,IAAI;AAAA,EAChC,OAAO;AACL,iBAAa,aAAa;AAAA,EAC5B;AACA,4BAA0B,cAAc;AAC1C;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"eec79479ebaf88fb81cde31cc9239afcebef422b"},"/builds/fe/infra/reds/packages/reds-rn/src/pvCount/useUnmountedProcess.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/pvCount/useUnmountedProcess.ts","statementMap":{"0":{"start":{"line":4,"column":19},"end":{"line":9,"column":1}},"1":{"start":{"line":5,"column":2},"end":{"line":8,"column":9}},"2":{"start":{"line":6,"column":4},"end":{"line":6,"column":34}},"3":{"start":{"line":6,"column":27},"end":{"line":6,"column":34}},"4":{"start":{"line":7,"column":4},"end":{"line":7,"column":27}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":19},"end":{"line":4,"column":20}},"loc":{"start":{"line":4,"column":38},"end":{"line":9,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":12},"end":{"line":5,"column":13}},"loc":{"start":{"line":5,"column":18},"end":{"line":8,"column":3}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":4},"end":{"line":6,"column":34}},"type":"if","locations":[{"start":{"line":6,"column":4},"end":{"line":6,"column":34}},{"start":{},"end":{}}],"line":6}},"s":{"0":1,"1":5,"2":4,"3":4,"4":0},"f":{"0":5,"1":4},"b":{"0":[4,0]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/pvCount/useUnmountedProcess.ts"],"sourcesContent":["import { isApmInstalled } from \"@xhs/reds-apm/src/index.native\";\nimport { useEffect } from \"react\";\nimport { pvCount } from \"./pvData\";\n\nconst useMounted = (componentName: string) => {\n useEffect(() => {\n // 没装直接返回\n if (!isApmInstalled()) return;\n pvCount(componentName);\n }, []);\n};\n\nexport default useMounted;\n"],"mappings":"AAAA,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AAExB,MAAM,aAAa,CAAC,kBAA0B;AAC5C,YAAU,MAAM;AAEd,QAAI,CAAC,eAAe,EAAG;AACvB,YAAQ,aAAa;AAAA,EACvB,GAAG,CAAC,CAAC;AACP;AAEA,eAAe;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2b6f2d905e538809287733be3177e02e1d78a66f"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/Icon.tsx":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/Icon.tsx","statementMap":{"0":{"start":{"line":6,"column":13},"end":{"line":49,"column":1}},"1":{"start":{"line":7,"column":2},"end":{"line":7,"column":21}},"2":{"start":{"line":8,"column":40},"end":{"line":8,"column":51}},"3":{"start":{"line":9,"column":21},"end":{"line":14,"column":3}},"4":{"start":{"line":11,"column":6},"end":{"line":11,"column":19}},"5":{"start":{"line":15,"column":18},"end":{"line":21,"column":3}},"6":{"start":{"line":16,"column":4},"end":{"line":20,"column":31}},"7":{"start":{"line":22,"column":2},"end":{"line":48,"column":11}},"8":{"start":{"line":51,"column":0},"end":{"line":51,"column":37}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":13},"end":{"line":6,"column":14}},"loc":{"start":{"line":6,"column":24},"end":{"line":49,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":10,"column":4},"end":{"line":10,"column":5}},"loc":{"start":{"line":10,"column":11},"end":{"line":12,"column":5}},"line":10},"2":{"name":"(anonymous_2)","decl":{"start":{"line":15,"column":18},"end":{"line":15,"column":19}},"loc":{"start":{"line":15,"column":30},"end":{"line":21,"column":3}},"line":15}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":40},"end":{"line":8,"column":51}},"type":"binary-expr","locations":[{"start":{"line":8,"column":40},"end":{"line":8,"column":45}},{"start":{"line":8,"column":49},"end":{"line":8,"column":51}}],"line":8},"1":{"loc":{"start":{"line":16,"column":11},"end":{"line":20,"column":30}},"type":"cond-expr","locations":[{"start":{"line":16,"column":37},"end":{"line":20,"column":12}},{"start":{"line":20,"column":15},"end":{"line":20,"column":30}}],"line":16},"2":{"loc":{"start":{"line":27,"column":8},"end":{"line":27,"column":57}},"type":"cond-expr","locations":[{"start":{"line":27,"column":21},"end":{"line":27,"column":52}},{"start":{"line":27,"column":55},"end":{"line":27,"column":57}}],"line":27},"3":{"loc":{"start":{"line":28,"column":8},"end":{"line":28,"column":67}},"type":"cond-expr","locations":[{"start":{"line":28,"column":21},"end":{"line":28,"column":62}},{"start":{"line":28,"column":65},"end":{"line":28,"column":67}}],"line":28},"4":{"loc":{"start":{"line":29,"column":8},"end":{"line":29,"column":40}},"type":"cond-expr","locations":[{"start":{"line":29,"column":23},"end":{"line":29,"column":35}},{"start":{"line":29,"column":38},"end":{"line":29,"column":40}}],"line":29}},"s":{"0":1,"1":5,"2":5,"3":5,"4":2,"5":5,"6":5,"7":5,"8":1},"f":{"0":5,"1":2,"2":5},"b":{"0":[5,0],"1":[5,0],"2":[5,0],"3":[5,0],"4":[0,5]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/Icon.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport { GestureResponderEvent, TouchableOpacity, Image } from \"react-native\";\nimport { RedsIcon, IconDefaultProps, iconType } from \"./interface/index\";\nimport useMounted from \"../../pvCount/useUnmountedProcess\";\n\nconst Icon: React.FC<RedsIcon> = (props) => {\n useMounted(\"Icon\");\n const { size, fill, onClick, icon } = props || {};\n\n /** icon点击事件 */\n const toggleIcon = useCallback(\n (e: GestureResponderEvent) => {\n onClick?.(e);\n },\n [onClick],\n );\n\n const Wrapper = (props: any) => {\n return onClick ? (\n <TouchableOpacity testID=\"touchable-element\" onPress={toggleIcon} activeOpacity={1}>\n {props.children}\n </TouchableOpacity>\n ) : (\n props.children\n );\n };\n\n return (\n <Wrapper>\n {\n <TouchableOpacity onPress={toggleIcon}>\n <Image\n source={{ uri: props.icon as string }}\n style={[\n props.fill ? { backgroundColor: props.fill } : {},\n props.size ? { width: props.size, height: props.size } : {},\n props.styles ? props.styles : {},\n ]}\n />\n </TouchableOpacity>\n }\n </Wrapper>\n );\n};\n\nexport default Icon;\n\nIcon.defaultProps = IconDefaultProps;\n"],"mappings":"AAmBM;AAnBN,SAAgB,mBAA4B;AAC5C,SAAgC,kBAAkB,aAAa;AAC/D,SAAmB,wBAAkC;AACrD,OAAO,gBAAgB;AAEvB,MAAM,OAA2B,CAAC,UAAU;AAC1C,aAAW,MAAM;AACjB,QAAM,EAAE,MAAM,MAAM,SAAS,KAAK,IAAI,SAAS,CAAC;AAGhD,QAAM,aAAa;AAAA,IACjB,CAAC,MAA6B;AAC5B,gBAAU,CAAC;AAAA,IACb;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,QAAM,UAAU,CAACA,WAAe;AAC9B,WAAO,UACL,uBAAC,oBAAiB,QAAO,qBAAoB,SAAS,YAAY,eAAe,GAC9E,UAAAA,OAAM,YADT;AAAA;AAAA;AAAA;AAAA,WAEA,IAEAA,OAAM;AAAA,EAEV;AAEA,SACE,uBAAC,WAEG,iCAAC,oBAAiB,SAAS,YACzB;AAAA,IAAC;AAAA;AAAA,MACC,QAAQ,EAAE,KAAK,MAAM,KAAe;AAAA,MACpC,OAAO;AAAA,QACL,MAAM,OAAO,EAAE,iBAAiB,MAAM,KAAK,IAAI,CAAC;AAAA,QAChD,MAAM,OAAO,EAAE,OAAO,MAAM,MAAM,QAAQ,MAAM,KAAK,IAAI,CAAC;AAAA,QAC1D,MAAM,SAAS,MAAM,SAAS,CAAC;AAAA,MACjC;AAAA;AAAA,IANF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,KARF;AAAA;AAAA;AAAA;AAAA,SASA,KAXJ;AAAA;AAAA;AAAA;AAAA,SAaA;AAEJ;AAEA,eAAe;AAEf,KAAK,eAAe;","names":["props"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8dd933a4bbb566029db5938ab819c68b7d335259"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/index.ts","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/index.ts"],"sourcesContent":["import Icon from \"./Icon\";\nimport * as IconType from \"./interface\";\n\nexport { Icon, IconType };\n\nexport default Icon;\n"],"mappings":"AAAA,OAAO,UAAU;AACjB,YAAY,cAAc;AAE1B,SAAS,MAAM;AAEf,eAAe;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1a96ae1f91b55c116f59fa85a23fd850453c6eb8"}}