carbon-react 147.10.0 → 148.0.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 (189) hide show
  1. package/esm/__internal__/checkable-input/checkable-input.component.js +9 -4
  2. package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +9 -4
  3. package/esm/__internal__/input/input.component.js +9 -4
  4. package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -1
  5. package/esm/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
  6. package/esm/__internal__/utils/helpers/events/events.d.ts +1 -1
  7. package/esm/components/accordion/accordion.component.js +1 -1
  8. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +1 -6
  9. package/esm/components/action-popover/action-popover.component.js +7 -2
  10. package/esm/components/advanced-color-picker/advanced-color-picker.component.d.ts +2 -2
  11. package/esm/components/advanced-color-picker/advanced-color-picker.component.js +1 -1
  12. package/esm/components/anchor-navigation/anchor-navigation.component.js +1 -1
  13. package/esm/components/box/box.component.js +1 -1
  14. package/esm/components/breadcrumbs/crumb/crumb.component.d.ts +1 -1
  15. package/esm/components/breadcrumbs/crumb/crumb.component.js +5 -1
  16. package/esm/components/breadcrumbs/crumb/crumb.style.d.ts +2 -2
  17. package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.js +1 -3
  18. package/esm/components/checkbox/checkbox.component.js +9 -4
  19. package/esm/components/content/content.style.js +2 -2
  20. package/esm/components/date/date.component.js +40 -60
  21. package/esm/components/decimal/decimal.component.js +10 -5
  22. package/esm/components/dialog/dialog.component.d.ts +1 -1
  23. package/esm/components/dialog-full-screen/dialog-full-screen.component.d.ts +1 -1
  24. package/esm/components/draggable/draggable-container.component.js +4 -1
  25. package/esm/components/drawer/drawer.component.js +1 -1
  26. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +3 -0
  27. package/esm/components/grouped-character/grouped-character.component.js +9 -4
  28. package/esm/components/heading/heading.style.d.ts +1 -1
  29. package/esm/components/help/help.component.js +1 -1
  30. package/esm/components/hr/hr.component.d.ts +0 -1
  31. package/esm/components/image/image.style.d.ts +1 -1
  32. package/esm/components/link/link.component.d.ts +1 -3
  33. package/esm/components/link/link.component.js +5 -5
  34. package/esm/components/link/link.style.js +7 -4
  35. package/esm/components/loader-star/internal/star.component.d.ts +0 -1
  36. package/esm/components/loader-star/loader-star.component.d.ts +0 -1
  37. package/esm/components/menu/__internal__/menu.context.d.ts +1 -0
  38. package/esm/components/menu/__internal__/submenu/submenu.component.d.ts +1 -1
  39. package/esm/components/menu/__internal__/submenu/submenu.component.js +14 -37
  40. package/esm/components/menu/__internal__/submenu/submenu.context.d.ts +1 -2
  41. package/esm/components/menu/__internal__/submenu/submenu.style.js +0 -11
  42. package/esm/components/menu/menu-item/menu-item.component.js +39 -46
  43. package/esm/components/menu/menu-item/menu-item.style.d.ts +2 -2
  44. package/esm/components/menu/menu-item/menu-item.style.js +65 -83
  45. package/esm/components/menu/menu.component.js +1 -0
  46. package/esm/components/modal/modal.component.d.ts +1 -1
  47. package/esm/components/multi-action-button/multi-action-button.component.js +8 -4
  48. package/esm/components/number/number.component.js +9 -4
  49. package/esm/components/pager/pager.component.js +1 -1
  50. package/esm/components/pager/pager.style.d.ts +1 -1
  51. package/esm/components/pages/pages.component.js +1 -1
  52. package/esm/components/popover-container/popover-container.component.d.ts +1 -1
  53. package/esm/components/portrait/portrait.component.d.ts +2 -1
  54. package/esm/components/profile/profile.style.d.ts +1 -1
  55. package/esm/components/radio-button/radio-button.component.js +9 -4
  56. package/esm/components/radio-button/radio-button.style.d.ts +1 -1
  57. package/esm/components/search/search.component.js +0 -1
  58. package/esm/components/select/__internal__/select-list/select-list.component.d.ts +9 -8
  59. package/esm/components/select/__internal__/select-list/select-list.component.js +34 -66
  60. package/esm/components/select/__internal__/select-list/select-list.style.js +9 -3
  61. package/esm/components/select/__internal__/select-textbox/select-textbox.component.d.ts +1 -1
  62. package/esm/components/select/__internal__/select-textbox/select-textbox.component.js +10 -5
  63. package/esm/components/select/filterable-select/filterable-select.component.js +16 -13
  64. package/esm/components/select/multi-select/multi-select.component.js +12 -7
  65. package/esm/components/select/option/option.component.d.ts +6 -5
  66. package/esm/components/select/option/option.component.js +10 -5
  67. package/esm/components/select/option-row/option-row.component.d.ts +2 -2
  68. package/esm/components/select/simple-select/simple-select.component.d.ts +0 -7
  69. package/esm/components/select/simple-select/simple-select.component.js +12 -7
  70. package/esm/components/sidebar/sidebar.component.d.ts +1 -1
  71. package/esm/components/simple-color-picker/simple-color-picker.component.js +3 -6
  72. package/esm/components/split-button/split-button.component.js +8 -4
  73. package/esm/components/step-flow/step-flow.component.js +0 -1
  74. package/esm/components/switch/switch.component.js +9 -4
  75. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +2 -11
  76. package/esm/components/tabs/tab/tab.component.d.ts +3 -3
  77. package/esm/components/tabs/tabs.component.js +15 -25
  78. package/esm/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -1
  79. package/esm/components/textarea/textarea.component.js +9 -4
  80. package/esm/components/textbox/textbox.component.js +9 -4
  81. package/esm/components/tile/flex-tile-cell/flex-tile-cell.component.js +1 -1
  82. package/esm/components/tile/flex-tile-divider/flex-tile-divider.component.d.ts +0 -1
  83. package/esm/components/time/time.component.js +0 -1
  84. package/esm/components/toast/toast.style.d.ts +3 -3
  85. package/esm/components/typography/typography.style.d.ts +2 -2
  86. package/esm/components/vertical-divider/vertical-divider.component.d.ts +0 -1
  87. package/esm/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.d.ts +1 -1
  88. package/esm/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -2
  89. package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
  90. package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +0 -1
  91. package/esm/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -1
  92. package/esm/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.d.ts +1 -1
  93. package/esm/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.js +2 -2
  94. package/esm/hooks/__internal__/useStableCallback/useStableCallback.d.ts +1 -1
  95. package/lib/__internal__/checkable-input/checkable-input.component.js +9 -4
  96. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +9 -4
  97. package/lib/__internal__/input/input.component.js +9 -4
  98. package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -1
  99. package/lib/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
  100. package/lib/__internal__/utils/helpers/events/events.d.ts +1 -1
  101. package/lib/components/accordion/accordion.component.js +1 -1
  102. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +1 -6
  103. package/lib/components/action-popover/action-popover.component.js +7 -2
  104. package/lib/components/advanced-color-picker/advanced-color-picker.component.d.ts +2 -2
  105. package/lib/components/advanced-color-picker/advanced-color-picker.component.js +1 -1
  106. package/lib/components/anchor-navigation/anchor-navigation.component.js +1 -1
  107. package/lib/components/box/box.component.js +1 -1
  108. package/lib/components/breadcrumbs/crumb/crumb.component.d.ts +1 -1
  109. package/lib/components/breadcrumbs/crumb/crumb.component.js +5 -1
  110. package/lib/components/breadcrumbs/crumb/crumb.style.d.ts +2 -2
  111. package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +1 -3
  112. package/lib/components/checkbox/checkbox.component.js +9 -4
  113. package/lib/components/content/content.style.js +2 -2
  114. package/lib/components/date/date.component.js +40 -60
  115. package/lib/components/decimal/decimal.component.js +10 -5
  116. package/lib/components/dialog/dialog.component.d.ts +1 -1
  117. package/lib/components/dialog-full-screen/dialog-full-screen.component.d.ts +1 -1
  118. package/lib/components/draggable/draggable-container.component.js +4 -1
  119. package/lib/components/drawer/drawer.component.js +1 -1
  120. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +3 -0
  121. package/lib/components/grouped-character/grouped-character.component.js +9 -4
  122. package/lib/components/heading/heading.style.d.ts +1 -1
  123. package/lib/components/help/help.component.js +1 -1
  124. package/lib/components/hr/hr.component.d.ts +0 -1
  125. package/lib/components/image/image.style.d.ts +1 -1
  126. package/lib/components/link/link.component.d.ts +1 -3
  127. package/lib/components/link/link.component.js +5 -5
  128. package/lib/components/link/link.style.js +7 -4
  129. package/lib/components/loader-star/internal/star.component.d.ts +0 -1
  130. package/lib/components/loader-star/loader-star.component.d.ts +0 -1
  131. package/lib/components/menu/__internal__/menu.context.d.ts +1 -0
  132. package/lib/components/menu/__internal__/submenu/submenu.component.d.ts +1 -1
  133. package/lib/components/menu/__internal__/submenu/submenu.component.js +14 -37
  134. package/lib/components/menu/__internal__/submenu/submenu.context.d.ts +1 -2
  135. package/lib/components/menu/__internal__/submenu/submenu.style.js +0 -11
  136. package/lib/components/menu/menu-item/menu-item.component.js +38 -45
  137. package/lib/components/menu/menu-item/menu-item.style.d.ts +2 -2
  138. package/lib/components/menu/menu-item/menu-item.style.js +65 -83
  139. package/lib/components/menu/menu.component.js +1 -0
  140. package/lib/components/modal/modal.component.d.ts +1 -1
  141. package/lib/components/multi-action-button/multi-action-button.component.js +8 -4
  142. package/lib/components/number/number.component.js +9 -4
  143. package/lib/components/pager/pager.component.js +1 -1
  144. package/lib/components/pager/pager.style.d.ts +1 -1
  145. package/lib/components/pages/pages.component.js +1 -1
  146. package/lib/components/popover-container/popover-container.component.d.ts +1 -1
  147. package/lib/components/portrait/portrait.component.d.ts +2 -1
  148. package/lib/components/profile/profile.style.d.ts +1 -1
  149. package/lib/components/radio-button/radio-button.component.js +9 -4
  150. package/lib/components/radio-button/radio-button.style.d.ts +1 -1
  151. package/lib/components/search/search.component.js +0 -1
  152. package/lib/components/select/__internal__/select-list/select-list.component.d.ts +9 -8
  153. package/lib/components/select/__internal__/select-list/select-list.component.js +34 -66
  154. package/lib/components/select/__internal__/select-list/select-list.style.js +9 -3
  155. package/lib/components/select/__internal__/select-textbox/select-textbox.component.d.ts +1 -1
  156. package/lib/components/select/__internal__/select-textbox/select-textbox.component.js +10 -5
  157. package/lib/components/select/filterable-select/filterable-select.component.js +16 -13
  158. package/lib/components/select/multi-select/multi-select.component.js +12 -7
  159. package/lib/components/select/option/option.component.d.ts +6 -5
  160. package/lib/components/select/option/option.component.js +10 -5
  161. package/lib/components/select/option-row/option-row.component.d.ts +2 -2
  162. package/lib/components/select/simple-select/simple-select.component.d.ts +0 -7
  163. package/lib/components/select/simple-select/simple-select.component.js +12 -7
  164. package/lib/components/sidebar/sidebar.component.d.ts +1 -1
  165. package/lib/components/simple-color-picker/simple-color-picker.component.js +3 -6
  166. package/lib/components/split-button/split-button.component.js +8 -4
  167. package/lib/components/step-flow/step-flow.component.js +0 -1
  168. package/lib/components/switch/switch.component.js +9 -4
  169. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +2 -11
  170. package/lib/components/tabs/tab/tab.component.d.ts +3 -3
  171. package/lib/components/tabs/tabs.component.js +15 -25
  172. package/lib/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -1
  173. package/lib/components/textarea/textarea.component.js +9 -4
  174. package/lib/components/textbox/textbox.component.js +9 -4
  175. package/lib/components/tile/flex-tile-cell/flex-tile-cell.component.js +1 -1
  176. package/lib/components/tile/flex-tile-divider/flex-tile-divider.component.d.ts +0 -1
  177. package/lib/components/time/time.component.js +0 -1
  178. package/lib/components/toast/toast.style.d.ts +3 -3
  179. package/lib/components/typography/typography.style.d.ts +2 -2
  180. package/lib/components/vertical-divider/vertical-divider.component.d.ts +0 -1
  181. package/lib/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.d.ts +1 -1
  182. package/lib/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -2
  183. package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
  184. package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +0 -1
  185. package/lib/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -1
  186. package/lib/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.d.ts +1 -1
  187. package/lib/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.js +2 -2
  188. package/lib/hooks/__internal__/useStableCallback/useStableCallback.d.ts +1 -1
  189. package/package.json +31 -36
