@overmap-ai/blocks 1.0.36-improvements.7 → 1.0.36-improvements.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const toggleButtonCva: (props?: ({
|
|
2
|
-
variant?: "outline" | "ghost" | null | undefined;
|
|
2
|
+
variant?: "soft" | "outline" | "ghost" | null | undefined;
|
|
3
3
|
icon?: boolean | null | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -2,7 +2,7 @@ import { ComponentRadius } from '../Provider';
|
|
|
2
2
|
import { AccentColorProps } from '../typings';
|
|
3
3
|
import * as Toggle from "@radix-ui/react-toggle";
|
|
4
4
|
export type ToggleButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
-
export type ToggleButtonVariant = "outline" | "ghost";
|
|
5
|
+
export type ToggleButtonVariant = "outline" | "ghost" | "soft";
|
|
6
6
|
export interface ToggleButtonVariantProps extends AccentColorProps {
|
|
7
7
|
variant?: ToggleButtonVariant;
|
|
8
8
|
size?: ToggleButtonSize;
|
package/dist/blocks.js
CHANGED
|
@@ -5347,6 +5347,15 @@ const toggleButtonCva = cva(
|
|
|
5347
5347
|
{
|
|
5348
5348
|
variants: {
|
|
5349
5349
|
variant: {
|
|
5350
|
+
soft: [
|
|
5351
|
+
// text
|
|
5352
|
+
"text-(--accent-a11)",
|
|
5353
|
+
"data-[state=on]:text-(--accent-a12)",
|
|
5354
|
+
// bg
|
|
5355
|
+
"bg-(--accent-a3)",
|
|
5356
|
+
"data-[state=off]:hover:bg-(--accent-a4)",
|
|
5357
|
+
"data-[state=on]:bg-(--accent-a5)"
|
|
5358
|
+
],
|
|
5350
5359
|
outline: [
|
|
5351
5360
|
// ring
|
|
5352
5361
|
"inset-ring",
|