@box/blueprint-web 12.69.1 → 12.70.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.
@@ -6013,7 +6013,8 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6013
6013
  display:inline;
6014
6014
  }
6015
6015
 
6016
- .bp_modal_module_overlay--75897[data-modern=false]{
6016
+ .bp_modal_module_overlay--bc07b[data-modern=false]{
6017
+ --modal-body-text-color:var(--text-text-on-light);
6017
6018
  --modal-overlay-background:var(--overlay-modal-overlay);
6018
6019
  --modal-content-background:var(--gray-white);
6019
6020
  --modal-min-width-non-fullscreen:calc(460px - var(--space-8)*2);
@@ -6037,7 +6038,7 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6037
6038
  --modal-title-gap:var(--space-2);
6038
6039
  --modal-title-padding:var(--space-5) var(--space-12) var(--space-5) var(--space-4);
6039
6040
  --modal-title-padding-non-fullscreen:var(--space-6) var(--space-16) var(--space-6) var(--space-6);
6040
- --modal-body-padding:var(--space-6) var(--space-4) var(--space-4);
6041
+ --modal-body-padding-fullscreen:var(--space-6) var(--space-4) var(--space-4);
6041
6042
  --modal-body-padding-non-fullscreen:var(--space-6) var(--space-6) var(--space-4);
6042
6043
  --modal-divider-line-border:var(--border-1) solid var(--border-divider-border);
6043
6044
  --modal-divider-line-offset-right:var(--space-4);
@@ -6049,9 +6050,9 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6049
6050
  --modal-footer-button-margin-inline-start:var(--space-3);
6050
6051
  }
6051
6052
 
6052
- .bp_modal_module_overlay--75897[data-modern=true]{
6053
+ .bp_modal_module_overlay--bc07b[data-modern=true]{
6053
6054
  --modal-overlay-background:var(--bp-overlay-modal-overlay);
6054
- --modal-content-background:var(--bp-gray-white);
6055
+ --modal-content-background:var(--bp-surface-modal-surface);
6055
6056
  --modal-min-width-non-fullscreen:calc(460px - var(--bp-space-080)*2);
6056
6057
  --modal-max-height-non-fullscreen:calc(100vh - var(--bp-space-080)*2);
6057
6058
  --modal-max-width-small:460px;
@@ -6060,6 +6061,7 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6060
6061
  --modal-max-width-xlarge:768px;
6061
6062
  --modal-margin:0 var(--bp-space-080);
6062
6063
  --modal-border-radius:var(--bp-radius-16);
6064
+ --modal-body-text-color:var(--bp-text-text-on-light);
6063
6065
  --modal-close-button-color:var(--bp-icon-icon-on-light-secondary);
6064
6066
  --modal-close-button-offset-top:var(--bp-space-040);
6065
6067
  --modal-close-button-offset-right:var(--bp-space-040);
@@ -6073,8 +6075,8 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6073
6075
  --modal-title-gap:var(--bp-space-020);
6074
6076
  --modal-title-padding:var(--bp-space-050) var(--bp-space-120) var(--bp-space-050) var(--bp-space-040);
6075
6077
  --modal-title-padding-non-fullscreen:var(--bp-space-060) var(--bp-space-160) var(--bp-space-060) var(--bp-space-060);
6076
- --modal-body-padding:var(--bp-space-060) var(--bp-space-040) var(--bp-space-040);
6077
- --modal-body-padding-non-fullscreen:var(--bp-space-060) var(--bp-space-060) var(--bp-space-040);
6078
+ --modal-body-padding-fullscreen:var(--bp-space-020) var(--bp-space-040) var(--bp-space-040) var(--bp-space-040);
6079
+ --modal-body-padding-non-fullscreen:var(--bp-space-020) var(--bp-space-060) var(--bp-space-040) var(--bp-space-060);
6078
6080
  --modal-divider-line-border:var(--bp-border-01) solid var(--bp-border-divider-border);
6079
6081
  --modal-divider-line-offset-right:var(--bp-space-040);
6080
6082
  --modal-divider-line-offset-left:var(--bp-space-040);
@@ -6085,7 +6087,7 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6085
6087
  --modal-footer-button-margin-inline-start:var(--bp-space-030);
6086
6088
  }
6087
6089
 
6088
- .bp_modal_module_overlay--75897{
6090
+ .bp_modal_module_overlay--bc07b{
6089
6091
  background-color:var(--modal-overlay-background);
6090
6092
  bottom:0;
6091
6093
  display:grid;
@@ -6097,13 +6099,13 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6097
6099
  z-index:370;
6098
6100
  }
6099
6101
  @media (width > 459px){
6100
- .bp_modal_module_overlay--75897{
6102
+ .bp_modal_module_overlay--bc07b{
6101
6103
  place-items:center;
6102
6104
  }
6103
6105
  }
6104
6106
 
6105
- .bp_modal_module_content--75897{
6106
- animation:bp_modal_module_popup_bounce_in--75897 var(--animation-duration-3);
6107
+ .bp_modal_module_content--bc07b{
6108
+ animation:bp_modal_module_popup_bounce_in--bc07b var(--animation-duration-3);
6107
6109
  background-color:var(--modal-content-background);
6108
6110
  display:flex;
6109
6111
  flex-direction:column;
@@ -6112,80 +6114,80 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6112
6114
  position:relative;
6113
6115
  }
6114
6116
  @media (width > 374px){
6115
- .bp_modal_module_content--75897{
6117
+ .bp_modal_module_content--bc07b{
6116
6118
  overflow:hidden;
6117
6119
  }
6118
6120
  }
6119
6121
  @media (width > 459px){
6120
- .bp_modal_module_content--75897{
6122
+ .bp_modal_module_content--bc07b{
6121
6123
  border-radius:var(--modal-border-radius);
6122
6124
  height:auto;
6123
6125
  margin:var(--modal-margin);
6124
6126
  max-height:var(--modal-max-height-non-fullscreen);
6125
6127
  min-width:var(--modal-min-width-non-fullscreen);
6126
6128
  }
6127
- .bp_modal_module_content--75897.bp_modal_module_smallSizeModal--75897{
6129
+ .bp_modal_module_content--bc07b.bp_modal_module_smallSizeModal--bc07b{
6128
6130
  max-width:var(--modal-max-width-small);
6129
6131
  }
6130
- .bp_modal_module_content--75897.bp_modal_module_mediumSizeModal--75897{
6132
+ .bp_modal_module_content--bc07b.bp_modal_module_mediumSizeModal--bc07b{
6131
6133
  max-width:var(--modal-max-width-medium);
6132
6134
  }
6133
- .bp_modal_module_content--75897.bp_modal_module_largeSizeModal--75897{
6135
+ .bp_modal_module_content--bc07b.bp_modal_module_largeSizeModal--bc07b{
6134
6136
  max-width:var(--modal-max-width-large);
6135
6137
  }
6136
- .bp_modal_module_content--75897.bp_modal_module_xlargeSizeModal--75897{
6138
+ .bp_modal_module_content--bc07b.bp_modal_module_xlargeSizeModal--bc07b{
6137
6139
  max-width:var(--modal-max-width-xlarge);
6138
6140
  }
6139
6141
  }
6140
6142
 
6141
- .bp_modal_module_scrollableContainer--75897{
6143
+ .bp_modal_module_scrollableContainer--bc07b{
6142
6144
  flex-grow:1;
6143
6145
  }
6144
6146
  @media (width > 374px){
6145
- .bp_modal_module_scrollableContainer--75897{
6147
+ .bp_modal_module_scrollableContainer--bc07b{
6146
6148
  overflow-y:auto;
6147
6149
  }
6148
6150
  }
6149
6151
 
6150
- .bp_modal_module_content--75897 .bp_modal_module_close--75897{
6152
+ .bp_modal_module_content--bc07b .bp_modal_module_close--bc07b{
6151
6153
  color:var(--modal-close-button-color);
6152
6154
  position:fixed;
6153
6155
  right:var(--modal-close-button-offset-right);
6154
6156
  top:var(--modal-close-button-offset-top);
6155
6157
  }
6156
6158
  @media (width > 374px){
6157
- .bp_modal_module_content--75897 .bp_modal_module_close--75897{
6159
+ .bp_modal_module_content--bc07b .bp_modal_module_close--bc07b{
6158
6160
  position:absolute;
6159
6161
  }
6160
6162
  }
6161
6163
 
6162
- .bp_modal_module_close--75897.bp_modal_module_onColor--75897{
6164
+ .bp_modal_module_close--bc07b.bp_modal_module_onColor--bc07b{
6163
6165
  background-color:var(--modal-close-button-on-color-background);
6164
6166
  }
6165
- .bp_modal_module_close--75897.bp_modal_module_onColor--75897:hover{
6167
+ .bp_modal_module_close--bc07b.bp_modal_module_onColor--bc07b:hover{
6166
6168
  background-color:var(--modal-close-button-on-color-background-hover);
6167
6169
  }
6168
- .bp_modal_module_close--75897.bp_modal_module_onColor--75897:active{
6170
+ .bp_modal_module_close--bc07b.bp_modal_module_onColor--bc07b:active{
6169
6171
  background-color:var(--modal-close-button-on-color-background-pressed);
6170
6172
  }
6171
6173
 
6172
- .bp_modal_module_content--75897 .bp_modal_module_backButton--75897{
6174
+ .bp_modal_module_content--bc07b .bp_modal_module_backButton--bc07b{
6173
6175
  color:var(--modal-back-button-color);
6174
6176
  margin-block-start:var(--modal-back-button-margin-top-start);
6175
6177
  margin-inline-start:var(--modal-back-button-margin-inline-start);
6176
6178
  }
6177
6179
  @media (width > 459px){
6178
- .bp_modal_module_content--75897 .bp_modal_module_backButton--75897{
6180
+ .bp_modal_module_content--bc07b .bp_modal_module_backButton--bc07b{
6179
6181
  height:var(--modal-back-button-size-non-fullscreen);
6180
6182
  width:var(--modal-back-button-size-non-fullscreen);
6181
6183
  }
6182
6184
  }
6183
6185
 
6184
- .bp_modal_module_modalHeader--75897{
6186
+ .bp_modal_module_modalHeader--bc07b{
6185
6187
  display:flex;
6186
6188
  }
6187
6189
 
6188
- .bp_modal_module_modalTitle--75897{
6190
+ .bp_modal_module_modalTitle--bc07b{
6189
6191
  display:flex;
6190
6192
  flex-direction:column;
6191
6193
  gap:var(--modal-title-gap);
@@ -6193,24 +6195,25 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6193
6195
  padding:var(--modal-title-padding);
6194
6196
  }
6195
6197
  @media (width > 459px){
6196
- .bp_modal_module_modalTitle--75897{
6198
+ .bp_modal_module_modalTitle--bc07b{
6197
6199
  padding:var(--modal-title-padding-non-fullscreen);
6198
6200
  }
6199
6201
  }
6200
6202
 
6201
- .bp_modal_module_body--75897{
6202
- padding:var(--modal-body-padding);
6203
+ .bp_modal_module_body--bc07b{
6204
+ color:var(--modal-body-text-color);
6205
+ padding:var(--modal-body-padding-fullscreen);
6203
6206
  }
6204
6207
  @media (width > 459px){
6205
- .bp_modal_module_body--75897{
6208
+ .bp_modal_module_body--bc07b{
6206
6209
  padding:var(--modal-body-padding-non-fullscreen);
6207
6210
  }
6208
6211
  }
6209
6212
 
6210
- .bp_modal_module_headerDividerLine--75897{
6213
+ .bp_modal_module_headerDividerLine--bc07b{
6211
6214
  position:relative;
6212
6215
  }
6213
- .bp_modal_module_headerDividerLine--75897::after{
6216
+ .bp_modal_module_headerDividerLine--bc07b::after{
6214
6217
  border-bottom:var(--modal-divider-line-border);
6215
6218
  bottom:0;
6216
6219
  content:"";
@@ -6219,16 +6222,16 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6219
6222
  right:var(--modal-divider-line-offset-right);
6220
6223
  }
6221
6224
  @media (width > 459px){
6222
- .bp_modal_module_headerDividerLine--75897::after{
6225
+ .bp_modal_module_headerDividerLine--bc07b::after{
6223
6226
  left:var(--modal-divider-line-offset-left-non-fullscreen);
6224
6227
  right:var(--modal-divider-line-offset-right-non-fullscreen);
6225
6228
  }
6226
6229
  }
6227
6230
 
6228
- .bp_modal_module_footerDividerLine--75897{
6231
+ .bp_modal_module_footerDividerLine--bc07b{
6229
6232
  position:relative;
6230
6233
  }
6231
- .bp_modal_module_footerDividerLine--75897::before{
6234
+ .bp_modal_module_footerDividerLine--bc07b::before{
6232
6235
  border-bottom:var(--modal-divider-line-border);
6233
6236
  content:"";
6234
6237
  left:var(--modal-divider-line-offset-left);
@@ -6237,28 +6240,28 @@ table.bp_inline_table_module_inlineTable--14908[data-modern=true] td:last-child,
6237
6240
  top:0;
6238
6241
  }
6239
6242
  @media (width > 459px){
6240
- .bp_modal_module_footerDividerLine--75897::before{
6243
+ .bp_modal_module_footerDividerLine--bc07b::before{
6241
6244
  left:var(--modal-divider-line-offset-left-non-fullscreen);
6242
6245
  right:var(--modal-divider-line-offset-right-non-fullscreen);
6243
6246
  }
6244
6247
  }
6245
6248
 
6246
- .bp_modal_module_footer--75897{
6249
+ .bp_modal_module_footer--bc07b{
6247
6250
  display:flex;
6248
6251
  justify-content:flex-end;
6249
6252
  padding:var(--modal-footer-padding);
6250
6253
  }
6251
6254
  @media (width > 459px){
6252
- .bp_modal_module_footer--75897{
6255
+ .bp_modal_module_footer--bc07b{
6253
6256
  padding:var(--modal-footer-padding-non-fullscreen);
6254
6257
  }
6255
6258
  }
6256
6259
 
6257
- .bp_modal_module_footerButton--75897 + .bp_modal_module_footerButton--75897{
6260
+ .bp_modal_module_footerButton--bc07b + .bp_modal_module_footerButton--bc07b{
6258
6261
  margin-inline-start:var(--modal-footer-button-margin-inline-start);
6259
6262
  }
6260
6263
 
6261
- @keyframes bp_modal_module_popup_bounce_in--75897{
6264
+ @keyframes bp_modal_module_popup_bounce_in--bc07b{
6262
6265
  0%{
6263
6266
  transform:scale3d(.1, .1, 1);
6264
6267
  }
@@ -7394,7 +7397,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7394
7397
  fill:currentColor;
7395
7398
  }
7396
7399
 
7397
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverMainContent--195db,.bp_popover_module_popoverContentContainer--195db.bp_popover_module_accessibilitySmallBreakpoint--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverScrollContainer--195db{
7400
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverMainContent--12858,.bp_popover_module_popoverContentContainer--12858.bp_popover_module_accessibilitySmallBreakpoint--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverScrollContainer--12858{
7398
7401
  margin-inline-end:var(--scroll-mask-margin-inline-end);
7399
7402
  mask-image:var(--scroll-mask-mask-image);
7400
7403
  mask-position:var(--scroll-mask-mask-position);
@@ -7404,7 +7407,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7404
7407
  transition:var(--scroll-mask-transition);
7405
7408
  }
7406
7409
 
7407
- .bp_popover_module_popoverContentContainer--195db[data-modern=false]{
7410
+ .bp_popover_module_popoverContentContainer--12858[data-modern=false]{
7408
7411
  --scroll-mask-padding-right:var(--space-4);
7409
7412
  --scroll-mask-overflow:auto;
7410
7413
  --scroll-mask-transition:mask-position var(--animation-duration-3), -webkit-mask-position var(--animation-duration-3);
@@ -7414,6 +7417,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7414
7417
  --scroll-mask-mask-position:left bottom;
7415
7418
  --popover-card-margin-block:var(--space-1);
7416
7419
  --popover-card-box-shadow:var(--dropshadow-3);
7420
+ --popover-content-text-color:var(--text-text-on-light);
7417
7421
  --popover-main-content-inner-container-padding:var(--space-3);
7418
7422
  --popover-scroll-container-small-breakpoint-max-height:min(
7419
7423
  var(
@@ -7429,7 +7433,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7429
7433
  --popover-footer-border-top:var(--border-1) solid var(--border-card-border);
7430
7434
  }
7431
7435
 
7432
- .bp_popover_module_popoverContentContainer--195db[data-modern=true]{
7436
+ .bp_popover_module_popoverContentContainer--12858[data-modern=true]{
7433
7437
  --bp-dropshadow-3:var(--dropshadow-3);
7434
7438
  --bp-animation-duration-3:var(--animation-duration-3);
7435
7439
  --scroll-mask-padding-right:var(--bp-space-040);
@@ -7441,6 +7445,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7441
7445
  --scroll-mask-mask-position:left bottom;
7442
7446
  --popover-card-margin-block:var(--bp-space-010);
7443
7447
  --popover-card-box-shadow:var(--bp-dropshadow-3);
7448
+ --popover-content-text-color:var(--bp-text-text-on-light);
7444
7449
  --popover-main-content-inner-container-padding:var(--bp-space-030);
7445
7450
  --popover-scroll-container-small-breakpoint-max-height:min(
7446
7451
  var(
@@ -7456,43 +7461,47 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7456
7461
  --popover-footer-border-top:var(--bp-border-01) solid var(--bp-border-card-border);
7457
7462
  }
7458
7463
 
7459
- .bp_popover_module_popoverContentContainer--195db{
7464
+ .bp_popover_module_popoverContentContainer--12858{
7460
7465
  max-width:320px;
7461
7466
  z-index:var(--z-index-popover);
7462
7467
  }
7463
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverCard--195db{
7468
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverCard--12858{
7464
7469
  box-shadow:var(--popover-card-box-shadow);
7465
7470
  margin-block:var(--popover-card-margin-block);
7466
7471
  }
7467
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverMainContent--195db:hover{
7472
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverMainContent--12858{
7473
+ color:var(--popover-content-text-color);
7474
+ }
7475
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverMainContent--12858:hover{
7468
7476
  mask-position:left top;
7469
7477
  }
7470
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverMainContent--195db .bp_popover_module_popoverMainContentOuterContainer--195db{
7478
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverMainContent--12858 .bp_popover_module_popoverMainContentOuterContainer--12858{
7471
7479
  max-height:inherit;
7472
7480
  }
7473
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverMainContent--195db .bp_popover_module_popoverMainContentOuterContainer--195db .bp_popover_module_popoverMainContentInnerContainerPadding--195db{
7481
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverMainContent--12858 .bp_popover_module_popoverMainContentOuterContainer--12858 .bp_popover_module_popoverMainContentInnerContainerPadding--12858{
7474
7482
  padding-block-end:var(--popover-main-content-inner-container-padding);
7475
7483
  }
7476
- .bp_popover_module_popoverContentContainer--195db.bp_popover_module_accessibilitySmallBreakpoint--195db{
7484
+ .bp_popover_module_popoverContentContainer--12858.bp_popover_module_accessibilitySmallBreakpoint--12858{
7477
7485
  max-height:var(--radix-popover-content-available-height);
7478
7486
  }
7479
- .bp_popover_module_popoverContentContainer--195db.bp_popover_module_accessibilitySmallBreakpoint--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverScrollContainer--195db{
7487
+ .bp_popover_module_popoverContentContainer--12858.bp_popover_module_accessibilitySmallBreakpoint--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverScrollContainer--12858{
7488
+ color:var(--popover-content-text-color);
7480
7489
  max-height:var(--popover-scroll-container-small-breakpoint-max-height);
7481
7490
  padding-block:var(--popover-scroll-container-small-breakpoint-padding-block);
7482
7491
  }
7483
- .bp_popover_module_popoverContentContainer--195db.bp_popover_module_accessibilitySmallBreakpoint--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverScrollContainer--195db:hover{
7492
+ .bp_popover_module_popoverContentContainer--12858.bp_popover_module_accessibilitySmallBreakpoint--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverScrollContainer--12858:hover{
7484
7493
  mask-position:left top;
7485
7494
  }
7486
- .bp_popover_module_popoverContentContainer--195db.bp_popover_module_accessibilitySmallBreakpoint--195db .bp_popover_module_popoverCard--195db .bp_popover_module_popoverScrollContainer--195db .bp_popover_module_popoverMainContent--195db{
7495
+ .bp_popover_module_popoverContentContainer--12858.bp_popover_module_accessibilitySmallBreakpoint--12858 .bp_popover_module_popoverCard--12858 .bp_popover_module_popoverScrollContainer--12858 .bp_popover_module_popoverMainContent--12858{
7487
7496
  max-height:-moz-fit-content;
7488
7497
  max-height:fit-content;
7489
7498
  }
7490
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverFooter--195db{
7499
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverFooter--12858{
7491
7500
  margin-inline:var(--popover-footer-margin-inline);
7492
7501
  padding-block-start:var(--popover-footer-padding-block-start);
7493
7502
  padding-inline:var(--popover-footer-padding-inline);
7494
7503
  }
7495
- .bp_popover_module_popoverContentContainer--195db .bp_popover_module_popoverFooter--195db.bp_popover_module_popoverFooterTopBorder--195db{
7504
+ .bp_popover_module_popoverContentContainer--12858 .bp_popover_module_popoverFooter--12858.bp_popover_module_popoverFooterTopBorder--12858{
7496
7505
  border-top:var(--popover-footer-border-top);
7497
7506
  }
7498
7507
  .bp_select_menu_grid_module_grid--6e766{
@@ -1,8 +1,10 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { XMark } from '@box/blueprint-web-assets/icons/Fill';
2
+ import { XMark as XMark$1 } from '@box/blueprint-web-assets/icons/Fill';
3
+ import { XMark } from '@box/blueprint-web-assets/icons/Medium';
3
4
  import * as RadixDialog from '@radix-ui/react-dialog';
4
5
  import clsx from 'clsx';
5
6
  import { forwardRef } from 'react';
7
+ import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
6
8
  import { IconButton } from '../primitives/icon-button/icon-button.js';
7
9
  import { useMedia } from '../utils/useMedia.js';
8
10
  import styles from './modal.module.js';
@@ -16,11 +18,15 @@ const smallViewportProps = {
16
18
  const ModalClose = /*#__PURE__*/forwardRef(({
17
19
  'aria-label': ariaLabel,
18
20
  className,
19
- icon = XMark,
21
+ icon,
20
22
  size = 'large',
21
23
  variant = 'default',
22
24
  ...rest
23
25
  }, forwardedRef) => {
26
+ const {
27
+ enableModernizedComponents
28
+ } = useBlueprintModernization();
29
+ const defaultIcon = enableModernizedComponents ? XMark : XMark$1;
24
30
  // Change IconButton size for Mobile (only when IconButton size is large)
25
31
  // TODO: change to media query tokens
26
32
  const breakpoint = 459;
@@ -36,7 +42,7 @@ const ModalClose = /*#__PURE__*/forwardRef(({
36
42
  className: clsx(styles.close, {
37
43
  [styles.onColor]: variant === 'onColor' && !isMobile
38
44
  }, className),
39
- icon: icon,
45
+ icon: icon || defaultIcon,
40
46
  size: size,
41
47
  ...finalProps
42
48
  })
@@ -3,7 +3,7 @@ import * as RadixDialog from '@radix-ui/react-dialog';
3
3
  * Contains content to be rendered in the open modal.
4
4
  */
5
5
  export declare const ModalContent: import("react").ForwardRefExoticComponent<RadixDialog.DialogContentProps & Pick<RadixDialog.DialogPortalProps, "container"> & {
6
- size: "small" | "medium" | "large" | "xlarge";
6
+ size: import("./types").ModalContentSize;
7
7
  } & {
8
8
  'data-testid'?: string;
9
9
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -26,7 +26,7 @@ export declare const Modal: (({ children, modal, ...props }: ModalProps) => impo
26
26
  Body: import("react").ForwardRefExoticComponent<import("./types").ModalBodyProps & import("react").RefAttributes<HTMLDivElement>>;
27
27
  Close: import("react").ForwardRefExoticComponent<import("./types").ModalCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
28
28
  Content: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogContentProps & Pick<import("@radix-ui/react-dialog").DialogPortalProps, "container"> & {
29
- size: "small" | "medium" | "large" | "xlarge";
29
+ size: import("./types").ModalContentSize;
30
30
  } & {
31
31
  'data-testid'?: string;
32
32
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"overlay":"bp_modal_module_overlay--75897","content":"bp_modal_module_content--75897","popup_bounce_in":"bp_modal_module_popup_bounce_in--75897","smallSizeModal":"bp_modal_module_smallSizeModal--75897","mediumSizeModal":"bp_modal_module_mediumSizeModal--75897","largeSizeModal":"bp_modal_module_largeSizeModal--75897","xlargeSizeModal":"bp_modal_module_xlargeSizeModal--75897","scrollableContainer":"bp_modal_module_scrollableContainer--75897","close":"bp_modal_module_close--75897","onColor":"bp_modal_module_onColor--75897","backButton":"bp_modal_module_backButton--75897","modalHeader":"bp_modal_module_modalHeader--75897","modalTitle":"bp_modal_module_modalTitle--75897","body":"bp_modal_module_body--75897","headerDividerLine":"bp_modal_module_headerDividerLine--75897","footerDividerLine":"bp_modal_module_footerDividerLine--75897","footer":"bp_modal_module_footer--75897","footerButton":"bp_modal_module_footerButton--75897"};
2
+ var styles = {"overlay":"bp_modal_module_overlay--bc07b","content":"bp_modal_module_content--bc07b","popup_bounce_in":"bp_modal_module_popup_bounce_in--bc07b","smallSizeModal":"bp_modal_module_smallSizeModal--bc07b","mediumSizeModal":"bp_modal_module_mediumSizeModal--bc07b","largeSizeModal":"bp_modal_module_largeSizeModal--bc07b","xlargeSizeModal":"bp_modal_module_xlargeSizeModal--bc07b","scrollableContainer":"bp_modal_module_scrollableContainer--bc07b","close":"bp_modal_module_close--bc07b","onColor":"bp_modal_module_onColor--bc07b","backButton":"bp_modal_module_backButton--bc07b","modalHeader":"bp_modal_module_modalHeader--bc07b","modalTitle":"bp_modal_module_modalTitle--bc07b","body":"bp_modal_module_body--bc07b","headerDividerLine":"bp_modal_module_headerDividerLine--bc07b","footerDividerLine":"bp_modal_module_footerDividerLine--bc07b","footer":"bp_modal_module_footer--bc07b","footerButton":"bp_modal_module_footerButton--bc07b"};
3
3
 
4
4
  export { styles as default };
@@ -2,13 +2,14 @@ import { type DialogContentProps, type DialogPortalProps, type DialogProps, type
2
2
  import { type FunctionComponent, type HTMLAttributes, type PropsWithChildren, type ReactElement, type ReactNode, type SVGProps } from 'react';
3
3
  import { type IconButtonProps } from '../primitives/icon-button';
4
4
  export type ModalProps = DialogProps;
5
+ /** The size of the modal content.
6
+ * small: max-width: 460px
7
+ * medium: max-width: 540px
8
+ * large: max-width: 620px
9
+ * xlarge: max-width: 768px */
10
+ export type ModalContentSize = 'small' | 'medium' | 'large' | 'xlarge';
5
11
  export type ModalContentProps = DialogContentProps & Pick<DialogPortalProps, 'container'> & {
6
- /** The size of the modal content.
7
- * small: max-width: 460px
8
- * medium: max-width: 540px
9
- * large: max-width: 620px
10
- * xlarge: max-width: 768px */
11
- size: 'small' | 'medium' | 'large' | 'xlarge';
12
+ size: ModalContentSize;
12
13
  };
13
14
  export interface ModalCloseProps {
14
15
  /** The aria-label for the Close element */
@@ -1,4 +1,4 @@
1
1
  import '../../index.css';
2
- var styles = {"popoverContentContainer":"bp_popover_module_popoverContentContainer--195db","accessibilitySmallBreakpoint":"bp_popover_module_accessibilitySmallBreakpoint--195db","popoverCard":"bp_popover_module_popoverCard--195db","popoverScrollContainer":"bp_popover_module_popoverScrollContainer--195db","popoverMainContent":"bp_popover_module_popoverMainContent--195db","popoverMainContentOuterContainer":"bp_popover_module_popoverMainContentOuterContainer--195db","popoverMainContentInnerContainerPadding":"bp_popover_module_popoverMainContentInnerContainerPadding--195db","popoverFooter":"bp_popover_module_popoverFooter--195db","popoverFooterTopBorder":"bp_popover_module_popoverFooterTopBorder--195db"};
2
+ var styles = {"popoverContentContainer":"bp_popover_module_popoverContentContainer--12858","accessibilitySmallBreakpoint":"bp_popover_module_accessibilitySmallBreakpoint--12858","popoverCard":"bp_popover_module_popoverCard--12858","popoverScrollContainer":"bp_popover_module_popoverScrollContainer--12858","popoverMainContent":"bp_popover_module_popoverMainContent--12858","popoverMainContentOuterContainer":"bp_popover_module_popoverMainContentOuterContainer--12858","popoverMainContentInnerContainerPadding":"bp_popover_module_popoverMainContentInnerContainerPadding--12858","popoverFooter":"bp_popover_module_popoverFooter--12858","popoverFooterTopBorder":"bp_popover_module_popoverFooterTopBorder--12858"};
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": "12.69.1",
3
+ "version": "12.70.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {