Skip to content

Commit

Permalink
chore: update imports, rm redudant files
Browse files Browse the repository at this point in the history
  • Loading branch information
americano98 committed Nov 29, 2024
1 parent 2ce2b98 commit 812d8a3
Show file tree
Hide file tree
Showing 24 changed files with 119 additions and 232 deletions.
75 changes: 0 additions & 75 deletions packages/canary/src/components/card.tsx

This file was deleted.

72 changes: 0 additions & 72 deletions packages/canary/src/components/input-otp.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions packages/canary/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export * from './components/breadcrumb'
export * from './components/button'
export * from './components/split-button'
export * from './components/calendar'
export * from './components/card'
export * from './components/carousel'
export * from './components/checkbox'
export * from './components/collapsible'
Expand All @@ -18,7 +17,6 @@ export * from './components/drawer'
export * from './components/dropdown-menu'
export * from './components/form'
export * from './components/hover-card'
export * from './components/input-otp'
export * from './components/input'
export * from './components/label'
export * from './components/menubar'
Expand Down
13 changes: 12 additions & 1 deletion packages/playground/src/components/create-project-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ import { useForm } from 'react-hook-form'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Button, Card, CardContent, CardHeader, CardTitle, Icon, Input, Label, Spacer, Text } from '@harnessio/canary'
import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
Icon,
Input,
Label,
Spacer,
Text
} from '@harnessio/ui/components'

import { SandboxLayout } from '..'

Expand Down
16 changes: 13 additions & 3 deletions packages/playground/src/components/forgot-password-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ import { Link } from 'react-router-dom'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Button, Card, CardContent, CardHeader, CardTitle, Icon, Input, Label, Spacer, Text } from '@harnessio/canary'

import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
Icon,
Input,
Label,
Spacer,
Text
} from '@harnessio/ui/components'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

interface PageProps {
isLoading?: boolean
Expand Down
16 changes: 13 additions & 3 deletions packages/playground/src/components/new-password-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ import { Link } from 'react-router-dom'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Button, Card, CardContent, CardHeader, CardTitle, Icon, Input, Label, Spacer, Text } from '@harnessio/canary'

import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
Icon,
Input,
Label,
Spacer,
Text
} from '@harnessio/ui/components'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

interface PageProps {
isLoading?: boolean
Expand Down
16 changes: 7 additions & 9 deletions packages/playground/src/components/otp-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ import { useForm } from 'react-hook-form'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { ButtonGroup, cn } from '@harnessio/canary'
import {
Button,
ButtonGroup,
buttonVariants,
Card,
CardContent,
CardHeader,
CardTitle,
cn,
Icon,
InputOTP,
InputOTPGroup,
InputOTPSlot,
Spacer,
Text
} from '@harnessio/canary'

import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
} from '@harnessio/ui/components'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

interface PageProps {
handleResend?: () => void
Expand Down Expand Up @@ -65,10 +63,10 @@ export function OTPPage({ handleResend, isLoading, handleFormSubmit }: PageProps
<form onSubmit={handleSubmit(onSubmit)}>
<InputOTP maxLength={4}>
<InputOTPGroup id="otp" className="mx-auto flex" {...register('otp')}>
<InputOTPSlot index={0} size="lg" />
<InputOTPSlot index={1} size="lg" />
<InputOTPSlot index={2} size="lg" />
<InputOTPSlot index={3} size="lg" />
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
<InputOTPSlot index={3} />
</InputOTPGroup>
</InputOTP>
<Spacer size={8} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DiffBlock } from 'diff2html/lib/types'
import { debounce } from 'lodash-es'
import { OverlayScrollbars } from 'overlayscrollbars'

import { Card, Input, Text } from '@harnessio/canary'
import { Card, Input, Text } from '@harnessio/ui/components'

import constants from './constants'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { memo, useEffect, useState } from 'react'

import cx from 'classnames'

import { Button, Card, Input, NodeGroup, Text } from '@harnessio/canary'
import { NodeGroup } from '@harnessio/canary'
import { Button, Card, Input, Text } from '@harnessio/ui/components'

interface TimelineItemProps {
header: {
Expand Down
3 changes: 1 addition & 2 deletions packages/playground/src/components/signin-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Button, Card, CardContent, CardHeader, CardTitle, Icon, Input, Label, Spacer, Text } from '@harnessio/canary'

import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

interface PageProps {
handleSignIn: (data: DataProps) => void
Expand Down
7 changes: 3 additions & 4 deletions packages/playground/src/components/signup-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ import { Link } from 'react-router-dom'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Dock } from '@harnessio/canary'
import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
Dock,
Icon,
Input,
Label,
Spacer,
Text
} from '@harnessio/canary'

import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
} from '@harnessio/ui/components'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

interface PageProps {
isLoading?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/layouts/PullRequestLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { NavLink, Outlet } from 'react-router-dom'

import { Badge, Icon, Spacer, Tabs, TabsList, TabsTrigger } from '@harnessio/canary'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

import { PullRequestHeader } from '../components/pull-request/pull-request-conversation-header'
import { Floating1ColumnLayout } from './Floating1ColumnLayout'

const mockedPullRequest = {
number: 1,
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/pages/repo-summary-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
StackedList,
Text
} from '@harnessio/canary'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

import { BranchSelector } from '../components/branch-chooser'
import { SkeletonList } from '../components/loaders/skeleton-list'
Expand All @@ -21,7 +22,6 @@ import { NoSearchResults } from '../components/no-search-results'
import { Summary } from '../components/repo-summary'
import { RepoSummaryPanel } from '../components/repo-summary-panel'
import { mockFiles } from '../data/mockSummaryFiiles'
import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
import { FullWidth2ColumnLayout } from '../layouts/FullWidth2ColumnLayout'
import { PlaygroundListSettings } from '../settings/list-settings'

Expand Down
13 changes: 12 additions & 1 deletion packages/views/src/components/create-project-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ import { useForm } from 'react-hook-form'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Button, Card, CardContent, CardHeader, CardTitle, Icon, Input, Label, Spacer, Text } from '@harnessio/canary'
import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
Icon,
Input,
Label,
Spacer,
Text
} from '@harnessio/ui/components'

import { SandboxLayout } from '..'

Expand Down
16 changes: 13 additions & 3 deletions packages/views/src/components/forgot-password-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ import { Link } from 'react-router-dom'
import { zodResolver } from '@hookform/resolvers/zod'
import { z } from 'zod'

import { Button, Card, CardContent, CardHeader, CardTitle, Icon, Input, Label, Spacer, Text } from '@harnessio/canary'

import { Floating1ColumnLayout } from '../layouts/Floating1ColumnLayout'
import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
Icon,
Input,
Label,
Spacer,
Text
} from '@harnessio/ui/components'
import { Floating1ColumnLayout } from '@harnessio/ui/views'

interface PageProps {
isLoading?: boolean
Expand Down
Loading

0 comments on commit 812d8a3

Please sign in to comment.