@voidly-io/design-system 1.0.31 → 1.0.32
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.
- package/dist/components/index.d.ts +118 -1
- package/dist/components/index.js +1 -1
- package/dist/index-aHpvcBbo.d.ts +35 -0
- package/dist/style.css +1 -1
- package/dist/tokens/index.d.ts +1 -33
- package/dist/utils/index.js +1 -1
- package/dist/utils-DuPu69iK.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { h as VSpacing, s as VColorNames } from "../index-aHpvcBbo.js";
|
|
1
2
|
import React$1 from "react";
|
|
3
|
+
import { BundledLanguage } from "shiki/bundle/web";
|
|
2
4
|
|
|
3
5
|
//#region src/components/VAlert.d.ts
|
|
4
6
|
type AlertType = "success" | "info" | "warning" | "error";
|
|
@@ -66,4 +68,119 @@ declare function VTheme(props: {
|
|
|
66
68
|
theme: VThemeMode;
|
|
67
69
|
}): import("react/jsx-runtime").JSX.Element;
|
|
68
70
|
//#endregion
|
|
69
|
-
|
|
71
|
+
//#region src/components/VFlex.d.ts
|
|
72
|
+
declare function VFlex(props: {
|
|
73
|
+
children: React.ReactNode;
|
|
74
|
+
flexDirection?: React.CSSProperties["flexDirection"];
|
|
75
|
+
flexDirectionSmDown?: React.CSSProperties["flexDirection"];
|
|
76
|
+
flexDirectionMdDown?: React.CSSProperties["flexDirection"];
|
|
77
|
+
margin?: VSpacing;
|
|
78
|
+
marginTop?: VSpacing;
|
|
79
|
+
marginBottom?: VSpacing | "auto";
|
|
80
|
+
marginLeft?: VSpacing | "auto";
|
|
81
|
+
marginRight?: VSpacing | "auto";
|
|
82
|
+
padding?: VSpacing | string;
|
|
83
|
+
paddingTop?: VSpacing;
|
|
84
|
+
paddingBottom?: VSpacing;
|
|
85
|
+
paddingLeft?: VSpacing;
|
|
86
|
+
paddingRight?: VSpacing;
|
|
87
|
+
gap?: VSpacing;
|
|
88
|
+
gapMdDown?: VSpacing;
|
|
89
|
+
rowGap?: VSpacing;
|
|
90
|
+
columnGap?: VSpacing;
|
|
91
|
+
alignItems?: React.CSSProperties["alignItems"];
|
|
92
|
+
justifyContent?: React.CSSProperties["justifyContent"];
|
|
93
|
+
flexWrap?: React.CSSProperties["flexWrap"];
|
|
94
|
+
flexGrow?: number;
|
|
95
|
+
flexShrink?: number;
|
|
96
|
+
flexBasis?: number;
|
|
97
|
+
width?: "50%" | "100%";
|
|
98
|
+
minWidth?: number | string;
|
|
99
|
+
maxWidth?: number | string;
|
|
100
|
+
minHeight?: number | string;
|
|
101
|
+
maxHeight?: number | string;
|
|
102
|
+
gridColumnSpan?: number;
|
|
103
|
+
gridColumnSpanSmDown?: number;
|
|
104
|
+
gridColumnSpanMdDown?: number;
|
|
105
|
+
style?: React.CSSProperties;
|
|
106
|
+
containerRef?: React.Ref<HTMLDivElement>;
|
|
107
|
+
color?: VColorNames;
|
|
108
|
+
styleHover?: React.CSSProperties;
|
|
109
|
+
onClick?: () => void;
|
|
110
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/VGrid.d.ts
|
|
113
|
+
declare function VGrid(props: {
|
|
114
|
+
children: React.ReactNode;
|
|
115
|
+
columns: string;
|
|
116
|
+
columnsSmDown?: string;
|
|
117
|
+
columnsMdDown?: string;
|
|
118
|
+
gap?: VSpacing;
|
|
119
|
+
rowGap?: VSpacing;
|
|
120
|
+
columnGap?: VSpacing;
|
|
121
|
+
maxWidth?: number | string;
|
|
122
|
+
padding?: number | {
|
|
123
|
+
top?: number;
|
|
124
|
+
right?: number;
|
|
125
|
+
bottom?: number;
|
|
126
|
+
left?: number;
|
|
127
|
+
};
|
|
128
|
+
margin?: number | {
|
|
129
|
+
top?: number;
|
|
130
|
+
right?: number;
|
|
131
|
+
bottom?: number;
|
|
132
|
+
left?: number;
|
|
133
|
+
};
|
|
134
|
+
alignItems?: React.CSSProperties["alignItems"];
|
|
135
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/internal/intl/VIntlFiles.d.ts
|
|
138
|
+
declare const IntlFiles: {
|
|
139
|
+
en: {
|
|
140
|
+
"component.vcode.copy_failed": string;
|
|
141
|
+
"component.vcode.copy_success": string;
|
|
142
|
+
"component.vcode.copy_to_clipboard": string;
|
|
143
|
+
"component.vcode.toggle_wrap": string;
|
|
144
|
+
"component.vcode.download_file": string;
|
|
145
|
+
"component.vchip.copy_failed": string;
|
|
146
|
+
"component.vchip.copy_success": string;
|
|
147
|
+
"component.vchip.copy_to_clipboard": string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/VIntlProvider.d.ts
|
|
152
|
+
declare function VIntlProvider(props: {
|
|
153
|
+
children: React.ReactNode;
|
|
154
|
+
locale: keyof typeof IntlFiles;
|
|
155
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/components/VCode.d.ts
|
|
158
|
+
declare function VCode(props: {
|
|
159
|
+
title: string;
|
|
160
|
+
content: string;
|
|
161
|
+
lang: BundledLanguage;
|
|
162
|
+
style?: React$1.CSSProperties;
|
|
163
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/components/VChip.d.ts
|
|
166
|
+
type BaseProps = {
|
|
167
|
+
content: React.ReactNode;
|
|
168
|
+
size?: "small" | "medium" | "large";
|
|
169
|
+
tooltip?: string;
|
|
170
|
+
tooltipPlacement?: "top" | "bottom" | "left" | "right";
|
|
171
|
+
showCopyButton?: boolean;
|
|
172
|
+
copyText?: string;
|
|
173
|
+
copyTooltip?: string;
|
|
174
|
+
copyToastTitle?: string;
|
|
175
|
+
style?: React.CSSProperties;
|
|
176
|
+
onClick?: () => void;
|
|
177
|
+
};
|
|
178
|
+
declare function VChip(props: (BaseProps & {
|
|
179
|
+
type: "error" | "success" | "info";
|
|
180
|
+
}) | (BaseProps & {
|
|
181
|
+
color: string;
|
|
182
|
+
background: string;
|
|
183
|
+
backgroundHover?: string;
|
|
184
|
+
})): import("react/jsx-runtime").JSX.Element;
|
|
185
|
+
//#endregion
|
|
186
|
+
export { VAlert, VCard, VChip, VCode, VFlex, VGrid, VIntlProvider, VLoading, VTheme, type VThemeMode, VThemeProvider, useVTheme };
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../style.css';
|
|
2
|
-
import{n as e,o as t,t as n}from"../tokens-DZFO1m-b.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{createContext as u,forwardRef as d,useContext as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";const g={width:18,height:18},_={success:m(i,{style:g}),info:m(s,{style:g}),warning:m(o,{style:g}),error:m(a,{style:g})};function v(e){let t=r(8),n=e.hideIcon?!1:e.icon?e.icon:_[e.type],i;t[0]===e.title?i=t[1]:(i=e.title&&m(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=h(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 y={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`},b={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const x=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,d=o===void 0?5:o,f=s===void 0?.1:s,p=c+`px`,h=u+`s`,g=d+`px`,_=f+``,v;t[0]!==l||t[1]!==p||t[2]!==h||t[3]!==g||t[4]!==_?(v={"--uib-size":p,"--uib-color":l,"--uib-speed":h,"--uib-stroke":g,"--uib-bg-opacity":_},t[0]=l,t[1]=p,t[2]=h,t[3]=g,t[4]=_,t[5]=v):v=t[5];let y=v,x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=m(`div`,{className:b.inner}),t[6]=x):x=t[6];let S;return t[7]===y?S=t[8]:(S=m(`div`,{className:b.container,style:y,children:x}),t[7]=y,t[8]=S),S};function S(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,d=o+`px`,f=c+`s`,p;t[0]!==s||t[1]!==d||t[2]!==f?(p={"--uib-size":d,"--uib-color":s,"--uib-speed":f},t[0]=s,t[1]=d,t[2]=f,t[3]=p):p=t[3];let g=p,_=`0 0 ${o} ${u}`,v,b;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(b=m(`circle`,{className:y.dot}),v=m(`circle`,{className:y.dot}),t[4]=v,t[5]=b):(v=t[4],b=t[5]);let x=l/8,S;t[6]===x?S=t[7]:(S=m(`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=m(`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=m(`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=m(`defs`,{children:h(`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]!==_?(E=m(`div`,{className:y.inner,children:h(`svg`,{className:y.svg,x:`0px`,y:`0px`,viewBox:_,height:u,width:o,preserveAspectRatio:`xMidYMid meet`,children:[b,v,T]})}),t[12]=u,t[13]=o,t[14]=T,t[15]=_,t[16]=E):E=t[16];let D;return t[17]!==E||t[18]!==g?(D=m(`div`,{className:y.container,style:g,children:E}),t[17]=E,t[18]=g,t[19]=D):D=t[19],D}function C(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`?m(S,{color:t[`--v-accents-1000`],size:n.type.dotSize??40,speed:`0.9`}):m(x,{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=m(`div`,{style:a,children:o}),i[4]=a,i[5]=o,i[6]=s):s=i[6],s}const w=d(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 d=`1px solid ${l?t[`--v-blue-700`]:t[`--v-strokes`]}`,f=s??24,p;a[6]!==u||a[7]!==d||a[8]!==f?(p={borderRadius:n[`--v-border-radius`],border:d,display:`flex`,alignItems:`flex-start`,flexDirection:`column`,justifyContent:`space-between`,background:t[`--v-background-200`],gap:24,overflow:`hidden`,padding:f,...u},a[6]=u,a[7]=d,a[8]=f,a[9]=p):p=a[9];let h;return a[10]!==o||a[11]!==i||a[12]!==c||a[13]!==p?(h=m(`div`,{...c,ref:i,style:p,children:o}),a[10]=o,a[11]=i,a[12]=c,a[13]=p,a[14]=h):h=a[14],h}),T=u(null);function E(){let e=f(T);if(!e)throw Error(`useVTheme must be used within a VThemeProvider`);return e}function D(e){let t=r(5),[n,i]=p(e.defaultTheme??`light`),a;t[0]===n?a=t[1]:(a={theme:n,setTheme:i},t[0]=n,t[1]=a);let o;return t[2]!==e.children||t[3]!==a?(o=m(T.Provider,{value:a,children:e.children}),t[2]=e.children,t[3]=a,t[4]=o):o=t[4],o}function O(e){let t=r(3),n=e.theme===`dark`?`dark-theme`:`light-theme`,i;return t[0]!==e.children||t[1]!==n?(i=m(`div`,{className:n,children:e.children}),t[0]=e.children,t[1]=n,t[2]=i):i=t[2],i}export{v as VAlert,w as VCard,C as VLoading,O as VTheme,D as VThemeProvider,E as useVTheme};
|
|
2
|
+
import{n as e,o as t,t as n}from"../tokens-DZFO1m-b.js";import{t as r}from"../utils-DuPu69iK.js";import{c as i}from"react/compiler-runtime";import{CheckIcon as a,ExclamationCircleIcon as o,ExclamationTriangleIcon as s}from"@heroicons/react/20/solid";import{ArrowDownTrayIcon as c,ArrowTurnDownLeftIcon as l,ArrowTurnRightUpIcon as u,ClipboardDocumentIcon as d,DocumentIcon as f,InformationCircleIcon as p}from"@heroicons/react/24/outline";import{Alert as m,AlertTitle as h,IconButton as g,Tooltip as _,styled as v,useMediaQuery as y,useTheme as b}from"@mui/material";import{Fragment as x,createContext as S,createElement as C,forwardRef as w,useContext as T,useEffect as E,useLayoutEffect as ee,useState as D}from"react";import{jsx as O,jsxs as k}from"react/jsx-runtime";import{RawIntlProvider as A,createIntl as j,createIntlCache as M}from"react-intl";import{VColorVars as N,VLayoutVars as P}from"@voidly-io/design-system/tokens";import{toJsxRuntime as F}from"hast-util-to-jsx-runtime";import{codeToHast as I}from"shiki/bundle/web";import{ClipboardDocumentIcon as L}from"@heroicons/react/24/solid";import{toast as R}from"sonner";var z=Object.defineProperty,B=(e,t)=>{let n={};for(var r in e)z(n,r,{get:e[r],enumerable:!0});return t||z(n,Symbol.toStringTag,{value:`Module`}),n};const V={width:18,height:18},H={success:O(a,{style:V}),info:O(p,{style:V}),warning:O(s,{style:V}),error:O(o,{style:V})};function U(e){let t=i(8),n=e.hideIcon?!1:e.icon?e.icon:H[e.type],r;t[0]===e.title?r=t[1]:(r=e.title&&O(h,{children:e.title}),t[0]=e.title,t[1]=r);let a;return t[2]!==e.children||t[3]!==e.style||t[4]!==e.type||t[5]!==n||t[6]!==r?(a=k(m,{severity:e.type,icon:n,style:e.style,children:[r,e.children]}),t[2]=e.children,t[3]=e.style,t[4]=e.type,t[5]=n,t[6]=r,t[7]=a):a=t[7],a}var W={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`},G={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const K=e=>{let t=i(9),{size:n,color:r,speed:a,stroke:o,bgOpacity:s}=e,c=n===void 0?80:n,l=r===void 0?`black`:r,u=a===void 0?1.75:a,d=o===void 0?5:o,f=s===void 0?.1:s,p=c+`px`,m=u+`s`,h=d+`px`,g=f+``,_;t[0]!==l||t[1]!==p||t[2]!==m||t[3]!==h||t[4]!==g?(_={"--uib-size":p,"--uib-color":l,"--uib-speed":m,"--uib-stroke":h,"--uib-bg-opacity":g},t[0]=l,t[1]=p,t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5];let v=_,y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=O(`div`,{className:G.inner}),t[6]=y):y=t[6];let b;return t[7]===v?b=t[8]:(b=O(`div`,{className:G.container,style:v,children:y}),t[7]=v,t[8]=b),b};function q(e){let t=i(20),{size:n,color:r,speed:a}=e,o=n===void 0?40:n,s=r===void 0?`black`:r,c=a===void 0?.9:a,l=parseInt(o+``),u=l/2,d=o+`px`,f=c+`s`,p;t[0]!==s||t[1]!==d||t[2]!==f?(p={"--uib-size":d,"--uib-color":s,"--uib-speed":f},t[0]=s,t[1]=d,t[2]=f,t[3]=p):p=t[3];let m=p,h=`0 0 ${o} ${u}`,g,_;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=O(`circle`,{className:W.dot}),g=O(`circle`,{className:W.dot}),t[4]=g,t[5]=_):(g=t[4],_=t[5]);let v=l/8,y;t[6]===v?y=t[7]:(y=O(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:v,result:`blur`}),t[6]=v,t[7]=y);let b,x;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=O(`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`}),x=O(`feBlend`,{in:`SourceGraphic`,in2:`ooze`}),t[8]=b,t[9]=x):(b=t[8],x=t[9]);let S;t[10]===y?S=t[11]:(S=O(`defs`,{children:k(`filter`,{id:`uib-jelly-filter`,children:[y,b,x]})}),t[10]=y,t[11]=S);let C;t[12]!==u||t[13]!==o||t[14]!==S||t[15]!==h?(C=O(`div`,{className:W.inner,children:k(`svg`,{className:W.svg,x:`0px`,y:`0px`,viewBox:h,height:u,width:o,preserveAspectRatio:`xMidYMid meet`,children:[_,g,S]})}),t[12]=u,t[13]=o,t[14]=S,t[15]=h,t[16]=C):C=t[16];let w;return t[17]!==C||t[18]!==m?(w=O(`div`,{className:W.container,style:m,children:C}),t[17]=C,t[18]=m,t[19]=w):w=t[19],w}function J(n){let r=i(7),a;r[0]===n.style?a=r[1]:(a={display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:e[`--v-border-radius`],...n.style},r[0]=n.style,r[1]=a);let o;r[2]===n.type?o=r[3]:(o=n.type?.name===`jelly`?O(q,{color:t[`--v-accents-1000`],size:n.type.dotSize??40,speed:`0.9`}):O(K,{color:t[`--v-accents-1000`],size:n.type?.width??104,speed:`1.75`}),r[2]=n.type,r[3]=o);let s;return r[4]!==a||r[5]!==o?(s=O(`div`,{style:a,children:o}),r[4]=a,r[5]=o,r[6]=s):s=r[6],s}const te=w(function(e,r){let a=i(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 d=`1px solid ${l?t[`--v-blue-700`]:t[`--v-strokes`]}`,f=s??24,p;a[6]!==u||a[7]!==d||a[8]!==f?(p={borderRadius:n[`--v-border-radius`],border:d,display:`flex`,alignItems:`flex-start`,flexDirection:`column`,justifyContent:`space-between`,background:t[`--v-background-200`],gap:24,overflow:`hidden`,padding:f,...u},a[6]=u,a[7]=d,a[8]=f,a[9]=p):p=a[9];let m;return a[10]!==o||a[11]!==r||a[12]!==c||a[13]!==p?(m=O(`div`,{...c,ref:r,style:p,children:o}),a[10]=o,a[11]=r,a[12]=c,a[13]=p,a[14]=m):m=a[14],m}),ne=S(null);function re(){let e=T(ne);if(!e)throw Error(`useVTheme must be used within a VThemeProvider`);return e}function ie(e){let t=i(5),[n,r]=D(e.defaultTheme??`light`),a;t[0]===n?a=t[1]:(a={theme:n,setTheme:r},t[0]=n,t[1]=a);let o;return t[2]!==e.children||t[3]!==a?(o=O(ne.Provider,{value:a,children:e.children}),t[2]=e.children,t[3]=a,t[4]=o):o=t[4],o}function ae(e){let t=i(3),n=e.theme===`dark`?`dark-theme`:`light-theme`,r;return t[0]!==e.children||t[1]!==n?(r=O(`div`,{className:n,children:e.children}),t[0]=e.children,t[1]=n,t[2]=r):r=t[2],r}const oe=v(`div`)(e=>({"&:hover":e.$styleHover}));function Y(e){let t=b(),n=y(t.breakpoints.down(`sm`)),r=y(t.breakpoints.down(`md`)),i=Object.fromEntries([[`padding`,e.padding],[`paddingTop`,e.paddingTop],[`paddingBottom`,e.paddingBottom],[`paddingLeft`,e.paddingLeft],[`paddingRight`,e.paddingRight]].filter(([,e])=>e!==void 0)),a=r&&e.gapMdDown?e.gapMdDown:e.gap;return O(oe,{style:{display:`flex`,flexDirection:n&&e.flexDirectionSmDown?e.flexDirectionSmDown:r&&e.flexDirectionMdDown?e.flexDirectionMdDown:e.flexDirection,margin:e.margin,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,...i,gap:a,rowGap:e.rowGap||a,columnGap:e.columnGap||a,alignItems:e.alignItems,justifyContent:e.justifyContent,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,minHeight:e.minHeight,maxHeight:e.maxHeight,gridColumn:n&&e.gridColumnSpanSmDown?`span ${e.gridColumnSpanSmDown}`:r&&e.gridColumnSpanMdDown?`span ${e.gridColumnSpanMdDown}`:e.gridColumnSpan?`span ${e.gridColumnSpan}`:void 0,color:e.color?`var(${e.color})`:void 0,...e.style},$styleHover:e.styleHover,ref:e.containerRef,onClick:e.onClick,children:e.children})}function se(e){let t=i(22),n=b(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let a=y(r),o;t[2]===n.breakpoints?o=t[3]:(o=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=o);let s=y(o),c=a&&e.columnsSmDown?e.columnsSmDown:s&&e.columnsMdDown?e.columnsMdDown:e.columns,l=e.rowGap||e.gap,u=e.columnGap||e.gap,d=typeof e.padding==`number`?e.padding:e.padding?.top,f=typeof e.padding==`number`?e.padding:e.padding?.bottom,p=typeof e.padding==`number`?e.padding:e.padding?.left,m=typeof e.padding==`number`?e.padding:e.padding?.right,h=typeof e.margin==`number`?e.margin:e.margin?.top,g=typeof e.margin==`number`?e.margin:e.margin?.bottom,_=typeof e.margin==`number`?e.margin:e.margin?.left,v=typeof e.margin==`number`?e.margin:e.margin?.right,x;t[4]!==c||t[5]!==e.alignItems||t[6]!==e.gap||t[7]!==e.maxWidth||t[8]!==_||t[9]!==v||t[10]!==l||t[11]!==u||t[12]!==d||t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==h||t[17]!==g?(x={display:`grid`,gridTemplateColumns:c,gap:e.gap,rowGap:l,columnGap:u,paddingTop:d,paddingBottom:f,paddingLeft:p,paddingRight:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,alignItems:e.alignItems,maxWidth:e.maxWidth},t[4]=c,t[5]=e.alignItems,t[6]=e.gap,t[7]=e.maxWidth,t[8]=_,t[9]=v,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p,t[15]=m,t[16]=h,t[17]=g,t[18]=x):x=t[18];let S;return t[19]!==e.children||t[20]!==x?(S=O(`div`,{style:x,children:e.children}),t[19]=e.children,t[20]=x,t[21]=S):S=t[21],S}var ce=B({"component.vchip.copy_failed":()=>me,"component.vchip.copy_success":()=>he,"component.vchip.copy_to_clipboard":()=>ge,"component.vcode.copy_failed":()=>le,"component.vcode.copy_success":()=>ue,"component.vcode.copy_to_clipboard":()=>de,"component.vcode.download_file":()=>pe,"component.vcode.toggle_wrap":()=>fe,default:()=>_e}),le=`Copy to clipboard failed.`,ue=`Copied to clipboard.`,de=`Copy to clipboard`,fe=`Toggle line wrap`,pe=`Download file`,me=`Copy to clipboard failed.`,he=`Copied to clipboard.`,ge=`Copy to clipboard`,_e={"component.vcode.copy_failed":le,"component.vcode.copy_success":ue,"component.vcode.copy_to_clipboard":de,"component.vcode.toggle_wrap":fe,"component.vcode.download_file":pe,"component.vchip.copy_failed":me,"component.vchip.copy_success":he,"component.vchip.copy_to_clipboard":ge};const ve={en:ce},ye=M(),be=e=>({en:ve.en})[e];let X=j({locale:`en`,messages:be(`en`)},ye);function xe(e){X=j({locale:e,messages:be(e)},ye)}function Z(...e){let[t,n]=e;return X.formatMessage({id:t},n)}function Se(e){let t=i(5),n,r;t[0]===e.locale?(n=t[1],r=t[2]):(n=()=>{xe(e.locale)},r=[e.locale],t[0]=e.locale,t[1]=n,t[2]=r),E(n,r);let a;return t[3]===e.children?a=t[4]:(a=O(A,{value:X,children:e.children}),t[3]=e.children,t[4]=a),a}const Ce={strong:t[`--v-accents-100`],error:t[`--v-red-700`],disabled:t[`--v-accents-700`]},we={300:300,400:400,500:500,600:600,700:700,800:800,900:900};function Te(e){let t=i(12),n=b(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let a=y(r),o;t[2]===n.breakpoints?o=t[3]:(o=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=o);let s=y(o),c=e.type?`v-text-${e.type}`:void 0,l=e.color?Ce[e.color]||`var(${e.color})`:void 0,u=e.weight?we[e.weight]:void 0,d=e.component===`ul`?14:void 0,f=a&&e.textAlignSmDown?e.textAlignSmDown:s&&e.textAlignMdDown?e.textAlignMdDown:e.textAlign,p=e.breakWord?`break-word`:void 0,m;return t[4]!==e||t[5]!==c||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==f||t[10]!==p?(m=C(e.component,{className:c,style:{color:l,fontWeight:u,paddingLeft:d,textAlign:f,width:e.width,maxWidth:e.maxWidth,wordBreak:p,...e.noWrapEllipsis?{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}:{},...e.style},"data-testid":e[`data-testid`],onClick:e.onClick},e.children),t[4]=e,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function Q(e){let t=e.durationInMs===`infinite`?9999999999:e.durationInMs||8e3,n,r={description:e.description,duration:t};return e.id&&(r.id=e.id),setTimeout(()=>{n=e.type===`info`?R.info(e.title,r):e.type===`success`?R.success(e.title,r):e.type===`warning`?R.warning(e.title,r):e.type===`error`?R.error(e.title,r):e.type===`loading`?R.loading(e.title,r):R.info(e.title,r)}),{dismiss:()=>{R.dismiss(n)}}}const Ee=v(`span`)(e=>({...e.$style,"&:hover":e.$styleHover})),$=`medium`;function De(e){let n={color:t[`--v-blue-700`],background:t[`--v-blue-200`],backgroundHover:t[`--v-blue-300`]};`type`in e?e.type===`error`?(n.color=t[`--v-red-700`],n.background=t[`--v-red-200`],n.backgroundHover=t[`--v-red-300`]):e.type===`success`&&(n.color=t[`--v-green-700`],n.background=t[`--v-green-200`],n.backgroundHover=t[`--v-green-300`]):(n.color=e.color,n.background=e.background,n.backgroundHover=e.backgroundHover||e.background);let i={small:{padding:`3px 8px`,fontSize:10},medium:{padding:`6px 14px`,fontSize:11},large:{padding:`12px 20px`,fontSize:12}};return O(_,{title:e.tooltip??``,placement:e.tooltipPlacement??`top`,children:O(Ee,{$style:{color:n.color,background:n.background,padding:i[e.size??$].padding,borderRadius:9999,fontSize:i[e.size??$].fontSize,fontWeight:600,lineHeight:`12px`,display:`inline-block`,cursor:e.onClick?`pointer`:`default`,...e.style},onClick:t=>{t.stopPropagation(),e.onClick?.()},$styleHover:{background:n.backgroundHover},children:k(Y,{gap:8,alignItems:`center`,children:[e.content,e.showCopyButton&&O(_,{title:e.copyTooltip??Z(`component.vchip.copy_to_clipboard`),placement:`top`,children:O(g,{"aria-label":e.copyTooltip??Z(`component.vchip.copy_to_clipboard`),onClick:async t=>{t.stopPropagation();let n=e.copyText?.trim();if(n)try{await r.copyToClipboard(n),Q({type:`success`,title:e.copyToastTitle??Z(`component.vchip.copy_success`)})}catch{Q({type:`error`,title:Z(`component.vchip.copy_failed`)})}},style:{border:`none`,background:`transparent`,padding:0,margin:0,display:`flex`,alignItems:`center`,color:n.color},children:O(L,{height:12,width:12})})})]})})})}const Oe={name:`voidly-dark`,type:`dark`,colors:{"editor.background":N[`--v-background`],"editor.foreground":N[`--v-accents-700`]},settings:[{settings:{background:`#12151c`,foreground:`#e2e8f0`}},{name:`Comments`,scope:`comment, punctuation.definition.comment`,settings:{foreground:`#6b7280`,fontStyle:`italic`}},{name:`Keywords`,scope:`keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage.type, storage.modifier`,settings:{foreground:`#4f7dff`,fontStyle:`bold`}},{name:`Strings`,scope:`string, string.quoted, string.template, string.regexp`,settings:{foreground:N[`--v-green-900`]}},{name:`Numbers`,scope:`constant.numeric, constant.language.numeric`,settings:{foreground:N[`--v-teal-700`]}},{name:`Constants`,scope:`constant.language`,settings:{foreground:N[`--v-teal-700`]}},{name:`Types and classes`,scope:`entity.name.type, entity.name.class, entity.name.interface, support.type, support.class`,settings:{foreground:`#79c0ff`}},{name:`Function declarations`,scope:`entity.name.function, support.function`,settings:{foreground:`#d2a8ff`}},{name:`Function calls`,scope:`meta.function-call entity.name.function`,settings:{foreground:`#c9a2f5`}},{name:`Parameters`,scope:`variable.parameter`,settings:{foreground:N[`--v-teal-700`]}},{name:`Object properties`,scope:`variable.other.property, support.variable.property, meta.object-literal.key`,settings:{foreground:`#cdd9e5`}},{name:`Variables`,scope:`variable, variable.other`,settings:{foreground:`#e2e8f0`}},{name:`Decorators`,scope:`meta.decorator, punctuation.decorator, entity.name.decorator`,settings:{foreground:N[`--v-teal-700`]}},{name:`Operators`,scope:`keyword.operator`,settings:{foreground:`#9ca3af`}},{name:`Punctuation`,scope:`punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor`,settings:{foreground:`#9ca3af`}},{name:`JSX/HTML/XML tags`,scope:`entity.name.tag, meta.tag.sgml`,settings:{foreground:N[`--v-pink-900`]}},{name:`HTML/JSX/XML attributes`,scope:`entity.other.attribute-name`,settings:{foreground:N[`--v-blue-900`]}}]};async function ke(e,t,n){return F(await I(e,{lang:t,theme:Oe,transformers:[{code(e){let t=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${t}font-family: var(--font-geist-mono);`},line(e,t){let n=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${n}display:block;padding-left:3.5em`,e.children.unshift({type:`element`,tagName:`span`,properties:{style:`margin-left:-3.5em;color:${N[`--v-accents-700`]};user-select:none;display:inline-block;width:2em;margin-right:1.5em;text-align:right`},children:[{type:`text`,value:String(t)}]})}}]}),{Fragment:x,jsx:O,jsxs:k,components:{pre:e=>O(`pre`,{...e,style:{...e.style,padding:`16px`,fontSize:13,overflow:`auto`,whiteSpace:n?`pre-wrap`:`pre`,margin:0,background:N[`--v-background`],borderBottomLeftRadius:P[`--v-border-radius`],borderBottomRightRadius:P[`--v-border-radius`],borderLeft:`1px solid ${N[`--v-strokes`]}`,borderRight:`1px solid ${N[`--v-strokes`]}`,borderBottom:`1px solid ${N[`--v-strokes`]}`}})}})}function Ae(e){let t=i(51),[n,a]=D(null),[o,s]=D(!1),p,m;t[0]!==e.content||t[1]!==e.lang||t[2]!==o?(p=()=>{ke(e.content,e.lang,o).then(a)},m=[e.content,e.lang,o],t[0]=e.content,t[1]=e.lang,t[2]=o,t[3]=p,t[4]=m):(p=t[3],m=t[4]),ee(p,m);let h;t[5]===e.style?h=t[6]:(h={position:`relative`,minHeight:128,...e.style},t[5]=e.style,t[6]=h);let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v={background:N[`--v-background`],borderTopLeftRadius:P[`--v-border-radius`],borderTopRightRadius:P[`--v-border-radius`],border:`1px solid ${N[`--v-strokes`]}`},t[7]=v):v=t[7];let y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=O(f,{height:16,width:16,style:{marginRight:8}}),t[8]=y):y=t[8];let b;t[9]===e.title?b=t[10]:(b=k(Y,{alignItems:`center`,gap:8,children:[y,O(Te,{component:`span`,type:`copy-13`,weight:`400`,children:e.title})]}),t[9]=e.title,t[10]=b);let x;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(x={marginRight:8},t[11]=x):x=t[11];let S;t[12]===e.lang?S=t[13]:(S=O(De,{background:N[`--v-pink-100`],color:N[`--v-pink-700`],content:e.lang,style:x}),t[12]=e.lang,t[13]=S);let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C=Z(`component.vcode.download_file`),t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=Z(`component.vcode.download_file`),t[15]=w):w=t[15];let T;t[16]!==e.content||t[17]!==e.title?(T=()=>{let t=new Blob([e.content],{type:`text/plain`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=e.title,r.click(),URL.revokeObjectURL(n)},t[16]=e.content,t[17]=e.title,t[18]=T):T=t[18];let E,A;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(E={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:N[`--v-accents-700`]},A=O(c,{height:16,width:16}),t[19]=E,t[20]=A):(E=t[19],A=t[20]);let j;t[21]===T?j=t[22]:(j=O(_,{title:C,placement:`top`,children:O(g,{"aria-label":w,onClick:T,style:E,children:A})}),t[21]=T,t[22]=j);let M;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(M=Z(`component.vcode.toggle_wrap`),t[23]=M):M=t[23];let F,I,L;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(F=Z(`component.vcode.toggle_wrap`),I=()=>s(je),L={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:N[`--v-accents-700`]},t[24]=F,t[25]=I,t[26]=L):(F=t[24],I=t[25],L=t[26]);let R;t[27]===o?R=t[28]:(R=O(_,{title:M,placement:`top`,children:O(g,{"aria-label":F,onClick:I,style:L,children:O(o?u:l,{height:16,width:16})})}),t[27]=o,t[28]=R);let z;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(z=Z(`component.vcode.copy_to_clipboard`),t[29]=z):z=t[29];let B;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(B=Z(`component.vcode.copy_to_clipboard`),t[30]=B):B=t[30];let V;t[31]===e.content?V=t[32]:(V=async t=>{t.stopPropagation();try{await r.copyToClipboard(e.content),Q({type:`success`,title:Z(`component.vcode.copy_success`)})}catch{Q({type:`error`,title:Z(`component.vcode.copy_failed`)})}},t[31]=e.content,t[32]=V);let H,U;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(H={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:N[`--v-accents-700`]},U=O(d,{height:16,width:16}),t[33]=H,t[34]=U):(H=t[33],U=t[34]);let W;t[35]===V?W=t[36]:(W=O(_,{title:z,placement:`top`,children:O(g,{"aria-label":B,onClick:V,style:H,children:U})}),t[35]=V,t[36]=W);let G;t[37]!==j||t[38]!==R||t[39]!==W||t[40]!==S?(G=k(Y,{alignItems:`center`,gap:8,children:[S,j,R,W]}),t[37]=j,t[38]=R,t[39]=W,t[40]=S,t[41]=G):G=t[41];let K;t[42]!==G||t[43]!==b?(K=k(Y,{style:v,gap:40,alignItems:`center`,justifyContent:`space-between`,padding:`10px 16px 10px 20px`,color:`--v-accents-700`,children:[b,G]}),t[42]=G,t[43]=b,t[44]=K):K=t[44];let q;t[45]!==n||t[46]!==K?(q=k(ae,{theme:`dark`,children:[K,n]}),t[45]=n,t[46]=K,t[47]=q):q=t[47];let J;return t[48]!==h||t[49]!==q?(J=O(Y,{flexDirection:`column`,style:h,children:q}),t[48]=h,t[49]=q,t[50]=J):J=t[50],J}function je(e){return!e}export{U as VAlert,te as VCard,De as VChip,Ae as VCode,Y as VFlex,se as VGrid,Se as VIntlProvider,J as VLoading,ae as VTheme,ie as VThemeProvider,re as useVTheme};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/tokens/VLayout.d.ts
|
|
2
|
+
type VLayout = {
|
|
3
|
+
"--v-border-radius": string;
|
|
4
|
+
};
|
|
5
|
+
type VLayoutNames = keyof VLayout;
|
|
6
|
+
declare const VLayoutVars: { [x in VLayoutNames]: `var(${x})` };
|
|
7
|
+
declare const VLayoutValues: VLayout;
|
|
8
|
+
type VSpacing = 0 | 1 | 2 | 4 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 80 | 120 | 140 | 160 | 180 | 200;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/tokens/VColors.d.ts
|
|
11
|
+
type VColors = { [x in `--v-gray-alpha-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-blue-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-red-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-orange-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-green-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-teal-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-purple-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-pink-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-accents-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & {
|
|
12
|
+
"--v-foreground": string;
|
|
13
|
+
"--v-background": string;
|
|
14
|
+
"--v-strokes": string;
|
|
15
|
+
"--v-background-100": string;
|
|
16
|
+
"--v-background-200": string;
|
|
17
|
+
"--v-background-300": string;
|
|
18
|
+
"--v-background-400": string;
|
|
19
|
+
};
|
|
20
|
+
type VColorNames = keyof VColors;
|
|
21
|
+
declare const VColorVars: { [x in VColorNames]: `var(${x})` };
|
|
22
|
+
declare const VColorValues: {
|
|
23
|
+
dark: VColors;
|
|
24
|
+
light: VColors;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/tokens/VTypography.d.ts
|
|
28
|
+
type VTypographyHeadingFontSize = 14 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72;
|
|
29
|
+
type VTypographyCopyFontSize = 12 | 13 | 14 | 15 | 16 | 18 | 20 | 24;
|
|
30
|
+
type VTypography = { [x in `--v-text-heading-${VTypographyHeadingFontSize}-size`]: string } & { [x in `--v-text-heading-${VTypographyHeadingFontSize}-weight`]: number } & { [x in `--v-text-heading-${VTypographyHeadingFontSize}-line-height`]: string } & { [x in `--v-text-heading-${VTypographyHeadingFontSize}-letter-spacing`]: string } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-size`]: string } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-weight`]: number } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-strong-weight`]: number } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-line-height`]: string } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-letter-spacing`]: string };
|
|
31
|
+
type VTypographyNames = keyof VTypography;
|
|
32
|
+
declare const VTypographyVars: { [x in VTypographyNames]: `var(${x})` };
|
|
33
|
+
declare const VTypographyValues: VTypography;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { VTypographyValues as a, VColorValues as c, VLayout as d, VLayoutNames as f, VSpacing as h, VTypographyNames as i, VColorVars as l, VLayoutVars as m, VTypographyCopyFontSize as n, VTypographyVars as o, VLayoutValues as p, VTypographyHeadingFontSize as r, VColorNames as s, VTypography as t, VColors as u };
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.oY0XGG_container{--uib-dot-size:calc(var(--uib-size) / 2);height:var(--uib-size);width:var(--uib-size);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.oY0XGG_inner{height:calc(var(--uib-size) / 2);width:var(--uib-size);animation:oY0XGG_rotate calc(var(--uib-speed) * 2) linear infinite;will-change:transform;justify-content:space-between;align-items:center;display:flex;position:relative}.oY0XGG_svg{filter:url(#uib-jelly-filter);overflow:visible}.oY0XGG_dot{cy:50%;cx:50%;r:calc(var(--uib-dot-size) / 2);will-change:transform;fill:var(--uib-color);transform-origin:50%;transform-box:fill-box;transition:fill .3s;display:block}.oY0XGG_dot:first-child{animation:oY0XGG_shift-left var(--uib-speed) ease infinite}.oY0XGG_dot:nth-child(2){animation:oY0XGG_shift-right var(--uib-speed) ease infinite}@keyframes oY0XGG_rotate{0%,49.999%,to{transform:none}50%,99.999%{transform:rotate(90deg)}}@keyframes oY0XGG_shift-left{0%,to{transform:scale(1)translate(0%)}50%{transform:scale(.65)translate(-75%)}}@keyframes oY0XGG_shift-right{0%,to{transform:scale(1)translate(0%)}50%{transform:scale(.65)translate(75%)}}.z7PbZq_container{height:var(--uib-stroke);width:var(--uib-size);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.z7PbZq_inner{height:var(--uib-stroke);width:var(--uib-size);border-radius:calc(var(--uib-stroke) / 2);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden;transform:translate(0)}.z7PbZq_inner:before{content:"";background-color:var(--uib-color);width:100%;height:100%;opacity:var(--uib-bg-opacity);transition:background-color .3s;position:absolute;top:0;left:0}.z7PbZq_inner:after{content:"";border-radius:calc(var(--uib-stroke) / 2);width:100%;height:100%;animation:z7PbZq_wobble var(--uib-speed) ease-in-out infinite;background-color:var(--uib-color);transition:background-color .3s;transform:translate(-95%)}@keyframes z7PbZq_wobble{0%,to{transform:translate(-95%)}50%{transform:translate(95%)}}
|
|
1
|
+
.oY0XGG_container{--uib-dot-size:calc(var(--uib-size) / 2);height:var(--uib-size);width:var(--uib-size);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.oY0XGG_inner{height:calc(var(--uib-size) / 2);width:var(--uib-size);animation:oY0XGG_rotate calc(var(--uib-speed) * 2) linear infinite;will-change:transform;justify-content:space-between;align-items:center;display:flex;position:relative}.oY0XGG_svg{filter:url(#uib-jelly-filter);overflow:visible}.oY0XGG_dot{cy:50%;cx:50%;r:calc(var(--uib-dot-size) / 2);will-change:transform;fill:var(--uib-color);transform-origin:50%;transform-box:fill-box;transition:fill .3s;display:block}.oY0XGG_dot:first-child{animation:oY0XGG_shift-left var(--uib-speed) ease infinite}.oY0XGG_dot:nth-child(2){animation:oY0XGG_shift-right var(--uib-speed) ease infinite}@keyframes oY0XGG_rotate{0%,49.999%,to{transform:none}50%,99.999%{transform:rotate(90deg)}}@keyframes oY0XGG_shift-left{0%,to{transform:scale(1)translate(0%)}50%{transform:scale(.65)translate(-75%)}}@keyframes oY0XGG_shift-right{0%,to{transform:scale(1)translate(0%)}50%{transform:scale(.65)translate(75%)}}.z7PbZq_container{height:var(--uib-stroke);width:var(--uib-size);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.z7PbZq_inner{height:var(--uib-stroke);width:var(--uib-size);border-radius:calc(var(--uib-stroke) / 2);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden;transform:translate(0)}.z7PbZq_inner:before{content:"";background-color:var(--uib-color);width:100%;height:100%;opacity:var(--uib-bg-opacity);transition:background-color .3s;position:absolute;top:0;left:0}.z7PbZq_inner:after{content:"";border-radius:calc(var(--uib-stroke) / 2);width:100%;height:100%;animation:z7PbZq_wobble var(--uib-speed) ease-in-out infinite;background-color:var(--uib-color);transition:background-color .3s;transform:translate(-95%)}@keyframes z7PbZq_wobble{0%,to{transform:translate(-95%)}50%{transform:translate(95%)}}[data-sonner-toaster][data-theme=light],[data-sonner-toaster][data-theme=dark]{--normal-bg:var(--body-background)!important;--normal-border:var(--color-strokes)!important;--normal-text:var(--body-color)!important;--success-bg:var(--alert-success-background)!important;--success-text:var(--alert-success-color)!important;--success-border:var(--alert-success-border)!important;--info-bg:var(--alert-info-background)!important;--info-text:var(--alert-info-color)!important;--info-border:var(--alert-info-border)!important;--warning-bg:var(--alert-warning-background)!important;--warning-text:var(--alert-warning-color)!important;--warning-border:var(--alert-warning-border)!important;--error-bg:var(--alert-error-background)!important;--error-text:var(--alert-error-color)!important;--error-border:var(--alert-error-border)!important;--toast-icon-margin-end:8px!important}[data-sonner-toast]{gap:12px;padding:16px}
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type VColors = { [x in `--v-gray-alpha-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-blue-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-red-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-orange-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-green-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-teal-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-purple-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-pink-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & { [x in `--v-accents-${100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000}`]: string } & {
|
|
3
|
-
"--v-foreground": string;
|
|
4
|
-
"--v-background": string;
|
|
5
|
-
"--v-strokes": string;
|
|
6
|
-
"--v-background-100": string;
|
|
7
|
-
"--v-background-200": string;
|
|
8
|
-
"--v-background-300": string;
|
|
9
|
-
"--v-background-400": string;
|
|
10
|
-
};
|
|
11
|
-
type VColorNames = keyof VColors;
|
|
12
|
-
declare const VColorVars: { [x in VColorNames]: `var(${x})` };
|
|
13
|
-
declare const VColorValues: {
|
|
14
|
-
dark: VColors;
|
|
15
|
-
light: VColors;
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/tokens/VTypography.d.ts
|
|
19
|
-
type VTypographyHeadingFontSize = 14 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72;
|
|
20
|
-
type VTypographyCopyFontSize = 12 | 13 | 14 | 15 | 16 | 18 | 20 | 24;
|
|
21
|
-
type VTypography = { [x in `--v-text-heading-${VTypographyHeadingFontSize}-size`]: string } & { [x in `--v-text-heading-${VTypographyHeadingFontSize}-weight`]: number } & { [x in `--v-text-heading-${VTypographyHeadingFontSize}-line-height`]: string } & { [x in `--v-text-heading-${VTypographyHeadingFontSize}-letter-spacing`]: string } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-size`]: string } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-weight`]: number } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-strong-weight`]: number } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-line-height`]: string } & { [x in `--v-text-copy-${VTypographyCopyFontSize}-letter-spacing`]: string };
|
|
22
|
-
type VTypographyNames = keyof VTypography;
|
|
23
|
-
declare const VTypographyVars: { [x in VTypographyNames]: `var(${x})` };
|
|
24
|
-
declare const VTypographyValues: VTypography;
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/tokens/VLayout.d.ts
|
|
27
|
-
type VLayout = {
|
|
28
|
-
"--v-border-radius": string;
|
|
29
|
-
};
|
|
30
|
-
type VLayoutNames = keyof VLayout;
|
|
31
|
-
declare const VLayoutVars: { [x in VLayoutNames]: `var(${x})` };
|
|
32
|
-
declare const VLayoutValues: VLayout;
|
|
33
|
-
//#endregion
|
|
1
|
+
import { a as VTypographyValues, c as VColorValues, d as VLayout, f as VLayoutNames, i as VTypographyNames, l as VColorVars, m as VLayoutVars, n as VTypographyCopyFontSize, o as VTypographyVars, p as VLayoutValues, r as VTypographyHeadingFontSize, s as VColorNames, t as VTypography, u as VColors } from "../index-aHpvcBbo.js";
|
|
34
2
|
export { type VColorNames, VColorValues, VColorVars, type VColors, type VLayout, type VLayoutNames, VLayoutValues, VLayoutVars, type VTypography, type VTypographyCopyFontSize, type VTypographyHeadingFontSize, type VTypographyNames, VTypographyValues, VTypographyVars };
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"../utils-DuPu69iK.js";export{a as VHelpers,n as useForceRerender,t as useIsClient,i as useIsServer,e as useOnScroll,r as useWindowSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"react/compiler-runtime";import{useEffect as t,useState as n}from"react";const r=()=>{let r=e(3),i;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={height:window.innerHeight,width:window.innerWidth},r[0]=i):i=r[0];let[a,o]=n(i),s,c;return r[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{o({height:window.innerHeight,width:window.innerWidth})};return e(),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},c=[],r[1]=s,r[2]=c):(s=r[1],c=r[2]),t(s,c),a},i=n=>{let r=e(4),i,a;return r[0]!==n.element||r[1]!==n.onScroll?(i=()=>{if(n.element)return n.element.addEventListener(`scroll`,n.onScroll),()=>{n.element&&n.element.removeEventListener(`scroll`,n.onScroll)}},a=[n.element,n.onScroll],r[0]=n.element,r[1]=n.onScroll,r[2]=i,r[3]=a):(i=r[2],a=r[3]),t(i,a),null};function a(){let r=e(2),[i,a]=n(!1),o,s;return r[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{a(!0)},s=[],r[0]=o,r[1]=s):(o=r[0],s=r[1]),t(o,s),i}function o(){return!a()}function s(){let t=e(2),[,r]=n(0),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{r(c)},t[0]=i):i=t[0];let a=i,o;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o={rerender:a},t[1]=o):o=t[1],o}function c(e){return e+1}const l={async copyToClipboard(e){typeof window>`u`||await navigator.clipboard.writeText(e)}};export{i as a,a as i,s as n,r as o,o as r,l as t};
|