@miot-rn/car-component 1.0.2 → 1.0.3

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.
@@ -92,7 +92,7 @@ const styles = dynamicStyleSheet({
92
92
  marginHorizontal: 4
93
93
  },
94
94
  statusText: {
95
- ...Fonts.FontTextRegular,
95
+ ...Fonts.fontSystem14Medium,
96
96
  color: defaultColorToken.contentTertiaryNormal,
97
97
  includeFontPadding: false,
98
98
  textAlign: 'center'
@@ -59,9 +59,9 @@ function FlatOption({
59
59
  case 'red':
60
60
  case 'yellow':
61
61
  case 'wathet':
62
- return [primaryColor, disabled ? colorToken.contentInverseDisabled : colorToken.staticWhite];
62
+ return [primaryColor, disabled ? colorToken.contentDisabledSecondary : colorToken.staticWhite];
63
63
  default:
64
- return [colorToken.fillQuaternary, disabled ? colorToken.contentDisabledPrimary : colorToken.contentSecondaryNormal];
64
+ return [colorToken.fillQuaternary, disabled ? colorToken.contentDisabledSecondary : colorToken.contentSecondaryNormal];
65
65
  }
66
66
  }, [colorType, colorToken, disabled, primaryColor]);
67
67
  const generateIcon = useMemo(() => {
@@ -89,7 +89,7 @@ function FlatOption({
89
89
  style: [styles.icon]
90
90
  }, generateIcon), /*#__PURE__*/React.createElement(Text, {
91
91
  style: [styles.label, {
92
- color: selected ? activeTextColor : disabled ? colorToken.contentDisabledPrimary : colorToken.contentSecondaryNormal
92
+ color: selected ? activeTextColor : disabled ? colorToken.contentDisabledSecondary : colorToken.contentSecondaryNormal
93
93
  }],
94
94
  allowFontScaling: false,
95
95
  numberOfLines: 2,
@@ -56,13 +56,13 @@ const LargeEntrance = props => {
56
56
  }, /*#__PURE__*/React.createElement(Text, {
57
57
  numberOfLines: MAX_LINE,
58
58
  allowFontScaling: false,
59
- style: [Fonts.mj_text_custom_16_M, {
59
+ style: [Fonts.fontSystem16Medium, {
60
60
  color: disabled ? colorToken.contentDisabledPrimary : colorToken.contentPrimaryNormal
61
61
  }]
62
62
  }, title), subtitle ? subTitleIsString ? /*#__PURE__*/React.createElement(Text, {
63
63
  numberOfLines: MAX_LINE,
64
64
  allowFontScaling: false,
65
- style: [Fonts.mj_text_custom_13_R, {
65
+ style: [Fonts.fontSystem13Regular, {
66
66
  color: disabled ? colorToken.contentDisabledPrimary : colorToken.contentTertiaryNormal
67
67
  }]
68
68
  }, subtitle) : /*#__PURE__*/isValidElement(subtitle) ? (/*#__PURE__*/cloneElement(subtitle, {
@@ -81,7 +81,7 @@ const LargeEntrance = props => {
81
81
  }), value ? /*#__PURE__*/React.createElement(Text, {
82
82
  numberOfLines: MAX_LINE,
83
83
  allowFontScaling: false,
84
- style: [styles.rightText, Fonts.mj_text_body_2_R, {
84
+ style: [styles.rightText, Fonts.fontSystem14Regular, {
85
85
  color: disabled ? colorToken.contentDisabledPrimary : colorToken.contentQuaternaryNormal
86
86
  }]
87
87
  }, value) : null, !shouldHideRightIcon && /*#__PURE__*/React.createElement(View, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miot-rn/car-component",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,5 +23,5 @@
23
23
  "react-native": "^0.61.0",
24
24
  "react-native-svg": "9.5.3"
25
25
  },
26
- "gitHead": "2920def2cc542a8d0efcf100814e477830d94bb3"
26
+ "gitHead": "21b41b44bca6c7cc4127d8b41e15511ea939f5df"
27
27
  }