@pingux/astro 2.240.0-alpha.0 → 2.241.0-alpha.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.
- package/lib/cjs/components/Input/Input.styles.js +1 -1
- package/lib/cjs/components/ListBox/Option.js +21 -7
- package/lib/cjs/components/MultivaluesField/BadgeLabelTooltip.js +1 -0
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +5 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +13 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +20 -10
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -0
- package/lib/cjs/styles/themes/next-gen/forms.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +30 -28
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +26 -27
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +24 -8
- package/lib/cjs/styles/themes/next-gen/variants/input.js +4 -3
- package/lib/cjs/styles/themes/next-gen/variants/text.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +4 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +4 -1
- package/lib/components/Input/Input.styles.js +1 -1
- package/lib/components/ListBox/Option.js +21 -7
- package/lib/components/MultivaluesField/BadgeLabelTooltip.js +1 -0
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +5 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +1 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +20 -10
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +1 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -0
- package/lib/styles/themes/next-gen/forms.js +1 -1
- package/lib/styles/themes/next-gen/variants/badges.js +24 -8
- package/lib/styles/themes/next-gen/variants/input.js +4 -3
- package/lib/styles/themes/next-gen/variants/text.js +1 -1
- package/lib/styles/themes/next-gen/variants/variants.js +4 -1
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ var _listbox = require("@react-aria/listbox");
|
|
|
13
13
|
var _MultivaluesContext = require("../../context/MultivaluesContext");
|
|
14
14
|
var _hooks = require("../../hooks");
|
|
15
15
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
16
|
+
var _CheckboxIcons = require("../Checkbox/CheckboxIcons");
|
|
16
17
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
17
18
|
var _ListBoxContext = require("./ListBoxContext");
|
|
18
19
|
var _react2 = require("@emotion/react");
|
|
@@ -125,17 +126,30 @@ const Option = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
125
126
|
onPointerOver: setFocusOnHover
|
|
126
127
|
}, theseOptionProps, others, {
|
|
127
128
|
"aria-label": ariaLabel
|
|
128
|
-
}), isCondensed ? (0, _react2.jsx)(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
}), isCondensed && (isOnyx ? (0, _react2.jsx)(_CheckboxIcons.OnyxDefaultCheckboxIcon, {
|
|
130
|
+
isChecked: isSelected,
|
|
131
|
+
sx: {
|
|
132
|
+
mr: 'sm',
|
|
133
|
+
color: isSelected ? 'primary' : 'gray-500',
|
|
134
|
+
'&.is-disabled': {
|
|
135
|
+
color: 'gray-400'
|
|
136
|
+
},
|
|
137
|
+
'&.is-focused, &.is-focus-visible': {
|
|
138
|
+
outline: '2px solid',
|
|
139
|
+
outlineColor: 'focus'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}) : (0, _react2.jsx)(_Icon.default, {
|
|
133
143
|
icon: isSelected ? CheckedIcon : UncheckedIcon,
|
|
134
144
|
color: "active",
|
|
135
|
-
mr: "
|
|
145
|
+
mr: "sm",
|
|
136
146
|
className: classNames,
|
|
137
147
|
variant: "listBox.checkboxIcon"
|
|
138
|
-
})
|
|
148
|
+
})), isCondensed && (0, _react2.jsx)(_Box.default, {
|
|
149
|
+
isRow: true,
|
|
150
|
+
alignItems: "center",
|
|
151
|
+
flex: "1"
|
|
152
|
+
}, rendered), !isCondensed && (0, _react2.jsx)(_react.default.Fragment, null, isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon.default, {
|
|
139
153
|
icon: _CircleSmallIcon.default,
|
|
140
154
|
title: {
|
|
141
155
|
name: 'Circle Small Icon'
|
|
@@ -248,10 +248,12 @@ const CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)((props, re
|
|
|
248
248
|
onPress: handleSelection,
|
|
249
249
|
ref: buttonRef,
|
|
250
250
|
variant: "listBoxLink",
|
|
251
|
-
mt: "sm",
|
|
252
|
-
ml: "14px",
|
|
253
251
|
sx: {
|
|
254
|
-
fontWeight: '400'
|
|
252
|
+
fontWeight: '400',
|
|
253
|
+
width: '100%',
|
|
254
|
+
justifyContent: 'flex-start',
|
|
255
|
+
pl: 'lg',
|
|
256
|
+
pr: 'md'
|
|
255
257
|
}
|
|
256
258
|
}, selectionState), (0, _react2.jsx)(_reactAria.DismissButton, {
|
|
257
259
|
onDismiss: close
|
|
@@ -337,7 +339,7 @@ const CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)((props, re
|
|
|
337
339
|
}, (0, _react2.jsx)(_.Icon, (0, _extends2.default)({
|
|
338
340
|
icon: isOpen ? MenuUp : MenuDown
|
|
339
341
|
}, isOnyx && {
|
|
340
|
-
size: '
|
|
342
|
+
size: 'md'
|
|
341
343
|
}, {
|
|
342
344
|
title: {
|
|
343
345
|
name: ''
|
|
@@ -447,7 +447,11 @@ const DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)((props, ref)
|
|
|
447
447
|
isRow: true,
|
|
448
448
|
sx: {
|
|
449
449
|
p: 0,
|
|
450
|
-
flexWrap: 'wrap'
|
|
450
|
+
flexWrap: 'wrap',
|
|
451
|
+
...(isOnyx && {
|
|
452
|
+
columnGap: 'xs',
|
|
453
|
+
rowGap: 'xs'
|
|
454
|
+
})
|
|
451
455
|
}
|
|
452
456
|
}, selectedItems), isOnyx ? onyxReadOnlyInputEntry : readOnlyInputEntry, selectionManager.selectedKeys.size > 0 && visuallyHidden)
|
|
453
457
|
},
|
|
@@ -141,22 +141,32 @@ declare const badges: {
|
|
|
141
141
|
'& span': {
|
|
142
142
|
color: string;
|
|
143
143
|
};
|
|
144
|
+
'& svg': {
|
|
145
|
+
color: string;
|
|
146
|
+
path: {
|
|
147
|
+
fill: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
144
150
|
};
|
|
145
151
|
readOnlyBadge: {
|
|
146
152
|
color: string;
|
|
147
153
|
backgroundColor: string;
|
|
148
154
|
borderColor: string;
|
|
149
155
|
'& span': {
|
|
156
|
+
fontWeight: number;
|
|
150
157
|
color: string;
|
|
158
|
+
fontSize: number;
|
|
159
|
+
lineHeight: string;
|
|
151
160
|
};
|
|
152
161
|
};
|
|
153
162
|
readOnlyFieldBadge: {
|
|
154
|
-
color: string;
|
|
155
|
-
backgroundColor: string;
|
|
156
|
-
borderColor: string;
|
|
157
163
|
'& span': {
|
|
164
|
+
fontWeight: number;
|
|
158
165
|
color: string;
|
|
159
166
|
};
|
|
167
|
+
color: string;
|
|
168
|
+
backgroundColor: string;
|
|
169
|
+
borderColor: string;
|
|
160
170
|
};
|
|
161
171
|
itemBadgeWithSlot: {
|
|
162
172
|
'& svg': {
|
|
@@ -110,32 +110,42 @@ const countNeutral = {
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
const readOnlyBadge = {
|
|
113
|
-
color: _onyxTokens.astroTokensDark.color.gray[
|
|
114
|
-
backgroundColor: '
|
|
113
|
+
color: _onyxTokens.astroTokensDark.color.gray[600],
|
|
114
|
+
backgroundColor: 'white !important',
|
|
115
115
|
borderColor: 'border.attachment',
|
|
116
116
|
'& span': {
|
|
117
|
-
|
|
117
|
+
fontWeight: 0,
|
|
118
|
+
color: _onyxTokens.astroTokensDark.color.gray[600],
|
|
119
|
+
fontSize: _onyxTokens.astroTokensDark.default['font-size'].small,
|
|
120
|
+
lineHeight: '18px'
|
|
118
121
|
}
|
|
119
122
|
};
|
|
120
123
|
const readOnlyFieldBadge = {
|
|
121
|
-
|
|
122
|
-
backgroundColor: '#23282E !important',
|
|
123
|
-
borderColor: 'border.attachment',
|
|
124
|
+
...readOnlyBadge,
|
|
124
125
|
'& span': {
|
|
125
|
-
|
|
126
|
+
fontWeight: 0,
|
|
127
|
+
color: _onyxTokens.astroTokensDark.color.gray[600]
|
|
126
128
|
}
|
|
127
129
|
};
|
|
130
|
+
|
|
131
|
+
// Onyx dark selected-tag spec: neutral surface, not the light-theme blue (UXE-8463 QA)
|
|
128
132
|
const selectedItemBadge = {
|
|
129
|
-
backgroundColor: '#
|
|
133
|
+
backgroundColor: '#2C323A !important',
|
|
130
134
|
'& span': {
|
|
131
|
-
color: _onyxTokens.astroTokensDark.color.gray[
|
|
135
|
+
color: _onyxTokens.astroTokensDark.color.gray[200]
|
|
136
|
+
},
|
|
137
|
+
'& svg': {
|
|
138
|
+
color: _onyxTokens.astroTokensDark.color.gray[200],
|
|
139
|
+
path: {
|
|
140
|
+
fill: _onyxTokens.astroTokensDark.color.gray[200]
|
|
141
|
+
}
|
|
132
142
|
}
|
|
133
143
|
};
|
|
134
144
|
const itemBadgeWithSlot = {
|
|
135
145
|
...selectedItemBadge,
|
|
136
146
|
'& svg': {
|
|
137
147
|
path: {
|
|
138
|
-
fill: _onyxTokens.astroTokensDark.color.gray[
|
|
148
|
+
fill: _onyxTokens.astroTokensDark.color.gray[200]
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
};
|
|
@@ -27,6 +27,9 @@ const listBox = {
|
|
|
27
27
|
},
|
|
28
28
|
option: {
|
|
29
29
|
color: _onyxTokens.astroTokensDark.color.common.menu.item.text,
|
|
30
|
+
'&.is-disabled': {
|
|
31
|
+
color: _onyxTokens.astroTokensDark.color.gray[400]
|
|
32
|
+
},
|
|
30
33
|
'&.is-focused': {
|
|
31
34
|
color: _onyxTokens.astroTokensDark.color.common.menu.item.hover.text,
|
|
32
35
|
bg: '#2C323A'
|
|
@@ -3835,23 +3835,23 @@ declare const _default: {
|
|
|
3835
3835
|
};
|
|
3836
3836
|
selectedItemBadge: {
|
|
3837
3837
|
backgroundColor: string;
|
|
3838
|
-
|
|
3838
|
+
pt: string;
|
|
3839
|
+
pb: string;
|
|
3840
|
+
m: number;
|
|
3841
|
+
mr: number;
|
|
3842
|
+
my: number;
|
|
3843
|
+
pr: string;
|
|
3844
|
+
pl: string;
|
|
3845
|
+
maxWidth: string;
|
|
3839
3846
|
'& span': {
|
|
3847
|
+
fontWeight: number;
|
|
3840
3848
|
color: string;
|
|
3841
|
-
|
|
3849
|
+
fontSize: number;
|
|
3850
|
+
lineHeight: string;
|
|
3851
|
+
mr: number;
|
|
3842
3852
|
};
|
|
3843
3853
|
'& button': {
|
|
3844
|
-
|
|
3845
|
-
p: string;
|
|
3846
|
-
bg: string;
|
|
3847
|
-
'&.is-hovered': {
|
|
3848
|
-
bg: string;
|
|
3849
|
-
'& svg': {
|
|
3850
|
-
path: {
|
|
3851
|
-
fill: string;
|
|
3852
|
-
};
|
|
3853
|
-
};
|
|
3854
|
-
};
|
|
3854
|
+
ml: string;
|
|
3855
3855
|
};
|
|
3856
3856
|
'& svg': {
|
|
3857
3857
|
color: string;
|
|
@@ -3910,9 +3910,10 @@ declare const _default: {
|
|
|
3910
3910
|
borderColor: string;
|
|
3911
3911
|
backgroundColor: string;
|
|
3912
3912
|
'& span': {
|
|
3913
|
+
fontWeight: number;
|
|
3913
3914
|
color: string;
|
|
3915
|
+
fontSize: number;
|
|
3914
3916
|
lineHeight: string;
|
|
3915
|
-
fontWeight: string;
|
|
3916
3917
|
};
|
|
3917
3918
|
'& button': {
|
|
3918
3919
|
alignSelf: string;
|
|
@@ -3945,9 +3946,10 @@ declare const _default: {
|
|
|
3945
3946
|
};
|
|
3946
3947
|
readOnlyFieldBadge: {
|
|
3947
3948
|
'& span': {
|
|
3949
|
+
fontWeight: number;
|
|
3948
3950
|
color: string;
|
|
3951
|
+
fontSize: number;
|
|
3949
3952
|
lineHeight: string;
|
|
3950
|
-
fontWeight: string;
|
|
3951
3953
|
};
|
|
3952
3954
|
border: string;
|
|
3953
3955
|
borderColor: string;
|
|
@@ -4203,19 +4205,16 @@ declare const _default: {
|
|
|
4203
4205
|
fill: string;
|
|
4204
4206
|
};
|
|
4205
4207
|
backgroundColor: string;
|
|
4206
|
-
|
|
4208
|
+
pt: string;
|
|
4209
|
+
pb: string;
|
|
4210
|
+
m: number;
|
|
4211
|
+
mr: number;
|
|
4212
|
+
my: number;
|
|
4213
|
+
pr: string;
|
|
4214
|
+
pl: string;
|
|
4215
|
+
maxWidth: string;
|
|
4207
4216
|
'& button': {
|
|
4208
|
-
|
|
4209
|
-
p: string;
|
|
4210
|
-
bg: string;
|
|
4211
|
-
'&.is-hovered': {
|
|
4212
|
-
bg: string;
|
|
4213
|
-
'& svg': {
|
|
4214
|
-
path: {
|
|
4215
|
-
fill: string;
|
|
4216
|
-
};
|
|
4217
|
-
};
|
|
4218
|
-
};
|
|
4217
|
+
ml: string;
|
|
4219
4218
|
};
|
|
4220
4219
|
alignItems: string;
|
|
4221
4220
|
justifyContent: string;
|
|
@@ -6172,12 +6171,15 @@ declare const _default: {
|
|
|
6172
6171
|
};
|
|
6173
6172
|
option: {
|
|
6174
6173
|
py: string;
|
|
6175
|
-
pl:
|
|
6174
|
+
pl: number;
|
|
6176
6175
|
pr: number;
|
|
6177
6176
|
justifyContent: string;
|
|
6178
6177
|
borderRadius: number;
|
|
6179
6178
|
lineHeight: string;
|
|
6180
6179
|
color: string;
|
|
6180
|
+
'&.is-disabled': {
|
|
6181
|
+
color: string;
|
|
6182
|
+
};
|
|
6181
6183
|
'&.is-focused': {
|
|
6182
6184
|
color: string;
|
|
6183
6185
|
bg: string;
|
|
@@ -422,23 +422,23 @@ export declare const badges: {
|
|
|
422
422
|
};
|
|
423
423
|
selectedItemBadge: {
|
|
424
424
|
backgroundColor: string;
|
|
425
|
-
|
|
425
|
+
pt: string;
|
|
426
|
+
pb: string;
|
|
427
|
+
m: number;
|
|
428
|
+
mr: number;
|
|
429
|
+
my: number;
|
|
430
|
+
pr: string;
|
|
431
|
+
pl: string;
|
|
432
|
+
maxWidth: string;
|
|
426
433
|
'& span': {
|
|
434
|
+
fontWeight: number;
|
|
427
435
|
color: string;
|
|
428
|
-
|
|
436
|
+
fontSize: number;
|
|
437
|
+
lineHeight: string;
|
|
438
|
+
mr: number;
|
|
429
439
|
};
|
|
430
440
|
'& button': {
|
|
431
|
-
|
|
432
|
-
p: string;
|
|
433
|
-
bg: string;
|
|
434
|
-
'&.is-hovered': {
|
|
435
|
-
bg: string;
|
|
436
|
-
'& svg': {
|
|
437
|
-
path: {
|
|
438
|
-
fill: string;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
};
|
|
441
|
+
ml: string;
|
|
442
442
|
};
|
|
443
443
|
'& svg': {
|
|
444
444
|
color: string;
|
|
@@ -497,9 +497,10 @@ export declare const badges: {
|
|
|
497
497
|
borderColor: string;
|
|
498
498
|
backgroundColor: string;
|
|
499
499
|
'& span': {
|
|
500
|
+
fontWeight: number;
|
|
500
501
|
color: string;
|
|
502
|
+
fontSize: number;
|
|
501
503
|
lineHeight: string;
|
|
502
|
-
fontWeight: string;
|
|
503
504
|
};
|
|
504
505
|
'& button': {
|
|
505
506
|
alignSelf: string;
|
|
@@ -532,9 +533,10 @@ export declare const badges: {
|
|
|
532
533
|
};
|
|
533
534
|
readOnlyFieldBadge: {
|
|
534
535
|
'& span': {
|
|
536
|
+
fontWeight: number;
|
|
535
537
|
color: string;
|
|
538
|
+
fontSize: number;
|
|
536
539
|
lineHeight: string;
|
|
537
|
-
fontWeight: string;
|
|
538
540
|
};
|
|
539
541
|
border: string;
|
|
540
542
|
borderColor: string;
|
|
@@ -790,19 +792,16 @@ export declare const badges: {
|
|
|
790
792
|
fill: string;
|
|
791
793
|
};
|
|
792
794
|
backgroundColor: string;
|
|
793
|
-
|
|
795
|
+
pt: string;
|
|
796
|
+
pb: string;
|
|
797
|
+
m: number;
|
|
798
|
+
mr: number;
|
|
799
|
+
my: number;
|
|
800
|
+
pr: string;
|
|
801
|
+
pl: string;
|
|
802
|
+
maxWidth: string;
|
|
794
803
|
'& button': {
|
|
795
|
-
|
|
796
|
-
p: string;
|
|
797
|
-
bg: string;
|
|
798
|
-
'&.is-hovered': {
|
|
799
|
-
bg: string;
|
|
800
|
-
'& svg': {
|
|
801
|
-
path: {
|
|
802
|
-
fill: string;
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
};
|
|
804
|
+
ml: string;
|
|
806
805
|
};
|
|
807
806
|
alignItems: string;
|
|
808
807
|
justifyContent: string;
|
|
@@ -107,10 +107,24 @@ const info = {
|
|
|
107
107
|
const selectedItemBadge = {
|
|
108
108
|
...baseBadge,
|
|
109
109
|
backgroundColor: '#eaf2fd !important',
|
|
110
|
-
|
|
110
|
+
pt: 'xs',
|
|
111
|
+
pb: 'xs',
|
|
112
|
+
m: 0,
|
|
113
|
+
mr: 0,
|
|
114
|
+
my: 0,
|
|
115
|
+
pr: 'sm',
|
|
116
|
+
pl: 'sm',
|
|
117
|
+
maxWidth: 'none',
|
|
111
118
|
'& span': {
|
|
112
119
|
...badgeFont,
|
|
113
|
-
|
|
120
|
+
fontWeight: 0,
|
|
121
|
+
color: 'text.primary',
|
|
122
|
+
fontSize: _onyxTokens.astroTokens.default['font-size'].small,
|
|
123
|
+
lineHeight: '18px',
|
|
124
|
+
mr: 0
|
|
125
|
+
},
|
|
126
|
+
'& button': {
|
|
127
|
+
ml: 'sm'
|
|
114
128
|
}
|
|
115
129
|
};
|
|
116
130
|
const readOnlyBadge = {
|
|
@@ -119,17 +133,19 @@ const readOnlyBadge = {
|
|
|
119
133
|
borderColor: 'border.hairline',
|
|
120
134
|
backgroundColor: '#FFFFFF !important',
|
|
121
135
|
'& span': {
|
|
122
|
-
|
|
123
|
-
color:
|
|
124
|
-
|
|
136
|
+
fontWeight: 0,
|
|
137
|
+
color: _onyxTokens.astroTokens.color.gray[600],
|
|
138
|
+
fontSize: _onyxTokens.astroTokens.default['font-size'].small,
|
|
139
|
+
lineHeight: '18px'
|
|
125
140
|
}
|
|
126
141
|
};
|
|
127
142
|
const readOnlyFieldBadge = {
|
|
128
143
|
...readOnlyBadge,
|
|
129
144
|
'& span': {
|
|
130
|
-
|
|
131
|
-
color:
|
|
132
|
-
|
|
145
|
+
fontWeight: 0,
|
|
146
|
+
color: _onyxTokens.astroTokens.color.gray[600],
|
|
147
|
+
fontSize: _onyxTokens.astroTokens.default['font-size'].small,
|
|
148
|
+
lineHeight: '18px'
|
|
133
149
|
}
|
|
134
150
|
};
|
|
135
151
|
const itemBadgeWithSlot = {
|
|
@@ -154,8 +154,9 @@ input.multivaluesWrapper = {
|
|
|
154
154
|
borderWidth: 1,
|
|
155
155
|
flexDirection: 'row !important',
|
|
156
156
|
flexWrap: 'wrap',
|
|
157
|
+
rowGap: 'xs',
|
|
157
158
|
pt: 6,
|
|
158
|
-
pr:
|
|
159
|
+
pr: 12,
|
|
159
160
|
pb: 5,
|
|
160
161
|
pl: 12,
|
|
161
162
|
borderRadius: _onyxTokens.astroTokens.radius.input,
|
|
@@ -166,7 +167,7 @@ input.multivaluesWrapper = {
|
|
|
166
167
|
flex: 1,
|
|
167
168
|
height: 27,
|
|
168
169
|
lineHeight: '100%',
|
|
169
|
-
p:
|
|
170
|
+
p: 0,
|
|
170
171
|
'&.is-focused': {
|
|
171
172
|
boxShadow: 'none',
|
|
172
173
|
outline: 'none'
|
|
@@ -176,7 +177,7 @@ input.multivaluesWrapper = {
|
|
|
176
177
|
...defaultFocus
|
|
177
178
|
},
|
|
178
179
|
'&.is-error': {
|
|
179
|
-
borderColor:
|
|
180
|
+
borderColor: _onyxTokens.astroTokens.color.red.base
|
|
180
181
|
},
|
|
181
182
|
'&.is-read-only': {
|
|
182
183
|
alignItems: 'center',
|
|
@@ -903,12 +903,15 @@ declare const _default: {
|
|
|
903
903
|
};
|
|
904
904
|
option: {
|
|
905
905
|
py: string;
|
|
906
|
-
pl:
|
|
906
|
+
pl: number;
|
|
907
907
|
pr: number;
|
|
908
908
|
justifyContent: string;
|
|
909
909
|
borderRadius: number;
|
|
910
910
|
lineHeight: string;
|
|
911
911
|
color: string;
|
|
912
|
+
'&.is-disabled': {
|
|
913
|
+
color: string;
|
|
914
|
+
};
|
|
912
915
|
'&.is-focused': {
|
|
913
916
|
color: string;
|
|
914
917
|
bg: string;
|
|
@@ -177,12 +177,15 @@ const listBox = {
|
|
|
177
177
|
},
|
|
178
178
|
option: {
|
|
179
179
|
py: 'md-s',
|
|
180
|
-
pl:
|
|
180
|
+
pl: _onyxTokens.astroTokens.spacing.md,
|
|
181
181
|
pr: _onyxTokens.astroTokens.spacing.md,
|
|
182
182
|
justifyContent: 'space-between',
|
|
183
183
|
borderRadius: _onyxTokens.astroTokens.radius.md,
|
|
184
184
|
lineHeight: 'body',
|
|
185
185
|
color: _onyxTokens.astroTokens.color.common.menu.item.text,
|
|
186
|
+
'&.is-disabled': {
|
|
187
|
+
color: _onyxTokens.astroTokens.color.gray[700]
|
|
188
|
+
},
|
|
186
189
|
'&.is-focused': {
|
|
187
190
|
color: _onyxTokens.astroTokens.color.common.menu.item.hover.text,
|
|
188
191
|
bg: 'gray-100',
|
|
@@ -6,6 +6,7 @@ import { useOption } from '@react-aria/listbox';
|
|
|
6
6
|
import { useMultivaluesContext } from '../../context/MultivaluesContext';
|
|
7
7
|
import { useGetTheme, useStatusClasses } from '../../hooks';
|
|
8
8
|
import Box from '../Box';
|
|
9
|
+
import { OnyxDefaultCheckboxIcon } from '../Checkbox/CheckboxIcons';
|
|
9
10
|
import Icon from '../Icon';
|
|
10
11
|
import { ListBoxContext } from './ListBoxContext';
|
|
11
12
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -117,17 +118,30 @@ const Option = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
117
118
|
onPointerOver: setFocusOnHover
|
|
118
119
|
}, theseOptionProps, others, {
|
|
119
120
|
"aria-label": ariaLabel
|
|
120
|
-
}), isCondensed ? ___EmotionJSX(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
}), isCondensed && (isOnyx ? ___EmotionJSX(OnyxDefaultCheckboxIcon, {
|
|
122
|
+
isChecked: isSelected,
|
|
123
|
+
sx: {
|
|
124
|
+
mr: 'sm',
|
|
125
|
+
color: isSelected ? 'primary' : 'gray-500',
|
|
126
|
+
'&.is-disabled': {
|
|
127
|
+
color: 'gray-400'
|
|
128
|
+
},
|
|
129
|
+
'&.is-focused, &.is-focus-visible': {
|
|
130
|
+
outline: '2px solid',
|
|
131
|
+
outlineColor: 'focus'
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}) : ___EmotionJSX(Icon, {
|
|
125
135
|
icon: isSelected ? CheckedIcon : UncheckedIcon,
|
|
126
136
|
color: "active",
|
|
127
|
-
mr: "
|
|
137
|
+
mr: "sm",
|
|
128
138
|
className: classNames,
|
|
129
139
|
variant: "listBox.checkboxIcon"
|
|
130
|
-
})
|
|
140
|
+
})), isCondensed && ___EmotionJSX(Box, {
|
|
141
|
+
isRow: true,
|
|
142
|
+
alignItems: "center",
|
|
143
|
+
flex: "1"
|
|
144
|
+
}, rendered), !isCondensed && ___EmotionJSX(React.Fragment, null, isSelected && !isOnyx && shouldShowSelectedOption && ___EmotionJSX(Icon, {
|
|
131
145
|
icon: CircleSmallIcon,
|
|
132
146
|
title: {
|
|
133
147
|
name: 'Circle Small Icon'
|
|
@@ -240,10 +240,12 @@ const CondensedMultivaluesField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
240
240
|
onPress: handleSelection,
|
|
241
241
|
ref: buttonRef,
|
|
242
242
|
variant: "listBoxLink",
|
|
243
|
-
mt: "sm",
|
|
244
|
-
ml: "14px",
|
|
245
243
|
sx: {
|
|
246
|
-
fontWeight: '400'
|
|
244
|
+
fontWeight: '400',
|
|
245
|
+
width: '100%',
|
|
246
|
+
justifyContent: 'flex-start',
|
|
247
|
+
pl: 'lg',
|
|
248
|
+
pr: 'md'
|
|
247
249
|
}
|
|
248
250
|
}, selectionState), ___EmotionJSX(DismissButton, {
|
|
249
251
|
onDismiss: close
|
|
@@ -329,7 +331,7 @@ const CondensedMultivaluesField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
329
331
|
}, ___EmotionJSX(Icon, _extends({
|
|
330
332
|
icon: isOpen ? MenuUp : MenuDown
|
|
331
333
|
}, isOnyx && {
|
|
332
|
-
size: '
|
|
334
|
+
size: 'md'
|
|
333
335
|
}, {
|
|
334
336
|
title: {
|
|
335
337
|
name: ''
|
|
@@ -439,7 +439,11 @@ const DefaultMultivaluesField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
439
439
|
isRow: true,
|
|
440
440
|
sx: {
|
|
441
441
|
p: 0,
|
|
442
|
-
flexWrap: 'wrap'
|
|
442
|
+
flexWrap: 'wrap',
|
|
443
|
+
...(isOnyx && {
|
|
444
|
+
columnGap: 'xs',
|
|
445
|
+
rowGap: 'xs'
|
|
446
|
+
})
|
|
443
447
|
}
|
|
444
448
|
}, selectedItems), isOnyx ? onyxReadOnlyInputEntry : readOnlyInputEntry, selectionManager.selectedKeys.size > 0 && visuallyHidden)
|
|
445
449
|
},
|
|
@@ -104,32 +104,42 @@ const countNeutral = {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
const readOnlyBadge = {
|
|
107
|
-
color: astroTokensDark.color.gray[
|
|
108
|
-
backgroundColor: '
|
|
107
|
+
color: astroTokensDark.color.gray[600],
|
|
108
|
+
backgroundColor: 'white !important',
|
|
109
109
|
borderColor: 'border.attachment',
|
|
110
110
|
'& span': {
|
|
111
|
-
|
|
111
|
+
fontWeight: 0,
|
|
112
|
+
color: astroTokensDark.color.gray[600],
|
|
113
|
+
fontSize: astroTokensDark.default['font-size'].small,
|
|
114
|
+
lineHeight: '18px'
|
|
112
115
|
}
|
|
113
116
|
};
|
|
114
117
|
const readOnlyFieldBadge = {
|
|
115
|
-
|
|
116
|
-
backgroundColor: '#23282E !important',
|
|
117
|
-
borderColor: 'border.attachment',
|
|
118
|
+
...readOnlyBadge,
|
|
118
119
|
'& span': {
|
|
119
|
-
|
|
120
|
+
fontWeight: 0,
|
|
121
|
+
color: astroTokensDark.color.gray[600]
|
|
120
122
|
}
|
|
121
123
|
};
|
|
124
|
+
|
|
125
|
+
// Onyx dark selected-tag spec: neutral surface, not the light-theme blue (UXE-8463 QA)
|
|
122
126
|
const selectedItemBadge = {
|
|
123
|
-
backgroundColor: '#
|
|
127
|
+
backgroundColor: '#2C323A !important',
|
|
124
128
|
'& span': {
|
|
125
|
-
color: astroTokensDark.color.gray[
|
|
129
|
+
color: astroTokensDark.color.gray[200]
|
|
130
|
+
},
|
|
131
|
+
'& svg': {
|
|
132
|
+
color: astroTokensDark.color.gray[200],
|
|
133
|
+
path: {
|
|
134
|
+
fill: astroTokensDark.color.gray[200]
|
|
135
|
+
}
|
|
126
136
|
}
|
|
127
137
|
};
|
|
128
138
|
const itemBadgeWithSlot = {
|
|
129
139
|
...selectedItemBadge,
|
|
130
140
|
'& svg': {
|
|
131
141
|
path: {
|
|
132
|
-
fill: astroTokensDark.color.gray[
|
|
142
|
+
fill: astroTokensDark.color.gray[200]
|
|
133
143
|
}
|
|
134
144
|
}
|
|
135
145
|
};
|
|
@@ -20,6 +20,9 @@ const listBox = {
|
|
|
20
20
|
},
|
|
21
21
|
option: {
|
|
22
22
|
color: astroTokensDark.color.common.menu.item.text,
|
|
23
|
+
'&.is-disabled': {
|
|
24
|
+
color: astroTokensDark.color.gray[400]
|
|
25
|
+
},
|
|
23
26
|
'&.is-focused': {
|
|
24
27
|
color: astroTokensDark.color.common.menu.item.hover.text,
|
|
25
28
|
bg: '#2C323A'
|
|
@@ -100,10 +100,24 @@ const info = {
|
|
|
100
100
|
const selectedItemBadge = {
|
|
101
101
|
...baseBadge,
|
|
102
102
|
backgroundColor: '#eaf2fd !important',
|
|
103
|
-
|
|
103
|
+
pt: 'xs',
|
|
104
|
+
pb: 'xs',
|
|
105
|
+
m: 0,
|
|
106
|
+
mr: 0,
|
|
107
|
+
my: 0,
|
|
108
|
+
pr: 'sm',
|
|
109
|
+
pl: 'sm',
|
|
110
|
+
maxWidth: 'none',
|
|
104
111
|
'& span': {
|
|
105
112
|
...badgeFont,
|
|
106
|
-
|
|
113
|
+
fontWeight: 0,
|
|
114
|
+
color: 'text.primary',
|
|
115
|
+
fontSize: astroTokens.default['font-size'].small,
|
|
116
|
+
lineHeight: '18px',
|
|
117
|
+
mr: 0
|
|
118
|
+
},
|
|
119
|
+
'& button': {
|
|
120
|
+
ml: 'sm'
|
|
107
121
|
}
|
|
108
122
|
};
|
|
109
123
|
const readOnlyBadge = {
|
|
@@ -112,17 +126,19 @@ const readOnlyBadge = {
|
|
|
112
126
|
borderColor: 'border.hairline',
|
|
113
127
|
backgroundColor: '#FFFFFF !important',
|
|
114
128
|
'& span': {
|
|
115
|
-
|
|
116
|
-
color:
|
|
117
|
-
|
|
129
|
+
fontWeight: 0,
|
|
130
|
+
color: astroTokens.color.gray[600],
|
|
131
|
+
fontSize: astroTokens.default['font-size'].small,
|
|
132
|
+
lineHeight: '18px'
|
|
118
133
|
}
|
|
119
134
|
};
|
|
120
135
|
const readOnlyFieldBadge = {
|
|
121
136
|
...readOnlyBadge,
|
|
122
137
|
'& span': {
|
|
123
|
-
|
|
124
|
-
color:
|
|
125
|
-
|
|
138
|
+
fontWeight: 0,
|
|
139
|
+
color: astroTokens.color.gray[600],
|
|
140
|
+
fontSize: astroTokens.default['font-size'].small,
|
|
141
|
+
lineHeight: '18px'
|
|
126
142
|
}
|
|
127
143
|
};
|
|
128
144
|
const itemBadgeWithSlot = {
|
|
@@ -148,8 +148,9 @@ input.multivaluesWrapper = {
|
|
|
148
148
|
borderWidth: 1,
|
|
149
149
|
flexDirection: 'row !important',
|
|
150
150
|
flexWrap: 'wrap',
|
|
151
|
+
rowGap: 'xs',
|
|
151
152
|
pt: 6,
|
|
152
|
-
pr:
|
|
153
|
+
pr: 12,
|
|
153
154
|
pb: 5,
|
|
154
155
|
pl: 12,
|
|
155
156
|
borderRadius: astroTokens.radius.input,
|
|
@@ -160,7 +161,7 @@ input.multivaluesWrapper = {
|
|
|
160
161
|
flex: 1,
|
|
161
162
|
height: 27,
|
|
162
163
|
lineHeight: '100%',
|
|
163
|
-
p:
|
|
164
|
+
p: 0,
|
|
164
165
|
'&.is-focused': {
|
|
165
166
|
boxShadow: 'none',
|
|
166
167
|
outline: 'none'
|
|
@@ -170,7 +171,7 @@ input.multivaluesWrapper = {
|
|
|
170
171
|
...defaultFocus
|
|
171
172
|
},
|
|
172
173
|
'&.is-error': {
|
|
173
|
-
borderColor:
|
|
174
|
+
borderColor: astroTokens.color.red.base
|
|
174
175
|
},
|
|
175
176
|
'&.is-read-only': {
|
|
176
177
|
alignItems: 'center',
|
|
@@ -169,12 +169,15 @@ const listBox = {
|
|
|
169
169
|
},
|
|
170
170
|
option: {
|
|
171
171
|
py: 'md-s',
|
|
172
|
-
pl:
|
|
172
|
+
pl: astroTokens.spacing.md,
|
|
173
173
|
pr: astroTokens.spacing.md,
|
|
174
174
|
justifyContent: 'space-between',
|
|
175
175
|
borderRadius: astroTokens.radius.md,
|
|
176
176
|
lineHeight: 'body',
|
|
177
177
|
color: astroTokens.color.common.menu.item.text,
|
|
178
|
+
'&.is-disabled': {
|
|
179
|
+
color: astroTokens.color.gray[700]
|
|
180
|
+
},
|
|
178
181
|
'&.is-focused': {
|
|
179
182
|
color: astroTokens.color.common.menu.item.hover.text,
|
|
180
183
|
bg: 'gray-100',
|