Skip to content

Commit d365cd1

Browse files
committed
Patch: updated radix library versions
1 parent 3b65b69 commit d365cd1

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

bun.lockb

6.5 KB
Binary file not shown.

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,12 @@
6363
"@interactjs/auto-start": "1.10.26",
6464
"@interactjs/interact": "1.10.26",
6565
"@mezh-hq/react-gridlines": "1.0.1",
66-
"@radix-ui/react-label": "2.0.2",
67-
"@radix-ui/react-popover": "1.0.7",
68-
"@radix-ui/react-select": "2.0.0",
69-
"@radix-ui/react-switch": "1.1.0",
70-
"@radix-ui/react-tooltip": "1.0.6",
66+
"@radix-ui/react-popover": "1.1.6",
67+
"@radix-ui/react-select": "2.1.6",
68+
"@radix-ui/react-switch": "1.1.3",
69+
"@radix-ui/react-tooltip": "1.1.8",
7170
"@reduxjs/toolkit": "2.1.0",
72-
"class-variance-authority": "0.7.0",
71+
"class-variance-authority": "0.7.1",
7372
"d3": "7.8.5",
7473
"lodash": "4.17.21",
7574
"lucide-react": "0.316.0",

src/components/core/label.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import * as React from "react";
2-
import * as LabelPrimitive from "@radix-ui/react-label";
3-
import { type VariantProps, cva } from "class-variance-authority";
42
import { twMerge } from "tailwind-merge";
53

6-
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
4+
const Label = React.forwardRef<HTMLLabelElement, React.LabelHTMLAttributes<HTMLLabelElement>>(
5+
({ className, ...props }, ref) => (
6+
<label
7+
ref={ref}
8+
className={twMerge(
9+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
10+
className
11+
)}
12+
{...props}
13+
/>
14+
)
15+
);
716

8-
const Label = React.forwardRef<
9-
React.ElementRef<typeof LabelPrimitive.Root>,
10-
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
11-
>(({ className, ...props }, ref) => (
12-
<LabelPrimitive.Root ref={ref} className={twMerge(labelVariants(), className)} {...props} />
13-
));
14-
Label.displayName = LabelPrimitive.Root.displayName;
17+
Label.displayName = "Label";
1518

1619
export { Label };

0 commit comments

Comments
 (0)