@makeswift/runtime 0.4.1 → 0.4.2
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/index.cjs.js +17 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17 -17
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1050,7 +1050,7 @@ class Document$1 extends NextDocument {
|
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const version = "0.4.
|
|
1053
|
+
const version = "0.4.2";
|
|
1054
1054
|
function isErrorWithMessage(error) {
|
|
1055
1055
|
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
1056
1056
|
}
|
|
@@ -2847,13 +2847,13 @@ function paddingPropertyDataToStyle(data, defaultValue = {}) {
|
|
|
2847
2847
|
const paddingBottom = (_c2 = data.paddingBottom) != null ? _c2 : defaultValue.paddingBottom;
|
|
2848
2848
|
const paddingLeft = (_d = data.paddingLeft) != null ? _d : defaultValue.paddingLeft;
|
|
2849
2849
|
const style = {};
|
|
2850
|
-
if (paddingTop)
|
|
2850
|
+
if (paddingTop != null)
|
|
2851
2851
|
style.paddingTop = lengthDataToString(paddingTop);
|
|
2852
|
-
if (paddingRight)
|
|
2852
|
+
if (paddingRight != null)
|
|
2853
2853
|
style.paddingRight = lengthDataToString(paddingRight);
|
|
2854
|
-
if (paddingBottom)
|
|
2854
|
+
if (paddingBottom != null)
|
|
2855
2855
|
style.paddingBottom = lengthDataToString(paddingBottom);
|
|
2856
|
-
if (paddingLeft)
|
|
2856
|
+
if (paddingLeft != null)
|
|
2857
2857
|
style.paddingLeft = lengthDataToString(paddingLeft);
|
|
2858
2858
|
return style;
|
|
2859
2859
|
}
|
|
@@ -2864,13 +2864,13 @@ function marginPropertyDataToStyle(data, defaultValue = {}) {
|
|
|
2864
2864
|
const marginBottom = (_c2 = data.marginBottom) != null ? _c2 : defaultValue.marginBottom;
|
|
2865
2865
|
const marginLeft = (_d = data.marginLeft) != null ? _d : defaultValue.marginLeft;
|
|
2866
2866
|
const style = {};
|
|
2867
|
-
if (marginTop)
|
|
2867
|
+
if (marginTop != null)
|
|
2868
2868
|
style.marginTop = lengthDataToString(marginTop);
|
|
2869
|
-
if (marginRight)
|
|
2869
|
+
if (marginRight != null)
|
|
2870
2870
|
style.marginRight = lengthDataToString(marginRight);
|
|
2871
|
-
if (marginBottom)
|
|
2871
|
+
if (marginBottom != null)
|
|
2872
2872
|
style.marginBottom = lengthDataToString(marginBottom);
|
|
2873
|
-
if (marginLeft)
|
|
2873
|
+
if (marginLeft != null)
|
|
2874
2874
|
style.marginLeft = lengthDataToString(marginLeft);
|
|
2875
2875
|
return style;
|
|
2876
2876
|
}
|
|
@@ -2888,16 +2888,16 @@ function borderRadiusPropertyDataToStyle(data, defaultValue = {}) {
|
|
|
2888
2888
|
const borderBottomRightRadius = (_c2 = data.borderBottomRightRadius) != null ? _c2 : defaultValue.borderBottomRightRadius;
|
|
2889
2889
|
const borderBottomLeftRadius = (_d = data.borderBottomLeftRadius) != null ? _d : defaultValue.borderBottomLeftRadius;
|
|
2890
2890
|
const style = {};
|
|
2891
|
-
if (borderTopLeftRadius) {
|
|
2891
|
+
if (borderTopLeftRadius != null) {
|
|
2892
2892
|
style.borderTopLeftRadius = lengthPercentageDataToString(borderTopLeftRadius);
|
|
2893
2893
|
}
|
|
2894
|
-
if (borderTopRightRadius) {
|
|
2894
|
+
if (borderTopRightRadius != null) {
|
|
2895
2895
|
style.borderTopRightRadius = lengthPercentageDataToString(borderTopRightRadius);
|
|
2896
2896
|
}
|
|
2897
|
-
if (borderBottomRightRadius) {
|
|
2897
|
+
if (borderBottomRightRadius != null) {
|
|
2898
2898
|
style.borderBottomRightRadius = lengthPercentageDataToString(borderBottomRightRadius);
|
|
2899
2899
|
}
|
|
2900
|
-
if (borderBottomLeftRadius) {
|
|
2900
|
+
if (borderBottomLeftRadius != null) {
|
|
2901
2901
|
style.borderBottomLeftRadius = lengthPercentageDataToString(borderBottomLeftRadius);
|
|
2902
2902
|
}
|
|
2903
2903
|
return style;
|
|
@@ -2912,13 +2912,13 @@ function borderPropertyDataToStyle(data, defaultValue = {}) {
|
|
|
2912
2912
|
const borderBottom = (_c2 = data.borderBottom) != null ? _c2 : defaultValue.borderBottom;
|
|
2913
2913
|
const borderLeft = (_d = data.borderLeft) != null ? _d : defaultValue.borderLeft;
|
|
2914
2914
|
const style = {};
|
|
2915
|
-
if (borderTop)
|
|
2915
|
+
if (borderTop != null)
|
|
2916
2916
|
style.borderTop = borderSideToString(borderTop);
|
|
2917
|
-
if (borderRight)
|
|
2917
|
+
if (borderRight != null)
|
|
2918
2918
|
style.borderRight = borderSideToString(borderRight);
|
|
2919
|
-
if (borderBottom)
|
|
2919
|
+
if (borderBottom != null)
|
|
2920
2920
|
style.borderBottom = borderSideToString(borderBottom);
|
|
2921
|
-
if (borderLeft)
|
|
2921
|
+
if (borderLeft != null)
|
|
2922
2922
|
style.borderLeft = borderSideToString(borderLeft);
|
|
2923
2923
|
return style;
|
|
2924
2924
|
}
|