From 09034bb4a0647af4fbbb35243e1e4d9cd1b002a4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 23 Mar 2021 16:32:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Implement=20the=20new=20coloring=20?= =?UTF-8?q?system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 6 +-- package.json | 2 +- src/components/Align/index.js | 4 +- src/components/Anchor/index.js | 4 +- src/components/Aside/index.js | 4 +- src/components/BaseLink/index.js | 8 ++-- src/components/Blockquote/index.js | 4 +- src/components/Bold/index.js | 4 +- src/components/Box/index.js | 16 +------- src/components/Code/index.js | 3 +- src/components/Color/Readme.md | 61 +++++++++++++----------------- src/components/Color/index.js | 44 ++++++++++++++++++--- src/components/Help/index.js | 4 +- src/components/Italic/index.js | 4 +- src/components/LatexMath/index.js | 4 +- src/components/ListItem/index.js | 4 +- src/components/Main/index.js | 4 +- src/components/Paragraph/index.js | 4 +- src/components/Separator/index.js | 4 +- src/components/Size/index.js | 4 +- src/components/Split/index.js | 4 +- src/components/Spoiler/index.js | 4 +- src/components/Strike/index.js | 4 +- src/components/Title/index.js | 4 +- src/components/Underline/index.js | 4 +- src/components/VisualLog/index.js | 6 ++- 26 files changed, 116 insertions(+), 102 deletions(-) diff --git a/package-lock.json b/package-lock.json index cf368f3..2e838c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "bluelib", - "version": "1.0.0", + "version": "1.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bluelib", - "version": "1.0.0", - "license": "MIT", + "version": "1.1.1", + "license": "AGPL-3.0-or-later", "dependencies": { "@babel/preset-env": "^7.12.11", "@babel/preset-react": "^7.12.10", diff --git a/package.json b/package.json index bb09703..78c69a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluelib", - "version": "1.1.1", + "version": "2.0.0", "description": "React components for Bluelib", "readme": "README.md", "main": "lib/index.js", diff --git a/src/components/Align/index.js b/src/components/Align/index.js index ac36916..8736fac 100644 --- a/src/components/Align/index.js +++ b/src/components/Align/index.js @@ -3,9 +3,9 @@ import PropTypes from "prop-types"; import useBluelibClassNames from "../../hooks/useBluelibClassNames"; -export default function Align({children, className, value}) { +export default function Align({children, className, value, ...props}) { return ( -
+
{children}
) diff --git a/src/components/Anchor/index.js b/src/components/Anchor/index.js index b20e13a..d76ccbc 100644 --- a/src/components/Anchor/index.js +++ b/src/components/Anchor/index.js @@ -3,9 +3,9 @@ import useBluelibClassNames from "../../hooks/useBluelibClassNames"; import PropTypes from "prop-types"; -export default function Anchor({children, className, href}) { +export default function Anchor({children, className, href, ...props}) { return ( - + {children} ) diff --git a/src/components/Aside/index.js b/src/components/Aside/index.js index 9cba23e..3bc2854 100644 --- a/src/components/Aside/index.js +++ b/src/components/Aside/index.js @@ -3,9 +3,9 @@ import useBluelibClassNames from "../../hooks/useBluelibClassNames"; import PropTypes from "prop-types"; -export default function Aside({children, className}) { +export default function Aside({children, className, ...props}) { return ( -