@gearbox-protocol/permissionless-ui 1.8.0 → 1.9.1
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.
|
@@ -35,7 +35,7 @@ const Checkbox = React__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
35
35
|
{
|
|
36
36
|
ref,
|
|
37
37
|
className: utils_cn.cn(
|
|
38
|
-
"peer h-4 w-4 shrink-0 rounded-
|
|
38
|
+
"peer h-4 w-4 shrink-0 rounded-[4px] border border-primary shadow cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
41
41
|
...props,
|
|
@@ -31,7 +31,7 @@ const LabelPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(LabelPri
|
|
|
31
31
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
32
|
|
|
33
33
|
const labelVariants = classVarianceAuthority.cva(
|
|
34
|
-
"flex
|
|
34
|
+
"flex leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
35
35
|
{
|
|
36
36
|
variants: {
|
|
37
37
|
size: {
|
|
@@ -11,7 +11,7 @@ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"peer h-4 w-4 shrink-0 rounded-
|
|
14
|
+
"peer h-4 w-4 shrink-0 rounded-[4px] border border-primary shadow cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
...props,
|
|
@@ -7,7 +7,7 @@ import 'sonner';
|
|
|
7
7
|
import '@gearbox-protocol/sdk';
|
|
8
8
|
|
|
9
9
|
const labelVariants = cva(
|
|
10
|
-
"flex
|
|
10
|
+
"flex leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
13
13
|
size: {
|
|
@@ -7,6 +7,8 @@ declare const gridTableVariants: (props?: ({
|
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
interface GridTableProps extends Omit<GridProps, "cols">, VariantProps<typeof gridTableVariants> {
|
|
9
9
|
cols?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* GridTable — table-like layout component using CSS Grid.
|
|
@@ -89,6 +91,8 @@ declare const GridTableBody: React.ForwardRefExoticComponent<React.HTMLAttribute
|
|
|
89
91
|
*/
|
|
90
92
|
declare const GridTableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
91
93
|
interface GridTableRowProps extends GridProps {
|
|
94
|
+
children?: React.ReactNode;
|
|
95
|
+
className?: string;
|
|
92
96
|
}
|
|
93
97
|
/**
|
|
94
98
|
* GridTableRow — row component of a GridTable.
|
|
@@ -109,6 +113,8 @@ declare const gridTableHeadVariants: (props?: ({
|
|
|
109
113
|
justify?: "end" | "center" | "start" | null | undefined;
|
|
110
114
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
111
115
|
interface GridTableHeadProps extends ColProps, VariantProps<typeof gridTableHeadVariants> {
|
|
116
|
+
children?: React.ReactNode;
|
|
117
|
+
className?: string;
|
|
112
118
|
}
|
|
113
119
|
/**
|
|
114
120
|
* GridTableHead — header cell component of a GridTable.
|
|
@@ -129,6 +135,8 @@ declare const gridTableCellVariants: (props?: ({
|
|
|
129
135
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
130
136
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
131
137
|
interface GridTableCellProps extends ColProps, VariantProps<typeof gridTableCellVariants> {
|
|
138
|
+
children?: React.ReactNode;
|
|
139
|
+
className?: string;
|
|
132
140
|
}
|
|
133
141
|
/**
|
|
134
142
|
* GridTableCell — data cell component of a GridTable.
|