Socket
Socket
Sign inDemoInstall

@hiogawa/tiny-toast

Package Overview
Dependencies
3
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1-pre.0

12

dist/react.d.ts

@@ -20,11 +20,11 @@ import React from 'react';

type ReactToastItem = ToastItem<ReactToastData>;
type ReactToastOptions = Omit<ReactToastData, "render"> & Pick<ReactToastItem, "duration">;
type ReactToastOptions = Omit<ReactToastData, "render"> & ToastCoreOptions;
declare class ReactToastManager extends ToastManager<ReactToastData> {
defaultOptions?: Partial<ReactToastOptions> | undefined;
constructor(defaultOptions?: Partial<ReactToastOptions> | undefined);
success: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<Omit<ReactToastData, "render"> & Pick<ReactToastItem, "duration"> & ToastCoreOptions> | undefined) => void;
error: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<Omit<ReactToastData, "render"> & Pick<ReactToastItem, "duration"> & ToastCoreOptions> | undefined) => void;
info: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<Omit<ReactToastData, "render"> & Pick<ReactToastItem, "duration"> & ToastCoreOptions> | undefined) => void;
blank: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<Omit<ReactToastData, "render"> & Pick<ReactToastItem, "duration"> & ToastCoreOptions> | undefined) => void;
custom: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<Omit<ReactToastData, "render"> & Pick<ReactToastItem, "duration"> & ToastCoreOptions> | undefined) => void;
success: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<ReactToastOptions> | undefined) => void;
error: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<ReactToastOptions> | undefined) => void;
info: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<ReactToastOptions> | undefined) => void;
blank: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<ReactToastOptions> | undefined) => void;
custom: (this: ReactToastManager, node: React.ReactNode | RenderReactNode, options?: Partial<ReactToastOptions> | undefined) => void;
}

@@ -31,0 +31,0 @@ type ReactToastContainerOptions = {

@@ -503,3 +503,3 @@ // src/utils.ts

.uno-tiny-toast-9j9ihy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10zm-.997-6l7.07-7.071l-1.414-1.414l-5.656 5.657l-2.829-2.829l-1.414 1.414L11.003 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em;font-size:1.5rem;line-height:2rem;--un-text-opacity:1;color:rgba(74,222,128,var(--un-text-opacity));}
.uno-tiny-toast-r1pevc{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em;font-size:1.5rem;line-height:2rem;--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}
.uno-tiny-toast-l0zgl5{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10zm0-11.414L9.172 7.757L7.757 9.172L10.586 12l-2.829 2.828l1.415 1.415L12 13.414l2.828 2.829l1.415-1.415L13.414 12l2.829-2.828l-1.415-1.415L12 10.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em;font-size:1.5rem;line-height:2rem;--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}
.uno-tiny-toast-rrrsk8{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em;font-size:1.5rem;line-height:2rem;--un-text-opacity:1;color:rgba(96,165,250,var(--un-text-opacity));}

@@ -518,3 +518,3 @@ .uno-tiny-toast-670cyk *,

.uno-tiny-toast-ebcx1j{--un-scale-x:0;--un-scale-y:0;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));opacity:0.1;}
.uno-tiny-toast-q7b5pp{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.uno-tiny-toast-9dro7u{border-radius:0.5rem;--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.uno-tiny-toast-jdvrox{transition-duration:300ms;}

@@ -599,3 +599,3 @@ /* layer: default */

style: item.data.style,
className: cls(item.data.className, "uno-tiny-toast-q7b5pp")
className: cls(item.data.className, "uno-tiny-toast-9dro7u")
},

@@ -607,3 +607,3 @@ /* @__PURE__ */ React8.createElement("div", { className: "uno-tiny-toast-vr7q8w" }, item.data.type && /* @__PURE__ */ React8.createElement(

item.data.type === "success" && "uno-tiny-toast-9j9ihy",
item.data.type === "error" && "uno-tiny-toast-r1pevc",
item.data.type === "error" && "uno-tiny-toast-l0zgl5",
item.data.type === "info" && "uno-tiny-toast-rrrsk8"

@@ -610,0 +610,0 @@ )

{
"name": "@hiogawa/tiny-toast",
"version": "0.1.0",
"version": "0.1.1-pre.0",
"type": "module",

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc