@yamada-ui/alert 0.3.4 → 0.3.6
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.mts +51 -0
- package/dist/index.d.mts +5 -0
- package/package.json +5 -5
package/dist/alert.d.mts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps, ThemeProps } from '@yamada-ui/core';
|
|
3
|
+
import * as _yamada_ui_icon from '@yamada-ui/icon';
|
|
4
|
+
import { LoadingProps } from '@yamada-ui/loading';
|
|
5
|
+
import { FC } from 'react';
|
|
6
|
+
|
|
7
|
+
declare const statuses: {
|
|
8
|
+
readonly info: {
|
|
9
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
|
10
|
+
readonly colorScheme: "primary";
|
|
11
|
+
};
|
|
12
|
+
readonly success: {
|
|
13
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
|
14
|
+
readonly colorScheme: "secondary";
|
|
15
|
+
};
|
|
16
|
+
readonly warning: {
|
|
17
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
|
18
|
+
readonly colorScheme: "warning";
|
|
19
|
+
};
|
|
20
|
+
readonly error: {
|
|
21
|
+
readonly icon: FC<_yamada_ui_icon.IconProps>;
|
|
22
|
+
readonly colorScheme: "danger";
|
|
23
|
+
};
|
|
24
|
+
readonly loading: {
|
|
25
|
+
readonly icon: _yamada_ui_core.Component<"svg", LoadingProps>;
|
|
26
|
+
readonly colorScheme: "primary";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type Status = keyof typeof statuses;
|
|
30
|
+
declare const getStatusColorScheme: (status: Status) => "primary" | "secondary" | "warning" | "danger";
|
|
31
|
+
declare const getStatusIcon: (status: Status) => FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps>;
|
|
32
|
+
type AlertOptions = {
|
|
33
|
+
/**
|
|
34
|
+
* The status of the alert.
|
|
35
|
+
*
|
|
36
|
+
* @default 'info'
|
|
37
|
+
*/
|
|
38
|
+
status?: Status;
|
|
39
|
+
};
|
|
40
|
+
type AlertProps = HTMLUIProps<'div'> & ThemeProps<'Alert'> & AlertOptions;
|
|
41
|
+
declare const Alert: _yamada_ui_core.Component<"div", AlertProps>;
|
|
42
|
+
type AlertIconProps = HTMLUIProps<'span'> & {
|
|
43
|
+
variant?: LoadingProps['variant'];
|
|
44
|
+
};
|
|
45
|
+
declare const AlertIcon: FC<AlertIconProps>;
|
|
46
|
+
type AlertTitleProps = HTMLUIProps<'p'>;
|
|
47
|
+
declare const AlertTitle: _yamada_ui_core.Component<"p", AlertTitleProps>;
|
|
48
|
+
type AlertDescriptionProps = HTMLUIProps<'span'>;
|
|
49
|
+
declare const AlertDescription: _yamada_ui_core.Component<"span", AlertDescriptionProps>;
|
|
50
|
+
|
|
51
|
+
export { Alert, AlertDescription, AlertDescriptionProps, AlertIcon, AlertIconProps, AlertProps, AlertTitle, AlertTitleProps, getStatusColorScheme, getStatusIcon };
|
package/dist/index.d.mts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/alert",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
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.
|
|
39
|
-
"@yamada-ui/utils": "0.1.
|
|
40
|
-
"@yamada-ui/icon": "0.2.
|
|
41
|
-
"@yamada-ui/loading": "0.3.
|
|
38
|
+
"@yamada-ui/core": "0.5.1",
|
|
39
|
+
"@yamada-ui/utils": "0.1.3",
|
|
40
|
+
"@yamada-ui/icon": "0.2.6",
|
|
41
|
+
"@yamada-ui/loading": "0.3.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|