carbon-react 106.6.6 → 106.6.9

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 (76) hide show
  1. package/esm/__internal__/utils/argTypes/specialCharacters.d.ts +36 -0
  2. package/esm/__internal__/utils/argTypes/specialCharacters.js +36 -0
  3. package/esm/components/accordion/accordion-group/accordion-group.component.d.ts +9 -23
  4. package/esm/components/accordion/accordion-group/accordion-group.component.js +222 -25
  5. package/esm/components/accordion/accordion.component.d.ts +44 -2
  6. package/esm/components/accordion/accordion.component.js +648 -68
  7. package/esm/components/accordion/accordion.style.d.ts +45 -9
  8. package/esm/components/accordion/index.d.ts +4 -2
  9. package/esm/components/decimal/decimal.component.js +12 -10
  10. package/esm/components/menu/menu-item/menu-item.style.js +6 -3
  11. package/esm/components/multi-action-button/index.d.ts +2 -1
  12. package/esm/components/multi-action-button/multi-action-button.component.d.ts +9 -52
  13. package/esm/components/multi-action-button/multi-action-button.component.js +471 -67
  14. package/esm/components/multi-action-button/multi-action-button.config.d.ts +3 -3
  15. package/esm/components/multi-action-button/multi-action-button.style.d.ts +10 -2
  16. package/esm/components/multi-action-button/multi-action-button.style.js +4 -7
  17. package/esm/components/portal/portal.js +0 -5
  18. package/esm/components/portrait/portrait-initials.component.js +1 -2
  19. package/esm/components/tile-select/__internal__/accordion/accordion.style.d.ts +2 -2
  20. package/esm/components/tooltip/tooltip.component.d.ts +3 -0
  21. package/esm/style/utils/filter-out-styled-system-spacing-props.d.ts +1 -1
  22. package/esm/style/utils/filter-out-styled-system-spacing-props.js +1 -1
  23. package/lib/__internal__/utils/argTypes/specialCharacters.d.ts +36 -0
  24. package/lib/__internal__/utils/argTypes/specialCharacters.js +46 -0
  25. package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +9 -23
  26. package/lib/components/accordion/accordion-group/accordion-group.component.js +225 -29
  27. package/lib/components/accordion/accordion.component.d.ts +44 -2
  28. package/lib/components/accordion/accordion.component.js +649 -70
  29. package/lib/components/accordion/accordion.style.d.ts +45 -9
  30. package/lib/components/accordion/index.d.ts +4 -2
  31. package/lib/components/decimal/decimal.component.js +12 -10
  32. package/lib/components/menu/menu-item/menu-item.style.js +6 -3
  33. package/lib/components/multi-action-button/index.d.ts +2 -1
  34. package/lib/components/multi-action-button/multi-action-button.component.d.ts +9 -52
  35. package/lib/components/multi-action-button/multi-action-button.component.js +471 -70
  36. package/lib/components/multi-action-button/multi-action-button.config.d.ts +3 -3
  37. package/lib/components/multi-action-button/multi-action-button.style.d.ts +10 -2
  38. package/lib/components/multi-action-button/multi-action-button.style.js +4 -7
  39. package/lib/components/portal/portal.js +0 -6
  40. package/lib/components/portrait/portrait-initials.component.js +1 -5
  41. package/lib/components/tile-select/__internal__/accordion/accordion.style.d.ts +2 -2
  42. package/lib/components/tooltip/tooltip.component.d.ts +3 -0
  43. package/lib/style/utils/filter-out-styled-system-spacing-props.d.ts +1 -1
  44. package/lib/style/utils/filter-out-styled-system-spacing-props.js +1 -1
  45. package/package.json +2 -1
  46. package/esm/__internal__/utils/helpers/browser/index.d.ts +0 -15
  47. package/esm/__internal__/utils/helpers/browser/index.js +0 -33
  48. package/esm/components/accordion/accordion-group/accordion-group.d.ts +0 -17
  49. package/esm/components/accordion/accordion.d.ts +0 -54
  50. package/esm/components/action-popover/action-popover-test.stories.js +0 -76
  51. package/esm/components/button-bar/button-bar-test.stories.js +0 -122
  52. package/esm/components/draggable/draggable-test.stories.js +0 -48
  53. package/esm/components/duelling-picklist/duelling-picklist-test.stories.js +0 -539
  54. package/esm/components/menu/menu-test.stories.js +0 -109
  55. package/esm/components/multi-action-button/multi-action-button.d.ts +0 -10
  56. package/esm/components/profile/profile-test.stories.js +0 -55
  57. package/esm/components/progress-tracker/progress-tracker-test.stories.js +0 -63
  58. package/esm/components/select/simple-select/simple-select-test.stories.js +0 -193
  59. package/esm/components/show-edit-pod/show-edit-pod-test.stories.js +0 -143
  60. package/esm/components/textarea/textarea-test.stories.js +0 -154
  61. package/lib/__internal__/utils/helpers/browser/index.d.ts +0 -15
  62. package/lib/__internal__/utils/helpers/browser/index.js +0 -40
  63. package/lib/__internal__/utils/helpers/browser/package.json +0 -6
  64. package/lib/components/accordion/accordion-group/accordion-group.d.ts +0 -17
  65. package/lib/components/accordion/accordion.d.ts +0 -54
  66. package/lib/components/action-popover/action-popover-test.stories.js +0 -95
  67. package/lib/components/button-bar/button-bar-test.stories.js +0 -145
  68. package/lib/components/draggable/draggable-test.stories.js +0 -66
  69. package/lib/components/duelling-picklist/duelling-picklist-test.stories.js +0 -573
  70. package/lib/components/menu/menu-test.stories.js +0 -132
  71. package/lib/components/multi-action-button/multi-action-button.d.ts +0 -10
  72. package/lib/components/profile/profile-test.stories.js +0 -75
  73. package/lib/components/progress-tracker/progress-tracker-test.stories.js +0 -79
  74. package/lib/components/select/simple-select/simple-select-test.stories.js +0 -206
  75. package/lib/components/show-edit-pod/show-edit-pod-test.stories.js +0 -165
  76. package/lib/components/textarea/textarea-test.stories.js +0 -173
