@luscii-healthtech/web-ui 37.1.2 → 37.1.3
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/Avatar/AvatarGroup.d.ts +1 -1
- package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +0 -1
- package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +0 -1
- package/dist/components/Box/Box.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -1
- package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +0 -1
- package/dist/components/DragHandle/DragHandle.d.ts +2 -2
- package/dist/components/DragHandle/DragHandle.types.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +61 -0
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +0 -1
- package/dist/components/Icons/AbsentIcon.d.ts +0 -1
- package/dist/components/Icons/AlarmClockIcon.d.ts +0 -1
- package/dist/components/Icons/AmberAlertIcon.d.ts +0 -1
- package/dist/components/Icons/ArrowForward.d.ts +0 -1
- package/dist/components/Icons/AssignedIcon.d.ts +0 -1
- package/dist/components/Icons/BellIcon.d.ts +0 -1
- package/dist/components/Icons/BellIconSlashed.d.ts +0 -1
- package/dist/components/Icons/BluetoothIcon.d.ts +0 -1
- package/dist/components/Icons/BrushIcon.d.ts +0 -1
- package/dist/components/Icons/CakeIcon.d.ts +0 -1
- package/dist/components/Icons/CalendarDayIcon.d.ts +0 -1
- package/dist/components/Icons/CalendarMonthIcon.d.ts +0 -1
- package/dist/components/Icons/CalendarRepeatIcon.d.ts +0 -1
- package/dist/components/Icons/ChartBarsIcon.d.ts +0 -1
- package/dist/components/Icons/ChartLineAndBarsIcon.d.ts +0 -1
- package/dist/components/Icons/ChatBubbleIcon.d.ts +0 -1
- package/dist/components/Icons/ChatBubbleWithTextIcon.d.ts +0 -1
- package/dist/components/Icons/CheckIcon.d.ts +0 -1
- package/dist/components/Icons/ChevronDoubleIcon.d.ts +0 -1
- package/dist/components/Icons/ChevronDownIcon.d.ts +0 -1
- package/dist/components/Icons/ChevronLeftIcon.d.ts +0 -1
- package/dist/components/Icons/ChevronRightIcon.d.ts +0 -1
- package/dist/components/Icons/ClockIcon.d.ts +0 -1
- package/dist/components/Icons/CogwheelIcon.d.ts +0 -1
- package/dist/components/Icons/CopyToClipboardIcon.d.ts +0 -1
- package/dist/components/Icons/CrossIcon.d.ts +0 -1
- package/dist/components/Icons/CrossInCircleIcon.d.ts +0 -1
- package/dist/components/Icons/CrossInFilledCircleIcon.d.ts +0 -1
- package/dist/components/Icons/DatabaseIcon.d.ts +0 -1
- package/dist/components/Icons/DownloadIcon.d.ts +0 -1
- package/dist/components/Icons/DragIndicatorIcon.d.ts +0 -1
- package/dist/components/Icons/EarthIcon.d.ts +0 -1
- package/dist/components/Icons/EmailIcon.d.ts +0 -1
- package/dist/components/Icons/EmptyIcon.d.ts +0 -1
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +0 -1
- package/dist/components/Icons/ExportIcon.d.ts +0 -1
- package/dist/components/Icons/ExternalLinkIcon.d.ts +0 -1
- package/dist/components/Icons/EyeClosedIcon.d.ts +0 -1
- package/dist/components/Icons/EyeIconSlashed.d.ts +0 -1
- package/dist/components/Icons/EyeOpenIcon.d.ts +0 -1
- package/dist/components/Icons/FilterIcon.d.ts +0 -1
- package/dist/components/Icons/FireIcon.d.ts +0 -1
- package/dist/components/Icons/FirstAidKitIcon.d.ts +0 -1
- package/dist/components/Icons/FlagIcon.d.ts +0 -1
- package/dist/components/Icons/FolderIcon.d.ts +0 -1
- package/dist/components/Icons/ForwardIcon.d.ts +0 -1
- package/dist/components/Icons/GrayAlertIcon.d.ts +0 -1
- package/dist/components/Icons/GroupIcon.d.ts +0 -1
- package/dist/components/Icons/GroupOfThreeIcon.d.ts +0 -1
- package/dist/components/Icons/HamburgerIcon.d.ts +0 -1
- package/dist/components/Icons/HandshakeIcon.d.ts +0 -1
- package/dist/components/Icons/HeartIcon.d.ts +0 -1
- package/dist/components/Icons/HeartMinusIcon.d.ts +0 -1
- package/dist/components/Icons/HomeIcon.d.ts +0 -1
- package/dist/components/Icons/IdBadgeIcon.d.ts +0 -1
- package/dist/components/Icons/ImageIcon.d.ts +0 -1
- package/dist/components/Icons/ImageLibraryIcon.d.ts +0 -1
- package/dist/components/Icons/InfoIcon.d.ts +0 -1
- package/dist/components/Icons/LifebuoyIcon.d.ts +0 -1
- package/dist/components/Icons/LightBulbIcon.d.ts +0 -1
- package/dist/components/Icons/LinkIcon.d.ts +0 -1
- package/dist/components/Icons/ListIcon.d.ts +0 -1
- package/dist/components/Icons/LockIcon.d.ts +0 -1
- package/dist/components/Icons/LogInIcon.d.ts +0 -1
- package/dist/components/Icons/LogOutIcon.d.ts +0 -1
- package/dist/components/Icons/MessageWithArrowIcon.d.ts +0 -1
- package/dist/components/Icons/MoreIcon.d.ts +0 -1
- package/dist/components/Icons/MouseIcon.d.ts +0 -1
- package/dist/components/Icons/NoteIcon.d.ts +0 -1
- package/dist/components/Icons/PageIcon.d.ts +0 -1
- package/dist/components/Icons/PageViewIcon.d.ts +0 -1
- package/dist/components/Icons/PaperclipIcon.d.ts +0 -1
- package/dist/components/Icons/PatientIcon.d.ts +0 -1
- package/dist/components/Icons/PencilIcon.d.ts +0 -1
- package/dist/components/Icons/PersonIcon.d.ts +0 -1
- package/dist/components/Icons/PhoneIcon.d.ts +0 -1
- package/dist/components/Icons/PieChartIcon.d.ts +0 -1
- package/dist/components/Icons/PinIcon.d.ts +0 -1
- package/dist/components/Icons/PlusIcon.d.ts +0 -1
- package/dist/components/Icons/PrinterIcon.d.ts +0 -1
- package/dist/components/Icons/RedAlertIcon.d.ts +0 -1
- package/dist/components/Icons/RobotIcon.d.ts +0 -1
- package/dist/components/Icons/RocketIcon.d.ts +0 -1
- package/dist/components/Icons/SearchIcon.d.ts +0 -1
- package/dist/components/Icons/ShareIcon.d.ts +0 -1
- package/dist/components/Icons/SmallArrowDownIcon.d.ts +0 -1
- package/dist/components/Icons/SmallArrowUpIcon.d.ts +0 -1
- package/dist/components/Icons/SmallCircleIcon.d.ts +0 -1
- package/dist/components/Icons/SmallDiamondIcon.d.ts +0 -1
- package/dist/components/Icons/SmallSquareIcon.d.ts +0 -1
- package/dist/components/Icons/SmallUpsideDownTriangleIcon.d.ts +0 -1
- package/dist/components/Icons/StarIcon.d.ts +0 -1
- package/dist/components/Icons/StopwatchIcon.d.ts +0 -1
- package/dist/components/Icons/TadaIcon.d.ts +0 -1
- package/dist/components/Icons/TrashBinIcon.d.ts +0 -1
- package/dist/components/Icons/TreeIcon.d.ts +0 -1
- package/dist/components/Icons/UnassignedIcon.d.ts +0 -1
- package/dist/components/Icons/UploadIcon.d.ts +0 -1
- package/dist/components/Icons/VideoIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/ChartLineColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/FlagDeColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/FlagFrColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/FlagNlColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/FlagPtColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/FlagUkColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/GearColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/GroupColoredIcon.d.ts +0 -1
- package/dist/components/Icons/special-icons/StatusColoredIcon.d.ts +0 -1
- package/dist/components/Icons/types/IconProps.type.d.ts +0 -1
- package/dist/components/InfoField/InfoField.d.ts +0 -1
- package/dist/components/Input/LabeledInput.d.ts +9 -11
- package/dist/components/Input/StyledInput.d.ts +8 -8
- package/dist/components/Line/Line.d.ts +15 -0
- package/dist/components/List/List.types.d.ts +0 -1
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +0 -1
- package/dist/components/Page/CRUDPage.types.d.ts +0 -1
- package/dist/components/Page/Page.d.ts +57 -0
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +0 -1
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +0 -1
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +0 -1
- package/dist/components/PreviewPhone/useWindowDimensions.d.ts +4 -0
- package/dist/components/Radio/Radio.d.ts +25 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +34 -0
- package/dist/components/Section/SectionItemWithContent.d.ts +0 -1
- package/dist/components/Select/SelectDropdownIndicator.d.ts +0 -1
- package/dist/components/Select/SelectLoadingIndicator.d.ts +0 -1
- package/dist/components/Stack/Stack.d.ts +2 -2
- package/dist/components/Steps/Step.d.ts +0 -1
- package/dist/components/Steps/Steps.d.ts +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -1
- package/dist/components/Switcher/Switcher.d.ts +27 -0
- package/dist/components/Switcher/SwitcherItem.d.ts +25 -0
- package/dist/components/Tabbar/Tabbar.d.ts +0 -1
- package/dist/components/Tabbar/TabbarItem.d.ts +0 -1
- package/dist/components/Table/Table.types.d.ts +0 -1
- package/dist/components/Table/TableBody.d.ts +0 -1
- package/dist/components/Table/TableFooter.d.ts +0 -1
- package/dist/components/TextLink/TextLink.d.ts +0 -1
- package/dist/components/Timeline/Timeline.d.ts +0 -1
- package/dist/context/LocaleContext.d.ts +0 -1
- package/dist/index.development.js +6 -6
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/useOutsideClick.d.ts +2 -0
- package/dist/web-ui-tailwind.css +176 -166
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/Image/Image.d.ts +0 -17
|
@@ -28,4 +28,4 @@ export type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<
|
|
|
28
28
|
*/
|
|
29
29
|
moreAvatarsLabel?: (avatarsNotShownCount: number) => React.ReactNode;
|
|
30
30
|
};
|
|
31
|
-
export declare const AvatarGroup: <C extends React.ElementType
|
|
31
|
+
export declare const AvatarGroup: <C extends React.ElementType>(props: Props<C>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ElementType } from "react";
|
|
2
2
|
import { SIZES } from "../../system/Sizes";
|
|
3
3
|
import { ELEVATION } from "../../system/Elevation";
|
|
4
4
|
import { BackgroundColor, CursorOption } from "../../types/general.types";
|
|
@@ -25,5 +25,5 @@ export type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<
|
|
|
25
25
|
hoverBackgroundColor?: BackgroundColor;
|
|
26
26
|
cursor?: CursorOption;
|
|
27
27
|
};
|
|
28
|
-
export declare const Box: <C extends
|
|
28
|
+
export declare const Box: <C extends ElementType = "div">(props: Props<C>) => React.JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const DragHandle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLButtonElement> & {
|
|
3
3
|
grabbing: boolean;
|
|
4
|
-
disabled?: boolean
|
|
5
|
-
dataTestId?: string
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
dataTestId?: string;
|
|
6
6
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
export default DragHandle;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export default Dropdown;
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
* This component is very similar to the `Select` component. The `Select` component is more
|
|
5
|
+
* advanced and supports more use cases, so `Select` should be used instead.
|
|
6
|
+
*/
|
|
7
|
+
declare class Dropdown extends React.PureComponent<any, any, any> {
|
|
8
|
+
static getDerivedStateFromProps(nextProps: any, prevState: any): any;
|
|
9
|
+
constructor(props: any);
|
|
10
|
+
state: {
|
|
11
|
+
totalItemCount: any;
|
|
12
|
+
isDropdownOpen: boolean;
|
|
13
|
+
highlightIndex: null;
|
|
14
|
+
selectedItem: any;
|
|
15
|
+
items: any;
|
|
16
|
+
};
|
|
17
|
+
componentDidMount(): void;
|
|
18
|
+
componentWillUnmount(): void;
|
|
19
|
+
handleClickOutside: (event: any) => void;
|
|
20
|
+
handleKeyDown: (event: any) => void;
|
|
21
|
+
findItem: (items: any, fieldName: any, fieldValue: any) => any;
|
|
22
|
+
openDropdown: () => void;
|
|
23
|
+
closeDropdown: () => void;
|
|
24
|
+
setSelectedItem: (item: any) => void;
|
|
25
|
+
findSelectedItem: (selectedIndex: any) => Element;
|
|
26
|
+
scrollToHighlightedItem: (selectedIndex: any) => void;
|
|
27
|
+
increaseHighlightIndexIfPossible: () => void;
|
|
28
|
+
decreaseHighlightIndexIfPossible: () => void;
|
|
29
|
+
selectItem: (item: any) => void;
|
|
30
|
+
renderIndividualItem: (item: any) => React.JSX.Element;
|
|
31
|
+
renderGroupedItems: (item: any) => React.JSX.Element;
|
|
32
|
+
renderItems: () => React.JSX.Element;
|
|
33
|
+
dropdownListRef: HTMLDivElement | null | undefined;
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
|
+
rootRef: HTMLDivElement | null | undefined;
|
|
36
|
+
}
|
|
37
|
+
declare namespace Dropdown {
|
|
38
|
+
namespace propTypes {
|
|
39
|
+
let items: PropTypes.Validator<(NonNullable<PropTypes.InferProps<{
|
|
40
|
+
id: PropTypes.Validator<string>;
|
|
41
|
+
text: PropTypes.Validator<string>;
|
|
42
|
+
key: PropTypes.Validator<string>;
|
|
43
|
+
}> | PropTypes.InferProps<{
|
|
44
|
+
subItems: PropTypes.Validator<(PropTypes.InferProps<{
|
|
45
|
+
id: PropTypes.Validator<string>;
|
|
46
|
+
text: PropTypes.Validator<string>;
|
|
47
|
+
key: PropTypes.Validator<string>;
|
|
48
|
+
}> | null | undefined)[]>;
|
|
49
|
+
title: PropTypes.Requireable<string>;
|
|
50
|
+
groupKey: PropTypes.Validator<string>;
|
|
51
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
52
|
+
let initialSelectedItemId: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
53
|
+
let placeholder: PropTypes.Requireable<string>;
|
|
54
|
+
let className: PropTypes.Requireable<string>;
|
|
55
|
+
let onItemSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
56
|
+
let wider: PropTypes.Requireable<boolean>;
|
|
57
|
+
let name: PropTypes.Requireable<string>;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
import React from "react";
|
|
61
|
+
import PropTypes from "prop-types";
|