@doist/reactist 17.3.0 → 17.4.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/reactist.cjs.development.js +5 -3
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/new-components/modal/modal.js +5 -3
- package/es/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/modal/modal-stories-components.d.ts +1 -0
- package/lib/new-components/modal/modal.d.ts +10 -1
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/package.json +1 -1
|
@@ -2061,7 +2061,7 @@ function Badge(_ref) {
|
|
|
2061
2061
|
|
|
2062
2062
|
var modules_8f59d13b = {"overlay":"_868392ae","fadein":"_63d7ee15","fitContent":"b8548bf2","container":"_31956461","full":"_1007df83","large":"_10c275aa","medium":"_0ac526b4","small":"_30f38fdb","xlarge":"_54868e8b","expand":"c0bc68bc","buttonContainer":"_6527332a","headerContent":"_4750dc1b"};
|
|
2063
2063
|
|
|
2064
|
-
const _excluded$q = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "exceptionallySetOverlayClassName", "autoFocus", "children"],
|
|
2064
|
+
const _excluded$q = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "exceptionallySetOverlayClassName", "autoFocus", "hideOnEscape", "hideOnInteractOutside", "children"],
|
|
2065
2065
|
_excluded2$1 = ["children", "button", "withDivider", "exceptionallySetClassName"],
|
|
2066
2066
|
_excluded3 = ["exceptionallySetClassName", "children"],
|
|
2067
2067
|
_excluded4 = ["exceptionallySetClassName", "withDivider"],
|
|
@@ -2094,6 +2094,8 @@ function Modal(_ref) {
|
|
|
2094
2094
|
exceptionallySetClassName,
|
|
2095
2095
|
exceptionallySetOverlayClassName,
|
|
2096
2096
|
autoFocus = true,
|
|
2097
|
+
hideOnEscape = true,
|
|
2098
|
+
hideOnInteractOutside = true,
|
|
2097
2099
|
children
|
|
2098
2100
|
} = _ref,
|
|
2099
2101
|
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
@@ -2145,7 +2147,7 @@ function Modal(_ref) {
|
|
|
2145
2147
|
"data-testid": "modal-overlay",
|
|
2146
2148
|
"data-overlay": true,
|
|
2147
2149
|
className: classNames(modules_8f59d13b.overlay, modules_8f59d13b[height], modules_8f59d13b[width], exceptionallySetOverlayClassName),
|
|
2148
|
-
onClick: handleBackdropClick,
|
|
2150
|
+
onClick: hideOnInteractOutside ? handleBackdropClick : undefined,
|
|
2149
2151
|
ref: backdropRef
|
|
2150
2152
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
2151
2153
|
autoFocus: autoFocus,
|
|
@@ -2155,7 +2157,7 @@ function Modal(_ref) {
|
|
|
2155
2157
|
ref: dialogRef,
|
|
2156
2158
|
as: Box,
|
|
2157
2159
|
state: state,
|
|
2158
|
-
hideOnEscape:
|
|
2160
|
+
hideOnEscape: hideOnEscape,
|
|
2159
2161
|
preventBodyScroll: true,
|
|
2160
2162
|
borderRadius: "full",
|
|
2161
2163
|
background: "default",
|