@dreamcommerce/aurora 3.1.2 → 3.1.3
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/toast/components/toast.js +15 -7
- package/build/cjs/packages/aurora/src/components/toast/components/toast.js.map +1 -1
- package/build/esm/packages/aurora/src/components/toast/components/toast.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/toast/components/toast.js +15 -7
- package/build/esm/packages/aurora/src/components/toast/components/toast.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var stack = require('../../stack/stack.js');
|
|
9
|
+
var box = require('../../box/box.js');
|
|
9
10
|
var close_line_icon = require('../../../assets/icons/close_line_icon.js');
|
|
10
11
|
var message_box = require('../../message_box/message_box.js');
|
|
11
12
|
var reactToast = require('@radix-ui/react-toast');
|
|
@@ -15,10 +16,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
16
|
|
|
16
17
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
18
|
|
|
18
|
-
var _excluded = ["type", "
|
|
19
|
+
var _excluded = ["type", "children", "slideSide", "closeable"];
|
|
19
20
|
var Toast = function Toast(_ref) {
|
|
20
21
|
var type = _ref.type,
|
|
21
|
-
header = _ref.header,
|
|
22
22
|
children = _ref.children,
|
|
23
23
|
_ref$slideSide = _ref.slideSide,
|
|
24
24
|
slideSide = _ref$slideSide === void 0 ? toast_constants.TOAST_SLIDE_SIDE.fromRight : _ref$slideSide,
|
|
@@ -32,14 +32,22 @@ var Toast = function Toast(_ref) {
|
|
|
32
32
|
})
|
|
33
33
|
}), /*#__PURE__*/React__default['default'].createElement(message_box.MessageBox, {
|
|
34
34
|
showIcon: true,
|
|
35
|
-
variant: type
|
|
36
|
-
header: header
|
|
35
|
+
variant: type
|
|
37
36
|
}, /*#__PURE__*/React__default['default'].createElement(stack.Stack, {
|
|
38
37
|
justify: "between",
|
|
39
|
-
align: "
|
|
40
|
-
},
|
|
38
|
+
align: "start"
|
|
39
|
+
}, /*#__PURE__*/React__default['default'].createElement(box.Box, {
|
|
40
|
+
backgroundColor: "transparent",
|
|
41
|
+
className: "aurora-mt-1"
|
|
42
|
+
}, children), closeable ? (/*#__PURE__*/React__default['default'].createElement(box.Box, {
|
|
43
|
+
width: "auto",
|
|
44
|
+
backgroundColor: "transparent",
|
|
45
|
+
paddings: {
|
|
46
|
+
pt: '1'
|
|
47
|
+
}
|
|
48
|
+
}, /*#__PURE__*/React__default['default'].createElement(reactToast.Close, null, /*#__PURE__*/React__default['default'].createElement(close_line_icon.CloseLineIcon, {
|
|
41
49
|
size: 16
|
|
42
|
-
}))) : null)));
|
|
50
|
+
})))) : null)));
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
exports.Toast = Toast;
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TToastProps } from "./toast_components_types";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
|
-
export declare const Toast: ({ type,
|
|
4
|
+
export declare const Toast: ({ type, children, slideSide, closeable, ...rest }: PropsWithChildren<TToastProps>) => React.JSX.Element;
|
|
@@ -2,15 +2,15 @@ import React 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 { Stack } from '../../stack/stack.js';
|
|
5
|
+
import { Box } from '../../box/box.js';
|
|
5
6
|
import { CloseLineIcon } from '../../../assets/icons/close_line_icon.js';
|
|
6
7
|
import { MessageBox } from '../../message_box/message_box.js';
|
|
7
8
|
import { Root, Close } from '@radix-ui/react-toast';
|
|
8
9
|
import { TOAST_SLIDE_SIDE } from '../toast_constants.js';
|
|
9
10
|
|
|
10
|
-
var _excluded = ["type", "
|
|
11
|
+
var _excluded = ["type", "children", "slideSide", "closeable"];
|
|
11
12
|
var Toast = function Toast(_ref) {
|
|
12
13
|
var type = _ref.type,
|
|
13
|
-
header = _ref.header,
|
|
14
14
|
children = _ref.children,
|
|
15
15
|
_ref$slideSide = _ref.slideSide,
|
|
16
16
|
slideSide = _ref$slideSide === void 0 ? TOAST_SLIDE_SIDE.fromRight : _ref$slideSide,
|
|
@@ -24,14 +24,22 @@ var Toast = function Toast(_ref) {
|
|
|
24
24
|
})
|
|
25
25
|
}), /*#__PURE__*/React.createElement(MessageBox, {
|
|
26
26
|
showIcon: true,
|
|
27
|
-
variant: type
|
|
28
|
-
header: header
|
|
27
|
+
variant: type
|
|
29
28
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
30
29
|
justify: "between",
|
|
31
|
-
align: "
|
|
32
|
-
},
|
|
30
|
+
align: "start"
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
32
|
+
backgroundColor: "transparent",
|
|
33
|
+
className: "aurora-mt-1"
|
|
34
|
+
}, children), closeable ? (/*#__PURE__*/React.createElement(Box, {
|
|
35
|
+
width: "auto",
|
|
36
|
+
backgroundColor: "transparent",
|
|
37
|
+
paddings: {
|
|
38
|
+
pt: '1'
|
|
39
|
+
}
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Close, null, /*#__PURE__*/React.createElement(CloseLineIcon, {
|
|
33
41
|
size: 16
|
|
34
|
-
}))) : null)));
|
|
42
|
+
})))) : null)));
|
|
35
43
|
};
|
|
36
44
|
|
|
37
45
|
export { Toast };
|
|
@@ -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;"}
|
|
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;"}
|