@box/blueprint-web 7.27.1 → 7.29.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.
@@ -4,27 +4,27 @@ export declare const Avatar: import("react").ForwardRefExoticComponent<(Omit<Omi
4
4
  } & {
5
5
  anonymous?: boolean | undefined;
6
6
  children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
7
- size?: "small" | "medium" | "large" | "xlarge" | undefined;
7
+ size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
8
8
  text?: string | undefined;
9
9
  } & Required<Pick<import("./types").Image, keyof import("./types").Image>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "color">> & Partial<Record<"colorIndex", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
10
10
  ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
11
11
  } & {
12
12
  anonymous?: boolean | undefined;
13
13
  children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
14
- size?: "small" | "medium" | "large" | "xlarge" | undefined;
14
+ size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
15
15
  text?: string | undefined;
16
16
  } & Required<Pick<import("./types").Image, keyof import("./types").Image>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "colorIndex">> & Partial<Record<"color", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
17
17
  ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
18
18
  } & {
19
19
  anonymous?: boolean | undefined;
20
20
  children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
21
- size?: "small" | "medium" | "large" | "xlarge" | undefined;
21
+ size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
22
22
  text?: string | undefined;
23
23
  } & Partial<Record<keyof import("./types").Image, never>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "color">> & Partial<Record<"colorIndex", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
24
24
  ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
25
25
  } & {
26
26
  anonymous?: boolean | undefined;
27
27
  children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
28
- size?: "small" | "medium" | "large" | "xlarge" | undefined;
28
+ size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
29
29
  text?: string | undefined;
30
30
  } & Partial<Record<keyof import("./types").Image, never>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "colorIndex">> & Partial<Record<"color", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref">) & import("react").RefAttributes<HTMLImageElement>>;
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"avatar":"bp_avatar_module_avatar--26d6a","badge":"bp_avatar_module_badge--26d6a","text":"bp_avatar_module_text--26d6a","small":"bp_avatar_module_small--26d6a","length-1":"bp_avatar_module_length-1--26d6a","length-2":"bp_avatar_module_length-2--26d6a","medium":"bp_avatar_module_medium--26d6a","large":"bp_avatar_module_large--26d6a","length-3":"bp_avatar_module_length-3--26d6a","length-4":"bp_avatar_module_length-4--26d6a","xlarge":"bp_avatar_module_xlarge--26d6a","image":"bp_avatar_module_image--26d6a","loading":"bp_avatar_module_loading--26d6a","anonymousAvatar":"bp_avatar_module_anonymousAvatar--26d6a"};
2
+ var styles = {"avatar":"bp_avatar_module_avatar--53a65","badge":"bp_avatar_module_badge--53a65","text":"bp_avatar_module_text--53a65","small":"bp_avatar_module_small--53a65","length-1":"bp_avatar_module_length-1--53a65","length-2":"bp_avatar_module_length-2--53a65","medium":"bp_avatar_module_medium--53a65","large":"bp_avatar_module_large--53a65","length-3":"bp_avatar_module_length-3--53a65","length-4":"bp_avatar_module_length-4--53a65","xlarge":"bp_avatar_module_xlarge--53a65","xxlarge":"bp_avatar_module_xxlarge--53a65","image":"bp_avatar_module_image--53a65","loading":"bp_avatar_module_loading--53a65","anonymousAvatar":"bp_avatar_module_anonymousAvatar--53a65"};
3
3
 
4
4
  export { styles as default };
@@ -1,6 +1,6 @@
1
- import { type Color, type AvatarSize } from './types';
1
+ import { type AvatarSize, type Color } from './types';
2
2
  export declare const anonymousAvatarIconSizes: Record<AvatarSize, string>;
3
- export declare const AvatarSizes: readonly ["small", "medium", "large", "xlarge"];
3
+ export declare const AvatarSizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
4
4
  export declare const badgeSizes: Record<AvatarSize, string>;
5
5
  export declare const colorsMap: Record<string, Color>;
6
6
  export declare const colors: string[];
@@ -1,16 +1,18 @@
1
- import { BoxBlue50, DarkBlue50, Yellow50, GreenLight50, Yellorange50, LightBlue50, WatermelonRed50, PurpleRain50, Orange50, Grimace50, Size3, Size4, Size5, Size7, Size2 } from '@box/blueprint-web-assets/tokens/tokens';
1
+ import { BoxBlue50, DarkBlue50, Yellow50, GreenLight50, Yellorange50, LightBlue50, WatermelonRed50, PurpleRain50, Orange50, Grimace50, Size3, Size4, Size5, Size7, Size9, Size2, Size6 } from '@box/blueprint-web-assets/tokens/tokens';
2
2
 
