@box/blueprint-web 12.87.0 → 12.88.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.
@@ -269,13 +269,13 @@
269
269
  }
270
270
  }
271
271
 
272
- .bp_base_button_module_button--72712[data-modern=true]{
272
+ .bp_base_button_module_button--cc46d[data-modern=true]{
273
273
  --button-border-radius:var(--bp-radius-10);
274
274
  }
275
- .bp_base_button_module_button--72712[data-modern=true]:not(:disabled)[data-focus-visible]{
275
+ .bp_base_button_module_button--cc46d[data-modern=true]:not(:disabled)[data-focus-visible]{
276
276
  box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--bp-outline-focus-on-light);
277
277
  }
278
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_primary--72712{
278
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_primary--cc46d{
279
279
  --button-color:var(--bp-text-text-on-dark);
280
280
  --button-background:var(--bp-surface-surface-brand);
281
281
  --button-border:var(--bp-border-01) solid var(--bp-surface-surface-brand);
@@ -284,7 +284,7 @@
284
284
  --button-active-background:var(--bp-surface-surface-brand-pressed);
285
285
  --button-active-border:var(--bp-border-01) solid var(--bp-surface-surface-brand-pressed);
286
286
  }
287
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_secondary--72712{
287
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_secondary--cc46d{
288
288
  --button-color:var(--bp-text-text-on-light);
289
289
  --button-background:var(--bp-surface-cta-surface-secondary);
290
290
  --button-border:var(--bp-border-01) solid var(--bp-border-cta-border-secondary);
@@ -294,14 +294,14 @@
294
294
  --button-active-border:var(--bp-border-01) solid var(--bp-border-cta-border-secondary);
295
295
  --button-backdrop-filter:blur(16px);
296
296
  }
297
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_tertiary--72712{
297
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_tertiary--cc46d{
298
298
  --button-color:var(--bp-text-cta-link);
299
299
  --button-background:var(--bp-surface-cta-surface-tertiary);
300
300
  --button-focus-or-hover-background:var(--bp-surface-cta-surface-tertiary-hover);
301
301
  --button-active-background:var(--bp-surface-cta-surface-tertiary-pressed);
302
302
  --button-backdrop-filter:blur(16px);
303
303
  }
304
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_outline--72712{
304
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_outline--cc46d{
305
305
  --button-color:var(--bp-text-text-on-light);
306
306
  --button-background:var(--bp-surface-cta-surface-secondary);
307
307
  --button-border:var(--bp-border-01) solid var(--bp-border-cta-border-high-contrast);
@@ -311,40 +311,42 @@
311
311
  --button-active-border:var(--bp-border-01) solid var(--bp-border-cta-border-high-contrast);
312
312
  --button-backdrop-filter:blur(16px);
313
313
  }
314
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_small--72712{
314
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_small--cc46d{
315
315
  --button-small-gap:var(--bp-space-010);
316
316
  --button-small-min-height:var(--bp-size-080);
317
317
  --button-small-padding:0 var(--bp-size-030);
318
318
  }
319
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_small--72712.bp_base_button_module_isIconButton--72712{
319
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_small--cc46d.bp_base_button_module_isIconButton--cc46d{
320
320
  --icon-button-small-width:var(--bp-size-080);
321
321
  --icon-button-small-height:var(--bp-size-080);
322
322
  --icon-button-small-padding:0 calc((var(--bp-size-080) - var(--bp-size-040))/2);
323
323
  }
324
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_small--72712.bp_base_button_module_isTextWithIconButton--72712{
324
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_small--cc46d.bp_base_button_module_isTextWithIconButton--cc46d{
325
325
  --button-small-padding:0 0.625rem 0 var(--bp-space-030);
326
326
  }
327
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_large--72712{
327
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_large--cc46d{
328
328
  --button-large-gap:var(--bp-space-020);
329
329
  --button-large-min-height:var(--bp-size-100);
330
330
  --button-large-padding:0 var(--bp-size-040);
331
+ --button-large-font-size:var(--body-large-bold-font-size);
332
+ --button-large-line-height:var(--body-large-bold-line-height);
331
333
  }
332
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_large--72712.bp_base_button_module_isIconButton--72712{
334
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_large--cc46d.bp_base_button_module_isIconButton--cc46d{
333
335
  --icon-button-large-width:var(--bp-size-100);
334
336
  --icon-button-large-height:var(--bp-size-100);
335
337
  --icon-button-large-padding:0 calc((var(--bp-size-100) - var(--bp-size-050))/2);
336
338
  }
337
- .bp_base_button_module_button--72712[data-modern=true].bp_base_button_module_large--72712.bp_base_button_module_isTextWithIconButton--72712{
339
+ .bp_base_button_module_button--cc46d[data-modern=true].bp_base_button_module_large--cc46d.bp_base_button_module_isTextWithIconButton--cc46d{
338
340
  --button-large-padding:0 0.875rem 0 var(--bp-space-040);
339
341
  }
340
342
 
341
- .bp_base_button_module_button--72712[data-modern=false]{
343
+ .bp_base_button_module_button--cc46d[data-modern=false]{
342
344
  --button-border-radius:var(--radius-2);
343
345
  }
344
- .bp_base_button_module_button--72712[data-modern=false]:not(:disabled)[data-focus-visible]{
346
+ .bp_base_button_module_button--cc46d[data-modern=false]:not(:disabled)[data-focus-visible]{
345
347
  box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--outline-focus-on-light);
346
348
  }
347
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_primary--72712{
349
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_primary--cc46d{
348
350
  --button-color:var(--text-text-brand-on-color);
349
351
  --button-background:var(--surface-surface-brand);
350
352
  --button-border:var(--border-1) solid var(--surface-surface-brand);
@@ -353,7 +355,7 @@
353
355
  --button-active-background:var(--surface-surface-brand-pressed);
354
356
  --button-active-border:var(--border-1) solid var(--surface-surface-brand-pressed);
355
357
  }
356
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_secondary--72712{
358
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_secondary--cc46d{
357
359
  --button-color:var(--text-text-on-light);
358
360
  --button-background:var(--surface-cta-surface-secondary);
359
361
  --button-border:var(--border-1) solid var(--border-cta-border-secondary);
@@ -363,7 +365,7 @@
363
365
  --button-active-border:var(--border-1) solid var(--border-cta-border-secondary-pressed);
364
366
  --button-backdrop-filter:none;
365
367
  }
366
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_tertiary--72712{
368
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_tertiary--cc46d{
367
369
  --button-color:var(--text-cta-link);
368
370
  --button-background:#0000;
369
371
  --button-border:var(--border-1) solid #0000;
@@ -371,7 +373,7 @@
371
373
  --button-active-background:var(--surface-cta-surface-tertiary-pressed);
372
374
  --button-backdrop-filter:none;
373
375
  }
374
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_outline--72712{
376
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_outline--cc46d{
375
377
  --button-color:var(--text-text-on-light);
376
378
  --button-background:var(--surface-cta-surface-outline);
377
379
  --button-border:var(--border-1) solid var(--border-cta-border-outline);
@@ -381,34 +383,36 @@
381
383
  --button-active-border:var(--border-1) solid var(--border-cta-border-outline-pressed);
382
384
  --button-backdrop-filter:none;
383
385
  }
384
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_small--72712{
386
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_small--cc46d{
385
387
  --button-small-gap:var(--space-1);
386
388
  --button-small-min-height:var(--size-8);
387
389
  --button-small-padding:0 var(--space-4);
388
390
  }
389
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_small--72712.bp_base_button_module_isIconButton--72712{
391
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_small--cc46d.bp_base_button_module_isIconButton--cc46d{
390
392
  --icon-button-small-width:var(--size-8);
391
393
  --icon-button-small-height:var(--size-8);
392
394
  --icon-button-small-padding:0 calc((var(--space-8) - var(--space-4))/2);
393
395
  }
394
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_small--72712.bp_base_button_module_isTextWithIconButton--72712{
396
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_small--cc46d.bp_base_button_module_isTextWithIconButton--cc46d{
395
397
  --button-small-padding:0 var(--space-3);
396
398
  }
397
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_large--72712{
399
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_large--cc46d{
398
400
  --button-large-gap:var(--space-2);
399
401
  --button-large-min-height:var(--size-10);
400
402
  --button-large-padding:0 var(--space-4);
403
+ --button-large-font-size:var(--body-default-bold-font-size);
404
+ --button-large-line-height:var(--body-default-bold-line-height);
401
405
  }
402
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_large--72712.bp_base_button_module_isIconButton--72712{
406
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_large--cc46d.bp_base_button_module_isIconButton--cc46d{
403
407
  --icon-button-large-width:var(--size-10);
404
408
  --icon-button-large-height:var(--size-10);
405
409
  --icon-button-large-padding:0 calc((var(--space-10) - var(--space-5))/2);
406
410
  }
407
- .bp_base_button_module_button--72712[data-modern=false].bp_base_button_module_large--72712.bp_base_button_module_isTextWithIconButton--72712{
411
+ .bp_base_button_module_button--cc46d[data-modern=false].bp_base_button_module_large--cc46d.bp_base_button_module_isTextWithIconButton--cc46d{
408
412
  --button-large-padding:0 var(--space-4);
409
413
  }
410
414
 
411
- .bp_base_button_module_button--72712{
415
+ .bp_base_button_module_button--cc46d{
412
416
  border-radius:var(--button-border-radius);
413
417
  cursor:pointer;
414
418
  font-family:var(--body-default-bold-font-family);
@@ -425,98 +429,100 @@
425
429
  user-select:none;
426
430
  white-space:nowrap;
427
431
  }
428
- .bp_base_button_module_button--72712,.bp_base_button_module_button--72712 .bp_base_button_module_icon--72712{
432
+ .bp_base_button_module_button--cc46d,.bp_base_button_module_button--cc46d .bp_base_button_module_icon--cc46d{
429
433
  align-items:center;
430
434
  display:flex;
431
435
  }
432
- .bp_base_button_module_button--72712:disabled{
436
+ .bp_base_button_module_button--cc46d:disabled{
433
437
  opacity:.3;
434
438
  }
435
- .bp_base_button_module_button--72712.bp_base_button_module_primary--72712{
439
+ .bp_base_button_module_button--cc46d.bp_base_button_module_primary--cc46d{
436
440
  background:var(--button-background);
437
441
  border:var(--button-border);
438
442
  color:var(--button-color);
439
443
  }
440
- .bp_base_button_module_button--72712.bp_base_button_module_primary--72712:not(:disabled):hover,.bp_base_button_module_button--72712.bp_base_button_module_primary--72712:not(:disabled)[data-focus-visible]{
444
+ .bp_base_button_module_button--cc46d.bp_base_button_module_primary--cc46d:not(:disabled):hover,.bp_base_button_module_button--cc46d.bp_base_button_module_primary--cc46d:not(:disabled)[data-focus-visible]{
441
445
  background:var(--button-focus-or-hover-background);
442
446
  border:var(--button-focus-or-hover-border);
443
447
  }
444
- .bp_base_button_module_button--72712.bp_base_button_module_primary--72712:not(:disabled):active{
448
+ .bp_base_button_module_button--cc46d.bp_base_button_module_primary--cc46d:not(:disabled):active{
445
449
  background:var(--button-active-background);
446
450
  border:var(--button-active-border);
447
451
  }
448
- .bp_base_button_module_button--72712.bp_base_button_module_secondary--72712{
452
+ .bp_base_button_module_button--cc46d.bp_base_button_module_secondary--cc46d{
449
453
  backdrop-filter:var(--button-backdrop-filter);
450
454
  background:var(--button-background);
451
455
  border:var(--button-border);
452
456
  color:var(--button-color);
453
457
  }
454
- .bp_base_button_module_button--72712.bp_base_button_module_secondary--72712:not(:disabled):hover,.bp_base_button_module_button--72712.bp_base_button_module_secondary--72712:not(:disabled)[data-focus-visible]{
458
+ .bp_base_button_module_button--cc46d.bp_base_button_module_secondary--cc46d:not(:disabled):hover,.bp_base_button_module_button--cc46d.bp_base_button_module_secondary--cc46d:not(:disabled)[data-focus-visible]{
455
459
  background:var(--button-focus-or-hover-background);
456
460
  border:var(--button-focus-or-hover-border);
457
461
  }
458
- .bp_base_button_module_button--72712.bp_base_button_module_secondary--72712:not(:disabled):active{
462
+ .bp_base_button_module_button--cc46d.bp_base_button_module_secondary--cc46d:not(:disabled):active{
459
463
  background:var(--button-active-background);
460
464
  border:var(--button-active-border);
461
465
  }
462
- .bp_base_button_module_button--72712.bp_base_button_module_tertiary--72712{
466
+ .bp_base_button_module_button--cc46d.bp_base_button_module_tertiary--cc46d{
463
467
  backdrop-filter:var(--button-backdrop-filter);
464
468
  background:var(--button-background);
465
469
  border:var(--button-border);
466
470
  color:var(--button-color);
467
471
  }
468
- .bp_base_button_module_button--72712.bp_base_button_module_tertiary--72712:not(:disabled):hover,.bp_base_button_module_button--72712.bp_base_button_module_tertiary--72712:not(:disabled)[data-focus-visible]{
472
+ .bp_base_button_module_button--cc46d.bp_base_button_module_tertiary--cc46d:not(:disabled):hover,.bp_base_button_module_button--cc46d.bp_base_button_module_tertiary--cc46d:not(:disabled)[data-focus-visible]{
469
473
  background:var(--button-focus-or-hover-background);
470
474
  }
471
- .bp_base_button_module_button--72712.bp_base_button_module_tertiary--72712:not(:disabled):active{
475
+ .bp_base_button_module_button--cc46d.bp_base_button_module_tertiary--cc46d:not(:disabled):active{
472
476
  background:var(--button-active-background);
473
477
  }
474
- .bp_base_button_module_button--72712.bp_base_button_module_outline--72712{
478
+ .bp_base_button_module_button--cc46d.bp_base_button_module_outline--cc46d{
475
479
  backdrop-filter:var(--button-backdrop-filter);
476
480
  background:var(--button-background);
477
481
  border:var(--button-border);
478
482
  color:var(--button-color);
479
483
  }
480
- .bp_base_button_module_button--72712.bp_base_button_module_outline--72712:not(:disabled):hover,.bp_base_button_module_button--72712.bp_base_button_module_outline--72712:not(:disabled)[data-focus-visible]{
484
+ .bp_base_button_module_button--cc46d.bp_base_button_module_outline--cc46d:not(:disabled):hover,.bp_base_button_module_button--cc46d.bp_base_button_module_outline--cc46d:not(:disabled)[data-focus-visible]{
481
485
  background:var(--button-focus-or-hover-background);
482
486
  border:var(--button-focus-or-hover-border);
483
487
  }
484
- .bp_base_button_module_button--72712.bp_base_button_module_outline--72712:not(:disabled):active{
488
+ .bp_base_button_module_button--cc46d.bp_base_button_module_outline--cc46d:not(:disabled):active{
485
489
  background:var(--button-active-background);
486
490
  border:var(--button-active-border);
487
491
  }
488
- .bp_base_button_module_button--72712.bp_base_button_module_small--72712{
492
+ .bp_base_button_module_button--cc46d.bp_base_button_module_small--cc46d{
489
493
  gap:var(--button-small-gap);
490
494
  min-height:var(--button-small-min-height);
491
495
  padding:var(--button-small-padding);
492
496
  }
493
- .bp_base_button_module_button--72712.bp_base_button_module_small--72712.bp_base_button_module_isIconButton--72712{
497
+ .bp_base_button_module_button--cc46d.bp_base_button_module_small--cc46d.bp_base_button_module_isIconButton--cc46d{
494
498
  height:var(--icon-button-small-height);
495
499
  min-height:unset;
496
500
  padding:var(--icon-button-small-padding);
497
501
  width:var(--icon-button-small-width);
498
502
  }
499
- .bp_base_button_module_button--72712.bp_base_button_module_small--72712.bp_base_button_module_isTextWithIconButton--72712{
503
+ .bp_base_button_module_button--cc46d.bp_base_button_module_small--cc46d.bp_base_button_module_isTextWithIconButton--cc46d{
500
504
  padding:var(--button-small-padding);
501
505
  }
502
- .bp_base_button_module_button--72712.bp_base_button_module_large--72712{
506
+ .bp_base_button_module_button--cc46d.bp_base_button_module_large--cc46d{
507
+ font-size:var(--button-large-font-size);
503
508
  gap:var(--button-large-gap);
509
+ line-height:var(--button-large-line-height);
504
510
  min-height:var(--button-large-min-height);
505
511
  padding:var(--button-large-padding);
506
512
  }
507
- .bp_base_button_module_button--72712.bp_base_button_module_large--72712.bp_base_button_module_isIconButton--72712{
513
+ .bp_base_button_module_button--cc46d.bp_base_button_module_large--cc46d.bp_base_button_module_isIconButton--cc46d{
508
514
  height:var(--icon-button-large-height);
509
515
  padding:var(--icon-button-large-padding);
510
516
  width:var(--icon-button-large-width);
511
517
  }
512
- .bp_base_button_module_button--72712.bp_base_button_module_large--72712.bp_base_button_module_isTextWithIconButton--72712{
518
+ .bp_base_button_module_button--cc46d.bp_base_button_module_large--cc46d.bp_base_button_module_isTextWithIconButton--cc46d{
513
519
  padding:var(--button-large-padding);
514
520
  }
515
- .bp_base_button_module_button--72712.bp_base_button_module_hide--72712{
521
+ .bp_base_button_module_button--cc46d.bp_base_button_module_hide--cc46d{
516
522
  pointer-events:none;
517
523
  position:relative;
518
524
  }
519
- .bp_base_button_module_button--72712.bp_base_button_module_hide--72712 span{
525
+ .bp_base_button_module_button--cc46d.bp_base_button_module_hide--cc46d span{
520
526
  color:#0000;
521
527
  opacity:0;
522
528
  }
@@ -7573,7 +7579,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7573
7579
  white-space:nowrap;
7574
7580
  }
7575
7581
 
7576
- .bp_notification_module_viewport--055d9{
7582
+ .bp_notification_module_viewport--33c6e{
7577
7583
  --notification-viewport-space:var(--space-4);
7578
7584
  --notification-viewport-item-spacing:var(--space-3);
7579
7585
  all:unset;
@@ -7588,7 +7594,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7588
7594
  z-index:2147483647;
7589
7595
  }
7590
7596
 
7591
- .bp_notification_module_root--055d9[data-modern=false]{
7597
+ .bp_notification_module_root--33c6e[data-modern=false]{
7592
7598
  --notification-padding-vertical:var(--space-3);
7593
7599
  --notification-padding-horizontal:var(--space-4);
7594
7600
  --notification-item-spacing:var(--space-3);
@@ -7607,9 +7613,10 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7607
7613
  --notification-text-color:var(--text-text-on-light);
7608
7614
  --notification-text-container-height:var(--space-8);
7609
7615
  --notification-icon-size:var(--size-8);
7616
+ --notification-icon-margin:.375rem;
7610
7617
  }
7611
7618
 
7612
- .bp_notification_module_root--055d9[data-modern=true]{
7619
+ .bp_notification_module_root--33c6e[data-modern=true]{
7613
7620
  --notification-padding-vertical:var(--bp-space-030);
7614
7621
  --notification-padding-horizontal:var(--bp-space-040);
7615
7622
  --notification-item-spacing:var(--bp-space-030);
@@ -7618,74 +7625,75 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7618
7625
  --notification-shadow:var(--dropshadow-3);
7619
7626
  --notification-background-info:var(--bp-light-blue-opacity-04);
7620
7627
  --notification-background-success:var(--bp-green-light-opacity-04);
7621
- --notification-background-warning:var(--bp-yellow-opacity-04);
7628
+ --notification-background-warning:var(--bp-yellorange-opacity-04);
7622
7629
  --notification-background-error:var(--bp-watermelon-red-opacity-04);
7623
7630
  --notification-background-overlay:var(--bp-white-opacity-90);
7624
7631
  --notification-background-blur:16px;
7625
- --notification-border-color-info:var(--bp-light-blue-opacity-30);
7626
- --notification-border-color-success:var(--bp-green-light-opacity-30);
7627
- --notification-border-color-warning:var(--bp-yellow-opacity-30);
7628
- --notification-border-color-error:var(--bp-watermelon-red-opacity-30);
7632
+ --notification-border-color-info:var(--bp-border-message-border-info-secondary);
7633
+ --notification-border-color-success:var(--bp-border-message-border-success-secondary);
7634
+ --notification-border-color-warning:var(--bp-border-message-border-warning-secondary);
7635
+ --notification-border-color-error:var(--bp-border-message-border-error-secondary);
7629
7636
  --notification-outline-focus:var(--bp-outline-focus-on-light);
7630
7637
  --notification-text-color:var(--bp-text-text-on-light);
7631
7638
  --notification-text-container-height:var(--bp-space-080);
7632
7639
  --notification-icon-size:var(--bp-size-080);
7640
+ --notification-icon-margin:.375rem;
7633
7641
  }
7634
- .bp_notification_module_root--055d9[data-modern=true].bp_notification_module_info--055d9{
7642
+ .bp_notification_module_root--33c6e[data-modern=true].bp_notification_module_info--33c6e{
7635
7643
  background:linear-gradient(0deg, var(--notification-background-info) 0, var(--notification-background-info) 100%), var(--notification-background-overlay);
7636
7644
  }
7637
- .bp_notification_module_root--055d9[data-modern=true].bp_notification_module_success--055d9{
7645
+ .bp_notification_module_root--33c6e[data-modern=true].bp_notification_module_success--33c6e{
7638
7646
  background:linear-gradient(0deg, var(--notification-background-success) 0, var(--notification-background-success) 100%), var(--notification-background-overlay);
7639
7647
  }
7640
- .bp_notification_module_root--055d9[data-modern=true].bp_notification_module_warning--055d9{
7648
+ .bp_notification_module_root--33c6e[data-modern=true].bp_notification_module_warning--33c6e{
7641
7649
  background:linear-gradient(0deg, var(--notification-background-warning) 0, var(--notification-background-warning) 100%), var(--notification-background-overlay);
7642
7650
  }
7643
- .bp_notification_module_root--055d9[data-modern=true].bp_notification_module_error--055d9{
7651
+ .bp_notification_module_root--33c6e[data-modern=true].bp_notification_module_error--33c6e{
7644
7652
  background:linear-gradient(0deg, var(--notification-background-error) 0, var(--notification-background-error) 100%), var(--notification-background-overlay);
7645
7653
  }
7646
7654
 
7647
- .bp_notification_module_root--055d9{
7655
+ .bp_notification_module_root--33c6e{
7648
7656
  backdrop-filter:blur(var(--notification-background-blur));
7649
7657
  border:var(--notification-border) solid;
7650
7658
  border-radius:var(--notification-radius);
7651
7659
  box-shadow:var(--notification-shadow);
7652
7660
  display:flex;
7653
7661
  max-width:288px;
7662
+ padding:var(--notification-padding-vertical) var(--notification-padding-horizontal);
7654
7663
  width:max-content;
7655
7664
  }
7656
7665
  @media (width > 374px){
7657
- .bp_notification_module_root--055d9{
7666
+ .bp_notification_module_root--33c6e{
7658
7667
  max-width:343px;
7659
7668
  }
7660
7669
  }
7661
7670
  @media (width > 767px){
7662
- .bp_notification_module_root--055d9{
7671
+ .bp_notification_module_root--33c6e{
7663
7672
  max-width:728px;
7664
7673
  }
7665
7674
  }
7666
7675
  @media (width > 1023px){
7667
- .bp_notification_module_root--055d9{
7676
+ .bp_notification_module_root--33c6e{
7668
7677
  max-width:848px;
7669
7678
  }
7670
7679
  }
7671
7680
  @media (width > 1219px){
7672
- .bp_notification_module_root--055d9{
7681
+ .bp_notification_module_root--33c6e{
7673
7682
  max-width:896px;
7674
7683
  }
7675
7684
  }
7676
- .bp_notification_module_root--055d9 .bp_notification_module_container--055d9{
7685
+ .bp_notification_module_root--33c6e .bp_notification_module_container--33c6e{
7677
7686
  align-items:flex-start;
7678
7687
  display:flex;
7679
7688
  gap:var(--notification-item-spacing);
7680
- padding:var(--notification-padding-vertical) 0;
7681
7689
  width:100%;
7682
7690
  }
7683
7691
  @media (width > 767px){
7684
- .bp_notification_module_root--055d9 .bp_notification_module_container--055d9{
7692
+ .bp_notification_module_root--33c6e .bp_notification_module_container--33c6e{
7685
7693
  align-items:center;
7686
7694
  }
7687
7695
  }
7688
- .bp_notification_module_root--055d9 .bp_notification_module_mobileContainer--055d9{
7696
+ .bp_notification_module_root--33c6e .bp_notification_module_mobileContainer--33c6e{
7689
7697
  align-items:left;
7690
7698
  display:flex;
7691
7699
  flex-direction:column;
@@ -7693,46 +7701,46 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7693
7701
  width:100%;
7694
7702
  }
7695
7703
  @media (width > 767px){
7696
- .bp_notification_module_root--055d9 .bp_notification_module_mobileContainer--055d9{
7704
+ .bp_notification_module_root--33c6e .bp_notification_module_mobileContainer--33c6e{
7697
7705
  align-items:center;
7698
7706
  flex-direction:row;
7699
7707
  }
7700
7708
  }
7701
- .bp_notification_module_root--055d9 .bp_notification_module_withButtons--055d9{
7709
+ .bp_notification_module_root--33c6e .bp_notification_module_withButtons--33c6e{
7702
7710
  gap:var(--notification-item-spacing);
7703
7711
  }
7704
- .bp_notification_module_root--055d9.bp_notification_module_info--055d9{
7712
+ .bp_notification_module_root--33c6e.bp_notification_module_info--33c6e{
7705
7713
  background:var(--notification-background-info);
7706
7714
  border-color:var(--notification-border-color-info);
7707
7715
  }
7708
- .bp_notification_module_root--055d9.bp_notification_module_success--055d9{
7716
+ .bp_notification_module_root--33c6e.bp_notification_module_success--33c6e{
7709
7717
  background:var(--notification-background-success);
7710
7718
  border-color:var(--notification-border-color-success);
7711
7719
  }
7712
- .bp_notification_module_root--055d9.bp_notification_module_warning--055d9{
7720
+ .bp_notification_module_root--33c6e.bp_notification_module_warning--33c6e{
7713
7721
  background:var(--notification-background-warning);
7714
7722
  border-color:var(--notification-border-color-warning);
7715
7723
  }
7716
- .bp_notification_module_root--055d9.bp_notification_module_error--055d9{
7724
+ .bp_notification_module_root--33c6e.bp_notification_module_error--33c6e{
7717
7725
  background:var(--notification-background-error);
7718
7726
  border-color:var(--notification-border-color-error);
7719
7727
  }
7720
- .bp_notification_module_root--055d9:focus-visible{
7728
+ .bp_notification_module_root--33c6e:focus-visible{
7721
7729
  box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--notification-outline-focus);
7722
7730
  outline:none;
7723
7731
  }
7724
- .bp_notification_module_root--055d9 .bp_notification_module_typeIconContainer--055d9{
7732
+ .bp_notification_module_root--33c6e .bp_notification_module_typeIconContainer--33c6e{
7725
7733
  align-items:center;
7726
7734
  display:flex;
7727
7735
  height:var(--notification-icon-size);
7728
7736
  justify-content:center;
7729
7737
  width:var(--notification-icon-size);
7730
7738
  }
7731
- .bp_notification_module_root--055d9 .bp_notification_module_typeIconContainer--055d9 .bp_notification_module_typeIcon--055d9{
7739
+ .bp_notification_module_root--33c6e .bp_notification_module_typeIconContainer--33c6e .bp_notification_module_typeIcon--33c6e{
7732
7740
  flex-shrink:0;
7733
- margin-left:var(--notification-padding-horizontal);
7741
+ margin:var(--notification-icon-margin);
7734
7742
  }
7735
- .bp_notification_module_root--055d9 .bp_notification_module_text--055d9{
7743
+ .bp_notification_module_root--33c6e .bp_notification_module_text--33c6e{
7736
7744
  align-items:center;
7737
7745
  color:var(--notification-text-color);
7738
7746
  display:flex;
@@ -7748,34 +7756,33 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
7748
7756
  text-decoration:var(--body-default-bold-text-decoration);
7749
7757
  text-transform:var(--body-default-bold-text-case);
7750
7758
  }
7751
- .bp_notification_module_root--055d9 .bp_notification_module_text--055d9 > div{
7759
+ .bp_notification_module_root--33c6e .bp_notification_module_text--33c6e > div{
7752
7760
  overflow:hidden;
7753
7761
  overflow-wrap:break-word;
7754
7762
  }
7755
- .bp_notification_module_root--055d9 .bp_notification_module_contentButtonSection--055d9{
7763
+ .bp_notification_module_root--33c6e .bp_notification_module_contentButtonSection--33c6e{
7756
7764
  display:flex;
7757
7765
  gap:var(--notification-item-spacing);
7758
7766
  margin-left:0;
7759
7767
  }
7760
7768
  @media (width > 767px){
7761
- .bp_notification_module_root--055d9 .bp_notification_module_contentButtonSection--055d9{
7769
+ .bp_notification_module_root--33c6e .bp_notification_module_contentButtonSection--33c6e{
7762
7770
  margin-left:auto;
7763
7771
  }
7764
7772
  }
7765
- .bp_notification_module_root--055d9 .bp_notification_module_contentButtonSection--055d9 .bp_notification_module_contentButtons--055d9{
7773
+ .bp_notification_module_root--33c6e .bp_notification_module_contentButtonSection--33c6e .bp_notification_module_contentButtons--33c6e{
7766
7774
  display:flex;
7767
7775
  gap:var(--notification-item-spacing);
7768
7776
  }
7769
- .bp_notification_module_root--055d9 .bp_notification_module_closeButtonSection--055d9{
7777
+ .bp_notification_module_root--33c6e .bp_notification_module_closeButtonSection--33c6e{
7770
7778
  display:flex;
7771
7779
  gap:var(--notification-item-spacing);
7772
7780
  margin-left:auto;
7773
- margin-right:var(--notification-padding-horizontal);
7774
7781
  }
7775
- .bp_notification_module_root--055d9 .bp_notification_module_closeButtonSection--055d9 .bp_notification_module_closeButton--055d9{
7782
+ .bp_notification_module_root--33c6e .bp_notification_module_closeButtonSection--33c6e .bp_notification_module_closeButton--33c6e{
7776
7783
  align-self:center;
7777
7784
  }
7778
- .bp_notification_module_root--055d9 .bp_notification_module_closeButtonSection--055d9 .bp_notification_module_closeButton--055d9 svg *{
7785
+ .bp_notification_module_root--33c6e .bp_notification_module_closeButtonSection--33c6e .bp_notification_module_closeButton--33c6e svg *{
7779
7786
  fill:currentColor;
7780
7787
  }
7781
7788
 
@@ -9277,7 +9284,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
9277
9284
  .bp_trigger_button_module_triggerButton--5c49e.bp_trigger_button_module_large--5c49e.bp_trigger_button_module_startIcon--5c49e{
9278
9285
  padding-left:.625rem;
9279
9286
  }
9280
- .bp_styles_module_splitButton--75e0b[data-modern=false]{
9287
+ .bp_styles_module_splitButton--92246[data-modern=false]{
9281
9288
  --split-button-left-width:100%;
9282
9289
  --split-button-left-gap-margin-inline-end:calc(var(--space-05)/2);
9283
9290
  --split-button-left-skip-right-border-border-inline-end-color:#0000;
@@ -9289,9 +9296,13 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
9289
9296
  --split-button-right-svg-width:var(--size-3);
9290
9297
  --split-button-right-svg-height:var(--size-3);
9291
9298
  --split-button-right-element-border-color:var(--border-cta-border-secondary);
9299
+ --split-button-right-element-secondary-background:var(--surface-cta-surface-secondary);
9300
+ --split-button-right-element-secondary-focus-or-hover-background:var(--surface-cta-surface-secondary-hover);
9301
+ --split-button-right-element-secondary-active-background:var(--surface-cta-surface-secondary-pressed);
9302
+ --split-button-right-element-secondary-backdrop-filter:none;
9292
9303
  }
9293
9304
 
9294
- .bp_styles_module_splitButton--75e0b[data-modern=true]{
9305
+ .bp_styles_module_splitButton--92246[data-modern=true]{
9295
9306
  --split-button-left-width:100%;
9296
9307
  --split-button-left-gap-margin-inline-end:calc(var(--bp-space-005)/2);
9297
9308
  --split-button-left-skip-right-border-border-inline-end-color:#0000;
@@ -9301,61 +9312,73 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
9301
9312
  --split-button-right-svg-width:var(--bp-size-040);
9302
9313
  --split-button-right-svg-height:var(--bp-size-040);
9303
9314
  --split-button-right-element-border-color:var(--bp-border-cta-border-secondary);
9315
+ --split-button-right-element-secondary-background:var(--bp-surface-cta-surface-secondary);
9316
+ --split-button-right-element-secondary-focus-or-hover-background:var(--bp-surface-cta-surface-secondary-hover);
9317
+ --split-button-right-element-secondary-active-background:var(--bp-surface-cta-surface-secondary-pressed);
9318
+ --split-button-right-element-secondary-backdrop-filter:blur(16px);
9304
9319
  }
9305
9320
 
9306
- .bp_styles_module_dropdown--75e0b[data-modern=false],.bp_styles_module_dropdown--75e0b[data-modern=true]{
9321
+ .bp_styles_module_dropdown--92246[data-modern=false],.bp_styles_module_dropdown--92246[data-modern=true]{
9307
9322
  --split-button-dropdown-min-width:160px;
9308
9323
  }
9309
9324
 
9310
- .bp_styles_module_splitButton--75e0b{
9325
+ .bp_styles_module_splitButton--92246{
9311
9326
  display:inline-flex;
9312
9327
  position:relative;
9313
9328
  }
9314
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b{
9329
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonLeft--92246{
9315
9330
  border-bottom-right-radius:0;
9316
9331
  border-top-right-radius:0;
9317
9332
  padding:var(--split-button-left-element-padding);
9318
9333
  width:var(--split-button-left-width);
9319
9334
  }
9320
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b.bp_styles_module_gap--75e0b{
9335
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonLeft--92246.bp_styles_module_gap--92246{
9321
9336
  margin-inline-end:var(--split-button-left-gap-margin-inline-end);
9322
9337
  }
9323
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b:focus-visible{
9338
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonLeft--92246:focus-visible{
9324
9339
  z-index:1;
9325
9340
  }
9326
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b.bp_styles_module_skipRightBorder--75e0b{
9341
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonLeft--92246.bp_styles_module_skipRightBorder--92246{
9327
9342
  border-inline-end-color:var(--split-button-left-skip-right-border-border-inline-end-color) !important;
9328
9343
  }
9329
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b.bp_styles_module_skipRightBorder--75e0b:focus-visible{
9344
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonLeft--92246.bp_styles_module_skipRightBorder--92246:focus-visible{
9330
9345
  border-inline-end-color:var(--split-button-left-skip-right-border-focus-visible-border-inline-end-color) !important;
9331
9346
  }
9332
- .bp_styles_module_splitButton--75e0b .bp_styles_module_loadingButton--75e0b{
9347
+ .bp_styles_module_splitButton--92246 .bp_styles_module_loadingButton--92246{
9333
9348
  width:100%;
9334
9349
  }
9335
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b{
9350
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246{
9336
9351
  border-end-start-radius:0;
9337
9352
  border-start-start-radius:0;
9338
9353
  padding:var(--split-button-right-element-padding) !important;
9339
9354
  }
9340
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b svg{
9355
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246 svg{
9341
9356
  height:var(--split-button-right-svg-height);
9342
9357
  width:var(--split-button-right-svg-width);
9343
9358
  }
9344
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b:focus-visible{
9359
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246:focus-visible{
9345
9360
  z-index:1;
9346
9361
  }
9347
- .bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b.bp_styles_module_secondary--75e0b,.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b.bp_styles_module_secondary--75e0b:active,.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b.bp_styles_module_secondary--75e0b:focus-visible,.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b.bp_styles_module_secondary--75e0b:hover{
9362
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246.bp_styles_module_secondary--92246{
9363
+ backdrop-filter:var(--split-button-right-element-secondary-backdrop-filter);
9364
+ background:var(--split-button-right-element-secondary-background);
9348
9365
  border-color:var(--split-button-right-element-border-color);
9349
9366
  }
9367
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246.bp_styles_module_secondary--92246:focus-visible,.bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246.bp_styles_module_secondary--92246:hover{
9368
+ background:var(--split-button-right-element-secondary-focus-or-hover-background);
9369
+ }
9370
+ .bp_styles_module_splitButton--92246 .bp_styles_module_splitButtonRight--92246.bp_styles_module_secondary--92246:active{
9371
+ background:var(--split-button-right-element-secondary-active-background);
9372
+ }
9350
9373
 
9351
- .bp_styles_module_invisible--75e0b{
9374
+ .bp_styles_module_invisible--92246{
9352
9375
  left:0;
9353
9376
  position:absolute;
9354
9377
  top:0;
9355
9378
  visibility:hidden;
9356
9379
  }
9357
9380
 
9358
- .bp_styles_module_dropdown--75e0b{
9381
+ .bp_styles_module_dropdown--92246{
9359
9382
  min-width:var(--split-button-dropdown-min-width);
9360
9383
  }
9361
9384
 
@@ -1,4 +1,4 @@
1
1
  import '../../index.css';
2
- var styles = {"button":"bp_base_button_module_button--72712","primary":"bp_base_button_module_primary--72712","secondary":"bp_base_button_module_secondary--72712","tertiary":"bp_base_button_module_tertiary--72712","outline":"bp_base_button_module_outline--72712","small":"bp_base_button_module_small--72712","isIconButton":"bp_base_button_module_isIconButton--72712","isTextWithIconButton":"bp_base_button_module_isTextWithIconButton--72712","large":"bp_base_button_module_large--72712","icon":"bp_base_button_module_icon--72712","hide":"bp_base_button_module_hide--72712"};
2
+ var styles = {"button":"bp_base_button_module_button--cc46d","primary":"bp_base_button_module_primary--cc46d","secondary":"bp_base_button_module_secondary--cc46d","tertiary":"bp_base_button_module_tertiary--cc46d","outline":"bp_base_button_module_outline--cc46d","small":"bp_base_button_module_small--cc46d","isIconButton":"bp_base_button_module_isIconButton--cc46d","isTextWithIconButton":"bp_base_button_module_isTextWithIconButton--cc46d","large":"bp_base_button_module_large--cc46d","icon":"bp_base_button_module_icon--cc46d","hide":"bp_base_button_module_hide--cc46d"};
3
3
 
4
4
  export { styles as default };
@@ -1,4 +1,4 @@
1
1
  import '../../index.css';
2
- var styles = {"viewport":"bp_notification_module_viewport--055d9","root":"bp_notification_module_root--055d9","info":"bp_notification_module_info--055d9","success":"bp_notification_module_success--055d9","warning":"bp_notification_module_warning--055d9","error":"bp_notification_module_error--055d9","container":"bp_notification_module_container--055d9","mobileContainer":"bp_notification_module_mobileContainer--055d9","withButtons":"bp_notification_module_withButtons--055d9","typeIconContainer":"bp_notification_module_typeIconContainer--055d9","typeIcon":"bp_notification_module_typeIcon--055d9","text":"bp_notification_module_text--055d9","contentButtonSection":"bp_notification_module_contentButtonSection--055d9","contentButtons":"bp_notification_module_contentButtons--055d9","closeButtonSection":"bp_notification_module_closeButtonSection--055d9","closeButton":"bp_notification_module_closeButton--055d9"};
2
+ var styles = {"viewport":"bp_notification_module_viewport--33c6e","root":"bp_notification_module_root--33c6e","info":"bp_notification_module_info--33c6e","success":"bp_notification_module_success--33c6e","warning":"bp_notification_module_warning--33c6e","error":"bp_notification_module_error--33c6e","container":"bp_notification_module_container--33c6e","mobileContainer":"bp_notification_module_mobileContainer--33c6e","withButtons":"bp_notification_module_withButtons--33c6e","typeIconContainer":"bp_notification_module_typeIconContainer--33c6e","typeIcon":"bp_notification_module_typeIcon--33c6e","text":"bp_notification_module_text--33c6e","contentButtonSection":"bp_notification_module_contentButtonSection--33c6e","contentButtons":"bp_notification_module_contentButtons--33c6e","closeButtonSection":"bp_notification_module_closeButtonSection--33c6e","closeButton":"bp_notification_module_closeButton--33c6e"};
3
3
 
4
4
  export { styles as default };
@@ -1,6 +1,7 @@
1
+ import { AlertBadge } from '@box/blueprint-web-assets/icons/Line';
1
2
  import * as Toast from '@radix-ui/react-toast';
2
3
  import { type ToastProps } from '@radix-ui/react-toast';
3
- import { type ReactNode } from 'react';
4
+ import { type ComponentProps, type ReactNode } from 'react';
4
5
  import { type StyledText } from '../../utils/commonTypes';
5
6
  export interface PrivateNotificationElementProps extends ToastProps {
6
7
  /** Governs the icon type and background color for the notification */
@@ -22,6 +23,9 @@ export interface PrivateNotificationElementProps extends ToastProps {
22
23
  /** This props should be Notification.Buttons only */
23
24
  children?: ReactNode;
24
25
  }
26
+ export declare const createLegacyIconProps: (iconLabel: string) => ComponentProps<typeof AlertBadge>;
27
+ export declare const createIconProps: (iconLabel: string) => ComponentProps<typeof AlertBadge>;
28
+ export declare const getIcon: (iconLabel: string, variant: PrivateNotificationElementProps["variant"]) => ReactNode;
25
29
  /**
26
30
  * A base component mounted on a page when addNotification is invoked.
27
31
  *
@@ -1,7 +1,8 @@
1
1
  import { jsx, jsxs } 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
3
  import { AlertTriangle, InfoBadge, CheckmarkBadge, AlertBadge } from '@box/blueprint-web-assets/icons/Line';
4
- import { Size5 } from '@box/blueprint-web-assets/tokens/tokens';
4
+ import { XMark, AlertTriangle as AlertTriangle$1, InformationCircle, CheckmarkCircle, AlertCircle } from '@box/blueprint-web-assets/icons/Medium';
5
+ import { Size5, bpSize050, bpIconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
5
6
  import * as Toast from '@radix-ui/react-toast';
6
7
  import clsx from 'clsx';
7
8
  import { useMemo } from 'react';
@@ -9,13 +10,14 @@ import { useBlueprintModernization } from '../../blueprint-modernization-context
9
10
  import { IconButton } from '../icon-button/icon-button.js';
10
11
  import styles from './notification.module.js';
11
12
 
12
- const getIcon = (iconLabel, variant) => {
13
- const props = {
14
- className: styles.typeIcon,
15
- 'aria-label': iconLabel,
16
- width: Size5,
17
- height: Size5
18
- };
13
+ const createLegacyIconProps = iconLabel => ({
14
+ className: styles.typeIcon,
15
+ 'aria-label': iconLabel,
16
+ width: Size5,
17
+ height: Size5
18
+ });
19
+ const getLegacyIcon = (iconLabel, variant) => {
20
+ const props = createLegacyIconProps(iconLabel);
19
21
  switch (variant) {
20
22
  case 'error':
21
23
  return jsx(AlertBadge, {
@@ -36,6 +38,35 @@ const getIcon = (iconLabel, variant) => {
36
38
  }
37
39
  return null;
38
40
  };
41
+ const createIconProps = iconLabel => ({
42
+ className: styles.typeIcon,
43
+ 'aria-label': iconLabel,
44
+ width: bpSize050,
45
+ height: bpSize050,
46
+ color: bpIconIconOnLight
47
+ });
48
+ const getIcon = (iconLabel, variant) => {
49
+ const props = createIconProps(iconLabel);
50
+ switch (variant) {
51
+ case 'error':
52
+ return jsx(AlertCircle, {
53
+ ...props
54
+ });
55
+ case 'success':
56
+ return jsx(CheckmarkCircle, {
57
+ ...props
58
+ });
59
+ case 'info':
60
+ return jsx(InformationCircle, {
61
+ ...props
62
+ });
63
+ case 'warning':
64
+ return jsx(AlertTriangle$1, {
65
+ ...props
66
+ });
67
+ }
68
+ return null;
69
+ };
39
70
  /**
40
71
  * A base component mounted on a page when addNotification is invoked.
41
72
  *
@@ -56,10 +87,10 @@ function PrivateNotificationElement(props) {
56
87
  children,
57
88
  ...rest
58
89
  } = props;
59
- const iconComponent = useMemo(() => getIcon(typeIconAriaLabel, variant), [typeIconAriaLabel, variant]);
60
90
  const {
61
91
  enableModernizedComponents
62
92
  } = useBlueprintModernization();
93
+ const iconComponent = useMemo(() => enableModernizedComponents ? getIcon(typeIconAriaLabel, variant) : getLegacyIcon(typeIconAriaLabel, variant), [typeIconAriaLabel, variant, enableModernizedComponents]);
63
94
  return jsx(Toast.Root, {
64
95
  ...rest,
65
96
  className: clsx(styles.root, styles[variant]),
@@ -95,7 +126,7 @@ function PrivateNotificationElement(props) {
95
126
  children: jsx(IconButton, {
96
127
  "aria-label": closeButtonAriaLabel,
97
128
  className: styles.closeButton,
98
- icon: XMark,
129
+ icon: enableModernizedComponents ? XMark : XMark$1,
99
130
  onClick: onClose
100
131
  })
101
132
  })
@@ -104,4 +135,4 @@ function PrivateNotificationElement(props) {
104
135
  });
105
136
  }
106
137
 
107
- export { PrivateNotificationElement };
138
+ export { PrivateNotificationElement, createIconProps, createLegacyIconProps, getIcon };
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"splitButton":"bp_styles_module_splitButton--75e0b","dropdown":"bp_styles_module_dropdown--75e0b","splitButtonLeft":"bp_styles_module_splitButtonLeft--75e0b","gap":"bp_styles_module_gap--75e0b","skipRightBorder":"bp_styles_module_skipRightBorder--75e0b","loadingButton":"bp_styles_module_loadingButton--75e0b","splitButtonRight":"bp_styles_module_splitButtonRight--75e0b","secondary":"bp_styles_module_secondary--75e0b","invisible":"bp_styles_module_invisible--75e0b"};
2
+ var styles = {"splitButton":"bp_styles_module_splitButton--92246","dropdown":"bp_styles_module_dropdown--92246","splitButtonLeft":"bp_styles_module_splitButtonLeft--92246","gap":"bp_styles_module_gap--92246","skipRightBorder":"bp_styles_module_skipRightBorder--92246","loadingButton":"bp_styles_module_loadingButton--92246","splitButtonRight":"bp_styles_module_splitButtonRight--92246","secondary":"bp_styles_module_secondary--92246","invisible":"bp_styles_module_invisible--92246"};
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.87.0",
3
+ "version": "12.88.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {