@jsenv/navi 0.21.7 → 0.21.9
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 +15 -9
- package/dist/jsenv_navi.js.map +4 -4
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -18834,7 +18834,15 @@ const selectByTextStrings = (element, range, startText, endText) => {
|
|
|
18834
18834
|
};
|
|
18835
18835
|
|
|
18836
18836
|
installImportMetaCssBuild(import.meta);/* eslint-disable jsenv/no-unknown-params */
|
|
18837
|
-
const css$
|
|
18837
|
+
const css$4 = /* css */`
|
|
18838
|
+
@layer navi {
|
|
18839
|
+
.navi_text {
|
|
18840
|
+
&[data-skeleton] {
|
|
18841
|
+
border-radius: 0.2em;
|
|
18842
|
+
}
|
|
18843
|
+
}
|
|
18844
|
+
}
|
|
18845
|
+
|
|
18838
18846
|
*[data-navi-space] {
|
|
18839
18847
|
/* user-select: none; */
|
|
18840
18848
|
padding-left: 0.25em;
|
|
@@ -18842,7 +18850,6 @@ const css$3 = /* css */`
|
|
|
18842
18850
|
|
|
18843
18851
|
.navi_text {
|
|
18844
18852
|
position: relative;
|
|
18845
|
-
border-radius: var(--x-border-radius);
|
|
18846
18853
|
|
|
18847
18854
|
/* There is a chrome specific bug that prevents text-transform: capitalize to be applied in nested DOM structure */
|
|
18848
18855
|
/* The CSS below ensure capitalize is propagated to the bold clones */
|
|
@@ -18895,8 +18902,6 @@ const css$3 = /* css */`
|
|
|
18895
18902
|
}
|
|
18896
18903
|
|
|
18897
18904
|
&[data-skeleton] {
|
|
18898
|
-
--x-border-radius: 0.2em;
|
|
18899
|
-
|
|
18900
18905
|
/* Children stay in the DOM to preserve natural layout dimensions,
|
|
18901
18906
|
but are hidden so only the skeleton is visible. */
|
|
18902
18907
|
visibility: hidden;
|
|
@@ -19127,7 +19132,7 @@ const shouldInjectSpacingBetween = (left, right) => {
|
|
|
19127
19132
|
};
|
|
19128
19133
|
const OverflowPinnedElementContext = createContext(null);
|
|
19129
19134
|
const Text = props => {
|
|
19130
|
-
import.meta.css = [css$
|
|
19135
|
+
import.meta.css = [css$4, "@jsenv/navi/src/text/text.jsx"];
|
|
19131
19136
|
if (props.loading || props.skeleton) {
|
|
19132
19137
|
return jsx(TextSkeleton, {
|
|
19133
19138
|
...props
|
|
@@ -19320,7 +19325,7 @@ const TextBasic = ({
|
|
|
19320
19325
|
});
|
|
19321
19326
|
};
|
|
19322
19327
|
|
|
19323
|
-
installImportMetaCssBuild(import.meta);const css$
|
|
19328
|
+
installImportMetaCssBuild(import.meta);const css$3 = /* css */`
|
|
19324
19329
|
@layer navi {
|
|
19325
19330
|
/* Ensure data attributes from box.jsx can win to update display */
|
|
19326
19331
|
.navi_icon {
|
|
@@ -19408,7 +19413,7 @@ const Icon = ({
|
|
|
19408
19413
|
onClick,
|
|
19409
19414
|
...props
|
|
19410
19415
|
}) => {
|
|
19411
|
-
import.meta.css = [css$
|
|
19416
|
+
import.meta.css = [css$3, "@jsenv/navi/src/graphic/icon.jsx"];
|
|
19412
19417
|
const innerChildren = href ? jsx("svg", {
|
|
19413
19418
|
width: "100%",
|
|
19414
19419
|
height: "100%",
|
|
@@ -22676,7 +22681,7 @@ installImportMetaCssBuild(import.meta);/**
|
|
|
22676
22681
|
* TabList component with support for horizontal and vertical layouts
|
|
22677
22682
|
* https://dribbble.com/search/tabs
|
|
22678
22683
|
*/
|
|
22679
|
-
|
|
22684
|
+
const css$2 = /* css */`
|
|
22680
22685
|
@layer navi {
|
|
22681
22686
|
.navi_nav {
|
|
22682
22687
|
--nav-border: none;
|
|
@@ -22785,7 +22790,7 @@ import.meta.css = [/* css */`
|
|
|
22785
22790
|
}
|
|
22786
22791
|
}
|
|
22787
22792
|
}
|
|
22788
|
-
|
|
22793
|
+
`;
|
|
22789
22794
|
const NavStyleCSSVars = {
|
|
22790
22795
|
border: "--nav-border",
|
|
22791
22796
|
borderRadius: "--nav-border-radius",
|
|
@@ -22810,6 +22815,7 @@ const Nav = ({
|
|
|
22810
22815
|
panelBorderConnection,
|
|
22811
22816
|
...props
|
|
22812
22817
|
}) => {
|
|
22818
|
+
import.meta.css = [css$2, "@jsenv/navi/src/nav/link/nav.jsx"];
|
|
22813
22819
|
children = toChildArray(children);
|
|
22814
22820
|
return jsx(Box, {
|
|
22815
22821
|
as: "nav",
|