3
3
  const anonymousAvatarIconSizes = {
4
4
  small: Size3,
5
5
  medium: Size4,
6
6
  large: Size5,
7
- xlarge: Size7
7
+ xlarge: Size7,
8
+ xxlarge: Size9
8
9
  };
9
10
  const badgeSizes = {
10
11
  small: Size2,
11
12
  medium: Size3,
12
13
  large: Size3,
13
- xlarge: Size4
14
+ xlarge: Size4,
15
+ xxlarge: Size6
14
16
  };
15
17
  const colorsMap = {
16
18
  BoxBlue50,
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"badgeContainer":"bp_base_badge_module_badgeContainer--74d5f","badge":"bp_base_badge_module_badge--74d5f","smallSizeBadge":"bp_base_badge_module_smallSizeBadge--74d5f","mediumSizeBadge":"bp_base_badge_module_mediumSizeBadge--74d5f","largeSizeBadge":"bp_base_badge_module_largeSizeBadge--74d5f","xlargeSizeBadge":"bp_base_badge_module_xlargeSizeBadge--74d5f","iconBadge":"bp_base_badge_module_iconBadge--74d5f","statusBadge":"bp_base_badge_module_statusBadge--74d5f","numericBadge":"bp_base_badge_module_numericBadge--74d5f","numericBadgeSingleDigit":"bp_base_badge_module_numericBadgeSingleDigit--74d5f","numericBadgeMoreDigits":"bp_base_badge_module_numericBadgeMoreDigits--74d5f"};
2
+ var styles = {"badgeContainer":"bp_base_badge_module_badgeContainer--bad0b","badge":"bp_base_badge_module_badge--bad0b","smallSizeBadge":"bp_base_badge_module_smallSizeBadge--bad0b","mediumSizeBadge":"bp_base_badge_module_mediumSizeBadge--bad0b","largeSizeBadge":"bp_base_badge_module_largeSizeBadge--bad0b","xlargeSizeBadge":"bp_base_badge_module_xlargeSizeBadge--bad0b","xxlargeSizeBadge":"bp_base_badge_module_xxlargeSizeBadge--bad0b","iconBadge":"bp_base_badge_module_iconBadge--bad0b","statusBadge":"bp_base_badge_module_statusBadge--bad0b","numericBadge":"bp_base_badge_module_numericBadge--bad0b","numericBadgeSingleDigit":"bp_base_badge_module_numericBadgeSingleDigit--bad0b","numericBadgeMoreDigits":"bp_base_badge_module_numericBadgeMoreDigits--bad0b"};
3
3
 
4
4
  export { styles as default };
@@ -145,7 +145,8 @@ const badgeSizeToIconSize = {
145
145
  small: '6px',
146
146
  medium: '9px',
147
147
  large: '10px',
148
- xlarge: '14px'
148
+ xlarge: '14px',
149
+ xxlarge: '18px'
149
150
  };
