@yamada-ui/alert 0.1.2 → 0.1.4
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.d.ts +2 -2
- package/dist/alert.js +1 -2
- package/dist/alert.mjs +1 -1
- package/dist/{chunk-5VGLDUCN.mjs → chunk-EPMCURON.mjs} +1 -2
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/alert.d.ts
CHANGED
|
@@ -23,13 +23,13 @@ declare const statuses: {
|
|
|
23
23
|
readonly colorScheme: "red";
|
|
24
24
|
};
|
|
25
25
|
readonly loading: {
|
|
26
|
-
readonly icon: _yamada_ui_core.Component<"
|
|
26
|
+
readonly icon: _yamada_ui_core.Component<"svg", LoadingProps>;
|
|
27
27
|
readonly colorScheme: "blue";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
type Status = keyof typeof statuses;
|
|
31
31
|
declare const getStatusColorScheme: (status: Status) => "blue" | "green" | "orange" | "red";
|
|
32
|
-
declare const getStatusIcon: (status: Status) => react.FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"
|
|
32
|
+
declare const getStatusIcon: (status: Status) => react.FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps>;
|
|
33
33
|
type AlertOptions = {
|
|
34
34
|
status?: Status;
|
|
35
35
|
};
|
package/dist/alert.js
CHANGED
|
@@ -71,8 +71,7 @@ var AlertIcon = ({ className, children, variant = "oval", ...rest }) => {
|
|
|
71
71
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.span, { display: "inherit", className: (0, import_utils.cx)("ui-alert-icon", className), __css: css, ...rest, children: children || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
72
|
Icon,
|
|
73
73
|
{
|
|
74
|
-
boxSize: "100%"
|
|
75
|
-
...status === "loading" ? { variant, color: "currentcolor" } : {}
|
|
74
|
+
...status === "loading" ? { variant, color: "currentcolor" } : { boxSize: "100%" }
|
|
76
75
|
}
|
|
77
76
|
) });
|
|
78
77
|
};
|
package/dist/alert.mjs
CHANGED
|
@@ -47,8 +47,7 @@ var AlertIcon = ({ className, children, variant = "oval", ...rest }) => {
|
|
|
47
47
|
return /* @__PURE__ */ jsx(ui.span, { display: "inherit", className: cx("ui-alert-icon", className), __css: css, ...rest, children: children || /* @__PURE__ */ jsx(
|
|
48
48
|
Icon,
|
|
49
49
|
{
|
|
50
|
-
boxSize: "100%"
|
|
51
|
-
...status === "loading" ? { variant, color: "currentcolor" } : {}
|
|
50
|
+
...status === "loading" ? { variant, color: "currentcolor" } : { boxSize: "100%" }
|
|
52
51
|
}
|
|
53
52
|
) });
|
|
54
53
|
};
|
package/dist/index.js
CHANGED
|
@@ -73,8 +73,7 @@ var AlertIcon = ({ className, children, variant = "oval", ...rest }) => {
|
|
|
73
73
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.span, { display: "inherit", className: (0, import_utils.cx)("ui-alert-icon", className), __css: css, ...rest, children: children || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
74
|
Icon,
|
|
75
75
|
{
|
|
76
|
-
boxSize: "100%"
|
|
77
|
-
...status === "loading" ? { variant, color: "currentcolor" } : {}
|
|
76
|
+
...status === "loading" ? { variant, color: "currentcolor" } : { boxSize: "100%" }
|
|
78
77
|
}
|
|
79
78
|
) });
|
|
80
79
|
};
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/alert",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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.1.
|
|
38
|
+
"@yamada-ui/core": "0.1.4",
|
|
39
39
|
"@yamada-ui/utils": "0.1.0",
|
|
40
|
-
"@yamada-ui/icon": "0.1.
|
|
41
|
-
"@yamada-ui/loading": "0.1
|
|
40
|
+
"@yamada-ui/icon": "0.1.4",
|
|
41
|
+
"@yamada-ui/loading": "0.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|