@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.
- package/dist/components/AccordionList/AccordionList.d.ts +4 -4
- package/dist/components/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Badge/Badge.d.ts +1 -0
- package/dist/components/BaseList/BaseList.types.d.ts +7 -7
- package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
- package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +2 -1
- package/dist/components/BaseList/utils.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.types.d.ts +3 -3
- package/dist/components/Button/ButtonIcon.d.ts +1 -0
- package/dist/components/ButtonV2/ButtonProps.type.d.ts +2 -2
- package/dist/components/ButtonV2/ButtonV2.d.ts +1 -1
- package/dist/components/ButtonV2/PrimaryButton.d.ts +1 -0
- package/dist/components/ButtonV2/SecondaryButton.d.ts +1 -1
- package/dist/components/ButtonV2/TertiaryButton.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/CenteredHero/CenteredHero.d.ts +3 -2
- package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +2 -1
- package/dist/components/CheckboxList/CheckboxGroup.d.ts +1 -0
- package/dist/components/CheckboxList/CheckboxList.d.ts +1 -0
- package/dist/components/CheckboxList/CheckboxList.types.d.ts +3 -3
- package/dist/components/CheckboxList/CheckboxListItem.d.ts +1 -0
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +4 -4
- package/dist/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/DragHandle/DragHandle.types.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +7 -7
- package/dist/components/Dropzone/Dropzone.types.d.ts +2 -2
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +1 -0
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +2 -1
- package/dist/components/Form/Form.d.ts +1 -0
- package/dist/components/Form/FormFieldLabeler.d.ts +1 -0
- package/dist/components/Form/form.types.d.ts +5 -5
- package/dist/components/Icons/AddIcon.d.ts +1 -0
- package/dist/components/Icons/AlertsIcon.d.ts +1 -0
- package/dist/components/Icons/BellIcon.d.ts +1 -0
- package/dist/components/Icons/BluetoothIcon.d.ts +1 -0
- package/dist/components/Icons/ChartIcon.d.ts +1 -0
- package/dist/components/Icons/ChartLineColoredIcon.d.ts +1 -0
- package/dist/components/Icons/ChatBoxIcon.d.ts +1 -0
- package/dist/components/Icons/CheckIcon.d.ts +1 -0
- package/dist/components/Icons/ChevronDoubleIcon.d.ts +1 -0
- package/dist/components/Icons/ChevronDownIcon.d.ts +1 -0
- package/dist/components/Icons/ChevronRightIcon.d.ts +1 -0
- package/dist/components/Icons/CrossIcon.d.ts +1 -0
- package/dist/components/Icons/DeleteIcon.d.ts +1 -0
- package/dist/components/Icons/DownArrowIcon.d.ts +1 -0
- package/dist/components/Icons/DragIcon.d.ts +1 -0
- package/dist/components/Icons/EditIcon.d.ts +1 -0
- package/dist/components/Icons/EmptyIcon.d.ts +1 -0
- package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +1 -0
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +1 -0
- package/dist/components/Icons/EyeIcon.d.ts +1 -0
- package/dist/components/Icons/GearColoredIcon.d.ts +1 -0
- package/dist/components/Icons/GearIcon.d.ts +1 -0
- package/dist/components/Icons/GroupColoredIcon.d.ts +1 -0
- package/dist/components/Icons/GroupIcon.d.ts +1 -0
- package/dist/components/Icons/HamburgerIcon.d.ts +1 -0
- package/dist/components/Icons/HeartIcon.d.ts +1 -0
- package/dist/components/Icons/ImageIcon.d.ts +1 -0
- package/dist/components/Icons/InfoIcon.d.ts +1 -0
- package/dist/components/Icons/LeftArrowIcon.d.ts +1 -0
- package/dist/components/Icons/LightBulbIcon.d.ts +1 -0
- package/dist/components/Icons/LinkIcon.d.ts +1 -0
- package/dist/components/Icons/LockIcon.d.ts +1 -0
- package/dist/components/Icons/MessagesIcon.d.ts +1 -0
- package/dist/components/Icons/MouseIcon.d.ts +1 -0
- package/dist/components/Icons/NotesIcon.d.ts +1 -0
- package/dist/components/Icons/PinIcon.d.ts +1 -0
- package/dist/components/Icons/PrintIcon.d.ts +1 -0
- package/dist/components/Icons/RightArrowIcon.d.ts +1 -0
- package/dist/components/Icons/SearchCancelIcon.d.ts +1 -0
- package/dist/components/Icons/SearchIcon.d.ts +1 -0
- package/dist/components/Icons/SmallCircleIcon.d.ts +1 -0
- package/dist/components/Icons/SmallDiamondIcon.d.ts +1 -0
- package/dist/components/Icons/SmallSquareIcon.d.ts +1 -0
- package/dist/components/Icons/SpaceRocketIcon.d.ts +1 -0
- package/dist/components/Icons/StarIcon.d.ts +1 -0
- package/dist/components/Icons/StatusColoredIcon.d.ts +1 -0
- package/dist/components/Icons/WarningIcon.d.ts +1 -0
- package/dist/components/Icons/types/IconProps.type.d.ts +1 -1
- package/dist/components/InfoBlock/InfoBlock.d.ts +2 -1
- package/dist/components/InfoField/InfoField.d.ts +2 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/SearchInput.d.ts +1 -1
- package/dist/components/Line/Line.d.ts +2 -1
- package/dist/components/List/List.types.d.ts +6 -6
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Modal/FullPageModal.d.ts +1 -1
- package/dist/components/Modal/FullPageModalHeader.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/ModalBase.d.ts +2 -2
- package/dist/components/Modal/ModalFooter.d.ts +2 -2
- package/dist/components/Modal/ModalHeader.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +2 -1
- package/dist/components/NavMenu/NavMenu.d.ts +2 -1
- package/dist/components/NavMenu/NavMenuItem.d.ts +1 -0
- package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +1 -1
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +2 -2
- package/dist/components/Page/CRUDPage.types.d.ts +5 -5
- package/dist/components/Page/Page.d.ts +8 -7
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +1 -0
- package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +3 -3
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +1 -0
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +4 -3
- package/dist/components/Section/SectionItemWithContent.d.ts +1 -0
- package/dist/components/Select/SelectDropdownIndicator.d.ts +1 -0
- package/dist/components/Select/SelectLoadingIndicator.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +1 -0
- package/dist/components/Steps/Step.d.ts +1 -0
- package/dist/components/Steps/Steps.d.ts +1 -0
- package/dist/components/Switcher/Switcher.d.ts +4 -3
- package/dist/components/Switcher/SwitcherItem.d.ts +4 -3
- package/dist/components/TabLinks/TabLinks.d.ts +1 -0
- package/dist/components/Tabbar/Tabbar.d.ts +1 -0
- package/dist/components/Tabbar/TabbarItem.d.ts +1 -0
- package/dist/components/Table/Table.types.d.ts +7 -6
- package/dist/components/Table/TableBody.d.ts +1 -0
- package/dist/components/Table/TableBodyRow.d.ts +1 -0
- package/dist/components/Table/TableBodyRowDataCell.d.ts +1 -0
- package/dist/components/Table/TableFooter.d.ts +1 -0
- package/dist/components/Table/TableHeader.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +1 -0
- package/dist/components/Tag/TagGroup.d.ts +1 -0
- package/dist/components/Text/LegacyText.d.ts +2 -1
- package/dist/components/Text/Text.d.ts +4 -3
- package/dist/components/TextEditor/TextEditor.d.ts +2 -1
- package/dist/components/TextEditorV2/TextEditorV2.d.ts +2 -1
- package/dist/components/TextLink/TextLink.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts +1 -0
- package/dist/components/Timeline/TimelineHeader.d.ts +1 -1
- package/dist/components/Timeline/TimelineStep.d.ts +1 -1
- package/dist/components/Title/Title.d.ts +1 -1
- package/dist/components/Toaster/Toaster.d.ts +1 -1
- package/dist/components/Toaster/toast.d.ts +1 -1
- package/dist/components/ViewItem/ViewItem.d.ts +1 -0
- package/dist/types/general.types.d.ts +1 -1
- package/dist/web-ui.cjs.development.js +945 -1574
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +945 -1574
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +27 -12
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
2
3
|
import { TagColorTheme } from "../Tag/Tag";
|
|
3
|
-
|
|
4
|
+
type TableFieldConfigBase = {
|
|
4
5
|
key: string;
|
|
5
6
|
headerText?: string;
|
|
6
7
|
onlyShowContentOnHovering?: boolean;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type TableFieldConfigWithContent<Item> = TableFieldConfigBase & {
|
|
9
10
|
content: (item: Item) => TableFieldContent<Item>;
|
|
10
11
|
render?: never;
|
|
11
12
|
};
|
|
12
|
-
|
|
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
|
|
21
|
-
export
|
|
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
|
|
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
|
|
@@ -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
|
|
35
|
-
export
|
|
36
|
-
export
|
|
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";
|
|
@@ -6,7 +6,7 @@ declare const resizeTypes: {
|
|
|
6
6
|
readonly HORIZONTAL: "horizontal";
|
|
7
7
|
readonly VERTICAL: "vertical";
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ResizeTypes = (typeof resizeTypes)[keyof typeof resizeTypes];
|
|
10
10
|
export interface TextareaProps {
|
|
11
11
|
className?: string;
|
|
12
12
|
value?: string;
|
|
@@ -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
|
|
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<
|
|
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
|
|
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
|
|
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;
|
|
@@ -5,4 +5,4 @@ export interface HookReturn<T> extends RestPropped {
|
|
|
5
5
|
data: T | undefined;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type PartialProperties<T, P extends keyof T> = Omit<T, P> & Partial<Pick<T, P>>;
|