react-magma-dom 3.0.0 → 3.1.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 (123) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +3 -0
  2. package/dist/components/Accordion/Accordion.stories.d.ts +8 -0
  3. package/dist/components/Accordion/useAccordion.d.ts +3 -0
  4. package/dist/components/Accordion/useAccordionButton.d.ts +3 -0
  5. package/dist/components/Accordion/useAccordionItem.d.ts +3 -0
  6. package/dist/components/Alert/Alert.stories.d.ts +7 -8
  7. package/dist/components/Alert/index.d.ts +4 -1
  8. package/dist/components/AlertBase/index.d.ts +8 -1
  9. package/dist/components/Announce/index.d.ts +3 -0
  10. package/dist/components/AppBar/AppBar.d.ts +7 -0
  11. package/dist/components/Badge/index.d.ts +3 -2
  12. package/dist/components/Banner/Banner.stories.d.ts +4 -2
  13. package/dist/components/Banner/index.d.ts +1 -0
  14. package/dist/components/BlockQuote/BlockQuoteItem.d.ts +3 -0
  15. package/dist/components/Breadcrumb/Breadcrumb.d.ts +7 -0
  16. package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +3 -0
  17. package/dist/components/BreakpointsContainer/index.d.ts +4 -1
  18. package/dist/components/Button/Button.stories.d.ts +2 -0
  19. package/dist/components/Button/index.d.ts +4 -1
  20. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +330 -0
  21. package/dist/components/ButtonGroup/index.d.ts +72 -0
  22. package/dist/components/Card/Card.d.ts +3 -0
  23. package/dist/components/Card/CardBody.d.ts +3 -0
  24. package/dist/components/Card/CardHeading.d.ts +3 -0
  25. package/dist/components/Checkbox/index.d.ts +8 -1
  26. package/dist/components/Combobox/index.d.ts +13 -4
  27. package/dist/components/Container/Container.d.ts +5 -0
  28. package/dist/components/Datagrid/Datagrid.d.ts +3 -1
  29. package/dist/components/Datagrid/Datagrid.stories.d.ts +8 -8
  30. package/dist/components/DatePicker/CalendarContext.d.ts +1 -0
  31. package/dist/components/DatePicker/CalendarDay.d.ts +1 -0
  32. package/dist/components/DatePicker/CalendarHeader.d.ts +1 -0
  33. package/dist/components/DatePicker/CalendarMonth.d.ts +1 -0
  34. package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
  35. package/dist/components/DatePicker/HelperInformation.d.ts +1 -0
  36. package/dist/components/DatePicker/index.d.ts +3 -0
  37. package/dist/components/Drawer/Drawer.d.ts +5 -0
  38. package/dist/components/Dropdown/Dropdown.d.ts +7 -7
  39. package/dist/components/Dropdown/Dropdown.stories.d.ts +2 -0
  40. package/dist/components/Dropdown/DropdownButton.d.ts +1 -1
  41. package/dist/components/Dropdown/DropdownContent.d.ts +4 -0
  42. package/dist/components/Dropdown/DropdownDivider.d.ts +4 -0
  43. package/dist/components/Dropdown/DropdownHeader.d.ts +3 -0
  44. package/dist/components/Dropdown/DropdownMenuItem.d.ts +5 -1
  45. package/dist/components/Flex/Flex.d.ts +4 -0
  46. package/dist/components/Form/index.d.ts +1 -1
  47. package/dist/components/FormFieldContainer/FormFieldContainer.d.ts +4 -0
  48. package/dist/components/FormGroup/index.d.ts +3 -0
  49. package/dist/components/Heading/Heading.stories.d.ts +1 -0
  50. package/dist/components/Heading/index.d.ts +4 -1
  51. package/dist/components/HideAtBreakpoint/index.d.ts +6 -0
  52. package/dist/components/Hyperlink/index.d.ts +4 -0
  53. package/dist/components/IndeterminateCheckbox/index.d.ts +3 -0
  54. package/dist/components/Input/InputMessage.d.ts +3 -0
  55. package/dist/components/InputBase/InputBase.stories.d.ts +1 -0
  56. package/dist/components/InputBase/index.d.ts +3 -0
  57. package/dist/components/Label/index.d.ts +9 -0
  58. package/dist/components/List/List.d.ts +5 -2
  59. package/dist/components/LoadingIndicator/LoadingIndicator.stories.d.ts +28 -1
  60. package/dist/components/LoadingIndicator/index.d.ts +4 -0
  61. package/dist/components/Modal/Modal.d.ts +3 -0
  62. package/dist/components/Modal/Modal.stories.d.ts +0 -1
  63. package/dist/components/NativeSelect/NativeSelect.d.ts +3 -0
  64. package/dist/components/NavTabs/NavTab.d.ts +3 -0
  65. package/dist/components/Pagination/Pagination.d.ts +4 -0
  66. package/dist/components/Pagination/usePagination.d.ts +1 -0
  67. package/dist/components/Paragraph/index.d.ts +3 -0
  68. package/dist/components/PasswordInput/index.d.ts +3 -0
  69. package/dist/components/ProgressBar/index.d.ts +3 -0
  70. package/dist/components/ProgressRing/index.d.ts +3 -0
  71. package/dist/components/Radio/index.d.ts +4 -1
  72. package/dist/components/RadioGroup/index.d.ts +3 -0
  73. package/dist/components/Search/index.d.ts +3 -0
  74. package/dist/components/Select/ItemsList.d.ts +1 -0
  75. package/dist/components/Select/components.d.ts +2 -1
  76. package/dist/components/Select/index.d.ts +3 -0
  77. package/dist/components/Select/shared.d.ts +5 -1
  78. package/dist/components/SelectionControls/StyledContainer.d.ts +2 -2
  79. package/dist/components/SkipLink/index.d.ts +3 -0
  80. package/dist/components/SkipLinkContent/index.d.ts +3 -0
  81. package/dist/components/Spacer/Spacer.d.ts +4 -0
  82. package/dist/components/Spinner/index.d.ts +5 -1
  83. package/dist/components/StyledButton/styles.d.ts +2 -2
  84. package/dist/components/Table/Table.d.ts +18 -0
  85. package/dist/components/Table/Table.stories.d.ts +836 -6
  86. package/dist/components/Table/TableBody.d.ts +3 -0
  87. package/dist/components/Table/TableCell.d.ts +3 -0
  88. package/dist/components/Table/TableHead.d.ts +3 -0
  89. package/dist/components/Table/TableHeaderCell.d.ts +3 -0
  90. package/dist/components/Table/TablePagination.d.ts +4 -1
  91. package/dist/components/Table/TableRow.d.ts +3 -0
  92. package/dist/components/Tabs/Tab.d.ts +3 -0
  93. package/dist/components/Tabs/TabPanel.d.ts +3 -0
  94. package/dist/components/Tabs/TabPanelsContainer.d.ts +3 -0
  95. package/dist/components/Tabs/Tabs.d.ts +7 -0
  96. package/dist/components/Tabs/Tabs.stories.d.ts +1 -0
  97. package/dist/components/Tabs/TabsContainer.d.ts +3 -0
  98. package/dist/components/Tag/Tag.d.ts +2 -0
  99. package/dist/components/Textarea/Textarea.stories.d.ts +1 -0
  100. package/dist/components/Textarea/index.d.ts +3 -0
  101. package/dist/components/TimePicker/useTimePicker.d.ts +2 -2
  102. package/dist/components/Toast/Toast.stories.d.ts +51 -1
  103. package/dist/components/Toast/ToastsContainer.d.ts +3 -0
  104. package/dist/components/Toast/index.d.ts +6 -1
  105. package/dist/components/Toggle/index.d.ts +4 -0
  106. package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -0
  107. package/dist/components/Tooltip/index.d.ts +4 -0
  108. package/dist/components/Transition/Transition.d.ts +3 -0
  109. package/dist/components/Typography/index.d.ts +5 -0
  110. package/dist/components/VisuallyHidden/index.d.ts +3 -0
  111. package/dist/esm/index.js +2561 -2438
  112. package/dist/esm/index.js.map +1 -1
  113. package/dist/index.d.ts +2 -2
  114. package/dist/properties.json +589 -994
  115. package/dist/react-magma-dom.cjs.development.js +1435 -921
  116. package/dist/react-magma-dom.cjs.development.js.map +1 -1
  117. package/dist/react-magma-dom.cjs.production.min.js +1 -1
  118. package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
  119. package/dist/theme/ThemeContext.d.ts +28 -32
  120. package/dist/theme/magma.d.ts +46 -66
  121. package/dist/utils/index.d.ts +10 -0
  122. package/package.json +1 -1
  123. package/dist/components/FormFieldContainer/FormFieldContainer.stories.d.ts +0 -34
