@equinor/eds-core-react 0.32.3 → 0.33.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 (71) hide show
  1. package/dist/eds-core-react.cjs +443 -372
  2. package/dist/esm/components/Accordion/AccordionHeader.js +13 -24
  3. package/dist/esm/components/Accordion/AccordionHeaderActions.js +3 -3
  4. package/dist/esm/components/Accordion/AccordionHeaderTitle.js +5 -5
  5. package/dist/esm/components/Accordion/AccordionPanel.js +3 -3
  6. package/dist/esm/components/Autocomplete/Autocomplete.js +35 -21
  7. package/dist/esm/components/Autocomplete/Option.js +14 -12
  8. package/dist/esm/components/Avatar/Avatar.js +6 -7
  9. package/dist/esm/components/Banner/Banner.js +3 -3
  10. package/dist/esm/components/Banner/BannerActions.js +3 -3
  11. package/dist/esm/components/Banner/BannerIcon.js +3 -3
  12. package/dist/esm/components/Breadcrumbs/Breadcrumb.js +1 -1
  13. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +4 -4
  14. package/dist/esm/components/Button/ButtonGroup/ButtonGroup.js +3 -3
  15. package/dist/esm/components/Card/Card.js +3 -3
  16. package/dist/esm/components/Card/CardActions.js +4 -4
  17. package/dist/esm/components/Card/CardMedia.js +3 -3
  18. package/dist/esm/components/Checkbox/Checkbox.js +3 -3
  19. package/dist/esm/components/Checkbox/Input.js +9 -9
  20. package/dist/esm/components/Chip/Chip.js +23 -23
  21. package/dist/esm/components/Chip/Icon.js +5 -5
  22. package/dist/esm/components/Dialog/Dialog.js +8 -10
  23. package/dist/esm/components/Dialog/DialogContent.js +3 -3
  24. package/dist/esm/components/Divider/Divider.js +9 -9
  25. package/dist/esm/components/Icon/Icon.js +21 -22
  26. package/dist/esm/components/Input/Input.js +20 -20
  27. package/dist/esm/components/InputWrapper/InputWrapper.js +2 -0
  28. package/dist/esm/components/Label/Label.js +3 -3
  29. package/dist/esm/components/Pagination/Pagination.js +4 -4
  30. package/dist/esm/components/Pagination/PaginationItem.js +4 -4
  31. package/dist/esm/components/Paper/Paper.js +2 -1
  32. package/dist/esm/components/Progress/Circular/CircularProgress.js +3 -3
  33. package/dist/esm/components/Progress/Star/StarProgress.js +5 -5
  34. package/dist/esm/components/Radio/Radio.js +12 -12
  35. package/dist/esm/components/Search/Search.js +4 -2
  36. package/dist/esm/components/SideBar/SideBarToggle.js +1 -0
  37. package/dist/esm/components/Slider/Slider.js +9 -9
  38. package/dist/esm/components/Snackbar/Snackbar.js +7 -7
  39. package/dist/esm/components/Switch/Switch.js +6 -6
  40. package/dist/esm/components/Switch/Switch.styles.js +1 -1
  41. package/dist/esm/components/Switch/SwitchDefault.js +6 -6
  42. package/dist/esm/components/Switch/SwitchSmall.js +3 -3
  43. package/dist/esm/components/Table/Caption.js +12 -8
  44. package/dist/esm/components/Table/HeaderCell/HeaderCell.js +9 -5
  45. package/dist/esm/components/Table/Row/Row.js +9 -13
  46. package/dist/esm/components/TableOfContents/TableOfContents.js +3 -4
  47. package/dist/esm/components/Tabs/Tab.js +7 -4
  48. package/dist/esm/components/Tabs/TabList.js +20 -19
  49. package/dist/esm/components/Tabs/TabPanels.js +7 -5
  50. package/dist/esm/components/TextField/TextField.js +2 -2
  51. package/dist/esm/components/Textarea/Textarea.js +1 -5
  52. package/dist/esm/components/TopBar/TopBar.js +3 -3
  53. package/dist/esm/components/Typography/Typography.js +11 -6
  54. package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/mergeWith.js +36 -0
  55. package/dist/esm/node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/pickBy.js +36 -0
  56. package/dist/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  57. package/dist/types/components/Autocomplete/Option.d.ts +4 -12
  58. package/dist/types/components/Chip/Icon.d.ts +8 -3
  59. package/dist/types/components/Icon/Icon.d.ts +1 -1
  60. package/dist/types/components/Icon/Icon.types.d.ts +1 -1
  61. package/dist/types/components/Pagination/PaginationItem.d.ts +1 -1
  62. package/dist/types/components/Paper/Paper.d.ts +2 -2
  63. package/dist/types/components/Progress/Circular/CircularProgress.d.ts +1 -1
  64. package/dist/types/components/Progress/Dots/DotProgress.d.ts +1 -1
  65. package/dist/types/components/Progress/Star/StarProgress.d.ts +1 -1
  66. package/dist/types/components/Switch/Switch.styles.d.ts +812 -5
  67. package/dist/types/components/Tabs/Tab.d.ts +4 -1
  68. package/dist/types/components/Tabs/TabPanels.d.ts +6 -2
  69. package/dist/types/components/Tabs/Tabs.context.d.ts +1 -1
  70. package/dist/types/components/Tabs/Tabs.d.ts +4 -4
  71. package/package.json +20 -20
