@voidly-io/design-system 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,4 +23,10 @@ declare function VLoading(props: {
|
|
|
23
23
|
};
|
|
24
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
|
-
|
|
26
|
+
//#region src/components/VCard.d.ts
|
|
27
|
+
declare const VCard: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
padding?: number;
|
|
30
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { VAlert, VCard, VLoading };
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../style.css';
|
|
2
|
-
import{n as e,o as t}from"../tokens-vRQAV5Hj.js";import{c as
|
|
2
|
+
import{n as e,o as t,t as n}from"../tokens-vRQAV5Hj.js";import{c as r}from"react/compiler-runtime";import{CheckIcon as i,ExclamationCircleIcon as a,ExclamationTriangleIcon as o}from"@heroicons/react/20/solid";import{InformationCircleIcon as s}from"@heroicons/react/24/outline";import{Alert as c,AlertTitle as l}from"@mui/material";import{forwardRef as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p={width:18,height:18},m={success:d(i,{style:p}),info:d(s,{style:p}),warning:d(o,{style:p}),error:d(a,{style:p})};function h(e){let t=r(8),n=e.hideIcon?!1:e.icon?e.icon:m[e.type],i;t[0]===e.title?i=t[1]:(i=e.title&&d(l,{children:e.title}),t[0]=e.title,t[1]=i);let a;return t[2]!==e.children||t[3]!==e.style||t[4]!==e.type||t[5]!==n||t[6]!==i?(a=f(c,{severity:e.type,icon:n,style:e.style,children:[i,e.children]}),t[2]=e.children,t[3]=e.style,t[4]=e.type,t[5]=n,t[6]=i,t[7]=a):a=t[7],a}var g={container:`oY0XGG_container`,dot:`oY0XGG_dot`,inner:`oY0XGG_inner`,rotate:`oY0XGG_rotate`,"shift-left":`oY0XGG_shift-left`,"shift-right":`oY0XGG_shift-right`,svg:`oY0XGG_svg`},_={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const v=e=>{let t=r(9),{size:n,color:i,speed:a,stroke:o,bgOpacity:s}=e,c=n===void 0?80:n,l=i===void 0?`black`:i,u=a===void 0?1.75:a,f=o===void 0?5:o,p=s===void 0?.1:s,m=c+`px`,h=u+`s`,g=f+`px`,v=p+``,y;t[0]!==l||t[1]!==m||t[2]!==h||t[3]!==g||t[4]!==v?(y={"--uib-size":m,"--uib-color":l,"--uib-speed":h,"--uib-stroke":g,"--uib-bg-opacity":v},t[0]=l,t[1]=m,t[2]=h,t[3]=g,t[4]=v,t[5]=y):y=t[5];let b=y,x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=d(`div`,{className:_.inner}),t[6]=x):x=t[6];let S;return t[7]===b?S=t[8]:(S=d(`div`,{className:_.container,style:b,children:x}),t[7]=b,t[8]=S),S};function y(e){let t=r(20),{size:n,color:i,speed:a}=e,o=n===void 0?40:n,s=i===void 0?`black`:i,c=a===void 0?.9:a,l=parseInt(o+``),u=l/2,p=o+`px`,m=c+`s`,h;t[0]!==s||t[1]!==p||t[2]!==m?(h={"--uib-size":p,"--uib-color":s,"--uib-speed":m},t[0]=s,t[1]=p,t[2]=m,t[3]=h):h=t[3];let _=h,v=`0 0 ${o} ${u}`,y,b;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(b=d(`circle`,{className:g.dot}),y=d(`circle`,{className:g.dot}),t[4]=y,t[5]=b):(y=t[4],b=t[5]);let x=l/8,S;t[6]===x?S=t[7]:(S=d(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:x,result:`blur`}),t[6]=x,t[7]=S);let C,w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=d(`feColorMatrix`,{in:`blur`,mode:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7`,result:`ooze`}),w=d(`feBlend`,{in:`SourceGraphic`,in2:`ooze`}),t[8]=C,t[9]=w):(C=t[8],w=t[9]);let T;t[10]===S?T=t[11]:(T=d(`defs`,{children:f(`filter`,{id:`uib-jelly-filter`,children:[S,C,w]})}),t[10]=S,t[11]=T);let E;t[12]!==u||t[13]!==o||t[14]!==T||t[15]!==v?(E=d(`div`,{className:g.inner,children:f(`svg`,{className:g.svg,x:`0px`,y:`0px`,viewBox:v,height:u,width:o,preserveAspectRatio:`xMidYMid meet`,children:[b,y,T]})}),t[12]=u,t[13]=o,t[14]=T,t[15]=v,t[16]=E):E=t[16];let D;return t[17]!==E||t[18]!==_?(D=d(`div`,{className:g.container,style:_,children:E}),t[17]=E,t[18]=_,t[19]=D):D=t[19],D}function b(n){let i=r(7),a;i[0]===n.style?a=i[1]:(a={display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:e[`--v-border-radius`],...n.style},i[0]=n.style,i[1]=a);let o;i[2]===n.type?o=i[3]:(o=n.type?.name===`jelly`?d(y,{color:t[`--v-accents-1000`],size:n.type.dotSize??40,speed:`0.9`}):d(v,{color:t[`--v-accents-1000`],size:n.type?.width??104,speed:`1.75`}),i[2]=n.type,i[3]=o);let s;return i[4]!==a||i[5]!==o?(s=d(`div`,{style:a,children:o}),i[4]=a,i[5]=o,i[6]=s):s=i[6],s}const x=u(function(e,i){let a=r(15),o,s,c,l,u;a[0]===e?(o=a[1],s=a[2],c=a[3],l=a[4],u=a[5]):({selected:l,padding:s,style:u,children:o,...c}=e,a[0]=e,a[1]=o,a[2]=s,a[3]=c,a[4]=l,a[5]=u);let f=`1px solid ${l?t[`--v-blue-700`]:t[`--v-strokes`]}`,p=s??24,m;a[6]!==u||a[7]!==f||a[8]!==p?(m={borderRadius:n[`--v-border-radius`],border:f,display:`flex`,alignItems:`flex-start`,flexDirection:`column`,justifyContent:`space-between`,background:t[`--v-background-accent`],gap:24,overflow:`hidden`,padding:p,...u},a[6]=u,a[7]=f,a[8]=p,a[9]=m):m=a[9];let h;return a[10]!==o||a[11]!==i||a[12]!==c||a[13]!==m?(h=d(`div`,{...c,ref:i,style:m,children:o}),a[10]=o,a[11]=i,a[12]=c,a[13]=m,a[14]=h):h=a[14],h});export{h as VAlert,x as VCard,b as VLoading};
|