@jsenv/navi 0.12.36 → 0.12.38

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 {
@@ -15762,6 +15768,9 @@ const TabList = ({
15762
15768
  underline,
15763
15769
  expand,
15764
15770
  expandX,
15771
+ paddingX,
15772
+ paddingY,
15773
+ padding,
15765
15774
  ...props
15766
15775
  }) => {
15767
15776
  return jsx(Box, {
@@ -15777,6 +15786,9 @@ const TabList = ({
15777
15786
  as: "ul",
15778
15787
  column: true,
15779
15788
  role: "list",
15789
+ paddingX: paddingX,
15790
+ paddingY: paddingY,
15791
+ padding: padding,
15780
15792
  spacing: spacing,
15781
15793
  children: jsx(TabListUnderlinerContext.Provider, {
15782
15794
  value: underline,
@@ -15820,6 +15832,9 @@ const Tab = props => {
15820
15832
  const TabRoute = ({
15821
15833
  route,
15822
15834
  children,
15835
+ paddingX,
15836
+ padding,
15837
+ paddingY,
15823
15838
  ...props
15824
15839
  }) => {
15825
15840
  const {
@@ -15827,12 +15842,16 @@ const TabRoute = ({
15827
15842
  } = useRouteStatus(route);
15828
15843
  return jsx(TabBasic, {
15829
15844
  selected: active,
15845
+ paddingX: "0",
15830
15846
  ...props,
15831
15847
  children: jsx(RouteLink, {
15832
15848
  route: route,
15833
15849
  expand: true,
15834
15850
  discrete: true,
15835
15851
  align: "center",
15852
+ paddingX: paddingX,
15853
+ padding: padding,
15854
+ paddingY: paddingY,
15836
15855
  children: children
15837
15856
  })
15838
15857
  });
@@ -15840,6 +15859,9 @@ const TabRoute = ({
15840
15859
  const TabBasic = ({
15841
15860
  children,
15842
15861
  selected,
15862
+ padding,
15863
+ paddingX = "s",
15864
+ paddingY,
15843
15865
  onClick,
15844
15866
  ...props
15845
15867
  }) => {
@@ -15859,8 +15881,11 @@ const TabBasic = ({
15859
15881
  ":-navi-selected": selected
15860
15882
  },
15861
15883
  ...props,
15862
- children: [jsx("div", {
15884
+ children: [jsx(Box, {
15863
15885
  className: "navi_tab_content",
15886
+ paddingX: paddingX,
15887
+ paddingY: paddingY,
15888
+ padding: padding,
15864
15889
  children: children
15865
15890
  }), jsx("div", {
15866
15891
  className: "navi_tab_content_bold_clone",