@luscii-healthtech/web-ui 2.44.4 → 2.45.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.
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +6 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icons/types/IconProps.type.d.ts +2 -0
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +13 -4
- package/dist/index.d.ts +2 -1
- package/dist/web-ui-tailwind.css +6 -0
- package/dist/web-ui.cjs.development.js +59 -11
- 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 +59 -12
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare type Spacing = "none" | "small" | "medium" | "large";
|
|
2
|
+
declare type Spacing = "tiny" | "none" | "small" | "medium" | "large";
|
|
3
3
|
declare type FlexContainerBase = {
|
|
4
4
|
alignItems?: "center" | "start" | "end";
|
|
5
5
|
justifyContent?: "center" | "start" | "end" | "between";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon } from "./Icon";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as Icons from "../index";
|
|
2
3
|
export interface IconProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
onClick?: (event: React.MouseEvent<SVGSVGElement> | undefined) => void;
|
|
5
6
|
"data-test-id"?: string;
|
|
6
7
|
}
|
|
8
|
+
export declare type IconKey = keyof typeof Icons;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DynamicIconProps } from "../Icons/DynamicIcon";
|
|
2
3
|
export declare type NotificationBannerColor = "base" | "blue" | "red" | "green" | "amber";
|
|
3
4
|
export interface NotificationBannerLinkProps {
|
|
@@ -5,22 +6,29 @@ export interface NotificationBannerLinkProps {
|
|
|
5
6
|
enabled: boolean;
|
|
6
7
|
handleClick?: () => void;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
title?: string;
|
|
9
|
+
interface NotificationBannerPropsWithText {
|
|
10
10
|
text?: string;
|
|
11
|
+
linkProps?: NotificationBannerLinkProps;
|
|
12
|
+
children?: never;
|
|
13
|
+
}
|
|
14
|
+
interface NotificationBannerPropsWithChildren {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
text?: never;
|
|
17
|
+
linkProps?: never;
|
|
18
|
+
}
|
|
19
|
+
export declare type NotificationBannerProps = (NotificationBannerPropsWithChildren | NotificationBannerPropsWithText) & {
|
|
11
20
|
color?: NotificationBannerColor;
|
|
12
21
|
/**
|
|
13
22
|
* The icon can either be one of our icon components or an image url
|
|
14
23
|
*/
|
|
15
24
|
icon?: DynamicIconProps["icon"];
|
|
16
|
-
linkProps?: NotificationBannerLinkProps;
|
|
17
25
|
className?: string;
|
|
18
26
|
stretch?: boolean;
|
|
19
27
|
/**
|
|
20
28
|
* When stretching the banner, you can also decide if the content should be centered or not.
|
|
21
29
|
*/
|
|
22
30
|
centerContent?: boolean;
|
|
23
|
-
}
|
|
31
|
+
};
|
|
24
32
|
export declare const NotificationBanner: {
|
|
25
33
|
(props: NotificationBannerProps): JSX.Element;
|
|
26
34
|
defaultProps: {
|
|
@@ -28,3 +36,4 @@ export declare const NotificationBanner: {
|
|
|
28
36
|
onButtonClick: undefined;
|
|
29
37
|
};
|
|
30
38
|
};
|
|
39
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,8 @@ export { default as Text } from "./components/Text/Text";
|
|
|
73
73
|
export { SearchInput, SearchInputProps } from "./components/Input/SearchInput";
|
|
74
74
|
export { GenericForm, Form } from "./components/Form/Form";
|
|
75
75
|
export { GenericFormProps, FormProps } from "./components/Form/form.types";
|
|
76
|
-
export {
|
|
76
|
+
export { Icon } from "./components/Icon";
|
|
77
|
+
export type { IconProps, IconKey, } from "./components/Icons/types/IconProps.type";
|
|
77
78
|
export * from "./components/Icons";
|
|
78
79
|
export { Divider } from "./components/Divider/Divider";
|
|
79
80
|
export { FullPageModal } from "./components/Modal/FullPageModal";
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -615,6 +615,12 @@ video {
|
|
|
615
615
|
margin-bottom: calc(0.25rem * var(--space-y-reverse));
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
+
.space-x-1 > :not(template) ~ :not(template) {
|
|
619
|
+
--space-x-reverse: 0;
|
|
620
|
+
margin-right: calc(0.25rem * var(--space-x-reverse));
|
|
621
|
+
margin-left: calc(0.25rem * calc(1 - var(--space-x-reverse)));
|
|
622
|
+
}
|
|
623
|
+
|
|
618
624
|
.space-y-2 > :not(template) ~ :not(template) {
|
|
619
625
|
--space-y-reverse: 0;
|
|
620
626
|
margin-top: calc(0.5rem * calc(1 - var(--space-y-reverse)));
|
|
@@ -494,9 +494,11 @@ var FlexContainer = function FlexContainer(props) {
|
|
|
494
494
|
"items-start": alignItems === "start",
|
|
495
495
|
"items-center": alignItems === "center",
|
|
496
496
|
"items-end": alignItems === "end",
|
|
497
|
+
"space-x-1": horizontalSpacing === "tiny",
|
|
497
498
|
"space-x-2": horizontalSpacing === "small",
|
|
498
499
|
"space-x-4": horizontalSpacing === "medium",
|
|
499
500
|
"space-x-8": horizontalSpacing === "large",
|
|
501
|
+
"space-y-1": verticalSpacing === "tiny",
|
|
500
502
|
"space-y-2": verticalSpacing === "small",
|
|
501
503
|
"space-y-4": verticalSpacing === "medium",
|
|
502
504
|
"space-y-8": verticalSpacing === "large",
|
|
@@ -2625,23 +2627,14 @@ var NotificationBanner = function NotificationBanner(props) {
|
|
|
2625
2627
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2626
2628
|
className: classes
|
|
2627
2629
|
}, props.icon && /*#__PURE__*/React__default.createElement(DynamicIcon, {
|
|
2628
|
-
className: "w-6 h-6",
|
|
2630
|
+
className: "w-6 h-6 mr-3",
|
|
2629
2631
|
icon: props.icon
|
|
2630
2632
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2631
2633
|
className: "flex flex-col"
|
|
2632
|
-
}, props.
|
|
2633
|
-
className: classNames({
|
|
2634
|
-
"ml-3": props.icon
|
|
2635
|
-
}),
|
|
2636
|
-
text: props.title,
|
|
2637
|
-
"data-test-id": "notification-title",
|
|
2638
|
-
type: "strong",
|
|
2639
|
-
color: color
|
|
2640
|
-
}), (props.text || props.linkProps) && /*#__PURE__*/React__default.createElement("div", {
|
|
2634
|
+
}, props.children, (props.text || props.linkProps) && /*#__PURE__*/React__default.createElement("div", {
|
|
2641
2635
|
className: "flex flex-row items-center"
|
|
2642
2636
|
}, props.text && /*#__PURE__*/React__default.createElement(Text, {
|
|
2643
2637
|
className: classNames({
|
|
2644
|
-
"ml-3": props.icon,
|
|
2645
2638
|
"mr-1": props.linkProps
|
|
2646
2639
|
}),
|
|
2647
2640
|
text: props.text,
|
|
@@ -7828,6 +7821,60 @@ var StatusColoredIcon = function StatusColoredIcon(props) {
|
|
|
7828
7821
|
}));
|
|
7829
7822
|
};
|
|
7830
7823
|
|
|
7824
|
+
|
|
7825
|
+
|
|
7826
|
+
var Icons = {
|
|
7827
|
+
__proto__: null,
|
|
7828
|
+
AddIcon: AddIcon,
|
|
7829
|
+
AlertsIcon: AlertsIcon,
|
|
7830
|
+
BellIcon: BellIcon,
|
|
7831
|
+
ChartIcon: ChartIcon,
|
|
7832
|
+
ChartLineColoredIcon: ChartLineColoredIcon,
|
|
7833
|
+
ChatBoxIcon: ChatBoxIcon,
|
|
7834
|
+
CheckIcon: CheckIcon,
|
|
7835
|
+
ChevronDoubleIcon: ChevronDoubleIcon,
|
|
7836
|
+
CrossIcon: CrossIcon,
|
|
7837
|
+
DeleteIcon: DeleteIcon,
|
|
7838
|
+
DownArrowIcon: DownArrowIcon,
|
|
7839
|
+
DragIcon: DragIcon,
|
|
7840
|
+
EditIcon: EditIcon,
|
|
7841
|
+
EmptyStateDashboardIcon: EmptyStateDashboardIcon,
|
|
7842
|
+
ExclamationMarkIcon: ExclamationMarkIcon,
|
|
7843
|
+
EyeIcon: EyeIcon,
|
|
7844
|
+
GearIcon: GearIcon,
|
|
7845
|
+
GearColoredIcon: GearColoredIcon,
|
|
7846
|
+
GroupIcon: GroupIcon,
|
|
7847
|
+
GroupColoredIcon: GroupColoredIcon,
|
|
7848
|
+
HeartIcon: HeartIcon,
|
|
7849
|
+
LeftArrowIcon: LeftArrowIcon,
|
|
7850
|
+
LinkIcon: LinkIcon,
|
|
7851
|
+
LightBulbIcon: LightBulbIcon,
|
|
7852
|
+
LockIcon: LockIcon,
|
|
7853
|
+
MessagesIcon: MessagesIcon,
|
|
7854
|
+
NotesIcon: NotesIcon,
|
|
7855
|
+
PinIcon: PinIcon,
|
|
7856
|
+
PrintIcon: PrintIcon,
|
|
7857
|
+
RightArrowIcon: RightArrowIcon,
|
|
7858
|
+
SmallCircleIcon: SmallCircleIcon,
|
|
7859
|
+
SmallDiamondIcon: SmallDiamondIcon,
|
|
7860
|
+
SmallSquareIcon: SmallSquareIcon,
|
|
7861
|
+
SpaceRocketIcon: SpaceRocketIcon,
|
|
7862
|
+
StarIcon: StarIcon,
|
|
7863
|
+
HamburgerIcon: HamburgerIcon,
|
|
7864
|
+
SearchIcon: SearchIcon,
|
|
7865
|
+
SearchCancelIcon: SearchCancelIcon,
|
|
7866
|
+
InfoIcon: InfoIcon,
|
|
7867
|
+
StatusColoredIcon: StatusColoredIcon
|
|
7868
|
+
};
|
|
7869
|
+
|
|
7870
|
+
var _excluded$r = ["name"];
|
|
7871
|
+
var Icon = function Icon(_ref) {
|
|
7872
|
+
var name = _ref.name,
|
|
7873
|
+
iconProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
7874
|
+
|
|
7875
|
+
return /*#__PURE__*/React__default.createElement(Icons[name], iconProps);
|
|
7876
|
+
};
|
|
7877
|
+
|
|
7831
7878
|
var FullPageModalHeader = function FullPageModalHeader(_ref) {
|
|
7832
7879
|
var primaryButtonProps = _ref.primaryButtonProps,
|
|
7833
7880
|
title = _ref.title;
|
|
@@ -7932,6 +7979,7 @@ exports.GroupIcon = GroupIcon;
|
|
|
7932
7979
|
exports.HamburgerIcon = HamburgerIcon;
|
|
7933
7980
|
exports.HeartIcon = HeartIcon;
|
|
7934
7981
|
exports.INPUT_TYPES = INPUT_TYPES;
|
|
7982
|
+
exports.Icon = Icon;
|
|
7935
7983
|
exports.ImagePicker = ImagePicker;
|
|
7936
7984
|
exports.InfoBlock = InfoBlock;
|
|
7937
7985
|
exports.InfoField = InfoField;
|