@box/blueprint-web 19.0.0 → 19.1.0
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/lib-esm/components.css +98 -54
- package/dist/lib-esm/index.css +98 -54
- package/dist/lib-esm/primitives/tabs/default-tab.js +0 -25
- package/dist/lib-esm/primitives/tabs/tab-list.js +65 -7
- package/dist/lib-esm/primitives/tabs/tabs.module.js +1 -1
- package/dist/lib-esm/primitives/tabs/types.d.ts +4 -0
- package/dist/lib-esm/primitives/tabs/use-tab-list-overflow.d.ts +19 -0
- package/dist/lib-esm/primitives/tabs/use-tab-list-overflow.js +141 -0
- package/package.json +3 -3
|
@@ -11747,17 +11747,17 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11747
11747
|
opacity:.3;
|
|
11748
11748
|
}
|
|
11749
11749
|
|
|
11750
|
-
.bp_tabs_module_hiddenWidthSetter--
|
|
11750
|
+
.bp_tabs_module_hiddenWidthSetter--68cef{
|
|
11751
11751
|
display:block;
|
|
11752
11752
|
height:0;
|
|
11753
11753
|
overflow:hidden;
|
|
11754
11754
|
visibility:hidden;
|
|
11755
11755
|
}
|
|
11756
|
-
.bp_tabs_module_hiddenWidthSetter--
|
|
11756
|
+
.bp_tabs_module_hiddenWidthSetter--68cef > *{
|
|
11757
11757
|
visibility:hidden;
|
|
11758
11758
|
}
|
|
11759
11759
|
|
|
11760
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11760
|
+
.bp_tabs_module_contentSwitchTabList--68cef{
|
|
11761
11761
|
--content-switch-tab-list-gap:var(--bp-space-010);
|
|
11762
11762
|
--content-switch-tab-list-padding:var(--bp-space-010);
|
|
11763
11763
|
--content-switch-tab-list-background:var(--bp-surface-content-switcher-surface);
|
|
@@ -11780,7 +11780,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11780
11780
|
min-width:fit-content;
|
|
11781
11781
|
padding:var(--content-switch-tab-list-padding);
|
|
11782
11782
|
}
|
|
11783
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11783
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef{
|
|
11784
11784
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11785
11785
|
font-size:var(--bp-font-size-05);
|
|
11786
11786
|
font-style:normal;
|
|
@@ -11788,7 +11788,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11788
11788
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11789
11789
|
line-height:var(--bp-font-line-height-04);
|
|
11790
11790
|
}
|
|
11791
|
-
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--
|
|
11791
|
+
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef{
|
|
11792
11792
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11793
11793
|
font-size:.875rem;
|
|
11794
11794
|
font-style:normal;
|
|
@@ -11799,7 +11799,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11799
11799
|
text-transform:none;
|
|
11800
11800
|
}
|
|
11801
11801
|
|
|
11802
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11802
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef{
|
|
11803
11803
|
align-items:center;
|
|
11804
11804
|
background:#0000;
|
|
11805
11805
|
border:none;
|
|
@@ -11814,7 +11814,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11814
11814
|
padding-inline:var(--content-switch-tab-padding-inline);
|
|
11815
11815
|
white-space:nowrap;
|
|
11816
11816
|
}
|
|
11817
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11817
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11818
11818
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11819
11819
|
font-size:var(--bp-font-size-05);
|
|
11820
11820
|
font-style:normal;
|
|
@@ -11822,7 +11822,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11822
11822
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11823
11823
|
line-height:var(--bp-font-line-height-04);
|
|
11824
11824
|
}
|
|
11825
|
-
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--
|
|
11825
|
+
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11826
11826
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11827
11827
|
font-size:.875rem;
|
|
11828
11828
|
font-style:normal;
|
|
@@ -11833,12 +11833,12 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11833
11833
|
text-transform:none;
|
|
11834
11834
|
}
|
|
11835
11835
|
|
|
11836
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11836
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11837
11837
|
background:var(--content-switch-tab-selected-background);
|
|
11838
11838
|
box-shadow:var(--content-switch-tab-selected-box-shadow);
|
|
11839
11839
|
color:var(--content-switch-tab-selected-color);
|
|
11840
11840
|
}
|
|
11841
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11841
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
11842
11842
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11843
11843
|
font-size:var(--bp-font-size-05);
|
|
11844
11844
|
font-style:normal;
|
|
@@ -11846,7 +11846,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11846
11846
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11847
11847
|
line-height:var(--bp-font-line-height-04);
|
|
11848
11848
|
}
|
|
11849
|
-
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--
|
|
11849
|
+
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
11850
11850
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11851
11851
|
font-size:.875rem;
|
|
11852
11852
|
font-style:normal;
|
|
@@ -11857,21 +11857,21 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11857
11857
|
text-transform:none;
|
|
11858
11858
|
}
|
|
11859
11859
|
|
|
11860
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11860
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[data-focus-visible]{
|
|
11861
11861
|
border-color:#0000;
|
|
11862
11862
|
box-shadow:var(--content-switch-tab-focus-box-shadow);
|
|
11863
11863
|
}
|
|
11864
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11864
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true]):hover,.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[data-focus-visible]:not([aria-selected=true]){
|
|
11865
11865
|
background:var(--content-switch-tab-hover-background);
|
|
11866
11866
|
}
|
|
11867
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11867
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-disabled=true]{
|
|
11868
11868
|
opacity:.3;
|
|
11869
11869
|
pointer-events:none;
|
|
11870
11870
|
}
|
|
11871
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11871
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true]{
|
|
11872
11872
|
position:relative;
|
|
11873
11873
|
}
|
|
11874
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11874
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
11875
11875
|
background:var(--content-switch-tab-selected-background);
|
|
11876
11876
|
border-radius:var(--content-switch-tab-border-radius);
|
|
11877
11877
|
box-shadow:var(--content-switch-tab-selected-box-shadow);
|
|
@@ -11883,26 +11883,26 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11883
11883
|
z-index:0;
|
|
11884
11884
|
}
|
|
11885
11885
|
@media (prefers-reduced-motion: reduce){
|
|
11886
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11886
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
11887
11887
|
transition:none;
|
|
11888
11888
|
}
|
|
11889
11889
|
}
|
|
11890
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11890
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef{
|
|
11891
11891
|
position:relative;
|
|
11892
11892
|
z-index:1;
|
|
11893
11893
|
}
|
|
11894
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11894
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11895
11895
|
background:#0000;
|
|
11896
11896
|
box-shadow:none;
|
|
11897
11897
|
}
|
|
11898
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11898
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[aria-selected=true]:hover,.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[aria-selected=true][data-focus-visible]{
|
|
11899
11899
|
background:#0000;
|
|
11900
11900
|
}
|
|
11901
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11901
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[aria-selected=true][data-focus-visible]{
|
|
11902
11902
|
box-shadow:var(--content-switch-tab-focus-box-shadow);
|
|
11903
11903
|
}
|
|
11904
11904
|
|
|
11905
|
-
.bp_tabs_module_tabsListContainer--
|
|
11905
|
+
.bp_tabs_module_tabsListContainer--68cef{
|
|
11906
11906
|
--tab-height:var(--bp-size-100);
|
|
11907
11907
|
--tab-inline-padding:var(--bp-space-030);
|
|
11908
11908
|
--tab-background:var(--bp-surface-tab-surface);
|
|
@@ -11928,19 +11928,50 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11928
11928
|
overflow-y:hidden;
|
|
11929
11929
|
scroll-behavior:smooth;
|
|
11930
11930
|
}
|
|
11931
|
-
.bp_tabs_module_tabsListContainer--
|
|
11931
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_overflowIndicator--68cef{
|
|
11932
|
+
align-items:center;
|
|
11933
|
+
display:flex;
|
|
11934
|
+
flex-shrink:0;
|
|
11935
|
+
padding-block:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11936
|
+
padding-inline:var(--bp-space-010);
|
|
11937
|
+
position:relative;
|
|
11938
|
+
}
|
|
11939
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_overflowIndicator--68cef::after{
|
|
11940
|
+
border-bottom:var(--tab-border);
|
|
11941
|
+
bottom:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11942
|
+
content:"";
|
|
11943
|
+
left:0;
|
|
11944
|
+
position:absolute;
|
|
11945
|
+
right:0;
|
|
11946
|
+
}
|
|
11947
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11932
11948
|
--tab-separator-width:var(--tab-gap);
|
|
11949
|
+
-ms-overflow-style:none;
|
|
11950
|
+
scrollbar-width:none;
|
|
11951
|
+
}
|
|
11952
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef::-webkit-scrollbar{
|
|
11953
|
+
display:none;
|
|
11954
|
+
}
|
|
11955
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11933
11956
|
display:flex;
|
|
11957
|
+
flex:1 1 auto;
|
|
11958
|
+
min-width:0;
|
|
11934
11959
|
overflow-x:auto;
|
|
11935
11960
|
padding:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11936
11961
|
position:relative;
|
|
11962
|
+
scroll-behavior:smooth;
|
|
11963
|
+
}
|
|
11964
|
+
@media (prefers-reduced-motion: reduce){
|
|
11965
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11966
|
+
scroll-behavior:auto;
|
|
11967
|
+
}
|
|
11937
11968
|
}
|
|
11938
11969
|
@media only screen and (max-width: 1023px){
|
|
11939
|
-
.bp_tabs_module_tabsListContainer--
|
|
11970
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11940
11971
|
--tab-separator-width:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11941
11972
|
}
|
|
11942
11973
|
}
|
|
11943
|
-
.bp_tabs_module_tabsListContainer--
|
|
11974
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef::after{
|
|
11944
11975
|
border-bottom:var(--tab-border);
|
|
11945
11976
|
bottom:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11946
11977
|
content:"";
|
|
@@ -11948,14 +11979,17 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11948
11979
|
position:absolute;
|
|
11949
11980
|
right:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11950
11981
|
}
|
|
11951
|
-
.bp_tabs_module_tabsListContainer--
|
|
11982
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef:has(+ .bp_tabs_module_overflowIndicator--68cef)::after{
|
|
11983
|
+
right:0;
|
|
11984
|
+
}
|
|
11985
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tabSeparator--68cef{
|
|
11952
11986
|
border-bottom:var(--tab-separator-border);
|
|
11953
11987
|
min-width:var(--tab-separator-width);
|
|
11954
11988
|
}
|
|
11955
|
-
.bp_tabs_module_tabsListContainer--
|
|
11989
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tabSeparator--68cef:last-child{
|
|
11956
11990
|
display:none;
|
|
11957
11991
|
}
|
|
11958
|
-
.bp_tabs_module_tabsListContainer--
|
|
11992
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef{
|
|
11959
11993
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11960
11994
|
font-size:var(--bp-font-size-05);
|
|
11961
11995
|
font-style:normal;
|
|
@@ -11963,7 +11997,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11963
11997
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11964
11998
|
line-height:var(--bp-font-line-height-04);
|
|
11965
11999
|
}
|
|
11966
|
-
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--
|
|
12000
|
+
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef{
|
|
11967
12001
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11968
12002
|
font-size:.875rem;
|
|
11969
12003
|
font-style:normal;
|
|
@@ -11974,7 +12008,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11974
12008
|
text-transform:none;
|
|
11975
12009
|
}
|
|
11976
12010
|
|
|
11977
|
-
.bp_tabs_module_tabsListContainer--
|
|
12011
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef{
|
|
11978
12012
|
align-items:center;
|
|
11979
12013
|
background:var(--tab-background);
|
|
11980
12014
|
border-style:none;
|
|
@@ -11984,13 +12018,15 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11984
12018
|
color:var(--tab-font-color);
|
|
11985
12019
|
cursor:pointer;
|
|
11986
12020
|
display:flex;
|
|
12021
|
+
flex-shrink:0;
|
|
11987
12022
|
height:var(--tab-height);
|
|
11988
12023
|
padding-inline:var(--tab-inline-padding);
|
|
11989
12024
|
position:relative;
|
|
11990
12025
|
scroll-margin:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
12026
|
+
white-space:nowrap;
|
|
11991
12027
|
z-index:2;
|
|
11992
12028
|
}
|
|
11993
|
-
.bp_tabs_module_tabsListContainer--
|
|
12029
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef::after{
|
|
11994
12030
|
background:#0000;
|
|
11995
12031
|
bottom:calc(var(--bp-border-01)*-1);
|
|
11996
12032
|
content:"";
|
|
@@ -12002,11 +12038,11 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12002
12038
|
transition:background-color var(--bp-duration-medium) ease-in-out;
|
|
12003
12039
|
}
|
|
12004
12040
|
@media (prefers-reduced-motion: reduce){
|
|
12005
|
-
.bp_tabs_module_tabsListContainer--
|
|
12041
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef::after{
|
|
12006
12042
|
transition:none;
|
|
12007
12043
|
}
|
|
12008
12044
|
}
|
|
12009
|
-
.bp_tabs_module_tabsListContainer--
|
|
12045
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-selected=true]{
|
|
12010
12046
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12011
12047
|
font-size:var(--bp-font-size-05);
|
|
12012
12048
|
font-style:normal;
|
|
@@ -12014,7 +12050,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12014
12050
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
12015
12051
|
line-height:var(--bp-font-line-height-04);
|
|
12016
12052
|
}
|
|
12017
|
-
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--
|
|
12053
|
+
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-selected=true]{
|
|
12018
12054
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12019
12055
|
font-size:.875rem;
|
|
12020
12056
|
font-style:normal;
|
|
@@ -12025,11 +12061,11 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12025
12061
|
text-transform:none;
|
|
12026
12062
|
}
|
|
12027
12063
|
|
|
12028
|
-
.bp_tabs_module_tabsListContainer--
|
|
12064
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-selected=true]{
|
|
12029
12065
|
border-bottom:var(--tab-border-selected);
|
|
12030
12066
|
color:var(--tab-font-selected-color);
|
|
12031
12067
|
}
|
|
12032
|
-
.bp_tabs_module_tabsListContainer--
|
|
12068
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
12033
12069
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12034
12070
|
font-size:var(--bp-font-size-05);
|
|
12035
12071
|
font-style:normal;
|
|
@@ -12037,7 +12073,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12037
12073
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
12038
12074
|
line-height:var(--bp-font-line-height-04);
|
|
12039
12075
|
}
|
|
12040
|
-
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--
|
|
12076
|
+
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
12041
12077
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12042
12078
|
font-size:.875rem;
|
|
12043
12079
|
font-style:normal;
|
|
@@ -12048,25 +12084,25 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12048
12084
|
text-transform:none;
|
|
12049
12085
|
}
|
|
12050
12086
|
|
|
12051
|
-
.bp_tabs_module_tabsListContainer--
|
|
12087
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:hover{
|
|
12052
12088
|
background-color:var(--tab-background-hover);
|
|
12053
12089
|
color:var(--tab-font-color-hover);
|
|
12054
12090
|
}
|
|
12055
|
-
.bp_tabs_module_tabsListContainer--
|
|
12091
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:hover[aria-selected=true]{
|
|
12056
12092
|
border-bottom:var(--tab-border-selected-hover);
|
|
12057
12093
|
color:var(--tab-font-selected-color);
|
|
12058
12094
|
}
|
|
12059
|
-
.bp_tabs_module_tabsListContainer--
|
|
12095
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:hover:not([aria-selected=true])::after{
|
|
12060
12096
|
background:var(--bp-border-tab-border-hover);
|
|
12061
12097
|
}
|
|
12062
|
-
.bp_tabs_module_tabsListContainer--
|
|
12098
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:active{
|
|
12063
12099
|
background-color:var(--tab-background-pressed);
|
|
12064
12100
|
color:var(--tab-font-color-hover);
|
|
12065
12101
|
}
|
|
12066
|
-
.bp_tabs_module_tabsListContainer--
|
|
12102
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:active[aria-selected=true]{
|
|
12067
12103
|
color:var(--tab-font-selected-color);
|
|
12068
12104
|
}
|
|
12069
|
-
.bp_tabs_module_tabsListContainer--
|
|
12105
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:focus-visible,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[data-focus-visible]{
|
|
12070
12106
|
background-color:var(--tab-background-hover);
|
|
12071
12107
|
border-bottom:var(--tab-border-focus);
|
|
12072
12108
|
border-radius:var(--tab-border-radius);
|
|
@@ -12075,14 +12111,14 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12075
12111
|
outline:var(--tab-border-focus-outline-width) solid var(--tab-border-focus-outline-color);
|
|
12076
12112
|
outline-offset:var(--tab-border-focus-outline-offset);
|
|
12077
12113
|
}
|
|
12078
|
-
.bp_tabs_module_tabsListContainer--
|
|
12114
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:focus-visible[aria-selected=true],.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[data-focus-visible][aria-selected=true]{
|
|
12079
12115
|
border-bottom:var(--tab-border-selected);
|
|
12080
12116
|
color:var(--tab-font-selected-color);
|
|
12081
12117
|
}
|
|
12082
|
-
.bp_tabs_module_tabsListContainer--
|
|
12118
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-disabled=true]{
|
|
12083
12119
|
opacity:.5;
|
|
12084
12120
|
}
|
|
12085
|
-
.bp_tabs_module_tabsListContainer--
|
|
12121
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
12086
12122
|
background:var(--bp-border-tab-border-selected);
|
|
12087
12123
|
bottom:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
12088
12124
|
height:var(--bp-border-02);
|
|
@@ -12092,32 +12128,40 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12092
12128
|
z-index:3;
|
|
12093
12129
|
}
|
|
12094
12130
|
@media (prefers-reduced-motion: reduce){
|
|
12095
|
-
.bp_tabs_module_tabsListContainer--
|
|
12131
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
12096
12132
|
transition:none;
|
|
12097
12133
|
}
|
|
12098
12134
|
}
|
|
12099
|
-
.bp_tabs_module_tabsListContainer--
|
|
12135
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true]:has(.bp_tabs_module_tab--68cef[aria-selected=true]:hover) .bp_tabs_module_tabIndicator--68cef{
|
|
12100
12136
|
background:var(--bp-border-tab-border-selected-hover);
|
|
12101
12137
|
}
|
|
12102
|
-
.bp_tabs_module_tabsListContainer--
|
|
12138
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:active,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:focus-visible,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:hover,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[data-focus-visible]{
|
|
12103
12139
|
border-bottom:var(--tab-border);
|
|
12104
12140
|
}
|
|
12105
|
-
.bp_tabs_module_tabsListContainer--
|
|
12141
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:focus-visible:not([aria-selected=true])::after,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[data-focus-visible]:not([aria-selected=true])::after{
|
|
12106
12142
|
background:var(--bp-border-tab-border-hover);
|
|
12107
12143
|
}
|
|
12108
|
-
.bp_tabs_module_tabsListContainer--
|
|
12144
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:focus-visible:not([aria-selected=true]),.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[data-focus-visible]:not([aria-selected=true]){
|
|
12109
12145
|
box-shadow:inset 0 0 0 1px #fff;
|
|
12110
12146
|
}
|
|
12111
|
-
.bp_tabs_module_tabsListContainer--
|
|
12147
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true],.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true]:active,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true]:hover{
|
|
12112
12148
|
border-bottom:var(--tab-border);
|
|
12113
12149
|
box-shadow:none;
|
|
12114
12150
|
}
|
|
12115
|
-
.bp_tabs_module_tabsListContainer--
|
|
12151
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true]:focus-visible,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true][data-focus-visible]{
|
|
12116
12152
|
border-bottom:var(--tab-border);
|
|
12117
12153
|
box-shadow:inset 0 0 0 1px #fff;
|
|
12118
12154
|
}
|
|
12155
|
+
.bp_tabs_module_tabsListContainer--68cef:has(> .bp_tabs_module_overflowIndicatorStart--68cef) .bp_tabs_module_tabList--68cef::after{
|
|
12156
|
+
left:0;
|
|
12157
|
+
}
|
|
12158
|
+
|
|
12159
|
+
.bp_tabs_module_tabsListContainerScrollable--68cef{
|
|
12160
|
+
align-items:stretch;
|
|
12161
|
+
display:flex;
|
|
12162
|
+
}
|
|
12119
12163
|
|
|
12120
|
-
.bp_tabs_module_tabIndicator--
|
|
12164
|
+
.bp_tabs_module_tabIndicator--68cef{
|
|
12121
12165
|
left:0;
|
|
12122
12166
|
pointer-events:none;
|
|
12123
12167
|
position:absolute;
|
package/dist/lib-esm/index.css
CHANGED
|
@@ -11747,17 +11747,17 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11747
11747
|
opacity:.3;
|
|
11748
11748
|
}
|
|
11749
11749
|
|
|
11750
|
-
.bp_tabs_module_hiddenWidthSetter--
|
|
11750
|
+
.bp_tabs_module_hiddenWidthSetter--68cef{
|
|
11751
11751
|
display:block;
|
|
11752
11752
|
height:0;
|
|
11753
11753
|
overflow:hidden;
|
|
11754
11754
|
visibility:hidden;
|
|
11755
11755
|
}
|
|
11756
|
-
.bp_tabs_module_hiddenWidthSetter--
|
|
11756
|
+
.bp_tabs_module_hiddenWidthSetter--68cef > *{
|
|
11757
11757
|
visibility:hidden;
|
|
11758
11758
|
}
|
|
11759
11759
|
|
|
11760
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11760
|
+
.bp_tabs_module_contentSwitchTabList--68cef{
|
|
11761
11761
|
--content-switch-tab-list-gap:var(--bp-space-010);
|
|
11762
11762
|
--content-switch-tab-list-padding:var(--bp-space-010);
|
|
11763
11763
|
--content-switch-tab-list-background:var(--bp-surface-content-switcher-surface);
|
|
@@ -11780,7 +11780,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11780
11780
|
min-width:fit-content;
|
|
11781
11781
|
padding:var(--content-switch-tab-list-padding);
|
|
11782
11782
|
}
|
|
11783
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11783
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef{
|
|
11784
11784
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11785
11785
|
font-size:var(--bp-font-size-05);
|
|
11786
11786
|
font-style:normal;
|
|
@@ -11788,7 +11788,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11788
11788
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11789
11789
|
line-height:var(--bp-font-line-height-04);
|
|
11790
11790
|
}
|
|
11791
|
-
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--
|
|
11791
|
+
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef{
|
|
11792
11792
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11793
11793
|
font-size:.875rem;
|
|
11794
11794
|
font-style:normal;
|
|
@@ -11799,7 +11799,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11799
11799
|
text-transform:none;
|
|
11800
11800
|
}
|
|
11801
11801
|
|
|
11802
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11802
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef{
|
|
11803
11803
|
align-items:center;
|
|
11804
11804
|
background:#0000;
|
|
11805
11805
|
border:none;
|
|
@@ -11814,7 +11814,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11814
11814
|
padding-inline:var(--content-switch-tab-padding-inline);
|
|
11815
11815
|
white-space:nowrap;
|
|
11816
11816
|
}
|
|
11817
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11817
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11818
11818
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11819
11819
|
font-size:var(--bp-font-size-05);
|
|
11820
11820
|
font-style:normal;
|
|
@@ -11822,7 +11822,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11822
11822
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11823
11823
|
line-height:var(--bp-font-line-height-04);
|
|
11824
11824
|
}
|
|
11825
|
-
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--
|
|
11825
|
+
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11826
11826
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11827
11827
|
font-size:.875rem;
|
|
11828
11828
|
font-style:normal;
|
|
@@ -11833,12 +11833,12 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11833
11833
|
text-transform:none;
|
|
11834
11834
|
}
|
|
11835
11835
|
|
|
11836
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11836
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11837
11837
|
background:var(--content-switch-tab-selected-background);
|
|
11838
11838
|
box-shadow:var(--content-switch-tab-selected-box-shadow);
|
|
11839
11839
|
color:var(--content-switch-tab-selected-color);
|
|
11840
11840
|
}
|
|
11841
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11841
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
11842
11842
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11843
11843
|
font-size:var(--bp-font-size-05);
|
|
11844
11844
|
font-style:normal;
|
|
@@ -11846,7 +11846,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11846
11846
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11847
11847
|
line-height:var(--bp-font-line-height-04);
|
|
11848
11848
|
}
|
|
11849
|
-
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--
|
|
11849
|
+
:where(body.is-inter-font) .bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
11850
11850
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11851
11851
|
font-size:.875rem;
|
|
11852
11852
|
font-style:normal;
|
|
@@ -11857,21 +11857,21 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11857
11857
|
text-transform:none;
|
|
11858
11858
|
}
|
|
11859
11859
|
|
|
11860
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11860
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[data-focus-visible]{
|
|
11861
11861
|
border-color:#0000;
|
|
11862
11862
|
box-shadow:var(--content-switch-tab-focus-box-shadow);
|
|
11863
11863
|
}
|
|
11864
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11864
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true]):hover,.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[data-focus-visible]:not([aria-selected=true]){
|
|
11865
11865
|
background:var(--content-switch-tab-hover-background);
|
|
11866
11866
|
}
|
|
11867
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11867
|
+
.bp_tabs_module_contentSwitchTabList--68cef .bp_tabs_module_contentSwitchTab--68cef[aria-disabled=true]{
|
|
11868
11868
|
opacity:.3;
|
|
11869
11869
|
pointer-events:none;
|
|
11870
11870
|
}
|
|
11871
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11871
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true]{
|
|
11872
11872
|
position:relative;
|
|
11873
11873
|
}
|
|
11874
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11874
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
11875
11875
|
background:var(--content-switch-tab-selected-background);
|
|
11876
11876
|
border-radius:var(--content-switch-tab-border-radius);
|
|
11877
11877
|
box-shadow:var(--content-switch-tab-selected-box-shadow);
|
|
@@ -11883,26 +11883,26 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11883
11883
|
z-index:0;
|
|
11884
11884
|
}
|
|
11885
11885
|
@media (prefers-reduced-motion: reduce){
|
|
11886
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11886
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
11887
11887
|
transition:none;
|
|
11888
11888
|
}
|
|
11889
11889
|
}
|
|
11890
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11890
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef{
|
|
11891
11891
|
position:relative;
|
|
11892
11892
|
z-index:1;
|
|
11893
11893
|
}
|
|
11894
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11894
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef[aria-selected=true]{
|
|
11895
11895
|
background:#0000;
|
|
11896
11896
|
box-shadow:none;
|
|
11897
11897
|
}
|
|
11898
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11898
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[aria-selected=true]:hover,.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[aria-selected=true][data-focus-visible]{
|
|
11899
11899
|
background:#0000;
|
|
11900
11900
|
}
|
|
11901
|
-
.bp_tabs_module_contentSwitchTabList--
|
|
11901
|
+
.bp_tabs_module_contentSwitchTabList--68cef[data-bp-animated=true] .bp_tabs_module_contentSwitchTab--68cef:not([aria-disabled=true])[aria-selected=true][data-focus-visible]{
|
|
11902
11902
|
box-shadow:var(--content-switch-tab-focus-box-shadow);
|
|
11903
11903
|
}
|
|
11904
11904
|
|
|
11905
|
-
.bp_tabs_module_tabsListContainer--
|
|
11905
|
+
.bp_tabs_module_tabsListContainer--68cef{
|
|
11906
11906
|
--tab-height:var(--bp-size-100);
|
|
11907
11907
|
--tab-inline-padding:var(--bp-space-030);
|
|
11908
11908
|
--tab-background:var(--bp-surface-tab-surface);
|
|
@@ -11928,19 +11928,50 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11928
11928
|
overflow-y:hidden;
|
|
11929
11929
|
scroll-behavior:smooth;
|
|
11930
11930
|
}
|
|
11931
|
-
.bp_tabs_module_tabsListContainer--
|
|
11931
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_overflowIndicator--68cef{
|
|
11932
|
+
align-items:center;
|
|
11933
|
+
display:flex;
|
|
11934
|
+
flex-shrink:0;
|
|
11935
|
+
padding-block:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11936
|
+
padding-inline:var(--bp-space-010);
|
|
11937
|
+
position:relative;
|
|
11938
|
+
}
|
|
11939
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_overflowIndicator--68cef::after{
|
|
11940
|
+
border-bottom:var(--tab-border);
|
|
11941
|
+
bottom:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11942
|
+
content:"";
|
|
11943
|
+
left:0;
|
|
11944
|
+
position:absolute;
|
|
11945
|
+
right:0;
|
|
11946
|
+
}
|
|
11947
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11932
11948
|
--tab-separator-width:var(--tab-gap);
|
|
11949
|
+
-ms-overflow-style:none;
|
|
11950
|
+
scrollbar-width:none;
|
|
11951
|
+
}
|
|
11952
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef::-webkit-scrollbar{
|
|
11953
|
+
display:none;
|
|
11954
|
+
}
|
|
11955
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11933
11956
|
display:flex;
|
|
11957
|
+
flex:1 1 auto;
|
|
11958
|
+
min-width:0;
|
|
11934
11959
|
overflow-x:auto;
|
|
11935
11960
|
padding:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11936
11961
|
position:relative;
|
|
11962
|
+
scroll-behavior:smooth;
|
|
11963
|
+
}
|
|
11964
|
+
@media (prefers-reduced-motion: reduce){
|
|
11965
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11966
|
+
scroll-behavior:auto;
|
|
11967
|
+
}
|
|
11937
11968
|
}
|
|
11938
11969
|
@media only screen and (max-width: 1023px){
|
|
11939
|
-
.bp_tabs_module_tabsListContainer--
|
|
11970
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef{
|
|
11940
11971
|
--tab-separator-width:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11941
11972
|
}
|
|
11942
11973
|
}
|
|
11943
|
-
.bp_tabs_module_tabsListContainer--
|
|
11974
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef::after{
|
|
11944
11975
|
border-bottom:var(--tab-border);
|
|
11945
11976
|
bottom:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11946
11977
|
content:"";
|
|
@@ -11948,14 +11979,17 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11948
11979
|
position:absolute;
|
|
11949
11980
|
right:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
11950
11981
|
}
|
|
11951
|
-
.bp_tabs_module_tabsListContainer--
|
|
11982
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef:has(+ .bp_tabs_module_overflowIndicator--68cef)::after{
|
|
11983
|
+
right:0;
|
|
11984
|
+
}
|
|
11985
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tabSeparator--68cef{
|
|
11952
11986
|
border-bottom:var(--tab-separator-border);
|
|
11953
11987
|
min-width:var(--tab-separator-width);
|
|
11954
11988
|
}
|
|
11955
|
-
.bp_tabs_module_tabsListContainer--
|
|
11989
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tabSeparator--68cef:last-child{
|
|
11956
11990
|
display:none;
|
|
11957
11991
|
}
|
|
11958
|
-
.bp_tabs_module_tabsListContainer--
|
|
11992
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef{
|
|
11959
11993
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11960
11994
|
font-size:var(--bp-font-size-05);
|
|
11961
11995
|
font-style:normal;
|
|
@@ -11963,7 +11997,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11963
11997
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
11964
11998
|
line-height:var(--bp-font-line-height-04);
|
|
11965
11999
|
}
|
|
11966
|
-
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--
|
|
12000
|
+
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef{
|
|
11967
12001
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
11968
12002
|
font-size:.875rem;
|
|
11969
12003
|
font-style:normal;
|
|
@@ -11974,7 +12008,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11974
12008
|
text-transform:none;
|
|
11975
12009
|
}
|
|
11976
12010
|
|
|
11977
|
-
.bp_tabs_module_tabsListContainer--
|
|
12011
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef{
|
|
11978
12012
|
align-items:center;
|
|
11979
12013
|
background:var(--tab-background);
|
|
11980
12014
|
border-style:none;
|
|
@@ -11984,13 +12018,15 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
11984
12018
|
color:var(--tab-font-color);
|
|
11985
12019
|
cursor:pointer;
|
|
11986
12020
|
display:flex;
|
|
12021
|
+
flex-shrink:0;
|
|
11987
12022
|
height:var(--tab-height);
|
|
11988
12023
|
padding-inline:var(--tab-inline-padding);
|
|
11989
12024
|
position:relative;
|
|
11990
12025
|
scroll-margin:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
12026
|
+
white-space:nowrap;
|
|
11991
12027
|
z-index:2;
|
|
11992
12028
|
}
|
|
11993
|
-
.bp_tabs_module_tabsListContainer--
|
|
12029
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef::after{
|
|
11994
12030
|
background:#0000;
|
|
11995
12031
|
bottom:calc(var(--bp-border-01)*-1);
|
|
11996
12032
|
content:"";
|
|
@@ -12002,11 +12038,11 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12002
12038
|
transition:background-color var(--bp-duration-medium) ease-in-out;
|
|
12003
12039
|
}
|
|
12004
12040
|
@media (prefers-reduced-motion: reduce){
|
|
12005
|
-
.bp_tabs_module_tabsListContainer--
|
|
12041
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef::after{
|
|
12006
12042
|
transition:none;
|
|
12007
12043
|
}
|
|
12008
12044
|
}
|
|
12009
|
-
.bp_tabs_module_tabsListContainer--
|
|
12045
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-selected=true]{
|
|
12010
12046
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12011
12047
|
font-size:var(--bp-font-size-05);
|
|
12012
12048
|
font-style:normal;
|
|
@@ -12014,7 +12050,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12014
12050
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
12015
12051
|
line-height:var(--bp-font-line-height-04);
|
|
12016
12052
|
}
|
|
12017
|
-
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--
|
|
12053
|
+
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-selected=true]{
|
|
12018
12054
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12019
12055
|
font-size:.875rem;
|
|
12020
12056
|
font-style:normal;
|
|
@@ -12025,11 +12061,11 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12025
12061
|
text-transform:none;
|
|
12026
12062
|
}
|
|
12027
12063
|
|
|
12028
|
-
.bp_tabs_module_tabsListContainer--
|
|
12064
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-selected=true]{
|
|
12029
12065
|
border-bottom:var(--tab-border-selected);
|
|
12030
12066
|
color:var(--tab-font-selected-color);
|
|
12031
12067
|
}
|
|
12032
|
-
.bp_tabs_module_tabsListContainer--
|
|
12068
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
12033
12069
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12034
12070
|
font-size:var(--bp-font-size-05);
|
|
12035
12071
|
font-style:normal;
|
|
@@ -12037,7 +12073,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12037
12073
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
12038
12074
|
line-height:var(--bp-font-line-height-04);
|
|
12039
12075
|
}
|
|
12040
|
-
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--
|
|
12076
|
+
:where(body.is-inter-font) .bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef .bp_tabs_module_hiddenWidthSetter--68cef{
|
|
12041
12077
|
font-family:"Inter Variable", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
12042
12078
|
font-size:.875rem;
|
|
12043
12079
|
font-style:normal;
|
|
@@ -12048,25 +12084,25 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12048
12084
|
text-transform:none;
|
|
12049
12085
|
}
|
|
12050
12086
|
|
|
12051
|
-
.bp_tabs_module_tabsListContainer--
|
|
12087
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:hover{
|
|
12052
12088
|
background-color:var(--tab-background-hover);
|
|
12053
12089
|
color:var(--tab-font-color-hover);
|
|
12054
12090
|
}
|
|
12055
|
-
.bp_tabs_module_tabsListContainer--
|
|
12091
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:hover[aria-selected=true]{
|
|
12056
12092
|
border-bottom:var(--tab-border-selected-hover);
|
|
12057
12093
|
color:var(--tab-font-selected-color);
|
|
12058
12094
|
}
|
|
12059
|
-
.bp_tabs_module_tabsListContainer--
|
|
12095
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:hover:not([aria-selected=true])::after{
|
|
12060
12096
|
background:var(--bp-border-tab-border-hover);
|
|
12061
12097
|
}
|
|
12062
|
-
.bp_tabs_module_tabsListContainer--
|
|
12098
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:active{
|
|
12063
12099
|
background-color:var(--tab-background-pressed);
|
|
12064
12100
|
color:var(--tab-font-color-hover);
|
|
12065
12101
|
}
|
|
12066
|
-
.bp_tabs_module_tabsListContainer--
|
|
12102
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:active[aria-selected=true]{
|
|
12067
12103
|
color:var(--tab-font-selected-color);
|
|
12068
12104
|
}
|
|
12069
|
-
.bp_tabs_module_tabsListContainer--
|
|
12105
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:focus-visible,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[data-focus-visible]{
|
|
12070
12106
|
background-color:var(--tab-background-hover);
|
|
12071
12107
|
border-bottom:var(--tab-border-focus);
|
|
12072
12108
|
border-radius:var(--tab-border-radius);
|
|
@@ -12075,14 +12111,14 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12075
12111
|
outline:var(--tab-border-focus-outline-width) solid var(--tab-border-focus-outline-color);
|
|
12076
12112
|
outline-offset:var(--tab-border-focus-outline-offset);
|
|
12077
12113
|
}
|
|
12078
|
-
.bp_tabs_module_tabsListContainer--
|
|
12114
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef:focus-visible[aria-selected=true],.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[data-focus-visible][aria-selected=true]{
|
|
12079
12115
|
border-bottom:var(--tab-border-selected);
|
|
12080
12116
|
color:var(--tab-font-selected-color);
|
|
12081
12117
|
}
|
|
12082
|
-
.bp_tabs_module_tabsListContainer--
|
|
12118
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef .bp_tabs_module_tab--68cef[aria-disabled=true]{
|
|
12083
12119
|
opacity:.5;
|
|
12084
12120
|
}
|
|
12085
|
-
.bp_tabs_module_tabsListContainer--
|
|
12121
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
12086
12122
|
background:var(--bp-border-tab-border-selected);
|
|
12087
12123
|
bottom:calc(var(--tab-border-focus-outline-width) + var(--tab-border-focus-outline-offset));
|
|
12088
12124
|
height:var(--bp-border-02);
|
|
@@ -12092,32 +12128,40 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12092
12128
|
z-index:3;
|
|
12093
12129
|
}
|
|
12094
12130
|
@media (prefers-reduced-motion: reduce){
|
|
12095
|
-
.bp_tabs_module_tabsListContainer--
|
|
12131
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tabIndicator--68cef{
|
|
12096
12132
|
transition:none;
|
|
12097
12133
|
}
|
|
12098
12134
|
}
|
|
12099
|
-
.bp_tabs_module_tabsListContainer--
|
|
12135
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true]:has(.bp_tabs_module_tab--68cef[aria-selected=true]:hover) .bp_tabs_module_tabIndicator--68cef{
|
|
12100
12136
|
background:var(--bp-border-tab-border-selected-hover);
|
|
12101
12137
|
}
|
|
12102
|
-
.bp_tabs_module_tabsListContainer--
|
|
12138
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:active,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:focus-visible,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:hover,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[data-focus-visible]{
|
|
12103
12139
|
border-bottom:var(--tab-border);
|
|
12104
12140
|
}
|
|
12105
|
-
.bp_tabs_module_tabsListContainer--
|
|
12141
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:focus-visible:not([aria-selected=true])::after,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[data-focus-visible]:not([aria-selected=true])::after{
|
|
12106
12142
|
background:var(--bp-border-tab-border-hover);
|
|
12107
12143
|
}
|
|
12108
|
-
.bp_tabs_module_tabsListContainer--
|
|
12144
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef:focus-visible:not([aria-selected=true]),.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[data-focus-visible]:not([aria-selected=true]){
|
|
12109
12145
|
box-shadow:inset 0 0 0 1px #fff;
|
|
12110
12146
|
}
|
|
12111
|
-
.bp_tabs_module_tabsListContainer--
|
|
12147
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true],.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true]:active,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true]:hover{
|
|
12112
12148
|
border-bottom:var(--tab-border);
|
|
12113
12149
|
box-shadow:none;
|
|
12114
12150
|
}
|
|
12115
|
-
.bp_tabs_module_tabsListContainer--
|
|
12151
|
+
.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true]:focus-visible,.bp_tabs_module_tabsListContainer--68cef .bp_tabs_module_tabList--68cef[data-bp-animated=true] .bp_tabs_module_tab--68cef[aria-selected=true][data-focus-visible]{
|
|
12116
12152
|
border-bottom:var(--tab-border);
|
|
12117
12153
|
box-shadow:inset 0 0 0 1px #fff;
|
|
12118
12154
|
}
|
|
12155
|
+
.bp_tabs_module_tabsListContainer--68cef:has(> .bp_tabs_module_overflowIndicatorStart--68cef) .bp_tabs_module_tabList--68cef::after{
|
|
12156
|
+
left:0;
|
|
12157
|
+
}
|
|
12158
|
+
|
|
12159
|
+
.bp_tabs_module_tabsListContainerScrollable--68cef{
|
|
12160
|
+
align-items:stretch;
|
|
12161
|
+
display:flex;
|
|
12162
|
+
}
|
|
12119
12163
|
|
|
12120
|
-
.bp_tabs_module_tabIndicator--
|
|
12164
|
+
.bp_tabs_module_tabIndicator--68cef{
|
|
12121
12165
|
left:0;
|
|
12122
12166
|
pointer-events:none;
|
|
12123
12167
|
position:absolute;
|
|
@@ -2,24 +2,9 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Tab } from '@ariakit/react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef, useRef } from 'react';
|
|
5
|
-
import { useEnhancedEffect } from '../../utils/useEnhancedEffect.js';
|
|
6
5
|
import { useForkRef } from '../../utils/useForkRef.js';
|
|
7
6
|
import styles from './tabs.module.js';
|
|
8
|
-
import { useTabs } from './use-tabs.js';
|
|
9
7
|
|
|
10
|
-
const outlineWidth = 3;
|
|
11
|
-
const outlineOffset = 1;
|
|
12
|
-
const padding = 12;
|
|
13
|
-
const scrollTabIntoViewIfSelected = (tabRef, isSelected) => {
|
|
14
|
-
const tabElement = tabRef.current;
|
|
15
|
-
const tabParentElement = tabRef.current?.parentElement;
|
|
16
|
-
const scrollOffset = outlineWidth + outlineOffset + padding;
|
|
17
|
-
if (!isSelected || !tabElement || !tabParentElement) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const scrollHorizontalPosition = tabElement.getBoundingClientRect().left - scrollOffset;
|
|
21
|
-
tabParentElement.scrollLeft = scrollHorizontalPosition;
|
|
22
|
-
};
|
|
23
8
|
const DefaultTab = /*#__PURE__*/forwardRef(function Tab$1(props, ref) {
|
|
24
9
|
const {
|
|
25
10
|
className,
|
|
@@ -27,16 +12,6 @@ const DefaultTab = /*#__PURE__*/forwardRef(function Tab$1(props, ref) {
|
|
|
27
12
|
...rest
|
|
28
13
|
} = props;
|
|
29
14
|
const tabRef = useRef(null);
|
|
30
|
-
const selectedTabId = useTabs()?.useState('selectedId');
|
|
31
|
-
const isTabSelected = selectedTabId === rest?.id;
|
|
32
|
-
const checkedScrollOnMount = useRef(false);
|
|
33
|
-
useEnhancedEffect(() => {
|
|
34
|
-
if (checkedScrollOnMount.current) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
scrollTabIntoViewIfSelected(tabRef, isTabSelected);
|
|
38
|
-
checkedScrollOnMount.current = true;
|
|
39
|
-
}, [isTabSelected]);
|
|
40
15
|
return jsxs(Fragment, {
|
|
41
16
|
children: [jsx(Tab, {
|
|
42
17
|
...rest,
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { TabList as TabList$1 } from '@ariakit/react';
|
|
3
|
+
import { ChevronLeft, ChevronRight } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { forwardRef, useRef } from 'react';
|
|
5
|
+
import { forwardRef, useRef, useState } from 'react';
|
|
5
6
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
6
7
|
import '../../blueprint-configuration-context/consts.js';
|
|
7
8
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
9
|
+
import { useEnhancedEffect } from '../../utils/useEnhancedEffect.js';
|
|
8
10
|
import { useForkRef } from '../../utils/useForkRef.js';
|
|
11
|
+
import { IconButton } from '../icon-button/icon-button.js';
|
|
9
12
|
import styles from './tabs.module.js';
|
|
10
13
|
import { useTabIndicatorStyle } from './use-tab-indicator.js';
|
|
14
|
+
import { useTabListOverflow, scrollSelectedTabIntoView } from './use-tab-list-overflow.js';
|
|
11
15
|
import { useTabs } from './use-tabs.js';
|
|
12
16
|
|
|
17
|
+
// Pointer clicks focus a `tabIndex={-1}` button. Preventing that keeps focus on the
|
|
18
|
+
// tab list when the button unmounts at the scroll edge.
|
|
19
|
+
const keepFocusOffOverflowButton = event => {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
};
|
|
13
22
|
const TabList = /*#__PURE__*/forwardRef(function TabList(props, ref) {
|
|
14
23
|
const {
|
|
15
24
|
className,
|
|
16
25
|
variant = 'default',
|
|
17
26
|
containerClassname,
|
|
18
27
|
children,
|
|
28
|
+
previousOverflowButtonLabel = 'Previous tabs',
|
|
29
|
+
nextOverflowButtonLabel = 'Next tabs',
|
|
19
30
|
...rest
|
|
20
31
|
} = props;
|
|
21
32
|
const tab = useTabs();
|
|
@@ -30,15 +41,52 @@ const TabList = /*#__PURE__*/forwardRef(function TabList(props, ref) {
|
|
|
30
41
|
listRef,
|
|
31
42
|
selectedTabElement
|
|
32
43
|
});
|
|
44
|
+
const isOverflowEnabled = variant !== 'contentSwitcher';
|
|
45
|
+
const [listElement, setListElement] = useState(null);
|
|
46
|
+
const {
|
|
47
|
+
hasMeasuredOverflow,
|
|
48
|
+
overflowPosition,
|
|
49
|
+
scrollToNextTabs,
|
|
50
|
+
scrollToPreviousTabs
|
|
51
|
+
} = useTabListOverflow(isOverflowEnabled ? listElement : null);
|
|
33
52
|
const listRefs = useForkRef(ref, listRef);
|
|
53
|
+
const tabListRef = useForkRef(listRefs, setListElement);
|
|
54
|
+
const didScrollSelectedTabOnMount = useRef(false);
|
|
55
|
+
useEnhancedEffect(() => {
|
|
56
|
+
if (didScrollSelectedTabOnMount.current || !hasMeasuredOverflow || !listElement || !tab) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// No initial selection: mark the mount scroll done so the first click does not scroll.
|
|
60
|
+
if (!tab.getState().selectedId) {
|
|
61
|
+
didScrollSelectedTabOnMount.current = true;
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (!(selectedTabElement instanceof HTMLElement)) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
scrollSelectedTabIntoView(listElement, selectedTabElement);
|
|
68
|
+
didScrollSelectedTabOnMount.current = true;
|
|
69
|
+
}, [hasMeasuredOverflow, listElement, selectedTabElement, tab]);
|
|
34
70
|
if (!tab) {
|
|
35
71
|
throw new Error('TabList must be wrapped in a Tabs component');
|
|
36
72
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
73
|
+
const showPreviousOverflowButton = overflowPosition === 'end' || overflowPosition === 'intermediate';
|
|
74
|
+
const showNextOverflowButton = overflowPosition === 'start' || overflowPosition === 'intermediate';
|
|
75
|
+
return jsxs("div", {
|
|
76
|
+
className: clsx(styles.tabsListContainer, isOverflowEnabled && styles.tabsListContainerScrollable, containerClassname),
|
|
77
|
+
children: [showPreviousOverflowButton && jsx("div", {
|
|
78
|
+
className: clsx(styles.overflowIndicator, styles.overflowIndicatorStart),
|
|
79
|
+
children: jsx(IconButton, {
|
|
80
|
+
"aria-label": previousOverflowButtonLabel,
|
|
81
|
+
icon: ChevronLeft,
|
|
82
|
+
onClick: scrollToPreviousTabs,
|
|
83
|
+
onMouseDown: keepFocusOffOverflowButton,
|
|
84
|
+
size: "x-small",
|
|
85
|
+
tabIndex: -1
|
|
86
|
+
})
|
|
87
|
+
}), jsxs(TabList$1, {
|
|
40
88
|
...rest,
|
|
41
|
-
ref:
|
|
89
|
+
ref: tabListRef,
|
|
42
90
|
className: clsx(variant === 'contentSwitcher' ? styles.contentSwitchTabList : styles.tabList, className),
|
|
43
91
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
44
92
|
store: tab,
|
|
@@ -49,7 +97,17 @@ const TabList = /*#__PURE__*/forwardRef(function TabList(props, ref) {
|
|
|
49
97
|
role: "presentation",
|
|
50
98
|
style: indicatorStyle
|
|
51
99
|
}) : null, children]
|
|
52
|
-
})
|
|
100
|
+
}), showNextOverflowButton && jsx("div", {
|
|
101
|
+
className: clsx(styles.overflowIndicator, styles.overflowIndicatorEnd),
|
|
102
|
+
children: jsx(IconButton, {
|
|
103
|
+
"aria-label": nextOverflowButtonLabel,
|
|
104
|
+
icon: ChevronRight,
|
|
105
|
+
onClick: scrollToNextTabs,
|
|
106
|
+
onMouseDown: keepFocusOffOverflowButton,
|
|
107
|
+
size: "x-small",
|
|
108
|
+
tabIndex: -1
|
|
109
|
+
})
|
|
110
|
+
})]
|
|
53
111
|
});
|
|
54
112
|
});
|
|
55
113
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"hiddenWidthSetter":"bp_tabs_module_hiddenWidthSetter--
|
|
2
|
+
var styles = {"hiddenWidthSetter":"bp_tabs_module_hiddenWidthSetter--68cef","contentSwitchTabList":"bp_tabs_module_contentSwitchTabList--68cef","contentSwitchTab":"bp_tabs_module_contentSwitchTab--68cef","tabIndicator":"bp_tabs_module_tabIndicator--68cef","tabsListContainer":"bp_tabs_module_tabsListContainer--68cef","overflowIndicator":"bp_tabs_module_overflowIndicator--68cef","tabList":"bp_tabs_module_tabList--68cef","tabSeparator":"bp_tabs_module_tabSeparator--68cef","tab":"bp_tabs_module_tab--68cef","overflowIndicatorStart":"bp_tabs_module_overflowIndicatorStart--68cef","tabsListContainerScrollable":"bp_tabs_module_tabsListContainerScrollable--68cef"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -4,6 +4,10 @@ export type TabsVariant = 'default' | 'contentSwitcher';
|
|
|
4
4
|
export type TabListProps = Omit<PrimitiveTabListProps, 'store'> & {
|
|
5
5
|
variant?: TabsVariant;
|
|
6
6
|
containerClassname?: string;
|
|
7
|
+
/** Localized accessible name for the button that scrolls to previous overflowed tabs. */
|
|
8
|
+
previousOverflowButtonLabel?: string;
|
|
9
|
+
/** Localized accessible name for the button that scrolls to next overflowed tabs. */
|
|
10
|
+
nextOverflowButtonLabel?: string;
|
|
7
11
|
};
|
|
8
12
|
export type TabPanelProps = Omit<PrimitiveTabPanelProps, 'store'>;
|
|
9
13
|
export type TabProps = PrimitiveTabProps & {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TabListOverflowPosition = 'start' | 'end' | 'intermediate' | 'none';
|
|
2
|
+
/**
|
|
3
|
+
* Scrolls the selected tab into view once overflow buttons have been measured.
|
|
4
|
+
* No-ops when the list does not overflow or the tab is already fully visible,
|
|
5
|
+
* so a selected tab that already fits does not shove earlier tabs off screen.
|
|
6
|
+
* The chevrons sit beside the scrollport, so the visible area is the tab list itself.
|
|
7
|
+
*/
|
|
8
|
+
export declare const scrollSelectedTabIntoView: (scrollableElement: HTMLElement, tabElement: HTMLElement) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Tracks whether a horizontally scrolling tab list is overflowing and exposes
|
|
11
|
+
* page-wise scroll actions for the overflow buttons.
|
|
12
|
+
* A mutation observer re-measures when tabs are added, removed, or replaced.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useTabListOverflow: (scrollableElement: HTMLElement | null) => {
|
|
15
|
+
hasMeasuredOverflow: boolean;
|
|
16
|
+
overflowPosition: TabListOverflowPosition;
|
|
17
|
+
scrollToNextTabs: () => void;
|
|
18
|
+
scrollToPreviousTabs: () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { useState, useCallback } from 'react';
|
|
2
|
+
import { noop } from '../../utils/noop.js';
|
|
3
|
+
import { useEnhancedEffect } from '../../utils/useEnhancedEffect.js';
|
|
4
|
+
|
|
5
|
+
// Chromium can report fractional scroll values at the edges.
|
|
6
|
+
const EDGE_TOLERANCE_PX = 1;
|
|
7
|
+
// Each chevron click scrolls by a share of the visible width, with a floor for narrow lists.
|
|
8
|
+
const SCROLL_STEP_RATIO = 0.6;
|
|
9
|
+
const MIN_SCROLL_STEP_PX = 120;
|
|
10
|
+
const MAX_SCROLL_STEP_RATIO = 0.85;
|
|
11
|
+
// Matches the previous mount-scroll inset: focus outline (3) + outline offset (1) + tab padding (12).
|
|
12
|
+
const SELECTED_TAB_SCROLL_INSET_PX = 16;
|
|
13
|
+
const getOverflowPosition = ({
|
|
14
|
+
scrollLeft,
|
|
15
|
+
scrollWidth,
|
|
16
|
+
clientWidth
|
|
17
|
+
}) => {
|
|
18
|
+
const maxScroll = scrollWidth - clientWidth;
|
|
19
|
+
if (maxScroll <= EDGE_TOLERANCE_PX) {
|
|
20
|
+
return 'none';
|
|
21
|
+
}
|
|
22
|
+
if (scrollLeft <= EDGE_TOLERANCE_PX) {
|
|
23
|
+
return 'start';
|
|
24
|
+
}
|
|
25
|
+
if (scrollLeft >= maxScroll - EDGE_TOLERANCE_PX) {
|
|
26
|
+
return 'end';
|
|
27
|
+
}
|
|
28
|
+
return 'intermediate';
|
|
29
|
+
};
|
|
30
|
+
const scrollElementTo = (element, left) => {
|
|
31
|
+
if (typeof element.scrollTo === 'function') {
|
|
32
|
+
element.scrollTo({
|
|
33
|
+
behavior: 'instant',
|
|
34
|
+
left
|
|
35
|
+
});
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
element.scrollLeft = left;
|
|
39
|
+
};
|
|
40
|
+
const scrollElementBy = (element, left) => {
|
|
41
|
+
if (typeof element.scrollBy === 'function') {
|
|
42
|
+
element.scrollBy({
|
|
43
|
+
left
|
|
44
|
+
});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
element.scrollLeft += left;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Scrolls the selected tab into view once overflow buttons have been measured.
|
|
51
|
+
* No-ops when the list does not overflow or the tab is already fully visible,
|
|
52
|
+
* so a selected tab that already fits does not shove earlier tabs off screen.
|
|
53
|
+
* The chevrons sit beside the scrollport, so the visible area is the tab list itself.
|
|
54
|
+
*/
|
|
55
|
+
const scrollSelectedTabIntoView = (scrollableElement, tabElement) => {
|
|
56
|
+
const maxScroll = scrollableElement.scrollWidth - scrollableElement.clientWidth;
|
|
57
|
+
if (maxScroll <= EDGE_TOLERANCE_PX) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const parentRect = scrollableElement.getBoundingClientRect();
|
|
61
|
+
const tabRect = tabElement.getBoundingClientRect();
|
|
62
|
+
const visibleStart = parentRect.left + SELECTED_TAB_SCROLL_INSET_PX;
|
|
63
|
+
const visibleEnd = parentRect.right - SELECTED_TAB_SCROLL_INSET_PX;
|
|
64
|
+
if (tabRect.left >= visibleStart - EDGE_TOLERANCE_PX && tabRect.right <= visibleEnd + EDGE_TOLERANCE_PX) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const delta = tabRect.left < visibleStart ? tabRect.left - visibleStart : tabRect.right - visibleEnd;
|
|
68
|
+
scrollElementTo(scrollableElement, scrollableElement.scrollLeft + delta);
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Tracks whether a horizontally scrolling tab list is overflowing and exposes
|
|
72
|
+
* page-wise scroll actions for the overflow buttons.
|
|
73
|
+
* A mutation observer re-measures when tabs are added, removed, or replaced.
|
|
74
|
+
*/
|
|
75
|
+
const useTabListOverflow = scrollableElement => {
|
|
76
|
+
const [overflowPosition, setOverflowPosition] = useState('none');
|
|
77
|
+
const [hasMeasuredOverflow, setHasMeasuredOverflow] = useState(false);
|
|
78
|
+
const scrollTabs = useCallback(direction => {
|
|
79
|
+
if (!scrollableElement) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const visibleWidth = scrollableElement.clientWidth;
|
|
83
|
+
const scrollAmount = Math.min(Math.max(visibleWidth * SCROLL_STEP_RATIO, MIN_SCROLL_STEP_PX), visibleWidth * MAX_SCROLL_STEP_RATIO);
|
|
84
|
+
// Omit `behavior` so the tab list's CSS `scroll-behavior` (and reduced-motion override) applies.
|
|
85
|
+
scrollElementBy(scrollableElement, direction * scrollAmount);
|
|
86
|
+
}, [scrollableElement]);
|
|
87
|
+
const scrollToPreviousTabs = useCallback(() => scrollTabs(-1), [scrollTabs]);
|
|
88
|
+
const scrollToNextTabs = useCallback(() => scrollTabs(1), [scrollTabs]);
|
|
89
|
+
useEnhancedEffect(() => {
|
|
90
|
+
if (!scrollableElement) {
|
|
91
|
+
setOverflowPosition('none');
|
|
92
|
+
setHasMeasuredOverflow(false);
|
|
93
|
+
return noop;
|
|
94
|
+
}
|
|
95
|
+
let animationFrame = null;
|
|
96
|
+
const updateOverflowPosition = () => setOverflowPosition(getOverflowPosition(scrollableElement));
|
|
97
|
+
const handleScroll = () => {
|
|
98
|
+
if (animationFrame !== null) {
|
|
99
|
+
cancelAnimationFrame(animationFrame);
|
|
100
|
+
}
|
|
101
|
+
animationFrame = requestAnimationFrame(updateOverflowPosition);
|
|
102
|
+
};
|
|
103
|
+
const resizeObserver = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(updateOverflowPosition);
|
|
104
|
+
const observeChildren = () => {
|
|
105
|
+
resizeObserver?.observe(scrollableElement);
|
|
106
|
+
for (const child of scrollableElement.children) {
|
|
107
|
+
resizeObserver?.observe(child);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
observeChildren();
|
|
111
|
+
const mutationObserver = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(() => {
|
|
112
|
+
resizeObserver?.disconnect();
|
|
113
|
+
observeChildren();
|
|
114
|
+
updateOverflowPosition();
|
|
115
|
+
});
|
|
116
|
+
mutationObserver?.observe(scrollableElement, {
|
|
117
|
+
childList: true
|
|
118
|
+
});
|
|
119
|
+
scrollableElement.addEventListener('scroll', handleScroll, {
|
|
120
|
+
passive: true
|
|
121
|
+
});
|
|
122
|
+
updateOverflowPosition();
|
|
123
|
+
setHasMeasuredOverflow(true);
|
|
124
|
+
return () => {
|
|
125
|
+
resizeObserver?.disconnect();
|
|
126
|
+
mutationObserver?.disconnect();
|
|
127
|
+
scrollableElement.removeEventListener('scroll', handleScroll);
|
|
128
|
+
if (animationFrame !== null) {
|
|
129
|
+
cancelAnimationFrame(animationFrame);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}, [scrollableElement]);
|
|
133
|
+
return {
|
|
134
|
+
hasMeasuredOverflow,
|
|
135
|
+
overflowPosition,
|
|
136
|
+
scrollToNextTabs,
|
|
137
|
+
scrollToPreviousTabs
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export { scrollSelectedTabIntoView, useTabListOverflow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@ariakit/react": "0.4.21",
|
|
56
56
|
"@ariakit/react-core": "0.4.21",
|
|
57
|
-
"@box/blueprint-web-assets": "^5.15.
|
|
57
|
+
"@box/blueprint-web-assets": "^5.15.4",
|
|
58
58
|
"@internationalized/date": "^3.12.4",
|
|
59
59
|
"@radix-ui/react-accordion": "1.1.2",
|
|
60
60
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@box/box-test-client": "^3.2.7",
|
|
83
83
|
"@box/playwright-utils": "^3.10.0",
|
|
84
|
-
"@box/storybook-utils": "^1.4.
|
|
84
|
+
"@box/storybook-utils": "^1.4.38",
|
|
85
85
|
"@figma/code-connect": "1.4.4",
|
|
86
86
|
"@playwright/test": "1.46.1",
|
|
87
87
|
"@types/js-yaml": "^4.0.9",
|