@@ -17,24 +17,20 @@ export interface DropdownProps extends React.HTMLAttributes<HTMLDivElement> {
17
17
  activeIndex?: number;
18
18
  /**
19
19
  * Alignment of the dropdown content
20
- * @default `DropdownAlignment.start`
20
+ * @default DropdownAlignment.start
21
21
  */
22
22
  alignment?: DropdownAlignment;
23
23
  /**
24
24
  * Position of the dropdown content
25
- * @default `DropdownDropDirection.down`
25
+ * @default DropdownDropDirection.down
26
26
  */
27
27
  dropDirection?: DropdownDropDirection;
28
+ isInverse?: boolean;
28
29
  /**
29
30
  * Max-height of dropdown content
30
31
  * @default 250px
31
32
  */
32
33
  maxHeight?: string | number;
33
- /**
34
- * Function called on dropdown close before focusing the toggle button
35
- * @deprecated true
36
- */
37
- onBeforeShiftFocus?: (event: React.SyntheticEvent) => void;
38
34
  /**
39
35
  * Function called when closing the dropdown menu
40
36
  */
@@ -43,6 +39,9 @@ export interface DropdownProps extends React.HTMLAttributes<HTMLDivElement> {
43
39
  * Function called when opening the dropdown menu
44
40
  */
45
41
  onOpen?: () => void;
42
+ /**
43
+ * @internal
44
+ */
46
45
  testId?: string;
47
46
  /**
48
47
  * Width of menu
@@ -59,6 +58,7 @@ interface DropdownContextInterface {
59
58
  handleDropdownBlur?: (event: React.FocusEvent) => void;
60
59
  itemRefArray?: React.MutableRefObject<React.MutableRefObject<Element>[]>;
61
60
  isFixedWidth?: boolean;
61
+ isInverse?: boolean;
62
62
  isOpen?: boolean;
63
63
  maxHeight?: string;
64
64
  menuRef?: any;
@@ -2,6 +2,7 @@ import { DropdownProps } from './index';
2
2
  declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
5
+ export declare const HeaderAndIcons: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
5
6
  export declare const OnClickOutside: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
6
7
  export declare const AlignmentButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
7
8
  export declare const LargeButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
@@ -10,3 +11,4 @@ export declare const SmallButton: import("@storybook/csf").AnnotatedStoryFn<impo
10
11
  export declare const SplitButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
11
12
  export declare const LinkMenu: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
12
13
  export declare const Form: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
14
+ export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, DropdownProps>;
@@ -20,7 +20,7 @@ export interface IconTextDropdownButtonProps extends ButtonProps {
20
20
  icon?: React.ReactElement<IconProps>;
21
21
  /**
22
22
  * Position within the button for the icon to appear
23
- * @default `ButtonIconPosition.right`
23
+ * @default ButtonIconPosition.right
24
24
  */
25
25
  iconPosition?: ButtonIconPosition;
26
26
  /**
@@ -3,6 +3,10 @@ import * as React from 'react';
3
3
  * @children required
4
4
  */
5
5
  export interface DropdownContentProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ isInverse?: boolean;
7
+ /**
8
+ * @internal
9
+ */
6
10
  testId?: string;
7
11
  }
8
12
  export declare const DropdownContent: React.ForwardRefExoticComponent<DropdownContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,9 @@
1
1
  import * as React from 'react';
2
2
  export interface DropdownDividerProps extends React.HTMLAttributes<HTMLHRElement> {
3
+ isInverse?: boolean;
4
+ /**
5
+ * @internal
6
+ */
3
7
  testId?: string;
4
8
  }
5
9
  export declare const DropdownDivider: React.FunctionComponent<DropdownDividerProps>;
@@ -3,6 +3,9 @@ import * as React from 'react';
3
3
  * @children required
4
4
  */
5
5
  export interface DropdownHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * @internal
8
+ */
6
9
  testId?: string;
7
10
  }
