@deque/cauldron-react 5.12.0 → 5.13.0-canary.301c546b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/lib/components/Accordion/Accordion.d.ts +0 -15
  2. package/lib/components/Address/index.d.ts +3 -16
  3. package/lib/components/Alert/index.d.ts +0 -10
  4. package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +3 -2
  5. package/lib/components/Card/Card.d.ts +0 -5
  6. package/lib/components/Card/CardContent.d.ts +3 -5
  7. package/lib/components/Card/CardFooter.d.ts +3 -5
  8. package/lib/components/Card/CardHeader.d.ts +3 -5
  9. package/lib/components/ClickOutsideListener/index.d.ts +0 -8
  10. package/lib/components/Combobox/Combobox.d.ts +1 -0
  11. package/lib/components/DescriptionList/index.d.ts +0 -17
  12. package/lib/components/Dialog/index.d.ts +7 -25
  13. package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +0 -8
  14. package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +0 -10
  15. package/lib/components/IssuePanel/index.d.ts +0 -5
  16. package/lib/components/Layout/index.d.ts +0 -7
  17. package/lib/components/Line/index.d.ts +4 -5
  18. package/lib/components/Link/index.d.ts +0 -10
  19. package/lib/components/Main/index.d.ts +0 -7
  20. package/lib/components/MenuBar/index.d.ts +0 -7
  21. package/lib/components/MenuItem/index.d.ts +0 -10
  22. package/lib/components/Modal/index.d.ts +0 -10
  23. package/lib/components/NavBar/NavBar.d.ts +0 -8
  24. package/lib/components/NavBar/NavItem.d.ts +0 -4
  25. package/lib/components/OptionsMenu/OptionsMenu.d.ts +1 -13
  26. package/lib/components/OptionsMenu/OptionsMenuList.d.ts +0 -12
  27. package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +1 -9
  28. package/lib/components/Pointout/index.d.ts +0 -21
  29. package/lib/components/RadioCardGroup/index.d.ts +0 -17
  30. package/lib/components/Scrim/index.d.ts +0 -4
  31. package/lib/components/SideBar/SideBar.d.ts +0 -7
  32. package/lib/components/SideBar/SideBarItem.d.ts +1 -0
  33. package/lib/components/SkipLink/index.d.ts +0 -6
  34. package/lib/components/Stepper/index.d.ts +0 -11
  35. package/lib/components/Table/Table.d.ts +0 -6
  36. package/lib/components/Table/TableBody.d.ts +0 -5
  37. package/lib/components/Table/TableCell.d.ts +0 -5
  38. package/lib/components/Table/TableFooter.d.ts +0 -5
  39. package/lib/components/Table/TableHead.d.ts +0 -5
  40. package/lib/components/Table/TableHeader.d.ts +0 -9
  41. package/lib/components/Table/TableRow.d.ts +0 -5
  42. package/lib/components/Tabs/Tabs.d.ts +0 -10
  43. package/lib/components/Tag/index.d.ts +0 -9
  44. package/lib/components/TextField/index.d.ts +0 -16
  45. package/lib/components/Toast/index.d.ts +0 -13
  46. package/lib/components/Tooltip/index.d.ts +9 -22
  47. package/lib/components/TopBar/TopBarMenu.d.ts +0 -5
  48. package/lib/components/TopBar/TopBarTrigger.d.ts +1 -0
  49. package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +3 -2
  50. package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +3 -2
  51. package/lib/components/TwoColumnPanel/ColumnList.d.ts +3 -2
  52. package/lib/components/Workspace/index.d.ts +0 -11
  53. package/lib/contexts/theme.d.ts +1 -8
  54. package/lib/index.js +24 -563
  55. package/package.json +2 -4
  56. package/lib/propTypes.d.ts +0 -6
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { IconType } from '../Icon';
4
3
  export interface RadioItem extends React.InputHTMLAttributes<HTMLInputElement> {
5
4
  label: React.ReactNode;
@@ -17,22 +16,6 @@ export interface RadioCardGroupProps {
17
16
  }
18
17
  declare const RadioCardGroup: {
19
18
  ({ name, radios, defaultValue, value, onChange, className, ...other }: RadioCardGroupProps): React.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
19
  displayName: string;
37
20
  };
38
21
  export default RadioCardGroup;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface ScrimProps {
4
3
  show: boolean;
5
4
  }
@@ -9,9 +8,6 @@ interface ScrimState {
9
8
  }
10
9
  export default class Scrim extends React.Component<ScrimProps, ScrimState> {
11
10
  private el;
12
- static propTypes: {
13
- show: PropTypes.Validator<boolean>;
14
- };
15
11
  constructor(props: ScrimProps);
16
12
  componentDidMount(): void;
17
13
  fadeIn(): void;
@@ -1,5 +1,4 @@
1
1
  import React, { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface SideBarProps extends React.HTMLAttributes<HTMLUListElement> {
4
3
  children: React.ReactNode;
5
4
  onDismiss: () => void;
@@ -16,12 +15,6 @@ export default class SideBar extends Component<SideBarProps, SideBarState> {
16
15
  className: string;
17
16
  show: boolean;
18
17
  };
19
- static propTypes: {
20
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
21
- onDismiss: PropTypes.Validator<(...args: any[]) => any>;
22
- className: PropTypes.Requireable<string>;
23
- show: PropTypes.Requireable<boolean>;
24
- };
25
18
  private navList;
26
19
  private resizeDebounceId;
27
20
  private resizeDebounce;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export interface SideBarItemProps extends React.HTMLAttributes<HTMLLIElement> {
3
3
  children: React.ReactNode;
4
+ className?: string;
4
5
  autoClickLink?: boolean;
5
6
  }
6
7
  declare const SideBarItem: React.ComponentType<React.PropsWithChildren<SideBarItemProps>>;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface SkipLinkProps {
4
3
  target: string;
5
4
  skipText?: string;
@@ -16,11 +15,6 @@ export default class SkipLink extends React.Component<SkipLinkProps, SkipLinkSta
16
15
  skipText: string;
17
16
  targetText: string;
18
17
  };
19
- static propTypes: {
20
- target: (props: SkipLinkProps, propName: keyof SkipLinkProps, componentName: string) => Error | undefined;
21
- skipText: PropTypes.Requireable<string>;
22
- targetText: PropTypes.Requireable<string>;
23
- };
24
18
  constructor(props: SkipLinkProps);
25
19
  render(): React.JSX.Element;
26
20
  private onClick;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  interface BaseStepProps extends React.LiHTMLAttributes<HTMLLIElement> {
4
3
  status: 'current' | 'complete' | 'future';
5
4
  }
@@ -14,12 +13,6 @@ type StepProps = StepWithChildren | StepWithTooltip;
14
13
  export declare const Step: {
15
14
  (props: StepProps): React.JSX.Element;
16
15
  displayName: string;
17
- propTypes: {
18
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
19
- tooltip: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
- tooltipText: PropTypes.Requireable<string>;
21
- className: PropTypes.Requireable<string>;
22
- };
23
16
  };
24
17
  interface StepperProps {
25
18
  children: React.ReactNode;
@@ -28,9 +21,5 @@ interface StepperProps {
28
21
  declare const Stepper: {
29
22
  ({ children, className, ...other }: StepperProps): React.JSX.Element;
30
23
  displayName: string;
31
- propTypes: {
32
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
33
- className: PropTypes.Requireable<string>;
34
- };
35
24
  };
36
25
  export default Stepper;
@@ -1,15 +1,9 @@
1
1
  import React, { TableHTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
4
3
  variant?: 'border';
5
4
  }
6
5
  declare const Table: {
7
6
  ({ children, className, variant, ...other }: TableProps): React.JSX.Element;
8
7
  displayName: string;
9
- propTypes: {
10
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
11
- className: PropTypes.Requireable<string>;
12
- variant: PropTypes.Requireable<string>;
13
- };
14
8
  };
15
9
  export default Table;
@@ -1,11 +1,6 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  declare const TableBody: {
4
3
  ({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
5
4
  displayName: string;
6
- propTypes: {
7
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
- className: PropTypes.Requireable<string>;
9
- };
10
5
  };
11
6
  export default TableBody;
@@ -1,11 +1,6 @@
1
1
  import React, { TdHTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  declare const TableCell: {
4
3
  ({ children, className, ...other }: TdHTMLAttributes<HTMLTableCellElement>): React.JSX.Element;
5
4
  displayName: string;
6
- propTypes: {
7
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
- className: PropTypes.Requireable<string>;
9
- };
10
5
  };
11
6
  export default TableCell;
@@ -1,11 +1,6 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  declare const TableFooter: {
4
3
  ({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
5
4
  displayName: string;
6
- propTypes: {
7
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
- className: PropTypes.Requireable<string>;
9
- };
10
5
  };
11
6
  export default TableFooter;
@@ -1,11 +1,6 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  declare const TableHead: {
4
3
  ({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
5
4
  displayName: string;
6
- propTypes: {
7
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
- className: PropTypes.Requireable<string>;
9
- };
10
5
  };
11
6
  export default TableHead;
@@ -1,5 +1,4 @@
1
1
  import React, { ThHTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  type SortDirection = 'ascending' | 'descending' | 'none';
4
3
  interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
5
4
  sortDirection?: SortDirection;
@@ -10,13 +9,5 @@ interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
10
9
  declare const TableHeader: {
11
10
  ({ children, sortDirection, onSort, className, sortAscendingAnnouncement, sortDescendingAnnouncement, ...other }: TableHeaderProps): React.JSX.Element;
12
11
  displayName: string;
13
- propTypes: {
14
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
15
- sortDirection: PropTypes.Requireable<string>;
16
- onSort: PropTypes.Requireable<(...args: any[]) => any>;
17
- className: PropTypes.Requireable<string>;
18
- sortAscendingAnnouncement: PropTypes.Requireable<string>;
19
- sortDescendingAnnouncement: PropTypes.Requireable<string>;
20
- };
21
12
  };
22
13
  export default TableHeader;
@@ -1,11 +1,6 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  declare const TableRow: {
4
3
  ({ children, className, ...other }: HTMLAttributes<HTMLTableRowElement>): React.JSX.Element;
5
4
  displayName: string;
6
- propTypes: {
7
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
- className: PropTypes.Requireable<string>;
9
- };
10
5
  };
11
6
  export default TableRow;
@@ -1,6 +1,5 @@
1
1
  import { Cauldron } from '../../types';
2
2
  import React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  type TabsProps = {
5
4
  children: React.ReactNode;
6
5
  initialActiveIndex?: number;
@@ -15,14 +14,5 @@ type TabsProps = {
15
14
  declare const Tabs: {
16
15
  ({ children, thin, orientation, initialActiveIndex, className, onChange, ...labelProp }: TabsProps): JSX.Element;
17
16
  displayName: string;
18
- propTypes: {
19
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
20
- 'aria-label': PropTypes.Requireable<string>;
21
- 'aria-labelledby': PropTypes.Requireable<string>;
22
- initialActiveIndex: PropTypes.Requireable<number>;
23
- thin: PropTypes.Requireable<boolean>;
24
- orientation: PropTypes.Requireable<string>;
25
- className: PropTypes.Requireable<string>;
26
- };
27
17
  };
28
18
  export default Tabs;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  interface TagProps {
4
3
  children: React.ReactNode;
5
4
  className?: string;
@@ -7,17 +6,9 @@ interface TagProps {
7
6
  export declare const TagLabel: {
8
7
  ({ children, className, ...other }: TagProps): React.JSX.Element;
9
8
  displayName: string;
10
- propTypes: {
11
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
12
- className: PropTypes.Requireable<string>;
13
- };
14
9
  };
15
10
  declare const Tag: {
16
11
  ({ children, className, ...other }: TagProps): React.JSX.Element;
17
12
  displayName: string;
18
- propTypes: {
19
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
20
- className: PropTypes.Requireable<string>;
21
- };
22
13
  };
23
14
  export default Tag;
@@ -1,5 +1,4 @@
1
1
  import React, { ChangeEvent } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
3
  label: React.ReactNode;
5
4
  error?: React.ReactNode;
@@ -23,21 +22,6 @@ export default class TextField extends React.Component<TextFieldProps, TextField
23
22
  requiredText: string;
24
23
  multiline: boolean;
25
24
  };
26
- static propTypes: {
27
- label: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
28
- id: PropTypes.Requireable<string>;
29
- error: PropTypes.Requireable<PropTypes.ReactNodeLike>;
30
- defaultValue: PropTypes.Requireable<string>;
31
- value: PropTypes.Requireable<string>;
32
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
33
- fieldRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
34
- current: PropTypes.Requireable<any>;
35
- }> | null | undefined>>;
36
- required: PropTypes.Requireable<boolean>;
37
- requiredText: PropTypes.Requireable<string>;
38
- multiline: PropTypes.Requireable<boolean>;
39
- 'aria-describedby': PropTypes.Requireable<string>;
40
- };
41
25
  private inputId;
42
26
  private errorId;
43
27
  private input;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import AriaIsolate from '../../utils/aria-isolate';
4
3
  export interface ToastProps {
5
4
  type: 'confirmation' | 'caution' | 'error' | 'action-needed' | 'info';
@@ -27,18 +26,6 @@ export default class Toast extends React.Component<ToastProps, ToastState> {
27
26
  show: boolean;
28
27
  dismissible: boolean;
29
28
  };
30
- static propTypes: {
31
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
32
- type: PropTypes.Validator<string>;
33
- onDismiss: PropTypes.Requireable<(...args: any[]) => any>;
34
- dismissText: PropTypes.Requireable<string>;
35
- toastRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
36
- current: PropTypes.Requireable<any>;
37
- }> | null | undefined>>;
38
- focus: PropTypes.Requireable<boolean>;
39
- show: PropTypes.Requireable<boolean>;
40
- dismissible: PropTypes.Requireable<boolean>;
41
- };
42
29
  static displayName: string;
43
30
  private el;
44
31
  constructor(props: ToastProps);
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { Placement } from '@popperjs/core';
4
3
  export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
5
4
  children: React.ReactNode;
5
+ className?: string;
6
6
  target: React.RefObject<HTMLElement> | HTMLElement;
7
7
  variant?: 'text' | 'info' | 'big';
8
8
  association?: 'aria-labelledby' | 'aria-describedby';
@@ -14,26 +14,13 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
14
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
- var propTypes: {
18
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
19
- target: PropTypes.Validator<any>;
20
- association: PropTypes.Requireable<string>;
21
- show: PropTypes.Requireable<boolean>;
22
- placement: PropTypes.Requireable<string>;
23
- variant: PropTypes.Requireable<string>;
24
- portal: PropTypes.Requireable<any>;
25
- };
26
17
  }
27
18
  export default Tooltip;
28
- export declare const TooltipHead: {
29
- ({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
30
- propTypes: {
31
- className: PropTypes.Requireable<string>;
32
- };
33
- };
34
- export declare const TooltipContent: {
35
- ({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
36
- propTypes: {
37
- className: PropTypes.Requireable<string>;
38
- };
39
- };
19
+ interface TooltipHeadProps extends React.HTMLAttributes<HTMLDivElement> {
20
+ className?: string;
21
+ }
22
+ export declare const TooltipHead: ({ className, ...other }: TooltipHeadProps) => React.JSX.Element;
23
+ interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
24
+ className?: string;
25
+ }
26
+ export declare const TooltipContent: ({ className, ...other }: TooltipContentProps) => React.JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface TopBarMenuProps extends Pick<React.HTMLAttributes<HTMLLIElement>, Exclude<keyof React.HTMLAttributes<HTMLLIElement>, 'onKeyDown'>> {
4
3
  onKeyDown: (e: React.KeyboardEvent<HTMLLIElement>) => void;
5
4
  menuItemRef: React.Ref<HTMLLIElement>;
@@ -12,10 +11,6 @@ export default class TopBarMenu extends React.Component<TopBarMenuProps, TopBarM
12
11
  onKeyDown: () => void;
13
12
  menuItemRef: () => void;
14
13
  };
15
- static propTypes: {
16
- id: PropTypes.Validator<string>;
17
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
18
- };
19
14
  state: TopBarMenuState;
20
15
  private optionsMenuRef;
21
16
  private menuItemRef;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface TopBarTriggerProps extends React.HTMLAttributes<HTMLLIElement> {
3
3
  children: React.ReactNode;
4
+ className?: string;
4
5
  }
5
6
  declare const TopBarTrigger: React.ComponentType<React.PropsWithChildren<TopBarTriggerProps>>;
6
7
  export default TopBarTrigger;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- type ColumnGroupHeaderProps = React.HTMLAttributes<HTMLDivElement>;
3
- declare const ColumnGroupHeader: React.ForwardRefExoticComponent<ColumnGroupHeaderProps & React.RefAttributes<HTMLDivElement>>;
2
+ declare const ColumnGroupHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
3
+ className?: string | undefined;
4
+ } & React.RefAttributes<HTMLDivElement>>;
4
5
  export default ColumnGroupHeader;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- type ColumnHeaderProps = React.HTMLAttributes<HTMLDivElement>;
3
- declare const ColumnHeader: React.ForwardRefExoticComponent<ColumnHeaderProps & React.RefAttributes<HTMLDivElement>>;
2
+ declare const ColumnHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
3
+ className?: string | undefined;
4
+ } & React.RefAttributes<HTMLDivElement>>;
4
5
  export default ColumnHeader;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- type ColumnListProps = React.HTMLAttributes<HTMLDivElement>;
3
- declare const ColumnList: React.ForwardRefExoticComponent<ColumnListProps & React.RefAttributes<HTMLDivElement>>;
2
+ declare const ColumnList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
3
+ className?: string | undefined;
4
+ } & React.RefAttributes<HTMLDivElement>>;
4
5
  export default ColumnList;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface WorkspaceProps extends React.HTMLAttributes<HTMLDivElement> {
4
3
  workspaceRef: React.Ref<HTMLDivElement>;
5
4
  layoutRef: React.Ref<HTMLDivElement>;
@@ -11,16 +10,6 @@ export default class Workspace extends React.Component<WorkspaceProps> {
11
10
  layoutRef: () => void;
12
11
  noSideBar: boolean;
13
12
  };
14
- static propTypes: {
15
- children: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
16
- workspaceRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
17
- current: PropTypes.Requireable<any>;
18
- }> | null | undefined>>;
19
- layoutRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
20
- current: PropTypes.Requireable<any>;
21
- }> | null | undefined>>;
22
- noSideBar: PropTypes.Requireable<boolean>;
23
- };
24
13
  componentDidMount(): void;
25
14
  componentDidUpdate(prevProps: WorkspaceProps): void;
26
15
  componentWillUnmount(): void;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  type Theme = 'light' | 'dark';
4
3
  interface ProviderProps {
5
4
  children: React.ReactNode;
@@ -13,12 +12,6 @@ interface Methods {
13
12
  toggleTheme: () => void;
14
13
  }
15
14
  declare const ThemeContext: React.Context<State & Methods>;
16
- declare const ThemeProvider: {
17
- ({ children, context, initialTheme }: ProviderProps): React.JSX.Element;
18
- propTypes: {
19
- children: PropTypes.Requireable<any>;
20
- initialTheme: PropTypes.Requireable<string>;
21
- };
22
- };
15
+ declare const ThemeProvider: ({ children, context, initialTheme }: ProviderProps) => React.JSX.Element;
23
16
  declare function useThemeContext(): State & Methods;
24
17
  export { ThemeContext, ThemeProvider, useThemeContext };