@yamada-ui/alert 1.0.42-next-20241008193728 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/alert.d.mts +7 -7
- package/dist/alert.d.ts +7 -7
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +5 -5
package/dist/alert.d.mts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
2
|
-
import { AlertStatuses, HTMLUIProps, ThemeProps, FC } from '@yamada-ui/core';
|
3
1
|
import * as react from 'react';
|
2
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
+
import { AlertStatuses, FC, HTMLUIProps, ThemeProps } from '@yamada-ui/core';
|
4
4
|
import * as _yamada_ui_icon from '@yamada-ui/icon';
|
5
5
|
import { LoadingProps } from '@yamada-ui/loading';
|
6
6
|
|
7
7
|
declare const defaultStatuses: {
|
8
8
|
readonly error: {
|
9
9
|
readonly colorScheme: "danger";
|
10
|
-
readonly icon:
|
10
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
11
11
|
};
|
12
12
|
readonly info: {
|
13
13
|
readonly colorScheme: "info";
|
14
|
-
readonly icon:
|
14
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
15
15
|
};
|
16
16
|
readonly loading: {
|
17
17
|
readonly colorScheme: "primary";
|
@@ -19,16 +19,16 @@ declare const defaultStatuses: {
|
|
19
19
|
};
|
20
20
|
readonly success: {
|
21
21
|
readonly colorScheme: "success";
|
22
|
-
readonly icon:
|
22
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
23
23
|
};
|
24
24
|
readonly warning: {
|
25
25
|
readonly colorScheme: "warning";
|
26
|
-
readonly icon:
|
26
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
27
27
|
};
|
28
28
|
};
|
29
29
|
type Status = keyof typeof defaultStatuses;
|
30
30
|
declare const getStatusColorScheme: (status: Status, statuses?: AlertStatuses) => "danger" | "info" | "primary" | "link" | "success" | "warning" | "amber" | "blackAlpha" | "blue" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "secondary" | "sky" | "teal" | "violet" | "whiteAlpha" | "yellow" | ({} & string);
|
31
|
-
declare const getStatusIcon: (status: Status, statuses?: AlertStatuses) =>
|
31
|
+
declare const getStatusIcon: (status: Status, statuses?: AlertStatuses) => FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps> | react.FC;
|
32
32
|
interface AlertOptions {
|
33
33
|
/**
|
34
34
|
* The status of the alert.
|
package/dist/alert.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
2
|
-
import { AlertStatuses, HTMLUIProps, ThemeProps, FC } from '@yamada-ui/core';
|
3
1
|
import * as react from 'react';
|
2
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
+
import { AlertStatuses, FC, HTMLUIProps, ThemeProps } from '@yamada-ui/core';
|
4
4
|
import * as _yamada_ui_icon from '@yamada-ui/icon';
|
5
5
|
import { LoadingProps } from '@yamada-ui/loading';
|
6
6
|
|
7
7
|
declare const defaultStatuses: {
|
8
8
|
readonly error: {
|
9
9
|
readonly colorScheme: "danger";
|
10
|
-
readonly icon:
|
10
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
11
11
|
};
|
12
12
|
readonly info: {
|
13
13
|
readonly colorScheme: "info";
|
14
|
-
readonly icon:
|
14
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
15
15
|
};
|
16
16
|
readonly loading: {
|
17
17
|
readonly colorScheme: "primary";
|
@@ -19,16 +19,16 @@ declare const defaultStatuses: {
|
|
19
19
|
};
|
20
20
|
readonly success: {
|
21
21
|
readonly colorScheme: "success";
|
22
|
-
readonly icon:
|
22
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
23
23
|
};
|
24
24
|
readonly warning: {
|
25
25
|
readonly colorScheme: "warning";
|
26
|
-
readonly icon:
|
26
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
27
27
|
};
|
28
28
|
};
|
29
29
|
type Status = keyof typeof defaultStatuses;
|
30
30
|
declare const getStatusColorScheme: (status: Status, statuses?: AlertStatuses) => "danger" | "info" | "primary" | "link" | "success" | "warning" | "amber" | "blackAlpha" | "blue" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "secondary" | "sky" | "teal" | "violet" | "whiteAlpha" | "yellow" | ({} & string);
|
31
|
-
declare const getStatusIcon: (status: Status, statuses?: AlertStatuses) =>
|
31
|
+
declare const getStatusIcon: (status: Status, statuses?: AlertStatuses) => FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps> | react.FC;
|
32
32
|
interface AlertOptions {
|
33
33
|
/**
|
34
34
|
* The status of the alert.
|
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { Alert, AlertDescription, AlertDescriptionProps, AlertIcon, AlertIconProps, AlertProps, AlertTitle, AlertTitleProps } from './alert.mjs';
|
2
|
-
import '@yamada-ui/core';
|
3
2
|
import 'react';
|
3
|
+
import '@yamada-ui/core';
|
4
4
|
import '@yamada-ui/icon';
|
5
5
|
import '@yamada-ui/loading';
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { Alert, AlertDescription, AlertDescriptionProps, AlertIcon, AlertIconProps, AlertProps, AlertTitle, AlertTitleProps } from './alert.js';
|
2
|
-
import '@yamada-ui/core';
|
3
2
|
import 'react';
|
3
|
+
import '@yamada-ui/core';
|
4
4
|
import '@yamada-ui/icon';
|
5
5
|
import '@yamada-ui/loading';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yamada-ui/alert",
|
3
|
-
"version": "1.0.42
|
3
|
+
"version": "1.0.42",
|
4
4
|
"description": "Yamada UI alert component",
|
5
5
|
"keywords": [
|
6
6
|
"yamada",
|
@@ -36,10 +36,10 @@
|
|
36
36
|
"url": "https://github.com/yamada-ui/yamada-ui/issues"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@yamada-ui/core": "1.15.2
|
40
|
-
"@yamada-ui/icon": "1.1.8
|
41
|
-
"@yamada-ui/loading": "1.1.18
|
42
|
-
"@yamada-ui/utils": "1.5.3
|
39
|
+
"@yamada-ui/core": "1.15.2",
|
40
|
+
"@yamada-ui/icon": "1.1.8",
|
41
|
+
"@yamada-ui/loading": "1.1.18",
|
42
|
+
"@yamada-ui/utils": "1.5.3"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"clean-package": "2.2.0",
|