@luscii-healthtech/web-ui 2.71.6 → 2.71.8

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 +27 -12
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabItemDetails } from "./TabbarItem";
2
3
  export interface TabbarProps<T extends object = Record<string, unknown>> {
3
4
  tabs?: TabItemDetails<T>[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface TabItemDetails<T extends object = Record<string, unknown>> {
2
3
  title: string | JSX.Element;
3
4
  badgeCount?: number;
@@ -1,15 +1,16 @@
1
+ /// <reference types="react" />
1
2
  import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
2
3
  import { TagColorTheme } from "../Tag/Tag";
3
- declare type TableFieldConfigBase = {
4
+ type TableFieldConfigBase = {
4
5
  key: string;
5
6
  headerText?: string;
6
7
  onlyShowContentOnHovering?: boolean;
7
8
  };
8
- declare type TableFieldConfigWithContent<Item> = TableFieldConfigBase & {
9
+ type TableFieldConfigWithContent<Item> = TableFieldConfigBase & {
9
10
  content: (item: Item) => TableFieldContent<Item>;
10
11
  render?: never;
11
12
  };
12
- declare type TableFieldConfigWithComponent<Item> = TableFieldConfigBase & {
13
+ type TableFieldConfigWithComponent<Item> = TableFieldConfigBase & {
13
14
  render: (item: Item) => JSX.Element;
14
15
  content?: never;
15
16
  };
@@ -17,8 +18,8 @@ declare type TableFieldConfigWithComponent<Item> = TableFieldConfigBase & {
17
18
  * By adding the `content` property, it will use an opinionated layout with the <Text /> and optionally the <Tag /> component.
18
19
  * By adding the `render` property, it will render any component returned in the function, based on the item (with type) passed.
19
20
  */
20
- export declare type TableFieldConfig<Item> = TableFieldConfigWithComponent<Item> | TableFieldConfigWithContent<Item>;
21
- export declare type TableFieldContent<Item> = TableFieldText | [TableFieldAction<Item>?, TableFieldAction<Item>?];
21
+ export type TableFieldConfig<Item> = TableFieldConfigWithComponent<Item> | TableFieldConfigWithContent<Item>;
22
+ export type TableFieldContent<Item> = TableFieldText | [TableFieldAction<Item>?, TableFieldAction<Item>?];
22
23
  export interface TableFieldText {
23
24
  text: string;
24
25
  description?: {
@@ -31,7 +32,7 @@ export interface TableFieldText {
31
32
  color: TagColorTheme;
32
33
  };
33
34
  }
34
- export declare type TableFieldAction<Item> = Pick<BaseButtonProps, "isDisabled" | "title" | "icon"> & {
35
+ export type TableFieldAction<Item> = Pick<BaseButtonProps, "isDisabled" | "title" | "icon"> & {
35
36
  key: string;
36
37
  /**
37
38
  * @param item - the data in the row when this clicked
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableFieldConfig } from "./Table.types";
2
3
  export interface TableBody<Item> {
3
4
  items?: Item[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableFieldConfig } from "./Table.types";
2
3
  export interface TableBodyRowProps<Item> {
3
4
  item: Item;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableFieldConfig } from "./Table.types";
2
3
  export interface TableBodyRowDataCellProps<Item> {
3
4
  item: Item;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PaginationMenuProps } from "../PaginationMenu/PaginationMenu.types";
2
3
  interface TableFooterProps {
3
4
  colSpan: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableFieldConfig } from "./Table.types";
2
3
  export interface TableHeaderProps<Item> {
3
4
  fieldConfigurations: TableFieldConfig<Item>[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TagSize } from "./Tag.utils";
2
3
  export declare enum TagColorTheme {
3
4
  Red = "red",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TagProps } from "./Tag";
2
3
  import { TagSize } from "./Tag.utils";
3
4
  interface TagGroupProps {
@@ -9,7 +9,7 @@ declare function LegacyText({ text, type, level, className, containsDangerousHtm
9
9
  level?: string | undefined;
10
10
  className?: string | undefined;
11
11
  containsDangerousHtml?: boolean | undefined;
12
- }): JSX.Element;
12
+ }): React.JSX.Element;
13
13
  declare namespace LegacyText {
14
14
  namespace propTypes {
15
15
  const text: PropTypes.Validator<string>;
@@ -34,4 +34,5 @@ export namespace TEXT_LEVEL_OPTIONS {
34
34
  const INLINE: string;
35
35
  const BLOCK: string;
36
36
  }
37
+ import React from "react";
37
38
  import PropTypes from "prop-types";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RestPropped } from "../../types/general.types";
2
3
  import "./Text.css";
3
4
  /**
@@ -31,9 +32,9 @@ declare const allowedHoverColors: {
31
32
  readonly "blue-900": "hover:text-blue-900";
32
33
  readonly white: "hover:text-white";
33
34
  };
34
- export declare type TextColor = keyof typeof allowedColors;
35
- export declare type TextHoverColor = keyof typeof allowedHoverColors;
36
- export declare type TextStyle = keyof typeof allowedTextStyles;
35
+ export type TextColor = keyof typeof allowedColors;
36
+ export type TextHoverColor = keyof typeof allowedHoverColors;
37
+ export type TextStyle = keyof typeof allowedTextStyles;
37
38
  export interface TextProps extends RestPropped {
38
39
  text: string;
39
40
  type?: TextStyle;
@@ -2,7 +2,7 @@ declare function TextEditor({ defaultValue, onValueChange, placeholder }: {
2
2
  defaultValue: any;
3
3
  onValueChange: any;
4
4
  placeholder: any;
5
- }): JSX.Element;
5
+ }): React.JSX.Element;
6
6
  declare namespace TextEditor {
7
7
  namespace propTypes {
8
8
  const defaultValue: PropTypes.Requireable<string>;
@@ -11,4 +11,5 @@ declare namespace TextEditor {
11
11
  }
12
12
  }
13
13
  export default TextEditor;
14
+ import React from "react";
14
15
  import PropTypes from "prop-types";
@@ -2,5 +2,6 @@ export function TextEditorV2({ defaultValue, onValueChange, locale }: {
2
2
  defaultValue: any;
3
3
  onValueChange: any;
4
4
  locale: any;
5
- }): JSX.Element;
5
+ }): React.JSX.Element;
6
6
  export default TextEditorV2;
7
+ import React from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface TextLinkProps {
2
3
  text: string;
3
4
  enabled?: boolean;
@@ -6,7 +6,7 @@ declare const resizeTypes: {
6
6
  readonly HORIZONTAL: "horizontal";
7
7
  readonly VERTICAL: "vertical";
8
8
  };
9
- export declare type ResizeTypes = (typeof resizeTypes)[keyof typeof resizeTypes];
9
+ export type ResizeTypes = (typeof resizeTypes)[keyof typeof resizeTypes];
10
10
  export interface TextareaProps {
11
11
  className?: string;
12
12
  value?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
2
3
  import { CenteredHeroProps } from "../CenteredHero/CenteredHero";
3
4
  import { TimelineStepProps } from "./TimelineStep";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { ButtonDefinitionWithKey, ButtonProps } from "../ButtonV2/ButtonProps.type";
3
3
  import { TitleProps } from "../Title/Title";
4
- export declare type TimelineHeaderProps = {
4
+ export type TimelineHeaderProps = {
5
5
  title?: string | TitleProps;
6
6
  buttons?: ButtonDefinitionWithKey<ButtonProps>[];
7
7
  withBorder?: boolean;
@@ -7,4 +7,4 @@ export interface TimelineStepProps extends RefAttributes<HTMLDivElement> {
7
7
  content: React.ReactNode;
8
8
  dataTestId?: string | number;
9
9
  }
10
- export declare const TimelineStep: React.ForwardRefExoticComponent<Pick<TimelineStepProps, "content" | "type" | "dataTestId" | "title" | "key"> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const TimelineStep: React.ForwardRefExoticComponent<Omit<TimelineStepProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import "./Title.scss";
3
3
  import { TextColor } from "../Text/Text";
4
- export declare type TitleStyle = "xs" | "sm" | "base" | "lg" | "xl" | "2xl";
4
+ export type TitleStyle = "xs" | "sm" | "base" | "lg" | "xl" | "2xl";
5
5
  export interface TitleProps {
6
6
  text: string;
7
7
  type?: TitleStyle;
@@ -12,6 +12,6 @@ export declare const TOASTER_TYPE_OPTIONS: {
12
12
  readonly SUCCESS: "success";
13
13
  readonly FAILURE: "failure";
14
14
  };
15
- export declare type ToasterType = (typeof TOASTER_TYPE_OPTIONS)[keyof typeof TOASTER_TYPE_OPTIONS];
15
+ export type ToasterType = (typeof TOASTER_TYPE_OPTIONS)[keyof typeof TOASTER_TYPE_OPTIONS];
16
16
  declare const Toaster: React.VoidFunctionComponent<ToasterProps>;
17
17
  export default Toaster;
@@ -1,4 +1,4 @@
1
- declare type ToastParams = {
1
+ type ToastParams = {
2
2
  message: string;
3
3
  title?: string;
4
4
  showIcon?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TextProps } from "../Text/Text";
2
3
  import { RestPropped } from "../../types/general.types";
3
4
  import { ButtonProps } from "../Button/Button.types";
@@ -5,4 +5,4 @@ export interface HookReturn<T> extends RestPropped {
5
5
  data: T | undefined;
6
6
  isLoading: boolean;
7
7
  }
8
- export declare type PartialProperties<T, P extends keyof T> = Omit<T, P> & Partial<Pick<T, P>>;
8
+ export type PartialProperties<T, P extends keyof T> = Omit<T, P> & Partial<Pick<T, P>>;