mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Update component definitions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import ThemeProvider from "$/providers/theme/ThemeProvider";
|
||||
import ThemeProvider, { useTheme } from "$/providers/theme/ThemeProvider";
|
||||
|
||||
|
||||
export {
|
||||
ThemeProvider
|
||||
ThemeProvider,
|
||||
useTheme
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user