carbon-react 110.1.3 → 110.2.2

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 (65) hide show
  1. package/esm/__internal__/character-count/character-count.component.d.ts +8 -25
  2. package/esm/__internal__/character-count/character-count.component.js +12 -18
  3. package/esm/__internal__/character-count/character-count.style.d.ts +3 -1
  4. package/esm/__internal__/character-count/character-count.style.js +4 -0
  5. package/esm/__internal__/input/index.d.ts +1 -1
  6. package/esm/__spec_helper__/test-utils.d.ts +3 -2
  7. package/esm/__spec_helper__/test-utils.js +17 -1
  8. package/esm/components/box/box.component.d.ts +4 -2
  9. package/esm/components/box/box.component.js +2 -1
  10. package/esm/components/dismissible-box/dismissible-box.component.js +398 -0
  11. package/esm/components/numeral-date/numeral-date-context.d.ts +6 -0
  12. package/esm/components/popover-container/popover-container.component.d.ts +2 -0
  13. package/esm/components/popover-container/popover-container.component.js +9 -4
  14. package/esm/components/portal/portal.d.ts +15 -12
  15. package/esm/components/portal/portal.js +3 -13
  16. package/esm/components/select/multi-select/multi-select.component.js +1 -1
  17. package/esm/components/select/select-list/select-list.component.js +20 -11
  18. package/esm/components/textarea/textarea.component.js +6 -27
  19. package/esm/components/textarea/textarea.d.ts +2 -1
  20. package/esm/components/textbox/__internal__/prefix.style.d.ts +2 -0
  21. package/esm/components/textbox/index.d.ts +2 -1
  22. package/esm/components/textbox/index.js +1 -1
  23. package/esm/components/textbox/textbox.component.d.ts +92 -0
  24. package/esm/components/textbox/textbox.component.js +533 -197
  25. package/esm/components/textbox/textbox.style.d.ts +5 -0
  26. package/esm/components/textbox/textbox.style.js +0 -12
  27. package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +1 -1
  28. package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.js +7 -6
  29. package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +6 -5
  30. package/esm/style/utils/filter-out-position-props.d.ts +3 -0
  31. package/esm/style/utils/filter-out-position-props.js +5 -0
  32. package/lib/__internal__/character-count/character-count.component.d.ts +8 -25
  33. package/lib/__internal__/character-count/character-count.component.js +13 -23
  34. package/lib/__internal__/character-count/character-count.style.d.ts +3 -1
  35. package/lib/__internal__/character-count/character-count.style.js +7 -0
  36. package/lib/__internal__/input/index.d.ts +1 -1
  37. package/lib/__spec_helper__/test-utils.d.ts +3 -2
  38. package/lib/__spec_helper__/test-utils.js +20 -2
  39. package/lib/components/box/box.component.d.ts +4 -2
  40. package/lib/components/box/box.component.js +1 -0
  41. package/lib/components/dismissible-box/dismissible-box.component.js +398 -0
  42. package/lib/components/numeral-date/numeral-date-context.d.ts +6 -0
  43. package/lib/components/popover-container/popover-container.component.d.ts +2 -0
  44. package/lib/components/popover-container/popover-container.component.js +9 -4
  45. package/lib/components/portal/portal.d.ts +15 -12
  46. package/lib/components/portal/portal.js +3 -14
  47. package/lib/components/select/multi-select/multi-select.component.js +1 -1
  48. package/lib/components/select/select-list/select-list.component.js +20 -11
  49. package/lib/components/textarea/textarea.component.js +6 -27
  50. package/lib/components/textarea/textarea.d.ts +2 -1
  51. package/lib/components/textbox/__internal__/prefix.style.d.ts +2 -0
  52. package/lib/components/textbox/index.d.ts +2 -1
  53. package/lib/components/textbox/index.js +2 -10
  54. package/lib/components/textbox/textbox.component.d.ts +92 -0
  55. package/lib/components/textbox/textbox.component.js +534 -201
  56. package/lib/components/textbox/textbox.style.d.ts +5 -0
  57. package/lib/components/textbox/textbox.style.js +1 -16
  58. package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +1 -1
  59. package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +7 -6
  60. package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +6 -5
  61. package/lib/style/utils/filter-out-position-props.d.ts +3 -0
  62. package/lib/style/utils/filter-out-position-props.js +18 -0
  63. package/package.json +1 -1
  64. package/esm/components/textbox/textbox.d.ts +0 -125
  65. package/lib/components/textbox/textbox.d.ts +0 -125
