@jsenv/navi 0.11.2 → 0.11.4

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.
@@ -9777,14 +9777,14 @@ const withPropsStyle = (
9777
9777
  expandX = expand,
9778
9778
  expandY = expand,
9779
9779
  // typo props
9780
- size,
9781
- bold,
9782
- thin,
9783
- italic,
9784
- underline,
9785
- underlineStyle,
9786
- underlineColor,
9787
- color,
9780
+ textSize,
9781
+ textBold,
9782
+ textThin,
9783
+ textItalic,
9784
+ textUnderline,
9785
+ textUnderlineStyle,
9786
+ textUnderlineColor,
9787
+ textColor,
9788
9788
  // props not related to styling
9789
9789
  ...remainingProps
9790
9790
  } = props;
@@ -9952,35 +9952,37 @@ const withPropsStyle = (
9952
9952
  }
9953
9953
  typoStyles = {};
9954
9954
 
9955
- if (size) {
9956
- const sizeValue =
9957
- typeof size === "string" ? typoSizes[size] || size : size;
9958
- typoStyles.fontSize = sizeValue;
9955
+ if (textSize) {
9956
+ const fontSize =
9957
+ typeof textSize === "string"
9958
+ ? typoSizes[textSize] || textSize
9959
+ : textSize;
9960
+ typoStyles.fontSize = fontSize;
9959
9961
  }
9960
- if (bold) {
9962
+ if (textBold) {
9961
9963
  typoStyles.fontWeight = "bold";
9962
- } else if (thin) {
9964
+ } else if (textThin) {
9963
9965
  typoStyles.fontWeight = "thin";
9964
- } else if (thin === false || bold === false) {
9966
+ } else if (textThin === false || textBold === false) {
9965
9967
  typoStyles.fontWeight = "normal";
9966
9968
  }
9967
- if (italic) {
9969
+ if (textItalic) {
9968
9970
  typoStyles.fontStyle = "italic";
9969
- } else if (italic === false) {
9971
+ } else if (textItalic === false) {
9970
9972
  typoStyles.fontStyle = "normal";
9971
9973
  }
9972
- if (underline) {
9974
+ if (textUnderline) {
9973
9975
  typoStyles.textDecoration = "underline";
9974
- } else if (underline === false) {
9976
+ } else if (textUnderline === false) {
9975
9977
  typoStyles.textDecoration = "none";
9976
9978
  }
9977
- if (underlineStyle) {
9978
- typoStyles.textDecorationStyle = underlineStyle;
9979
+ if (textUnderlineStyle) {
9980
+ typoStyles.textDecorationStyle = textUnderlineStyle;
9979
9981
  }
9980
- if (underlineColor) {
9981
- typoStyles.textDecorationColor = underlineColor;
9982
+ if (textUnderlineColor) {
9983
+ typoStyles.textDecorationColor = textUnderlineColor;
9982
9984
  }
9983
- typoStyles.color = color;
9985
+ typoStyles.color = textColor;
9984
9986
  }
9985
9987
  props_styles: {
9986
9988
  if (!style && !hasRemainingConfig) {