@jsenv/navi 0.29.352 → 0.29.353
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/dev/jsenv_navi.js +21 -1
- package/dist/dev/jsenv_navi.js.map +3 -3
- package/dist/jsenv_navi.js +21 -1
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -19076,7 +19076,22 @@ const TYPO_PROPS = {
|
|
|
19076
19076
|
}
|
|
19077
19077
|
return lineClampStyles(value);
|
|
19078
19078
|
},
|
|
19079
|
-
|
|
19079
|
+
/* A sized inline Box (a Text with a width) is a flex row the caller did not
|
|
19080
|
+
ask for, where the text runs are one anonymous item sized to their content:
|
|
19081
|
+
text-align alone moves nothing, the item is placed by justify-content. A
|
|
19082
|
+
flex row asked for keeps the two apart (Picker: textAlign is the text in
|
|
19083
|
+
the value slot, justify-content the slots). alignX, when given, wins. */
|
|
19084
|
+
textAlign: (value, { flexFromSize, remainingProps }) => {
|
|
19085
|
+
if (
|
|
19086
|
+
flexFromSize &&
|
|
19087
|
+
value !== "justify" &&
|
|
19088
|
+
remainingProps.alignX === undefined &&
|
|
19089
|
+
remainingProps.align === undefined
|
|
19090
|
+
) {
|
|
19091
|
+
return { textAlign: value, justifyContent: value };
|
|
19092
|
+
}
|
|
19093
|
+
return { textAlign: value };
|
|
19094
|
+
},
|
|
19080
19095
|
textBox: PASS_THROUGH,
|
|
19081
19096
|
textBoxTrim: PASS_THROUGH,
|
|
19082
19097
|
textBoxEdge: PASS_THROUGH,
|
|
@@ -21654,8 +21669,12 @@ const computeBox = (props, parentBoxFlow) => {
|
|
|
21654
21669
|
block = true;
|
|
21655
21670
|
}
|
|
21656
21671
|
}
|
|
21672
|
+
// An inline box ignores width/height, so a sized one becomes a flex row the
|
|
21673
|
+
// caller never asked for; textAlign reads that (see box_style_util.js).
|
|
21674
|
+
let flexFromSize = false;
|
|
21657
21675
|
if (inline && (rest.width !== undefined || rest.height !== undefined) && flex === undefined) {
|
|
21658
21676
|
flex = "x";
|
|
21677
|
+
flexFromSize = true;
|
|
21659
21678
|
}
|
|
21660
21679
|
let boxFlow;
|
|
21661
21680
|
if (inline) {
|
|
@@ -21749,6 +21768,7 @@ const computeBox = (props, parentBoxFlow) => {
|
|
|
21749
21768
|
const styleContext = {
|
|
21750
21769
|
parentBoxFlow,
|
|
21751
21770
|
boxFlow,
|
|
21771
|
+
flexFromSize,
|
|
21752
21772
|
styleCSSVars,
|
|
21753
21773
|
pseudoState: innerPseudoState,
|
|
21754
21774
|
pseudoClasses,
|