8
11
  export declare const DropdownHeader: React.ForwardRefExoticComponent<DropdownHeaderProps & React.RefAttributes<HTMLDivElement>>;
@@ -28,6 +28,10 @@ export interface DropdownMenuItemProps extends Omit<React.HTMLAttributes<HTMLDiv
28
28
  */
29
29
  value?: string | number;
30
30
  }
31
+ export declare function menuColors(props: any): any;
32
+ export declare function menuBackground(props: any): any;
31
33
  export declare const MenuItemStyles: (props: any) => import("@emotion/utils").SerializedStyles;
32
- export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, import("../..").ThemeInterface>;
34
+ export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
35
+ isInverse?: boolean;
36
+ }, import("../..").ThemeInterface>;
33
37
  export declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -63,6 +63,7 @@ export interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
63
63
  direction?: FlexDirection;
64
64
  /**
65
65
  * If true, the component will have the flex item behavior. You should be wrapping items with a container.
66
+ * @default FlexJustify.flexStart
66
67
  */
67
68
  justify?: FlexJustify;
68
69
  /**
@@ -70,6 +71,9 @@ export interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
70
71
  * @default 0
71
72
  */
72
73
  spacing?: number;
74
+ /**
75
+ * @internal
76
+ */
73
77
  testId?: string;
