@canonical/react-components 1.9.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +2 -2
  2. package/dist/components/Accordion/AccordionSection/AccordionSection.d.ts +2 -1
  3. package/dist/components/ActionButton/ActionButton.d.ts +2 -1
  4. package/dist/components/ArticlePagination/ArticlePagination.d.ts +2 -1
  5. package/dist/components/Badge/Badge.d.ts +2 -2
  6. package/dist/components/Button/Button.d.ts +2 -1
  7. package/dist/components/Card/Card.d.ts +2 -1
  8. package/dist/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +2 -2
  9. package/dist/components/CheckboxInput/CheckboxInput.d.ts +2 -1
  10. package/dist/components/Chip/Chip.d.ts +2 -1
  11. package/dist/components/Code/Code.d.ts +2 -1
  12. package/dist/components/CodeSnippet/CodeSnippet.d.ts +2 -2
  13. package/dist/components/CodeSnippet/CodeSnippetBlock.d.ts +2 -1
  14. package/dist/components/CodeSnippet/CodeSnippetDropdown.d.ts +2 -1
  15. package/dist/components/Col/Col.d.ts +2 -1
  16. package/dist/components/ConfirmationButton/ConfirmationButton.d.ts +2 -2
  17. package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +2 -2
  18. package/dist/components/ContextualMenu/ContextualMenu.d.ts +1 -1
  19. package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +3 -3
  20. package/dist/components/CustomSelect/CustomSelect.d.ts +2 -1
  21. package/dist/components/EmptyState/EmptyState.d.ts +2 -2
  22. package/dist/components/Field/Field.d.ts +2 -1
  23. package/dist/components/Form/Form.d.ts +2 -1
  24. package/dist/components/FormikField/FormikField.d.ts +2 -1
  25. package/dist/components/Icon/Icon.d.ts +2 -1
  26. package/dist/components/Input/Input.d.ts +2 -1
  27. package/dist/components/Label/Label.d.ts +2 -1
  28. package/dist/components/Link/Link.d.ts +2 -1
  29. package/dist/components/List/List.d.ts +2 -1
  30. package/dist/components/Loader/Loader.d.ts +2 -1
  31. package/dist/components/MainTable/MainTable.d.ts +2 -1
  32. package/dist/components/Modal/Modal.d.ts +6 -2
  33. package/dist/components/Modal/Modal.js +2 -1
  34. package/dist/components/Modal/Modal.stories.js +8 -1
  35. package/dist/components/ModularTable/ModularTable.d.ts +2 -2
  36. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  37. package/dist/components/Navigation/Navigation.d.ts +2 -1
  38. package/dist/components/Navigation/Navigation.js +1 -1
  39. package/dist/components/Navigation/NavigationLink/NavigationLink.d.ts +2 -1
  40. package/dist/components/Navigation/NavigationMenu/NavigationMenu.d.ts +2 -1
  41. package/dist/components/Notification/Notification.d.ts +2 -2
  42. package/dist/components/Pagination/Pagination.d.ts +2 -1
  43. package/dist/components/Pagination/PaginationButton/PaginationButton.d.ts +2 -1
  44. package/dist/components/Pagination/PaginationItem/PaginationItem.d.ts +2 -1
  45. package/dist/components/RadioInput/RadioInput.d.ts +2 -1
  46. package/dist/components/Row/Row.d.ts +2 -1
  47. package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +2 -1
  48. package/dist/components/SearchAndFilter/SearchAndFilter.d.ts +2 -1
  49. package/dist/components/SearchAndFilter/SearchAndFilter.js +1 -1
  50. package/dist/components/SearchBox/SearchBox.d.ts +0 -4
  51. package/dist/components/SearchBox/SearchBox.js +1 -1
  52. package/dist/components/Select/Select.d.ts +2 -1
  53. package/dist/components/SkipLink/SkipLink.d.ts +2 -2
  54. package/dist/components/Slider/Slider.d.ts +2 -1
  55. package/dist/components/Spinner/Spinner.d.ts +2 -2
  56. package/dist/components/StatusLabel/StatusLabel.d.ts +2 -1
  57. package/dist/components/Stepper/Step/Step.d.ts +2 -1
  58. package/dist/components/Stepper/Stepper.d.ts +3 -3
  59. package/dist/components/Strip/Strip.d.ts +2 -1
  60. package/dist/components/SummaryButton/SummaryButton.d.ts +2 -1
  61. package/dist/components/Switch/Switch.d.ts +2 -1
  62. package/dist/components/Table/Table.d.ts +2 -2
  63. package/dist/components/TableCell/TableCell.d.ts +2 -2
  64. package/dist/components/TableHeader/TableHeader.d.ts +2 -2
  65. package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +2 -2
  66. package/dist/components/TablePagination/utils.d.ts +3 -3
  67. package/dist/components/TableRow/TableRow.d.ts +2 -1
  68. package/dist/components/Tabs/Tabs.d.ts +2 -1
  69. package/dist/components/Textarea/Textarea.d.ts +2 -1
  70. package/dist/components/Tooltip/Tooltip.d.ts +2 -1
  71. package/dist/esm/components/Accordion/Accordion.d.ts +2 -2
  72. package/dist/esm/components/Accordion/AccordionSection/AccordionSection.d.ts +2 -1
  73. package/dist/esm/components/ActionButton/ActionButton.d.ts +2 -1
  74. package/dist/esm/components/ArticlePagination/ArticlePagination.d.ts +2 -1
  75. package/dist/esm/components/Badge/Badge.d.ts +2 -2
  76. package/dist/esm/components/Button/Button.d.ts +2 -1
  77. package/dist/esm/components/Card/Card.d.ts +2 -1
  78. package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +2 -2
  79. package/dist/esm/components/CheckboxInput/CheckboxInput.d.ts +2 -1
  80. package/dist/esm/components/Chip/Chip.d.ts +2 -1
  81. package/dist/esm/components/Code/Code.d.ts +2 -1
  82. package/dist/esm/components/CodeSnippet/CodeSnippet.d.ts +2 -2
  83. package/dist/esm/components/CodeSnippet/CodeSnippetBlock.d.ts +2 -1
  84. package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.d.ts +2 -1
  85. package/dist/esm/components/Col/Col.d.ts +2 -1
  86. package/dist/esm/components/ConfirmationButton/ConfirmationButton.d.ts +2 -2
  87. package/dist/esm/components/ConfirmationModal/ConfirmationModal.d.ts +2 -2
  88. package/dist/esm/components/ContextualMenu/ContextualMenu.d.ts +1 -1
  89. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +3 -3
  90. package/dist/esm/components/CustomSelect/CustomSelect.d.ts +2 -1
  91. package/dist/esm/components/EmptyState/EmptyState.d.ts +2 -2
  92. package/dist/esm/components/Field/Field.d.ts +2 -1
  93. package/dist/esm/components/Form/Form.d.ts +2 -1
  94. package/dist/esm/components/FormikField/FormikField.d.ts +2 -1
  95. package/dist/esm/components/Icon/Icon.d.ts +2 -1
  96. package/dist/esm/components/Input/Input.d.ts +2 -1
  97. package/dist/esm/components/Label/Label.d.ts +2 -1
  98. package/dist/esm/components/Link/Link.d.ts +2 -1
  99. package/dist/esm/components/List/List.d.ts +2 -1
  100. package/dist/esm/components/Loader/Loader.d.ts +2 -1
  101. package/dist/esm/components/MainTable/MainTable.d.ts +2 -1
  102. package/dist/esm/components/Modal/Modal.d.ts +6 -2
  103. package/dist/esm/components/Modal/Modal.js +4 -3
  104. package/dist/esm/components/Modal/Modal.stories.js +8 -1
  105. package/dist/esm/components/ModularTable/ModularTable.d.ts +2 -2
  106. package/dist/esm/components/MultiSelect/MultiSelect.js +1 -1
  107. package/dist/esm/components/Navigation/Navigation.d.ts +2 -1
  108. package/dist/esm/components/Navigation/Navigation.js +1 -1
  109. package/dist/esm/components/Navigation/NavigationLink/NavigationLink.d.ts +2 -1
  110. package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.d.ts +2 -1
  111. package/dist/esm/components/Notification/Notification.d.ts +2 -2
  112. package/dist/esm/components/Pagination/Pagination.d.ts +2 -1
  113. package/dist/esm/components/Pagination/PaginationButton/PaginationButton.d.ts +2 -1
  114. package/dist/esm/components/Pagination/PaginationItem/PaginationItem.d.ts +2 -1
  115. package/dist/esm/components/RadioInput/RadioInput.d.ts +2 -1
  116. package/dist/esm/components/Row/Row.d.ts +2 -1
  117. package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +2 -1
  118. package/dist/esm/components/SearchAndFilter/SearchAndFilter.d.ts +2 -1
  119. package/dist/esm/components/SearchAndFilter/SearchAndFilter.js +1 -1
  120. package/dist/esm/components/SearchBox/SearchBox.d.ts +0 -4
  121. package/dist/esm/components/SearchBox/SearchBox.js +1 -1
  122. package/dist/esm/components/Select/Select.d.ts +2 -1
  123. package/dist/esm/components/SkipLink/SkipLink.d.ts +2 -2
  124. package/dist/esm/components/Slider/Slider.d.ts +2 -1
  125. package/dist/esm/components/Spinner/Spinner.d.ts +2 -2
  126. package/dist/esm/components/StatusLabel/StatusLabel.d.ts +2 -1
  127. package/dist/esm/components/Stepper/Step/Step.d.ts +2 -1
  128. package/dist/esm/components/Stepper/Stepper.d.ts +3 -3
  129. package/dist/esm/components/Strip/Strip.d.ts +2 -1
  130. package/dist/esm/components/SummaryButton/SummaryButton.d.ts +2 -1
  131. package/dist/esm/components/Switch/Switch.d.ts +2 -1
  132. package/dist/esm/components/Table/Table.d.ts +2 -2
  133. package/dist/esm/components/TableCell/TableCell.d.ts +2 -2
  134. package/dist/esm/components/TableHeader/TableHeader.d.ts +2 -2
  135. package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +2 -2
  136. package/dist/esm/components/TablePagination/utils.d.ts +3 -3
  137. package/dist/esm/components/TableRow/TableRow.d.ts +2 -1
  138. package/dist/esm/components/Tabs/Tabs.d.ts +2 -1
  139. package/dist/esm/components/Textarea/Textarea.d.ts +2 -1
  140. package/dist/esm/components/Tooltip/Tooltip.d.ts +2 -1
  141. package/dist/esm/hooks/useThrottle.js +2 -2
  142. package/dist/hooks/useThrottle.js +2 -2
  143. package/package.json +15 -22
