@luscii-healthtech/web-ui 2.71.6 → 2.71.7

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 (149) hide show
  1. package/dist/components/AccordionList/AccordionList.d.ts +4 -4
  2. package/dist/components/Avatar/Avatar.d.ts +2 -1
  3. package/dist/components/Badge/Badge.d.ts +1 -0
  4. package/dist/components/BaseList/BaseList.types.d.ts +7 -7
  5. package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
  6. package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +2 -1
  7. package/dist/components/BaseList/utils.d.ts +1 -1
  8. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
  9. package/dist/components/Button/Button.d.ts +1 -0
  10. package/dist/components/Button/Button.types.d.ts +3 -3
  11. package/dist/components/Button/ButtonIcon.d.ts +1 -0
  12. package/dist/components/ButtonV2/ButtonProps.type.d.ts +2 -2
  13. package/dist/components/ButtonV2/ButtonV2.d.ts +1 -1
  14. package/dist/components/ButtonV2/PrimaryButton.d.ts +1 -0
  15. package/dist/components/ButtonV2/SecondaryButton.d.ts +1 -1
  16. package/dist/components/ButtonV2/TertiaryButton.d.ts +1 -0
  17. package/dist/components/Card/Card.d.ts +1 -1
  18. package/dist/components/CenteredHero/CenteredHero.d.ts +3 -2
  19. package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +2 -1
  20. package/dist/components/CheckboxList/CheckboxGroup.d.ts +1 -0
  21. package/dist/components/CheckboxList/CheckboxList.d.ts +1 -0
  22. package/dist/components/CheckboxList/CheckboxList.types.d.ts +3 -3
  23. package/dist/components/CheckboxList/CheckboxListItem.d.ts +1 -0
  24. package/dist/components/Container/types/FlexContainerProps.type.d.ts +4 -4
  25. package/dist/components/Datepicker/Datepicker.d.ts +1 -1
  26. package/dist/components/Divider/Divider.d.ts +1 -1
  27. package/dist/components/DragHandle/DragHandle.types.d.ts +1 -1
  28. package/dist/components/Dropdown/Dropdown.d.ts +7 -7
  29. package/dist/components/Dropzone/Dropzone.types.d.ts +2 -2
  30. package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +1 -0
  31. package/dist/components/ErrorBlock/ErrorBlock.d.ts +2 -1
  32. package/dist/components/Form/Form.d.ts +1 -0
  33. package/dist/components/Form/FormFieldLabeler.d.ts +1 -0
  34. package/dist/components/Form/form.types.d.ts +5 -5
  35. package/dist/components/Icons/AddIcon.d.ts +1 -0
  36. package/dist/components/Icons/AlertsIcon.d.ts +1 -0
  37. package/dist/components/Icons/BellIcon.d.ts +1 -0
  38. package/dist/components/Icons/BluetoothIcon.d.ts +1 -0
  39. package/dist/components/Icons/ChartIcon.d.ts +1 -0
  40. package/dist/components/Icons/ChartLineColoredIcon.d.ts +1 -0
  41. package/dist/components/Icons/ChatBoxIcon.d.ts +1 -0
  42. package/dist/components/Icons/CheckIcon.d.ts +1 -0
  43. package/dist/components/Icons/ChevronDoubleIcon.d.ts +1 -0
  44. package/dist/components/Icons/ChevronDownIcon.d.ts +1 -0
  45. package/dist/components/Icons/ChevronRightIcon.d.ts +1 -0
  46. package/dist/components/Icons/CrossIcon.d.ts +1 -0
  47. package/dist/components/Icons/DeleteIcon.d.ts +1 -0
  48. package/dist/components/Icons/DownArrowIcon.d.ts +1 -0
  49. package/dist/components/Icons/DragIcon.d.ts +1 -0
  50. package/dist/components/Icons/EditIcon.d.ts +1 -0
  51. package/dist/components/Icons/EmptyIcon.d.ts +1 -0
  52. package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +1 -0
  53. package/dist/components/Icons/ExclamationMarkIcon.d.ts +1 -0
  54. package/dist/components/Icons/EyeIcon.d.ts +1 -0
  55. package/dist/components/Icons/GearColoredIcon.d.ts +1 -0
  56. package/dist/components/Icons/GearIcon.d.ts +1 -0
  57. package/dist/components/Icons/GroupColoredIcon.d.ts +1 -0
  58. package/dist/components/Icons/GroupIcon.d.ts +1 -0
  59. package/dist/components/Icons/HamburgerIcon.d.ts +1 -0
  60. package/dist/components/Icons/HeartIcon.d.ts +1 -0
  61. package/dist/components/Icons/ImageIcon.d.ts +1 -0
  62. package/dist/components/Icons/InfoIcon.d.ts +1 -0
  63. package/dist/components/Icons/LeftArrowIcon.d.ts +1 -0
  64. package/dist/components/Icons/LightBulbIcon.d.ts +1 -0
  65. package/dist/components/Icons/LinkIcon.d.ts +1 -0
  66. package/dist/components/Icons/LockIcon.d.ts +1 -0
  67. package/dist/components/Icons/MessagesIcon.d.ts +1 -0
  68. package/dist/components/Icons/MouseIcon.d.ts +1 -0
  69. package/dist/components/Icons/NotesIcon.d.ts +1 -0
  70. package/dist/components/Icons/PinIcon.d.ts +1 -0
  71. package/dist/components/Icons/PrintIcon.d.ts +1 -0
  72. package/dist/components/Icons/RightArrowIcon.d.ts +1 -0
  73. package/dist/components/Icons/SearchCancelIcon.d.ts +1 -0
  74. package/dist/components/Icons/SearchIcon.d.ts +1 -0
  75. package/dist/components/Icons/SmallCircleIcon.d.ts +1 -0
  76. package/dist/components/Icons/SmallDiamondIcon.d.ts +1 -0
  77. package/dist/components/Icons/SmallSquareIcon.d.ts +1 -0
  78. package/dist/components/Icons/SpaceRocketIcon.d.ts +1 -0
  79. package/dist/components/Icons/StarIcon.d.ts +1 -0
  80. package/dist/components/Icons/StatusColoredIcon.d.ts +1 -0
  81. package/dist/components/Icons/WarningIcon.d.ts +1 -0
  82. package/dist/components/Icons/types/IconProps.type.d.ts +1 -1
  83. package/dist/components/InfoBlock/InfoBlock.d.ts +2 -1
  84. package/dist/components/InfoField/InfoField.d.ts +2 -1
  85. package/dist/components/Input/Input.d.ts +2 -2
  86. package/dist/components/Input/SearchInput.d.ts +1 -1
  87. package/dist/components/Line/Line.d.ts +2 -1
  88. package/dist/components/List/List.types.d.ts +6 -6
  89. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -0
  90. package/dist/components/Menu/Menu.d.ts +2 -2
  91. package/dist/components/Modal/FullPageModal.d.ts +1 -1
  92. package/dist/components/Modal/FullPageModalHeader.d.ts +1 -1
  93. package/dist/components/Modal/Modal.d.ts +1 -1
  94. package/dist/components/Modal/ModalBase.d.ts +2 -2
  95. package/dist/components/Modal/ModalFooter.d.ts +2 -2
  96. package/dist/components/Modal/ModalHeader.d.ts +1 -1
  97. package/dist/components/MultiSelect/MultiSelect.d.ts +2 -1
  98. package/dist/components/NavMenu/NavMenu.d.ts +2 -1
  99. package/dist/components/NavMenu/NavMenuItem.d.ts +1 -0
  100. package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +1 -1
  101. package/dist/components/NotificationBanner/NotificationBanner.d.ts +2 -2
  102. package/dist/components/Page/CRUDPage.types.d.ts +5 -5
  103. package/dist/components/Page/Page.d.ts +8 -7
  104. package/dist/components/PaginationMenu/PaginationMenu.d.ts +1 -0
  105. package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +3 -3
  106. package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +1 -0
  107. package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +1 -0
  108. package/dist/components/Radio/Radio.d.ts +2 -2
  109. package/dist/components/RadioGroup/RadioGroup.d.ts +4 -3
  110. package/dist/components/Section/SectionItemWithContent.d.ts +1 -0
  111. package/dist/components/Select/SelectDropdownIndicator.d.ts +1 -0
  112. package/dist/components/Select/SelectLoadingIndicator.d.ts +1 -0
  113. package/dist/components/Spinner/Spinner.d.ts +1 -0
  114. package/dist/components/Steps/Step.d.ts +1 -0
  115. package/dist/components/Steps/Steps.d.ts +1 -0
  116. package/dist/components/Switcher/Switcher.d.ts +4 -3
  117. package/dist/components/Switcher/SwitcherItem.d.ts +4 -3
  118. package/dist/components/TabLinks/TabLinks.d.ts +1 -0
  119. package/dist/components/Tabbar/Tabbar.d.ts +1 -0
  120. package/dist/components/Tabbar/TabbarItem.d.ts +1 -0
  121. package/dist/components/Table/Table.types.d.ts +7 -6
  122. package/dist/components/Table/TableBody.d.ts +1 -0
  123. package/dist/components/Table/TableBodyRow.d.ts +1 -0
  124. package/dist/components/Table/TableBodyRowDataCell.d.ts +1 -0
  125. package/dist/components/Table/TableFooter.d.ts +1 -0
  126. package/dist/components/Table/TableHeader.d.ts +1 -0
  127. package/dist/components/Tag/Tag.d.ts +1 -0
  128. package/dist/components/Tag/TagGroup.d.ts +1 -0
  129. package/dist/components/Text/LegacyText.d.ts +2 -1
  130. package/dist/components/Text/Text.d.ts +4 -3
  131. package/dist/components/TextEditor/TextEditor.d.ts +2 -1
  132. package/dist/components/TextEditorV2/TextEditorV2.d.ts +2 -1
  133. package/dist/components/TextLink/TextLink.d.ts +1 -0
  134. package/dist/components/Textarea/Textarea.d.ts +1 -1
  135. package/dist/components/Timeline/Timeline.d.ts +1 -0
  136. package/dist/components/Timeline/TimelineHeader.d.ts +1 -1
  137. package/dist/components/Timeline/TimelineStep.d.ts +1 -1
  138. package/dist/components/Title/Title.d.ts +1 -1
  139. package/dist/components/Toaster/Toaster.d.ts +1 -1
  140. package/dist/components/Toaster/toast.d.ts +1 -1
  141. package/dist/components/ViewItem/ViewItem.d.ts +1 -0
  142. package/dist/types/general.types.d.ts +1 -1
  143. package/dist/web-ui.cjs.development.js +945 -1574
  144. package/dist/web-ui.cjs.development.js.map +1 -1
  145. package/dist/web-ui.cjs.production.min.js +1 -1
  146. package/dist/web-ui.cjs.production.min.js.map +1 -1
  147. package/dist/web-ui.esm.js +945 -1574
  148. package/dist/web-ui.esm.js.map +1 -1
  149. package/package.json +15 -12
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from "./types/IconProps.type";
2
3
  declare const _default: (props: IconProps) => JSX.Element;
