Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/alert

Package Overview
Dependencies
Maintainers
1
Versions
1054
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/alert - npm Package Compare versions

Comparing version 0.0.0-dev-20230625235915 to 0.0.0-dev-20230701130255

dist/chunk-G632DWL6.mjs

20

dist/alert.d.ts

@@ -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>;

7

dist/alert.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc