@1d1s/design-system 0.2.12 → 0.2.14
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 +3 -1
- package/dist/components/AppHeader/AppHeader.stories.d.ts +1 -0
- package/dist/components/Calendar/Calendar.stories.d.ts +8 -0
- package/dist/components/RightSidebar/RightSidebar.d.ts +2 -1
- package/dist/index.es.js +2426 -2372
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
|
@@ -11,6 +11,8 @@ export interface AppHeaderProps {
|
|
|
11
11
|
activeKey?: string;
|
|
12
12
|
showProfile?: boolean;
|
|
13
13
|
profileImage?: string;
|
|
14
|
+
showBackButton?: boolean;
|
|
15
|
+
onBackClick?(): void;
|
|
14
16
|
className?: string;
|
|
15
17
|
onLogoClick?(): void;
|
|
16
18
|
onNavChange?(key: string): void;
|
|
@@ -21,4 +23,4 @@ export interface AppHeaderProps {
|
|
|
21
23
|
* AppHeader
|
|
22
24
|
* 로고, 주요 네비게이션, 우측 액션 아이콘을 포함한 상단 헤더 컴포넌트.
|
|
23
25
|
*/
|
|
24
|
-
export declare function AppHeader({ brandName, logo, navItems, activeKey, showProfile, profileImage, className, onLogoClick, onNavChange, onNotificationClick, onProfileClick, }: AppHeaderProps): React.ReactElement;
|
|
26
|
+
export declare function AppHeader({ brandName, logo, navItems, activeKey, showProfile, profileImage, showBackButton, onBackClick, className, onLogoClick, onNavChange, onNotificationClick, onProfileClick, }: AppHeaderProps): React.ReactElement;
|
|
@@ -5,3 +5,11 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof Calendar>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const Range: Story;
|
|
8
|
+
/** 오늘로부터 N일 이전/이후만 클릭 가능 */
|
|
9
|
+
export declare const DisabledOutsideRange: Story;
|
|
10
|
+
/** 오늘 이후 날짜만 클릭 가능 (과거 비활성화) */
|
|
11
|
+
export declare const DisabledPastDays: Story;
|
|
12
|
+
/** 오늘 이전 날짜만 클릭 가능 (미래 비활성화) */
|
|
13
|
+
export declare const DisabledFutureDays: Story;
|
|
14
|
+
/** 특정 날짜 범위만 클릭 가능 */
|
|
15
|
+
export declare const DisabledWithCustomMatcher: Story;
|
|
@@ -34,6 +34,7 @@ export interface RightSidebarProps {
|
|
|
34
34
|
onLogin?(): void;
|
|
35
35
|
onJoinChallenge?(): void;
|
|
36
36
|
onCreateChallenge?(): void;
|
|
37
|
+
onChallengeClick?(challenge: RightSidebarChallenge): void;
|
|
37
38
|
}
|
|
38
|
-
export declare function RightSidebar({ isLoggedIn, userName, userSubtitle, userImage, streakDays, fixed, collapsible, className, diaryButtonLabel, myPageButtonLabel, loginButtonLabel, loginPromptMessage, settingButtonLabel, challengeTitle, challenges, emptyChallengeMessage, joinChallengeButtonLabel, joinChallengeMaxUserCount, createChallengeButtonLabel, onCollapseClick, onOpenSettings, onWriteDiary, onGoMyPage, onLogin, onJoinChallenge, onCreateChallenge, }: RightSidebarProps): React.ReactElement;
|
|
39
|
+
export declare function RightSidebar({ isLoggedIn, userName, userSubtitle, userImage, streakDays, fixed, collapsible, className, diaryButtonLabel, myPageButtonLabel, loginButtonLabel, loginPromptMessage, settingButtonLabel, challengeTitle, challenges, emptyChallengeMessage, joinChallengeButtonLabel, joinChallengeMaxUserCount, createChallengeButtonLabel, onCollapseClick, onOpenSettings, onWriteDiary, onGoMyPage, onLogin, onJoinChallenge, onCreateChallenge, onChallengeClick, }: RightSidebarProps): React.ReactElement;
|
|
39
40
|
export {};
|