@geomak/ui 7.6.3 → 7.7.0

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.cjs CHANGED
@@ -745,6 +745,8 @@ function Modal({
745
745
  onCancel,
746
746
  okText = "Ok",
747
747
  cancelText = "Cancel",
748
+ okVariant = "primary",
749
+ cancelVariant = "ghost",
748
750
  hasFooter = true,
749
751
  title,
750
752
  children,
@@ -801,6 +803,7 @@ function Modal({
801
803
  Button_default,
802
804
  {
803
805
  style: { width: 90 },
806
+ variant: cancelVariant,
804
807
  content: cancelText,
805
808
  onClick: onCancel
806
809
  }
@@ -809,6 +812,7 @@ function Modal({
809
812
  Button_default,
810
813
  {
811
814
  style: { width: 90 },
815
+ variant: okVariant,
812
816
  content: okText,
813
817
  onClick: onOk
814
818
  }
@@ -835,6 +839,8 @@ function Drawer({
835
839
  width,
836
840
  okText = "Ok",
837
841
  cancelText = "Cancel",
842
+ okVariant = "primary",
843
+ cancelVariant = "ghost",
838
844
  onOk,
839
845
  onCancel,
840
846
  title,
@@ -890,8 +896,8 @@ function Drawer({
890
896
  ] }),
891
897
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto p-5", children }),
892
898
  hasFooter && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex flex-shrink-0 items-center gap-3 border-t border-border px-5 py-3 ${isRight ? "justify-start" : "justify-end"}`, children: [
893
- /* @__PURE__ */ jsxRuntime.jsx(Button_default, { style: { width: 90 }, content: cancelText, onClick: onCancel }),
894
- /* @__PURE__ */ jsxRuntime.jsx(Button_default, { style: { width: 90 }, content: okText, onClick: onOk })
899
+ /* @__PURE__ */ jsxRuntime.jsx(Button_default, { style: { width: 90 }, variant: cancelVariant, content: cancelText, onClick: onCancel }),
900
+ /* @__PURE__ */ jsxRuntime.jsx(Button_default, { style: { width: 90 }, variant: okVariant, content: okText, onClick: onOk })
895
901
  ] })
896
902
  ]
897
903
  }