From 6c5023e2c81d30168fc47ee280b5a97bda8c91d2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 23 Jun 2020 22:33:49 +0200 Subject: [PATCH] 0.12.3 --- package.json | 2 +- src/components/Layout/HButton.js | 12 +++++++++++- src/components/Layout/HButton.less | 8 ++++++++ src/components/Layout/HInput.js | 11 ++++++++++- src/components/Layout/HInput.less | 8 ++++++++ 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1ad917f..c6d70fb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": false, "name": "bluelib", - "version": "0.12.2", + "version": "0.12.3", "license": "AGPL-3.0-or-later", "source": "src/index.js", "main": "dist/index.js", diff --git a/src/components/Layout/HButton.js b/src/components/Layout/HButton.js index fd8b61e..19c9df1 100644 --- a/src/components/Layout/HButton.js +++ b/src/components/Layout/HButton.js @@ -1,12 +1,22 @@ import style from './HButton.less'; +import {concatClass} from "../../index"; export default function (props) { + let validityClass = null; + if(props.validity === true) { + validityClass = style.valid; + } + else if(props.validity === false) { + validityClass = style.invalid; + } + + return (