@@ -98,18 +98,13 @@ const Tabs = ({
98
98
  previousSelectedTabId.current = selectedTabId;
99
99
  }
100
100
  }, [blurPreviousSelectedTab, previousSelectedTabId, selectedTabId, selectedTabIdState]);
101
-
102
- /** Handles the changing of tabs with the mouse */
103
- const handleTabClick = ev => {
101
+ const createTabClickHandler = tabId => ev => {
104
102
  // istanbul ignore if
105
103
  // (code doesn't seem to be ever reached - FE-6835 raised to investigate and hopefully remove this)
106
104
  if (Event.isEventType(ev, "keydown")) {
107
105
  return;
108
106
  }
109
- const {
110
- tabid
111
- } = ev.target.dataset;
112
- updateVisibleTab(tabid);
107
+ updateVisibleTab(tabId);
113
108
  };
114
109
 
115
110
  /** Focuses the tab for the reference specified */
@@ -141,21 +136,17 @@ const Tabs = ({
141
136
  const nextRef = tabRefs[newIndex];
142
137
  focusTab(nextRef);
143
138
  };
144
-
145
- /** Handles the keyboard navigation of tabs */
146
- const handleKeyDown = index => {
147
- return event => {
148
- const isTabVertical = isInSidebar || position === "left";
149
- const isUp = isTabVertical && Event.isUpKey(event);
150
- const isDown = isTabVertical && Event.isDownKey(event);
151
- const isLeft = !isTabVertical && Event.isLeftKey(event);
152
- const isRight = !isTabVertical && Event.isRightKey(event);
153
- if (isUp || isLeft) {
154
- goToTab(event, index - 1);
155
- } else if (isDown || isRight) {
156
- goToTab(event, index + 1);
157
- }
158
- };
139
+ const createTabKeydownHandler = index => event => {
140
+ const isTabVertical = isInSidebar || position === "left";
141
+ const isUp = isTabVertical && Event.isUpKey(event);
142
+ const isDown = isTabVertical && Event.isDownKey(event);
143
+ const isLeft = !isTabVertical && Event.isLeftKey(event);
144
+ const isRight = !isTabVertical && Event.isRightKey(event);
145
+ if (isUp || isLeft) {
146
+ goToTab(event, index - 1);
147
+ } else if (isDown || isRight) {
148
+ goToTab(event, index + 1);
149
+ }
159
150
  };
160
151
 
161
152
  /** Build the headers for the tab component */
@@ -199,12 +190,11 @@ const Tabs = ({
199
190
  };
200
191
  return /*#__PURE__*/React.createElement(TabTitle, _extends({}, titleProps, {
201
192
  position: isInSidebar ? "left" : position,
202
- className: child.props.className || "",
203
193
  dataTabId: tabId,
204
194
  id: refId,
205
195
  key: tabId,
206
- onClick: handleTabClick,
207
- onKeyDown: handleKeyDown(index),
196
+ onClick: createTabClickHandler(tabId),
197
+ onKeyDown: createTabKeydownHandler(index),
208
198
  ref: tabRefs[index],
209
199
  tabIndex: isTabSelected(tabId) ? 0 : -1,
210
200
  title: title,
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const StyledEditorLink: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../link").LinkProps & import("react").RefAttributes<HTMLButtonElement | HTMLLinkElement>>, any, {}, never>;
2
+ declare const StyledEditorLink: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../link").LinkProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, any, {}, never>;
3
3
  export default StyledEditorLink;
@@ -268,14 +268,18 @@ if (process.env.NODE_ENV !== "production") {
268
268
  "aria-activedescendant": PropTypes.string,
269
269
  "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
270
270
  "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
271
+ "aria-braillelabel": PropTypes.string,
272
+ "aria-brailleroledescription": PropTypes.string,
271
273
  "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
272
274
  "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
273
275
  "aria-colcount": PropTypes.number,
274
276
  "aria-colindex": PropTypes.number,
277
+ "aria-colindextext": PropTypes.string,
275
278
  "aria-colspan": PropTypes.number,
276
279
  "aria-controls": PropTypes.string,
277
280
  "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
278
281
  "aria-describedby": PropTypes.string,
282
+ "aria-description": PropTypes.string,
279
283
  "aria-details": PropTypes.string,
280
284
  "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
281
285
  "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
@@ -305,6 +309,7 @@ if (process.env.NODE_ENV !== "production") {
305
309
  "aria-roledescription": PropTypes.string,
306
310
  "aria-rowcount": PropTypes.number,
307
311
  "aria-rowindex": PropTypes.number,
312
+ "aria-rowindextext": PropTypes.string,
308
313
  "aria-rowspan": PropTypes.number,
309
314
  "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
310
315
  "aria-setsize": PropTypes.number,
@@ -366,7 +371,7 @@ if (process.env.NODE_ENV !== "production") {
366
371
  "trimStart": PropTypes.func.isRequired,
367
372
  "valueOf": PropTypes.func.isRequired
368
373
  })]),
369
- "autoComplete": PropTypes.string,
374
+ "autoComplete": PropTypes.any,
370
375
  "autoCorrect": PropTypes.string,
371
376
  "autoFocus": PropTypes.bool,
372
377
  "autoSave": PropTypes.string,
@@ -378,7 +383,7 @@ if (process.env.NODE_ENV !== "production") {
378
383
  "className": PropTypes.string,
379
384
  "color": PropTypes.string,
380
385
  "content": PropTypes.string,
381
- "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
386
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "plaintext-only", "true"]), PropTypes.bool]),
382
387
  "contextMenu": PropTypes.string,
383
388
  "dangerouslySetInnerHTML": PropTypes.shape({
384
389
  "__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
@@ -703,9 +708,7 @@ if (process.env.NODE_ENV !== "production") {
703
708
  "onPointerDown": PropTypes.func,
704
709
  "onPointerDownCapture": PropTypes.func,
705
710
  "onPointerEnter": PropTypes.func,
706
- "onPointerEnterCapture": PropTypes.func,
707
711
  "onPointerLeave": PropTypes.func,
708
- "onPointerLeaveCapture": PropTypes.func,
709
712
  "onPointerMove": PropTypes.func,
710
713
  "onPointerMoveCapture": PropTypes.func,
711
714
  "onPointerOut": PropTypes.func,
@@ -720,6 +723,8 @@ if (process.env.NODE_ENV !== "production") {
720
723
  "onRateChangeCapture": PropTypes.func,
721
724
  "onReset": PropTypes.func,
722
725
  "onResetCapture": PropTypes.func,
726
+ "onResize": PropTypes.func,
727
+ "onResizeCapture": PropTypes.func,
723
728
  "onScroll": PropTypes.func,
724
729
  "onScrollCapture": PropTypes.func,
725
730
  "onSeeked": PropTypes.func,
@@ -231,14 +231,18 @@ if (process.env.NODE_ENV !== "production") {
231
231
  "aria-activedescendant": PropTypes.string,
232
232
  "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
233
233
  "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
234
+ "aria-braillelabel": PropTypes.string,
235
+ "aria-brailleroledescription": PropTypes.string,
234
236
  "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
235
237
  "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
236
238
  "aria-colcount": PropTypes.number,
237
239
  "aria-colindex": PropTypes.number,
240
+ "aria-colindextext": PropTypes.string,
238
241
  "aria-colspan": PropTypes.number,
239
242
  "aria-controls": PropTypes.string,
240
243
  "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
241
244
  "aria-describedby": PropTypes.string,
245
+ "aria-description": PropTypes.string,
242
246
  "aria-details": PropTypes.string,
243
247
  "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
244
248
  "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
@@ -268,6 +272,7 @@ if (process.env.NODE_ENV !== "production") {
268
272
  "aria-roledescription": PropTypes.string,
269
273
  "aria-rowcount": PropTypes.number,
270
274
  "aria-rowindex": PropTypes.number,
275
+ "aria-rowindextext": PropTypes.string,
271
276
  "aria-rowspan": PropTypes.number,
272
277
  "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
273
278
  "aria-setsize": PropTypes.number,
@@ -329,7 +334,7 @@ if (process.env.NODE_ENV !== "production") {
329
334
  "trimStart": PropTypes.func.isRequired,
330
335
  "valueOf": PropTypes.func.isRequired
331
336
  })]),
332
- "autoComplete": PropTypes.string,
337
+ "autoComplete": PropTypes.any,
333
338
  "autoCorrect": PropTypes.string,
334
339
  "autoFocus": PropTypes.bool,
335
340
  "autoSave": PropTypes.string,
@@ -340,7 +345,7 @@ if (process.env.NODE_ENV !== "production") {
340
345
  "className": PropTypes.string,
341
346
  "color": PropTypes.string,
342
347
  "content": PropTypes.string,
343
- "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
348
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "plaintext-only", "true"]), PropTypes.bool]),
344
349
  "contextMenu": PropTypes.string,
345
350
  "dangerouslySetInnerHTML": PropTypes.shape({
346
351
  "__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
@@ -668,9 +673,7 @@ if (process.env.NODE_ENV !== "production") {
668
673
  "onPointerDown": PropTypes.func,
669
674
  "onPointerDownCapture": PropTypes.func,
670
675
  "onPointerEnter": PropTypes.func,
671
- "onPointerEnterCapture": PropTypes.func,
672
676
  "onPointerLeave": PropTypes.func,
673
- "onPointerLeaveCapture": PropTypes.func,
674
677
  "onPointerMove": PropTypes.func,
675
678
  "onPointerMoveCapture": PropTypes.func,
676
679
  "onPointerOut": PropTypes.func,
@@ -685,6 +688,8 @@ if (process.env.NODE_ENV !== "production") {
685
688
  "onRateChangeCapture": PropTypes.func,
686
689
  "onReset": PropTypes.func,
687
690
  "onResetCapture": PropTypes.func,
691
+ "onResize": PropTypes.func,
692
+ "onResizeCapture": PropTypes.func,
688
693
  "onScroll": PropTypes.func,
689
694
  "onScrollCapture": PropTypes.func,
690
695
  "onSeeked": PropTypes.func,
@@ -327,7 +327,7 @@ if (process.env.NODE_ENV !== "production") {
327
327
  "valueOf": PropTypes.func.isRequired
328
328
  })]),
329
329
  "aria-hidden": PropTypes.oneOf(["false", "true"]),
330
- "as": PropTypes.oneOfType([PropTypes.oneOf(["a", "abbr", "address", "animate", "animateMotion", "animateTransform", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "circle", "cite", "clipPath", "code", "col", "colgroup", "data", "datalist", "dd", "defs", "del", "desc", "details", "dfn", "dialog", "div", "dl", "dt", "ellipse", "em", "embed", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "fieldset", "figcaption", "figure", "filter", "footer", "foreignObject", "form", "g", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "line", "linearGradient", "link", "main", "map", "mark", "marker", "mask", "menu", "menuitem", "meta", "metadata", "meter", "mpath", "nav", "noindex", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "path", "pattern", "picture", "polygon", "polyline", "pre", "progress", "q", "radialGradient", "rect", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "stop", "strong", "style", "sub", "summary", "sup", "svg", "switch", "symbol", "table", "tbody", "td", "template", "text", "textarea", "textPath", "tfoot", "th", "thead", "time", "title", "tr", "track", "tspan", "u", "ul", "use", "var", "video", "view", "wbr", "webview"]), PropTypes.func, PropTypes.shape({
330
+ "as": PropTypes.oneOfType([PropTypes.oneOf(["a", "abbr", "address", "animate", "animateMotion", "animateTransform", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "center", "circle", "cite", "clipPath", "code", "col", "colgroup", "data", "datalist", "dd", "defs", "del", "desc", "details", "dfn", "dialog", "div", "dl", "dt", "ellipse", "em", "embed", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "fieldset", "figcaption", "figure", "filter", "footer", "foreignObject", "form", "g", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "line", "linearGradient", "link", "main", "map", "mark", "marker", "mask", "menu", "menuitem", "meta", "metadata", "meter", "mpath", "nav", "noindex", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "path", "pattern", "picture", "polygon", "polyline", "pre", "progress", "q", "radialGradient", "rect", "rp", "rt", "ruby", "s", "samp", "script", "search", "section", "select", "set", "slot", "small", "source", "span", "stop", "strong", "style", "sub", "summary", "sup", "svg", "switch", "symbol", "table", "tbody", "td", "template", "text", "textarea", "textPath", "tfoot", "th", "thead", "time", "title", "tr", "track", "tspan", "u", "ul", "use", "var", "video", "view", "wbr", "webview"]), PropTypes.func, PropTypes.shape({
331
331
  "childContextTypes": PropTypes.object,
332
332
  "contextType": PropTypes.shape({
333
333
  "Consumer": PropTypes.func.isRequired,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const FlexTileDivider: () => JSX.Element;
3
2
  export default FlexTileDivider;
@@ -247,7 +247,6 @@ const Time = /*#__PURE__*/React.forwardRef(({
247
247
  });
248
248
  if (process.env.NODE_ENV !== "production") {
249
249
  Time.propTypes = {
250
- "children": PropTypes.node,
251
250
  "data-element": PropTypes.string,
252
251
  "data-role": PropTypes.string,
253
252
  "disabled": PropTypes.bool,
@@ -2,8 +2,8 @@
2
2
  import TypeIcon from "../message/__internal__/type-icon/type-icon.style";
3
3
  import { MessageVariant } from "../message/message.component";
4
4
  declare const StyledPortal: import("styled-components").StyledComponent<({ children, className, id, onReposition, inertOptOut, }: import("../portal/portal").PortalProps) => import("react").JSX.Element, any, {
5
- align?: "left" | "right" | "center" | undefined;
6
- alignY?: "top" | "bottom" | "center" | undefined;
5
+ align?: "center" | "left" | "right" | undefined;
6
+ alignY?: "center" | "top" | "bottom" | undefined;
7
7
  isNotice?: boolean | undefined;
8
8
  }, never>;
9
9
  declare type ToastVariants = MessageVariant;
@@ -21,7 +21,7 @@ declare const StyledToastContent: import("styled-components").StyledComponent<"d
21
21
  isDismiss?: boolean | undefined;
22
22
  }, never>;
23
23
  declare const ToastWrapper: import("styled-components").StyledComponent<"div", any, {
24
- align?: "left" | "right" | "center" | undefined;
24
+ align?: "center" | "left" | "right" | undefined;
25
25
  isNotice?: boolean | undefined;
26
26
  }, never>;
27
27
  export { StyledPortal, StyledToast, TypeIcon, StyledToastContent, ToastWrapper, };
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { TypographyProps } from "./typography.component";
3
3
  declare const StyledTypography: import("styled-components").StyledComponent<"span", any, {
4
- as: import("react").ElementType<any> | undefined;
4
+ as: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  size: string;
6
6
  weight: string;
7
7
  textTransform: string;
8
8
  textDecoration: string;
9
9
  lineHeight: string;
10
10
  defaultMargin: string;
11
- } & TypographyProps, "as" | "textDecoration" | "size" | "weight" | "textTransform" | "lineHeight" | "defaultMargin">;
11
+ } & TypographyProps, "textDecoration" | "size" | "as" | "weight" | "textTransform" | "lineHeight" | "defaultMargin">;
12
12
  export default StyledTypography;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpaceProps } from "styled-system";
3
2
  declare type TintRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100;
4
3
  export interface VerticalDividerProps extends SpaceProps {
@@ -10,7 +10,7 @@ export interface VerticalMenuFullScreenProps extends TagProps {
10
10
  /** Whether the menu is open or not */
11
11
  isOpen: boolean;
12
12
  /** A callback to be called when the close icon is clicked or enter is pressed when focused */
13
- onClose: (ev: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement>) => void;
13
+ onClose: (ev: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void;
14
14
  }
15
15
  export declare const VerticalMenuFullScreen: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, children, isOpen, onClose, ...rest }: VerticalMenuFullScreenProps) => React.JSX.Element | null;
16
16
  export default VerticalMenuFullScreen;
@@ -46,8 +46,7 @@ export const VerticalMenuFullScreen = ({
46
46
  scrollVariant: "light",
47
47
  as: "nav",
48
48
  "aria-label": ariaLabel,
49
- "aria-labelledby": ariaLabelledBy,
50
- onKeyDown: handleKeyDown
49
+ "aria-labelledby": ariaLabelledBy
51
50
  }, tagComponent("vertical-menu-full-screen", rest)), /*#__PURE__*/React.createElement(Box, {
52
51
  display: "flex",
53
52
  justifyContent: "flex-end",
@@ -23,5 +23,5 @@ export interface VerticalMenuItemProps<T = React.ElementType> extends PaddingPro
23
23
  component?: T;
24
24
  }
25
25
  declare type InferredComponentProps<T extends React.ElementType> = Omit<React.ComponentProps<T>, keyof VerticalMenuItemProps<T>>;
26
- export declare const VerticalMenuItem: <T>({ defaultOpen, title, iconType, adornment, children, component, active, height, href, ...rest }: T extends React.ElementType<any> ? InferredComponentProps<T> & VerticalMenuItemProps<T> : VerticalMenuItemProps<React.ElementType<any>>) => React.JSX.Element;
26
+ export declare const VerticalMenuItem: <T>({ defaultOpen, title, iconType, adornment, children, component, active, height, href, ...rest }: T extends React.ElementType<any, keyof React.JSX.IntrinsicElements> ? InferredComponentProps<T> & VerticalMenuItemProps<T> : VerticalMenuItemProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>) => React.JSX.Element;
27
27
  export default VerticalMenuItem;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useCharacterCount: (value?: string, characterLimit?: number, characterCountAriaLive?: "off" | "polite") => [JSX.Element | null, string | undefined];
3
2
  export default useCharacterCount;
@@ -8,7 +8,7 @@ declare const useChildButtons: (toggleButtonRef: React.RefObject<HTMLButtonEleme
8
8
  wrapperProps: {
9
9
  "data-element": string;
10
10
  role: string;
11
- onKeyDown: (ev: any) => void;
11
+ onKeyDown: (ev: import("react").KeyboardEvent<HTMLElement>) => void;
12
12
  minWidth: number;
13
13
  ref: import("react").RefObject<HTMLUListElement>;
14
14
  };
@@ -1,2 +1,2 @@
1
- declare const _default: (mainControlRef: React.RefObject<HTMLButtonElement>, getButtonChildren: () => NodeListOf<HTMLButtonElement>, hide: () => void, isOpen: boolean) => (ev: any) => void;
1
+ declare const _default: (mainControlRef: React.RefObject<HTMLButtonElement>, getButtonChildren: () => NodeListOf<HTMLButtonElement>, hide: () => void, isOpen: boolean) => (ev: React.KeyboardEvent<HTMLElement>) => void;
2
2
  export default _default;
@@ -6,9 +6,9 @@ export default (mainControlRef, getButtonChildren, hide, isOpen) => {
6
6
  hide();
7
7
  mainControlRef.current?.focus();
8
8
  }, [hide, mainControlRef]);
9
- const handleEscapeKey = useCallback(e => {
9
+ const handleEscapeKey = useCallback(ev => {
10
10
  /* istanbul ignore else */
11
- if (Events.isEscKey(e)) {
11
+ if (Events.isEscKey(ev)) {
12
12
  refocusMainControl();
13
13
  }
14
14
  }, [refocusMainControl]);
@@ -1,2 +1,2 @@
1
- export declare function useStableCallback(callback?: (...args: unknown[]) => unknown): ((...args: any[]) => unknown) | undefined;
1
+ export declare function useStableCallback(callback?: (...args: unknown[]) => unknown): ((...args: unknown[]) => unknown) | undefined;
2
2
  export default useStableCallback;
@@ -128,14 +128,18 @@ if (process.env.NODE_ENV !== "production") {
128
128
  "aria-activedescendant": _propTypes.default.string,
129
129
  "aria-atomic": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
130
130
  "aria-autocomplete": _propTypes.default.oneOf(["both", "inline", "list", "none"]),
131
+ "aria-braillelabel": _propTypes.default.string,
132
+ "aria-brailleroledescription": _propTypes.default.string,
131
133
  "aria-busy": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
132
134
  "aria-checked": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
133
135
  "aria-colcount": _propTypes.default.number,
134
136
  "aria-colindex": _propTypes.default.number,
137
+ "aria-colindextext": _propTypes.default.string,
135
138
  "aria-colspan": _propTypes.default.number,
136
139
  "aria-controls": _propTypes.default.string,
137
140
  "aria-current": _propTypes.default.oneOfType([_propTypes.default.oneOf(["date", "false", "location", "page", "step", "time", "true"]), _propTypes.default.bool]),
138
141
  "aria-describedby": _propTypes.default.string,
142
+ "aria-description": _propTypes.default.string,
139
143
  "aria-details": _propTypes.default.string,
140
144
  "aria-disabled": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
141
145
  "aria-dropeffect": _propTypes.default.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
@@ -165,6 +169,7 @@ if (process.env.NODE_ENV !== "production") {
165
169
  "aria-roledescription": _propTypes.default.string,
166
170
  "aria-rowcount": _propTypes.default.number,
167
171
  "aria-rowindex": _propTypes.default.number,
172
+ "aria-rowindextext": _propTypes.default.string,
168
173
  "aria-rowspan": _propTypes.default.number,
169
174
  "aria-selected": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
170
175
  "aria-setsize": _propTypes.default.number,
@@ -226,7 +231,7 @@ if (process.env.NODE_ENV !== "production") {
226
231
  "trimStart": _propTypes.default.func.isRequired,
227
232
  "valueOf": _propTypes.default.func.isRequired
228
233
  })]),
229
- "autoComplete": _propTypes.default.string,
234
+ "autoComplete": _propTypes.default.any,
230
235
  "autoCorrect": _propTypes.default.string,
231
236
  "autoFocus": _propTypes.default.bool,
232
237
  "autoSave": _propTypes.default.string,
@@ -236,7 +241,7 @@ if (process.env.NODE_ENV !== "production") {
236
241
  "className": _propTypes.default.string,
237
242
  "color": _propTypes.default.string,
238
243
  "content": _propTypes.default.string,
239
- "contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
244
+ "contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "plaintext-only", "true"]), _propTypes.default.bool]),
240
245
  "contextMenu": _propTypes.default.string,
241
246
  "dangerouslySetInnerHTML": _propTypes.default.shape({
242
247
  "__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
@@ -397,9 +402,7 @@ if (process.env.NODE_ENV !== "production") {
397
402
  "onPointerDown": _propTypes.default.func,
398
403
  "onPointerDownCapture": _propTypes.default.func,
399
404
  "onPointerEnter": _propTypes.default.func,
400
- "onPointerEnterCapture": _propTypes.default.func,
401
405
  "onPointerLeave": _propTypes.default.func,
402
- "onPointerLeaveCapture": _propTypes.default.func,
403
406
  "onPointerMove": _propTypes.default.func,
404
407
  "onPointerMoveCapture": _propTypes.default.func,
405
408
  "onPointerOut": _propTypes.default.func,
@@ -414,6 +417,8 @@ if (process.env.NODE_ENV !== "production") {
414
417
  "onRateChangeCapture": _propTypes.default.func,
415
418
  "onReset": _propTypes.default.func,
416
419
  "onResetCapture": _propTypes.default.func,
420
+ "onResize": _propTypes.default.func,
421
+ "onResizeCapture": _propTypes.default.func,
417
422
  "onScroll": _propTypes.default.func,
418
423
  "onScrollCapture": _propTypes.default.func,
419
424
  "onSeeked": _propTypes.default.func,
@@ -95,14 +95,18 @@ if (process.env.NODE_ENV !== "production") {
95
95
  "aria-activedescendant": _propTypes.default.string,
96
96
  "aria-atomic": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
97
97
  "aria-autocomplete": _propTypes.default.oneOf(["both", "inline", "list", "none"]),
98
+ "aria-braillelabel": _propTypes.default.string,
99
+ "aria-brailleroledescription": _propTypes.default.string,
98
100
  "aria-busy": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
99
101
  "aria-checked": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
100
102
  "aria-colcount": _propTypes.default.number,
101
103
  "aria-colindex": _propTypes.default.number,
104
+ "aria-colindextext": _propTypes.default.string,
102
105
  "aria-colspan": _propTypes.default.number,
103
106
  "aria-controls": _propTypes.default.string,
104
107
  "aria-current": _propTypes.default.oneOfType([_propTypes.default.oneOf(["date", "false", "location", "page", "step", "time", "true"]), _propTypes.default.bool]),
105
108
  "aria-describedby": _propTypes.default.string,
109
+ "aria-description": _propTypes.default.string,
106
110
  "aria-details": _propTypes.default.string,
107
111
  "aria-disabled": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
108
112
  "aria-dropeffect": _propTypes.default.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
@@ -132,6 +136,7 @@ if (process.env.NODE_ENV !== "production") {
132
136
  "aria-roledescription": _propTypes.default.string,
133
137
  "aria-rowcount": _propTypes.default.number,
134
138
  "aria-rowindex": _propTypes.default.number,
139
+ "aria-rowindextext": _propTypes.default.string,
135
140
  "aria-rowspan": _propTypes.default.number,
136
141
  "aria-selected": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
137
142
  "aria-setsize": _propTypes.default.number,
@@ -193,7 +198,7 @@ if (process.env.NODE_ENV !== "production") {
193
198
  "trimStart": _propTypes.default.func.isRequired,
194
199
  "valueOf": _propTypes.default.func.isRequired
195
200
  })]),
196
- "autoComplete": _propTypes.default.string,
201
+ "autoComplete": _propTypes.default.any,
197
202
  "autoCorrect": _propTypes.default.string,
198
203
  "autoFocus": _propTypes.default.bool,
199
204
  "autoSave": _propTypes.default.string,
@@ -203,7 +208,7 @@ if (process.env.NODE_ENV !== "production") {
203
208
  "className": _propTypes.default.string,
204
209
  "color": _propTypes.default.string,
205
210
  "content": _propTypes.default.string,
206
- "contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
211
+ "contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "plaintext-only", "true"]), _propTypes.default.bool]),
207
212
  "contextMenu": _propTypes.default.string,
208
213
  "dangerouslySetInnerHTML": _propTypes.default.shape({
209
214
  "__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
@@ -352,9 +357,7 @@ if (process.env.NODE_ENV !== "production") {
352
357
  "onPointerDown": _propTypes.default.func,
353
358
  "onPointerDownCapture": _propTypes.default.func,
354
359
  "onPointerEnter": _propTypes.default.func,
355
- "onPointerEnterCapture": _propTypes.default.func,
356
360
  "onPointerLeave": _propTypes.default.func,
357
- "onPointerLeaveCapture": _propTypes.default.func,
358
361
  "onPointerMove": _propTypes.default.func,
359
362
  "onPointerMoveCapture": _propTypes.default.func,
360
363
  "onPointerOut": _propTypes.default.func,
@@ -369,6 +372,8 @@ if (process.env.NODE_ENV !== "production") {
369
372
  "onRateChangeCapture": _propTypes.default.func,
370
373
  "onReset": _propTypes.default.func,
371
374
  "onResetCapture": _propTypes.default.func,
375
+ "onResize": _propTypes.default.func,
376
+ "onResizeCapture": _propTypes.default.func,
372
377
  "onScroll": _propTypes.default.func,
373
378
  "onScrollCapture": _propTypes.default.func,
374
379
  "onSeeked": _propTypes.default.func,
@@ -172,14 +172,18 @@ if (process.env.NODE_ENV !== "production") {
172
172
  "aria-activedescendant": _propTypes.default.string,
173
173
  "aria-atomic": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
174
174
  "aria-autocomplete": _propTypes.default.oneOf(["both", "inline", "list", "none"]),
175
+ "aria-braillelabel": _propTypes.default.string,
176
+ "aria-brailleroledescription": _propTypes.default.string,
175
177
  "aria-busy": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
176
178
  "aria-checked": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
177
179
  "aria-colcount": _propTypes.default.number,
178
180
  "aria-colindex": _propTypes.default.number,
181
+ "aria-colindextext": _propTypes.default.string,
179
182
  "aria-colspan": _propTypes.default.number,
180
183
  "aria-controls": _propTypes.default.string,
181
184
  "aria-current": _propTypes.default.oneOfType([_propTypes.default.oneOf(["date", "false", "location", "page", "step", "time", "true"]), _propTypes.default.bool]),
182
185
  "aria-describedby": _propTypes.default.string,
186
+ "aria-description": _propTypes.default.string,
183
187
  "aria-details": _propTypes.default.string,
184
188
  "aria-disabled": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
185
189
  "aria-dropeffect": _propTypes.default.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
@@ -209,6 +213,7 @@ if (process.env.NODE_ENV !== "production") {
209
213
  "aria-roledescription": _propTypes.default.string,
210
214
  "aria-rowcount": _propTypes.default.number,
211
215
  "aria-rowindex": _propTypes.default.number,
216
+ "aria-rowindextext": _propTypes.default.string,
212
217
  "aria-rowspan": _propTypes.default.number,
213
218
  "aria-selected": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
214
219
  "aria-setsize": _propTypes.default.number,
@@ -270,7 +275,7 @@ if (process.env.NODE_ENV !== "production") {
270
275
  "trimStart": _propTypes.default.func.isRequired,
271
276
  "valueOf": _propTypes.default.func.isRequired
272
277
  })]),
273
- "autoComplete": _propTypes.default.string,
278
+ "autoComplete": _propTypes.default.any,
274
279
  "autoCorrect": _propTypes.default.string,
275
280
  "autoFocus": _propTypes.default.bool,
276
281
  "autoSave": _propTypes.default.string,
@@ -281,7 +286,7 @@ if (process.env.NODE_ENV !== "production") {
281
286
  "color": _propTypes.default.string,
282
287
  "cols": _propTypes.default.number,
283
288
  "content": _propTypes.default.string,
284
- "contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
289
+ "contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "plaintext-only", "true"]), _propTypes.default.bool]),
285
290
  "contextMenu": _propTypes.default.string,
286
291
  "dangerouslySetInnerHTML": _propTypes.default.shape({
287
292
  "__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
@@ -433,9 +438,7 @@ if (process.env.NODE_ENV !== "production") {
433
438
  "onPointerDown": _propTypes.default.func,
434
439
  "onPointerDownCapture": _propTypes.default.func,
435
440
  "onPointerEnter": _propTypes.default.func,
436
- "onPointerEnterCapture": _propTypes.default.func,
437
441
  "onPointerLeave": _propTypes.default.func,
438
- "onPointerLeaveCapture": _propTypes.default.func,
439
442
  "onPointerMove": _propTypes.default.func,
440
443
  "onPointerMoveCapture": _propTypes.default.func,
441
444
  "onPointerOut": _propTypes.default.func,
@@ -450,6 +453,8 @@ if (process.env.NODE_ENV !== "production") {
450
453
  "onRateChangeCapture": _propTypes.default.func,
451
454
  "onReset": _propTypes.default.func,
452
455
  "onResetCapture": _propTypes.default.func,
456
+ "onResize": _propTypes.default.func,
457
+ "onResizeCapture": _propTypes.default.func,
453
458
  "onScroll": _propTypes.default.func,
454
459
  "onScrollCapture": _propTypes.default.func,
455
460
  "onSeeked": _propTypes.default.func,
@@ -29,7 +29,7 @@ const RadioButtonMapper = ({
29
29
  return result;
30
30
  }, [filteredChildren]);
31
31
  const isControlled = value !== undefined;
32
- const [checkedValue, setCheckedValue] = (0, _react.useState)(false);
32
+ const [checkedValue, setCheckedValue] = (0, _react.useState)("");
33
33
  const onChangeProp = (0, _react.useCallback)(event => {
34
34
  onChange?.(event);
35
35
  if (!isControlled) {
@@ -1,2 +1,2 @@
1
- declare const _default: (ev: CustomEvent) => EventTarget[];
1
+ declare const _default: (ev: Event) => EventTarget[];
2
2
  export default _default;
@@ -75,6 +75,6 @@ declare const Events: {
75
75
  * Gets the event's path which is an array of the objects on which listeners will be invoked.
76
76
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
77
77
  */
78
- composedPath: (ev: CustomEvent) => EventTarget[];
78
+ composedPath: (ev: Event) => EventTarget[];
79
79
  };
80
80
  export default Events;
@@ -54,7 +54,7 @@ const Accordion = exports.Accordion = /*#__PURE__*/_react.default.forwardRef(({
54
54
  if (!isControlled) {
55
55
  setIsExpandedInternal(!isExpanded);
56
56
  }
57
- if (onChange) onChange(ev, !isExpanded);
57
+ onChange?.(ev, !isExpanded);
58
58
  }, [isControlled, isExpanded, onChange]);
59
59
  const handleKeyDown = (0, _react.useCallback)(ev => {
60
60
  if (handleKeyboardAccessibility) {
@@ -38,12 +38,7 @@ const ActionPopoverMenu = /*#__PURE__*/_react.default.forwardRef(({
38
38
  } = context;
39
39
  !(setOpen && setFocusIndex && typeof focusIndex !== "undefined") ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "ActionPopoverMenu must be used within an ActionPopover or ActionPopoverItem component") : (0, _invariant.default)(false) : void 0;
40
40
  const hasProperChildren = (0, _react.useMemo)(() => {
41
- const incorrectChild = _react.default.Children.toArray(children).find(child => {
42
- if (! /*#__PURE__*/_react.default.isValidElement(child)) {
43
- return true;
44
- }
45
- return child.type.displayName !== _actionPopoverItem.default.displayName && child.type.displayName !== _actionPopoverDivider.default.displayName;
46
- });
41
+ const incorrectChild = _react.default.Children.toArray(children).find(child => ! /*#__PURE__*/_react.default.isValidElement(child) || child.type.displayName !== "ActionPopoverItem" && child.type.displayName !== "ActionPopoverDivider");
47
42
  return !incorrectChild;
48
43
  }, [children]);
49
44
  !hasProperChildren ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, `ActionPopoverMenu only accepts children of type \`${_actionPopoverItem.default.displayName}\`` + ` and \`${_actionPopoverDivider.default.displayName}\`.`) : (0, _invariant.default)(false) : void 0;
@@ -103,10 +103,15 @@ const ActionPopover = exports.ActionPopover = /*#__PURE__*/(0, _react.forwardRef
103
103
  // https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-actions.html
104
104
 
105
105
  const onButtonKeyDown = (0, _react.useCallback)(e => {
106
- if (_events.default.isSpaceKey(e) || _events.default.isDownKey(e) || _events.default.isEnterKey(e) || _events.default.isUpKey(e)) {
106
+ if (_events.default.isSpaceKey(e) || _events.default.isDownKey(e) || _events.default.isEnterKey(e)) {
107
107
  e.preventDefault();
108
108
  e.stopPropagation();
109
- setFocusIndex(_events.default.isUpKey(e) ? lastFocusableItem : firstFocusableItem);
109
+ setFocusIndex(firstFocusableItem);
110
+ setOpen(true);
111
+ } else if (_events.default.isUpKey(e)) {
112
+ e.preventDefault();
113
+ e.stopPropagation();
114
+ setFocusIndex(lastFocusableItem);
110
115
  setOpen(true);
111
116
  }
112
117
  }, [firstFocusableItem, lastFocusableItem, setOpen]);