Skip to content

Commit

Permalink
refactor(component-docs): snippets/component -> seed-design/ui ch…
Browse files Browse the repository at this point in the history
…ange alias in example
  • Loading branch information
junghyeonsu committed Oct 8, 2024
1 parent aafabfb commit 68b92ed
Show file tree
Hide file tree
Showing 31 changed files with 32 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonBrandSolid() {
return <ActionButton variant="brandSolid">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonBrandWeak() {
return <ActionButton variant="brandWeak">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonDangerSolid() {
return <ActionButton variant="dangerSolid">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```tsx copy
import IconAddFill from "@seed-design/icon/IconAddFill";
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonIconOnly() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonNeutralSolid() {
return <ActionButton variant="neutralSolid">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonNeutralWeak() {
return <ActionButton variant="neutralWeak">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```tsx copy
import IconAddFill from "@seed-design/icon/IconAddFill";
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonPrefixIcon() {
return <ActionButton prefixIcon={<IconAddFill />}>라벨</ActionButton>;
Expand Down
2 changes: 1 addition & 1 deletion component-docs/public/mdx/react/action-button-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonPreview() {
return <ActionButton>라벨</ActionButton>;
Expand Down
2 changes: 1 addition & 1 deletion component-docs/public/mdx/react/alert-dialog-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```tsx copy
import * as React from "react";

import { AlertDialog } from "snippets/component/alert-dialog";
import { AlertDialog } from "seed-design/ui/alert-dialog";

export default function AlertDialogPreview() {
return <AlertDialog title="Title" description="Description" />;
Expand Down
2 changes: 1 addition & 1 deletion component-docs/public/mdx/react/checkbox-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { Checkbox } from "snippets/component/checkbox";
import { Checkbox } from "seed-design/ui/checkbox";

export default function CheckboxPreview() {
return <Checkbox label="hi" />;
Expand Down
2 changes: 1 addition & 1 deletion component-docs/public/mdx/react/chip-tabs-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```tsx copy
import * as React from "react";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "snippets/component/chip-tabs";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "seed-design/ui/chip-tabs";

export default function ChipTabsPreview() {
const [value, setValue] = React.useState("1");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```tsx copy
import * as React from "react";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "snippets/component/chip-tabs";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "seed-design/ui/chip-tabs";

export default function ChipTabsVariantBrandWeak() {
const [value, setValue] = React.useState("1");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```tsx copy
import * as React from "react";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "snippets/component/chip-tabs";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "seed-design/ui/chip-tabs";

export default function ChipTabsVariantNeutralSolid() {
const [value, setValue] = React.useState("1");
Expand Down
2 changes: 1 addition & 1 deletion component-docs/public/mdx/react/expand-button-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```tsx copy
import { ExpandButton } from "snippets/component/expand-button";
import { ExpandButton } from "seed-design/ui/expand-button";
import IconChevronRightFill from "@seed-design/icon/IconChevronRightFill";

export default function ExpandButtonPreview() {
Expand Down
8 changes: 1 addition & 7 deletions component-docs/public/mdx/react/tabs-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
```tsx copy
import {
Tabs,
TabContent,
TabContentList,
TabTrigger,
TabTriggerList,
} from "snippets/component/tabs";
import { Tabs, TabContent, TabContentList, TabTrigger, TabTriggerList } from "seed-design/ui/tabs";

export default function TabsPreview() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonBrandSolid() {
return <ActionButton variant="brandSolid">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonBrandWeak() {
return <ActionButton variant="brandWeak">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonDangerSolid() {
return <ActionButton variant="dangerSolid">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import IconAddFill from "@seed-design/icon/IconAddFill";
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonIconOnly() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonNeutralSolid() {
return <ActionButton variant="neutralSolid">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonNeutralWeak() {
return <ActionButton variant="neutralWeak">라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import IconAddFill from "@seed-design/icon/IconAddFill";
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonPrefixIcon() {
return <ActionButton prefixIcon={<IconAddFill />}>라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionButton } from "snippets/component/action-button";
import { ActionButton } from "seed-design/ui/action-button";

export default function ActionButtonPreview() {
return <ActionButton>라벨</ActionButton>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";

import { AlertDialog } from "snippets/component/alert-dialog";
import { AlertDialog } from "seed-design/ui/alert-dialog";

export default function AlertDialogPreview() {
return <AlertDialog title="Title" description="Description" />;
Expand Down
2 changes: 1 addition & 1 deletion component-docs/snippets/example/react/checkbox-preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Checkbox } from "snippets/component/checkbox";
import { Checkbox } from "seed-design/ui/checkbox";

export default function CheckboxPreview() {
return <Checkbox label="hi" />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "snippets/component/chip-tabs";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "seed-design/ui/chip-tabs";

export default function ChipTabsPreview() {
const [value, setValue] = React.useState("1");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "snippets/component/chip-tabs";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "seed-design/ui/chip-tabs";

export default function ChipTabsVariantBrandWeak() {
const [value, setValue] = React.useState("1");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "snippets/component/chip-tabs";
import { ChipTabs, ChipTabTrigger, ChipTabTriggerList } from "seed-design/ui/chip-tabs";

export default function ChipTabsVariantNeutralSolid() {
const [value, setValue] = React.useState("1");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ExpandButton } from "snippets/component/expand-button";
import { ExpandButton } from "seed-design/ui/expand-button";
import IconChevronRightFill from "@seed-design/icon/IconChevronRightFill";

export default function ExpandButtonPreview() {
Expand Down
8 changes: 1 addition & 7 deletions component-docs/snippets/example/react/tabs-preview.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
Tabs,
TabContent,
TabContentList,
TabTrigger,
TabTriggerList,
} from "snippets/component/tabs";
import { Tabs, TabContent, TabContentList, TabTrigger, TabTriggerList } from "seed-design/ui/tabs";

export default function TabsPreview() {
return (
Expand Down
4 changes: 2 additions & 2 deletions component-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@/*": [
"./*"
],
"seed-design/*": [
"./seed-design/*"
"seed-design/ui/*": [
"./snippets/component/*"
],
"react": [
"./node_modules/@types/react"
Expand Down

0 comments on commit 68b92ed

Please sign in to comment.