@pingux/astro 2.239.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/LinkSelectField/LinkSelectField.d.ts +4 -0
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +3 -86
- package/lib/cjs/components/LinkSelectField/index.d.ts +1 -0
- 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/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +11 -0
- package/lib/cjs/types/linkSelectField.d.ts +111 -0
- package/lib/cjs/types/linkSelectField.js +5 -0
- package/lib/components/Input/Input.styles.js +1 -1
- package/lib/components/LinkSelectField/LinkSelectField.js +5 -88
- 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/lib/types/index.js +1 -0
- package/lib/types/linkSelectField.js +1 -0
- package/package.json +1 -1
|
@@ -8,14 +8,12 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _reactAria = require("react-aria");
|
|
11
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
11
|
var _uuid = require("uuid");
|
|
13
12
|
var _ = require("../..");
|
|
14
13
|
var _hooks = require("../../hooks");
|
|
15
14
|
var _pendoID = require("../../utils/devUtils/constants/pendoID");
|
|
16
15
|
var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
|
|
17
16
|
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
|
18
|
-
var _fieldAttributes = require("../../utils/docUtils/fieldAttributes");
|
|
19
17
|
var _statusProp = require("../../utils/docUtils/statusProp");
|
|
20
18
|
var _SelectFieldBase = _interopRequireDefault(require("../SelectFieldBase"));
|
|
21
19
|
var _react2 = require("@emotion/react");
|
|
@@ -75,7 +73,7 @@ const LinkSelectField = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
75
73
|
variant: "selectLink",
|
|
76
74
|
tabIndex: isDisabled ? -1 : 0
|
|
77
75
|
}, (0, _pendoID.getPendoID)(displayName), triggerProps, raTriggerProps, ariaProps, {
|
|
78
|
-
"aria-describedby": helperText
|
|
76
|
+
"aria-describedby": helperText ? helperTextId : undefined
|
|
79
77
|
}), (0, _react2.jsx)(_.Text, {
|
|
80
78
|
variant: "linkSelectFieldLabel",
|
|
81
79
|
className: "link-select-field-placeholder"
|
|
@@ -104,92 +102,11 @@ const LinkSelectField = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
104
102
|
id: helperTextId
|
|
105
103
|
}, helperText));
|
|
106
104
|
return (0, _react2.jsx)(_SelectFieldBase.default, (0, _extends2.default)({}, props, selectFieldProps, {
|
|
105
|
+
label: props.label,
|
|
106
|
+
helperText: props.helperText,
|
|
107
107
|
trigger: triggerProp || triggerNode
|
|
108
108
|
}));
|
|
109
109
|
});
|
|
110
|
-
LinkSelectField.propTypes = {
|
|
111
|
-
/** Alignment of the popover menu relative to the trigger. */
|
|
112
|
-
align: _propTypes.default.oneOf(['start', 'end', 'middle']),
|
|
113
|
-
/** Where the popover menu opens relative to its trigger. */
|
|
114
|
-
direction: _propTypes.default.oneOf(['top', 'right', 'bottom', 'left']),
|
|
115
|
-
/** The initial selected key in the collection (uncontrolled). */
|
|
116
|
-
defaultSelectedKey: _propTypes.default.string,
|
|
117
|
-
/** Array of keys to disable within the options list. */
|
|
118
|
-
disabledKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
119
|
-
/** Whether the collection allows empty selection. */
|
|
120
|
-
hasNoEmptySelection: _propTypes.default.bool,
|
|
121
|
-
/** Whether the field has a status indicator. */
|
|
122
|
-
hasNoStatusIndicator: _propTypes.default.bool,
|
|
123
|
-
/** Text rendered below the input. */
|
|
124
|
-
helperText: _propTypes.default.node,
|
|
125
|
-
/** Props object that is spread directly into the helphint element. */
|
|
126
|
-
helpHintProps: _propTypes.default.shape({}),
|
|
127
|
-
/** If present this prop will cause a help hint to render in the label of the field. */
|
|
128
|
-
hintText: _propTypes.default.string,
|
|
129
|
-
/** Sets the default open state of the menu. */
|
|
130
|
-
isDefaultOpen: _propTypes.default.bool,
|
|
131
|
-
/** Whether the input is disabled. */
|
|
132
|
-
isDisabled: _propTypes.default.bool,
|
|
133
|
-
/** Whether the items are currently loading. */
|
|
134
|
-
isLoading: _propTypes.default.bool,
|
|
135
|
-
/** @ignore Whether the menu should automatically flip direction when space is limited. */
|
|
136
|
-
isNotFlippable: _propTypes.default.bool,
|
|
137
|
-
/** Sets the open state of the menu. */
|
|
138
|
-
isOpen: _propTypes.default.bool,
|
|
139
|
-
/** @ignore Whether the input can be selected but not changed by the user. */
|
|
140
|
-
isReadOnly: _propTypes.default.bool,
|
|
141
|
-
/** Whether user input is required on the input before form submission. */
|
|
142
|
-
isRequired: _propTypes.default.bool,
|
|
143
|
-
/**
|
|
144
|
-
* *For performance reasons, use this prop instead of Array.map when iteratively rendering Items*.
|
|
145
|
-
* For use with [dynamic collections](https://react-spectrum.adobe.com/react-stately/collections.html#dynamic-collections).
|
|
146
|
-
*/
|
|
147
|
-
items: _propTypes.default.arrayOf(_propTypes.default.shape({})),
|
|
148
|
-
/** The label for the select element. */
|
|
149
|
-
label: _propTypes.default.node,
|
|
150
|
-
/** The name for the select element, used when submitting a form. */
|
|
151
|
-
name: _propTypes.default.string,
|
|
152
|
-
/** Temporary text that occupies the text input when it is empty. */
|
|
153
|
-
placeholder: _propTypes.default.string,
|
|
154
|
-
/** The currently selected key in the collection (controlled). */
|
|
155
|
-
selectedKey: _propTypes.default.string,
|
|
156
|
-
/**
|
|
157
|
-
* Handler that is called when more items should be loaded, e.g. while scrolling near the bottom.
|
|
158
|
-
*
|
|
159
|
-
* () => any
|
|
160
|
-
*/
|
|
161
|
-
onLoadMore: _propTypes.default.func,
|
|
162
|
-
/**
|
|
163
|
-
* Method that is called when the open state of the menu changes.
|
|
164
|
-
*
|
|
165
|
-
* (isOpen: boolean) => void
|
|
166
|
-
*/
|
|
167
|
-
onOpenChange: _propTypes.default.func,
|
|
168
|
-
/**
|
|
169
|
-
* Handler that is called when the selection changes.
|
|
170
|
-
*
|
|
171
|
-
* (key: Key) => any
|
|
172
|
-
*/
|
|
173
|
-
onSelectionChange: _propTypes.default.func,
|
|
174
|
-
/** Display an inline loader inside the select trigger while loading. */
|
|
175
|
-
hasInlineLoader: _propTypes.default.bool,
|
|
176
|
-
/**
|
|
177
|
-
* Props object that is spread directly into the Icon inside the default trigger button.
|
|
178
|
-
* Supports all IconProps (icon, title, size, color, sx, etc.).
|
|
179
|
-
* The sx prop is merged with the rotation style.
|
|
180
|
-
*/
|
|
181
|
-
iconProps: _propTypes.default.shape({}),
|
|
182
|
-
/** Width of the popover menu. Accepts any valid CSS unit. */
|
|
183
|
-
popoverWidth: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
184
|
-
/**
|
|
185
|
-
* A ReactNode that replaces the default Button trigger entirely.
|
|
186
|
-
* When provided, the local Button element is not rendered.
|
|
187
|
-
*/
|
|
188
|
-
trigger: _propTypes.default.node,
|
|
189
|
-
..._statusProp.statusPropTypes,
|
|
190
|
-
..._fieldAttributes.inputFieldAttributesBasePropTypes,
|
|
191
|
-
..._ariaAttributes.ariaAttributesBasePropTypes
|
|
192
|
-
};
|
|
193
110
|
LinkSelectField.defaultProps = {
|
|
194
111
|
placeholder: 'Select',
|
|
195
112
|
align: 'start',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './LinkSelectField';
|
|
@@ -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 = {
|