@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.
Files changed (49) hide show
  1. package/lib/cjs/components/Input/Input.styles.js +1 -1
  2. package/lib/cjs/components/LinkSelectField/LinkSelectField.d.ts +4 -0
  3. package/lib/cjs/components/LinkSelectField/LinkSelectField.js +3 -86
  4. package/lib/cjs/components/LinkSelectField/index.d.ts +1 -0
  5. package/lib/cjs/components/ListBox/Option.js +21 -7
  6. package/lib/cjs/components/MultivaluesField/BadgeLabelTooltip.js +1 -0
  7. package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
  8. package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +5 -1
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
  10. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +1 -0
  11. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +13 -3
  12. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +20 -10
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +1 -1
  14. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +1 -0
  15. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +1 -1
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +3 -0
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -0
  18. package/lib/cjs/styles/themes/next-gen/forms.js +1 -1
  19. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +30 -28
  20. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +26 -27
  21. package/lib/cjs/styles/themes/next-gen/variants/badges.js +24 -8
  22. package/lib/cjs/styles/themes/next-gen/variants/input.js +4 -3
  23. package/lib/cjs/styles/themes/next-gen/variants/text.js +1 -1
  24. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +4 -1
  25. package/lib/cjs/styles/themes/next-gen/variants/variants.js +4 -1
  26. package/lib/cjs/types/index.d.ts +1 -0
  27. package/lib/cjs/types/index.js +11 -0
  28. package/lib/cjs/types/linkSelectField.d.ts +111 -0
  29. package/lib/cjs/types/linkSelectField.js +5 -0
  30. package/lib/components/Input/Input.styles.js +1 -1
  31. package/lib/components/LinkSelectField/LinkSelectField.js +5 -88
  32. package/lib/components/ListBox/Option.js +21 -7
  33. package/lib/components/MultivaluesField/BadgeLabelTooltip.js +1 -0
  34. package/lib/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
  35. package/lib/components/MultivaluesField/DefaultMultivaluesField.js +5 -1
  36. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +1 -0
  37. package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +20 -10
  38. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +1 -1
  39. package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +1 -0
  40. package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +1 -1
  41. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -0
  42. package/lib/styles/themes/next-gen/forms.js +1 -1
  43. package/lib/styles/themes/next-gen/variants/badges.js +24 -8
  44. package/lib/styles/themes/next-gen/variants/input.js +4 -3
  45. package/lib/styles/themes/next-gen/variants/text.js +1 -1
  46. package/lib/styles/themes/next-gen/variants/variants.js +4 -1
  47. package/lib/types/index.js +1 -0
  48. package/lib/types/linkSelectField.js +1 -0
  49. package/package.json +1 -1
