Skip to content

Commit

Permalink
Migrate old UI components into a legacy directory for clarity (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarinrickett authored Jan 20, 2025
1 parent 0f0190c commit f95f2f5
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion libraries/ui/src/CourseCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx';
import { LinkOrButton, LinkOrButtonProps } from './LinkOrButton';
import { LinkOrButton, LinkOrButtonProps } from './legacy/LinkOrButton';

export type CourseCardProps = React.PropsWithChildren<{
className?: string,
Expand Down
2 changes: 1 addition & 1 deletion libraries/ui/src/Nav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx';
import { LinkOrButton, LinkOrButtonProps } from './LinkOrButton';
import { LinkOrButton, LinkOrButtonProps } from './legacy/LinkOrButton';

export type NavProps = React.PropsWithChildren<{
className?: string,
Expand Down
39 changes: 20 additions & 19 deletions libraries/ui/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
// Alphabetized by file name
// Updated Components - 2025
export { CourseCard, CourseCardButton } from './CourseCard';

export { Box } from './Box';
export type { BoxProps } from './Box';
export { HeroSection } from './HeroSection';

export { Button } from './Button';
export type { ButtonProps } from './Button';
export { Footer } from './Footer';

export { Card, CardButton } from './Card';
export type { CardProps } from './Card';
export { Nav } from './Nav';

export { CourseCard, CourseCardButton } from './CourseCard';
// Legacy Components

export { HeroSection } from './HeroSection';
export type { HeroSectionProps } from './HeroSection';
export { Box } from './legacy/Box';
export type { BoxProps } from './legacy/Box';

export { Footer } from './Footer';
export { Button } from './legacy/Button';
export type { ButtonProps } from './legacy/Button';

export { Input } from './Input';
export type { InputProps } from './Input';
export { Card, CardButton } from './legacy/Card';
export type { CardProps } from './legacy/Card';

export { Link } from './Link';
export type { LinkProps } from './Link';
export { Input } from './legacy/Input';
export type { InputProps } from './legacy/Input';

export { Nav } from './Nav';
export { Link } from './legacy/Link';
export type { LinkProps } from './legacy/Link';

export {
H1, H2, HPrefix, P,
} from './Text';
export type { TextProps } from './Text';
} from './legacy/Text';
export type { TextProps } from './legacy/Text';

export { Textarea } from './Textarea';
export type { TextareaProps } from './Textarea';
export { Textarea } from './legacy/Textarea';
export type { TextareaProps } from './legacy/Textarea';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f95f2f5

Please sign in to comment.