@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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BackButton(): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BackButton';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const customButtonVariants: (props?: ({
|
|
3
|
+
variant?: "default" | "input" | "disabled" | "warning" | "loading" | "outline" | null | undefined;
|
|
4
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof customButtonVariants> {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Button
|
|
11
|
+
* 커스텀 버튼 컴포넌트
|
|
12
|
+
* @param variant 버튼스타일 : default, disabled, warning, loading, outline, input
|
|
13
|
+
* @param size 버튼 크기 : lg, md, sm
|
|
14
|
+
*
|
|
15
|
+
* @example 기본 버튼
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <Button variant="default" size="lg">Large Button</Button>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function Button({ className, variant, size, asChild, disabled, ...props }: ButtonProps): React.ReactElement;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Button>;
|
|
6
|
+
export declare const Large: Story;
|
|
7
|
+
export declare const Medium: Story;
|
|
8
|
+
export declare const Small: Story;
|
|
9
|
+
export declare const Outline: Story;
|
|
10
|
+
export declare const Warning: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Calendar';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
interface ChallengeProps {
|
|
2
|
+
challengeTitle: string;
|
|
3
|
+
challengeType: string;
|
|
4
|
+
currentUserCount: number;
|
|
5
|
+
maxUserCount: number;
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
8
|
+
isOngoing: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
onClick?(): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ChallengeCard
|
|
14
|
+
* 챌린지 카드 컴포넌트 - 제목, 유형, 참여자 수, 기간, 상태(진행중/모집중) 표시
|
|
15
|
+
*
|
|
16
|
+
* @param challengeTitle 챌린지 이름
|
|
17
|
+
* @param challengeType 챌린지 유형
|
|
18
|
+
* @param currentUserCount 현재 참여자 수
|
|
19
|
+
* @param maxUserCount 최대 참여자 수
|
|
20
|
+
* @param startDate 시작일 (YYYY-MM-DD)
|
|
21
|
+
* @param endDate 종료일 (YYYY-MM-DD)
|
|
22
|
+
* @param isOngoing 챌린지 진행 상태 (true: 진행중, false: 모집중)
|
|
23
|
+
*
|
|
24
|
+
* @example 기본 사용 예
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <ChallengeCard
|
|
27
|
+
* challengeTitle="챌린지 제목"
|
|
28
|
+
* challengeType="고정목표형"
|
|
29
|
+
* currentUserCount={12}
|
|
30
|
+
* maxUserCount={20}
|
|
31
|
+
* startDate="2023-10-01"
|
|
32
|
+
* endDate="2023-10-31"
|
|
33
|
+
* isOngoing={true}
|
|
34
|
+
* />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function ChallengeCard({ challengeTitle, challengeType, currentUserCount, maxUserCount, startDate, endDate, isOngoing, className, onClick, }: ChallengeProps): React.ReactElement;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ChallengeCard } from './ChallengeCard';
|
|
3
|
+
declare const meta: Meta<typeof ChallengeCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ChallengeCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Recruiting: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChallengeCard';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ChallengeListItemProps {
|
|
2
|
+
challengeName: string;
|
|
3
|
+
challengeImageUrl?: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
maxParticipants: number;
|
|
7
|
+
currentParticipants: number;
|
|
8
|
+
onClick?(): void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function ChallengeListItem({ challengeName, challengeImageUrl, startDate, endDate, maxParticipants, currentParticipants, onClick, className, }: ChallengeListItemProps): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ChallengeListItem } from './ChallengeListItem';
|
|
3
|
+
declare const meta: Meta<typeof ChallengeListItem>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ChallengeListItem>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChallengeListItem';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CircleAvatarProps {
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function CircleAvatar({ imageUrl, size, className, }: CircleAvatarProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CircleAvatar } from './CircleAvatar';
|
|
3
|
+
declare const meta: Meta<typeof CircleAvatar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CircleAvatar>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithImage: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CircleAvatar';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const circularProgressVariants: (props?: ({
|
|
4
|
+
size?: "lg" | "md" | "sm" | "xl" | null | undefined;
|
|
5
|
+
strokeWidthVariant?: "lg" | "md" | "sm" | "xl" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type CircularProgressVariants = VariantProps<typeof circularProgressVariants>;
|
|
8
|
+
interface CircularProgressProps extends CircularProgressVariants {
|
|
9
|
+
value: number;
|
|
10
|
+
color?: 'blue' | 'green' | 'red';
|
|
11
|
+
showPercentage?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* CircularProgress
|
|
16
|
+
* 원형 진행률 표시 컴포넌트
|
|
17
|
+
*
|
|
18
|
+
* @param value 진행률 (0~100)
|
|
19
|
+
* @param size 크기 (sm, md, lg, xl)
|
|
20
|
+
* @param color 색상 (red, blue, green)
|
|
21
|
+
* @param showPercentage 퍼센트 표시 여부
|
|
22
|
+
* @param className 추가 클래스 이름
|
|
23
|
+
*
|
|
24
|
+
* @example 기본 사용
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <CircularProgress value={75} size="md" color="red" showPercentage />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function CircularProgress({ value, size, color, showPercentage, className, }: CircularProgressProps): React.ReactElement;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CircularProgress } from './CircularProgress';
|
|
3
|
+
declare const meta: Meta<typeof CircularProgress>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CircularProgress>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Blue: Story;
|
|
8
|
+
export declare const Green: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CircularProgress';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DatePicker
|
|
3
|
+
* 챌린지 카드 컴포넌트 - 제목, 유형, 참여자 수, 기간, 상태(진행중/모집중) 표시
|
|
4
|
+
*
|
|
5
|
+
* @param value hook에서 관리하는 날짜 값
|
|
6
|
+
* @param onChange 날짜 선택 변경 핸들러
|
|
7
|
+
*
|
|
8
|
+
* @example 기본 사용 예
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <FormItem>
|
|
11
|
+
* <FormField
|
|
12
|
+
* control={control}
|
|
13
|
+
* name="startDate"
|
|
14
|
+
* render={({ field }) => (
|
|
15
|
+
* <DatePicker value={field.value} onChange={field.onChange} />
|
|
16
|
+
* )}
|
|
17
|
+
* />
|
|
18
|
+
* </FormItem>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function DatePicker({ value, onChange, disableClickPropagation, }: {
|
|
22
|
+
value: Date | undefined;
|
|
23
|
+
onChange(date: Date | undefined): void;
|
|
24
|
+
disableClickPropagation?: boolean;
|
|
25
|
+
}): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePicker';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.ReactElement;
|
|
8
|
+
declare function DialogContent({ className, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Content>): React.ReactElement;
|
|
9
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
|
|
10
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
|
|
11
|
+
declare function DialogTitle({ className, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.ReactElement;
|
|
12
|
+
declare function DialogDescription({ className, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.ReactElement;
|
|
13
|
+
export { Dialog, DialogTrigger, DialogPortal, DialogClose, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dialog } from './Dialog';
|
|
3
|
+
declare const meta: Meta<typeof Dialog>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Dialog>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithForm: Story;
|
|
8
|
+
export declare const Confirmation: Story;
|
|
9
|
+
export declare const SimpleAlert: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog, DialogTrigger, DialogPortal, DialogClose, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from './Dialog';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Emotion = "happy" | "soso" | "sad";
|
|
3
|
+
export interface DiaryCardProps {
|
|
4
|
+
imageUrl?: string;
|
|
5
|
+
percent: number;
|
|
6
|
+
likes: number;
|
|
7
|
+
title: string;
|
|
8
|
+
user: string;
|
|
9
|
+
userImage?: string;
|
|
10
|
+
challengeLabel: string;
|
|
11
|
+
challengeUrl: string;
|
|
12
|
+
date: string;
|
|
13
|
+
emotion: Emotion;
|
|
14
|
+
onClick?(): void;
|
|
15
|
+
}
|
|
16
|
+
export declare function DiaryCard({ imageUrl, percent, likes, title, user, userImage, challengeLabel, challengeUrl, date, emotion, onClick, }: DiaryCardProps): React.ReactElement;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DiaryCard';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
/**
|
|
7
|
+
* SelectTrigger
|
|
8
|
+
* Select 기본 트리거 컴포넌트
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <SelectTrigger className="w-[180px]">
|
|
13
|
+
* <SelectValue placeholder="값을 선택해주세요" />
|
|
14
|
+
* </SelectTrigger>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
18
|
+
size?: "sm" | "default";
|
|
19
|
+
}): React.ReactElement;
|
|
20
|
+
/**
|
|
21
|
+
* SelectItem
|
|
22
|
+
* Select 기본 아이템 컴포넌트
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <SelectItem value="option1">value1</SelectItem>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.ReactElement;
|
|
30
|
+
/**
|
|
31
|
+
* SelectSeparator
|
|
32
|
+
* Select 구분선 컴포넌트
|
|
33
|
+
*/
|
|
34
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.ReactElement;
|
|
35
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.ReactElement;
|
|
36
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.ReactElement;
|
|
37
|
+
/**
|
|
38
|
+
* SelectContent
|
|
39
|
+
* Select 기본 컨텐츠 컴포넌트
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <SelectContent>
|
|
44
|
+
* <SelectGroup>
|
|
45
|
+
* <SelectItem value="option1">Option 1</SelectItem>
|
|
46
|
+
* <SelectItem value="option2">Option 2</SelectItem>
|
|
47
|
+
* </SelectGroup>
|
|
48
|
+
* </SelectContent>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.ReactElement;
|
|
52
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.ReactElement;
|
|
53
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Footer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GlobalChrome(): React.ReactElement | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GlobalChrome } from './GlobalChrome';
|
|
3
|
+
declare const meta: Meta<typeof GlobalChrome>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GlobalChrome>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const BackOnly: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GlobalChrome';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
declare const IconGallery: ({ size, color }: {
|
|
3
|
+
size: number;
|
|
4
|
+
color: string;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const meta: Meta<typeof IconGallery>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof IconGallery>;
|
|
9
|
+
export declare const Gallery: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './AddCircle';
|
|
2
|
+
export * from './Calendar';
|
|
3
|
+
export * from './Check';
|
|
4
|
+
export * from './Chevron';
|
|
5
|
+
export * from './ChevronDown';
|
|
6
|
+
export * from './ChevronLeft';
|
|
7
|
+
export * from './ChevronRight';
|
|
8
|
+
export * from './ChevronUp';
|
|
9
|
+
export * from './Close';
|
|
10
|
+
export * from './Endless';
|
|
11
|
+
export * from './Eye';
|
|
12
|
+
export * from './EyeOff';
|
|
13
|
+
export * from './HamburgerMenu';
|
|
14
|
+
export * from './Heart';
|
|
15
|
+
export * from './HeartFilled';
|
|
16
|
+
export * from './Logo';
|
|
17
|
+
export * from './Minus';
|
|
18
|
+
export * from './People';
|
|
19
|
+
export * from './Person';
|
|
20
|
+
export * from './Pin';
|
|
21
|
+
export * from './Plus';
|
|
22
|
+
export * from './Search';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImagePicker
|
|
3
|
+
* 이미지 업로드 및 미리보기를 위한 컴포넌트
|
|
4
|
+
*
|
|
5
|
+
* @param onChange 파일 선택 시 호출되는 콜백 함수(optional)
|
|
6
|
+
*
|
|
7
|
+
* @example 기본 사용
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <ImagePicker onChange={(e) => console.log(e.target.files)} />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function ImagePicker({ onChange, ...props }: React.ComponentPropsWithoutRef<'input'>): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImagePicker';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ImagePlaceholderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
logoSize?: 'sm' | 'md' | 'lg';
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* ImagePlaceholder
|
|
8
|
+
* 이미지가 없을 때 연한 primary 색상 배경에 로고를 보여주는 컴포넌트
|
|
9
|
+
*/
|
|
10
|
+
export declare function ImagePlaceholder({ className, logoSize, }: ImagePlaceholderProps): React.ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImagePlaceholder';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface InfoButtonProps {
|
|
3
|
+
/** 상단 작은 글씨 */
|
|
4
|
+
mainText: string;
|
|
5
|
+
/** 상단 큰 글씨 */
|
|
6
|
+
subText: string;
|
|
7
|
+
/** 왼쪽 하단에 표시할 이미지 URL 또는 import */
|
|
8
|
+
imageSrc: string;
|
|
9
|
+
/** 이미지 대체 텍스트 */
|
|
10
|
+
imageAlt?: string;
|
|
11
|
+
/** 그라데이션 시작 색상 (CSS color) */
|
|
12
|
+
gradientFrom: string;
|
|
13
|
+
/** 그라데이션 끝 색상 (CSS color) */
|
|
14
|
+
gradientTo: string;
|
|
15
|
+
/** 추가 Tailwind 클래스 */
|
|
16
|
+
className?: string;
|
|
17
|
+
onClick?(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function InfoButton({ mainText, subText, imageSrc, imageAlt, gradientFrom, gradientTo, onClick, className, }: InfoButtonProps): React.ReactElement;
|
|
20
|
+
export {};
|