@itcase/ui 1.8.101 → 1.8.103
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/{Overlay_cjs_B2KA85nC.js → Overlay_cjs_CcfJYN5o.js} +6 -5
- package/dist/{Overlay_es_BvehRqIP.js → Overlay_es_DF3DAdxS.js} +6 -5
- package/dist/cjs/components/Modal.js +25 -25
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/components/Modal.js +25 -25
- package/dist/components/Overlay.js +1 -1
- package/dist/css/components/Group/Group.css +2 -2
- package/dist/css/components/Icon/Icon.css +8 -8
- package/dist/css/styles/blur/blur.css +2 -2
- package/dist/css/styles/border-color/border-color.css +2 -2
- package/dist/css/styles/border-color/border-color_active.css +2 -2
- package/dist/css/styles/border-color/border-color_focus.css +2 -2
- package/dist/css/styles/border-color/border-color_hover.css +2 -2
- package/dist/css/styles/fill/fill.css +2 -2
- package/dist/css/styles/fill/fill_active.css +2 -2
- package/dist/css/styles/fill/fill_active_hover.css +2 -2
- package/dist/css/styles/fill/fill_hover.css +2 -2
- package/dist/css/styles/text-color/text-color.css +2 -2
- package/dist/css/styles/text-color/text-color_active.css +2 -2
- package/dist/css/styles/text-color/text-color_active_hover.css +2 -2
- package/dist/types/components/Label/Label.appearance.d.ts +261 -2
- package/dist/types/components/Modal/Modal.appearance.d.ts +1626 -2
- package/dist/types/components/Modal/Modal.d.ts +50 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +56 -38
- package/dist/types/components/Modal/appearance/modalShape.d.ts +2 -24
- package/dist/types/components/Modal/appearance/modalSize.d.ts +2 -26
- package/dist/types/components/Modal/appearance/modalStyle.d.ts +2 -13
- package/dist/types/components/Modal/appearance/modalSurface.d.ts +2 -7
- package/dist/types/components/Overlay/Overlay.appearance.d.ts +12 -2
- package/dist/types/components/Overlay/Overlay.interface.d.ts +24 -22
- package/dist/types/components/Overlay/appearance/overlayDefault.d.ts +2 -10
- package/dist/types/components/Title/Title.interface.d.ts +1 -1
- package/package.json +3 -3
|
@@ -9,12 +9,12 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
9
9
|
|
|
10
10
|
var overlayAppearanceDefault = {
|
|
11
11
|
blackout: {
|
|
12
|
-
fill: '
|
|
13
|
-
opacity: 50,
|
|
12
|
+
fill: 'black',
|
|
13
|
+
opacity: '50',
|
|
14
14
|
},
|
|
15
15
|
blur: {
|
|
16
16
|
fill: 'surfaceQuaternary',
|
|
17
|
-
blur: 10,
|
|
17
|
+
blur: '10',
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -27,12 +27,13 @@ var overlayConfig = {
|
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
29
|
function Overlay(props) {
|
|
30
|
-
var
|
|
30
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, isOverlay = props.isOverlay, onClick = props.onClick;
|
|
31
31
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, overlayConfig);
|
|
32
32
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
33
33
|
var fillClass = propsGenerator.fillClass, blurClass = propsGenerator.blurClass, opacityClass = propsGenerator.opacityClass;
|
|
34
|
+
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
34
35
|
var overlayStyles = useStyles.useStyles(props).styles;
|
|
35
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'overlay', opacityClass && "opacity_".concat(opacityClass), blurClass && "blur_".concat(blurClass), isOverlay && 'overlay_state_visible', fillClass && "fill_".concat(fillClass)),
|
|
36
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'overlay', opacityClass && "opacity_".concat(opacityClass), blurClass && "blur_".concat(blurClass), isOverlay && 'overlay_state_visible', fillClass && "fill_".concat(fillClass)), "data-test-id": dataTestId, "data-tour": dataTour, style: overlayStyles, onClick: onClick, children: "\u00A0" }));
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
exports.Overlay = Overlay;
|
|
@@ -7,12 +7,12 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
|
7
7
|
|
|
8
8
|
var overlayAppearanceDefault = {
|
|
9
9
|
blackout: {
|
|
10
|
-
fill: '
|
|
11
|
-
opacity: 50,
|
|
10
|
+
fill: 'black',
|
|
11
|
+
opacity: '50',
|
|
12
12
|
},
|
|
13
13
|
blur: {
|
|
14
14
|
fill: 'surfaceQuaternary',
|
|
15
|
-
blur: 10,
|
|
15
|
+
blur: '10',
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -25,12 +25,13 @@ var overlayConfig = {
|
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
27
|
function Overlay(props) {
|
|
28
|
-
var
|
|
28
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, isOverlay = props.isOverlay, onClick = props.onClick;
|
|
29
29
|
var appearanceConfig = useAppearanceConfig(appearance, overlayConfig);
|
|
30
30
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
31
31
|
var fillClass = propsGenerator.fillClass, blurClass = propsGenerator.blurClass, opacityClass = propsGenerator.opacityClass;
|
|
32
|
+
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
32
33
|
var overlayStyles = useStyles(props).styles;
|
|
33
|
-
return (jsx("div", { className: clsx(className, 'overlay', opacityClass && "opacity_".concat(opacityClass), blurClass && "blur_".concat(blurClass), isOverlay && 'overlay_state_visible', fillClass && "fill_".concat(fillClass)),
|
|
34
|
+
return (jsx("div", { className: clsx(className, 'overlay', opacityClass && "opacity_".concat(opacityClass), blurClass && "blur_".concat(blurClass), isOverlay && 'overlay_state_visible', fillClass && "fill_".concat(fillClass)), "data-test-id": dataTestId, "data-tour": dataTour, style: overlayStyles, onClick: onClick, children: "\u00A0" }));
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export { Overlay as O, overlayAppearance as a, overlayConfig as o };
|
|
@@ -8,7 +8,7 @@ var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceCon
|
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
10
|
var Icon = require('../../Icon_cjs_LSfBwmrG.js');
|
|
11
|
-
var Overlay = require('../../
|
|
11
|
+
var Overlay = require('../../Overlay_cjs_CcfJYN5o.js');
|
|
12
12
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
13
13
|
var _default = require('@itcase/icons/default');
|
|
14
14
|
var Loader = require('../../Loader_cjs_Db9diKuF.js');
|
|
@@ -37,21 +37,21 @@ var modalAppearanceShape = {
|
|
|
37
37
|
rounded: {
|
|
38
38
|
shape: 'rounded',
|
|
39
39
|
},
|
|
40
|
-
|
|
41
|
-
shape: 'rounded',
|
|
42
|
-
shapeStrength: '0_5m',
|
|
43
|
-
},
|
|
44
|
-
roundedM: {
|
|
40
|
+
roundedXL: {
|
|
45
41
|
shape: 'rounded',
|
|
46
|
-
shapeStrength: '
|
|
42
|
+
shapeStrength: '2m',
|
|
47
43
|
},
|
|
48
44
|
roundedL: {
|
|
49
45
|
shape: 'rounded',
|
|
50
46
|
shapeStrength: '1_5m',
|
|
51
47
|
},
|
|
52
|
-
|
|
48
|
+
roundedM: {
|
|
53
49
|
shape: 'rounded',
|
|
54
|
-
shapeStrength: '
|
|
50
|
+
shapeStrength: '1m',
|
|
51
|
+
},
|
|
52
|
+
roundedS: {
|
|
53
|
+
shape: 'rounded',
|
|
54
|
+
shapeStrength: '0_5m',
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -134,10 +134,10 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
134
134
|
};
|
|
135
135
|
// Modal component that is an abstraction around the portal API.
|
|
136
136
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
137
|
-
var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a,
|
|
137
|
+
var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, _b = props.scroll, scroll = _b === void 0 ? false : _b, _c = props.stickyHeader, stickyHeader = _c === void 0 ? false : _c, _d = props.isCloseOnBlur, isCloseOnBlur = _d === void 0 ? true : _d, _e = props.isOpen, initialIsOpen = _e === void 0 ? false : _e, _f = props.isOverlay, isOverlay = _f === void 0 ? true : _f, _g = props.isScrollOnOpen, isScrollOnOpen = _g === void 0 ? true : _g, _h = props.isSetFocusOnOpen, isSetFocusOnOpen = _h === void 0 ? true : _h, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
|
|
138
138
|
// Query DOM element
|
|
139
|
-
var
|
|
140
|
-
var
|
|
139
|
+
var _j = React.useState(null), modalElement = _j[0], setModalElement = _j[1];
|
|
140
|
+
var _k = React.useState(initialIsOpen), isOpen = _k[0], setIsOpen = _k[1];
|
|
141
141
|
var modalContentRef = React.useRef(null);
|
|
142
142
|
// const modalOverlayRef = useRef(null)
|
|
143
143
|
var addModalProps = React.useCallback(function (element) {
|
|
@@ -173,18 +173,18 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
173
173
|
onOpenModal();
|
|
174
174
|
}
|
|
175
175
|
/* SHOW TARGET POPUP ABOVE OTHERS POPUPS F TARGET ALREADY OPENED
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
176
|
+
// If current modal is already opened
|
|
177
|
+
// Move content to end of modal root container. For order in DOM.
|
|
178
|
+
const modalContentElement = modalContentRef.current
|
|
179
|
+
if (modalContentElement) {
|
|
180
|
+
modalContentElement.parentNode.appendChild(modalContentElement)
|
|
181
|
+
}
|
|
182
|
+
// Also move overlay to end of modal root container after container
|
|
183
|
+
const modalOverlayElement = modalOverlayRef.current
|
|
184
|
+
if (modalOverlayElement) {
|
|
185
|
+
modalOverlayElement.parentNode.appendChild(modalOverlayElement)
|
|
186
|
+
}
|
|
187
|
+
*/
|
|
188
188
|
}, [onOpenModal]);
|
|
189
189
|
// Hide modal and unmount children content
|
|
190
190
|
var closeModal = React.useCallback(function (event) {
|
|
@@ -225,7 +225,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
225
225
|
return (modalElement &&
|
|
226
226
|
ReactDOM.createPortal(
|
|
227
227
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
228
|
-
isOpen ? (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { id: id, className: clsx('modal__content', contentClassName, fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "shape_".concat(shapeClass), sizeClass && "modal_size_".concat(sizeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && !stickyHeader && "modal-scroll_".concat(scroll), stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur
|
|
228
|
+
isOpen ? (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { id: id, className: clsx('modal__content', contentClassName, fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "shape_".concat(shapeClass), sizeClass && "modal_size_".concat(sizeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && !stickyHeader && "modal-scroll_".concat(scroll), stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [(title || closeIconImage) && (jsxRuntime.jsxs("div", { className: clsx('modal__header'), children: [title && (jsxRuntime.jsx(Icon.Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIconImage && (jsxRuntime.jsx("div", { className: "modal__close", onClick: closeModal, children: jsxRuntime.jsx(Icon.Icon, { appearance: "".concat(closeIconAppearance, " ").concat(closeIconAppearanceSize), fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage }) }))] })), jsxRuntime.jsx("div", { className: "modal__content-wrapper", children: children })] }), jsxRuntime.jsx(Overlay.Overlay, { className: "modal__overlay",
|
|
229
229
|
// ref={modalOverlayRef}
|
|
230
230
|
fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
|
|
231
231
|
// A DOM element
|
package/dist/components/Modal.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { b as Title, I as Icon } from '../Icon_es_BYO1LdXJ.js';
|
|
9
|
-
import { O as Overlay } from '../
|
|
9
|
+
import { O as Overlay } from '../Overlay_es_DF3DAdxS.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
11
|
import { icons24, icons32, icons40 } from '@itcase/icons/default';
|
|
12
12
|
import { L as Loader } from '../Loader_es_AhHU-s7_.js';
|
|
@@ -35,21 +35,21 @@ var modalAppearanceShape = {
|
|
|
35
35
|
rounded: {
|
|
36
36
|
shape: 'rounded',
|
|
37
37
|
},
|
|
38
|
-
|
|
39
|
-
shape: 'rounded',
|
|
40
|
-
shapeStrength: '0_5m',
|
|
41
|
-
},
|
|
42
|
-
roundedM: {
|
|
38
|
+
roundedXL: {
|
|
43
39
|
shape: 'rounded',
|
|
44
|
-
shapeStrength: '
|
|
40
|
+
shapeStrength: '2m',
|
|
45
41
|
},
|
|
46
42
|
roundedL: {
|
|
47
43
|
shape: 'rounded',
|
|
48
44
|
shapeStrength: '1_5m',
|
|
49
45
|
},
|
|
50
|
-
|
|
46
|
+
roundedM: {
|
|
51
47
|
shape: 'rounded',
|
|
52
|
-
shapeStrength: '
|
|
48
|
+
shapeStrength: '1m',
|
|
49
|
+
},
|
|
50
|
+
roundedS: {
|
|
51
|
+
shape: 'rounded',
|
|
52
|
+
shapeStrength: '0_5m',
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -132,10 +132,10 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
132
132
|
};
|
|
133
133
|
// Modal component that is an abstraction around the portal API.
|
|
134
134
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
135
|
-
var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a,
|
|
135
|
+
var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, _b = props.scroll, scroll = _b === void 0 ? false : _b, _c = props.stickyHeader, stickyHeader = _c === void 0 ? false : _c, _d = props.isCloseOnBlur, isCloseOnBlur = _d === void 0 ? true : _d, _e = props.isOpen, initialIsOpen = _e === void 0 ? false : _e, _f = props.isOverlay, isOverlay = _f === void 0 ? true : _f, _g = props.isScrollOnOpen, isScrollOnOpen = _g === void 0 ? true : _g, _h = props.isSetFocusOnOpen, isSetFocusOnOpen = _h === void 0 ? true : _h, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
|
|
136
136
|
// Query DOM element
|
|
137
|
-
var
|
|
138
|
-
var
|
|
137
|
+
var _j = useState(null), modalElement = _j[0], setModalElement = _j[1];
|
|
138
|
+
var _k = useState(initialIsOpen), isOpen = _k[0], setIsOpen = _k[1];
|
|
139
139
|
var modalContentRef = useRef(null);
|
|
140
140
|
// const modalOverlayRef = useRef(null)
|
|
141
141
|
var addModalProps = useCallback(function (element) {
|
|
@@ -171,18 +171,18 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
171
171
|
onOpenModal();
|
|
172
172
|
}
|
|
173
173
|
/* SHOW TARGET POPUP ABOVE OTHERS POPUPS F TARGET ALREADY OPENED
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
174
|
+
// If current modal is already opened
|
|
175
|
+
// Move content to end of modal root container. For order in DOM.
|
|
176
|
+
const modalContentElement = modalContentRef.current
|
|
177
|
+
if (modalContentElement) {
|
|
178
|
+
modalContentElement.parentNode.appendChild(modalContentElement)
|
|
179
|
+
}
|
|
180
|
+
// Also move overlay to end of modal root container after container
|
|
181
|
+
const modalOverlayElement = modalOverlayRef.current
|
|
182
|
+
if (modalOverlayElement) {
|
|
183
|
+
modalOverlayElement.parentNode.appendChild(modalOverlayElement)
|
|
184
|
+
}
|
|
185
|
+
*/
|
|
186
186
|
}, [onOpenModal]);
|
|
187
187
|
// Hide modal and unmount children content
|
|
188
188
|
var closeModal = useCallback(function (event) {
|
|
@@ -223,7 +223,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
223
223
|
return (modalElement &&
|
|
224
224
|
ReactDOM.createPortal(
|
|
225
225
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
226
|
-
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', contentClassName, fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "shape_".concat(shapeClass), sizeClass && "modal_size_".concat(sizeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && !stickyHeader && "modal-scroll_".concat(scroll), stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur
|
|
226
|
+
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', contentClassName, fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "shape_".concat(shapeClass), sizeClass && "modal_size_".concat(sizeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && !stickyHeader && "modal-scroll_".concat(scroll), stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [(title || closeIconImage) && (jsxs("div", { className: clsx('modal__header'), children: [title && (jsx(Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIconImage && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: "".concat(closeIconAppearance, " ").concat(closeIconAppearanceSize), fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
|
|
227
227
|
// ref={modalOverlayRef}
|
|
228
228
|
fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
|
|
229
229
|
// A DOM element
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../
|
|
1
|
+
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay_es_DF3DAdxS.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -148,12 +148,12 @@
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
151
|
-
pink-citrus,
|
|
151
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
|
|
152
152
|
orange, clementine, apricot, papaya, kumquat, light-orange, peach,
|
|
153
153
|
flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
|
|
154
154
|
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
155
155
|
dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
|
|
156
|
-
light-blue,
|
|
156
|
+
light-blue, cerulean, surf-blue, pacific-green, blue-cobalt, dark-teal,
|
|
157
157
|
blue-horizon, denim-blue, linen-blue, deep-navy, midnight-blue, purple,
|
|
158
158
|
ultra-violet, lilac, ocean-blue, delft-blue, indigo, lavender-gray,
|
|
159
159
|
lavender, mist-blue, storm-gray, cactus, pine-green, cyprus-green,
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
61
|
-
|
|
61
|
+
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
62
62
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
63
63
|
pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
|
|
64
64
|
pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
|
|
65
|
-
beryl, sea-foam, turquoise, blue, light-blue,
|
|
65
|
+
beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
|
|
66
66
|
pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
|
|
67
67
|
deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
|
|
68
68
|
delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
107
|
-
|
|
107
|
+
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
108
108
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
109
109
|
pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
|
|
110
110
|
pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
|
|
111
|
-
beryl, sea-foam, turquoise, blue, light-blue,
|
|
111
|
+
beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
|
|
112
112
|
pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
|
|
113
113
|
deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
|
|
114
114
|
delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
|
|
@@ -162,11 +162,11 @@
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
165
|
-
pink-citrus,
|
|
165
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
166
166
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
167
167
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
168
168
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
169
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
169
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
170
170
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
171
171
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
172
172
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
225
|
-
pink-citrus,
|
|
225
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
226
226
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
227
227
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
228
228
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
229
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
229
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
230
230
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
231
231
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
232
232
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.blur {
|
|
2
|
-
@each $val in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 75, 80, 85,
|
|
3
|
-
90, 95 {
|
|
2
|
+
@each $val in 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 75, 80, 85,
|
|
3
|
+
90, 95, 100 {
|
|
4
4
|
&_$(val) {
|
|
5
5
|
/* stylelint-disable-next-line prettier/prettier */
|
|
6
6
|
backdrop-filter: blur($(val)px);
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
22
|
-
|
|
22
|
+
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
23
23
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
24
24
|
pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
|
|
25
25
|
pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
|
|
26
|
-
beryl, sea-foam, turquoise, blue, light-blue,
|
|
26
|
+
beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
|
|
27
27
|
pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
|
|
28
28
|
deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
|
|
29
29
|
delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
18
|
-
pink-citrus,
|
|
18
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
19
19
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
20
20
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
21
21
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
22
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
22
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
23
23
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
24
24
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
25
25
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
21
|
-
pink-citrus,
|
|
21
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
22
22
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
23
23
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
24
24
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
25
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
25
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
26
26
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
27
27
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
28
28
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
30
|
-
pink-citrus,
|
|
30
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
31
31
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
32
32
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
33
33
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
34
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
34
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
35
35
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
36
36
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
37
37
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
32
|
-
|
|
32
|
+
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
33
33
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
34
34
|
pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
|
|
35
35
|
pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
|
|
36
|
-
beryl, sea-foam, turquoise, blue, light-blue,
|
|
36
|
+
beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
|
|
37
37
|
pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
|
|
38
38
|
deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
|
|
39
39
|
delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
22
|
-
pink-citrus,
|
|
22
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
23
23
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
24
24
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
25
25
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
26
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
26
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
27
27
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
28
28
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
29
29
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
83
|
-
pink-citrus,
|
|
83
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
|
|
84
84
|
orange, clementine, apricot, papaya, kumquat, light-orange, peach,
|
|
85
85
|
flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
|
|
86
86
|
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
87
87
|
dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
|
|
88
|
-
light-blue,
|
|
88
|
+
light-blue, cerulean, surf-blue, pacific-green, blue-cobalt, dark-teal,
|
|
89
89
|
blue-horizon, denim-blue, linen-blue, deep-navy, midnight-blue, purple,
|
|
90
90
|
ultra-violet, lilac, ocean-blue, delft-blue, indigo, lavender-gray,
|
|
91
91
|
lavender, mist-blue, storm-gray, cactus, pine-green, cyprus-green,
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
57
|
-
pink-citrus,
|
|
57
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
58
58
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
59
59
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
60
60
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
61
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
61
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
62
62
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
63
63
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
64
64
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
16
|
-
pink-citrus,
|
|
16
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
17
17
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
18
18
|
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
19
19
|
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
20
|
-
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue,
|
|
20
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
21
21
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
22
22
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
23
23
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
17
|
-
pink-citrus,
|
|
17
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
|
|
18
18
|
orange, clementine, apricot, papaya, kumquat, light-orange, peach,
|
|
19
19
|
flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
|
|
20
20
|
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
21
21
|
dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
|
|
22
|
-
light-blue,
|
|
22
|
+
light-blue, cerulean, surf-blue, pacific-green, blue-cobalt, dark-teal,
|
|
23
23
|
blue-horizon, denim-blue, linen-blue, deep-navy, midnight-blue, purple,
|
|
24
24
|
ultra-violet, lilac, ocean-blue, delft-blue, indigo, lavender-gray,
|
|
25
25
|
lavender, mist-blue, storm-gray, cactus, pine-green, cyprus-green,
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
20
|
-
pink-citrus,
|
|
20
|
+
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
|
|
21
21
|
orange, clementine, apricot, papaya, kumquat, light-orange, peach,
|
|
22
22
|
flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
|
|
23
23
|
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
24
24
|
dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
|
|
25
|
-
light-blue,
|
|
25
|
+
light-blue, cerulean, surf-blue, pacific-green, blue-cobalt,
|
|
26
26
|
dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
|
|
27
27
|
midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue,
|
|
28
28
|
indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
|