@simoncomputing/mui-bueno-v2 0.15.0 → 0.15.1

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/index.d.ts CHANGED
@@ -55,6 +55,8 @@ export { AlertModal } from './components/Modals/AlertModal/AlertModal';
55
55
  export type { AlertModalProps } from './components/Modals/AlertModal/AlertModal';
56
56
  export { DecisionModal } from './components/Modals/DecisionModal/DecisionModal';
57
57
  export type { DecisionModalProps } from './components/Modals/DecisionModal/DecisionModal';
58
+ export { Modal } from './components/Modals/Modal';
59
+ export type { ModalProps } from './components/Modals/Modal';
58
60
  export { Table } from './components/Table/Table';
59
61
  export { PaginatedTable } from './components/Table/PaginatedTable';
60
62
  export type { TableProps } from './components/Table/Table';
package/dist/index.es.js CHANGED
@@ -59567,18 +59567,15 @@ const $L = gu(void 0), FL = () => {
59567
59567
  title: r,
59568
59568
  children: o,
59569
59569
  actions: i,
59570
- closeBtnLabel: s = "Cancel",
59571
- closeButtonPosition: a = "bottom",
59572
- closeButtonProps: l = {
59573
- color: "primary",
59574
- variant: "text"
59575
- },
59570
+ closeBtnLabel: s,
59571
+ closeButtonPosition: a,
59572
+ closeButtonProps: l = {},
59576
59573
  disableDismiss: u = !1,
59577
59574
  ...f
59578
59575
  } = t;
59579
59576
  if (!e) return null;
59580
- const p = () => {
59581
- if (a !== "top")
59577
+ const p = a === "bottom" || a === "top-and-bottom", m = a === "top" || a === "top-and-bottom", g = () => {
59578
+ if (s && p)
59582
59579
  return /* @__PURE__ */ C(Nt, { className: "MBv2_Modal_Close", onClick: t.onClose, ...l, children: s });
59583
59580
  };
59584
59581
  return /* @__PURE__ */ ie(
@@ -59593,15 +59590,20 @@ const $L = gu(void 0), FL = () => {
59593
59590
  children: [
59594
59591
  typeof r == "string" ? /* @__PURE__ */ C(V4, { className: "MBv2_Modal_Title", children: /* @__PURE__ */ ie(Be, { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [
59595
59592
  r,
59596
- a !== "bottom" && /* @__PURE__ */ C(rs, { "data-testid": "modal-header-close-btn", onClick: n, children: /* @__PURE__ */ C(IW, {}) })
59593
+ m && /* @__PURE__ */ C(rs, { "data-testid": "modal-header-close-btn", onClick: n, children: /* @__PURE__ */ C(IW, {}) })
59597
59594
  ] }) }) : r,
59598
59595
  o && (typeof o == "string" ? /* @__PURE__ */ C(z4, { className: "MBv2_Modal_Content", children: /* @__PURE__ */ C(H4, { className: "MBv2_Modal_Content_Text", children: o }) }) : o),
59599
- i ? /* @__PURE__ */ C(cl, { className: "MBv2_Modal_Actions", children: /* @__PURE__ */ ie(Be, { display: "flex", flexDirection: "row", justifyContent: "space-between", width: "100%", gap: "0.25rem", children: [
59600
- /* @__PURE__ */ C(Be, { children: p() }),
59601
- /* @__PURE__ */ ie(Be, { display: "flex", gap: ".25rem", children: [
59602
- ...i
59603
- ] })
59604
- ] }) }) : /* @__PURE__ */ C(cl, { className: "MBv2_Modal_Actions", children: /* @__PURE__ */ C(Be, { children: p() }) })
59596
+ (() => {
59597
+ if (i)
59598
+ return /* @__PURE__ */ C(cl, { className: "MBv2_Modal_Actions", children: /* @__PURE__ */ ie(Be, { display: "flex", flexDirection: "row", justifyContent: "space-between", width: "100%", gap: "0.25rem", children: [
59599
+ /* @__PURE__ */ C(Be, { children: g() }),
59600
+ /* @__PURE__ */ ie(Be, { display: "flex", gap: ".25rem", children: [
59601
+ ...i
59602
+ ] })
59603
+ ] }) });
59604
+ if (s && p)
59605
+ return /* @__PURE__ */ C(cl, { className: "MBv2_Modal_Actions", children: /* @__PURE__ */ C(Be, { children: g() }) });
59606
+ })()
59605
59607
  ]
59606
59608
  }
59607
59609
  );
@@ -59613,8 +59615,9 @@ const $L = gu(void 0), FL = () => {
59613
59615
  color: "primary",
59614
59616
  variant: "contained"
59615
59617
  },
59616
- closeButtonProps: o = {},
59617
- ...i
59618
+ closeBtnLabel: o = "Cancel",
59619
+ closeButtonPosition: i = "bottom",
59620
+ ...s
59618
59621
  } = t;
