@zendeskgarden/react-dropdowns 9.0.0-next.12 → 9.0.0-next.13

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 (43) hide show
  1. package/dist/esm/elements/combobox/Option.js +7 -3
  2. package/dist/esm/elements/menu/Item.js +9 -7
  3. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +1 -1
  4. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
  5. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +1 -1
  6. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +1 -1
  7. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +1 -1
  8. package/dist/esm/views/combobox/StyledCombobox.js +1 -1
  9. package/dist/esm/views/combobox/StyledContainer.js +1 -1
  10. package/dist/esm/views/combobox/StyledField.js +1 -1
  11. package/dist/esm/views/combobox/StyledFloatingListbox.js +1 -1
  12. package/dist/esm/views/combobox/StyledHint.js +1 -1
  13. package/dist/esm/views/combobox/StyledInput.js +10 -4
  14. package/dist/esm/views/combobox/StyledInputGroup.js +1 -1
  15. package/dist/esm/views/combobox/StyledInputIcon.js +26 -7
  16. package/dist/esm/views/combobox/StyledLabel.js +1 -1
  17. package/dist/esm/views/combobox/StyledListbox.js +1 -1
  18. package/dist/esm/views/combobox/StyledListboxSeparator.js +10 -4
  19. package/dist/esm/views/combobox/StyledMessage.js +1 -1
  20. package/dist/esm/views/combobox/StyledOptGroup.js +1 -1
  21. package/dist/esm/views/combobox/StyledOption.js +34 -13
  22. package/dist/esm/views/combobox/StyledOptionContent.js +1 -1
  23. package/dist/esm/views/combobox/StyledOptionIcon.js +25 -3
  24. package/dist/esm/views/combobox/StyledOptionMeta.js +12 -4
  25. package/dist/esm/views/combobox/StyledOptionTypeIcon.js +18 -8
  26. package/dist/esm/views/combobox/StyledTag.js +6 -3
  27. package/dist/esm/views/combobox/StyledTagsButton.js +10 -4
  28. package/dist/esm/views/combobox/StyledTrigger.js +64 -33
  29. package/dist/esm/views/combobox/StyledValue.js +11 -4
  30. package/dist/esm/views/menu/StyledFloatingMenu.js +1 -1
  31. package/dist/esm/views/menu/StyledItem.js +1 -1
  32. package/dist/esm/views/menu/StyledItemContent.js +1 -1
  33. package/dist/esm/views/menu/StyledItemGroup.js +1 -1
  34. package/dist/esm/views/menu/StyledItemIcon.js +1 -1
  35. package/dist/esm/views/menu/StyledItemMeta.js +1 -1
  36. package/dist/esm/views/menu/StyledItemTypeIcon.js +1 -1
  37. package/dist/esm/views/menu/StyledMenu.js +2 -2
  38. package/dist/esm/views/menu/StyledSeparator.js +1 -1
  39. package/dist/index.cjs.js +262 -117
  40. package/dist/typings/views/combobox/StyledOptionIcon.d.ts +7 -2
  41. package/dist/typings/views/menu/StyledItemIcon.d.ts +1 -1
  42. package/package.json +8 -9
  43. package/LICENSE.md +0 -176
package/dist/index.cjs.js CHANGED
@@ -47,7 +47,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
47
47
  var styled__default = /*#__PURE__*/_interopDefault(styled);
48
48
 
49
49
  var _path$4;
50
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
50
+ function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
51
51
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
52
52
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
53
53
  xmlns: "http://www.w3.org/2000/svg",
