mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 06:03:58 -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
|
||||
|
||||
Reference in New Issue
Block a user