New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kodiak-ui/message

Package Overview
Dependencies
Maintainers
5
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kodiak-ui/message - npm Package Compare versions

Comparing version 0.1.18 to 0.2.0

dist/index.umd.js

2

dist/index.es.js

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

import{forwardRef as e,createElement as i}from"react";import{Box as t,VisuallyHidden as a,Flex as r,SvgIcon as s,Button as n}from"@kodiak-ui/primitives";var o=e(function(e,o){var l=e.children,d=e.type;void 0===d&&(d="polite");var m=e.dismissLabel,p=e.onDismiss,h=e.variantKey;void 0===h&&(h="messages");var v=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&-1===i.indexOf(a)&&(t[a]=e[a]);return t}(e,["children","type","dismissLabel","onDismiss","variantKey"]);return i(t,Object.assign({__base:{alignItems:"center",bg:"highlight",borderLeftStyle:"solid",borderLeftWidth:function(e){return e.space[2]},borderLeftColor:"primary",borderRadius:"default",display:"inline-flex",justifyContent:"space-between",maxWidth:636,minWidth:370,minHeight:64,padding:4},ref:o,role:"assertive"===d?"alert":"status","aria-live":d,variantKey:h},v),i(r,{alignItems:"center",flexGrow:1,mr:4},l),p?i(n,{variant:"shadow",onClick:p,"data-testid":"messageDismiss"},i(a,null,m||"Dismiss message"),i(s,{viewBox:"0 0 16 16",height:"16px",width:"16px",color:"white"},i("path",{d:"M9.15 8.088a.125.125 0 010-.177l4.63-4.63a.75.75 0 00-1.061-1.06l-4.63 4.628a.125.125 0 01-.178 0L3.281 2.22A.75.75 0 002.22 3.28l4.63 4.631a.125.125 0 010 .177L2.22 12.72a.75.75 0 101.06 1.06l4.631-4.63a.125.125 0 01.177 0l4.63 4.63a.75.75 0 101.062-1.06L9.15 8.09z"}))):null)});export{o as Message};
import{forwardRef as e,createElement as i}from"react";import{Box as t,VisuallyHidden as a,Flex as r,SvgIcon as s,Button as n}from"@kodiak-ui/primitives";var o=e(function(e,o){var l=e.children,d=e.type;void 0===d&&(d="polite");var m=e.dismissLabel,p=e.onDismiss,h=e.variantKey;void 0===h&&(h="messages");var v=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&-1===i.indexOf(a)&&(t[a]=e[a]);return t}(e,["children","type","dismissLabel","onDismiss","variantKey"]);return i(t,Object.assign({__base:{alignItems:"center",bg:"highlight",borderLeftStyle:"solid",borderLeftWidth:function(e){return e.space[2]},borderLeftColor:"primary",borderRadius:"default",display:"inline-flex",justifyContent:"space-between",maxWidth:636,minWidth:370,minHeight:64,padding:4},ref:o,role:"assertive"===d?"alert":"status","aria-live":d,variantKey:h},v),i(r,{alignItems:"center",flexGrow:1},l),p?i(n,{variant:"shadow",onClick:p,"data-testid":"messageDismiss"},i(a,null,m||"Dismiss message"),i(s,{viewBox:"0 0 16 16",height:"16px",width:"16px",color:"white"},i("path",{d:"M9.15 8.088a.125.125 0 010-.177l4.63-4.63a.75.75 0 00-1.061-1.06l-4.63 4.628a.125.125 0 01-.178 0L3.281 2.22A.75.75 0 002.22 3.28l4.63 4.631a.125.125 0 010 .177L2.22 12.72a.75.75 0 101.06 1.06l4.631-4.63a.125.125 0 01.177 0l4.63 4.63a.75.75 0 101.062-1.06L9.15 8.09z"}))):null)});export{o as Message};
//# sourceMappingURL=index.es.js.map

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

