@yamada-ui/alert 0.0.0-dev-20231015110740 → 0.0.0-dev-20231015111410
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/dist/alert.js +4 -4
- package/dist/alert.mjs +1 -1
- package/dist/{chunk-SGJU7KLF.mjs → chunk-3X7FYNVJ.mjs} +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/alert.js
CHANGED
|
@@ -55,9 +55,9 @@ var getStatusIcon = (status, statuses) => {
|
|
|
55
55
|
};
|
|
56
56
|
var Alert = (0, import_core.forwardRef)(
|
|
57
57
|
({ status = "info", colorScheme, ...props }, ref) => {
|
|
58
|
-
var _a, _b;
|
|
58
|
+
var _a, _b, _c;
|
|
59
59
|
const { theme } = (0, import_core.useTheme)();
|
|
60
|
-
const statuses = (_b = (_a = theme.__config.alert) == null ? void 0 :
|
|
60
|
+
const statuses = (_c = (_b = (_a = theme.__config) == null ? void 0 : _a.alert) == null ? void 0 : _b.statuses) != null ? _c : {};
|
|
61
61
|
colorScheme = colorScheme != null ? colorScheme : getStatusColorScheme(status, statuses);
|
|
62
62
|
const [styles, mergedProps] = (0, import_core.useMultiComponentStyle)("Alert", {
|
|
63
63
|
...props,
|
|
@@ -91,10 +91,10 @@ var AlertIcon = ({
|
|
|
91
91
|
variant = "oval",
|
|
92
92
|
...rest
|
|
93
93
|
}) => {
|
|
94
|
-
var _a, _b;
|
|
94
|
+
var _a, _b, _c;
|
|
95
95
|
const { status, styles } = useAlert();
|
|
96
96
|
const { theme } = (0, import_core.useTheme)();
|
|
97
|
-
const statuses = (_b = (_a = theme.__config.alert) == null ? void 0 :
|
|
97
|
+
const statuses = (_c = (_b = (_a = theme.__config) == null ? void 0 : _a.alert) == null ? void 0 : _b.statuses) != null ? _c : {};
|
|
98
98
|
const Icon = getStatusIcon(status, statuses);
|
|
99
99
|
const css = {
|
|
100
100
|
...status === "loading" ? styles.loading : styles.icon
|
package/dist/alert.mjs
CHANGED
|
@@ -33,9 +33,9 @@ var getStatusIcon = (status, statuses) => {
|
|
|
33
33
|
};
|
|
34
34
|
var Alert = forwardRef(
|
|
35
35
|
({ status = "info", colorScheme, ...props }, ref) => {
|
|
36
|
-
var _a, _b;
|
|
36
|
+
var _a, _b, _c;
|
|
37
37
|
const { theme } = useTheme();
|
|
38
|
-
const statuses = (_b = (_a = theme.__config.alert) == null ? void 0 :
|
|
38
|
+
const statuses = (_c = (_b = (_a = theme.__config) == null ? void 0 : _a.alert) == null ? void 0 : _b.statuses) != null ? _c : {};
|
|
39
39
|
colorScheme = colorScheme != null ? colorScheme : getStatusColorScheme(status, statuses);
|
|
40
40
|
const [styles, mergedProps] = useMultiComponentStyle("Alert", {
|
|
41
41
|
...props,
|
|
@@ -69,10 +69,10 @@ var AlertIcon = ({
|
|
|
69
69
|
variant = "oval",
|
|
70
70
|
...rest
|
|
71
71
|
}) => {
|
|
72
|
-
var _a, _b;
|
|
72
|
+
var _a, _b, _c;
|
|
73
73
|
const { status, styles } = useAlert();
|
|
74
74
|
const { theme } = useTheme();
|
|
75
|
-
const statuses = (_b = (_a = theme.__config.alert) == null ? void 0 :
|
|
75
|
+
const statuses = (_c = (_b = (_a = theme.__config) == null ? void 0 : _a.alert) == null ? void 0 : _b.statuses) != null ? _c : {};
|
|
76
76
|
const Icon = getStatusIcon(status, statuses);
|
|
77
77
|
const css = {
|
|
78
78
|
...status === "loading" ? styles.loading : styles.icon
|
package/dist/index.js
CHANGED
|
@@ -55,9 +55,9 @@ var getStatusIcon = (status, statuses) => {
|
|
|
55
55
|
};
|
|
56
56
|
var Alert = (0, import_core.forwardRef)(
|
|
57
57
|
({ status = "info", colorScheme, ...props }, ref) => {
|
|
58
|
-
var _a, _b;
|
|
58
|
+
var _a, _b, _c;
|
|
59
59
|
const { theme } = (0, import_core.useTheme)();
|
|
60
|
-
const statuses = (_b = (_a = theme.__config.alert) == null ? void 0 :
|
|
60
|
+
const statuses = (_c = (_b = (_a = theme.__config) == null ? void 0 : _a.alert) == null ? void 0 : _b.statuses) != null ? _c : {};
|
|
61
61
|
colorScheme = colorScheme != null ? colorScheme : getStatusColorScheme(status, statuses);
|
|
62
62
|
const [styles, mergedProps] = (0, import_core.useMultiComponentStyle)("Alert", {
|
|
63
63
|
...props,
|
|
@@ -91,10 +91,10 @@ var AlertIcon = ({
|
|
|
91
91
|
variant = "oval",
|
|
92
92
|
...rest
|
|
93
93
|
}) => {
|
|
94
|
-
var _a, _b;
|
|
94
|
+
var _a, _b, _c;
|
|
95
95
|
const { status, styles } = useAlert();
|
|
96
96
|
const { theme } = (0, import_core.useTheme)();
|
|
97
|
-
const statuses = (_b = (_a = theme.__config.alert) == null ? void 0 :
|
|
97
|
+
const statuses = (_c = (_b = (_a = theme.__config) == null ? void 0 : _a.alert) == null ? void 0 : _b.statuses) != null ? _c : {};
|
|
98
98
|
const Icon = getStatusIcon(status, statuses);
|
|
99
99
|
const css = {
|
|
100
100
|
...status === "loading" ? styles.loading : styles.icon
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/alert",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20231015111410",
|
|
4
4
|
"description": "Yamada UI alert component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.0.0-dev-
|
|
38
|
+
"@yamada-ui/core": "0.0.0-dev-20231015111410",
|
|
39
39
|
"@yamada-ui/utils": "0.3.0",
|
|
40
|
-
"@yamada-ui/icon": "0.0.0-dev-
|
|
41
|
-
"@yamada-ui/loading": "0.0.0-dev-
|
|
40
|
+
"@yamada-ui/icon": "0.0.0-dev-20231015111410",
|
|
41
|
+
"@yamada-ui/loading": "0.0.0-dev-20231015111410"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|