grommet 2.40.2 → 2.42.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 (139) hide show
  1. package/components/AccordionPanel/AccordionPanel.js +1 -7
  2. package/components/Box/Box.js +1 -1
  3. package/components/Box/StyledBox.js +1 -6
  4. package/components/Box/index.d.ts +1 -0
  5. package/components/Box/propTypes.js +1 -0
  6. package/components/Button/Button.js +1 -0
  7. package/components/Button/StyledButton.js +3 -2
  8. package/components/Button/StyledButtonKind.js +12 -6
  9. package/components/Calendar/Calendar.js +90 -56
  10. package/components/Calendar/StyledCalendar.js +89 -7
  11. package/components/Calendar/utils.js +16 -2
  12. package/components/Carousel/Carousel.js +1 -1
  13. package/components/Chart/Chart.js +3 -3
  14. package/components/CheckBox/CheckBox.js +3 -2
  15. package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  16. package/components/Clock/Digital.js +1 -1
  17. package/components/Data/stories/Infinite.js +2 -2
  18. package/components/Data/stories/OnSelect.js +2 -2
  19. package/components/Data/stories/SpaceX.js +2 -2
  20. package/components/Data/stories/StarWars.js +1 -1
  21. package/components/DataChart/Detail.js +19 -4
  22. package/components/DataFilter/DataFilter.js +6 -1
  23. package/components/DataSort/DataSort.js +46 -14
  24. package/components/DataSort/stories/Simple.js +10 -1
  25. package/components/DataTable/Body.js +14 -8
  26. package/components/DataTable/GroupedBody.js +3 -3
  27. package/components/DataTable/buildState.js +5 -1
  28. package/components/DataTable/stories/SpaceX.js +2 -2
  29. package/components/DataTable/stories/SpaceXUngrouped.js +1 -1
  30. package/components/Drop/DropContainer.js +51 -3
  31. package/components/FileInput/index.d.ts +2 -3
  32. package/components/FocusedContainer.js +134 -17
  33. package/components/Grommet/Grommet.js +11 -5
  34. package/components/Layer/Layer.js +1 -1
  35. package/components/Layer/index.d.ts +2 -0
  36. package/components/List/List.js +18 -12
  37. package/components/MaskedInput/MaskedInput.js +3 -0
  38. package/components/Menu/Menu.js +3 -3
  39. package/components/Meter/Circle.js +2 -2
  40. package/components/Notification/Notification.js +18 -6
  41. package/components/Notification/index.d.ts +1 -0
  42. package/components/Notification/propTypes.js +1 -0
  43. package/components/Pagination/Pagination.js +4 -2
  44. package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  45. package/components/Select/Select.js +29 -18
  46. package/components/Select/SelectContainer.js +41 -34
  47. package/components/Select/index.d.ts +1 -1
  48. package/components/Select/stories/ChildrenRender.js +7 -8
  49. package/components/Select/utils.js +13 -2
  50. package/components/SelectMultiple/SelectMultiple.js +18 -6
  51. package/components/SelectMultiple/SelectMultipleContainer.js +28 -2
  52. package/components/SelectMultiple/SelectMultipleValue.js +14 -1
  53. package/components/SkipLinks/index.d.ts +1 -0
  54. package/components/SkipLinks/propTypes.js +1 -0
  55. package/components/Tab/Tab.js +1 -1
  56. package/components/Tag/Tag.js +11 -7
  57. package/components/TextInput/TextInput.js +3 -0
  58. package/components/ToggleGroup/StyledToggleGroup.js +12 -5
  59. package/components/ToggleGroup/ToggleGroup.js +21 -10
  60. package/components/WorldMap/WorldMap.js +1 -1
  61. package/contexts/RootsContext.js +23 -5
  62. package/es6/components/AccordionPanel/AccordionPanel.js +2 -9
  63. package/es6/components/Box/Box.js +1 -1
  64. package/es6/components/Box/StyledBox.js +1 -6
  65. package/es6/components/Box/index.d.ts +1 -0
  66. package/es6/components/Box/propTypes.js +1 -0
  67. package/es6/components/Button/Button.js +1 -0
  68. package/es6/components/Button/StyledButton.js +4 -3
  69. package/es6/components/Button/StyledButtonKind.js +12 -6
  70. package/es6/components/Calendar/Calendar.js +89 -56
  71. package/es6/components/Calendar/StyledCalendar.js +90 -8
  72. package/es6/components/Calendar/utils.js +15 -1
  73. package/es6/components/Carousel/Carousel.js +1 -1
  74. package/es6/components/Chart/Chart.js +3 -3
  75. package/es6/components/CheckBox/CheckBox.js +3 -2
  76. package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  77. package/es6/components/Clock/Digital.js +1 -1
  78. package/es6/components/Data/stories/Infinite.js +2 -2
  79. package/es6/components/Data/stories/OnSelect.js +2 -2
  80. package/es6/components/Data/stories/SpaceX.js +2 -2
  81. package/es6/components/Data/stories/StarWars.js +1 -1
  82. package/es6/components/DataChart/Detail.js +20 -5
  83. package/es6/components/DataFilter/DataFilter.js +6 -1
  84. package/es6/components/DataSort/DataSort.js +46 -14
  85. package/es6/components/DataSort/stories/Simple.js +10 -1
  86. package/es6/components/DataTable/Body.js +14 -8
  87. package/es6/components/DataTable/GroupedBody.js +3 -3
  88. package/es6/components/DataTable/buildState.js +5 -1
  89. package/es6/components/DataTable/stories/SpaceX.js +2 -2
  90. package/es6/components/DataTable/stories/SpaceXUngrouped.js +1 -1
  91. package/es6/components/Drop/DropContainer.js +51 -3
  92. package/es6/components/FileInput/index.d.ts +2 -3
  93. package/es6/components/FocusedContainer.js +136 -19
  94. package/es6/components/Grommet/Grommet.js +12 -6
  95. package/es6/components/Layer/Layer.js +1 -1
  96. package/es6/components/Layer/index.d.ts +2 -0
  97. package/es6/components/List/List.js +18 -12
  98. package/es6/components/MaskedInput/MaskedInput.js +3 -0
  99. package/es6/components/Menu/Menu.js +3 -3
  100. package/es6/components/Meter/Circle.js +2 -2
  101. package/es6/components/Notification/Notification.js +18 -6
  102. package/es6/components/Notification/index.d.ts +1 -0
  103. package/es6/components/Notification/propTypes.js +1 -0
  104. package/es6/components/Pagination/Pagination.js +4 -2
  105. package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  106. package/es6/components/Select/Select.js +30 -19
  107. package/es6/components/Select/SelectContainer.js +41 -34
  108. package/es6/components/Select/index.d.ts +1 -1
  109. package/es6/components/Select/stories/ChildrenRender.js +7 -8
  110. package/es6/components/Select/utils.js +15 -3
  111. package/es6/components/SelectMultiple/SelectMultiple.js +18 -6
  112. package/es6/components/SelectMultiple/SelectMultipleContainer.js +28 -2
  113. package/es6/components/SelectMultiple/SelectMultipleValue.js +14 -1
  114. package/es6/components/SkipLinks/index.d.ts +1 -0
  115. package/es6/components/SkipLinks/propTypes.js +1 -0
  116. package/es6/components/Tab/Tab.js +1 -1
  117. package/es6/components/Tag/Tag.js +11 -7
  118. package/es6/components/TextInput/TextInput.js +3 -0
  119. package/es6/components/ToggleGroup/StyledToggleGroup.js +12 -5
  120. package/es6/components/ToggleGroup/ToggleGroup.js +22 -11
  121. package/es6/components/WorldMap/WorldMap.js +1 -1
  122. package/es6/contexts/RootsContext.js +20 -3
  123. package/es6/themes/base.d.ts +205 -6
  124. package/es6/themes/base.js +166 -1
  125. package/es6/utils/DOM.js +2 -1
  126. package/es6/utils/background.js +1 -1
  127. package/es6/utils/index.js +2 -1
  128. package/es6/utils/styles.js +8 -0
  129. package/es6/utils/useId.js +16 -0
  130. package/grommet.min.js +1 -1
  131. package/grommet.min.js.map +1 -1
  132. package/package.json +40 -40
  133. package/themes/base.d.ts +205 -6
  134. package/themes/base.js +166 -1
  135. package/utils/DOM.js +2 -1
  136. package/utils/background.js +1 -1
  137. package/utils/index.js +6 -0
  138. package/utils/styles.js +9 -1
  139. package/utils/useId.js +19 -0
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
 
