@yamada-ui/alert 0.1.9 → 0.2.1
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 +6 -6
- package/dist/alert.js +5 -5
- package/dist/alert.mjs +1 -1
- package/dist/{chunk-EPMCURON.mjs → chunk-HFQA7RKI.mjs} +5 -5
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/alert.d.ts
CHANGED
|
@@ -8,27 +8,27 @@ import { LoadingProps } from '@yamada-ui/loading';
|
|
|
8
8
|
declare const statuses: {
|
|
9
9
|
readonly info: {
|
|
10
10
|
readonly icon: react.FC<_yamada_ui_icon.IconProps>;
|
|
11
|
-
readonly colorScheme: "
|
|
11
|
+
readonly colorScheme: "primary";
|
|
12
12
|
};
|
|
13
13
|
readonly success: {
|
|
14
14
|
readonly icon: react.FC<_yamada_ui_icon.IconProps>;
|
|
15
|
-
readonly colorScheme: "
|
|
15
|
+
readonly colorScheme: "secondary";
|
|
16
16
|
};
|
|
17
17
|
readonly warning: {
|
|
18
18
|
readonly icon: react.FC<_yamada_ui_icon.IconProps>;
|
|
19
|
-
readonly colorScheme: "
|
|
19
|
+
readonly colorScheme: "warning";
|
|
20
20
|
};
|
|
21
21
|
readonly error: {
|
|
22
22
|
readonly icon: react.FC<_yamada_ui_icon.IconProps>;
|
|
23
|
-
readonly colorScheme: "
|
|
23
|
+
readonly colorScheme: "danger";
|
|
24
24
|
};
|
|
25
25
|
readonly loading: {
|
|
26
26
|
readonly icon: _yamada_ui_core.Component<"svg", LoadingProps>;
|
|
27
|
-
readonly colorScheme: "
|
|
27
|
+
readonly colorScheme: "primary";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
type Status = keyof typeof statuses;
|
|
31
|
-
declare const getStatusColorScheme: (status: Status) => "
|
|
31
|
+
declare const getStatusColorScheme: (status: Status) => "primary" | "secondary" | "warning" | "danger";
|
|
32
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;
|
package/dist/alert.js
CHANGED
|
@@ -34,11 +34,11 @@ var import_loading = require("@yamada-ui/loading");
|
|
|
34
34
|
var import_utils = require("@yamada-ui/utils");
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var statuses = {
|
|
37
|
-
info: { icon: import_icon.InfoIcon, colorScheme: "
|
|
38
|
-
success: { icon: import_icon.CheckIcon, colorScheme: "
|
|
39
|
-
warning: { icon: import_icon.WarningIcon, colorScheme: "
|
|
40
|
-
error: { icon: import_icon.WarningIcon, colorScheme: "
|
|
41
|
-
loading: { icon: import_loading.Loading, colorScheme: "
|
|
37
|
+
info: { icon: import_icon.InfoIcon, colorScheme: "primary" },
|
|
38
|
+
success: { icon: import_icon.CheckIcon, colorScheme: "secondary" },
|
|
39
|
+
warning: { icon: import_icon.WarningIcon, colorScheme: "warning" },
|
|
40
|
+
error: { icon: import_icon.WarningIcon, colorScheme: "danger" },
|
|
41
|
+
loading: { icon: import_loading.Loading, colorScheme: "primary" }
|
|
42
42
|
};
|
|
43
43
|
var [AlertProvider, useAlert] = (0, import_utils.createContext)({
|
|
44
44
|
name: `AlertStylesContext`,
|
package/dist/alert.mjs
CHANGED
|
@@ -10,11 +10,11 @@ import { Loading } from "@yamada-ui/loading";
|
|
|
10
10
|
import { createContext, cx } from "@yamada-ui/utils";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
var statuses = {
|
|
13
|
-
info: { icon: InfoIcon, colorScheme: "
|
|
14
|
-
success: { icon: CheckIcon, colorScheme: "
|
|
15
|
-
warning: { icon: WarningIcon, colorScheme: "
|
|
16
|
-
error: { icon: WarningIcon, colorScheme: "
|
|
17
|
-
loading: { icon: Loading, colorScheme: "
|
|
13
|
+
info: { icon: InfoIcon, colorScheme: "primary" },
|
|
14
|
+
success: { icon: CheckIcon, colorScheme: "secondary" },
|
|
15
|
+
warning: { icon: WarningIcon, colorScheme: "warning" },
|
|
16
|
+
error: { icon: WarningIcon, colorScheme: "danger" },
|
|
17
|
+
loading: { icon: Loading, colorScheme: "primary" }
|
|
18
18
|
};
|
|
19
19
|
var [AlertProvider, useAlert] = createContext({
|
|
20
20
|
name: `AlertStylesContext`,
|
package/dist/index.js
CHANGED
|
@@ -36,11 +36,11 @@ var import_loading = require("@yamada-ui/loading");
|
|
|
36
36
|
var import_utils = require("@yamada-ui/utils");
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
38
|
var statuses = {
|
|
39
|
-
info: { icon: import_icon.InfoIcon, colorScheme: "
|
|
40
|
-
success: { icon: import_icon.CheckIcon, colorScheme: "
|
|
41
|
-
warning: { icon: import_icon.WarningIcon, colorScheme: "
|
|
42
|
-
error: { icon: import_icon.WarningIcon, colorScheme: "
|
|
43
|
-
loading: { icon: import_loading.Loading, colorScheme: "
|
|
39
|
+
info: { icon: import_icon.InfoIcon, colorScheme: "primary" },
|
|
40
|
+
success: { icon: import_icon.CheckIcon, colorScheme: "secondary" },
|
|
41
|
+
warning: { icon: import_icon.WarningIcon, colorScheme: "warning" },
|
|
42
|
+
error: { icon: import_icon.WarningIcon, colorScheme: "danger" },
|
|
43
|
+
loading: { icon: import_loading.Loading, colorScheme: "primary" }
|
|
44
44
|
};
|
|
45
45
|
var [AlertProvider, useAlert] = (0, import_utils.createContext)({
|
|
46
46
|
name: `AlertStylesContext`,
|
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.2.1",
|
|
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.
|
|
38
|
+
"@yamada-ui/core": "0.3.0",
|
|
39
39
|
"@yamada-ui/utils": "0.1.1",
|
|
40
|
-
"@yamada-ui/icon": "0.1.
|
|
41
|
-
"@yamada-ui/loading": "0.2.
|
|
40
|
+
"@yamada-ui/icon": "0.1.11",
|
|
41
|
+
"@yamada-ui/loading": "0.2.8"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"build:fast": "tsup src",
|
|
73
73
|
"clean": "rimraf dist .turbo",
|
|
74
74
|
"typecheck": "tsc --noEmit",
|
|
75
|
-
"gen:
|
|
75
|
+
"gen:types": "tsx ../../../scripts/generate-types"
|
|
76
76
|
}
|
|
77
77
|
}
|