Skip to content

Commit

Permalink
chore: update apps/docs import path
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Apr 9, 2024
1 parent ab06cf7 commit a811450
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 36 deletions.
10 changes: 5 additions & 5 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
"chromatic": "npx chromatic --project-token=chpt_98c750b6bad066a"
},
"dependencies": {
"@vanilla-extract/css": "^1.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ui": "*"
"@sopt-makers/ui": "^1.0.0"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.6.3",
Expand All @@ -31,6 +28,7 @@
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/vite-plugin": "^3.9.2",
"@vitejs/plugin-react": "^4.2.0",
"chromatic": "^10.0.0",
Expand All @@ -40,7 +38,9 @@
"eslint-plugin-storybook": "^0.6.15",
"storybook": "^7.6.3",
"typescript": "^5.2.2",
"vite": "^5.0.0"
"vite": "^5.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"readme": "ERROR: No README data found!",
"_id": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Test } from '../../../packages/ui';
import { Test } from '@sopt-makers/ui';
import './App.css';

function App() {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react';
import { Button } from '../../../../packages/ui';
import { Button } from '@sopt-makers/ui';

interface ButtonOwnProps {
size?: 'sm' | 'md' | 'lg';
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/stories/CheckBox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import { CheckBox } from '../../../../packages/ui';
import { CheckBox } from '@sopt-makers/ui';

const meta = {
title: 'Components/CheckBox',
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/stories/Dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
DialogContext,
type DialogOptionType,
useDialog,
} from '../../../../packages/ui';
} from '@sopt-makers/ui';

export default {
title: 'Components/Dialog',
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/stories/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '../../../../packages/ui';
import { Button } from '@sopt-makers/ui';
import './header.css';

type User = {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/stories/Test.stories.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';

import { Test } from "../../../../packages/ui";
import { Test } from "@sopt-makers/ui";

const meta = {
title: 'Example/Test',
Expand Down
23 changes: 12 additions & 11 deletions apps/docs/src/stories/Toast.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj, StoryFn } from "@storybook/react";
import { useToast, ToastProvider, type ToastOptionType } from "../../../../packages/ui";
import { useToast, ToastProvider, type ToastOptionType } from "@sopt-makers/ui";
import { IconCopy } from "../../../../packages/icons/src";

const meta: Meta = {
Expand Down Expand Up @@ -37,16 +37,17 @@ const meta: Meta = {
};
export default meta;

export const Component: StoryObj = {
args: {
icon: "success",
content: "프로젝트가 등록되었어요.",
action: { name: "보러가기", onClick: () => {} },
style: {
root: { position: "static", animation: "none", transform: "none" },
},
},
};
// export const Component: StoryObj = {
// component: Toast,
// args: {
// icon: "success",
// content: "프로젝트가 등록되었어요.",
// action: { name: "보러가기", onClick: () => {} },
// style: {
// root: { position: "static", animation: "none", transform: "none" },
// },
// },
// };

const ToastSample = ({ option }: { option: ToastOptionType }) => {
const { open } = useToast();
Expand Down
4 changes: 0 additions & 4 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
// "baseUrl": ".",
// "paths": {
// "@ui": ["/packages/ui"]
// },

/* Bundler mode */
"moduleResolution": "bundler",
Expand Down
5 changes: 0 additions & 5 deletions apps/docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@ import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), vanillaExtractPlugin()],
// resolve: {
// alias: {
// '@ui': '../../packages/ui'
// }
// }
})
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2458,11 +2458,6 @@
resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz"
integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==

"@sopt-makers/ui@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@sopt-makers/ui/-/ui-1.0.0.tgz#e46e1943c55e67d8b52e73261dd77377544f59d1"
integrity sha512-YKglcUQIBuz6vuRs8DQehSfKVcmlaJCYZo4m02cHwHGbPMdUcR6okYmfXU51H28J1jZ898x+fgfSUOY9w0cgwg==

"@storybook/[email protected]":
version "7.6.17"
resolved "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-7.6.17.tgz"
Expand Down

0 comments on commit a811450

Please sign in to comment.