@luscii-healthtech/web-ui 2.19.2 → 2.19.4
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/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -0
- package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +1 -1
- package/dist/components/Icons/InfoIcon.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/web-ui.cjs.development.js +42 -4
- 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 +42 -5
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { IconProps } from "../../Icons/types/IconProps.type";
|
|
3
3
|
import type { NotificationBannerColor } from "../../NotificationBanner/NotificationBanner";
|
|
4
4
|
interface ConfirmationDialogTexts {
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | string[];
|
|
6
6
|
confirmLabel: string;
|
|
7
7
|
cancelLabel: string;
|
|
8
8
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -107,4 +107,5 @@ export { StarIcon } from "./components/Icons/StarIcon";
|
|
|
107
107
|
export { HamburgerIcon } from "./components/Icons/HamburgerIcon";
|
|
108
108
|
export { SearchIcon } from "./components/Icons/SearchIcon";
|
|
109
109
|
export { SearchCancelIcon } from "./components/Icons/SearchCancelIcon";
|
|
110
|
+
export { InfoIcon } from "./components/Icons/InfoIcon";
|
|
110
111
|
export { Divider } from "./components/Divider/Divider";
|
|
@@ -1746,6 +1746,8 @@ var ModalFooter = function ModalFooter(props) {
|
|
|
1746
1746
|
var ModalBase = function ModalBase(props) {
|
|
1747
1747
|
var _props$size = props.size,
|
|
1748
1748
|
size = _props$size === void 0 ? "medium" : _props$size,
|
|
1749
|
+
_props$withContentPad = props.withContentPaddingY,
|
|
1750
|
+
withContentPaddingY = _props$withContentPad === void 0 ? true : _props$withContentPad,
|
|
1749
1751
|
_props$isOpen = props.isOpen,
|
|
1750
1752
|
isOpen = _props$isOpen === void 0 ? false : _props$isOpen,
|
|
1751
1753
|
_props$shouldCloseOnO = props.shouldCloseOnOverlayClick,
|
|
@@ -1775,7 +1777,7 @@ var ModalBase = function ModalBase(props) {
|
|
|
1775
1777
|
onCloseClick: props.onCloseClick
|
|
1776
1778
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1777
1779
|
className: classNames("px-6", {
|
|
1778
|
-
"py-6":
|
|
1780
|
+
"py-6": withContentPaddingY,
|
|
1779
1781
|
"rounded-t-lg": !props.title
|
|
1780
1782
|
})
|
|
1781
1783
|
}, props.children), /*#__PURE__*/React__default.createElement(ModalFooter, {
|
|
@@ -2691,6 +2693,26 @@ var ConfirmationDialogChoices = function ConfirmationDialogChoices(props) {
|
|
|
2691
2693
|
}));
|
|
2692
2694
|
};
|
|
2693
2695
|
|
|
2696
|
+
var ConfirmationDialogMessage = function ConfirmationDialogMessage(props) {
|
|
2697
|
+
var message = props.message;
|
|
2698
|
+
|
|
2699
|
+
if (typeof message === "string") {
|
|
2700
|
+
return /*#__PURE__*/React__default.createElement(Text, {
|
|
2701
|
+
text: message,
|
|
2702
|
+
containsDangerousHtml: true
|
|
2703
|
+
});
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2707
|
+
className: "space-y-2"
|
|
2708
|
+
}, message.map(function (messageLine) {
|
|
2709
|
+
return /*#__PURE__*/React__default.createElement(Text, {
|
|
2710
|
+
text: messageLine,
|
|
2711
|
+
containsDangerousHtml: true
|
|
2712
|
+
});
|
|
2713
|
+
}));
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2694
2716
|
var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
2695
2717
|
var choices = props.choices;
|
|
2696
2718
|
|
|
@@ -2742,9 +2764,8 @@ var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
|
2742
2764
|
className: "space-y-4 min-h-13"
|
|
2743
2765
|
}, /*#__PURE__*/React__default.createElement(ConfirmationDialogTitle, {
|
|
2744
2766
|
title: props.withTitle
|
|
2745
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
2746
|
-
|
|
2747
|
-
containsDangerousHtml: true
|
|
2767
|
+
}), /*#__PURE__*/React__default.createElement(ConfirmationDialogMessage, {
|
|
2768
|
+
message: props.texts.message
|
|
2748
2769
|
}), /*#__PURE__*/React__default.createElement(ConfirmationDialogChoices, {
|
|
2749
2770
|
choices: props.choices,
|
|
2750
2771
|
onChoiceChangeCallback: onChoiceChange,
|
|
@@ -7533,6 +7554,22 @@ var SearchCancelIcon = function SearchCancelIcon(props) {
|
|
|
7533
7554
|
}));
|
|
7534
7555
|
};
|
|
7535
7556
|
|
|
7557
|
+
var InfoIcon = function InfoIcon(props) {
|
|
7558
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
7559
|
+
width: "48",
|
|
7560
|
+
height: "48",
|
|
7561
|
+
viewBox: "0 0 48 48",
|
|
7562
|
+
fill: "none",
|
|
7563
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7564
|
+
onClick: props.onClick,
|
|
7565
|
+
className: props.className,
|
|
7566
|
+
role: props.onClick ? "button" : undefined
|
|
7567
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
7568
|
+
d: "M24 4C12.96 4 4 12.96 4 24C4 35.04 12.96 44 24 44C35.04 44 44 35.04 44 24C44 12.96 35.04 4 24 4ZM24 26C22.9 26 22 25.1 22 24V16C22 14.9 22.9 14 24 14C25.1 14 26 14.9 26 16V24C26 25.1 25.1 26 24 26ZM26 34H22V30H26V34Z",
|
|
7569
|
+
fill: "currentColor"
|
|
7570
|
+
}));
|
|
7571
|
+
};
|
|
7572
|
+
|
|
7536
7573
|
var Divider = function Divider() {
|
|
7537
7574
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7538
7575
|
className: "block w-full border-b last:border-b-0 border-solid border-color border-color-divider"
|
|
@@ -7581,6 +7618,7 @@ exports.HeartIcon = HeartIcon;
|
|
|
7581
7618
|
exports.INPUT_TYPES = INPUT_TYPES;
|
|
7582
7619
|
exports.InfoBlock = InfoBlock;
|
|
7583
7620
|
exports.InfoField = InfoField;
|
|
7621
|
+
exports.InfoIcon = InfoIcon;
|
|
7584
7622
|
exports.Input = Input;
|
|
7585
7623
|
exports.LeftArrowIcon = LeftArrowIcon;
|
|
7586
7624
|
exports.LightBulbIcon = LightBulbIcon;
|