@box/blueprint-web 14.21.1 → 14.23.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/index.css +261 -43
- package/dist/lib-esm/primitives/popover/popover-content-container.js +22 -11
- package/dist/lib-esm/primitives/popover/popover.module.js +1 -1
- package/dist/lib-esm/split-button/SplitTriggerButton.d.ts +0 -1
- package/dist/lib-esm/split-button/SplitTriggerButton.js +5 -2
- package/dist/lib-esm/split-button/split-button.js +0 -1
- package/dist/lib-esm/split-button/styles.module.js +1 -1
- package/package.json +3 -3
package/dist/lib-esm/index.css
CHANGED
|
@@ -10536,7 +10536,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10536
10536
|
fill:currentcolor;
|
|
10537
10537
|
}
|
|
10538
10538
|
|
|
10539
|
-
.bp_popover_module_popoverContentContainer--
|
|
10539
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverMainContent--5379f,.bp_popover_module_popoverContentContainer--5379f.bp_popover_module_accessibilitySmallBreakpoint--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverScrollContainer--5379f{
|
|
10540
10540
|
margin-inline-end:var(--scroll-mask-margin-inline-end);
|
|
10541
10541
|
mask-image:var(--scroll-mask-mask-image);
|
|
10542
10542
|
mask-position:var(--scroll-mask-mask-position);
|
|
@@ -10546,7 +10546,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10546
10546
|
transition:var(--scroll-mask-transition);
|
|
10547
10547
|
}
|
|
10548
10548
|
|
|
10549
|
-
.bp_popover_module_popoverContentContainer--
|
|
10549
|
+
.bp_popover_module_popoverContentContainer--5379f[data-modern=false]{
|
|
10550
10550
|
--scroll-mask-padding-right:var(--space-4);
|
|
10551
10551
|
--scroll-mask-overflow:auto;
|
|
10552
10552
|
--scroll-mask-transition:mask-position var(--animation-duration-3), -webkit-mask-position var(--animation-duration-3);
|
|
@@ -10559,12 +10559,12 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10559
10559
|
--popover-content-text-color:var(--text-text-on-light);
|
|
10560
10560
|
--popover-main-content-inner-container-padding:var(--space-3);
|
|
10561
10561
|
--popover-scroll-container-small-breakpoint-max-height:min(
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
calc(var(--radix-popover-content-available-height) - var(--space-12))
|
|
10565
|
-
),
|
|
10562
|
+
var(
|
|
10563
|
+
--blueprint-web-popover-content-max-height,
|
|
10566
10564
|
calc(var(--radix-popover-content-available-height) - var(--space-12))
|
|
10567
|
-
)
|
|
10565
|
+
),
|
|
10566
|
+
calc(var(--radix-popover-content-available-height) - var(--space-12))
|
|
10567
|
+
);
|
|
10568
10568
|
--popover-scroll-container-small-breakpoint-padding-block:var(--space-1);
|
|
10569
10569
|
--popover-footer-padding-block-start:var(--space-4);
|
|
10570
10570
|
--popover-footer-margin-inline:calc(var(--space-4)*-1);
|
|
@@ -10572,7 +10572,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10572
10572
|
--popover-footer-border-top:var(--border-1) solid var(--border-card-border);
|
|
10573
10573
|
}
|
|
10574
10574
|
|
|
10575
|
-
.bp_popover_module_popoverContentContainer--
|
|
10575
|
+
.bp_popover_module_popoverContentContainer--5379f[data-modern=true]{
|
|
10576
10576
|
--bp-dropshadow-3:var(--dropshadow-3);
|
|
10577
10577
|
--bp-animation-duration-3:var(--animation-duration-3);
|
|
10578
10578
|
--scroll-mask-padding-right:var(--bp-space-040);
|
|
@@ -10587,12 +10587,12 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10587
10587
|
--popover-content-text-color:var(--bp-text-text-on-light);
|
|
10588
10588
|
--popover-main-content-inner-container-padding:var(--bp-space-030);
|
|
10589
10589
|
--popover-scroll-container-small-breakpoint-max-height:min(
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
calc(var(--radix-popover-content-available-height) - var(--bp-space-120))
|
|
10593
|
-
),
|
|
10590
|
+
var(
|
|
10591
|
+
--blueprint-web-popover-content-max-height,
|
|
10594
10592
|
calc(var(--radix-popover-content-available-height) - var(--bp-space-120))
|
|
10595
|
-
)
|
|
10593
|
+
),
|
|
10594
|
+
calc(var(--radix-popover-content-available-height) - var(--bp-space-120))
|
|
10595
|
+
);
|
|
10596
10596
|
--popover-scroll-container-small-breakpoint-padding-block:var(--bp-space-010);
|
|
10597
10597
|
--popover-footer-padding-block-start:var(--bp-space-040);
|
|
10598
10598
|
--popover-footer-margin-inline:calc(var(--bp-space-040)*-1);
|
|
@@ -10600,48 +10600,258 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10600
10600
|
--popover-footer-border-top:var(--bp-border-01) solid var(--bp-border-card-border);
|
|
10601
10601
|
}
|
|
10602
10602
|
|
|
10603
|
-
.bp_popover_module_popoverContentContainer--
|
|
10603
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=open]{
|
|
10604
|
+
animation-duration:var(--bp-duration-medium);
|
|
10605
|
+
animation-timing-function:var(--bp-curve-medium-on);
|
|
10606
|
+
}
|
|
10607
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=open][data-side=top]{
|
|
10608
|
+
animation-name:bp_popover_module_bpPopoverMediumTopSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10609
|
+
}
|
|
10610
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=open][data-side=bottom]{
|
|
10611
|
+
animation-name:bp_popover_module_bpPopoverMediumBottomSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10612
|
+
}
|
|
10613
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=open][data-side=left]{
|
|
10614
|
+
animation-name:bp_popover_module_bpPopoverMediumLeftSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10615
|
+
}
|
|
10616
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=open][data-side=right]{
|
|
10617
|
+
animation-name:bp_popover_module_bpPopoverMediumRightSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10618
|
+
}
|
|
10619
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=closed]{
|
|
10620
|
+
animation-duration:var(--bp-duration-short);
|
|
10621
|
+
animation-timing-function:var(--bp-curve-medium-off);
|
|
10622
|
+
}
|
|
10623
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=closed][data-side=top]{
|
|
10624
|
+
animation-name:bp_popover_module_bpPopoverMediumTopSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10625
|
+
}
|
|
10626
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=closed][data-side=bottom]{
|
|
10627
|
+
animation-name:bp_popover_module_bpPopoverMediumBottomSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10628
|
+
}
|
|
10629
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=closed][data-side=left]{
|
|
10630
|
+
animation-name:bp_popover_module_bpPopoverMediumLeftSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10631
|
+
}
|
|
10632
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true]:not([data-large=true])[data-state=closed][data-side=right]{
|
|
10633
|
+
animation-name:bp_popover_module_bpPopoverMediumRightSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10634
|
+
}
|
|
10635
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=open]{
|
|
10636
|
+
animation-duration:var(--bp-duration-long);
|
|
10637
|
+
animation-timing-function:var(--bp-curve-large-on);
|
|
10638
|
+
}
|
|
10639
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=open][data-side=top]{
|
|
10640
|
+
animation-name:bp_popover_module_bpPopoverLargeTopSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10641
|
+
}
|
|
10642
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=open][data-side=bottom]{
|
|
10643
|
+
animation-name:bp_popover_module_bpPopoverLargeBottomSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10644
|
+
}
|
|
10645
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=open][data-side=left]{
|
|
10646
|
+
animation-name:bp_popover_module_bpPopoverLargeLeftSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10647
|
+
}
|
|
10648
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=open][data-side=right]{
|
|
10649
|
+
animation-name:bp_popover_module_bpPopoverLargeRightSlideEnter--5379f, bp_popover_module_bpPopoverFadeIn--5379f;
|
|
10650
|
+
}
|
|
10651
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=closed]{
|
|
10652
|
+
animation-duration:var(--bp-duration-medium);
|
|
10653
|
+
animation-timing-function:var(--bp-curve-large-off);
|
|
10654
|
+
}
|
|
10655
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=closed][data-side=top]{
|
|
10656
|
+
animation-name:bp_popover_module_bpPopoverLargeTopSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10657
|
+
}
|
|
10658
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=closed][data-side=bottom]{
|
|
10659
|
+
animation-name:bp_popover_module_bpPopoverLargeBottomSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10660
|
+
}
|
|
10661
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=closed][data-side=left]{
|
|
10662
|
+
animation-name:bp_popover_module_bpPopoverLargeLeftSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10663
|
+
}
|
|
10664
|
+
.bp_popover_module_popoverContentContainer--5379f[data-bp-animated=true][data-large=true][data-state=closed][data-side=right]{
|
|
10665
|
+
animation-name:bp_popover_module_bpPopoverLargeRightSlideExit--5379f, bp_popover_module_bpPopoverFadeOut--5379f;
|
|
10666
|
+
}
|
|
10667
|
+
|
|
10668
|
+
.bp_popover_module_popoverContentContainer--5379f{
|
|
10604
10669
|
max-width:320px;
|
|
10605
10670
|
z-index:var(--z-index-popover);
|
|
10606
10671
|
}
|
|
10607
|
-
.bp_popover_module_popoverContentContainer--
|
|
10672
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverCard--5379f{
|
|
10608
10673
|
box-shadow:var(--popover-card-box-shadow);
|
|
10609
10674
|
margin-block:var(--popover-card-margin-block);
|
|
10610
10675
|
}
|
|
10611
|
-
.bp_popover_module_popoverContentContainer--
|
|
10676
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverMainContent--5379f{
|
|
10612
10677
|
color:var(--popover-content-text-color);
|
|
10613
10678
|
}
|
|
10614
|
-
.bp_popover_module_popoverContentContainer--
|
|
10679
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverMainContent--5379f:hover{
|
|
10615
10680
|
mask-position:left top;
|
|
10616
10681
|
}
|
|
10617
|
-
.bp_popover_module_popoverContentContainer--
|
|
10682
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverMainContent--5379f .bp_popover_module_popoverMainContentOuterContainer--5379f{
|
|
10618
10683
|
max-height:inherit;
|
|
10619
10684
|
}
|
|
10620
|
-
.bp_popover_module_popoverContentContainer--
|
|
10685
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverMainContent--5379f .bp_popover_module_popoverMainContentOuterContainer--5379f .bp_popover_module_popoverMainContentInnerContainerPadding--5379f{
|
|
10621
10686
|
padding-block-end:var(--popover-main-content-inner-container-padding);
|
|
10622
10687
|
}
|
|
10623
|
-
.bp_popover_module_popoverContentContainer--
|
|
10688
|
+
.bp_popover_module_popoverContentContainer--5379f.bp_popover_module_accessibilitySmallBreakpoint--5379f{
|
|
10624
10689
|
max-height:var(--radix-popover-content-available-height);
|
|
10625
10690
|
}
|
|
10626
|
-
.bp_popover_module_popoverContentContainer--
|
|
10691
|
+
.bp_popover_module_popoverContentContainer--5379f.bp_popover_module_accessibilitySmallBreakpoint--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverScrollContainer--5379f{
|
|
10627
10692
|
color:var(--popover-content-text-color);
|
|
10628
10693
|
max-height:var(--popover-scroll-container-small-breakpoint-max-height);
|
|
10629
10694
|
padding-block:var(--popover-scroll-container-small-breakpoint-padding-block);
|
|
10630
10695
|
}
|
|
10631
|
-
.bp_popover_module_popoverContentContainer--
|
|
10696
|
+
.bp_popover_module_popoverContentContainer--5379f.bp_popover_module_accessibilitySmallBreakpoint--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverScrollContainer--5379f:hover{
|
|
10632
10697
|
mask-position:left top;
|
|
10633
10698
|
}
|
|
10634
|
-
.bp_popover_module_popoverContentContainer--
|
|
10699
|
+
.bp_popover_module_popoverContentContainer--5379f.bp_popover_module_accessibilitySmallBreakpoint--5379f .bp_popover_module_popoverCard--5379f .bp_popover_module_popoverScrollContainer--5379f .bp_popover_module_popoverMainContent--5379f{
|
|
10635
10700
|
max-height:fit-content;
|
|
10636
10701
|
}
|
|
10637
|
-
.bp_popover_module_popoverContentContainer--
|
|
10702
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverFooter--5379f{
|
|
10638
10703
|
margin-inline:var(--popover-footer-margin-inline);
|
|
10639
10704
|
padding-block-start:var(--popover-footer-padding-block-start);
|
|
10640
10705
|
padding-inline:var(--popover-footer-padding-inline);
|
|
10641
10706
|
}
|
|
10642
|
-
.bp_popover_module_popoverContentContainer--
|
|
10707
|
+
.bp_popover_module_popoverContentContainer--5379f .bp_popover_module_popoverFooter--5379f.bp_popover_module_popoverFooterTopBorder--5379f{
|
|
10643
10708
|
border-top:var(--popover-footer-border-top);
|
|
10644
10709
|
}
|
|
10710
|
+
|
|
10711
|
+
@keyframes bp_popover_module_bpPopoverFadeIn--5379f{
|
|
10712
|
+
from{
|
|
10713
|
+
opacity:var(--bp-opacity-hidden);
|
|
10714
|
+
}
|
|
10715
|
+
to{
|
|
10716
|
+
opacity:var(--bp-opacity-visible);
|
|
10717
|
+
}
|
|
10718
|
+
}
|
|
10719
|
+
@keyframes bp_popover_module_bpPopoverFadeOut--5379f{
|
|
10720
|
+
from{
|
|
10721
|
+
opacity:var(--bp-opacity-visible);
|
|
10722
|
+
}
|
|
10723
|
+
to{
|
|
10724
|
+
opacity:var(--bp-opacity-hidden);
|
|
10725
|
+
}
|
|
10726
|
+
}
|
|
10727
|
+
@keyframes bp_popover_module_bpPopoverMediumTopSlideEnter--5379f{
|
|
10728
|
+
from{
|
|
10729
|
+
transform:translateY(var(--bp-space-020));
|
|
10730
|
+
}
|
|
10731
|
+
to{
|
|
10732
|
+
transform:translateY(0);
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10735
|
+
@keyframes bp_popover_module_bpPopoverMediumTopSlideExit--5379f{
|
|
10736
|
+
from{
|
|
10737
|
+
transform:translateY(0);
|
|
10738
|
+
}
|
|
10739
|
+
to{
|
|
10740
|
+
transform:translateY(var(--bp-space-020));
|
|
10741
|
+
}
|
|
10742
|
+
}
|
|
10743
|
+
@keyframes bp_popover_module_bpPopoverMediumBottomSlideEnter--5379f{
|
|
10744
|
+
from{
|
|
10745
|
+
transform:translateY(calc(var(--bp-space-020)*-1));
|
|
10746
|
+
}
|
|
10747
|
+
to{
|
|
10748
|
+
transform:translateY(0);
|
|
10749
|
+
}
|
|
10750
|
+
}
|
|
10751
|
+
@keyframes bp_popover_module_bpPopoverMediumBottomSlideExit--5379f{
|
|
10752
|
+
from{
|
|
10753
|
+
transform:translateY(0);
|
|
10754
|
+
}
|
|
10755
|
+
to{
|
|
10756
|
+
transform:translateY(calc(var(--bp-space-020)*-1));
|
|
10757
|
+
}
|
|
10758
|
+
}
|
|
10759
|
+
@keyframes bp_popover_module_bpPopoverMediumLeftSlideEnter--5379f{
|
|
10760
|
+
from{
|
|
10761
|
+
transform:translateX(calc(var(--bp-space-020)*-1));
|
|
10762
|
+
}
|
|
10763
|
+
to{
|
|
10764
|
+
transform:translateX(0);
|
|
10765
|
+
}
|
|
10766
|
+
}
|
|
10767
|
+
@keyframes bp_popover_module_bpPopoverMediumLeftSlideExit--5379f{
|
|
10768
|
+
from{
|
|
10769
|
+
transform:translateX(0);
|
|
10770
|
+
}
|
|
10771
|
+
to{
|
|
10772
|
+
transform:translateX(calc(var(--bp-space-020)*-1));
|
|
10773
|
+
}
|
|
10774
|
+
}
|
|
10775
|
+
@keyframes bp_popover_module_bpPopoverMediumRightSlideEnter--5379f{
|
|
10776
|
+
from{
|
|
10777
|
+
transform:translateX(var(--bp-space-020));
|
|
10778
|
+
}
|
|
10779
|
+
to{
|
|
10780
|
+
transform:translateX(0);
|
|
10781
|
+
}
|
|
10782
|
+
}
|
|
10783
|
+
@keyframes bp_popover_module_bpPopoverMediumRightSlideExit--5379f{
|
|
10784
|
+
from{
|
|
10785
|
+
transform:translateX(0);
|
|
10786
|
+
}
|
|
10787
|
+
to{
|
|
10788
|
+
transform:translateX(var(--bp-space-020));
|
|
10789
|
+
}
|
|
10790
|
+
}
|
|
10791
|
+
@keyframes bp_popover_module_bpPopoverLargeTopSlideEnter--5379f{
|
|
10792
|
+
from{
|
|
10793
|
+
transform:translateY(var(--bp-space-040)) var(--bp-scale-small);
|
|
10794
|
+
}
|
|
10795
|
+
to{
|
|
10796
|
+
transform:translateY(0) var(--bp-scale-default);
|
|
10797
|
+
}
|
|
10798
|
+
}
|
|
10799
|
+
@keyframes bp_popover_module_bpPopoverLargeTopSlideExit--5379f{
|
|
10800
|
+
from{
|
|
10801
|
+
transform:translateY(0) var(--bp-scale-default);
|
|
10802
|
+
}
|
|
10803
|
+
to{
|
|
10804
|
+
transform:translateY(var(--bp-space-040)) var(--bp-scale-small);
|
|
10805
|
+
}
|
|
10806
|
+
}
|
|
10807
|
+
@keyframes bp_popover_module_bpPopoverLargeBottomSlideEnter--5379f{
|
|
10808
|
+
from{
|
|
10809
|
+
transform:translateY(calc(var(--bp-space-040)*-1)) var(--bp-scale-small);
|
|
10810
|
+
}
|
|
10811
|
+
to{
|
|
10812
|
+
transform:translateY(0) var(--bp-scale-default);
|
|
10813
|
+
}
|
|
10814
|
+
}
|
|
10815
|
+
@keyframes bp_popover_module_bpPopoverLargeBottomSlideExit--5379f{
|
|
10816
|
+
from{
|
|
10817
|
+
transform:translateY(0) var(--bp-scale-default);
|
|
10818
|
+
}
|
|
10819
|
+
to{
|
|
10820
|
+
transform:translateY(calc(var(--bp-space-040)*-1)) var(--bp-scale-small);
|
|
10821
|
+
}
|
|
10822
|
+
}
|
|
10823
|
+
@keyframes bp_popover_module_bpPopoverLargeLeftSlideEnter--5379f{
|
|
10824
|
+
from{
|
|
10825
|
+
transform:translateX(calc(var(--bp-space-040)*-1)) var(--bp-scale-small);
|
|
10826
|
+
}
|
|
10827
|
+
to{
|
|
10828
|
+
transform:translateX(0) var(--bp-scale-default);
|
|
10829
|
+
}
|
|
10830
|
+
}
|
|
10831
|
+
@keyframes bp_popover_module_bpPopoverLargeLeftSlideExit--5379f{
|
|
10832
|
+
from{
|
|
10833
|
+
transform:translateX(0) var(--bp-scale-default);
|
|
10834
|
+
}
|
|
10835
|
+
to{
|
|
10836
|
+
transform:translateX(calc(var(--bp-space-040)*-1)) var(--bp-scale-small);
|
|
10837
|
+
}
|
|
10838
|
+
}
|
|
10839
|
+
@keyframes bp_popover_module_bpPopoverLargeRightSlideEnter--5379f{
|
|
10840
|
+
from{
|
|
10841
|
+
transform:translateX(var(--bp-space-040)) var(--bp-scale-small);
|
|
10842
|
+
}
|
|
10843
|
+
to{
|
|
10844
|
+
transform:translateX(0) var(--bp-scale-default);
|
|
10845
|
+
}
|
|
10846
|
+
}
|
|
10847
|
+
@keyframes bp_popover_module_bpPopoverLargeRightSlideExit--5379f{
|
|
10848
|
+
from{
|
|
10849
|
+
transform:translateX(0) var(--bp-scale-default);
|
|
10850
|
+
}
|
|
10851
|
+
to{
|
|
10852
|
+
transform:translateX(var(--bp-space-040)) var(--bp-scale-small);
|
|
10853
|
+
}
|
|
10854
|
+
}
|
|
10645
10855
|
.bp_select_menu_grid_module_grid--6e766{
|
|
10646
10856
|
display:flex;
|
|
10647
10857
|
flex-direction:column;
|
|
@@ -12106,7 +12316,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12106
12316
|
.bp_trigger_button_module_triggerButton--b9e51.bp_trigger_button_module_large--b9e51.bp_trigger_button_module_startIcon--b9e51{
|
|
12107
12317
|
padding-left:.625rem;
|
|
12108
12318
|
}
|
|
12109
|
-
.bp_styles_module_splitButton--
|
|
12319
|
+
.bp_styles_module_splitButton--a3588[data-modern=false]{
|
|
12110
12320
|
--split-button-left-width:100%;
|
|
12111
12321
|
--split-button-left-gap-margin-inline-end:calc(var(--space-05)/2);
|
|
12112
12322
|
--split-button-left-skip-right-border-border-inline-end-color:#0000;
|
|
@@ -12124,7 +12334,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12124
12334
|
--split-button-right-element-secondary-backdrop-filter:none;
|
|
12125
12335
|
}
|
|
12126
12336
|
|
|
12127
|
-
.bp_styles_module_splitButton--
|
|
12337
|
+
.bp_styles_module_splitButton--a3588[data-modern=true]{
|
|
12128
12338
|
--split-button-left-width:100%;
|
|
12129
12339
|
--split-button-left-gap-margin-inline-end:calc(var(--bp-space-005)/2);
|
|
12130
12340
|
--split-button-left-skip-right-border-border-inline-end-color:#0000;
|
|
@@ -12140,67 +12350,75 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
12140
12350
|
--split-button-right-element-secondary-backdrop-filter:blur(16px);
|
|
12141
12351
|
}
|
|
12142
12352
|
|
|
12143
|
-
.bp_styles_module_dropdown--
|
|
12353
|
+
.bp_styles_module_dropdown--a3588[data-modern=false],.bp_styles_module_dropdown--a3588[data-modern=true]{
|
|
12144
12354
|
--split-button-dropdown-min-width:160px;
|
|
12145
12355
|
}
|
|
12146
12356
|
|
|
12147
|
-
.bp_styles_module_splitButton--
|
|
12357
|
+
.bp_styles_module_splitButton--a3588{
|
|
12148
12358
|
display:inline-flex;
|
|
12149
12359
|
position:relative;
|
|
12150
12360
|
}
|
|
12151
|
-
.bp_styles_module_splitButton--
|
|
12361
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonLeft--a3588{
|
|
12152
12362
|
border-bottom-right-radius:0;
|
|
12153
12363
|
border-top-right-radius:0;
|
|
12154
12364
|
padding:var(--split-button-left-element-padding);
|
|
12155
12365
|
width:var(--split-button-left-width);
|
|
12156
12366
|
}
|
|
12157
|
-
.bp_styles_module_splitButton--
|
|
12367
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonLeft--a3588.bp_styles_module_gap--a3588{
|
|
12158
12368
|
margin-inline-end:var(--split-button-left-gap-margin-inline-end);
|
|
12159
12369
|
}
|
|
12160
|
-
.bp_styles_module_splitButton--
|
|
12370
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonLeft--a3588:focus-visible{
|
|
12161
12371
|
z-index:1;
|
|
12162
12372
|
}
|
|
12163
|
-
.bp_styles_module_splitButton--
|
|
12373
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonLeft--a3588.bp_styles_module_skipRightBorder--a3588{
|
|
12164
12374
|
border-inline-end-color:var(--split-button-left-skip-right-border-border-inline-end-color) !important;
|
|
12165
12375
|
}
|
|
12166
|
-
.bp_styles_module_splitButton--
|
|
12376
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonLeft--a3588.bp_styles_module_skipRightBorder--a3588:focus-visible{
|
|
12167
12377
|
border-inline-end-color:var(--split-button-left-skip-right-border-focus-visible-border-inline-end-color) !important;
|
|
12168
12378
|
}
|
|
12169
|
-
.bp_styles_module_splitButton--
|
|
12379
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_loadingButton--a3588{
|
|
12170
12380
|
width:100%;
|
|
12171
12381
|
}
|
|
12172
|
-
.bp_styles_module_splitButton--
|
|
12382
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588{
|
|
12173
12383
|
border-end-start-radius:0;
|
|
12174
12384
|
border-start-start-radius:0;
|
|
12175
12385
|
padding:var(--split-button-right-element-padding) !important;
|
|
12176
12386
|
}
|
|
12177
|
-
.bp_styles_module_splitButton--
|
|
12387
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588 svg{
|
|
12178
12388
|
height:var(--split-button-right-svg-height);
|
|
12179
12389
|
width:var(--split-button-right-svg-width);
|
|
12180
12390
|
}
|
|
12181
|
-
.bp_styles_module_splitButton--
|
|
12391
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588:focus-visible{
|
|
12182
12392
|
z-index:1;
|
|
12183
12393
|
}
|
|
12184
|
-
.bp_styles_module_splitButton--
|
|
12394
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588.bp_styles_module_secondary--a3588{
|
|
12185
12395
|
backdrop-filter:var(--split-button-right-element-secondary-backdrop-filter);
|
|
12186
12396
|
background:var(--split-button-right-element-secondary-background);
|
|
12187
12397
|
border-color:var(--split-button-right-element-border-color);
|
|
12188
12398
|
}
|
|
12189
|
-
.bp_styles_module_splitButton--
|
|
12399
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588.bp_styles_module_secondary--a3588:focus-visible,.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588.bp_styles_module_secondary--a3588:hover{
|
|
12190
12400
|
background:var(--split-button-right-element-secondary-focus-or-hover-background);
|
|
12191
12401
|
}
|
|
12192
|
-
.bp_styles_module_splitButton--
|
|
12402
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588.bp_styles_module_secondary--a3588:active{
|
|
12193
12403
|
background:var(--split-button-right-element-secondary-active-background);
|
|
12194
12404
|
}
|
|
12405
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588[data-bp-animated=true] svg{
|
|
12406
|
+
transition-duration:var(--bp-duration-short);
|
|
12407
|
+
transition-property:transform;
|
|
12408
|
+
transition-timing-function:var(--bp-curve-small-on);
|
|
12409
|
+
}
|
|
12410
|
+
.bp_styles_module_splitButton--a3588 .bp_styles_module_splitButtonRight--a3588[data-bp-animated=true]:not(:disabled):hover svg{
|
|
12411
|
+
transform:translateY(2px);
|
|
12412
|
+
}
|
|
12195
12413
|
|
|
12196
|
-
.bp_styles_module_invisible--
|
|
12414
|
+
.bp_styles_module_invisible--a3588{
|
|
12197
12415
|
left:0;
|
|
12198
12416
|
position:absolute;
|
|
12199
12417
|
top:0;
|
|
12200
12418
|
visibility:hidden;
|
|
12201
12419
|
}
|
|
12202
12420
|
|
|
12203
|
-
.bp_styles_module_dropdown--
|
|
12421
|
+
.bp_styles_module_dropdown--a3588{
|
|
12204
12422
|
min-width:var(--split-button-dropdown-min-width);
|
|
12205
12423
|
}
|
|
12206
12424
|
.bp_switch_module_option--e6150[data-modern=false]{
|
|
@@ -3,15 +3,20 @@ import { Space4 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
|
3
3
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef, useContext, useState, useMemo, useCallback } from 'react';
|
|
6
|
+
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
6
7
|
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
7
8
|
import { Card } from '../../card/card.js';
|
|
8
9
|
import { useBreakpoint, Breakpoint } from '../../utils/useBreakpoint.js';
|
|
10
|
+
import { useContentSizeObserver } from '../../utils/useContentSizeObserver.js';
|
|
11
|
+
import { useForkRef } from '../../utils/useForkRef.js';
|
|
9
12
|
import { focusRadioGroupFirstIfExists } from './popover-focus-utils.js';
|
|
10
13
|
import styles from './popover.module.js';
|
|
11
14
|
import { PopoverModalityContext } from './utils/popover-modality-context.js';
|
|
12
15
|
import { PopoverOverflowContext } from './utils/popover-overflow-context.js';
|
|
13
16
|
|
|
14
17
|
const DEFAULT_COLLISION_PADDING = parseInt(Space4, 10);
|
|
18
|
+
// defined by the figma design specs
|
|
19
|
+
const LARGE_CONTENT_ANIMATION_THRESHOLD = 360;
|
|
15
20
|
/**
|
|
16
21
|
* Based on Radix-UI Popover Content
|
|
17
22
|
* @see https://www.radix-ui.com/primitives/docs/components/popover#content
|
|
@@ -33,6 +38,11 @@ const PopoverContentContainer = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
33
38
|
const {
|
|
34
39
|
enableModernizedComponents
|
|
35
40
|
} = useBlueprintModernization();
|
|
41
|
+
const {
|
|
42
|
+
componentsWithAnimationEnabled
|
|
43
|
+
} = useBlueprintConfiguration();
|
|
44
|
+
const isAnimationEnabled = componentsWithAnimationEnabled.includes('Popover');
|
|
45
|
+
const sizeObserverRef = useContentSizeObserver(LARGE_CONTENT_ANIMATION_THRESHOLD, LARGE_CONTENT_ANIMATION_THRESHOLD);
|
|
36
46
|
const accessibilitySmallBreakpoint = smallBreakpoint && isInteractionDisabled;
|
|
37
47
|
const [isContentOverflowing, setIsContentOverflowing] = useState(false);
|
|
38
48
|
const providerValue = useMemo(() => ({
|
|
@@ -51,17 +61,18 @@ const PopoverContentContainer = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
51
61
|
// TODO(DSYS-440): Unify all Portals (Tooltip, Select, Popover, etc...), Expose a Provider which would tell where to mount (body? other elem?)
|
|
52
62
|
jsx(RadixPopover.Portal, {
|
|
53
63
|
container: container,
|
|
54
|
-
children: jsx(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
children: jsx(RadixPopover.Content, {
|
|
65
|
+
...rest,
|
|
66
|
+
ref: useForkRef(forwardedRef, sizeObserverRef),
|
|
67
|
+
className: clsx(styles.popoverContentContainer, {
|
|
68
|
+
[styles.accessibilitySmallBreakpoint]: accessibilitySmallBreakpoint
|
|
69
|
+
}, className),
|
|
70
|
+
collisionPadding: collisionPadding,
|
|
71
|
+
"data-modern": enableModernizedComponents ? 'true' : 'false',
|
|
72
|
+
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
73
|
+
onOpenAutoFocus: handleOpenAutoFocus,
|
|
74
|
+
children: jsx(PopoverOverflowContext.Provider, {
|
|
75
|
+
value: providerValue,
|
|
65
76
|
children: jsx(Card, {
|
|
66
77
|
className: styles.popoverCard,
|
|
67
78
|
children: jsx("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"popoverContentContainer":"bp_popover_module_popoverContentContainer--
|
|
2
|
+
var styles = {"popoverContentContainer":"bp_popover_module_popoverContentContainer--5379f","accessibilitySmallBreakpoint":"bp_popover_module_accessibilitySmallBreakpoint--5379f","popoverCard":"bp_popover_module_popoverCard--5379f","popoverScrollContainer":"bp_popover_module_popoverScrollContainer--5379f","popoverMainContent":"bp_popover_module_popoverMainContent--5379f","popoverMainContentOuterContainer":"bp_popover_module_popoverMainContentOuterContainer--5379f","popoverMainContentInnerContainerPadding":"bp_popover_module_popoverMainContentInnerContainerPadding--5379f","popoverFooter":"bp_popover_module_popoverFooter--5379f","popoverFooterTopBorder":"bp_popover_module_popoverFooterTopBorder--5379f"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import '../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
5
|
+
import { useBlueprintConfiguration } from '../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
4
6
|
import { TriggerButton } from '../trigger-button/trigger-button.js';
|
|
5
7
|
import styles from './styles.module.js';
|
|
6
8
|
|
|
@@ -8,16 +10,16 @@ const SplitTriggerButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8
10
|
const {
|
|
9
11
|
isInvisible,
|
|
10
12
|
ariaLabel: dropdownTriggerAriaLabel,
|
|
11
|
-
isOpened,
|
|
12
13
|
disabled,
|
|
13
14
|
size,
|
|
14
15
|
variant,
|
|
15
16
|
...rest
|
|
16
17
|
} = props;
|
|
18
|
+
const isAnimationEnabled = useBlueprintConfiguration().componentsWithAnimationEnabled.includes('SplitButton');
|
|
17
19
|
return jsx(TriggerButton, {
|
|
18
20
|
ref: ref,
|
|
19
21
|
"aria-label": dropdownTriggerAriaLabel,
|
|
20
|
-
caretDirection:
|
|
22
|
+
caretDirection: "down",
|
|
21
23
|
className: clsx(styles.splitButtonRight, styles[`${variant}`], {
|
|
22
24
|
[styles.invisible]: isInvisible,
|
|
23
25
|
[styles.gap]: variant === 'primary'
|
|
@@ -25,6 +27,7 @@ const SplitTriggerButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25
27
|
disabled: disabled,
|
|
26
28
|
size: size,
|
|
27
29
|
variant: variant,
|
|
30
|
+
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
28
31
|
...rest
|
|
29
32
|
});
|
|
30
33
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"splitButton":"bp_styles_module_splitButton--
|
|
2
|
+
var styles = {"splitButton":"bp_styles_module_splitButton--a3588","dropdown":"bp_styles_module_dropdown--a3588","splitButtonLeft":"bp_styles_module_splitButtonLeft--a3588","gap":"bp_styles_module_gap--a3588","skipRightBorder":"bp_styles_module_skipRightBorder--a3588","loadingButton":"bp_styles_module_loadingButton--a3588","splitButtonRight":"bp_styles_module_splitButtonRight--a3588","secondary":"bp_styles_module_secondary--a3588","invisible":"bp_styles_module_invisible--a3588"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.23.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ariakit/react": "0.4.21",
|
|
49
49
|
"@ariakit/react-core": "0.4.21",
|
|
50
|
-
"@box/blueprint-web-assets": "^4.115.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.115.10",
|
|
51
51
|
"@internationalized/date": "^3.12.0",
|
|
52
52
|
"@radix-ui/react-accordion": "1.1.2",
|
|
53
53
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type-fest": "^3.2.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@box/storybook-utils": "^0.18.
|
|
80
|
+
"@box/storybook-utils": "^0.18.10",
|
|
81
81
|
"@figma/code-connect": "1.4.4",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|