@box/blueprint-web 18.11.1 → 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/THIRD_PARTY_LICENSES +0 -612
- package/dist/lib-esm/components.css +98 -54
- package/dist/lib-esm/data-table/use-table-scroll-correction.js +44 -3
- package/dist/lib-esm/index.css +98 -54
- package/dist/lib-esm/list-item/index.d.ts +3 -3
- package/dist/lib-esm/list-item/list-item.d.ts +3 -3
- package/dist/lib-esm/primitives/date-i18n-provider/date-i18n-provider.d.ts +1 -1
- package/dist/lib-esm/primitives/date-i18n-provider/date-i18n-provider.js +1 -1
- 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/dist/lib-esm/util-components/list-checkbox/list-checkbox.d.ts +2 -1
- package/dist/lib-esm/util-components/list-checkbox/list-checkbox.js +14 -2
- package/dist/lib-esm/utils/keyboardUtils.js +1 -1
- package/package.json +8 -11
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getInteractionModality } from '@react-aria/interactions';
|
|
2
1
|
import { useEffect } from 'react';
|
|
2
|
+
import { getInteractionModality } from 'react-aria/private/interactions/useFocusVisible';
|
|
3
3
|
|
|
4
4
|
const getElementPadding = element => {
|
|
5
5
|
const style = getComputedStyle(element);
|
|
@@ -161,6 +161,36 @@ function scrollElementIntoContainer(container, element) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Workaround for https://github.com/adobe/react-spectrum/issues/10182 (see also #10196).
|
|
166
|
+
*
|
|
167
|
+
* On keyboard navigation, React Aria centers the table in its scroll container, so arrowing down
|
|
168
|
+
* jumps several rows and sideways. This ignores that one call (keyboard, center/center) on
|
|
169
|
+
* `element` and lets every other `scrollIntoView` through.
|
|
170
|
+
*
|
|
171
|
+
* Should be removed once the issue is fixed upstream.
|
|
172
|
+
*/
|
|
173
|
+
function suppressRecenterOvercorrection(element) {
|
|
174
|
+
const hadOwnScrollIntoView = Object.prototype.hasOwnProperty.call(element, 'scrollIntoView');
|
|
175
|
+
const originalScrollIntoView = element.scrollIntoView;
|
|
176
|
+
const patchedScrollIntoView = function (options) {
|
|
177
|
+
const isReactAriaRecenter = getInteractionModality() === 'keyboard' && typeof options === 'object' && options.block === 'center' && options.inline === 'center';
|
|
178
|
+
if (!isReactAriaRecenter) {
|
|
179
|
+
originalScrollIntoView.call(this, options);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
element.scrollIntoView = patchedScrollIntoView;
|
|
183
|
+
return () => {
|
|
184
|
+
if (element.scrollIntoView !== patchedScrollIntoView) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (hadOwnScrollIntoView) {
|
|
188
|
+
element.scrollIntoView = originalScrollIntoView;
|
|
189
|
+
} else {
|
|
190
|
+
Reflect.deleteProperty(element, 'scrollIntoView');
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
164
194
|
/**
|
|
165
195
|
* Attaches a corrective scroll listener to the container referenced by
|
|
166
196
|
* `containerRef`. When keyboard focus moves to a descendant element,
|
|
@@ -175,16 +205,26 @@ function useTableScrollCorrection(containerRef) {
|
|
|
175
205
|
if (!container) {
|
|
176
206
|
return;
|
|
177
207
|
}
|
|
208
|
+
// React Aria recenters both the table and this wrapper, so both are patched. The table is
|
|
209
|
+
// patched on focus because it can mount after the wrapper (e.g. after a loading state).
|
|
210
|
+
const patchedTargets = new Map();
|
|
211
|
+
const patchRecenterTarget = element => {
|
|
212
|
+
if (element && !patchedTargets.has(element)) {
|
|
213
|
+
patchedTargets.set(element, suppressRecenterOvercorrection(element));
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
patchRecenterTarget(container);
|
|
178
217
|
let raf1 = 0;
|
|
179
218
|
let raf2 = 0;
|
|
180
219
|
const onFocusIn = e => {
|
|
181
220
|
const modality = getInteractionModality();
|
|
182
221
|
const target = e.target;
|
|
183
222
|
const containsTarget = container.contains(target);
|
|
184
|
-
if (
|
|
223
|
+
if (!containsTarget) {
|
|
185
224
|
return;
|
|
186
225
|
}
|
|
187
|
-
|
|
226
|
+
patchRecenterTarget(target.closest('table[role="grid"]'));
|
|
227
|
+
if (modality !== 'keyboard') {
|
|
188
228
|
return;
|
|
189
229
|
}
|
|
190
230
|
cancelAnimationFrame(raf1);
|
|
@@ -203,6 +243,7 @@ function useTableScrollCorrection(containerRef) {
|
|
|
203
243
|
container.removeEventListener('focusin', onFocusIn);
|
|
204
244
|
cancelAnimationFrame(raf1);
|
|
205
245
|
cancelAnimationFrame(raf2);
|
|
246
|
+
patchedTargets.forEach(restore => restore());
|
|
206
247
|
};
|
|
207
248
|
// since it is a ref, it will not trigger a re-render, however eslint still warns to add it to the dependency array
|
|
208
249
|
}, [containerRef]);
|