@box/blueprint-web 6.34.1 → 6.35.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/index.css
CHANGED
|
@@ -3943,7 +3943,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
3943
3943
|
background-color:var(--surface-menu-surface-focus);
|
|
3944
3944
|
}
|
|
3945
3945
|
|
|
3946
|
-
.bp_notification_module_viewport--
|
|
3946
|
+
.bp_notification_module_viewport--f8f52{
|
|
3947
3947
|
all:unset;
|
|
3948
3948
|
align-items:center;
|
|
3949
3949
|
display:flex;
|
|
@@ -3956,46 +3956,93 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
3956
3956
|
z-index:2147483647;
|
|
3957
3957
|
}
|
|
3958
3958
|
|
|
3959
|
-
.bp_notification_module_root--
|
|
3959
|
+
.bp_notification_module_root--f8f52{
|
|
3960
3960
|
border:var(--border-2) solid;
|
|
3961
3961
|
border-radius:var(--radius-3);
|
|
3962
3962
|
display:flex;
|
|
3963
|
-
max-width:
|
|
3964
|
-
width:calc(100vw - var(--space-4)*2);
|
|
3963
|
+
max-width:288px;
|
|
3965
3964
|
}
|
|
3966
|
-
|
|
3967
|
-
|
|
3965
|
+
@media (width > 374px){
|
|
3966
|
+
.bp_notification_module_root--f8f52{
|
|
3967
|
+
max-width:343px;
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3970
|
+
@media (width > 767px){
|
|
3971
|
+
.bp_notification_module_root--f8f52{
|
|
3972
|
+
max-width:728px;
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
@media (width > 1023px){
|
|
3976
|
+
.bp_notification_module_root--f8f52{
|
|
3977
|
+
max-width:848px;
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
@media (width > 1439px){
|
|
3981
|
+
.bp_notification_module_root--f8f52{
|
|
3982
|
+
max-width:896px;
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_container--f8f52{
|
|
3986
|
+
align-items:flex-start;
|
|
3968
3987
|
box-shadow:var(--dropshadow-3);
|
|
3969
3988
|
display:flex;
|
|
3970
3989
|
gap:var(--space-3);
|
|
3971
3990
|
padding:var(--space-3) 0;
|
|
3972
3991
|
width:100%;
|
|
3973
3992
|
}
|
|
3974
|
-
|
|
3993
|
+
@media (width > 767px){
|
|
3994
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_container--f8f52{
|
|
3995
|
+
align-items:center;
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_mobileContainer--f8f52{
|
|
3999
|
+
align-items:left;
|
|
4000
|
+
display:flex;
|
|
4001
|
+
flex-direction:column;
|
|
4002
|
+
overflow:hidden;
|
|
4003
|
+
width:100%;
|
|
4004
|
+
}
|
|
4005
|
+
@media (width > 767px){
|
|
4006
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_mobileContainer--f8f52{
|
|
4007
|
+
align-items:center;
|
|
4008
|
+
flex-direction:row;
|
|
4009
|
+
}
|
|
4010
|
+
}
|
|
4011
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_withButtons--f8f52{
|
|
4012
|
+
gap:var(--space-3);
|
|
4013
|
+
}
|
|
4014
|
+
.bp_notification_module_root--f8f52.bp_notification_module_info--f8f52{
|
|
3975
4015
|
background:var(--surface-message-surface-info);
|
|
3976
4016
|
border-color:var(--border-message-border-info);
|
|
3977
4017
|
}
|
|
3978
|
-
.bp_notification_module_root--
|
|
4018
|
+
.bp_notification_module_root--f8f52.bp_notification_module_success--f8f52{
|
|
3979
4019
|
background:var(--surface-message-surface-success);
|
|
3980
4020
|
border-color:var(--border-message-border-success);
|
|
3981
4021
|
}
|
|
3982
|
-
.bp_notification_module_root--
|
|
4022
|
+
.bp_notification_module_root--f8f52.bp_notification_module_warning--f8f52{
|
|
3983
4023
|
background:var(--surface-message-surface-warning);
|
|
3984
4024
|
border-color:var(--border-message-border-warning);
|
|
3985
4025
|
}
|
|
3986
|
-
.bp_notification_module_root--
|
|
4026
|
+
.bp_notification_module_root--f8f52.bp_notification_module_error--f8f52{
|
|
3987
4027
|
background:var(--surface-message-surface-error);
|
|
3988
4028
|
border-color:var(--border-message-border-error);
|
|
3989
4029
|
}
|
|
3990
|
-
.bp_notification_module_root--
|
|
4030
|
+
.bp_notification_module_root--f8f52:focus-visible{
|
|
3991
4031
|
box-shadow:0 0 0 .0625rem #fff,0 0 0 .1875rem #2486fc;
|
|
3992
4032
|
outline:none;
|
|
3993
4033
|
}
|
|
3994
|
-
.bp_notification_module_root--
|
|
4034
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_typeIconContainer--f8f52{
|
|
4035
|
+
align-items:center;
|
|
4036
|
+
display:flex;
|
|
4037
|
+
height:var(--size-8);
|
|
4038
|
+
justify-content:center;
|
|
4039
|
+
width:var(--size-8);
|
|
4040
|
+
}
|
|
4041
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_typeIconContainer--f8f52 .bp_notification_module_typeIcon--f8f52{
|
|
3995
4042
|
flex-shrink:0;
|
|
3996
4043
|
margin-left:var(--space-4);
|
|
3997
4044
|
}
|
|
3998
|
-
.bp_notification_module_root--
|
|
4045
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_text--f8f52{
|
|
3999
4046
|
align-items:center;
|
|
4000
4047
|
color:var(--text-text-on-light);
|
|
4001
4048
|
display:flex;
|
|
@@ -4009,24 +4056,34 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4009
4056
|
text-decoration:none;
|
|
4010
4057
|
text-transform:none;
|
|
4011
4058
|
}
|
|
4012
|
-
.bp_notification_module_root--
|
|
4059
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_text--f8f52 > div{
|
|
4013
4060
|
overflow:hidden;
|
|
4014
4061
|
overflow-wrap:break-word;
|
|
4015
4062
|
}
|
|
4016
|
-
.bp_notification_module_root--
|
|
4063
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_contentButtonSection--f8f52{
|
|
4017
4064
|
display:flex;
|
|
4018
4065
|
gap:var(--space-3);
|
|
4019
|
-
margin-left:
|
|
4020
|
-
margin-right:var(--space-4);
|
|
4066
|
+
margin-left:0;
|
|
4021
4067
|
}
|
|
4022
|
-
|
|
4068
|
+
@media (width > 767px){
|
|
4069
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_contentButtonSection--f8f52{
|
|
4070
|
+
margin-left:auto;
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_contentButtonSection--f8f52 .bp_notification_module_contentButtons--f8f52{
|
|
4023
4074
|
display:flex;
|
|
4024
4075
|
gap:var(--space-3);
|
|
4025
4076
|
}
|
|
4026
|
-
.bp_notification_module_root--
|
|
4077
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_closeButtonSection--f8f52{
|
|
4078
|
+
display:flex;
|
|
4079
|
+
gap:var(--space-3);
|
|
4080
|
+
margin-left:auto;
|
|
4081
|
+
margin-right:var(--space-4);
|
|
4082
|
+
}
|
|
4083
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_closeButtonSection--f8f52 .bp_notification_module_closeButton--f8f52{
|
|
4027
4084
|
align-self:center;
|
|
4028
4085
|
}
|
|
4029
|
-
.bp_notification_module_root--
|
|
4086
|
+
.bp_notification_module_root--f8f52 .bp_notification_module_closeButtonSection--f8f52 .bp_notification_module_closeButton--f8f52 svg *{
|
|
4030
4087
|
fill:currentColor;
|
|
4031
4088
|
}
|
|
4032
4089
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"viewport":"bp_notification_module_viewport--
|
|
2
|
+
var styles = {"viewport":"bp_notification_module_viewport--f8f52","root":"bp_notification_module_root--f8f52","container":"bp_notification_module_container--f8f52","mobileContainer":"bp_notification_module_mobileContainer--f8f52","withButtons":"bp_notification_module_withButtons--f8f52","info":"bp_notification_module_info--f8f52","success":"bp_notification_module_success--f8f52","warning":"bp_notification_module_warning--f8f52","error":"bp_notification_module_error--f8f52","typeIconContainer":"bp_notification_module_typeIconContainer--f8f52","typeIcon":"bp_notification_module_typeIcon--f8f52","text":"bp_notification_module_text--f8f52","contentButtonSection":"bp_notification_module_contentButtonSection--f8f52","contentButtons":"bp_notification_module_contentButtons--f8f52","closeButtonSection":"bp_notification_module_closeButtonSection--f8f52","closeButton":"bp_notification_module_closeButton--f8f52"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -64,17 +64,28 @@ function PrivateNotificationElement(props) {
|
|
|
64
64
|
type: sensitivity,
|
|
65
65
|
children: jsxs("div", {
|
|
66
66
|
className: styles.container,
|
|
67
|
-
children: [
|
|
68
|
-
className: styles.
|
|
69
|
-
children:
|
|
70
|
-
children: styledText
|
|
71
|
-
})]
|
|
67
|
+
children: [jsx("div", {
|
|
68
|
+
className: styles.typeIconContainer,
|
|
69
|
+
children: iconComponent
|
|
72
70
|
}), jsxs("div", {
|
|
73
|
-
className: styles.
|
|
71
|
+
className: clsx(styles.mobileContainer, {
|
|
72
|
+
[styles.withButtons]: children
|
|
73
|
+
}),
|
|
74
74
|
children: [jsx("div", {
|
|
75
|
-
className: styles.
|
|
76
|
-
children:
|
|
77
|
-
|
|
75
|
+
className: styles.text,
|
|
76
|
+
children: jsx(Toast.Description, {
|
|
77
|
+
children: styledText
|
|
78
|
+
})
|
|
79
|
+
}), jsx("div", {
|
|
80
|
+
className: styles.contentButtonSection,
|
|
81
|
+
children: jsx("div", {
|
|
82
|
+
className: styles.contentButtons,
|
|
83
|
+
children: children
|
|
84
|
+
})
|
|
85
|
+
})]
|
|
86
|
+
}), jsx("div", {
|
|
87
|
+
className: styles.closeButtonSection,
|
|
88
|
+
children: jsx(Toast.Close, {
|
|
78
89
|
asChild: true,
|
|
79
90
|
children: jsx(IconButton, {
|
|
80
91
|
"aria-label": closeButtonAriaLabel,
|
|
@@ -82,7 +93,7 @@ function PrivateNotificationElement(props) {
|
|
|
82
93
|
icon: XMark,
|
|
83
94
|
onClick: onClose
|
|
84
95
|
})
|
|
85
|
-
})
|
|
96
|
+
})
|
|
86
97
|
})]
|
|
87
98
|
})
|
|
88
99
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.35.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@box/storybook-utils": "^0.0.7"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "9dbc491ca505db4f3aa557f3de0b2b0610945048",
|
|
61
61
|
"module": "lib-esm/index.js",
|
|
62
62
|
"main": "lib-esm/index.js",
|
|
63
63
|
"exports": {
|