@cakemail-org/ui-components-v2 2.2.94 → 2.2.96

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/cjs/index.js CHANGED
@@ -8231,7 +8231,7 @@ var Dialog = React.forwardRef(function (props, ref) {
8231
8231
  clearTimeout(hideTimeout.current);
8232
8232
  var newState = setStateFromProps(__assign(__assign({}, cState), { open: true }));
8233
8233
  setNewState(newState);
8234
- if ((!newState.primaryBtnText || !newState.secondaryBtnText) && newState.managedByContent === false) {
8234
+ if ((!newState.primaryBtnText && !newState.secondaryBtnText) && newState.managedByContent === false) {
8235
8235
  hideTimeout.current = setTimeout(DialogHandler.hide, newState.hideAfter);
8236
8236
  }
8237
8237
  }
@@ -8278,7 +8278,7 @@ var Dialog = React.forwardRef(function (props, ref) {
8278
8278
  show: show,
8279
8279
  hide: hide
8280
8280
  }); });
8281
- var isAlert = (!state.primaryBtnText || !state.secondaryBtnText) && state.managedByContent === false;
8281
+ var isAlert = ((!state.primaryBtnText && !state.secondaryBtnText) && state.managedByContent === false);
8282
8282
  var mainClasses = classNames("dialog-component-v2", state.className, state.type, {
8283
8283
  "alert": isAlert,
8284
8284
  "managedByContent": state.managedByContent
package/dist/esm/index.js CHANGED
@@ -8211,7 +8211,7 @@ var Dialog = forwardRef(function (props, ref) {
8211
8211
  clearTimeout(hideTimeout.current);
8212
8212
  var newState = setStateFromProps(__assign(__assign({}, cState), { open: true }));
8213
8213
  setNewState(newState);
8214
- if ((!newState.primaryBtnText || !newState.secondaryBtnText) && newState.managedByContent === false) {
8214
+ if ((!newState.primaryBtnText && !newState.secondaryBtnText) && newState.managedByContent === false) {
8215
8215
  hideTimeout.current = setTimeout(DialogHandler.hide, newState.hideAfter);
8216
8216
  }
8217
8217
  }
@@ -8258,7 +8258,7 @@ var Dialog = forwardRef(function (props, ref) {
8258
8258
  show: show,
8259
8259
  hide: hide
8260
8260
  }); });
8261
- var isAlert = (!state.primaryBtnText || !state.secondaryBtnText) && state.managedByContent === false;
8261
+ var isAlert = ((!state.primaryBtnText && !state.secondaryBtnText) && state.managedByContent === false);
8262
8262
  var mainClasses = classNames("dialog-component-v2", state.className, state.type, {
8263
8263
  "alert": isAlert,
8264
8264
  "managedByContent": state.managedByContent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.94",
3
+ "version": "2.2.96",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",