From 2e54b81d8f14e73ee014f69c32b42621d1b8213c Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Tue, 10 Feb 2026 21:09:36 -0500 Subject: [PATCH] Update themed components with refs and css --- lib/component/button/Button.tsx | 96 +++++++++---------- lib/component/button/DangerButton.tsx | 44 +++++---- lib/component/button/DarkButton.tsx | 45 +++++---- lib/component/button/InfoButton.tsx | 45 +++++---- lib/component/button/LightButton.tsx | 45 +++++---- lib/component/button/MoltenButton.tsx | 47 ++++----- lib/component/button/PrimaryButton.tsx | 45 +++++---- lib/component/button/SecondaryButton.tsx | 45 +++++---- lib/component/button/SuccessButton.tsx | 47 ++++----- lib/component/button/TertiaryButton.tsx | 45 +++++---- lib/component/button/WarningButton.tsx | 45 +++++---- .../input/checkbox/DangerCheckbox.tsx | 16 +++- lib/component/input/checkbox/DarkCheckbox.tsx | 16 +++- lib/component/input/checkbox/InfoCheckbox.tsx | 16 +++- .../input/checkbox/LightCheckbox.tsx | 16 +++- .../input/checkbox/MattrixwvCheckbox.tsx | 13 ++- .../input/checkbox/MoltenCheckbox.tsx | 16 +++- .../input/checkbox/PrimaryCheckbox.tsx | 16 +++- .../input/checkbox/SecondaryCheckbox.tsx | 16 +++- .../input/checkbox/SuccessCheckbox.tsx | 15 ++- .../input/checkbox/TertiaryCheckbox.tsx | 16 +++- .../input/checkbox/WarningCheckbox.tsx | 16 +++- .../input/radio/DangerRadioButton.tsx | 14 ++- lib/component/input/radio/DarkRadioButton.tsx | 14 ++- lib/component/input/radio/InfoRadioButton.tsx | 12 ++- .../input/radio/LightRadioButton.tsx | 14 ++- .../input/radio/MoltenRadioButton.tsx | 14 ++- .../input/radio/PrimaryRadioButton.tsx | 14 ++- lib/component/input/radio/RadioButton.tsx | 12 ++- lib/component/input/radio/RadioList.tsx | 2 +- .../input/radio/SecondaryRadioButton.tsx | 14 ++- .../input/radio/SuccessRadioButton.tsx | 12 ++- .../input/radio/TertiaryRadioButton.tsx | 14 ++- .../input/radio/WarningRadioButton.tsx | 14 ++- lib/component/input/switch/ButtonSwitch.tsx | 12 ++- lib/component/input/switch/DangerSwitch.tsx | 20 ++-- lib/component/input/switch/DarkSwitch.tsx | 20 ++-- lib/component/input/switch/InfoSwitch.tsx | 39 ++++++++ lib/component/input/switch/LightSwitch.tsx | 20 ++-- .../input/switch/MattrixwvSwitch.tsx | 12 ++- lib/component/input/switch/MoltenSwitch.tsx | 39 ++++++++ lib/component/input/switch/PrimarySwitch.tsx | 20 ++-- .../input/switch/SecondarySwitch.tsx | 20 ++-- .../input/switch/SuccessDangerSwitch.tsx | 18 ++-- lib/component/input/switch/SuccessSwitch.tsx | 20 ++-- lib/component/input/switch/TertiarySwitch.tsx | 18 ++-- lib/component/input/switch/WarningSwitch.tsx | 20 ++-- lib/component/message/DangerMessageBlock.tsx | 21 ++-- lib/component/message/DarkMessageBlock.tsx | 21 ++-- lib/component/message/InfoMessageBlock.tsx | 21 ++-- lib/component/message/LightMessageBlock.tsx | 19 ++-- lib/component/message/MessageBlock.tsx | 23 +++-- lib/component/message/MoltenMessageBlock.tsx | 21 ++-- lib/component/message/PrimaryMessageBlock.tsx | 21 ++-- .../message/SecondaryMessageBlock.tsx | 21 ++-- lib/component/message/SuccessMessageBlock.tsx | 21 ++-- .../message/TertiaryMessageBlock.tsx | 20 ++-- lib/component/message/WarningMessageBlock.tsx | 21 ++-- lib/component/progress/DangerProgress.tsx | 16 +++- lib/component/progress/DarkProgress.tsx | 16 +++- lib/component/progress/InfoProgress.tsx | 16 +++- lib/component/progress/LightProgress.tsx | 16 +++- lib/component/progress/MoltenProgress.tsx | 16 +++- lib/component/progress/PrimaryProgress.tsx | 16 +++- lib/component/progress/Progress.tsx | 13 ++- lib/component/progress/SecondaryProgress.tsx | 12 ++- lib/component/progress/SuccessProgress.tsx | 16 +++- lib/component/progress/TertiaryProgress.tsx | 16 +++- lib/component/progress/WarningProgress.tsx | 16 +++- lib/styles.css | 80 ++++++++++++++++ src/index.css | 3 + src/util/InputUtils.tsx | 78 +++++++++++++++ 72 files changed, 1147 insertions(+), 562 deletions(-) create mode 100644 lib/component/input/switch/InfoSwitch.tsx create mode 100644 lib/component/input/switch/MoltenSwitch.tsx create mode 100644 lib/styles.css diff --git a/lib/component/button/Button.tsx b/lib/component/button/Button.tsx index 4645813..3db8919 100644 --- a/lib/component/button/Button.tsx +++ b/lib/component/button/Button.tsx @@ -4,8 +4,7 @@ import { forwardRef } from "react"; -const Button = forwardRef(( -{ +const Button = forwardRef(({ className, type="button", rounding = "lg", @@ -15,52 +14,53 @@ const Button = forwardRef(( disabled, ...buttonProps }, ref ) => { - return ( -