@@ -1,26 +1,9 @@
1
- declare var _default: React.ForwardRefExoticComponent<{
2
- [x: string]: any;
3
- [x: number]: any;
4
- } & {
5
- theme?: any;
6
- }>;
7
- export default _default;
8
- import React from "react";
9
- export function CharacterCount({ value, limit, theme, ...props }: {
10
- [x: string]: any;
11
- value: any;
12
- limit: any;
13
- theme: any;
14
- }): JSX.Element;
15
- export namespace CharacterCount {
16
- namespace propTypes {
17
- const value: PropTypes.Validator<string>;
18
- const limit: PropTypes.Validator<string>;
19
- const theme: PropTypes.Requireable<object>;
20
- }
21
- namespace defaultProps {
22
- export { baseTheme as theme };
23
- }
1
+ /// <reference types="react" />
2
+ interface CharacterCountProps {
3
+ value: string;
4
+ limit: string;
5
+ isOverLimit: boolean;
6
+ "data-element"?: string;
24
7
  }
25
- import PropTypes from "prop-types";
26
- import baseTheme from "../../style/themes/base";
8
+ declare const CharacterCount: ({ value, limit, isOverLimit, "data-element": dataElement, }: CharacterCountProps) => JSX.Element;
9
+ export default CharacterCount;
@@ -1,28 +1,22 @@
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
-
3
1
  import React from "react";
4
2
  import PropTypes from "prop-types";
5
- import { withTheme } from "styled-components";
6
- import baseTheme from "../../style/themes/base";
7
3
  import StyledCharacterCount from "./character-count.style";
8
4
 
9
5
  const CharacterCount = ({
10
6
  value,
11
7
  limit,
12
- theme,
13
- ...props
14
- }) => /*#__PURE__*/React.createElement(StyledCharacterCount, _extends({
15
- theme: theme,
16
- "aria-live": "polite"
17
- }, props), `${value}/${limit}`);
8
+ isOverLimit,
9
+ "data-element": dataElement
10
+ }) => /*#__PURE__*/React.createElement(StyledCharacterCount, {
11
+ "aria-live": "polite",
12
+ isOverLimit: isOverLimit,
13
+ "data-element": dataElement
14
+ }, `${value}/${limit}`);
18
15
 
19
16
  CharacterCount.propTypes = {
20
- value: PropTypes.string.isRequired,
21
- limit: PropTypes.string.isRequired,
22
- theme: PropTypes.object
23
- };
24
- CharacterCount.defaultProps = {
25
- theme: baseTheme
17
+ "data-element": PropTypes.string,
18
+ "isOverLimit": PropTypes.bool.isRequired,
19
+ "limit": PropTypes.string.isRequired,
20
+ "value": PropTypes.string.isRequired
26
21
  };
27
- export default withTheme(CharacterCount);
28
- export { CharacterCount };
22
+ export default CharacterCount;
@@ -1,2 +1,4 @@
1
+ declare const StyledCharacterCount: import("styled-components").StyledComponent<"div", any, {
2
+ isOverLimit: boolean;
3
+ }, never>;
1
4
  export default StyledCharacterCount;
2
- declare const StyledCharacterCount: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
+ import baseTheme from "../../style/themes/base";
2
3
  const StyledCharacterCount = styled.div`
3
4
  text-align: right;
4
5
  font-size: 12px;
@@ -14,4 +15,7 @@ const StyledCharacterCount = styled.div`
14
15
  font-weight: 700;
15
16
  `}
16
17
  `;
18
+ StyledCharacterCount.defaultProps = {
19
+ theme: baseTheme
20
+ };
17
21
  export default StyledCharacterCount;
@@ -1,5 +1,5 @@
1
1
  import Input from "./input.component";
2
2
  import InputPresentation from "./input-presentation.component";
3
- export type { InputProps } from "./input.component";
3
+ export type { InputProps, CommonInputProps } from "./input.component";
4
4
  export { Input, InputPresentation };
5
5
  export default Input;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ReactWrapper, ShallowWrapper } from "enzyme";
3
- import { LayoutProps, FlexboxProps, BackgroundProps } from "styled-system";
3
+ import { LayoutProps, FlexboxProps, BackgroundProps, PositionProps } from "styled-system";
4
4
  import { ReactTestRendererJSON } from "react-test-renderer";
5
5
  import { mockMatchMedia } from "./mock-match-media";
6
6
  declare const toCSSCase: (str: string) => string;
