@dreamcommerce/aurora 2.16.7 → 2.16.8-1
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/_virtual/_rollupPluginBabelHelpers.js +191 -0
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/build/cjs/external/@pqina/pintura/pintura.css.js +11 -0
- package/build/cjs/external/@pqina/pintura/pintura.css.js.map +1 -0
- package/build/cjs/external/@pqina/pintura/pintura.js +121 -0
- package/build/cjs/external/@pqina/pintura/pintura.js.map +1 -0
- package/build/cjs/external/@pqina/react-pintura/PinturaEditor.js +83 -0
- package/build/cjs/external/@pqina/react-pintura/PinturaEditor.js.map +1 -0
- package/build/cjs/external/@pqina/react-pintura/PinturaEditorModal.js +95 -0
- package/build/cjs/external/@pqina/react-pintura/PinturaEditorModal.js.map +1 -0
- package/build/cjs/external/@pqina/react-pintura/PinturaEditorOverlay.js +83 -0
- package/build/cjs/external/@pqina/react-pintura/PinturaEditorOverlay.js.map +1 -0
- package/build/cjs/external/@pqina/react-pintura/events.js +46 -0
- package/build/cjs/external/@pqina/react-pintura/events.js.map +1 -0
- package/build/cjs/packages/aurora/src/assets/icon_image.js +32 -0
- package/build/cjs/packages/aurora/src/assets/icon_image.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_xhr_image_picker/index.js +4 -2
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_xhr_image_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js +1 -1
- package/build/cjs/packages/aurora/src/components/file_picker/use_file_picker.js +6 -2
- package/build/cjs/packages/aurora/src/components/file_picker/use_file_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/css_classes.js +2 -0
- package/build/cjs/packages/aurora/src/components/image_picker/css_classes.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/index.js +25 -4
- package/build/cjs/packages/aurora/src/components/image_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/modal/hoc/absolute_modal/index.js +5 -5
- package/build/cjs/packages/aurora/src/components/modal/hoc/absolute_modal/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/modal/hoc/relative_modal/index.js +5 -5
- package/build/cjs/packages/aurora/src/components/modal/hoc/relative_modal/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/modal_new/components/modal/modal.js +112 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modal/modal.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modal/modal_footer.js +21 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modal/modal_footer.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modal/modal_header.js +31 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modal/modal_header.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modals_wrapper.js +66 -0
- package/build/cjs/packages/aurora/src/components/modal_new/components/modals_wrapper.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/constants.js +25 -0
- package/build/cjs/packages/aurora/src/components/modal_new/constants.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/context.js +21 -0
- package/build/cjs/packages/aurora/src/components/modal_new/context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/css_classes.js +42 -0
- package/build/cjs/packages/aurora/src/components/modal_new/css_classes.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/hooks/use_modals.js +119 -0
- package/build/cjs/packages/aurora/src/components/modal_new/hooks/use_modals.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/hooks/use_modals_context.js +19 -0
- package/build/cjs/packages/aurora/src/components/modal_new/hooks/use_modals_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/modal_new/index.js +45 -0
- package/build/cjs/packages/aurora/src/components/modal_new/index.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/pintura/index.js +51 -0
- package/build/cjs/packages/aurora/src/components/pintura/index.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/xhr_image_picker/index.js +52 -9
- package/build/cjs/packages/aurora/src/components/xhr_image_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/css/image_picker/main.module.less.js +3 -1
- package/build/cjs/packages/aurora/src/css/image_picker/main.module.less.js.map +1 -1
- package/build/cjs/packages/aurora/src/css/modal_new/main.module.less.js +34 -0
- package/build/cjs/packages/aurora/src/css/modal_new/main.module.less.js.map +1 -0
- package/build/cjs/packages/aurora/src/index.js +57 -49
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/cjs/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js +0 -5
- package/build/cjs/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js.map +1 -1
- package/build/esm/_virtual/_rollupPluginBabelHelpers.js +181 -1
- package/build/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/build/esm/external/@pqina/pintura/pintura.css.js +7 -0
- package/build/esm/external/@pqina/pintura/pintura.css.js.map +1 -0
- package/build/esm/external/@pqina/pintura/pintura.js +15 -0
- package/build/esm/external/@pqina/pintura/pintura.js.map +1 -0
- package/build/esm/external/@pqina/react-pintura/PinturaEditor.js +75 -0
- package/build/esm/external/@pqina/react-pintura/PinturaEditor.js.map +1 -0
- package/build/esm/external/@pqina/react-pintura/PinturaEditorModal.js +87 -0
- package/build/esm/external/@pqina/react-pintura/PinturaEditorModal.js.map +1 -0
- package/build/esm/external/@pqina/react-pintura/PinturaEditorOverlay.js +75 -0
- package/build/esm/external/@pqina/react-pintura/PinturaEditorOverlay.js.map +1 -0
- package/build/esm/external/@pqina/react-pintura/events.js +41 -0
- package/build/esm/external/@pqina/react-pintura/events.js.map +1 -0
- package/build/esm/packages/aurora/src/assets/icon_image.d.ts +4 -0
- package/build/esm/packages/aurora/src/assets/icon_image.js +24 -0
- package/build/esm/packages/aurora/src/assets/icon_image.js.map +1 -0
- package/build/esm/packages/aurora/src/components/controls/hoc/control_xhr_image_picker/index.js +4 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_xhr_image_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/types.d.ts +1 -0
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js +1 -1
- package/build/esm/packages/aurora/src/components/file_picker/types.d.ts +1 -0
- package/build/esm/packages/aurora/src/components/file_picker/use_file_picker.js +6 -2
- package/build/esm/packages/aurora/src/components/file_picker/use_file_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/gallery/index.js +3 -3
- package/build/esm/packages/aurora/src/components/image_picker/css_classes.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/image_picker/css_classes.js +2 -0
- package/build/esm/packages/aurora/src/components/image_picker/css_classes.js.map +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/index.js +25 -4
- package/build/esm/packages/aurora/src/components/image_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/types.d.ts +3 -1
- package/build/esm/packages/aurora/src/components/image_picker/types.js.map +1 -1
- package/build/esm/packages/aurora/src/components/modal/hoc/absolute_modal/index.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/modal/hoc/absolute_modal/index.js +5 -5
- package/build/esm/packages/aurora/src/components/modal/hoc/absolute_modal/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/modal/hoc/relative_modal/index.js +5 -5
- package/build/esm/packages/aurora/src/components/modal/hoc/relative_modal/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal.js +103 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal_footer.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal_footer.js +13 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal_footer.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal_header.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal_header.js +23 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modal/modal_header.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modals_wrapper.d.ts +6 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modals_wrapper.js +57 -0
- package/build/esm/packages/aurora/src/components/modal_new/components/modals_wrapper.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/constants.d.ts +14 -0
- package/build/esm/packages/aurora/src/components/modal_new/constants.js +17 -0
- package/build/esm/packages/aurora/src/components/modal_new/constants.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/context.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/modal_new/context.js +17 -0
- package/build/esm/packages/aurora/src/components/modal_new/context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/css_classes.d.ts +18 -0
- package/build/esm/packages/aurora/src/components/modal_new/css_classes.js +21 -0
- package/build/esm/packages/aurora/src/components/modal_new/css_classes.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/hooks/use_modals.d.ts +12 -0
- package/build/esm/packages/aurora/src/components/modal_new/hooks/use_modals.js +115 -0
- package/build/esm/packages/aurora/src/components/modal_new/hooks/use_modals.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/hooks/use_modals_context.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/modal_new/hooks/use_modals_context.js +15 -0
- package/build/esm/packages/aurora/src/components/modal_new/hooks/use_modals_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/index.d.ts +6 -0
- package/build/esm/packages/aurora/src/components/modal_new/index.js +37 -0
- package/build/esm/packages/aurora/src/components/modal_new/index.js.map +1 -0
- package/build/esm/packages/aurora/src/components/modal_new/types.d.ts +35 -0
- package/build/esm/packages/aurora/src/components/modal_new/types.js +3 -0
- package/build/esm/packages/aurora/src/components/modal_new/types.js.map +1 -0
- package/build/esm/packages/aurora/src/components/pintura/index.d.ts +10 -0
- package/build/esm/packages/aurora/src/components/pintura/index.js +43 -0
- package/build/esm/packages/aurora/src/components/pintura/index.js.map +1 -0
- package/build/esm/packages/aurora/src/components/xhr_image_picker/index.js +54 -11
- package/build/esm/packages/aurora/src/components/xhr_image_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/xhr_image_picker/types.d.ts +2 -1
- package/build/esm/packages/aurora/src/css/image_picker/main.module.less.js +3 -1
- package/build/esm/packages/aurora/src/css/image_picker/main.module.less.js.map +1 -1
- package/build/esm/packages/aurora/src/css/modal_new/main.module.less.js +30 -0
- package/build/esm/packages/aurora/src/css/modal_new/main.module.less.js.map +1 -0
- package/build/esm/packages/aurora/src/index.d.ts +5 -1
- package/build/esm/packages/aurora/src/index.js +4 -0
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/build/esm/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js +0 -5
- package/build/esm/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,OAAO,uDAA2D;AAClE,wCAAwC,mDAAuD;AAC/F,0BAA0B,+DAAmE;AAC7F,OAAO,oEAAwE;AAC/E,OAAO,sEAA0E;AACjF;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,8 +1,14 @@
|
|
|
1
|
-
import React, { useRef, useEffect } from 'react';
|
|
2
|
-
import { asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { FILES_EXTENSIONS } from '../file_picker/constants.js';
|
|
4
4
|
import { REQUEST_TYPES } from '../../../../star_core/build/esm/packages/star_core/src/features/http_requester/http_requester_contants.js';
|
|
5
|
+
import CSS_CLASSES from '../image_picker/css_classes.js';
|
|
6
|
+
import IconImage from '../../assets/icon_image.js';
|
|
7
|
+
import styles from '../../css/image_picker/main.module.less.js';
|
|
5
8
|
import ImagePicker from '../image_picker/index.js';
|
|
9
|
+
import { useModalsContext } from '../modal_new/hooks/use_modals_context.js';
|
|
10
|
+
import { ModalNew } from '../modal_new/components/modal/modal.js';
|
|
11
|
+
import { Pintura } from '../pintura/index.js';
|
|
6
12
|
import { useHttpApi } from '../../hooks/use_http_api.js';
|
|
7
13
|
|
|
8
14
|
var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
@@ -16,11 +22,28 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
16
22
|
onChange = _ref.onChange,
|
|
17
23
|
onImageSizeUpdated = _ref.onImageSizeUpdated,
|
|
18
24
|
_ref$allowedExtension = _ref.allowedExtensions,
|
|
19
|
-
allowedExtensions = _ref$allowedExtension === void 0 ? [FILES_EXTENSIONS.WEBP, FILES_EXTENSIONS.JPG, FILES_EXTENSIONS.PNG, FILES_EXTENSIONS.GIF, FILES_EXTENSIONS.SVG, FILES_EXTENSIONS.JPEG] : _ref$allowedExtension
|
|
25
|
+
allowedExtensions = _ref$allowedExtension === void 0 ? [FILES_EXTENSIONS.WEBP, FILES_EXTENSIONS.JPG, FILES_EXTENSIONS.PNG, FILES_EXTENSIONS.GIF, FILES_EXTENSIONS.SVG, FILES_EXTENSIONS.JPEG] : _ref$allowedExtension,
|
|
26
|
+
hasImageEditor = _ref.hasImageEditor;
|
|
20
27
|
var httpApi = useHttpApi();
|
|
21
28
|
var pendingRequestRef = React.useRef();
|
|
22
29
|
var initialImageFile = useRef();
|
|
23
30
|
|
|
31
|
+
var _useModalsContext = useModalsContext(),
|
|
32
|
+
showModal = _useModalsContext.showModal,
|
|
33
|
+
hideModal = _useModalsContext.hideModal;
|
|
34
|
+
|
|
35
|
+
var modalId = "image-picker-editor-".concat(id);
|
|
36
|
+
|
|
37
|
+
var _useState = useState(''),
|
|
38
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
+
pinturaSrc = _useState2[0],
|
|
40
|
+
setPinturaSrc = _useState2[1];
|
|
41
|
+
|
|
42
|
+
var _useState3 = useState(),
|
|
43
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
44
|
+
pinturaResult = _useState4[0],
|
|
45
|
+
setPinturaResult = _useState4[1];
|
|
46
|
+
|
|
24
47
|
var handleControlChange = /*#__PURE__*/function () {
|
|
25
48
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
26
49
|
var fileList, fileAsDataUrl, _httpApi$fetch, response, cancelRequest, data;
|
|
@@ -29,19 +52,20 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
29
52
|
while (1) switch (_context.prev = _context.next) {
|
|
30
53
|
case 0:
|
|
31
54
|
fileList = file.fileList, fileAsDataUrl = file.fileAsDataUrl;
|
|
55
|
+
setPinturaSrc(fileAsDataUrl);
|
|
32
56
|
onChange === null || onChange === void 0 || onChange({
|
|
33
57
|
fileList: fileList,
|
|
34
58
|
fileAsDataUrl: fileAsDataUrl
|
|
35
59
|
});
|
|
36
60
|
|
|
37
61
|
if (!(!fileList || !fileList.length)) {
|
|
38
|
-
_context.next =
|
|
62
|
+
_context.next = 5;
|
|
39
63
|
break;
|
|
40
64
|
}
|
|
41
65
|
|
|
42
66
|
return _context.abrupt("return");
|
|
43
67
|
|
|
44
|
-
case
|
|
68
|
+
case 5:
|
|
45
69
|
if (pendingRequestRef.current) {
|
|
46
70
|
pendingRequestRef.current();
|
|
47
71
|
pendingRequestRef.current = undefined;
|
|
@@ -53,14 +77,14 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
53
77
|
data: fileList[0]
|
|
54
78
|
}), response = _httpApi$fetch.response, cancelRequest = _httpApi$fetch.cancelRequest;
|
|
55
79
|
pendingRequestRef.current = cancelRequest;
|
|
56
|
-
_context.next =
|
|
80
|
+
_context.next = 10;
|
|
57
81
|
return response;
|
|
58
82
|
|
|
59
|
-
case
|
|
83
|
+
case 10:
|
|
60
84
|
data = _context.sent;
|
|
61
85
|
onUploaded === null || onUploaded === void 0 || onUploaded(data, fileList[0]);
|
|
62
86
|
|
|
63
|
-
case
|
|
87
|
+
case 12:
|
|
64
88
|
case "end":
|
|
65
89
|
return _context.stop();
|
|
66
90
|
}
|
|
@@ -80,7 +104,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
80
104
|
return (_pendingRequestRef$cu = pendingRequestRef.current) === null || _pendingRequestRef$cu === void 0 ? void 0 : _pendingRequestRef$cu.call(pendingRequestRef);
|
|
81
105
|
};
|
|
82
106
|
}, []);
|
|
83
|
-
return /*#__PURE__*/React.createElement(ImagePicker, {
|
|
107
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ImagePicker, {
|
|
84
108
|
id: id,
|
|
85
109
|
name: name,
|
|
86
110
|
onChange: handleControlChange,
|
|
@@ -88,8 +112,27 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
88
112
|
errors: errors,
|
|
89
113
|
allowedExtensions: allowedExtensions,
|
|
90
114
|
initialFile: initialImageFile.current,
|
|
91
|
-
onImageSizeUpdated: onImageSizeUpdated
|
|
92
|
-
|
|
115
|
+
onImageSizeUpdated: onImageSizeUpdated,
|
|
116
|
+
topButtons: hasImageEditor && /*#__PURE__*/React.createElement("button", {
|
|
117
|
+
className: styles[CSS_CLASSES.imagePickerEditButton],
|
|
118
|
+
onClick: function onClick() {
|
|
119
|
+
return showModal(modalId);
|
|
120
|
+
}
|
|
121
|
+
}, /*#__PURE__*/React.createElement(IconImage, null), "Edytuj"),
|
|
122
|
+
editedImageResult: pinturaResult
|
|
123
|
+
}), /*#__PURE__*/React.createElement(ModalNew, {
|
|
124
|
+
name: modalId,
|
|
125
|
+
header: {
|
|
126
|
+
content: 'Modal'
|
|
127
|
+
},
|
|
128
|
+
minWidth: "80vw"
|
|
129
|
+
}, /*#__PURE__*/React.createElement(Pintura, {
|
|
130
|
+
src: pinturaSrc,
|
|
131
|
+
onEditionDone: function onEditionDone(result) {
|
|
132
|
+
hideModal(modalId);
|
|
133
|
+
setPinturaResult(result);
|
|
134
|
+
}
|
|
135
|
+
})));
|
|
93
136
|
};
|
|
94
137
|
|
|
95
138
|
export default XhrImagePicker;
|
|
@@ -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;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;"}
|
|
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;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,7 +1,8 @@
|
|
|
1
1
|
import { IImagePicker } from "../image_picker/types";
|
|
2
2
|
import { IRequestResponse } from '@dreamcommerce/star_core';
|
|
3
|
-
export interface IXhrImagePickerProps extends IImagePicker {
|
|
3
|
+
export interface IXhrImagePickerProps extends Omit<IImagePicker, 'topButtons'> {
|
|
4
4
|
url: string;
|
|
5
5
|
onUploaded?: (resp: IRequestResponse<any>, file: File) => void;
|
|
6
6
|
onUploadError?: Function;
|
|
7
|
+
hasImageEditor?: boolean;
|
|
7
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_image-picker__wrapper__2RK3f {\n border: 1px dashed #abb4cd;\n border-radius: 2px;\n}\n.main-module_image-picker__wrapper-error__kCZeA {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-error__kCZeA:hover {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc {\n position: relative;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__label__1i_Fq {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 46px;\n left: 0;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__description__1v13N {\n display: none;\n}\n.main-module_image-picker__wrapper__2RK3f:hover {\n border-color: #135cc8;\n}\n.main-module_image-picker__wrapper__2RK3f:hover .main-module_image-picker__upload-icon__3sMvN {\n fill: #3c83ec;\n}\n.main-module_image-picker__label__1i_Fq {\n cursor: pointer;\n}\n.main-module_image-picker__input__3Wu2I {\n display: none;\n}\n.main-module_image-picker__description__1v13N {\n padding: 2rem 0;\n text-align: center;\n color: #3c83ec;\n}\n.main-module_image-picker__supported-formats__1_R_X {\n font-size: 12px;\n color: #59687e;\n}\n.main-module_image-picker__upload-icon__3sMvN {\n width: 1rem;\n height: auto;\n margin-bottom: 1rem;\n fill: #abb4cd;\n}\n.main-module_image-picker__delete-button__21_kT {\n display: flex;\n align-items: center;\n color: #3c83ec;\n cursor: pointer;\n background: transparent;\n}\n.main-module_image-picker__delete-button__21_kT:hover .main-module_image-picker__delete-label__3v2ot {\n text-decoration: underline;\n}\n.main-module_image-picker__delete-button__21_kT .main-module_image-picker__delete-label__3v2ot {\n color: #3c83ec;\n}\n.main-module_image-picker__delete-button__21_kT svg {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrong-file-format-icon__X-NL0 {\n margin: 2rem 0 0.5rem;\n fill: #ffffff;\n}\n.main-module_image-picker__delete-icon__30pkO {\n fill: #3c83ec;\n margin-right: 0.5rem;\n}\n.main-module_image-picker__selected-file__3bRqa {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 46px;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd,\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n padding: 1rem;\n}\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n display: flex;\n justify-content: flex-end;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd {\n color: #59687e;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU svg {\n fill: transparent;\n}\n.main-module_image-picker__image-preview__12pRu {\n max-width: 100%;\n max-height: 100%;\n}\n.main-module_image-picker__error-text__rXAvw {\n margin-top: 0.5rem;\n color: #e60c54;\n}\n";
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_image-picker__wrapper__2RK3f {\n position: relative;\n border: 1px dashed #abb4cd;\n border-radius: 2px;\n}\n.main-module_image-picker__wrapper-error__kCZeA {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-error__kCZeA:hover {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc {\n position: relative;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__label__1i_Fq {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 46px;\n left: 0;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__description__1v13N {\n display: none;\n}\n.main-module_image-picker__wrapper__2RK3f:hover {\n border-color: #135cc8;\n}\n.main-module_image-picker__wrapper__2RK3f:hover .main-module_image-picker__upload-icon__3sMvN {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrapper-top-buttons__241RY {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n top: 1rem;\n right: 1rem;\n z-index: 100;\n}\n.main-module_image-picker__edit-button__3O-iq {\n display: flex;\n gap: 4px;\n background-color: #ffffff;\n background-image: none;\n border: 0;\n border-radius: 2px;\n padding: 0.5rem;\n font-size: 12px;\n color: #3c83ec;\n cursor: pointer;\n}\n.main-module_image-picker__label__1i_Fq {\n cursor: pointer;\n}\n.main-module_image-picker__input__3Wu2I {\n display: none;\n}\n.main-module_image-picker__description__1v13N {\n padding: 2rem 0;\n text-align: center;\n color: #3c83ec;\n}\n.main-module_image-picker__supported-formats__1_R_X {\n font-size: 12px;\n color: #59687e;\n}\n.main-module_image-picker__upload-icon__3sMvN {\n width: 1rem;\n height: auto;\n margin-bottom: 1rem;\n fill: #abb4cd;\n}\n.main-module_image-picker__delete-button__21_kT {\n display: flex;\n align-items: center;\n color: #3c83ec;\n cursor: pointer;\n background: transparent;\n}\n.main-module_image-picker__delete-button__21_kT:hover .main-module_image-picker__delete-label__3v2ot {\n text-decoration: underline;\n}\n.main-module_image-picker__delete-button__21_kT .main-module_image-picker__delete-label__3v2ot {\n color: #3c83ec;\n}\n.main-module_image-picker__delete-button__21_kT svg {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrong-file-format-icon__X-NL0 {\n margin: 2rem 0 0.5rem;\n fill: #ffffff;\n}\n.main-module_image-picker__delete-icon__30pkO {\n fill: #3c83ec;\n margin-right: 0.5rem;\n}\n.main-module_image-picker__selected-file__3bRqa {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 46px;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd,\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n padding: 1rem;\n}\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n display: flex;\n justify-content: flex-end;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd {\n color: #59687e;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU svg {\n fill: transparent;\n}\n.main-module_image-picker__image-preview__12pRu {\n max-width: 100%;\n max-height: 100%;\n}\n.main-module_image-picker__error-text__rXAvw {\n margin-top: 0.5rem;\n color: #e60c54;\n}\n";
|
|
4
4
|
var styles = {
|
|
5
5
|
"image-picker__wrapper": "main-module_image-picker__wrapper__2RK3f",
|
|
6
6
|
"image-picker__wrapper-error": "main-module_image-picker__wrapper-error__kCZeA",
|
|
@@ -8,6 +8,8 @@ var styles = {
|
|
|
8
8
|
"image-picker__label": "main-module_image-picker__label__1i_Fq",
|
|
9
9
|
"image-picker__description": "main-module_image-picker__description__1v13N",
|
|
10
10
|
"image-picker__upload-icon": "main-module_image-picker__upload-icon__3sMvN",
|
|
11
|
+
"image-picker__wrapper-top-buttons": "main-module_image-picker__wrapper-top-buttons__241RY",
|
|
12
|
+
"image-picker__edit-button": "main-module_image-picker__edit-button__3O-iq",
|
|
11
13
|
"image-picker__input": "main-module_image-picker__input__3Wu2I",
|
|
12
14
|
"image-picker__supported-formats": "main-module_image-picker__supported-formats__1_R_X",
|
|
13
15
|
"image-picker__delete-button": "main-module_image-picker__delete-button__21_kT",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,wBAAwB,8DAAkE;AAC1F;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,wBAAwB,8DAAkE;AAC1F;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,30 @@
|
|
|
1
|
+
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n@-webkit-keyframes main-module_backdropFadeIn__1pZyV {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes main-module_backdropFadeIn__1pZyV {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-webkit-keyframes main-module_modalSlideTop__302vg {\n from {\n transform: translate3d(0, -20vh, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes main-module_modalSlideTop__302vg {\n from {\n transform: translate3d(0, -20vh, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@-webkit-keyframes main-module_modalSlideRight__2wVIR {\n from {\n transform: translate3d(20vh, 0, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes main-module_modalSlideRight__2wVIR {\n from {\n transform: translate3d(20vh, 0, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@-webkit-keyframes main-module_modalSlideBottom__1JZq2 {\n from {\n transform: translate3d(0, 20vh, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes main-module_modalSlideBottom__1JZq2 {\n from {\n transform: translate3d(0, 20vh, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@-webkit-keyframes main-module_modalSlideLeft__13SY_ {\n from {\n transform: translate3d(-20vh, 0, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes main-module_modalSlideLeft__13SY_ {\n from {\n transform: translate3d(-20vh, 0, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.main-module_modals-manager__wrapper__qp6lE {\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 100;\n padding: 1rem;\n}\n.main-module_modals-manager__wrapper-backdrop__24efS {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 1;\n opacity: 0;\n transition: opacity 0.3s;\n -webkit-animation-name: main-module_backdropFadeIn__1pZyV;\n animation-name: main-module_backdropFadeIn__1pZyV;\n -webkit-animation-duration: 0.3s;\n animation-duration: 0.3s;\n}\n.main-module_modals-manager__wrapper-backdrop_show__TYJYx {\n opacity: 1;\n}\n.main-module_modals-manager__wrapper-content__2tU8P {\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n}\n.main-module_modal__2LkRu {\n position: absolute;\n background-color: #ffffff;\n border-radius: 5px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);\n min-width: 320px;\n max-width: 900px;\n}\n.main-module_modal__header__gApi- {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 28px 28px 14px 28px;\n}\n.main-module_modal__header-actions__A4dYg {\n display: flex;\n margin-left: 15px;\n}\n.main-module_modal__header-close-icon__5IuHr {\n cursor: pointer;\n}\n.main-module_modal__content__2tpfl {\n max-height: 80vh;\n overflow-y: auto;\n padding: 14px 28px;\n}\n.main-module_modal__content__2tpfl:first-child {\n padding-top: 28px;\n}\n.main-module_modal__content__2tpfl:last-child {\n padding-bottom: 28px;\n}\n.main-module_modal__footer__Hjmd6 {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 28px;\n border-top: 1px solid #ececec;\n}\n.main-module_modal_animation-top__1tWSX,\n.main-module_modal_animation-right__3JbiZ,\n.main-module_modal_animation-bottom__mbIad,\n.main-module_modal_animation-left__n5qCW {\n opacity: 0;\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_modal_animation-top__1tWSX.main-module_modal_show__1Ll6F,\n.main-module_modal_animation-right__3JbiZ.main-module_modal_show__1Ll6F,\n.main-module_modal_animation-bottom__mbIad.main-module_modal_show__1Ll6F,\n.main-module_modal_animation-left__n5qCW.main-module_modal_show__1Ll6F {\n opacity: 1;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n}\n.main-module_modal_animation-top__1tWSX.main-module_modal_hide__hVtXH,\n.main-module_modal_animation-right__3JbiZ.main-module_modal_hide__hVtXH,\n.main-module_modal_animation-bottom__mbIad.main-module_modal_hide__hVtXH,\n.main-module_modal_animation-left__n5qCW.main-module_modal_hide__hVtXH {\n z-index: -100;\n}\n.main-module_modal_animation-top__1tWSX.main-module_modal_show__1Ll6F {\n -webkit-animation-name: main-module_modalSlideTop__302vg;\n animation-name: main-module_modalSlideTop__302vg;\n}\n.main-module_modal_animation-top__1tWSX.main-module_modal_hide__hVtXH {\n transform: translate3d(0, -20vh, 0);\n}\n.main-module_modal_animation-right__3JbiZ.main-module_modal_show__1Ll6F {\n -webkit-animation-name: main-module_modalSlideRight__2wVIR;\n animation-name: main-module_modalSlideRight__2wVIR;\n}\n.main-module_modal_animation-right__3JbiZ.main-module_modal_hide__hVtXH {\n transform: translate3d(20vh, 0, 0);\n}\n.main-module_modal_animation-bottom__mbIad.main-module_modal_show__1Ll6F {\n -webkit-animation-name: main-module_modalSlideBottom__1JZq2;\n animation-name: main-module_modalSlideBottom__1JZq2;\n}\n.main-module_modal_animation-bottom__mbIad.main-module_modal_hide__hVtXH {\n transform: translate3d(0, 20vh, 0);\n}\n.main-module_modal_animation-left__n5qCW.main-module_modal_show__1Ll6F {\n -webkit-animation-name: main-module_modalSlideLeft__13SY_;\n animation-name: main-module_modalSlideLeft__13SY_;\n}\n.main-module_modal_animation-left__n5qCW.main-module_modal_hide__hVtXH {\n transform: translate3d(-20vh, 0, 0);\n}\n";
|
|
4
|
+
var styles = {
|
|
5
|
+
"modals-manager__wrapper": "main-module_modals-manager__wrapper__qp6lE",
|
|
6
|
+
"modals-manager__wrapper-backdrop": "main-module_modals-manager__wrapper-backdrop__24efS",
|
|
7
|
+
"backdropFadeIn": "main-module_backdropFadeIn__1pZyV",
|
|
8
|
+
"modals-manager__wrapper-backdrop_show": "main-module_modals-manager__wrapper-backdrop_show__TYJYx",
|
|
9
|
+
"modals-manager__wrapper-content": "main-module_modals-manager__wrapper-content__2tU8P",
|
|
10
|
+
"modal": "main-module_modal__2LkRu",
|
|
11
|
+
"modal__header": "main-module_modal__header__gApi-",
|
|
12
|
+
"modal__header-actions": "main-module_modal__header-actions__A4dYg",
|
|
13
|
+
"modal__header-close-icon": "main-module_modal__header-close-icon__5IuHr",
|
|
14
|
+
"modal__content": "main-module_modal__content__2tpfl",
|
|
15
|
+
"modal__footer": "main-module_modal__footer__Hjmd6",
|
|
16
|
+
"modal_animation-top": "main-module_modal_animation-top__1tWSX",
|
|
17
|
+
"modal_animation-right": "main-module_modal_animation-right__3JbiZ",
|
|
18
|
+
"modal_animation-bottom": "main-module_modal_animation-bottom__mbIad",
|
|
19
|
+
"modal_animation-left": "main-module_modal_animation-left__n5qCW",
|
|
20
|
+
"modal_show": "main-module_modal_show__1Ll6F",
|
|
21
|
+
"modal_hide": "main-module_modal_hide__hVtXH",
|
|
22
|
+
"modalSlideTop": "main-module_modalSlideTop__302vg",
|
|
23
|
+
"modalSlideRight": "main-module_modalSlideRight__2wVIR",
|
|
24
|
+
"modalSlideBottom": "main-module_modalSlideBottom__1JZq2",
|
|
25
|
+
"modalSlideLeft": "main-module_modalSlideLeft__13SY_"
|
|
26
|
+
};
|
|
27
|
+
styleInject(css_248z);
|
|
28
|
+
|
|
29
|
+
export default styles;
|
|
30
|
+
//# sourceMappingURL=main.module.less.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,wBAAwB,8DAAkE;AAC1F;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;"}
|
|
@@ -74,8 +74,11 @@ import Loader from "./components/loader";
|
|
|
74
74
|
import MessageBox from "./components/message-box";
|
|
75
75
|
import Modal from "./components/modal";
|
|
76
76
|
import { ModalContext } from "./components/modal/context/modal_context";
|
|
77
|
+
import { ModalNew } from "./components/modal_new/components/modal/modal";
|
|
77
78
|
import ModalProvider from "./components/modal/hoc/modal_provider";
|
|
79
|
+
import ModalsManager from "./components/modal_new";
|
|
78
80
|
import MultiSelect from "./components/dropdown/hoc/multiselect";
|
|
81
|
+
import { Pintura } from "./components/pintura";
|
|
79
82
|
import RelativeModal from "./components/modal/hoc/relative_modal";
|
|
80
83
|
import { ScrollSync } from "./components/scroll_sync";
|
|
81
84
|
import { ScrollSyncContainer } from "./components/scroll_sync/components/scroll_sync_container";
|
|
@@ -112,6 +115,7 @@ import XhrImagePicker from "./components/xhr_image_picker";
|
|
|
112
115
|
import { useClickOutside } from "./hooks/use_click_outside";
|
|
113
116
|
import { useDropdownContext } from "./components/dropdown/context";
|
|
114
117
|
import { useFlashMessenger } from "./components/flash_messenger/context";
|
|
118
|
+
import useModals from "./components/modal_new/hooks/use_modals";
|
|
115
119
|
import { useSearchList } from "./components/search_list/use_search_list";
|
|
116
120
|
import { useToggle } from "./components/dropdown/hooks";
|
|
117
121
|
/**
|
|
@@ -120,7 +124,7 @@ import { useToggle } from "./components/dropdown/hooks";
|
|
|
120
124
|
/**
|
|
121
125
|
* export components
|
|
122
126
|
*/
|
|
123
|
-
export { Accordion, Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect, Label, Stack, Control, ControlInput, ControlCheckbox, ControlCheckboxSwitch, ControlRadio, ControlSelect, ControlRange, ControlMultiSelect, ControlTextarea, Gallery, Datepicker, ColorPicker, ColorPickerNew, ControlColorPicker, ControlColorPickerNew, ControlDatepicker, ControlFilePicker, ControlXhrImagePicker, Heading, Typography, Modal, ModalProvider, AbsoluteModal, RelativeModal, TabsWrapper, Tabs, TabsItem, TabsItemList, TabsPanel, TabsPanelList, SearchList, SearchListInput, SearchListResults, Tag, TagsSelector, ControlTagsSelector, Table, DataTable, Grid, DropdownContext, ModalContext, IconCalendar, Spacing, IconArrow, IconTick, FilePicker, ImagePicker, ControlCellSelector, Hint, ControlRadioGroup, MessageBox, FlashMessenger, useFlashMessenger, Loader, WithLoader, useDropdownContext, FlashMessengerContext, FlashMessagesList, Link, IconTablet, IconMobile, IconLaptop, IconDesktop, IconWarning, useToggle, useSearchList, Slide, SlideWrapper, SlideHeader, SlideSubHeader, SlideContent, SlideFooter, XhrImagePicker, ValuesSyncer, Tree, TreeNode, ScrollSyncContainer, ScrollSync, useClickOutside, Breadcrumbs };
|
|
127
|
+
export { Accordion, Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect, Label, Stack, Control, ControlInput, ControlCheckbox, ControlCheckboxSwitch, ControlRadio, ControlSelect, ControlRange, ControlMultiSelect, ControlTextarea, Gallery, Datepicker, ColorPicker, ColorPickerNew, ControlColorPicker, ControlColorPickerNew, ControlDatepicker, ControlFilePicker, ControlXhrImagePicker, Heading, Typography, Modal, ModalNew, ModalsManager, useModals, ModalProvider, AbsoluteModal, RelativeModal, TabsWrapper, Tabs, TabsItem, TabsItemList, TabsPanel, TabsPanelList, SearchList, SearchListInput, SearchListResults, Tag, TagsSelector, ControlTagsSelector, Table, DataTable, Grid, DropdownContext, ModalContext, IconCalendar, Spacing, IconArrow, IconTick, FilePicker, ImagePicker, ControlCellSelector, Hint, ControlRadioGroup, MessageBox, FlashMessenger, useFlashMessenger, Loader, WithLoader, useDropdownContext, FlashMessengerContext, FlashMessagesList, Link, IconTablet, IconMobile, IconLaptop, IconDesktop, IconWarning, useToggle, useSearchList, Slide, SlideWrapper, SlideHeader, SlideSubHeader, SlideContent, SlideFooter, XhrImagePicker, ValuesSyncer, Tree, TreeNode, ScrollSyncContainer, ScrollSync, useClickOutside, Breadcrumbs, Pintura };
|
|
124
128
|
/**
|
|
125
129
|
* export types
|
|
126
130
|
*/
|
|
@@ -38,6 +38,8 @@ export { default as TagsSelector } from './components/tags_selector/index.js';
|
|
|
38
38
|
export { default as ControlTagsSelector } from './components/controls/hoc/control_tags_selector/index.js';
|
|
39
39
|
export { default as ControlTextarea } from './components/controls/hoc/control_textarea/index.js';
|
|
40
40
|
export { default as ImagePicker } from './components/image_picker/index.js';
|
|
41
|
+
export { ModalNew } from './components/modal_new/components/modal/modal.js';
|
|
42
|
+
export { Pintura } from './components/pintura/index.js';
|
|
41
43
|
export { default as XhrImagePicker } from './components/xhr_image_picker/index.js';
|
|
42
44
|
export { default as ControlXhrImagePicker } from './components/controls/hoc/control_xhr_image_picker/index.js';
|
|
43
45
|
export { default as Table } from './components/table/index.js';
|
|
@@ -60,6 +62,8 @@ export { default as Loader } from './components/loader/index.js';
|
|
|
60
62
|
export { default as Modal } from './components/modal/index.js';
|
|
61
63
|
export { ModalContext } from './components/modal/context/modal_context.js';
|
|
62
64
|
export { default as ModalProvider } from './components/modal/hoc/modal_provider.js';
|
|
65
|
+
export { default as useModals } from './components/modal_new/hooks/use_modals.js';
|
|
66
|
+
export { default as ModalsManager } from './components/modal_new/index.js';
|
|
63
67
|
export { default as RelativeModal } from './components/modal/hoc/relative_modal/index.js';
|
|
64
68
|
export { ScrollSync } from './components/scroll_sync/index.js';
|
|
65
69
|
export { ScrollSyncContainer } from './components/scroll_sync/components/scroll_sync_container.js';
|
|
@@ -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;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;"}
|
|
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;"}
|
|
@@ -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;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;AACA;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dreamcommerce/aurora",
|
|
3
3
|
"packageManager": "yarn@3.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2.16.
|
|
5
|
+
"version": "2.16.8-1",
|
|
6
6
|
"description": "aurora",
|
|
7
7
|
"author": "k0ssak",
|
|
8
8
|
"license": "MIT",
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@dreamcommerce/utilities": "^1.13.0",
|
|
48
|
+
"@pqina/pintura": "^8.81.1",
|
|
49
|
+
"@pqina/react-pintura": "^9.0.3",
|
|
48
50
|
"@shoper/jest_config": "^0.0.0",
|
|
49
51
|
"@shoper/tsconfig": "^0.0.0",
|
|
50
52
|
"@storybook/react": "6.5.7",
|