@box/blueprint-web 8.2.1 → 8.3.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/lib-esm/index.css
CHANGED
|
@@ -4787,22 +4787,23 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4787
4787
|
display:flex;
|
|
4788
4788
|
flex-direction:row;
|
|
4789
4789
|
}
|
|
4790
|
-
|
|
4790
|
+
|
|
4791
|
+
.bp_select_menu_grid_option_module_square--6ad66{
|
|
4791
4792
|
height:var(--size-8);
|
|
4792
4793
|
width:var(--size-8);
|
|
4793
4794
|
}
|
|
4794
|
-
.bp_select_menu_grid_option_module_square--
|
|
4795
|
+
.bp_select_menu_grid_option_module_square--6ad66,.bp_select_menu_grid_option_module_square--6ad66 .bp_select_menu_grid_option_module_outlineHost--6ad66{
|
|
4795
4796
|
align-items:center;
|
|
4796
4797
|
border-radius:var(--radius-3);
|
|
4797
4798
|
display:flex;
|
|
4798
4799
|
justify-content:center;
|
|
4799
4800
|
}
|
|
4800
|
-
.bp_select_menu_grid_option_module_square--
|
|
4801
|
+
.bp_select_menu_grid_option_module_square--6ad66 .bp_select_menu_grid_option_module_outlineHost--6ad66{
|
|
4801
4802
|
height:var(--size-7);
|
|
4802
4803
|
width:var(--size-7);
|
|
4803
4804
|
}
|
|
4804
4805
|
|
|
4805
|
-
.bp_select_menu_grid_option_module_circle--
|
|
4806
|
+
.bp_select_menu_grid_option_module_circle--6ad66{
|
|
4806
4807
|
align-items:center;
|
|
4807
4808
|
background-clip:content-box;
|
|
4808
4809
|
background-color:var(--gray-white);
|
|
@@ -4814,10 +4815,10 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4814
4815
|
justify-content:center;
|
|
4815
4816
|
width:var(--size-8);
|
|
4816
4817
|
}
|
|
4817
|
-
.bp_select_menu_grid_option_module_circle--
|
|
4818
|
+
.bp_select_menu_grid_option_module_circle--6ad66.bp_select_menu_grid_option_module_loading--6ad66{
|
|
4818
4819
|
border-color:var(--gray-white);
|
|
4819
4820
|
}
|
|
4820
|
-
.bp_select_menu_grid_option_module_circle--
|
|
4821
|
+
.bp_select_menu_grid_option_module_circle--6ad66 .bp_select_menu_grid_option_module_color--6ad66{
|
|
4821
4822
|
background-color:var(--circleColor);
|
|
4822
4823
|
border:var(--border-1) solid var(--circleBorderColor);
|
|
4823
4824
|
border-radius:50%;
|
|
@@ -4825,8 +4826,22 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4825
4826
|
height:var(--size-6);
|
|
4826
4827
|
width:var(--size-6);
|
|
4827
4828
|
}
|
|
4829
|
+
.bp_select_menu_grid_option_module_circle--6ad66 .bp_select_menu_grid_option_module_strikeThrough--6ad66{
|
|
4830
|
+
position:relative;
|
|
4831
|
+
}
|
|
4832
|
+
.bp_select_menu_grid_option_module_circle--6ad66 .bp_select_menu_grid_option_module_strikeThrough--6ad66::after{
|
|
4833
|
+
background-color:var(--watermelon-red-100);
|
|
4834
|
+
border-radius:var(--radius-1);
|
|
4835
|
+
content:"";
|
|
4836
|
+
height:.15625rem;
|
|
4837
|
+
left:.0625rem;
|
|
4838
|
+
position:absolute;
|
|
4839
|
+
top:45%;
|
|
4840
|
+
transform:rotate(-45deg);
|
|
4841
|
+
width:90%;
|
|
4842
|
+
}
|
|
4828
4843
|
|
|
4829
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4844
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66{
|
|
4830
4845
|
align-items:center;
|
|
4831
4846
|
background-color:initial;
|
|
4832
4847
|
border:none;
|
|
@@ -4840,32 +4855,32 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4840
4855
|
user-select:none;
|
|
4841
4856
|
width:var(--size-8);
|
|
4842
4857
|
}
|
|
4843
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4858
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66:hover .bp_select_menu_grid_option_module_square--6ad66,.bp_select_menu_grid_option_module_optionButton--6ad66[data-focus-visible] .bp_select_menu_grid_option_module_square--6ad66{
|
|
4844
4859
|
background-color:var(--surface-cta-surface-outline-hover);
|
|
4845
4860
|
}
|
|
4846
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4861
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66:hover .bp_select_menu_grid_option_module_circle--6ad66,.bp_select_menu_grid_option_module_optionButton--6ad66[data-focus-visible] .bp_select_menu_grid_option_module_circle--6ad66{
|
|
4847
4862
|
background-color:var(--surface-option-grid-surface-hover);
|
|
4848
4863
|
}
|
|
4849
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4864
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66.bp_select_menu_grid_option_module_active--6ad66 .bp_select_menu_grid_option_module_square--6ad66,.bp_select_menu_grid_option_module_optionButton--6ad66:active .bp_select_menu_grid_option_module_square--6ad66{
|
|
4850
4865
|
background-color:var(--surface-cta-surface-outline-pressed);
|
|
4851
4866
|
}
|
|
4852
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4867
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66.bp_select_menu_grid_option_module_active--6ad66 .bp_select_menu_grid_option_module_circle--6ad66,.bp_select_menu_grid_option_module_optionButton--6ad66:active .bp_select_menu_grid_option_module_circle--6ad66{
|
|
4853
4868
|
border:var(--border-2) solid var(--circleColor);
|
|
4854
4869
|
}
|
|
4855
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4870
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66.bp_select_menu_grid_option_module_loading--6ad66,.bp_select_menu_grid_option_module_optionButton--6ad66:disabled{
|
|
4856
4871
|
cursor:default;
|
|
4857
4872
|
}
|
|
4858
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4873
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66[data-focus-visible] .bp_select_menu_grid_option_module_outlineHost--6ad66{
|
|
4859
4874
|
box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
4860
4875
|
}
|
|
4861
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4876
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66[data-focus-visible] .bp_select_menu_grid_option_module_circle--6ad66{
|
|
4862
4877
|
border-color:var(--surface-option-grid-surface-hover);
|
|
4863
4878
|
}
|
|
4864
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4879
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66[data-focus-visible].bp_select_menu_grid_option_module_active--6ad66 .bp_select_menu_grid_option_module_circle--6ad66,.bp_select_menu_grid_option_module_optionButton--6ad66[data-focus-visible]:active .bp_select_menu_grid_option_module_circle--6ad66{
|
|
4865
4880
|
border:var(--border-2) solid var(--circleColor);
|
|
4866
4881
|
box-shadow:0 0 0 var(--border-1) var(--gray-white), 0 0 0 var(--border-3) var(--outline-focus-on-light);
|
|
4867
4882
|
}
|
|
4868
|
-
.bp_select_menu_grid_option_module_optionButton--
|
|
4883
|
+
.bp_select_menu_grid_option_module_optionButton--6ad66:disabled:not(.bp_select_menu_grid_option_module_loading--6ad66){
|
|
4869
4884
|
opacity:.3;
|
|
4870
4885
|
}
|
|
4871
4886
|
|
|
@@ -5018,7 +5033,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5018
5033
|
opacity:.5;
|
|
5019
5034
|
}
|
|
5020
5035
|
|
|
5021
|
-
.bp_radio_group_module_root--
|
|
5036
|
+
.bp_radio_group_module_root--c72b9{
|
|
5022
5037
|
display:flex;
|
|
5023
5038
|
flex-direction:column;
|
|
5024
5039
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
@@ -5031,31 +5046,31 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5031
5046
|
text-transform:none;
|
|
5032
5047
|
}
|
|
5033
5048
|
|
|
5034
|
-
.bp_radio_group_module_horizontal--
|
|
5049
|
+
.bp_radio_group_module_horizontal--c72b9{
|
|
5035
5050
|
flex-direction:row;
|
|
5036
5051
|
gap:1.625rem;
|
|
5037
5052
|
}
|
|
5038
5053
|
|
|
5039
|
-
.bp_radio_group_module_radioOption--
|
|
5054
|
+
.bp_radio_group_module_radioOption--c72b9{
|
|
5040
5055
|
display:flex;
|
|
5041
5056
|
flex-direction:column;
|
|
5042
5057
|
}
|
|
5043
|
-
.bp_radio_group_module_radioOption--
|
|
5058
|
+
.bp_radio_group_module_radioOption--c72b9 .bp_radio_group_module_label--c72b9{
|
|
5044
5059
|
align-items:flex-start;
|
|
5045
5060
|
cursor:pointer;
|
|
5046
5061
|
display:inline-flex;
|
|
5047
5062
|
gap:var(--size-3);
|
|
5048
5063
|
line-height:var(--body-default-line-height);
|
|
5049
5064
|
}
|
|
5050
|
-
.bp_radio_group_module_radioOption--
|
|
5065
|
+
.bp_radio_group_module_radioOption--c72b9 .bp_radio_group_module_description--c72b9{
|
|
5051
5066
|
padding-left:calc(var(--size-4) + var(--size-3));
|
|
5052
5067
|
}
|
|
5053
|
-
.bp_radio_group_module_radioOption--
|
|
5068
|
+
.bp_radio_group_module_radioOption--c72b9.bp_radio_group_module_disabled--c72b9 .bp_radio_group_module_label--c72b9,[role=radiogroup][data-disabled] .bp_radio_group_module_radioOption--c72b9 .bp_radio_group_module_label--c72b9{
|
|
5054
5069
|
color:var(--text-text-on-light-secondary);
|
|
5055
5070
|
cursor:default;
|
|
5056
5071
|
}
|
|
5057
5072
|
|
|
5058
|
-
.bp_radio_group_module_radioButton--
|
|
5073
|
+
.bp_radio_group_module_radioButton--c72b9{
|
|
5059
5074
|
all:unset;
|
|
5060
5075
|
align-items:center;
|
|
5061
5076
|
background-color:var(--surface-radio-surface);
|
|
@@ -5069,33 +5084,33 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5069
5084
|
margin:calc((var(--body-default-line-height) - var(--size-4))/2) 0 0 0;
|
|
5070
5085
|
width:var(--size-4);
|
|
5071
5086
|
}
|
|
5072
|
-
.bp_radio_group_module_radioButton--
|
|
5087
|
+
.bp_radio_group_module_radioButton--c72b9 .bp_radio_group_module_indicator--c72b9{
|
|
5073
5088
|
background-color:var(--surface-radio-surface-selected);
|
|
5074
5089
|
border-radius:50%;
|
|
5075
5090
|
height:var(--size-2);
|
|
5076
5091
|
transition:transform .1s;
|
|
5077
5092
|
width:var(--size-2);
|
|
5078
5093
|
}
|
|
5079
|
-
.bp_radio_group_module_radioButton--
|
|
5094
|
+
.bp_radio_group_module_radioButton--c72b9:focus-visible{
|
|
5080
5095
|
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
5081
5096
|
}
|
|
5082
|
-
.bp_radio_group_module_radioButton--
|
|
5097
|
+
.bp_radio_group_module_radioButton--c72b9[data-disabled]{
|
|
5083
5098
|
opacity:60%;
|
|
5084
5099
|
}
|
|
5085
|
-
.bp_radio_group_module_radioButton--
|
|
5100
|
+
.bp_radio_group_module_radioButton--c72b9[data-state=unchecked]{
|
|
5086
5101
|
background-color:var(--surface-radio-surface);
|
|
5087
5102
|
border:var(--border-2) solid var(--border-radio-border);
|
|
5088
5103
|
}
|
|
5089
|
-
.bp_radio_group_module_radioButton--
|
|
5104
|
+
.bp_radio_group_module_radioButton--c72b9[data-state=unchecked] .bp_radio_group_module_indicator--c72b9{
|
|
5090
5105
|
transform:scale(0);
|
|
5091
5106
|
}
|
|
5092
|
-
.bp_radio_group_module_radioButton--
|
|
5107
|
+
.bp_radio_group_module_radioButton--c72b9:not([data-disabled]):focus-visible,.bp_radio_group_module_radioButton--c72b9:not([data-disabled]):hover{
|
|
5093
5108
|
border:var(--border-2) solid var(--border-radio-border-hover);
|
|
5094
5109
|
}
|
|
5095
|
-
.bp_radio_group_module_radioButton--
|
|
5110
|
+
.bp_radio_group_module_radioButton--c72b9:not([data-disabled]):focus-visible[data-state=checked],.bp_radio_group_module_radioButton--c72b9:not([data-disabled]):hover[data-state=checked]{
|
|
5096
5111
|
border:var(--border-2) solid var(--border-radio-border-selected-hover);
|
|
5097
5112
|
}
|
|
5098
|
-
.bp_radio_group_module_radioButton--
|
|
5113
|
+
.bp_radio_group_module_radioButton--c72b9:not([data-disabled]):focus-visible[data-state=checked] .bp_radio_group_module_indicator--c72b9,.bp_radio_group_module_radioButton--c72b9:not([data-disabled]):hover[data-state=checked] .bp_radio_group_module_indicator--c72b9{
|
|
5099
5114
|
background-color:var(--surface-radio-surface-selected-hover);
|
|
5100
5115
|
}
|
|
5101
5116
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { CompositeItem, Button } from '@ariakit/react';
|
|
3
|
+
import { Gray05 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import Color from 'color';
|
|
5
6
|
import { forwardRef } from 'react';
|
|
@@ -67,9 +68,11 @@ const ColorSwatch = ({
|
|
|
67
68
|
color,
|
|
68
69
|
loading
|
|
69
70
|
}) => {
|
|
70
|
-
const
|
|
71
|
+
const isNoColorOption = color === 'no-color';
|
|
72
|
+
const finalColor = isNoColorOption ? Gray05 : color;
|
|
73
|
+
const borderColor = new Color(finalColor).darken(0.5).hex();
|
|
71
74
|
const style = {
|
|
72
|
-
'--circleColor':
|
|
75
|
+
'--circleColor': finalColor,
|
|
73
76
|
'--circleBorderColor': borderColor
|
|
74
77
|
};
|
|
75
78
|
return jsx("div", {
|
|
@@ -80,7 +83,9 @@ const ColorSwatch = ({
|
|
|
80
83
|
children: loading ? jsx(Ghost, {
|
|
81
84
|
variant: "circle"
|
|
82
85
|
}) : jsx("div", {
|
|
83
|
-
className: styles.color
|
|
86
|
+
className: clsx(styles.color, {
|
|
87
|
+
[styles.strikeThrough]: isNoColorOption
|
|
88
|
+
})
|
|
84
89
|
})
|
|
85
90
|
});
|
|
86
91
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"square":"bp_select_menu_grid_option_module_square--
|
|
2
|
+
var styles = {"square":"bp_select_menu_grid_option_module_square--6ad66","outlineHost":"bp_select_menu_grid_option_module_outlineHost--6ad66","circle":"bp_select_menu_grid_option_module_circle--6ad66","loading":"bp_select_menu_grid_option_module_loading--6ad66","color":"bp_select_menu_grid_option_module_color--6ad66","strikeThrough":"bp_select_menu_grid_option_module_strikeThrough--6ad66","optionButton":"bp_select_menu_grid_option_module_optionButton--6ad66","active":"bp_select_menu_grid_option_module_active--6ad66"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"root":"bp_radio_group_module_root--
|
|
2
|
+
var styles = {"root":"bp_radio_group_module_root--c72b9","horizontal":"bp_radio_group_module_horizontal--c72b9","radioOption":"bp_radio_group_module_radioOption--c72b9","label":"bp_radio_group_module_label--c72b9","description":"bp_radio_group_module_description--c72b9","disabled":"bp_radio_group_module_disabled--c72b9","radioButton":"bp_radio_group_module_radioButton--c72b9","indicator":"bp_radio_group_module_indicator--c72b9"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-stately": "^3.31.1",
|
|
64
64
|
"tsx": "^4.16.5"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "bef9db208515d53f0fb75d387d1740b389f6f753",
|
|
67
67
|
"module": "lib-esm/index.js",
|
|
68
68
|
"main": "lib-esm/index.js",
|
|
69
69
|
"exports": {
|