Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-checkbox-list.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixCheckbox } from '@lambdacurry/forms/remix/remix-checkbox';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import { FormMessage } from '@lambdacurry/forms/ui/form';
import type { ActionFunctionArgs } from '@remix-run/node';
import { useFetcher } from '@remix-run/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-checkbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixCheckbox } from '@lambdacurry/forms/remix/remix-checkbox';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import type { ActionFunctionArgs } from '@remix-run/node';
import { useFetcher } from '@remix-run/react';
import type { Meta, StoryContext, StoryObj } from '@storybook/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-date-picker.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixDatePicker } from '@lambdacurry/forms/remix/remix-date-picker';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import type { ActionFunctionArgs } from '@remix-run/node';
import { Form, useFetcher } from '@remix-run/react';
import type { Meta, StoryContext, StoryObj } from '@storybook/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-dropdown-menu-select.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixDropdownMenuSelect } from '@lambdacurry/forms/remix/remix-dropdown-menu-select';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import { DropdownMenuItem } from '@lambdacurry/forms/ui/dropdown-menu';
import type { ActionFunctionArgs } from '@remix-run/node';
import { Form, useFetcher } from '@remix-run/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-otp-input.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixOTPInputField } from '@lambdacurry/forms/remix/remix-otp-input';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import type { ActionFunctionArgs } from '@remix-run/node';
import { Form, useFetcher } from '@remix-run/react';
import type { Meta, StoryContext, StoryObj } from '@storybook/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-radio-group.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixRadioGroupField } from '@lambdacurry/forms/remix/remix-radio-group';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import { RadioGroupItem } from '@lambdacurry/forms/ui/radio-group';
import type { ActionFunctionArgs } from '@remix-run/node';
import { Form, useFetcher } from '@remix-run/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-switch.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixSwitch } from '@lambdacurry/forms/remix/remix-switch';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import type { ActionFunctionArgs } from '@remix-run/node';
import { useFetcher } from '@remix-run/react';
import type { Meta, StoryContext, StoryObj } from '@storybook/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-text-field.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixTextField } from '@lambdacurry/forms/remix/remix-text-field';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import type { ActionFunctionArgs } from '@remix-run/node';
import { useFetcher } from '@remix-run/react';
import type { Meta, StoryContext, StoryObj } from '@storybook/react';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/remix/remix-textarea.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { RemixTextarea } from '@lambdacurry/forms/remix/remix-textarea';
import { Button } from '@lambdacurry/forms/ui/button';
import { Button } from '@lambdacurry/forms/test/button';
import type { ActionFunctionArgs } from '@remix-run/node';
import { useFetcher } from '@remix-run/react';
import type { Meta, StoryContext, StoryObj } from '@storybook/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Slot } from '@radix-ui/react-slot';
import { type VariantProps, cva } from 'class-variance-authority';
// biome-ignore lint/style/noNamespaceImport: prevents React undefined errors when exporting as a component library
import * as React from 'react';
import { cn } from './utils';
import { cn } from '../ui/utils';

const buttonVariants = cva(
'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
Expand Down Expand Up @@ -30,7 +29,7 @@ const buttonVariants = cva(
},
);

export interface ButtonProps
interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean;
Expand All @@ -44,4 +43,4 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
);
Button.displayName = 'Button';

export { Button, buttonVariants };
export { Button, buttonVariants };
2 changes: 1 addition & 1 deletion packages/components/src/ui/date-picker-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Calendar as CalendarIcon } from 'lucide-react';
// biome-ignore lint/style/noNamespaceImport: prevents React undefined errors when exporting as a component library
import * as React from 'react';
import type { Control, FieldPath, FieldValues } from 'react-hook-form';
import { Button } from './button';
import { Button } from '../test/button';
import { DatePicker } from './date-picker';
import {
type FieldComponents,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/ui/date-picker.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChevronLeft, ChevronRight } from 'lucide-react';
import type * as React from 'react';
import { type CustomComponents, DayPicker } from 'react-day-picker';
import { buttonVariants } from './button';
import { buttonVariants } from '../test/button';
import { cn } from './utils';

export type DatePickerProps = React.ComponentProps<typeof DayPicker>;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/ui/dropdown-menu-select-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
// biome-ignore lint/style/noNamespaceImport: prevents React undefined errors when exporting as a component library
import * as React from 'react';
import type { Control, FieldPath, FieldValues } from 'react-hook-form';
import { Button } from './button';
import { Button } from '../test/button';
import { DropdownMenuContent } from './dropdown-menu';
import {
type FieldComponents,
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './button';
export * from './checkbox-field';
export * from './date-picker';
export * from './date-picker-field';
Expand Down