@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.
@@ -1738,6 +1738,8 @@ var ModalFooter = function ModalFooter(props) {
1738
1738
  var ModalBase = function ModalBase(props) {
1739
1739
  var _props$size = props.size,
1740
1740
  size = _props$size === void 0 ? "medium" : _props$size,
1741
+ _props$withContentPad = props.withContentPaddingY,
1742
+ withContentPaddingY = _props$withContentPad === void 0 ? true : _props$withContentPad,
1741
1743
  _props$isOpen = props.isOpen,
1742
1744
  isOpen = _props$isOpen === void 0 ? false : _props$isOpen,
1743
1745
  _props$shouldCloseOnO = props.shouldCloseOnOverlayClick,
@@ -1767,7 +1769,7 @@ var ModalBase = function ModalBase(props) {
1767
1769
  onCloseClick: props.onCloseClick
1768
1770
  }), /*#__PURE__*/React__default.createElement("div", {
1769
1771
  className: classNames("px-6", {
1770
- "py-6": props.withContentPaddingY,
1772
+ "py-6": withContentPaddingY,
1771
1773
  "rounded-t-lg": !props.title
1772
1774
  })
1773
1775
  }, props.children), /*#__PURE__*/React__default.createElement(ModalFooter, {
@@ -2683,6 +2685,26 @@ var ConfirmationDialogChoices = function ConfirmationDialogChoices(props) {
2683
2685
  }));
2684
2686
  };
2685
2687
 
2688
+ var ConfirmationDialogMessage = function ConfirmationDialogMessage(props) {
2689
+ var message = props.message;
2690
+
2691
+ if (typeof message === "string") {
2692
+ return /*#__PURE__*/React__default.createElement(Text, {
2693
+ text: message,
2694
+ containsDangerousHtml: true
2695
+ });
2696
+ }
2697
+
2698
+ return /*#__PURE__*/React__default.createElement("div", {
2699
+ className: "space-y-2"
2700
+ }, message.map(function (messageLine) {
2701
+ return /*#__PURE__*/React__default.createElement(Text, {
2702
+ text: messageLine,
2703
+ containsDangerousHtml: true
2704
+ });
2705
+ }));
2706
+ };
2707
+
2686
2708
  var ConfirmationDialog = function ConfirmationDialog(props) {
2687
2709
  var choices = props.choices;
2688
2710
 
@@ -2734,9 +2756,8 @@ var ConfirmationDialog = function ConfirmationDialog(props) {
2734
2756
  className: "space-y-4 min-h-13"
2735
2757
  }, /*#__PURE__*/React__default.createElement(ConfirmationDialogTitle, {
2736
2758
  title: props.withTitle
2737
- }), /*#__PURE__*/React__default.createElement(Text, {
2738
- text: props.texts.message,
2739
- containsDangerousHtml: true
2759
+ }), /*#__PURE__*/React__default.createElement(ConfirmationDialogMessage, {
2760
+ message: props.texts.message
2740
2761
  }), /*#__PURE__*/React__default.createElement(ConfirmationDialogChoices, {
2741
2762
  choices: props.choices,
2742
2763
  onChoiceChangeCallback: onChoiceChange,
@@ -7525,11 +7546,27 @@ var SearchCancelIcon = function SearchCancelIcon(props) {
7525
7546
  }));
7526
7547
  };
7527
7548
 
7549
+ var InfoIcon = function InfoIcon(props) {
7550
+ return /*#__PURE__*/React__default.createElement("svg", {
7551
+ width: "48",
7552
+ height: "48",
7553
+ viewBox: "0 0 48 48",
7554
+ fill: "none",
7555
+ xmlns: "http://www.w3.org/2000/svg",
7556
+ onClick: props.onClick,
7557
+ className: props.className,
7558
+ role: props.onClick ? "button" : undefined
7559
+ }, /*#__PURE__*/React__default.createElement("path", {
7560
+ 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",
7561
+ fill: "currentColor"
7562
+ }));
7563
+ };
7564
+
7528
7565
  var Divider = function Divider() {
7529
7566
  return /*#__PURE__*/React__default.createElement("div", {
7530
7567
  className: "block w-full border-b last:border-b-0 border-solid border-color border-color-divider"
7531
7568
  });
7532
7569
  };
7533
7570
 
7534
- export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, Breadcrumbs, CRUDPage, Carousel, CenteredHero, ChartIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragIcon, Dropdown, EditIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, GearIcon, GenericForm, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, Input, LeftArrowIcon, LightBulbIcon, Line, List, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Timeline, Title, Toaster, ViewItem, toast };
7571
+ export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, Breadcrumbs, CRUDPage, Carousel, CenteredHero, ChartIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragIcon, Dropdown, EditIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, GearIcon, GenericForm, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, InfoIcon, Input, LeftArrowIcon, LightBulbIcon, Line, List, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Timeline, Title, Toaster, ViewItem, toast };
7535
7572
  //# sourceMappingURL=web-ui.esm.js.map