@jsenv/navi 0.11.2 → 0.11.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.
- package/dist/jsenv_navi.js +26 -24
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -9777,14 +9777,14 @@ const withPropsStyle = (
|
|
|
9777
9777
|
expandX = expand,
|
|
9778
9778
|
expandY = expand,
|
|
9779
9779
|
// typo props
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
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 (
|
|
9956
|
-
const
|
|
9957
|
-
typeof
|
|
9958
|
-
|
|
9955
|
+
if (textSize) {
|
|
9956
|
+
const fontSize =
|
|
9957
|
+
typeof textSize === "string"
|
|
9958
|
+
? typoSizes[textSize] || textSize
|
|
9959
|
+
: textSize;
|
|
9960
|
+
typoStyles.fontSize = fontSize;
|
|
9959
9961
|
}
|
|
9960
|
-
if (
|
|
9962
|
+
if (textBold) {
|
|
9961
9963
|
typoStyles.fontWeight = "bold";
|
|
9962
|
-
} else if (
|
|
9964
|
+
} else if (textThin) {
|
|
9963
9965
|
typoStyles.fontWeight = "thin";
|
|
9964
|
-
} else if (
|
|
9966
|
+
} else if (textThin === false || textBold === false) {
|
|
9965
9967
|
typoStyles.fontWeight = "normal";
|
|
9966
9968
|
}
|
|
9967
|
-
if (
|
|
9969
|
+
if (textItalic) {
|
|
9968
9970
|
typoStyles.fontStyle = "italic";
|
|
9969
|
-
} else if (
|
|
9971
|
+
} else if (textItalic === false) {
|
|
9970
9972
|
typoStyles.fontStyle = "normal";
|
|
9971
9973
|
}
|
|
9972
|
-
if (
|
|
9974
|
+
if (textUnderline) {
|
|
9973
9975
|
typoStyles.textDecoration = "underline";
|
|
9974
|
-
} else if (
|
|
9976
|
+
} else if (textUnderline === false) {
|
|
9975
9977
|
typoStyles.textDecoration = "none";
|
|
9976
9978
|
}
|
|
9977
|
-
if (
|
|
9978
|
-
typoStyles.textDecorationStyle =
|
|
9979
|
+
if (textUnderlineStyle) {
|
|
9980
|
+
typoStyles.textDecorationStyle = textUnderlineStyle;
|
|
9979
9981
|
}
|
|
9980
|
-
if (
|
|
9981
|
-
typoStyles.textDecorationColor =
|
|
9982
|
+
if (textUnderlineColor) {
|
|
9983
|
+
typoStyles.textDecorationColor = textUnderlineColor;
|
|
9982
9984
|
}
|
|
9983
|
-
typoStyles.color =
|
|
9985
|
+
typoStyles.color = textColor;
|
|
9984
9986
|
}
|
|
9985
9987
|
props_styles: {
|
|
9986
9988
|
if (!style && !hasRemainingConfig) {
|