@elliemae/ds-modal 2.0.0-alpha.10 → 2.0.0-alpha.11

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/cjs/v1/DSModal.js CHANGED
@@ -91,7 +91,7 @@ const DSModal = ({
91
91
  isOpen: isOpen,
92
92
  onAfterOpen: onAfterOpen,
93
93
  onRequestClose: onClose,
94
- overlayClassName: `${classNameBlock('overlay')} ${classNameModifier(centered && 'center')}`,
94
+ overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered && 'center')),
95
95
  shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
96
96
  style: {
97
97
  content: _objectSpread({}, style),
@@ -121,18 +121,18 @@ const DSModal = ({
121
121
  hasWarning: hasWarning,
122
122
  modalType: modalType
123
123
  }), children), showFooter && !isAFeedbackType && /*#__PURE__*/_jsx__default["default"]("div", {
124
- className: `${classNameBlock('modal-footer')} ${additionalFooterCssClass ? classNameBlockModifier(additionalFooterCssClass, 'modal-footer') : ''}`
124
+ className: "".concat(classNameBlock('modal-footer'), " ").concat(additionalFooterCssClass ? classNameBlockModifier(additionalFooterCssClass, 'modal-footer') : '')
125
125
  }, void 0, /*#__PURE__*/jsxRuntime.jsxs("div", {
126
126
  ref: actionsRef,
127
127
  className: classNameBlock('modal-footer-actions'),
128
128
  children: [modalType === constants.MODAL_TYPE.CONFIRM && /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
129
129
  buttonType: "secondary",
130
- className: `${classNameElement('button-action')} ${classNameModifier('reject', 'button-action')} `,
130
+ className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('reject', 'button-action'), " "),
131
131
  labelText: rejectLabel,
132
132
  onClick: onReject
133
133
  }, overridePropsRejectButton)), /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
134
134
  buttonType: "primary",
135
- className: `${classNameElement('button-action')} ${classNameModifier('confirm', 'button-action')} `,
135
+ className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('confirm', 'button-action'), " "),
136
136
  labelText: confirmLabel,
137
137
  onClick: onConfirm
138
138
  }, overridePropsConfirmButton))]
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
+ require('core-js/modules/web.dom-collections.iterator.js');
4
5
  var react = require('react');
5
6
  var constants = require('../constants.js');
6
7
 
package/cjs/v2/DSModal.js CHANGED
@@ -67,12 +67,12 @@ const DSModal = ({
67
67
  });
68
68
  return /*#__PURE__*/_jsx__default["default"](ReactModal__default["default"], {
69
69
  testId: dataTestId,
70
- className: `${cssClassName} ${classNameBlock(`type-${modalType}`)}`,
70
+ className: "".concat(cssClassName, " ").concat(classNameBlock("type-".concat(modalType))),
71
71
  contentLabel: modalTitle,
72
72
  isOpen: isOpen,
73
73
  onAfterOpen: onAfterOpen,
74
74
  onRequestClose: onClose,
75
- overlayClassName: `${classNameBlock('overlay')} ${classNameModifier(centered ? 'center' : 'top')}`,
75
+ overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered ? 'center' : 'top')),
76
76
  shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
77
77
  style: {
78
78
  content: _objectSpread({}, style),
package/esm/v1/DSModal.js CHANGED
@@ -81,7 +81,7 @@ const DSModal = ({
81
81
  isOpen: isOpen,
82
82
  onAfterOpen: onAfterOpen,
83
83
  onRequestClose: onClose,
84
- overlayClassName: `${classNameBlock('overlay')} ${classNameModifier(centered && 'center')}`,
84
+ overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered && 'center')),
85
85
  shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
86
86
  style: {
87
87
  content: _objectSpread({}, style),
@@ -111,18 +111,18 @@ const DSModal = ({
111
111
  hasWarning: hasWarning,
112
112
  modalType: modalType
113
113
  }), children), showFooter && !isAFeedbackType && /*#__PURE__*/_jsx("div", {
114
- className: `${classNameBlock('modal-footer')} ${additionalFooterCssClass ? classNameBlockModifier(additionalFooterCssClass, 'modal-footer') : ''}`
114
+ className: "".concat(classNameBlock('modal-footer'), " ").concat(additionalFooterCssClass ? classNameBlockModifier(additionalFooterCssClass, 'modal-footer') : '')
115
115
  }, void 0, /*#__PURE__*/jsxs("div", {
116
116
  ref: actionsRef,
117
117
  className: classNameBlock('modal-footer-actions'),
118
118
  children: [modalType === MODAL_TYPE.CONFIRM && /*#__PURE__*/jsx(DSButton, _objectSpread({
119
119
  buttonType: "secondary",
120
- className: `${classNameElement('button-action')} ${classNameModifier('reject', 'button-action')} `,
120
+ className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('reject', 'button-action'), " "),
121
121
  labelText: rejectLabel,
122
122
  onClick: onReject
123
123
  }, overridePropsRejectButton)), /*#__PURE__*/jsx(DSButton, _objectSpread({
124
124
  buttonType: "primary",
125
- className: `${classNameElement('button-action')} ${classNameModifier('confirm', 'button-action')} `,
125
+ className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('confirm', 'button-action'), " "),
126
126
  labelText: confirmLabel,
127
127
  onClick: onConfirm
128
128
  }, overridePropsConfirmButton))]
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { Component, createElement } from 'react';
3
4
  import { MODAL_TYPE } from '../constants.js';
4
5
 
package/esm/v2/DSModal.js CHANGED
@@ -58,12 +58,12 @@ const DSModal = ({
58
58
  });
59
59
  return /*#__PURE__*/_jsx(ReactModal, {
60
60
  testId: dataTestId,
61
- className: `${cssClassName} ${classNameBlock(`type-${modalType}`)}`,
61
+ className: "".concat(cssClassName, " ").concat(classNameBlock("type-".concat(modalType))),
62
62
  contentLabel: modalTitle,
63
63
  isOpen: isOpen,
64
64
  onAfterOpen: onAfterOpen,
65
65
  onRequestClose: onClose,
66
- overlayClassName: `${classNameBlock('overlay')} ${classNameModifier(centered ? 'center' : 'top')}`,
66
+ overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered ? 'center' : 'top')),
67
67
  shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
68
68
  style: {
69
69
  content: _objectSpread({}, style),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-modal",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.11",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Modal",
6
6
  "module": "./esm/index.js",
@@ -96,8 +96,8 @@
96
96
  "build": "node ../../scripts/build/build.js"
97
97
  },
98
98
  "dependencies": {
99
- "@elliemae/ds-basic": "2.0.0-alpha.10",
100
- "@elliemae/ds-classnames": "2.0.0-alpha.10",
99
+ "@elliemae/ds-basic": "2.0.0-alpha.11",
100
+ "@elliemae/ds-classnames": "2.0.0-alpha.11",
101
101
  "prop-types": "~15.7.2",
102
102
  "react-measure": "~2.5.2",
103
103
  "react-modal": "~3.12.1"
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }