@jsenv/navi 0.12.0 → 0.12.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/jsenv_navi.js +31 -29
- package/dist/jsenv_navi.js.map +15 -15
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -9381,6 +9381,7 @@ const VISUAL_PROPS = {
|
|
|
9381
9381
|
cursor: PASS_THROUGH,
|
|
9382
9382
|
};
|
|
9383
9383
|
const CONTENT_PROPS = {
|
|
9384
|
+
contentAlign: applyOnTwoProps("contentAlignX", "contentAlignY"),
|
|
9384
9385
|
contentAlignX: (value, { layout }) => {
|
|
9385
9386
|
if (layout === "row" || layout === "inline-row") {
|
|
9386
9387
|
if (value === "stretch") {
|
|
@@ -10717,18 +10718,6 @@ const RectangleLoadingSvg = ({
|
|
|
10717
10718
|
};
|
|
10718
10719
|
|
|
10719
10720
|
installImportMetaCss(import.meta);import.meta.css = /* css */`
|
|
10720
|
-
.navi_inline_wrapper {
|
|
10721
|
-
position: relative;
|
|
10722
|
-
display: inline-flex;
|
|
10723
|
-
width: fit-content;
|
|
10724
|
-
height: fit-content;
|
|
10725
|
-
flex-direction: inherit;
|
|
10726
|
-
/* min-width: 100%; */
|
|
10727
|
-
/* min-height: 100%; */
|
|
10728
|
-
border-radius: inherit;
|
|
10729
|
-
cursor: inherit;
|
|
10730
|
-
}
|
|
10731
|
-
|
|
10732
10721
|
.navi_loading_rectangle_wrapper {
|
|
10733
10722
|
position: absolute;
|
|
10734
10723
|
top: var(--rectangle-top, 0);
|
|
@@ -12521,9 +12510,18 @@ const CharSlot = ({
|
|
|
12521
12510
|
});
|
|
12522
12511
|
};
|
|
12523
12512
|
const Icon = ({
|
|
12513
|
+
box,
|
|
12524
12514
|
children,
|
|
12525
12515
|
...props
|
|
12526
12516
|
}) => {
|
|
12517
|
+
if (box) {
|
|
12518
|
+
return jsx(Box, {
|
|
12519
|
+
layoutInline: true,
|
|
12520
|
+
layoutColumn: true,
|
|
12521
|
+
...props,
|
|
12522
|
+
children: children
|
|
12523
|
+
});
|
|
12524
|
+
}
|
|
12527
12525
|
return jsx(CharSlot, {
|
|
12528
12526
|
decorative: true,
|
|
12529
12527
|
...props,
|
|
@@ -12723,10 +12721,11 @@ const LinkPlain = props => {
|
|
|
12723
12721
|
anchorIcon,
|
|
12724
12722
|
icon,
|
|
12725
12723
|
contentSpacing = " ",
|
|
12726
|
-
ref = useRef(),
|
|
12727
12724
|
children,
|
|
12728
12725
|
...rest
|
|
12729
12726
|
} = props;
|
|
12727
|
+
const defaultRef = useRef();
|
|
12728
|
+
const ref = props.ref || defaultRef;
|
|
12730
12729
|
const visited = useIsVisited(href);
|
|
12731
12730
|
useAutoFocus(ref, autoFocus);
|
|
12732
12731
|
useConstraints(ref, constraints);
|
|
@@ -12917,9 +12916,10 @@ const LinkWithSelection = props => {
|
|
|
12917
12916
|
const {
|
|
12918
12917
|
value = props.href,
|
|
12919
12918
|
children,
|
|
12920
|
-
ref = useRef(),
|
|
12921
12919
|
...rest
|
|
12922
12920
|
} = props;
|
|
12921
|
+
const defaultRef = useRef();
|
|
12922
|
+
const ref = props.ref || defaultRef;
|
|
12923
12923
|
const {
|
|
12924
12924
|
selected
|
|
12925
12925
|
} = useSelectableElement(ref, {
|
|
@@ -12981,9 +12981,10 @@ const LinkWithAction = props => {
|
|
|
12981
12981
|
onActionEnd,
|
|
12982
12982
|
children,
|
|
12983
12983
|
loading,
|
|
12984
|
-
ref = useRef(),
|
|
12985
12984
|
...rest
|
|
12986
12985
|
} = props;
|
|
12986
|
+
const defaultRef = useRef();
|
|
12987
|
+
const ref = props.ref || defaultRef;
|
|
12987
12988
|
const {
|
|
12988
12989
|
actionPending
|
|
12989
12990
|
} = useRequestedActionStatus(ref);
|
|
@@ -13010,7 +13011,6 @@ const LinkWithAction = props => {
|
|
|
13010
13011
|
const RouteLink = ({
|
|
13011
13012
|
route,
|
|
13012
13013
|
routeParams,
|
|
13013
|
-
active,
|
|
13014
13014
|
children,
|
|
13015
13015
|
...rest
|
|
13016
13016
|
}) => {
|
|
@@ -13019,11 +13019,13 @@ const RouteLink = ({
|
|
|
13019
13019
|
}
|
|
13020
13020
|
const routeStatus = useRouteStatus(route);
|
|
13021
13021
|
const url = route.buildUrl(routeParams);
|
|
13022
|
-
const
|
|
13022
|
+
const routeIsActive = routeStatus.active;
|
|
13023
13023
|
return jsx(Link, {
|
|
13024
13024
|
...rest,
|
|
13025
13025
|
href: url,
|
|
13026
|
-
|
|
13026
|
+
pseudoState: {
|
|
13027
|
+
":-navi-current-link": routeIsActive
|
|
13028
|
+
},
|
|
13027
13029
|
children: children
|
|
13028
13030
|
});
|
|
13029
13031
|
};
|
|
@@ -13559,10 +13561,12 @@ const Label = props => {
|
|
|
13559
13561
|
const [inputDisabled, setInputDisabled] = useState(false);
|
|
13560
13562
|
const innerDisabled = disabled || inputDisabled;
|
|
13561
13563
|
return jsx(Box, {
|
|
13562
|
-
as: "label",
|
|
13563
13564
|
...rest,
|
|
13564
|
-
|
|
13565
|
-
|
|
13565
|
+
as: "label",
|
|
13566
|
+
basePseudoState: {
|
|
13567
|
+
readOnly: innerReadOnly,
|
|
13568
|
+
disabled: innerDisabled
|
|
13569
|
+
},
|
|
13566
13570
|
children: jsx(ReportReadOnlyOnLabelContext.Provider, {
|
|
13567
13571
|
value: setInputReadOnly,
|
|
13568
13572
|
children: jsx(ReportDisabledOnLabelContext.Provider, {
|
|
@@ -20284,20 +20288,18 @@ const Count = ({
|
|
|
20284
20288
|
};
|
|
20285
20289
|
|
|
20286
20290
|
const Image = props => {
|
|
20287
|
-
|
|
20288
|
-
|
|
20289
|
-
|
|
20290
|
-
...remainingProps
|
|
20291
|
+
return jsx(Box, {
|
|
20292
|
+
...props,
|
|
20293
|
+
as: "img"
|
|
20291
20294
|
});
|
|
20292
20295
|
};
|
|
20293
20296
|
|
|
20294
20297
|
const LinkWithIcon = () => {};
|
|
20295
20298
|
|
|
20296
20299
|
const Svg = props => {
|
|
20297
|
-
|
|
20298
|
-
|
|
20299
|
-
|
|
20300
|
-
...remainingProps
|
|
20300
|
+
return jsx(Box, {
|
|
20301
|
+
...props,
|
|
20302
|
+
as: "svg"
|
|
20301
20303
|
});
|
|
20302
20304
|
};
|
|
20303
20305
|
|