@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/dev/jsenv_navi.js
CHANGED
|
@@ -19680,7 +19680,22 @@ const TYPO_PROPS = {
|
|
|
19680
19680
|
}
|
|
19681
19681
|
return lineClampStyles(value);
|
|
19682
19682
|
},
|
|
19683
|
-
|
|
19683
|
+
/* A sized inline Box (a Text with a width) is a flex row the caller did not
|
|
19684
|
+
ask for, where the text runs are one anonymous item sized to their content:
|
|
19685
|
+
text-align alone moves nothing, the item is placed by justify-content. A
|
|
19686
|
+
flex row asked for keeps the two apart (Picker: textAlign is the text in
|
|
19687
|
+
the value slot, justify-content the slots). alignX, when given, wins. */
|
|
19688
|
+
textAlign: (value, { flexFromSize, remainingProps }) => {
|
|
19689
|
+
if (
|
|
19690
|
+
flexFromSize &&
|
|
19691
|
+
value !== "justify" &&
|
|
19692
|
+
remainingProps.alignX === undefined &&
|
|
19693
|
+
remainingProps.align === undefined
|
|
19694
|
+
) {
|
|
19695
|
+
return { textAlign: value, justifyContent: value };
|
|
19696
|
+
}
|
|
19697
|
+
return { textAlign: value };
|
|
19698
|
+
},
|
|
19684
19699
|
textBox: PASS_THROUGH,
|
|
19685
19700
|
textBoxTrim: PASS_THROUGH,
|
|
19686
19701
|
textBoxEdge: PASS_THROUGH,
|
|
@@ -22294,8 +22309,12 @@ const computeBox = (props, parentBoxFlow) => {
|
|
|
22294
22309
|
block = true;
|
|
22295
22310
|
}
|
|
22296
22311
|
}
|
|
22312
|
+
// An inline box ignores width/height, so a sized one becomes a flex row the
|
|
22313
|
+
// caller never asked for; textAlign reads that (see box_style_util.js).
|
|
22314
|
+
let flexFromSize = false;
|
|
22297
22315
|
if (inline && (rest.width !== undefined || rest.height !== undefined) && flex === undefined) {
|
|
22298
22316
|
flex = "x";
|
|
22317
|
+
flexFromSize = true;
|
|
22299
22318
|
}
|
|
22300
22319
|
let boxFlow;
|
|
22301
22320
|
if (inline) {
|
|
@@ -22389,6 +22408,7 @@ const computeBox = (props, parentBoxFlow) => {
|
|
|
22389
22408
|
const styleContext = {
|
|
22390
22409
|
parentBoxFlow,
|
|
22391
22410
|
boxFlow,
|
|
22411
|
+
flexFromSize,
|
|
22392
22412
|
styleCSSVars,
|
|
22393
22413
|
pseudoState: innerPseudoState,
|
|
22394
22414
|
pseudoClasses,
|