74
78
  /**
75
79
  * Defines the flex-wrap style property. It's applied for all screen sizes.
@@ -36,7 +36,7 @@ export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
36
36
  headingVisualStyle?: TypographyVisualStyle;
37
37
  isInverse?: boolean;
38
38
  /**
39
- * Handler for form submission
39
+ * @internal
40
40
  */
41
41
  testId?: string;
42
42
  }
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { InputIconPosition, InputSize } from '../InputBase';
3
3
  /**
4
+ * Interal use only: Wrapper for all field components
4
5
  * @children required
5
6
  */
6
7
  export interface FormFieldContainerProps extends FormFieldContainerBaseProps, React.HTMLAttributes<HTMLDivElement> {
@@ -49,6 +50,9 @@ export interface FormFieldContainerBaseProps {
49
50
  */
50
51
  iconPosition?: InputIconPosition;
51
52
  inputSize?: InputSize;
53
+ /**
54
+ * @internal
55
+ */
52
56
  testId?: string;
53
57
  isInverse?: boolean;
54
58
  }
@@ -33,6 +33,9 @@ export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
33
33
  * Content of label for form group; can be a node or a string. Alternatively, the labelledById prop can be used
34
34
  */
35
35
  labelText?: React.ReactNode;
36
+ /**
37
+ * @internal
38
+ */
36
39
  testId?: string;
37
40
  }
