UNPKG

@skiyee/uni-ui

Version:

一个由原子化CSS驱动、符合直觉设计、高度定制化、面向AI时代的移动端 UI 库,助力开发者打造独特且差异化的移动端应用程序

8 lines 1.34 kB
//! @unocss-include /** * @skiyee/uni-ui v1.1.0 * @author skiyee(https://github.com/skiyee) * @license Apache License 2.0 * @copyright 2025-present skiyee All rights reserved. **/ const e=require(`../_virtual/rolldown_runtime.cjs`),t=e.__toESM(require(`@skiyee/ucv`)),n=(0,t.ucv)({element:{root:`flex items-center justify-center w-full`,toast:`relative flex items-center sk-unit:(max-w-320 px-16 py-12 gap-x-8) rounded-medium shadow-large`,icon:`shrink-0 flex-center`,iconInner:`sk-unit:size-18`,content:`flex-1 min-w-0`,message:`text-body-medium`,close:`sk-variant-a:h-auto shrink-0 -sk-unit:m-8 sk-unit:p-8 cursor-pointer`,closeIcon:`sk-unit:size-12 text-secondary hover:text-primary transition-colors`},variants:{type:{default:{toast:`bg-surface text-primary`,iconInner:`text-primary`},info:{toast:`bg-brand text-brand-foreground`,iconInner:`text-brand-foreground`},success:{toast:`bg-success text-success-foreground`,iconInner:`text-success-foreground`},warning:{toast:`bg-warning text-warning-foreground`,iconInner:`text-warning-foreground`},error:{toast:`bg-danger text-danger-foreground`,iconInner:`text-danger-foreground`}},hasIcon:{true:{},false:{icon:`hidden`}},hasMessage:{true:{},false:{content:`hidden`}},closable:{true:{},false:{close:`hidden`}}},defaults:{type:`info`,hasIcon:!1,hasMessage:!0,closable:!1}});exports.SkToastUcv=n;