@dreamcommerce/aurora 3.0.0-32 → 3.0.0-33
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/build/cjs/packages/aurora/src/assets/icons/close_line.js +10 -0
- package/build/cjs/packages/aurora/src/assets/icons/close_line.js.map +1 -0
- package/build/cjs/packages/aurora/src/assets/icons/question_icon.js +10 -0
- package/build/cjs/packages/aurora/src/assets/icons/question_icon.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_label.js +7 -4
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_label.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/box/box.js +6 -6
- package/build/cjs/packages/aurora/src/components/divider/divider.js +4 -2
- package/build/cjs/packages/aurora/src/components/divider/divider.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal.js +98 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_close_icon.js +24 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_close_icon.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_footer.js +20 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_footer.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_header.js +28 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_header.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modals_wrapper.js +53 -0
- package/build/cjs/packages/aurora/src/components/modal/components/modals_wrapper.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/hooks/use_modals.js +109 -0
- package/build/cjs/packages/aurora/src/components/modal/hooks/use_modals.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/hooks/use_modals_context.js +17 -0
- package/build/cjs/packages/aurora/src/components/modal/hooks/use_modals_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/modal_constants.js +24 -0
- package/build/cjs/packages/aurora/src/components/modal/modal_constants.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/modal_context.js +21 -0
- package/build/cjs/packages/aurora/src/components/modal/modal_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/modal_variants.js +19 -0
- package/build/cjs/packages/aurora/src/components/modal/modal_variants.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal/modals_manager.js +43 -0
- package/build/cjs/packages/aurora/src/components/modal/modals_manager.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/stack/stack.js +9 -9
- package/build/cjs/packages/aurora/src/components/tooltip/components/tooltip_trigger.js +15 -1
- package/build/cjs/packages/aurora/src/components/tooltip/components/tooltip_trigger.js.map +1 -1
- package/build/cjs/packages/aurora/src/index.js +8 -0
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/esm/packages/aurora/src/assets/icons/close_line.d.ts +1 -0
- package/build/esm/packages/aurora/src/assets/icons/close_line.js +6 -0
- package/build/esm/packages/aurora/src/assets/icons/close_line.js.map +1 -0
- package/build/esm/packages/aurora/src/assets/icons/question_icon.d.ts +1 -0
- package/build/esm/packages/aurora/src/assets/icons/question_icon.js +6 -0
- package/build/esm/packages/aurora/src/assets/icons/question_icon.js.map +1 -0
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_label.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_label.js +7 -4
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_label.js.map +1 -1
- package/build/esm/packages/aurora/src/components/box/box.d.ts +2 -2
- package/build/esm/packages/aurora/src/components/box/box.js +6 -6
- package/build/esm/packages/aurora/src/components/divider/divider.js +4 -2
- package/build/esm/packages/aurora/src/components/divider/divider.js.map +1 -1
- package/build/esm/packages/aurora/src/components/divider/divider_types.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal.js +90 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_close_icon.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_close_icon.js +16 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_close_icon.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_footer.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_footer.js +12 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_footer.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_header.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_header.js +20 -0
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_header.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/components/modals_wrapper.d.ts +6 -0
- package/build/esm/packages/aurora/src/components/modal/components/modals_wrapper.js +45 -0
- package/build/esm/packages/aurora/src/components/modal/components/modals_wrapper.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/hooks/use_modals.d.ts +12 -0
- package/build/esm/packages/aurora/src/components/modal/hooks/use_modals.js +105 -0
- package/build/esm/packages/aurora/src/components/modal/hooks/use_modals.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/hooks/use_modals_context.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/modal/hooks/use_modals_context.js +13 -0
- package/build/esm/packages/aurora/src/components/modal/hooks/use_modals_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/modal_constants.d.ts +13 -0
- package/build/esm/packages/aurora/src/components/modal/modal_constants.js +16 -0
- package/build/esm/packages/aurora/src/components/modal/modal_constants.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/modal_context.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal/modal_context.js +17 -0
- package/build/esm/packages/aurora/src/components/modal/modal_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/modal_types.d.ts +39 -0
- package/build/esm/packages/aurora/src/components/modal/modal_types.js +3 -0
- package/build/esm/packages/aurora/src/components/modal/modal_types.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/modal_variants.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal/modal_variants.js +15 -0
- package/build/esm/packages/aurora/src/components/modal/modal_variants.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal/modals_manager.d.ts +6 -0
- package/build/esm/packages/aurora/src/components/modal/modals_manager.js +35 -0
- package/build/esm/packages/aurora/src/components/modal/modals_manager.js.map +1 -0
- package/build/esm/packages/aurora/src/components/stack/stack.d.ts +2 -2
- package/build/esm/packages/aurora/src/components/stack/stack.js +9 -9
- package/build/esm/packages/aurora/src/components/stack/stack_types.d.ts +2 -2
- package/build/esm/packages/aurora/src/components/tooltip/components/tooltip_trigger.d.ts +2 -2
- package/build/esm/packages/aurora/src/components/tooltip/components/tooltip_trigger.js +15 -1
- package/build/esm/packages/aurora/src/components/tooltip/components/tooltip_trigger.js.map +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +3 -0
- package/build/esm/packages/aurora/src/index.js +3 -0
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/build/index.css +1 -1
- package/build/tailwind.config.js +17 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var react = require('@remixicon/react');
|
|
6
|
+
|
|
7
|
+
var QuestionLineIcon = react.RiQuestionLine;
|
|
8
|
+
|
|
9
|
+
exports.QuestionLineIcon = QuestionLineIcon;
|
|
10
|
+
//# sourceMappingURL=question_icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/action_list/components/action_list_label.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
7
|
var stack = require('../../stack/stack.js');
|
|
7
8
|
var box = require('../../box/box.js');
|
|
8
9
|
var typography = require('../../typography/typography.js');
|
|
@@ -12,8 +13,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
13
|
|
|
13
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
15
|
|
|
16
|
+
var _excluded = ["children"];
|
|
15
17
|
var ActionListLabel = function ActionListLabel(_ref) {
|
|
16
|
-
var children = _ref.children
|
|
18
|
+
var children = _ref.children,
|
|
19
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
17
20
|
return /*#__PURE__*/React__default['default'].createElement(box.Box, {
|
|
18
21
|
paddings: {
|
|
19
22
|
pl: '3',
|
|
@@ -22,15 +25,15 @@ var ActionListLabel = function ActionListLabel(_ref) {
|
|
|
22
25
|
pr: '0'
|
|
23
26
|
}
|
|
24
27
|
}, /*#__PURE__*/React__default['default'].createElement(stack.Stack, {
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
align: "center",
|
|
29
|
+
justify: "center",
|
|
27
30
|
spacing: "2.5"
|
|
28
31
|
}, /*#__PURE__*/React__default['default'].createElement(typography.Typography, {
|
|
29
32
|
className: "aurora-whitespace-nowrap",
|
|
30
33
|
size: "s",
|
|
31
34
|
color: "subtle",
|
|
32
35
|
weight: "bold"
|
|
33
|
-
}, children), /*#__PURE__*/React__default['default'].createElement(divider.Divider,
|
|
36
|
+
}, children), /*#__PURE__*/React__default['default'].createElement(divider.Divider, _rollupPluginBabelHelpers.objectSpread2({}, props))));
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
exports.ActionListLabel = ActionListLabel;
|
package/build/cjs/packages/aurora/src/components/action_list/components/action_list_label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
|
-
var _excluded = ["shadow", "as", "backgroundColor", "color", "borderColor", "borderStyle", "borderWidth", "borderRadius", "paddings", "zIndex", "position", "children", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "style", "className", "direction", "
|
|
15
|
+
var _excluded = ["shadow", "as", "backgroundColor", "color", "borderColor", "borderStyle", "borderWidth", "borderRadius", "paddings", "zIndex", "position", "children", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "style", "className", "direction", "justify", "align", "spacing", "wrap", "inline"];
|
|
16
16
|
var Box = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
17
17
|
var _cn;
|
|
18
18
|
var shadow = _ref.shadow,
|
|
@@ -39,15 +39,15 @@ var Box = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref)
|
|
|
39
39
|
style = _ref.style,
|
|
40
40
|
className = _ref.className,
|
|
41
41
|
direction = _ref.direction,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
justify = _ref.justify,
|
|
43
|
+
align = _ref.align,
|
|
44
44
|
spacing = _ref.spacing,
|
|
45
45
|
wrap = _ref.wrap,
|
|
46
46
|
inline = _ref.inline,
|
|
47
47
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
48
48
|
var borderWidthWithSides = borderWidth;
|
|
49
49
|
var borderRadiusWithSides = borderRadius;
|
|
50
|
-
var anyStackPropertiesSet = direction ||
|
|
50
|
+
var anyStackPropertiesSet = direction || justify || align || spacing || wrap || inline;
|
|
51
51
|
return /*#__PURE__*/React__default['default'].createElement(anyStackPropertiesSet ? stack.Stack : as, _rollupPluginBabelHelpers.objectSpread2({
|
|
52
52
|
ref: ref,
|
|
53
53
|
as: as,
|
|
@@ -62,8 +62,8 @@ var Box = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref)
|
|
|
62
62
|
maxHeight: maxHeight
|
|
63
63
|
}, style !== null && style !== void 0 ? style : {}),
|
|
64
64
|
direction: direction,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
justify: justify,
|
|
66
|
+
align: align,
|
|
67
67
|
spacing: spacing,
|
|
68
68
|
wrap: wrap,
|
|
69
69
|
inline: inline
|
|
@@ -13,13 +13,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
|
-
var _excluded = ["className", "orientation", "color", "thickness", "variant", "decorative"];
|
|
16
|
+
var _excluded = ["className", "orientation", "color", "thickness", "style", "variant", "decorative"];
|
|
17
17
|
var Divider = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
18
18
|
var className = _ref.className,
|
|
19
19
|
_ref$orientation = _ref.orientation,
|
|
20
20
|
orientation = _ref$orientation === void 0 ? divider_constants.DIVIDER_ORIENTATION.horizontal : _ref$orientation,
|
|
21
21
|
color = _ref.color,
|
|
22
22
|
thickness = _ref.thickness,
|
|
23
|
+
style = _ref.style,
|
|
23
24
|
variant = _ref.variant,
|
|
24
25
|
_ref$decorative = _ref.decorative,
|
|
25
26
|
decorative = _ref$decorative === void 0 ? true : _ref$decorative,
|
|
@@ -32,7 +33,8 @@ var Divider = /*#__PURE__*/React__default['default'].forwardRef(function (_ref,
|
|
|
32
33
|
variant: variant,
|
|
33
34
|
thickness: thickness,
|
|
34
35
|
orientation: orientation
|
|
35
|
-
}), className)
|
|
36
|
+
}), className),
|
|
37
|
+
style: style
|
|
36
38
|
}, props));
|
|
37
39
|
});
|
|
38
40
|
Divider.displayName = 'Divider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var cn = require('../../../../utilities/cn.js');
|
|
8
|
+
var modal_constants = require('../../modal_constants.js');
|
|
9
|
+
var modal_footer = require('./modal_footer.js');
|
|
10
|
+
var modal_header = require('./modal_header.js');
|
|
11
|
+
var reactDom = require('react-dom');
|
|
12
|
+
var modal_variants = require('../../modal_variants.js');
|
|
13
|
+
var use_modals_context = require('../../hooks/use_modals_context.js');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
+
|
|
19
|
+
var Modal = function Modal(_ref) {
|
|
20
|
+
var name = _ref.name,
|
|
21
|
+
hideAllModalsOnClose = _ref.hideAllModalsOnClose,
|
|
22
|
+
_ref$width = _ref.width,
|
|
23
|
+
width = _ref$width === void 0 ? modal_constants.MODAL_WIDTH_VARIANT.m : _ref$width,
|
|
24
|
+
_ref$hasCloseIcon = _ref.hasCloseIcon,
|
|
25
|
+
hasCloseIcon = _ref$hasCloseIcon === void 0 ? true : _ref$hasCloseIcon,
|
|
26
|
+
onCloseAction = _ref.onCloseAction,
|
|
27
|
+
header = _ref.header,
|
|
28
|
+
footer = _ref.footer,
|
|
29
|
+
children = _ref.children;
|
|
30
|
+
var _useState = React.useState(false),
|
|
31
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
32
|
+
visibleClass = _useState2[0],
|
|
33
|
+
setVisibleClass = _useState2[1];
|
|
34
|
+
var _useModalsContext = use_modals_context.useModalsContext(),
|
|
35
|
+
modalsManagerContainerSelector = _useModalsContext.modalsManagerContainerSelector,
|
|
36
|
+
addModal = _useModalsContext.addModal,
|
|
37
|
+
getModal = _useModalsContext.getModal,
|
|
38
|
+
hideModal = _useModalsContext.hideModal,
|
|
39
|
+
hideAllModals = _useModalsContext.hideAllModals;
|
|
40
|
+
var $modalsManagerContainer = document.querySelector(modalsManagerContainerSelector);
|
|
41
|
+
var modal = getModal(name);
|
|
42
|
+
var _useState3 = React.useState(false),
|
|
43
|
+
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
|
44
|
+
renderModal = _useState4[0],
|
|
45
|
+
setRenderModal = _useState4[1];
|
|
46
|
+
React.useEffect(function () {
|
|
47
|
+
addModal({
|
|
48
|
+
name: name,
|
|
49
|
+
visibilityState: modal_constants.MODAL_VISIBILITY_STATE.none,
|
|
50
|
+
width: width
|
|
51
|
+
});
|
|
52
|
+
}, []);
|
|
53
|
+
React.useEffect(function () {
|
|
54
|
+
var showModalTimeout;
|
|
55
|
+
var hideModalTimeout;
|
|
56
|
+
if ((modal === null || modal === void 0 ? void 0 : modal.visibilityState) === modal_constants.MODAL_VISIBILITY_STATE.visible) {
|
|
57
|
+
setRenderModal(true);
|
|
58
|
+
showModalTimeout = setTimeout(function () {
|
|
59
|
+
setVisibleClass(true);
|
|
60
|
+
}, modal_constants.MODAL_SLIDE_FADE_DURATION);
|
|
61
|
+
}
|
|
62
|
+
if ((modal === null || modal === void 0 ? void 0 : modal.visibilityState) === modal_constants.MODAL_VISIBILITY_STATE.hidden) {
|
|
63
|
+
setVisibleClass(false);
|
|
64
|
+
}
|
|
65
|
+
if ((modal === null || modal === void 0 ? void 0 : modal.visibilityState) === modal_constants.MODAL_VISIBILITY_STATE.none) {
|
|
66
|
+
setVisibleClass(false);
|
|
67
|
+
hideModalTimeout = setTimeout(function () {
|
|
68
|
+
setRenderModal(false);
|
|
69
|
+
}, modal_constants.MODAL_SLIDE_FADE_DURATION);
|
|
70
|
+
}
|
|
71
|
+
return function () {
|
|
72
|
+
clearTimeout(showModalTimeout);
|
|
73
|
+
clearTimeout(hideModalTimeout);
|
|
74
|
+
};
|
|
75
|
+
}, [modal]);
|
|
76
|
+
var handleCloseModal = function handleCloseModal() {
|
|
77
|
+
hideAllModalsOnClose ? hideAllModals(onCloseAction) : hideModal(name, onCloseAction);
|
|
78
|
+
};
|
|
79
|
+
if (!$modalsManagerContainer) return null;
|
|
80
|
+
return renderModal ? /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React__default['default'].createElement("div", {
|
|
81
|
+
"data-modal-id": name,
|
|
82
|
+
"data-test-id": "modal",
|
|
83
|
+
className: cn.cn(modal_variants.modalVariants({
|
|
84
|
+
width: width
|
|
85
|
+
}), visibleClass ? 'aurora-opacity-100 aurora-animate-modal-slide-in' : 'aurora-opacity-0 aurora-animate-modal-slide-out')
|
|
86
|
+
}, header && /*#__PURE__*/React__default['default'].createElement(modal_header.ModalHeader, {
|
|
87
|
+
hasCloseIcon: hasCloseIcon,
|
|
88
|
+
text: header.text,
|
|
89
|
+
onClose: handleCloseModal
|
|
90
|
+
}), children && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
91
|
+
className: "aurora-overflow-y-auto"
|
|
92
|
+
}, children), footer && /*#__PURE__*/React__default['default'].createElement(modal_footer.ModalFooter, {
|
|
93
|
+
text: footer.text
|
|
94
|
+
})), $modalsManagerContainer) : null;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
exports.Modal = Modal;
|
|
98
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var close_line = require('../../../../assets/icons/close_line.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
var ModalCloseIcon = function ModalCloseIcon(_ref) {
|
|
13
|
+
var onClose = _ref.onClose;
|
|
14
|
+
return /*#__PURE__*/React__default['default'].createElement("button", {
|
|
15
|
+
className: "aurora-p-1 aurora-border-0 aurora-bg-none aurora-cursor-pointer aurora-rounded-4 aurora-bg-transparent hover:aurora-bg-hover",
|
|
16
|
+
onClick: function onClick() {
|
|
17
|
+
return onClose();
|
|
18
|
+
},
|
|
19
|
+
"data-test-id": "close-modal"
|
|
20
|
+
}, /*#__PURE__*/React__default['default'].createElement(close_line.CloseLine, null));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.ModalCloseIcon = ModalCloseIcon;
|
|
24
|
+
//# sourceMappingURL=modal_close_icon.js.map
|
package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_close_icon.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
|
|
11
|
+
var ModalFooter = function ModalFooter(_ref) {
|
|
12
|
+
var text = _ref.text;
|
|
13
|
+
return /*#__PURE__*/React__default['default'].createElement("footer", {
|
|
14
|
+
className: 'aurora-flex aurora-items-center aurora-justify-end aurora-gap-3 aurora-mt-5',
|
|
15
|
+
"data-test-id": "modal-footer"
|
|
16
|
+
}, text);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.ModalFooter = ModalFooter;
|
|
20
|
+
//# sourceMappingURL=modal_footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var modal_close_icon = require('./modal_close_icon.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
var ModalHeader = function ModalHeader(_ref) {
|
|
13
|
+
var _ref$text = _ref.text,
|
|
14
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
15
|
+
onClose = _ref.onClose,
|
|
16
|
+
hasCloseIcon = _ref.hasCloseIcon;
|
|
17
|
+
return /*#__PURE__*/React__default['default'].createElement("header", {
|
|
18
|
+
className: 'aurora-flex aurora-items-center aurora-justify-between aurora-mb-5',
|
|
19
|
+
"data-test-id": "modal-header"
|
|
20
|
+
}, /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
21
|
+
className: "aurora-font-bold aurora-text-xl"
|
|
22
|
+
}, text), hasCloseIcon && /*#__PURE__*/React__default['default'].createElement(modal_close_icon.ModalCloseIcon, {
|
|
23
|
+
onClose: onClose
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.ModalHeader = ModalHeader;
|
|
28
|
+
//# sourceMappingURL=modal_header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var modal_constants = require('../modal_constants.js');
|
|
8
|
+
var reactDom = require('react-dom');
|
|
9
|
+
var use_modals_context = require('../hooks/use_modals_context.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
|
|
15
|
+
var ModalsWrapper = function ModalsWrapper(_ref) {
|
|
16
|
+
var children = _ref.children;
|
|
17
|
+
var _useState = React.useState(false),
|
|
18
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
19
|
+
showWrapper = _useState2[0],
|
|
20
|
+
setShowWrapper = _useState2[1];
|
|
21
|
+
var _useState3 = React.useState(false),
|
|
22
|
+
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
|
23
|
+
visibleClass = _useState4[0],
|
|
24
|
+
setVisibleClass = _useState4[1];
|
|
25
|
+
var _useModalsContext = use_modals_context.useModalsContext(),
|
|
26
|
+
openedModals = _useModalsContext.openedModals;
|
|
27
|
+
React.useEffect(function () {
|
|
28
|
+
var showWrapperTimeout;
|
|
29
|
+
if (openedModals.length) {
|
|
30
|
+
setShowWrapper(true);
|
|
31
|
+
setVisibleClass(true);
|
|
32
|
+
} else {
|
|
33
|
+
setVisibleClass(false);
|
|
34
|
+
showWrapperTimeout = setTimeout(function () {
|
|
35
|
+
setShowWrapper(false);
|
|
36
|
+
}, modal_constants.MODALS_WRAPPER_BACKDROP_FADE_DURATION);
|
|
37
|
+
}
|
|
38
|
+
return function () {
|
|
39
|
+
return clearTimeout(showWrapperTimeout);
|
|
40
|
+
};
|
|
41
|
+
}, [openedModals]);
|
|
42
|
+
return /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React__default['default'].createElement("div", null, showWrapper && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
43
|
+
className: "aurora-fixed aurora-flex aurora-items-center aurora-justify-center aurora-top-0 aurora-left-0 aurora-w-full aurora-h-full aurora-z-20 aurora-p-4"
|
|
44
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
45
|
+
className: "aurora-absolute aurora-inset-x-0 aurora-inset-y-0 aurora-bg-inverse aurora-z-10 aurora-transition-opacity aurora-duration-300 aurora-animate-modal-backdrop-fade-in ".concat(visibleClass ? 'aurora-opacity-70' : 'aurora-opacity-0')
|
|
46
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
47
|
+
id: modal_constants.MODALS_CONTENT_ID,
|
|
48
|
+
className: "aurora-flex aurora-items-center aurora-justify-center aurora-z-30"
|
|
49
|
+
}))), children), document.body);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.ModalsWrapper = ModalsWrapper;
|
|
53
|
+
//# sourceMappingURL=modals_wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var modal_constants = require('../modal_constants.js');
|
|
8
|
+
|
|
9
|
+
var useModals = function useModals() {
|
|
10
|
+
var _useState = React.useState([]),
|
|
11
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
12
|
+
modalsStack = _useState2[0],
|
|
13
|
+
setModalsStack = _useState2[1];
|
|
14
|
+
var _useState3 = React.useState([]),
|
|
15
|
+
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
|
16
|
+
openedModals = _useState4[0],
|
|
17
|
+
setOpenedModals = _useState4[1];
|
|
18
|
+
var modalsManagerContainerSelector = "#".concat(modal_constants.MODALS_CONTENT_ID);
|
|
19
|
+
var addModal = function addModal(modal) {
|
|
20
|
+
setModalsStack(function (stack) {
|
|
21
|
+
var modalNameAlreadyExist = stack.some(function (stackModal) {
|
|
22
|
+
return stackModal.name === modal.name;
|
|
23
|
+
});
|
|
24
|
+
if (modalNameAlreadyExist) {
|
|
25
|
+
return _rollupPluginBabelHelpers.toConsumableArray(stack);
|
|
26
|
+
} else {
|
|
27
|
+
return [].concat(_rollupPluginBabelHelpers.toConsumableArray(stack), [modal]);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
var updateModal = function updateModal(modal) {
|
|
32
|
+
setModalsStack(function (previousStack) {
|
|
33
|
+
var updatedStack = previousStack.map(function (stackModal) {
|
|
34
|
+
return stackModal.name === modal.name ? _rollupPluginBabelHelpers.objectSpread2({}, modal) : stackModal;
|
|
35
|
+
});
|
|
36
|
+
return updatedStack;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var getModal = function getModal(modalName) {
|
|
40
|
+
return modalsStack.find(function (stackModal) {
|
|
41
|
+
return stackModal.name === modalName;
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var showModal = function showModal(modalName) {
|
|
45
|
+
setOpenedModals(function (modals) {
|
|
46
|
+
setVisibleState(modals, modal_constants.MODAL_VISIBILITY_STATE.hidden);
|
|
47
|
+
return [].concat(_rollupPluginBabelHelpers.toConsumableArray(modals), [modalName]);
|
|
48
|
+
});
|
|
49
|
+
setVisibleState(modalName, modal_constants.MODAL_VISIBILITY_STATE.visible);
|
|
50
|
+
};
|
|
51
|
+
var hideModal = function hideModal(modalName, onCloseAction) {
|
|
52
|
+
setOpenedModals(function (modals) {
|
|
53
|
+
var secondToLastItem = modals[modals.length - 2];
|
|
54
|
+
setVisibleState(secondToLastItem, modal_constants.MODAL_VISIBILITY_STATE.visible);
|
|
55
|
+
return modals.filter(function (modal) {
|
|
56
|
+
return modal !== modalName;
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
setVisibleState(modalName, modal_constants.MODAL_VISIBILITY_STATE.none);
|
|
60
|
+
onCloseAction && onCloseAction();
|
|
61
|
+
};
|
|
62
|
+
var hideAllModals = function hideAllModals(onCloseAction) {
|
|
63
|
+
setOpenedModals([]);
|
|
64
|
+
setVisibleStatesToNone();
|
|
65
|
+
onCloseAction && onCloseAction();
|
|
66
|
+
};
|
|
67
|
+
var setVisibleState = function setVisibleState(modalName, state) {
|
|
68
|
+
if (typeof modalName === 'string') {
|
|
69
|
+
setModalsStack(function (prevState) {
|
|
70
|
+
return prevState.map(function (modal) {
|
|
71
|
+
return modal.name === modalName ? _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, modal), {}, {
|
|
72
|
+
visibilityState: state
|
|
73
|
+
}) : modal;
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
} else {
|
|
77
|
+
setModalsStack(function (prevState) {
|
|
78
|
+
return prevState.map(function (modal) {
|
|
79
|
+
if (!modalName) return modal;
|
|
80
|
+
return modalName.includes(modal.name) ? _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, modal), {}, {
|
|
81
|
+
visibilityState: state
|
|
82
|
+
}) : modal;
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
var setVisibleStatesToNone = function setVisibleStatesToNone() {
|
|
88
|
+
setModalsStack(function (prevState) {
|
|
89
|
+
return prevState.map(function (modal) {
|
|
90
|
+
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, modal), {}, {
|
|
91
|
+
visibilityState: modal_constants.MODAL_VISIBILITY_STATE.none
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
modalsManagerContainerSelector: modalsManagerContainerSelector,
|
|
98
|
+
addModal: addModal,
|
|
99
|
+
updateModal: updateModal,
|
|
100
|
+
getModal: getModal,
|
|
101
|
+
showModal: showModal,
|
|
102
|
+
hideModal: hideModal,
|
|
103
|
+
hideAllModals: hideAllModals,
|
|
104
|
+
openedModals: openedModals
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
exports.default = useModals;
|
|
109
|
+
//# sourceMappingURL=use_modals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var modal_context = require('../modal_context.js');
|
|
7
|
+
|
|
8
|
+
function useModalsContext() {
|
|
9
|
+
var context = React.useContext(modal_context.ModalsManagerContext);
|
|
10
|
+
if (Object.keys(context).length === 0 && context.constructor === Object) {
|
|
11
|
+
throw new Error("Modal component cannot be rendered outside the ModalWrapper component");
|
|
12
|
+
}
|
|
13
|
+
return context;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.useModalsContext = useModalsContext;
|
|
17
|
+
//# sourceMappingURL=use_modals_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var MODALS_CONTENT_ID = 'modals-content';
|
|
6
|
+
var MODALS_WRAPPER_BACKDROP_FADE_DURATION = 300;
|
|
7
|
+
var MODAL_SLIDE_FADE_DURATION = 200;
|
|
8
|
+
var MODAL_VISIBILITY_STATE = {
|
|
9
|
+
none: 'none',
|
|
10
|
+
hidden: 'hidden',
|
|
11
|
+
visible: 'visible'
|
|
12
|
+
};
|
|
13
|
+
var MODAL_WIDTH_VARIANT = {
|
|
14
|
+
s: 's',
|
|
15
|
+
m: 'm',
|
|
16
|
+
l: 'l'
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.MODALS_CONTENT_ID = MODALS_CONTENT_ID;
|
|
20
|
+
exports.MODALS_WRAPPER_BACKDROP_FADE_DURATION = MODALS_WRAPPER_BACKDROP_FADE_DURATION;
|
|
21
|
+
exports.MODAL_SLIDE_FADE_DURATION = MODAL_SLIDE_FADE_DURATION;
|
|
22
|
+
exports.MODAL_VISIBILITY_STATE = MODAL_VISIBILITY_STATE;
|
|
23
|
+
exports.MODAL_WIDTH_VARIANT = MODAL_WIDTH_VARIANT;
|
|
24
|
+
//# sourceMappingURL=modal_constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
var ModalsManagerContext = /*#__PURE__*/React.createContext({
|
|
8
|
+
modalsManagerContainerSelector: '',
|
|
9
|
+
addModal: function addModal() {},
|
|
10
|
+
updateModal: function updateModal() {},
|
|
11
|
+
getModal: function getModal() {
|
|
12
|
+
return undefined;
|
|
13
|
+
},
|
|
14
|
+
showModal: function showModal() {},
|
|
15
|
+
hideModal: function hideModal() {},
|
|
16
|
+
hideAllModals: function hideAllModals() {},
|
|
17
|
+
openedModals: []
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.ModalsManagerContext = ModalsManagerContext;
|
|
21
|
+
//# sourceMappingURL=modal_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
7
|
+
var modal_constants = require('./modal_constants.js');
|
|
8
|
+
|
|
9
|
+
var modalVariants = index.cva('aurora-w-full aurora-absolute aurora-bg aurora-rounded-16 aurora-shadow-xl aurora-p-6 aurora-opacity-0 aurora-transition-all', {
|
|
10
|
+
variants: {
|
|
11
|
+
width: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, modal_constants.MODAL_WIDTH_VARIANT.s, 'aurora-max-w-[25rem]'), modal_constants.MODAL_WIDTH_VARIANT.m, 'aurora-max-w-[40rem]'), modal_constants.MODAL_WIDTH_VARIANT.l, 'aurora-max-w-[61rem]')
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
width: modal_constants.MODAL_WIDTH_VARIANT.m
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
exports.modalVariants = modalVariants;
|
|
19
|
+
//# sourceMappingURL=modal_variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|