@1d1s/design-system 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DefaultProfile.png +0 -0
- package/dist/EmotionHappy.png +0 -0
- package/dist/EmotionSad.png +0 -0
- package/dist/EmotionSoso.png +0 -0
- package/dist/components/BackButton/BackButton.d.ts +1 -0
- package/dist/components/BackButton/BackButton.stories.d.ts +6 -0
- package/dist/components/BackButton/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +21 -0
- package/dist/components/Button/Button.stories.d.ts +11 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Calendar/Calendar.d.ts +4 -0
- package/dist/components/Calendar/Calendar.stories.d.ts +6 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/ChallengeCard/ChallengeCard.d.ts +38 -0
- package/dist/components/ChallengeCard/ChallengeCard.stories.d.ts +7 -0
- package/dist/components/ChallengeCard/index.d.ts +1 -0
- package/dist/components/ChallengeListItem/ChallengeListItem.d.ts +12 -0
- package/dist/components/ChallengeListItem/ChallengeListItem.stories.d.ts +6 -0
- package/dist/components/ChallengeListItem/index.d.ts +1 -0
- package/dist/components/CircleAvatar/CircleAvatar.d.ts +8 -0
- package/dist/components/CircleAvatar/CircleAvatar.stories.d.ts +7 -0
- package/dist/components/CircleAvatar/index.d.ts +1 -0
- package/dist/components/CircularProgress/CircularProgress.d.ts +30 -0
- package/dist/components/CircularProgress/CircularProgress.stories.d.ts +8 -0
- package/dist/components/CircularProgress/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +25 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +6 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +13 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +9 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/DiaryCard/DiaryCard.d.ts +17 -0
- package/dist/components/DiaryCard/DiaryCard.stories.d.ts +6 -0
- package/dist/components/DiaryCard/index.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +53 -0
- package/dist/components/Dropdown/Dropdown.stories.d.ts +6 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Footer/Footer.d.ts +8 -0
- package/dist/components/Footer/Footer.stories.d.ts +6 -0
- package/dist/components/Footer/index.d.ts +1 -0
- package/dist/components/GlobalChrome/GlobalChrome.d.ts +1 -0
- package/dist/components/GlobalChrome/GlobalChrome.stories.d.ts +7 -0
- package/dist/components/GlobalChrome/index.d.ts +1 -0
- package/dist/components/Icons/AddCircle.d.ts +2 -0
- package/dist/components/Icons/Calendar.d.ts +2 -0
- package/dist/components/Icons/Check.d.ts +2 -0
- package/dist/components/Icons/Chevron.d.ts +2 -0
- package/dist/components/Icons/ChevronDown.d.ts +2 -0
- package/dist/components/Icons/ChevronLeft.d.ts +2 -0
- package/dist/components/Icons/ChevronRight.d.ts +2 -0
- package/dist/components/Icons/ChevronUp.d.ts +2 -0
- package/dist/components/Icons/Close.d.ts +2 -0
- package/dist/components/Icons/Endless.d.ts +2 -0
- package/dist/components/Icons/Eye.d.ts +2 -0
- package/dist/components/Icons/EyeOff.d.ts +2 -0
- package/dist/components/Icons/HamburgerMenu.d.ts +2 -0
- package/dist/components/Icons/Heart.d.ts +2 -0
- package/dist/components/Icons/HeartFilled.d.ts +2 -0
- package/dist/components/Icons/Icons.stories.d.ts +9 -0
- package/dist/components/Icons/Logo.d.ts +2 -0
- package/dist/components/Icons/Minus.d.ts +2 -0
- package/dist/components/Icons/People.d.ts +2 -0
- package/dist/components/Icons/Person.d.ts +2 -0
- package/dist/components/Icons/Pin.d.ts +2 -0
- package/dist/components/Icons/Plus.d.ts +2 -0
- package/dist/components/Icons/Search.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +22 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.stories.d.ts +6 -0
- package/dist/components/ImagePicker/index.d.ts +1 -0
- package/dist/components/ImagePlaceholder/ImagePlaceholder.d.ts +11 -0
- package/dist/components/ImagePlaceholder/index.d.ts +1 -0
- package/dist/components/InfoButton/InfoButton.d.ts +20 -0
- package/dist/components/InfoButton/InfoButton.stories.d.ts +6 -0
- package/dist/components/InfoButton/index.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts +2 -0
- package/dist/components/Menu/Menu.stories.d.ts +6 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/PageBackground/PageBackground.d.ts +15 -0
- package/dist/components/PageBackground/PageBackground.stories.d.ts +6 -0
- package/dist/components/PageBackground/index.d.ts +1 -0
- package/dist/components/PageTitle/PageTitle.d.ts +29 -0
- package/dist/components/PageTitle/PageTitle.stories.d.ts +7 -0
- package/dist/components/PageTitle/index.d.ts +1 -0
- package/dist/components/PageWatermark/PageWatermark.d.ts +1 -0
- package/dist/components/PageWatermark/PageWatermark.stories.d.ts +6 -0
- package/dist/components/PageWatermark/index.d.ts +1 -0
- package/dist/components/ProfileCard/ProfileCard.d.ts +6 -0
- package/dist/components/ProfileCard/ProfileCard.stories.d.ts +7 -0
- package/dist/components/ProfileCard/index.d.ts +1 -0
- package/dist/components/Spacing/Spacing.d.ts +12 -0
- package/dist/components/Spacing/Spacing.stories.d.ts +6 -0
- package/dist/components/Spacing/index.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +25 -0
- package/dist/components/Tag/Tag.stories.d.ts +8 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +27 -0
- package/dist/components/Text/Text.stories.d.ts +9 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +49 -0
- package/dist/components/TextField/TextField.stories.d.ts +9 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/Toggle/Toggle.d.ts +19 -0
- package/dist/components/Toggle/Toggle.stories.d.ts +7 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +33 -0
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +7 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/Ui/Button.d.ts +11 -0
- package/dist/components/UserListItem/UserListItem.d.ts +10 -0
- package/dist/components/UserListItem/UserListItem.stories.d.ts +7 -0
- package/dist/components/UserListItem/index.d.ts +1 -0
- package/dist/components/index.d.ts +28 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +17730 -0
- package/dist/index.umd.js +77 -0
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +93 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Menu';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageBackground
|
|
3
|
+
* 페이지 또는 카드의 기본 배경 영역을 구성하는 컨테이너 컴포넌트
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <PageBackground className="min-w-250">
|
|
8
|
+
* <SomeSection />
|
|
9
|
+
* </PageBackground>
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function PageBackground({ children, className, }: {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageBackground';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const pageTitleVariants: (props?: ({
|
|
3
|
+
variant?: "withSubtitle" | "noSubtitle" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
type PageTitleProps = {
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & VariantProps<typeof pageTitleVariants>;
|
|
10
|
+
/**
|
|
11
|
+
* PageTitle
|
|
12
|
+
* 페이지 상단 타이틀 및 부제목 컴포넌트
|
|
13
|
+
*
|
|
14
|
+
* @param title 페이지 제목 텍스트
|
|
15
|
+
* @param subtitle 선택적 부제목 텍스트 (variant가 'withSubtitle'일 때 표시)
|
|
16
|
+
* @param variant 타이틀 스타일 종류 ('noSubtitle' | 'withSubtitle')
|
|
17
|
+
*
|
|
18
|
+
* @example 기본 사용
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <PageTitle title="오늘의 챌린지" />
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example 부제목 포함
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <PageTitle title="챌린지 소개" subtitle="매일 7시에 기상하기" variant="withSubtitle" />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function PageTitle({ title, subtitle, variant, className, }: PageTitleProps): React.ReactElement;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PageTitle } from './PageTitle';
|
|
3
|
+
declare const meta: Meta<typeof PageTitle>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PageTitle>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithSubtitle: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageTitle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PageWatermark(): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageWatermark';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ProfileCard } from './ProfileCard';
|
|
3
|
+
declare const meta: Meta<typeof ProfileCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ProfileCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Expanded: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProfileCard';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spacing
|
|
3
|
+
* 레이아웃 내 간격을 위해 사용되는 유틸리티 컴포넌트
|
|
4
|
+
*
|
|
5
|
+
* @param className Tailwind 유틸리티 클래스로 간격 크기 지정
|
|
6
|
+
*
|
|
7
|
+
* @example 기본 사용
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Spacing className="h-4" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function Spacing({ className, }: React.ComponentPropsWithoutRef<'div'>): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spacing';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const tagVariants: (props?: ({
|
|
3
|
+
hasIcon?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
type TagProps = {
|
|
6
|
+
icon?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
size?: 'caption3' | 'body1';
|
|
10
|
+
weight?: 'bold' | 'medium' | 'regular' | 'light';
|
|
11
|
+
} & VariantProps<typeof tagVariants>;
|
|
12
|
+
/**
|
|
13
|
+
* Tag
|
|
14
|
+
* 간단한 태그 스타일을 위한 컴포넌트 (텍스트 + 아이콘 구성)
|
|
15
|
+
*
|
|
16
|
+
* @param icon 선택적 아이콘 이모지 텍스트
|
|
17
|
+
* @param weight 텍스트 굵기 (기본값: bold) : bold, medium, regular, light
|
|
18
|
+
*
|
|
19
|
+
* @example 기본 사용
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Tag icon="🔥">인기</Tag>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function Tag({ icon, children, size, weight, className, }: TagProps): React.ReactElement;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tag } from './Tag';
|
|
3
|
+
declare const meta: Meta<typeof Tag>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Tag>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
8
|
+
export declare const CustomWeight: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const textVariants: (props?: ({
|
|
3
|
+
size?: "display1" | "display2" | "heading1" | "heading2" | "body1" | "body2" | "caption1" | "caption2" | "caption3" | "pageTitle" | null | undefined;
|
|
4
|
+
weight?: "bold" | "medium" | "regular" | "light" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Text
|
|
8
|
+
* 텍스트에 사이즈 및 굵기를 적용하는 커스텀 텍스트 컴포넌트
|
|
9
|
+
*
|
|
10
|
+
* @param size 텍스트 크기 : heading1, heading2, body1, body2, caption1, caption2, caption3, pageTitle
|
|
11
|
+
* @default size body2
|
|
12
|
+
* @param weight 텍스트 굵기 : bold, medium, regular, light
|
|
13
|
+
* @param as HTML 태그 또는 커스텀 컴포넌트로 렌더링 (기본값: span)
|
|
14
|
+
*
|
|
15
|
+
* @example 기본 사용
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <Text size="body1" weight="bold">텍스트</Text>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example HTML 태그 변경
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <Text as="p" size="caption1" weight="regular">단락 텍스트</Text>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function Text({ className, size, weight, as: Tag, ...props }: {
|
|
26
|
+
as?: React.ElementType;
|
|
27
|
+
} & React.ComponentPropsWithoutRef<'span'> & VariantProps<typeof textVariants>): React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Text } from './Text';
|
|
3
|
+
declare const meta: Meta<typeof Text>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Text>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Headings: Story;
|
|
8
|
+
export declare const Body: Story;
|
|
9
|
+
export declare const Captions: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Text';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const textFieldVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "search" | null | undefined;
|
|
5
|
+
size?: "default" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof textFieldVariants> {
|
|
8
|
+
label?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
multiline?: boolean;
|
|
11
|
+
rows?: number;
|
|
12
|
+
cols?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* TextField
|
|
16
|
+
* 입력 필드 컴포넌트
|
|
17
|
+
*
|
|
18
|
+
* @param label 입력 필드 레이블 (선택적)
|
|
19
|
+
* @param error 입력 필드 오류 메시지 (선택적)
|
|
20
|
+
* @param variant 스타일 변형 (default | search)
|
|
21
|
+
* @param multiline 다중 행 입력 여부 (textarea 렌더링)
|
|
22
|
+
*
|
|
23
|
+
* @example 기본 사용
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <TextField
|
|
26
|
+
* label="레이블"
|
|
27
|
+
* placeholder="플레이스홀더"
|
|
28
|
+
* />
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @example 검색 필드
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <TextField
|
|
34
|
+
* variant="search"
|
|
35
|
+
* placeholder="검색어 입력"
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @example 다중 행 입력
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <TextField
|
|
42
|
+
* multiline
|
|
43
|
+
* rows={4}
|
|
44
|
+
* placeholder="내용을 입력하세요"
|
|
45
|
+
* />
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TextField } from './TextField';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TextField>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
8
|
+
export declare const Search: Story;
|
|
9
|
+
export declare const TextArea: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextField';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
2
|
+
interface ToggleProps extends React.ComponentProps<typeof TogglePrimitive.Root> {
|
|
3
|
+
icon?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Toggle
|
|
9
|
+
* 간단한 토글 스타일을 위한 컴포넌트 (텍스트 + 아이콘 구성)
|
|
10
|
+
*
|
|
11
|
+
* @param icon 선택적 아이콘 이모지 텍스트
|
|
12
|
+
*
|
|
13
|
+
* @example 기본 사용
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <Toggle icon="🔥">인기</Toggle>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function Toggle({ icon, children, className, ...props }: ToggleProps): React.ReactElement;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Toggle } from './Toggle';
|
|
3
|
+
declare const meta: Meta<typeof Toggle>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Toggle>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toggle';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
2
|
+
interface ToggleProps extends React.ComponentProps<typeof ToggleGroupPrimitive.Item> {
|
|
3
|
+
icon?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* ToggleGroup
|
|
9
|
+
* 토글 그룹 컴포넌트
|
|
10
|
+
*
|
|
11
|
+
* @example 기본 사용
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <ToggleGroup type="single">
|
|
14
|
+
* <ToggleGroupItem icon="🔥">인기</ToggleGroupItem
|
|
15
|
+
* <ToggleGroupItem icon="⭐">추천</ToggleGroupItem>
|
|
16
|
+
* <ToggleGroupItem icon="💬">토론</ToggleGroupItem
|
|
17
|
+
* </ToggleGroup>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function ToggleGroup({ children, className, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root>): React.ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* ToggleGroupItem
|
|
23
|
+
* 간단한 토글 스타일을 위한 컴포넌트 (텍스트 + 아이콘 구성)
|
|
24
|
+
*
|
|
25
|
+
* @param icon 선택적 아이콘 이모지 텍스트
|
|
26
|
+
*
|
|
27
|
+
* @example 기본 사용
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <ToggleGroupItem icon="🔥">인기</Toggle>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function ToggleGroupItem({ icon, children, className, ...props }: ToggleProps): React.ReactElement;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ToggleGroup } from './ToggleGroup';
|
|
3
|
+
declare const meta: Meta<typeof ToggleGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ToggleGroup>;
|
|
6
|
+
export declare const Single: Story;
|
|
7
|
+
export declare const Multiple: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToggleGroup';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "lg" | "sm" | "icon" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface UserListItemProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
userName: string;
|
|
4
|
+
userImageSrc?: string;
|
|
5
|
+
isAuthor: boolean;
|
|
6
|
+
onAccept?(): void;
|
|
7
|
+
onReject?(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare function UserListItem({ className, userName, userImageSrc, isAuthor, onAccept, onReject, }: UserListItemProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { UserListItem } from './UserListItem';
|
|
3
|
+
declare const meta: Meta<typeof UserListItem>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof UserListItem>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Author: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserListItem';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './BackButton';
|
|
2
|
+
export * from './Button';
|
|
3
|
+
export * from './Calendar';
|
|
4
|
+
export * from './ChallengeCard';
|
|
5
|
+
export * from './ChallengeListItem';
|
|
6
|
+
export * from './CircleAvatar';
|
|
7
|
+
export * from './CircularProgress';
|
|
8
|
+
export * from './DatePicker';
|
|
9
|
+
export * from './Dialog';
|
|
10
|
+
export * from './DiaryCard';
|
|
11
|
+
export * from './Dropdown';
|
|
12
|
+
export * from './Footer';
|
|
13
|
+
export * from './GlobalChrome';
|
|
14
|
+
export * from './ImagePlaceholder';
|
|
15
|
+
export * from './ImagePicker';
|
|
16
|
+
export * from './InfoButton';
|
|
17
|
+
export * from './Text';
|
|
18
|
+
export * from './Menu';
|
|
19
|
+
export * from './PageBackground';
|
|
20
|
+
export * from './PageTitle';
|
|
21
|
+
export * from './PageWatermark';
|
|
22
|
+
export * from './ProfileCard';
|
|
23
|
+
export * from './Spacing';
|
|
24
|
+
export * from './Tag';
|
|
25
|
+
export * from './TextField';
|
|
26
|
+
export * from './Toggle';
|
|
27
|
+
export * from './ToggleGroup';
|
|
28
|
+
export * from './UserListItem';
|
package/dist/index.d.ts
ADDED