Updated UI package to work with the new Shadcn CLI (#59)

Updated UI package to work with the new Shadcn CLI
This commit is contained in:
Giancarlo Buomprisco
2024-09-03 18:17:51 +08:00
committed by GitHub
parent b3b061fc2e
commit fafcafc221
67 changed files with 100 additions and 73 deletions

View File

@@ -1,7 +1,7 @@
import { forwardRef } from 'react';
import { cn } from '../../lib/utils';
import { Button } from '../../shadcn/button';
import { cn } from '../../utils';
export const CtaButton = forwardRef<
HTMLButtonElement,

View File

@@ -1,12 +1,12 @@
import React, { forwardRef } from 'react';
import { cn } from '../../lib/utils';
import {
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from '../../shadcn/card';
import { cn } from '../../utils';
interface FeatureCardProps extends React.HTMLAttributes<HTMLDivElement> {
label: string;

View File

@@ -1,6 +1,6 @@
import React, { forwardRef } from 'react';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
export const FeatureGrid = forwardRef<
HTMLDivElement,

View File

@@ -1,6 +1,6 @@
import React, { forwardRef } from 'react';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
interface FeatureShowcaseProps extends React.HTMLAttributes<HTMLDivElement> {
heading: React.ReactNode;

View File

@@ -1,6 +1,6 @@
import { forwardRef } from 'react';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
interface FooterSection {
heading: React.ReactNode;

View File

@@ -2,7 +2,7 @@ import { forwardRef } from 'react';
import { Slot, Slottable } from '@radix-ui/react-slot';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
export const GradientSecondaryText = forwardRef<
HTMLSpanElement,

View File

@@ -1,6 +1,6 @@
import React, { forwardRef } from 'react';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
export const GradientText = forwardRef<
HTMLSpanElement,

View File

@@ -1,6 +1,6 @@
import { forwardRef } from 'react';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
logo?: React.ReactNode;

View File

@@ -2,7 +2,7 @@ import { forwardRef } from 'react';
import { Slot, Slottable } from '@radix-ui/react-slot';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
export const HeroTitle = forwardRef<
HTMLHeadingElement,

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { cn } from '../../lib/utils';
import { Heading } from '../../shadcn/heading';
import { cn } from '../../utils';
import { HeroTitle } from './hero-title';
interface HeroProps {

View File

@@ -2,9 +2,9 @@
import { useCallback, useState } from 'react';
import { cn } from '../../lib/utils';
import { Alert, AlertDescription, AlertTitle } from '../../shadcn/alert';
import { Heading } from '../../shadcn/heading';
import { cn } from '../../utils';
import { Spinner } from '../spinner';
import { NewsletterSignup } from './newsletter-signup';

View File

@@ -4,6 +4,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
import { useForm } from 'react-hook-form';
import { z } from 'zod';
import { cn } from '../../lib/utils';
import { Button } from '../../shadcn/button';
import {
Form,
@@ -13,7 +14,6 @@ import {
FormMessage,
} from '../../shadcn/form';
import { Input } from '../../shadcn/input';
import { cn } from '../../utils';
const NewsletterFormSchema = z.object({
email: z.string().email('Please enter a valid email address'),

View File

@@ -2,7 +2,7 @@ import { forwardRef } from 'react';
import { Slot, Slottable } from '@radix-ui/react-slot';
import { cn } from '../../utils';
import { cn } from '../../lib/utils';
import { GradientSecondaryText } from './gradient-secondary-text';
export const Pill = forwardRef<

View File

@@ -1,7 +1,7 @@
import { forwardRef } from 'react';
import { cn } from '../../lib/utils';
import { Heading } from '../../shadcn/heading';
import { cn } from '../../utils';
interface SecondaryHeroProps extends React.HTMLAttributes<HTMLDivElement> {
pill?: React.ReactNode;