Update component definitions

This commit is contained in:
2025-08-11 22:09:37 -04:00
parent ebe69de078
commit 3a76aed09b
12 changed files with 29 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function DangerSwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function DangerSwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-300": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function DarkSwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function DarkSwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-300": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function LightSwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function LightSwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-black": !disabled,
"bg-neutral-800": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function PrimarySwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function PrimarySwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-200": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function SecondarySwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function SecondarySwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-200": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function SuccessDangerSwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -19,6 +20,7 @@ export default function SuccessDangerSwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-200": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function SuccessSwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function SuccessSwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-200": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function TertiarySwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function TertiarySwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-200": disabled

View File

@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
export default function WarningSwitch({
className,
knobClassName,
disabled,
...props
}: MattrixwvSwitchProps){
@@ -20,6 +21,7 @@ export default function WarningSwitch({
}
)}
knobClassName={clsx(
knobClassName,
{
"bg-white": !disabled,
"bg-gray-300": disabled

View File

@@ -1,6 +1,8 @@
import ThemeProvider from "$/providers/theme/ThemeProvider";
import ThemeProvider, { useTheme } from "$/providers/theme/ThemeProvider";
export {
ThemeProvider
ThemeProvider,
useTheme
};

View File

@@ -1,6 +1,10 @@
import ToasterProvider from "$/providers/toaster/ToasterProvider";
import Toaster from "$/component/toaster/Toaster";
import ToasterProvider, { useToaster } from "$/providers/toaster/ToasterProvider";
export {
ToasterProvider
Toaster,
ToasterProvider,
useToaster
};