@@ -83,7 +83,7 @@ const useFieldContext = () => {
83
83
  const COMPONENT_ID$u = 'dropdowns.combobox.label';
84
84
  const StyledLabel = styled__default.default(reactForms.Field.Label).attrs({
85
85
  'data-garden-id': COMPONENT_ID$u,
86
- 'data-garden-version': '9.0.0-next.12'
86
+ 'data-garden-version': '9.0.0-next.13'
87
87
  }).withConfig({
88
88
  displayName: "StyledLabel",
89
89
  componentId: "sc-az6now-0"
@@ -95,7 +95,7 @@ StyledLabel.defaultProps = {
95
95
  const COMPONENT_ID$t = 'dropdowns.combobox.hint';
96
96
  const StyledHint = styled__default.default(reactForms.Field.Hint).attrs({
97
97
  'data-garden-id': COMPONENT_ID$t,
98
- 'data-garden-version': '9.0.0-next.12'
98
+ 'data-garden-version': '9.0.0-next.13'
99
99
  }).withConfig({
100
100
  displayName: "StyledHint",
101
101
  componentId: "sc-106qvqx-0"
@@ -107,7 +107,7 @@ StyledHint.defaultProps = {
107
107
  const COMPONENT_ID$s = 'dropdowns.combobox.message';
108
108
  const StyledMessage = styled__default.default(reactForms.Field.Message).attrs({
109
109
  'data-garden-id': COMPONENT_ID$s,
110
- 'data-garden-version': '9.0.0-next.12'
110
+ 'data-garden-version': '9.0.0-next.13'
111
111
  }).withConfig({
112
112
  displayName: "StyledMessage",
113
113
  componentId: "sc-jux8m5-0"
@@ -124,7 +124,7 @@ const sizeStyles$a = props => {
124
124
  };
125
125
  const StyledCombobox = styled__default.default.div.attrs({
126
126
  'data-garden-id': COMPONENT_ID$r,
127
- 'data-garden-version': '9.0.0-next.12'
127
+ 'data-garden-version': '9.0.0-next.13'
128
128
  }).withConfig({
129
129
  displayName: "StyledCombobox",
130
130
  componentId: "sc-13eybg8-0"
@@ -136,7 +136,7 @@ StyledCombobox.defaultProps = {
136
136
  const COMPONENT_ID$q = 'dropdowns.combobox.container';
137
137
  const StyledContainer = styled__default.default.div.attrs({
138
138
  'data-garden-id': COMPONENT_ID$q,
139
- 'data-garden-version': '9.0.0-next.12'
139
+ 'data-garden-version': '9.0.0-next.13'
140
140
  }).withConfig({
141
141
  displayName: "StyledContainer",
142
142
  componentId: "sc-14i9jid-0"
@@ -148,7 +148,7 @@ StyledContainer.defaultProps = {
148
148
  const COMPONENT_ID$p = 'dropdowns.combobox.field';
149
149
  const StyledField = styled__default.default.div.attrs({
150
150
  'data-garden-id': COMPONENT_ID$p,
151
- 'data-garden-version': '9.0.0-next.12'
151
+ 'data-garden-version': '9.0.0-next.13'
152
152
  }).withConfig({
153
153
  displayName: "StyledField",
154
154
  componentId: "sc-zc57xl-0"
@@ -160,7 +160,7 @@ StyledField.defaultProps = {
160
160
  const COMPONENT_ID$o = 'dropdowns.combobox.floating';
161
161
  const StyledFloatingListbox = styled__default.default.div.attrs({
162
162
  'data-garden-id': COMPONENT_ID$o,
163
- 'data-garden-version': '9.0.0-next.12'
163
+ 'data-garden-version': '9.0.0-next.13'
164
164
  }).withConfig({
165
165
  displayName: "StyledFloatingListbox",
166
166
  componentId: "sc-1cp6spf-0"
@@ -175,8 +175,14 @@ StyledFloatingListbox.defaultProps = {
175
175
  };
176
176
 
177
177
  const COMPONENT_ID$n = 'dropdowns.combobox.input';
178
- const colorStyles$8 = props => {
179
- const placeholderColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
178
+ const colorStyles$9 = _ref => {
179
+ let {
180
+ theme
181
+ } = _ref;
182
+ const placeholderColor = reactTheming.getColor({
183
+ theme,
184
+ variable: 'foreground.disabled'
185
+ });
180
186
  return styled.css(["background-color:inherit;color:inherit;&::placeholder{opacity:1;color:", ";}"], placeholderColor);
181
187
  };
182
188
  const getHeight = props => {
@@ -195,11 +201,11 @@ const sizeStyles$9 = props => {
195
201
  };
196
202
  const StyledInput = styled__default.default.input.attrs({
197
203
  'data-garden-id': COMPONENT_ID$n,
198
- 'data-garden-version': '9.0.0-next.12'
204
+ 'data-garden-version': '9.0.0-next.13'
199
205
  }).withConfig({
200
206
  displayName: "StyledInput",
201
207
  componentId: "sc-1lkqdg-0"
202
- })(["flex-basis:0;flex-grow:1;border:none;padding:0;font-family:inherit;&:focus{outline:none;}", ";", ";&[hidden]{display:revert;", "}&[aria-hidden='true']{display:none;}", ";"], sizeStyles$9, colorStyles$8, props => props.isEditable && polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
208
+ })(["flex-basis:0;flex-grow:1;border:none;padding:0;font-family:inherit;&:focus{outline:none;}", ";", ";&[hidden]{display:revert;", "}&[aria-hidden='true']{display:none;}", ";"], sizeStyles$9, colorStyles$9, props => props.isEditable && polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
203
209
  StyledInput.defaultProps = {
204
210
  theme: reactTheming.DEFAULT_THEME
205
211
  };
@@ -211,7 +217,7 @@ const sizeStyles$8 = props => {
211
217
  };
212
218
  const StyledInputGroup = styled__default.default.div.attrs({
213
219
  'data-garden-id': COMPONENT_ID$m,
214
- 'data-garden-version': '9.0.0-next.12'
220
+ 'data-garden-version': '9.0.0-next.13'
215
221
  }).withConfig({
216
222
  displayName: "StyledInputGroup",
217
223
  componentId: "sc-yx3q7u-0"
@@ -221,54 +227,85 @@ StyledInputGroup.defaultProps = {
221
227
  };
222
228
 
223
229
  const COMPONENT_ID$l = 'dropdowns.combobox.trigger';
224
- const colorStyles$7 = props => {
225
- const SHADE = 600;
226
- let hue = 'neutralHue';
227
- if (props.validation === 'success') {
228
- hue = 'successHue';
229
- } else if (props.validation === 'warning') {
230
- hue = 'warningHue';
231
- } else if (props.validation === 'error') {
232
- hue = 'dangerHue';
233
- }
234
- const backgroundColor = props.isBare ? 'transparent' : reactTheming.getColorV8('background', 600 , props.theme);
230
+ const colorStyles$8 = _ref => {
231
+ let {
232
+ theme,
233
+ validation,
234
+ isBare,
235
+ isLabelHovered,
236
+ focusInset
237
+ } = _ref;
238
+ const foregroundColor = reactTheming.getColor({
239
+ theme,
240
+ variable: 'foreground.default'
241
+ });
242
+ const backgroundColor = isBare ? 'transparent' : reactTheming.getColor({
243
+ theme,
244
+ variable: 'background.default'
245
+ });
235
246
  let borderColor;
247
+ let borderVariable;
236
248
  let hoverBorderColor;
237
249
  let focusBorderColor;
238
- let focusShade;
239
- if (props.validation) {
240
- borderColor = reactTheming.getColorV8(hue, SHADE, props.theme);
241
- hoverBorderColor = borderColor;
242
- if (props.validation === 'warning') {
243
- focusBorderColor = reactTheming.getColorV8(hue, SHADE + 100, props.theme);
244
- focusShade = SHADE + 100;
245
- } else {
246
- focusBorderColor = borderColor;
250
+ if (validation) {
251
+ if (validation === 'success') {
252
+ borderVariable = 'border.successEmphasis';
253
+ } else if (validation === 'warning') {
254
+ borderVariable = 'border.warningEmphasis';
255
+ } else if (validation === 'error') {
256
+ borderVariable = 'border.dangerEmphasis';
247
257
  }
258
+ borderColor = reactTheming.getColor({
259
+ theme,
260
+ variable: borderVariable
261
+ });
262
+ hoverBorderColor = borderColor;
263
+ focusBorderColor = borderColor;
248
264
  } else {
249
- borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
250
- hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
265
+ borderColor = reactTheming.getColor({
266
+ theme,
267
+ variable: 'border.default',
268
+ dark: {
269
+ offset: -100
270
+ },
271
+ light: {
272
+ offset: 100
273
+ }
274
+ });
275
+ borderVariable = 'border.primaryEmphasis';
276
+ hoverBorderColor = reactTheming.getColor({
277
+ theme,
278
+ variable: borderVariable
279
+ });
251
280
  focusBorderColor = hoverBorderColor;
252
281
  }
253
- const disabledBackgroundColor = props.isBare ? undefined : reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
254
- const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
255
- const disabledForegroundColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
282
+ const disabledBackgroundColor = isBare ? undefined : reactTheming.getColor({
283
+ theme,
284
+ variable: 'background.disabled'
285
+ });
286
+ const disabledBorderColor = reactTheming.getColor({
287
+ theme,
288
+ variable: 'border.disabled'
289
+ });
290
+ const disabledForegroundColor = reactTheming.getColor({
291
+ theme,
292
+ variable: 'foreground.disabled'
293
+ });
256
294
  const focusSelector = `
257
295
  &:focus-within:not([aria-disabled='true']),
258
296
  &:focus-visible
259
297
  `;
260
- return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";}", " &[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isLabelHovered ? hoverBorderColor : borderColor, backgroundColor, reactTheming.getColorV8('foreground', 600 , props.theme), hoverBorderColor, reactTheming.focusStyles({
261
- theme: props.theme,
262
- inset: props.focusInset,
298
+ return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";}", " &[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], isLabelHovered ? hoverBorderColor : borderColor, backgroundColor, foregroundColor, hoverBorderColor, reactTheming.focusStyles({
299
+ theme,
300
+ inset: focusInset,
263
301
  color: {
264
- hue: focusBorderColor,
265
- shade: focusShade
302
+ variable: borderVariable
266
303
  },
267
304
  selector: focusSelector,
268
305
  styles: {
269
306
  borderColor: focusBorderColor
270
307
  },
271
- condition: !props.isBare
308
+ condition: !isBare
272
309
  }), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
273
310
  };
274
311
  const sizeStyles$7 = props => {
@@ -293,21 +330,40 @@ const sizeStyles$7 = props => {
293
330
  };
294
331
  const StyledTrigger = styled__default.default.div.attrs({
295
332
  'data-garden-id': COMPONENT_ID$l,
296
- 'data-garden-version': '9.0.0-next.12'
333
+ 'data-garden-version': '9.0.0-next.13'
297
334
  }).withConfig({
298
335
  displayName: "StyledTrigger",
299
336
  componentId: "sc-116nftk-0"
300
- })(["overflow-y:auto;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:", ";border-radius:", ";cursor:", ";box-sizing:border-box;", ";&:focus{outline:none;}", ";&[aria-disabled='true']{cursor:default;}", ";"], props => props.isBare ? 'none' : props.theme.borders.sm, props => props.isBare ? '0' : props.theme.borderRadii.md, props => !props.isAutocomplete && props.isEditable ? 'text' : 'pointer', sizeStyles$7, colorStyles$7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
337
+ })(["overflow-y:auto;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:", ";border-radius:", ";cursor:", ";box-sizing:border-box;", ";&:focus{outline:none;}", ";&[aria-disabled='true']{cursor:default;}", ";"], props => props.isBare ? 'none' : props.theme.borders.sm, props => props.isBare ? '0' : props.theme.borderRadii.md, props => !props.isAutocomplete && props.isEditable ? 'text' : 'pointer', sizeStyles$7, colorStyles$8, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
301
338
  StyledTrigger.defaultProps = {
302
339
  theme: reactTheming.DEFAULT_THEME
303
340
  };
304
341
 
305
342
  const COMPONENT_ID$k = 'dropdowns.combobox.input_icon';
306
- const colorStyles$6 = props => {
307
- const color = reactTheming.getColorV8('neutralHue', 600, props.theme);
308
- const focusColor = reactTheming.getColorV8('neutralHue', 700, props.theme);
309
- const disabledColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
310
- return styled.css(["color:", ";", ":hover &,", ":focus-within &,", ":focus &{color:", ";}", "[aria-disabled='true'] &{color:", ";}"], props.$isLabelHovered ? focusColor : color, StyledTrigger, StyledTrigger, StyledTrigger, focusColor, StyledTrigger, disabledColor);
343
+ const colorStyles$7 = _ref => {
344
+ let {
345
+ theme,
346
+ $isLabelHovered
347
+ } = _ref;
348
+ const options = {
349
+ theme,
350
+ variable: 'foreground.subtle'
351
+ };
352
+ const color = reactTheming.getColor(options);
353
+ const focusColor = reactTheming.getColor({
354
+ ...options,
355
+ dark: {
356
+ offset: -100
357
+ },
358
+ light: {
359
+ offset: 100
360
+ }
361
+ });
362
+ const disabledColor = reactTheming.getColor({
363
+ theme,
364
+ variable: 'foreground.disabled'
365
+ });
366
+ return styled.css(["color:", ";", ":hover &&,", ":focus-within &&,", ":focus &&{color:", ";}", "[aria-disabled='true'] &&{color:", ";}"], $isLabelHovered ? focusColor : color, StyledTrigger, StyledTrigger, StyledTrigger, focusColor, StyledTrigger, disabledColor);
311
367
  };
312
368
  const sizeStyles$6 = props => {
313
369
  const size = props.theme.iconSizes.md;
@@ -323,31 +379,52 @@ const sizeStyles$6 = props => {
323
379
  };
324
380
  const StyledInputIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
325
381
  'data-garden-id': COMPONENT_ID$k,
326
- 'data-garden-version': '9.0.0-next.12'
382
+ 'data-garden-version': '9.0.0-next.13'
327
383
  }).withConfig({
328
384
  displayName: "StyledInputIcon",
329
385
  componentId: "sc-gqbs1s-0"
330
- })(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles$6, colorStyles$6, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
386
+ })(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles$6, colorStyles$7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
331
387
  StyledInputIcon.defaultProps = {
332
388
  theme: reactTheming.DEFAULT_THEME
333
389
  };
334
390
 
335
391
  const COMPONENT_ID$j = 'dropdowns.combobox.option';
336
- const colorStyles$5 = props => {
392
+ const colorStyles$6 = _ref => {
393
+ let {
394
+ theme,
395
+ isActive,
396
+ $type
397
+ } = _ref;
337
398
  let backgroundColor;
338
399
  let boxShadow;
339
- if (props.isActive && props.$type !== 'group' && props.$type !== 'header') {
340
- const hue = props.$type === 'danger' ? 'dangerHue' : 'primaryHue';
341
- backgroundColor = reactTheming.getColorV8(hue, 600, props.theme, 0.08);
342
- boxShadow = `inset ${props.theme.rtl ? `-${props.theme.shadowWidths.md}` : props.theme.shadowWidths.md} 0 ${reactTheming.getColorV8(hue, 600, props.theme)}`;
400
+ if (isActive && $type !== 'group' && $type !== 'header') {
401
+ const variable = 'background.primaryEmphasis';
402
+ backgroundColor = reactTheming.getColor({
403
+ theme,
404
+ variable,
405
+ transparency: theme.opacity[100]
406
+ });
407
+ boxShadow = `inset ${theme.rtl ? `-${theme.shadowWidths.md}` : theme.shadowWidths.md} 0 ${reactTheming.getColor({
408
+ theme,
409
+ variable
410
+ })}`;
343
411
  }
344
- const disabledForegroundColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
345
- let foregroundColor = reactTheming.getColorV8('foreground', 600 , props.theme);
346
- if (props.$type === 'add') {
347
- foregroundColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
348
- } else if (props.$type === 'danger') {
349
- foregroundColor = reactTheming.getColorV8('dangerHue', 600, props.theme);
412
+ let foregroundVariable;
413
+ if ($type === 'add') {
414
+ foregroundVariable = 'foreground.primary';
415
+ } else if ($type === 'danger') {
416
+ foregroundVariable = 'foreground.danger';
417
+ } else {
418
+ foregroundVariable = 'foreground.default';
350
419
  }
420
+ const foregroundColor = reactTheming.getColor({
421
+ theme,
422
+ variable: foregroundVariable
423
+ });
424
+ const disabledForegroundColor = reactTheming.getColor({
425
+ theme,
426
+ variable: 'foreground.disabled'
427
+ });
351
428
  return styled.css(["box-shadow:", ";background-color:", ";color:", ";&[aria-disabled='true']{background-color:transparent;color:", ";}"], boxShadow, backgroundColor, foregroundColor, disabledForegroundColor);
352
429
  };
353
430
  const getMinHeight = props => props.theme.space.base * (props.isCompact ? 7 : 9);
@@ -360,11 +437,11 @@ const sizeStyles$5 = props => {
360
437
  };
361
438
  const StyledOption = styled__default.default.li.attrs({
362
439
  'data-garden-id': COMPONENT_ID$j,
363
- 'data-garden-version': '9.0.0-next.12'
440
+ 'data-garden-version': '9.0.0-next.13'
364
441
  }).withConfig({
365
442
  displayName: "StyledOption",
366
443
  componentId: "sc-jl4wn6-0"
367
- })(["display:flex;position:relative;transition:color 0.25s ease-in-out;cursor:", ";overflow-wrap:anywhere;font-weight:", ";user-select:none;&:focus{outline:none;}", ";", ";&[aria-disabled='true']{cursor:default;}&[aria-hidden='true']{", ";}", ";"], props => props.$type === 'group' || props.$type === 'header' ? 'default' : 'pointer', props => props.$type === 'header' || props.$type === 'previous' ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, sizeStyles$5, colorStyles$5, polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
444
+ })(["display:flex;position:relative;transition:color 0.25s ease-in-out;cursor:", ";overflow-wrap:anywhere;font-weight:", ";user-select:none;&:focus{outline:none;}", ";", ";&[aria-disabled='true']{cursor:default;}&[aria-hidden='true']{", ";}", ";"], props => props.$type === 'group' || props.$type === 'header' ? 'default' : 'pointer', props => props.$type === 'header' || props.$type === 'previous' ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, sizeStyles$5, colorStyles$6, polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
368
445
  StyledOption.defaultProps = {
369
446
  theme: reactTheming.DEFAULT_THEME
370
447
  };
@@ -372,7 +449,7 @@ StyledOption.defaultProps = {
372
449
  const COMPONENT_ID$i = 'dropdowns.combobox.option.content';
373
450
  const StyledOptionContent = styled__default.default.div.attrs({
374
451
  'data-garden-id': COMPONENT_ID$i,
375
- 'data-garden-version': '9.0.0-next.12'
452
+ 'data-garden-version': '9.0.0-next.13'
376
453
  }).withConfig({
377
454
  displayName: "StyledOptionContent",
378
455
  componentId: "sc-121ujpu-0"
@@ -384,7 +461,7 @@ StyledOptionContent.defaultProps = {
384
461
  const COMPONENT_ID$h = 'dropdowns.combobox.optgroup';
385
462
  const StyledOptGroup = styled__default.default.ul.attrs({
386
463
  'data-garden-id': COMPONENT_ID$h,
387
- 'data-garden-version': '9.0.0-next.12'
464
+ 'data-garden-version': '9.0.0-next.13'
388
465
  }).withConfig({
389
466
  displayName: "StyledOptGroup",
390
467
  componentId: "sc-1kavqsx-0"
@@ -394,8 +471,14 @@ StyledOptGroup.defaultProps = {
394
471
  };
395
472
 
396
473
  const COMPONENT_ID$g = 'dropdowns.combobox.separator';
397
- const colorStyles$4 = props => {
398
- const backgroundColor = reactTheming.getColorV8('neutralHue', 200, props.theme);
474
+ const colorStyles$5 = _ref => {
475
+ let {
476
+ theme
477
+ } = _ref;
478
+ const backgroundColor = reactTheming.getColor({
479
+ theme,
480
+ variable: 'border.subtle'
481
+ });
399
482
  return styled.css(["background-color:", ";"], backgroundColor);
400
483
  };
401
484
  const sizeStyles$4 = props => {
@@ -405,11 +488,11 @@ const sizeStyles$4 = props => {
405
488
  };
406
489
  const StyledListboxSeparator = styled__default.default.li.attrs({
407
490
  'data-garden-id': COMPONENT_ID$g,
408
- 'data-garden-version': '9.0.0-next.12'
491
+ 'data-garden-version': '9.0.0-next.13'
409
492
  }).withConfig({
410
493
  displayName: "StyledListboxSeparator",
411
494
  componentId: "sc-1p6toh2-0"
412
- })(["cursor:default;", ";", ";", ";"], sizeStyles$4, colorStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
495
+ })(["cursor:default;", ";", ";", ";"], sizeStyles$4, colorStyles$5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
413
496
  StyledListboxSeparator.defaultProps = {
414
497
  theme: reactTheming.DEFAULT_THEME
415
498
  };
@@ -422,7 +505,7 @@ const sizeStyles$3 = props => {
422
505
  };
423
506
  const StyledListbox = styled__default.default.ul.attrs({
424
507
  'data-garden-id': COMPONENT_ID$f,
425
- 'data-garden-version': '9.0.0-next.12'
508
+ 'data-garden-version': '9.0.0-next.13'
426
509
  }).withConfig({
427
510
  displayName: "StyledListbox",
428
511
  componentId: "sc-1k13ba7-0"
@@ -432,6 +515,28 @@ StyledListbox.defaultProps = {
432
515
  };
433
516
 
434
517
  const COMPONENT_ID$e = 'dropdowns.combobox.option.icon';
518
+ const colorStyles$4 = _ref => {
519
+ let {
520
+ theme,
521
+ $isDisabled,
522
+ $type
523
+ } = _ref;
524
+ let variable;
525
+ if ($isDisabled) {
526
+ variable = 'foreground.disabled';
527
+ } else if ($type === 'danger') {
528
+ variable = 'foreground.danger';
529
+ } else if ($type === 'add') {
530
+ variable = 'foreground.primary';
531
+ } else {
532
+ variable = 'foreground.subtle';
533
+ }
534
+ const color = reactTheming.getColor({
535
+ theme,
536
+ variable
537
+ });
538
+ return styled.css(["color:", ";"], color);
539
+ };
435
540
  const sizeStyles$2 = props => {
436
541
  const size = props.theme.iconSizes.md;
437
542
  const marginTop = polished.math(`(${props.theme.lineHeights.md} - ${size}) / 2`);
@@ -440,18 +545,26 @@ const sizeStyles$2 = props => {
440
545
  };
441
546
  const StyledOptionIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
442
547
  'data-garden-id': COMPONENT_ID$e,
443
- 'data-garden-version': '9.0.0-next.12'
548
+ 'data-garden-version': '9.0.0-next.13'
444
549
  }).withConfig({
445
550
  displayName: "StyledOptionIcon",
446
551
  componentId: "sc-qsab3y-0"
447
- })(["flex-shrink:0;", ";", ";"], sizeStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
552
+ })(["flex-shrink:0;", ";", ";", ";"], sizeStyles$2, colorStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
448
553
  StyledOptionIcon.defaultProps = {
449
554
  theme: reactTheming.DEFAULT_THEME
450
555
  };
451
556
 
452
557
  const COMPONENT_ID$d = 'dropdowns.combobox.option.meta';
453
- const colorStyles$3 = props => {
454
- const color = reactTheming.getColorV8('neutralHue', props.isDisabled ? 400 : 600, props.theme);
558
+ const colorStyles$3 = _ref => {
559
+ let {
560
+ theme,
561
+ isDisabled
562
+ } = _ref;
563
+ const variable = isDisabled ? 'foreground.disabled' : 'foreground.subtle';
564
+ const color = reactTheming.getColor({
565
+ theme,
566
+ variable
567
+ });
455
568
  return styled.css(["color:", ";"], color);
456
569
  };
457
570
  const sizeStyles$1 = props => {
@@ -461,7 +574,7 @@ const sizeStyles$1 = props => {
461
574
  };
462
575
  const StyledOptionMeta = styled__default.default.div.attrs({
463
576
  'data-garden-id': COMPONENT_ID$d,
464
- 'data-garden-version': '9.0.0-next.12'
577
+ 'data-garden-version': '9.0.0-next.13'
465
578
  }).withConfig({
466
579
  displayName: "StyledOptionMeta",
467
580
  componentId: "sc-j6pu10-0"
@@ -471,15 +584,25 @@ StyledOptionMeta.defaultProps = {
471
584
  };
472
585
 
473
586
  const COMPONENT_ID$c = 'dropdowns.combobox.option.type_icon';
474
- const colorStyles$2 = props => {
475
- const opacity = props.$type && props.$type !== 'danger' ? 1 : 0;
587
+ const colorStyles$2 = _ref => {
588
+ let {
589
+ theme,
590
+ $type
591
+ } = _ref;
592
+ const opacity = $type && $type !== 'danger' ? 1 : 0;
476
593
  let color;
477
- if (props.$type === 'add' || props.$type === 'danger') {
594
+ if ($type === 'add') {
478
595
  color = 'inherit';
479
- } else if (props.$type === 'header' || props.$type === 'next' || props.$type === 'previous') {
480
- color = reactTheming.getColorV8('neutralHue', 600, props.theme);
596
+ } else if ($type === 'header' || $type === 'next' || $type === 'previous') {
597
+ color = reactTheming.getColor({
598
+ theme,
599
+ variable: 'foreground.subtle'
600
+ });
481
601
  } else {
482
- color = reactTheming.getColorV8('primaryHue', 600, props.theme);
602
+ color = reactTheming.getColor({
603
+ theme,
604
+ variable: 'foreground.primary'
605
+ });
483
606
  }
484
607
  return styled.css(["opacity:", ";color:", ";", "[aria-selected='true'] > &{opacity:1;}", "[aria-disabled='true'] > &{color:inherit;}"], opacity, color, StyledOption, StyledOption);
485
608
  };
@@ -497,7 +620,7 @@ const sizeStyles = props => {
497
620
  };
498
621
  const StyledOptionTypeIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
499
622
  'data-garden-id': COMPONENT_ID$c,
500
- 'data-garden-version': '9.0.0-next.12'
623
+ 'data-garden-version': '9.0.0-next.13'
501
624
  }).withConfig({
502
625
  displayName: "StyledOptionTypeIcon",
503
626
  componentId: "sc-xpink2-0"
@@ -509,23 +632,33 @@ StyledOptionTypeIcon.defaultProps = {
509
632
  const COMPONENT_ID$b = 'dropdowns.combobox.tag';
510
633
  const StyledTag = styled__default.default(reactTags.Tag).attrs({
511
634
  'data-garden-id': COMPONENT_ID$b,
512
- 'data-garden-version': '9.0.0-next.12'
635
+ 'data-garden-version': '9.0.0-next.13'
513
636
  }).withConfig({
514
637
  displayName: "StyledTag",
515
638
  componentId: "sc-1alam0r-0"
516
- })(["&[aria-disabled='true']{color:", ";}&[hidden]{display:revert;", "}", ";"], props => props.hue ? undefined : reactTheming.getColorV8('neutralHue', 400, props.theme), polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
639
+ })(["&[aria-disabled='true']{color:", ";}&[hidden]{display:revert;", "}", ";"], props => props.hue ? undefined : reactTheming.getColor({
640
+ theme: props.theme,
641
+ variable: 'foreground.disabled'
642
+ }), polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
517
643
  StyledTag.defaultProps = {
518
644
  theme: reactTheming.DEFAULT_THEME
519
645
  };
520
646
 
521
647
  const COMPONENT_ID$a = 'dropdowns.combobox.value';
522
- const colorStyles$1 = props => {
523
- const foregroundColor = props.isPlaceholder && reactTheming.getColorV8('neutralHue', 400, props.theme);
648
+ const colorStyles$1 = _ref => {
649
+ let {
650
+ theme,
651
+ isPlaceholder
652
+ } = _ref;
653
+ const foregroundColor = isPlaceholder && reactTheming.getColor({
654
+ theme,
655
+ variable: 'foreground.disabled'
656
+ });
524
657
  return styled.css(["color:", ";"], foregroundColor);
525
658
  };
526
659
  const StyledValue = styled__default.default.div.attrs({
527
660
  'data-garden-id': COMPONENT_ID$a,
528
- 'data-garden-version': '9.0.0-next.12'
661
+ 'data-garden-version': '9.0.0-next.13'
529
662
  }).withConfig({
530
663
  displayName: "StyledValue",
531
664
  componentId: "sc-t719sx-0"
@@ -540,14 +673,20 @@ StyledValue.defaultProps = {
540
673
  };
541
674
 
542
675
  const COMPONENT_ID$9 = 'dropdowns.combobox.tags_button';
543
- const colorStyles = props => {
544
- const color = reactTheming.getColorV8('primaryHue', 600, props.theme);
676
+ const colorStyles = _ref => {
677
+ let {
678
+ theme
679
+ } = _ref;
680
+ const color = reactTheming.getColor({
681
+ theme,
682
+ variable: 'foreground.primary'
683
+ });
545
684
  return styled.css(["color:", ";&:disabled{color:inherit;}"], color);
546
685
  };
547
686
  const StyledTagsButton = styled__default.default(StyledValue).attrs({
548
687
  as: 'button',
549
688
  'data-garden-id': COMPONENT_ID$9,
550
- 'data-garden-version': '9.0.0-next.12'
689
+ 'data-garden-version': '9.0.0-next.13'
551
690
  }).withConfig({
552
691
  displayName: "StyledTagsButton",
553
692
  componentId: "sc-6q5w33-0"
@@ -559,13 +698,13 @@ StyledTagsButton.defaultProps = {
559
698
  const COMPONENT_ID$8 = 'dropdowns.menu';
560
699
  const StyledMenu = styled__default.default(StyledListbox).attrs({
561
700
  'data-garden-id': COMPONENT_ID$8,
562
- 'data-garden-version': '9.0.0-next.12'
701
+ 'data-garden-version': '9.0.0-next.13'
563
702
  }).withConfig({
564
703
  displayName: "StyledMenu",
565
704
  componentId: "sc-f77ntu-0"
566
705
  })(["position:static !important;", ";", ";"], props => props.arrowPosition && reactTheming.arrowStyles(props.arrowPosition, {
567
706
  size: `${props.theme.space.base * 2}px`,
568
- inset: '2px',
707
+ inset: '1.5px',
569
708
  animationModifier: '[data-garden-animate-arrow="true"]'
570
709
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
571
710
  StyledMenu.defaultProps = {
@@ -575,7 +714,7 @@ StyledMenu.defaultProps = {
575
714
  const COMPONENT_ID$7 = 'dropdowns.menu.floating';
576
715
  const StyledFloatingMenu = styled__default.default(StyledFloatingListbox).attrs({
577
716
  'data-garden-id': COMPONENT_ID$7,
578
- 'data-garden-version': '9.0.0-next.12'
717
+ 'data-garden-version': '9.0.0-next.13'
579
718
  }).withConfig({
580
719
  displayName: "StyledFloatingMenu",
581
720
  componentId: "sc-1rc7ahb-0"
@@ -587,7 +726,7 @@ StyledFloatingMenu.defaultProps = {
587
726
  const COMPONENT_ID$6 = 'dropdowns.menu.item';
588
727
  const StyledItem = styled__default.default(StyledOption).attrs({
589
728
  'data-garden-id': COMPONENT_ID$6,
590
- 'data-garden-version': '9.0.0-next.12'
729
+ 'data-garden-version': '9.0.0-next.13'
591
730
  }).withConfig({
592
731
  displayName: "StyledItem",
593
732
  componentId: "sc-1jp99dq-0"
@@ -599,7 +738,7 @@ StyledItem.defaultProps = {
599
738
  const COMPONENT_ID$5 = 'dropdowns.menu.item.content';
600
739
  const StyledItemContent = styled__default.default(StyledOptionContent).attrs({
601
740
  'data-garden-id': COMPONENT_ID$5,
602
- 'data-garden-version': '9.0.0-next.12'
741
+ 'data-garden-version': '9.0.0-next.13'
603
742
  }).withConfig({
604
743
  displayName: "StyledItemContent",
605
744
  componentId: "sc-1opglsb-0"
@@ -611,7 +750,7 @@ StyledItemContent.defaultProps = {
611
750
  const COMPONENT_ID$4 = 'dropdowns.menu.item_group';
612
751
  const StyledItemGroup = styled__default.default(StyledOptGroup).attrs({
613
752
  'data-garden-id': COMPONENT_ID$4,
614
- 'data-garden-version': '9.0.0-next.12'
753
+ 'data-garden-version': '9.0.0-next.13'
615
754
  }).withConfig({
616
755
  displayName: "StyledItemGroup",
617
756
  componentId: "sc-1umk3cg-0"
@@ -623,7 +762,7 @@ StyledItemGroup.defaultProps = {
623
762
  const COMPONENT_ID$3 = 'dropdowns.menu.item.icon';
624
763
  const StyledItemIcon = styled__default.default(StyledOptionIcon).attrs({
625
764
  'data-garden-id': COMPONENT_ID$3,
626
- 'data-garden-version': '9.0.0-next.12'
765
+ 'data-garden-version': '9.0.0-next.13'
627
766
  }).withConfig({
628
767
  displayName: "StyledItemIcon",
629
768
  componentId: "sc-w9orqb-0"
@@ -635,7 +774,7 @@ StyledItemIcon.defaultProps = {
635
774
  const COMPONENT_ID$2 = 'dropdowns.menu.item.meta';
636
775
  const StyledItemMeta = styled__default.default(StyledOptionMeta).attrs({
637
776
  'data-garden-id': COMPONENT_ID$2,
638
- 'data-garden-version': '9.0.0-next.12'
777
+ 'data-garden-version': '9.0.0-next.13'
639
778
  }).withConfig({
640
779
  displayName: "StyledItemMeta",
641
780
  componentId: "sc-1unw3x1-0"
@@ -647,7 +786,7 @@ StyledItemMeta.defaultProps = {
647
786
  const COMPONENT_ID$1 = 'dropdowns.menu.item.type_icon';
648
787
  const StyledItemTypeIcon = styled__default.default(StyledOptionTypeIcon).attrs({
649
788
  'data-garden-id': COMPONENT_ID$1,
650
- 'data-garden-version': '9.0.0-next.12'
789
+ 'data-garden-version': '9.0.0-next.13'
651
790
  }).withConfig({
652
791
  displayName: "StyledItemTypeIcon",
653
792
  componentId: "sc-1pll3nu-0"
@@ -659,7 +798,7 @@ StyledItemTypeIcon.defaultProps = {
659
798
  const COMPONENT_ID = 'dropdowns.menu.separator';
660
799
  const StyledSeparator = styled__default.default(StyledListboxSeparator).attrs({
661
800
  'data-garden-id': COMPONENT_ID,
662
- 'data-garden-version': '9.0.0-next.12'
801
+ 'data-garden-version': '9.0.0-next.13'
663
802
  }).withConfig({
664
803
  displayName: "StyledSeparator",
665
804
  componentId: "sc-8kqwen-0"
@@ -1250,7 +1389,7 @@ Field.Label = Label;
1250
1389
  Field.Message = Message;
1251
1390
 
1252
1391
  var _path$3;
1253
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
1392
+ function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
1254
1393
  var SvgPlusStroke = function SvgPlusStroke(props) {
1255
1394
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
1256
1395
  xmlns: "http://www.w3.org/2000/svg",
@@ -1267,7 +1406,7 @@ var SvgPlusStroke = function SvgPlusStroke(props) {
1267
1406
  };
1268
1407
 
1269
1408
  var _path$2;
1270
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
1409
+ function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
1271
1410
  var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
1272
1411
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
1273
1412
  xmlns: "http://www.w3.org/2000/svg",
@@ -1283,7 +1422,7 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
1283
1422
  };
1284
1423
 
1285
1424
  var _path$1;
1286
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
1425
+ function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
1287
1426
  var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
1288
1427
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
1289
1428
  xmlns: "http://www.w3.org/2000/svg",
@@ -1299,7 +1438,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
1299
1438
  };
1300
1439
 
1301
1440
  var _path;
1302
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1441
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
1303
1442
  var SvgCheckLgStroke = function SvgCheckLgStroke(props) {
1304
1443
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
1305
1444
  xmlns: "http://www.w3.org/2000/svg",
@@ -1355,8 +1494,9 @@ const OptionComponent = React.forwardRef((_ref, ref) => {
1355
1494
  ...props
1356
1495
  } = _ref;
1357
1496
  const contextValue = React.useMemo(() => ({
1358
- isDisabled
1359
- }), [isDisabled]);
1497
+ isDisabled,
1498
+ type
1499
+ }), [isDisabled, type]);
1360
1500
  const {
1361
1501
  activeValue,
1362
1502
  getOptionProps,
@@ -1407,7 +1547,10 @@ const OptionComponent = React.forwardRef((_ref, ref) => {
1407
1547
  }, props, optionProps), React__namespace.default.createElement(StyledOptionTypeIcon, {
1408
1548
  $isCompact: isCompact,
1409
1549
  $type: type
1410
- }, renderActionIcon(type)), icon && React__namespace.default.createElement(StyledOptionIcon, null, icon), React__namespace.default.createElement(StyledOptionContent, null, children || label || value)));
1550
+ }, renderActionIcon(type)), icon && React__namespace.default.createElement(StyledOptionIcon, {
1551
+ $isDisabled: isDisabled,
1552
+ $type: type
1553
+ }, icon), React__namespace.default.createElement(StyledOptionContent, null, children || label || value)));
1411
1554
  });
1412
1555
  OptionComponent.displayName = 'Option';
1413
1556
  OptionComponent.propTypes = {
@@ -1853,7 +1996,8 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
1853
1996
  } = useItemGroupContext();
1854
1997
  const {
1855
1998
  focusedValue,
1856
- getItemProps
1999
+ getItemProps,
2000
+ isCompact
1857
2001
  } = useMenuContext();
1858
2002
  const item = {
1859
2003
  ...toItem({
@@ -1876,9 +2020,6 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
1876
2020
  onMouseEnter
1877
2021
  });
1878
2022
  const isActive = value === focusedValue;
1879
- const {
1880
- isCompact
1881
- } = useMenuContext();
1882
2023
  const renderActionIcon = iconType => {
1883
2024
  switch (iconType) {
1884
2025
  case 'add':
@@ -1892,8 +2033,9 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
1892
2033
  }
1893
2034
  };
1894
2035
  const contextValue = React.useMemo(() => ({
1895
- isDisabled
1896
- }), [isDisabled]);
2036
+ isDisabled,
2037
+ type
2038
+ }), [isDisabled, type]);
1897
2039
  return React__namespace.default.createElement(ItemContext.Provider, {
1898
2040
  value: contextValue
1899
2041
  }, React__namespace.default.createElement(StyledItem, Object.assign({
@@ -1905,7 +2047,10 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
1905
2047
  }), React__namespace.default.createElement(StyledItemTypeIcon, {
1906
2048
  $isCompact: isCompact,
1907
2049
  $type: type
1908
- }, renderActionIcon(type)), icon && React__namespace.default.createElement(StyledItemIcon, null, icon), React__namespace.default.createElement(StyledItemContent, null, children || label)));
2050
+ }, renderActionIcon(type)), icon && React__namespace.default.createElement(StyledItemIcon, {
2051
+ $isDisabled: isDisabled,
2052
+ $type: type
2053
+ }, icon), React__namespace.default.createElement(StyledItemContent, null, children || label)));
1909
2054
  });
1910
2055
  ItemComponent.displayName = 'Item';
1911
2056
  ItemComponent.propTypes = {