@dreamcommerce/aurora 3.0.0-297 → 3.0.0-299
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/components/controls/xhr_image_picker_control/xhr_image_picker_control.js +2 -0
- package/build/cjs/packages/aurora/src/components/controls/xhr_image_picker_control/xhr_image_picker_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/components/image_picker_input.js +2 -3
- package/build/cjs/packages/aurora/src/components/image_picker/components/image_picker_input.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/xhr_image_picker_control/xhr_image_picker_control.js +2 -0
- package/build/esm/packages/aurora/src/components/controls/xhr_image_picker_control/xhr_image_picker_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.js +2 -3
- package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ var XhrImagePickerControl = function XhrImagePickerControl(_ref) {
|
|
|
21
21
|
name = _ref.name,
|
|
22
22
|
onChange = _ref.onChange,
|
|
23
23
|
allowedExtensions = _ref.allowedExtensions,
|
|
24
|
+
allowedExtensionsLabel = _ref.allowedExtensionsLabel,
|
|
24
25
|
initialFile = _ref.initialFile,
|
|
25
26
|
className = _ref.className,
|
|
26
27
|
errors = _ref.errors,
|
|
@@ -57,6 +58,7 @@ var XhrImagePickerControl = function XhrImagePickerControl(_ref) {
|
|
|
57
58
|
onChange: handleControlChange,
|
|
58
59
|
onError: handleControlError,
|
|
59
60
|
allowedExtensions: allowedExtensions,
|
|
61
|
+
allowedExtensionsLabel: allowedExtensionsLabel,
|
|
60
62
|
initialFile: initialFile,
|
|
61
63
|
className: className,
|
|
62
64
|
errors: errors,
|
|
@@ -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;"}
|
|
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;"}
|
package/build/cjs/packages/aurora/src/components/image_picker/components/image_picker_input.js
CHANGED
|
@@ -18,8 +18,7 @@ var ImagePickerInput = function ImagePickerInput(_ref) {
|
|
|
18
18
|
onDropFile = _ref.onDropFile,
|
|
19
19
|
onDragOver = _ref.onDragOver,
|
|
20
20
|
onDragLeave = _ref.onDragLeave,
|
|
21
|
-
|
|
22
|
-
allowedExtensionsLabel = _ref$allowedExtension === void 0 ? 'Supported formats' : _ref$allowedExtension,
|
|
21
|
+
allowedExtensionsLabel = _ref.allowedExtensionsLabel,
|
|
23
22
|
allowedExtensions = _ref.allowedExtensions,
|
|
24
23
|
isDragOver = _ref.isDragOver;
|
|
25
24
|
var _useTranslation = useTranslation.useTranslation(),
|
|
@@ -39,7 +38,7 @@ var ImagePickerInput = function ImagePickerInput(_ref) {
|
|
|
39
38
|
className: "aurora-text-xs aurora-text-interactive aurora-font-semibold"
|
|
40
39
|
}, "".concat(t('Drag a file here or browse'))), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
41
40
|
className: "aurora-text-xs aurora-text-subtle-light aurora-font-normal aurora-text-center"
|
|
42
|
-
}, "".concat(t(
|
|
41
|
+
}, "".concat(allowedExtensionsLabel ? allowedExtensionsLabel : t('Supported formats')), ":", ' ', allowedExtensions.map(function (extension) {
|
|
43
42
|
return "*.".concat(extension);
|
|
44
43
|
}).join(', '))));
|
|
45
44
|
};
|
package/build/cjs/packages/aurora/src/components/image_picker/components/image_picker_input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,oEAAwE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,6BAA6B,oEAAwE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -13,6 +13,7 @@ var XhrImagePickerControl = function XhrImagePickerControl(_ref) {
|
|
|
13
13
|
name = _ref.name,
|
|
14
14
|
onChange = _ref.onChange,
|
|
15
15
|
allowedExtensions = _ref.allowedExtensions,
|
|
16
|
+
allowedExtensionsLabel = _ref.allowedExtensionsLabel,
|
|
16
17
|
initialFile = _ref.initialFile,
|
|
17
18
|
className = _ref.className,
|
|
18
19
|
errors = _ref.errors,
|
|
@@ -49,6 +50,7 @@ var XhrImagePickerControl = function XhrImagePickerControl(_ref) {
|
|
|
49
50
|
onChange: handleControlChange,
|
|
50
51
|
onError: handleControlError,
|
|
51
52
|
allowedExtensions: allowedExtensions,
|
|
53
|
+
allowedExtensionsLabel: allowedExtensionsLabel,
|
|
52
54
|
initialFile: initialFile,
|
|
53
55
|
className: className,
|
|
54
56
|
errors: errors,
|
|
@@ -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;"}
|
|
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;"}
|
package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.js
CHANGED
|
@@ -10,8 +10,7 @@ var ImagePickerInput = function ImagePickerInput(_ref) {
|
|
|
10
10
|
onDropFile = _ref.onDropFile,
|
|
11
11
|
onDragOver = _ref.onDragOver,
|
|
12
12
|
onDragLeave = _ref.onDragLeave,
|
|
13
|
-
|
|
14
|
-
allowedExtensionsLabel = _ref$allowedExtension === void 0 ? 'Supported formats' : _ref$allowedExtension,
|
|
13
|
+
allowedExtensionsLabel = _ref.allowedExtensionsLabel,
|
|
15
14
|
allowedExtensions = _ref.allowedExtensions,
|
|
16
15
|
isDragOver = _ref.isDragOver;
|
|
17
16
|
var _useTranslation = useTranslation(),
|
|
@@ -31,7 +30,7 @@ var ImagePickerInput = function ImagePickerInput(_ref) {
|
|
|
31
30
|
className: "aurora-text-xs aurora-text-interactive aurora-font-semibold"
|
|
32
31
|
}, "".concat(t('Drag a file here or browse'))), /*#__PURE__*/React.createElement("span", {
|
|
33
32
|
className: "aurora-text-xs aurora-text-subtle-light aurora-font-normal aurora-text-center"
|
|
34
|
-
}, "".concat(t(
|
|
33
|
+
}, "".concat(allowedExtensionsLabel ? allowedExtensionsLabel : t('Supported formats')), ":", ' ', allowedExtensions.map(function (extension) {
|
|
35
34
|
return "*.".concat(extension);
|
|
36
35
|
}).join(', '))));
|
|
37
36
|
};
|
package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,+BAA+B,oEAAwE;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,+BAA+B,oEAAwE;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|