@luscii-healthtech/web-ui 2.19.3 → 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 +39 -3
- 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 +39 -4
- 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";
|
|
@@ -2693,6 +2693,26 @@ var ConfirmationDialogChoices = function ConfirmationDialogChoices(props) {
|
|
|
2693
2693
|
}));
|
|
2694
2694
|
};
|
|
2695
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
|
+
|
|
2696
2716
|
var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
2697
2717
|
var choices = props.choices;
|
|
2698
2718
|
|
|
@@ -2744,9 +2764,8 @@ var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
|
2744
2764
|
className: "space-y-4 min-h-13"
|
|
2745
2765
|
}, /*#__PURE__*/React__default.createElement(ConfirmationDialogTitle, {
|
|
2746
2766
|
title: props.withTitle
|
|
2747
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
2748
|
-
|
|
2749
|
-
containsDangerousHtml: true
|
|
2767
|
+
}), /*#__PURE__*/React__default.createElement(ConfirmationDialogMessage, {
|
|
2768
|
+
message: props.texts.message
|
|
2750
2769
|
}), /*#__PURE__*/React__default.createElement(ConfirmationDialogChoices, {
|
|
2751
2770
|
choices: props.choices,
|
|
2752
2771
|
onChoiceChangeCallback: onChoiceChange,
|
|
@@ -7535,6 +7554,22 @@ var SearchCancelIcon = function SearchCancelIcon(props) {
|
|
|
7535
7554
|
}));
|
|
7536
7555
|
};
|
|
7537
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
|
+
|
|
7538
7573
|
var Divider = function Divider() {
|
|
7539
7574
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7540
7575
|
className: "block w-full border-b last:border-b-0 border-solid border-color border-color-divider"
|
|
@@ -7583,6 +7618,7 @@ exports.HeartIcon = HeartIcon;
|
|
|
7583
7618
|
exports.INPUT_TYPES = INPUT_TYPES;
|
|
7584
7619
|
exports.InfoBlock = InfoBlock;
|
|
7585
7620
|
exports.InfoField = InfoField;
|
|
7621
|
+
exports.InfoIcon = InfoIcon;
|
|
7586
7622
|
exports.Input = Input;
|
|
7587
7623
|
exports.LeftArrowIcon = LeftArrowIcon;
|
|
7588
7624
|
exports.LightBulbIcon = LightBulbIcon;
|