@box/blueprint-web 12.86.0 → 12.87.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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { SelectItemCheck, SelectItem, ComboboxItem, useComboboxStore, useSelectStore, PopoverAnchor, Combobox as Combobox$1, ComboboxCancel, SelectList, ComboboxPopover } from '@ariakit/react';
|
|
3
3
|
import { SelectRenderer } from '@ariakit/react-core/select/select-renderer';
|
|
4
|
-
import { Checkmark, XMark } from '@box/blueprint-web-assets/icons/Fill';
|
|
4
|
+
import { Checkmark, XMark as XMark$1 } from '@box/blueprint-web-assets/icons/Fill';
|
|
5
|
+
import { XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
5
6
|
import { bpIconIconOnLight, IconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
|
|
6
7
|
import clsx from 'clsx';
|
|
7
8
|
import React__default, { forwardRef, useMemo, useRef, useCallback, useEffect } from 'react';
|
|
@@ -395,7 +396,7 @@ const RootInner = ({
|
|
|
395
396
|
render: cancelProps => jsx(IconButton, {
|
|
396
397
|
...cancelProps,
|
|
397
398
|
"aria-label": clearButtonAriaLabel,
|
|
398
|
-
icon: XMark,
|
|
399
|
+
icon: enableModernizedComponents ? XMark : XMark$1,
|
|
399
400
|
size: "x-small"
|
|
400
401
|
}),
|
|
401
402
|
store: comboboxStore
|
|
@@ -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--2f327","popover":"bp_combobox_module_popover--2f327","disabled":"bp_combobox_module_disabled--2f327","label":"bp_combobox_module_label--2f327","hiddenLabel":"bp_combobox_module_hiddenLabel--2f327","comboboxContainer":"bp_combobox_module_comboboxContainer--2f327","withComboboxButtons":"bp_combobox_module_withComboboxButtons--2f327","error":"bp_combobox_module_error--2f327","textInputWrapper":"bp_combobox_module_textInputWrapper--2f327","textInput":"bp_combobox_module_textInput--2f327","errorIcon":"bp_combobox_module_errorIcon--2f327","comboboxButtons":"bp_combobox_module_comboboxButtons--2f327","withChips":"bp_combobox_module_withChips--2f327","inlineError":"bp_combobox_module_inlineError--2f327","option":"bp_combobox_module_option--2f327","indicator":"bp_combobox_module_indicator--2f327","indicatorIcon":"bp_combobox_module_indicatorIcon--2f327","optionWithIndicator":"bp_combobox_module_optionWithIndicator--2f327","loadingIndicator":"bp_combobox_module_loadingIndicator--2f327","noResultOption":"bp_combobox_module_noResultOption--2f327"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/dist/lib-esm/index.css
CHANGED
|
@@ -2573,7 +2573,7 @@
|
|
|
2573
2573
|
margin-block-start:var(--text-area-container-row-gap);
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
|
-
.bp_combobox_module_container--
|
|
2576
|
+
.bp_combobox_module_container--2f327[data-modern=false]{
|
|
2577
2577
|
--max-lines:3;
|
|
2578
2578
|
--input-height:var(--space-5);
|
|
2579
2579
|
--chip-height:var(--space-7);
|
|
@@ -2629,7 +2629,7 @@
|
|
|
2629
2629
|
--combobox-button-spacing:var(--space-2);
|
|
2630
2630
|
}
|
|
2631
2631
|
|
|
2632
|
-
.bp_combobox_module_container--
|
|
2632
|
+
.bp_combobox_module_container--2f327[data-modern=true]{
|
|
2633
2633
|
--max-lines:3;
|
|
2634
2634
|
--bp-innershadow-01:var(--innershadow-1);
|
|
2635
2635
|
--bp-input-height:var(--bp-space-050);
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
--combobox-button-spacing:var(--bp-space-020);
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
|
-
.bp_combobox_module_popover--
|
|
2694
|
+
.bp_combobox_module_popover--2f327[data-modern=false]{
|
|
2695
2695
|
--option-height:2.25rem;
|
|
2696
2696
|
--dropdown-max-height:12.5rem;
|
|
2697
2697
|
--combobox-popover-max-height:min(
|
|
@@ -2719,12 +2719,13 @@
|
|
|
2719
2719
|
--combobox-option-indicator-height:var(--size-9);
|
|
2720
2720
|
--combobox-option-indicator-icon-fill:var(--icon-icon-on-light);
|
|
2721
2721
|
--combobox-option-with-indicator-padding-inline:var(--space-10) var(--space-2);
|
|
2722
|
+
--combobox-option-text-color:var(--text-text-on-light);
|
|
2722
2723
|
--combobox-loading-indicator-position:unset;
|
|
2723
2724
|
--combobox-no-result-option-color:var(--text-text-on-light);
|
|
2724
2725
|
--combobox-popover-backdrop-filter:none;
|
|
2725
2726
|
}
|
|
2726
2727
|
|
|
2727
|
-
.bp_combobox_module_popover--
|
|
2728
|
+
.bp_combobox_module_popover--2f327[data-modern=true]{
|
|
2728
2729
|
--option-height:2.25rem;
|
|
2729
2730
|
--dropdown-max-height:12.5rem;
|
|
2730
2731
|
--bp-dropshadow-03:var(--dropshadow-3);
|
|
@@ -2753,12 +2754,13 @@
|
|
|
2753
2754
|
--combobox-option-indicator-height:var(--bp-size-090);
|
|
2754
2755
|
--combobox-option-indicator-icon-fill:var(--bp-icon-icon-on-light);
|
|
2755
2756
|
--combobox-option-with-indicator-padding-inline:var(--bp-space-100) var(--bp-space-020);
|
|
2757
|
+
--combobox-option-text-color:var(--bp-text-text-on-light);
|
|
2756
2758
|
--combobox-loading-indicator-position:unset;
|
|
2757
2759
|
--combobox-no-result-option-color:var(--bp-text-text-on-light);
|
|
2758
2760
|
--combobox-popover-backdrop-filter:blur(16px);
|
|
2759
2761
|
}
|
|
2760
2762
|
|
|
2761
|
-
.bp_combobox_module_container--
|
|
2763
|
+
.bp_combobox_module_container--2f327{
|
|
2762
2764
|
display:flex;
|
|
2763
2765
|
flex-direction:column;
|
|
2764
2766
|
font-family:var(--body-default-font-family);
|
|
@@ -2770,10 +2772,10 @@
|
|
|
2770
2772
|
text-decoration:var(--body-default-text-decoration);
|
|
2771
2773
|
text-transform:var(--body-default-text-case);
|
|
2772
2774
|
}
|
|
2773
|
-
.bp_combobox_module_container--
|
|
2775
|
+
.bp_combobox_module_container--2f327.bp_combobox_module_disabled--2f327{
|
|
2774
2776
|
opacity:60%;
|
|
2775
2777
|
}
|
|
2776
|
-
.bp_combobox_module_container--
|
|
2778
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_label--2f327{
|
|
2777
2779
|
color:var(--combobox-label-color);
|
|
2778
2780
|
flex:0 0 fit-content;
|
|
2779
2781
|
font-family:var(--body-default-bold-font-family);
|
|
@@ -2786,10 +2788,10 @@
|
|
|
2786
2788
|
text-decoration:var(--body-default-bold-text-decoration);
|
|
2787
2789
|
text-transform:var(--body-default-bold-text-case);
|
|
2788
2790
|
}
|
|
2789
|
-
.bp_combobox_module_container--
|
|
2791
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_label--2f327:not(.bp_combobox_module_hiddenLabel--2f327){
|
|
2790
2792
|
margin-block-end:var(--combobox-label-margin-block-end);
|
|
2791
2793
|
}
|
|
2792
|
-
.bp_combobox_module_container--
|
|
2794
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327{
|
|
2793
2795
|
background-color:var(--combobox-container-background-color);
|
|
2794
2796
|
border-bottom:var(--combobox-container-border-bottom-width) solid var(--combobox-container-border-color);
|
|
2795
2797
|
border-left:var(--combobox-container-border-left-width) solid var(--combobox-container-border-color);
|
|
@@ -2806,15 +2808,15 @@
|
|
|
2806
2808
|
padding-inline:var(--combobox-container-padding-inline);
|
|
2807
2809
|
position:relative;
|
|
2808
2810
|
}
|
|
2809
|
-
.bp_combobox_module_container--
|
|
2811
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327.bp_combobox_module_withComboboxButtons--2f327{
|
|
2810
2812
|
padding-inline-end:var(--combobox-container-padding-inline-end-with-buttons);
|
|
2811
2813
|
}
|
|
2812
|
-
.bp_combobox_module_container--
|
|
2814
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327:not(:disabled):has(input:focus){
|
|
2813
2815
|
background-color:var(--combobox-container-focus-background-color);
|
|
2814
2816
|
border:var(--combobox-container-focus-border);
|
|
2815
2817
|
padding-block:var(--combobox-container-focus-padding-block);
|
|
2816
2818
|
}
|
|
2817
|
-
.bp_combobox_module_container--
|
|
2819
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327:not(:disabled).bp_combobox_module_error--2f327,.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327:not(:disabled):has([aria-invalid=true]){
|
|
2818
2820
|
background-color:var(--combobox-container-error-background-color);
|
|
2819
2821
|
border-bottom:var(--combobox-container-error-border-bottom-width) solid var(--combobox-container-error-border-color);
|
|
2820
2822
|
border-left:var(--combobox-container-error-border-left-width) solid var(--combobox-container-error-border-color);
|
|
@@ -2822,19 +2824,19 @@
|
|
|
2822
2824
|
border-top:var(--combobox-container-error-border-top-width) solid var(--combobox-container-error-border-color);
|
|
2823
2825
|
padding-block:var(--combobox-container-error-padding-block);
|
|
2824
2826
|
}
|
|
2825
|
-
.bp_combobox_module_container--
|
|
2827
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327:not(:disabled):not(:has(input:focus)):has(input:hover):not(.bp_combobox_module_error--2f327):not(:has([aria-invalid=true])){
|
|
2826
2828
|
border-bottom:var(--combobox-container-border-bottom-width) solid var(--combobox-container-border-color-hover);
|
|
2827
2829
|
border-left:var(--combobox-container-border-left-width) solid var(--combobox-container-border-color-hover);
|
|
2828
2830
|
border-right:var(--combobox-container-border-right-width) solid var(--combobox-container-border-color-hover);
|
|
2829
2831
|
border-top:var(--combobox-container-border-top-width) solid var(--combobox-container-border-color-hover);
|
|
2830
2832
|
}
|
|
2831
|
-
.bp_combobox_module_container--
|
|
2833
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327 .bp_combobox_module_textInputWrapper--2f327{
|
|
2832
2834
|
align-items:center;
|
|
2833
2835
|
display:flex;
|
|
2834
2836
|
flex:content;
|
|
2835
2837
|
gap:var(--combobox-text-input-wrapper-gap);
|
|
2836
2838
|
}
|
|
2837
|
-
.bp_combobox_module_container--
|
|
2839
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327 .bp_combobox_module_textInputWrapper--2f327 .bp_combobox_module_textInput--2f327{
|
|
2838
2840
|
background-color:var(--combobox-text-input-background-color);
|
|
2839
2841
|
border:none;
|
|
2840
2842
|
color:var(--combobox-text-input-color);
|
|
@@ -2851,31 +2853,31 @@
|
|
|
2851
2853
|
text-transform:var(--body-default-text-case);
|
|
2852
2854
|
width:100%;
|
|
2853
2855
|
}
|
|
2854
|
-
.bp_combobox_module_container--
|
|
2856
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327 .bp_combobox_module_textInputWrapper--2f327 .bp_combobox_module_errorIcon--2f327 path{
|
|
2855
2857
|
fill:var(--combobox-error-icon-fill);
|
|
2856
2858
|
}
|
|
2857
|
-
.bp_combobox_module_container--
|
|
2859
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327 .bp_combobox_module_textInputWrapper--2f327 .bp_combobox_module_comboboxButtons--2f327{
|
|
2858
2860
|
align-items:center;
|
|
2859
2861
|
display:flex;
|
|
2860
2862
|
position:absolute;
|
|
2861
2863
|
right:var(--combobox-button-spacing);
|
|
2862
2864
|
top:var(--combobox-button-spacing);
|
|
2863
2865
|
}
|
|
2864
|
-
.bp_combobox_module_container--
|
|
2866
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327.bp_combobox_module_withChips--2f327{
|
|
2865
2867
|
max-height:var(--combobox-container-with-chips-max-height);
|
|
2866
2868
|
padding-block:var(--combobox-container-with-chips-padding-block);
|
|
2867
2869
|
}
|
|
2868
|
-
.bp_combobox_module_container--
|
|
2870
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327.bp_combobox_module_withChips--2f327:not(:disabled).bp_combobox_module_error--2f327{
|
|
2869
2871
|
padding-block:var(--combobox-container-with-chips-error-padding-block);
|
|
2870
2872
|
}
|
|
2871
|
-
.bp_combobox_module_container--
|
|
2873
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_comboboxContainer--2f327.bp_combobox_module_withChips--2f327:not(:disabled):has(input:focus){
|
|
2872
2874
|
padding-block:var(--combobox-container-with-chips-focus-padding-block);
|
|
2873
2875
|
}
|
|
2874
|
-
.bp_combobox_module_container--
|
|
2876
|
+
.bp_combobox_module_container--2f327 .bp_combobox_module_inlineError--2f327{
|
|
2875
2877
|
margin-block-start:var(--combobox-inline-error-margin-block-start);
|
|
2876
2878
|
}
|
|
2877
2879
|
|
|
2878
|
-
.bp_combobox_module_popover--
|
|
2880
|
+
.bp_combobox_module_popover--2f327{
|
|
2879
2881
|
backdrop-filter:var(--combobox-popover-backdrop-filter);
|
|
2880
2882
|
background-color:var(--combobox-popover-background-color);
|
|
2881
2883
|
border:var(--combobox-popover-border);
|
|
@@ -2895,10 +2897,11 @@
|
|
|
2895
2897
|
text-transform:var(--body-default-text-case);
|
|
2896
2898
|
z-index:var(--z-index-popover);
|
|
2897
2899
|
}
|
|
2898
|
-
.bp_combobox_module_popover--
|
|
2900
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327{
|
|
2899
2901
|
border:var(--combobox-option-border);
|
|
2900
2902
|
border-radius:var(--combobox-option-border-radius);
|
|
2901
2903
|
box-sizing:border-box;
|
|
2904
|
+
color:var(--combobox-option-text-color);
|
|
2902
2905
|
cursor:pointer;
|
|
2903
2906
|
outline:none;
|
|
2904
2907
|
overflow-wrap:break-word;
|
|
@@ -2909,21 +2912,21 @@
|
|
|
2909
2912
|
user-select:none;
|
|
2910
2913
|
width:100%;
|
|
2911
2914
|
}
|
|
2912
|
-
.bp_combobox_module_popover--
|
|
2915
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327[aria-disabled]{
|
|
2913
2916
|
opacity:var(--combobox-option-disabled-opacity);
|
|
2914
2917
|
}
|
|
2915
|
-
.bp_combobox_module_popover--
|
|
2918
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327[data-active-item]:not([aria-disabled]){
|
|
2916
2919
|
background-color:var(--combobox-option-active-background-color);
|
|
2917
2920
|
border:var(--combobox-option-active-border);
|
|
2918
2921
|
}
|
|
2919
|
-
.bp_combobox_module_popover--
|
|
2922
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327:active{
|
|
2920
2923
|
background-color:var(--combobox-option-hover-background-color);
|
|
2921
2924
|
border:var(--combobox-option-border);
|
|
2922
2925
|
}
|
|
2923
|
-
.bp_combobox_module_popover--
|
|
2926
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327:hover{
|
|
2924
2927
|
background-color:var(--combobox-option-hover-background-color);
|
|
2925
2928
|
}
|
|
2926
|
-
.bp_combobox_module_popover--
|
|
2929
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327 .bp_combobox_module_indicator--2f327{
|
|
2927
2930
|
align-items:center;
|
|
2928
2931
|
display:flex;
|
|
2929
2932
|
height:var(--combobox-option-indicator-height);
|
|
@@ -2932,16 +2935,16 @@
|
|
|
2932
2935
|
position:absolute;
|
|
2933
2936
|
top:var(--combobox-option-indicator-top);
|
|
2934
2937
|
}
|
|
2935
|
-
.bp_combobox_module_popover--
|
|
2938
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_option--2f327 .bp_combobox_module_indicator--2f327 .bp_combobox_module_indicatorIcon--2f327 path{
|
|
2936
2939
|
fill:var(--combobox-option-indicator-icon-fill);
|
|
2937
2940
|
}
|
|
2938
|
-
.bp_combobox_module_popover--
|
|
2941
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_optionWithIndicator--2f327{
|
|
2939
2942
|
padding-inline:var(--combobox-option-with-indicator-padding-inline);
|
|
2940
2943
|
}
|
|
2941
|
-
.bp_combobox_module_popover--
|
|
2944
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_loadingIndicator--2f327{
|
|
2942
2945
|
position:var(--combobox-loading-indicator-position);
|
|
2943
2946
|
}
|
|
2944
|
-
.bp_combobox_module_popover--
|
|
2947
|
+
.bp_combobox_module_popover--2f327 .bp_combobox_module_noResultOption--2f327{
|
|
2945
2948
|
color:var(--combobox-no-result-option-color);
|
|
2946
2949
|
-webkit-user-select:none;
|
|
2947
2950
|
user-select:none;
|