@box/blueprint-web 14.0.0 → 14.0.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.
|
@@ -356,63 +356,68 @@ const RootInner = ({
|
|
|
356
356
|
hideLabel: hideLabel
|
|
357
357
|
}), jsx(PopoverAnchor, {
|
|
358
358
|
store: comboboxStore,
|
|
359
|
-
children:
|
|
359
|
+
children: jsx("div", {
|
|
360
360
|
ref: comboboxContainerRef,
|
|
361
361
|
className: clsx(styles.comboboxContainer, {
|
|
362
362
|
[styles.error]: hasError,
|
|
363
363
|
[styles.withChips]: showChipsGroup || showSingleSelectChip,
|
|
364
364
|
[styles.withComboboxButtons]: showComboboxCancelButton || Boolean(endComboboxIcon)
|
|
365
365
|
}),
|
|
366
|
-
"data-testid": "combobox-container",
|
|
367
366
|
onClick: handleFocusInputOnEvent,
|
|
368
|
-
|
|
367
|
+
"data-testid": "combobox-container",
|
|
368
|
+
children: jsxs("div", {
|
|
369
|
+
className: styles.comboboxContainerInner,
|
|
369
370
|
onClick: handleFocusInputOnEvent,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
className: styles.textInput,
|
|
394
|
-
disabled: disabled,
|
|
395
|
-
id: comboboxId,
|
|
396
|
-
onBlur: composeEventHandlers(onBlur, handleOnBlur),
|
|
397
|
-
onFocus: handleOnFocus,
|
|
398
|
-
onKeyDown: handleKeyDown,
|
|
399
|
-
required: required,
|
|
400
|
-
store: comboboxStore
|
|
401
|
-
}), jsx("div", {
|
|
402
|
-
className: styles.comboboxButtons,
|
|
403
|
-
children: showComboboxCancelButton ? jsx(ComboboxCancel, {
|
|
404
|
-
onClick: resetSelectedValue,
|
|
405
|
-
// eslint-disable-next-line react/jsx-no-bind
|
|
406
|
-
render: cancelProps => jsx(IconButton, {
|
|
407
|
-
...cancelProps,
|
|
408
|
-
"aria-label": clearButtonAriaLabel,
|
|
409
|
-
icon: enableModernizedComponents ? XMark : XMark$1,
|
|
410
|
-
size: "x-small"
|
|
371
|
+
role: "presentation",
|
|
372
|
+
children: [showChipsGroup && jsx(ChipsGroup, {
|
|
373
|
+
onClick: handleFocusInputOnEvent,
|
|
374
|
+
children: selectedValue.map(selected => jsx(InputChip, {
|
|
375
|
+
avatar: getDisplayAvatarFromOptionValue(selected, options, displayAvatar),
|
|
376
|
+
label: getDisplayValueFromOptionValue(selected, options, displayValue),
|
|
377
|
+
onDelete: () => removeMultiSelectInputChip(selected),
|
|
378
|
+
tooltip: getTooltipValueFromOptionValue(selected, options, displayTooltip),
|
|
379
|
+
variant: getDisplayChipVariantFromOptionValue(selected, options, displayChipVariant)
|
|
380
|
+
}, selected))
|
|
381
|
+
}), showSingleSelectChip && jsx(InputChip, {
|
|
382
|
+
label: getDisplayValueFromOptionValue(selectedValue, options, displayValue),
|
|
383
|
+
onDelete: showComboboxCancelButton ? undefined : removeSingleSelectInputChip,
|
|
384
|
+
tooltip: getTooltipValueFromOptionValue(selectedValue, options, displayTooltip),
|
|
385
|
+
variant: getDisplayChipVariantFromOptionValue(selectedValue, options, displayChipVariant)
|
|
386
|
+
}), jsxs("div", {
|
|
387
|
+
className: styles.textInputWrapper,
|
|
388
|
+
children: [jsx(Combobox$1, {
|
|
389
|
+
...comboboxProps,
|
|
390
|
+
ref: reference,
|
|
391
|
+
"aria-describedby": ariaDescribedBy,
|
|
392
|
+
...(hasError && {
|
|
393
|
+
'aria-invalid': 'true'
|
|
411
394
|
}),
|
|
395
|
+
"aria-required": required,
|
|
396
|
+
autoSelect: false,
|
|
397
|
+
className: styles.textInput,
|
|
398
|
+
disabled: disabled,
|
|
399
|
+
id: comboboxId,
|
|
400
|
+
onBlur: composeEventHandlers(onBlur, handleOnBlur),
|
|
401
|
+
onFocus: handleOnFocus,
|
|
402
|
+
onKeyDown: handleKeyDown,
|
|
403
|
+
required: required,
|
|
412
404
|
store: comboboxStore
|
|
413
|
-
})
|
|
405
|
+
}), jsx("div", {
|
|
406
|
+
className: styles.comboboxButtons,
|
|
407
|
+
children: showComboboxCancelButton ? jsx(ComboboxCancel, {
|
|
408
|
+
onClick: resetSelectedValue,
|
|
409
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
410
|
+
render: cancelProps => jsx(IconButton, {
|
|
411
|
+
...cancelProps,
|
|
412
|
+
"aria-label": clearButtonAriaLabel,
|
|
413
|
+
icon: enableModernizedComponents ? XMark : XMark$1,
|
|
414
|
+
size: "x-small"
|
|
415
|
+
}),
|
|
416
|
+
store: comboboxStore
|
|
417
|
+
}) : endComboboxIcon
|
|
418
|
+
})]
|
|
414
419
|
})]
|
|
415
|
-
})
|
|
420
|
+
})
|
|
416
421
|
})
|
|
417
422
|
}), jsx(InlineError, {
|
|
418
423
|
className: styles.inlineError,
|
|
@@ -470,15 +475,19 @@ const RootInner = ({
|
|
|
470
475
|
sameWidth: true,
|
|
471
476
|
store: comboboxStore,
|
|
472
477
|
unmountOnHide: unmountOnHide,
|
|
473
|
-
children: jsx(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
478
|
+
children: jsx("div", {
|
|
479
|
+
className: styles.popoverInner,
|
|
480
|
+
role: "presentation",
|
|
481
|
+
children: jsx(Collection, {
|
|
482
|
+
experimentalVirtualization: experimentalVirtualization,
|
|
483
|
+
inputValue: inputValue,
|
|
484
|
+
loadingAriaLabel: loadingAriaLabel,
|
|
485
|
+
noResultMessage: noResultMessage,
|
|
486
|
+
options: filteredOptions,
|
|
487
|
+
overscan: 2,
|
|
488
|
+
renderOptionFn: renderOptionFn,
|
|
489
|
+
showLoading: showLoading
|
|
490
|
+
})
|
|
482
491
|
})
|
|
483
492
|
}) : null]
|
|
484
493
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"container":"bp_combobox_module_container--
|
|
2
|
+
var styles = {"container":"bp_combobox_module_container--c4fe7","label":"bp_combobox_module_label--c4fe7","textInput":"bp_combobox_module_textInput--c4fe7","popover":"bp_combobox_module_popover--c4fe7","disabled":"bp_combobox_module_disabled--c4fe7","hiddenLabel":"bp_combobox_module_hiddenLabel--c4fe7","comboboxContainer":"bp_combobox_module_comboboxContainer--c4fe7","comboboxContainerInner":"bp_combobox_module_comboboxContainerInner--c4fe7","withChips":"bp_combobox_module_withChips--c4fe7","error":"bp_combobox_module_error--c4fe7","withComboboxButtons":"bp_combobox_module_withComboboxButtons--c4fe7","textInputWrapper":"bp_combobox_module_textInputWrapper--c4fe7","comboboxButtons":"bp_combobox_module_comboboxButtons--c4fe7","inlineError":"bp_combobox_module_inlineError--c4fe7","popoverInner":"bp_combobox_module_popoverInner--c4fe7","option":"bp_combobox_module_option--c4fe7","indicator":"bp_combobox_module_indicator--c4fe7","indicatorIcon":"bp_combobox_module_indicatorIcon--c4fe7","optionWithIndicator":"bp_combobox_module_optionWithIndicator--c4fe7","loadingIndicator":"bp_combobox_module_loadingIndicator--c4fe7"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/dist/lib-esm/index.css
CHANGED
|
@@ -4059,7 +4059,7 @@
|
|
|
4059
4059
|
.bp_text_area_module_textAreaContainer--62c43 .bp_text_area_module_inlineError--62c43{
|
|
4060
4060
|
margin-block-start:var(--text-area-container-row-gap);
|
|
4061
4061
|
}
|
|
4062
|
-
.bp_combobox_module_container--
|
|
4062
|
+
.bp_combobox_module_container--c4fe7[data-modern=false]{
|
|
4063
4063
|
--max-lines:3;
|
|
4064
4064
|
--input-height:var(--space-5);
|
|
4065
4065
|
--chip-height:var(--space-7);
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
text-decoration:var(--body-default-text-decoration);
|
|
4122
4122
|
text-transform:var(--body-default-text-case);
|
|
4123
4123
|
}
|
|
4124
|
-
.bp_combobox_module_container--
|
|
4124
|
+
.bp_combobox_module_container--c4fe7[data-modern=false] .bp_combobox_module_label--c4fe7{
|
|
4125
4125
|
font-family:var(--body-default-bold-font-family);
|
|
4126
4126
|
font-size:var(--body-default-bold-font-size);
|
|
4127
4127
|
font-weight:var(--body-default-bold-font-weight);
|
|
@@ -4130,7 +4130,7 @@
|
|
|
4130
4130
|
text-decoration:var(--body-default-bold-text-decoration);
|
|
4131
4131
|
text-transform:var(--body-default-bold-text-case);
|
|
4132
4132
|
}
|
|
4133
|
-
.bp_combobox_module_container--
|
|
4133
|
+
.bp_combobox_module_container--c4fe7[data-modern=false] .bp_combobox_module_textInput--c4fe7{
|
|
4134
4134
|
font-family:var(--body-default-font-family);
|
|
4135
4135
|
font-size:var(--body-default-font-size);
|
|
4136
4136
|
font-weight:var(--body-default-font-weight);
|
|
@@ -4140,7 +4140,7 @@
|
|
|
4140
4140
|
text-transform:var(--body-default-text-case);
|
|
4141
4141
|
}
|
|
4142
4142
|
|
|
4143
|
-
.bp_combobox_module_container--
|
|
4143
|
+
.bp_combobox_module_container--c4fe7[data-modern=true]{
|
|
4144
4144
|
--max-lines:3;
|
|
4145
4145
|
--bp-innershadow-01:var(--innershadow-1);
|
|
4146
4146
|
--bp-input-height:var(--bp-space-050);
|
|
@@ -4202,17 +4202,17 @@
|
|
|
4202
4202
|
--combobox-button-spacing:var(--bp-space-020);
|
|
4203
4203
|
font-weight:var(--bp-font-weight-regular);
|
|
4204
4204
|
}
|
|
4205
|
-
.bp_combobox_module_container--
|
|
4205
|
+
.bp_combobox_module_container--c4fe7[data-modern=true],.bp_combobox_module_container--c4fe7[data-modern=true] .bp_combobox_module_label--c4fe7{
|
|
4206
4206
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
4207
4207
|
font-size:var(--bp-font-size-05);
|
|
4208
4208
|
font-style:normal;
|
|
4209
4209
|
letter-spacing:var(--bp-font-letter-spacing-01);
|
|
4210
4210
|
line-height:var(--bp-font-line-height-04);
|
|
4211
4211
|
}
|
|
4212
|
-
.bp_combobox_module_container--
|
|
4212
|
+
.bp_combobox_module_container--c4fe7[data-modern=true] .bp_combobox_module_label--c4fe7{
|
|
4213
4213
|
font-weight:var(--bp-font-weight-bold);
|
|
4214
4214
|
}
|
|
4215
|
-
.bp_combobox_module_container--
|
|
4215
|
+
.bp_combobox_module_container--c4fe7[data-modern=true] .bp_combobox_module_textInput--c4fe7{
|
|
4216
4216
|
font-family:var(--bp-font-font-family), -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
4217
4217
|
font-size:var(--bp-font-size-05);
|
|
4218
4218
|
font-style:normal;
|
|
@@ -4221,7 +4221,7 @@
|
|
|
4221
4221
|
line-height:var(--bp-font-line-height-04);
|
|
4222
4222
|
}
|
|
4223
4223
|
|
|
4224
|
-
.bp_combobox_module_popover--
|
|
4224
|
+
.bp_combobox_module_popover--c4fe7[data-modern=false]{
|
|
4225
4225
|
--option-height:2.25rem;
|
|
4226
4226
|
--dropdown-max-height:12.5rem;
|
|
4227
4227
|
--combobox-popover-max-height:min(
|
|
@@ -4262,7 +4262,7 @@
|
|
|
4262
4262
|
text-transform:var(--body-default-text-case);
|
|
4263
4263
|
}
|
|
4264
4264
|
|
|
4265
|
-
.bp_combobox_module_popover--
|
|
4265
|
+
.bp_combobox_module_popover--c4fe7[data-modern=true]{
|
|
4266
4266
|
--option-height:2.25rem;
|
|
4267
4267
|
--dropdown-max-height:12.5rem;
|
|
4268
4268
|
--bp-dropshadow-03:var(--dropshadow-3);
|
|
@@ -4303,22 +4303,22 @@
|
|
|
4303
4303
|
line-height:var(--bp-font-line-height-04);
|
|
4304
4304
|
}
|
|
4305
4305
|
|
|
4306
|
-
.bp_combobox_module_container--
|
|
4306
|
+
.bp_combobox_module_container--c4fe7{
|
|
4307
4307
|
display:flex;
|
|
4308
4308
|
flex-direction:column;
|
|
4309
4309
|
}
|
|
4310
|
-
.bp_combobox_module_container--
|
|
4310
|
+
.bp_combobox_module_container--c4fe7.bp_combobox_module_disabled--c4fe7{
|
|
4311
4311
|
opacity:60%;
|
|
4312
4312
|
}
|
|
4313
|
-
.bp_combobox_module_container--
|
|
4313
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_label--c4fe7{
|
|
4314
4314
|
color:var(--combobox-label-color);
|
|
4315
4315
|
flex:0 0 fit-content;
|
|
4316
4316
|
overflow-wrap:break-word;
|
|
4317
4317
|
}
|
|
4318
|
-
.bp_combobox_module_container--
|
|
4318
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_label--c4fe7:not(.bp_combobox_module_hiddenLabel--c4fe7){
|
|
4319
4319
|
margin-block-end:var(--combobox-label-margin-block-end);
|
|
4320
4320
|
}
|
|
4321
|
-
.bp_combobox_module_container--
|
|
4321
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7{
|
|
4322
4322
|
background-color:var(--combobox-container-background-color);
|
|
4323
4323
|
border-bottom:var(--combobox-container-border-bottom-width) solid var(--combobox-container-border-color);
|
|
4324
4324
|
border-left:var(--combobox-container-border-left-width) solid var(--combobox-container-border-color);
|
|
@@ -4327,43 +4327,60 @@
|
|
|
4327
4327
|
border-top:var(--combobox-container-border-top-width) solid var(--combobox-container-border-color);
|
|
4328
4328
|
box-shadow:var(--combobox-container-box-shadow);
|
|
4329
4329
|
cursor:text;
|
|
4330
|
+
overflow:hidden;
|
|
4331
|
+
position:relative;
|
|
4332
|
+
}
|
|
4333
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7 .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4330
4334
|
display:flex;
|
|
4331
4335
|
flex-wrap:wrap;
|
|
4332
4336
|
gap:var(--combobox-container-contents-gap);
|
|
4333
4337
|
overflow-y:auto;
|
|
4334
4338
|
padding-block:var(--combobox-container-padding-block);
|
|
4335
4339
|
padding-inline:var(--combobox-container-padding-inline);
|
|
4336
|
-
position:relative;
|
|
4337
4340
|
}
|
|
4338
|
-
.bp_combobox_module_container--
|
|
4341
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7.bp_combobox_module_withChips--c4fe7 .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4342
|
+
max-height:var(--combobox-container-with-chips-max-height);
|
|
4343
|
+
padding-block:var(--combobox-container-with-chips-padding-block);
|
|
4344
|
+
}
|
|
4345
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7.bp_combobox_module_withChips--c4fe7:not(:disabled).bp_combobox_module_error--c4fe7 .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4346
|
+
padding-block:var(--combobox-container-with-chips-error-padding-block);
|
|
4347
|
+
}
|
|
4348
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7.bp_combobox_module_withChips--c4fe7:not(:disabled):has(input:focus) .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4349
|
+
padding-block:var(--combobox-container-with-chips-focus-padding-block);
|
|
4350
|
+
}
|
|
4351
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7.bp_combobox_module_withComboboxButtons--c4fe7 .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4339
4352
|
padding-inline-end:var(--combobox-container-padding-inline-end-with-buttons);
|
|
4340
4353
|
}
|
|
4341
|
-
.bp_combobox_module_container--
|
|
4354
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled):has(input:focus){
|
|
4342
4355
|
background-color:var(--combobox-container-focus-background-color);
|
|
4343
4356
|
border:var(--combobox-container-focus-border);
|
|
4357
|
+
}
|
|
4358
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled):has(input:focus) .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4344
4359
|
padding-block:var(--combobox-container-focus-padding-block);
|
|
4345
4360
|
}
|
|
4346
|
-
.bp_combobox_module_container--
|
|
4361
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled).bp_combobox_module_error--c4fe7,.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled):has([aria-invalid=true]){
|
|
4347
4362
|
background-color:var(--combobox-container-error-background-color);
|
|
4348
4363
|
border-bottom:var(--combobox-container-error-border-bottom-width) solid var(--combobox-container-error-border-color);
|
|
4349
4364
|
border-left:var(--combobox-container-error-border-left-width) solid var(--combobox-container-error-border-color);
|
|
4350
4365
|
border-right:var(--combobox-container-error-border-right-width) solid var(--combobox-container-error-border-color);
|
|
4351
4366
|
border-top:var(--combobox-container-error-border-top-width) solid var(--combobox-container-error-border-color);
|
|
4367
|
+
}
|
|
4368
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled).bp_combobox_module_error--c4fe7 .bp_combobox_module_comboboxContainerInner--c4fe7,.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled):has([aria-invalid=true]) .bp_combobox_module_comboboxContainerInner--c4fe7{
|
|
4352
4369
|
padding-block:var(--combobox-container-error-padding-block);
|
|
4353
4370
|
}
|
|
4354
|
-
.bp_combobox_module_container--
|
|
4371
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7:not(:disabled, :has(input:focus)):has(input:hover):not(.bp_combobox_module_error--c4fe7, :has([aria-invalid=true])){
|
|
4355
4372
|
border-bottom:var(--combobox-container-border-bottom-width) solid var(--combobox-container-border-color-hover);
|
|
4356
4373
|
border-left:var(--combobox-container-border-left-width) solid var(--combobox-container-border-color-hover);
|
|
4357
4374
|
border-right:var(--combobox-container-border-right-width) solid var(--combobox-container-border-color-hover);
|
|
4358
4375
|
border-top:var(--combobox-container-border-top-width) solid var(--combobox-container-border-color-hover);
|
|
4359
4376
|
}
|
|
4360
|
-
.bp_combobox_module_container--
|
|
4377
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7 .bp_combobox_module_textInputWrapper--c4fe7{
|
|
4361
4378
|
align-items:center;
|
|
4362
4379
|
display:flex;
|
|
4363
4380
|
flex:content;
|
|
4364
4381
|
gap:var(--combobox-text-input-wrapper-gap);
|
|
4365
4382
|
}
|
|
4366
|
-
.bp_combobox_module_container--
|
|
4383
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7 .bp_combobox_module_textInputWrapper--c4fe7 .bp_combobox_module_textInput--c4fe7{
|
|
4367
4384
|
background-color:var(--combobox-text-input-background-color);
|
|
4368
4385
|
border:none;
|
|
4369
4386
|
color:var(--combobox-text-input-color);
|
|
@@ -4372,43 +4389,36 @@
|
|
|
4372
4389
|
padding:0;
|
|
4373
4390
|
width:100%;
|
|
4374
4391
|
}
|
|
4375
|
-
.bp_combobox_module_container--
|
|
4392
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7 .bp_combobox_module_textInputWrapper--c4fe7 .bp_combobox_module_errorIcon--c4fe7 path{
|
|
4376
4393
|
fill:var(--combobox-error-icon-fill);
|
|
4377
4394
|
}
|
|
4378
|
-
.bp_combobox_module_container--
|
|
4395
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_comboboxContainer--c4fe7 .bp_combobox_module_textInputWrapper--c4fe7 .bp_combobox_module_comboboxButtons--c4fe7{
|
|
4379
4396
|
align-items:center;
|
|
4380
4397
|
display:flex;
|
|
4381
4398
|
position:absolute;
|
|
4382
4399
|
right:var(--combobox-button-spacing);
|
|
4383
4400
|
top:var(--combobox-button-spacing);
|
|
4384
4401
|
}
|
|
4385
|
-
.bp_combobox_module_container--
|
|
4386
|
-
max-height:var(--combobox-container-with-chips-max-height);
|
|
4387
|
-
padding-block:var(--combobox-container-with-chips-padding-block);
|
|
4388
|
-
}
|
|
4389
|
-
.bp_combobox_module_container--355f7 .bp_combobox_module_comboboxContainer--355f7.bp_combobox_module_withChips--355f7:not(:disabled).bp_combobox_module_error--355f7{
|
|
4390
|
-
padding-block:var(--combobox-container-with-chips-error-padding-block);
|
|
4391
|
-
}
|
|
4392
|
-
.bp_combobox_module_container--355f7 .bp_combobox_module_comboboxContainer--355f7.bp_combobox_module_withChips--355f7:not(:disabled):has(input:focus){
|
|
4393
|
-
padding-block:var(--combobox-container-with-chips-focus-padding-block);
|
|
4394
|
-
}
|
|
4395
|
-
.bp_combobox_module_container--355f7 .bp_combobox_module_inlineError--355f7{
|
|
4402
|
+
.bp_combobox_module_container--c4fe7 .bp_combobox_module_inlineError--c4fe7{
|
|
4396
4403
|
margin-block-start:var(--combobox-inline-error-margin-block-start);
|
|
4397
4404
|
}
|
|
4398
4405
|
|
|
4399
|
-
.bp_combobox_module_popover--
|
|
4406
|
+
.bp_combobox_module_popover--c4fe7{
|
|
4400
4407
|
backdrop-filter:var(--combobox-popover-backdrop-filter);
|
|
4401
4408
|
background-color:var(--combobox-popover-background-color);
|
|
4402
4409
|
border:var(--combobox-popover-border);
|
|
4403
4410
|
border-radius:var(--combobox-popover-border-radius);
|
|
4404
4411
|
box-shadow:var(--combobox-popover-box-shadow);
|
|
4412
|
+
overflow:hidden;
|
|
4413
|
+
z-index:var(--z-index-popover);
|
|
4414
|
+
}
|
|
4415
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_popoverInner--c4fe7{
|
|
4405
4416
|
max-height:var(--combobox-popover-max-height);
|
|
4406
4417
|
overflow:auto;
|
|
4407
4418
|
padding-block:var(--combobox-popover-padding-block);
|
|
4408
4419
|
padding-inline:var(--combobox-popover-padding-inline);
|
|
4409
|
-
z-index:var(--z-index-popover);
|
|
4410
4420
|
}
|
|
4411
|
-
.bp_combobox_module_popover--
|
|
4421
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7{
|
|
4412
4422
|
border:var(--combobox-option-border);
|
|
4413
4423
|
border-radius:var(--combobox-option-border-radius);
|
|
4414
4424
|
box-sizing:border-box;
|
|
@@ -4423,21 +4433,21 @@
|
|
|
4423
4433
|
user-select:none;
|
|
4424
4434
|
width:100%;
|
|
4425
4435
|
}
|
|
4426
|
-
.bp_combobox_module_popover--
|
|
4436
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7[aria-disabled]{
|
|
4427
4437
|
opacity:var(--combobox-option-disabled-opacity);
|
|
4428
4438
|
}
|
|
4429
|
-
.bp_combobox_module_popover--
|
|
4439
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7[data-active-item]:not([aria-disabled]){
|
|
4430
4440
|
background-color:var(--combobox-option-active-background-color);
|
|
4431
4441
|
border:var(--combobox-option-active-border);
|
|
4432
4442
|
}
|
|
4433
|
-
.bp_combobox_module_popover--
|
|
4443
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7:active{
|
|
4434
4444
|
background-color:var(--combobox-option-hover-background-color);
|
|
4435
4445
|
border:var(--combobox-option-border);
|
|
4436
4446
|
}
|
|
4437
|
-
.bp_combobox_module_popover--
|
|
4447
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7:hover{
|
|
4438
4448
|
background-color:var(--combobox-option-hover-background-color);
|
|
4439
4449
|
}
|
|
4440
|
-
.bp_combobox_module_popover--
|
|
4450
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7 .bp_combobox_module_indicator--c4fe7{
|
|
4441
4451
|
align-items:center;
|
|
4442
4452
|
display:flex;
|
|
4443
4453
|
height:var(--combobox-option-indicator-height);
|
|
@@ -4446,16 +4456,16 @@
|
|
|
4446
4456
|
position:absolute;
|
|
4447
4457
|
top:var(--combobox-option-indicator-top);
|
|
4448
4458
|
}
|
|
4449
|
-
.bp_combobox_module_popover--
|
|
4459
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_option--c4fe7 .bp_combobox_module_indicator--c4fe7 .bp_combobox_module_indicatorIcon--c4fe7 path{
|
|
4450
4460
|
fill:var(--combobox-option-indicator-icon-fill);
|
|
4451
4461
|
}
|
|
4452
|
-
.bp_combobox_module_popover--
|
|
4462
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_optionWithIndicator--c4fe7{
|
|
4453
4463
|
padding-inline:var(--combobox-option-with-indicator-padding-inline);
|
|
4454
4464
|
}
|
|
4455
|
-
.bp_combobox_module_popover--
|
|
4465
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_loadingIndicator--c4fe7{
|
|
4456
4466
|
position:var(--combobox-loading-indicator-position);
|
|
4457
4467
|
}
|
|
4458
|
-
.bp_combobox_module_popover--
|
|
4468
|
+
.bp_combobox_module_popover--c4fe7 .bp_combobox_module_noResultOption--c4fe7{
|
|
4459
4469
|
color:var(--combobox-no-result-option-color);
|
|
4460
4470
|
-webkit-user-select:none;
|
|
4461
4471
|
user-select:none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.1",
|
|
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.111.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.111.16",
|
|
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.17.
|
|
80
|
+
"@box/storybook-utils": "^0.17.16",
|
|
81
81
|
"@figma/code-connect": "1.3.12",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|