@box/blueprint-web 12.59.4 → 12.60.1
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 +252 -113
- package/dist/lib-esm/select/select.module.js +1 -1
- package/dist/lib-esm/toolbar/toolbar-button.js +5 -0
- package/dist/lib-esm/toolbar/toolbar-dropdown-indicator.js +8 -3
- package/dist/lib-esm/toolbar/toolbar-root.js +9 -1
- package/dist/lib-esm/toolbar/toolbar-text-toggle-item.js +5 -0
- package/dist/lib-esm/toolbar/toolbar-toggle-group.js +5 -0
- package/dist/lib-esm/toolbar/toolbar-toggle-item.js +5 -0
- package/dist/lib-esm/toolbar/toolbar.module.js +1 -1
- package/package.json +1 -1
package/dist/lib-esm/index.css
CHANGED
|
@@ -2974,7 +2974,7 @@
|
|
|
2974
2974
|
--blueprint-select-border-error-left-width:none;
|
|
2975
2975
|
}
|
|
2976
2976
|
|
|
2977
|
-
.bp_select_module_container--
|
|
2977
|
+
.bp_select_module_container--e4f69[data-modern=false]{
|
|
2978
2978
|
--select-gap:var(--space-2);
|
|
2979
2979
|
--select-label-color:var(--text-text-on-light);
|
|
2980
2980
|
--select-trigger-btn-gap:var(--space-2);
|
|
@@ -3004,7 +3004,7 @@
|
|
|
3004
3004
|
--select-trigger-btn-pencil-height:var(--size-4);
|
|
3005
3005
|
}
|
|
3006
3006
|
|
|
3007
|
-
.bp_select_module_container--
|
|
3007
|
+
.bp_select_module_container--e4f69[data-modern=true]{
|
|
3008
3008
|
--select-gap:var(--bp-space-020);
|
|
3009
3009
|
--select-label-color:var(--bp-text-text-on-light);
|
|
3010
3010
|
--select-trigger-btn-gap:var(--bp-space-020);
|
|
@@ -3034,7 +3034,7 @@
|
|
|
3034
3034
|
--select-trigger-btn-pencil-height:var(--bp-size-040);
|
|
3035
3035
|
}
|
|
3036
3036
|
|
|
3037
|
-
.bp_select_module_container--
|
|
3037
|
+
.bp_select_module_container--e4f69{
|
|
3038
3038
|
display:flex;
|
|
3039
3039
|
flex-direction:column;
|
|
3040
3040
|
font-family:var(--body-default-font-family);
|
|
@@ -3047,10 +3047,10 @@
|
|
|
3047
3047
|
text-decoration:var(--body-default-text-decoration);
|
|
3048
3048
|
text-transform:var(--body-default-text-case);
|
|
3049
3049
|
}
|
|
3050
|
-
.bp_select_module_container--
|
|
3050
|
+
.bp_select_module_container--e4f69.bp_select_module_disabled--e4f69{
|
|
3051
3051
|
opacity:60%;
|
|
3052
3052
|
}
|
|
3053
|
-
.bp_select_module_container--
|
|
3053
|
+
.bp_select_module_container--e4f69 .bp_select_module_label--e4f69{
|
|
3054
3054
|
color:var(--select-label-color);
|
|
3055
3055
|
flex:0 0 fit-content;
|
|
3056
3056
|
font-family:var(--body-default-bold-font-family);
|
|
@@ -3063,7 +3063,7 @@
|
|
|
3063
3063
|
text-decoration:var(--body-default-bold-text-decoration);
|
|
3064
3064
|
text-transform:var(--body-default-bold-text-case);
|
|
3065
3065
|
}
|
|
3066
|
-
.bp_select_module_container--
|
|
3066
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69{
|
|
3067
3067
|
align-items:center;
|
|
3068
3068
|
background-color:var(--select-trigger-btn-bg-color);
|
|
3069
3069
|
border-bottom:var(--select-trigger-btn-border-bottom);
|
|
@@ -3092,58 +3092,58 @@
|
|
|
3092
3092
|
text-transform:var(--body-default-text-case);
|
|
3093
3093
|
width:100%;
|
|
3094
3094
|
}
|
|
3095
|
-
.bp_select_module_container--
|
|
3095
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69 span:first-child{
|
|
3096
3096
|
overflow:hidden;
|
|
3097
3097
|
text-overflow:ellipsis;
|
|
3098
3098
|
white-space:nowrap;
|
|
3099
3099
|
}
|
|
3100
|
-
.bp_select_module_container--
|
|
3100
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:disabled{
|
|
3101
3101
|
cursor:default;
|
|
3102
3102
|
}
|
|
3103
|
-
.bp_select_module_container--
|
|
3103
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69.bp_select_module_readonly--e4f69:not(:disabled){
|
|
3104
3104
|
background-color:var(--gray-02);
|
|
3105
3105
|
box-shadow:none;
|
|
3106
3106
|
color:var(--text-text-on-light-secondary);
|
|
3107
3107
|
cursor:default;
|
|
3108
3108
|
}
|
|
3109
|
-
.bp_select_module_container--
|
|
3109
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:not(.bp_select_module_readonly--e4f69):not(:disabled).bp_select_module_error--e4f69,.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:not(.bp_select_module_readonly--e4f69):not(:disabled)[aria-invalid=true]{
|
|
3110
3110
|
background-color:var(----select-trigger-btn-error-bg-color);
|
|
3111
3111
|
border-bottom:var(--select-trigger-btn-error-border-bottom);
|
|
3112
3112
|
border-left:var(--select-trigger-btn-error-border-left);
|
|
3113
3113
|
border-right:var(--select-trigger-btn-error-border-right);
|
|
3114
3114
|
border-top:var(--select-trigger-btn-error-border-top);
|
|
3115
3115
|
}
|
|
3116
|
-
.bp_select_module_container--
|
|
3116
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:not(.bp_select_module_readonly--e4f69):focus,.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:not(.bp_select_module_readonly--e4f69):not(:disabled).bp_select_module_error--e4f69:focus,.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:not(.bp_select_module_readonly--e4f69):not(:disabled)[aria-invalid=true]:focus{
|
|
3117
3117
|
background-color:var(--select-trigger-btn-focus-bg-color);
|
|
3118
3118
|
border:var(--select-trigger-btn-focus-border);
|
|
3119
3119
|
}
|
|
3120
|
-
.bp_select_module_container--
|
|
3120
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69:not(.bp_select_module_readonly--e4f69):not(:disabled):not(:focus):not(.bp_select_module_error--e4f69):not([aria-invalid]):hover{
|
|
3121
3121
|
background-color:var(--select-trigger-btn-hover-bg-color);
|
|
3122
3122
|
border-color:var(--select-trigger-btn-hover-border-color);
|
|
3123
3123
|
}
|
|
3124
|
-
.bp_select_module_container--
|
|
3124
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69 .bp_select_module_iconWrapper--e4f69{
|
|
3125
3125
|
flex-shrink:0;
|
|
3126
3126
|
-webkit-user-select:none;
|
|
3127
3127
|
user-select:none;
|
|
3128
3128
|
}
|
|
3129
|
-
.bp_select_module_container--
|
|
3129
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69 .bp_select_module_iconCaret--e4f69{
|
|
3130
3130
|
display:block;
|
|
3131
3131
|
height:var(--select-trigger-btn-caret-height);
|
|
3132
3132
|
width:var(--select-trigger-btn-caret-width);
|
|
3133
3133
|
}
|
|
3134
|
-
.bp_select_module_container--
|
|
3134
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69 .bp_select_module_iconCaret--e4f69 path{
|
|
3135
3135
|
fill:var(--select-trigger-btn-caret-color);
|
|
3136
3136
|
}
|
|
3137
|
-
.bp_select_module_container--
|
|
3137
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69 .bp_select_module_iconPencilCrossed--e4f69{
|
|
3138
3138
|
display:block;
|
|
3139
3139
|
height:var(--select-trigger-btn-pencil-height);
|
|
3140
3140
|
width:var(--select-trigger-btn-pencil-width);
|
|
3141
3141
|
}
|
|
3142
|
-
.bp_select_module_container--
|
|
3142
|
+
.bp_select_module_container--e4f69 .bp_select_module_triggerBtn--e4f69[data-state=open] .bp_select_module_icon--e4f69{
|
|
3143
3143
|
transform:rotate(180deg);
|
|
3144
3144
|
}
|
|
3145
3145
|
|
|
3146
|
-
.bp_select_module_content--
|
|
3146
|
+
.bp_select_module_content--e4f69[data-modern=false]{
|
|
3147
3147
|
--select-content-bg-color:var(--surface-menu-surface);
|
|
3148
3148
|
--select-content-backdrop-filter:none;
|
|
3149
3149
|
--select-content-border:var(--border-1) solid var(--border-card-border);
|
|
@@ -3169,7 +3169,7 @@
|
|
|
3169
3169
|
--select-content-viewport-option-separator-margin-block:var(--space-2);
|
|
3170
3170
|
}
|
|
3171
3171
|
|
|
3172
|
-
.bp_select_module_content--
|
|
3172
|
+
.bp_select_module_content--e4f69[data-modern=true]{
|
|
3173
3173
|
--select-content-bg-color:var(--bp-surface-menu-surface-dropdown);
|
|
3174
3174
|
--select-content-backdrop-filter:blur(16px);
|
|
3175
3175
|
--select-content-border:var(--bp-border-01) solid var(--bp-border-card-border);
|
|
@@ -3195,7 +3195,7 @@
|
|
|
3195
3195
|
--select-content-viewport-option-separator-margin-block:var(--bp-space-020);
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
3198
|
-
.bp_select_module_content--
|
|
3198
|
+
.bp_select_module_content--e4f69{
|
|
3199
3199
|
backdrop-filter:var(--select-content-backdrop-filter);
|
|
3200
3200
|
background-color:var(--select-content-bg-color);
|
|
3201
3201
|
border:var(--select-content-border);
|
|
@@ -3215,11 +3215,11 @@
|
|
|
3215
3215
|
text-transform:var(--body-default-text-case);
|
|
3216
3216
|
z-index:380;
|
|
3217
3217
|
}
|
|
3218
|
-
.bp_select_module_content--
|
|
3218
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69{
|
|
3219
3219
|
padding-block:var(--select-content-viewport-padding-block);
|
|
3220
3220
|
padding-inline:var(--select-content-viewport-padding-inline);
|
|
3221
3221
|
}
|
|
3222
|
-
.bp_select_module_content--
|
|
3222
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69{
|
|
3223
3223
|
border:var(--select-content-viewport-option-border);
|
|
3224
3224
|
border-radius:var(--select-content-viewport-option-border-radius);
|
|
3225
3225
|
cursor:pointer;
|
|
@@ -3234,29 +3234,29 @@
|
|
|
3234
3234
|
-webkit-user-select:none;
|
|
3235
3235
|
user-select:none;
|
|
3236
3236
|
}
|
|
3237
|
-
.bp_select_module_content--
|
|
3237
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69[data-disabled]{
|
|
3238
3238
|
opacity:60%;
|
|
3239
3239
|
pointer-events:none;
|
|
3240
3240
|
}
|
|
3241
|
-
.bp_select_module_content--
|
|
3241
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69[data-highlighted]{
|
|
3242
3242
|
background-color:var(--select-content-viewport-option-focus-bg-color);
|
|
3243
3243
|
border:var(--select-content-viewport-option-focus-border);
|
|
3244
3244
|
}
|
|
3245
|
-
.bp_select_module_content--
|
|
3245
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69:active{
|
|
3246
3246
|
background-color:var(--select-content-viewport-option-active-bg-color);
|
|
3247
3247
|
border:var(--select-content-viewport-option-active-border);
|
|
3248
3248
|
}
|
|
3249
|
-
.bp_select_module_content--
|
|
3249
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69:hover{
|
|
3250
3250
|
background-color:var(--select-content-viewport-option-hover-bg-color);
|
|
3251
3251
|
}
|
|
3252
|
-
.bp_select_module_content--
|
|
3252
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69 span:first-child{
|
|
3253
3253
|
overflow:hidden;
|
|
3254
3254
|
overflow-wrap:break-word;
|
|
3255
3255
|
}
|
|
3256
|
-
.bp_select_module_content--
|
|
3256
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69 .bp_select_module_secondaryText--e4f69{
|
|
3257
3257
|
color:var(--select-content-viewport-option-secondary-text-color);
|
|
3258
3258
|
}
|
|
3259
|
-
.bp_select_module_content--
|
|
3259
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69 .bp_select_module_indicator--e4f69{
|
|
3260
3260
|
align-items:center;
|
|
3261
3261
|
display:flex;
|
|
3262
3262
|
height:var(--select-content-viewport-option-indicator-height);
|
|
@@ -3265,14 +3265,14 @@
|
|
|
3265
3265
|
position:absolute;
|
|
3266
3266
|
top:0;
|
|
3267
3267
|
}
|
|
3268
|
-
.bp_select_module_content--
|
|
3268
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_option--e4f69 .bp_select_module_indicator--e4f69 path{
|
|
3269
3269
|
fill:var(--select-content-viewport-option-indicator-color);
|
|
3270
3270
|
}
|
|
3271
|
-
.bp_select_module_content--
|
|
3272
|
-
background-color:var(--select-content-
|
|
3271
|
+
.bp_select_module_content--e4f69 .bp_select_module_viewport--e4f69 .bp_select_module_separator--e4f69{
|
|
3272
|
+
background-color:var(--select-content-viewport-option-separator-bg-color);
|
|
3273
3273
|
flex-shrink:0;
|
|
3274
|
-
height:var(--select-content-
|
|
3275
|
-
margin-block:var(--select-content-
|
|
3274
|
+
height:var(--select-content-viewport-option-separator-height);
|
|
3275
|
+
margin-block:var(--select-content-viewport-option-separator-margin-block);
|
|
3276
3276
|
}
|
|
3277
3277
|
|
|
3278
3278
|
.bp_content_card_module_card--adb8d{
|
|
@@ -10831,152 +10831,291 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
10831
10831
|
--z-index-card-tooltip:2147483647;
|
|
10832
10832
|
}
|
|
10833
10833
|
|
|
10834
|
-
.
|
|
10835
|
-
|
|
10836
|
-
border:var(--border-1) solid var(--border-card-border);
|
|
10837
|
-
border-radius:var(--radius-4);
|
|
10838
|
-
box-shadow:var(--dropshadow-3);
|
|
10839
|
-
padding:calc(var(--space-1) - var(--border-1));
|
|
10834
|
+
.bp_toolbar_module_dropdownIndicator--73857.bp_toolbar_module_invertCaret--73857{
|
|
10835
|
+
transform:rotate(.5turn);
|
|
10840
10836
|
}
|
|
10841
10837
|
|
|
10842
|
-
.
|
|
10838
|
+
.bp_toolbar_module_toolbarRoot--73857[data-modern=false]{
|
|
10839
|
+
--toolbar-root-gap:var(--space-1);
|
|
10840
|
+
--toolbar-root-padding:calc(var(--space-1) - var(--border-1));
|
|
10841
|
+
--toolbar-root-background:var(--surface-surface);
|
|
10842
|
+
--toolbar-root-border:var(--border-1) solid var(--border-card-border);
|
|
10843
|
+
--toolbar-root-border-radius:var(--radius-4);
|
|
10844
|
+
--toolbar-root-box-shadow:var(--dropshadow-3);
|
|
10845
|
+
--toolbar-scroll-button-gap:var(--space-1);
|
|
10846
|
+
--toolbar-scrollable-children-gap:var(--space-1);
|
|
10847
|
+
--toolbar-scrollable-children-padding:calc(var(--space-1) - var(--border-1));
|
|
10848
|
+
--toolbar-scrollable-children-scroll-padding:calc(var(--space-1) - var(--border-1));
|
|
10849
|
+
--toolbar-separator-height:var(--size-6);
|
|
10850
|
+
--toolbar-separator-background:var(--border-divider-border);
|
|
10851
|
+
--toolbar-separator-border-radius:var(--radius-2);
|
|
10852
|
+
}
|
|
10853
|
+
|
|
10854
|
+
.bp_toolbar_module_toolbarRoot--73857[data-modern=true]{
|
|
10855
|
+
--box-shadow:0 4px 12px 0 #0000001a;
|
|
10856
|
+
--toolbar-root-gap:var(--bp-space-010);
|
|
10857
|
+
--toolbar-root-padding:var(--bp-space-010);
|
|
10858
|
+
--toolbar-root-background:var(--bp-surface-toolbar-surface);
|
|
10859
|
+
--toolbar-root-border:var(--bp-border-01) solid var(--bp-border-toolbar-border);
|
|
10860
|
+
--toolbar-root-border-radius:var(--bp-radius-10);
|
|
10861
|
+
--toolbar-root-box-shadow:var(--box-shadow);
|
|
10862
|
+
--toolbar-scroll-button-gap:var(--bp-space-010);
|
|
10863
|
+
--toolbar-scrollable-children-gap:var(--bp-space-010);
|
|
10864
|
+
--toolbar-scrollable-children-padding:var(--bp-space-010);
|
|
10865
|
+
--toolbar-scrollable-children-scroll-padding:var(--bp-space-010);
|
|
10866
|
+
--toolbar-separator-height:var(--bp-size-060);
|
|
10867
|
+
--toolbar-separator-background:var(--bp-border-divider-border);
|
|
10868
|
+
--toolbar-separator-border-radius:var(--bp-radius-03);
|
|
10869
|
+
--toolbar-toggle-group-gap:var(--bp-space-010);
|
|
10870
|
+
}
|
|
10871
|
+
.bp_toolbar_module_toolbarRoot--73857[data-modern=true].bp_toolbar_module_ScrollableToolbarWithReducedPadding--73857{
|
|
10872
|
+
--toolbar-root-padding:0;
|
|
10873
|
+
}
|
|
10874
|
+
|
|
10875
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=false]{
|
|
10876
|
+
--toolbar-item-min-width:var(--size-8);
|
|
10877
|
+
--toolbar-item-min-height:var(--size-8);
|
|
10878
|
+
--toolbar-item-text-indent:var(--space-1);
|
|
10879
|
+
--toolbar-item-background:var(--surface-toggle-surface);
|
|
10880
|
+
--toolbar-item-border:var(--border-1) solid #0000;
|
|
10881
|
+
--toolbar-item-border-radius:var(--radius-2);
|
|
10882
|
+
--toolbar-item-padding-inline:calc(var(--space-1) - var(--border-1));
|
|
10883
|
+
--toolbar-item-off-hover-background:var(--surface-toggle-surface-hover);
|
|
10884
|
+
--toolbar-item-off-hover-border:var(--border-1) solid var(--surface-toggle-surface-hover);
|
|
10885
|
+
--toolbar-item-focus-outline:var(--outline-focus-on-light);
|
|
10886
|
+
--toolbar-item-disabled-opacity:.3;
|
|
10887
|
+
--toolbar-toggle-on-pressed-border:none;
|
|
10888
|
+
--toolbar-toggle-on-pressed-background:var(--surface-toggle-surface-pressed);
|
|
10889
|
+
--toolbar-toggle-icon-fill:var(--icon-icon-on-dark);
|
|
10890
|
+
--toolbar-toggle-on-hover-background:var(--surface-toggle-surface-on-hover);
|
|
10891
|
+
--toolbar-toggle-on-hover-border:var(--border-1) solid var(--surface-toggle-surface-on-hover);
|
|
10892
|
+
--toolbar-icon-width:var(--size-5);
|
|
10893
|
+
--toolbar-icon-height:var(--size-5);
|
|
10894
|
+
--toolbar-text-toggle-color:var(--text-text-on-light);
|
|
10895
|
+
--toolbar-text-toggle-off-border:var(--border-1) solid var(--border-toggletext-border-off);
|
|
10896
|
+
--toolbar-text-toggle-padding-inline:var(--space-2);
|
|
10897
|
+
--toolbar-text-toggle-hover-background:var(--surface-toggle-surface-off-hover);
|
|
10898
|
+
--toolbar-text-toggle-hover-border-color:var(--border-toggletext-border-off-hover);
|
|
10899
|
+
--toolbar-text-toggle-active-background:var(--surface-toggle-surface-off-pressed);
|
|
10900
|
+
--toolbar-text-toggle-active-border-color:var(--border-toggletext-border-off-pressed);
|
|
10901
|
+
--toolbar-text-toggle-checked-color:var(--text-toggletext-text);
|
|
10902
|
+
--toolbar-text-toggle-checked-background:var(--surface-toggletext-surface-on);
|
|
10903
|
+
--toolbar-text-toggle-checked-border:var(--border-1) solid var(--border-toggletext-border-on);
|
|
10904
|
+
--toolbar-text-toggle-checked-hover-background:var(--surface-toggletext-surface-on-hover);
|
|
10905
|
+
--toolbar-text-toggle-checked-hover-border-color:var(--border-toggletext-border-on-hover);
|
|
10906
|
+
--toolbar-text-toggle-checked-active-background:var(--surface-toggletext-surface-on-pressed);
|
|
10907
|
+
--toolbar-text-toggle-checked-active-border-color:var(--border-toggletext-border-on-pressed);
|
|
10908
|
+
--trigger-button-hover-opacity:.7;
|
|
10909
|
+
}
|
|
10910
|
+
|
|
10911
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=true]{
|
|
10912
|
+
--toolbar-item-min-width:var(--bp-size-080);
|
|
10913
|
+
--toolbar-item-min-height:var(--bp-size-080);
|
|
10914
|
+
--toolbar-item-text-indent:var(--bp-space-010);
|
|
10915
|
+
--toolbar-item-background:var(--bp-surface-toggle-surface);
|
|
10916
|
+
--toolbar-item-border:var(--bp-border-01) solid #0000;
|
|
10917
|
+
--toolbar-item-border-radius:var(--bp-radius-10);
|
|
10918
|
+
--toolbar-item-padding-inline:calc(var(--bp-space-010) - var(--bp-border-01));
|
|
10919
|
+
--toolbar-item-off-hover-background:var(--bp-surface-toggle-surface-hover);
|
|
10920
|
+
--toolbar-item-off-hover-border:var(--bp-border-01) solid var(--bp-surface-toggle-surface-hover);
|
|
10921
|
+
--toolbar-item-focus-outline:var(--bp-outline-focus-on-light);
|
|
10922
|
+
--toolbar-item-disabled-opacity:.3;
|
|
10923
|
+
--toolbar-toggle-on-pressed-border:var(--bp-border-01) solid var(--bp-border-toggle-border-on);
|
|
10924
|
+
--toolbar-toggle-on-pressed-background:var(--bp-surface-toggle-surface-on);
|
|
10925
|
+
--toolbar-toggle-icon-fill:var(--bp-icon-icon-blue);
|
|
10926
|
+
--toolbar-toggle-on-hover-background:var(--bp-surface-toggle-surface-on-hover);
|
|
10927
|
+
--toolbar-toggle-on-hover-border:var(--bp-border-01) solid var(--bp-border-toggle-border-on);
|
|
10928
|
+
--toolbar-icon-width:var(--bp-size-050);
|
|
10929
|
+
--toolbar-icon-height:var(--bp-size-050);
|
|
10930
|
+
--toolbar-text-toggle-color:var(--bp-text-text-on-light);
|
|
10931
|
+
--toolbar-text-toggle-off-border:var(--bp-border-01) solid var(--bp-border-toggle-text-border-off);
|
|
10932
|
+
--toolbar-text-toggle-padding-inline:var(--bp-space-020);
|
|
10933
|
+
--toolbar-text-toggle-hover-background:var(--bp-surface-toggle-surface-off-hover);
|
|
10934
|
+
--toolbar-text-toggle-hover-border-color:var(--bp-border-toggle-text-border-off-hover);
|
|
10935
|
+
--toolbar-text-toggle-active-background:var(--bp-surface-toggle-text-surface-off-pressed);
|
|
10936
|
+
--toolbar-text-toggle-active-border-color:var(--bp-border-toggle-text-border-off-pressed);
|
|
10937
|
+
--toolbar-text-toggle-checked-color:var(--bp-text-toggle-text-text);
|
|
10938
|
+
--toolbar-text-toggle-checked-background:var(--bp-surface-toggle-text-surface-on);
|
|
10939
|
+
--toolbar-text-toggle-checked-border:var(--bp-border-01) solid var(--bp-border-toggle-text-border-on);
|
|
10940
|
+
--toolbar-text-toggle-checked-hover-background:var(--bp-surface-toggle-text-surface-on-hover);
|
|
10941
|
+
--toolbar-text-toggle-checked-hover-border-color:var(--bp-border-toggle-text-border-on-hover);
|
|
10942
|
+
--toolbar-text-toggle-checked-active-background:var(--bp-surface-toggle-text-surface-on-pressed);
|
|
10943
|
+
--toolbar-text-toggle-checked-active-border-color:var(--bp-border-toggle-text-border-on-pressed);
|
|
10944
|
+
--trigger-button-hover-opacity:.65;
|
|
10945
|
+
--trigger-button-active-opacity:.8;
|
|
10946
|
+
}
|
|
10947
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=true]:active,.bp_toolbar_module_toolbarItem--73857[data-modern=true][data-active]{
|
|
10948
|
+
background:var(--bp-surface-toggle-surface-off-pressed);
|
|
10949
|
+
border:var(--bp-border-01) solid var(--bp-border-toggle-border-off);
|
|
10950
|
+
}
|
|
10951
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=true][data-state=on]:active,.bp_toolbar_module_toolbarItem--73857[data-modern=true][data-state=on][data-active]{
|
|
10952
|
+
background:var(--bp-surface-toggle-surface-on-pressed);
|
|
10953
|
+
border:var(--bp-border-01) solid var(--bp-border-toggle-border-on);
|
|
10954
|
+
}
|
|
10955
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=true][data-state=on]:hover .bp_toolbar_module_dropdownIndicator--73857{
|
|
10956
|
+
transform:rotate(1turn);
|
|
10957
|
+
}
|
|
10958
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=true].bp_toolbar_module_triggerButtonSelectedWithColor--73857:active,.bp_toolbar_module_toolbarItem--73857[data-modern=true].bp_toolbar_module_triggerButtonSelectedWithColor--73857[data-active]{
|
|
10959
|
+
background-color:var(--toolbar-button-color);
|
|
10960
|
+
opacity:var(--trigger-button-active-opacity);
|
|
10961
|
+
}
|
|
10962
|
+
.bp_toolbar_module_toolbarItem--73857[data-modern=true].bp_toolbar_module_triggerButtonSelectedWithColor--73857[data-state=on]:hover{
|
|
10963
|
+
background-color:var(--toolbar-button-color);
|
|
10964
|
+
border-color:var(--toolbar-button-color);
|
|
10965
|
+
opacity:var(--trigger-button-hover-opacity);
|
|
10966
|
+
}
|
|
10967
|
+
|
|
10968
|
+
.bp_toolbar_module_toggleGroup--73857[data-modern=false]{
|
|
10969
|
+
--toolbar-toggle-group-gap:var(--space-1);
|
|
10970
|
+
}
|
|
10971
|
+
|
|
10972
|
+
.bp_toolbar_module_toggleGroup--73857[data-modern=true]{
|
|
10973
|
+
--toolbar-toggle-group-gap:var(--bp-space-010);
|
|
10974
|
+
}
|
|
10975
|
+
|
|
10976
|
+
.bp_toolbar_module_toolbarRoot--73857{
|
|
10843
10977
|
align-items:center;
|
|
10978
|
+
background:var(--toolbar-root-background);
|
|
10979
|
+
border:var(--toolbar-root-border);
|
|
10980
|
+
border-radius:var(--toolbar-root-border-radius);
|
|
10981
|
+
box-shadow:var(--toolbar-root-box-shadow);
|
|
10844
10982
|
display:flex;
|
|
10845
|
-
gap:var(--
|
|
10983
|
+
gap:var(--toolbar-root-gap);
|
|
10984
|
+
padding:var(--toolbar-root-padding);
|
|
10985
|
+
}
|
|
10986
|
+
|
|
10987
|
+
.bp_toolbar_module_scrollButtonWrapper--73857{
|
|
10988
|
+
align-items:center;
|
|
10989
|
+
display:flex;
|
|
10990
|
+
gap:var(--toolbar-scroll-button-gap);
|
|
10846
10991
|
}
|
|
10847
|
-
.bp_toolbar_module_scrollButtonWrapper--
|
|
10992
|
+
.bp_toolbar_module_scrollButtonWrapper--73857.bp_toolbar_module_hidden--73857{
|
|
10848
10993
|
display:none;
|
|
10849
10994
|
}
|
|
10850
10995
|
|
|
10851
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
10996
|
+
.bp_toolbar_module_scrollableChildrenWrapper--73857{
|
|
10852
10997
|
-ms-overflow-style:none;
|
|
10853
10998
|
align-items:center;
|
|
10854
10999
|
display:flex;
|
|
10855
11000
|
flex-grow:1;
|
|
10856
|
-
gap:var(--
|
|
11001
|
+
gap:var(--toolbar-scrollable-children-gap);
|
|
10857
11002
|
overflow-x:auto;
|
|
10858
|
-
padding:
|
|
11003
|
+
padding:var(--toolbar-scrollable-children-padding);
|
|
10859
11004
|
scroll-behavior:smooth;
|
|
10860
|
-
scroll-padding:
|
|
11005
|
+
scroll-padding:var(--toolbar-scrollable-children-scroll-padding);
|
|
10861
11006
|
scrollbar-width:none;
|
|
10862
11007
|
white-space:nowrap;
|
|
10863
11008
|
}
|
|
10864
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
11009
|
+
.bp_toolbar_module_scrollableChildrenWrapper--73857::-webkit-scrollbar{
|
|
10865
11010
|
display:none;
|
|
10866
11011
|
}
|
|
10867
|
-
.bp_toolbar_module_scrollableChildrenWrapper--
|
|
11012
|
+
.bp_toolbar_module_scrollableChildrenWrapper--73857 > *{
|
|
10868
11013
|
flex:none;
|
|
10869
11014
|
}
|
|
10870
11015
|
|
|
10871
|
-
.bp_toolbar_module_separator--
|
|
10872
|
-
background-color:var(--
|
|
10873
|
-
border-radius:var(--radius
|
|
10874
|
-
height:var(--
|
|
11016
|
+
.bp_toolbar_module_separator--73857{
|
|
11017
|
+
background-color:var(--toolbar-separator-background);
|
|
11018
|
+
border-radius:var(--toolbar-separator-border-radius);
|
|
11019
|
+
height:var(--toolbar-separator-height);
|
|
10875
11020
|
width:1px;
|
|
10876
11021
|
}
|
|
10877
11022
|
|
|
10878
|
-
.bp_toolbar_module_toggleGroup--
|
|
11023
|
+
.bp_toolbar_module_toggleGroup--73857{
|
|
10879
11024
|
display:flex;
|
|
10880
|
-
gap:var(--
|
|
11025
|
+
gap:var(--toolbar-toggle-group-gap);
|
|
10881
11026
|
}
|
|
10882
11027
|
|
|
10883
|
-
.bp_toolbar_module_toolbarItem--
|
|
10884
|
-
--toolbar-item-hover-opacity:.3;
|
|
11028
|
+
.bp_toolbar_module_toolbarItem--73857{
|
|
10885
11029
|
align-items:center;
|
|
10886
|
-
background:var(--toolbar-button-color, var(--
|
|
10887
|
-
border:var(--border
|
|
10888
|
-
border-radius:var(--radius
|
|
11030
|
+
background:var(--toolbar-button-color, var(--toolbar-item-background));
|
|
11031
|
+
border:var(--toolbar-item-border);
|
|
11032
|
+
border-radius:var(--toolbar-item-border-radius);
|
|
10889
11033
|
cursor:pointer;
|
|
10890
11034
|
display:flex;
|
|
10891
|
-
gap:var(--
|
|
11035
|
+
gap:var(--toolbar-scroll-button-gap);
|
|
10892
11036
|
justify-content:center;
|
|
10893
|
-
min-height:var(--
|
|
10894
|
-
min-width:var(--
|
|
11037
|
+
min-height:var(--toolbar-item-min-height);
|
|
11038
|
+
min-width:var(--toolbar-item-min-width);
|
|
10895
11039
|
outline:none;
|
|
10896
|
-
padding-inline:
|
|
10897
|
-
text-indent:var(--
|
|
11040
|
+
padding-inline:var(--toolbar-item-padding-inline);
|
|
11041
|
+
text-indent:var(--toolbar-item-text-indent);
|
|
10898
11042
|
-webkit-user-select:none;
|
|
10899
11043
|
user-select:none;
|
|
10900
11044
|
}
|
|
10901
|
-
.bp_toolbar_module_toolbarItem--
|
|
10902
|
-
background:var(--
|
|
10903
|
-
opacity:var(--toolbar-item-
|
|
11045
|
+
.bp_toolbar_module_toolbarItem--73857[data-disabled]{
|
|
11046
|
+
background:var(--toolbar-item-background);
|
|
11047
|
+
opacity:var(--toolbar-item-disabled-opacity);
|
|
10904
11048
|
pointer-events:none;
|
|
10905
11049
|
}
|
|
10906
|
-
.bp_toolbar_module_toolbarItem--
|
|
10907
|
-
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--
|
|
11050
|
+
.bp_toolbar_module_toolbarItem--73857:not([data-disabled]):focus-visible{
|
|
11051
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--toolbar-item-focus-outline);
|
|
10908
11052
|
}
|
|
10909
|
-
.bp_toolbar_module_toolbarItem--
|
|
10910
|
-
background:var(--toolbar-button-color, var(--
|
|
10911
|
-
border:var(--
|
|
11053
|
+
.bp_toolbar_module_toolbarItem--73857:not([data-disabled]):hover{
|
|
11054
|
+
background:var(--toolbar-button-color, var(--toolbar-item-off-hover-background));
|
|
11055
|
+
border:var(--toolbar-item-off-hover-border);
|
|
10912
11056
|
}
|
|
10913
11057
|
|
|
10914
|
-
.bp_toolbar_module_toolbarToggle--
|
|
10915
|
-
background:var(--
|
|
11058
|
+
.bp_toolbar_module_toolbarToggle--73857[data-state=on]{
|
|
11059
|
+
background:var(--toolbar-toggle-on-pressed-background);
|
|
11060
|
+
border:var(--toolbar-toggle-on-pressed-border);
|
|
10916
11061
|
}
|
|
10917
|
-
.bp_toolbar_module_toolbarToggle--
|
|
10918
|
-
fill:var(--
|
|
11062
|
+
.bp_toolbar_module_toolbarToggle--73857[data-state=on] svg *{
|
|
11063
|
+
fill:var(--toolbar-toggle-icon-fill);
|
|
10919
11064
|
}
|
|
10920
|
-
.bp_toolbar_module_toolbarToggle--
|
|
10921
|
-
background:var(--
|
|
10922
|
-
border:var(--
|
|
11065
|
+
.bp_toolbar_module_toolbarToggle--73857[data-state=on]:not([data-disabled]):hover{
|
|
11066
|
+
background:var(--toolbar-toggle-on-hover-background);
|
|
11067
|
+
border:var(--toolbar-toggle-on-hover-border);
|
|
10923
11068
|
}
|
|
10924
|
-
|
|
10925
|
-
.bp_toolbar_module_dropdownIndicator--b3c70.bp_toolbar_module_invertCaret--b3c70{
|
|
10926
|
-
transform:rotate(.5turn);
|
|
10927
|
-
}
|
|
10928
|
-
|
|
10929
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--b3c70{
|
|
10930
|
-
--trigger-button-hover-opacity:.7;
|
|
10931
|
-
}
|
|
10932
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--b3c70[data-state=on] .bp_toolbar_module_dropdownIndicator--b3c70 path{
|
|
11069
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--73857[data-state=on] .bp_toolbar_module_dropdownIndicator--73857 path{
|
|
10933
11070
|
fill:var(--icon-icon-on-light);
|
|
10934
11071
|
}
|
|
10935
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--
|
|
11072
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--73857[data-state=on]:hover{
|
|
11073
|
+
background-color:var(--toolbar-button-color);
|
|
11074
|
+
border-color:var(--toolbar-button-color);
|
|
10936
11075
|
opacity:var(--trigger-button-hover-opacity);
|
|
10937
11076
|
}
|
|
10938
11077
|
|
|
10939
|
-
.bp_toolbar_module_toolbarIcon--
|
|
11078
|
+
.bp_toolbar_module_toolbarIcon--73857{
|
|
10940
11079
|
align-items:center;
|
|
10941
11080
|
display:flex;
|
|
10942
|
-
height:var(--
|
|
11081
|
+
height:var(--toolbar-icon-height);
|
|
10943
11082
|
justify-content:center;
|
|
10944
|
-
width:var(--
|
|
11083
|
+
width:var(--toolbar-icon-width);
|
|
10945
11084
|
}
|
|
10946
11085
|
|
|
10947
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
10948
|
-
border:var(--
|
|
10949
|
-
color:var(--
|
|
11086
|
+
.bp_toolbar_module_toolbarTextToggleItem--73857{
|
|
11087
|
+
border:var(--toolbar-text-toggle-off-border);
|
|
11088
|
+
color:var(--toolbar-text-toggle-color);
|
|
10950
11089
|
font-family:var(--body-default-font-family);
|
|
10951
11090
|
font-size:var(--body-default-font-size);
|
|
10952
11091
|
font-weight:var(--body-default-font-weight);
|
|
10953
11092
|
letter-spacing:var(--body-default-letter-spacing);
|
|
10954
11093
|
line-height:var(--body-default-line-height);
|
|
10955
|
-
padding-inline:var(--
|
|
11094
|
+
padding-inline:var(--toolbar-text-toggle-padding-inline);
|
|
10956
11095
|
-webkit-text-decoration:var(--body-default-text-decoration);
|
|
10957
11096
|
text-decoration:var(--body-default-text-decoration);
|
|
10958
11097
|
text-indent:unset;
|
|
10959
11098
|
text-transform:var(--body-default-text-case);
|
|
10960
11099
|
white-space:nowrap;
|
|
10961
11100
|
}
|
|
10962
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
10963
|
-
background:var(--
|
|
10964
|
-
border-color:var(--
|
|
11101
|
+
.bp_toolbar_module_toolbarTextToggleItem--73857:hover{
|
|
11102
|
+
background:var(--toolbar-text-toggle-hover-background);
|
|
11103
|
+
border-color:var(--toolbar-text-toggle-hover-border-color);
|
|
10965
11104
|
}
|
|
10966
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
10967
|
-
background:var(--
|
|
10968
|
-
border-color:var(--
|
|
11105
|
+
.bp_toolbar_module_toolbarTextToggleItem--73857:active{
|
|
11106
|
+
background:var(--toolbar-text-toggle-active-background);
|
|
11107
|
+
border-color:var(--toolbar-text-toggle-active-border-color);
|
|
10969
11108
|
}
|
|
10970
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
10971
|
-
background:var(--
|
|
10972
|
-
border:var(--
|
|
10973
|
-
color:var(--text-
|
|
11109
|
+
.bp_toolbar_module_toolbarTextToggleItem--73857[aria-checked=true]{
|
|
11110
|
+
background:var(--toolbar-text-toggle-checked-background);
|
|
11111
|
+
border:var(--toolbar-text-toggle-checked-border);
|
|
11112
|
+
color:var(--toolbar-text-toggle-checked-color);
|
|
10974
11113
|
}
|
|
10975
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
10976
|
-
background:var(--
|
|
10977
|
-
border-color:var(--
|
|
11114
|
+
.bp_toolbar_module_toolbarTextToggleItem--73857[aria-checked=true]:hover{
|
|
11115
|
+
background:var(--toolbar-text-toggle-checked-hover-background);
|
|
11116
|
+
border-color:var(--toolbar-text-toggle-checked-hover-border-color);
|
|
10978
11117
|
}
|
|
10979
|
-
.bp_toolbar_module_toolbarTextToggleItem--
|
|
10980
|
-
background:var(--
|
|
10981
|
-
border-color:var(--
|
|
11118
|
+
.bp_toolbar_module_toolbarTextToggleItem--73857[aria-checked=true]:active{
|
|
11119
|
+
background:var(--toolbar-text-toggle-checked-active-background);
|
|
11120
|
+
border-color:var(--toolbar-text-toggle-checked-active-border-color);
|
|
10982
11121
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"container":"bp_select_module_container--
|
|
2
|
+
var styles = {"container":"bp_select_module_container--e4f69","disabled":"bp_select_module_disabled--e4f69","label":"bp_select_module_label--e4f69","triggerBtn":"bp_select_module_triggerBtn--e4f69","readonly":"bp_select_module_readonly--e4f69","error":"bp_select_module_error--e4f69","iconWrapper":"bp_select_module_iconWrapper--e4f69","iconCaret":"bp_select_module_iconCaret--e4f69","iconPencilCrossed":"bp_select_module_iconPencilCrossed--e4f69","icon":"bp_select_module_icon--e4f69","content":"bp_select_module_content--e4f69","viewport":"bp_select_module_viewport--e4f69","option":"bp_select_module_option--e4f69","secondaryText":"bp_select_module_secondaryText--e4f69","indicator":"bp_select_module_indicator--e4f69","separator":"bp_select_module_separator--e4f69"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -2,6 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
6
|
import styles from './toolbar.module.js';
|
|
6
7
|
|
|
7
8
|
const ToolbarButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
@@ -12,10 +13,14 @@ const ToolbarButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
12
13
|
className,
|
|
13
14
|
...rest
|
|
14
15
|
} = props;
|
|
16
|
+
const {
|
|
17
|
+
enableModernizedComponents
|
|
18
|
+
} = useBlueprintModernization();
|
|
15
19
|
return jsx(ToolbarPrimitive.Button, {
|
|
16
20
|
...rest,
|
|
17
21
|
ref: forwardedRef,
|
|
18
22
|
className: clsx(styles.toolbarItem, className),
|
|
23
|
+
"data-modern": enableModernizedComponents,
|
|
19
24
|
style: {
|
|
20
25
|
'--toolbar-button-color': backgroundColor,
|
|
21
26
|
...style
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Caret } from '@box/blueprint-web-assets/icons/Fill';
|
|
2
|
+
import { ChevronDown, Caret } from '@box/blueprint-web-assets/icons/Fill';
|
|
3
3
|
import { Size2 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { forwardRef } from 'react';
|
|
5
|
+
import { forwardRef, useMemo } from 'react';
|
|
6
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
7
|
import styles from './toolbar.module.js';
|
|
7
8
|
|
|
8
9
|
const ToolbarDropdownIndicator = /*#__PURE__*/forwardRef(({
|
|
@@ -10,7 +11,11 @@ const ToolbarDropdownIndicator = /*#__PURE__*/forwardRef(({
|
|
|
10
11
|
className,
|
|
11
12
|
color
|
|
12
13
|
}, forwardedRef) => {
|
|
13
|
-
|
|
14
|
+
const {
|
|
15
|
+
enableModernizedComponents
|
|
16
|
+
} = useBlueprintModernization();
|
|
17
|
+
const Icon = useMemo(() => enableModernizedComponents ? ChevronDown : Caret, [enableModernizedComponents]);
|
|
18
|
+
return jsx(Icon, {
|
|
14
19
|
ref: forwardedRef,
|
|
15
20
|
className: clsx({
|
|
16
21
|
[styles.invertCaret]: direction === 'up'
|
|
@@ -2,6 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
6
|
import { ToolbarScrollableContainer } from './toolbar-scrollable-container.js';
|
|
6
7
|
import styles from './toolbar.module.js';
|
|
7
8
|
import { HorizontalScrollProvider } from './utils/horizontal-scroll-context.js';
|
|
@@ -13,6 +14,9 @@ const ToolbarRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
13
14
|
scrollable,
|
|
14
15
|
...rest
|
|
15
16
|
} = props;
|
|
17
|
+
const {
|
|
18
|
+
enableModernizedComponents
|
|
19
|
+
} = useBlueprintModernization();
|
|
16
20
|
if (scrollable) {
|
|
17
21
|
const {
|
|
18
22
|
ariaLabelNextButton,
|
|
@@ -23,7 +27,10 @@ const ToolbarRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
23
27
|
return jsx(ToolbarPrimitive.Root, {
|
|
24
28
|
...rest,
|
|
25
29
|
ref: forwardedRef,
|
|
26
|
-
className: clsx(styles.toolbarRoot,
|
|
30
|
+
className: clsx(styles.toolbarRoot, {
|
|
31
|
+
[styles.ScrollableToolbarWithReducedPadding]: enableModernizedComponents
|
|
32
|
+
}, className),
|
|
33
|
+
"data-modern": enableModernizedComponents,
|
|
27
34
|
style: {
|
|
28
35
|
maxWidth
|
|
29
36
|
},
|
|
@@ -41,6 +48,7 @@ const ToolbarRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
41
48
|
...rest,
|
|
42
49
|
ref: forwardedRef,
|
|
43
50
|
className: clsx(styles.toolbarRoot, className),
|
|
51
|
+
"data-modern": enableModernizedComponents,
|
|
44
52
|
children: children
|
|
45
53
|
});
|
|
46
54
|
});
|
|
@@ -2,6 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
6
|
import styles from './toolbar.module.js';
|
|
6
7
|
|
|
7
8
|
const ToolbarTextToggleItem = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
@@ -9,10 +10,14 @@ const ToolbarTextToggleItem = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
9
10
|
children,
|
|
10
11
|
...rest
|
|
11
12
|
} = props;
|
|
13
|
+
const {
|
|
14
|
+
enableModernizedComponents
|
|
15
|
+
} = useBlueprintModernization();
|
|
12
16
|
return jsx(ToolbarPrimitive.ToggleItem, {
|
|
13
17
|
...rest,
|
|
14
18
|
ref: forwardedRef,
|
|
15
19
|
className: clsx(styles.toolbarItem, styles.toolbarTextToggleItem),
|
|
20
|
+
"data-modern": enableModernizedComponents,
|
|
16
21
|
children: children
|
|
17
22
|
});
|
|
18
23
|
});
|
|
@@ -2,6 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
6
|
import styles from './toolbar.module.js';
|
|
6
7
|
|
|
7
8
|
const ToolbarToggleGroup = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
@@ -10,10 +11,14 @@ const ToolbarToggleGroup = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
10
11
|
className,
|
|
11
12
|
...rest
|
|
12
13
|
} = props;
|
|
14
|
+
const {
|
|
15
|
+
enableModernizedComponents
|
|
16
|
+
} = useBlueprintModernization();
|
|
13
17
|
return jsx(ToolbarPrimitive.ToggleGroup, {
|
|
14
18
|
...rest,
|
|
15
19
|
ref: forwardedRef,
|
|
16
20
|
className: clsx(styles.toggleGroup, className),
|
|
21
|
+
"data-modern": enableModernizedComponents,
|
|
17
22
|
children: children
|
|
18
23
|
});
|
|
19
24
|
});
|
|
@@ -3,6 +3,7 @@ import { Size5, IconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens'
|
|
|
3
3
|
import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef, createElement } from 'react';
|
|
6
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
7
|
import styles from './toolbar.module.js';
|
|
7
8
|
|
|
8
9
|
const ToolbarToggleItem = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
@@ -12,10 +13,14 @@ const ToolbarToggleItem = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
12
13
|
color = IconIconOnLight,
|
|
13
14
|
...rest
|
|
14
15
|
} = props;
|
|
16
|
+
const {
|
|
17
|
+
enableModernizedComponents
|
|
18
|
+
} = useBlueprintModernization();
|
|
15
19
|
return jsxs(ToolbarPrimitive.ToggleItem, {
|
|
16
20
|
...rest,
|
|
17
21
|
ref: forwardedRef,
|
|
18
22
|
className: clsx(styles.toolbarItem, styles.toolbarToggle),
|
|
23
|
+
"data-modern": enableModernizedComponents,
|
|
19
24
|
children: [children, /*#__PURE__*/createElement(icon, {
|
|
20
25
|
height: Size5,
|
|
21
26
|
width: Size5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"
|
|
2
|
+
var styles = {"dropdownIndicator":"bp_toolbar_module_dropdownIndicator--73857","invertCaret":"bp_toolbar_module_invertCaret--73857","toolbarRoot":"bp_toolbar_module_toolbarRoot--73857","ScrollableToolbarWithReducedPadding":"bp_toolbar_module_ScrollableToolbarWithReducedPadding--73857","toolbarItem":"bp_toolbar_module_toolbarItem--73857","triggerButtonSelectedWithColor":"bp_toolbar_module_triggerButtonSelectedWithColor--73857","toggleGroup":"bp_toolbar_module_toggleGroup--73857","scrollButtonWrapper":"bp_toolbar_module_scrollButtonWrapper--73857","hidden":"bp_toolbar_module_hidden--73857","scrollableChildrenWrapper":"bp_toolbar_module_scrollableChildrenWrapper--73857","separator":"bp_toolbar_module_separator--73857","toolbarToggle":"bp_toolbar_module_toolbarToggle--73857","toolbarIcon":"bp_toolbar_module_toolbarIcon--73857","toolbarTextToggleItem":"bp_toolbar_module_toolbarTextToggleItem--73857"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|