@threedddplus/logoeditor 0.0.145 → 0.0.147

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.
@@ -6,4 +6,4 @@ export interface GlobalModalProps {
6
6
  crossOnClick?: () => void;
7
7
  modalStyle?: string;
8
8
  }
9
- export declare const Modal: ({ backdropStyle, children, contentStyle, modalStyle, }: GlobalModalProps) => React.JSX.Element;
9
+ export declare const Modal: ({ backdropStyle, children, contentStyle, crossOnClick, modalStyle, }: GlobalModalProps) => React.JSX.Element;
@@ -4783,6 +4783,7 @@ var SEARCHBAR_BORDER_COLOR = 'border-[#bebebe]';
4783
4783
  var CANVAS_MENU_TEXT = 'text-[#353535]';
4784
4784
  var TAG_BG_COLOR = 'bg-[#FCE8EB]';
4785
4785
  var TAG_TEXT_COLOR = 'text-[#e11a38]';
4786
+ var SAVERACK_TEXT_COLOR = 'text-[#707070]';
4786
4787
  var SAVEBUTTON_BG_COLOR = 'bg-[#E11A38]';
4787
4788
  var EDIT_DESIGN_INFO_TEXT_COLOR_1 = 'text-[#E11A38]';
4788
4789
  var EDIT_DESIGN_INFO_TEXT_COLOR_3 = 'text-[#353535]';
@@ -7690,13 +7691,22 @@ var Modal = function Modal(_ref) {
7690
7691
  var backdropStyle = _ref.backdropStyle,
7691
7692
  children = _ref.children,
7692
7693
  contentStyle = _ref.contentStyle,
7694
+ crossOnClick = _ref.crossOnClick,
7693
7695
  modalStyle = _ref.modalStyle;
7694
7696
  return React__default.createElement("div", null, React__default.createElement("div", {
7695
7697
  className: backdropStyle + " absolute top-0 left-0 h-screen w-full " + BACKDROP_BLUR + " " + BACKDROP_BLUR_BG_COLOR
7696
7698
  }), React__default.createElement("dialog", {
7697
7699
  open: true,
7698
7700
  className: contentStyle + " absolute shadow-[0 2px 8px rgba(0, 0, 0, 0.26)] ml-[auto] md:mr-[0%] mr-[auto]"
7699
- }, React__default.createElement("div", {
7701
+ }, React__default.createElement(IconButton, {
7702
+ label: '',
7703
+ icon: React__default.createElement(rx.RxCross2, {
7704
+ strokeWidth: 1,
7705
+ onClick: crossOnClick
7706
+ }),
7707
+ className: "z-10 pointer-events-auto cursor-pointer " + SAVERACK_TEXT_COLOR + " font-bold !absolute right-[0.6875rem] top-[0.6875rem] px-[0.75rem] py-[1.25rem] hover:bg-[#E11A38] hover:text-[#ffffff] hover:rounded-none",
7708
+ size: "1.2rem"
7709
+ }), React__default.createElement("div", {
7700
7710
  className: "flex flex-col justify-center gap-[1.75rem] " + modalStyle
7701
7711
  }, children)));
7702
7712
  };
@@ -14970,11 +14980,12 @@ var LogoEditor = function LogoEditor(_ref) {
14970
14980
  onSaveLogo = _ref.onSaveLogo,
14971
14981
  onClose = _ref.onClose;
14972
14982
  var _use3dddPlus = use3dddPlus(function (state) {
14973
- return [state.setSelectedStepper, state.loading, state.myLogoHandler];
14983
+ return [state.setSelectedStepper, state.loading, state.myLogoHandler, state.toggleSaveLogo];
14974
14984
  }),
14975
14985
  setSelectedStepper = _use3dddPlus[0],
14976
14986
  loading = _use3dddPlus[1],
14977
- myLogoHandler = _use3dddPlus[2];
14987
+ myLogoHandler = _use3dddPlus[2],
14988
+ toggleSaveLogo = _use3dddPlus[3];
14978
14989
  var _useState = React.useState([]),
14979
14990
  fontFamilies = _useState[0],
14980
14991
  setFontFamilies = _useState[1];
@@ -15016,7 +15027,7 @@ var LogoEditor = function LogoEditor(_ref) {
15016
15027
  contentStyle: "top-0 bottom-0 !m-[auto] z-[7] w-[80%] p-0",
15017
15028
  crossOnClick: onClose
15018
15029
  }, React__default.createElement("div", {
15019
- className: "flex flex-col md:flex-row w-full h-[88vh]"
15030
+ className: "flex flex-col md:flex-row w-full h-[88vh] " + (toggleSaveLogo.status ? "z-10" : "")
15020
15031
  }, React__default.createElement(reactToastify.ToastContainer, {
15021
15032
  position: "top-center",
15022
15033
  autoClose: 3000,