@yamada-ui/alert
Advanced tools
Comparing version 0.0.0-dev-20230625235915 to 0.0.0-dev-20230701130255
@@ -1,23 +0,22 @@ | ||
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import * as _yamada_ui_core from '@yamada-ui/core'; | ||
import { HTMLUIProps, ThemeProps } from '@yamada-ui/core'; | ||
import * as react from 'react'; | ||
import * as _yamada_ui_icon from '@yamada-ui/icon'; | ||
import { LoadingProps } from '@yamada-ui/loading'; | ||
import { FC } from 'react'; | ||
declare const statuses: { | ||
readonly info: { | ||
readonly icon: react.FC<_yamada_ui_icon.IconProps>; | ||
readonly icon: FC<_yamada_ui_icon.IconProps>; | ||
readonly colorScheme: "primary"; | ||
}; | ||
readonly success: { | ||
readonly icon: react.FC<_yamada_ui_icon.IconProps>; | ||
readonly icon: FC<_yamada_ui_icon.IconProps>; | ||
readonly colorScheme: "secondary"; | ||
}; | ||
readonly warning: { | ||
readonly icon: react.FC<_yamada_ui_icon.IconProps>; | ||
readonly icon: FC<_yamada_ui_icon.IconProps>; | ||
readonly colorScheme: "warning"; | ||
}; | ||
readonly error: { | ||
readonly icon: react.FC<_yamada_ui_icon.IconProps>; | ||
readonly icon: FC<_yamada_ui_icon.IconProps>; | ||
readonly colorScheme: "danger"; | ||
@@ -32,4 +31,9 @@ }; | ||
declare const getStatusColorScheme: (status: Status) => "primary" | "secondary" | "warning" | "danger"; | ||
declare const getStatusIcon: (status: Status) => react.FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps>; | ||
declare const getStatusIcon: (status: Status) => FC<_yamada_ui_icon.IconProps> | _yamada_ui_core.Component<"svg", LoadingProps>; | ||
type AlertOptions = { | ||
/** | ||
* The status of the alert. | ||
* | ||
* @default 'info' | ||
*/ | ||
status?: Status; | ||
@@ -42,3 +46,3 @@ }; | ||
}; | ||
declare const AlertIcon: ({ className, children, variant, ...rest }: AlertIconProps) => react_jsx_runtime.JSX.Element; | ||
declare const AlertIcon: FC<AlertIconProps>; | ||
type AlertTitleProps = HTMLUIProps<'p'>; | ||
@@ -45,0 +49,0 @@ declare const AlertTitle: _yamada_ui_core.Component<"p", AlertTitleProps>; |
@@ -65,3 +65,8 @@ "use strict"; | ||
); | ||
var AlertIcon = ({ className, children, variant = "oval", ...rest }) => { | ||
var AlertIcon = ({ | ||
className, | ||
children, | ||
variant = "oval", | ||
...rest | ||
}) => { | ||
const { status, styles } = useAlert(); | ||
@@ -68,0 +73,0 @@ const Icon = getStatusIcon(status); |
@@ -1,6 +0,5 @@ | ||
export { Alert, AlertDescription, AlertDescriptionProps, AlertIcon, AlertIconProps, AlertProps, AlertTitle, AlertTitleProps, getStatusColorScheme, getStatusIcon } from './alert.js'; | ||
import 'react/jsx-runtime'; | ||
export { Alert, AlertDescription, AlertDescriptionProps, AlertIcon, AlertIconProps, AlertProps, AlertTitle, AlertTitleProps } from './alert.js'; | ||
import '@yamada-ui/core'; | ||
import 'react'; | ||
import '@yamada-ui/icon'; | ||
import '@yamada-ui/loading'; | ||
import 'react'; |
@@ -26,5 +26,3 @@ "use strict"; | ||
AlertIcon: () => AlertIcon, | ||
AlertTitle: () => AlertTitle, | ||
getStatusColorScheme: () => getStatusColorScheme, | ||
getStatusIcon: () => getStatusIcon | ||
AlertTitle: () => AlertTitle | ||
}); | ||
@@ -68,3 +66,8 @@ module.exports = __toCommonJS(src_exports); | ||
); | ||
var AlertIcon = ({ className, children, variant = "oval", ...rest }) => { | ||
var AlertIcon = ({ | ||
className, | ||
children, | ||
variant = "oval", | ||
...rest | ||
}) => { | ||
const { status, styles } = useAlert(); | ||
@@ -104,5 +107,3 @@ const Icon = getStatusIcon(status); | ||
AlertIcon, | ||
AlertTitle, | ||
getStatusColorScheme, | ||
getStatusIcon | ||
AlertTitle | ||
}); |
{ | ||
"name": "@yamada-ui/alert", | ||
"version": "0.0.0-dev-20230625235915", | ||
"version": "0.0.0-dev-20230701130255", | ||
"description": "Yamada UI alert component", | ||
@@ -38,6 +38,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/core": "0.0.0-dev-20230625235915", | ||
"@yamada-ui/core": "0.0.0-dev-20230701130255", | ||
"@yamada-ui/utils": "0.1.1", | ||
"@yamada-ui/icon": "0.0.0-dev-20230625235915", | ||
"@yamada-ui/loading": "0.0.0-dev-20230625235915" | ||
"@yamada-ui/icon": "0.0.0-dev-20230701130255", | ||
"@yamada-ui/loading": "0.0.0-dev-20230701130255" | ||
}, | ||
@@ -76,4 +76,4 @@ "devDependencies": { | ||
"typecheck": "tsc --noEmit", | ||
"gen:types": "tsx ../../../scripts/generate-types" | ||
"gen:docs": "tsx ../../../scripts/generate-docs" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
376
17539
+ Added@yamada-ui/core@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/icon@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/loading@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/portal@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/use-breakpoint@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/use-token@0.0.0-dev-20230701130255(transitive)
+ Added@yamada-ui/use-value@0.0.0-dev-20230701130255(transitive)
- Removed@yamada-ui/core@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/icon@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/loading@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/portal@0.1.2(transitive)
- Removed@yamada-ui/use-breakpoint@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/use-token@0.0.0-dev-20230625235915(transitive)
- Removed@yamada-ui/use-value@0.0.0-dev-20230625235915(transitive)