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({
|
export default function DangerSwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function DangerSwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-300": disabled
|
"bg-gray-300": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function DarkSwitch({
|
export default function DarkSwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function DarkSwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-300": disabled
|
"bg-gray-300": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function LightSwitch({
|
export default function LightSwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function LightSwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-black": !disabled,
|
"bg-black": !disabled,
|
||||||
"bg-neutral-800": disabled
|
"bg-neutral-800": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function PrimarySwitch({
|
export default function PrimarySwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function PrimarySwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-200": disabled
|
"bg-gray-200": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function SecondarySwitch({
|
export default function SecondarySwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function SecondarySwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-200": disabled
|
"bg-gray-200": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function SuccessDangerSwitch({
|
export default function SuccessDangerSwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -19,6 +20,7 @@ export default function SuccessDangerSwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-200": disabled
|
"bg-gray-200": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function SuccessSwitch({
|
export default function SuccessSwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function SuccessSwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-200": disabled
|
"bg-gray-200": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function TertiarySwitch({
|
export default function TertiarySwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function TertiarySwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-200": disabled
|
"bg-gray-200": disabled
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import MattrixwvSwitch from "./MattrixwvSwitch";
|
|||||||
|
|
||||||
export default function WarningSwitch({
|
export default function WarningSwitch({
|
||||||
className,
|
className,
|
||||||
|
knobClassName,
|
||||||
disabled,
|
disabled,
|
||||||
...props
|
...props
|
||||||
}: MattrixwvSwitchProps){
|
}: MattrixwvSwitchProps){
|
||||||
@@ -20,6 +21,7 @@ export default function WarningSwitch({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
knobClassName={clsx(
|
knobClassName={clsx(
|
||||||
|
knobClassName,
|
||||||
{
|
{
|
||||||
"bg-white": !disabled,
|
"bg-white": !disabled,
|
||||||
"bg-gray-300": disabled
|
"bg-gray-300": disabled
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import ThemeProvider from "$/providers/theme/ThemeProvider";
|
import ThemeProvider, { useTheme } from "$/providers/theme/ThemeProvider";
|
||||||
|
|
||||||
|
|
||||||
export {
|
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 {
|
export {
|
||||||
ToasterProvider
|
Toaster,
|
||||||
|
ToasterProvider,
|
||||||
|
useToaster
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "mattrixwv-components",
|
"name": "mattrixwv-components",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user