Socket
Socket
Sign inDemoInstall

@bone-ui/alert

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bone-ui/alert - npm Package Compare versions

Comparing version 0.34.1 to 0.35.0

dist/icons/CheckCircleSolid.d.ts

36

dist/alert.cjs.development.js

@@ -11,3 +11,3 @@ 'use strict';

var react = require('@fower/react');
var icons = require('@bone-ui/icons');
var iconify = require('@bone-ui/iconify');

@@ -85,8 +85,32 @@ function _objectWithoutPropertiesLoose(source, excluded) {

var XCircleSolid = /*#__PURE__*/iconify.iconify({
displayName: 'XCircleSolid',
fill: 'currentColor',
d: 'M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM10.2803 9.21967C9.98744 8.92678 9.51256 8.92678 9.21967 9.21967C8.92678 9.51256 8.92678 9.98744 9.21967 10.2803L10.9393 12L9.21967 13.7197C8.92678 14.0126 8.92678 14.4874 9.21967 14.7803C9.51256 15.0732 9.98744 15.0732 10.2803 14.7803L12 13.0607L13.7197 14.7803C14.0126 15.0732 14.4874 15.0732 14.7803 14.7803C15.0732 14.4874 15.0732 14.0126 14.7803 13.7197L13.0607 12L14.7803 10.2803C15.0732 9.98744 15.0732 9.51256 14.7803 9.21967C14.4874 8.92678 14.0126 8.92678 13.7197 9.21967L12 10.9393L10.2803 9.21967Z'
});
var InformationCircleSolid = /*#__PURE__*/iconify.iconify({
displayName: 'InformationCircleSolid',
fill: 'currentColor',
d: 'M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM10.9562 10.5584C12.1025 9.98533 13.3931 11.0206 13.0823 12.2639L12.3733 15.0999L12.4148 15.0792C12.7852 14.894 13.2357 15.0441 13.421 15.4146C13.6062 15.7851 13.4561 16.2356 13.0856 16.4208L13.0441 16.4416C11.8979 17.0147 10.6072 15.9794 10.9181 14.7361L11.6271 11.9001L11.5856 11.9208C11.2151 12.1061 10.7646 11.9559 10.5793 11.5854C10.3941 11.2149 10.5443 10.7644 10.9148 10.5792L10.9562 10.5584ZM12 9C12.4142 9 12.75 8.66421 12.75 8.25C12.75 7.83579 12.4142 7.5 12 7.5C11.5858 7.5 11.25 7.83579 11.25 8.25C11.25 8.66421 11.5858 9 12 9Z'
});
var ExclamationCircleSolid = /*#__PURE__*/iconify.iconify({
displayName: 'ExclamationCircleSolid',
fill: 'currentColor',
d: 'M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 8.25C12.4142 8.25 12.75 8.58579 12.75 9V12.75C12.75 13.1642 12.4142 13.5 12 13.5C11.5858 13.5 11.25 13.1642 11.25 12.75V9C11.25 8.58579 11.5858 8.25 12 8.25ZM12 16.5C12.4142 16.5 12.75 16.1642 12.75 15.75C12.75 15.3358 12.4142 15 12 15C11.5858 15 11.25 15.3358 11.25 15.75C11.25 16.1642 11.5858 16.5 12 16.5Z'
});
var CheckCircleSolid = /*#__PURE__*/iconify.iconify({
displayName: 'CheckCircleSolid',
fill: 'currentColor',
d: 'M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM15.6103 10.1859C15.8511 9.84887 15.773 9.38046 15.4359 9.1397C15.0989 8.89894 14.6305 8.97701 14.3897 9.31407L11.1543 13.8436L9.53033 12.2197C9.23744 11.9268 8.76256 11.9268 8.46967 12.2197C8.17678 12.5126 8.17678 12.9874 8.46967 13.2803L10.7197 15.5303C10.8756 15.6862 11.0921 15.7656 11.3119 15.7474C11.5316 15.7293 11.7322 15.6153 11.8603 15.4359L15.6103 10.1859Z'
});
var IconComponents = {
"default": icons.InformationCircleSolid,
info: icons.InformationCircleSolid,
warning: icons.ExclamationCircleSolid,
success: icons.CheckCircleSolid,
error: icons.XCircleSolid
"default": InformationCircleSolid,
info: InformationCircleSolid,
warning: ExclamationCircleSolid,
success: CheckCircleSolid,
error: XCircleSolid
};

@@ -93,0 +117,0 @@ var AlertIcon = /*#__PURE__*/utils.forwardRef(function (props, ref) {

2

dist/alert.cjs.production.min.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("react"),t=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,n=require("@bone-ui/utils"),o=require("@fower/react"),a=require("@bone-ui/icons"),i=r.createContext({}),l=i.Provider,c=["type","variant"],u=n.forwardRef((function(e,r){var n=e.type,a=void 0===n?"default":n,i=e.variant,u=void 0===i?"filled":i,d=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}(e,c),s="outline"===u;return t.createElement(l,{value:{type:a}},t.createElement(o.Box,Object.assign({className:"bone-alert",ref:r,px4:!0,py4:!0,"rounded-4":!0,toCenter:!0,relative:!0,border:s},function(e,r){return{default:{bgGray100:!0,gray700:!0,borderGray200:r},info:{bgBlue100:!0,blue700:!0,borderBlue200:r},warning:{bgOrange100:!0,orange700:!0,borderOrange200:r},success:{bgGreen100:!0,green700:!0,borderGreen200:r},error:{bgRed100:!0,red700:!0,borderRed200:r}}[e]}(a,s),d)))})),d={default:a.InformationCircleSolid,info:a.InformationCircleSolid,warning:a.ExclamationCircleSolid,success:a.CheckCircleSolid,error:a.XCircleSolid},s=n.forwardRef((function(e,n){var o=r.useContext(i).type;return t.createElement(d[void 0===o?"default":o],Object.assign({className:"bone-alert-icon",mr2:!0,"minW-24":!0,square6:!0,ref:n},e))})),f=n.forwardRef((function(e,r){return t.createElement(o.Box,Object.assign({className:"bone-alert-title",ref:r,fontBold:!0,leadingNormal:!0},e))})),b=n.forwardRef((function(e,r){return t.createElement(o.Box,Object.assign({className:"bone-alert-description",leadingNormal:!0,ref:r},e))}));exports.Alert=u,exports.AlertDescription=b,exports.AlertIcon=s,exports.AlertTitle=f;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("react"),t=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,n=require("@bone-ui/utils"),o=require("@fower/react"),i=require("@bone-ui/iconify"),a=r.createContext({}),l=a.Provider,C=["type","variant"],c=n.forwardRef((function(e,r){var n=e.type,i=void 0===n?"default":n,a=e.variant,c=void 0===a?"filled":a,d=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r.indexOf(t=i[n])>=0||(o[t]=e[t]);return o}(e,C),f="outline"===c;return t.createElement(l,{value:{type:i}},t.createElement(o.Box,Object.assign({className:"bone-alert",ref:r,px4:!0,py4:!0,"rounded-4":!0,toCenter:!0,relative:!0,border:f},function(e,r){return{default:{bgGray100:!0,gray700:!0,borderGray200:r},info:{bgBlue100:!0,blue700:!0,borderBlue200:r},warning:{bgOrange100:!0,orange700:!0,borderOrange200:r},success:{bgGreen100:!0,green700:!0,borderGreen200:r},error:{bgRed100:!0,red700:!0,borderRed200:r}}[e]}(i,f),d)))})),d=i.iconify({displayName:"XCircleSolid",fill:"currentColor",d:"M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM10.2803 9.21967C9.98744 8.92678 9.51256 8.92678 9.21967 9.21967C8.92678 9.51256 8.92678 9.98744 9.21967 10.2803L10.9393 12L9.21967 13.7197C8.92678 14.0126 8.92678 14.4874 9.21967 14.7803C9.51256 15.0732 9.98744 15.0732 10.2803 14.7803L12 13.0607L13.7197 14.7803C14.0126 15.0732 14.4874 15.0732 14.7803 14.7803C15.0732 14.4874 15.0732 14.0126 14.7803 13.7197L13.0607 12L14.7803 10.2803C15.0732 9.98744 15.0732 9.51256 14.7803 9.21967C14.4874 8.92678 14.0126 8.92678 13.7197 9.21967L12 10.9393L10.2803 9.21967Z"}),f=i.iconify({displayName:"InformationCircleSolid",fill:"currentColor",d:"M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM10.9562 10.5584C12.1025 9.98533 13.3931 11.0206 13.0823 12.2639L12.3733 15.0999L12.4148 15.0792C12.7852 14.894 13.2357 15.0441 13.421 15.4146C13.6062 15.7851 13.4561 16.2356 13.0856 16.4208L13.0441 16.4416C11.8979 17.0147 10.6072 15.9794 10.9181 14.7361L11.6271 11.9001L11.5856 11.9208C11.2151 12.1061 10.7646 11.9559 10.5793 11.5854C10.3941 11.2149 10.5443 10.7644 10.9148 10.5792L10.9562 10.5584ZM12 9C12.4142 9 12.75 8.66421 12.75 8.25C12.75 7.83579 12.4142 7.5 12 7.5C11.5858 7.5 11.25 7.83579 11.25 8.25C11.25 8.66421 11.5858 9 12 9Z"}),u={default:f,info:f,warning:i.iconify({displayName:"ExclamationCircleSolid",fill:"currentColor",d:"M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 8.25C12.4142 8.25 12.75 8.58579 12.75 9V12.75C12.75 13.1642 12.4142 13.5 12 13.5C11.5858 13.5 11.25 13.1642 11.25 12.75V9C11.25 8.58579 11.5858 8.25 12 8.25ZM12 16.5C12.4142 16.5 12.75 16.1642 12.75 15.75C12.75 15.3358 12.4142 15 12 15C11.5858 15 11.25 15.3358 11.25 15.75C11.25 16.1642 11.5858 16.5 12 16.5Z"}),success:i.iconify({displayName:"CheckCircleSolid",fill:"currentColor",d:"M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM15.6103 10.1859C15.8511 9.84887 15.773 9.38046 15.4359 9.1397C15.0989 8.89894 14.6305 8.97701 14.3897 9.31407L11.1543 13.8436L9.53033 12.2197C9.23744 11.9268 8.76256 11.9268 8.46967 12.2197C8.17678 12.5126 8.17678 12.9874 8.46967 13.2803L10.7197 15.5303C10.8756 15.6862 11.0921 15.7656 11.3119 15.7474C11.5316 15.7293 11.7322 15.6153 11.8603 15.4359L15.6103 10.1859Z"}),error:d},s=n.forwardRef((function(e,n){var o=r.useContext(a).type;return t.createElement(u[void 0===o?"default":o],Object.assign({className:"bone-alert-icon",mr2:!0,"minW-24":!0,square6:!0,ref:n},e))})),b=n.forwardRef((function(e,r){return t.createElement(o.Box,Object.assign({className:"bone-alert-title",ref:r,fontBold:!0,leadingNormal:!0},e))})),y=n.forwardRef((function(e,r){return t.createElement(o.Box,Object.assign({className:"bone-alert-description",leadingNormal:!0,ref:r},e))}));exports.Alert=c,exports.AlertDescription=y,exports.AlertIcon=s,exports.AlertTitle=b;
//# sourceMappingURL=alert.cjs.production.min.js.map
import React, { createContext, useContext } from 'react';
import { forwardRef } from '@bone-ui/utils';
import { Box } from '@fower/react';
import { InformationCircleSolid, ExclamationCircleSolid, CheckCircleSolid, XCircleSolid } from '@bone-ui/icons';
import { iconify } from '@bone-ui/iconify';

@@ -77,2 +77,26 @@ function _objectWithoutPropertiesLoose(source, excluded) {

var XCircleSolid = /*#__PURE__*/iconify({
displayName: 'XCircleSolid',
fill: 'currentColor',
d: 'M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM10.2803 9.21967C9.98744 8.92678 9.51256 8.92678 9.21967 9.21967C8.92678 9.51256 8.92678 9.98744 9.21967 10.2803L10.9393 12L9.21967 13.7197C8.92678 14.0126 8.92678 14.4874 9.21967 14.7803C9.51256 15.0732 9.98744 15.0732 10.2803 14.7803L12 13.0607L13.7197 14.7803C14.0126 15.0732 14.4874 15.0732 14.7803 14.7803C15.0732 14.4874 15.0732 14.0126 14.7803 13.7197L13.0607 12L14.7803 10.2803C15.0732 9.98744 15.0732 9.51256 14.7803 9.21967C14.4874 8.92678 14.0126 8.92678 13.7197 9.21967L12 10.9393L10.2803 9.21967Z'
});
var InformationCircleSolid = /*#__PURE__*/iconify({
displayName: 'InformationCircleSolid',
fill: 'currentColor',
d: 'M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM10.9562 10.5584C12.1025 9.98533 13.3931 11.0206 13.0823 12.2639L12.3733 15.0999L12.4148 15.0792C12.7852 14.894 13.2357 15.0441 13.421 15.4146C13.6062 15.7851 13.4561 16.2356 13.0856 16.4208L13.0441 16.4416C11.8979 17.0147 10.6072 15.9794 10.9181 14.7361L11.6271 11.9001L11.5856 11.9208C11.2151 12.1061 10.7646 11.9559 10.5793 11.5854C10.3941 11.2149 10.5443 10.7644 10.9148 10.5792L10.9562 10.5584ZM12 9C12.4142 9 12.75 8.66421 12.75 8.25C12.75 7.83579 12.4142 7.5 12 7.5C11.5858 7.5 11.25 7.83579 11.25 8.25C11.25 8.66421 11.5858 9 12 9Z'
});
var ExclamationCircleSolid = /*#__PURE__*/iconify({
displayName: 'ExclamationCircleSolid',
fill: 'currentColor',
d: 'M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 8.25C12.4142 8.25 12.75 8.58579 12.75 9V12.75C12.75 13.1642 12.4142 13.5 12 13.5C11.5858 13.5 11.25 13.1642 11.25 12.75V9C11.25 8.58579 11.5858 8.25 12 8.25ZM12 16.5C12.4142 16.5 12.75 16.1642 12.75 15.75C12.75 15.3358 12.4142 15 12 15C11.5858 15 11.25 15.3358 11.25 15.75C11.25 16.1642 11.5858 16.5 12 16.5Z'
});
var CheckCircleSolid = /*#__PURE__*/iconify({
displayName: 'CheckCircleSolid',
fill: 'currentColor',
d: 'M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM15.6103 10.1859C15.8511 9.84887 15.773 9.38046 15.4359 9.1397C15.0989 8.89894 14.6305 8.97701 14.3897 9.31407L11.1543 13.8436L9.53033 12.2197C9.23744 11.9268 8.76256 11.9268 8.46967 12.2197C8.17678 12.5126 8.17678 12.9874 8.46967 13.2803L10.7197 15.5303C10.8756 15.6862 11.0921 15.7656 11.3119 15.7474C11.5316 15.7293 11.7322 15.6153 11.8603 15.4359L15.6103 10.1859Z'
});
var IconComponents = {

@@ -79,0 +103,0 @@ "default": InformationCircleSolid,

{
"name": "@bone-ui/alert",
"version": "0.34.1",
"version": "0.35.0",
"license": "MIT",

@@ -23,6 +23,5 @@ "main": "dist/index.js",

"dependencies": {
"@bone-ui/iconify": "^0.34.1",
"@bone-ui/icons": "^0.34.1",
"@bone-ui/utils": "^0.34.1"
"@bone-ui/iconify": "^0.35.0",
"@bone-ui/utils": "^0.35.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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