@1d1s/design-system 0.2.0 → 0.2.1
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/components/AppHeader/AppHeader.d.ts +2 -2
- package/dist/components/AppHeader/AppHeader.stories.d.ts +2 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +1 -0
- package/dist/components/Icons/Check.d.ts +1 -1
- package/dist/components/Icons/Dumbbell.d.ts +2 -0
- package/dist/components/Icons/Flag.d.ts +2 -0
- package/dist/components/Icons/Flame.d.ts +2 -0
- package/dist/components/Icons/Icon.d.ts +43 -0
- package/dist/components/Icons/Laptop.d.ts +2 -0
- package/dist/components/Icons/Target.d.ts +2 -0
- package/dist/components/Icons/Trophy.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +7 -6
- package/dist/components/ProgressBar/ProgressBar.d.ts +21 -0
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +11 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/RightSidebar/RightSidebar.d.ts +2 -2
- package/dist/components/StatContainer/StatContainer.d.ts +4 -2
- package/dist/components/UserListItem/UserListItem.d.ts +3 -3
- package/dist/components/index.d.ts +3 -5
- package/dist/index.es.js +3551 -3325
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
- package/dist/components/Footer/Footer.d.ts +0 -8
- package/dist/components/Footer/Footer.stories.d.ts +0 -6
- package/dist/components/Footer/index.d.ts +0 -1
- package/dist/components/Icons/ChallengeDumbbell.d.ts +0 -2
- package/dist/components/Icons/ChallengeFlag.d.ts +0 -2
- package/dist/components/Icons/ChallengeFlame.d.ts +0 -2
- package/dist/components/Icons/ChallengeLaptop.d.ts +0 -2
- package/dist/components/Icons/ChallengeTarget.d.ts +0 -2
- package/dist/components/Icons/ChallengeTrophy.d.ts +0 -2
- package/dist/components/PageBackground/PageBackground.d.ts +0 -15
- package/dist/components/PageBackground/PageBackground.stories.d.ts +0 -6
- package/dist/components/PageBackground/index.d.ts +0 -1
- package/dist/components/PageTitle/PageTitle.d.ts +0 -29
- package/dist/components/PageTitle/PageTitle.stories.d.ts +0 -7
- package/dist/components/PageTitle/index.d.ts +0 -1
- package/dist/components/Spacing/Spacing.d.ts +0 -12
- package/dist/components/Spacing/Spacing.stories.d.ts +0 -6
- package/dist/components/Spacing/index.d.ts +0 -1
- package/dist/components/ToggleCheck/ToggleCheck.d.ts +0 -15
- package/dist/components/ToggleCheck/ToggleCheck.stories.d.ts +0 -7
- package/dist/components/ToggleCheck/index.d.ts +0 -1
|
@@ -9,11 +9,11 @@ export interface AppHeaderProps {
|
|
|
9
9
|
logo?: React.ReactNode;
|
|
10
10
|
navItems?: AppHeaderNavItem[];
|
|
11
11
|
activeKey?: string;
|
|
12
|
+
showProfile?: boolean;
|
|
12
13
|
profileImage?: string;
|
|
13
14
|
className?: string;
|
|
14
15
|
onLogoClick?(): void;
|
|
15
16
|
onNavChange?(key: string): void;
|
|
16
|
-
onSearchClick?(): void;
|
|
17
17
|
onNotificationClick?(): void;
|
|
18
18
|
onProfileClick?(): void;
|
|
19
19
|
}
|
|
@@ -21,4 +21,4 @@ export interface AppHeaderProps {
|
|
|
21
21
|
* AppHeader
|
|
22
22
|
* 로고, 주요 네비게이션, 우측 액션 아이콘을 포함한 상단 헤더 컴포넌트.
|
|
23
23
|
*/
|
|
24
|
-
export declare function AppHeader({ brandName, logo, navItems, activeKey, profileImage, className, onLogoClick, onNavChange,
|
|
24
|
+
export declare function AppHeader({ brandName, logo, navItems, activeKey, showProfile, profileImage, className, onLogoClick, onNavChange, onNotificationClick, onProfileClick, }: AppHeaderProps): React.ReactElement;
|
|
@@ -3,4 +3,5 @@ import { AppHeader } from './AppHeader';
|
|
|
3
3
|
declare const meta: Meta<typeof AppHeader>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof AppHeader>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const WithProfile: Story;
|
|
7
|
+
export declare const WithoutProfile: Story;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export declare const Check: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Check: ({ strokeWidth, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const iconComponents: {
|
|
3
|
+
readonly AddCircle: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
readonly Calendar: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
readonly Check: ({ strokeWidth, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
readonly Chevron: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
readonly ChevronDown: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
readonly ChevronLeft: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
readonly ChevronRight: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
readonly ChevronUp: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
readonly Close: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
readonly Dumbbell: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
readonly Endless: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
readonly Eye: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
readonly EyeOff: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
readonly Flag: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
readonly Flame: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
readonly HamburgerMenu: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
readonly Heart: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
readonly HeartFilled: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
readonly Laptop: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
readonly Logo: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
readonly Minus: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
readonly People: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
readonly Person: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
readonly Pin: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
readonly Plus: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
readonly Search: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
readonly Target: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
readonly Trophy: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
export type IconName = keyof typeof iconComponents;
|
|
33
|
+
export declare const ICON_NAMES: IconName[];
|
|
34
|
+
export interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, "name"> {
|
|
35
|
+
name: IconName;
|
|
36
|
+
size?: number | string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Icon
|
|
40
|
+
* name 기반으로 프로젝트 아이콘을 렌더링하는 공통 아이콘 컴포넌트.
|
|
41
|
+
*/
|
|
42
|
+
export declare function Icon({ name, size, width, height, ...props }: IconProps): React.ReactElement;
|
|
43
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export * from './AddCircle';
|
|
2
2
|
export * from './Calendar';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
3
|
+
export * from './Dumbbell';
|
|
4
|
+
export * from './Flag';
|
|
5
|
+
export * from './Flame';
|
|
6
|
+
export * from './Icon';
|
|
7
|
+
export * from './Laptop';
|
|
8
|
+
export * from './Target';
|
|
9
|
+
export * from './Trophy';
|
|
9
10
|
export * from './Check';
|
|
10
11
|
export * from './Chevron';
|
|
11
12
|
export * from './ChevronDown';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3
|
+
value: number;
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
showLabel?: boolean;
|
|
6
|
+
showValueText?: boolean;
|
|
7
|
+
valueText?: React.ReactNode;
|
|
8
|
+
infinite?: boolean;
|
|
9
|
+
thickness?: number;
|
|
10
|
+
fillColor?: string;
|
|
11
|
+
trackColor?: string;
|
|
12
|
+
labelClassName?: string;
|
|
13
|
+
valueClassName?: string;
|
|
14
|
+
trackClassName?: string;
|
|
15
|
+
fillClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* ProgressBar
|
|
19
|
+
* 라벨/퍼센트 텍스트/두께/색상을 유연하게 제어할 수 있는 진행률 바 컴포넌트.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ProgressBar({ value, label, showLabel, showValueText, valueText, infinite, thickness, fillColor, trackColor, className, labelClassName, valueClassName, trackClassName, fillClassName, ...props }: ProgressBarProps): React.ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ProgressBar } from './ProgressBar';
|
|
3
|
+
declare const meta: Meta<typeof ProgressBar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ProgressBar>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithoutLabel: Story;
|
|
8
|
+
export declare const WithoutValueText: Story;
|
|
9
|
+
export declare const CustomThickness: Story;
|
|
10
|
+
export declare const CustomColor: Story;
|
|
11
|
+
export declare const Infinite: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProgressBar';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
type
|
|
2
|
+
type RightSidebarProgressTone = "blue" | "green" | "orange";
|
|
3
3
|
export interface RightSidebarChallenge {
|
|
4
4
|
id: string;
|
|
5
5
|
title: string;
|
|
6
6
|
progress: number;
|
|
7
7
|
hasDeadline?: boolean;
|
|
8
|
-
tone?:
|
|
8
|
+
tone?: RightSidebarProgressTone;
|
|
9
9
|
}
|
|
10
10
|
export interface RightSidebarProps {
|
|
11
11
|
userName: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IconName } from '../Icons/Icon';
|
|
2
3
|
export interface StatContainerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
-
icon
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
iconName?: IconName;
|
|
4
6
|
title: React.ReactNode;
|
|
5
7
|
value: React.ReactNode;
|
|
6
8
|
unit: React.ReactNode;
|
|
@@ -10,4 +12,4 @@ export interface StatContainerProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
10
12
|
* StatContainer
|
|
11
13
|
* 아이콘, 제목, 데이터, 단위를 표시하는 정보 카드 컴포넌트
|
|
12
14
|
*/
|
|
13
|
-
export declare function StatContainer({ icon, title, value, unit, className, iconClassName, ...props }: StatContainerProps): React.ReactElement;
|
|
15
|
+
export declare function StatContainer({ icon, iconName, title, value, unit, className, iconClassName, ...props }: StatContainerProps): React.ReactElement;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
interface UserListItemProps {
|
|
1
|
+
export interface UserListItemProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
userName: string;
|
|
4
4
|
userImageSrc?: string;
|
|
5
|
+
timeLabel?: string;
|
|
5
6
|
isAuthor: boolean;
|
|
6
7
|
onAccept?(): void;
|
|
7
8
|
onReject?(): void;
|
|
8
9
|
}
|
|
9
|
-
export declare function UserListItem({ className, userName, userImageSrc, isAuthor, onAccept, onReject, }: UserListItemProps): React.ReactElement;
|
|
10
|
-
export {};
|
|
10
|
+
export declare function UserListItem({ className, userName, userImageSrc, timeLabel, isAuthor, onAccept, onReject, }: UserListItemProps): React.ReactElement;
|
|
@@ -12,26 +12,24 @@ export * from './DatePicker';
|
|
|
12
12
|
export * from './Dialog';
|
|
13
13
|
export * from './DiaryCard';
|
|
14
14
|
export * from './Dropdown';
|
|
15
|
-
export
|
|
15
|
+
export { Icon } from './Icons/Icon';
|
|
16
|
+
export type { IconName, IconProps } from './Icons/Icon';
|
|
16
17
|
export * from './ImagePlaceholder';
|
|
17
18
|
export * from './ImagePicker';
|
|
18
19
|
export * from './InfoButton';
|
|
19
20
|
export * from './Text';
|
|
20
|
-
export * from './PageBackground';
|
|
21
|
-
export * from './PageTitle';
|
|
22
21
|
export * from './PageWatermark';
|
|
23
22
|
export * from './Pagination';
|
|
23
|
+
export * from './ProgressBar';
|
|
24
24
|
export * from './ProfileCard';
|
|
25
25
|
export * from './RightSidebar';
|
|
26
26
|
export * from './ScheduleCalendar';
|
|
27
|
-
export * from './Spacing';
|
|
28
27
|
export * from './StatContainer';
|
|
29
28
|
export * from './StepIndicator';
|
|
30
29
|
export * from './Streak';
|
|
31
30
|
export * from './Tag';
|
|
32
31
|
export * from './TextField';
|
|
33
32
|
export * from './Toggle';
|
|
34
|
-
export * from './ToggleCheck';
|
|
35
33
|
export * from './ToggleGroup';
|
|
36
34
|
export * from './Tooltip';
|
|
37
35
|
export * from './UserListItem';
|