@jsenv/navi 0.25.0 → 0.25.1
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 +29 -16
- package/dist/jsenv_navi.js.map +4 -4
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -6298,15 +6298,21 @@ const DIMENSION_PROPS = {
|
|
|
6298
6298
|
}
|
|
6299
6299
|
const inHorizontalFlexFlow =
|
|
6300
6300
|
parentBoxFlow === "flex-x" || parentBoxFlow === "inline-flex-x";
|
|
6301
|
-
if (
|
|
6302
|
-
//
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
return {
|
|
6301
|
+
if (inHorizontalFlexFlow) {
|
|
6302
|
+
// Parent is flex-x: grow as flex item
|
|
6303
|
+
return { flexGrow: 1, flexBasis: "0%" };
|
|
6304
|
+
}
|
|
6305
|
+
if (parentBoxFlow === "flex-y" || parentBoxFlow === "inline-flex-y") {
|
|
6306
|
+
return {
|
|
6307
|
+
alignSelf: "stretch",
|
|
6308
|
+
// Here flex grow is "useless" for the item itself
|
|
6309
|
+
// buuut it would allow children (hello ".navi_text_bold_wrapper")
|
|
6310
|
+
// to inherit expand behavior
|
|
6311
|
+
flexGrow: 1,
|
|
6312
|
+
};
|
|
6307
6313
|
}
|
|
6308
|
-
//
|
|
6309
|
-
return {
|
|
6314
|
+
// Can't use flexGrow — parent is not flex-x
|
|
6315
|
+
return { width: "100%" };
|
|
6310
6316
|
},
|
|
6311
6317
|
expandY: (value, { parentBoxFlow }) => {
|
|
6312
6318
|
if (!value) {
|
|
@@ -6314,15 +6320,21 @@ const DIMENSION_PROPS = {
|
|
|
6314
6320
|
}
|
|
6315
6321
|
const inVerticalFlexFlow =
|
|
6316
6322
|
parentBoxFlow === "flex-y" || parentBoxFlow === "inline-flex-y";
|
|
6317
|
-
if (
|
|
6318
|
-
//
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
return {
|
|
6323
|
+
if (inVerticalFlexFlow) {
|
|
6324
|
+
// Parent is flex-y: grow as flex item
|
|
6325
|
+
return { flexGrow: 1, flexBasis: "0%" };
|
|
6326
|
+
}
|
|
6327
|
+
if (parentBoxFlow === "flex-x" || parentBoxFlow === "inline-flex-x") {
|
|
6328
|
+
return {
|
|
6329
|
+
alignSelf: "stretch",
|
|
6330
|
+
// Here flex grow is "useless" for the item itself
|
|
6331
|
+
// buuut it would allow children (hello ".navi_text_bold_wrapper")
|
|
6332
|
+
// to inherit expand behavior
|
|
6333
|
+
flexGrow: 1,
|
|
6334
|
+
};
|
|
6323
6335
|
}
|
|
6324
|
-
//
|
|
6325
|
-
return {
|
|
6336
|
+
// Can't use flexGrow — parent is not flex-y
|
|
6337
|
+
return { height: "100%" };
|
|
6326
6338
|
},
|
|
6327
6339
|
shrinkX: (value) => {
|
|
6328
6340
|
if (!value || value === "0") {
|
|
@@ -20403,6 +20415,7 @@ const css$v = /* css */`
|
|
|
20403
20415
|
min-height: inherit;
|
|
20404
20416
|
flex-grow: inherit;
|
|
20405
20417
|
align-items: inherit;
|
|
20418
|
+
align-self: inherit;
|
|
20406
20419
|
justify-content: inherit;
|
|
20407
20420
|
gap: inherit;
|
|
20408
20421
|
text-align: inherit;
|