react-magma-dom 3.6.0-next.3 → 3.7.0-next.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.
@@ -21,7 +21,7 @@ export interface FormFieldContainerBaseProps {
21
21
  */
22
22
  errorMessage?: React.ReactNode;
23
23
  /**
24
- * ID of the form field. Also used in the descrption ID.
24
+ * ID of the form field. Also used in the description ID.
25
25
  */
26
26
  fieldId: string;
27
27
  /**
@@ -1,6 +1,12 @@
1
1
  /// <reference types="react" />
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
- export declare const Default: () => JSX.Element;
5
- export declare const Colors: () => JSX.Element;
6
- export declare const Inverse: () => JSX.Element;
4
+ export declare const Default: (args: any) => JSX.Element;
5
+ export declare const Colors: {
6
+ (args: any): JSX.Element;
7
+ parameters: {
8
+ controls: {
9
+ exclude: string[];
10
+ };
11
+ };
12
+ };
@@ -32,4 +32,4 @@ export interface HeadingProps extends TypographyProps<HTMLHeadingElement> {
32
32
  */
33
33
  visualStyle?: TypographyVisualStyle;
34
34
  }
35
- export declare const Heading: React.ForwardRefExoticComponent<Pick<HeadingProps, "css" | "color" | "contextVariant" | "isInverse" | "level" | "testId" | "visualStyle" | "as" | "children" | "element" | "noMargins" | "theme" | "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" | "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" | "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" | "onClick" | "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"> & React.RefAttributes<HTMLHeadingElement>>;
35
+ export declare const Heading: React.ForwardRefExoticComponent<Pick<HeadingProps, "css" | "color" | "contextVariant" | "isInverse" | "level" | "testId" | "visualStyle" | "as" | "children" | "element" | "noMargins" | "noBottomMargin" | "noTopMargin" | "theme" | "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" | "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" | "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" | "onClick" | "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"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -147,4 +147,11 @@ export interface InputBaseStylesProps {
147
147
  }
148
148
  export declare const inputBaseStyles: (props: InputBaseStylesProps) => import("@emotion/utils").SerializedStyles;
149
149
  export declare const InputWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputWrapperStylesProps, ThemeInterface>;
150
+ export declare const IconButtonContainer: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
151
+ iconPosition?: InputIconPosition;
152
+ inputSize?: InputSize;
153
+ theme: ThemeInterface;
154
+ isClickable?: boolean;
155
+ hasChildren?: boolean;
156
+ }, ThemeInterface>;
150
157
  export declare const InputBase: React.ForwardRefExoticComponent<InputBaseProps & React.RefAttributes<HTMLInputElement>>;
@@ -4,6 +4,10 @@ import { FormFieldContainerBaseProps } from '../FormFieldContainer';
4
4
  * @children required
5
5
  */
6
6
  export interface NativeSelectProps extends Omit<FormFieldContainerBaseProps, 'inputSize'>, React.SelectHTMLAttributes<HTMLSelectElement> {
7
+ /**
8
+ * Content above the select. For use with Icon Buttons to relay information.
9
+ */
10
+ additionalContent?: React.ReactNode;
7
11
  /**
8
12
  * @internal
9
13
  */
@@ -3,6 +3,7 @@ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@s
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
5
5
  export declare const Disabled: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
6
+ export declare const WithContent: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
6
7
  export declare const HasError: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
7
8
  export declare const HelperMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
8
9
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
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
- export declare const Default: () => JSX.Element;
4
+ export declare const Default: (args: any) => JSX.Element;
@@ -20,6 +20,16 @@ export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElemen
20
20
  * @default false
21
21
  */
22
22
  noMargins?: boolean;
23
+ /**
24
+ * If true, the component will not have the default bottom margin and instead will have a value of 0
25
+ * @default false
26
+ */
27
+ noBottomMargin?: boolean;
28
+ /**
29
+ * If true, the component will not have the default top margin and instead will have a value of 0
30
+ * @default false
31
+ */
32
+ noTopMargin?: boolean;
23
33
  /**
24
34
  * @internal
25
35
  */
@@ -5,6 +5,7 @@ export default _default;
5
5
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
6
6
  export declare const Disabled: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
7
7
  export declare const Multi: (props: MultiSelectProps<SelectOptions>) => JSX.Element;
8
+ export declare const WithContent: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, any>;
8
9
  export declare const ErrorMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
9
10
  export declare const HelperMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
10
11
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
@@ -2,10 +2,12 @@ import React from 'react';
2
2
  import { LabelPosition } from '../Label';
3
3
  import { UseSelectGetLabelPropsOptions } from 'downshift';
4
4
  export declare const SelectContainerElement: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ isLabelVisuallyHidden?: boolean;
5
6
  labelPosition?: LabelPosition;
6
7
  labelWidth?: number;
7
8
  }, object>;
8
9
  interface SelectContainerInterface<T> {
10
+ additionalContent?: React.ReactNode;
9
11
  children: React.ReactNode[];
10
12
  containerStyle?: React.CSSProperties;
11
13
  errorMessage?: React.ReactNode;
@@ -94,6 +94,10 @@ export interface InternalMultiProps<T> {
94
94
  onRemoveSelectedItem?: (removedItem: T) => void;
95
95
  }
96
96
  export interface SelectProps<T extends SelectOptions> extends UseSelectProps<T>, InternalSelectProps<T> {
97
+ /**
98
+ * Content above the select. For use with Icon Buttons to relay information.
99
+ */
100
+ additionalContent?: React.ReactNode;
97
101
  /**
98
102
  * Id of the element that describes the select trigger button
99
103
  */
@@ -7,6 +7,8 @@ export interface TypographyProps<T = HTMLParagraphElement> extends React.HTMLAtt
7
7
  element?: string;
8
8
  isInverse?: boolean;
9
9
  noMargins?: boolean;
10
+ noBottomMargin?: boolean;
11
+ noTopMargin?: boolean;
10
12
  ref?: any;
11
13
  /**
12
14
  * @internal
@@ -40,7 +42,8 @@ export declare enum TypographyVisualStyle {
40
42
  bodyXSmall = "bodyXSmall"
41
43
  }
42
44
  export declare function getBodyFontFamily(props: any): any;
43
- export declare const colorStyles: (props: any) => import("@emotion/utils").SerializedStyles;
45
+ export declare function getBaseFontColor(props: any, isHeading?: boolean): any;
46
+ export declare const colorStyles: (props: any, isHeading: boolean) => import("@emotion/utils").SerializedStyles;
44
47
  export declare const paragraphLargeStyles: (props: any) => import("@emotion/utils").SerializedStyles;
45
48
  export declare const paragraphMediumStyles: (props: any) => import("@emotion/utils").SerializedStyles;
46
49
  export declare const paragraphSmallStyles: (props: any) => import("@emotion/utils").SerializedStyles;