@jsenv/navi 0.12.34 → 0.12.37

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.
@@ -15197,13 +15197,18 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
15197
15197
  outline-color: var(--link-outline-color);
15198
15198
  cursor: var(--x-link-cursor);
15199
15199
 
15200
+ /* Current */
15201
+ &[data-href-current] {
15202
+ --x-link-cursor: default;
15203
+ }
15200
15204
  /* Hover */
15201
15205
  &[data-hover] {
15202
15206
  --x-link-color: var(--x-link-color-hover);
15203
15207
  --x-link-text-decoration: var(--x-link-text-decoration-hover);
15204
15208
  }
15205
15209
  /* Focus */
15206
- &[data-focus] {
15210
+ &[data-focus],
15211
+ &[data-focus-visible] {
15207
15212
  position: relative;
15208
15213
  z-index: 1; /* Ensure focus outline is above other elements */
15209
15214
  }
@@ -15657,8 +15662,6 @@ import.meta.css = /* css */`
15657
15662
  .navi_tablist {
15658
15663
  display: flex;
15659
15664
  line-height: 2em;
15660
- background: var(--tablist-background);
15661
- border-radius: var(--tablist-border-radius);
15662
15665
  overflow-x: auto;
15663
15666
  overflow-y: hidden;
15664
15667
  }
@@ -15670,6 +15673,8 @@ import.meta.css = /* css */`
15670
15673
  align-items: center;
15671
15674
  gap: 0.5rem;
15672
15675
  list-style: none;
15676
+ background: var(--tablist-background);
15677
+ border-radius: var(--tablist-border-radius);
15673
15678
  }
15674
15679
  .navi_tablist > ul > li {
15675
15680
  position: relative;
@@ -15687,11 +15692,16 @@ import.meta.css = /* css */`
15687
15692
 
15688
15693
  .navi_tab_content {
15689
15694
  display: flex;
15690
- padding: 0 0.5rem;
15691
15695
  color: var(--x-tab-color);
15692
15696
  background: var(--x-tab-background);
15693
15697
  border-radius: inherit;
15694
15698
  transition: background 0.12s ease-out;
15699
+
15700
+ .navi_link {
15701
+ flex-grow: 1;
15702
+ text-align: center;
15703
+ border-radius: inherit;
15704
+ }
15695
15705
  }
15696
15706
  /* Hidden bold clone to reserve space for bold width without affecting height */
15697
15707
  .navi_tab_content_bold_clone {
@@ -15816,6 +15826,9 @@ const Tab = props => {
15816
15826
  const TabRoute = ({
15817
15827
  route,
15818
15828
  children,
15829
+ paddingX,
15830
+ padding,
15831
+ paddingY,
15819
15832
  ...props
15820
15833
  }) => {
15821
15834
  const {
@@ -15823,10 +15836,16 @@ const TabRoute = ({
15823
15836
  } = useRouteStatus(route);
15824
15837
  return jsx(TabBasic, {
15825
15838
  selected: active,
15839
+ paddingX: "0",
15826
15840
  ...props,
15827
15841
  children: jsx(RouteLink, {
15828
15842
  route: route,
15843
+ expand: true,
15829
15844
  discrete: true,
15845
+ align: "center",
15846
+ paddingX: paddingX,
15847
+ padding: padding,
15848
+ paddingY: paddingY,
15830
15849
  children: children
15831
15850
  })
15832
15851
  });
@@ -15834,6 +15853,9 @@ const TabRoute = ({
15834
15853
  const TabBasic = ({
15835
15854
  children,
15836
15855
  selected,
15856
+ padding,
15857
+ paddingX = "s",
15858
+ paddingY,
15837
15859
  onClick,
15838
15860
  ...props
15839
15861
  }) => {
@@ -15853,8 +15875,11 @@ const TabBasic = ({
15853
15875
  ":-navi-selected": selected
15854
15876
  },
15855
15877
  ...props,
15856
- children: [jsx("div", {
15878
+ children: [jsx(Box, {
15857
15879
  className: "navi_tab_content",
15880
+ paddingX: paddingX,
15881
+ paddingY: paddingY,
15882
+ padding: padding,
15858
15883
  children: children
15859
15884
  }), jsx("div", {
15860
15885
  className: "navi_tab_content_bold_clone",