@@ -1,8 +1,7 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
- import React, { useCallback, useEffect, useState, useRef } from "react";
3
+ import React, { useCallback, useEffect, useState, useRef, useMemo } from "react";
4
4
  import PropTypes from "prop-types";
5
- import styledSystemPropTypes from "@styled-system/prop-types";
6
5
  import { StyledMultiActionButton, StyledButtonChildrenContainer } from "./multi-action-button.style";
7
6
  import Button, { ButtonWithForwardRef } from "../button";
8
7
  import Events from "../../__internal__/utils/helpers/events";
@@ -10,7 +9,6 @@ import Popover from "../../__internal__/popover";
10
9
  import { filterStyledSystemMarginProps, filterOutStyledSystemSpacingProps } from "../../style/utils";
11
10
  import { defaultFocusableSelectors } from "../../__internal__/focus-trap/focus-trap-utils";
12
11
  import Logger from "../../__internal__/utils/logger";
13
- const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
14
12
  let deprecatedWarnTriggered = false;
15
13
 
16
14
  const MultiActionButton = ({
@@ -32,10 +30,10 @@ const MultiActionButton = ({
32
30
  "The `as` prop is deprecated and will soon be removed from the `MultiActionButton` component interface. You should use the `buttonType` prop to achieve the same styling. The following codemod is available to help with updating your code https://github.com/Sage/carbon-codemod/tree/master/transforms/rename-prop");
33
31
  }
34
32
 
35
- const ref = useRef();
36
- const buttonRef = useRef();
37
- const buttonContainer = useRef();
38
- const buttonChildren = React.Children.toArray(children);
33
+ const ref = useRef(null);
34
+ const buttonRef = useRef(null);
35
+ const buttonContainer = useRef(null);
36
+ const buttonChildren = useMemo(() => React.Children.toArray(children), [children]);
39
37
  const additionalButtons = useRef(buttonChildren.map(() => /*#__PURE__*/React.createRef()));
40
38
  const listening = useRef(false);
41
39
  const isMainButtonFocused = useRef(false);
@@ -49,11 +47,19 @@ const MultiActionButton = ({
49
47
 
50
48
  const showButtons = () => {
51
49
  setShowAdditionalButtons(true);
52
- setMinWidth(ref.current.getBoundingClientRect().width);
50
+ /* istanbul ignore else */
51
+
52
+ if (ref.current) {
53
+ setMinWidth(ref.current.getBoundingClientRect().width);
54
+ }
53
55
  };
54
56
 
55
57
  const childrenWithProps = () => {
56
58
  return buttonChildren.map((child, index) => {
59
+ if (! /*#__PURE__*/React.isValidElement(child)) {
60
+ return child;
61
+ }
62
+
57
63
  const props = {
58
64
  key: index.toString(),
59
65
  role: "menuitem",
@@ -83,12 +89,12 @@ const MultiActionButton = ({
83
89
  let nextIndex = -1;
84
90
 
85
91
  if (Events.isUpKey(ev)) {
86
- nextIndex = currentIndex > 0 ? currentIndex - 1 : children.length - 1;
92
+ nextIndex = currentIndex > 0 ? currentIndex - 1 : buttonChildren.length - 1;
87
93
  ev.preventDefault();
88
94
  }
89
95
 
90
96
  if (Events.isDownKey(ev)) {
91
- nextIndex = currentIndex < children.length - 1 ? currentIndex + 1 : 0;
97
+ nextIndex = currentIndex < buttonChildren.length - 1 ? currentIndex + 1 : 0;
92
98
  ev.preventDefault();
93
99
  }
94
100
 
@@ -103,13 +109,17 @@ const MultiActionButton = ({
103
109
  }
104
110
 
105
111
  if (nextIndex > -1) {
106
- additionalButtons.current[nextIndex].current.focus();
112
+ var _additionalButtons$cu;
113
+
114
+ (_additionalButtons$cu = additionalButtons.current[nextIndex].current) === null || _additionalButtons$cu === void 0 ? void 0 : _additionalButtons$cu.focus();
107
115
  }
108
- }, [children, hideButtons]);
116
+ }, [buttonChildren, hideButtons]);
109
117
  const handleClickOutside = useCallback(({
110
118
  target
111
119
  }) => {
112
- if (!ref.current.contains(target) && buttonContainer.current && !buttonContainer.current.contains(target)) {
120
+ var _ref$current, _buttonContainer$curr;
121
+
122
+ if (!((_ref$current = ref.current) !== null && _ref$current !== void 0 && _ref$current.contains(target)) && !((_buttonContainer$curr = buttonContainer.current) !== null && _buttonContainer$curr !== void 0 && _buttonContainer$curr.contains(target))) {
113
123
  hideButtons();
114
124
  }
115
125
  }, [hideButtons]);
@@ -149,9 +159,9 @@ const MultiActionButton = ({
149
159
 
150
160
 
151
161
  setTimeout(() => {
152
- var _additionalButtons$cu, _additionalButtons$cu2;
162
+ var _additionalButtons$cu2, _additionalButtons$cu3;
153
163
 
154
- (_additionalButtons$cu = additionalButtons.current[0]) === null || _additionalButtons$cu === void 0 ? void 0 : (_additionalButtons$cu2 = _additionalButtons$cu.current) === null || _additionalButtons$cu2 === void 0 ? void 0 : _additionalButtons$cu2.focus();
164
+ (_additionalButtons$cu2 = additionalButtons.current[0]) === null || _additionalButtons$cu2 === void 0 ? void 0 : (_additionalButtons$cu3 = _additionalButtons$cu2.current) === null || _additionalButtons$cu3 === void 0 ? void 0 : _additionalButtons$cu3.focus();
155
165
  }, 0);
156
166
  }
157
167
  };
@@ -171,25 +181,20 @@ const MultiActionButton = ({
171
181
  isMainButtonFocused.current = false;
172
182
  };
173
183
 
174
- const mainButtonProps = () => {
175
- const opts = {
176
- disabled,
177
- displayed: showAdditionalButtons,
178
- onTouchStart: showButtons,
179
- onFocus: focusMainButton,
180
- onBlur: blurMainButton,
181
- onKeyDown: handleMainButtonKeyDown,
182
- buttonType: buttonType || as,
183
- size,
184
- subtext,
185
- ...filterOutStyledSystemSpacingProps(rest)
186
- };
187
-
188
- if (!disabled) {
189
- opts.onMouseEnter = showButtons;
190
- }
191
-
192
- return opts;
184
+ const mainButtonProps = {
185
+ disabled,
186
+ displayed: showAdditionalButtons,
187
+ onTouchStart: showButtons,
188
+ onFocus: focusMainButton,
189
+ onBlur: blurMainButton,
190
+ onKeyDown: handleMainButtonKeyDown,
191
+ buttonType: buttonType || as,
192
+ size,
193
+ subtext,
194
+ ...(!disabled && {
195
+ onMouseEnter: showButtons
196
+ }),
197
+ ...filterOutStyledSystemSpacingProps(rest)
193
198
  };
194
199
 
195
200
  const renderAdditionalButtons = () => /*#__PURE__*/React.createElement(Popover, {
@@ -211,52 +216,451 @@ const MultiActionButton = ({
211
216
  "data-component": "multi-action-button",
212
217
  "data-element": dataElement,
213
218
  "data-role": dataRole,
214
- align: align,
215
219
  displayed: showAdditionalButtons
216
220
  }, filterStyledSystemMarginProps(rest)), /*#__PURE__*/React.createElement(Button, _extends({
217
221
  "aria-haspopup": "true",
218
222
  "aria-expanded": showAdditionalButtons,
219
223
  "aria-label": "Show more",
220
224
  "data-element": "toggle-button",
221
- key: "toggle-button",
222
- onKeyDown: handleMainButtonKeyDown
223
- }, mainButtonProps(), {
225
+ key: "toggle-button"
226
+ }, mainButtonProps, {
224
227
  forwardRef: buttonRef,
225
228
  iconPosition: "after",
226
229
  iconType: "dropdown"
227
230
  }), text), showAdditionalButtons && renderAdditionalButtons());
228
231
  };
229
232
 
230
- MultiActionButton.propTypes = { ...marginPropTypes,
231
-
232
- /** Button type: "primary" | "secondary" | "tertiary" */
233
- buttonType: PropTypes.oneOf(["primary", "secondary", "tertiary"]),
234
-
235
- /** The additional button to display. */
236
- children: PropTypes.node.isRequired,
237
-
238
- /** Second text child, renders under main text, only when size is "large". */
239
- subtext: PropTypes.string,
240
-
241
- /** Customizes the appearance, can be set to 'primary', 'secondary' or 'transparent'. */
242
- as: PropTypes.string,
243
-
244
- /** The text to be displayed in the SplitButton. */
245
- text: PropTypes.string.isRequired,
246
-
247
- /** Gives the button a disabled state. */
248
- disabled: PropTypes.bool,
249
-
250
- /** The size of the MultiActionButton. */
251
- size: PropTypes.oneOf(["small", "medium", "large"]),
252
-
253
- /** A custom value for the data-element attribute. */
233
+ MultiActionButton.propTypes = {
234
+ "about": PropTypes.string,
235
+ "accessKey": PropTypes.string,
236
+ "align": PropTypes.oneOf(["left", "right"]),
237
+ "aria-activedescendant": PropTypes.string,
238
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
239
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
240
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
241
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
242
+ "aria-colcount": PropTypes.number,
243
+ "aria-colindex": PropTypes.number,
244
+ "aria-colspan": PropTypes.number,
245
+ "aria-controls": PropTypes.string,
246
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
247
+ "aria-describedby": PropTypes.string,
248
+ "aria-details": PropTypes.string,
249
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
250
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
251
+ "aria-errormessage": PropTypes.string,
252
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
253
+ "aria-flowto": PropTypes.string,
254
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
255
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
256
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
257
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
258
+ "aria-keyshortcuts": PropTypes.string,
259
+ "aria-label": PropTypes.string,
260
+ "aria-labelledby": PropTypes.string,
261
+ "aria-level": PropTypes.number,
262
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
263
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
264
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
265
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
266
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
267
+ "aria-owns": PropTypes.string,
268
+ "aria-placeholder": PropTypes.string,
269
+ "aria-posinset": PropTypes.number,
270
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
271
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
272
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
273
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
274
+ "aria-roledescription": PropTypes.string,
275
+ "aria-rowcount": PropTypes.number,
276
+ "aria-rowindex": PropTypes.number,
277
+ "aria-rowspan": PropTypes.number,
278
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
279
+ "aria-setsize": PropTypes.number,
280
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
281
+ "aria-valuemax": PropTypes.number,
282
+ "aria-valuemin": PropTypes.number,
283
+ "aria-valuenow": PropTypes.number,
284
+ "aria-valuetext": PropTypes.string,
285
+ "as": PropTypes.oneOf(["primary", "secondary"]),
286
+ "autoCapitalize": PropTypes.string,
287
+ "autoCorrect": PropTypes.string,
288
+ "autoFocus": PropTypes.bool,
289
+ "autoSave": PropTypes.string,
290
+ "buttonType": PropTypes.oneOf(["primary", "secondary", "tertiary"]),
291
+ "children": PropTypes.node,
292
+ "className": PropTypes.string,
293
+ "color": PropTypes.string,
294
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
295
+ "contextMenu": PropTypes.string,
296
+ "dangerouslySetInnerHTML": PropTypes.shape({
297
+ "__html": PropTypes.string.isRequired
298
+ }),
254
299
  "data-element": PropTypes.string,
255
-
256
- /** A custom value for the data-element attribute. */
257
300
  "data-role": PropTypes.string,
258
-
259
- /** Aligns the button's options */
260
- align: PropTypes.oneOf(["left", "right"])
301
+ "datatype": PropTypes.string,
302
+ "defaultChecked": PropTypes.bool,
303
+ "defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
304
+ "dir": PropTypes.string,
305
+ "disabled": PropTypes.bool,
306
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
307
+ "form": PropTypes.string,
308
+ "formAction": PropTypes.string,
309
+ "formEncType": PropTypes.string,
310
+ "formMethod": PropTypes.string,
311
+ "formNoValidate": PropTypes.bool,
312
+ "formTarget": PropTypes.string,
313
+ "hidden": PropTypes.bool,
314
+ "iconPosition": PropTypes.oneOf(["after", "before"]),
315
+ "id": PropTypes.string,
316
+ "inlist": PropTypes.any,
317
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
318
+ "is": PropTypes.string,
319
+ "itemID": PropTypes.string,
320
+ "itemProp": PropTypes.string,
321
+ "itemRef": PropTypes.string,
322
+ "itemScope": PropTypes.bool,
323
+ "itemType": PropTypes.string,
324
+ "lang": PropTypes.string,
325
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
326
+ "__@toStringTag": PropTypes.string.isRequired,
327
+ "description": PropTypes.string,
328
+ "toString": PropTypes.func.isRequired,
329
+ "valueOf": PropTypes.func.isRequired
330
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
331
+ "__@toStringTag": PropTypes.string.isRequired,
332
+ "description": PropTypes.string,
333
+ "toString": PropTypes.func.isRequired,
334
+ "valueOf": PropTypes.func.isRequired
335
+ }), PropTypes.string]),
336
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
337
+ "__@toStringTag": PropTypes.string.isRequired,
338
+ "description": PropTypes.string,
339
+ "toString": PropTypes.func.isRequired,
340
+ "valueOf": PropTypes.func.isRequired
341
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
342
+ "__@toStringTag": PropTypes.string.isRequired,
343
+ "description": PropTypes.string,
344
+ "toString": PropTypes.func.isRequired,
345
+ "valueOf": PropTypes.func.isRequired
346
+ }), PropTypes.string]),
347
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
348
+ "__@toStringTag": PropTypes.string.isRequired,
349
+ "description": PropTypes.string,
350
+ "toString": PropTypes.func.isRequired,
351
+ "valueOf": PropTypes.func.isRequired
352
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
353
+ "__@toStringTag": PropTypes.string.isRequired,
354
+ "description": PropTypes.string,
355
+ "toString": PropTypes.func.isRequired,
356
+ "valueOf": PropTypes.func.isRequired
357
+ }), PropTypes.string]),
358
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
359
+ "__@toStringTag": PropTypes.string.isRequired,
360
+ "description": PropTypes.string,
361
+ "toString": PropTypes.func.isRequired,
362
+ "valueOf": PropTypes.func.isRequired
363
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
364
+ "__@toStringTag": PropTypes.string.isRequired,
365
+ "description": PropTypes.string,
366
+ "toString": PropTypes.func.isRequired,
367
+ "valueOf": PropTypes.func.isRequired
368
+ }), PropTypes.string]),
369
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
370
+ "__@toStringTag": PropTypes.string.isRequired,
371
+ "description": PropTypes.string,
372
+ "toString": PropTypes.func.isRequired,
373
+ "valueOf": PropTypes.func.isRequired
374
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
375
+ "__@toStringTag": PropTypes.string.isRequired,
376
+ "description": PropTypes.string,
377
+ "toString": PropTypes.func.isRequired,
378
+ "valueOf": PropTypes.func.isRequired
379
+ }), PropTypes.string]),
380
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
381
+ "__@toStringTag": PropTypes.string.isRequired,
382
+ "description": PropTypes.string,
383
+ "toString": PropTypes.func.isRequired,
384
+ "valueOf": PropTypes.func.isRequired
385
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
386
+ "__@toStringTag": PropTypes.string.isRequired,
387
+ "description": PropTypes.string,
388
+ "toString": PropTypes.func.isRequired,
389
+ "valueOf": PropTypes.func.isRequired
390
+ }), PropTypes.string]),
391
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
392
+ "__@toStringTag": PropTypes.string.isRequired,
393
+ "description": PropTypes.string,
394
+ "toString": PropTypes.func.isRequired,
395
+ "valueOf": PropTypes.func.isRequired
396
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
397
+ "__@toStringTag": PropTypes.string.isRequired,
398
+ "description": PropTypes.string,
399
+ "toString": PropTypes.func.isRequired,
400
+ "valueOf": PropTypes.func.isRequired
401
+ }), PropTypes.string]),
402
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
403
+ "__@toStringTag": PropTypes.string.isRequired,
404
+ "description": PropTypes.string,
405
+ "toString": PropTypes.func.isRequired,
406
+ "valueOf": PropTypes.func.isRequired
407
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
408
+ "__@toStringTag": PropTypes.string.isRequired,
409
+ "description": PropTypes.string,
410
+ "toString": PropTypes.func.isRequired,
411
+ "valueOf": PropTypes.func.isRequired
412
+ }), PropTypes.string]),
413
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
414
+ "__@toStringTag": PropTypes.string.isRequired,
415
+ "description": PropTypes.string,
416
+ "toString": PropTypes.func.isRequired,
417
+ "valueOf": PropTypes.func.isRequired
418
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
419
+ "__@toStringTag": PropTypes.string.isRequired,
420
+ "description": PropTypes.string,
421
+ "toString": PropTypes.func.isRequired,
422
+ "valueOf": PropTypes.func.isRequired
423
+ }), PropTypes.string]),
424
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
425
+ "__@toStringTag": PropTypes.string.isRequired,
426
+ "description": PropTypes.string,
427
+ "toString": PropTypes.func.isRequired,
428
+ "valueOf": PropTypes.func.isRequired
429
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
430
+ "__@toStringTag": PropTypes.string.isRequired,
431
+ "description": PropTypes.string,
432
+ "toString": PropTypes.func.isRequired,
433
+ "valueOf": PropTypes.func.isRequired
434
+ }), PropTypes.string]),
435
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
436
+ "__@toStringTag": PropTypes.string.isRequired,
437
+ "description": PropTypes.string,
438
+ "toString": PropTypes.func.isRequired,
439
+ "valueOf": PropTypes.func.isRequired
440
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
441
+ "__@toStringTag": PropTypes.string.isRequired,
442
+ "description": PropTypes.string,
443
+ "toString": PropTypes.func.isRequired,
444
+ "valueOf": PropTypes.func.isRequired
445
+ }), PropTypes.string]),
446
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
447
+ "__@toStringTag": PropTypes.string.isRequired,
448
+ "description": PropTypes.string,
449
+ "toString": PropTypes.func.isRequired,
450
+ "valueOf": PropTypes.func.isRequired
451
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
452
+ "__@toStringTag": PropTypes.string.isRequired,
453
+ "description": PropTypes.string,
454
+ "toString": PropTypes.func.isRequired,
455
+ "valueOf": PropTypes.func.isRequired
456
+ }), PropTypes.string]),
457
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
458
+ "__@toStringTag": PropTypes.string.isRequired,
459
+ "description": PropTypes.string,
460
+ "toString": PropTypes.func.isRequired,
461
+ "valueOf": PropTypes.func.isRequired
462
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
463
+ "__@toStringTag": PropTypes.string.isRequired,
464
+ "description": PropTypes.string,
465
+ "toString": PropTypes.func.isRequired,
466
+ "valueOf": PropTypes.func.isRequired
467
+ }), PropTypes.string]),
468
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
469
+ "__@toStringTag": PropTypes.string.isRequired,
470
+ "description": PropTypes.string,
471
+ "toString": PropTypes.func.isRequired,
472
+ "valueOf": PropTypes.func.isRequired
473
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
474
+ "__@toStringTag": PropTypes.string.isRequired,
475
+ "description": PropTypes.string,
476
+ "toString": PropTypes.func.isRequired,
477
+ "valueOf": PropTypes.func.isRequired
478
+ }), PropTypes.string]),
479
+ "name": PropTypes.string,
480
+ "onAbort": PropTypes.func,
481
+ "onAbortCapture": PropTypes.func,
482
+ "onAnimationEnd": PropTypes.func,
483
+ "onAnimationEndCapture": PropTypes.func,
484
+ "onAnimationIteration": PropTypes.func,
485
+ "onAnimationIterationCapture": PropTypes.func,
486
+ "onAnimationStart": PropTypes.func,
487
+ "onAnimationStartCapture": PropTypes.func,
488
+ "onAuxClick": PropTypes.func,
489
+ "onAuxClickCapture": PropTypes.func,
490
+ "onBeforeInput": PropTypes.func,
491
+ "onBeforeInputCapture": PropTypes.func,
492
+ "onBlur": PropTypes.func,
493
+ "onBlurCapture": PropTypes.func,
494
+ "onCanPlay": PropTypes.func,
495
+ "onCanPlayCapture": PropTypes.func,
496
+ "onCanPlayThrough": PropTypes.func,
497
+ "onCanPlayThroughCapture": PropTypes.func,
498
+ "onChange": PropTypes.func,
499
+ "onChangeCapture": PropTypes.func,
500
+ "onClick": PropTypes.func,
501
+ "onClickCapture": PropTypes.func,
502
+ "onCompositionEnd": PropTypes.func,
503
+ "onCompositionEndCapture": PropTypes.func,
504
+ "onCompositionStart": PropTypes.func,
505
+ "onCompositionStartCapture": PropTypes.func,
506
+ "onCompositionUpdate": PropTypes.func,
507
+ "onCompositionUpdateCapture": PropTypes.func,
508
+ "onContextMenu": PropTypes.func,
509
+ "onContextMenuCapture": PropTypes.func,
510
+ "onCopy": PropTypes.func,
511
+ "onCopyCapture": PropTypes.func,
512
+ "onCut": PropTypes.func,
513
+ "onCutCapture": PropTypes.func,
514
+ "onDoubleClick": PropTypes.func,
515
+ "onDoubleClickCapture": PropTypes.func,
516
+ "onDrag": PropTypes.func,
517
+ "onDragCapture": PropTypes.func,
518
+ "onDragEnd": PropTypes.func,
519
+ "onDragEndCapture": PropTypes.func,
520
+ "onDragEnter": PropTypes.func,
521
+ "onDragEnterCapture": PropTypes.func,
522
+ "onDragExit": PropTypes.func,
523
+ "onDragExitCapture": PropTypes.func,
524
+ "onDragLeave": PropTypes.func,
525
+ "onDragLeaveCapture": PropTypes.func,
526
+ "onDragOver": PropTypes.func,
527
+ "onDragOverCapture": PropTypes.func,
528
+ "onDragStart": PropTypes.func,
529
+ "onDragStartCapture": PropTypes.func,
530
+ "onDrop": PropTypes.func,
531
+ "onDropCapture": PropTypes.func,
532
+ "onDurationChange": PropTypes.func,
533
+ "onDurationChangeCapture": PropTypes.func,
534
+ "onEmptied": PropTypes.func,
535
+ "onEmptiedCapture": PropTypes.func,
536
+ "onEncrypted": PropTypes.func,
537
+ "onEncryptedCapture": PropTypes.func,
538
+ "onEnded": PropTypes.func,
539
+ "onEndedCapture": PropTypes.func,
540
+ "onError": PropTypes.func,
541
+ "onErrorCapture": PropTypes.func,
542
+ "onFocus": PropTypes.func,
543
+ "onFocusCapture": PropTypes.func,
544
+ "onGotPointerCapture": PropTypes.func,
545
+ "onGotPointerCaptureCapture": PropTypes.func,
546
+ "onInput": PropTypes.func,
547
+ "onInputCapture": PropTypes.func,
548
+ "onInvalid": PropTypes.func,
549
+ "onInvalidCapture": PropTypes.func,
550
+ "onKeyDown": PropTypes.func,
551
+ "onKeyDownCapture": PropTypes.func,
552
+ "onKeyPress": PropTypes.func,
553
+ "onKeyPressCapture": PropTypes.func,
554
+ "onKeyUp": PropTypes.func,
555
+ "onKeyUpCapture": PropTypes.func,
556
+ "onLoad": PropTypes.func,
557
+ "onLoadCapture": PropTypes.func,
558
+ "onLoadedData": PropTypes.func,
559
+ "onLoadedDataCapture": PropTypes.func,
560
+ "onLoadedMetadata": PropTypes.func,
561
+ "onLoadedMetadataCapture": PropTypes.func,
562
+ "onLoadStart": PropTypes.func,
563
+ "onLoadStartCapture": PropTypes.func,
564
+ "onLostPointerCapture": PropTypes.func,
565
+ "onLostPointerCaptureCapture": PropTypes.func,
566
+ "onMouseDown": PropTypes.func,
567
+ "onMouseDownCapture": PropTypes.func,
568
+ "onMouseEnter": PropTypes.func,
569
+ "onMouseLeave": PropTypes.func,
570
+ "onMouseMove": PropTypes.func,
571
+ "onMouseMoveCapture": PropTypes.func,
572
+ "onMouseOut": PropTypes.func,
573
+ "onMouseOutCapture": PropTypes.func,
574
+ "onMouseOver": PropTypes.func,
575
+ "onMouseOverCapture": PropTypes.func,
576
+ "onMouseUp": PropTypes.func,
577
+ "onMouseUpCapture": PropTypes.func,
578
+ "onPaste": PropTypes.func,
579
+ "onPasteCapture": PropTypes.func,
580
+ "onPause": PropTypes.func,
581
+ "onPauseCapture": PropTypes.func,
582
+ "onPlay": PropTypes.func,
583
+ "onPlayCapture": PropTypes.func,
584
+ "onPlaying": PropTypes.func,
585
+ "onPlayingCapture": PropTypes.func,
586
+ "onPointerCancel": PropTypes.func,
587
+ "onPointerCancelCapture": PropTypes.func,
588
+ "onPointerDown": PropTypes.func,
589
+ "onPointerDownCapture": PropTypes.func,
590
+ "onPointerEnter": PropTypes.func,
591
+ "onPointerEnterCapture": PropTypes.func,
592
+ "onPointerLeave": PropTypes.func,
593
+ "onPointerLeaveCapture": PropTypes.func,
594
+ "onPointerMove": PropTypes.func,
595
+ "onPointerMoveCapture": PropTypes.func,
596
+ "onPointerOut": PropTypes.func,
597
+ "onPointerOutCapture": PropTypes.func,
598
+ "onPointerOver": PropTypes.func,
599
+ "onPointerOverCapture": PropTypes.func,
600
+ "onPointerUp": PropTypes.func,
601
+ "onPointerUpCapture": PropTypes.func,
602
+ "onProgress": PropTypes.func,
603
+ "onProgressCapture": PropTypes.func,
604
+ "onRateChange": PropTypes.func,
605
+ "onRateChangeCapture": PropTypes.func,
606
+ "onReset": PropTypes.func,
607
+ "onResetCapture": PropTypes.func,
608
+ "onScroll": PropTypes.func,
609
+ "onScrollCapture": PropTypes.func,
610
+ "onSeeked": PropTypes.func,
611
+ "onSeekedCapture": PropTypes.func,
612
+ "onSeeking": PropTypes.func,
613
+ "onSeekingCapture": PropTypes.func,
614
+ "onSelect": PropTypes.func,
615
+ "onSelectCapture": PropTypes.func,
616
+ "onStalled": PropTypes.func,
617
+ "onStalledCapture": PropTypes.func,
618
+ "onSubmit": PropTypes.func,
619
+ "onSubmitCapture": PropTypes.func,
620
+ "onSuspend": PropTypes.func,
621
+ "onSuspendCapture": PropTypes.func,
622
+ "onTimeUpdate": PropTypes.func,
623
+ "onTimeUpdateCapture": PropTypes.func,
624
+ "onTouchCancel": PropTypes.func,
625
+ "onTouchCancelCapture": PropTypes.func,
626
+ "onTouchEnd": PropTypes.func,
627
+ "onTouchEndCapture": PropTypes.func,
628
+ "onTouchMove": PropTypes.func,
629
+ "onTouchMoveCapture": PropTypes.func,
630
+ "onTouchStart": PropTypes.func,
631
+ "onTouchStartCapture": PropTypes.func,
632
+ "onTransitionEnd": PropTypes.func,
633
+ "onTransitionEndCapture": PropTypes.func,
634
+ "onVolumeChange": PropTypes.func,
635
+ "onVolumeChangeCapture": PropTypes.func,
636
+ "onWaiting": PropTypes.func,
637
+ "onWaitingCapture": PropTypes.func,
638
+ "onWheel": PropTypes.func,
639
+ "onWheelCapture": PropTypes.func,
640
+ "placeholder": PropTypes.string,
641
+ "prefix": PropTypes.string,
642
+ "property": PropTypes.string,
643
+ "radioGroup": PropTypes.string,
644
+ "resource": PropTypes.string,
645
+ "results": PropTypes.number,
646
+ "role": PropTypes.string,
647
+ "security": PropTypes.string,
648
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
649
+ "slot": PropTypes.string,
650
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
651
+ "style": PropTypes.object,
652
+ "subtext": PropTypes.string,
653
+ "suppressContentEditableWarning": PropTypes.bool,
654
+ "suppressHydrationWarning": PropTypes.bool,
655
+ "tabIndex": PropTypes.number,
656
+ "text": PropTypes.string.isRequired,
657
+ "title": PropTypes.string,
658
+ "translate": PropTypes.oneOf(["no", "yes"]),
659
+ "type": PropTypes.oneOf(["button", "reset", "submit"]),
660
+ "typeof": PropTypes.string,
661
+ "unselectable": PropTypes.oneOf(["off", "on"]),
662
+ "value": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
663
+ "vocab": PropTypes.string
261
664
  };
