From e15861393e31a6f95997044c4e17b0440350c480 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sat, 6 Jul 2024 14:13:09 +0200 Subject: [PATCH] Selectors, style generalization, classes merging generalization, background colors. --- demo/DemoApp.tsx | 20 +- src/Components/Card.tsx | 3 +- src/Components/Dates/Calendar.tsx | 3 +- src/Components/Dates/Datepicker.tsx | 3 +- src/Components/Floating/Float.tsx | 29 ++- src/Components/Forms/Checkbox.tsx | 3 +- src/Components/Forms/DatepickerInput.tsx | 4 +- src/Components/Forms/PasswordInput.tsx | 3 +- src/Components/Forms/Radio.tsx | 3 +- src/Components/Forms/RequiredField.tsx | 3 +- src/Components/Forms/TimepickerInput.tsx | 4 +- src/Components/Select/OptionsSuggestions.tsx | 132 ++++++++++ src/Components/Select/Select.tsx | 230 ++++++++++++++++++ src/Components/Select/SimpleSuggestions.tsx | 11 + src/Components/Select/Suggestible.tsx | 23 ++ src/Utils.tsx | 21 ++ src/styles/_colors.less | 18 ++ src/styles/_components.less | 3 +- src/styles/components/_button.less | 54 +++- src/styles/components/_select.less | 3 + src/styles/components/forms/_input.less | 1 + src/styles/components/forms/_label.less | 6 + .../components/forms/_password-input.less | 1 - src/styles/components/select/_input.less | 67 +++++ src/styles/components/select/_selected.less | 45 ++++ .../components/select/_suggestions.less | 51 ++++ 26 files changed, 717 insertions(+), 27 deletions(-) create mode 100644 src/Components/Select/OptionsSuggestions.tsx create mode 100644 src/Components/Select/Select.tsx create mode 100644 src/Components/Select/SimpleSuggestions.tsx create mode 100644 src/Components/Select/Suggestible.tsx create mode 100644 src/styles/components/_select.less create mode 100644 src/styles/components/select/_input.less create mode 100644 src/styles/components/select/_selected.less create mode 100644 src/styles/components/select/_suggestions.less diff --git a/demo/DemoApp.tsx b/demo/DemoApp.tsx index 1168332..5a29d28 100644 --- a/demo/DemoApp.tsx +++ b/demo/DemoApp.tsx @@ -10,11 +10,14 @@ import {Float} from "../src/Components/Floating/Float"; import {Tooltip} from "../src/Components/Floating/Tooltip"; import {DatepickerInput} from "../src/Components/Forms/DatepickerInput"; import {TimepickerInput} from "../src/Components/Forms/TimepickerInput"; +import {Select} from "../src/Components/Select/Select"; export function DemoApp() { const [datetime, setDatetime] = useState(null); + const [selected, setSelected] = useState(null); + return (

KernelUI

@@ -22,11 +25,9 @@ export function DemoApp()

TODO