@@ -47,5 +47,6 @@ declare const testStyledSystemWidth: (component: (widthProperties?: {
47
47
  declare const testStyledSystemLayout: (component: (layoutProperties?: LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined) => JSX.Element, styleContainer?: ((wrapper: ReactWrapper) => ReactWrapper) | undefined) => void;
48
48
  declare const testStyledSystemFlexBox: (component: (flexboxProperties?: FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined) => JSX.Element, styleContainer?: ((wrapper: ReactWrapper) => ReactWrapper) | undefined) => void;
49
49
  declare const testStyledSystemBackground: (component: (backgroundProperties?: BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | undefined) => JSX.Element, styleContainer?: ((wrapper: ReactWrapper) => ReactWrapper) | undefined) => void;
50
+ declare const testStyledSystemPosition: (component: (positionProperties?: PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined) => JSX.Element, styleContainer?: ((wrapper: ReactWrapper) => ReactWrapper) | undefined) => void;
50
51
  declare const expectConsoleOutput: (message: string, type?: "warn" | "error") => () => void;
51
- export { assertStyleMatch, toCSSCase, hoverList, selectedItemOf, childrenFrom, makeArrayKeys, keyboard, assertKeyboardTraversal, assertHoverTraversal, listFrom, click, simulate, carbonThemesJestTable, mockMatchMedia, testStyledSystemSpacing, testStyledSystemMargin, testStyledSystemPadding, testStyledSystemColor, testStyledSystemWidth, testStyledSystemLayout, testStyledSystemFlexBox, testStyledSystemBackground, expectConsoleOutput, };
52
+ export { assertStyleMatch, toCSSCase, hoverList, selectedItemOf, childrenFrom, makeArrayKeys, keyboard, assertKeyboardTraversal, assertHoverTraversal, listFrom, click, simulate, carbonThemesJestTable, mockMatchMedia, testStyledSystemSpacing, testStyledSystemMargin, testStyledSystemPadding, testStyledSystemColor, testStyledSystemWidth, testStyledSystemLayout, testStyledSystemFlexBox, testStyledSystemBackground, testStyledSystemPosition, expectConsoleOutput, };
@@ -109,6 +109,7 @@ const widthProps = ["width", "width", "200px"];
109
109
  const layoutProps = [widthProps, ["height", "height", "200px"], ["minWidth", "min-width", "120px"], ["maxWidth", "max-width", "120px"], ["minHeight", "min-height", "120px"], ["maxHeight", "max-height", "120px"], ["size", "width", "120px"], ["size", "height", "120px"], ["display", "display", "inline-block"], ["verticalAlign", "vertical-align", "baseline"], ["overflow", "overflow", "hidden"], ["overflowX", "overflow-x", "hidden"], ["overflowY", "overflow-y", "hidden"]];
110
110
  const flexBoxProps = [["alignItems", "alignItems", "center"], ["alignContent", "alignContent", "center"], ["justifyItems", "justifyItems", "center"], ["justifyContent", "justifyContent", "center"], ["flexWrap", "flexWrap", "wrap"], ["flexDirection", "flexDirection", "row-reverse"], ["flex", "flex", "1"], ["flexGrow", "flexGrow", "1"], ["flexShrink", "flexShrink", "1"], ["flexBasis", "flexBasis", "100px"], ["justifySelf", "justifySelf", "center"], ["alignSelf", "alignSelf", "center"], ["order", "order", "1"]];
111
111
  const backgroundProps = [["background", "background", "lightblue url('foo.jpg') no-repeat fixed center"], ["backgroundImage", "background-image", "url(foo.jpg)"], ["backgroundSize", "background-size", "center"], ["backgroundRepeat", "background-repeat", "no-repeat"]];
112
+ const positionProps = [["top", "0px"], ["bottom", "0px"], ["right", "0px"], ["left", "0px"], ["position", "fixed"], ["position", "sticky"], ["position", "absolute"], ["position", "static"], ["position", "relative"]];
112
113
  export const getDefaultValue = value => {
113
114
  const spaceArrayLength = space.length - 1;
114
115
  if (value === undefined) return value;
@@ -302,6 +303,21 @@ const testStyledSystemBackground = (component, styleContainer) => {
302
303
  }, styleContainer ? styleContainer(wrapper) : wrapper);
303
304
  });
304
305
  });
306
+ };
307
+
308
+ const testStyledSystemPosition = (component, styleContainer) => {
309
+ describe.each(positionProps)('when a prop is specified using the "%s" styled system props', (styledSystemProp, value) => {
310
+ it(`then ${styledSystemProp} should have been set correctly`, () => {
311
+ const props = {
312
+ [styledSystemProp]: value
313
+ };
314
+ const wrapper = mount(component({ ...props
315
+ }));
316
+ assertStyleMatch({
317
+ [styledSystemProp]: value
318
+ }, styleContainer ? styleContainer(wrapper) : wrapper);
319
+ });
320
+ });
305
321
  }; // this util will catch that a console output occurred without polluting the output when running the unit tests
306
322
 
307
323
 
@@ -335,4 +351,4 @@ const expectConsoleOutput = (message, type = "error") => {
335
351
  };
336
352
  };
337
353
 
338
- export { assertStyleMatch, toCSSCase, hoverList, selectedItemOf, childrenFrom, makeArrayKeys, keyboard, assertKeyboardTraversal, assertHoverTraversal, listFrom, click, simulate, carbonThemesJestTable, mockMatchMedia, testStyledSystemSpacing, testStyledSystemMargin, testStyledSystemPadding, testStyledSystemColor, testStyledSystemWidth, testStyledSystemLayout, testStyledSystemFlexBox, testStyledSystemBackground, expectConsoleOutput };
354
+ export { assertStyleMatch, toCSSCase, hoverList, selectedItemOf, childrenFrom, makeArrayKeys, keyboard, assertKeyboardTraversal, assertHoverTraversal, listFrom, click, simulate, carbonThemesJestTable, mockMatchMedia, testStyledSystemSpacing, testStyledSystemMargin, testStyledSystemPadding, testStyledSystemColor, testStyledSystemWidth, testStyledSystemLayout, testStyledSystemFlexBox, testStyledSystemBackground, testStyledSystemPosition, expectConsoleOutput };
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- import { SpaceProps, LayoutProps, FlexboxProps, ColorProps } from "styled-system";
2
+ import { SpaceProps, LayoutProps, FlexboxProps, ColorProps, PositionProps } from "styled-system";
3
3
  export declare type OverflowWrap = "break-word" | "anywhere";
4
4
  export declare type ScrollVariant = "light" | "dark";
5
5
  export declare type BoxSizing = "content-box" | "border-box";
