From d50f248ced05d4ef19acc0bab9cfc31d06157fb9 Mon Sep 17 00:00:00 2001 From: gimenes Date: Sun, 14 Apr 2024 18:03:22 -0300 Subject: [PATCH 1/2] bump deps --- apps/decohub.ts | 4 ++-- deno.json | 19 +++++-------------- sections/Theme/Theme.tsx | 34 +++++++++++++++++++++++++++------- 3 files changed, 34 insertions(+), 23 deletions(-) diff --git a/apps/decohub.ts b/apps/decohub.ts index e2e2c502..a2ef14fc 100644 --- a/apps/decohub.ts +++ b/apps/decohub.ts @@ -7,7 +7,7 @@ import Decohub from "apps/decohub/mod.ts"; * @logo https://raw.githubusercontent.com/deco-cx/apps/main/decohub/logo.png */ export default function App(...params: Parameters) { - return Decohub(...params) + return Decohub(...params); } -export { Preview } from "apps/decohub/mod.ts"; \ No newline at end of file +export { Preview } from "apps/decohub/mod.ts"; diff --git a/deno.json b/deno.json index acfaeedd..b037cbc8 100644 --- a/deno.json +++ b/deno.json @@ -1,8 +1,8 @@ { "imports": { - "deco/": "https://cdn.jsdelivr.net/gh/deco-cx/deco@1.60.20/", - "apps/": "https://cdn.jsdelivr.net/gh/deco-cx/apps@0.35.35/", - "$fresh/": "https://deno.land/x/fresh@1.6.5/", + "deco/": "https://cdn.jsdelivr.net/gh/deco-cx/deco@1.60.25/", + "apps/": "https://cdn.jsdelivr.net/gh/deco-cx/apps@0.36.0/", + "$fresh/": "https://deno.land/x/fresh@1.6.3/", "preact": "https://esm.sh/preact@10.19.2", "preact/": "https://esm.sh/preact@10.19.2/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.2", @@ -28,9 +28,7 @@ "preview": "deno run -A main.ts", "generate-icons": "deno run -A --unstable static/generate-icons.ts" }, - "githooks": { - "pre-commit": "check" - }, + "githooks": { "pre-commit": "check" }, "exclude": [ "node_modules", "static/", @@ -39,14 +37,7 @@ "**/_fresh/*", ".deco" ], - "lint": { - "rules": { - "tags": [ - "fresh", - "recommended" - ] - } - }, + "lint": { "rules": { "tags": ["fresh", "recommended"] } }, "nodeModulesDir": true, "compilerOptions": { "jsx": "react-jsx", diff --git a/sections/Theme/Theme.tsx b/sections/Theme/Theme.tsx index 766f4440..1bf615d0 100644 --- a/sections/Theme/Theme.tsx +++ b/sections/Theme/Theme.tsx @@ -525,28 +525,49 @@ const PreviewContainer = ( display: none; } #${checkboxId}:checked ~ .hide-label { - background-color: ${mode === "dark" ? "var(--admin-hover-bg-color)" : "var(--admin-text-color-light)"}; - color: ${mode === "dark" ? "var(--admin-text-color-light)" : "var(--admin-hover-bg-color)"}; + background-color: ${ + mode === "dark" + ? "var(--admin-hover-bg-color)" + : "var(--admin-text-color-light)" + }; + color: ${ + mode === "dark" + ? "var(--admin-text-color-light)" + : "var(--admin-hover-bg-color)" + }; } `; return ( <> -
+
{title}
{/* Label for "Show code" */} -