@yamada-ui/alert 0.5.16 → 0.5.17
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/README.md +1 -1
- package/dist/alert.d.mts +1 -1
- package/dist/alert.d.ts +1 -1
- package/dist/alert.js +2 -1
- package/dist/alert.mjs +1 -1
- package/dist/{chunk-JLV5CZ2J.mjs → chunk-B7QCNGBP.mjs} +2 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
@@ -22,7 +22,7 @@ $ npm install @yamada-ui/alert
|
|
22
22
|
|
23
23
|
Wouldn't you like to contribute? That's amazing! We have prepared a [contribution guide](https://github.com/hirotomoyamada/yamada-ui/blob/main/CONTRIBUTING.md) to assist you.
|
24
24
|
|
25
|
-
##
|
25
|
+
## License
|
26
26
|
|
27
27
|
This package is licensed under the terms of the
|
28
28
|
[MIT license](https://github.com/hirotomoyamada/yamada-ui/blob/main/LICENSE).
|
package/dist/alert.d.mts
CHANGED
@@ -27,7 +27,7 @@ declare const defaultStatuses: {
|
|
27
27
|
};
|
28
28
|
};
|
29
29
|
type Status = keyof typeof defaultStatuses;
|
30
|
-
declare const getStatusColorScheme: (status: Status, statuses?: AlertStatuses) => "link" | (string & {}) | "info" | "success" | "warning" | "danger" | "blue" | "cyan" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "violet" | "yellow" | "primary" | "secondary" | "whiteAlpha" | "blackAlpha" | "
|
30
|
+
declare const getStatusColorScheme: (status: Status, statuses?: AlertStatuses) => "link" | (string & {}) | "info" | "success" | "warning" | "danger" | "blue" | "cyan" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "violet" | "yellow" | "primary" | "secondary" | "whiteAlpha" | "blackAlpha" | "neutral" | "rose" | "flashy" | "amber" | "emerald" | "sky";
|
31
31
|
declare const getStatusIcon: (status: Status, statuses?: AlertStatuses) => FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps> | FC;
|
32
32
|
type AlertOptions = {
|
33
33
|
/**
|
package/dist/alert.d.ts
CHANGED
@@ -27,7 +27,7 @@ declare const defaultStatuses: {
|
|
27
27
|
};
|
28
28
|
};
|
29
29
|
type Status = keyof typeof defaultStatuses;
|
30
|
-
declare const getStatusColorScheme: (status: Status, statuses?: AlertStatuses) => "link" | (string & {}) | "info" | "success" | "warning" | "danger" | "blue" | "cyan" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "violet" | "yellow" | "primary" | "secondary" | "whiteAlpha" | "blackAlpha" | "
|
30
|
+
declare const getStatusColorScheme: (status: Status, statuses?: AlertStatuses) => "link" | (string & {}) | "info" | "success" | "warning" | "danger" | "blue" | "cyan" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "violet" | "yellow" | "primary" | "secondary" | "whiteAlpha" | "blackAlpha" | "neutral" | "rose" | "flashy" | "amber" | "emerald" | "sky";
|
31
31
|
declare const getStatusIcon: (status: Status, statuses?: AlertStatuses) => FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps> | FC;
|
32
32
|
type AlertOptions = {
|
33
33
|
/**
|
package/dist/alert.js
CHANGED
@@ -97,7 +97,8 @@ var AlertIcon = ({
|
|
97
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
|
+
...styles.icon,
|
101
|
+
...status === "loading" ? styles.loading : {}
|
101
102
|
};
|
102
103
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
103
104
|
import_core.ui.span,
|
package/dist/alert.mjs
CHANGED
@@ -75,7 +75,8 @@ var AlertIcon = ({
|
|
75
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
|
+
...styles.icon,
|
79
|
+
...status === "loading" ? styles.loading : {}
|
79
80
|
};
|
80
81
|
return /* @__PURE__ */ jsx(
|
81
82
|
ui.span,
|
package/dist/index.js
CHANGED
@@ -97,7 +97,8 @@ var AlertIcon = ({
|
|
97
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
|
+
...styles.icon,
|
101
|
+
...status === "loading" ? styles.loading : {}
|
101
102
|
};
|
102
103
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
103
104
|
import_core.ui.span,
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yamada-ui/alert",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.17",
|
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.13.
|
39
|
-
"@yamada-ui/utils": "0.4.
|
40
|
-
"@yamada-ui/icon": "0.3.
|
41
|
-
"@yamada-ui/loading": "0.5.
|
38
|
+
"@yamada-ui/core": "0.13.2",
|
39
|
+
"@yamada-ui/utils": "0.4.1",
|
40
|
+
"@yamada-ui/icon": "0.3.21",
|
41
|
+
"@yamada-ui/loading": "0.5.9"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
44
|
"react": "^18.0.0",
|