@voidly-io/design-system 1.0.9 → 1.0.12
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 +14 -0
- package/dist/components/index.js +1 -0
- package/dist/tokens/index.d.ts +1 -1
- package/package.json +21 -16
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/VAlert.d.ts
|
|
4
|
+
type AlertType = "success" | "info" | "warning" | "error";
|
|
5
|
+
declare function VAlert(props: {
|
|
6
|
+
title?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
hideIcon?: boolean;
|
|
11
|
+
type: AlertType;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { VAlert };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"react/compiler-runtime";import{CheckIcon as t,ExclamationCircleIcon as n,ExclamationTriangleIcon as r}from"@heroicons/react/20/solid";import{InformationCircleIcon as i}from"@heroicons/react/24/outline";import{Alert as a,AlertTitle as o}from"@mui/material";import"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";const l={width:18,height:18},u={success:s(t,{style:l}),info:s(i,{style:l}),warning:s(r,{style:l}),error:s(n,{style:l})};function d(t){let n=e(8),r=t.hideIcon?!1:t.icon?t.icon:u[t.type],i;n[0]===t.title?i=n[1]:(i=t.title&&s(o,{children:t.title}),n[0]=t.title,n[1]=i);let l;return n[2]!==t.children||n[3]!==t.style||n[4]!==t.type||n[5]!==r||n[6]!==i?(l=c(a,{severity:t.type,icon:r,style:t.style,children:[i,t.children]}),n[2]=t.children,n[3]=t.style,n[4]=t.type,n[5]=r,n[6]=i,n[7]=l):l=n[7],l}export{d as VAlert};
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ type VTypographyVars = { [x in `--v-text-heading-${VTypographyHeadingFontSize}-s
|
|
|
17
17
|
declare const VTypographyVarToVar: { [x in keyof VTypographyVars]: keyof VTypographyVars };
|
|
18
18
|
declare const VTypography: VTypographyVars;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { VColorsVarToVar as VColorVarToVar, type VColorVars, VColors, VTypography, VTypographyVarToVar, type VTypographyVars };
|
|
20
|
+
export { VColorsVarToVar as VColorVarToVar, type VColorVars, VColors, VTypography, type VTypographyCopyFontSize, type VTypographyHeadingFontSize, VTypographyVarToVar, type VTypographyVars };
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidly-io/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.12",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "Private",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dist/index.js",
|
|
9
|
+
"./components": "./dist/components/index.js",
|
|
9
10
|
"./tokens": "./dist/tokens/index.js",
|
|
10
11
|
"./package.json": "./package.json"
|
|
11
12
|
},
|
|
@@ -26,22 +27,26 @@
|
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
29
|
"react": "^19.2.0",
|
|
29
|
-
"react-dom": "^19.2.0"
|
|
30
|
+
"react-dom": "^19.2.0",
|
|
31
|
+
"@mui/material": "^7.0.0"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
|
-
"@rolldown/plugin-babel": "
|
|
33
|
-
"@tsconfig/strictest": "
|
|
34
|
-
"@types/node": "
|
|
35
|
-
"@types/react": "
|
|
36
|
-
"@types/react-dom": "
|
|
37
|
-
"@vitejs/plugin-react": "
|
|
38
|
-
"@vitest/browser-playwright": "
|
|
39
|
-
"babel-plugin-react-compiler": "
|
|
40
|
-
"bumpp": "
|
|
41
|
-
"tsdown": "
|
|
42
|
-
"typescript": "
|
|
43
|
-
"vite": "
|
|
44
|
-
"vitest": "
|
|
45
|
-
"vitest-browser-react": "
|
|
34
|
+
"@rolldown/plugin-babel": "0.2.3",
|
|
35
|
+
"@tsconfig/strictest": "2.0.8",
|
|
36
|
+
"@types/node": "25.6.2",
|
|
37
|
+
"@types/react": "19.2.14",
|
|
38
|
+
"@types/react-dom": "19.2.3",
|
|
39
|
+
"@vitejs/plugin-react": "6.0.1",
|
|
40
|
+
"@vitest/browser-playwright": "4.1.6",
|
|
41
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
42
|
+
"bumpp": "11.1.0",
|
|
43
|
+
"tsdown": "0.22.0",
|
|
44
|
+
"typescript": "6.0.3",
|
|
45
|
+
"vite": "8.0.11",
|
|
46
|
+
"vitest": "4.1.6",
|
|
47
|
+
"vitest-browser-react": "2.2.0"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@heroicons/react": "2.2.0"
|
|
46
51
|
}
|
|
47
52
|
}
|