@@ -1,4 +1,4 @@
1
- import { HTMLProps } from "react";
1
+ import React, { HTMLProps } from "react";
2
2
  import type { AccordionHeadings, AccordionSectionProps } from "./AccordionSection";
3
3
  import type { ClassName, PropsWithSpread } from "../../types";
4
4
  export type Section = AccordionSectionProps & {
@@ -42,5 +42,5 @@ export type Props = PropsWithSpread<{
42
42
  *
43
43
  * The sidebar accordion, used in listing pages or as navigation, can hold multiple navigation items or to be used as a filter for content.
44
44
  */
45
- declare const Accordion: ({ className, expanded, externallyControlled, onExpandedChange, sections, titleElement, ...asideProps }: Props) => JSX.Element;
45
+ declare const Accordion: ({ className, expanded, externallyControlled, onExpandedChange, sections, titleElement, ...asideProps }: Props) => React.JSX.Element;
46
46
  export default Accordion;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ReactNode } from "react";
2
3
  import type { Headings } from "../../../types";
3
4
  export type AccordionHeadings = Exclude<Headings, "h1">;
@@ -30,5 +31,5 @@ export type Props = {
30
31
  */
31
32
  titleElement?: AccordionHeadings;
32
33
  };
33
- declare const AccordionSection: ({ content, expanded, onTitleClick, sectionKey, setExpanded, title, titleElement, headingLevel, }: Props) => JSX.Element;
34
+ declare const AccordionSection: ({ content, expanded, onTitleClick, sectionKey, setExpanded, title, titleElement, headingLevel, }: Props) => React.JSX.Element;
34
35
  export default AccordionSection;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ButtonHTMLAttributes, ReactNode } from "react";
