@box/blueprint-web 19.3.3 → 19.4.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 +103 -30
- package/dist/lib-esm/index.css +103 -30
- package/dist/lib-esm/side-panel/index.d.ts +1 -1
- package/dist/lib-esm/side-panel/resize-context.d.ts +23 -0
- package/dist/lib-esm/side-panel/resize-context.js +8 -0
- package/dist/lib-esm/side-panel/side-panel-content.d.ts +3 -7
- package/dist/lib-esm/side-panel/side-panel-content.js +120 -21
- package/dist/lib-esm/side-panel/side-panel-resize-handle.d.ts +10 -0
- package/dist/lib-esm/side-panel/side-panel-resize-handle.js +52 -0
- package/dist/lib-esm/side-panel/side-panel.d.ts +2 -3
- package/dist/lib-esm/side-panel/side-panel.js +2 -0
- package/dist/lib-esm/side-panel/side-panel.module.js +1 -1
- package/dist/lib-esm/side-panel/types.d.ts +43 -4
- package/dist/lib-esm/side-panel/use-resizable-width.d.ts +24 -0
- package/dist/lib-esm/side-panel/use-resizable-width.js +199 -0
- package/package.json +3 -3
|
@@ -12588,7 +12588,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12588
12588
|
top:50%;
|
|
12589
12589
|
transform:translateY(-50%);
|
|
12590
12590
|
}
|
|
12591
|
-
.bp_side_panel_module_content--
|
|
12591
|
+
.bp_side_panel_module_content--10210{
|
|
12592
12592
|
--side-panel-border:var(--bp-border-01) solid var(--bp-border-divider-border);
|
|
12593
12593
|
--side-panel-background:var(--bp-surface-side-panel-surface);
|
|
12594
12594
|
--side-panel-header-padding:var(--bp-space-060) var(--bp-space-040);
|
|
@@ -12618,16 +12618,16 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12618
12618
|
overflow-y:auto;
|
|
12619
12619
|
}
|
|
12620
12620
|
@media (width > 374px){
|
|
12621
|
-
.bp_side_panel_module_content--
|
|
12621
|
+
.bp_side_panel_module_content--10210{
|
|
12622
12622
|
min-width:320px;
|
|
12623
12623
|
overflow:hidden;
|
|
12624
12624
|
}
|
|
12625
12625
|
}
|
|
12626
|
-
.bp_side_panel_module_content--
|
|
12626
|
+
.bp_side_panel_module_content--10210{
|
|
12627
12627
|
background-color:var(--side-panel-background);
|
|
12628
12628
|
border-inline-start:var(--side-panel-border);
|
|
12629
12629
|
}
|
|
12630
|
-
.bp_side_panel_module_content--
|
|
12630
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_header--10210{
|
|
12631
12631
|
align-items:center;
|
|
12632
12632
|
background-color:var(--side-panel-header-background);
|
|
12633
12633
|
border-bottom:var(--side-panel-header-border);
|
|
@@ -12639,94 +12639,167 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12639
12639
|
transition-property:box-shadow;
|
|
12640
12640
|
transition-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12641
12641
|
}
|
|
12642
|
-
.bp_side_panel_module_content--
|
|
12642
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_headerShadow--10210{
|
|
12643
12643
|
box-shadow:var(--side-panel-header-shadow);
|
|
12644
12644
|
}
|
|
12645
12645
|
|
|
12646
|
-
.bp_side_panel_module_scrollableContainer--
|
|
12646
|
+
.bp_side_panel_module_scrollableContainer--10210{
|
|
12647
12647
|
flex-grow:1;
|
|
12648
12648
|
}
|
|
12649
12649
|
@media (width > 374px){
|
|
12650
|
-
.bp_side_panel_module_scrollableContainer--
|
|
12650
|
+
.bp_side_panel_module_scrollableContainer--10210{
|
|
12651
12651
|
overflow-y:auto;
|
|
12652
12652
|
}
|
|
12653
12653
|
}
|
|
12654
12654
|
|
|
12655
|
-
.bp_side_panel_module_persistentContent--
|
|
12655
|
+
.bp_side_panel_module_persistentContent--10210{
|
|
12656
12656
|
overflow:hidden;
|
|
12657
12657
|
position:relative;
|
|
12658
12658
|
}
|
|
12659
|
-
.bp_side_panel_module_persistentContent--
|
|
12659
|
+
.bp_side_panel_module_persistentContent--10210 .bp_side_panel_module_scrollableContainer--10210{
|
|
12660
12660
|
flex-grow:1;
|
|
12661
12661
|
overflow-y:auto;
|
|
12662
12662
|
}
|
|
12663
12663
|
|
|
12664
|
-
.bp_side_panel_module_contentAnimatedSlideIn--
|
|
12664
|
+
.bp_side_panel_module_contentAnimatedSlideIn--10210{
|
|
12665
12665
|
animation-duration:.2s;
|
|
12666
|
-
animation-name:bp_side_panel_module_slideIn--
|
|
12666
|
+
animation-name:bp_side_panel_module_slideIn--10210;
|
|
12667
12667
|
animation-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12668
12668
|
}
|
|
12669
12669
|
|
|
12670
|
-
.bp_side_panel_module_contentAnimatedSlideOut--
|
|
12670
|
+
.bp_side_panel_module_contentAnimatedSlideOut--10210[data-state=closed]{
|
|
12671
12671
|
animation-duration:.2s;
|
|
12672
|
-
animation-name:bp_side_panel_module_slideOut--
|
|
12672
|
+
animation-name:bp_side_panel_module_slideOut--10210;
|
|
12673
12673
|
animation-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12674
12674
|
}
|
|
12675
12675
|
|
|
12676
|
-
.bp_side_panel_module_contentNormal--
|
|
12676
|
+
.bp_side_panel_module_contentNormal--10210{
|
|
12677
12677
|
width:var(--side-panel-content-width-normal);
|
|
12678
12678
|
}
|
|
12679
12679
|
|
|
12680
|
-
.bp_side_panel_module_contentLarge--
|
|
12680
|
+
.bp_side_panel_module_contentLarge--10210{
|
|
12681
12681
|
width:var(--side-panel-content-width-large);
|
|
12682
12682
|
}
|
|
12683
12683
|
|
|
12684
|
-
.
|
|
12684
|
+
.bp_side_panel_module_contentResizable--10210{
|
|
12685
|
+
width:var(--side-panel-content-width-resizable);
|
|
12686
|
+
}
|
|
12687
|
+
@media (width > 374px){
|
|
12688
|
+
.bp_side_panel_module_contentResizable--10210{
|
|
12689
|
+
min-width:0;
|
|
12690
|
+
overflow:visible;
|
|
12691
|
+
}
|
|
12692
|
+
}
|
|
12693
|
+
|
|
12694
|
+
.bp_side_panel_module_resizeHandle--10210{
|
|
12695
|
+
--side-panel-resize-handle-width:var(--bp-size-060);
|
|
12696
|
+
--side-panel-resize-grip-width:var(--bp-size-010);
|
|
12697
|
+
--side-panel-resize-grip-height:var(--bp-size-070);
|
|
12698
|
+
--side-panel-resize-handle-inset:calc(var(--side-panel-resize-handle-width)/-2);
|
|
12699
|
+
--side-panel-resize-grip-inset:calc(50% - var(--bp-size-030)/2);
|
|
12700
|
+
--side-panel-resize-grip-radius:var(--bp-radius-02);
|
|
12701
|
+
--side-panel-resize-grip-color:var(--bp-gray-20);
|
|
12702
|
+
--side-panel-resize-grip-color-hover:var(--bp-border-resize-border-hover);
|
|
12703
|
+
--side-panel-resize-grip-color-active:var(--bp-border-resize-border-focus);
|
|
12704
|
+
--side-panel-resize-grip-outline:var(--bp-border-02) solid var(--bp-outline-focus-on-light);
|
|
12705
|
+
cursor:col-resize;
|
|
12706
|
+
display:none;
|
|
12707
|
+
inset-block:0;
|
|
12708
|
+
position:absolute;
|
|
12709
|
+
touch-action:none;
|
|
12710
|
+
width:var(--side-panel-resize-handle-width);
|
|
12711
|
+
z-index:1;
|
|
12712
|
+
}
|
|
12713
|
+
@media (width > 374px){
|
|
12714
|
+
.bp_side_panel_module_resizeHandle--10210{
|
|
12715
|
+
display:block;
|
|
12716
|
+
}
|
|
12717
|
+
}
|
|
12718
|
+
.bp_side_panel_module_resizeHandle--10210::before{
|
|
12719
|
+
background-color:var(--side-panel-resize-grip-color);
|
|
12720
|
+
border-radius:var(--side-panel-resize-grip-radius);
|
|
12721
|
+
content:"";
|
|
12722
|
+
height:var(--side-panel-resize-grip-height);
|
|
12723
|
+
inset-block-start:50%;
|
|
12724
|
+
position:absolute;
|
|
12725
|
+
transform:translateY(-50%);
|
|
12726
|
+
transition-duration:.2s;
|
|
12727
|
+
transition-property:background-color;
|
|
12728
|
+
transition-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12729
|
+
width:var(--side-panel-resize-grip-width);
|
|
12730
|
+
}
|
|
12731
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=inline-start]{
|
|
12732
|
+
inset-inline-start:var(--side-panel-resize-handle-inset);
|
|
12733
|
+
}
|
|
12734
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=inline-start]::before{
|
|
12735
|
+
inset-inline-start:var(--side-panel-resize-grip-inset);
|
|
12736
|
+
}
|
|
12737
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=left]{
|
|
12738
|
+
left:var(--side-panel-resize-handle-inset);
|
|
12739
|
+
}
|
|
12740
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=left]::before{
|
|
12741
|
+
left:var(--side-panel-resize-grip-inset);
|
|
12742
|
+
}
|
|
12743
|
+
.bp_side_panel_module_resizeHandle--10210:hover::before{
|
|
12744
|
+
background-color:var(--side-panel-resize-grip-color-hover);
|
|
12745
|
+
}
|
|
12746
|
+
.bp_side_panel_module_resizeHandle--10210:focus-visible::before,.bp_side_panel_module_resizeHandle--10210[data-resizing]::before{
|
|
12747
|
+
background-color:var(--side-panel-resize-grip-color-active);
|
|
12748
|
+
}
|
|
12749
|
+
.bp_side_panel_module_resizeHandle--10210:focus-visible{
|
|
12750
|
+
outline:none;
|
|
12751
|
+
}
|
|
12752
|
+
.bp_side_panel_module_resizeHandle--10210:focus-visible::before{
|
|
12753
|
+
outline:var(--side-panel-resize-grip-outline);
|
|
12754
|
+
outline-offset:var(--bp-border-02);
|
|
12755
|
+
}
|
|
12756
|
+
|
|
12757
|
+
.bp_side_panel_module_dropShadowContent--10210{
|
|
12685
12758
|
box-shadow:var(--side-panel-content-shadow);
|
|
12686
12759
|
}
|
|
12687
12760
|
|
|
12688
|
-
.bp_side_panel_module_content--
|
|
12761
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_close--10210{
|
|
12689
12762
|
position:fixed;
|
|
12690
12763
|
top:var(--side-panel-close-top-small);
|
|
12691
12764
|
}
|
|
12692
12765
|
@media (width > 374px){
|
|
12693
|
-
.bp_side_panel_module_content--
|
|
12766
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_close--10210{
|
|
12694
12767
|
position:absolute;
|
|
12695
12768
|
top:var(--side-panel-close-top);
|
|
12696
12769
|
}
|
|
12697
12770
|
}
|
|
12698
|
-
.bp_side_panel_module_content--
|
|
12771
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_close--10210{
|
|
12699
12772
|
color:var(--side-panel-close-color);
|
|
12700
12773
|
right:var(--side-panel-close-right);
|
|
12701
12774
|
}
|
|
12702
12775
|
|
|
12703
|
-
.bp_side_panel_module_overlayContent--
|
|
12776
|
+
.bp_side_panel_module_overlayContent--10210{
|
|
12704
12777
|
box-shadow:var(--side-panel-content-shadow);
|
|
12705
12778
|
position:fixed;
|
|
12706
12779
|
right:0;
|
|
12707
12780
|
top:0;
|
|
12708
12781
|
z-index:var(--z-index-sidepanel);
|
|
12709
12782
|
}
|
|
12710
|
-
.bp_side_panel_module_overlayContent--
|
|
12783
|
+
.bp_side_panel_module_overlayContent--10210 .bp_side_panel_module_header--10210{
|
|
12711
12784
|
padding:var(--side-panel-overlay-header-padding);
|
|
12712
12785
|
}
|
|
12713
12786
|
|
|
12714
|
-
.bp_side_panel_module_overlay--
|
|
12787
|
+
.bp_side_panel_module_overlay--10210{
|
|
12715
12788
|
background-color:var(--bp-overlay-side-panel-overlay);
|
|
12716
12789
|
display:flex;
|
|
12717
12790
|
inset:0;
|
|
12718
12791
|
position:fixed;
|
|
12719
12792
|
z-index:var(--z-index-sidepanel);
|
|
12720
12793
|
}
|
|
12721
|
-
.bp_side_panel_module_overlay--
|
|
12794
|
+
.bp_side_panel_module_overlay--10210 .bp_side_panel_module_content--10210 .bp_side_panel_module_header--10210{
|
|
12722
12795
|
padding:var(--side-panel-overlay-header-padding);
|
|
12723
12796
|
}
|
|
12724
12797
|
|
|
12725
|
-
.bp_side_panel_module_dropShadowOverlay--
|
|
12798
|
+
.bp_side_panel_module_dropShadowOverlay--10210{
|
|
12726
12799
|
background-color:initial;
|
|
12727
12800
|
}
|
|
12728
12801
|
|
|
12729
|
-
.bp_side_panel_module_footer--
|
|
12802
|
+
.bp_side_panel_module_footer--10210{
|
|
12730
12803
|
background-color:var(--side-panel-footer-background);
|
|
12731
12804
|
display:flex;
|
|
12732
12805
|
justify-content:flex-end;
|
|
@@ -12736,19 +12809,19 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12736
12809
|
transition-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12737
12810
|
}
|
|
12738
12811
|
|
|
12739
|
-
.bp_side_panel_module_footerShadow--
|
|
12812
|
+
.bp_side_panel_module_footerShadow--10210{
|
|
12740
12813
|
box-shadow:var(--side-panel-footer-shadow);
|
|
12741
12814
|
}
|
|
12742
12815
|
|
|
12743
|
-
.bp_side_panel_module_footerButton--
|
|
12816
|
+
.bp_side_panel_module_footerButton--10210{
|
|
12744
12817
|
margin-inline-start:var(--side-panel-footer-button-margin);
|
|
12745
12818
|
}
|
|
12746
12819
|
|
|
12747
|
-
.bp_side_panel_module_footerButton--
|
|
12820
|
+
.bp_side_panel_module_footerButton--10210 + .bp_side_panel_module_footerButton--10210{
|
|
12748
12821
|
margin-inline-start:var(--side-panel-footer-button-margin-plus);
|
|
12749
12822
|
}
|
|
12750
12823
|
|
|
12751
|
-
@keyframes bp_side_panel_module_slideIn--
|
|
12824
|
+
@keyframes bp_side_panel_module_slideIn--10210{
|
|
12752
12825
|
from{
|
|
12753
12826
|
inset-inline-end:-100%;
|
|
12754
12827
|
}
|
|
@@ -12756,7 +12829,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12756
12829
|
inset-inline-end:0;
|
|
12757
12830
|
}
|
|
12758
12831
|
}
|
|
12759
|
-
@keyframes bp_side_panel_module_slideOut--
|
|
12832
|
+
@keyframes bp_side_panel_module_slideOut--10210{
|
|
12760
12833
|
from{
|
|
12761
12834
|
inset-inline-end:0;
|
|
12762
12835
|
}
|
package/dist/lib-esm/index.css
CHANGED
|
@@ -12588,7 +12588,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12588
12588
|
top:50%;
|
|
12589
12589
|
transform:translateY(-50%);
|
|
12590
12590
|
}
|
|
12591
|
-
.bp_side_panel_module_content--
|
|
12591
|
+
.bp_side_panel_module_content--10210{
|
|
12592
12592
|
--side-panel-border:var(--bp-border-01) solid var(--bp-border-divider-border);
|
|
12593
12593
|
--side-panel-background:var(--bp-surface-side-panel-surface);
|
|
12594
12594
|
--side-panel-header-padding:var(--bp-space-060) var(--bp-space-040);
|
|
@@ -12618,16 +12618,16 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12618
12618
|
overflow-y:auto;
|
|
12619
12619
|
}
|
|
12620
12620
|
@media (width > 374px){
|
|
12621
|
-
.bp_side_panel_module_content--
|
|
12621
|
+
.bp_side_panel_module_content--10210{
|
|
12622
12622
|
min-width:320px;
|
|
12623
12623
|
overflow:hidden;
|
|
12624
12624
|
}
|
|
12625
12625
|
}
|
|
12626
|
-
.bp_side_panel_module_content--
|
|
12626
|
+
.bp_side_panel_module_content--10210{
|
|
12627
12627
|
background-color:var(--side-panel-background);
|
|
12628
12628
|
border-inline-start:var(--side-panel-border);
|
|
12629
12629
|
}
|
|
12630
|
-
.bp_side_panel_module_content--
|
|
12630
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_header--10210{
|
|
12631
12631
|
align-items:center;
|
|
12632
12632
|
background-color:var(--side-panel-header-background);
|
|
12633
12633
|
border-bottom:var(--side-panel-header-border);
|
|
@@ -12639,94 +12639,167 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12639
12639
|
transition-property:box-shadow;
|
|
12640
12640
|
transition-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12641
12641
|
}
|
|
12642
|
-
.bp_side_panel_module_content--
|
|
12642
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_headerShadow--10210{
|
|
12643
12643
|
box-shadow:var(--side-panel-header-shadow);
|
|
12644
12644
|
}
|
|
12645
12645
|
|
|
12646
|
-
.bp_side_panel_module_scrollableContainer--
|
|
12646
|
+
.bp_side_panel_module_scrollableContainer--10210{
|
|
12647
12647
|
flex-grow:1;
|
|
12648
12648
|
}
|
|
12649
12649
|
@media (width > 374px){
|
|
12650
|
-
.bp_side_panel_module_scrollableContainer--
|
|
12650
|
+
.bp_side_panel_module_scrollableContainer--10210{
|
|
12651
12651
|
overflow-y:auto;
|
|
12652
12652
|
}
|
|
12653
12653
|
}
|
|
12654
12654
|
|
|
12655
|
-
.bp_side_panel_module_persistentContent--
|
|
12655
|
+
.bp_side_panel_module_persistentContent--10210{
|
|
12656
12656
|
overflow:hidden;
|
|
12657
12657
|
position:relative;
|
|
12658
12658
|
}
|
|
12659
|
-
.bp_side_panel_module_persistentContent--
|
|
12659
|
+
.bp_side_panel_module_persistentContent--10210 .bp_side_panel_module_scrollableContainer--10210{
|
|
12660
12660
|
flex-grow:1;
|
|
12661
12661
|
overflow-y:auto;
|
|
12662
12662
|
}
|
|
12663
12663
|
|
|
12664
|
-
.bp_side_panel_module_contentAnimatedSlideIn--
|
|
12664
|
+
.bp_side_panel_module_contentAnimatedSlideIn--10210{
|
|
12665
12665
|
animation-duration:.2s;
|
|
12666
|
-
animation-name:bp_side_panel_module_slideIn--
|
|
12666
|
+
animation-name:bp_side_panel_module_slideIn--10210;
|
|
12667
12667
|
animation-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12668
12668
|
}
|
|
12669
12669
|
|
|
12670
|
-
.bp_side_panel_module_contentAnimatedSlideOut--
|
|
12670
|
+
.bp_side_panel_module_contentAnimatedSlideOut--10210[data-state=closed]{
|
|
12671
12671
|
animation-duration:.2s;
|
|
12672
|
-
animation-name:bp_side_panel_module_slideOut--
|
|
12672
|
+
animation-name:bp_side_panel_module_slideOut--10210;
|
|
12673
12673
|
animation-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12674
12674
|
}
|
|
12675
12675
|
|
|
12676
|
-
.bp_side_panel_module_contentNormal--
|
|
12676
|
+
.bp_side_panel_module_contentNormal--10210{
|
|
12677
12677
|
width:var(--side-panel-content-width-normal);
|
|
12678
12678
|
}
|
|
12679
12679
|
|
|
12680
|
-
.bp_side_panel_module_contentLarge--
|
|
12680
|
+
.bp_side_panel_module_contentLarge--10210{
|
|
12681
12681
|
width:var(--side-panel-content-width-large);
|
|
12682
12682
|
}
|
|
12683
12683
|
|
|
12684
|
-
.
|
|
12684
|
+
.bp_side_panel_module_contentResizable--10210{
|
|
12685
|
+
width:var(--side-panel-content-width-resizable);
|
|
12686
|
+
}
|
|
12687
|
+
@media (width > 374px){
|
|
12688
|
+
.bp_side_panel_module_contentResizable--10210{
|
|
12689
|
+
min-width:0;
|
|
12690
|
+
overflow:visible;
|
|
12691
|
+
}
|
|
12692
|
+
}
|
|
12693
|
+
|
|
12694
|
+
.bp_side_panel_module_resizeHandle--10210{
|
|
12695
|
+
--side-panel-resize-handle-width:var(--bp-size-060);
|
|
12696
|
+
--side-panel-resize-grip-width:var(--bp-size-010);
|
|
12697
|
+
--side-panel-resize-grip-height:var(--bp-size-070);
|
|
12698
|
+
--side-panel-resize-handle-inset:calc(var(--side-panel-resize-handle-width)/-2);
|
|
12699
|
+
--side-panel-resize-grip-inset:calc(50% - var(--bp-size-030)/2);
|
|
12700
|
+
--side-panel-resize-grip-radius:var(--bp-radius-02);
|
|
12701
|
+
--side-panel-resize-grip-color:var(--bp-gray-20);
|
|
12702
|
+
--side-panel-resize-grip-color-hover:var(--bp-border-resize-border-hover);
|
|
12703
|
+
--side-panel-resize-grip-color-active:var(--bp-border-resize-border-focus);
|
|
12704
|
+
--side-panel-resize-grip-outline:var(--bp-border-02) solid var(--bp-outline-focus-on-light);
|
|
12705
|
+
cursor:col-resize;
|
|
12706
|
+
display:none;
|
|
12707
|
+
inset-block:0;
|
|
12708
|
+
position:absolute;
|
|
12709
|
+
touch-action:none;
|
|
12710
|
+
width:var(--side-panel-resize-handle-width);
|
|
12711
|
+
z-index:1;
|
|
12712
|
+
}
|
|
12713
|
+
@media (width > 374px){
|
|
12714
|
+
.bp_side_panel_module_resizeHandle--10210{
|
|
12715
|
+
display:block;
|
|
12716
|
+
}
|
|
12717
|
+
}
|
|
12718
|
+
.bp_side_panel_module_resizeHandle--10210::before{
|
|
12719
|
+
background-color:var(--side-panel-resize-grip-color);
|
|
12720
|
+
border-radius:var(--side-panel-resize-grip-radius);
|
|
12721
|
+
content:"";
|
|
12722
|
+
height:var(--side-panel-resize-grip-height);
|
|
12723
|
+
inset-block-start:50%;
|
|
12724
|
+
position:absolute;
|
|
12725
|
+
transform:translateY(-50%);
|
|
12726
|
+
transition-duration:.2s;
|
|
12727
|
+
transition-property:background-color;
|
|
12728
|
+
transition-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12729
|
+
width:var(--side-panel-resize-grip-width);
|
|
12730
|
+
}
|
|
12731
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=inline-start]{
|
|
12732
|
+
inset-inline-start:var(--side-panel-resize-handle-inset);
|
|
12733
|
+
}
|
|
12734
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=inline-start]::before{
|
|
12735
|
+
inset-inline-start:var(--side-panel-resize-grip-inset);
|
|
12736
|
+
}
|
|
12737
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=left]{
|
|
12738
|
+
left:var(--side-panel-resize-handle-inset);
|
|
12739
|
+
}
|
|
12740
|
+
.bp_side_panel_module_resizeHandle--10210[data-edge=left]::before{
|
|
12741
|
+
left:var(--side-panel-resize-grip-inset);
|
|
12742
|
+
}
|
|
12743
|
+
.bp_side_panel_module_resizeHandle--10210:hover::before{
|
|
12744
|
+
background-color:var(--side-panel-resize-grip-color-hover);
|
|
12745
|
+
}
|
|
12746
|
+
.bp_side_panel_module_resizeHandle--10210:focus-visible::before,.bp_side_panel_module_resizeHandle--10210[data-resizing]::before{
|
|
12747
|
+
background-color:var(--side-panel-resize-grip-color-active);
|
|
12748
|
+
}
|
|
12749
|
+
.bp_side_panel_module_resizeHandle--10210:focus-visible{
|
|
12750
|
+
outline:none;
|
|
12751
|
+
}
|
|
12752
|
+
.bp_side_panel_module_resizeHandle--10210:focus-visible::before{
|
|
12753
|
+
outline:var(--side-panel-resize-grip-outline);
|
|
12754
|
+
outline-offset:var(--bp-border-02);
|
|
12755
|
+
}
|
|
12756
|
+
|
|
12757
|
+
.bp_side_panel_module_dropShadowContent--10210{
|
|
12685
12758
|
box-shadow:var(--side-panel-content-shadow);
|
|
12686
12759
|
}
|
|
12687
12760
|
|
|
12688
|
-
.bp_side_panel_module_content--
|
|
12761
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_close--10210{
|
|
12689
12762
|
position:fixed;
|
|
12690
12763
|
top:var(--side-panel-close-top-small);
|
|
12691
12764
|
}
|
|
12692
12765
|
@media (width > 374px){
|
|
12693
|
-
.bp_side_panel_module_content--
|
|
12766
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_close--10210{
|
|
12694
12767
|
position:absolute;
|
|
12695
12768
|
top:var(--side-panel-close-top);
|
|
12696
12769
|
}
|
|
12697
12770
|
}
|
|
12698
|
-
.bp_side_panel_module_content--
|
|
12771
|
+
.bp_side_panel_module_content--10210 .bp_side_panel_module_close--10210{
|
|
12699
12772
|
color:var(--side-panel-close-color);
|
|
12700
12773
|
right:var(--side-panel-close-right);
|
|
12701
12774
|
}
|
|
12702
12775
|
|
|
12703
|
-
.bp_side_panel_module_overlayContent--
|
|
12776
|
+
.bp_side_panel_module_overlayContent--10210{
|
|
12704
12777
|
box-shadow:var(--side-panel-content-shadow);
|
|
12705
12778
|
position:fixed;
|
|
12706
12779
|
right:0;
|
|
12707
12780
|
top:0;
|
|
12708
12781
|
z-index:var(--z-index-sidepanel);
|
|
12709
12782
|
}
|
|
12710
|
-
.bp_side_panel_module_overlayContent--
|
|
12783
|
+
.bp_side_panel_module_overlayContent--10210 .bp_side_panel_module_header--10210{
|
|
12711
12784
|
padding:var(--side-panel-overlay-header-padding);
|
|
12712
12785
|
}
|
|
12713
12786
|
|
|
12714
|
-
.bp_side_panel_module_overlay--
|
|
12787
|
+
.bp_side_panel_module_overlay--10210{
|
|
12715
12788
|
background-color:var(--bp-overlay-side-panel-overlay);
|
|
12716
12789
|
display:flex;
|
|
12717
12790
|
inset:0;
|
|
12718
12791
|
position:fixed;
|
|
12719
12792
|
z-index:var(--z-index-sidepanel);
|
|
12720
12793
|
}
|
|
12721
|
-
.bp_side_panel_module_overlay--
|
|
12794
|
+
.bp_side_panel_module_overlay--10210 .bp_side_panel_module_content--10210 .bp_side_panel_module_header--10210{
|
|
12722
12795
|
padding:var(--side-panel-overlay-header-padding);
|
|
12723
12796
|
}
|
|
12724
12797
|
|
|
12725
|
-
.bp_side_panel_module_dropShadowOverlay--
|
|
12798
|
+
.bp_side_panel_module_dropShadowOverlay--10210{
|
|
12726
12799
|
background-color:initial;
|
|
12727
12800
|
}
|
|
12728
12801
|
|
|
12729
|
-
.bp_side_panel_module_footer--
|
|
12802
|
+
.bp_side_panel_module_footer--10210{
|
|
12730
12803
|
background-color:var(--side-panel-footer-background);
|
|
12731
12804
|
display:flex;
|
|
12732
12805
|
justify-content:flex-end;
|
|
@@ -12736,19 +12809,19 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12736
12809
|
transition-timing-function:cubic-bezier(0, 0, .6, 1);
|
|
12737
12810
|
}
|
|
12738
12811
|
|
|
12739
|
-
.bp_side_panel_module_footerShadow--
|
|
12812
|
+
.bp_side_panel_module_footerShadow--10210{
|
|
12740
12813
|
box-shadow:var(--side-panel-footer-shadow);
|
|
12741
12814
|
}
|
|
12742
12815
|
|
|
12743
|
-
.bp_side_panel_module_footerButton--
|
|
12816
|
+
.bp_side_panel_module_footerButton--10210{
|
|
12744
12817
|
margin-inline-start:var(--side-panel-footer-button-margin);
|
|
12745
12818
|
}
|
|
12746
12819
|
|
|
12747
|
-
.bp_side_panel_module_footerButton--
|
|
12820
|
+
.bp_side_panel_module_footerButton--10210 + .bp_side_panel_module_footerButton--10210{
|
|
12748
12821
|
margin-inline-start:var(--side-panel-footer-button-margin-plus);
|
|
12749
12822
|
}
|
|
12750
12823
|
|
|
12751
|
-
@keyframes bp_side_panel_module_slideIn--
|
|
12824
|
+
@keyframes bp_side_panel_module_slideIn--10210{
|
|
12752
12825
|
from{
|
|
12753
12826
|
inset-inline-end:-100%;
|
|
12754
12827
|
}
|
|
@@ -12756,7 +12829,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12756
12829
|
inset-inline-end:0;
|
|
12757
12830
|
}
|
|
12758
12831
|
}
|
|
12759
|
-
@keyframes bp_side_panel_module_slideOut--
|
|
12832
|
+
@keyframes bp_side_panel_module_slideOut--10210{
|
|
12760
12833
|
from{
|
|
12761
12834
|
inset-inline-end:0;
|
|
12762
12835
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SidePanel } from './side-panel';
|
|
2
|
-
export type { SidePanelProps } from './types';
|
|
2
|
+
export type { SidePanelContentProps, SidePanelProps, SidePanelResizableProps, SidePanelResizeHandleProps, } from './types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type KeyboardEvent, type PointerEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The panel edge the handle sits on. Persistent panels follow the writing direction; overlay panels are pinned to
|
|
4
|
+
* the right of the viewport in every direction, so their handle is always on the left.
|
|
5
|
+
*/
|
|
6
|
+
export type ResizeEdge = 'inline-start' | 'left';
|
|
7
|
+
/** What `SidePanel.ResizeHandle` reads from a `resizable` panel. */
|
|
8
|
+
export interface SidePanelResizeContextValue {
|
|
9
|
+
/** The panel's `id`, for the handle's `aria-controls`. */
|
|
10
|
+
contentId: string | undefined;
|
|
11
|
+
edge: ResizeEdge;
|
|
12
|
+
isResizing: boolean;
|
|
13
|
+
/** The width on screen, within the limits the user can reach. */
|
|
14
|
+
valueNow: number;
|
|
15
|
+
valueMin: number;
|
|
16
|
+
/** `maxWidth`, or less when the container caps the panel. */
|
|
17
|
+
valueMax: number;
|
|
18
|
+
handleKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
19
|
+
handlePointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
20
|
+
resetWidth: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const ResizeProvider: import("react").Provider<SidePanelResizeContextValue | null>;
|
|
23
|
+
export declare const useResizeContext: () => SidePanelResizeContextValue | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
/** `null` when the surrounding SidePanel content is not `resizable`. */
|
|
4
|
+
const ResizeContext = /*#__PURE__*/createContext(null);
|
|
5
|
+
const ResizeProvider = ResizeContext.Provider;
|
|
6
|
+
const useResizeContext = () => useContext(ResizeContext);
|
|
7
|
+
|
|
8
|
+
export { ResizeProvider, useResizeContext };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type SidePanelContentProps, type SidePanelPersistentContentProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Contains content to be rendered in the open SidePanel in Overlay view.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SidePanelContent: import("react").ForwardRefExoticComponent<
|
|
6
|
-
size?: "medium" | "large";
|
|
7
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const SidePanelContent: import("react").ForwardRefExoticComponent<SidePanelContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
6
|
/**
|
|
9
7
|
* Contains content to be rendered in the open SidePanel in Persistent view.
|
|
10
8
|
*/
|
|
11
|
-
export declare const SidePanelPersistentContent: import("react").ForwardRefExoticComponent<Omit<
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const SidePanelPersistentContent: import("react").ForwardRefExoticComponent<Omit<SidePanelPersistentContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -2,10 +2,45 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
3
|
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
|
-
import { forwardRef, useCallback } from 'react';
|
|
5
|
+
import { forwardRef, useCallback, useId } from 'react';
|
|
6
|
+
import { useForkRef } from '../utils/useForkRef.js';
|
|
7
|
+
import { ResizeProvider } from './resize-context.js';
|
|
6
8
|
import styles from './side-panel.module.js';
|
|
9
|
+
import { SIDE_PANEL_WIDTHS, useResizableWidth } from './use-resizable-width.js';
|
|
7
10
|
import { useVariant } from './variant-context.js';
|
|
8
11
|
|
|
12
|
+
/** Wires the optional resizing into a panel. With `resizable` off it returns the caller's style and no context. */
|
|
13
|
+
const useResizableContent = ({
|
|
14
|
+
resizable = false,
|
|
15
|
+
forwardedRef,
|
|
16
|
+
style,
|
|
17
|
+
...widthProps
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
contentRef,
|
|
21
|
+
resize,
|
|
22
|
+
width
|
|
23
|
+
} = useResizableWidth({
|
|
24
|
+
...widthProps,
|
|
25
|
+
enabled: resizable
|
|
26
|
+
});
|
|
27
|
+
const ref = useForkRef(forwardedRef, contentRef);
|
|
28
|
+
if (!resizable) {
|
|
29
|
+
return {
|
|
30
|
+
ref,
|
|
31
|
+
resize: null,
|
|
32
|
+
style
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
ref,
|
|
37
|
+
resize,
|
|
38
|
+
style: {
|
|
39
|
+
...style,
|
|
40
|
+
'--side-panel-content-width-resizable': `${width}px`
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
};
|
|
9
44
|
/**
|
|
10
45
|
* Contains content to be rendered in the open SidePanel in Overlay view.
|
|
11
46
|
*/
|
|
@@ -13,7 +48,13 @@ const SidePanelContent = /*#__PURE__*/forwardRef(({
|
|
|
13
48
|
asChild = false,
|
|
14
49
|
children,
|
|
15
50
|
className,
|
|
51
|
+
defaultWidth,
|
|
52
|
+
maxWidth,
|
|
53
|
+
minWidth,
|
|
54
|
+
onWidthChange,
|
|
55
|
+
resizable,
|
|
16
56
|
size = 'medium',
|
|
57
|
+
width,
|
|
17
58
|
...props
|
|
18
59
|
}, forwardedRef) => {
|
|
19
60
|
const variant = useVariant();
|
|
@@ -24,21 +65,44 @@ const SidePanelContent = /*#__PURE__*/forwardRef(({
|
|
|
24
65
|
event.preventDefault();
|
|
25
66
|
}
|
|
26
67
|
}, [isInteractiveOverlayVariant]);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
68
|
+
const {
|
|
69
|
+
ref,
|
|
70
|
+
resize,
|
|
71
|
+
style
|
|
72
|
+
} = useResizableContent({
|
|
73
|
+
defaultWidth: defaultWidth ?? SIDE_PANEL_WIDTHS[size],
|
|
74
|
+
// Overlay panels are pinned to the right of the viewport in every writing direction.
|
|
75
|
+
edge: isOverlayVariant ? 'left' : 'inline-start',
|
|
76
|
+
forwardedRef,
|
|
77
|
+
id: props.id,
|
|
78
|
+
maxWidth,
|
|
79
|
+
minWidth,
|
|
80
|
+
onWidthChange,
|
|
81
|
+
resizable,
|
|
82
|
+
style: props.style,
|
|
83
|
+
width
|
|
84
|
+
});
|
|
85
|
+
// The provider wraps the panel element, so `asChild` still gets a single child.
|
|
86
|
+
return jsx(ResizeProvider, {
|
|
87
|
+
value: resize,
|
|
88
|
+
children: jsx(FocusScope, {
|
|
89
|
+
trapped: !isInteractiveOverlayVariant,
|
|
90
|
+
children: jsx(RadixDialog.Content, {
|
|
91
|
+
...props,
|
|
92
|
+
ref: ref,
|
|
93
|
+
asChild: asChild,
|
|
94
|
+
className: clsx(styles.content, styles.contentAnimatedSlideIn, {
|
|
95
|
+
[styles.contentAnimatedSlideOut]: isInteractiveOverlayVariant,
|
|
96
|
+
[styles.contentLarge]: size === 'large',
|
|
97
|
+
[styles.contentNormal]: size === 'medium',
|
|
98
|
+
[styles.dropShadowContent]: variant === 'dropShadowOverlay',
|
|
99
|
+
[styles.overlayContent]: isOverlayVariant,
|
|
100
|
+
[styles.contentResizable]: resizable
|
|
101
|
+
}, className),
|
|
102
|
+
onInteractOutside: handleInteractOutside,
|
|
103
|
+
style: style,
|
|
104
|
+
children: children
|
|
105
|
+
})
|
|
42
106
|
})
|
|
43
107
|
});
|
|
44
108
|
});
|
|
@@ -48,13 +112,48 @@ const SidePanelContent = /*#__PURE__*/forwardRef(({
|
|
|
48
112
|
const SidePanelPersistentContent = /*#__PURE__*/forwardRef(({
|
|
49
113
|
children,
|
|
50
114
|
className,
|
|
115
|
+
defaultWidth = SIDE_PANEL_WIDTHS.medium,
|
|
116
|
+
maxWidth,
|
|
117
|
+
minWidth,
|
|
118
|
+
onWidthChange,
|
|
119
|
+
resizable,
|
|
120
|
+
width,
|
|
51
121
|
...props
|
|
52
122
|
}, forwardedRef) => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
123
|
+
// The handle's `aria-controls` needs an id; overlay panels get one from the dialog.
|
|
124
|
+
const generatedId = useId();
|
|
125
|
+
const id = props.id ?? generatedId;
|
|
126
|
+
const {
|
|
127
|
+
ref,
|
|
128
|
+
resize,
|
|
129
|
+
style
|
|
130
|
+
} = useResizableContent({
|
|
131
|
+
defaultWidth,
|
|
132
|
+
edge: 'inline-start',
|
|
133
|
+
forwardedRef,
|
|
134
|
+
id,
|
|
135
|
+
maxWidth,
|
|
136
|
+
minWidth,
|
|
137
|
+
onWidthChange,
|
|
138
|
+
resizable,
|
|
139
|
+
style: props.style,
|
|
140
|
+
width
|
|
141
|
+
});
|
|
142
|
+
// Same attributes, in the same order, as before resizing existed when `resizable` is off.
|
|
143
|
+
return jsx(ResizeProvider, {
|
|
144
|
+
value: resize,
|
|
145
|
+
children: jsx("div", {
|
|
146
|
+
ref: ref,
|
|
147
|
+
className: clsx(styles.content, styles.contentNormal, styles.persistentContent, {
|
|
148
|
+
[styles.contentResizable]: resizable
|
|
149
|
+
}, className),
|
|
150
|
+
...props,
|
|
151
|
+
...(resizable && {
|
|
152
|
+
id,
|
|
153
|
+
style
|
|
154
|
+
}),
|
|
155
|
+
children: children
|
|
156
|
+
})
|
|
58
157
|
});
|
|
59
158
|
});
|
|
60
159
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SidePanelResizeHandleProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The handle on the edge of a `resizable` SidePanel, facing the page. Drag it, or focus it and use the arrow keys
|
|
4
|
+
* (Shift for a bigger step, Home and End for the minimum and maximum width). Double-click resets the width.
|
|
5
|
+
* Renders nothing when the SidePanel is not `resizable`.
|
|
6
|
+
*
|
|
7
|
+
* Render it as the last child of the panel: as the first tabbable element it would take the focus when an
|
|
8
|
+
* overlay panel opens.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SidePanelResizeHandle: import("react").ForwardRefExoticComponent<Omit<SidePanelResizeHandleProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { composeEventHandlers } from '../utils/composeEventHandlers.js';
|
|
5
|
+
import { useResizeContext } from './resize-context.js';
|
|
6
|
+
import styles from './side-panel.module.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The handle on the edge of a `resizable` SidePanel, facing the page. Drag it, or focus it and use the arrow keys
|
|
10
|
+
* (Shift for a bigger step, Home and End for the minimum and maximum width). Double-click resets the width.
|
|
11
|
+
* Renders nothing when the SidePanel is not `resizable`.
|
|
12
|
+
*
|
|
13
|
+
* Render it as the last child of the panel: as the first tabbable element it would take the focus when an
|
|
14
|
+
* overlay panel opens.
|
|
15
|
+
*/
|
|
16
|
+
const SidePanelResizeHandle = /*#__PURE__*/forwardRef(({
|
|
17
|
+
className,
|
|
18
|
+
onDoubleClick,
|
|
19
|
+
onKeyDown,
|
|
20
|
+
onPointerDown,
|
|
21
|
+
...rest
|
|
22
|
+
}, forwardedRef) => {
|
|
23
|
+
const resize = useResizeContext();
|
|
24
|
+
if (!resize) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return (
|
|
28
|
+
// A focusable separator is the WAI-ARIA window splitter pattern, which jsx-a11y treats as non-interactive.
|
|
29
|
+
// Enter (collapse and restore in that pattern) is left out: SidePanel closes with its own Close button.
|
|
30
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
31
|
+
jsx("div", {
|
|
32
|
+
...rest,
|
|
33
|
+
ref: forwardedRef,
|
|
34
|
+
"aria-controls": resize.contentId,
|
|
35
|
+
"aria-orientation": "vertical",
|
|
36
|
+
"aria-valuemax": resize.valueMax,
|
|
37
|
+
"aria-valuemin": resize.valueMin,
|
|
38
|
+
"aria-valuenow": resize.valueNow,
|
|
39
|
+
className: clsx(styles.resizeHandle, className),
|
|
40
|
+
"data-edge": resize.edge,
|
|
41
|
+
"data-resizing": resize.isResizing || undefined,
|
|
42
|
+
onDoubleClick: composeEventHandlers(onDoubleClick, resize.resetWidth),
|
|
43
|
+
onKeyDown: composeEventHandlers(onKeyDown, resize.handleKeyDown),
|
|
44
|
+
onPointerDown: composeEventHandlers(onPointerDown, resize.handlePointerDown),
|
|
45
|
+
role: "separator",
|
|
46
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
47
|
+
tabIndex: 0
|
|
48
|
+
})
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export { SidePanelResizeHandle };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type SidePanelProps } from './types';
|
|
2
2
|
export declare const SidePanel: ((props: SidePanelProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
3
3
|
Close: import("react").ForwardRefExoticComponent<import("./types").SidePanelCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
Content: import("react").ForwardRefExoticComponent<import("
|
|
5
|
-
size?: "medium" | "large";
|
|
6
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
Content: import("react").ForwardRefExoticComponent<import("./types").SidePanelContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
5
|
Footer: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
8
6
|
PrimaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
9
7
|
children?: string | string[];
|
|
@@ -26,6 +24,7 @@ export declare const SidePanel: ((props: SidePanelProps) => import("react/jsx-ru
|
|
|
26
24
|
};
|
|
27
25
|
Header: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelHeaderProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
28
26
|
Overlay: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelOverlayComponentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
ResizeHandle: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelResizeHandleProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
28
|
ScrollableContainer: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelScrollableContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
29
|
Trigger: import("react").ForwardRefExoticComponent<import("./types").SidePanelTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
31
30
|
};
|
|
@@ -6,6 +6,7 @@ import { SidePanelContent, SidePanelPersistentContent } from './side-panel-conte
|
|
|
6
6
|
import { SidePanelFooter } from './side-panel-footer.js';
|
|
7
7
|
import { SidePanelHeader } from './side-panel-header.js';
|
|
8
8
|
import { SidePanelOverlay } from './side-panel-overlay.js';
|
|
9
|
+
import { SidePanelResizeHandle } from './side-panel-resize-handle.js';
|
|
9
10
|
import { SidePanelScrollableContainer } from './side-panel-scrollable-container.js';
|
|
10
11
|
import { SidePanelTrigger } from './side-panel-trigger.js';
|
|
11
12
|
import { VariantProvider } from './variant-context.js';
|
|
@@ -47,6 +48,7 @@ const SidePanel = Object.assign(Root, {
|
|
|
47
48
|
Footer: SidePanelFooter,
|
|
48
49
|
Header: SidePanelHeader,
|
|
49
50
|
Overlay: SidePanelOverlay,
|
|
51
|
+
ResizeHandle: SidePanelResizeHandle,
|
|
50
52
|
ScrollableContainer: SidePanelScrollableContainer,
|
|
51
53
|
Trigger: SidePanelTrigger
|
|
52
54
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"content":"bp_side_panel_module_content--
|
|
2
|
+
var styles = {"content":"bp_side_panel_module_content--10210","header":"bp_side_panel_module_header--10210","headerShadow":"bp_side_panel_module_headerShadow--10210","scrollableContainer":"bp_side_panel_module_scrollableContainer--10210","persistentContent":"bp_side_panel_module_persistentContent--10210","contentAnimatedSlideIn":"bp_side_panel_module_contentAnimatedSlideIn--10210","contentAnimatedSlideOut":"bp_side_panel_module_contentAnimatedSlideOut--10210","contentNormal":"bp_side_panel_module_contentNormal--10210","contentLarge":"bp_side_panel_module_contentLarge--10210","contentResizable":"bp_side_panel_module_contentResizable--10210","resizeHandle":"bp_side_panel_module_resizeHandle--10210","dropShadowContent":"bp_side_panel_module_dropShadowContent--10210","close":"bp_side_panel_module_close--10210","overlayContent":"bp_side_panel_module_overlayContent--10210","overlay":"bp_side_panel_module_overlay--10210","dropShadowOverlay":"bp_side_panel_module_dropShadowOverlay--10210","footer":"bp_side_panel_module_footer--10210","footerShadow":"bp_side_panel_module_footerShadow--10210","footerButton":"bp_side_panel_module_footerButton--10210"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -13,19 +13,58 @@ export type SidePanelVariant = 'persistent' | 'overlay' | 'dropShadowOverlay' |
|
|
|
13
13
|
export type SidePanelProps = (SidePanelPersistentProps | SidePanelOverlayProps) & {
|
|
14
14
|
variant: SidePanelVariant;
|
|
15
15
|
};
|
|
16
|
-
export type SidePanelPersistentProps =
|
|
16
|
+
export type SidePanelPersistentProps = SidePanelPersistentContentProps & {
|
|
17
17
|
variant: 'persistent';
|
|
18
18
|
};
|
|
19
19
|
export type SidePanelOverlayProps = DialogProps;
|
|
20
20
|
export type SidePanelOverlayComponentProps = ComponentPropsWithRef<'div'> & Pick<DialogPortalProps, 'container'>;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Optional resizing. Off by default; with `resizable` set, render a `SidePanel.ResizeHandle` as the last child of
|
|
23
|
+
* the panel. Widths are in pixels.
|
|
24
|
+
*/
|
|
25
|
+
export interface SidePanelResizableProps {
|
|
26
|
+
/**
|
|
27
|
+
* Lets the user resize the panel with `SidePanel.ResizeHandle`.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
resizable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The width when controlled. Use with `onWidthChange`. Overlay content unmounts when the panel closes, so
|
|
33
|
+
* control the width to keep it across closing and reopening.
|
|
34
|
+
*/
|
|
35
|
+
width?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The initial width when uncontrolled, and the width a double-click on the handle resets to.
|
|
38
|
+
* @default 360, or 420 for `size="large"`
|
|
39
|
+
*/
|
|
40
|
+
defaultWidth?: number;
|
|
41
|
+
/** Called with every new width while the user resizes the panel, including each step of a drag. */
|
|
42
|
+
onWidthChange?: (width: number) => void;
|
|
43
|
+
/**
|
|
44
|
+
* The smallest width the user can resize to. The panel never renders wider than its container.
|
|
45
|
+
* @default 320
|
|
46
|
+
*/
|
|
47
|
+
minWidth?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The largest width the user can resize to. Pass a value derived from the layout to keep room for the page,
|
|
50
|
+
* for example `windowWidth - minEditorWidth`; a width above it is shown clamped and comes back when it grows.
|
|
51
|
+
* @default 640
|
|
52
|
+
*/
|
|
53
|
+
maxWidth?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface SidePanelContentProps extends DialogContentProps, SidePanelResizableProps {
|
|
22
56
|
/**
|
|
23
57
|
* The size of the side panel content.
|
|
24
58
|
* @default "medium"
|
|
25
59
|
*/
|
|
26
60
|
size?: 'medium' | 'large';
|
|
27
|
-
}
|
|
28
|
-
export
|
|
61
|
+
}
|
|
62
|
+
export interface SidePanelPersistentContentProps extends ComponentPropsWithRef<'div'>, SidePanelResizableProps {
|
|
63
|
+
}
|
|
64
|
+
export interface SidePanelResizeHandleProps extends Omit<ComponentPropsWithRef<'div'>, 'aria-label' | 'children'> {
|
|
65
|
+
/** The aria-label for the handle, for example "Resize side panel" */
|
|
66
|
+
'aria-label': string;
|
|
67
|
+
}
|
|
29
68
|
export interface SidePanelCloseProps {
|
|
30
69
|
/** The aria-label for the Close element */
|
|
31
70
|
'aria-label': string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ResizeEdge, type SidePanelResizeContextValue } from './resize-context';
|
|
2
|
+
import { type SidePanelContentProps, type SidePanelResizableProps } from './types';
|
|
3
|
+
/** Keep in sync with `--side-panel-content-width-normal` and `-large` in `side-panel.module.scss`. */
|
|
4
|
+
export declare const SIDE_PANEL_WIDTHS: Record<NonNullable<SidePanelContentProps['size']>, number>;
|
|
5
|
+
interface UseResizableWidthParams extends Omit<SidePanelResizableProps, 'resizable'> {
|
|
6
|
+
defaultWidth: number;
|
|
7
|
+
edge: ResizeEdge;
|
|
8
|
+
/** Tracks the panel element only while resizing is on, so other panels never re-render. */
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
/** The panel's id when the caller knows it; otherwise it is read from the element. */
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Width state for a side panel resized from one edge, by pointer drag or keyboard.
|
|
15
|
+
*
|
|
16
|
+
* CSS can render the panel narrower than `width` (`max-width: 100%` in a narrow container). Resizing then starts
|
|
17
|
+
* from what is on screen, widening is blocked, and `width` keeps the user's choice for when the space returns.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useResizableWidth: ({ width: widthProp, defaultWidth, edge, enabled, id, onWidthChange, minWidth, maxWidth: maxWidthProp, }: UseResizableWidthParams) => {
|
|
20
|
+
contentRef: import("react").Dispatch<import("react").SetStateAction<HTMLDivElement | null>> | undefined;
|
|
21
|
+
resize: SidePanelResizeContextValue;
|
|
22
|
+
width: number;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import { ownerWindow } from '../utils/ownerWindow.js';
|
|
3
|
+
import { useCallbackRef } from '../utils/useCallbackRef.js';
|
|
4
|
+
import { useEnhancedEffect } from '../utils/useEnhancedEffect.js';
|
|
5
|
+
|
|
6
|
+
/** Keep in sync with `--side-panel-content-width-normal` and `-large` in `side-panel.module.scss`. */
|
|
7
|
+
const SIDE_PANEL_WIDTHS = {
|
|
8
|
+
medium: 360,
|
|
9
|
+
large: 420
|
|
10
|
+
};
|
|
11
|
+
const DEFAULT_MIN_WIDTH = 320;
|
|
12
|
+
const DEFAULT_MAX_WIDTH = 640;
|
|
13
|
+
const KEYBOARD_STEP = 10;
|
|
14
|
+
const KEYBOARD_LARGE_STEP = 50;
|
|
15
|
+
const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
|
|
16
|
+
/** The CSS width of the element, like the `width` the panel sets; `undefined` when it is not laid out. */
|
|
17
|
+
const measureWidth = element => {
|
|
18
|
+
const width = element ? parseFloat(ownerWindow(element).getComputedStyle(element).width) : NaN;
|
|
19
|
+
return Number.isNaN(width) || width === 0 ? undefined : Math.round(width);
|
|
20
|
+
};
|
|
21
|
+
const isRtl = element => !!element && ownerWindow(element).getComputedStyle(element).direction === 'rtl';
|
|
22
|
+
/**
|
|
23
|
+
* Follows the pointer that pressed the handle until it is released, cancelled or loses capture, and returns a
|
|
24
|
+
* function that stops following it. Called from pointerdown itself: an effect could run after a quick click's
|
|
25
|
+
* pointerup.
|
|
26
|
+
*/
|
|
27
|
+
const followPointer = (event, onMove, onStop) => {
|
|
28
|
+
const handle = event.currentTarget;
|
|
29
|
+
const doc = handle.ownerDocument;
|
|
30
|
+
const {
|
|
31
|
+
body
|
|
32
|
+
} = doc;
|
|
33
|
+
const {
|
|
34
|
+
clientX: startX,
|
|
35
|
+
pointerId
|
|
36
|
+
} = event;
|
|
37
|
+
const {
|
|
38
|
+
cursor,
|
|
39
|
+
userSelect
|
|
40
|
+
} = body.style;
|
|
41
|
+
const handleMove = moveEvent => {
|
|
42
|
+
if (moveEvent.pointerId === pointerId) {
|
|
43
|
+
onMove(startX - moveEvent.clientX);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const stop = () => {
|
|
47
|
+
doc.removeEventListener('pointermove', handleMove);
|
|
48
|
+
doc.removeEventListener('pointerup', handleEnd);
|
|
49
|
+
doc.removeEventListener('pointercancel', handleEnd);
|
|
50
|
+
handle.removeEventListener('lostpointercapture', handleEnd);
|
|
51
|
+
body.style.cursor = cursor;
|
|
52
|
+
body.style.userSelect = userSelect;
|
|
53
|
+
onStop();
|
|
54
|
+
};
|
|
55
|
+
function handleEnd(endEvent) {
|
|
56
|
+
if (endEvent.pointerId === pointerId) {
|
|
57
|
+
stop();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
doc.addEventListener('pointermove', handleMove);
|
|
61
|
+
doc.addEventListener('pointerup', handleEnd);
|
|
62
|
+
doc.addEventListener('pointercancel', handleEnd);
|
|
63
|
+
// Capture can end without a pointerup, for example when the window loses focus.
|
|
64
|
+
handle.addEventListener('lostpointercapture', handleEnd);
|
|
65
|
+
// Keeps the resize cursor, and no text selection, while the pointer is off the handle.
|
|
66
|
+
body.style.cursor = 'col-resize';
|
|
67
|
+
body.style.userSelect = 'none';
|
|
68
|
+
// Keeps the events coming when the pointer leaves the handle, crosses an iframe or leaves the window.
|
|
69
|
+
handle.setPointerCapture?.(pointerId);
|
|
70
|
+
return stop;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Width state for a side panel resized from one edge, by pointer drag or keyboard.
|
|
74
|
+
*
|
|
75
|
+
* CSS can render the panel narrower than `width` (`max-width: 100%` in a narrow container). Resizing then starts
|
|
76
|
+
* from what is on screen, widening is blocked, and `width` keeps the user's choice for when the space returns.
|
|
77
|
+
*/
|
|
78
|
+
const useResizableWidth = ({
|
|
79
|
+
width: widthProp,
|
|
80
|
+
defaultWidth,
|
|
81
|
+
edge,
|
|
82
|
+
enabled,
|
|
83
|
+
id,
|
|
84
|
+
onWidthChange,
|
|
85
|
+
minWidth = DEFAULT_MIN_WIDTH,
|
|
86
|
+
maxWidth: maxWidthProp = DEFAULT_MAX_WIDTH
|
|
87
|
+
}) => {
|
|
88
|
+
const maxWidth = Math.max(minWidth, maxWidthProp);
|
|
89
|
+
const [uncontrolledWidth, setUncontrolledWidth] = useState(defaultWidth);
|
|
90
|
+
const width = clamp(widthProp ?? uncontrolledWidth, minWidth, maxWidth);
|
|
91
|
+
// State, not a ref: overlay content mounts when the panel opens, after this hook, and the effects below have
|
|
92
|
+
// to run for it. A ref callback that detaches and reattaches the same node in one commit changes nothing.
|
|
93
|
+
const [element, setElement] = useState(null);
|
|
94
|
+
const [measuredWidth, setMeasuredWidth] = useState();
|
|
95
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
96
|
+
const stopDragRef = useRef(null);
|
|
97
|
+
// Callers only pass a width that differs from the last one. A drag outlives the render that started it, so
|
|
98
|
+
// this reads the latest props.
|
|
99
|
+
const changeWidth = useCallbackRef(nextWidth => {
|
|
100
|
+
if (widthProp === undefined) {
|
|
101
|
+
setUncontrolledWidth(nextWidth);
|
|
102
|
+
}
|
|
103
|
+
onWidthChange?.(nextWidth);
|
|
104
|
+
});
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
if (!element) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
// The panel's own window, which differs from `window` inside an iframe.
|
|
110
|
+
const {
|
|
111
|
+
ResizeObserver
|
|
112
|
+
} = ownerWindow(element);
|
|
113
|
+
const observer = ResizeObserver && new ResizeObserver(() => setMeasuredWidth(measureWidth(element)));
|
|
114
|
+
observer?.observe(element);
|
|
115
|
+
return () => {
|
|
116
|
+
observer?.disconnect();
|
|
117
|
+
// Closed, unmounted or no longer resizable: end a drag in progress.
|
|
118
|
+
stopDragRef.current?.();
|
|
119
|
+
};
|
|
120
|
+
}, [element]);
|
|
121
|
+
// The observer reports a frame late; measuring before paint keeps `aria-valuenow` in step with a drag.
|
|
122
|
+
useEnhancedEffect(() => {
|
|
123
|
+
if (element) {
|
|
124
|
+
setMeasuredWidth(measureWidth(element));
|
|
125
|
+
}
|
|
126
|
+
}, [element, width]);
|
|
127
|
+
/** 1 when moving the pointer left widens the panel, -1 when moving it right does. */
|
|
128
|
+
const getDirection = () => edge === 'inline-start' && isRtl(element) ? -1 : 1;
|
|
129
|
+
// Read from the DOM: `measuredWidth` can lag behind fast key repeats.
|
|
130
|
+
const getRenderedWidth = () => Math.min(width, measureWidth(element) ?? width);
|
|
131
|
+
const handlePointerDown = event => {
|
|
132
|
+
if (event.button !== 0) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
event.preventDefault();
|
|
136
|
+
stopDragRef.current?.();
|
|
137
|
+
const startWidth = getRenderedWidth();
|
|
138
|
+
const direction = getDirection();
|
|
139
|
+
let lastWidth = startWidth;
|
|
140
|
+
stopDragRef.current = followPointer(event, deltaX => {
|
|
141
|
+
const nextWidth = clamp(startWidth + deltaX * direction, minWidth, maxWidth);
|
|
142
|
+
if (nextWidth !== lastWidth) {
|
|
143
|
+
lastWidth = nextWidth;
|
|
144
|
+
changeWidth(nextWidth);
|
|
145
|
+
}
|
|
146
|
+
}, () => {
|
|
147
|
+
stopDragRef.current = null;
|
|
148
|
+
setIsResizing(false);
|
|
149
|
+
});
|
|
150
|
+
setIsResizing(true);
|
|
151
|
+
};
|
|
152
|
+
const handleKeyDown = event => {
|
|
153
|
+
const currentWidth = getRenderedWidth();
|
|
154
|
+
const step = (event.shiftKey ? KEYBOARD_LARGE_STEP : KEYBOARD_STEP) * getDirection();
|
|
155
|
+
const targets = {
|
|
156
|
+
ArrowLeft: currentWidth + step,
|
|
157
|
+
ArrowRight: currentWidth - step,
|
|
158
|
+
Home: minWidth,
|
|
159
|
+
End: maxWidth
|
|
160
|
+
};
|
|
161
|
+
const target = targets[event.key];
|
|
162
|
+
if (target === undefined) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
const nextWidth = clamp(target, minWidth, maxWidth);
|
|
167
|
+
// When the container caps the panel it cannot grow: widening would only change the saved width.
|
|
168
|
+
const isCapped = currentWidth < width;
|
|
169
|
+
if (nextWidth !== currentWidth && !(isCapped && nextWidth > currentWidth)) {
|
|
170
|
+
changeWidth(nextWidth);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
const resetWidth = () => {
|
|
174
|
+
const nextWidth = clamp(defaultWidth, minWidth, maxWidth);
|
|
175
|
+
if (nextWidth !== width) {
|
|
176
|
+
changeWidth(nextWidth);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const renderedWidth = Math.min(width, measuredWidth ?? width);
|
|
180
|
+
const valueMax = renderedWidth < width ? clamp(renderedWidth, minWidth, maxWidth) : maxWidth;
|
|
181
|
+
const resize = {
|
|
182
|
+
contentId: id ?? (element?.id || undefined),
|
|
183
|
+
edge,
|
|
184
|
+
isResizing,
|
|
185
|
+
valueNow: clamp(renderedWidth, minWidth, valueMax),
|
|
186
|
+
valueMin: minWidth,
|
|
187
|
+
valueMax,
|
|
188
|
+
handleKeyDown,
|
|
189
|
+
handlePointerDown,
|
|
190
|
+
resetWidth
|
|
191
|
+
};
|
|
192
|
+
return {
|
|
193
|
+
contentRef: enabled ? setElement : undefined,
|
|
194
|
+
resize,
|
|
195
|
+
width
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export { SIDE_PANEL_WIDTHS, useResizableWidth };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.4.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.17.
|
|
57
|
+
"@box/blueprint-web-assets": "^5.17.2",
|
|
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.48",
|
|
85
85
|
"@figma/code-connect": "1.4.4",
|
|
86
86
|
"@playwright/test": "1.46.1",
|
|
87
87
|
"@types/js-yaml": "^4.0.9",
|