@deque/cauldron-react 4.5.0 → 4.6.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.
package/lib/cauldron.css CHANGED
@@ -23,7 +23,6 @@
23
23
  }
24
24
 
25
25
  .ExpandCollapse__panel {
26
- background-color: var(--expandcollapse-panel-background-color);
27
26
  color: var(--expandcollapse-panel-color);
28
27
  }
29
28
 
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { ExpandCollapsePanelProps } from '../ExpandCollapsePanel';
3
+ import PropTypes from 'prop-types';
4
+ export interface AccordionTriggerProps extends React.HTMLAttributes<HTMLButtonElement> {
5
+ children: React.ReactElement;
6
+ heading?: React.ReactElement | {
7
+ level: string | undefined;
8
+ };
9
+ }
10
+ declare const AccordionTrigger: {
11
+ ({ children, ...triggerProps }: AccordionTriggerProps): JSX.Element;
12
+ displayName: string;
13
+ propTypes: {
14
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
15
+ heading: PropTypes.Requireable<string | undefined>;
16
+ };
17
+ };
18
+ interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
19
+ children: React.ReactNode | React.ReactNode[];
20
+ className?: string;
21
+ }
22
+ declare const AccordionContent: {
23
+ ({ children, className, ...otherProps }: AccordionContentProps): JSX.Element;
24
+ displayName: string;
25
+ propTypes: {
26
+ children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
27
+ className: PropTypes.Requireable<string>;
28
+ };
29
+ };
30
+ interface AccordionProps extends ExpandCollapsePanelProps {
31
+ children: React.ReactNode;
32
+ }
33
+ declare const Accordion: {
34
+ ({ children }: AccordionProps): JSX.Element | null;
35
+ displayName: string;
36
+ propTypes: {
37
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
38
+ className: PropTypes.Requireable<string>;
39
+ };
40
+ };
41
+ export default Accordion;
42
+ export { Accordion, AccordionTrigger, AccordionContent };
@@ -0,0 +1,3 @@
1
+ import { Accordion, AccordionTrigger, AccordionContent } from './Accordion';
2
+ export default Accordion;
3
+ export { Accordion, AccordionTrigger, AccordionContent };
@@ -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,5 +1,5 @@
1
1
  import React from 'react';
2
- interface BreadcrumbLinkProps extends React.HTMLAttributes<HTMLLinkElement> {
2
+ interface BreadcrumbLinkProps extends Omit<React.LinkHTMLAttributes<HTMLLinkElement>, 'as'> {
3
3
  as?: React.ElementType;
4
4
  }
5
5
  declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLElement>>;
@@ -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;
@@ -10,17 +10,19 @@ export interface PanelTriggerProps extends React.ButtonHTMLAttributes<HTMLButton
10
10
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
11
11
  iconExpanded?: IconType;
12
12
  iconCollapsed?: IconType;
13
+ heading?: React.ReactElement | {
14
+ level: string | undefined;
15
+ };
13
16
  }