@@ -18,30 +18,19 @@ var StyledAccordionHeader = styled.div.withConfig({
18
18
  })(function (_ref) {
19
19
  var theme = _ref.theme,
20
20
  disabled = _ref.disabled,
21
- parentIndex = _ref.parentIndex;
21
+ $parentIndex = _ref.$parentIndex;
22
22
  var header = theme.entities.header,
23
23
  border = theme.border;
24
- return css(["margin:0;padding:0;height:", ";box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between;background-color:", ";", " border-top:", ";", ""], header.height, header.background, bordersTemplate(border), parentIndex === 0 ? null : 'none', disabled ? css({
25
- color: header.states.disabled.typography.color,
26
- cursor: 'not-allowed'
27
- }) : css({
28
- color: header.typography.color,
29
- cursor: 'pointer',
30
- '@media (hover: hover) and (pointer: fine)': {
31
- ':hover': {
32
- background: header.states.hover.background
33
- }
34
- }
35
- }));
24
+ return css(["margin:0;padding:0;height:", ";box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between;background-color:", ";", " border-top:", ";", ""], header.height, header.background, bordersTemplate(border), $parentIndex === 0 ? null : 'none', disabled ? css(["color:", ";cursor:not-allowed;"], header.states.disabled.typography.color) : css(["color:", ";cursor:pointer;@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}"], header.typography.color, header.states.hover.background));
36
25
  });
