@luscii-healthtech/web-ui 2.44.4 → 2.44.5
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/NotificationBanner/NotificationBanner.d.ts +13 -4
- package/dist/web-ui-tailwind.css +6 -0
- package/dist/web-ui.cjs.development.js +4 -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 +4 -11
- 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";
|
|
@@ -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/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,
|