Skip to content

Commit

Permalink
chore: fix import path
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Apr 7, 2024
1 parent 4de81cc commit 25ec1f4
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-badgers-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sopt-makers/fonts": major
---

Change fonts name, add fontObj
5 changes: 5 additions & 0 deletions .changeset/polite-countries-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sopt-makers/ui": minor
---

Release UI library
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@sopt-makers/icons": major
---

release icons library
Release Icons library
5 changes: 0 additions & 5 deletions .changeset/shy-phones-change.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-roses-flow.md

This file was deleted.

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 'ui';
import { Test } from '../../../packages/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 'ui/Button';
import { Button } from '../../../../packages/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 'ui/CheckBox';
import { CheckBox } from '../../../../packages/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 'ui/Dialog';
} from '../../../../packages/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 'ui';
import { Button } from '../../../../packages/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 "ui";
import { Test } from "../../../../packages/ui";

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

const meta: Meta = {
title: "Components/Toast",
component: ToastComponent,
tags: ["autodocs"],
argTypes: {
icon: {
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
// "baseUrl": ".",
// "paths": {
// "@ui": ["/packages/ui"]
// },

/* Bundler mode */
"moduleResolution": "bundler",
Expand Down
5 changes: 5 additions & 0 deletions apps/docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), vanillaExtractPlugin()],
// resolve: {
// alias: {
// '@ui': '../../packages/ui'
// }
// }
})
1 change: 1 addition & 0 deletions packages/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export * from "./cssVariables";

// component exports
export { default as Button } from "./Button";
export { default as CheckBox } from "./CheckBox";
export { Dialog, DialogContext, DialogProvider, useDialog } from "./Dialog";
export type { DialogOptionType } from "./Dialog";
export { ToastProvider, useToast } from "./Toast";
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@radix-ui/react-dialog": "^1.0.5",
"@sopt-makers/colors": "^3.0.0",
"@sopt-makers/fonts": "^1.0.0",
"@sopt-makers/fonts": "^1.1.0",
"@turbo/gen": "^1.10.12",
"@types/node": "^20.5.2",
"@types/react": "^18.2.0",
Expand Down

0 comments on commit 25ec1f4

Please sign in to comment.