38
41
  export interface FormGroupContextInterface {
@@ -5,4 +5,5 @@ declare const _default: {
5
5
  };
6
6
  export default _default;
7
7
  export declare const Default: () => JSX.Element;
8
+ export declare const Colors: () => JSX.Element;
8
9
  export declare const Inverse: () => JSX.Element;
@@ -11,7 +11,7 @@ export interface HeadingProps extends TypographyProps<HTMLHeadingElement> {
11
11
  color?: TypographyColor;
12
12
  /**
13
13
  * Additional styles for typography based on the context of the content
14
- * @default TypographyColor.default
14
+ * @default TypographyContextVariant.default
15
15
  */
16
16
  contextVariant?: TypographyContextVariant;
17
17
  isInverse?: boolean;
@@ -19,6 +19,9 @@ export interface HeadingProps extends TypographyProps<HTMLHeadingElement> {
19
19
  * Number to indicate which level heading will render (e.g. h1, h2 etc.)
20
20
  */
21
21
  level: 1 | 2 | 3 | 4 | 5 | 6;
22
+ /**
23
+ * @internal
24
+ */
22
25
  testId?: string;
23
26
  /**
24
27
  * Applies visual styles including font-size, font-weight, line-height and margins
@@ -3,6 +3,9 @@ import * as React from 'react';
3
3
  * @children required
4
4
  */
5
5
  export interface HideAtBreakpointProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * @default HideAtBreakpointDisplayType.block
8
+ */
6
9
  displayType?: HideAtBreakpointDisplayType;
7
10
  /**
8
11
  * Maximum width at which to hide the content
@@ -12,6 +15,9 @@ export interface HideAtBreakpointProps extends React.HTMLAttributes<HTMLDivEleme
12
15
  * Minimum width at which to hide the content
13
16
  */
14
17
  minWidth?: number;
18
+ /**
19
+ * @internal
20
+ */
15
21
  testId?: string;
16
22
  }
17
23
  export declare enum HideAtBreakpointDisplayType {
@@ -10,6 +10,10 @@ export interface HyperlinkProps extends ButtonStyles, Omit<React.AnchorHTMLAttri
10
10
  * How the hyperlink is styled (can look like either a plain link or a button)
11
11
  */
12
12
  styledAs?: 'Button' | 'Link';
13
+ isInverse?: boolean;
14
+ /**
15
+ * @internal
16
+ */
13
17
  testId?: string;
14
18
  /**
15
19
  * The href value of the link
@@ -7,6 +7,9 @@ export interface IndeterminateCheckboxProps extends Omit<CheckboxProps, 'checked
7
7
  * @default IndeterminateCheckboxStatus.unchecked
8
8
  */
9
9
  status: IndeterminateCheckboxStatus;
10
+ /**
11
+ * @internal
12
+ */
10
13
  testId?: string;
11
14
  }
12
15
  export declare enum IndeterminateCheckboxStatus {
@@ -3,6 +3,9 @@ import { InputSize } from '../InputBase';
3
3
  export interface InputMessageProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  hasError?: boolean;
5
5
  id?: string;
6
+ /**
7
+ * @default InputSize.medium
8
+ */
6
9
  inputSize?: InputSize;
7
10
  isInverse?: boolean;
8
11
  }
@@ -5,3 +5,4 @@ export declare const Default: {
5
5
  (args: any): JSX.Element;
6
6
  args: {};
7
7
  };
8
+ export declare const Inverse: (args: any) => JSX.Element;
@@ -75,6 +75,9 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
75
75
  * Action that will fire when icon receives keypress
76
76
  */
77
77
  onIconKeyDown?: (event: any) => void;
78
+ /**
79
+ * @internal
80
+ */
78
81
  testId?: string;
79
82
  /**
80
83
  * @internal
@@ -8,9 +8,18 @@ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>
8
8
  actionable?: boolean;
9
9
  iconPosition?: InputIconPosition;
10
10
  isInverse?: boolean;
11
+ /**
12
+ * @default LabelPosition.top
13
+ */
11
14
  labelPosition?: LabelPosition;
15
+ /**
16
+ * @default InputSize.medium
17
+ */
12
18
  size?: InputSize;
13
19
  theme?: any;
20
+ /**
21
+ * @internal
22
+ */
14
23
  testId?: string;
15
24
  }
16
25
  export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
@@ -16,12 +16,12 @@ export interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
16
16
  icon?: React.ReactElement<any> | React.ReactElement<any>[];
17
17
  /**
18
18
  * Aligns the icon at the top, or center of each list item.
19
+ * @default IconAlignment.center
19
20
  */
20
21
  iconAlign?: IconAlignment;
21
22
  /**
22
23
  * Sizes the icon between small, medium, and large.
23
- * @default 'medium'
24
- *
24
+ * @default IconSizes.medium
25
25
  */
26
26
  iconSize?: IconSizes;
27
27
  isInverse?: boolean;
@@ -42,6 +42,9 @@ export interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
42
42
  * Adds a bottom margin to each list item with the Magma space scale.
43
43
  */
44
44
  spacingStyle?: keyof typeof magma.spaceScale;
45
+ /**
46
+ * @internal
47
+ */
45
48
  testId?: string;
46
49
  /**
47
50
  * @internal
@@ -1,7 +1,34 @@
1
1
  import React from 'react';
2
+ import { LoadingIndicatorType } from '.';
2
3
  declare const _default: {
3
4
  component: React.ForwardRefExoticComponent<import(".").LoadingIndicatorProps & React.RefAttributes<HTMLDivElement>>;
4
5
  title: string;
6
+ argTypes: {
7
+ percentage: {
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ type: {
13
+ control: {
14
+ type: string;
15
+ options: typeof LoadingIndicatorType;
16
+ };
17
+ };
18
+ isInverse: {
19
+ defaultValue: boolean;
20
+ control: {
21
+ type: string;
22
+ };
23
+ };
24
+ };
5
25
  };
6
26
  export default _default;
7
- export declare const Default: () => JSX.Element;
27
+ export declare const Default: {
28
+ (args: any): JSX.Element;
29
+ args: {
30
+ message1: string;
31
+ message2: string;
32
+ message3: string;
33
+ };
34
+ };
@@ -24,12 +24,16 @@ export interface LoadingIndicatorProps extends React.HTMLAttributes<HTMLDivEleme
24
24
  * @default 0
25
25
  */
26
26
  percentage?: number;
27
+ /**
28
+ * @internal
29
+ */
27
30
  testId?: string;
28
31
  /**
29
32
  * Type of loading indictor to display, can be progress bar or spinner
30
33
  * @default LoadingIndicatorType.spinner
31
34
  */
32
35
  type?: LoadingIndicatorType;
36
+ isInverse?: boolean;
33
37
  }
