@deque/cauldron-react 4.5.0-canary.f4c1c3dd → 4.5.0-canary.fa9f1d61

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.
@@ -1,11 +1,7 @@
1
1
  import React from 'react';
2
- declare const Breadcrumb: React.ForwardRefExoticComponent<({
3
- separator?: string | undefined;
4
- } & React.HTMLAttributes<HTMLElement> & {
5
- 'aria-label': string;
6
- } & React.RefAttributes<HTMLElement>) | ({
7
- separator?: string | undefined;
8
- } & React.HTMLAttributes<HTMLElement> & {
9
- 'aria-labelledby': string;
10
- } & React.RefAttributes<HTMLElement>)>;
2
+ import { Cauldron } from '../../types';
3
+ declare type BreadcrumbProps = {
4
+ separator?: string;
5
+ } & React.HTMLAttributes<HTMLElement> & Cauldron.LabelProps;
6
+ declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>;
11
7
  export default Breadcrumb;
@@ -1,7 +1,7 @@
1
1
  import React, { ButtonHTMLAttributes, Ref } from 'react';
2
2
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  buttonRef?: Ref<HTMLButtonElement>;
4
- variant?: 'primary' | 'secondary' | 'error' | 'link';
4
+ variant?: 'primary' | 'secondary' | 'error' | 'link' | 'tag';
5
5
  thin?: boolean;
6
6
  }
7
7
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
3
3
  interface Props extends SyntaxHighlighterProps {
4
- children: React.ReactNode;
4
+ children: string;
5
5
  language?: 'javascript' | 'css' | 'html' | 'yaml';
6
6
  className?: string;
7
7
  tabIndex?: number;
8
8
  }
9
- declare const Code: React.ComponentType<Props>;
9
+ declare const Code: React.ComponentType<React.PropsWithChildren<Props>>;
10
10
  export default Code;