3
4
  export default _default;
@@ -5,4 +5,4 @@ export interface IconProps {
5
5
  onClick?: (event: React.MouseEvent<SVGSVGElement> | undefined) => void;
6
6
  "data-test-id"?: string;
7
7
  }
8
- export declare type IconKey = keyof typeof Icons;
8
+ export type IconKey = keyof typeof Icons;
@@ -3,7 +3,7 @@ declare function InfoBlock({ message, className, containsDangerousHtml }: {
3
3
  message: any;
4
4
  className: any;
5
5
  containsDangerousHtml?: boolean | undefined;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
7
7
  declare namespace InfoBlock {
8
8
  namespace propTypes {
9
9
  const message: PropTypes.Validator<string>;
@@ -11,4 +11,5 @@ declare namespace InfoBlock {
11
11
  const className: PropTypes.Requireable<string>;
12
12
  }
13
13
  }
14
+ import React from "react";
14
15
  import PropTypes from "prop-types";
@@ -1,4 +1,5 @@
1
- declare type InfoFieldLinkType = "none" | "link" | "clipboard" | "tel";
1
+ /// <reference types="react" />
2
+ type InfoFieldLinkType = "none" | "link" | "clipboard" | "tel";
2
3
  interface InfoFieldProps {
3
4
  label: string;
4
5
  value: string;
@@ -8,10 +8,10 @@ export declare const INPUT_TYPES: Record<string, AllowedTextInputTypes>;
8
8
  * It's very complicated to tap into the onChange events of inputs,
9
9
  * so I omit the type it requires and add a easier one to deal with.
10
10
  */
11
- declare type CustomHTMLInputProps = Omit<React.HTMLProps<HTMLInputElement>, "onChange" | "ref"> & {
11
+ type CustomHTMLInputProps = Omit<React.HTMLProps<HTMLInputElement>, "onChange" | "ref"> & {
12
12
  isError?: boolean;
13
13
  };
14
- export declare type FakeEventTarget = {
14
+ export type FakeEventTarget = {
15
15
  target: {
16
16
  value: string;
17
17
  name: string;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { InputProps } from "./Input";
3
- export declare type SearchInputProps = Omit<InputProps, "icon" | "withSuffix" | "withPrefix" | "type" | "clearable">;
3
+ export type SearchInputProps = Omit<InputProps, "icon" | "withSuffix" | "withPrefix" | "type" | "clearable">;
4
4
  export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -3,7 +3,7 @@ declare function Line({ left, right, className }: {
3
3
  left: any;
4
4
  right: any;
5
5
  className: any;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
7
7
  declare namespace Line {
8
8
  namespace propTypes {
9
9
  const left: PropTypes.Requireable<any[]>;
@@ -11,4 +11,5 @@ declare namespace Line {
11
11
  const className: PropTypes.Requireable<string>;
12
12
  }
13
13
  }
14
+ import React from "react";
14
15
  import PropTypes from "prop-types";
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, SortableBaseListProps } from "../BaseList/BaseList.types";
3
- export declare type ListItemProps = Omit<BaseListItemProps, "onClick"> & {
3
+ export type ListItemProps = Omit<BaseListItemProps, "onClick"> & {
4
4
  handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
5
5
  };
6
- export declare type DefaultListProps = Omit<BaseListProps<ListItemProps>, "renderItem" | "itemComponent"> & {
6
+ export type DefaultListProps = Omit<BaseListProps<ListItemProps>, "renderItem" | "itemComponent"> & {
7
7
  onDragEnd?: (itemId: string | number, newIndex: number) => void;
8
8
  onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
9
9
  };
10
- export declare type DraggableListProps = DraggableBaseListProps;
11
- export declare type SortableListProps = SortableBaseListProps;
12
- export declare type SortableListItemProps = SortableListProps["items"][number];
13
- export declare type ListProps = ({
10
+ export type DraggableListProps = DraggableBaseListProps;
11
+ export type SortableListProps = SortableBaseListProps;
12
+ export type SortableListItemProps = SortableListProps["items"][number];
13
+ export type ListProps = ({
14
14
  draggableListType: "default";
15
15
  } & DefaultListProps) | ({
16
16
  draggableListType: "draggable";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RestPropped } from "../../types/general.types";
2
3
  import "./LoadingIndicator.scss";
3
4
  export interface LoadingIndicatorProps extends RestPropped {
@@ -1,7 +1,7 @@
1
1
  export default Menu;
2
2
  declare class Menu extends React.PureComponent<any, any, any> {
3
3
  static propTypes: {
4
- children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
4
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
5
5
  };
6
6
  constructor(props: any);
7
7
  state: {
@@ -13,7 +13,7 @@ declare class Menu extends React.PureComponent<any, any, any> {
13
13
  handleIconClick: (event: any) => void;
14
14
  openMenu: () => void;
15
15
  closeMenu: () => void;
16
- render(): JSX.Element;
16
+ render(): React.JSX.Element;
17
17
  rootRef: HTMLDivElement | null | undefined;
18
18
  }
19
19
  import React from "react";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
3
- export declare type FullPageModalProps = {
3
+ export type FullPageModalProps = {
4
4
  children: React.ReactNode;
5
5
  isOpen?: boolean;
6
6
  title: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
3
- export declare type FullPageModalHeaderProps = {
3
+ export type FullPageModalHeaderProps = {
4
4
  title: string;
5
5
  primaryButtonProps?: PrimaryButtonProps;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ModalBaseProps } from "./ModalBase";
3
- export declare type ModalProps = Omit<ModalBaseProps, "title" | "withExtraMarginTop"> & {
3
+ export type ModalProps = Omit<ModalBaseProps, "title" | "withExtraMarginTop"> & {
4
4
  title: string;
5
5
  };
6
6
  export declare const Modal: React.FC<ModalProps>;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { ModalHeaderProps } from "./ModalHeader";
3
3
  import { ModalFooterProps } from "./ModalFooter";
4
- export declare type ModalSize = "small" | "medium" | "wide";
5
- export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
4
+ export type ModalSize = "small" | "medium" | "wide";
5
+ export type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
6
6
  children: React.ReactNode;
7
7
  size?: ModalSize;
8
8
  withExtraMarginTop?: boolean;
@@ -4,8 +4,8 @@ export interface ModalFooterTrailingComponents {
4
4
  primaryButtonProps: PrimaryButtonProps;
5
5
  secondaryButtonProps?: NonPrimaryButtonProps;
6
6
  }
7
- export declare type ModalFooterLeadingComponent = string | ButtonWithPendingStateProps;
8
- export declare type ModalFooterProps = {
7
+ export type ModalFooterLeadingComponent = string | ButtonWithPendingStateProps;
8
+ export type ModalFooterProps = {
9
9
  footerLeadingComponent?: ModalFooterLeadingComponent;
10
10
  footerTrailingComponents: ModalFooterTrailingComponents;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type ModalHeaderProps = {
2
+ export type ModalHeaderProps = {
3
3
  title: string;
4
4
  onCloseClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
5
5
  };
@@ -6,7 +6,7 @@ export function MultiSelect({ checkboxList, radioLabel, onChange, validationErro
6
6
  name: any;
7
7
  implicitSelect: any;
8
8
  radioOnDemand: any;
9
- }): JSX.Element;
9
+ }): React.JSX.Element;
10
10
  export namespace MultiSelect {
11
11
  namespace propTypes {
12
12
  const name: PropTypes.Requireable<string>;
@@ -22,4 +22,5 @@ export namespace MultiSelect {
22
22
  const radioOnDemand: PropTypes.Requireable<boolean>;
23
23
  }
24
24
  }
25
+ import React from "react";
25
26
  import PropTypes from "prop-types";
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { NavMenuFooterProps } from "./types/NavMenuFooterProps.type";
2
3
  import { NavMenuItemProps } from "./types/NavMenuItemProps.type";
3
4
  import { NavMenuHeaderProps } from "./types/NavMenuHeaderProps.type";
4
- export declare type NavMenuProps = {
5
+ export type NavMenuProps = {
5
6
  roleItems: NavMenuItemProps[];
6
7
  publicItems: NavMenuItemProps[];
7
8
  authenticationItems: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { NavMenuItemProps } from "./types/NavMenuItemProps.type";
2
3
  export declare const NavMenuItem: (props: NavMenuItemProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare type NavMenuItemProps = {
1
+ export type NavMenuItemProps = {
2
2
  href?: string;
3
3
  linkTo?: string;
4
4
  title: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { IconProps } from "../Icons/types/IconProps.type";
3
3
  import "./NotificationBanner.css";
4
- export declare type NotificationBannerColor = "base" | "blue" | "red" | "green" | "amber";
4
+ export type NotificationBannerColor = "base" | "blue" | "red" | "green" | "amber";
5
5
  export interface NotificationBannerLinkProps {
6
6
  text: string;
7
7
  enabled: boolean;
@@ -17,7 +17,7 @@ interface NotificationBannerPropsWithChildren {
17
17
  text?: never;
18
18
  linkProps?: never;
19
19
  }
20
- export declare type NotificationBannerProps = (NotificationBannerPropsWithChildren | NotificationBannerPropsWithText) & {
20
+ export type NotificationBannerProps = (NotificationBannerPropsWithChildren | NotificationBannerPropsWithText) & {
21
21
  color?: NotificationBannerColor;
22
22
  /**
23
23
  * The icon can either be one of our icon components or an image url
@@ -2,13 +2,13 @@
2
2
  import type { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
3
3
  import type { PageHeaderProps } from "../PageHeader";
4
4
  import type { StepsProps } from "../Steps/Steps";
5
- declare type CRUDPageButtonProps = Pick<BaseButtonProps, "onClick" | "text">;
6
- declare type CRUDPageTitle = {
5
+ type CRUDPageButtonProps = Pick<BaseButtonProps, "onClick" | "text">;
6
+ type CRUDPageTitle = {
7
7
  text: string;
8
8
  icon?: string;
9
9
  };
10
- declare type CRUDPageHeader = Omit<PageHeaderProps, "navigation" | "isPolling" | "accessories">;
11
- declare type CRUDPagePropsWithoutHeaderOrTitle = {
10
+ type CRUDPageHeader = Omit<PageHeaderProps, "navigation" | "isPolling" | "accessories">;
11
+ type CRUDPagePropsWithoutHeaderOrTitle = {
12
12
  dataTestId?: string;
13
13
  submitButtonProps?: CRUDPageButtonProps;
14
14
  cancelButtonProps?: CRUDPageButtonProps;
@@ -22,7 +22,7 @@ declare type CRUDPagePropsWithoutHeaderOrTitle = {
22
22
  localization: StepsProps["localization"];
23
23
  };
24
24
  };
25
- export declare type CRUDPageProps = (CRUDPagePropsWithoutHeaderOrTitle & {
25
+ export type CRUDPageProps = (CRUDPagePropsWithoutHeaderOrTitle & {
26
26
  title: CRUDPageTitle;
27
27
  header?: never;
28
28
  }) | (CRUDPagePropsWithoutHeaderOrTitle & {
@@ -31,26 +31,27 @@ declare function Page({ dataTestId, title, accessories, accessoryPosition, class
31
31
  isPolling?: boolean | undefined;
32
32
  spinnerColor?: string | undefined;
33
33
  navLayoutProps?: {} | undefined;
34
- feedbackBlock?: JSX.Element | undefined;
34
+ feedbackBlock?: React.JSX.Element | undefined;
35
35
  navMenu: any;
36
36
  id: any;
37
- }): JSX.Element;
37
+ }): React.JSX.Element;
38
38
  declare namespace Page {
39
39
  namespace propTypes {
40
- const breadcrumbs: PropTypes.Requireable<((...args: any[]) => any) | (PropTypes.InferProps<{
40
+ const breadcrumbs: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | (PropTypes.InferProps<{
41
41
  name: PropTypes.Requireable<string>;
42
42
  icon: PropTypes.Requireable<string>;
43
43
  link: PropTypes.Requireable<string>;
44
- }> | null | undefined)[]>;
44
+ }> | null | undefined)[] | null | undefined>>;
45
45
  const isLoading: PropTypes.Requireable<boolean>;
46
46
  const isFetching: PropTypes.Requireable<boolean>;
47
47
  const spinnerColor: PropTypes.Requireable<string>;
48
- const title: PropTypes.Requireable<string | ((...args: any[]) => any)>;
49
- const accessories: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike>;
48
+ const title: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
49
+ const accessories: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactElementLike | null | undefined>>;
50
50
  const accessoryPosition: PropTypes.Requireable<string>;
51
- const content: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
51
+ const content: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[] | null | undefined>>;
52
52
  const id: PropTypes.Requireable<string>;
53
53
  const navLayoutProps: PropTypes.Requireable<object>;
54
54
  }
55
55
  }
56
+ import React from "react";
56
57
  import PropTypes from "prop-types";
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PaginationMenuProps } from "./PaginationMenu.types";
2
3
  export declare const PaginationMenu: (props: PaginationMenuProps) => JSX.Element;
@@ -22,8 +22,8 @@ export interface PaginationMenuLargeProps {
22
22
  localization: Localization;
23
23
  resultCount?: number;
24
24
  }
25
- export declare type OnPaginationChange = (pageNumber: number, pageSize?: PageSize) => void;
26
- export declare type PageSize = 25 | 50 | 75 | 100;
25
+ export type OnPaginationChange = (pageNumber: number, pageSize?: PageSize) => void;
26
+ export type PageSize = 25 | 50 | 75 | 100;
27
27
  export interface Localization {
28
28
  display: string;
29
29
  page: string;
@@ -31,7 +31,7 @@ export interface Localization {
31
31
  next: string;
32
32
  of: string;
33
33
  }
34
- export declare type Option = {
34
+ export type Option = {
35
35
  value: number;
36
36
  label: string;
37
37
  };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PaginationMenuLargeProps } from "./PaginationMenu.types";
2
3
  export declare const PaginationMenuLarge: (props: PaginationMenuLargeProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PaginationMenuSmallProps } from "./PaginationMenu.types";
2
3
  export declare const PaginationMenuSmall: (props: PaginationMenuSmallProps) => JSX.Element;
@@ -9,7 +9,7 @@ declare class Radio extends React.PureComponent<any, any, any> {
9
9
  isChecked: PropTypes.Validator<boolean>;
10
10
  isDisabled: PropTypes.Requireable<boolean>;
11
11
  name: PropTypes.Validator<string>;
12
- value: PropTypes.Requireable<string | number>;
12
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
13
13
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
14
14
  };
15
15
  constructor(props: any);
@@ -19,7 +19,7 @@ declare class Radio extends React.PureComponent<any, any, any> {
19
19
  handleChange: (event: any) => void;
20
20
  handleFocus: () => void;
21
21
  handleBlur: () => void;
22
- render(): JSX.Element;
22
+ render(): React.JSX.Element;
23
23
  }
24
24
  import React from "react";
25
25
  import PropTypes from "prop-types";
@@ -13,21 +13,22 @@ declare function RadioGroup({ className, radioClassName, name, selectedOption, i
13
13
  onChange: any;
14
14
  error: any;
15
15
  isDisabled: any;
16
- }): JSX.Element;
16
+ }): React.JSX.Element;
17
17
  declare namespace RadioGroup {
18
18
  namespace propTypes {
19
19
  const className: PropTypes.Requireable<string>;
20
20
  const radioClassName: PropTypes.Requireable<string>;
21
21
  const name: PropTypes.Requireable<string>;
22
- const selectedOption: PropTypes.Requireable<string | number>;
22
+ const selectedOption: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
23
23
  const isVertical: PropTypes.Requireable<boolean>;
24
24
  const radioOptions: PropTypes.Validator<(PropTypes.InferProps<{
25
25
  text: PropTypes.Requireable<string>;
26
26
  info: PropTypes.Requireable<string>;
27
27
  isDisabled: PropTypes.Requireable<boolean>;
28
- value: PropTypes.Requireable<string | number>;
28
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
29
29
  }> | null | undefined)[]>;
30
30
  const onChange: PropTypes.Requireable<(...args: any[]) => any>;
31
31
  }
32
32
  }
33
+ import React from "react";
33
34
  import PropTypes from "prop-types";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SectionItemProps } from "./SectionItem";
2
3
  interface SectionItemWithContentProps extends Omit<SectionItemProps, "children"> {
3
4
  text: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownIndicatorProps } from "react-select";
2
3
  export declare const SelectDropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { LoadingIndicatorProps } from "react-select";
2
3
  export declare const SelectLoadingIndicator: (props: LoadingIndicatorProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface SpinnerProps {
2
3
  className?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface StepProps {
2
3
  title: string;
3
4
  stepNumber: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface StepsProps {
2
3
  orderedStepTitles: Array<string>;
3
4
  currentStep: number;
@@ -5,14 +5,14 @@ declare function Switcher({ selectedIndex, onChange, className, itemClassName, i
5
5
  className: any;
6
6
  itemClassName: any;
7
7
  items: any;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
9
  declare namespace Switcher {
10
10
  namespace propTypes {
11
11
  const items: PropTypes.Validator<(PropTypes.InferProps<{
12
12
  name: PropTypes.Requireable<string>;
13
13
  icon: PropTypes.Requireable<PropTypes.InferProps<{
14
- default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
15
- active: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
14
+ default: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
15
+ active: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
16
16
  showBadge: PropTypes.Requireable<boolean>;
17
17
  }>>;
18
18
  key: PropTypes.Requireable<string>;
@@ -23,4 +23,5 @@ declare namespace Switcher {
23
23
  const itemClassName: PropTypes.Requireable<string>;
24
24
  }
25
25
  }
26
+ import React from "react";
26
27
  import PropTypes from "prop-types";
@@ -6,13 +6,13 @@ declare function SwitcherItem({ className, icon, index, isSelected, name, onSele
6
6
  isSelected?: boolean | undefined;
7
7
  name: any;
8
8
  onSelect: any;
9
- }): JSX.Element;
9
+ }): React.JSX.Element;
10
10
  declare namespace SwitcherItem {
11
11
  namespace propTypes {
12
12
  const name: PropTypes.Requireable<string>;
13
13
  const icon: PropTypes.Requireable<PropTypes.InferProps<{
14
- default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
15
- active: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
14
+ default: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
15
+ active: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
16
16
  showBadge: PropTypes.Requireable<boolean>;
17
17
  }>>;
18
18
  const index: PropTypes.Validator<number>;
@@ -21,4 +21,5 @@ declare namespace SwitcherItem {
21
21
  const className: PropTypes.Requireable<string>;
22
22
  }
23
23
  }
24
+ import React from "react";
24
25
  import PropTypes from "prop-types";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NavigateFn, WindowLocation } from "@reach/router";
2
3
  interface TabLinkItem {
3
4
  url: URL;