@box/blueprint-web 8.4.1 → 8.5.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/lib-esm/avatar/avatar.module.js +1 -1
- package/lib-esm/button-wrapper/button-wrapper.d.ts +7 -0
- package/lib-esm/button-wrapper/button-wrapper.js +23 -0
- package/lib-esm/button-wrapper/button-wrapper.module.js +4 -0
- package/lib-esm/button-wrapper/index.d.ts +1 -0
- package/lib-esm/index.css +45 -28
- package/lib-esm/index.d.ts +1 -0
- package/lib-esm/index.js +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"avatar":"bp_avatar_module_avatar--
|
|
2
|
+
var styles = {"avatar":"bp_avatar_module_avatar--792cd","badge":"bp_avatar_module_badge--792cd","text":"bp_avatar_module_text--792cd","small":"bp_avatar_module_small--792cd","length-1":"bp_avatar_module_length-1--792cd","length-2":"bp_avatar_module_length-2--792cd","medium":"bp_avatar_module_medium--792cd","large":"bp_avatar_module_large--792cd","length-3":"bp_avatar_module_length-3--792cd","length-4":"bp_avatar_module_length-4--792cd","xlarge":"bp_avatar_module_xlarge--792cd","xxlarge":"bp_avatar_module_xxlarge--792cd","image":"bp_avatar_module_image--792cd","loading":"bp_avatar_module_loading--792cd","anonymousAvatar":"bp_avatar_module_anonymousAvatar--792cd"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ButtonProps as AriakitButtonProps } from '@ariakit/react';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
export interface ButtonWrapperProps extends AriakitButtonProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ButtonWrapper: import("react").ForwardRefExoticComponent<Omit<ButtonWrapperProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '@ariakit/react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import styles from './button-wrapper.module.js';
|
|
6
|
+
|
|
7
|
+
const ButtonWrapper = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
className,
|
|
11
|
+
...rest
|
|
12
|
+
} = props;
|
|
13
|
+
return jsx(Button, {
|
|
14
|
+
...rest,
|
|
15
|
+
ref: forwardedRef,
|
|
16
|
+
className: clsx(styles.buttonWrapper, className),
|
|
17
|
+
"data-button-wrapper": true,
|
|
18
|
+
children: children
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
ButtonWrapper.displayName = 'ButtonWrapper';
|
|
22
|
+
|
|
23
|
+
export { ButtonWrapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonWrapper, type ButtonWrapperProps } from './button-wrapper';
|
package/lib-esm/index.css
CHANGED
|
@@ -667,11 +667,12 @@
|
|
|
667
667
|
transform:rotate(180deg);
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
.bp_avatar_module_avatar--
|
|
670
|
+
.bp_avatar_module_avatar--792cd{
|
|
671
671
|
all:unset;
|
|
672
672
|
align-items:center;
|
|
673
673
|
background-color:var(--gray-10);
|
|
674
674
|
border-radius:50%;
|
|
675
|
+
box-sizing:border-box;
|
|
675
676
|
display:flex;
|
|
676
677
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
677
678
|
font-size:.875rem;
|
|
@@ -683,7 +684,7 @@
|
|
|
683
684
|
text-decoration:none;
|
|
684
685
|
text-transform:none;
|
|
685
686
|
}
|
|
686
|
-
.bp_avatar_module_avatar--
|
|
687
|
+
.bp_avatar_module_avatar--792cd .bp_avatar_module_badge--792cd{
|
|
687
688
|
background-color:var(--gray-white);
|
|
688
689
|
border:var(--border-2) solid var(--gray-white);
|
|
689
690
|
border-radius:50%;
|
|
@@ -691,7 +692,7 @@
|
|
|
691
692
|
display:flex;
|
|
692
693
|
position:absolute;
|
|
693
694
|
}
|
|
694
|
-
.bp_avatar_module_avatar--
|
|
695
|
+
.bp_avatar_module_avatar--792cd .bp_avatar_module_text--792cd{
|
|
695
696
|
align-items:center;
|
|
696
697
|
border-radius:50%;
|
|
697
698
|
display:flex;
|
|
@@ -699,14 +700,14 @@
|
|
|
699
700
|
justify-content:center;
|
|
700
701
|
width:100%;
|
|
701
702
|
}
|
|
702
|
-
.bp_avatar_module_avatar--
|
|
703
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_small--792cd{
|
|
703
704
|
height:var(--size-6);
|
|
704
705
|
width:var(--size-6);
|
|
705
706
|
}
|
|
706
|
-
.bp_avatar_module_avatar--
|
|
707
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_small--792cd .bp_avatar_module_text--792cd{
|
|
707
708
|
font-size:.5rem;
|
|
708
709
|
}
|
|
709
|
-
.bp_avatar_module_avatar--
|
|
710
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_small--792cd .bp_avatar_module_length-1--792cd.bp_avatar_module_text--792cd,.bp_avatar_module_avatar--792cd.bp_avatar_module_small--792cd .bp_avatar_module_length-2--792cd.bp_avatar_module_text--792cd{
|
|
710
711
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
711
712
|
font-size:.625rem;
|
|
712
713
|
font-weight:700;
|
|
@@ -715,14 +716,14 @@
|
|
|
715
716
|
text-decoration:none;
|
|
716
717
|
text-transform:none;
|
|
717
718
|
}
|
|
718
|
-
.bp_avatar_module_avatar--
|
|
719
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_small--792cd .bp_avatar_module_badge--792cd{
|
|
719
720
|
right:-.25rem;
|
|
720
721
|
}
|
|
721
|
-
.bp_avatar_module_avatar--
|
|
722
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_medium--792cd{
|
|
722
723
|
height:var(--size-7);
|
|
723
724
|
width:var(--size-7);
|
|
724
725
|
}
|
|
725
|
-
.bp_avatar_module_avatar--
|
|
726
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_medium--792cd .bp_avatar_module_text--792cd{
|
|
726
727
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
727
728
|
font-size:.625rem;
|
|
728
729
|
font-weight:700;
|
|
@@ -731,20 +732,20 @@
|
|
|
731
732
|
text-decoration:none;
|
|
732
733
|
text-transform:none;
|
|
733
734
|
}
|
|
734
|
-
.bp_avatar_module_avatar--
|
|
735
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_medium--792cd .bp_avatar_module_length-1--792cd.bp_avatar_module_text--792cd,.bp_avatar_module_avatar--792cd.bp_avatar_module_medium--792cd .bp_avatar_module_length-2--792cd.bp_avatar_module_text--792cd{
|
|
735
736
|
font-size:.8125rem;
|
|
736
737
|
}
|
|
737
|
-
.bp_avatar_module_avatar--
|
|
738
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_medium--792cd .bp_avatar_module_badge--792cd{
|
|
738
739
|
right:-.375rem;
|
|
739
740
|
}
|
|
740
|
-
.bp_avatar_module_avatar--
|
|
741
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd{
|
|
741
742
|
height:var(--size-8);
|
|
742
743
|
width:var(--size-8);
|
|
743
744
|
}
|
|
744
|
-
.bp_avatar_module_avatar--
|
|
745
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd .bp_avatar_module_text--792cd{
|
|
745
746
|
font-size:.5rem;
|
|
746
747
|
}
|
|
747
|
-
.bp_avatar_module_avatar--
|
|
748
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd .bp_avatar_module_length-1--792cd.bp_avatar_module_text--792cd,.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd .bp_avatar_module_length-2--792cd.bp_avatar_module_text--792cd{
|
|
748
749
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
749
750
|
font-size:.875rem;
|
|
750
751
|
font-weight:700;
|
|
@@ -753,10 +754,10 @@
|
|
|
753
754
|
text-decoration:none;
|
|
754
755
|
text-transform:none;
|
|
755
756
|
}
|
|
756
|
-
.bp_avatar_module_avatar--
|
|
757
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd .bp_avatar_module_length-3--792cd.bp_avatar_module_text--792cd{
|
|
757
758
|
font-size:.6875rem;
|
|
758
759
|
}
|
|
759
|
-
.bp_avatar_module_avatar--
|
|
760
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd .bp_avatar_module_length-4--792cd.bp_avatar_module_text--792cd{
|
|
760
761
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
761
762
|
font-size:.625rem;
|
|
762
763
|
font-weight:700;
|
|
@@ -765,17 +766,17 @@
|
|
|
765
766
|
text-decoration:none;
|
|
766
767
|
text-transform:none;
|
|
767
768
|
}
|
|
768
|
-
.bp_avatar_module_avatar--
|
|
769
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_large--792cd .bp_avatar_module_badge--792cd{
|
|
769
770
|
right:-.25rem;
|
|
770
771
|
}
|
|
771
|
-
.bp_avatar_module_avatar--
|
|
772
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xlarge--792cd{
|
|
772
773
|
height:var(--size-11);
|
|
773
774
|
width:var(--size-11);
|
|
774
775
|
}
|
|
775
|
-
.bp_avatar_module_avatar--
|
|
776
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xlarge--792cd .bp_avatar_module_text--792cd{
|
|
776
777
|
font-size:1rem;
|
|
777
778
|
}
|
|
778
|
-
.bp_avatar_module_avatar--
|
|
779
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xlarge--792cd .bp_avatar_module_length-1--792cd.bp_avatar_module_text--792cd,.bp_avatar_module_avatar--792cd.bp_avatar_module_xlarge--792cd .bp_avatar_module_length-2--792cd.bp_avatar_module_text--792cd{
|
|
779
780
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
780
781
|
font-size:1.3125rem;
|
|
781
782
|
font-weight:700;
|
|
@@ -784,39 +785,52 @@
|
|
|
784
785
|
text-decoration:none;
|
|
785
786
|
text-transform:none;
|
|
786
787
|
}
|
|
787
|
-
.bp_avatar_module_avatar--
|
|
788
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xlarge--792cd .bp_avatar_module_badge--792cd{
|
|
788
789
|
right:-.375rem;
|
|
789
790
|
}
|
|
790
|
-
.bp_avatar_module_avatar--
|
|
791
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xxlarge--792cd{
|
|
791
792
|
height:var(--size-20);
|
|
792
793
|
width:var(--size-20);
|
|
793
794
|
}
|
|
794
|
-
.bp_avatar_module_avatar--
|
|
795
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xxlarge--792cd .bp_avatar_module_text--792cd{
|
|
795
796
|
font-size:1.25rem;
|
|
796
797
|
}
|
|
797
|
-
.bp_avatar_module_avatar--
|
|
798
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xxlarge--792cd .bp_avatar_module_length-1--792cd.bp_avatar_module_text--792cd,.bp_avatar_module_avatar--792cd.bp_avatar_module_xxlarge--792cd .bp_avatar_module_length-2--792cd.bp_avatar_module_text--792cd{
|
|
798
799
|
font-size:2rem;
|
|
799
800
|
}
|
|
800
|
-
.bp_avatar_module_avatar--
|
|
801
|
+
.bp_avatar_module_avatar--792cd.bp_avatar_module_xxlarge--792cd .bp_avatar_module_badge--792cd{
|
|
801
802
|
right:-.375rem;
|
|
802
803
|
}
|
|
803
|
-
.bp_avatar_module_avatar--
|
|
804
|
+
.bp_avatar_module_avatar--792cd .bp_avatar_module_image--792cd{
|
|
804
805
|
border-radius:50%;
|
|
805
806
|
height:100%;
|
|
806
807
|
object-fit:cover;
|
|
807
808
|
width:100%;
|
|
808
809
|
}
|
|
809
|
-
.bp_avatar_module_avatar--
|
|
810
|
+
.bp_avatar_module_avatar--792cd .bp_avatar_module_image--792cd.bp_avatar_module_loading--792cd{
|
|
810
811
|
height:0;
|
|
811
812
|
width:0;
|
|
812
813
|
}
|
|
813
814
|
|
|
814
|
-
.bp_avatar_module_anonymousAvatar--
|
|
815
|
+
.bp_avatar_module_anonymousAvatar--792cd{
|
|
815
816
|
align-items:center;
|
|
816
817
|
display:flex;
|
|
817
818
|
justify-content:center;
|
|
818
819
|
}
|
|
819
820
|
|
|
821
|
+
[data-button-wrapper]:hover .bp_avatar_module_avatar--792cd{
|
|
822
|
+
box-shadow:0 0 0 0 var(--background-background), 0 0 0 var(--border-3) var(--border-avatar-border-hover);
|
|
823
|
+
cursor:pointer;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
[data-button-wrapper]:active .bp_avatar_module_avatar--792cd{
|
|
827
|
+
box-shadow:0 0 0 0 var(--background-background), 0 0 0 var(--border-3) var(--border-avatar-border-pressed);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
[data-button-wrapper][data-focus-visible] .bp_avatar_module_avatar--792cd{
|
|
831
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
832
|
+
}
|
|
833
|
+
|
|
820
834
|
.bp_base_badge_module_badgeContainer--38d12{
|
|
821
835
|
display:inline-flex;
|
|
822
836
|
position:relative;
|
|
@@ -896,6 +910,9 @@
|
|
|
896
910
|
.bp_base_badge_module_numericBadgeMoreDigits--38d12{
|
|
897
911
|
padding:1px 3px;
|
|
898
912
|
}
|
|
913
|
+
.bp_button_wrapper_module_buttonWrapper--b0897{
|
|
914
|
+
all:unset;
|
|
915
|
+
}
|
|
899
916
|
|
|
900
917
|
.bp_card_module_card--35455{
|
|
901
918
|
background:var(--surface-card-surface);
|
package/lib-esm/index.d.ts
CHANGED
package/lib-esm/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { StatusBadge } from './badge/status-badge.js';
|
|
|
7
7
|
export { BrandingStyles } from './branding-styles/branding-styles.js';
|
|
8
8
|
export { useCustomBranding } from './branding-styles/useCustomBranding.js';
|
|
9
9
|
export { Button } from './button/button.js';
|
|
10
|
+
export { ButtonWrapper } from './button-wrapper/button-wrapper.js';
|
|
10
11
|
export { Card } from './card/card.js';
|
|
11
12
|
export { CardTooltip } from './card-tooltip/card-tooltip.js';
|
|
12
13
|
export { Checkbox } from './checkbox/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.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": "
|
|
66
|
+
"gitHead": "b963b0c33615aba9b65b3d3787ebb490b039070f",
|
|
67
67
|
"module": "lib-esm/index.js",
|
|
68
68
|
"main": "lib-esm/index.js",
|
|
69
69
|
"exports": {
|