@dreamcommerce/aurora 3.0.0-298 → 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.
@@ -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
- _ref$allowedExtension = _ref.allowedExtensionsLabel,
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(allowedExtensionsLabel)), ": ", allowedExtensions.map(function (extension) {
41
+ }, "".concat(allowedExtensionsLabel ? allowedExtensionsLabel : t('Supported formats')), ":", ' ', allowedExtensions.map(function (extension) {
43
42
  return "*.".concat(extension);
44
43
  }).join(', '))));
45
44
  };
@@ -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;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;"}
@@ -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
- _ref$allowedExtension = _ref.allowedExtensionsLabel,
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(allowedExtensionsLabel)), ": ", allowedExtensions.map(function (extension) {
33
+ }, "".concat(allowedExtensionsLabel ? allowedExtensionsLabel : t('Supported formats')), ":", ' ', allowedExtensions.map(function (extension) {
35
34
  return "*.".concat(extension);
36
35
  }).join(', '))));
37
36
  };
@@ -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;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;"}
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": "3.0.0-298",
5
+ "version": "3.0.0-299",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",