59619
59622
  return /* @__PURE__ */ C(
59620
59623
  mS,
@@ -59622,18 +59625,30 @@ const $L = gu(void 0), FL = () => {
59622
59625
  actions: [
59623
59626
  /* @__PURE__ */ C(Nt, { className: "MBv2_ConfirmationModal_ConfirmBtn", onClick: n, ...r, children: e })
59624
59627
  ],
59625
- ...i
59628
+ closeBtnLabel: o,
59629
+ closeButtonPosition: i,
59630
+ ...s
59626
59631
  }
59627
59632
  );
59628
59633
  }, Zde = (t) => {
59629
59634
  const {
59630
59635
  closeBtnLabel: e = "OK",
59631
- closeButtonProps: n = {
59636
+ closeButtonPosition: n = "bottom",
59637
+ closeButtonProps: r = {
59632
59638
  color: "primary",
59633
59639
  variant: "contained"
59634
- }
59640
+ },
59641
+ ...o
59635
59642
  } = t;
59636
- return /* @__PURE__ */ C(mS, { closeBtnLabel: e, closeButtonProps: n, ...t });
59643
+ return /* @__PURE__ */ C(
59644
+ mS,
59645
+ {
59646
+ closeBtnLabel: e,
59647
+ closeButtonPosition: n,
59648
+ closeButtonProps: r,
59649
+ ...o
59650
+ }
59651
+ );
59637
59652
  }, Xde = (t) => {
59638
59653
  const {
59639
59654
  primaryBtnLabel: e,
@@ -59648,7 +59663,9 @@ const $L = gu(void 0), FL = () => {
59648
59663
  color: "primary",
59649
59664
  variant: "outlined"
59650
59665
  },
59651
- ...a
59666
+ closeBtnLabel: a = "Cancel",
59667
+ closeButtonPosition: l = "bottom",
59668
+ ...u
59652
59669
  } = t;
59653
59670
  return /* @__PURE__ */ C(
59654
59671
  mS,
@@ -59665,7 +59682,9 @@ const $L = gu(void 0), FL = () => {
59665
59682
  ),
59666
59683
  /* @__PURE__ */ C(Nt, { className: "MBv2_DecisionModal_PrimaryAction", onClick: n, ...r, children: e })
59667
59684
  ],
59668
- ...a
59685
+ closeBtnLabel: a,
59686
+ closeButtonPosition: l,
59687
+ ...u
59669
59688
  }
59670
59689
  );
59671
59690
  }, Qde = (t) => {
@@ -60180,6 +60199,7 @@ export {
60180
60199
  BR as LoadingIndicator,
60181
60200
  Nde as Location,
60182
60201
  mde as MenuButton,
60202
+ mS as Modal,
60183
60203
  Ide as MultiAutocomplete,
60184
60204
  yde as NavBar,
60185
60205
  afe as PageHeader,