2
3
  import type { ButtonProps } from "../Button";
3
4
  import type { ClassName, PropsWithSpread } from "../../types";
@@ -44,5 +45,5 @@ export type Props = PropsWithSpread<{
44
45
  * [Button](?path=/docs/components-button--docs) in addition to those in the
45
46
  * props table:
46
47
  */
47
- declare const ActionButton: ({ appearance, children, className, disabled, inline, loading, success, ...buttonProps }: Props) => JSX.Element;
48
+ declare const ActionButton: ({ appearance, children, className, disabled, inline, loading, success, ...buttonProps }: Props) => React.JSX.Element;
48
49
  export default ActionButton;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  export type Props = PropsWithSpread<{
@@ -27,5 +28,5 @@ export type Props = PropsWithSpread<{
27
28
  *
28
29
  * The article pagination component should be used to navigate from one article to the next, or previous, in chronological order.
29
30
  */
30
- declare const ArticlePagination: ({ className, nextURL, nextLabel, previousURL, previousLabel, ...props }: Props) => JSX.Element;
31
+ declare const ArticlePagination: ({ className, nextURL, nextLabel, previousURL, previousLabel, ...props }: Props) => React.JSX.Element;
31
32
  export default ArticlePagination;
@@ -1,4 +1,4 @@
1
- import { HTMLProps } from "react";
1
+ import React, { HTMLProps } from "react";
2
2
  import type { ClassName, PropsWithSpread, ValueOf } from "../../types";
3
3
  export declare const BadgeType: {
4
4
  readonly ROUNDED_LARGE_NUMBER: "ROUNDED_LARGE_NUMBER";
@@ -30,5 +30,5 @@ export type Props = PropsWithSpread<{
30
30
  *
31
31
  * It can be used to display a numeric values.
32
32
  */
33
- declare const Badge: ({ value, badgeType, className, isNegative, ...spanProps }: Props) => JSX.Element;
33
+ declare const Badge: ({ value, badgeType, className, isNegative, ...spanProps }: Props) => React.JSX.Element;
34
34
  export default Badge;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ButtonHTMLAttributes, ComponentType, ElementType, MouseEventHandler, ReactNode } from "react";
2
3
  import type { ClassName, ValueOf } from "../../types";
3
4
  export declare const ButtonAppearance: {
@@ -60,5 +61,5 @@ export type Props<P = null> = {
60
61
  * Buttons are clickable elements used to perform an action, they can be used for buttons and link elements.
61
62
  * @template P - The type of the props if providing a component to `element`
62
63
  */
63
- declare const Button: <P>({ appearance, children, className, dense, disabled, element: Component, hasIcon, inline, onClick, small, ...buttonProps }: Props<P>) => JSX.Element;
64
+ declare const Button: <P>({ appearance, children, className, dense, disabled, element: Component, hasIcon, inline, onClick, small, ...buttonProps }: Props<P>) => React.JSX.Element;
64
65
  export default Button;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  export type Props = PropsWithSpread<{
@@ -31,5 +32,5 @@ export type Props = PropsWithSpread<{
31
32
  *
32
33
  * There are four card styles available to use in Vanilla: default, header, highlighted and overlay. Our card component will expand to fill the full width of its parent container.
33
34
  */
34
- declare const Card: ({ children, className, highlighted, overlay, thumbnail, title, ...props }: Props) => JSX.Element;
35
+ declare const Card: ({ children, className, highlighted, overlay, thumbnail, title, ...props }: Props) => React.JSX.Element;
35
36
  export default Card;
@@ -1,4 +1,4 @@
1
- import { HTMLProps } from "react";
1
+ import React, { HTMLProps } from "react";
2
2
  import type { ReactNode } from "react";
3
3
  import type { PropsWithSpread } from "../../../types";
4
4
  export type Props = PropsWithSpread<{
@@ -23,5 +23,5 @@ export type Props = PropsWithSpread<{
23
23
  */
24
24
  inline?: boolean;
25
25
  }, Omit<HTMLProps<HTMLInputElement>, "type">>;
26
- declare const CheckableInput: ({ inputType, label, labelClassName, indeterminate, inline, ...checkboxProps }: Props) => JSX.Element;
26
+ declare const CheckableInput: ({ inputType, label, labelClassName, indeterminate, inline, ...checkboxProps }: Props) => React.JSX.Element;
27
27
  export default CheckableInput;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { CheckableInputProps } from "./CheckableInput";
2
3
  export type Props = Omit<CheckableInputProps, "inputType">;
3
4
  /**
@@ -5,5 +6,5 @@ export type Props = Omit<CheckableInputProps, "inputType">;
5
6
  *
6
7
  * Use the checkbox component to select one or more options.
7
8
  */
8
- declare const CheckboxInput: ({ label, indeterminate, ...checkboxProps }: Props) => JSX.Element;
9
+ declare const CheckboxInput: ({ label, indeterminate, ...checkboxProps }: Props) => React.JSX.Element;
9
10
  export default CheckboxInput;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { MouseEvent, HTMLProps } from "react";
2
3
  import { ValueOf, PropsWithSpread } from "../../types";
3
4
  export declare enum Label {
@@ -52,5 +53,5 @@ export type Props = PropsWithSpread<{
52
53
  *
53
54
  * It can be used to display a small value attached to a component.
54
55
  */
55
- declare const Chip: ({ appearance, lead, onClick, onDismiss, quoteValue, selected, subString, value, ...props }: Props) => JSX.Element;
56
+ declare const Chip: ({ appearance, lead, onClick, onDismiss, quoteValue, selected, subString, value, ...props }: Props) => React.JSX.Element;
56
57
  export default Chip;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ClassName } from "../../types";
2
3
  export type Props = {
3
4
  children: string;
@@ -9,5 +10,5 @@ export type Props = {
9
10
  /**
10
11
  * @deprecated Code component is deprecated. Use CodeSnippet component or inline `<code>` instead.
11
12
  */
12
- declare const Code: ({ children, className, inline, copyable, numbered, ...props }: Props) => JSX.Element;
13
+ declare const Code: ({ children, className, inline, copyable, numbered, ...props }: Props) => React.JSX.Element;
13
14
  export default Code;
@@ -1,4 +1,4 @@
1
- import { HTMLProps } from "react";
1
+ import React, { HTMLProps } from "react";
2
2
  import type { Props as CodeSnippetBlockProps } from "./CodeSnippetBlock";
3
3
  import type { ClassName, PropsWithSpread } from "../../types";
4
4
  export type Props = PropsWithSpread<{
@@ -18,4 +18,4 @@ export type Props = PropsWithSpread<{
18
18
  *
19
19
  * A single `CodeSnippet` component can render multiple separate code blocks. Blocks are provided as an array via the `blocks` prop. Each block object defines values of props for each code block of the snippet.
20
20
  */
21
- export default function CodeSnippet({ className, blocks, ...props }: Props): JSX.Element;
21
+ export default function CodeSnippet({ className, blocks, ...props }: Props): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ReactNode } from "react";
2
3
  import type { Props as CodeSnippetDropdownProps } from "./CodeSnippetDropdown";
3
4
  import type { ValueOf } from "../../types";
@@ -37,4 +38,4 @@ export type Props = {
37
38
  */
38
39
  wrapLines?: boolean;
39
40
  };
40
- export default function CodeSnippetBlock({ appearance, code, content, dropdowns, stacked, title, wrapLines, }: Props): JSX.Element;
41
+ export default function CodeSnippetBlock({ appearance, code, content, dropdowns, stacked, title, wrapLines, }: Props): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ChangeEventHandler, HTMLProps } from "react";
2
3
  export type DropdownOptionProps = {
3
4
  /**
@@ -15,4 +16,4 @@ export type Props = {
15
16
  */
16
17
  options: DropdownOptionProps[];
17
18
  } & HTMLProps<HTMLSelectElement>;
18
- export default function CodeSnippetDropdown({ options, onChange, ...props }: Props): JSX.Element;
19
+ export default function CodeSnippetDropdown({ options, onChange, ...props }: Props): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ElementType, HTMLProps, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  export type ColSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
@@ -49,5 +50,5 @@ export type Props = PropsWithSpread<{
49
50
  *
50
51
  * Vanilla has a responsive grid using a combination of rows and columns.
51
52
  */
52
- declare const Col: ({ children, className, element: Component, emptyLarge, emptyMedium, emptySmall, large, medium, size, small, ...props }: Props) => JSX.Element;
53
+ declare const Col: ({ children, className, element: Component, emptyLarge, emptyMedium, emptySmall, large, medium, size, small, ...props }: Props) => React.JSX.Element;
53
54
  export default Col;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from "react";
1
+ import React from "react";
2
2
  import { PropsWithSpread, SubComponentProps } from "../../types";
3
3
  import { ActionButtonProps } from "../ActionButton";
4
4
  import { ConfirmationModalProps } from "../ConfirmationModal";
@@ -24,5 +24,5 @@ export type Props = PropsWithSpread<{
24
24
  /**
25
25
  * `ConfirmationButton` is a specialised version of the [ActionButton](?path=/docs/actionbutton--default-story) component that uses a [ConfirmationModal](?path=/docs/confirmationmodal--default-story) to prompt a confirmation from the user before executing an action.
26
26
  */
27
- export declare const ConfirmationButton: ({ confirmationModalProps, onHoverText, shiftClickEnabled, showShiftClickHint, ...actionButtonProps }: Props) => ReactElement;
27
+ export declare const ConfirmationButton: ({ confirmationModalProps, onHoverText, shiftClickEnabled, showShiftClickHint, ...actionButtonProps }: Props) => React.JSX.Element;
28
28
  export default ConfirmationButton;
@@ -1,4 +1,4 @@
1
- import { MouseEvent, ReactElement } from "react";
1
+ import React, { MouseEvent } from "react";
2
2
  import type { ReactNode } from "react";
3
3
  import { PropsWithSpread, ValueOf } from "../../types";
4
4
  import { ButtonAppearance, ButtonProps } from "../Button";
@@ -49,5 +49,5 @@ export type Props = PropsWithSpread<{
49
49
  /**
50
50
  * `ConfirmationModal` is a specialised version of the [Modal](?path=/docs/modal--default-story) component to prompt a confirmation from the user before executing an action.
51
51
  */
52
- export declare const ConfirmationModal: ({ cancelButtonLabel, cancelButtonProps, children, confirmButtonAppearance, confirmButtonLabel, confirmExtra, onConfirm, confirmButtonLoading, confirmButtonDisabled, confirmButtonProps, ...props }: Props) => ReactElement;
52
+ export declare const ConfirmationModal: ({ cancelButtonLabel, cancelButtonProps, children, confirmButtonAppearance, confirmButtonLabel, confirmExtra, onConfirm, confirmButtonLoading, confirmButtonDisabled, confirmButtonProps, ...props }: Props) => React.JSX.Element;
53
53
  export default ConfirmationModal;
@@ -106,5 +106,5 @@ export type Props<L> = BaseProps<L> & ExclusiveProps<{
106
106
  *
107
107
  * A contextual menu can be used in conjunction with any page element to provide a contextual menu.
108
108
  */
109
- declare const ContextualMenu: <L>({ autoAdjust, children, className, closeOnEsc, closeOnOutsideClick, constrainPanelWidth, dropdownClassName, dropdownProps, hasToggleIcon, links, onToggleMenu, position, positionNode, scrollOverflow, toggle, toggleAppearance, toggleClassName, toggleDisabled, toggleLabel, toggleLabelFirst, toggleProps, visible, ...wrapperProps }: Props<L>) => JSX.Element;
109
+ declare const ContextualMenu: <L>({ autoAdjust, children, className, closeOnEsc, closeOnOutsideClick, constrainPanelWidth, dropdownClassName, dropdownProps, hasToggleIcon, links, onToggleMenu, position, positionNode, scrollOverflow, toggle, toggleAppearance, toggleClassName, toggleDisabled, toggleLabel, toggleLabelFirst, toggleProps, visible, ...wrapperProps }: Props<L>) => React.JSX.Element;
110
110
  export default ContextualMenu;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from "react";
1
+ import React from "react";
2
2
  import type { HTMLProps, ReactNode } from "react";
3
3
  import type { ButtonProps } from "../../Button";
4
4
  import type { WindowFitment } from "../../../hooks";
@@ -21,7 +21,7 @@ export type Props<L = null> = {
21
21
  handleClose?: (evt?: MouseEvent) => void;
22
22
  constrainPanelWidth?: boolean;
23
23
  dropdownClassName?: string;
24
- dropdownContent?: ReactNode | ((close: () => void) => ReactElement);
24
+ dropdownContent?: ReactNode | ((close: () => void) => React.JSX.Element);
25
25
  id?: string;
26
26
  isOpen?: boolean;
27
27
  links?: MenuLink<L>[];
@@ -39,5 +39,5 @@ export type Props<L = null> = {
39
39
  * @return The new position.
40
40
  */
41
41
  export declare const adjustForWindow: (position: Position, fitsWindow: WindowFitment) => Position;
42
- declare const ContextualMenuDropdown: <L>({ adjustedPosition, autoAdjust, handleClose, constrainPanelWidth, dropdownClassName, dropdownContent, id, isOpen, links, position, positionCoords, positionNode, scrollOverflow, setAdjustedPosition, contextualMenuClassName, ...props }: Props<L>) => JSX.Element;
42
+ declare const ContextualMenuDropdown: <L>({ adjustedPosition, autoAdjust, handleClose, constrainPanelWidth, dropdownClassName, dropdownContent, id, isOpen, links, position, positionCoords, positionNode, scrollOverflow, setAdjustedPosition, contextualMenuClassName, ...props }: Props<L>) => React.JSX.Element;
43
43
  export default ContextualMenuDropdown;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { MutableRefObject, ReactNode } from "react";
2
3
  import { ClassName, PropsWithSpread } from "../../types";
3
4
  import { FieldProps } from "../Field";
@@ -32,5 +33,5 @@ export type Props = PropsWithSpread<FieldProps, {
32
33
  *
33
34
  * The aim of this component is to provide a select component with customisable options and a dropdown menu, whilst maintaining accessibility and usability.
34
35
  */
35
- declare const CustomSelect: ({ value, options, onChange, onSearch, id, name, disabled, success, error, help, wrapperClassName, toggleClassName, dropdownClassName, searchable, takeFocus, header, selectRef, initialPosition, ...fieldProps }: Props) => JSX.Element;
36
+ declare const CustomSelect: ({ value, options, onChange, onSearch, id, name, disabled, success, error, help, wrapperClassName, toggleClassName, dropdownClassName, searchable, takeFocus, header, selectRef, initialPosition, ...fieldProps }: Props) => React.JSX.Element;
36
37
  export default CustomSelect;
@@ -1,4 +1,4 @@
1
- import { ReactNode, HTMLProps, ReactElement } from "react";
1
+ import React, { ReactNode, HTMLProps } from "react";
2
2
  import { PropsWithSpread } from "../../types";
3
3
  export type Props = PropsWithSpread<{
4
4
  /**
@@ -21,5 +21,5 @@ export type Props = PropsWithSpread<{
21
21
  /**
22
22
  * This is a [React](https://reactjs.org/) component to represent an empty state.
23
23
  */
24
- export declare const EmptyState: ({ children, className, image, title, ...props }: Props) => ReactElement;
24
+ export declare const EmptyState: ({ children, className, image, title, ...props }: Props) => React.JSX.Element;
25
25
  export default EmptyState;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ReactNode } from "react";
2
3
  import type { ClassName } from "../../types";
3
4
  /**
@@ -73,5 +74,5 @@ export type Props = {
73
74
  */
74
75
  validationId?: string;
75
76
  };
76
- declare const Field: ({ caution, children, className, error, forId, help, helpClassName, helpId, isSelect, isTickElement, label, labelClassName, labelFirst, required, stacked, success, validationId, ...props }: Props) => JSX.Element;
77
+ declare const Field: ({ caution, children, className, error, forId, help, helpClassName, helpId, isSelect, isTickElement, label, labelClassName, labelFirst, required, stacked, success, validationId, ...props }: Props) => React.JSX.Element;
77
78
  export default Field;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  export type Props = PropsWithSpread<{
@@ -17,5 +18,5 @@ export type Props = PropsWithSpread<{
17
18
  *
18
19
  * Form controls have global styling defined at the HTML element level. Labels and most input types are 100% width of the `<form>` parent element.
19
20
  */
20
- declare const Form: ({ children, className, inline, stacked, ...props }: Props) => JSX.Element;
21
+ declare const Form: ({ children, className, inline, stacked, ...props }: Props) => React.JSX.Element;
21
22
  export default Form;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { type ComponentProps, type ComponentType, type ElementType, type HTMLProps } from "react";
2
3
  import Input from "../Input";
3
4
  export type Props<C extends ElementType | ComponentType = typeof Input> = {
@@ -21,5 +22,5 @@ export type Props<C extends ElementType | ComponentType = typeof Input> = {
21
22
  * makes use of Formik's context to automatically map errors, values, states
22
23
  * etc. onto the provided field.
23
24
  */
24
- declare const FormikField: <C extends ElementType | ComponentType = ({ caution, className, error, help, helpClassName, id, label, labelClassName, required, stacked, success, takeFocus, takeFocusDelay, type, wrapperClassName, ...inputProps }: import("../Input").InputProps) => JSX.Element>({ component: Component, displayError, name, value, label, ...props }: Props<C>) => JSX.Element;
25
+ declare const FormikField: <C extends ElementType | ComponentType = ({ caution, className, error, help, helpClassName, id, label, labelClassName, required, stacked, success, takeFocus, takeFocusDelay, type, wrapperClassName, ...inputProps }: import("../Input").InputProps) => React.JSX.Element>({ component: Component, displayError, name, value, label, ...props }: Props<C>) => React.JSX.Element;
25
26
  export default FormikField;
@@ -1,4 +1,5 @@
1
1
  import type { HTMLProps } from "react";
2
+ import React from "react";
2
3
  import type { ClassName, PropsWithSpread, ValueOf } from "../../types";
3
4
  export declare const ICONS: {
4
5
  readonly anchor: "anchor";
@@ -55,5 +56,5 @@ export type Props = PropsWithSpread<{
55
56
  * @param name One of built-in Vanilla icons or a name of a custom icon that follows `p-icon--{name}` convention.
56
57
  * @returns Icon
57
58
  */
58
- declare const Icon: ({ className, light, name, ...props }: Props) => JSX.Element;
59
+ declare const Icon: ({ className, light, name, ...props }: Props) => React.JSX.Element;
59
60
  export default Icon;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { InputHTMLAttributes, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  /**
@@ -66,5 +67,5 @@ export type Props = PropsWithSpread<{
66
67
  *
67
68
  * An input field where the user can enter data, which can vary in many ways, depending on the type attribute.
68
69
  */
69
- declare const Input: ({ caution, className, error, help, helpClassName, id, label, labelClassName, required, stacked, success, takeFocus, takeFocusDelay, type, wrapperClassName, ...inputProps }: Props) => JSX.Element;
70
+ declare const Input: ({ caution, className, error, help, helpClassName, id, label, labelClassName, required, stacked, success, takeFocus, takeFocusDelay, type, wrapperClassName, ...inputProps }: Props) => React.JSX.Element;
70
71
  export default Input;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { LabelHTMLAttributes, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  /**
@@ -21,5 +22,5 @@ export type Props = PropsWithSpread<{
21
22
  */
22
23
  required?: boolean;
23
24
  }, LabelHTMLAttributes<HTMLLabelElement>>;
24
- declare const Label: ({ children, className, forId, required, ...props }: Props) => JSX.Element;
25
+ declare const Label: ({ children, className, forId, required, ...props }: Props) => React.JSX.Element;
25
26
  export default Label;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread } from "../../types";
3
4
  export type Props = PropsWithSpread<{
@@ -27,5 +28,5 @@ export type Props = PropsWithSpread<{
27
28
  *
28
29
  * Links are used to embed actions or pathways to more information, allowing users to click their way from page to page.
29
30
  */
30
- declare const Link: ({ children, className, href, inverted, soft, top, ...props }: Props) => JSX.Element;
31
+ declare const Link: ({ children, className, href, inverted, soft, top, ...props }: Props) => React.JSX.Element;
31
32
  export default Link;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps, ReactNode } from "react";
2
3
  import { ClassName, Headings, PropsWithSpread } from "../../types";
3
4
  export type ListItem = ReactNode | PropsWithSpread<{
@@ -32,5 +33,5 @@ export type Props = {
32
33
  *
33
34
  * If you want to display lists in a way that is more visually distinctive than the standard `<ol>` and `<ul>`, we have 7 list styles at your disposal.
34
35
  */
35
- declare const List: ({ className, detailed, divided, inline, isDark, items, middot, stretch, split, stepped, ticked, ...props }: Props) => JSX.Element;
36
+ declare const List: ({ className, detailed, divided, inline, isDark, items, middot, stretch, split, stepped, ticked, ...props }: Props) => React.JSX.Element;
36
37
  export default List;
@@ -1,6 +1,7 @@
1
+ import React from "react";
1
2
  import type { SpinnerProps } from "../Spinner";
2
3
  /**
3
4
  * @deprecated Loader component is deprecated. Use Spinner component instead.
4
5
  */
5
- declare const Loader: (props: SpinnerProps) => JSX.Element;
6
+ declare const Loader: (props: SpinnerProps) => React.JSX.Element;
6
7
  export default Loader;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps, ReactNode } from "react";
2
3
  import type { ClassName, PropsWithSpread, SortDirection } from "../../types";
3
4
  import type { TableProps } from "../Table";
@@ -98,5 +99,5 @@ export type Props = PropsWithSpread<{
98
99
  /**
99
100
  * This is a [React](https://reactjs.org/) component to support many table use cases.
100
101
  */
101
- declare const MainTable: ({ defaultSort, defaultSortDirection, emptyStateMsg, expanding, headers, onUpdateSort, paginate, rows, responsive, sortable, sortFunction, hiddenCaption, ...props }: Props) => JSX.Element;
102
+ declare const MainTable: ({ defaultSort, defaultSortDirection, emptyStateMsg, expanding, headers, onUpdateSort, paginate, rows, responsive, sortable, sortFunction, hiddenCaption, ...props }: Props) => React.JSX.Element;
102
103
  export default MainTable;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from "react";
1
+ import React from "react";
2
2
  import type { HTMLProps, ReactNode } from "react";
3
3
  import { ClassName, PropsWithSpread } from "../../types";
4
4
  export type Props = PropsWithSpread<{
@@ -26,11 +26,15 @@ export type Props = PropsWithSpread<{
26
26
  * Whether the button click event should propagate.
27
27
  */
28
28
  shouldPropagateClickEvent?: boolean;
29
+ /**
30
+ * Whether the modal should close when clicking outside the modal.
31
+ */
32
+ closeOnOutsideClick?: boolean;
29
33
  }, HTMLProps<HTMLDivElement>>;
30
34
  /**
31
35
  * This is a [React](https://reactjs.org/) component for the Vanilla [Modal](https://docs.vanillaframework.io/patterns/modal/).
32
36
  *
33
37
  * The modal component can be used to overlay an area of the screen which can contain a prompt, dialog or interaction.
34
38
  */
35
- export declare const Modal: ({ buttonRow, children, className, close, title, shouldPropagateClickEvent, ...wrapperProps }: Props) => ReactElement;
39
+ export declare const Modal: ({ buttonRow, children, className, close, title, shouldPropagateClickEvent, closeOnOutsideClick, ...wrapperProps }: Props) => React.JSX.Element;
36
40
  export default Modal;
@@ -23,6 +23,7 @@ const Modal = _ref => {
23
23
  close,
24
24
  title,
25
25
  shouldPropagateClickEvent = false,
26
+ closeOnOutsideClick = true,
26
27
  ...wrapperProps
27
28
  } = _ref;
28
29
  // list of focusable selectors is based on this Stack Overflow answer:
@@ -92,7 +93,7 @@ const Modal = _ref => {
92
93
  shouldClose.current = false;
93
94
  };
94
95
  const handleOverlayOnMouseDown = event => {
95
- if (event.target === modalRef.current) {
96
+ if (event.target === modalRef.current && closeOnOutsideClick) {
96
97
  shouldClose.current = true;
97
98
  }
98
99
  };
@@ -31,12 +31,18 @@ const meta = {
31
31
  control: {
32
32
  disable: true
33
33
  }
34
+ },
35
+ closeOnOutsideClick: {
36
+ control: "boolean"
34
37
  }
35
38
  }
36
39
  };
37
40
  var _default = exports.default = meta;
38
41
  const Default = exports.Default = {
39
- render: () => {
42
+ render: _ref => {
43
+ let {
44
+ closeOnOutsideClick
45
+ } = _ref;
40
46
  // eslint-disable-next-line react-hooks/rules-of-hooks
41
47
  const [modalOpen, setModalOpen] = (0, _react.useState)(true);
42
48
  const closeHandler = () => setModalOpen(false);
@@ -45,6 +51,7 @@ const Default = exports.Default = {
45
51
  }, "Open modal"), modalOpen ? /*#__PURE__*/_react.default.createElement(_Modal.default, {
46
52
  close: closeHandler,
47
53
  title: "Confirm delete",
54
+ closeOnOutsideClick: closeOnOutsideClick,
48
55
  buttonRow: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
49
56
  className: "u-no-margin--bottom",
50
57
  onClick: closeHandler
@@ -1,4 +1,4 @@
1
- import { ReactNode, HTMLProps } from "react";
1
+ import React, { ReactNode, HTMLProps } from "react";
2
2
  import { TableCellProps, TableHeaderProps, TableRowProps } from "react-table";
3
3
  import type { Column, UseTableOptions, Cell, Row, HeaderGroup } from "react-table";
4
4
  import { PropsWithSpread } from "../../types";
@@ -101,5 +101,5 @@ columns = {
101
101
  };
102
102
  ```
103
103
  */
104
- declare function ModularTable<D extends Record<string, unknown>>({ data, columns, emptyMsg, footer, sortable, getHeaderProps, getRowProps, getCellProps, getRowId, initialSortColumn, initialSortDirection, autoResetSortBy, ...props }: Props<D>): JSX.Element;
104
+ declare function ModularTable<D extends Record<string, unknown>>({ data, columns, emptyMsg, footer, sortable, getHeaderProps, getRowProps, getCellProps, getRowId, initialSortColumn, initialSortDirection, autoResetSortBy, ...props }: Props<D>): React.JSX.Element;
105
105
  export default ModularTable;
@@ -176,7 +176,7 @@ const MultiSelect = _ref4 => {
176
176
  variant = "search",
177
177
  scrollOverflow = false
178
178
  } = _ref4;
179
- const buttonRef = (0, _react.useRef)();
179
+ const buttonRef = (0, _react.useRef)(null);
180
180
  const [isDropdownOpen, setIsDropdownOpen] = (0, _react.useState)(false);
181
181
  const [filter, setFilter] = (0, _react.useState)("");
182
182
  const [internalSelectedItems, setInternalSelectedItems] = (0, _react.useState)([]);
@@ -1,4 +1,5 @@
1
1
  import { ReactNode, HTMLProps } from "react";
2
+ import React from "react";
2
3
  import type { GenerateLink, NavItem, LogoProps } from "./types";
3
4
  import { PropsWithSpread, SubComponentProps } from "../../types";
4
5
  import { SearchBoxProps } from "../SearchBox";
@@ -62,5 +63,5 @@ is a simple navigation bar that you can add to the top of your site or app.
62
63
  The navigation items are collapsed behind a "Menu" link in small screens and
63
64
  displayed horizontally on larger screens.
64
65
  */
65
- declare const Navigation: ({ fullWidth, generateLink, items, itemsRight, leftNavProps, logo, navProps, rightNavProps, searchProps, theme, ...headerProps }: Props) => JSX.Element;
66
+ declare const Navigation: ({ fullWidth, generateLink, items, itemsRight, leftNavProps, logo, navProps, rightNavProps, searchProps, theme, ...headerProps }: Props) => React.JSX.Element;
66
67
  export default Navigation;
@@ -118,7 +118,7 @@ const Navigation = _ref => {
118
118
  theme,
119
119
  ...headerProps
120
120
  } = _ref;
121
- const searchRef = (0, _react.useRef)();
121
+ const searchRef = (0, _react.useRef)(null);
122
122
  const [mobileMenuOpen, setMobileMenuOpen] = (0, _react.useState)(false);
123
123
  const [searchOpen, setSearchOpen] = (0, _react.useState)(false);
124
124
  // Display the search box if the props have been provided.
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { GenerateLink, NavLink } from "../types";
2
3
  type Props = {
3
4
  generateLink?: GenerateLink;
@@ -6,5 +7,5 @@ type Props = {
6
7
  /**
7
8
  * This component is used internally to display links inside the Navigation component.
8
9
  */
9
- declare const NavigationLink: ({ generateLink, link }: Props) => JSX.Element | null;
10
+ declare const NavigationLink: ({ generateLink, link, }: Props) => React.JSX.Element | null;
10
11
  export default NavigationLink;
@@ -1,4 +1,5 @@
1
1
  import type { HTMLProps } from "react";
2
+ import React from "react";
2
3
  import type { GenerateLink, NavMenu } from "../types";
3
4
  import { PropsWithSpread } from "../../../types";
4
5
  type Props = PropsWithSpread<NavMenu & {
@@ -7,5 +8,5 @@ type Props = PropsWithSpread<NavMenu & {
7
8
  /**
8
9
  * This component is used internally to display menus inside the Navigation component.
9
10
  */
10
- declare const NavigationMenu: ({ alignRight, generateLink, items, label, ...props }: Props) => JSX.Element;
11
+ declare const NavigationMenu: ({ alignRight, generateLink, items, label, ...props }: Props) => React.JSX.Element;
11
12
  export default NavigationMenu;
@@ -1,4 +1,4 @@
1
- import { ElementType } from "react";
1
+ import React, { ElementType } from "react";
2
2
  import type { HTMLProps, ReactNode } from "react";
3
3
  import type { ClassName, PropsWithSpread, ValueOf } from "../../types";
4
4
  export declare enum Label {
@@ -106,5 +106,5 @@ and align with our component prop naming conventions.
106
106
  The `notificationTypes` const has also been replaced with `NotificationSeverity`
107
107
  to reflect the new prop name.
108
108
  */
109
- declare const Notification: ({ actions, borderless, children, className, close, inline, onDismiss, severity, status, timeout, timestamp, title, titleElement: TitleComponent, type, ...props }: Props) => JSX.Element;
109
+ declare const Notification: ({ actions, borderless, children, className, close, inline, onDismiss, severity, status, timeout, timestamp, title, titleElement: TitleComponent, type, ...props }: Props) => React.JSX.Element;
110
110
  export default Notification;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { HTMLProps } from "react";
2
3
  import type { PropsWithSpread } from "../../types";
3
4
  type BaseProps = {
@@ -98,5 +99,5 @@ The pagination component should be used to navigate between pages of content. Th
98
99
  * **Buttons-only Pagination:** used when the total number of items is unknown.<br />
99
100
  **Required props:** onForward, onBack.
100
101
  */
101
- declare const Pagination: ({ itemsPerPage, totalItems, paginate, currentPage, scrollToTop, truncateThreshold, centered, showLabels, hideNumbers, onForward, onBack, forwardDisabled, backDisabled, forwardLabel, backLabel, ...navProps }: Props) => JSX.Element;
102
+ declare const Pagination: ({ itemsPerPage, totalItems, paginate, currentPage, scrollToTop, truncateThreshold, centered, showLabels, hideNumbers, onForward, onBack, forwardDisabled, backDisabled, forwardLabel, backLabel, ...navProps }: Props) => React.JSX.Element;
102
103
  export default Pagination;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { MouseEventHandler } from "react";
2
3
  export declare enum Label {
3
4
  Next = "Next page",
@@ -26,5 +27,5 @@ export type Props = {
26
27
  */
27
28
  label?: string;
28
29
  };
29
- declare const PaginationButton: ({ direction, onClick, disabled, showLabel, label, }: Props) => JSX.Element;
30
+ declare const PaginationButton: ({ direction, onClick, disabled, showLabel, label, }: Props) => React.JSX.Element;
30
31
  export default PaginationButton;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { MouseEventHandler } from "react";
2
3
  export type Props = {
3
4
  /**
@@ -13,5 +14,5 @@ export type Props = {
13
14
  */
14
15
  onClick: MouseEventHandler<HTMLButtonElement>;
15
16
  };
16
- declare const PaginationItem: ({ number, onClick, isActive, }: Props) => JSX.Element;
17
+ declare const PaginationItem: ({ number, onClick, isActive, }: Props) => React.JSX.Element;
17
18
  export default PaginationItem;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { CheckableInputProps } from "../CheckboxInput/CheckableInput";
2
3
  export type Props = Omit<CheckableInputProps, "inputType">;
3
4
  /**
@@ -5,5 +6,5 @@ export type Props = Omit<CheckableInputProps, "inputType">;
5
6
  *
6
7
  * Use radio buttons to select one of the given set of options.
7
8
  */
8
- declare const RadioInput: ({ label, ...radioProps }: Props) => JSX.Element;
9
+ declare const RadioInput: ({ label, ...radioProps }: Props) => React.JSX.Element;
9
10
  export default RadioInput;