@@ -42,7 +42,7 @@ export default class Dialog extends React.Component<DialogProps, DialogState> {
42
42
  componentDidMount(): void;
43
43
  componentDidUpdate(prevProps: DialogProps): void;
44
44
  private attachIsolator;
45
- render(): React.ReactPortal | null;
45
+ render(): JSX.Element | null;
46
46
  close(): void;
47
47
  handleClickOutside(): void;
48
48
  focusHeading(): void;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { IconType } from '../Icon';
4
- export interface PanelTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ export interface PanelTriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
5
5
  children?: ((props: {
6
6
  open: boolean;
7
7
  }) => React.ReactNode) | React.ReactNode;
@@ -2,6 +2,6 @@
2
2
  * GENERATED CODE. DO NOT EDIT DIRECTLY!
3
3
  */
4
4
  /** IconType represents each valid icon type. */
5
- export declare type IconType = 'add-user' | 'arrow-circle-up' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-right' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrows-alt' | 'bolt' | 'caution' | 'check-circle' | 'check-shield' | 'check-solid' | 'check' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-up' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'close' | 'code' | 'copy' | 'download' | 'dropper' | 'exchange' | 'external-link' | 'eye' | 'filter' | 'flag' | 'gears' | 'grid' | 'hamburger-menu' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'minus' | 'new-releases' | 'new' | 'no' | 'pencil' | 'plus' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle' | 'resend' | 'robot' | 'run-again' | 'save' | 'share' | 'sort-triangle' | 'sort' | 'star' | 'sun' | 'tag' | 'target' | 'trash' | 'triangle-up' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'upload';
5
+ export declare type IconType = 'add-user' | 'arrow-circle-up' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-right' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrows-alt' | 'bolt' | 'caution' | 'check-circle' | 'check-shield' | 'check-solid' | 'check' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-up' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'close' | 'code' | 'copy' | 'download' | 'dropper' | 'exchange' | 'external-link' | 'eye' | 'filter' | 'flag' | 'gears' | 'grid' | 'hamburger-menu' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'minus' | 'new-releases' | 'new' | 'no' | 'pencil' | 'play' | 'plus' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle-square' | 'recycle' | 'resend' | 'robot' | 'run-again' | 'save' | 'share' | 'sort-triangle' | 'sort' | 'star' | 'sun' | 'tag' | 'target' | 'trash' | 'triangle-up' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'upload';
6
6
  /** iconTypes holds each valid icon type. */
7
7
  export declare const iconTypes: string[];
@@ -17,6 +17,7 @@ export interface OptionsMenuProps extends OptionsMenuAlignmentProps {
17
17
  onSelect: (e: React.MouseEvent<HTMLElement>) => void;
18
18
  closeOnSelect?: boolean;
19
19
  show?: boolean;
20
+ children: React.ReactNode;
20
21
  }
21
22
  interface OptionsMenuState {
22
23
  show: boolean;
@@ -1,15 +1,9 @@
1
+ import { Cauldron } from '../../types';
1
2
  import React from 'react';
2
- declare const ProgressBar: React.ForwardRefExoticComponent<({
3
+ declare type ProgressBarProps = {
3
4
  progress: number;
4
- progressMax?: number | undefined;
5
- progressMin?: number | undefined;
6
- } & {
7
- 'aria-label': string;
8
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>) | ({
9
- progress: number;
10
- progressMax?: number | undefined;
11
- progressMin?: number | undefined;
12
- } & {
13
- 'aria-labelledby': string;
14
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>)>;
5
+ progressMax?: number;
6
+ progressMin?: number;
7
+ } & Cauldron.LabelProps & React.HTMLAttributes<HTMLDivElement>;
8
+ declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
15
9
  export default ProgressBar;
@@ -15,5 +15,5 @@ export interface SelectProps extends Omit<React.HTMLProps<HTMLSelectElement>, 'c
15
15
  defaultValue?: any;
16
16
  onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
17
17
  }
18
- declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "error" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "download" | "target" | "type" | "name" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "value" | "width" | "wmode" | "options" | "requiredText"> & React.RefAttributes<HTMLSelectElement>>;
18
+ declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps, "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" | "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" | "form" | "list" | "step" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "type" | "key" | "download" | "target" | "name" | "error" | "disabled" | "open" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "useMap" | "value" | "width" | "wmode" | "wrap" | "options" | "requiredText"> & React.RefAttributes<HTMLSelectElement>>;
19
19
  export default Select;
@@ -3,5 +3,5 @@ export interface SideBarItemProps extends React.HTMLAttributes<HTMLLIElement> {
3
3
  children: React.ReactNode;
4
4
  autoClickLink?: boolean;
5
5
  }
6
- declare const SideBarItem: React.ComponentType<SideBarItemProps>;
6
+ declare const SideBarItem: React.ComponentType<React.PropsWithChildren<SideBarItemProps>>;
7
7
  export default SideBarItem;
@@ -8,6 +8,7 @@ export interface ToastProps {
8
8
  toastRef: React.Ref<HTMLDivElement>;
9
9
  focus?: boolean;
10
10
  show?: boolean;
11
+ children: React.ReactNode;
11
12
  }
12
13
  interface ToastState {
13
14
  animationClass: string;
@@ -11,7 +11,7 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
11
11
  portal?: React.RefObject<HTMLElement> | HTMLElement;
12
12
  hideElementOnHidden?: boolean;
13
13
  }
14
- declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: initialShow, hideElementOnHidden, className, ...props }: TooltipProps): React.ReactPortal | null;
14
+ declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: initialShow, hideElementOnHidden, className, ...props }: TooltipProps): JSX.Element;
15
15
  declare namespace Tooltip {
16
16
  var displayName: string;
17
17
  var propTypes: {
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  interface TopBarTriggerProps extends React.HTMLAttributes<HTMLLIElement> {
3
3
  children: React.ReactNode;
4
4
  }
5
- declare const TopBarTrigger: React.ComponentType<TopBarTriggerProps>;
5
+ declare const TopBarTrigger: React.ComponentType<React.PropsWithChildren<TopBarTriggerProps>>;
6
6
  export default TopBarTrigger;
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- declare const ColumnLeft: React.ForwardRefExoticComponent<(React.HTMLAttributes<HTMLDivElement> & {
3
- 'aria-label': string;
4
- } & React.RefAttributes<HTMLDivElement>) | (React.HTMLAttributes<HTMLDivElement> & {
5
- 'aria-labelledby': string;
6
- } & React.RefAttributes<HTMLDivElement>)>;
2
+ import { Cauldron } from '../../types';
3
+ declare type ColumnLeftProps = React.HTMLAttributes<HTMLDivElement> & Cauldron.LabelProps;
4
+ declare const ColumnLeft: React.ForwardRefExoticComponent<ColumnLeftProps & React.RefAttributes<HTMLDivElement>>;
7
5
  export default ColumnLeft;
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- declare const ColumnRight: React.ForwardRefExoticComponent<(React.HTMLAttributes<HTMLDivElement> & {
3
- 'aria-label': string;
4
- } & React.RefAttributes<HTMLDivElement>) | (React.HTMLAttributes<HTMLDivElement> & {
5
- 'aria-labelledby': string;
6
- } & React.RefAttributes<HTMLDivElement>)>;
2
+ import { Cauldron } from '../../types';
3
+ declare type ColumnRightProps = React.HTMLAttributes<HTMLDivElement> & Cauldron.LabelProps;
4
+ declare const ColumnRight: React.ForwardRefExoticComponent<ColumnRightProps & React.RefAttributes<HTMLDivElement>>;
7
5
  export default ColumnRight;
package/lib/index.js CHANGED
@@ -170,10 +170,12 @@ var iconTypes = [
170
170
  'new',
171
171
  'no',
172
172
  'pencil',
173
+ 'play',
173
174
  'plus',
174
175
  'question-circle',
175
176
  'radio-checked',
176
177
  'radio-unchecked',
178
+ 'recycle-square',
177
179
  'recycle',
178
180
  'resend',
179
181
  'robot',
@@ -237,10 +239,12 @@ function __variableDynamicImportRuntime0__(path) {
237
239
  case './icons/new.svg': return Promise.resolve().then(function () { return require('./new.js'); });
238
240
  case './icons/no.svg': return Promise.resolve().then(function () { return require('./no.js'); });
239
241
  case './icons/pencil.svg': return Promise.resolve().then(function () { return require('./pencil.js'); });
242
+ case './icons/play.svg': return Promise.resolve().then(function () { return require('./play.js'); });
240
243
  case './icons/plus.svg': return Promise.resolve().then(function () { return require('./plus.js'); });
241
244
  case './icons/question-circle.svg': return Promise.resolve().then(function () { return require('./question-circle.js'); });
242
245
  case './icons/radio-checked.svg': return Promise.resolve().then(function () { return require('./radio-checked.js'); });
243
246
  case './icons/radio-unchecked.svg': return Promise.resolve().then(function () { return require('./radio-unchecked.js'); });
247
+ case './icons/recycle-square.svg': return Promise.resolve().then(function () { return require('./recycle-square.js'); });
244
248
  case './icons/recycle.svg': return Promise.resolve().then(function () { return require('./recycle.js'); });
245
249
  case './icons/resend.svg': return Promise.resolve().then(function () { return require('./resend.js'); });
246
250
  case './icons/robot.svg': return Promise.resolve().then(function () { return require('./robot.js'); });
@@ -279,19 +283,19 @@ var Icon = React.forwardRef(function (_a, ref) {
279
283
  if (process.env.NODE_ENV === 'test') {
280
284
  return;
281
285
  }
282
- __variableDynamicImportRuntime0__("./icons/" + name + ".svg")
286
+ __variableDynamicImportRuntime0__("./icons/".concat(name, ".svg"))
283
287
  .then(function (icon) {
284
288
  isMounted.current && setIcon(function () { return icon["default"]; });
285
289
  })["catch"](function () {
286
- console.error("Could not find icon type \"" + type + "\".");
290
+ console.error("Could not find icon type \"".concat(type, "\"."));
287
291
  isMounted.current && setIcon(null);
288
292
  });
289
293
  return function () {
290
294
  isMounted.current = false;
291
295
  };
292
296
  }, [type]);
293
- var data = tslib.__assign(tslib.__assign({}, other), { 'aria-hidden': !label, className: classNames('Icon', "Icon--" + type, className, (_b = {},
294
- _b["Icon__" + direction] = !!direction,
297
+ var data = tslib.__assign(tslib.__assign({}, other), { 'aria-hidden': !label, className: classNames('Icon', "Icon--".concat(type), className, (_b = {},
298
+ _b["Icon__".concat(direction)] = !!direction,
295
299
  _b)) });
296
300
  return (React__default.createElement("div", tslib.__assign({ ref: ref }, data),
297
301
  label && React__default.createElement(Offscreen, null, label),
@@ -364,7 +368,7 @@ var Scrim = /** @class */ (function (_super) {
364
368
  if (destroy) {
365
369
  return null;
366
370
  }
367
- return (React__default.createElement("div", { ref: function (el) { return (_this.el = el); }, className: "Scrim " + animationClass }));
371
+ return (React__default.createElement("div", { ref: function (el) { return (_this.el = el); }, className: "Scrim ".concat(animationClass) }));
368
372
  };
369
373
  Scrim.propTypes = {
370
374
  show: PropTypes.bool.isRequired
@@ -498,9 +502,9 @@ var TopBar = /** @class */ (function (_super) {
498
502
  args[_i] = arguments[_i];
499
503
  }
500
504
  // @ts-ignore we're just spreading the original args
501
- _this.onKeyDown.apply(_this, tslib.__spread(args));
505
+ _this.onKeyDown.apply(_this, tslib.__spreadArray([], tslib.__read(args), false));
502
506
  if (child.props.onKeyDown) {
503
- (_a = child.props).onKeyDown.apply(_a, tslib.__spread(args));
507
+ (_a = child.props).onKeyDown.apply(_a, tslib.__spreadArray([], tslib.__read(args), false));
504
508
  }
505
509
  },
506
510
  tabIndex: 0,
@@ -536,7 +540,7 @@ var TopBar = /** @class */ (function (_super) {
536
540
  };
537
541
  TopBar.prototype.onKeyDown = function (e) {
538
542
  var key = keyname(e.which);
539
- var menuItems = tslib.__spread(this.menuItems);
543
+ var menuItems = tslib.__spreadArray([], tslib.__read(this.menuItems), false);
540
544
  // account for hidden side bar trigger (hamburger)
541
545
  if (this.state.wide && this.props.hasTrigger) {
542
546
  menuItems.shift();
@@ -592,6 +596,7 @@ var TopBarTrigger = function (_a) {
592
596
  };
593
597
  TopBarTrigger.displayName = 'TopBarTrigger';
594
598
  TopBarTrigger.propTypes = {
599
+ // @ts-expect-error
595
600
  children: PropTypes.node.isRequired,
596
601
  className: PropTypes.string
597
602
  };
@@ -787,7 +792,7 @@ var OptionsMenuList = /** @class */ (function (_super) {
787
792
  /* eslint-enable @typescript-eslint/no-unused-vars */
788
793
  var items = React__default.Children.toArray(children).map(function (child, i) {
789
794
  var _a = child.props, className = _a.className, other = tslib.__rest(_a, ["className"]);
790
- return React__default.cloneElement(child, tslib.__assign({ key: "list-item-" + i, className: classNames('OptionsMenu__list-item', className), tabIndex: -1, role: 'menuitem', ref: function (el) { return (_this.itemRefs[i] = el); } }, other));
795
+ return React__default.cloneElement(child, tslib.__assign({ key: "list-item-".concat(i), className: classNames('OptionsMenu__list-item', className), tabIndex: -1, role: 'menuitem', ref: function (el) { return (_this.itemRefs[i] = el); } }, other));
791
796
  });
792
797
  // Key event is being handled in componentDidMount
793
798
  /* eslint-disable jsx-a11y/click-events-have-key-events */
@@ -1167,7 +1172,8 @@ var SideBar = /** @class */ (function (_super) {
1167
1172
  setTimeout(function () {
1168
1173
  var _a, _b;
1169
1174
  _this.setState({ animateClass: second });
1170
- var firstFocusable = show && ((_b = (_a = _this.navList) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.querySelector(focusableSelector));
1175
+ var firstFocusable = show &&
1176
+ ((_b = (_a = _this.navList) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.querySelector(focusableSelector));
1171
1177
  if (firstFocusable) {
1172
1178
  firstFocusable.focus();
1173
1179
  }
@@ -1216,6 +1222,7 @@ SideBarItem.defaultProps = {
1216
1222
  autoClickLink: true
1217
1223
  };
1218
1224
  SideBarItem.propTypes = {
1225
+ // @ts-expect-error
1219
1226
  children: PropTypes.node.isRequired,
1220
1227
  autoClickLink: PropTypes.bool
1221
1228
  };
@@ -1305,7 +1312,7 @@ var Dialog = /** @class */ (function (_super) {
1305
1312
  var close = !forceAction ? (React__default.createElement("button", { className: "Dialog__close", type: "button", onClick: this.close },
1306
1313
  React__default.createElement(Icon, { type: "close", "aria-hidden": "true" }),
1307
1314
  React__default.createElement(Offscreen, null, closeButtonText))) : null;
1308
- var Heading = "h" + (typeof heading === 'object' && 'level' in heading && !!heading.level
1315
+ var Heading = "h".concat(typeof heading === 'object' && 'level' in heading && !!heading.level
1309
1316
  ? heading.level
1310
1317
  : 2);
1311
1318
  var Dialog = (React__default.createElement(FocusTrap, { focusTrapOptions: {
@@ -1464,7 +1471,7 @@ var SkipLink = /** @class */ (function (_super) {
1464
1471
  target: function (props, propName, componentName) {
1465
1472
  var value = props[propName];
1466
1473
  if (!value || typeof value !== 'string' || value[0] !== '#') {
1467
- return new Error("Invalid prop " + propName + " supplied to " + componentName + " (must be string starting with \"#\")");
1474
+ return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, " (must be string starting with \"#\")"));
1468
1475
  }
1469
1476
  },
1470
1477
  skipText: PropTypes.string,
@@ -1480,6 +1487,8 @@ var Button = React.forwardRef(function (_a, ref) {
1480
1487
  'Button--secondary': variant === 'secondary',
1481
1488
  'Button--error': variant === 'error',
1482
1489
  Link: variant === 'link',
1490
+ Tag: variant === 'tag',
1491
+ 'Button--tag': variant === 'tag',
1483
1492
  'Button--thin': thin
1484
1493
  }), ref: ref || buttonRef }, other), children));
1485
1494
  });
@@ -1609,8 +1618,8 @@ function Tooltip(_a) {
1609
1618
  targetElement === null || targetElement === void 0 ? void 0 : targetElement.setAttribute(association, [id, attrText].filter(Boolean).join(' '));
1610
1619
  }
1611
1620
  }, [targetElement, id]);
1612
- return (showTooltip || hideElementOnHidden) && isBrowser()
1613
- ? reactDom.createPortal(React__default.createElement("div", tslib.__assign({ id: id, className: classNames('Tooltip', "Tooltip--" + placement, className, {
1621
+ return (React__default.createElement(React__default.Fragment, null, (showTooltip || hideElementOnHidden) && isBrowser()
1622
+ ? reactDom.createPortal(React__default.createElement("div", tslib.__assign({ id: id, className: classNames('Tooltip', "Tooltip--".concat(placement), className, {
1614
1623
  TooltipInfo: variant === 'info',
1615
1624
  'Tooltip--hidden': !showTooltip && hideElementOnHidden,
1616
1625
  'Tooltip--big': variant === 'big'
@@ -1618,7 +1627,7 @@ function Tooltip(_a) {
1618
1627
  variant !== 'big' && (React__default.createElement("div", { className: "TooltipArrow", ref: setArrowElement, style: styles.arrow })),
1619
1628
  children), (portal && 'current' in portal ? portal.current : portal) ||
1620
1629
  document.body)
1621
- : null;
1630
+ : null));
1622
1631
  }
1623
1632
  Tooltip.displayName = 'Tooltip';
1624
1633
  Tooltip.propTypes = {
@@ -1681,6 +1690,7 @@ IconButton.propTypes = {
1681
1690
  as: PropTypes.elementType,
1682
1691
  // @ts-expect-error
1683
1692
  icon: PropTypes.string.isRequired,
1693
+ // @ts-expect-error
1684
1694
  label: PropTypes.node.isRequired,
1685
1695
  // @ts-expect-error
1686
1696
  tooltipPlacement: PropTypes.string,
@@ -1695,7 +1705,7 @@ IconButton.displayName = 'IconButton';
1695
1705
  var i = 0;
1696
1706
  var randomId = function () {
1697
1707
  var num = Math.floor(Math.random() * 10000) + 1;
1698
- return "x_" + i++ + "_" + num;
1708
+ return "x_".concat(i++, "_").concat(num);
1699
1709
  };
1700
1710
 
1701
1711
  /*
@@ -1790,16 +1800,15 @@ var Pointout = /** @class */ (function (_super) {
1790
1800
  visibleFocusable[elementIndex].classList.remove('Pointout--focus-active');
1791
1801
  };
1792
1802
  _this.positionRelativeToTarget = function () {
1793
- var _a, _b;
1794
- var _c = _this.props, target = _c.target, portal = _c.portal, arrowPosition = _c.arrowPosition, position = _c.position;
1803
+ var _a = _this.props, target = _a.target, portal = _a.portal, arrowPosition = _a.arrowPosition, position = _a.position;
1795
1804
  if (!target) {
1796
1805
  return;
1797
1806
  }
1798
- var targetNode = ((_a = target) === null || _a === void 0 ? void 0 : _a.current) ||
1807
+ var targetNode = (target === null || target === void 0 ? void 0 : target.current) ||
1799
1808
  target;
1800
- var portalNode = ((_b = portal) === null || _b === void 0 ? void 0 : _b.current) ||
1809
+ var portalNode = (portal === null || portal === void 0 ? void 0 : portal.current) ||
1801
1810
  portal;
1802
- var _d = targetNode.getBoundingClientRect(), top = _d.top, left = _d.left, width = _d.width, height = _d.height;
1811
+ var _b = targetNode.getBoundingClientRect(), top = _b.top, left = _b.left, width = _b.width, height = _b.height;
1803
1812
  if (portalNode && portalNode !== document.body) {
1804
1813
  // If the portal is not placed on document.body
1805
1814
  // position the FTPO relative to the portal
@@ -1807,48 +1816,48 @@ var Pointout = /** @class */ (function (_super) {
1807
1816
  top -= rect.top - portalNode.scrollTop;
1808
1817
  left -= rect.left - portalNode.scrollLeft;
1809
1818
  }
1810
- var _e = tslib.__read(arrowPosition.split('-'), 1), arrowBoxSide = _e[0];
1819
+ var _c = tslib.__read(arrowPosition.split('-'), 1), arrowBoxSide = _c[0];
1811
1820
  var style;
1812
1821
  switch (arrowBoxSide) {
1813
1822
  case 'right':
1814
1823
  style = {
1815
- left: left + "px",
1816
- top: (position === 'center'
1824
+ left: "".concat(left, "px"),
1825
+ top: "".concat(position === 'center'
1817
1826
  ? top + height / 2
1818
1827
  : position === 'start'
1819
1828
  ? top
1820
- : top + height) + "px"
1829
+ : top + height, "px")
1821
1830
  };
1822
1831
  break;
1823
1832
  case 'bottom':
1824
1833
  style = {
1825
- top: top + "px",
1826
- left: (position === 'center'
1834
+ top: "".concat(top, "px"),
1835
+ left: "".concat(position === 'center'
1827
1836
  ? left + width / 2
1828
1837
  : position === 'start'
1829
1838
  ? left
1830
- : left + width) + "px"
1839
+ : left + width, "px")
1831
1840
  };
1832
1841
  break;
1833
1842
  case 'left':
1834
1843
  style = {
1835
- left: left + width + "px",
1836
- top: (position === 'center'
1844
+ left: "".concat(left + width, "px"),
1845
+ top: "".concat(position === 'center'
1837
1846
  ? top + height / 2
1838
1847
  : position === 'start'
1839
1848
  ? top
1840
- : top + height) + "px"
1849
+ : top + height, "px")
1841
1850
  };
1842
1851
  break;
1843
1852
  case 'top':
1844
1853
  default:
1845
1854
  style = {
1846
- top: top + height + "px",
1847
- left: (position === 'center'
1855
+ top: "".concat(top + height, "px"),
1856
+ left: "".concat(position === 'center'
1848
1857
  ? left + width / 2
1849
1858
  : position === 'start'
1850
1859
  ? left
1851
- : left + width) + "px"
1860
+ : left + width, "px")
1852
1861
  };
1853
1862
  break;
1854
1863
  }
@@ -1860,7 +1869,7 @@ var Pointout = /** @class */ (function (_super) {
1860
1869
  }
1861
1870
  Pointout.prototype.getFocusableElements = function (root) {
1862
1871
  return root
1863
- ? Array.from(root.querySelectorAll(focusable + ", [data-focusable]"))
1872
+ ? Array.from(root.querySelectorAll("".concat(focusable, ", [data-focusable]")))
1864
1873
  : [];
1865
1874
  };
1866
1875
  Pointout.prototype.componentDidMount = function () {
@@ -1930,11 +1939,11 @@ var Pointout = /** @class */ (function (_super) {
1930
1939
  'Pointout--no-arrow': noArrow,
1931
1940
  'Pointout--auto': !!target
1932
1941
  },
1933
- _a["Pointout__arrow--" + arrowPosition] = !!arrowPosition && !noArrow,
1934
- _a["Pointout--" + position] = !!target,
1942
+ _a["Pointout__arrow--".concat(arrowPosition)] = !!arrowPosition && !noArrow,
1943
+ _a["Pointout--".concat(position)] = !!target,
1935
1944
  _a)), style: style, role: target ? undefined : 'region', "aria-labelledby": heading ? headingId : undefined, "aria-hidden": !!target && !disableOffscreenPointout, ref: function (el) { return (_this.visibleRef = el); } },
1936
1945
  noArrow ? null : (React__default.createElement("div", { className: classNames('Pointout__arrow', (_b = {},
1937
- _b["Pointout__arrow--" + arrowPosition] = !!arrowPosition && !noArrow,
1946
+ _b["Pointout__arrow--".concat(arrowPosition)] = !!arrowPosition && !noArrow,
1938
1947
  _b)) },
1939
1948
  React__default.createElement("div", { className: "Pointout__arrow-pointer" }))),
1940
1949
  React__default.createElement("div", { className: "Pointout__box" },
@@ -2115,7 +2124,7 @@ var Toast = /** @class */ (function (_super) {
2115
2124
  var scrim = type === 'action-needed' && show ? (React__default.createElement("div", { className: "Scrim--light Scrim--show Scrim--fade-in" })) : null;
2116
2125
  var defaultProps = {
2117
2126
  tabIndex: -1,
2118
- className: "Toast Toast--" + typeMap[type].className + " " + animationClass
2127
+ className: "Toast Toast--".concat(typeMap[type].className, " ").concat(animationClass)
2119
2128
  };
2120
2129
  if (!focus) {
2121
2130
  defaultProps.role = 'alert';
@@ -2301,9 +2310,10 @@ var Select = React__default.forwardRef(function (_a, ref) {
2301
2310
  'Field__select--disabled': disabled,
2302
2311
  'Field--has-error': !!error
2303
2312
  }) },
2304
- React__default.createElement("select", tslib.__assign({ ref: ref, id: selectId, disabled: disabled, required: required, onChange: handleChange }, dynamicProps, rest), (options === null || options === void 0 ? void 0 : options.length) ? options.map(function (option) {
2305
- return (React__default.createElement("option", { className: "Field__option", key: option.key, value: option.value, disabled: option.disabled }, option.label || option.value));
2306
- })
2313
+ React__default.createElement("select", tslib.__assign({ ref: ref, id: selectId, disabled: disabled, required: required, onChange: handleChange }, dynamicProps, rest), (options === null || options === void 0 ? void 0 : options.length)
2314
+ ? options.map(function (option) {
2315
+ return (React__default.createElement("option", { className: "Field__option", key: option.key, value: option.value, disabled: option.disabled }, option.label || option.value));
2316
+ })
2307
2317
  : children),
2308
2318
  React__default.createElement("div", { className: "arrow-down" })),
2309
2319
  error && (React__default.createElement("div", { id: errorId, className: "Error" }, error))));
@@ -2352,7 +2362,7 @@ var RadioGroup = function (_a) {
2352
2362
  var _a;
2353
2363
  handleChange(radioValue);
2354
2364
  onChange(radio, (_a = inputs.current) === null || _a === void 0 ? void 0 : _a[index]);
2355
- }, disabled: disabled, checked: isChecked, "aria-describedby": labelDescription ? id + "Desc" : undefined }, other)),
2365
+ }, disabled: disabled, checked: isChecked, "aria-describedby": labelDescription ? "".concat(id, "Desc") : undefined }, other)),
2356
2366
  React__default.createElement("label", { htmlFor: id, className: classNames('Field__label', {
2357
2367
  'Field__label--disabled': disabled
2358
2368
  }) }, label),
@@ -2360,7 +2370,7 @@ var RadioGroup = function (_a) {
2360
2370
  'Radio__overlay--focused': isFocused,
2361
2371
  'Radio__overlay--disabled': disabled
2362
2372
  }), type: isChecked ? 'radio-checked' : 'radio-unchecked', "aria-hidden": "true", onClick: function () { return onRadioClick(index); } }),
2363
- labelDescription && (React__default.createElement("span", { id: id + "Desc", className: classNames('Field__labelDescription', {
2373
+ labelDescription && (React__default.createElement("span", { id: "".concat(id, "Desc"), className: classNames('Field__labelDescription', {
2364
2374
  'Field__labelDescription--disabled': disabled
2365
2375
  }) }, labelDescription))));
2366
2376
  });
@@ -2380,7 +2390,7 @@ RadioGroup.propTypes = {
2380
2390
  })).isRequired,
2381
2391
  hasLabel: function (props, propName, componentName) {
2382
2392
  if (!props['aria-label'] && !props['aria-labelledby']) {
2383
- return new Error(componentName + " must have an \"aria-label\" or \"aria-labelledby\" prop");
2393
+ return new Error("".concat(componentName, " must have an \"aria-label\" or \"aria-labelledby\" prop"));
2384
2394
  }
2385
2395
  },
2386
2396
  className: PropTypes.string,
@@ -2499,7 +2509,7 @@ RadioCardGroup.propTypes = {
2499
2509
  })).isRequired,
2500
2510
  hasLabel: function (props, propName, componentName) {
2501
2511
  if (!props['aria-label'] && !props['aria-labelledby']) {
2502
- return new Error(componentName + " must have an \"aria-label\" or \"aria-labelledby\" prop");
2512
+ return new Error("".concat(componentName, " must have an \"aria-label\" or \"aria-labelledby\" prop"));
2503
2513
  }
2504
2514
  },
2505
2515
  className: PropTypes.string,
@@ -2729,7 +2739,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
2729
2739
  if (!_this.styleTag) {
2730
2740
  _this.styleTag = injectStyleTag();
2731
2741
  }
2732
- setStyle(_this.styleTag, "\n @keyframes expandOpenAnimation {\n 0% { opacity: 0; height: 0; }\n 100% { opacity: 1; height: " + rect.height + "px; }\n }\n\n .cauldron-expand-open {\n will-change: opacity, height;\n overflow: hidden;\n animation: expandOpenAnimation ease-in-out " + animationTiming + "ms forwards;\n }\n ");
2742
+ setStyle(_this.styleTag, "\n @keyframes expandOpenAnimation {\n 0% { opacity: 0; height: 0; }\n 100% { opacity: 1; height: ".concat(rect.height, "px; }\n }\n\n .cauldron-expand-open {\n will-change: opacity, height;\n overflow: hidden;\n animation: expandOpenAnimation ease-in-out ").concat(animationTiming, "ms forwards;\n }\n "));
2733
2743
  _this.setState({ animationClass: 'cauldron-expand-open' }, function () {
2734
2744
  setTimeout(function () {
2735
2745
  _this.setState({ animationClass: '', isAnimating: false });
@@ -2750,7 +2760,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
2750
2760
  var rect = panel === null || panel === void 0 ? void 0 : panel.getBoundingClientRect();
2751
2761
  if (!rect)
2752
2762
  return;
2753
- setStyle(_this.styleTag, "\n @keyframes collapseCloseAnimation {\n 0% { opacity: 1; height: " + rect.height + "px; }\n 100% { opacity: 0; height: 0; }\n }\n\n .cauldron-collapse-close {\n will-change: opacity, height;\n overflow: hidden;\n animation: collapseCloseAnimation ease-in-out " + animationTiming + "ms forwards;\n }\n ");
2763
+ setStyle(_this.styleTag, "\n @keyframes collapseCloseAnimation {\n 0% { opacity: 1; height: ".concat(rect.height, "px; }\n 100% { opacity: 0; height: 0; }\n }\n\n .cauldron-collapse-close {\n will-change: opacity, height;\n overflow: hidden;\n animation: collapseCloseAnimation ease-in-out ").concat(animationTiming, "ms forwards;\n }\n "));
2754
2764
  _this.setState({ animationClass: 'cauldron-collapse-close' }, function () {
2755
2765
  setTimeout(function () {
2756
2766
  _this.setState({ animationClass: '', isAnimating: false });
@@ -2918,27 +2928,6 @@ function _defineProperty(obj, key, value) {
2918
2928
 
2919
2929
  var defineProperty = _defineProperty;
2920
2930
 
2921
- function _objectSpread(target) {
2922
- for (var i = 1; i < arguments.length; i++) {
2923
- var source = arguments[i] != null ? Object(arguments[i]) : {};
2924
- var ownKeys = Object.keys(source);
2925
-
2926
- if (typeof Object.getOwnPropertySymbols === 'function') {
2927
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
2928
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2929
- }));
2930
- }
2931
-
2932
- ownKeys.forEach(function (key) {
2933
- defineProperty(target, key, source[key]);
2934
- });
2935
- }
2936
-
2937
- return target;
2938
- }
2939
-
2940
- var objectSpread = _objectSpread;
2941
-
2942
2931
  function createCommonjsModule(fn, basedir, module) {
2943
2932
  return module = {
2944
2933
  path: basedir,
@@ -2975,6 +2964,9 @@ function _extends() {
2975
2964
  module.exports = _extends;
2976
2965
  });
2977
2966
 
2967
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2968
+
2969
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2978
2970
  //
2979
2971
  // Super simple, non-algorithmic solution since the
2980
2972
  // number of class names will not be greater than 4
@@ -3020,7 +3012,7 @@ function createStyleObject(classNames) {
3020
3012
  });
3021
3013
  var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
3022
3014
  return classNamesCombinations.reduce(function (styleObject, className) {
3023
- return objectSpread({}, styleObject, stylesheet[className]);
3015
+ return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
3024
3016
  }, elementStyle);
3025
3017
  }
3026
3018
  function createClassNameString(classNames) {
@@ -3059,7 +3051,7 @@ function createElement(_ref) {
3059
3051
  var props;
3060
3052
 
3061
3053
  if (!useInlineStyles) {
3062
- props = objectSpread({}, properties, {
3054
+ props = _objectSpread(_objectSpread({}, properties), {}, {
3063
3055
  className: createClassNameString(properties.className)
3064
3056
  });
3065
3057
  } else {
@@ -3074,14 +3066,14 @@ function createElement(_ref) {
3074
3066
  var className = properties.className && startingClassName.concat(properties.className.filter(function (className) {
3075
3067
  return !allStylesheetSelectors.includes(className);
3076
3068
  }));
3077
- props = objectSpread({}, properties, {
3069
+ props = _objectSpread(_objectSpread({}, properties), {}, {
3078
3070
  className: createClassNameString(className) || undefined,
3079
3071
  style: createStyleObject(properties.className, Object.assign({}, properties.style, style), stylesheet)
3080
3072
  });
3081
3073
  }
3082
3074
 
3083
3075
  var children = childrenCreator(node.children);
3084
- return React__default.createElement(TagName, _extends_1({
3076
+ return /*#__PURE__*/React__default.createElement(TagName, _extends_1({
3085
3077
  key: key
3086
3078
  }, props), children);
3087
3079
  }
@@ -3092,6 +3084,11 @@ var checkForListedLanguage = (function (astGenerator, language) {
3092
3084
  return langs.indexOf(language) !== -1;
3093
3085
  });
3094
3086
 
3087
+ var _excluded = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
3088
+
3089
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3090
+
3091
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3095
3092
  var newLineRegex = /\n/g;
3096
3093
 
3097
3094
  function getNewLines(str) {
@@ -3104,7 +3101,7 @@ function getAllLineNumbers(_ref) {
3104
3101
  style = _ref.style;
3105
3102
  return lines.map(function (_, i) {
3106
3103
  var number = i + startingLineNumber;
3107
- return React__default.createElement("span", {
3104
+ return /*#__PURE__*/React__default.createElement("span", {
3108
3105
  key: "line-".concat(i),
3109
3106
  className: "react-syntax-highlighter-line-number",
3110
3107
  style: typeof style === 'function' ? style(number) : style
@@ -3117,13 +3114,13 @@ function AllLineNumbers(_ref2) {
3117
3114
  codeStyle = _ref2.codeStyle,
3118
3115
  _ref2$containerStyle = _ref2.containerStyle,
3119
3116
  containerStyle = _ref2$containerStyle === void 0 ? {
3120
- float: 'left',
3117
+ "float": 'left',
3121
3118
  paddingRight: '10px'
3122
3119
  } : _ref2$containerStyle,
3123
3120
  _ref2$numberStyle = _ref2.numberStyle,
3124
3121
  numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle,
3125
3122
  startingLineNumber = _ref2.startingLineNumber;
3126
- return React__default.createElement("code", {
3123
+ return /*#__PURE__*/React__default.createElement("code", {
3127
3124
  style: Object.assign({}, codeStyle, containerStyle)
3128
3125
  }, getAllLineNumbers({
3129
3126
  lines: codeString.replace(/\n$/, '').split('\n'),
@@ -3164,7 +3161,7 @@ function assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber
3164
3161
 
3165
3162
  var customLineNumberStyle = typeof lineNumberStyle === 'function' ? lineNumberStyle(lineNumber) : lineNumberStyle; // combine
3166
3163
 
3167
- var assembledStyle = objectSpread({}, defaultLineNumberStyle, customLineNumberStyle);
3164
+ var assembledStyle = _objectSpread$1(_objectSpread$1({}, defaultLineNumberStyle), customLineNumberStyle);
3168
3165
 
3169
3166
  return assembledStyle;
3170
3167
  }
@@ -3190,7 +3187,7 @@ function createLineElement(_ref3) {
3190
3187
  }
3191
3188
 
3192
3189
  if (wrapLongLines & showLineNumbers) {
3193
- properties.style = objectSpread({}, properties.style, {
3190
+ properties.style = _objectSpread$1(_objectSpread$1({}, properties.style), {}, {
3194
3191
  display: 'flex'
3195
3192
  });
3196
3193
  }
@@ -3217,7 +3214,9 @@ function flattenCodeTree(tree) {
3217
3214
  }));
3218
3215
  } else if (node.children) {
3219
3216
  var classNames = className.concat(node.properties.className);
3220
- newTree = newTree.concat(flattenCodeTree(node.children, classNames));
3217
+ flattenCodeTree(node.children, classNames).forEach(function (i) {
3218
+ return newTree.push(i);
3219
+ });
3221
3220
  }
3222
3221
  }
3223
3222
 
@@ -3286,19 +3285,19 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
3286
3285
  newTree.push(_line); // if it's the last line
3287
3286
  } else if (i === splitValue.length - 1) {
3288
3287
  var stringChild = tree[index + 1] && tree[index + 1].children && tree[index + 1].children[0];
3288
+ var lastLineInPreviousSpan = {
3289
+ type: 'text',
3290
+ value: "".concat(text)
3291
+ };
3289
3292
 
3290
3293
  if (stringChild) {
3291
- var lastLineInPreviousSpan = {
3292
- type: 'text',
3293
- value: "".concat(text)
3294
- };
3295
3294
  var newElem = createLineElement({
3296
3295
  children: [lastLineInPreviousSpan],
3297
3296
  className: node.properties.className
3298
3297
  });
3299
3298
  tree.splice(index + 1, 0, newElem);
3300
3299
  } else {
3301
- var _children2 = [newChild];
3300
+ var _children2 = [lastLineInPreviousSpan];
3302
3301
 
3303
3302
  var _line2 = createLine(_children2, lineNumber, node.properties.className);
3304
3303
 
@@ -3404,7 +3403,7 @@ function highlight (defaultAstGenerator, defaultStyle) {
3404
3403
  _ref7$codeTagProps = _ref7.codeTagProps,
3405
3404
  codeTagProps = _ref7$codeTagProps === void 0 ? {
3406
3405
  className: language ? "language-".concat(language) : undefined,
3407
- style: objectSpread({}, style['code[class*="language-"]'], style["code[class*=\"language-".concat(language, "\"]")])
3406
+ style: _objectSpread$1(_objectSpread$1({}, style['code[class*="language-"]']), style["code[class*=\"language-".concat(language, "\"]")])
3408
3407
  } : _ref7$codeTagProps,
3409
3408
  _ref7$useInlineStyles = _ref7.useInlineStyles,
3410
3409
  useInlineStyles = _ref7$useInlineStyles === void 0 ? true : _ref7$useInlineStyles,
@@ -3428,12 +3427,12 @@ function highlight (defaultAstGenerator, defaultStyle) {
3428
3427
  _ref7$CodeTag = _ref7.CodeTag,
3429
3428
  CodeTag = _ref7$CodeTag === void 0 ? 'code' : _ref7$CodeTag,
3430
3429
  _ref7$code = _ref7.code,
3431
- code = _ref7$code === void 0 ? Array.isArray(children) ? children[0] : children : _ref7$code,
3430
+ code = _ref7$code === void 0 ? (Array.isArray(children) ? children[0] : children) || '' : _ref7$code,
3432
3431
  astGenerator = _ref7.astGenerator,
3433
- rest = objectWithoutProperties(_ref7, ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"]);
3432
+ rest = objectWithoutProperties(_ref7, _excluded);
3434
3433
 
3435
3434
  astGenerator = astGenerator || defaultAstGenerator;
3436
- var allLineNumbers = showLineNumbers ? React__default.createElement(AllLineNumbers, {
3435
+ var allLineNumbers = showLineNumbers ? /*#__PURE__*/React__default.createElement(AllLineNumbers, {
3437
3436
  containerStyle: lineNumberContainerStyle,
3438
3437
  codeStyle: codeTagProps.style || {},
3439
3438
  numberStyle: lineNumberStyle,
@@ -3451,8 +3450,18 @@ function highlight (defaultAstGenerator, defaultStyle) {
3451
3450
  style: Object.assign({}, customStyle)
3452
3451
  });
3453
3452
 
3453
+ if (wrapLongLines) {
3454
+ codeTagProps.style = _objectSpread$1(_objectSpread$1({}, codeTagProps.style), {}, {
3455
+ whiteSpace: 'pre-wrap'
3456
+ });
3457
+ } else {
3458
+ codeTagProps.style = _objectSpread$1(_objectSpread$1({}, codeTagProps.style), {}, {
3459
+ whiteSpace: 'pre'
3460
+ });
3461
+ }
3462
+
3454
3463
  if (!astGenerator) {
3455
- return React__default.createElement(PreTag, preProps, allLineNumbers, React__default.createElement(CodeTag, codeTagProps, code));
3464
+ return /*#__PURE__*/React__default.createElement(PreTag, preProps, allLineNumbers, /*#__PURE__*/React__default.createElement(CodeTag, codeTagProps, code));
3456
3465
  }
3457
3466
  /*
3458
3467
  * Some custom renderers rely on individual row elements so we need to turn wrapLines on
@@ -3480,18 +3489,7 @@ function highlight (defaultAstGenerator, defaultStyle) {
3480
3489
 
3481
3490
  var largestLineNumber = codeTree.value.length + startingLineNumber;
3482
3491
  var rows = processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines);
3483
-
3484
- if (wrapLongLines) {
3485
- codeTagProps.style = objectSpread({}, codeTagProps.style, {
3486
- whiteSpace: 'pre-wrap'
3487
- });
3488
- } else {
3489
- codeTagProps.style = objectSpread({}, codeTagProps.style, {
3490
- whiteSpace: 'pre'
3491
- });
3492
- }
3493
-
3494
- return React__default.createElement(PreTag, preProps, React__default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
3492
+ return /*#__PURE__*/React__default.createElement(PreTag, preProps, /*#__PURE__*/React__default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
3495
3493
  rows: rows,
3496
3494
  stylesheet: style,
3497
3495
  useInlineStyles: useInlineStyles
@@ -8056,15 +8054,19 @@ SyntaxHighlighter.registerLanguage('javascript', javascript_1);
8056
8054
  SyntaxHighlighter.registerLanguage('css', css_1);
8057
8055
  SyntaxHighlighter.registerLanguage('html', xml_1);
8058
8056
  SyntaxHighlighter.registerLanguage('yaml', yaml_1);
8057
+ // HACK: This is a workaround for a bug in react-syntax-highlighter's types.
8058
+ var Highlighter = SyntaxHighlighter;
8059
8059
  var Code = function (_a) {
8060
8060
  var children = _a.children, className = _a.className, tabIndex = _a.tabIndex, props = tslib.__rest(_a, ["children", "className", "tabIndex"]);
8061
- return (React__default.createElement(SyntaxHighlighter, tslib.__assign({}, props, { useInlineStyles: false, className: classNames('Code', className), tabIndex: tabIndex }), children));
8061
+ return (React__default.createElement(React__default.Fragment, null,
8062
+ React__default.createElement(Highlighter, tslib.__assign({}, props, { useInlineStyles: false, className: classNames('Code', className), tabIndex: tabIndex }), children)));
8062
8063
  };
8063
8064
  Code.displayName = 'Code';
8064
8065
  Code.propTypes = {
8065
8066
  children: PropTypes.string.isRequired,
8066
8067
  language: PropTypes.oneOf(['javascript', 'css', 'html', 'yaml']),
8067
- className: PropTypes.string
8068
+ className: PropTypes.string,
8069
+ tabIndex: PropTypes.number
8068
8070
  };
8069
8071
 
8070
8072
  function AxeLoader() {
@@ -8143,6 +8145,7 @@ LoaderOverlay.propTypes = {
8143
8145
  variant: PropTypes.oneOf(['large', 'small']),
8144
8146
  label: PropTypes.string,
8145
8147
  focusOnInitialRender: PropTypes.bool,
8148
+ // @ts-expect-error
8146
8149
  children: PropTypes.node
8147
8150
  };
8148
8151
  LoaderOverlay.displayName = 'LoaderOverlay';
@@ -8262,6 +8265,7 @@ Tab.displayName = 'Tab';
8262
8265
  Tab.propTypes = {
8263
8266
  target: PropTypes.any.isRequired,
8264
8267
  id: PropTypes.string,
8268
+ // @ts-expect-error
8265
8269
  children: PropTypes.node
8266
8270
  };
8267
8271
 
@@ -8356,7 +8360,8 @@ var Tabs = function (_a) {
8356
8360
  React.useEffect(function () {
8357
8361
  var _a, _b;
8358
8362
  index === activeIndex
8359
- ? (_a = target.current) === null || _a === void 0 ? void 0 : _a.classList.remove('TabPanel--hidden') : (_b = target.current) === null || _b === void 0 ? void 0 : _b.classList.add('TabPanel--hidden');
8363
+ ? (_a = target.current) === null || _a === void 0 ? void 0 : _a.classList.remove('TabPanel--hidden')
8364
+ : (_b = target.current) === null || _b === void 0 ? void 0 : _b.classList.add('TabPanel--hidden');
8360
8365
  }, [activeIndex]);
8361
8366
  var config = tslib.__assign((_a = { id: id, className: classNames('Tab', {
8362
8367
  'Tab--active': selected
@@ -8396,6 +8401,7 @@ var TabPanel = React.forwardRef(function (_a, ref) {
8396
8401
  TabPanel.displayName = 'TabPanel';
8397
8402
  TabPanel.propTypes = {
8398
8403
  id: PropTypes.string,
8404
+ // @ts-expect-error
8399
8405
  children: PropTypes.node,
8400
8406
  className: PropTypes.string
8401
8407
  };
@@ -8442,12 +8448,12 @@ var Step = function (props) {
8442
8448
  var liProps;
8443
8449
  var isTooltip = isTooltipProps(other);
8444
8450
  if (isTooltip) {
8445
- (_a = other, (tooltip = _a.tooltip, tooltipText = _a.tooltipText, _a), liProps = tslib.__rest(_a, ["tooltip", "tooltipText"]));
8451
+ (_a = other, (tooltip = _a.tooltip, tooltipText = _a.tooltipText), liProps = tslib.__rest(_a, ["tooltip", "tooltipText"]));
8446
8452
  }
8447
8453
  else {
8448
8454
  liProps = other;
8449
8455
  }
8450
- return (React__default.createElement("li", tslib.__assign({ className: classNames('Stepper__step', "Stepper__step--" + status, className), "aria-current": status === 'current' ? 'step' : 'false' }, liProps),
8456
+ return (React__default.createElement("li", tslib.__assign({ className: classNames('Stepper__step', "Stepper__step--".concat(status), className), "aria-current": status === 'current' ? 'step' : 'false' }, liProps),
8451
8457
  React__default.createElement("div", { className: "Stepper__step-line" }),
8452
8458
  React__default.createElement("div", { className: "Stepper__step-content" }, isTooltip ? (React__default.createElement(TooltipTabstop, { placement: "bottom", tooltip: tooltip,
8453
8459
  // the pseudo content (ex: "1") is conveyed
@@ -8489,7 +8495,7 @@ var Panel = React.forwardRef(function (_a, ref) {
8489
8495
  if (!headingId) {
8490
8496
  return null;
8491
8497
  }
8492
- var HeadingComponent = "h" + (heading &&
8498
+ var HeadingComponent = "h".concat(heading &&
8493
8499
  typeof heading === 'object' &&
8494
8500
  'level' in heading &&
8495
8501
  !!heading.level
@@ -8507,7 +8513,9 @@ var Panel = React.forwardRef(function (_a, ref) {
8507
8513
  });
8508
8514
  Panel.displayName = 'Panel';
8509
8515
  Panel.propTypes = {
8516
+ // @ts-expect-error
8510
8517
  children: PropTypes.node.isRequired,
8518
+ // @ts-expect-error
8511
8519
  heading: PropTypes.oneOfType([PropTypes.object, PropTypes.node]),
8512
8520
  className: PropTypes.string
8513
8521
  };
@@ -8517,7 +8525,7 @@ var IssuePanel = function (_a) {
8517
8525
  return (React__default.createElement("div", { className: classNames('IssuePanel', className) },
8518
8526
  React__default.createElement("div", { className: "IssuePanel__Header" },
8519
8527
  title && React__default.createElement("div", { className: "IssuePanel__Header-title" }, title),
8520
- actions && React__default.createElement("div", { className: "IssuePanel__Header-actions" }, actions)),
8528
+ actions && (React__default.createElement("div", { className: "IssuePanel__Header-actions" }, actions))),
8521
8529
  React__default.createElement("div", { className: "IssuePanel__Content" }, children)));
8522
8530
  };
8523
8531
  IssuePanel.displayName = 'IssuePanel';
@@ -8530,7 +8538,7 @@ var ProgressBar = React.forwardRef(function (_a, ref) {
8530
8538
  var _b = _a.progress, progress = _b === void 0 ? 0 : _b, _c = _a.progressMax, progressMax = _c === void 0 ? 100 : _c, _d = _a.progressMin, progressMin = _d === void 0 ? 0 : _d, props = tslib.__rest(_a, ["progress", "progressMax", "progressMin"]);
8531
8539
  var className = props.className, otherProps = tslib.__rest(props, ["className"]);
8532
8540
  return (React__default.createElement("div", tslib.__assign({ className: classNames('ProgressBar', className), role: "progressbar", "aria-valuemin": progressMin, "aria-valuemax": progressMax, "aria-valuenow": progress, ref: ref }, otherProps),
8533
- React__default.createElement("div", { className: "ProgressBar--fill", style: { width: Math.min((progress / progressMax) * 100, 100) + "%" } })));
8541
+ React__default.createElement("div", { className: "ProgressBar--fill", style: { width: "".concat(Math.min((progress / progressMax) * 100, 100), "%") } })));
8534
8542
  });
8535
8543
  ProgressBar.displayName = 'ProgressBar';
8536
8544
 
@@ -8645,6 +8653,7 @@ var FieldWrap = React__default.forwardRef(function (_a, ref) {
8645
8653
  });
8646
8654
  FieldWrap.displayName = 'FieldWrap';
8647
8655
  FieldWrap.propTypes = {
8656
+ // @ts-expect-error
8648
8657
  children: PropTypes.node.isRequired,
8649
8658
  className: PropTypes.string,
8650
8659
  as: PropTypes.string
@@ -8665,7 +8674,7 @@ var Breadcrumb = React.forwardRef(function (_a, ref) {
8665
8674
  }
8666
8675
  });
8667
8676
  return (React__default.createElement("nav", tslib.__assign({ className: classNames('Breadcrumb', className), ref: ref }, props),
8668
- React__default.createElement("ol", null, childrenWithSeparators.map(function (child, index) { return (React__default.createElement("li", { className: "Breadcrumb__Item", key: "breadcrumb-" + index }, child)); }))));
8677
+ React__default.createElement("ol", null, childrenWithSeparators.map(function (child, index) { return (React__default.createElement("li", { className: "Breadcrumb__Item", key: "breadcrumb-".concat(index) }, child)); }))));
8669
8678
  });
8670
8679
  Breadcrumb.displayName = 'Breadcrumb';
8671
8680
 
@@ -8696,6 +8705,11 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
8696
8705
  var _f = tslib.__read(React.useState(initialCollapsed), 2), isCollapsed = _f[0], setCollapsed = _f[1];
8697
8706
  var _g = tslib.__read(React.useState(false), 2), isFocusTrap = _g[0], setIsFocusTrap = _g[1];
8698
8707
  var _h = tslib.__read(React.useState(!initialCollapsed), 2), showPanel = _h[0], setShowPanel = _h[1];
8708
+ var toggleButtonRef = React.useRef(null);
8709
+ var closeButtonRef = React.useRef(null);
8710
+ var columnLeftRef = React.useRef(null);
8711
+ var columnRightRef = React.useRef(null);
8712
+ var columnLeft = React__default.Children.toArray(children).find(function (child) { return child.type === ColumnLeft; });
8699
8713
  var togglePanel = function () {
8700
8714
  if (isCollapsed) {
8701
8715
  setShowPanel(true);
@@ -8713,11 +8727,6 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
8713
8727
  }
8714
8728
  });
8715
8729
  };
8716
- var toggleButtonRef = React.useRef(null);
8717
- var closeButtonRef = React.useRef(null);
8718
- var columnLeftRef = React.useRef(null);
8719
- var columnRightRef = React.useRef(null);
8720
- var columnLeft = React__default.Children.toArray(children).find(function (child) { return child.type === ColumnLeft; });
8721
8730
  // The ColumnLeftComponent will end up being a focus trap when < 720px
8722
8731
  // This component also gets unmounted when not visible meaning that any
8723
8732
  // aria relationships cannot be set to items inside the component since
@@ -8732,11 +8741,11 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
8732
8741
  React__default.createElement("button", { type: "button", onClick: togglePanel, ref: closeButtonRef, "aria-label": hideCollapsedPanelLabel },
8733
8742
  React__default.createElement(Icon, { type: "close" })),
8734
8743
  React__default.createElement(Tooltip, { target: closeButtonRef, association: "aria-labelledby", hideElementOnHidden: true }, hideCollapsedPanelLabel)));
8735
- var children_1 = tslib.__spread([
8744
+ var children_1 = tslib.__spreadArray([
8736
8745
  CloseButton
8737
- ], React__default.Children.toArray(columnLeft.props.children));
8746
+ ], tslib.__read(React__default.Children.toArray(columnLeft.props.children)), false);
8738
8747
  ColumnLeftComponent = React.cloneElement(columnLeft, { id: id, ref: ref_1, tabIndex: -1 }, children_1.map(function (child, index) {
8739
- return React.cloneElement(child, { key: "left-" + index });
8748
+ return React.cloneElement(child, { key: "left-".concat(index) });
8740
8749
  }));
8741
8750
  }
8742
8751
  var columnRight = React__default.Children.toArray(children).find(function (child) { return child.type === ColumnRight; });
@@ -8747,11 +8756,11 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
8747
8756
  React__default.createElement("button", { type: "button", onClick: togglePanel, ref: toggleButtonRef, "aria-label": !isCollapsed ? hideCollapsedPanelLabel : showCollapsedPanelLabel, "aria-expanded": !isCollapsed, "aria-controls": columnLeftId },
8748
8757
  React__default.createElement(Icon, { type: !isCollapsed ? 'chevron-double-left' : 'chevron-double-right' })),
8749
8758
  React__default.createElement(Tooltip, { target: toggleButtonRef, association: "aria-labelledby", hideElementOnHidden: true }, !isCollapsed ? hideCollapsedPanelLabel : showCollapsedPanelLabel)));
8750
- var children_2 = tslib.__spread([
8759
+ var children_2 = tslib.__spreadArray([
8751
8760
  ToggleButton
8752
- ], React__default.Children.toArray(columnRight.props.children));
8761
+ ], tslib.__read(React__default.Children.toArray(columnRight.props.children)), false);
8753
8762
  ColumnRightComponent = React.cloneElement(columnRight, { ref: ref_2, tabIndex: -1 }, children_2.map(function (child, index) {
8754
- return React.cloneElement(child, { key: "right-" + index });
8763
+ return React.cloneElement(child, { key: "right-".concat(index) });
8755
8764
  }));
8756
8765
  }
8757
8766
  React.useLayoutEffect(function () {
@@ -8816,15 +8825,16 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
8816
8825
  'TwoColumnPanel--show': !isCollapsed,
8817
8826
  'TwoColumnPanel--hide': isCollapsed
8818
8827
  }) }, props, { ref: ref }),
8819
- React__default.createElement(FocusTrap, { active: !isCollapsed && isFocusTrap, focusTrapOptions: {
8820
- escapeDeactivates: true,
8821
- allowOutsideClick: true,
8822
- fallbackFocus: columnLeftRef.current
8823
- }, containerElements: [columnLeftRef.current] }),
8824
- React__default.createElement(ClickOutsideListener, { onClickOutside: handleClickOutside, target: columnLeftRef.current }),
8825
- isCollapsed ? null : skipLink,
8826
- showPanel ? ColumnLeftComponent : null,
8827
- ColumnRightComponent));
8828
+ React__default.createElement(React__default.Fragment, null,
8829
+ React__default.createElement(FocusTrap, { active: !isCollapsed && isFocusTrap, focusTrapOptions: {
8830
+ escapeDeactivates: true,
8831
+ allowOutsideClick: true,
8832
+ fallbackFocus: columnLeftRef.current
8833
+ }, containerElements: [columnLeftRef.current] }),
8834
+ React__default.createElement(ClickOutsideListener, { onClickOutside: handleClickOutside, target: columnLeftRef.current }),
8835
+ isCollapsed ? null : skipLink,
8836
+ showPanel ? ColumnLeftComponent : null,
8837
+ ColumnRightComponent)));
8828
8838
  });
8829
8839
  TwoColumnPanel.displayName = 'TwoColumnPanel';
8830
8840
 
package/lib/play.js ADDED
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var React = require('react');
6
+ var React__default = _interopDefault(React);
7
+
8
+ var _path;
9
+
10
+ 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); }
11
+
12
+ const SvgPlay = props => /*#__PURE__*/React.createElement("svg", _extends({
13
+ xmlns: "http://www.w3.org/2000/svg",
14
+ overflow: "visible",
15
+ preserveAspectRatio: "none",
16
+ viewBox: "0 0 24 24",
17
+ height: 24,
18
+ width: 24
19
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
20
+ d: "M8 5v14l11-7z",
21
+ fill: "currentColor",
22
+ vectorEffect: "non-scaling-stroke"
23
+ })));
24
+
25
+ exports.default = SvgPlay;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var React = require('react');
6
+ var React__default = _interopDefault(React);
7
+
8
+ var _path;
9
+
10
+ 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); }
11
+
12
+ const SvgRecycleSquare = props => /*#__PURE__*/React.createElement("svg", _extends({
13
+ overflow: "visible",
14
+ preserveAspectRatio: "none",
15
+ viewBox: "0 0 24 24",
16
+ height: 24,
17
+ width: 24
18
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
19
+ d: "M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z",
20
+ vectorEffect: "non-scaling-stroke",
21
+ fill: "currentColor"
22
+ })));
23
+
24
+ exports.default = SvgRecycleSquare;
@@ -1,2 +1,2 @@
1
- declare function recursivelyRemoveIds(element: React.ReactNode): import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>[] | null | undefined;
1
+ declare function recursivelyRemoveIds(element: React.ReactNode): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | null | undefined;
2
2
  export default recursivelyRemoveIds;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "4.5.0-canary.f4c1c3dd",
3
+ "version": "4.5.0-canary.fa9f1d61",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,14 +23,14 @@
23
23
  "dependencies": {
24
24
  "@popperjs/core": "^2.5.4",
25
25
  "classnames": "^2.2.6",
26
- "focus-trap-react": "^8.9.0",
26
+ "focus-trap-react": "8",
27
27
  "focusable": "^2.3.0",
28
28
  "keyname": "^0.1.0",
29
29
  "prop-types": "^15.6.0",
30
30
  "react-id-generator": "^3.0.1",
31
31
  "react-popper": "^2.2.4",
32
- "react-syntax-highlighter": "^15.4.3",
33
- "tslib": "^2.0.0"
32
+ "react-syntax-highlighter": "^15.5.0",
33
+ "tslib": "^2.4.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/cli": "^7.8.4",
@@ -47,10 +47,11 @@
47
47
  "@rollup/plugin-typescript": "^5.0.2",
48
48
  "@svgr/rollup": "^6.1.2",
49
49
  "@types/classnames": "^2.2.10",
50
+ "@types/node": "^17.0.42",
50
51
  "@types/prop-types": "^15.7.3",
51
- "@types/react": "^16.9.34",
52
- "@types/react-dom": "^16.9.7",
53
- "@types/react-syntax-highlighter": "^13.5.2",
52
+ "@types/react": "^18.0.12",
53
+ "@types/react-dom": "^18.0.5",
54
+ "@types/react-syntax-highlighter": "^15.5.2",
54
55
  "autoprefixer": "^9.7.6",
55
56
  "babel-plugin-module-resolver": "^4.0.0",
56
57
  "babel-plugin-transform-export-extensions": "^6.22.0",
@@ -79,16 +80,16 @@
79
80
  "react-router-dom": "^5.1.2",
80
81
  "rollup": "^2.23.0",
81
82
  "sinon": "^10.0.0",
82
- "ts-node": "^8.9.1",
83
- "typescript": "^3.9.7"
83
+ "ts-node": "^10.8.1",
84
+ "typescript": "^4.7.3"
84
85
  },
85
86
  "repository": {
86
87
  "type": "git",
87
88
  "url": "git+https://github.com/dequelabs/cauldron-react.git"
88
89
  },
89
90
  "peerDependencies": {
90
- "react": "^16.6.0",
91
- "react-dom": "^16.6.0"
91
+ "react": ">=16.6 <= 18",
92
+ "react-dom": ">=16.6 <= 18"
92
93
  },
93
94
  "nyc": {
94
95
  "checkCoverage": true,