37
26
  var StyledAccordionHeaderButton = styled.button.attrs(function (_ref2) {
38
- var panelId = _ref2.panelId,
39
- isExpanded = _ref2.isExpanded,
27
+ var $panelId = _ref2.$panelId,
28
+ $isExpanded = _ref2.$isExpanded,
40
29
  disabled = _ref2.disabled;
41
30
  return {
42
- 'aria-expanded': isExpanded,
43
- 'aria-controls': panelId,
44
- 'aria-disabled': isExpanded && disabled,
31
+ 'aria-expanded': $isExpanded,
32
+ 'aria-controls': $panelId,
33
+ 'aria-disabled': $isExpanded && disabled,
45
34
  tabIndex: disabled ? -1 : 0,
46
35
  disabled: disabled
47
36
  };
@@ -66,8 +55,8 @@ var StyledIcon = styled(Icon).withConfig({
66
55
  displayName: "AccordionHeader__StyledIcon",
67
56
  componentId: "sc-cu2e95-2"
68
57
  })(function (_ref4) {
69
- var chevronPosition = _ref4.chevronPosition;
70
- return css(["flex-shrink:0;", ""], chevronPosition === 'left' ? css({
58
+ var $chevronPosition = _ref4.$chevronPosition;
59
+ return css(["flex-shrink:0;", ""], $chevronPosition === 'left' ? css({
71
60
  marginRight: '32px'
72
61
  }) : css({
73
62
  marginLeft: '16px'
@@ -111,7 +100,7 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, re
111
100
  var chevron = /*#__PURE__*/jsx(StyledIcon, {
112
101
  data: isExpanded ? chevron_up : chevron_down,
113
102
  size: 24,
114
- chevronPosition: chevronPosition,
103
+ $chevronPosition: chevronPosition,
115
104
  color: disabled ? chevronToken.states.disabled.background : chevronToken.background
116
105
  }, "".concat(id, "-icon"));
117
106
  var headerChildren = Children.map(children, function (child) {
@@ -144,14 +133,14 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, re
144
133
  var newChildren = [chevron, headerChildren];
145
134
  return /*#__PURE__*/jsxs(StyledAccordionHeader, {
146
135
  disabled: disabled,
147
- parentIndex: parentIndex,
136
+ $parentIndex: parentIndex,
148
137
  as: headerLevel,
149
138
  className: className,
150
139
  style: style,
151
140
  children: [/*#__PURE__*/jsx(StyledAccordionHeaderButton, _objectSpread(_objectSpread({
152
- isExpanded: isExpanded,
141
+ $isExpanded: isExpanded,
153
142
  disabled: disabled,
154
- panelId: panelId,
143
+ $panelId: panelId,
155
144
  onClick: handleClick,
156
145
  onKeyDown: handleKeyDown,
157
146
  ref: ref,
@@ -11,7 +11,7 @@ var StyledAccordionHeaderActions = styled.span.withConfig({
11
11
  })(function (_ref) {
12
12
  var _header$states$active;
13
13
  var theme = _ref.theme,
14
- isExpanded = _ref.isExpanded,
14
+ $isExpanded = _ref.$isExpanded,
15
15
  disabled = _ref.disabled;
16
16
  var header = theme.entities.header;
17
17
  return css(["display:flex;align-items:center;justify-content:flex-end;padding-right:", ";", " color:", ";"], header.spacings.right, disabled ? css({
@@ -20,7 +20,7 @@ var StyledAccordionHeaderActions = styled.span.withConfig({
20
20
  }) : css({
21
21
  color: header.typography.color,
22
22
  cursor: 'pointer'
23
- }), isExpanded && !disabled ? (_header$states$active = header.states.active.typography) === null || _header$states$active === void 0 ? void 0 : _header$states$active.color : 'inherit');
23
+ }), $isExpanded && !disabled ? (_header$states$active = header.states.active.typography) === null || _header$states$active === void 0 ? void 0 : _header$states$active.color : 'inherit');
24
24
  });
25
25
  var AccordionHeaderActions = /*#__PURE__*/forwardRef(function AccordionHeaderActions(_ref2, ref) {
26
26
  var isExpanded = _ref2.isExpanded,
@@ -29,7 +29,7 @@ var AccordionHeaderActions = /*#__PURE__*/forwardRef(function AccordionHeaderAct
29
29
  rest = _objectWithoutProperties(_ref2, _excluded);
30
30
  return /*#__PURE__*/jsx(StyledAccordionHeaderActions, _objectSpread(_objectSpread({
31
31
  ref: ref,
32
- isExpanded: isExpanded,
32
+ $isExpanded: isExpanded,
33
33
  disabled: disabled
34
34
  }, rest), {}, {
35
35
  children: children
@@ -11,10 +11,10 @@ var StyledAccordionHeaderTitle = styled.span.withConfig({
11
11
  })(function (_ref) {
12
12
  var _header$states$active;
13
13
  var theme = _ref.theme,
14
- isExpanded = _ref.isExpanded,
15
- disabled = _ref.disabled;
14
+ $isExpanded = _ref.$isExpanded,
15
+ $disabled = _ref.$disabled;
16
16
  var header = theme.entities.header;
17
- return css(["display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;flex-grow:1;overflow:hidden;text-align:left;color:", ";"], isExpanded && !disabled ? (_header$states$active = header.states.active.typography) === null || _header$states$active === void 0 ? void 0 : _header$states$active.color : 'inherit');
17
+ return css(["display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;flex-grow:1;overflow:hidden;text-align:left;color:", ";"], $isExpanded && !$disabled ? (_header$states$active = header.states.active.typography) === null || _header$states$active === void 0 ? void 0 : _header$states$active.color : 'inherit');
18
18
  });
19
19
  var AccordionHeaderTitle = /*#__PURE__*/forwardRef(function AccordionHeaderTitle(_ref2, ref) {
20
20
  var isExpanded = _ref2.isExpanded,
@@ -23,8 +23,8 @@ var AccordionHeaderTitle = /*#__PURE__*/forwardRef(function AccordionHeaderTitle
23
23
  rest = _objectWithoutProperties(_ref2, _excluded);
24
24
  return /*#__PURE__*/jsx(StyledAccordionHeaderTitle, _objectSpread(_objectSpread({
25
25
  ref: ref,
26
- isExpanded: isExpanded,
27
- disabled: disabled
26
+ $isExpanded: isExpanded,
27
+ $disabled: disabled
28
28
  }, rest), {}, {
29
29
  children: children
30
30
  }));
@@ -7,10 +7,10 @@ import { jsx } from 'react/jsx-runtime';
7
7
 
8
8
  var _excluded = ["id", "headerId", "hidden", "children"];
9
9
  var StyledAccordionPanel = styled.div.attrs(function (_ref) {
10
- var headerId = _ref.headerId;
10
+ var $headerId = _ref.$headerId;
11
11
  return {
12
12
  role: 'region',
13
- 'aria-labelledby': headerId
13
+ 'aria-labelledby': $headerId
14
14
  };
15
15
  }).withConfig({
16
16
  displayName: "AccordionPanel__StyledAccordionPanel",
@@ -30,7 +30,7 @@ var AccordionPanel = /*#__PURE__*/forwardRef(function AccordionPanel(_ref3, ref)
30
30
  children = _ref3.children,
31
31
  props = _objectWithoutProperties(_ref3, _excluded);
32
32
  return /*#__PURE__*/jsx(StyledAccordionPanel, _objectSpread(_objectSpread({
33
- headerId: headerId,
33
+ $headerId: headerId,
34
34
  id: id,
35
35
  hidden: hidden
36
36
  }, props), {}, {
@@ -16,6 +16,8 @@ import { bordersTemplate, useToken, useIsomorphicLayoutEffect, useIsInDialog } f
16
16
  import { AutocompleteOption } from './Option.js';
17
17
  import { useFloating, offset, flip, shift, size, useInteractions, autoUpdate, FloatingPortal } from '@floating-ui/react';
18
18
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
+ import pickBy from '../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/pickBy.js';
20
+ import mergeWith from '../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/mergeWith.js';
19
21
  import { useEds } from '../EdsProvider/eds.context.js';
20
22
  import { Label } from '../Label/Label.js';
21
23
  import { Input } from '../Input/Input.js';
@@ -56,6 +58,19 @@ var findIndex = function findIndex(_ref3) {
56
58
  }
57
59
  return index;
58
60
  };
61
+ var isEvent = function isEvent(val, key) {
62
+ return /^on[A-Z](.*)/.test(key) && typeof val === 'function';
63
+ };
64
+ function mergeEventsFromRight(props1, props2) {
65
+ var events1 = pickBy(isEvent, props1);
66
+ var events2 = pickBy(isEvent, props2);
67
+ return mergeWith(function (event1, event2) {
68
+ return function () {
69
+ event1.apply(void 0, arguments);
70
+ event2.apply(void 0, arguments);
71
+ };
72
+ }, events1, events2);
73
+ }
59
74
  var findNextIndex = function findNextIndex(_ref4) {
60
75
  var index = _ref4.index,
61
76
  optionDisabled = _ref4.optionDisabled,
@@ -211,6 +226,7 @@ function AutocompleteInner(props, ref) {
211
226
  return item;
212
227
  }
213
228
  try {
229
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
214
230
  return item === null || item === void 0 ? void 0 : item.toString();
215
231
  } catch (error) {
216
232
  throw new Error('Unable to find label, make sure your are using options as documented');
@@ -236,6 +252,9 @@ function AutocompleteInner(props, ref) {
236
252
  var comboBoxProps = {
237
253
  items: availableItems,
238
254
  initialSelectedItem: initialSelectedOptions[0],
255
+ isItemDisabled: function isItemDisabled(item) {
256
+ return optionDisabled(item);
257
+ },
239
258
  itemToString: getLabel,
240
259
  onInputValueChange: function onInputValueChange(_ref6) {
241
260
  var inputValue = _ref6.inputValue;
@@ -284,6 +303,10 @@ function AutocompleteInner(props, ref) {
284
303
  var changes = actionAndChanges.changes,
285
304
  type = actionAndChanges.type;
286
305
  switch (type) {
306
+ case useCombobox.stateChangeTypes.InputClick:
307
+ return _objectSpread(_objectSpread({}, changes), {}, {
308
+ isOpen: !(disabled || readOnly)
309
+ });
287
310
  case useCombobox.stateChangeTypes.InputKeyDownArrowDown:
288
311
  case useCombobox.stateChangeTypes.InputKeyDownHome:
289
312
  return _objectSpread(_objectSpread({}, changes), {}, {
@@ -381,7 +404,6 @@ function AutocompleteInner(props, ref) {
381
404
  getInputProps = _useCombobox.getInputProps,
382
405
  highlightedIndex = _useCombobox.highlightedIndex,
383
406
  getItemProps = _useCombobox.getItemProps,
384
- openMenu = _useCombobox.openMenu,
385
407
  inputValue = _useCombobox.inputValue,
386
408
  resetCombobox = _useCombobox.reset;
387
409
  useEffect(function () {
@@ -389,11 +411,6 @@ function AutocompleteInner(props, ref) {
389
411
  setSelectedItems(selectedOptions);
390
412
  }
391
413
  }, [isControlled, selectedOptions, setSelectedItems]);
392
- var openSelect = function openSelect() {
393
- if (!isOpen && !(disabled || readOnly)) {
394
- openMenu();
395
- }
396
- };
397
414
  var _useFloating = useFloating({
398
415
  placement: 'bottom-start',
399
416
  middleware: [offset(4), flip(), shift({
@@ -481,7 +498,6 @@ function AutocompleteInner(props, ref) {
481
498
  }), {}, {
482
499
  item: item,
483
500
  index: index,
484
- disabled: disabled,
485
501
  style: _objectSpread({
486
502
  transform: "translateY(".concat(virtualItem.start, "px)")
487
503
  }, !multiline && {
@@ -491,6 +507,15 @@ function AutocompleteInner(props, ref) {
491
507
  })]
492
508
  }))
493
509
  }));
510
+ var inputProps = getInputProps(getDropdownProps({
511
+ preventKeyAction: multiple ? isOpen : undefined,
512
+ disabled: disabled,
513
+ onChange: function onChange(e) {
514
+ var _e$currentTarget;
515
+ return setTypedInputValue(e === null || e === void 0 ? void 0 : (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 ? void 0 : _e$currentTarget.value);
516
+ }
517
+ }));
518
+ var consolidatedEvents = mergeEventsFromRight(other, inputProps);
494
519
  return /*#__PURE__*/jsx(ThemeProvider, {
495
520
  theme: token,
496
521
  children: /*#__PURE__*/jsxs(Container, {
@@ -502,21 +527,10 @@ function AutocompleteInner(props, ref) {
502
527
  meta: meta,
503
528
  disabled: disabled
504
529
  })), /*#__PURE__*/jsx(Container, {
505
- children: /*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({}, getInputProps(
506
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
507
- getDropdownProps({
508
- preventKeyAction: multiple ? isOpen : undefined,
509
- disabled: disabled,
510
- ref: refs.setReference,
511
- onChange: function onChange(e) {
512
- var _e$currentTarget;
513
- return setTypedInputValue(e === null || e === void 0 ? void 0 : (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 ? void 0 : _e$currentTarget.value);
514
- }
515
- }))), {}, {
530
+ ref: refs.setReference,
531
+ children: /*#__PURE__*/jsx(Input, _objectSpread(_objectSpread(_objectSpread({}, inputProps), {}, {
516
532
  placeholder: placeholderText,
517
533
  readOnly: readOnly,
518
- onFocus: openSelect,
519
- onClick: openSelect,
520
534
  rightAdornmentsWidth: hideClearButton ? 24 + 8 : 24 * 2 + 8,
521
535
  rightAdornments: /*#__PURE__*/jsxs(Fragment, {
522
536
  children: [loading && /*#__PURE__*/jsx(Progress.Circular, {
@@ -543,7 +557,7 @@ function AutocompleteInner(props, ref) {
543
557
  })
544
558
  }))]
545
559
  })
546
- }, other))
560
+ }, other), consolidatedEvents))
547
561
  }), disablePortal || inDialog ? optionsList : /*#__PURE__*/jsx(FloatingPortal, {
548
562
  id: "eds-autocomplete-container",
549
563
  children: optionsList
@@ -6,25 +6,25 @@ import { typographyTemplate, spacingsTemplate } from '@equinor/eds-utils';
6
6
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
7
  import { Checkbox } from '../Checkbox/Checkbox.js';
8
8
 
9
- var _excluded = ["value", "optionComponent", "multiple", "isSelected", "isDisabled", "multiline", "onClick", "aria-selected"];
9
+ var _excluded = ["value", "optionComponent", "multiple", "isSelected", "isDisabled", "multiline", "highlighted", "onClick", "aria-selected"];
10
10
  var StyledListItem = styled.li.withConfig({
11
11
  displayName: "Option__StyledListItem",
12
12
  componentId: "sc-1ly11zu-0"
13
13
  })(function (_ref) {
14
14
  var theme = _ref.theme,
15
- highlighted = _ref.highlighted,
16
- active = _ref.active,
17
- isdisabled = _ref.isdisabled;
18
- var backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
19
- return css(["display:flex;grid-area:1 / -1;align-items:center;align-self:start;margin:0;list-style:none;background-color:", ";user-select:none;overflow:hidden;cursor:", ";", " ", " ", ""], backgroundColor, highlighted === 'true' ? 'pointer' : 'default', typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), isdisabled === 'true' ? css(["color:", ";"], theme.states.disabled.typography.color) : '');
15
+ $highlighted = _ref.$highlighted,
16
+ $active = _ref.$active,
17
+ $isdisabled = _ref.$isdisabled;
18
+ var backgroundColor = $highlighted === 'true' ? theme.states.hover.background : $active === 'true' ? theme.states.active.background : theme.background;
19
+ return css(["display:flex;grid-area:1 / -1;align-items:center;align-self:start;margin:0;list-style:none;background-color:", ";user-select:none;overflow:hidden;touch-action:manipulation;cursor:", ";", " ", " ", ""], backgroundColor, $highlighted === 'true' ? 'pointer' : 'default', typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), $isdisabled === 'true' ? css(["color:", ";"], theme.states.disabled.typography.color) : '');
20
20
  });
21
21
  var Label = styled.span.withConfig({
22
22
  displayName: "Option__Label",
23
23
  componentId: "sc-1ly11zu-1"
24
24
  })(function (_ref2) {
25
25
  var theme = _ref2.theme,
26
- multiline = _ref2.multiline;
27
- return css(["", " text-overflow:ellipsis;white-space:", ";overflow:", ";overflow-wrap:anywhere;"], spacingsTemplate(theme.entities.label.spacings), multiline ? 'normal' : 'nowrap', multiline ? 'initial' : 'hidden');
26
+ $multiline = _ref2.$multiline;
27
+ return css(["", " text-overflow:ellipsis;white-space:", ";overflow:", ";overflow-wrap:anywhere;"], spacingsTemplate(theme.entities.label.spacings), $multiline ? 'normal' : 'nowrap', $multiline ? 'initial' : 'hidden');
28
28
  });
29
29
  function AutocompleteOptionInner(props, ref) {
30
30
  var value = props.value,
@@ -33,16 +33,18 @@ function AutocompleteOptionInner(props, ref) {
33
33
  isSelected = props.isSelected,
34
34
  isDisabled = props.isDisabled,
35
35
  multiline = props.multiline,
36
+ highlighted = props.highlighted,
36
37
  _onClick = props.onClick,
37
38
  ariaSelected = props['aria-selected'],
38
39
  other = _objectWithoutProperties(props, _excluded);
39
40
  return /*#__PURE__*/jsxs(StyledListItem, _objectSpread(_objectSpread({
40
41
  ref: ref,
41
- isdisabled: isDisabled ? 'true' : 'false',
42
+ $isdisabled: isDisabled ? 'true' : 'false',
43
+ $highlighted: highlighted,
42
44
  "aria-hidden": isDisabled,
43
- active: !multiple && isSelected ? 'true' : 'false',
45
+ $active: !multiple && isSelected ? 'true' : 'false',
44
46
  onClick: function onClick(e) {
45
- return !isDisabled && _onClick(e);
47
+ !isDisabled && _onClick(e);
46
48
  },
47
49
  "aria-selected": multiple ? isSelected : ariaSelected
48
50
  }, other), {}, {
@@ -56,7 +58,7 @@ function AutocompleteOptionInner(props, ref) {
56
58
  }), optionComponent ? /*#__PURE__*/jsx(Fragment, {
57
59
  children: optionComponent
58
60
  }) : /*#__PURE__*/jsx(Label, {
59
- multiline: multiline,
61
+ $multiline: multiline,
60
62
  children: value
61
63
  })]
62
64
  }));
@@ -11,15 +11,15 @@ var StyledAvatar = styled.div.withConfig({
11
11
  displayName: "Avatar__StyledAvatar",
12
12
  componentId: "sc-r7n7on-0"
13
13
  })(["position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;", ";", ""], bordersTemplate(avatar.border), function (_ref) {
14
- var size = _ref.size;
15
- return css(["height:", "px;width:", "px;"], size, size);
14
+ var $size = _ref.$size;
15
+ return css(["height:", "px;width:", "px;"], $size, $size);
16
16
  });
17
17
  var StyledImage = styled.img.withConfig({
18
18
  displayName: "Avatar__StyledImage",
19
19
  componentId: "sc-r7n7on-1"
20
20
  })(["height:100%;text-align:center;color:transparent;", ";"], function (_ref2) {
21
- var disabled = _ref2.disabled;
22
- return disabled && css(["opacity:", ";"], avatar.states.disabled.opacity);
21
+ var $disabled = _ref2.$disabled;
22
+ return $disabled && css(["opacity:", ";"], avatar.states.disabled.opacity);
23
23
  });
24
24
  var Avatar = /*#__PURE__*/forwardRef(function Avatar(_ref3, ref) {
25
25
  var _ref3$src = _ref3.src,
@@ -31,14 +31,13 @@ var Avatar = /*#__PURE__*/forwardRef(function Avatar(_ref3, ref) {
31
31
  disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
32
32
  rest = _objectWithoutProperties(_ref3, _excluded);
33
33
  return /*#__PURE__*/jsx(StyledAvatar, _objectSpread(_objectSpread({
34
- size: size,
35
- disabled: disabled,
34
+ $size: size,
36
35
  ref: ref
37
36
  }, rest), {}, {
38
37
  children: /*#__PURE__*/jsx(StyledImage, {
39
38
  src: src,
40
39
  alt: alt,
41
- disabled: disabled
40
+ $disabled: disabled
42
41
  })
43
42
  }));
44
43
  });
@@ -16,8 +16,8 @@ var Content = styled.div.withConfig({
16
16
  componentId: "sc-1ju451i-0"
17
17
  })(function (_ref) {
18
18
  var theme = _ref.theme,
19
- hasIcon = _ref.hasIcon;
20
- return css(["", " display:grid;grid-template-columns:", ";align-items:center;background-color:", ";"], spacingsTemplate(theme.spacings), hasIcon ? 'min-content 1fr auto' : '1fr auto', theme.background);
19
+ $hasIcon = _ref.$hasIcon;
20
+ return css(["", " display:grid;grid-template-columns:", ";align-items:center;background-color:", ";"], spacingsTemplate(theme.spacings), $hasIcon ? 'min-content 1fr auto' : '1fr auto', theme.background);
21
21
  });
22
22
  var NonMarginDivider = styled(Divider).withConfig({
23
23
  displayName: "Banner__NonMarginDivider",
@@ -50,7 +50,7 @@ var Banner = /*#__PURE__*/forwardRef(function Banner(_ref2, ref) {
50
50
  elevation: elevation,
51
51
  role: "alert",
52
52
  children: [/*#__PURE__*/jsx(Content, {
53
- hasIcon: hasIcon,
53
+ $hasIcon: hasIcon,
54
54
  children: children
55
55
  }), /*#__PURE__*/jsx(NonMarginDivider, {
56
56
  color: "light"
@@ -10,8 +10,8 @@ var StyledBannerActions = styled.div.withConfig({
10
10
  componentId: "sc-1o38ds2-0"
11
11
  })(function (_ref) {
12
12
  var theme = _ref.theme,
13
- placement = _ref.placement;
14
- return css(["display:flex;margin-left:", ";grid-gap:8px;grid-column:", ";", ""], theme.spacings.left, placement === 'bottom' ? '1/-1' : 'auto', placement === 'bottom' && {
13
+ $placement = _ref.$placement;
14
+ return css(["display:flex;margin-left:", ";grid-gap:8px;grid-column:", ";", ""], theme.spacings.left, $placement === 'bottom' ? '1/-1' : 'auto', $placement === 'bottom' && {
15
15
  marginTop: theme.spacings.top,
16
16
  marginLeft: '0'
17
17
  });
@@ -25,7 +25,7 @@ var BannerActions = /*#__PURE__*/forwardRef(function BannerActions(_ref2, ref) {
25
25
  ref: ref
26
26
  }, rest);
27
27
  return /*#__PURE__*/jsx(StyledBannerActions, _objectSpread(_objectSpread({
28
- placement: placement
28
+ $placement: placement
29
29
  }, props), {}, {
30
30
  children: children
31
31
  }));
@@ -15,8 +15,8 @@ var StyledBannerIcon = styled.span.withConfig({
15
15
  componentId: "sc-7ow3zc-0"
16
16
  })(function (_ref) {
17
17
  var theme = _ref.theme,
18
- variant = _ref.variant;
19
- return css(["display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;", ";background-color:", ";width:", ";height:", ";margin-right:", ";"], bordersTemplate(theme.entities.icon.border), variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background, theme.entities.icon.width, theme.entities.icon.height, theme.spacings.right);
18
+ $variant = _ref.$variant;
19
+ return css(["display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;", ";background-color:", ";width:", ";height:", ";margin-right:", ";"], bordersTemplate(theme.entities.icon.border), $variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background, theme.entities.icon.width, theme.entities.icon.height, theme.spacings.right);
20
20
  });
21
21
  var BannerIcon = /*#__PURE__*/forwardRef(function BannerIcon(_ref2, ref) {
22
22
  var children = _ref2.children,
@@ -33,7 +33,7 @@ var BannerIcon = /*#__PURE__*/forwardRef(function BannerIcon(_ref2, ref) {
33
33
  ref: ref
34
34
  }, rest);
35
35
  return /*#__PURE__*/jsx(StyledBannerIcon, _objectSpread(_objectSpread({
36
- variant: variant
36
+ $variant: variant
37
37
  }, props), {}, {
38
38
  children: childrenWithColor
39
39
  }));
@@ -13,7 +13,7 @@ var states = breadcrumbs.states,
13
13
  var StyledTypography = styled(Typography).withConfig({
14
14
  displayName: "Breadcrumb__StyledTypography",
15
15
  componentId: "sc-10nvwte-0"
16
- })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";width:100%;", ""], states.hover.typography.color, typography.color, function (_ref) {
16
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:1;text-decoration:none;color:", ";width:100%;", ""], states.hover.typography.color, typography.color, function (_ref) {
17
17
  var $maxWidth = _ref.$maxWidth;
18
18
  return css({
19
19
  maxWidth: $maxWidth
@@ -15,18 +15,18 @@ var spacings = breadcrumbs.spacings,
15
15
  var OrderedList = styled.ol.withConfig({
16
16
  displayName: "Breadcrumbs__OrderedList",
17
17
  componentId: "sc-12awlbz-0"
18
- })(["list-style:none;display:flex;padding:0;margin:0;flex-wrap:wrap;flex-wrap:", ";"], function (_ref) {
18
+ })(["list-style:none;display:flex;gap:0.45em 0;align-items:center;padding:0;margin:0;flex-wrap:", ";"], function (_ref) {
19
19
  var $wrap = _ref.$wrap;
20
20
  return $wrap ? 'wrap' : 'nowrap';
21
21
  });
22
22
  var ListItem = styled.li.withConfig({
23
23
  displayName: "Breadcrumbs__ListItem",
24
24
  componentId: "sc-12awlbz-1"
25
- })(["display:inline-block;min-width:30px;"]);
25
+ })(["display:block;min-width:30px;"]);
26
26
  var Separator = styled(Typography).withConfig({
27
27
  displayName: "Breadcrumbs__Separator",
28
28
  componentId: "sc-12awlbz-2"
29
- })(["color:", ";", ""], typography.color, spacingsTemplate(spacings));
29
+ })(["color:", ";", " display:block;line-height:1;"], typography.color, spacingsTemplate(spacings));
30
30
  var Collapsed = styled(Typography).withConfig({
31
31
  displayName: "Breadcrumbs__Collapsed",
32
32
  componentId: "sc-12awlbz-3"
@@ -66,7 +66,7 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function Breadcrumbs(_ref2, ref) {
66
66
  role: "button",
67
67
  variant: "body_short",
68
68
  onClick: handleExpandClick,
69
- onKeyPress: handleExpandClick,
69
+ onKeyDown: handleExpandClick,
70
70
  tabIndex: 0,
71
71
  children: "\u2026"
72
72
  })
@@ -12,8 +12,8 @@ var ButtonGroupBase = styled.div.withConfig({
12
12
  displayName: "ButtonGroup__ButtonGroupBase",
13
13
  componentId: "sc-1fn8jon-0"
14
14
  })(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}", ""], function (_ref) {
15
- var vertical = _ref.vertical;
16
- return vertical ? css(["flex-direction:column;> :first-child{border-top-left-radius:", ";border-top-right-radius:", ";}> :last-child{border-bottom-left-radius:", ";border-bottom-right-radius:", ";}> :not(:last-child){border-bottom:none;}"], radius, radius, radius, radius) : css(["> :first-child{border-top-left-radius:", ";border-bottom-left-radius:", ";}> :last-child{border-top-right-radius:", ";border-bottom-right-radius:", ";}> :not(:last-child){border-right:none;}"], radius, radius, radius, radius);
15
+ var $vertical = _ref.$vertical;
16
+ return $vertical ? css(["flex-direction:column;> :first-child{border-top-left-radius:", ";border-top-right-radius:", ";}> :last-child{border-bottom-left-radius:", ";border-bottom-right-radius:", ";}> :not(:last-child){border-bottom:none;}"], radius, radius, radius, radius) : css(["> :first-child{border-top-left-radius:", ";border-bottom-left-radius:", ";}> :last-child{border-top-right-radius:", ";border-bottom-right-radius:", ";}> :not(:last-child){border-right:none;}"], radius, radius, radius, radius);
17
17
  });
18
18
  var ButtonGroup = /*#__PURE__*/forwardRef(function ButtonGroup(_ref2, ref) {
19
19
  var children = _ref2.children,
@@ -21,7 +21,7 @@ var ButtonGroup = /*#__PURE__*/forwardRef(function ButtonGroup(_ref2, ref) {
21
21
  rest = _objectWithoutProperties(_ref2, _excluded);
22
22
  var props = _objectSpread({
23
23
  ref: ref,
24
- vertical: vertical
24
+ $vertical: vertical
25
25
  }, rest);
26
26
  return /*#__PURE__*/jsx(ButtonGroupBase, _objectSpread(_objectSpread({
27
27
  role: "group"
@@ -14,8 +14,8 @@ var StyledCard = styled(Paper).withConfig({
14
14
  displayName: "Card__StyledCard",
15
15
  componentId: "sc-bjucjn-0"
16
16
  })(["width:100%;position:relative;background-color:", ";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;", ";"], function (_ref) {
17
- var background = _ref.background;
18
- return background;
17
+ var $background = _ref.$background;
18
+ return $background;
19
19
  }, bordersTemplate(primary.border));
20
20
  var Card = /*#__PURE__*/forwardRef(function Card(_ref2, ref) {
21
21
  var children = _ref2.children,
@@ -28,7 +28,7 @@ var Card = /*#__PURE__*/forwardRef(function Card(_ref2, ref) {
28
28
  var token = Card_tokens[cardVariant];
29
29
  var props = _objectSpread({
30
30
  ref: ref,
31
- background: token.background
31
+ $background: token.background
32
32
  }, rest);
33
33
  return /*#__PURE__*/jsx(StyledCard, _objectSpread(_objectSpread({
34
34
  elevation: elevation
@@ -12,8 +12,8 @@ var StyledCardActions = styled.div.withConfig({
12
12
  displayName: "CardActions__StyledCardActions",
13
13
  componentId: "sc-1d5vskp-0"
14
14
  })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";margin-top:auto;&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], function (_ref) {
15
- var justifyContent = _ref.justifyContent;
16
- return justifyContent;
15
+ var $justifyContent = _ref.$justifyContent;
16
+ return $justifyContent;
17
17
  }, spacings.right, spacings.left, spacings.top, spacings.bottom);
18
18
  var CardActions = /*#__PURE__*/forwardRef(function CardActions(_ref2, ref) {
19
19
  var children = _ref2.children,
@@ -22,10 +22,10 @@ var CardActions = /*#__PURE__*/forwardRef(function CardActions(_ref2, ref) {
22
22
  _ref2$meta = _ref2.meta,
23
23
  meta = _ref2$meta === void 0 ? '' : _ref2$meta,
24
24
  rest = _objectWithoutProperties(_ref2, _excluded);
25
- var justifyContent = alignRight ? 'flex-end' : 'flex-start';
25
+ var $justifyContent = alignRight ? 'flex-end' : 'flex-start';
26
26
  var props = _objectSpread({
27
27
  ref: ref,
28
- justifyContent: justifyContent
28
+ $justifyContent: $justifyContent
29
29
  }, rest);
30
30
  return /*#__PURE__*/jsxs(StyledCardActions, _objectSpread(_objectSpread({}, props), {}, {
31
31
  children: [children, meta !== '' && /*#__PURE__*/jsx(Typography, {
@@ -12,8 +12,8 @@ var StyledCardMedia = styled.div.withConfig({
12
12
  displayName: "CardMedia__StyledCardMedia",
13
13
  componentId: "sc-kr8q9c-0"
14
14
  })(["display:flex;width:auto;", ""], function (_ref) {
15
- var fullWidth = _ref.fullWidth;
16
- return fullWidth ? css(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border.type === 'border' && border.radius, border.type === 'border' && border.radius, border.type === 'border' && border.radius, border.type === 'border' && border.radius) : css(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings.right, spacings.left, spacings.top, spacings.right, spacings.left, spacings.right, spacings.bottom, spacings.left);
15
+ var $fullWidth = _ref.$fullWidth;
16
+ return $fullWidth ? css(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border.type === 'border' && border.radius, border.type === 'border' && border.radius, border.type === 'border' && border.radius, border.type === 'border' && border.radius) : css(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings.right, spacings.left, spacings.top, spacings.right, spacings.left, spacings.right, spacings.bottom, spacings.left);
17
17
  });
18
18
  var CardMedia = /*#__PURE__*/forwardRef(function CardMedia(_ref2, ref) {
19
19
  var children = _ref2.children,
@@ -22,7 +22,7 @@ var CardMedia = /*#__PURE__*/forwardRef(function CardMedia(_ref2, ref) {
22
22
  rest = _objectWithoutProperties(_ref2, _excluded);
23
23
  var props = _objectSpread(_objectSpread({}, rest), {}, {
24
24
  ref: ref,
25
- fullWidth: fullWidth
25
+ $fullWidth: fullWidth
26
26
  });
27
27
  return /*#__PURE__*/jsx(StyledCardMedia, _objectSpread(_objectSpread({}, props), {}, {
28
28
  children: children
@@ -12,8 +12,8 @@ var StyledLabel = styled.label.withConfig({
12
12
  displayName: "Checkbox__StyledLabel",
13
13
  componentId: "sc-yg6l8h-0"
14
14
  })(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref) {
15
- var disabled = _ref.disabled;
16
- return disabled ? 'not-allowed' : 'pointer';
15
+ var $disabled = _ref.$disabled;
16
+ return $disabled ? 'not-allowed' : 'pointer';
17
17
  });
18
18
  var LabelText = styled.span.withConfig({
19
19
  displayName: "Checkbox__LabelText",
@@ -28,7 +28,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function Checkbox(_ref2, ref) {
28
28
  style = _ref2.style,
29
29
  rest = _objectWithoutProperties(_ref2, _excluded);
30
30
  return label ? /*#__PURE__*/jsxs(StyledLabel, {
31
- disabled: disabled,
31
+ $disabled: disabled,
32
32
  className: className,
33
33
  style: style,
34
34
  children: [/*#__PURE__*/jsx(CheckboxInput, _objectSpread(_objectSpread({}, rest), {}, {