150
151
  const IconBadge = props => {
151
152
  const {
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- export declare const BadgeSizes: readonly ["small", "medium", "large", "xlarge"];
2
+ export declare const BadgeSizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
3
3
  export interface BadgeProps {
4
4
  /** Accepts exactly a single child component. Badge will be displayed over the child. */
5
5
  children: React.ReactElement;
package/lib-esm/index.css CHANGED
@@ -662,7 +662,7 @@
662
662
  text-transform:none;
663
663
  }
664
664
 
665
- .bp_avatar_module_avatar--26d6a{
665
+ .bp_avatar_module_avatar--53a65{
666
666
  all:unset;
667
667
  align-items:center;
668
668
  background-color:var(--gray-10);
@@ -678,7 +678,7 @@
678
678
  text-decoration:none;
679
679
  text-transform:none;
680
680
  }
681
- .bp_avatar_module_avatar--26d6a .bp_avatar_module_badge--26d6a{
681
+ .bp_avatar_module_avatar--53a65 .bp_avatar_module_badge--53a65{
682
682
  background-color:var(--gray-white);
683
683
  border:var(--border-2) solid var(--gray-white);
684
684
  border-radius:50%;
@@ -686,7 +686,7 @@
686
686
  display:flex;
687
687
  position:absolute;
688
688
  }
689
- .bp_avatar_module_avatar--26d6a .bp_avatar_module_text--26d6a{
689
+ .bp_avatar_module_avatar--53a65 .bp_avatar_module_text--53a65{
690
690
  align-items:center;
691
691
  border-radius:50%;
692
692
  display:flex;
@@ -694,14 +694,14 @@
694
694
  justify-content:center;
695
695
  width:100%;
696
696
  }
697
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_small--26d6a{
697
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_small--53a65{
698
698
  height:var(--size-6);
699
699
  width:var(--size-6);
700
700
  }
701
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_small--26d6a .bp_avatar_module_text--26d6a{
701
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_small--53a65 .bp_avatar_module_text--53a65{
702
702
  font-size:.5rem;
703
703
  }
704
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_small--26d6a .bp_avatar_module_length-1--26d6a.bp_avatar_module_text--26d6a,.bp_avatar_module_avatar--26d6a.bp_avatar_module_small--26d6a .bp_avatar_module_length-2--26d6a.bp_avatar_module_text--26d6a{
704
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_small--53a65 .bp_avatar_module_length-1--53a65.bp_avatar_module_text--53a65,.bp_avatar_module_avatar--53a65.bp_avatar_module_small--53a65 .bp_avatar_module_length-2--53a65.bp_avatar_module_text--53a65{
705
705
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
706
706
  font-size:.625rem;
707
707
  font-weight:700;
@@ -710,14 +710,14 @@
710
710
  text-decoration:none;
711
711
  text-transform:none;
712
712
  }
713
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_small--26d6a .bp_avatar_module_badge--26d6a{
713
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_small--53a65 .bp_avatar_module_badge--53a65{
714
714
  right:-.25rem;
715
715
  }
716
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_medium--26d6a{
716
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_medium--53a65{
717
717
  height:var(--size-7);
718
718
  width:var(--size-7);
719
719
  }
720
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_medium--26d6a .bp_avatar_module_text--26d6a{
720
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_medium--53a65 .bp_avatar_module_text--53a65{
721
721
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
722
722
  font-size:.625rem;
723
723
  font-weight:700;
@@ -726,20 +726,20 @@
726
726
  text-decoration:none;
727
727
  text-transform:none;
728
728
  }
729
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_medium--26d6a .bp_avatar_module_length-1--26d6a.bp_avatar_module_text--26d6a,.bp_avatar_module_avatar--26d6a.bp_avatar_module_medium--26d6a .bp_avatar_module_length-2--26d6a.bp_avatar_module_text--26d6a{
729
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_medium--53a65 .bp_avatar_module_length-1--53a65.bp_avatar_module_text--53a65,.bp_avatar_module_avatar--53a65.bp_avatar_module_medium--53a65 .bp_avatar_module_length-2--53a65.bp_avatar_module_text--53a65{
730
730
  font-size:.8125rem;
731
731
  }
732
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_medium--26d6a .bp_avatar_module_badge--26d6a{
732
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_medium--53a65 .bp_avatar_module_badge--53a65{
733
733
  right:-.375rem;
734
734
  }
735
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a{
735
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65{
736
736
  height:var(--size-8);
737
737
  width:var(--size-8);
738
738
  }
739
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a .bp_avatar_module_text--26d6a{
739
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65 .bp_avatar_module_text--53a65{
740
740
  font-size:.5rem;
741
741
  }
742
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a .bp_avatar_module_length-1--26d6a.bp_avatar_module_text--26d6a,.bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a .bp_avatar_module_length-2--26d6a.bp_avatar_module_text--26d6a{
742
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65 .bp_avatar_module_length-1--53a65.bp_avatar_module_text--53a65,.bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65 .bp_avatar_module_length-2--53a65.bp_avatar_module_text--53a65{
743
743
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
744
744
  font-size:.875rem;
745
745
  font-weight:700;
@@ -748,10 +748,10 @@
748
748
  text-decoration:none;
749
749
  text-transform:none;
750
750
  }
751
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a .bp_avatar_module_length-3--26d6a.bp_avatar_module_text--26d6a{
751
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65 .bp_avatar_module_length-3--53a65.bp_avatar_module_text--53a65{
752
752
  font-size:.6875rem;
753
753
  }
754
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a .bp_avatar_module_length-4--26d6a.bp_avatar_module_text--26d6a{
754
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65 .bp_avatar_module_length-4--53a65.bp_avatar_module_text--53a65{
755
755
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
756
756
  font-size:.625rem;
757
757
  font-weight:700;
@@ -760,17 +760,17 @@
760
760
  text-decoration:none;
761
761
  text-transform:none;
762
762
  }
763
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_large--26d6a .bp_avatar_module_badge--26d6a{
763
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_large--53a65 .bp_avatar_module_badge--53a65{
764
764
  right:-.25rem;
765
765
  }
766
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_xlarge--26d6a{
766
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xlarge--53a65{
767
767
  height:var(--size-11);
768
768
  width:var(--size-11);
769
769
  }
770
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_xlarge--26d6a .bp_avatar_module_text--26d6a{
770
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xlarge--53a65 .bp_avatar_module_text--53a65{
771
771
  font-size:1rem;
772
772
  }
773
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_xlarge--26d6a .bp_avatar_module_length-1--26d6a.bp_avatar_module_text--26d6a,.bp_avatar_module_avatar--26d6a.bp_avatar_module_xlarge--26d6a .bp_avatar_module_length-2--26d6a.bp_avatar_module_text--26d6a{
773
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xlarge--53a65 .bp_avatar_module_length-1--53a65.bp_avatar_module_text--53a65,.bp_avatar_module_avatar--53a65.bp_avatar_module_xlarge--53a65 .bp_avatar_module_length-2--53a65.bp_avatar_module_text--53a65{
774
774
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
775
775
  font-size:1.3125rem;
776
776
  font-weight:700;
@@ -779,32 +779,45 @@
779
779
  text-decoration:none;
780
780
  text-transform:none;
781
781
  }
782
- .bp_avatar_module_avatar--26d6a.bp_avatar_module_xlarge--26d6a .bp_avatar_module_badge--26d6a{
782
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xlarge--53a65 .bp_avatar_module_badge--53a65{
783
783
  right:-.375rem;
784
784
  }
785
- .bp_avatar_module_avatar--26d6a .bp_avatar_module_image--26d6a{
785
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xxlarge--53a65{
786
+ height:var(--size-20);
787
+ width:var(--size-20);
788
+ }
789
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xxlarge--53a65 .bp_avatar_module_text--53a65{
790
+ font-size:1.25rem;
791
+ }
792
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xxlarge--53a65 .bp_avatar_module_length-1--53a65.bp_avatar_module_text--53a65,.bp_avatar_module_avatar--53a65.bp_avatar_module_xxlarge--53a65 .bp_avatar_module_length-2--53a65.bp_avatar_module_text--53a65{
793
+ font-size:2rem;
794
+ }
795
+ .bp_avatar_module_avatar--53a65.bp_avatar_module_xxlarge--53a65 .bp_avatar_module_badge--53a65{
796
+ right:-.375rem;
797
+ }
798
+ .bp_avatar_module_avatar--53a65 .bp_avatar_module_image--53a65{
786
799
  border-radius:50%;
787
800
  height:100%;
788
801
  object-fit:cover;
789
802
  width:100%;
790
803
  }
791
- .bp_avatar_module_avatar--26d6a .bp_avatar_module_image--26d6a.bp_avatar_module_loading--26d6a{
804
+ .bp_avatar_module_avatar--53a65 .bp_avatar_module_image--53a65.bp_avatar_module_loading--53a65{
792
805
  height:0;
793
806
  width:0;
794
807
  }
795
808
 
796
- .bp_avatar_module_anonymousAvatar--26d6a{
809
+ .bp_avatar_module_anonymousAvatar--53a65{
797
810
  align-items:center;
798
811
  display:flex;
799
812
  justify-content:center;
800
813
  }
801
814
 
802
- .bp_base_badge_module_badgeContainer--74d5f{
815
+ .bp_base_badge_module_badgeContainer--bad0b{
803
816
  display:inline-flex;
804
817
  position:relative;
805
818
  }
806
819
 
807
- .bp_base_badge_module_badge--74d5f{
820
+ .bp_base_badge_module_badge--bad0b{
808
821
  align-items:center;
809
822
  border:var(--border-2) solid var(--border-badge-border);
810
823
  border-radius:2rem;
@@ -816,56 +829,66 @@
816
829
  user-select:none;
817
830
  }
818
831
 
819
- .bp_base_badge_module_smallSizeBadge--74d5f{
832
+ .bp_base_badge_module_smallSizeBadge--bad0b{
820
833
  height:var(--size-2);
821
834
  min-width:var(--size-2);
822
835
  }
823
836
 
824
- .bp_base_badge_module_mediumSizeBadge--74d5f{
837
+ .bp_base_badge_module_mediumSizeBadge--bad0b{
825
838
  height:var(--size-3);
826
839
  min-width:var(--size-3);
827
840
  }
828
841
 
829
- .bp_base_badge_module_largeSizeBadge--74d5f{
842
+ .bp_base_badge_module_largeSizeBadge--bad0b{
830
843
  height:var(--size-4);
831
844
  min-width:var(--size-4);
832
845
  }
833
846
 
834
- .bp_base_badge_module_xlargeSizeBadge--74d5f{
847
+ .bp_base_badge_module_xlargeSizeBadge--bad0b{
835
848
  height:var(--size-5);
836
849
  min-width:var(--size-5);
837
850
  }
838
851
 
839
- .bp_base_badge_module_iconBadge--74d5f{
852
+ .bp_base_badge_module_xxlargeSizeBadge--bad0b{
853
+ height:var(--size-6);
854
+ min-width:var(--size-6);
855
+ }
856
+
857
+ .bp_base_badge_module_iconBadge--bad0b{
840
858
  bottom:-5%;
841
859
  right:-5%;
842
860
  }
843
861
 
844
- .bp_base_badge_module_statusBadge--74d5f{
862
+ .bp_base_badge_module_statusBadge--bad0b{
845
863
  bottom:-20%;
846
864
  right:-20%;
847
865
  }
848
866
 
849
- .bp_base_badge_module_statusBadge--74d5f.bp_base_badge_module_largeSizeBadge--74d5f{
867
+ .bp_base_badge_module_statusBadge--bad0b.bp_base_badge_module_largeSizeBadge--bad0b{
850
868
  bottom:-22%;
851
869
  right:-22%;
852
870
  }
853
871
 
854
- .bp_base_badge_module_statusBadge--74d5f.bp_base_badge_module_xlargeSizeBadge--74d5f{
872
+ .bp_base_badge_module_statusBadge--bad0b.bp_base_badge_module_xlargeSizeBadge--bad0b{
855
873
  bottom:-15%;
856
874
  right:-15%;
857
875
  }
858
876
 
859
- .bp_base_badge_module_numericBadge--74d5f{
877
+ .bp_base_badge_module_statusBadge--bad0b.bp_base_badge_module_xxlargeSizeBadge--bad0b{
878
+ bottom:-4%;
879
+ right:-4%;
880
+ }
881
+
882
+ .bp_base_badge_module_numericBadge--bad0b{
860
883
  left:60%;
861
884
  top:0;
862
885
  }
863
886
 
864
- .bp_base_badge_module_numericBadgeSingleDigit--74d5f{
887
+ .bp_base_badge_module_numericBadgeSingleDigit--bad0b{
865
888
  padding:1px;
866
889
  }
867
890
 
868
- .bp_base_badge_module_numericBadgeMoreDigits--74d5f{
891
+ .bp_base_badge_module_numericBadgeMoreDigits--bad0b{
869
892
  padding:1px 3px;
870
893
  }
871
894
 
@@ -5121,7 +5144,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
5121
5144
  margin-block:var(--space-2);
5122
5145
  }
5123
5146
 
5124
- .bp_side_panel_module_content--26666{
5147
+ .bp_side_panel_module_content--c438f{
5125
5148
  background-color:var(--gray-white);
5126
5149
  border-inline-start:var(--border-1) solid var(--border-divider-border);
5127
5150
  display:flex;
@@ -5132,14 +5155,13 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
5132
5155
  max-width:100%;
5133
5156
  min-width:320px;
5134
5157
  overflow:hidden;
5135
- width:360px;
5136
5158
  }
5137
5159
  @media only screen and (max-width: 374px){
5138
- .bp_side_panel_module_content--26666{
5160
+ .bp_side_panel_module_content--c438f{
5139
5161
  min-width:100%;
5140
5162
  }
5141
5163
  }
5142
- .bp_side_panel_module_content--26666 .bp_side_panel_module_header--26666{
5164
+ .bp_side_panel_module_content--c438f .bp_side_panel_module_header--c438f{
5143
5165
  align-items:center;
5144
5166
  background-color:var(--surface-surface);
5145
5167
  border-bottom:var(--border-1) solid var(--border-divider-border);
@@ -5154,60 +5176,68 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
5154
5176
  transition-timing-function:cubic-bezier(0, 0, .6, 1);
5155
5177
  word-break:break-word;
5156
5178
  }
5157
- .bp_side_panel_module_content--26666 .bp_side_panel_module_header--26666,.bp_side_panel_module_content--26666 .bp_side_panel_module_header--26666.bp_side_panel_module_headerMobile--26666{
5179
+ .bp_side_panel_module_content--c438f .bp_side_panel_module_header--c438f,.bp_side_panel_module_content--c438f .bp_side_panel_module_header--c438f.bp_side_panel_module_headerMobile--c438f{
5158
5180
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
5159
5181
  font-weight:700;
5160
5182
  letter-spacing:.01875rem;
5161
5183
  text-decoration:none;
5162
5184
  text-transform:none;
5163
5185
  }
5164
- .bp_side_panel_module_content--26666 .bp_side_panel_module_header--26666.bp_side_panel_module_headerMobile--26666{
5186
+ .bp_side_panel_module_content--c438f .bp_side_panel_module_header--c438f.bp_side_panel_module_headerMobile--c438f{
5165
5187
  font-size:.9375rem;
5166
5188
  line-height:1.25rem;
5167
5189
  }
5168
- .bp_side_panel_module_content--26666 .bp_side_panel_module_headerShadow--26666{
5190
+ .bp_side_panel_module_content--c438f .bp_side_panel_module_headerShadow--c438f{
5169
5191
  box-shadow:var(--dropshadow-3);
5170
5192
  }
5171
5193
 
5172
- .bp_side_panel_module_persistentContent--26666{
5194
+ .bp_side_panel_module_persistentContent--c438f{
5173
5195
  position:relative;
5174
5196
  }
5175
5197
 
5176
- .bp_side_panel_module_contentAnimatedSlideIn--26666{
5198
+ .bp_side_panel_module_contentAnimatedSlideIn--c438f{
5177
5199
  animation-duration:.2s;
5178
- animation-name:bp_side_panel_module_slideIn--26666;
5200
+ animation-name:bp_side_panel_module_slideIn--c438f;
5179
5201
  animation-timing-function:cubic-bezier(0, 0, .6, 1);
5180
5202
  }
5181
5203
 
5182
- .bp_side_panel_module_contentAnimatedSlideOut--26666[data-state=closed]{
5204
+ .bp_side_panel_module_contentAnimatedSlideOut--c438f[data-state=closed]{
5183
5205
  animation-duration:.2s;
5184
- animation-name:bp_side_panel_module_slideOut--26666;
5206
+ animation-name:bp_side_panel_module_slideOut--c438f;
5185
5207
  animation-timing-function:cubic-bezier(0, 0, .6, 1);
5186
5208
  }
5187
5209
 
5188
- .bp_side_panel_module_dropShadowContent--26666{
5210
+ .bp_side_panel_module_contentNormal--c438f{
5211
+ width:360px;
5212
+ }
5213
+
5214
+ .bp_side_panel_module_contentLarge--c438f{
5215
+ width:420px;
5216
+ }
5217
+
5218
+ .bp_side_panel_module_dropShadowContent--c438f{
5189
5219
  box-shadow:var(--dropshadow-3);
5190
5220
  }
5191
5221
 
5192
- .bp_side_panel_module_content--26666 .bp_side_panel_module_close--26666{
5222
+ .bp_side_panel_module_content--c438f .bp_side_panel_module_close--c438f{
5193
5223
  color:var(--gray-65);
5194
5224
  position:absolute;
5195
5225
  right:var(--space-4);
5196
5226
  top:var(--space-5);
5197
5227
  }
5198
5228
 
5199
- .bp_side_panel_module_overlayContent--26666{
5229
+ .bp_side_panel_module_overlayContent--c438f{
5200
5230
  box-shadow:var(--dropshadow-3);
5201
5231
  position:fixed;
5202
5232
  right:0;
5203
5233
  top:0;
5204
5234
  z-index:300;
5205
5235
  }
5206
- .bp_side_panel_module_overlayContent--26666 .bp_side_panel_module_header--26666{
5236
+ .bp_side_panel_module_overlayContent--c438f .bp_side_panel_module_header--c438f{
5207
5237
  padding:var(--space-6) var(--space-14) var(--space-6) var(--space-4);
5208
5238
  }
5209
5239
 
5210
- .bp_side_panel_module_overlay--26666{
5240
+ .bp_side_panel_module_overlay--c438f{
5211
5241
  background-color:var(--black-opacity-80);
5212
5242
  bottom:0;
5213
5243
  display:flex;
@@ -5218,20 +5248,20 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
5218
5248
  top:0;
5219
5249
  z-index:300;
5220
5250
  }
5221
- .bp_side_panel_module_overlay--26666 .bp_side_panel_module_content--26666 .bp_side_panel_module_header--26666{
5251
+ .bp_side_panel_module_overlay--c438f .bp_side_panel_module_content--c438f .bp_side_panel_module_header--c438f{
5222
5252
  padding:var(--space-6) var(--space-14) var(--space-6) var(--space-4);
5223
5253
  }
5224
5254
 
5225
- .bp_side_panel_module_dropShadowOverlay--26666{
5255
+ .bp_side_panel_module_dropShadowOverlay--c438f{
5226
5256
  background-color:initial;
5227
5257
  }
5228
5258
 
5229
- .bp_side_panel_module_scrollableContainer--26666{
5259
+ .bp_side_panel_module_scrollableContainer--c438f{
5230
5260
  flex-grow:1;
5231
5261
  overflow-y:auto;
5232
5262
  }
5233
5263
 
5234
- .bp_side_panel_module_footer--26666{
5264
+ .bp_side_panel_module_footer--c438f{
5235
5265
  background-color:var(--surface-surface);
5236
5266
  display:flex;
5237
5267
  justify-content:flex-end;
@@ -5241,19 +5271,19 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
5241
5271
  transition-timing-function:cubic-bezier(0, 0, .6, 1);
5242
5272
  }
5243
5273
 
5244
- .bp_side_panel_module_footerShadow--26666{
5274
+ .bp_side_panel_module_footerShadow--c438f{
5245
5275
  box-shadow:var(--dropshadow-3-inverse);
5246
5276
  }
5247
5277
 
5248
- .bp_side_panel_module_footerButton--26666{
5278
+ .bp_side_panel_module_footerButton--c438f{
5249
5279
  margin-inline-start:var(--space-2);
5250
5280
  }
5251
5281
 
5252
- .bp_side_panel_module_footerButton--26666 + .bp_side_panel_module_footerButton--26666{
5282
+ .bp_side_panel_module_footerButton--c438f + .bp_side_panel_module_footerButton--c438f{
5253
5283
  margin-inline-start:var(--space-3);
5254
5284
  }
5255
5285
 
5256
- @keyframes bp_side_panel_module_slideIn--26666{
5286
+ @keyframes bp_side_panel_module_slideIn--c438f{
5257
5287
  from{
5258
5288
  inset-inline-end:-100%;
5259
5289
  }
@@ -5261,7 +5291,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
5261
5291
  inset-inline-end:0;
5262
5292
  }
5263
5293
  }
5264
- @keyframes bp_side_panel_module_slideOut--26666{
5294
+ @keyframes bp_side_panel_module_slideOut--c438f{
5265
5295
  from{
5266
5296
  inset-inline-end:0;
5267
5297
  }
@@ -3,7 +3,9 @@ import * as RadixDialog from '@radix-ui/react-dialog';
3
3
  /**
4
4
  * Contains content to be rendered in the open SidePanel in Overlay view.
5
5
  */
6
- export declare const SidePanelContent: import("react").ForwardRefExoticComponent<RadixDialog.DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const SidePanelContent: import("react").ForwardRefExoticComponent<RadixDialog.DialogContentProps & {
7
+ size?: "medium" | "large" | undefined;
8
+ } & import("react").RefAttributes<HTMLDivElement>>;
7
9
  /**
8
10
  * Contains content to be rendered in the open SidePanel in Persistent view.
9
11
  */
@@ -13,9 +13,11 @@ const SidePanelContent = /*#__PURE__*/forwardRef(({
13
13
  asChild = false,
14
14
  children,
15
15
  className,
16
+ size = 'medium',
16
17
  ...props
17
18
  }, forwardedRef) => {
18
19
  const variant = useVariant();
20
+ const isOverlayVariant = ['overlay', 'dropShadowOverlay', 'interactiveOverlay'].includes(variant);
19
21
  const isInteractiveOverlayVariant = variant === 'interactiveOverlay';
20
22
  const handleInteractOutside = useCallback(event => {
21
23
  if (isInteractiveOverlayVariant) {
@@ -29,9 +31,11 @@ const SidePanelContent = /*#__PURE__*/forwardRef(({
29
31
  ref: forwardedRef,
30
32
  asChild: asChild,
31
33
  className: clsx(styles.content, styles.contentAnimatedSlideIn, {
32
- [styles.overlayContent]: variant !== 'persistent',
33
34
  [styles.contentAnimatedSlideOut]: isInteractiveOverlayVariant,
34
- [styles.dropShadowContent]: variant === 'dropShadowOverlay'
35
+ [styles.contentLarge]: size === 'large',
36
+ [styles.contentNormal]: size === 'medium',
37
+ [styles.dropShadowContent]: variant === 'dropShadowOverlay',
38
+ [styles.overlayContent]: isOverlayVariant
35
39
  }, className),
36
40
  onInteractOutside: handleInteractOutside,
37
41
  children: children
@@ -47,7 +51,7 @@ const SidePanelPersistentContent = /*#__PURE__*/forwardRef(({
47
51
  ...props
48
52
  }, forwardedRef) => jsx("div", {
49
53
  ref: forwardedRef,
50
- className: clsx(styles.content, styles.persistentContent, className),
54
+ className: clsx(styles.content, styles.contentNormal, styles.persistentContent, className),
51
55
  ...props,
52
56
  children: children
53
57
  }));
@@ -2,7 +2,9 @@
2
2
  import { type SidePanelProps } from './types';
3
3
  export declare const SidePanel: ((props: SidePanelProps) => import("react/jsx-runtime").JSX.Element | null) & {
4
4
  Close: import("react").ForwardRefExoticComponent<import("./types").SidePanelCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- Content: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ Content: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogContentProps & {
6
+ size?: "medium" | "large" | undefined;
7
+ } & import("react").RefAttributes<HTMLDivElement>>;
6
8
  Footer: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
7
9
  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> & {
8
10
  children?: string | string[] | undefined;
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"content":"bp_side_panel_module_content--26666","header":"bp_side_panel_module_header--26666","headerMobile":"bp_side_panel_module_headerMobile--26666","headerShadow":"bp_side_panel_module_headerShadow--26666","persistentContent":"bp_side_panel_module_persistentContent--26666","contentAnimatedSlideIn":"bp_side_panel_module_contentAnimatedSlideIn--26666","slideIn":"bp_side_panel_module_slideIn--26666","contentAnimatedSlideOut":"bp_side_panel_module_contentAnimatedSlideOut--26666","slideOut":"bp_side_panel_module_slideOut--26666","dropShadowContent":"bp_side_panel_module_dropShadowContent--26666","close":"bp_side_panel_module_close--26666","overlayContent":"bp_side_panel_module_overlayContent--26666","overlay":"bp_side_panel_module_overlay--26666","dropShadowOverlay":"bp_side_panel_module_dropShadowOverlay--26666","scrollableContainer":"bp_side_panel_module_scrollableContainer--26666","footer":"bp_side_panel_module_footer--26666","footerShadow":"bp_side_panel_module_footerShadow--26666","footerButton":"bp_side_panel_module_footerButton--26666"};
2
+ var styles = {"content":"bp_side_panel_module_content--c438f","header":"bp_side_panel_module_header--c438f","headerMobile":"bp_side_panel_module_headerMobile--c438f","headerShadow":"bp_side_panel_module_headerShadow--c438f","persistentContent":"bp_side_panel_module_persistentContent--c438f","contentAnimatedSlideIn":"bp_side_panel_module_contentAnimatedSlideIn--c438f","slideIn":"bp_side_panel_module_slideIn--c438f","contentAnimatedSlideOut":"bp_side_panel_module_contentAnimatedSlideOut--c438f","slideOut":"bp_side_panel_module_slideOut--c438f","contentNormal":"bp_side_panel_module_contentNormal--c438f","contentLarge":"bp_side_panel_module_contentLarge--c438f","dropShadowContent":"bp_side_panel_module_dropShadowContent--c438f","close":"bp_side_panel_module_close--c438f","overlayContent":"bp_side_panel_module_overlayContent--c438f","overlay":"bp_side_panel_module_overlay--c438f","dropShadowOverlay":"bp_side_panel_module_dropShadowOverlay--c438f","scrollableContainer":"bp_side_panel_module_scrollableContainer--c438f","footer":"bp_side_panel_module_footer--c438f","footerShadow":"bp_side_panel_module_footerShadow--c438f","footerButton":"bp_side_panel_module_footerButton--c438f"};
3
3
 
4
4
  export { styles as default };
@@ -18,7 +18,13 @@ export type SidePanelPersistentProps = ComponentPropsWithRef<'div'> & {
18
18
  };
19
19
  export type SidePanelOverlayProps = DialogProps;
20
20
  export type SidePanelOverlayComponentProps = ComponentPropsWithRef<'div'> & Pick<DialogPortalProps, 'container'>;
21
- export type SidePanelContentProps = DialogContentProps;
21
+ export type SidePanelContentProps = DialogContentProps & {
22
+ /**
23
+ * The size of the side panel content.
24
+ * @default "medium"
25
+ */
26
+ size?: 'medium' | 'large';
27
+ };
22
28
  export type SidePanelPersistentContentProps = ComponentPropsWithRef<'div'>;
23
29
  export interface SidePanelCloseProps {
24
30
  /** The aria-label for the Close element */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "7.27.1",
3
+ "version": "7.29.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -63,7 +63,7 @@
63
63
  "react-stately": "^3.31.1",
64
64
  "tsx": "^4.16.5"
65
65
  },
66
- "gitHead": "aa5870125c7788a07adcc307775630d30dcaee13",
66
+ "gitHead": "68124cafde2004371a00564cb10446f0d1021880",
67
67
  "module": "lib-esm/index.js",
68
68
  "main": "lib-esm/index.js",
69
69
  "exports": {