From 04a01261fe8a83a091a6d3d814b34d7683a36eeb Mon Sep 17 00:00:00 2001 From: Arno V Date: Mon, 6 Nov 2023 14:31:57 -0500 Subject: [PATCH 1/2] docs: adding ButtonIcon and Icons --- .../documentation/src/modules/App/App.tsx | 111 ++++++++++++++---- 1 file changed, 85 insertions(+), 26 deletions(-) diff --git a/packages/documentation/src/modules/App/App.tsx b/packages/documentation/src/modules/App/App.tsx index 59ed31de..5a168bdf 100644 --- a/packages/documentation/src/modules/App/App.tsx +++ b/packages/documentation/src/modules/App/App.tsx @@ -1,6 +1,40 @@ -import { Button, ButtonLink, Footer } from "@versini/ui-components"; +import { + Button, + ButtonIcon, + ButtonLink, + Footer, + IconAssistant, + IconClose, + IconCopied, + IconCopy, + IconDelete, + IconDog, + IconRestore, + IconSettings, + IconUser, +} from "@versini/ui-components"; +import clsx from "clsx"; import { useEffect } from "react"; +const Section = ({ + children, + className, + kind = "dark", + raw = false, +}: { + kind?: string; + raw?: boolean; + className?: string; + children: React.ReactNode; +}) => { + const generatedClassName = clsx(className, { + "mb-5 flex items-center gap-x-2 p-5": !raw, + "bg-slate-900": kind === "dark", + "bg-slate-500": kind === "light", + }); + return
{children}
; +}; + function App() { useEffect(() => { document.getElementById("root")?.classList.remove("app-hidden"); @@ -9,41 +43,35 @@ function App() { return ( <>
-

UI Components

+

UI Components

Buttons

-
- - - - Link as a Button - - - Link as a Slim Button - -
+
+ + + + + + Link as a Button +
-
- - + - + Link as a Button - - Link as a Slim Button - -
+

Footer

-
+
@@ -55,7 +83,38 @@ function App() {
© {new Date().getFullYear()} something something
} /> -
+
+
+
+ App Name v{import.meta.env.BUILDVERSION} -{" "} + {import.meta.env.BUILDTIME} + + } + row2={ +
© {new Date().getFullYear()} something something
+ } + /> +
+ + +
+

Icons

+
+ +
+
+ + + + + + + + +
From 3fa02eb9e25e18067104b35561e0b7ad86624fd4 Mon Sep 17 00:00:00 2001 From: Arno V Date: Mon, 6 Nov 2023 14:53:31 -0500 Subject: [PATCH 2/2] Update bundlemon.config.cjs --- bundlemon.config.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundlemon.config.cjs b/bundlemon.config.cjs index 25088788..dd4751ba 100644 --- a/bundlemon.config.cjs +++ b/bundlemon.config.cjs @@ -9,7 +9,7 @@ module.exports = { }, { path: "assets/index-.js", - maxSize: "50kb", + maxSize: "60kb", }, { path: "assets/index-.css",