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