Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔥 Remove unused Checkbox component (#2571)
Luke Vella03a165934e42
diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 49442a7cd..2699ead95 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -19,7 +19,6 @@"dependencies": {"@base-ui/react": "^1.2.0","@radix-ui/react-avatar": "^1.1.0",- "@radix-ui/react-checkbox": "^1.0.4","@radix-ui/react-dialog": "^1.1.11","@radix-ui/react-dropdown-menu": "^2.0.4","@radix-ui/react-popover": "^1.0.5",diff --git a/packages/ui/src/checkbox-check.svg b/packages/ui/src/checkbox-check.svgdeleted file mode 100644index b4eb30d5c..000000000--- a/packages/ui/src/checkbox-check.svg+++ /dev/null@@ -1,3 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 10 8">- <path fill-rule="evenodd" d="M9.33 1.066a1.25 1.25 0 0 1 .104 1.764l-4 4.5a1.25 1.25 0 0 1-1.627.21l-3-2a1.25 1.25 0 0 1 1.386-2.08l2.095 1.397L7.566 1.17a1.25 1.25 0 0 1 1.764-.104Z" clip-rule="evenodd"/>-</svg>diff --git a/packages/ui/src/checkbox.tsx b/packages/ui/src/checkbox.tsxdeleted file mode 100644index 0937b2bc5..000000000--- a/packages/ui/src/checkbox.tsx+++ /dev/null@@ -1,37 +0,0 @@-"use client";--import * as CheckboxPrimitive from "@radix-ui/react-checkbox";-import { Check, Minus } from "lucide-react";-import * as React from "react";--import { cn } from "./lib/utils";--const Checkbox = React.forwardRef<- React.ElementRef<typeof CheckboxPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>->(({ className, checked, ...props }, ref) => {- return (- <CheckboxPrimitive.Root- ref={ref}- className={cn(- "peer size-5 shrink-0 rounded-md border border-gray-300 focus-visible:outline-hidden focus-visible:ring-1 active:bg-gray-200 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=indeterminate]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:text-primary-foreground data-[state=unchecked]:active:border-gray-300 data-[state=checked]:active:bg-primary/80 data-[state=indeterminate]:active:bg-primary/80",- className,- )}- checked={checked}- {...props}- >- <CheckboxPrimitive.Indicator- className={cn("flex items-center justify-center text-current")}- >- {checked === "indeterminate" ? (- <Minus className="size-4" />- ) : (- <Check className="size-4" />- )}- </CheckboxPrimitive.Indicator>- </CheckboxPrimitive.Root>- );-});-Checkbox.displayName = CheckboxPrimitive.Root.displayName;--export { Checkbox };diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 20792a606..2416228ae 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -770,9 +770,6 @@ importers:'@radix-ui/react-avatar':specifier: ^1.1.0version: 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-checkbox':- specifier: ^1.0.4- version: 1.3.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-dialog':specifier: ^1.1.11version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -3538,19 +3535,6 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}- peerDependencies:- '@types/react': '*'- '@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- '@types/react-dom':- optional: true-'@radix-ui/[email protected]':resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}peerDependencies:@@ -14877,22 +14861,6 @@ snapshots:'@types/react': 19.2.13'@types/react-dom': 19.2.3(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@radix-ui/primitive': 1.1.3- '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])- react: 19.2.6- react-dom: 19.2.6([email protected])- optionalDependencies:- '@types/react': 19.2.13- '@types/react-dom': 19.2.3(@types/[email protected])-'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])