@1d1s/design-system 0.2.3 → 0.2.4

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.
@@ -13,6 +13,8 @@ export interface CheckListProps {
13
13
  onValueChange: (value: string[]) => void;
14
14
  /** 추가 클래스 */
15
15
  className?: string;
16
+ /** 읽기 전용 여부 (시각 변화 없이 토글만 비활성화) */
17
+ readOnly?: boolean;
16
18
  /** 전체 비활성화 여부 */
17
19
  disabled?: boolean;
18
20
  }
@@ -32,4 +34,4 @@ export interface CheckListProps {
32
34
  * />
33
35
  * ```
34
36
  */
35
- export declare function CheckList({ options, value, onValueChange, className, disabled, }: CheckListProps): React.ReactElement;
37
+ export declare function CheckList({ options, value, onValueChange, className, readOnly, disabled, }: CheckListProps): React.ReactElement;
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof CheckList>;
6
6
  export declare const Default: Story;
7
7
  export declare const Empty: Story;
8
8
  export declare const Disabled: Story;
9
+ export declare const ReadOnly: Story;
@@ -4,14 +4,17 @@ export interface DiaryCardProps {
4
4
  imageUrl?: string;
5
5
  percent: number;
6
6
  likes: number;
7
+ isLiked?: boolean;
8
+ defaultLiked?: boolean;
9
+ onLikeToggle?(nextLiked: boolean): void;
7
10
  title: string;
8
11
  user: string;
9
12
  userImage?: string;
10
13
  challengeLabel: string;
11
- challengeUrl: string;
14
+ onChallengeClick?(): void;
12
15
  date: string;
13
16
  emotion: Emotion;
14
17
  onClick?(): void;
15
18
  }
16
- export declare function DiaryCard({ imageUrl, percent, likes, title, user, userImage, challengeLabel, challengeUrl, date, emotion, onClick, }: DiaryCardProps): React.ReactElement;
19
+ export declare function DiaryCard({ imageUrl, percent, likes, isLiked: isLikedProp, defaultLiked, onLikeToggle, title, user, userImage, challengeLabel, onChallengeClick, date, emotion, onClick, }: DiaryCardProps): React.ReactElement;
17
20
  export {};
@@ -4,3 +4,4 @@ declare const meta: Meta<typeof DiaryCard>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof DiaryCard>;
6
6
  export declare const Default: Story;
7
+ export declare const ControlledLike: Story;
@@ -22,11 +22,16 @@ export interface RightSidebarProps {
22
22
  settingButtonLabel?: string;
23
23
  challengeTitle?: string;
24
24
  challenges?: RightSidebarChallenge[];
25
+ emptyChallengeMessage?: string;
26
+ joinChallengeButtonLabel?: string;
27
+ createChallengeButtonLabel?: string;
25
28
  onCollapseClick?(): void;
26
29
  onOpenSettings?(): void;
27
30
  onWriteDiary?(): void;
28
31
  onGoMyPage?(): void;
29
32
  onLogin?(): void;
33
+ onJoinChallenge?(): void;
34
+ onCreateChallenge?(): void;
30
35
  }
31
- export declare function RightSidebar({ isLoggedIn, userName, userHandle, userImage, streakDays, fixed, className, diaryButtonLabel, myPageButtonLabel, loginButtonLabel, loginPromptMessage, settingButtonLabel, challengeTitle, challenges, onCollapseClick, onOpenSettings, onWriteDiary, onGoMyPage, onLogin, }: RightSidebarProps): React.ReactElement;
36
+ export declare function RightSidebar({ isLoggedIn, userName, userHandle, userImage, streakDays, fixed, className, diaryButtonLabel, myPageButtonLabel, loginButtonLabel, loginPromptMessage, settingButtonLabel, challengeTitle, challenges, emptyChallengeMessage, joinChallengeButtonLabel, createChallengeButtonLabel, onCollapseClick, onOpenSettings, onWriteDiary, onGoMyPage, onLogin, onJoinChallenge, onCreateChallenge, }: RightSidebarProps): React.ReactElement;
32
37
  export {};
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof RightSidebar>;
6
6
  export declare const Default: Story;
7
7
  export declare const LoggedOut: Story;
8
+ export declare const EmptyChallenges: Story;