@@ -181,7 +181,7 @@ input.multivaluesWrapper = {
181
181
  flexDirection: 'row !important',
182
182
  flexWrap: 'wrap',
183
183
  pt: 6,
184
- pr: 10,
184
+ pr: 12,
185
185
  pb: 5,
186
186
  pl: 12,
187
187
  borderRadius: '2px',
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LinkSelectFieldProps } from '../../types/linkSelectField';
3
+ declare const LinkSelectField: React.ForwardRefExoticComponent<LinkSelectFieldProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default LinkSelectField;
@@ -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 && helperTextId
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)(_Box.default, {
129
- isRow: true,
130
- alignItems: "center",
131
- flex: "1"
132
- }, (0, _react2.jsx)(_Icon.default, {
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: "xs",
145
+ mr: "sm",
136
146
  className: classNames,
137
147
  variant: "listBox.checkboxIcon"
138
- }), rendered) : (0, _react2.jsx)(_react.default.Fragment, null, isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon.default, {
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'
@@ -53,6 +53,7 @@ const BadgeLabelTooltip = ({
53
53
  variant: "badge.deleteButton",
54
54
  "aria-describedby": "selectedKeysState"
55
55
  }, item.buttonProps), (0, _react2.jsx)(_.Icon, {
56
+ color: "text.primary",
56
57
  icon: _CloseIcon.default,
57
58
  size: 14,
58
59
  title: {
@@ -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: 'sm'
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
  },
@@ -118,6 +118,7 @@ export declare const colors: {
118
118
  headerColor: string;
119
119
  };
120
120
  critical: {
121
+ bright: string;
121
122
  dark: string;
122
123
  };
123
124
  common: {
@@ -182,6 +182,7 @@ const colors = exports.colors = {
182
182
  badge,
183
183
  codeEditor,
184
184
  critical: {
185
+ bright: _onyxTokens.astroTokensDark.color.red[300],
185
186
  dark: _onyxTokens.astroTokensDark.color.red[100]
186
187
  },
187
188
  common
@@ -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[100],
114
- backgroundColor: '#23282E !important',
113
+ color: _onyxTokens.astroTokensDark.color.gray[600],
114
+ backgroundColor: 'white !important',
115
115
  borderColor: 'border.attachment',
116
116
  '& span': {
117
- color: _onyxTokens.astroTokensDark.color.gray[100]
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
- color: _onyxTokens.astroTokensDark.color.gray[100],
122
- backgroundColor: '#23282E !important',
123
- borderColor: 'border.attachment',
124
+ ...readOnlyBadge,
124
125
  '& span': {
125
- color: _onyxTokens.astroTokensDark.color.gray[100]
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: '#155CBA !important',
133
+ backgroundColor: '#2C323A !important',
130
134
  '& span': {
131
- color: _onyxTokens.astroTokensDark.color.gray[100]
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[100]
148
+ fill: _onyxTokens.astroTokensDark.color.gray[200]
139
149
  }
140
150
  }
141
151
  };
@@ -37,7 +37,7 @@ const checkbox = exports.checkbox = {
37
37
  '.is-focused &': {
38
38
  outline: '2px solid',
39
39
  outlineColor: _onyxTokens.astroTokensDark.color.blue[400],
40
- outlineOffset: '2px'
40
+ outlineOffset: '0px'
41
41
  },
42
42
  'input:disabled ~ &': {
43
43
  opacity: 0.5
@@ -32,6 +32,7 @@ input.fieldControlWrapper = {
32
32
  };
33
33
  input.multivaluesWrapper = {
34
34
  backgroundColor: 'backgroundBase',
35
+ rowGap: 'xs',
35
36
  '&.is-read-only': {
36
37
  boxShadow: 'inset 0 0 0 100px #30373f',
37
38
  border: '1px solid',
@@ -40,7 +40,7 @@ const text = exports.text = {
40
40
  },
41
41
  placeholder: {
42
42
  color: _onyxTokens.astroTokensDark.color.gray[400],
43
- fontWeight: 1
43
+ fontWeight: 400
44
44
  },
45
45
  messagesText: {
46
46
  '&.is-success, &.is-warning, &.is-error, &.is-default': {
@@ -464,6 +464,9 @@ declare const _default: {
464
464
  };
465
465
  option: {
466
466
  color: string;
467
+ '&.is-disabled': {
468
+ color: string;
469
+ };
467
470
  '&.is-focused': {
468
471
  color: string;
469
472
  bg: string;
@@ -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'
@@ -31,7 +31,7 @@ const checkbox = exports.checkbox = {
31
31
  '.is-focused &': {
32
32
  outline: '2px solid',
33
33
  outlineColor: _colors.default.focus,
34
- outlineOffset: '2px'
34
+ outlineOffset: '0px'
35
35
  },
36
36
  'input:disabled ~ &': {
37
37
  opacity: 0.5
@@ -3835,23 +3835,23 @@ declare const _default: {
3835
3835
  };
3836
3836
  selectedItemBadge: {
3837
3837
  backgroundColor: string;
3838
- paddingRight: string;
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
- fontWeight: string;
3849
+ fontSize: number;
3850
+ lineHeight: string;
3851
+ mr: number;
3842
3852
  };
3843
3853
  '& button': {
3844
- alignSelf: string;
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
- paddingRight: string;
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
- alignSelf: string;
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: string;
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
- paddingRight: string;
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
- fontWeight: string;
436
+ fontSize: number;
437
+ lineHeight: string;
438
+ mr: number;
429
439
  };
430
440
  '& button': {
431
- alignSelf: string;
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
- paddingRight: string;
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
- alignSelf: string;
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
- paddingRight: '0px !important',
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
- color: 'text.primary'
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
- ...badgeFont,
123
- color: 'text.primary',
124
- lineHeight: 'xs'
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
- ...badgeFont,
131
- color: 'text.primary',
132
- lineHeight: 'xs'
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 = {