34
38
  export declare enum LoadingIndicatorType {
35
39
  progressbar = "progressbar",
@@ -71,6 +71,9 @@ export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
71
71
  * @default ModalSize.medium
72
72
  */
73
73
  size?: ModalSize;
74
+ /**
75
+ * @internal
76
+ */
74
77
  testId?: string;
75
78
  /**
76
79
  * @internal
@@ -9,6 +9,5 @@ export declare const LongContentWithScrolling: () => JSX.Element;
9
9
  export declare const RadioInModal: () => JSX.Element;
10
10
  export declare const ModalContentUpdate: () => JSX.Element;
11
11
  export declare const NoHeaderOrFocusableContent: () => JSX.Element;
12
- export declare const OnCloseBehavior: () => JSX.Element;
13
12
  export declare const ModalInAModal: () => JSX.Element;
14
13
  export declare const Inverse: () => JSX.Element;
@@ -4,6 +4,9 @@ import { FormFieldContainerBaseProps } from '../FormFieldContainer';
4
4
  * @children required
5
5
  */
6
6
  export interface NativeSelectProps extends Omit<FormFieldContainerBaseProps, 'inputSize'>, React.SelectHTMLAttributes<HTMLSelectElement> {
7
+ /**
8
+ * @internal
9
+ */
7
10
  testId?: string;
8
11
  optionLabel?: string;
9
12
  }
@@ -24,6 +24,9 @@ export interface BaseNavTabProps extends React.HTMLAttributes<HTMLAnchorElement>
24
24
  * @default TabsOrientation.horizontal
25
25
  */
26
26
  orientation?: TabsOrientation;
27
+ /**
28
+ * @internal
29
+ */
27
30
  testId?: string;
28
31
  to?: string;
29
32
  /**
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
2
  export interface BasePaginationProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * @internal
5
+ */
3
6
  testId?: string;
4
7
  isInverse?: boolean;
5
8
  page?: number;
@@ -39,6 +42,7 @@ export interface BasePaginationProps extends React.HTMLAttributes<HTMLDivElement
39
42
  onPageChange?: (event: React.SyntheticEvent, newPage: number) => void;
40
43
  /**
41
44
  * Size toggles between default and large variant buttons.
45
+ * @default PageButtonSize.medium
42
46
  */
43
47
  size?: PageButtonSize;
44
48
  /**
@@ -7,6 +7,7 @@ export interface UsePaginationProps {
7
7
  count?: number;
8
8
  /**
9
9
  * Page selected by default when the component is uncontrolled
10
+ * @default 1
10
11
  */
11
12
  defaultPage?: number;
12
13
  /**
@@ -20,6 +20,9 @@ export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElemen
20
20
  * @default false
21
21
  */
22
22
  noMargins?: boolean;
23
+ /**
24
+ * @internal
25
+ */
23
26
  testId?: string;
24
27
  /**
25
28
  * @internal
@@ -29,6 +29,9 @@ export interface PasswordInputProps extends Omit<FormFieldContainerBaseProps, 'f
29
29
  * @default "Show"
30
30
  */
31
31
  showPasswordButtonText?: string;
32
+ /**
33
+ * @internal
34
+ */
32
35
  testId?: string;
33
36
  }
