@dreamcommerce/aurora 3.0.0-90 → 3.0.0-92
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/switch_control/switch_control.js +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/components/image_picker_input.js +1 -1
- package/build/cjs/packages/aurora/src/components/message_box/message_box.js +6 -7
- package/build/cjs/packages/aurora/src/components/message_box/message_box.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/switch/switch.js +6 -3
- package/build/cjs/packages/aurora/src/components/switch/switch.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/tag/tag.js +1 -1
- package/build/cjs/packages/aurora/src/components/tag/tag.js.map +1 -1
- package/build/cjs/packages/aurora/src/translations/en.json.js +9 -1
- package/build/cjs/packages/aurora/src/translations/en.json.js.map +1 -1
- package/build/cjs/packages/aurora/src/translations/pl.json.js +9 -1
- package/build/cjs/packages/aurora/src/translations/pl.json.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/switch_control/switch_control.js +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.d.ts +5 -2
- package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.js +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/message_box/message_box.js +6 -7
- package/build/esm/packages/aurora/src/components/message_box/message_box.js.map +1 -1
- package/build/esm/packages/aurora/src/components/switch/switch.js +6 -3
- package/build/esm/packages/aurora/src/components/switch/switch.js.map +1 -1
- package/build/esm/packages/aurora/src/components/tag/tag.js +1 -1
- package/build/esm/packages/aurora/src/components/tag/tag.js.map +1 -1
- package/build/esm/packages/aurora/src/components/xhr_image_picker/xhr_image_picker.d.ts +2 -0
- package/build/esm/packages/aurora/src/translations/en.json +7 -1
- package/build/esm/packages/aurora/src/translations/en.json.js +9 -2
- package/build/esm/packages/aurora/src/translations/en.json.js.map +1 -1
- package/build/esm/packages/aurora/src/translations/pl.json +7 -1
- package/build/esm/packages/aurora/src/translations/pl.json.js +9 -2
- package/build/esm/packages/aurora/src/translations/pl.json.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ var SwitchControl = function SwitchControl(_ref) {
|
|
|
43
43
|
onCheckedChange: onCheckedChange,
|
|
44
44
|
errors: errors
|
|
45
45
|
}, rest)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
46
|
-
className: "aurora-ml-2 aurora-
|
|
46
|
+
className: "aurora-ml-2 aurora-flex aurora-justify-center aurora-flex-col aurora-gap-1"
|
|
47
47
|
}, label$1 && (/*#__PURE__*/React__default['default'].createElement(label.Label, {
|
|
48
48
|
required: required,
|
|
49
49
|
tooltip: tooltip,
|
package/build/cjs/packages/aurora/src/components/image_picker/components/image_picker_input.js
CHANGED
|
@@ -42,7 +42,7 @@ var ImagePickerInput = function ImagePickerInput(_ref) {
|
|
|
42
42
|
className: "aurora-text-xs aurora-text-interactive aurora-font-semibold"
|
|
43
43
|
}, "".concat(t('Drag a file here or browse'))), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
44
44
|
className: "aurora-text-xs aurora-text-subtle-light aurora-font-normal aurora-text-center"
|
|
45
|
-
}, "".concat(t('
|
|
45
|
+
}, "".concat(t('Supported formats')), ": ", allowedExtensions.map(function (extension) {
|
|
46
46
|
return "*.".concat(extension);
|
|
47
47
|
}).join(', '))));
|
|
48
48
|
};
|
|
@@ -8,7 +8,6 @@ var typography = require('../typography/typography.js');
|
|
|
8
8
|
var message_box_constants = require('./message_box_constants.js');
|
|
9
9
|
var message_box_variants = require('./message_box_variants.js');
|
|
10
10
|
var close_icon = require('../../assets/icons/close_icon.js');
|
|
11
|
-
var index = require('../../../../../external/classnames/index.js');
|
|
12
11
|
|
|
13
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
13
|
|
|
@@ -28,17 +27,17 @@ var MessageBox = function MessageBox(_ref) {
|
|
|
28
27
|
var iconColor = message_box_constants.MESSAGE_BOX_ICON_COLORS[variant];
|
|
29
28
|
var canClose = !!onClose;
|
|
30
29
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31
|
-
className: cn.cn(
|
|
30
|
+
className: cn.cn(cn.cn(fullWidth ? 'aurora-w-full aurora-border-none' : 'aurora-w-[272px] aurora-border aurora-rounded-4', children && !header && !fullWidth && 'aurora-shadow-l'), message_box_variants.messageBoxVariants({
|
|
32
31
|
variant: variant
|
|
33
32
|
}), className)
|
|
34
33
|
}, showIcon ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
35
|
-
className:
|
|
34
|
+
className: cn.cn(children && !fullWidth && 'aurora-h-full aurora-flex aurora-self-start aurora-mt-1')
|
|
36
35
|
}, /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
37
|
-
className:
|
|
36
|
+
className: cn.cn('aurora-mr-2 aurora-w-4 aurora-h-4', iconColor)
|
|
38
37
|
}))) : null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
39
38
|
className: "aurora-flex aurora-justify-between aurora-items-center aurora-w-full aurora-max-w-7xl"
|
|
40
39
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
41
|
-
className: "aurora-flex aurora-max-w-full aurora-w-full"
|
|
40
|
+
className: "aurora-flex aurora-flex-col aurora-max-w-full aurora-w-full"
|
|
42
41
|
}, header && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
43
42
|
className: "aurora-flex aurora-items-center"
|
|
44
43
|
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
@@ -47,13 +46,13 @@ var MessageBox = function MessageBox(_ref) {
|
|
|
47
46
|
className: "aurora-w-full",
|
|
48
47
|
size: "xs"
|
|
49
48
|
}, children)), canClose && (/*#__PURE__*/React__default['default'].createElement("button", {
|
|
50
|
-
className:
|
|
49
|
+
className: cn.cn(children && !fullWidth && 'aurora-h-full aurora-flex aurora-self-start aurora-mt-1'),
|
|
51
50
|
onClick: function onClick(e) {
|
|
52
51
|
e.stopPropagation();
|
|
53
52
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
54
53
|
}
|
|
55
54
|
}, /*#__PURE__*/React__default['default'].createElement(close_icon.CloseLineIcon, {
|
|
56
|
-
className:
|
|
55
|
+
className: cn.cn('aurora-mx-2 aurora-w-4 aurora-h-4 aurora-fill')
|
|
57
56
|
})))));
|
|
58
57
|
};
|
|
59
58
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
-
var
|
|
7
|
+
var cn = require('../../utilities/cn.js');
|
|
8
8
|
var SwitchPrimitive = require('@radix-ui/react-switch');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -29,13 +29,16 @@ var Switch = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, r
|
|
|
29
29
|
name: name,
|
|
30
30
|
value: value,
|
|
31
31
|
ref: ref,
|
|
32
|
-
className:
|
|
32
|
+
className: cn.cn('aurora-inline-flex aurora-items-center aurora-relative aurora-w-11 aurora-h-6 aurora-rounded-full aurora-bg-active hover:aurora-ring-2 hover:aurora-ring-subtle focus:aurora-ring-2 focus:aurora-ring-primary focus:aurora-outline-none focus:aurora-ring-offset aurora-cursor-pointer aurora-transition-all data-[state=checked]:aurora-bg-primary aurora-shrink-0', {
|
|
33
|
+
'aurora-cursor-not-allowed aurora-pointer-events-none aurora-bg-neutral-300 data-[state=checked]:!aurora-bg-active': disabled,
|
|
34
|
+
'aurora-ring-danger aurora-ring-2': errors && errors.length > 0
|
|
35
|
+
}, className),
|
|
33
36
|
disabled: disabled,
|
|
34
37
|
defaultChecked: defaultChecked,
|
|
35
38
|
checked: checked,
|
|
36
39
|
onCheckedChange: onCheckedChange
|
|
37
40
|
}, props), /*#__PURE__*/React__default['default'].createElement(SwitchPrimitive.SwitchThumb, {
|
|
38
|
-
className:
|
|
41
|
+
className: cn.cn('aurora-block aurora-w-5 aurora-h-5 aurora-rounded-full aurora-transition-transform', disabled ? 'aurora-bg-subtle' : 'aurora-bg', 'data-[state=checked]:aurora-translate-x-[22px] aurora-translate-x-[2px]')
|
|
39
42
|
}));
|
|
40
43
|
});
|
|
41
44
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../utilities/cn.js');
|
|
8
8
|
var close_icon = require('../../assets/icons/close_icon.js');
|
|
9
|
-
var index = require('../../../../../external/classnames/index.js');
|
|
10
9
|
var tag_variants = require('./tag_variants.js');
|
|
10
|
+
var index = require('../../../../../external/classnames/index.js');
|
|
11
11
|
|
|
12
12
|
var _excluded = ["className", "label", "variant", "disabled", "onDelete"];
|
|
13
13
|
var Tag = function Tag(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,6CAAiD;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,oBAAoB,6CAAiD;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Select = "Select";
|
|
6
|
+
var Remove = "Remove";
|
|
6
7
|
var en = {
|
|
7
|
-
Select: Select
|
|
8
|
+
Select: Select,
|
|
9
|
+
"No preview": "No preview",
|
|
10
|
+
"Drop file here": "Drop file here",
|
|
11
|
+
"Drag a file here or browse": "Drag a file here or browse",
|
|
12
|
+
"Supported formats": "Supported formats",
|
|
13
|
+
Remove: Remove,
|
|
14
|
+
"Transfering file...": "Transfering file..."
|
|
8
15
|
};
|
|
9
16
|
|
|
17
|
+
exports.Remove = Remove;
|
|
10
18
|
exports.Select = Select;
|
|
11
19
|
exports.default = en;
|
|
12
20
|
//# sourceMappingURL=en.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Select = "Wybierz";
|
|
6
|
+
var Remove = "Usuń";
|
|
6
7
|
var pl = {
|
|
7
|
-
Select: Select
|
|
8
|
+
Select: Select,
|
|
9
|
+
"No preview": "Brak podglądu",
|
|
10
|
+
"Drop file here": "Upuść plik tutaj",
|
|
11
|
+
"Drag a file here or browse": "Przeciągnij lub wybierz plik z dysku",
|
|
12
|
+
"Supported formats": "Obsługiwane formaty",
|
|
13
|
+
Remove: Remove,
|
|
14
|
+
"Transfering file...": "Wgrywanie pliku..."
|
|
8
15
|
};
|
|
9
16
|
|
|
17
|
+
exports.Remove = Remove;
|
|
10
18
|
exports.Select = Select;
|
|
11
19
|
exports.default = pl;
|
|
12
20
|
//# sourceMappingURL=pl.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -35,7 +35,7 @@ var SwitchControl = function SwitchControl(_ref) {
|
|
|
35
35
|
onCheckedChange: onCheckedChange,
|
|
36
36
|
errors: errors
|
|
37
37
|
}, rest)), /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: "aurora-ml-2 aurora-
|
|
38
|
+
className: "aurora-ml-2 aurora-flex aurora-justify-center aurora-flex-col aurora-gap-1"
|
|
39
39
|
}, label && (/*#__PURE__*/React.createElement(Label, {
|
|
40
40
|
required: required,
|
|
41
41
|
tooltip: tooltip,
|
package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
declare type ImagePickerInput = {
|
|
3
3
|
id: string;
|
|
4
4
|
onDropFile: (event: React.DragEvent<HTMLLabelElement>) => void;
|
|
5
5
|
onDragOver: (event: React.DragEvent<HTMLLabelElement>) => void;
|
|
6
6
|
onDragLeave: (event: React.DragEvent<HTMLLabelElement>) => void;
|
|
7
7
|
allowedExtensions: string[];
|
|
8
8
|
isDragOver: boolean;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export declare const ImagePickerInput: React.FC<ImagePickerInput>;
|
|
11
|
+
declare const _default: React.FC<React.PropsWithChildren<ImagePickerInput>>;
|
|
12
|
+
export default _default;
|
package/build/esm/packages/aurora/src/components/image_picker/components/image_picker_input.js
CHANGED
|
@@ -34,7 +34,7 @@ var ImagePickerInput = function ImagePickerInput(_ref) {
|
|
|
34
34
|
className: "aurora-text-xs aurora-text-interactive aurora-font-semibold"
|
|
35
35
|
}, "".concat(t('Drag a file here or browse'))), /*#__PURE__*/React.createElement("span", {
|
|
36
36
|
className: "aurora-text-xs aurora-text-subtle-light aurora-font-normal aurora-text-center"
|
|
37
|
-
}, "".concat(t('
|
|
37
|
+
}, "".concat(t('Supported formats')), ": ", allowedExtensions.map(function (extension) {
|
|
38
38
|
return "*.".concat(extension);
|
|
39
39
|
}).join(', '))));
|
|
40
40
|
};
|
|
@@ -4,7 +4,6 @@ import { Typography } from '../typography/typography.js';
|
|
|
4
4
|
import { MESSAGE_BOX_ICONS, MESSAGE_BOX_ICON_COLORS, MESSAGE_BOX_VARIANTS } from './message_box_constants.js';
|
|
5
5
|
import { messageBoxVariants } from './message_box_variants.js';
|
|
6
6
|
import { CloseLineIcon } from '../../assets/icons/close_icon.js';
|
|
7
|
-
import classnames from '../../../../../external/classnames/index.js';
|
|
8
7
|
|
|
9
8
|
var MessageBox = function MessageBox(_ref) {
|
|
10
9
|
var _ref$variant = _ref.variant,
|
|
@@ -20,17 +19,17 @@ var MessageBox = function MessageBox(_ref) {
|
|
|
20
19
|
var iconColor = MESSAGE_BOX_ICON_COLORS[variant];
|
|
21
20
|
var canClose = !!onClose;
|
|
22
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
className: cn(
|
|
22
|
+
className: cn(cn(fullWidth ? 'aurora-w-full aurora-border-none' : 'aurora-w-[272px] aurora-border aurora-rounded-4', children && !header && !fullWidth && 'aurora-shadow-l'), messageBoxVariants({
|
|
24
23
|
variant: variant
|
|
25
24
|
}), className)
|
|
26
25
|
}, showIcon ? (/*#__PURE__*/React.createElement("div", {
|
|
27
|
-
className:
|
|
26
|
+
className: cn(children && !fullWidth && 'aurora-h-full aurora-flex aurora-self-start aurora-mt-1')
|
|
28
27
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
29
|
-
className:
|
|
28
|
+
className: cn('aurora-mr-2 aurora-w-4 aurora-h-4', iconColor)
|
|
30
29
|
}))) : null, /*#__PURE__*/React.createElement("div", {
|
|
31
30
|
className: "aurora-flex aurora-justify-between aurora-items-center aurora-w-full aurora-max-w-7xl"
|
|
32
31
|
}, /*#__PURE__*/React.createElement("div", {
|
|
33
|
-
className: "aurora-flex aurora-max-w-full aurora-w-full"
|
|
32
|
+
className: "aurora-flex aurora-flex-col aurora-max-w-full aurora-w-full"
|
|
34
33
|
}, header && (/*#__PURE__*/React.createElement("div", {
|
|
35
34
|
className: "aurora-flex aurora-items-center"
|
|
36
35
|
}, /*#__PURE__*/React.createElement("h4", {
|
|
@@ -39,13 +38,13 @@ var MessageBox = function MessageBox(_ref) {
|
|
|
39
38
|
className: "aurora-w-full",
|
|
40
39
|
size: "xs"
|
|
41
40
|
}, children)), canClose && (/*#__PURE__*/React.createElement("button", {
|
|
42
|
-
className:
|
|
41
|
+
className: cn(children && !fullWidth && 'aurora-h-full aurora-flex aurora-self-start aurora-mt-1'),
|
|
43
42
|
onClick: function onClick(e) {
|
|
44
43
|
e.stopPropagation();
|
|
45
44
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
46
45
|
}
|
|
47
46
|
}, /*#__PURE__*/React.createElement(CloseLineIcon, {
|
|
48
|
-
className:
|
|
47
|
+
className: cn('aurora-mx-2 aurora-w-4 aurora-h-4 aurora-fill')
|
|
49
48
|
})))));
|
|
50
49
|
};
|
|
51
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import
|
|
3
|
+
import { cn } from '../../utilities/cn.js';
|
|
4
4
|
import { Root, SwitchThumb } from '@radix-ui/react-switch';
|
|
5
5
|
|
|
6
6
|
var _excluded = ["id", "name", "value", "className", "disabled", "checked", "defaultChecked", "errors", "onCheckedChange"];
|
|
@@ -21,13 +21,16 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
21
21
|
name: name,
|
|
22
22
|
value: value,
|
|
23
23
|
ref: ref,
|
|
24
|
-
className:
|
|
24
|
+
className: cn('aurora-inline-flex aurora-items-center aurora-relative aurora-w-11 aurora-h-6 aurora-rounded-full aurora-bg-active hover:aurora-ring-2 hover:aurora-ring-subtle focus:aurora-ring-2 focus:aurora-ring-primary focus:aurora-outline-none focus:aurora-ring-offset aurora-cursor-pointer aurora-transition-all data-[state=checked]:aurora-bg-primary aurora-shrink-0', {
|
|
25
|
+
'aurora-cursor-not-allowed aurora-pointer-events-none aurora-bg-neutral-300 data-[state=checked]:!aurora-bg-active': disabled,
|
|
26
|
+
'aurora-ring-danger aurora-ring-2': errors && errors.length > 0
|
|
27
|
+
}, className),
|
|
25
28
|
disabled: disabled,
|
|
26
29
|
defaultChecked: defaultChecked,
|
|
27
30
|
checked: checked,
|
|
28
31
|
onCheckedChange: onCheckedChange
|
|
29
32
|
}, props), /*#__PURE__*/React.createElement(SwitchThumb, {
|
|
30
|
-
className:
|
|
33
|
+
className: cn('aurora-block aurora-w-5 aurora-h-5 aurora-rounded-full aurora-transition-transform', disabled ? 'aurora-bg-subtle' : 'aurora-bg', 'data-[state=checked]:aurora-translate-x-[22px] aurora-translate-x-[2px]')
|
|
31
34
|
}));
|
|
32
35
|
});
|
|
33
36
|
Switch.displayName = Root.displayName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -2,8 +2,8 @@ import { createElement } from 'react';
|
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { cn } from '../../utilities/cn.js';
|
|
4
4
|
import { CloseLineIcon } from '../../assets/icons/close_icon.js';
|
|
5
|
-
import classnames from '../../../../../external/classnames/index.js';
|
|
6
5
|
import { tagVariants } from './tag_variants.js';
|
|
6
|
+
import classnames from '../../../../../external/classnames/index.js';
|
|
7
7
|
|
|
8
8
|
var _excluded = ["className", "label", "variant", "disabled", "onDelete"];
|
|
9
9
|
var Tag = function Tag(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,uBAAuB,6CAAiD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,uBAAuB,6CAAiD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,3 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IXhrImagePickerProps } from './xhr_image_picker_types';
|
|
3
3
|
export declare const XhrImagePicker: React.FC<IXhrImagePickerProps>;
|
|
4
|
+
declare const _default: React.FC<React.PropsWithChildren<IXhrImagePickerProps>>;
|
|
5
|
+
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Select": "Select"
|
|
2
|
+
"Select": "Select",
|
|
3
|
+
"No preview": "No preview",
|
|
4
|
+
"Drop file here": "Drop file here",
|
|
5
|
+
"Drag a file here or browse": "Drag a file here or browse",
|
|
6
|
+
"Supported formats": "Supported formats",
|
|
7
|
+
"Remove": "Remove",
|
|
8
|
+
"Transfering file...": "Transfering file..."
|
|
3
9
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
var Select = "Select";
|
|
2
|
+
var Remove = "Remove";
|
|
2
3
|
var en = {
|
|
3
|
-
Select: Select
|
|
4
|
+
Select: Select,
|
|
5
|
+
"No preview": "No preview",
|
|
6
|
+
"Drop file here": "Drop file here",
|
|
7
|
+
"Drag a file here or browse": "Drag a file here or browse",
|
|
8
|
+
"Supported formats": "Supported formats",
|
|
9
|
+
Remove: Remove,
|
|
10
|
+
"Transfering file...": "Transfering file..."
|
|
4
11
|
};
|
|
5
12
|
|
|
6
13
|
export default en;
|
|
7
|
-
export { Select };
|
|
14
|
+
export { Remove, Select };
|
|
8
15
|
//# sourceMappingURL=en.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Select": "Wybierz"
|
|
2
|
+
"Select": "Wybierz",
|
|
3
|
+
"No preview": "Brak podglądu",
|
|
4
|
+
"Drop file here": "Upuść plik tutaj",
|
|
5
|
+
"Drag a file here or browse": "Przeciągnij lub wybierz plik z dysku",
|
|
6
|
+
"Supported formats": "Obsługiwane formaty",
|
|
7
|
+
"Remove": "Usuń",
|
|
8
|
+
"Transfering file...": "Wgrywanie pliku..."
|
|
3
9
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
var Select = "Wybierz";
|
|
2
|
+
var Remove = "Usuń";
|
|
2
3
|
var pl = {
|
|
3
|
-
Select: Select
|
|
4
|
+
Select: Select,
|
|
5
|
+
"No preview": "Brak podglądu",
|
|
6
|
+
"Drop file here": "Upuść plik tutaj",
|
|
7
|
+
"Drag a file here or browse": "Przeciągnij lub wybierz plik z dysku",
|
|
8
|
+
"Supported formats": "Obsługiwane formaty",
|
|
9
|
+
Remove: Remove,
|
|
10
|
+
"Transfering file...": "Wgrywanie pliku..."
|
|
4
11
|
};
|
|
5
12
|
|
|
6
13
|
export default pl;
|
|
7
|
-
export { Select };
|
|
14
|
+
export { Remove, Select };
|
|
8
15
|
//# sourceMappingURL=pl.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;"}
|