14
- declare function PanelTrigger({ children, className, open, fullWidth, onClick, iconExpanded, iconCollapsed, ...other }: PanelTriggerProps): JSX.Element;
15
- declare namespace PanelTrigger {
16
- var propTypes: {
17
+ declare const _default: React.MemoExoticComponent<{
18
+ ({ children, className, open, fullWidth, onClick, iconExpanded, iconCollapsed, heading, ...otherProps }: PanelTriggerProps): JSX.Element;
19
+ propTypes: {
17
20
  children: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
18
21
  open: PropTypes.Requireable<boolean>;
19
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
20
- className: PropTypes.Requireable<string>;
21
22
  iconExpanded: PropTypes.Requireable<string>;
22
23
  iconCollapsed: PropTypes.Requireable<string>;
24
+ heading: PropTypes.Requireable<number>;
23
25
  };
24
- }
25
- declare const _default: React.MemoExoticComponent<typeof PanelTrigger>;
26
+ displayName: string;
27
+ }>;
26
28
  export default _default;
@@ -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-solid' | '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;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { Placement } from '@popperjs/core';
3
+ interface Props extends React.HTMLAttributes<HTMLDivElement> {
4
+ totalItems: number;
5
+ itemsPerPage?: number;
6
+ currentPage?: number;
7
+ statusLabel?: React.ReactNode;
8
+ firstPageLabel?: string;
9
+ previousPageLabel?: string;
10
+ nextPageLabel?: string;
11
+ lastPageLabel?: string;
12
+ onNextPageClick?: () => void;
13
+ onPreviousPageClick?: () => void;
14
+ onFirstPageClick?: () => void;
15
+ onLastPageClick?: () => void;
16
+ tooltipPlacement?: Placement;
17
+ className?: string;
18
+ }
19
+ declare const Pagination: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
20
+ export default Pagination;
@@ -1,20 +1,3 @@
1
- import React from 'react';
2
- import { Placement } from '@popperjs/core';
3
- interface Props extends React.HTMLAttributes<HTMLDivElement> {
4
- totalItems: number;
5
- itemsPerPage?: number;
6
- currentPage?: number;
7
- statusLabel?: React.ReactNode;
8
- firstPageLabel?: string;
9
- previousPageLabel?: string;
10
- nextPageLabel?: string;
11
- lastPageLabel?: string;
12
- onNextPageClick?: () => void;
13
- onPreviousPageClick?: () => void;
14
- onFirstPageClick?: () => void;
15
- onLastPageClick?: () => void;
16
- tooltipPlacement?: Placement;
17
- className?: string;
18
- }
19
- declare const Pagination: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
1
+ import Pagination from './Pagination';
2
+ export { usePagination } from './usePagination';
20
3
  export default Pagination;
@@ -0,0 +1,24 @@
1
+ interface Options {
2
+ totalItems: number;
3
+ initialPageSize?: number;
4
+ initialPage?: number;
5
+ }
6
+ interface PaginationResults {
7
+ totalItems: number;
8
+ currentPage: number;
9
+ itemsPerPage: number;
10
+ onNextPageClick: () => void;
11
+ onPreviousPageClick: () => void;
12
+ onFirstPageClick: () => void;
13
+ onLastPageClick: () => void;
14
+ }
15
+ interface PageStatus {
16
+ currentPage: number;
17
+ pageStart: number;
18
+ pageEnd: number;
19
+ }
20
+ export declare const usePagination: ({ totalItems, initialPageSize, initialPage }: Options) => {
21
+ pagination: PaginationResults;
22
+ pageStatus: PageStatus;
23
+ };
24
+ export {};
@@ -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;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { IconType } from '../Icon';
4
+ export interface RadioItem extends React.InputHTMLAttributes<HTMLInputElement> {
5
+ label: React.ReactNode;
6
+ cardImg: JSX.Element;
7
+ cardIcon: IconType;
8
+ value?: string;
9
+ }
10
+ export interface RadioCardGroupProps {
11
+ name?: string;
12
+ className?: string;
13
+ radios: RadioItem[];
14
+ defaultValue?: string;
15
+ value?: any;
16
+ onChange: (radio: RadioItem, input: HTMLElement) => void;
17
+ }
18
+ declare const RadioCardGroup: {
19
+ ({ name, radios, defaultValue, value, onChange, className, ...other }: RadioCardGroupProps): JSX.Element;
20
+ propTypes: {
21
+ name: PropTypes.Requireable<string>;
22
+ radios: PropTypes.Validator<(PropTypes.InferProps<{
23
+ value: PropTypes.Validator<string>;
24
+ id: PropTypes.Validator<string>;
25
+ label: PropTypes.Validator<string>;
26
+ cardImg: PropTypes.Validator<PropTypes.ReactElementLike>;
27
+ cardIcon: PropTypes.Validator<string>;
28
+ }> | null | undefined)[]>;
29
+ hasLabel: (props: {
30
+ [key: string]: string;
31
+ }, propName: string, componentName: string) => Error | undefined;
32
+ className: PropTypes.Requireable<string>;
33
+ defaultValue: PropTypes.Requireable<string>;
34
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
35
+ };
36
+ displayName: string;
37
+ };
38
+ export default RadioCardGroup;
@@ -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" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "open" | "error" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "encType" | "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" | "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;
@@ -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 SvgFilterSolid = 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: "M18.65 4.67H5.34a.616.616 0 0 0-.62.41c-.12.24-.06.55.16.73L10 10.94V16c0 .18.07.35.2.47l2.67 2.67c.12.13.29.2.47.2.09 0 .18-.02.26-.05.26-.1.42-.35.4-.63v-7.72l5.13-5.13c.21-.18.28-.48.15-.73a.628.628 0 0 0-.63-.41z",
20
+ vectorEffect: "non-scaling-stroke",
21
+ fill: "currentColor"
22
+ })));
23
+
24
+ exports.default = SvgFilterSolid;
package/lib/index.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export { default as Workspace } from './components/Workspace';
5
5
  export { default as Main } from './components/Main';
6
+ export { default as Accordion, AccordionTrigger, AccordionContent } from './components/Accordion';
6
7
  export { default as Layout } from './components/Layout';
7
8
  export { default as Icon, IconType, iconTypes } from './components/Icon';
8
9
  export { default as Offscreen } from './components/Offscreen';
@@ -25,6 +26,7 @@ export { default as Loader } from './components/Loader';
25
26
  export { default as OptionsMenu, OptionsMenuList, OptionsMenuItem, OptionsMenuTrigger, OptionsMenuWrapper } from './components/OptionsMenu';
26
27
  export { default as Select, SelectOption, SelectProps } from './components/Select';
27
28
  export { default as RadioGroup } from './components/RadioGroup';
29
+ export { default as RadioCardGroup } from './components/RadioCardGroup';
28
30
  export { default as Checkbox } from './components/Checkbox';
29
31
  export { default as Tooltip, TooltipHead, TooltipContent } from './components/Tooltip';
30
32
  export { default as TooltipTabstop } from './components/TooltipTabstop';
@@ -45,7 +47,7 @@ export { default as Panel } from './components/Panel';
45
47
  export { default as IssuePanel } from './components/IssuePanel';
46
48
  export { default as ProgressBar } from './components/ProgressBar';
47
49
  export { Address, AddressLine, AddressCityStateZip } from './components/Address';
48
- export { default as Pagination } from './components/Pagination';
50
+ export { default as Pagination, usePagination } from './components/Pagination';
49
51
  export { default as FieldWrap } from './components/FieldWrap';
50
52
  export { default as Breadcrumb, BreadcrumbItem, BreadcrumbLink } from './components/Breadcrumb';
51
53
  export { default as TwoColumnPanel, ColumnHeader, ColumnGroupHeader, ColumnLeft, ColumnRight, ColumnList } from './components/TwoColumnPanel';