34
37
  export declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -30,6 +30,9 @@ export interface ProgressBarProps extends React.HTMLAttributes<HTMLDivElement> {
30
30
  * @default 0
31
31
  */
32
32
  percentage?: number;
33
+ /**
34
+ * @internal
35
+ */
33
36
  testId?: string;
34
37
  }
35
38
  export declare enum ProgressBarColor {
@@ -6,6 +6,9 @@ export interface ProgressRingProps extends React.HTMLAttributes<HTMLDivElement>
6
6
  percentage?: number;
7
7
  radius?: number;
8
8
  strokeWidth?: number;
9
+ /**
10
+ * @internal
11
+ */
9
12
  testId?: string;
10
13
  }
11
14
  export declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<HTMLDivElement>>;
@@ -10,7 +10,7 @@ export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
10
10
  css?: any;
11
11
  /**
12
12
  * Hex code for the background color
13
- * @default #0000FF
13
+ * @default theme.colors.primary
14
14
  */
15
15
  color?: string;
16
16
  /**
@@ -35,6 +35,9 @@ export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
35
35
  * Content of label; can be node or string
36
36
  */
37
37
  labelText: React.ReactNode;
38
+ /**
39
+ * @internal
40
+ */
38
41
  testId?: string;
39
42
  /**
40
43
  * Whether the label appears to the left of the right of the radio button
@@ -54,6 +54,9 @@ export interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
54
54
  * @default false
55
55
  */
56
56
  required?: boolean;
57
+ /**
58
+ * @internal
59
+ */
57
60
  testId?: string;
58
61
  /**
59
62
  * Value of the radio button that is the default selected value for the group
@@ -39,6 +39,9 @@ export interface SearchProps extends InputBaseProps {
39
39
  * Action that will fire when search icon button is clicked
40
40
  */
41
41
  onSearch: (term: string) => void;
42
+ /**
43
+ * @internal
44
+ */
42
45
  testId?: string;
43
46
  /**
44
47
  * Value of the input element
@@ -7,6 +7,7 @@ interface ItemsListProps<T> {
7
7
  getMenuProps: (options?: UseSelectGetMenuPropsOptions) => any;
8
8
  highlightedIndex?: number;
9
9
  isOpen?: boolean;
10
+ isInverse?: boolean;
10
11
  items: T[];
11
12
  itemToString: (item: T) => string;
12
13
  maxHeight?: number | string;
@@ -6,6 +6,7 @@ import { ThemeInterface } from '../../theme/magma';
6
6
  export declare type ItemRenderOptions<T> = {
7
7
  key: string;
8
8
  isFocused?: boolean;
9
+ isInverse?: boolean;
9
10
  item: T;
10
11
  itemRef: React.Ref<HTMLLIElement>;
11
12
  itemString: string;
@@ -21,7 +22,7 @@ export declare type SelectComponents<T> = {
21
22
  export declare const DefaultClearIndicator: (props: any) => JSX.Element;
22
23
  export declare const DefaultDropdownIndicator: (props: any) => JSX.Element;
23
24
  export declare const DefaultLoadingIndicator: (props: any) => JSX.Element;
24
- export declare function DefaultItem<T>({ itemRef, itemString, ...props }: ItemRenderOptions<T>): JSX.Element;
25
+ export declare function DefaultItem<T>({ itemRef, itemString, isInverse, ...props }: ItemRenderOptions<T>): JSX.Element;
25
26
  export declare function defaultComponents<T>(props: SelectComponents<T>): {
26
27
  ClearIndicator: React.FunctionComponent<({} & import("../IconButton").IconTextButtonProps) | ({
27
28
  children?: never;
@@ -78,6 +78,9 @@ export interface InternalSelectProps<T> {
78
78
  * Text for select trigger button or combobox input placeholder
79
79
  */
80
80
  placeholder?: string;
81
+ /**
82
+ * @internal
83
+ */
81
84
  testId?: string;
82
85
  }
83
86
  export interface InternalMultiProps<T> {