6
- export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorProps {
6
+ export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorProps, Omit<PositionProps, "zIndex"> {
7
7
  as?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
8
8
  /** String to set Box content break strategy. Note "anywhere" is not supported in Safari */
9
9
  overflowWrap?: OverflowWrap;
@@ -11,6 +11,8 @@ export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorPr
11
11
  scrollVariant?: ScrollVariant;
12
12
  /** set the box-sizing attribute of the Box component */
13
13
  boxSizing?: BoxSizing;
14
+ /** Allows a tabindex to be specified */
15
+ tabIndex?: number | string;
14
16
  }
15
17
  declare const Box: import("styled-components").StyledComponent<"div", any, BoxProps, never>;
16
18
  export default Box;
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
- import { space, layout, flexbox } from "styled-system";
2
+ import { space, layout, flexbox, position } from "styled-system";
3
3
  import BaseTheme from "../../style/themes/base";
4
4
  import styledColor from "../../style/utils/color";
5
5
  import boxConfig from "./box.config";
@@ -7,6 +7,7 @@ const Box = styled.div`
7
7
  ${space}
8
8
  ${layout}
9
9
  ${flexbox}
10
+ ${position}
10
11
  ${({
11
12
  color,
12
13
  bg,
@@ -358,6 +358,105 @@ DismissibleBox.propTypes = {
358
358
  "toString": PropTypes.func.isRequired,
359
359
  "valueOf": PropTypes.func.isRequired
360
360
  }), PropTypes.string]),
361
+ "bottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
362
+ "__@iterator": PropTypes.func.isRequired,
363
+ "anchor": PropTypes.func.isRequired,
364
+ "big": PropTypes.func.isRequired,
365
+ "blink": PropTypes.func.isRequired,
366
+ "bold": PropTypes.func.isRequired,
367
+ "charAt": PropTypes.func.isRequired,
368
+ "charCodeAt": PropTypes.func.isRequired,
369
+ "codePointAt": PropTypes.func.isRequired,
370
+ "concat": PropTypes.func.isRequired,
371
+ "endsWith": PropTypes.func.isRequired,
372
+ "fixed": PropTypes.func.isRequired,
373
+ "fontcolor": PropTypes.func.isRequired,
374
+ "fontsize": PropTypes.func.isRequired,
375
+ "includes": PropTypes.func.isRequired,
376
+ "indexOf": PropTypes.func.isRequired,
377
+ "italics": PropTypes.func.isRequired,
378
+ "lastIndexOf": PropTypes.func.isRequired,
379
+ "length": PropTypes.number.isRequired,
380
+ "link": PropTypes.func.isRequired,
381
+ "localeCompare": PropTypes.func.isRequired,
382
+ "match": PropTypes.func.isRequired,
383
+ "matchAll": PropTypes.func.isRequired,
384
+ "normalize": PropTypes.func.isRequired,
385
+ "padEnd": PropTypes.func.isRequired,
386
+ "padStart": PropTypes.func.isRequired,
387
+ "repeat": PropTypes.func.isRequired,
388
+ "replace": PropTypes.func.isRequired,
389
+ "search": PropTypes.func.isRequired,
390
+ "slice": PropTypes.func.isRequired,
391
+ "small": PropTypes.func.isRequired,
392
+ "split": PropTypes.func.isRequired,
393
+ "startsWith": PropTypes.func.isRequired,
394
+ "strike": PropTypes.func.isRequired,
395
+ "sub": PropTypes.func.isRequired,
396
+ "substr": PropTypes.func.isRequired,
397
+ "substring": PropTypes.func.isRequired,
398
+ "sup": PropTypes.func.isRequired,
399
+ "toLocaleLowerCase": PropTypes.func.isRequired,
400
+ "toLocaleUpperCase": PropTypes.func.isRequired,
401
+ "toLowerCase": PropTypes.func.isRequired,
402
+ "toString": PropTypes.func.isRequired,
403
+ "toUpperCase": PropTypes.func.isRequired,
404
+ "trim": PropTypes.func.isRequired,
405
+ "trimEnd": PropTypes.func.isRequired,
406
+ "trimLeft": PropTypes.func.isRequired,
407
+ "trimRight": PropTypes.func.isRequired,
408
+ "trimStart": PropTypes.func.isRequired,
409
+ "valueOf": PropTypes.func.isRequired
410
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
411
+ "__@iterator": PropTypes.func.isRequired,
412
+ "anchor": PropTypes.func.isRequired,
413
+ "big": PropTypes.func.isRequired,
414
+ "blink": PropTypes.func.isRequired,
415
+ "bold": PropTypes.func.isRequired,
416
+ "charAt": PropTypes.func.isRequired,
417
+ "charCodeAt": PropTypes.func.isRequired,
418
+ "codePointAt": PropTypes.func.isRequired,
419
+ "concat": PropTypes.func.isRequired,
420
+ "endsWith": PropTypes.func.isRequired,
421
+ "fixed": PropTypes.func.isRequired,
422
+ "fontcolor": PropTypes.func.isRequired,
423
+ "fontsize": PropTypes.func.isRequired,
424
+ "includes": PropTypes.func.isRequired,
425
+ "indexOf": PropTypes.func.isRequired,
426
+ "italics": PropTypes.func.isRequired,
427
+ "lastIndexOf": PropTypes.func.isRequired,
428
+ "length": PropTypes.number.isRequired,
429
+ "link": PropTypes.func.isRequired,
430
+ "localeCompare": PropTypes.func.isRequired,
431
+ "match": PropTypes.func.isRequired,
432
+ "matchAll": PropTypes.func.isRequired,
433
+ "normalize": PropTypes.func.isRequired,
434
+ "padEnd": PropTypes.func.isRequired,
435
+ "padStart": PropTypes.func.isRequired,
436
+ "repeat": PropTypes.func.isRequired,
437
+ "replace": PropTypes.func.isRequired,
438
+ "search": PropTypes.func.isRequired,
439
+ "slice": PropTypes.func.isRequired,
440
+ "small": PropTypes.func.isRequired,
441
+ "split": PropTypes.func.isRequired,
442
+ "startsWith": PropTypes.func.isRequired,
443
+ "strike": PropTypes.func.isRequired,
444
+ "sub": PropTypes.func.isRequired,
445
+ "substr": PropTypes.func.isRequired,
446
+ "substring": PropTypes.func.isRequired,
447
+ "sup": PropTypes.func.isRequired,
448
+ "toLocaleLowerCase": PropTypes.func.isRequired,
449
+ "toLocaleUpperCase": PropTypes.func.isRequired,
450
+ "toLowerCase": PropTypes.func.isRequired,
451
+ "toString": PropTypes.func.isRequired,
452
+ "toUpperCase": PropTypes.func.isRequired,
453
+ "trim": PropTypes.func.isRequired,
454
+ "trimEnd": PropTypes.func.isRequired,
455
+ "trimLeft": PropTypes.func.isRequired,
456
+ "trimRight": PropTypes.func.isRequired,
457
+ "trimStart": PropTypes.func.isRequired,
458
+ "valueOf": PropTypes.func.isRequired
459
+ }), PropTypes.string]),
361
460
  "boxSizing": PropTypes.oneOf(["border-box", "content-box"]),
362
461
  "children": PropTypes.node,
363
462
  "color": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
@@ -899,6 +998,105 @@ DismissibleBox.propTypes = {
899
998
  "trimStart": PropTypes.func.isRequired,
900
999
  "valueOf": PropTypes.func.isRequired
901
1000
  })]),
1001
+ "left": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
1002
+ "__@iterator": PropTypes.func.isRequired,
1003
+ "anchor": PropTypes.func.isRequired,
1004
+ "big": PropTypes.func.isRequired,
1005
+ "blink": PropTypes.func.isRequired,
1006
+ "bold": PropTypes.func.isRequired,
1007
+ "charAt": PropTypes.func.isRequired,
1008
+ "charCodeAt": PropTypes.func.isRequired,
1009
+ "codePointAt": PropTypes.func.isRequired,
1010
+ "concat": PropTypes.func.isRequired,
1011
+ "endsWith": PropTypes.func.isRequired,
1012
+ "fixed": PropTypes.func.isRequired,
1013
+ "fontcolor": PropTypes.func.isRequired,
1014
+ "fontsize": PropTypes.func.isRequired,
1015
+ "includes": PropTypes.func.isRequired,
1016
+ "indexOf": PropTypes.func.isRequired,
1017
+ "italics": PropTypes.func.isRequired,
1018
+ "lastIndexOf": PropTypes.func.isRequired,
1019
+ "length": PropTypes.number.isRequired,
1020
+ "link": PropTypes.func.isRequired,
1021
+ "localeCompare": PropTypes.func.isRequired,
1022
+ "match": PropTypes.func.isRequired,
1023
+ "matchAll": PropTypes.func.isRequired,
1024
+ "normalize": PropTypes.func.isRequired,
1025
+ "padEnd": PropTypes.func.isRequired,
1026
+ "padStart": PropTypes.func.isRequired,
1027
+ "repeat": PropTypes.func.isRequired,
1028
+ "replace": PropTypes.func.isRequired,
1029
+ "search": PropTypes.func.isRequired,
1030
+ "slice": PropTypes.func.isRequired,
1031
+ "small": PropTypes.func.isRequired,
1032
+ "split": PropTypes.func.isRequired,
1033
+ "startsWith": PropTypes.func.isRequired,
1034
+ "strike": PropTypes.func.isRequired,
1035
+ "sub": PropTypes.func.isRequired,
1036
+ "substr": PropTypes.func.isRequired,
1037
+ "substring": PropTypes.func.isRequired,
1038
+ "sup": PropTypes.func.isRequired,
1039
+ "toLocaleLowerCase": PropTypes.func.isRequired,
1040
+ "toLocaleUpperCase": PropTypes.func.isRequired,
1041
+ "toLowerCase": PropTypes.func.isRequired,
1042
+ "toString": PropTypes.func.isRequired,
1043
+ "toUpperCase": PropTypes.func.isRequired,
1044
+ "trim": PropTypes.func.isRequired,
1045
+ "trimEnd": PropTypes.func.isRequired,
1046
+ "trimLeft": PropTypes.func.isRequired,
1047
+ "trimRight": PropTypes.func.isRequired,
1048
+ "trimStart": PropTypes.func.isRequired,
1049
+ "valueOf": PropTypes.func.isRequired
1050
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
1051
+ "__@iterator": PropTypes.func.isRequired,
1052
+ "anchor": PropTypes.func.isRequired,
1053
+ "big": PropTypes.func.isRequired,
1054
+ "blink": PropTypes.func.isRequired,
1055
+ "bold": PropTypes.func.isRequired,
1056
+ "charAt": PropTypes.func.isRequired,
1057
+ "charCodeAt": PropTypes.func.isRequired,
1058
+ "codePointAt": PropTypes.func.isRequired,
1059
+ "concat": PropTypes.func.isRequired,
1060
+ "endsWith": PropTypes.func.isRequired,
1061
+ "fixed": PropTypes.func.isRequired,
1062
+ "fontcolor": PropTypes.func.isRequired,
1063
+ "fontsize": PropTypes.func.isRequired,
1064
+ "includes": PropTypes.func.isRequired,
1065
+ "indexOf": PropTypes.func.isRequired,
1066
+ "italics": PropTypes.func.isRequired,
1067
+ "lastIndexOf": PropTypes.func.isRequired,
1068
+ "length": PropTypes.number.isRequired,
1069
+ "link": PropTypes.func.isRequired,
1070
+ "localeCompare": PropTypes.func.isRequired,
1071
+ "match": PropTypes.func.isRequired,
1072
+ "matchAll": PropTypes.func.isRequired,
1073
+ "normalize": PropTypes.func.isRequired,
1074
+ "padEnd": PropTypes.func.isRequired,
1075
+ "padStart": PropTypes.func.isRequired,
1076
+ "repeat": PropTypes.func.isRequired,
1077
+ "replace": PropTypes.func.isRequired,
1078
+ "search": PropTypes.func.isRequired,
1079
+ "slice": PropTypes.func.isRequired,
1080
+ "small": PropTypes.func.isRequired,
1081
+ "split": PropTypes.func.isRequired,
1082
+ "startsWith": PropTypes.func.isRequired,
1083
+ "strike": PropTypes.func.isRequired,
1084
+ "sub": PropTypes.func.isRequired,
1085
+ "substr": PropTypes.func.isRequired,
1086
+ "substring": PropTypes.func.isRequired,
1087
+ "sup": PropTypes.func.isRequired,
1088
+ "toLocaleLowerCase": PropTypes.func.isRequired,
1089
+ "toLocaleUpperCase": PropTypes.func.isRequired,
1090
+ "toLowerCase": PropTypes.func.isRequired,
1091
+ "toString": PropTypes.func.isRequired,
1092
+ "toUpperCase": PropTypes.func.isRequired,
1093
+ "trim": PropTypes.func.isRequired,
1094
+ "trimEnd": PropTypes.func.isRequired,
1095
+ "trimLeft": PropTypes.func.isRequired,
1096
+ "trimRight": PropTypes.func.isRequired,
1097
+ "trimStart": PropTypes.func.isRequired,
1098
+ "valueOf": PropTypes.func.isRequired
1099
+ }), PropTypes.string]),
902
1100
  "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
903
1101
  "__@toStringTag": PropTypes.string.isRequired,
904
1102
  "description": PropTypes.string,
@@ -1776,6 +1974,7 @@ DismissibleBox.propTypes = {
1776
1974
  "toString": PropTypes.func.isRequired,
1777
1975
  "valueOf": PropTypes.func.isRequired
1778
1976
  }), PropTypes.string]),
1977
+ "position": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "-webkit-sticky", "absolute", "fixed", "inherit", "initial", "relative", "revert", "static", "sticky", "unset"]), PropTypes.arrayOf(PropTypes.oneOf(["-moz-initial", "-webkit-sticky", "absolute", "fixed", "inherit", "initial", "relative", "revert", "static", "sticky", "unset", null])), PropTypes.object]),
1779
1978
  "pr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
1780
1979
  "__@toStringTag": PropTypes.string.isRequired,
1781
1980
  "description": PropTypes.string,
@@ -1820,6 +2019,105 @@ DismissibleBox.propTypes = {
1820
2019
  "toString": PropTypes.func.isRequired,
1821
2020
  "valueOf": PropTypes.func.isRequired
1822
2021
  }), PropTypes.string]),
2022
+ "right": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
2023
+ "__@iterator": PropTypes.func.isRequired,
2024
+ "anchor": PropTypes.func.isRequired,
2025
+ "big": PropTypes.func.isRequired,
2026
+ "blink": PropTypes.func.isRequired,
2027
+ "bold": PropTypes.func.isRequired,
2028
+ "charAt": PropTypes.func.isRequired,
2029
+ "charCodeAt": PropTypes.func.isRequired,
2030
+ "codePointAt": PropTypes.func.isRequired,
2031
+ "concat": PropTypes.func.isRequired,
2032
+ "endsWith": PropTypes.func.isRequired,
2033
+ "fixed": PropTypes.func.isRequired,
2034
+ "fontcolor": PropTypes.func.isRequired,
2035
+ "fontsize": PropTypes.func.isRequired,
2036
+ "includes": PropTypes.func.isRequired,
2037
+ "indexOf": PropTypes.func.isRequired,
2038
+ "italics": PropTypes.func.isRequired,
2039
+ "lastIndexOf": PropTypes.func.isRequired,
2040
+ "length": PropTypes.number.isRequired,
2041
+ "link": PropTypes.func.isRequired,
2042
+ "localeCompare": PropTypes.func.isRequired,
2043
+ "match": PropTypes.func.isRequired,
2044
+ "matchAll": PropTypes.func.isRequired,
2045
+ "normalize": PropTypes.func.isRequired,
2046
+ "padEnd": PropTypes.func.isRequired,
2047
+ "padStart": PropTypes.func.isRequired,
2048
+ "repeat": PropTypes.func.isRequired,
2049
+ "replace": PropTypes.func.isRequired,
2050
+ "search": PropTypes.func.isRequired,
2051
+ "slice": PropTypes.func.isRequired,
2052
+ "small": PropTypes.func.isRequired,
2053
+ "split": PropTypes.func.isRequired,
2054
+ "startsWith": PropTypes.func.isRequired,
2055
+ "strike": PropTypes.func.isRequired,
2056
+ "sub": PropTypes.func.isRequired,
2057
+ "substr": PropTypes.func.isRequired,
2058
+ "substring": PropTypes.func.isRequired,
2059
+ "sup": PropTypes.func.isRequired,
2060
+ "toLocaleLowerCase": PropTypes.func.isRequired,
2061
+ "toLocaleUpperCase": PropTypes.func.isRequired,
2062
+ "toLowerCase": PropTypes.func.isRequired,
2063
+ "toString": PropTypes.func.isRequired,
2064
+ "toUpperCase": PropTypes.func.isRequired,
2065
+ "trim": PropTypes.func.isRequired,
2066
+ "trimEnd": PropTypes.func.isRequired,
2067
+ "trimLeft": PropTypes.func.isRequired,
2068
+ "trimRight": PropTypes.func.isRequired,
2069
+ "trimStart": PropTypes.func.isRequired,
2070
+ "valueOf": PropTypes.func.isRequired
2071
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
2072
+ "__@iterator": PropTypes.func.isRequired,
2073
+ "anchor": PropTypes.func.isRequired,
2074
+ "big": PropTypes.func.isRequired,
2075
+ "blink": PropTypes.func.isRequired,
2076
+ "bold": PropTypes.func.isRequired,
2077
+ "charAt": PropTypes.func.isRequired,
2078
+ "charCodeAt": PropTypes.func.isRequired,
2079
+ "codePointAt": PropTypes.func.isRequired,
2080
+ "concat": PropTypes.func.isRequired,
2081
+ "endsWith": PropTypes.func.isRequired,
2082
+ "fixed": PropTypes.func.isRequired,
2083
+ "fontcolor": PropTypes.func.isRequired,
2084
+ "fontsize": PropTypes.func.isRequired,
2085
+ "includes": PropTypes.func.isRequired,
2086
+ "indexOf": PropTypes.func.isRequired,
2087
+ "italics": PropTypes.func.isRequired,
2088
+ "lastIndexOf": PropTypes.func.isRequired,
2089
+ "length": PropTypes.number.isRequired,
2090
+ "link": PropTypes.func.isRequired,
2091
+ "localeCompare": PropTypes.func.isRequired,
2092
+ "match": PropTypes.func.isRequired,
2093
+ "matchAll": PropTypes.func.isRequired,
2094
+ "normalize": PropTypes.func.isRequired,
2095
+ "padEnd": PropTypes.func.isRequired,
2096
+ "padStart": PropTypes.func.isRequired,
2097
+ "repeat": PropTypes.func.isRequired,
2098
+ "replace": PropTypes.func.isRequired,
2099
+ "search": PropTypes.func.isRequired,
2100
+ "slice": PropTypes.func.isRequired,
2101
+ "small": PropTypes.func.isRequired,
2102
+ "split": PropTypes.func.isRequired,
2103
+ "startsWith": PropTypes.func.isRequired,
2104
+ "strike": PropTypes.func.isRequired,
2105
+ "sub": PropTypes.func.isRequired,
2106
+ "substr": PropTypes.func.isRequired,
2107
+ "substring": PropTypes.func.isRequired,
2108
+ "sup": PropTypes.func.isRequired,
2109
+ "toLocaleLowerCase": PropTypes.func.isRequired,
2110
+ "toLocaleUpperCase": PropTypes.func.isRequired,
2111
+ "toLowerCase": PropTypes.func.isRequired,
2112
+ "toString": PropTypes.func.isRequired,
2113
+ "toUpperCase": PropTypes.func.isRequired,
2114
+ "trim": PropTypes.func.isRequired,
2115
+ "trimEnd": PropTypes.func.isRequired,
2116
+ "trimLeft": PropTypes.func.isRequired,
2117
+ "trimRight": PropTypes.func.isRequired,
2118
+ "trimStart": PropTypes.func.isRequired,
2119
+ "valueOf": PropTypes.func.isRequired
2120
+ }), PropTypes.string]),
1823
2121
  "scrollVariant": PropTypes.oneOf(["dark", "light"]),
1824
2122
  "size": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
1825
2123
  "__@iterator": PropTypes.func.isRequired,
@@ -1920,6 +2218,106 @@ DismissibleBox.propTypes = {
1920
2218
  "trimStart": PropTypes.func.isRequired,
1921
2219
  "valueOf": PropTypes.func.isRequired
1922
2220
  }), PropTypes.string]),
2221
+ "tabIndex": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
2222
+ "top": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
2223
+ "__@iterator": PropTypes.func.isRequired,
2224
+ "anchor": PropTypes.func.isRequired,
2225
+ "big": PropTypes.func.isRequired,
2226
+ "blink": PropTypes.func.isRequired,
2227
+ "bold": PropTypes.func.isRequired,
2228
+ "charAt": PropTypes.func.isRequired,
2229
+ "charCodeAt": PropTypes.func.isRequired,
2230
+ "codePointAt": PropTypes.func.isRequired,
2231
+ "concat": PropTypes.func.isRequired,
2232
+ "endsWith": PropTypes.func.isRequired,
2233
+ "fixed": PropTypes.func.isRequired,
2234
+ "fontcolor": PropTypes.func.isRequired,
2235
+ "fontsize": PropTypes.func.isRequired,
2236
+ "includes": PropTypes.func.isRequired,
2237
+ "indexOf": PropTypes.func.isRequired,
2238
+ "italics": PropTypes.func.isRequired,
2239
+ "lastIndexOf": PropTypes.func.isRequired,
2240
+ "length": PropTypes.number.isRequired,
2241
+ "link": PropTypes.func.isRequired,
2242
+ "localeCompare": PropTypes.func.isRequired,
2243
+ "match": PropTypes.func.isRequired,
2244
+ "matchAll": PropTypes.func.isRequired,
2245
+ "normalize": PropTypes.func.isRequired,
2246
+ "padEnd": PropTypes.func.isRequired,
2247
+ "padStart": PropTypes.func.isRequired,
2248
+ "repeat": PropTypes.func.isRequired,
2249
+ "replace": PropTypes.func.isRequired,
2250
+ "search": PropTypes.func.isRequired,
2251
+ "slice": PropTypes.func.isRequired,
2252
+ "small": PropTypes.func.isRequired,
2253
+ "split": PropTypes.func.isRequired,
2254
+ "startsWith": PropTypes.func.isRequired,
2255
+ "strike": PropTypes.func.isRequired,
2256
+ "sub": PropTypes.func.isRequired,
2257
+ "substr": PropTypes.func.isRequired,
2258
+ "substring": PropTypes.func.isRequired,
2259
+ "sup": PropTypes.func.isRequired,
2260
+ "toLocaleLowerCase": PropTypes.func.isRequired,
2261
+ "toLocaleUpperCase": PropTypes.func.isRequired,
2262
+ "toLowerCase": PropTypes.func.isRequired,
2263
+ "toString": PropTypes.func.isRequired,
2264
+ "toUpperCase": PropTypes.func.isRequired,
2265
+ "trim": PropTypes.func.isRequired,
2266
+ "trimEnd": PropTypes.func.isRequired,
2267
+ "trimLeft": PropTypes.func.isRequired,
2268
+ "trimRight": PropTypes.func.isRequired,
2269
+ "trimStart": PropTypes.func.isRequired,
2270
+ "valueOf": PropTypes.func.isRequired
2271
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
2272
+ "__@iterator": PropTypes.func.isRequired,
2273
+ "anchor": PropTypes.func.isRequired,
2274
+ "big": PropTypes.func.isRequired,
2275
+ "blink": PropTypes.func.isRequired,
2276
+ "bold": PropTypes.func.isRequired,
2277
+ "charAt": PropTypes.func.isRequired,
2278
+ "charCodeAt": PropTypes.func.isRequired,
2279
+ "codePointAt": PropTypes.func.isRequired,
2280
+ "concat": PropTypes.func.isRequired,
2281
+ "endsWith": PropTypes.func.isRequired,
2282
+ "fixed": PropTypes.func.isRequired,
2283
+ "fontcolor": PropTypes.func.isRequired,
2284
+ "fontsize": PropTypes.func.isRequired,
2285
+ "includes": PropTypes.func.isRequired,
2286
+ "indexOf": PropTypes.func.isRequired,
2287
+ "italics": PropTypes.func.isRequired,
2288
+ "lastIndexOf": PropTypes.func.isRequired,
2289
+ "length": PropTypes.number.isRequired,
2290
+ "link": PropTypes.func.isRequired,
2291
+ "localeCompare": PropTypes.func.isRequired,
2292
+ "match": PropTypes.func.isRequired,
2293
+ "matchAll": PropTypes.func.isRequired,
2294
+ "normalize": PropTypes.func.isRequired,
2295
+ "padEnd": PropTypes.func.isRequired,
2296
+ "padStart": PropTypes.func.isRequired,
2297
+ "repeat": PropTypes.func.isRequired,
2298
+ "replace": PropTypes.func.isRequired,
2299
+ "search": PropTypes.func.isRequired,
2300
+ "slice": PropTypes.func.isRequired,
2301
+ "small": PropTypes.func.isRequired,
2302
+ "split": PropTypes.func.isRequired,
2303
+ "startsWith": PropTypes.func.isRequired,
2304
+ "strike": PropTypes.func.isRequired,
2305
+ "sub": PropTypes.func.isRequired,
2306
+ "substr": PropTypes.func.isRequired,
2307
+ "substring": PropTypes.func.isRequired,
2308
+ "sup": PropTypes.func.isRequired,
2309
+ "toLocaleLowerCase": PropTypes.func.isRequired,
2310
+ "toLocaleUpperCase": PropTypes.func.isRequired,
2311
+ "toLowerCase": PropTypes.func.isRequired,
2312
+ "toString": PropTypes.func.isRequired,
2313
+ "toUpperCase": PropTypes.func.isRequired,
2314
+ "trim": PropTypes.func.isRequired,
2315
+ "trimEnd": PropTypes.func.isRequired,
2316
+ "trimLeft": PropTypes.func.isRequired,
2317
+ "trimRight": PropTypes.func.isRequired,
2318
+ "trimStart": PropTypes.func.isRequired,
2319
+ "valueOf": PropTypes.func.isRequired
2320
+ }), PropTypes.string]),
1923
2321
  "variant": PropTypes.oneOf(["dark", "light"]),
1924
2322
  "verticalAlign": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
1925
2323
  "__@iterator": PropTypes.func.isRequired,
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare type NumeralContextType = {
3
+ disableErrorBorder?: boolean;
4
+ };
5
+ declare const _default: React.Context<NumeralContextType>;
6
+ export default _default;
@@ -8,6 +8,8 @@ export interface RenderOpenProps {
8
8
  ref: React.RefObject<HTMLButtonElement>;
9
9
  "aria-label"?: string;
10
10
  id?: string;
11
+ "aria-expanded": boolean;
12
+ "aria-haspopup": "dialog";
11
13
  }
12
14
  export interface RenderCloseProps {
13
15
  "data-element": string;