@box/blueprint-web 12.75.2 → 12.75.4
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 +49 -36
- package/dist/lib-esm/primitives/context-menu/context-menu.module.js +1 -1
- package/dist/lib-esm/split-button/SplitTriggerButton.js +1 -1
- package/dist/lib-esm/split-button/styles.module.js +1 -1
- package/dist/lib-esm/trigger-button/trigger-button.js +4 -1
- package/package.json +1 -1
package/dist/lib-esm/index.css
CHANGED
|
@@ -7211,7 +7211,8 @@ table.bp_inline_table_module_inlineTable--f6f94[data-modern=true] td:last-child,
|
|
|
7211
7211
|
}
|
|
7212
7212
|
}
|
|
7213
7213
|
|
|
7214
|
-
.bp_context_menu_module_menuBlock--
|
|
7214
|
+
.bp_context_menu_module_menuBlock--d3615[data-modern=false]{
|
|
7215
|
+
--context-menu-block-font-color:unset;
|
|
7215
7216
|
--context-menu-block-min-width:var(--blueprint-web-context-menu-min-width, 160px);
|
|
7216
7217
|
--context-menu-block-max-width:var(--blueprint-web-context-menu-max-width);
|
|
7217
7218
|
--context-menu-block-max-height:var(
|
|
@@ -7236,7 +7237,8 @@ table.bp_inline_table_module_inlineTable--f6f94[data-modern=true] td:last-child,
|
|
|
7236
7237
|
--context-menu-items-separator-margin:var(--space-2);
|
|
7237
7238
|
}
|
|
7238
7239
|
|
|
7239
|
-
.bp_context_menu_module_menuBlock--
|
|
7240
|
+
.bp_context_menu_module_menuBlock--d3615[data-modern=true]{
|
|
7241
|
+
--context-menu-block-font-color:var(--bp-text-text-on-light);
|
|
7240
7242
|
--context-menu-block-min-width:var(--blueprint-web-context-menu-min-width, 160px);
|
|
7241
7243
|
--context-menu-block-max-width:var(--blueprint-web-context-menu-max-width);
|
|
7242
7244
|
--context-menu-block-max-height:var(
|
|
@@ -7261,31 +7263,32 @@ table.bp_inline_table_module_inlineTable--f6f94[data-modern=true] td:last-child,
|
|
|
7261
7263
|
--context-menu-items-separator-margin:var(--bp-space-020);
|
|
7262
7264
|
}
|
|
7263
7265
|
|
|
7264
|
-
.bp_context_menu_module_menuHeader--
|
|
7266
|
+
.bp_context_menu_module_menuHeader--d3615[data-modern=false]{
|
|
7265
7267
|
--context-menu-header-padding:var(--space-3);
|
|
7266
7268
|
--context-menu-header-gap:var(--space-2);
|
|
7267
7269
|
--context-menu-header-shadow:var(--dropshadow-1);
|
|
7268
7270
|
}
|
|
7269
7271
|
|
|
7270
|
-
.bp_context_menu_module_menuHeader--
|
|
7272
|
+
.bp_context_menu_module_menuHeader--d3615[data-modern=true]{
|
|
7271
7273
|
--context-menu-header-padding:var(--bp-space-030) var(--bp-space-040);
|
|
7272
7274
|
--context-menu-header-gap:var(--bp-space-030);
|
|
7273
7275
|
--context-menu-header-shadow:var(--dropshadow-1);
|
|
7274
7276
|
}
|
|
7275
7277
|
|
|
7276
|
-
.bp_context_menu_module_menuBlock--
|
|
7278
|
+
.bp_context_menu_module_menuBlock--d3615{
|
|
7277
7279
|
backdrop-filter:var(--context-menu-block-backdrop-filter);
|
|
7278
7280
|
background-color:var(--context-menu-block-background-color);
|
|
7279
7281
|
border:var(--context-menu-block-border);
|
|
7280
7282
|
border-radius:var(--context-menu-block-radius);
|
|
7281
7283
|
box-shadow:var(--context-menu-block-shadow);
|
|
7282
7284
|
box-sizing:border-box;
|
|
7285
|
+
color:var(--context-menu-block-font-color);
|
|
7283
7286
|
max-height:var(--context-menu-block-max-height);
|
|
7284
7287
|
max-width:var(--context-menu-block-max-width);
|
|
7285
7288
|
min-width:var(--context-menu-block-min-width);
|
|
7286
7289
|
padding:var(--context-menu-block-padding);
|
|
7287
7290
|
}
|
|
7288
|
-
.bp_context_menu_module_menuBlock--
|
|
7291
|
+
.bp_context_menu_module_menuBlock--d3615[data-menu-fullscreen=true]{
|
|
7289
7292
|
border:unset;
|
|
7290
7293
|
border-radius:unset;
|
|
7291
7294
|
display:flex;
|
|
@@ -7298,14 +7301,14 @@ table.bp_inline_table_module_inlineTable--f6f94[data-modern=true] td:last-child,
|
|
|
7298
7301
|
position:relative;
|
|
7299
7302
|
width:100vw;
|
|
7300
7303
|
}
|
|
7301
|
-
.bp_context_menu_module_menuBlock--
|
|
7304
|
+
.bp_context_menu_module_menuBlock--d3615[data-menu-fullscreen=true] .bp_context_menu_module_fullScreenContent--d3615{
|
|
7302
7305
|
overflow-y:auto;
|
|
7303
7306
|
padding:var(--context-menu-fullscreen-content-padding);
|
|
7304
7307
|
}
|
|
7305
|
-
.bp_context_menu_module_menuBlock--
|
|
7308
|
+
.bp_context_menu_module_menuBlock--d3615 .bp_context_menu_module_menuItemsSeparator--d3615{
|
|
7306
7309
|
margin:var(--context-menu-items-separator-margin);
|
|
7307
7310
|
}
|
|
7308
|
-
.bp_context_menu_module_menuBlock--
|
|
7311
|
+
.bp_context_menu_module_menuBlock--d3615 .bp_context_menu_module_menuItem--d3615{
|
|
7309
7312
|
align-items:center;
|
|
7310
7313
|
background-color:var(--context-menu-background-color);
|
|
7311
7314
|
border:var(--context-menu-item-border);
|
|
@@ -7318,19 +7321,19 @@ table.bp_inline_table_module_inlineTable--f6f94[data-modern=true] td:last-child,
|
|
|
7318
7321
|
padding-inline:var(--context-menu-item-padding);
|
|
7319
7322
|
position:relative;
|
|
7320
7323
|
}
|
|
7321
|
-
.bp_context_menu_module_menuBlock--
|
|
7324
|
+
.bp_context_menu_module_menuBlock--d3615 .bp_context_menu_module_menuItem--d3615[data-disabled]{
|
|
7322
7325
|
opacity:60%;
|
|
7323
7326
|
pointer-events:none;
|
|
7324
7327
|
}
|
|
7325
|
-
.bp_context_menu_module_menuBlock--
|
|
7328
|
+
.bp_context_menu_module_menuBlock--d3615 .bp_context_menu_module_menuItem--d3615[data-highlighted]:not(:hover){
|
|
7326
7329
|
background-color:var(--context-menu-item-background-color-hover);
|
|
7327
7330
|
border:var(--context-menu-item-focus-border);
|
|
7328
7331
|
}
|
|
7329
|
-
.bp_context_menu_module_menuBlock--
|
|
7332
|
+
.bp_context_menu_module_menuBlock--d3615 .bp_context_menu_module_menuItem--d3615:active{
|
|
7330
7333
|
background-color:var(--context-menu-item-background-color-pressed);
|
|
7331
7334
|
border:var(--context-menu-item-border);
|
|
7332
7335
|
}
|
|
7333
|
-
.bp_context_menu_module_menuBlock--
|
|
7336
|
+
.bp_context_menu_module_menuBlock--d3615 .bp_context_menu_module_menuItem--d3615:hover{
|
|
7334
7337
|
background-color:var(--context-menu-item-background-color-hover);
|
|
7335
7338
|
}
|
|
7336
7339
|
div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):has([data-menu-fullscreen=true]){
|
|
@@ -7339,7 +7342,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
7339
7342
|
width:100%;
|
|
7340
7343
|
}
|
|
7341
7344
|
|
|
7342
|
-
.bp_context_menu_module_menuHeader--
|
|
7345
|
+
.bp_context_menu_module_menuHeader--d3615{
|
|
7343
7346
|
align-items:center;
|
|
7344
7347
|
box-shadow:var(--context-menu-header-shadow);
|
|
7345
7348
|
display:grid;
|
|
@@ -7349,19 +7352,19 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
7349
7352
|
padding:var(--context-menu-header-padding);
|
|
7350
7353
|
}
|
|
7351
7354
|
|
|
7352
|
-
.bp_context_menu_module_headerTextContent--
|
|
7355
|
+
.bp_context_menu_module_headerTextContent--d3615{
|
|
7353
7356
|
display:grid;
|
|
7354
7357
|
}
|
|
7355
7358
|
|
|
7356
|
-
.bp_context_menu_module_submenuCloseButton--
|
|
7359
|
+
.bp_context_menu_module_submenuCloseButton--d3615{
|
|
7357
7360
|
grid-area:submenu-close;
|
|
7358
7361
|
}
|
|
7359
7362
|
|
|
7360
|
-
.bp_context_menu_module_menuCloseButton--
|
|
7363
|
+
.bp_context_menu_module_menuCloseButton--d3615{
|
|
7361
7364
|
grid-area:close;
|
|
7362
7365
|
}
|
|
7363
7366
|
|
|
7364
|
-
.bp_context_menu_module_ellipsis--
|
|
7367
|
+
.bp_context_menu_module_ellipsis--d3615{
|
|
7365
7368
|
overflow:hidden;
|
|
7366
7369
|
text-overflow:ellipsis;
|
|
7367
7370
|
white-space:nowrap;
|
|
@@ -9075,75 +9078,85 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
9075
9078
|
.bp_trigger_button_module_triggerButton--6f670.bp_trigger_button_module_large--6f670{
|
|
9076
9079
|
padding:var(--button-large-padding);
|
|
9077
9080
|
}
|
|
9078
|
-
.bp_styles_module_splitButton--
|
|
9081
|
+
.bp_styles_module_splitButton--75e0b[data-modern=false]{
|
|
9079
9082
|
--split-button-left-width:100%;
|
|
9080
9083
|
--split-button-left-gap-margin-inline-end:calc(var(--space-05)/2);
|
|
9081
9084
|
--split-button-left-skip-right-border-border-inline-end-color:#0000;
|
|
9082
|
-
--split-button-left-skip-right-border-focus-visible-border-inline-end-color:var(
|
|
9085
|
+
--split-button-left-skip-right-border-focus-visible-border-inline-end-color:var(
|
|
9086
|
+
--border-cta-border-secondary-hover
|
|
9087
|
+
);
|
|
9088
|
+
--split-button-left-element-padding:0 var(--size-4);
|
|
9083
9089
|
--split-button-right-element-padding:0 var(--size-4);
|
|
9084
9090
|
--split-button-right-svg-width:var(--size-3);
|
|
9085
9091
|
--split-button-right-svg-height:var(--size-3);
|
|
9092
|
+
--split-button-right-element-border-color:var(--border-cta-border-secondary);
|
|
9086
9093
|
}
|
|
9087
9094
|
|
|
9088
|
-
.bp_styles_module_splitButton--
|
|
9095
|
+
.bp_styles_module_splitButton--75e0b[data-modern=true]{
|
|
9089
9096
|
--split-button-left-width:100%;
|
|
9090
9097
|
--split-button-left-gap-margin-inline-end:calc(var(--bp-space-005)/2);
|
|
9091
9098
|
--split-button-left-skip-right-border-border-inline-end-color:#0000;
|
|
9092
9099
|
--split-button-left-skip-right-border-focus-visible-border-inline-end-color:var(--bp-border-cta-border-secondary);
|
|
9100
|
+
--split-button-left-element-padding:0 var(--bp-space-030) 0 var(--bp-space-040);
|
|
9093
9101
|
--split-button-right-element-padding:var(--bp-size-030) var(--bp-size-040) var(--bp-size-030) var(--bp-size-030);
|
|
9094
|
-
--split-button-right-svg-width:var(--bp-size-
|
|
9095
|
-
--split-button-right-svg-height:var(--bp-size-
|
|
9102
|
+
--split-button-right-svg-width:var(--bp-size-040);
|
|
9103
|
+
--split-button-right-svg-height:var(--bp-size-040);
|
|
9104
|
+
--split-button-right-element-border-color:var(--bp-border-cta-border-secondary);
|
|
9096
9105
|
}
|
|
9097
9106
|
|
|
9098
|
-
.bp_styles_module_dropdown--
|
|
9107
|
+
.bp_styles_module_dropdown--75e0b[data-modern=false],.bp_styles_module_dropdown--75e0b[data-modern=true]{
|
|
9099
9108
|
--split-button-dropdown-min-width:160px;
|
|
9100
9109
|
}
|
|
9101
9110
|
|
|
9102
|
-
.bp_styles_module_splitButton--
|
|
9111
|
+
.bp_styles_module_splitButton--75e0b{
|
|
9103
9112
|
display:inline-flex;
|
|
9104
9113
|
position:relative;
|
|
9105
9114
|
}
|
|
9106
|
-
.bp_styles_module_splitButton--
|
|
9115
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b{
|
|
9107
9116
|
border-bottom-right-radius:0;
|
|
9108
9117
|
border-top-right-radius:0;
|
|
9118
|
+
padding:var(--split-button-left-element-padding);
|
|
9109
9119
|
width:var(--split-button-left-width);
|
|
9110
9120
|
}
|
|
9111
|
-
.bp_styles_module_splitButton--
|
|
9121
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b.bp_styles_module_gap--75e0b{
|
|
9112
9122
|
margin-inline-end:var(--split-button-left-gap-margin-inline-end);
|
|
9113
9123
|
}
|
|
9114
|
-
.bp_styles_module_splitButton--
|
|
9124
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b:focus-visible{
|
|
9115
9125
|
z-index:1;
|
|
9116
9126
|
}
|
|
9117
|
-
.bp_styles_module_splitButton--
|
|
9127
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b.bp_styles_module_skipRightBorder--75e0b{
|
|
9118
9128
|
border-inline-end-color:var(--split-button-left-skip-right-border-border-inline-end-color) !important;
|
|
9119
9129
|
}
|
|
9120
|
-
.bp_styles_module_splitButton--
|
|
9130
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonLeft--75e0b.bp_styles_module_skipRightBorder--75e0b:focus-visible{
|
|
9121
9131
|
border-inline-end-color:var(--split-button-left-skip-right-border-focus-visible-border-inline-end-color) !important;
|
|
9122
9132
|
}
|
|
9123
|
-
.bp_styles_module_splitButton--
|
|
9133
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_loadingButton--75e0b{
|
|
9124
9134
|
width:100%;
|
|
9125
9135
|
}
|
|
9126
|
-
.bp_styles_module_splitButton--
|
|
9136
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b{
|
|
9127
9137
|
border-end-start-radius:0;
|
|
9128
9138
|
border-start-start-radius:0;
|
|
9129
9139
|
padding:var(--split-button-right-element-padding) !important;
|
|
9130
9140
|
}
|
|
9131
|
-
.bp_styles_module_splitButton--
|
|
9141
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b svg{
|
|
9132
9142
|
height:var(--split-button-right-svg-height);
|
|
9133
9143
|
width:var(--split-button-right-svg-width);
|
|
9134
9144
|
}
|
|
9135
|
-
.bp_styles_module_splitButton--
|
|
9145
|
+
.bp_styles_module_splitButton--75e0b .bp_styles_module_splitButtonRight--75e0b:focus-visible{
|
|
9136
9146
|
z-index:1;
|
|
9137
9147
|
}
|
|
9148
|
+
.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{
|
|
9149
|
+
border-color:var(--split-button-right-element-border-color);
|
|
9150
|
+
}
|
|
9138
9151
|
|
|
9139
|
-
.bp_styles_module_invisible--
|
|
9152
|
+
.bp_styles_module_invisible--75e0b{
|
|
9140
9153
|
left:0;
|
|
9141
9154
|
position:absolute;
|
|
9142
9155
|
top:0;
|
|
9143
9156
|
visibility:hidden;
|
|
9144
9157
|
}
|
|
9145
9158
|
|
|
9146
|
-
.bp_styles_module_dropdown--
|
|
9159
|
+
.bp_styles_module_dropdown--75e0b{
|
|
9147
9160
|
min-width:var(--split-button-dropdown-min-width);
|
|
9148
9161
|
}
|
|
9149
9162
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"menuBlock":"bp_context_menu_module_menuBlock--
|
|
2
|
+
var styles = {"menuBlock":"bp_context_menu_module_menuBlock--d3615","menuHeader":"bp_context_menu_module_menuHeader--d3615","fullScreenContent":"bp_context_menu_module_fullScreenContent--d3615","menuItemsSeparator":"bp_context_menu_module_menuItemsSeparator--d3615","menuItem":"bp_context_menu_module_menuItem--d3615","headerTextContent":"bp_context_menu_module_headerTextContent--d3615","submenuCloseButton":"bp_context_menu_module_submenuCloseButton--d3615","menuCloseButton":"bp_context_menu_module_menuCloseButton--d3615","ellipsis":"bp_context_menu_module_ellipsis--d3615"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -18,7 +18,7 @@ const SplitTriggerButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
18
18
|
ref: ref,
|
|
19
19
|
"aria-label": dropdownTriggerAriaLabel,
|
|
20
20
|
caretDirection: isOpened ? 'up' : 'down',
|
|
21
|
-
className: clsx(styles.splitButtonRight, {
|
|
21
|
+
className: clsx(styles.splitButtonRight, styles[`${variant}`], {
|
|
22
22
|
[styles.invisible]: isInvisible,
|
|
23
23
|
[styles.gap]: variant === 'primary'
|
|
24
24
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"splitButton":"bp_styles_module_splitButton--
|
|
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"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { CaretUp, CaretDown } from '@box/blueprint-web-assets/icons/Fill';
|
|
3
|
+
import { ChevronUp, ChevronDown } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import { forwardRef } from 'react';
|
|
5
6
|
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
@@ -45,7 +46,9 @@ const TriggerButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
45
46
|
}
|
|
46
47
|
}), label && jsx(BaseButton.Label, {
|
|
47
48
|
children: label
|
|
48
|
-
}), jsx(BaseButton.Icon, {
|
|
49
|
+
}), enableModernizedComponents ? jsx(BaseButton.Icon, {
|
|
50
|
+
icon: caretDirection === 'up' ? ChevronUp : ChevronDown
|
|
51
|
+
}) : jsx(BaseButton.Icon, {
|
|
49
52
|
icon: caretDirection === 'up' ? CaretUp : CaretDown
|
|
50
53
|
})]
|
|
51
54
|
});
|