var e=require("react"),t=require("@kodiak-ui/primitives"),i=e.forwardRef(function(i,a){var r=i.children,s=i.type;void 0===s&&(s="polite");var n=i.dismissLabel,l=i.onDismiss,o=i.variantKey;void 0===o&&(o="messages");var d=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&-1===t.indexOf(a)&&(i[a]=e[a]);return i}(i,["children","type","dismissLabel","onDismiss","variantKey"]);return e.createElement(t.Box,Object.assign({__base:{alignItems:"center",bg:"highlight",borderLeftStyle:"solid",borderLeftWidth:function(e){return e.space[2]},borderLeftColor:"primary",borderRadius:"default",display:"inline-flex",justifyContent:"space-between",maxWidth:636,minWidth:370,minHeight:64,padding:4},ref:a,role:"assertive"===s?"alert":"status","aria-live":s,variantKey:o},d),e.createElement(t.Flex,{alignItems:"center",flexGrow:1,mr:4},r),l?e.createElement(t.Button,{variant:"shadow",onClick:l,"data-testid":"messageDismiss"},e.createElement(t.VisuallyHidden,null,n||"Dismiss message"),e.createElement(t.SvgIcon,{viewBox:"0 0 16 16",height:"16px",width:"16px",color:"white"},e.createElement("path",{d:"M9.15 8.088a.125.125 0 010-.177l4.63-4.63a.75.75 0 00-1.061-1.06l-4.63 4.628a.125.125 0 01-.178 0L3.281 2.22A.75.75 0 002.22 3.28l4.63 4.631a.125.125 0 010 .177L2.22 12.72a.75.75 0 101.06 1.06l4.631-4.63a.125.125 0 01.177 0l4.63 4.63a.75.75 0 101.062-1.06L9.15 8.09z"}))):null)});exports.Message=i;
var e=require("react"),t=require("@kodiak-ui/primitives"),i=e.forwardRef(function(i,a){var r=i.children,s=i.type;void 0===s&&(s="polite");var n=i.dismissLabel,l=i.onDismiss,o=i.variantKey;void 0===o&&(o="messages");var d=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&-1===t.indexOf(a)&&(i[a]=e[a]);return i}(i,["children","type","dismissLabel","onDismiss","variantKey"]);return e.createElement(t.Box,Object.assign({__base:{alignItems:"center",bg:"highlight",borderLeftStyle:"solid",borderLeftWidth:function(e){return e.space[2]},borderLeftColor:"primary",borderRadius:"default",display:"inline-flex",justifyContent:"space-between",maxWidth:636,minWidth:370,minHeight:64,padding:4},ref:a,role:"assertive"===s?"alert":"status","aria-live":s,variantKey:o},d),e.createElement(t.Flex,{alignItems:"center",flexGrow:1},r),l?e.createElement(t.Button,{variant:"shadow",onClick:l,"data-testid":"messageDismiss"},e.createElement(t.VisuallyHidden,null,n||"Dismiss message"),e.createElement(t.SvgIcon,{viewBox:"0 0 16 16",height:"16px",width:"16px",color:"white"},e.createElement("path",{d:"M9.15 8.088a.125.125 0 010-.177l4.63-4.63a.75.75 0 00-1.061-1.06l-4.63 4.628a.125.125 0 01-.178 0L3.281 2.22A.75.75 0 002.22 3.28l4.63 4.631a.125.125 0 010 .177L2.22 12.72a.75.75 0 101.06 1.06l4.631-4.63a.125.125 0 01.177 0l4.63 4.63a.75.75 0 101.062-1.06L9.15 8.09z"}))):null)});exports.Message=i;
//# sourceMappingURL=index.js.map
{
"name": "@kodiak-ui/message",
"version": "0.1.18",
"version": "0.2.0",
"description": "Component to display messages to users (i.e. alerts, notifications)",

@@ -35,3 +35,3 @@ "main": "dist/index.js",

},
"gitHead": "602b60c5463ec0cb0016e831bd75652f38bddbe3"
"gitHead": "7cb4a305005ef9d5477b4c0bc7bd4f039a804ff5"
}

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