@box/blueprint-web 14.35.0 → 14.36.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/dist/lib-esm/index.css +221 -45
- package/dist/lib-esm/toolbar/index.d.ts +12 -1
- package/dist/lib-esm/toolbar/index.js +13 -0
- package/dist/lib-esm/toolbar/toolbar-input.d.ts +2 -0
- package/dist/lib-esm/toolbar/toolbar-input.js +36 -0
- package/dist/lib-esm/toolbar/toolbar-link.d.ts +2 -0
- package/dist/lib-esm/toolbar/toolbar-link.js +29 -0
- package/dist/lib-esm/toolbar/toolbar.module.js +1 -1
- package/dist/lib-esm/toolbar/types.d.ts +21 -1
- package/package.json +3 -3
package/dist/lib-esm/index.css
CHANGED
|
@@ -13414,11 +13414,11 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13414
13414
|
.bp_time_picker_module_timePicker--41158 .bp_time_picker_module_inlineError--41158{
|
|
13415
13415
|
margin-block-start:var(--time-picker-inline-error-margin-top);
|
|
13416
13416
|
}
|
|
13417
|
-
.bp_toolbar_module_dropdownIndicator--
|
|
13417
|
+
.bp_toolbar_module_dropdownIndicator--c54d6.bp_toolbar_module_invertCaret--c54d6{
|
|
13418
13418
|
transform:rotate(.5turn);
|
|
13419
13419
|
}
|
|
13420
13420
|
|
|
13421
|
-
.bp_toolbar_module_toolbarRoot--
|
|
13421
|
+
.bp_toolbar_module_toolbarRoot--c54d6[data-modern=false]{
|
|
13422
13422
|
--toolbar-root-gap:var(--space-1);
|
|
13423
13423
|
--toolbar-root-padding:calc(var(--space-1) - var(--border-1));
|
|
13424
13424
|
--toolbar-root-background:var(--surface-surface);
|
|
@@ -13432,9 +13432,13 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13432
13432
|
--toolbar-separator-height:var(--size-6);
|
|
13433
13433
|
--toolbar-separator-background:var(--border-divider-border);
|
|
13434
13434
|
--toolbar-separator-border-radius:var(--radius-2);
|
|
13435
|
+
--toolbar-link-color:var(--text-cta-link);
|
|
13436
|
+
--toolbar-link-hover-color:var(--text-cta-link-hover);
|
|
13437
|
+
--toolbar-link-padding-inline:var(--space-2);
|
|
13438
|
+
--toolbar-link-max-width:400px;
|
|
13435
13439
|
}
|
|
13436
13440
|
|
|
13437
|
-
.bp_toolbar_module_toolbarRoot--
|
|
13441
|
+
.bp_toolbar_module_toolbarRoot--c54d6[data-modern=true]{
|
|
13438
13442
|
--box-shadow:0 4px 12px 0 #0000001a;
|
|
13439
13443
|
--toolbar-root-gap:var(--bp-space-010);
|
|
13440
13444
|
--toolbar-root-padding:var(--bp-space-010);
|
|
@@ -13450,12 +13454,16 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13450
13454
|
--toolbar-separator-background:var(--bp-border-divider-border);
|
|
13451
13455
|
--toolbar-separator-border-radius:var(--bp-radius-03);
|
|
13452
13456
|
--toolbar-toggle-group-gap:var(--bp-space-010);
|
|
13457
|
+
--toolbar-link-color:var(--bp-text-cta-link);
|
|
13458
|
+
--toolbar-link-hover-color:var(--bp-text-cta-link-hover);
|
|
13459
|
+
--toolbar-link-padding-inline:var(--bp-space-020);
|
|
13460
|
+
--toolbar-link-max-width:400px;
|
|
13453
13461
|
}
|
|
13454
|
-
.bp_toolbar_module_toolbarRoot--
|
|
13462
|
+
.bp_toolbar_module_toolbarRoot--c54d6[data-modern=true].bp_toolbar_module_ScrollableToolbarWithReducedPadding--c54d6{
|
|
13455
13463
|
--toolbar-root-padding:0;
|
|
13456
13464
|
}
|
|
13457
13465
|
|
|
13458
|
-
.bp_toolbar_module_toolbarItem--
|
|
13466
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=false]{
|
|
13459
13467
|
--toolbar-item-min-width:var(--size-8);
|
|
13460
13468
|
--toolbar-item-min-height:var(--size-8);
|
|
13461
13469
|
--toolbar-item-text-indent:var(--space-1);
|
|
@@ -13466,7 +13474,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13466
13474
|
--toolbar-item-off-hover-background:var(--surface-toggle-surface-hover);
|
|
13467
13475
|
--toolbar-item-off-hover-border:var(--border-1) solid var(--surface-toggle-surface-hover);
|
|
13468
13476
|
--toolbar-item-focus-outline:var(--outline-focus-on-light);
|
|
13469
|
-
--toolbar-item-disabled-opacity
|
|
13477
|
+
--toolbar-item-disabled-opacity:0.3;
|
|
13470
13478
|
--toolbar-toggle-on-pressed-border:none;
|
|
13471
13479
|
--toolbar-toggle-on-pressed-background:var(--surface-toggle-surface-pressed);
|
|
13472
13480
|
--toolbar-toggle-icon-fill:var(--icon-icon-on-dark);
|
|
@@ -13489,9 +13497,9 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13489
13497
|
--toolbar-text-toggle-checked-hover-border-color:var(--border-toggletext-border-on-hover);
|
|
13490
13498
|
--toolbar-text-toggle-checked-active-background:var(--surface-toggletext-surface-on-pressed);
|
|
13491
13499
|
--toolbar-text-toggle-checked-active-border-color:var(--border-toggletext-border-on-pressed);
|
|
13492
|
-
--trigger-button-hover-opacity
|
|
13500
|
+
--trigger-button-hover-opacity:0.7;
|
|
13493
13501
|
}
|
|
13494
|
-
.bp_toolbar_module_toolbarItem--
|
|
13502
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=false].bp_toolbar_module_toolbarButton--c54d6,.bp_toolbar_module_toolbarItem--c54d6[data-modern=false].bp_toolbar_module_toolbarTextToggleItem--c54d6{
|
|
13495
13503
|
font-family:var(--body-default-font-family);
|
|
13496
13504
|
font-size:var(--body-default-font-size);
|
|
13497
13505
|
font-weight:var(--body-default-font-weight);
|
|
@@ -13500,8 +13508,17 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13500
13508
|
text-decoration:var(--body-default-text-decoration);
|
|
13501
13509
|
text-transform:var(--body-default-text-case);
|
|
13502
13510
|
}
|
|
13511
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=false].bp_toolbar_module_toolbarLink--c54d6{
|
|
13512
|
+
font-family:var(--body-default-bold-font-family);
|
|
13513
|
+
font-size:var(--body-default-bold-font-size);
|
|
13514
|
+
font-weight:var(--body-default-bold-font-weight);
|
|
13515
|
+
letter-spacing:var(--body-default-bold-letter-spacing);
|
|
13516
|
+
line-height:var(--body-default-bold-line-height);
|
|
13517
|
+
text-decoration:var(--body-default-bold-text-decoration);
|
|
13518
|
+
text-transform:var(--body-default-bold-text-case);
|
|
13519
|
+
}
|
|
13503
13520
|
|
|
13504
|
-
.bp_toolbar_module_toolbarItem--
|
|
13521
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true]{
|
|
13505
13522
|
--toolbar-item-min-width:var(--bp-size-080);
|
|
13506
13523
|
--toolbar-item-min-height:var(--bp-size-080);
|
|
13507
13524
|
--toolbar-item-text-indent:var(--bp-space-010);
|
|
@@ -13512,7 +13529,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13512
13529
|
--toolbar-item-off-hover-background:var(--bp-surface-toggle-surface-hover);
|
|
13513
13530
|
--toolbar-item-off-hover-border:var(--bp-border-01) solid var(--bp-surface-toggle-surface-hover);
|
|
13514
13531
|
--toolbar-item-focus-outline:var(--bp-outline-focus-on-light);
|
|
13515
|
-
--toolbar-item-disabled-opacity
|
|
13532
|
+
--toolbar-item-disabled-opacity:0.3;
|
|
13516
13533
|
--toolbar-toggle-on-pressed-border:var(--bp-border-01) solid var(--bp-border-toggle-border-on);
|
|
13517
13534
|
--toolbar-toggle-on-pressed-background:var(--bp-surface-toggle-surface-on);
|
|
13518
13535
|
--toolbar-toggle-icon-fill:var(--bp-icon-icon-blue);
|
|
@@ -13535,30 +13552,30 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13535
13552
|
--toolbar-text-toggle-checked-hover-border-color:var(--bp-border-toggle-text-border-on-hover);
|
|
13536
13553
|
--toolbar-text-toggle-checked-active-background:var(--bp-surface-toggle-text-surface-on-pressed);
|
|
13537
13554
|
--toolbar-text-toggle-checked-active-border-color:var(--bp-border-toggle-text-border-on-pressed);
|
|
13538
|
-
--trigger-button-hover-opacity
|
|
13539
|
-
--trigger-button-active-opacity
|
|
13555
|
+
--trigger-button-hover-opacity:0.65;
|
|
13556
|
+
--trigger-button-active-opacity:0.8;
|
|
13540
13557
|
}
|
|
13541
|
-
.bp_toolbar_module_toolbarItem--
|
|
13558
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true]:active,.bp_toolbar_module_toolbarItem--c54d6[data-modern=true][data-active]{
|
|
13542
13559
|
background:var(--bp-surface-toggle-surface-off-pressed);
|
|
13543
13560
|
border:var(--bp-border-01) solid var(--bp-border-toggle-border-off);
|
|
13544
13561
|
}
|
|
13545
|
-
.bp_toolbar_module_toolbarItem--
|
|
13562
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true][data-state=on]:active,.bp_toolbar_module_toolbarItem--c54d6[data-modern=true][data-state=on][data-active]{
|
|
13546
13563
|
background:var(--bp-surface-toggle-surface-on-pressed);
|
|
13547
13564
|
border:var(--bp-border-01) solid var(--bp-border-toggle-border-on);
|
|
13548
13565
|
}
|
|
13549
|
-
.bp_toolbar_module_toolbarItem--
|
|
13566
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true][data-state=on]:hover .bp_toolbar_module_dropdownIndicator--c54d6{
|
|
13550
13567
|
transform:rotate(1turn);
|
|
13551
13568
|
}
|
|
13552
|
-
.bp_toolbar_module_toolbarItem--
|
|
13569
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true].bp_toolbar_module_triggerButtonSelectedWithColor--c54d6:active,.bp_toolbar_module_toolbarItem--c54d6[data-modern=true].bp_toolbar_module_triggerButtonSelectedWithColor--c54d6[data-active]{
|
|
13553
13570
|
background-color:var(--toolbar-button-color);
|
|
13554
13571
|
opacity:var(--trigger-button-active-opacity);
|
|
13555
13572
|
}
|
|
13556
|
-
.bp_toolbar_module_toolbarItem--
|
|
13573
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true].bp_toolbar_module_triggerButtonSelectedWithColor--c54d6[data-state=on]:hover{
|
|
13557
13574
|
background-color:var(--toolbar-button-color);
|
|
13558
13575
|
border-color:var(--toolbar-button-color);
|
|
13559
13576
|
opacity:var(--trigger-button-hover-opacity);
|
|
13560
13577
|
}
|
|
13561
|
-
.bp_toolbar_module_toolbarItem--
|
|
13578
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true].bp_toolbar_module_toolbarButton--c54d6,.bp_toolbar_module_toolbarItem--c54d6[data-modern=true].bp_toolbar_module_toolbarTextToggleItem--c54d6{
|
|
13562
13579
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
13563
13580
|
font-size:var(--bp-font-size-07);
|
|
13564
13581
|
font-style:normal;
|
|
@@ -13566,16 +13583,24 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13566
13583
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
13567
13584
|
line-height:var(--bp-font-line-height-05);
|
|
13568
13585
|
}
|
|
13586
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-modern=true].bp_toolbar_module_toolbarLink--c54d6{
|
|
13587
|
+
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
13588
|
+
font-size:var(--bp-font-size-05);
|
|
13589
|
+
font-style:normal;
|
|
13590
|
+
font-weight:var(--bp-font-weight-bold);
|
|
13591
|
+
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
13592
|
+
line-height:var(--bp-font-line-height-04);
|
|
13593
|
+
}
|
|
13569
13594
|
|
|
13570
|
-
.bp_toolbar_module_toggleGroup--
|
|
13595
|
+
.bp_toolbar_module_toggleGroup--c54d6[data-modern=false]{
|
|
13571
13596
|
--toolbar-toggle-group-gap:var(--space-1);
|
|
13572
13597
|
}
|
|
13573
13598
|
|
|
13574
|
-
.bp_toolbar_module_toggleGroup--
|
|
13599
|
+
.bp_toolbar_module_toggleGroup--c54d6[data-modern=true]{
|
|
13575
13600
|
--toolbar-toggle-group-gap:var(--bp-space-010);
|
|
13576
13601
|
}
|
|
13577
13602
|
|
|
13578
|
-
.bp_toolbar_module_toolbarRoot--
|
|
13603
|
+
.bp_toolbar_module_toolbarRoot--c54d6{
|
|
13579
13604
|
align-items:center;
|
|
13580
13605
|
background:var(--toolbar-root-background);
|
|
13581
13606
|
border:var(--toolbar-root-border);
|
|
@@ -13586,23 +13611,23 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13586
13611
|
padding:var(--toolbar-root-padding);
|
|
13587
13612
|
}
|
|
13588
13613
|
|
|
13589
|
-
.bp_toolbar_module_scrollButtonWrapper--
|
|
13614
|
+
.bp_toolbar_module_scrollButtonWrapper--c54d6{
|
|
13590
13615
|
align-items:center;
|
|
13591
13616
|
display:flex;
|
|
13592
13617
|
gap:var(--toolbar-scroll-button-gap);
|
|
13593
13618
|
}
|
|
13594
|
-
.bp_toolbar_module_scrollButtonWrapper--
|
|
13619
|
+
.bp_toolbar_module_scrollButtonWrapper--c54d6.bp_toolbar_module_hidden--c54d6{
|
|
13595
13620
|
display:none;
|
|
13596
13621
|
}
|
|
13597
13622
|
|
|
13598
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
13623
|
+
.bp_toolbar_module_scrollableChildrenWrapper--c54d6{
|
|
13599
13624
|
-ms-overflow-style:none;
|
|
13600
13625
|
scrollbar-width:none;
|
|
13601
13626
|
}
|
|
13602
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
13627
|
+
.bp_toolbar_module_scrollableChildrenWrapper--c54d6::-webkit-scrollbar{
|
|
13603
13628
|
display:none;
|
|
13604
13629
|
}
|
|
13605
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
13630
|
+
.bp_toolbar_module_scrollableChildrenWrapper--c54d6{
|
|
13606
13631
|
align-items:center;
|
|
13607
13632
|
display:flex;
|
|
13608
13633
|
flex-grow:1;
|
|
@@ -13613,23 +13638,23 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13613
13638
|
scroll-padding:var(--toolbar-scrollable-children-scroll-padding);
|
|
13614
13639
|
white-space:nowrap;
|
|
13615
13640
|
}
|
|
13616
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
13641
|
+
.bp_toolbar_module_scrollableChildrenWrapper--c54d6 > *{
|
|
13617
13642
|
flex:none;
|
|
13618
13643
|
}
|
|
13619
13644
|
|
|
13620
|
-
.bp_toolbar_module_separator--
|
|
13645
|
+
.bp_toolbar_module_separator--c54d6{
|
|
13621
13646
|
background-color:var(--toolbar-separator-background);
|
|
13622
13647
|
border-radius:var(--toolbar-separator-border-radius);
|
|
13623
13648
|
height:var(--toolbar-separator-height);
|
|
13624
13649
|
width:1px;
|
|
13625
13650
|
}
|
|
13626
13651
|
|
|
13627
|
-
.bp_toolbar_module_toggleGroup--
|
|
13652
|
+
.bp_toolbar_module_toggleGroup--c54d6{
|
|
13628
13653
|
display:flex;
|
|
13629
13654
|
gap:var(--toolbar-toggle-group-gap);
|
|
13630
13655
|
}
|
|
13631
13656
|
|
|
13632
|
-
.bp_toolbar_module_toolbarItem--
|
|
13657
|
+
.bp_toolbar_module_toolbarItem--c54d6{
|
|
13633
13658
|
align-items:center;
|
|
13634
13659
|
background:var(--toolbar-button-color, var(--toolbar-item-background));
|
|
13635
13660
|
border:var(--toolbar-item-border);
|
|
@@ -13647,41 +13672,41 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13647
13672
|
-webkit-user-select:none;
|
|
13648
13673
|
user-select:none;
|
|
13649
13674
|
}
|
|
13650
|
-
.bp_toolbar_module_toolbarItem--
|
|
13675
|
+
.bp_toolbar_module_toolbarItem--c54d6[data-disabled]{
|
|
13651
13676
|
background:var(--toolbar-item-background);
|
|
13652
13677
|
opacity:var(--toolbar-item-disabled-opacity);
|
|
13653
13678
|
pointer-events:none;
|
|
13654
13679
|
}
|
|
13655
|
-
.bp_toolbar_module_toolbarItem--
|
|
13680
|
+
.bp_toolbar_module_toolbarItem--c54d6:not([data-disabled]):focus-visible{
|
|
13656
13681
|
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--toolbar-item-focus-outline);
|
|
13657
13682
|
}
|
|
13658
|
-
.bp_toolbar_module_toolbarItem--
|
|
13683
|
+
.bp_toolbar_module_toolbarItem--c54d6:not([data-disabled]):hover{
|
|
13659
13684
|
background:var(--toolbar-button-color, var(--toolbar-item-off-hover-background));
|
|
13660
13685
|
border:var(--toolbar-item-off-hover-border);
|
|
13661
13686
|
}
|
|
13662
13687
|
|
|
13663
|
-
.bp_toolbar_module_toolbarToggle--
|
|
13688
|
+
.bp_toolbar_module_toolbarToggle--c54d6[data-state=on]{
|
|
13664
13689
|
background:var(--toolbar-toggle-on-pressed-background);
|
|
13665
13690
|
border:var(--toolbar-toggle-on-pressed-border);
|
|
13666
13691
|
}
|
|
13667
|
-
.bp_toolbar_module_toolbarToggle--
|
|
13692
|
+
.bp_toolbar_module_toolbarToggle--c54d6[data-state=on] svg *{
|
|
13668
13693
|
fill:var(--toolbar-toggle-icon-fill);
|
|
13669
13694
|
}
|
|
13670
|
-
.bp_toolbar_module_toolbarToggle--
|
|
13695
|
+
.bp_toolbar_module_toolbarToggle--c54d6[data-state=on]:not([data-disabled]):hover{
|
|
13671
13696
|
background:var(--toolbar-toggle-on-hover-background);
|
|
13672
13697
|
border:var(--toolbar-toggle-on-hover-border);
|
|
13673
13698
|
}
|
|
13674
13699
|
|
|
13675
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--
|
|
13700
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--c54d6[data-state=on] .bp_toolbar_module_dropdownIndicator--c54d6 path{
|
|
13676
13701
|
fill:var(--icon-icon-on-light);
|
|
13677
13702
|
}
|
|
13678
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--
|
|
13703
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--c54d6[data-state=on]:hover{
|
|
13679
13704
|
background-color:var(--toolbar-button-color);
|
|
13680
13705
|
border-color:var(--toolbar-button-color);
|
|
13681
13706
|
opacity:var(--trigger-button-hover-opacity);
|
|
13682
13707
|
}
|
|
13683
13708
|
|
|
13684
|
-
.bp_toolbar_module_toolbarIcon--
|
|
13709
|
+
.bp_toolbar_module_toolbarIcon--c54d6{
|
|
13685
13710
|
align-items:center;
|
|
13686
13711
|
display:flex;
|
|
13687
13712
|
height:var(--toolbar-icon-height);
|
|
@@ -13689,31 +13714,182 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
13689
13714
|
width:var(--toolbar-icon-width);
|
|
13690
13715
|
}
|
|
13691
13716
|
|
|
13692
|
-
.
|
|
13717
|
+
.bp_toolbar_module_toolbarLink--c54d6{
|
|
13718
|
+
color:var(--toolbar-link-color);
|
|
13719
|
+
max-width:var(--toolbar-link-max-width);
|
|
13720
|
+
padding-inline:var(--toolbar-link-padding-inline);
|
|
13721
|
+
text-decoration:none;
|
|
13722
|
+
text-indent:unset;
|
|
13723
|
+
}
|
|
13724
|
+
|
|
13725
|
+
.bp_toolbar_module_toolbarLinkText--c54d6{
|
|
13726
|
+
display:block;
|
|
13727
|
+
min-width:0;
|
|
13728
|
+
overflow:hidden;
|
|
13729
|
+
text-overflow:ellipsis;
|
|
13730
|
+
white-space:nowrap;
|
|
13731
|
+
}
|
|
13732
|
+
|
|
13733
|
+
.bp_toolbar_module_toolbarInputContainer--c54d6{
|
|
13734
|
+
align-items:center;
|
|
13735
|
+
display:flex;
|
|
13736
|
+
flex:1 1 0;
|
|
13737
|
+
min-width:0;
|
|
13738
|
+
position:relative;
|
|
13739
|
+
}
|
|
13740
|
+
|
|
13741
|
+
.bp_toolbar_module_toolbarInputContainer--c54d6:has(.bp_toolbar_module_toolbarInput--c54d6[data-modern=false]){
|
|
13742
|
+
--toolbar-input-height:var(--size-8);
|
|
13743
|
+
--toolbar-input-padding-block:var(--space-2);
|
|
13744
|
+
--toolbar-input-padding-inline:var(--space-3);
|
|
13745
|
+
--toolbar-input-gap:var(--space-2);
|
|
13746
|
+
--toolbar-input-background:var(--surface-input-surface);
|
|
13747
|
+
--toolbar-input-border-width:var(--border-1);
|
|
13748
|
+
--toolbar-input-border-color:var(--border-input-border);
|
|
13749
|
+
--toolbar-input-border-color-focus:var(--border-input-border-focus);
|
|
13750
|
+
--toolbar-input-border-radius:var(--radius-4);
|
|
13751
|
+
--toolbar-input-box-shadow:var(--innershadow-1);
|
|
13752
|
+
--toolbar-input-color:var(--text-text-on-light);
|
|
13753
|
+
--toolbar-input-placeholder-color:var(--text-text-on-light-secondary);
|
|
13754
|
+
--toolbar-input-focus-border-width:var(--border-2);
|
|
13755
|
+
--toolbar-input-disabled-color:var(--text-text-on-light);
|
|
13756
|
+
--toolbar-input-disabled-background:var(--surface-input-surface);
|
|
13757
|
+
--toolbar-input-disabled-border-color:var(--border-input-border);
|
|
13758
|
+
--toolbar-input-hover-border-color:var(--border-input-border-hover);
|
|
13759
|
+
--toolbar-input-error-border-color:var(--border-input-border-error);
|
|
13760
|
+
--toolbar-input-error-border-width:var(--border-2);
|
|
13761
|
+
--toolbar-input-icon-size:var(--size-5);
|
|
13762
|
+
--toolbar-input-icon-padding:var(--space-2);
|
|
13763
|
+
--toolbar-input-icon-end-pad:calc(var(--toolbar-input-padding-inline) + var(--toolbar-input-icon-size) + var(--toolbar-input-icon-padding));
|
|
13764
|
+
}
|
|
13765
|
+
|
|
13766
|
+
.bp_toolbar_module_toolbarInputContainer--c54d6:has(.bp_toolbar_module_toolbarInput--c54d6[data-modern=true]){
|
|
13767
|
+
--toolbar-input-height:var(--bp-size-080);
|
|
13768
|
+
--toolbar-input-padding-block:var(--bp-space-020);
|
|
13769
|
+
--toolbar-input-padding-inline:var(--bp-space-030);
|
|
13770
|
+
--toolbar-input-gap:var(--bp-space-020);
|
|
13771
|
+
--toolbar-input-background:var(--bp-surface-input-surface);
|
|
13772
|
+
--toolbar-input-border-width:var(--bp-border-01);
|
|
13773
|
+
--toolbar-input-border-color:var(--bp-border-input-border);
|
|
13774
|
+
--toolbar-input-border-color-focus:var(--bp-border-input-border-focus);
|
|
13775
|
+
--toolbar-input-border-radius:var(--bp-radius-12);
|
|
13776
|
+
--toolbar-input-box-shadow:var(--innershadow-1);
|
|
13777
|
+
--toolbar-input-color:var(--bp-text-text-on-light);
|
|
13778
|
+
--toolbar-input-placeholder-color:var(--bp-text-text-on-light-secondary);
|
|
13779
|
+
--toolbar-input-focus-border-width:var(--bp-border-02);
|
|
13780
|
+
--toolbar-input-disabled-color:var(--bp-text-text-on-light);
|
|
13781
|
+
--toolbar-input-disabled-background:var(--bp-surface-input-surface);
|
|
13782
|
+
--toolbar-input-disabled-border-color:var(--bp-border-input-border);
|
|
13783
|
+
--toolbar-input-hover-border-color:var(--bp-border-input-border-hover);
|
|
13784
|
+
--toolbar-input-error-border-color:var(--bp-border-input-border-error);
|
|
13785
|
+
--toolbar-input-error-border-width:var(--bp-border-02);
|
|
13786
|
+
--toolbar-input-icon-size:var(--bp-size-050);
|
|
13787
|
+
--toolbar-input-icon-padding:var(--bp-space-020);
|
|
13788
|
+
--toolbar-input-icon-end-pad:calc(var(--toolbar-input-padding-inline) + var(--toolbar-input-icon-size) + var(--toolbar-input-icon-padding));
|
|
13789
|
+
}
|
|
13790
|
+
|
|
13791
|
+
.bp_toolbar_module_toolbarInput--c54d6{
|
|
13792
|
+
background:var(--toolbar-input-background);
|
|
13793
|
+
border:var(--toolbar-input-border-width) solid var(--toolbar-input-border-color);
|
|
13794
|
+
border-radius:var(--toolbar-input-border-radius);
|
|
13795
|
+
box-shadow:var(--toolbar-input-box-shadow);
|
|
13796
|
+
box-sizing:border-box;
|
|
13797
|
+
color:var(--toolbar-input-color);
|
|
13798
|
+
gap:var(--toolbar-input-gap);
|
|
13799
|
+
height:var(--toolbar-input-height);
|
|
13800
|
+
min-width:0;
|
|
13801
|
+
outline:none;
|
|
13802
|
+
padding-block:var(--toolbar-input-padding-block);
|
|
13803
|
+
padding-inline:var(--toolbar-input-padding-inline);
|
|
13804
|
+
width:100%;
|
|
13805
|
+
}
|
|
13806
|
+
.bp_toolbar_module_toolbarInput--c54d6[data-modern=false]{
|
|
13807
|
+
font-family:var(--body-default-font-family);
|
|
13808
|
+
font-size:var(--body-default-font-size);
|
|
13809
|
+
font-weight:var(--body-default-font-weight);
|
|
13810
|
+
letter-spacing:var(--body-default-letter-spacing);
|
|
13811
|
+
line-height:var(--body-default-line-height);
|
|
13812
|
+
text-decoration:var(--body-default-text-decoration);
|
|
13813
|
+
text-transform:var(--body-default-text-case);
|
|
13814
|
+
}
|
|
13815
|
+
.bp_toolbar_module_toolbarInput--c54d6[data-modern=true]{
|
|
13816
|
+
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
13817
|
+
font-size:var(--bp-font-size-07);
|
|
13818
|
+
font-style:normal;
|
|
13819
|
+
font-weight:var(--bp-font-weight-regular);
|
|
13820
|
+
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
13821
|
+
line-height:var(--bp-font-line-height-05);
|
|
13822
|
+
}
|
|
13823
|
+
.bp_toolbar_module_toolbarInput--c54d6::placeholder{
|
|
13824
|
+
color:var(--toolbar-input-placeholder-color);
|
|
13825
|
+
opacity:1;
|
|
13826
|
+
}
|
|
13827
|
+
.bp_toolbar_module_toolbarInput--c54d6:focus-visible{
|
|
13828
|
+
--toolbar-input-border-offset:calc(var(--toolbar-input-focus-border-width) - var(--toolbar-input-border-width));
|
|
13829
|
+
border:var(--toolbar-input-focus-border-width) solid var(--toolbar-input-border-color-focus);
|
|
13830
|
+
padding-inline-start:calc(var(--toolbar-input-padding-inline) - var(--toolbar-input-border-offset));
|
|
13831
|
+
}
|
|
13832
|
+
.bp_toolbar_module_toolbarInput--c54d6:disabled{
|
|
13833
|
+
background:var(--toolbar-input-disabled-background);
|
|
13834
|
+
border-color:var(--toolbar-input-disabled-border-color);
|
|
13835
|
+
box-shadow:var(--toolbar-input-box-shadow);
|
|
13836
|
+
color:var(--toolbar-input-disabled-color);
|
|
13837
|
+
cursor:default;
|
|
13838
|
+
opacity:.5;
|
|
13839
|
+
}
|
|
13840
|
+
.bp_toolbar_module_toolbarInput--c54d6:has(+ .bp_toolbar_module_toolbarInputErrorIcon--c54d6){
|
|
13841
|
+
padding-inline-end:var(--toolbar-input-icon-end-pad);
|
|
13842
|
+
}
|
|
13843
|
+
.bp_toolbar_module_toolbarInput--c54d6:hover:not(:disabled, :focus-visible, .bp_toolbar_module_toolbarInputError--c54d6){
|
|
13844
|
+
border-color:var(--toolbar-input-hover-border-color);
|
|
13845
|
+
}
|
|
13846
|
+
|
|
13847
|
+
.bp_toolbar_module_toolbarInput--c54d6.bp_toolbar_module_toolbarInputError--c54d6{
|
|
13848
|
+
--toolbar-input-error-border-offset:calc(var(--toolbar-input-error-border-width) - var(--toolbar-input-border-width));
|
|
13849
|
+
border:var(--toolbar-input-error-border-width) solid var(--toolbar-input-error-border-color);
|
|
13850
|
+
padding-inline:calc(var(--toolbar-input-padding-inline) - var(--toolbar-input-error-border-offset)) calc(var(--toolbar-input-icon-end-pad) - var(--toolbar-input-error-border-offset));
|
|
13851
|
+
}
|
|
13852
|
+
|
|
13853
|
+
.bp_toolbar_module_toolbarInputErrorIcon--c54d6{
|
|
13854
|
+
color:var(--toolbar-input-error-border-color);
|
|
13855
|
+
height:var(--toolbar-input-icon-size);
|
|
13856
|
+
inset-inline-end:var(--toolbar-input-icon-padding);
|
|
13857
|
+
pointer-events:none;
|
|
13858
|
+
position:absolute;
|
|
13859
|
+
top:50%;
|
|
13860
|
+
transform:translateY(-50%);
|
|
13861
|
+
width:var(--toolbar-input-icon-size);
|
|
13862
|
+
}
|
|
13863
|
+
|
|
13864
|
+
.bp_toolbar_module_toolbarInputErrorIconHidden--c54d6{
|
|
13865
|
+
visibility:hidden;
|
|
13866
|
+
}
|
|
13867
|
+
|
|
13868
|
+
.bp_toolbar_module_toolbarTextToggleItem--c54d6{
|
|
13693
13869
|
border:var(--toolbar-text-toggle-off-border);
|
|
13694
13870
|
color:var(--toolbar-text-toggle-color);
|
|
13695
13871
|
padding-inline:var(--toolbar-text-toggle-padding-inline);
|
|
13696
13872
|
text-indent:unset;
|
|
13697
13873
|
white-space:nowrap;
|
|
13698
13874
|
}
|
|
13699
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
13875
|
+
.bp_toolbar_module_toolbarTextToggleItem--c54d6:hover{
|
|
13700
13876
|
background:var(--toolbar-text-toggle-hover-background);
|
|
13701
13877
|
border-color:var(--toolbar-text-toggle-hover-border-color);
|
|
13702
13878
|
}
|
|
13703
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
13879
|
+
.bp_toolbar_module_toolbarTextToggleItem--c54d6:active{
|
|
13704
13880
|
background:var(--toolbar-text-toggle-active-background);
|
|
13705
13881
|
border-color:var(--toolbar-text-toggle-active-border-color);
|
|
13706
13882
|
}
|
|
13707
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
13883
|
+
.bp_toolbar_module_toolbarTextToggleItem--c54d6[aria-checked=true]{
|
|
13708
13884
|
background:var(--toolbar-text-toggle-checked-background);
|
|
13709
13885
|
border:var(--toolbar-text-toggle-checked-border);
|
|
13710
13886
|
color:var(--toolbar-text-toggle-checked-color);
|
|
13711
13887
|
}
|
|
13712
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
13888
|
+
.bp_toolbar_module_toolbarTextToggleItem--c54d6[aria-checked=true]:hover{
|
|
13713
13889
|
background:var(--toolbar-text-toggle-checked-hover-background);
|
|
13714
13890
|
border-color:var(--toolbar-text-toggle-checked-hover-border-color);
|
|
13715
13891
|
}
|
|
13716
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
13892
|
+
.bp_toolbar_module_toolbarTextToggleItem--c54d6[aria-checked=true]:active{
|
|
13717
13893
|
background:var(--toolbar-text-toggle-checked-active-background);
|
|
13718
13894
|
border-color:var(--toolbar-text-toggle-checked-active-border-color);
|
|
13719
13895
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type ToolbarButtonProps, type ToolbarIconProps, type ToolbarProps, type ToolbarSeparatorProps, type ToolbarToggleGroupProps, type ToolbarToggleItemProps, type ToolbarTriggerButtonProps, type ToolbarTextToggleItemProps, } from './types';
|
|
1
|
+
export { type ToolbarButtonProps, type ToolbarIconProps, type ToolbarInputProps, type ToolbarLinkProps, type ToolbarProps, type ToolbarSeparatorProps, type ToolbarToggleGroupProps, type ToolbarToggleItemProps, type ToolbarTriggerButtonProps, type ToolbarTextToggleItemProps, } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* A container for grouping a set of controls, such as buttons, toggle groups or dropdowns.
|
|
4
4
|
* @example
|
|
@@ -9,6 +9,9 @@ export { type ToolbarButtonProps, type ToolbarIconProps, type ToolbarProps, type
|
|
|
9
9
|
* </Toolbar.ToggleGroup>
|
|
10
10
|
* <Toolbar.Separator />
|
|
11
11
|
*
|
|
12
|
+
* <Toolbar.Link href="https://box.com">box.com</Toolbar.Link>
|
|
13
|
+
* <Toolbar.Separator />
|
|
14
|
+
*
|
|
12
15
|
* <Toolbar.Button>
|
|
13
16
|
* share
|
|
14
17
|
* </Toolbar.Button>
|
|
@@ -48,10 +51,18 @@ export declare const Toolbar: {
|
|
|
48
51
|
* A button item.
|
|
49
52
|
*/
|
|
50
53
|
Button: import("react").ForwardRefExoticComponent<import("./types").ToolbarButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
/**
|
|
55
|
+
* A text input field.
|
|
56
|
+
*/
|
|
57
|
+
Input: import("react").ForwardRefExoticComponent<import("./types").ToolbarInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
51
58
|
/**
|
|
52
59
|
* Component used to visually separate options in the Toolbar.
|
|
53
60
|
*/
|
|
54
61
|
Separator: import("react").ForwardRefExoticComponent<import("@radix-ui/react-toolbar").ToolbarSeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
62
|
+
/**
|
|
63
|
+
* A link item.
|
|
64
|
+
*/
|
|
65
|
+
Link: import("react").ForwardRefExoticComponent<import("./types").ToolbarLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
55
66
|
/**
|
|
56
67
|
* Caret icon indicating dropdown.
|
|
57
68
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ToolbarButton } from './toolbar-button.js';
|
|
2
2
|
import { ToolbarDropdownIndicator } from './toolbar-dropdown-indicator.js';
|
|
3
3
|
import { ToolbarIcon } from './toolbar-icon.js';
|
|
4
|
+
import { ToolbarInput } from './toolbar-input.js';
|
|
5
|
+
import { ToolbarLink } from './toolbar-link.js';
|
|
4
6
|
import { ToolbarRoot } from './toolbar-root.js';
|
|
5
7
|
import { ToolbarSeparator } from './toolbar-separator.js';
|
|
6
8
|
import { ToolbarToggleGroup } from './toolbar-toggle-group.js';
|
|
@@ -18,6 +20,9 @@ import { ToolbarTextToggleItem } from './toolbar-text-toggle-item.js';
|
|
|
18
20
|
* </Toolbar.ToggleGroup>
|
|
19
21
|
* <Toolbar.Separator />
|
|
20
22
|
*
|
|
23
|
+
* <Toolbar.Link href="https://box.com">box.com</Toolbar.Link>
|
|
24
|
+
* <Toolbar.Separator />
|
|
25
|
+
*
|
|
21
26
|
* <Toolbar.Button>
|
|
22
27
|
* share
|
|
23
28
|
* </Toolbar.Button>
|
|
@@ -57,10 +62,18 @@ const Toolbar = {
|
|
|
57
62
|
* A button item.
|
|
58
63
|
*/
|
|
59
64
|
Button: ToolbarButton,
|
|
65
|
+
/**
|
|
66
|
+
* A text input field.
|
|
67
|
+
*/
|
|
68
|
+
Input: ToolbarInput,
|
|
60
69
|
/**
|
|
61
70
|
* Component used to visually separate options in the Toolbar.
|
|
62
71
|
*/
|
|
63
72
|
Separator: ToolbarSeparator,
|
|
73
|
+
/**
|
|
74
|
+
* A link item.
|
|
75
|
+
*/
|
|
76
|
+
Link: ToolbarLink,
|
|
64
77
|
/**
|
|
65
78
|
* Caret icon indicating dropdown.
|
|
66
79
|
*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { AlertCircle } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
|
+
import styles from './toolbar.module.js';
|
|
7
|
+
|
|
8
|
+
const ToolbarInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
9
|
+
const {
|
|
10
|
+
className,
|
|
11
|
+
error,
|
|
12
|
+
disabled,
|
|
13
|
+
...rest
|
|
14
|
+
} = props;
|
|
15
|
+
const {
|
|
16
|
+
enableModernizedComponents
|
|
17
|
+
} = useBlueprintModernization();
|
|
18
|
+
const showError = error && !disabled;
|
|
19
|
+
return jsxs("div", {
|
|
20
|
+
className: styles.toolbarInputContainer,
|
|
21
|
+
children: [jsx("input", {
|
|
22
|
+
...rest,
|
|
23
|
+
ref: forwardedRef,
|
|
24
|
+
className: clsx(styles.toolbarInput, showError && styles.toolbarInputError, className),
|
|
25
|
+
"data-modern": enableModernizedComponents ? 'true' : 'false',
|
|
26
|
+
disabled: disabled,
|
|
27
|
+
"aria-invalid": showError || undefined
|
|
28
|
+
}), jsx(AlertCircle, {
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
className: clsx(styles.toolbarInputErrorIcon, !showError && styles.toolbarInputErrorIconHidden),
|
|
31
|
+
color: "currentColor"
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export { ToolbarInput };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
|
+
import styles from './toolbar.module.js';
|
|
7
|
+
|
|
8
|
+
const ToolbarLink = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
9
|
+
const {
|
|
10
|
+
children,
|
|
11
|
+
className,
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
const {
|
|
15
|
+
enableModernizedComponents
|
|
16
|
+
} = useBlueprintModernization();
|
|
17
|
+
return jsx(ToolbarPrimitive.Link, {
|
|
18
|
+
...rest,
|
|
19
|
+
ref: forwardedRef,
|
|
20
|
+
className: clsx(styles.toolbarItem, styles.toolbarLink, className),
|
|
21
|
+
"data-modern": enableModernizedComponents ? 'true' : 'false',
|
|
22
|
+
children: jsx("span", {
|
|
23
|
+
className: styles.toolbarLinkText,
|
|
24
|
+
children: children
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export { ToolbarLink };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"dropdownIndicator":"bp_toolbar_module_dropdownIndicator--
|
|
2
|
+
var styles = {"dropdownIndicator":"bp_toolbar_module_dropdownIndicator--c54d6","invertCaret":"bp_toolbar_module_invertCaret--c54d6","toolbarRoot":"bp_toolbar_module_toolbarRoot--c54d6","ScrollableToolbarWithReducedPadding":"bp_toolbar_module_ScrollableToolbarWithReducedPadding--c54d6","toolbarItem":"bp_toolbar_module_toolbarItem--c54d6","toolbarButton":"bp_toolbar_module_toolbarButton--c54d6","toolbarTextToggleItem":"bp_toolbar_module_toolbarTextToggleItem--c54d6","toolbarLink":"bp_toolbar_module_toolbarLink--c54d6","triggerButtonSelectedWithColor":"bp_toolbar_module_triggerButtonSelectedWithColor--c54d6","toggleGroup":"bp_toolbar_module_toggleGroup--c54d6","scrollButtonWrapper":"bp_toolbar_module_scrollButtonWrapper--c54d6","hidden":"bp_toolbar_module_hidden--c54d6","scrollableChildrenWrapper":"bp_toolbar_module_scrollableChildrenWrapper--c54d6","separator":"bp_toolbar_module_separator--c54d6","toolbarToggle":"bp_toolbar_module_toolbarToggle--c54d6","toolbarIcon":"bp_toolbar_module_toolbarIcon--c54d6","toolbarLinkText":"bp_toolbar_module_toolbarLinkText--c54d6","toolbarInputContainer":"bp_toolbar_module_toolbarInputContainer--c54d6","toolbarInput":"bp_toolbar_module_toolbarInput--c54d6","toolbarInputErrorIcon":"bp_toolbar_module_toolbarInputErrorIcon--c54d6","toolbarInputError":"bp_toolbar_module_toolbarInputError--c54d6","toolbarInputErrorIconHidden":"bp_toolbar_module_toolbarInputErrorIconHidden--c54d6"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ToolbarButtonProps as ToolbarPrimitiveButtonProps, type ToolbarProps as ToolbarPrimitiveProps, type ToolbarSeparatorProps as ToolbarPrimitiveSeparatorProps, type ToolbarToggleItemProps as ToolbarPrimitiveToggleItemProps, type ToggleGroupProps as ToolbarToggleGroupPrimitiveProps } from '@radix-ui/react-toolbar';
|
|
1
|
+
import { type ToolbarButtonProps as ToolbarPrimitiveButtonProps, type ToolbarLinkProps as ToolbarPrimitiveLinkProps, type ToolbarProps as ToolbarPrimitiveProps, type ToolbarSeparatorProps as ToolbarPrimitiveSeparatorProps, type ToolbarToggleItemProps as ToolbarPrimitiveToggleItemProps, type ToggleGroupProps as ToolbarToggleGroupPrimitiveProps } from '@radix-ui/react-toolbar';
|
|
2
2
|
import { type CSSProperties, type FunctionComponent, type HTMLAttributes, type PropsWithChildren, type SVGProps } from 'react';
|
|
3
3
|
interface ToolbarWithoutScrollProps {
|
|
4
4
|
scrollable?: false;
|
|
@@ -51,6 +51,26 @@ export interface ToolbarIconProps {
|
|
|
51
51
|
/** Icon rendered by the component. */
|
|
52
52
|
icon: React.FunctionComponent<React.PropsWithChildren<React.SVGProps<SVGSVGElement>>>;
|
|
53
53
|
}
|
|
54
|
+
export interface ToolbarInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
55
|
+
'aria-label': NonNullable<React.HTMLAttributes<HTMLInputElement>['aria-label']>;
|
|
56
|
+
/** Input type attribute.
|
|
57
|
+
* @default 'text'
|
|
58
|
+
*/
|
|
59
|
+
type?: 'text' | 'search' | 'url' | 'email' | 'tel';
|
|
60
|
+
/** Displays error styling with alert icon.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
error?: boolean;
|
|
64
|
+
}
|
|
65
|
+
interface ToolbarLinkCSS extends CSSProperties {
|
|
66
|
+
/** Max width of the link before truncation with ellipsis.
|
|
67
|
+
* @default '400px'
|
|
68
|
+
*/
|
|
69
|
+
'--toolbar-link-max-width'?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface ToolbarLinkProps extends Omit<ToolbarPrimitiveLinkProps, 'style'> {
|
|
72
|
+
style?: ToolbarLinkCSS;
|
|
73
|
+
}
|
|
54
74
|
export interface ToolbarDropdownIndicatorProps {
|
|
55
75
|
/** Direction in which by indicator is pointing.
|
|
56
76
|
* @default 'down'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.36.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ariakit/react": "0.4.21",
|
|
49
49
|
"@ariakit/react-core": "0.4.21",
|
|
50
|
-
"@box/blueprint-web-assets": "^4.120.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.120.2",
|
|
51
51
|
"@internationalized/date": "^3.12.0",
|
|
52
52
|
"@radix-ui/react-accordion": "1.1.2",
|
|
53
53
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type-fest": "^3.2.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@box/storybook-utils": "^0.19.
|
|
80
|
+
"@box/storybook-utils": "^0.19.17",
|
|
81
81
|
"@figma/code-connect": "1.4.4",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|