3
3
  export interface SkipLinksProps {
4
+ id?: string;
4
5
  children: React.ReactNode;
5
6
  messages?: { skipTo?: string };
6
7
  }
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
2
2
  var PropType = {};
3
3
  if (process.env.NODE_ENV !== 'production') {
4
4
  PropType = {
5
+ id: PropTypes.string,
5
6
  children: PropTypes.node.isRequired,
6
7
  messages: PropTypes.shape({
7
8
  skipTo: PropTypes.string
@@ -89,7 +89,7 @@ var Tab = /*#__PURE__*/forwardRef(function (_ref, ref) {
89
89
  }
90
90
  };
91
91
  if (active && disabled) {
92
- console.warn( // eslint-disable-next-line max-len
92
+ console.warn(// eslint-disable-next-line max-len
93
93
  "Warning: Tab props 'active' and 'disabled' have both been set to TRUE on the same Tab resulting in an interesting Tab state. Is this your intent?");
94
94
  }
95
95
  if (!plain) {
@@ -9,10 +9,11 @@ import { Text } from '../Text';
9
9
  import { StyledRemoveButton, StyledTagButton } from './StyledTag';
10
10
  import { useThemeValue } from '../../utils/useThemeValue';
11
11
  var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
- var _theme$tag$icons, _theme$tag$size, _theme$tag$size2, _theme$tag$size3, _theme$tag$size4;
12
+ var _theme$tag$icons, _theme$tag$size, _theme$tag$size2, _theme$tag$size3, _theme$tag$size4, _theme$tag$size5;
13
13
  var name = _ref.name,
14
14
  value = _ref.value,
15
- size = _ref.size,
15
+ _ref$size = _ref.size,
16
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
16
17
  onRemove = _ref.onRemove,
17
18
  onClick = _ref.onClick,
18
19
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
@@ -44,6 +45,11 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
44
45
  if (onClick && onRemove) {
45
46
  console.warn('Tag cannot combine "onClick" and "onRemove".');
46
47
  }
48
+ var removeProps = !theme.tag.remove.kind ? {
49
+ plain: true,
50
+ hoverIndicator: true,
51
+ focusIndicator: true
52
+ } : {};
47
53
  return onRemove || !onClick ? /*#__PURE__*/React.createElement(Box, _extends({
48
54
  flex: false,
49
55
  direction: "row",
@@ -51,13 +57,11 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
51
57
  min: 'min-content'
52
58
  }
53
59
  }, containerProps), contents, onRemove && /*#__PURE__*/React.createElement(StyledRemoveButton, _extends({
54
- onClick: onRemove,
55
- plain: true,
56
- hoverIndicator: true,
57
- focusIndicator: true,
60
+ onClick: onRemove
61
+ }, removeProps, {
58
62
  icon: /*#__PURE__*/React.createElement(RemoveIcon, (_theme$tag$size3 = theme.tag.size) == null || (_theme$tag$size3 = _theme$tag$size3[size]) == null ? void 0 : _theme$tag$size3.icon),
59
63
  round: ((_theme$tag$size4 = theme.tag.size) == null || (_theme$tag$size4 = _theme$tag$size4[size]) == null ? void 0 : _theme$tag$size4.round) || theme.tag.round
60
- }, theme.tag.remove, passThemeFlag))) : /*#__PURE__*/React.createElement(StyledTagButton, _extends({
64
+ }, theme.tag.remove, (_theme$tag$size5 = theme.tag.size) == null || (_theme$tag$size5 = _theme$tag$size5[size]) == null ? void 0 : _theme$tag$size5.remove, passThemeFlag))) : /*#__PURE__*/React.createElement(StyledTagButton, _extends({
61
65
  flex: false,
62
66
  plain: true,
63
67
  onClick: onClick,
@@ -276,6 +276,9 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
276
276
  target: dropTarget || inputRef.current,
277
277
  onClickOutside: clickOutside,
278
278
  onEsc: closeDrop
279
+ // TextInput manages its own keyboard behavior via keyboardProps
280
+ ,
281
+ trapFocus: false
279
282
  }, dropProps), /*#__PURE__*/React.createElement(ContainerBox, _extends({
280
283
  id: id ? "listbox__" + id : undefined,
281
284
  role: "listbox",
@@ -18,14 +18,21 @@ var adjustPad = function adjustPad(value, theme) {
18
18
  export var StyledButton = styled(Button).withConfig({
19
19
  displayName: "StyledToggleGroup__StyledButton",
20
20
  componentId: "sc-13k5sx8-0"
21
- })(["border-radius:0;border:none;", ";", " &:hover{border:none;box-shadow:none;}"], function (props) {
22
- return roundStyle(props.round, false, props.theme);
21
+ })(["", " ", ";", " &:hover{", "}"], function (props) {
22
+ return !props.kind && "border: none;";
23
23
  }, function (props) {
24
- var _props$theme, _props$theme2, _props$theme3, _props$theme4;
24
+ return !props.kind && ['border-radius: 0;', props.round && roundStyle(props.round, false, props.theme)];
25
+ }, function (props) {
26
+ var _props$theme, _props$theme2, _props$theme3, _props$theme4, _props$theme5;
25
27
  var themePad = props.icon && !props.label && (_props$theme = props.theme) != null && (_props$theme = _props$theme.toggleGroup) != null && (_props$theme = _props$theme.button) != null && (_props$theme = _props$theme.iconOnly) != null && _props$theme.pad ? (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.toggleGroup) == null || (_props$theme2 = _props$theme2.button) == null || (_props$theme2 = _props$theme2.iconOnly) == null ? void 0 : _props$theme2.pad : (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.toggleGroup.button) == null ? void 0 : _props$theme3.pad;
26
28
 
27
29
  // adjust pad for "kind" themes to align with how "kind" themes
28
30
  // manages this calculation
29
- var pad = (_props$theme4 = props.theme) != null && (_props$theme4 = _props$theme4.button) != null && _props$theme4["default"] ? adjustPad(themePad, props.theme) : themePad;
30
- return edgeStyle('padding', pad, false, undefined, props.theme);
31
+ var pad = (_props$theme4 = props.theme) != null && (_props$theme4 = _props$theme4.button) != null && _props$theme4["default"] && (_props$theme5 = props.theme) != null && (_props$theme5 = _props$theme5.button) != null && _props$theme5.intelligentPad ? adjustPad(themePad, props.theme) : themePad;
32
+ return !props.kind && edgeStyle('padding', pad, false, undefined, props.theme);
33
+ }, function (props) {
34
+ return (
35
+ // remove hover style from StyledButton/StyledButtonKind theme
36
+ !props.kind && "border: none;\n box-shadow: none;"
37
+ );
31
38
  });
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["defaultValue", "multiple", "options", "onToggle", "value"];
2
2
  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); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
- import React, { useCallback, useState, useRef } from 'react';
4
+ import React, { useCallback, useState, useRef, useMemo } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { Keyboard } from '../Keyboard';
7
7
  import { ToggleGroupPropTypes } from './propTypes';
@@ -93,6 +93,11 @@ var ToggleGroup = function ToggleGroup(_ref2) {
93
93
  adjustedEvent.value = nextValue;
94
94
  setValue(adjustedEvent);
95
95
  };
96
+
97
+ // if caller defines a button "kind", respect that kind style
98
+ var kind = useMemo(function () {
99
+ return theme.toggleGroup.button.kind;
100
+ }, [theme.toggleGroup.button]);
96
101
  return /*#__PURE__*/React.createElement(Keyboard, {
97
102
  onUp: onPrevious,
98
103
  onDown: onNext,
@@ -127,25 +132,31 @@ var ToggleGroup = function ToggleGroup(_ref2) {
127
132
  optionValue = option;
128
133
  }
129
134
  var active = Array.isArray(value) ? !!value.includes(optionValue) : value === optionValue;
130
- var round = 0;
131
- // round corners of first and last buttons to match container
132
- if (typeof theme.toggleGroup.container.round === 'string' && (index === 0 || index === options.length - 1)) {
133
- round = {
134
- corner: index === 0 ? 'left' : 'right',
135
- size: theme.toggleGroup.container.round
136
- };
135
+ var round;
136
+ if (!kind) {
137
+ var _theme$toggleGroup$bu;
138
+ if ((_theme$toggleGroup$bu = theme.toggleGroup.button.border) != null && _theme$toggleGroup$bu.radius) {
139
+ round = theme.toggleGroup.button.border.radius;
140
+ } else if (typeof theme.toggleGroup.container.round === 'string' && (index === 0 || index === options.length - 1)) {
141
+ // round corners of first and last buttons to match container
142
+ round = {
143
+ corner: index === 0 ? 'left' : 'right',
144
+ size: theme.toggleGroup.container.round
145
+ };
146
+ } else round = 0;
137
147
  }
138
148
  return /*#__PURE__*/React.createElement(Box, {
139
- border: index < options.length - 1 ? {
149
+ border: index < options.length - 1 && theme.toggleGroup.divider ? {
140
150
  side: 'right',
141
151
  color: theme.toggleGroup.divider.color
142
152
  } : undefined,
143
153
  key: optionValue || index
144
154
  }, /*#__PURE__*/React.createElement(StyledButton, _extends({
145
155
  active: active,
146
- "aria-pressed": multiple && active,
147
- "aria-checked": !multiple && active,
156
+ "aria-pressed": multiple ? active : undefined,
157
+ "aria-checked": !multiple ? active : undefined,
148
158
  icon: icon,
159
+ kind: kind,
149
160
  label: label,
150
161
  tip: tip,
151
162
  onClick: function onClick(event) {
@@ -321,7 +321,7 @@ var WorldMap = /*#__PURE__*/forwardRef(function (_ref5, ref) {
321
321
  }, active);
322
322
  }
323
323
  if (content && targets[index]) {
324
- placesContent.push( /*#__PURE__*/React.createElement(Drop, _extends({
324
+ placesContent.push(/*#__PURE__*/React.createElement(Drop, _extends({
325
325
  key: key || name
326
326
  }, dropProps, {
327
327
  target: targets[index]
@@ -1,6 +1,23 @@
1
- import React from 'react';
1
+ import React, { useContext, useMemo, useRef } from 'react';
2
2
 
3
3
  // When toggling aria-hidden values, we only want to affect elements
4
4
  // in the DOM that come from Grommet, so we track those elements in this
5
- // context value. See FocusedContainer.js
6
- export var RootsContext = /*#__PURE__*/React.createContext([]);
5
+ // context value. We also only want `trapFocus` to apply to the most recently
6
+ // opened Drop/Layer. See FocusedContainer.js
7
+ export var RootsContext = /*#__PURE__*/React.createContext(undefined);
8
+ export var useRoots = function useRoots() {
9
+ // If FocusedContainer is within Grommet React tree, there will be a value
10
+ // from RootsContext. If not, set up a default value that can be passed
11
+ // to drops that might open from within a drop.
12
+ var defaultRoots = useRef([]);
13
+ var defaultValue = useMemo(function () {
14
+ return {
15
+ roots: defaultRoots
16
+ };
17
+ }, []);
18
+ var existingRoots = useContext(RootsContext);
19
+ return {
20
+ contextValue: existingRoots || defaultValue,
21
+ hasRoots: (existingRoots == null ? void 0 : existingRoots.roots) !== undefined
22
+ };
23
+ };
@@ -150,6 +150,7 @@ interface ButtonKindType {
150
150
  | boolean;
151
151
  color?: ColorType;
152
152
  direction?: DirectionType;
153
+ elevation?: ElevationType;
153
154
  font?: {
154
155
  size?: string;
155
156
  weight?: number | string;
@@ -164,6 +165,7 @@ interface ButtonKindType {
164
165
  }
165
166
 
166
167
  interface ButtonType {
168
+ intelligentPad?: boolean;
167
169
  badge?: {
168
170
  align?: 'container';
169
171
  container?: {
@@ -181,12 +183,14 @@ interface ButtonType {
181
183
  };
182
184
  };
183
185
  gap?: GapType;
186
+ background?: BackgroundType;
184
187
  border?: {
185
188
  color?: ColorType;
186
189
  width?: string;
187
190
  radius?: string;
188
191
  };
189
192
  color?: ColorType;
193
+ elevation?: ElevationType;
190
194
  extend?: ExtendType;
191
195
  minWidth?: string;
192
196
  maxWidth?: string;
@@ -380,6 +384,7 @@ export interface ThemeType {
380
384
  medium?: string;
381
385
  large?: string;
382
386
  xlarge?: string;
387
+ [x: string]: string;
383
388
  };
384
389
  dark?: {
385
390
  none?: string;
@@ -388,6 +393,7 @@ export interface ThemeType {
388
393
  medium?: string;
389
394
  large?: string;
390
395
  xlarge?: string;
396
+ [x: string]: string;
391
397
  };
392
398
  };
393
399
  focus?: {
@@ -548,10 +554,50 @@ export interface ThemeType {
548
554
  button?: ButtonType;
549
555
  calendar?: {
550
556
  day?: {
557
+ hover?: {
558
+ background?: BackgroundType;
559
+ color?: ColorType;
560
+ };
561
+ selected?: {
562
+ background?: BackgroundType;
563
+ color?: ColorType;
564
+ font?: {
565
+ weight?: string | number;
566
+ };
567
+ hover?: {
568
+ background?: BackgroundType;
569
+ color?: ColorType;
570
+ };
571
+ };
572
+ inRange?: {
573
+ color?: ColorType;
574
+ font?: {
575
+ weight?: string | number;
576
+ };
577
+ hover?: {
578
+ background?: BackgroundType;
579
+ color?: ColorType;
580
+ };
581
+ };
551
582
  extend?: ExtendType;
552
583
  };
584
+ range?: {
585
+ background?: BackgroundType;
586
+ };
553
587
  extend?: ExtendType;
554
588
  small?: {
589
+ day?: {
590
+ round?: RoundType;
591
+ };
592
+ range?: {
593
+ round?: RoundType;
594
+ start?: {
595
+ round?: RoundType;
596
+ };
597
+ end?: {
598
+ round?: RoundType;
599
+ };
600
+ };
555
601
  title?: TextProps;
556
602
  fontSize?: string;
557
603
  lineHeight?: number;
@@ -559,6 +605,18 @@ export interface ThemeType {
559
605
  slideDuration?: string;
560
606
  };
561
607
  medium?: {
608
+ day?: {
609
+ round?: RoundType;
610
+ };
611
+ range?: {
612
+ round?: RoundType;
613
+ start?: {
614
+ round?: RoundType;
615
+ };
616
+ end?: {
617
+ round?: RoundType;
618
+ };
619
+ };
562
620
  title?: TextProps;
563
621
  fontSize?: string;
564
622
  lineHeight?: number;
@@ -566,6 +624,18 @@ export interface ThemeType {
566
624
  slideDuration?: string;
567
625
  };
568
626
  large?: {
627
+ day?: {
628
+ round?: RoundType;
629
+ };
630
+ range?: {
631
+ round?: RoundType;
632
+ start?: {
633
+ round?: RoundType;
634
+ };
635
+ end?: {
636
+ round?: RoundType;
637
+ };
638
+ };
569
639
  title?: TextProps;
570
640
  fontSize?: string;
571
641
  lineHeight?: number;
@@ -725,6 +795,9 @@ export interface ThemeType {
725
795
  dataTable?: {
726
796
  body?: {
727
797
  extend?: ExtendType;
798
+ selected?: {
799
+ background?: BackgroundType;
800
+ };
728
801
  };
729
802
  container?: BoxProps;
730
803
  header?: {
@@ -885,6 +958,13 @@ export interface ThemeType {
885
958
  margin?: MarginType;
886
959
  round?: RoundType;
887
960
  extend?: ExtendType;
961
+ survey?: {
962
+ label?: {
963
+ margin?: MarginType;
964
+ size?: string;
965
+ color?: ColorType;
966
+ };
967
+ };
888
968
  };
889
969
  grommet?: {
890
970
  extend?: ExtendType;
@@ -1161,66 +1241,174 @@ export interface ThemeType {
1161
1241
  icon?: React.ReactNode | Icon;
1162
1242
  background?: BackgroundType;
1163
1243
  color?: ColorType;
1244
+ message?: {
1245
+ color?: ColorType;
1246
+ };
1247
+ title?: {
1248
+ color?: ColorType;
1249
+ };
1164
1250
  global?: {
1165
1251
  background?: BackgroundType;
1252
+ message?: {
1253
+ color?: ColorType;
1254
+ };
1255
+ title?: {
1256
+ color?: ColorType;
1257
+ };
1166
1258
  };
1167
1259
  toast?: {
1168
1260
  background?: BackgroundType;
1261
+ message?: {
1262
+ color?: ColorType;
1263
+ };
1264
+ title?: {
1265
+ color?: ColorType;
1266
+ };
1169
1267
  };
1170
1268
  };
1171
1269
  warning?: {
1172
1270
  icon?: React.ReactNode | Icon;
1173
1271
  background?: BackgroundType;
1174
1272
  color?: ColorType;
1273
+ message?: {
1274
+ color?: ColorType;
1275
+ };
1276
+ title?: {
1277
+ color?: ColorType;
1278
+ };
1175
1279
  global?: {
1176
1280
  background?: BackgroundType;
1281
+ message?: {
1282
+ color?: ColorType;
1283
+ };
1284
+ title?: {
1285
+ color?: ColorType;
1286
+ };
1177
1287
  };
1178
1288
  toast?: {
1179
1289
  background?: BackgroundType;
1290
+ message?: {
1291
+ color?: ColorType;
1292
+ };
1293
+ title?: {
1294
+ color?: ColorType;
1295
+ };
1180
1296
  };
1181
1297
  };
1182
1298
  normal?: {
1183
1299
  icon?: React.ReactNode | Icon;
1184
1300
  background?: BackgroundType;
1185
1301
  color?: ColorType;
1302
+ message?: {
1303
+ color?: ColorType;
1304
+ };
1305
+ title?: {
1306
+ color?: ColorType;
1307
+ };
1186
1308
  global?: {
1187
1309
  background?: BackgroundType;
1310
+ message?: {
1311
+ color?: ColorType;
1312
+ };
1313
+ title?: {
1314
+ color?: ColorType;
1315
+ };
1188
1316
  };
1189
1317
  toast?: {
1190
1318
  background?: BackgroundType;
1319
+ message?: {
1320
+ color?: ColorType;
1321
+ };
1322
+ title?: {
1323
+ color?: ColorType;
1324
+ };
1191
1325
  };
1192
1326
  };
1193
1327
  info?: {
1194
1328
  icon?: React.ReactNode | Icon;
1195
1329
  background?: BackgroundType;
1196
1330
  color?: ColorType;
1331
+ message?: {
1332
+ color?: ColorType;
1333
+ };
1334
+ title?: {
1335
+ color?: ColorType;
1336
+ };
1197
1337
  global?: {
1198
1338
  background?: BackgroundType;
1339
+ message?: {
1340
+ color?: ColorType;
1341
+ };
1342
+ title?: {
1343
+ color?: ColorType;
1344
+ };
1199
1345
  };
1200
1346
  toast?: {
1201
1347
  background?: BackgroundType;
1348
+ message?: {
1349
+ color?: ColorType;
1350
+ };
1351
+ title?: {
1352
+ color?: ColorType;
1353
+ };
1202
1354
  };
1203
1355
  };
1204
1356
  unknown?: {
1205
1357
  icon?: React.ReactNode | Icon;
1206
1358
  background?: BackgroundType;
1207
1359
  color?: ColorType;
1360
+ message?: {
1361
+ color?: ColorType;
1362
+ };
1363
+ title?: {
1364
+ color?: ColorType;
1365
+ };
1208
1366
  global?: {
1209
1367
  background?: BackgroundType;
1368
+ message?: {
1369
+ color?: ColorType;
1370
+ };
1371
+ title?: {
1372
+ color?: ColorType;
1373
+ };
1210
1374
  };
1211
1375
  toast?: {
1212
1376
  background?: BackgroundType;
1377
+ message?: {
1378
+ color?: ColorType;
1379
+ };
1380
+ title?: {
1381
+ color?: ColorType;
1382
+ };
1213
1383
  };
1214
1384
  };
1215
1385
  undefined?: {
1216
1386
  icon?: React.ReactNode | Icon;
1217
1387
  background?: BackgroundType;
1218
1388
  color?: ColorType;
1389
+ message?: {
1390
+ color?: ColorType;
1391
+ };
1392
+ title?: {
1393
+ color?: ColorType;
1394
+ };
1219
1395
  global?: {
1220
1396
  background?: BackgroundType;
1397
+ message?: {
1398
+ color?: ColorType;
1399
+ };
1400
+ title?: {
1401
+ color?: ColorType;
1402
+ };
1221
1403
  };
1222
1404
  toast?: {
1223
1405
  background?: BackgroundType;
1406
+ message?: {
1407
+ color?: ColorType;
1408
+ };
1409
+ title?: {
1410
+ color?: ColorType;
1411
+ };
1224
1412
  };
1225
1413
  };
1226
1414
  };
@@ -1448,7 +1636,7 @@ export interface ThemeType {
1448
1636
  select?: {
1449
1637
  background?: BackgroundType;
1450
1638
  clear?: {
1451
- container?: BoxProps;
1639
+ container?: BoxProps & { hover?: BoxProps };
1452
1640
  text?: TextProps;
1453
1641
  };
1454
1642
  container?: {
@@ -1608,7 +1796,7 @@ export interface ThemeType {
1608
1796
  round?: RoundType;
1609
1797
  name?: TextProps;
1610
1798
  pad?: PadType;
1611
- remove?: ButtonType;
1799
+ remove?: ButtonType | { kind?: string };
1612
1800
  separator?: string;
1613
1801
  size?: {
1614
1802
  xsmall?: {
@@ -1616,30 +1804,35 @@ export interface ThemeType {
1616
1804
  icon?: {
1617
1805
  size?: string;
1618
1806
  };
1807
+ remove?: { size?: string; margin?: MarginType };
1619
1808
  };
1620
1809
  small?: {
1621
1810
  pad?: PadType;
1622
1811
  icon?: {
1623
1812
  size?: string;
1624
1813
  };
1814
+ remove?: { size?: string; margin?: MarginType };
1625
1815
  };
1626
1816
  medium?: {
1627
1817
  pad?: PadType;
1628
1818
  icon?: {
1629
1819
  size?: string;
1630
1820
  };
1821
+ remove?: { size?: string; margin?: MarginType };
1631
1822
  };
1632
1823
  large?: {
1633
1824
  pad?: PadType;
1634
1825
  icon?: {
1635
1826
  size?: string;
1636
1827
  };
1828
+ remove?: { size?: string; margin?: MarginType };
1637
1829
  };
1638
1830
  xlarge?: {
1639
1831
  pad?: PadType;
1640
1832
  icon?: {
1641
1833
  size?: string;
1642
1834
  };
1835
+ remove?: { size?: string; margin?: MarginType };
1643
1836
  };
1644
1837
  };
1645
1838
  value?: TextProps;
@@ -1729,15 +1922,21 @@ export interface ThemeType {
1729
1922
  };
1730
1923
  toggleGroup?: {
1731
1924
  button?: {
1732
- pad?: PadType;
1925
+ kind?: string;
1926
+ border?: {
1927
+ radius?: string;
1928
+ };
1733
1929
  iconOnly?: {
1734
1930
  pad?: PadType;
1735
1931
  };
1932
+ pad?: PadType;
1736
1933
  };
1737
1934
  container?: BoxProps;
1738
- divider?: {
1739
- color?: ColorType;
1740
- };
1935
+ divider?:
1936
+ | {
1937
+ color?: ColorType;
1938
+ }
1939
+ | boolean;
1741
1940
  };
1742
1941
  video?: {
1743
1942
  captions?: {