665
+ export { MultiActionButton };
262
666
  export default MultiActionButton;
@@ -1,3 +1,3 @@
1
- export const MULTI_ACTION_BUTTON_ALIGNMENTS: string[];
2
- export const MULTI_ACTION_BUTTON_SIZES: string[];
3
- export const MULTI_ACTION_BUTTON_THEMES: string[];
1
+ export declare const MULTI_ACTION_BUTTON_ALIGNMENTS: string[];
2
+ export declare const MULTI_ACTION_BUTTON_SIZES: string[];
3
+ export declare const MULTI_ACTION_BUTTON_THEMES: string[];
@@ -1,2 +1,10 @@
1
- export const StyledButtonChildrenContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export const StyledMultiActionButton: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ declare type StyledMultiActionButtonProps = {
2
+ displayed: boolean;
3
+ };
4
+ declare const StyledMultiActionButton: import("styled-components").StyledComponent<"div", any, StyledMultiActionButtonProps, never>;
5
+ declare type StyledButtonChildrenContainerProps = {
6
+ align: "left" | "right";
7
+ minWidth: number;
8
+ };
9
+ declare const StyledButtonChildrenContainer: import("styled-components").StyledComponent<"div", any, StyledButtonChildrenContainerProps, never>;
10
+ export { StyledButtonChildrenContainer, StyledMultiActionButton };