@1d1s/design-system 1.0.0 → 1.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.
Files changed (69) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +47 -0
  2. package/dist/components/Accordion/Accordion.stories.d.ts +8 -0
  3. package/dist/components/Accordion/index.d.ts +1 -0
  4. package/dist/components/AppHeader/AppHeader.d.ts +26 -0
  5. package/dist/components/AppHeader/AppHeader.stories.d.ts +9 -0
  6. package/dist/components/AppHeader/index.d.ts +1 -0
  7. package/dist/components/AvatarImagePicker/AvatarImagePicker.d.ts +24 -0
  8. package/dist/components/AvatarImagePicker/AvatarImagePicker.stories.d.ts +7 -0
  9. package/dist/components/AvatarImagePicker/index.d.ts +1 -0
  10. package/dist/components/BannerCarousel/BannerCarousel.d.ts +42 -0
  11. package/dist/components/BannerCarousel/BannerCarousel.stories.d.ts +10 -0
  12. package/dist/components/BannerCarousel/index.d.ts +1 -0
  13. package/dist/components/Button/Button.d.ts +2 -2
  14. package/dist/components/Calendar/Calendar.d.ts +4 -0
  15. package/dist/components/Calendar/Calendar.stories.d.ts +15 -0
  16. package/dist/components/Calendar/index.d.ts +1 -0
  17. package/dist/components/CheckContainer/CheckContainer.d.ts +17 -0
  18. package/dist/components/CheckContainer/CheckContainer.stories.d.ts +9 -0
  19. package/dist/components/CheckContainer/index.d.ts +1 -0
  20. package/dist/components/CheckList/CheckList.d.ts +37 -0
  21. package/dist/components/CheckList/CheckList.stories.d.ts +9 -0
  22. package/dist/components/CheckList/index.d.ts +1 -0
  23. package/dist/components/CommentThread/CommentThread.d.ts +31 -0
  24. package/dist/components/CommentThread/CommentThread.stories.d.ts +9 -0
  25. package/dist/components/CommentThread/index.d.ts +1 -0
  26. package/dist/components/DatePicker/DatePicker.d.ts +26 -0
  27. package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -0
  28. package/dist/components/DatePicker/index.d.ts +1 -0
  29. package/dist/components/Dialog/Dialog.d.ts +13 -0
  30. package/dist/components/Dialog/Dialog.stories.d.ts +9 -0
  31. package/dist/components/Dialog/index.d.ts +1 -0
  32. package/dist/components/GoalAddList/GoalAddList.d.ts +16 -0
  33. package/dist/components/GoalAddList/GoalAddList.stories.d.ts +7 -0
  34. package/dist/components/GoalAddList/index.d.ts +1 -0
  35. package/dist/components/ImagePicker/ImagePicker.d.ts +50 -0
  36. package/dist/components/ImagePicker/ImagePicker.stories.d.ts +8 -0
  37. package/dist/components/ImagePicker/index.d.ts +1 -0
  38. package/dist/components/ImagePlaceholder/ImagePlaceholder.d.ts +11 -0
  39. package/dist/components/ImagePlaceholder/index.d.ts +1 -0
  40. package/dist/components/PageWatermark/PageWatermark.d.ts +1 -0
  41. package/dist/components/PageWatermark/PageWatermark.stories.d.ts +6 -0
  42. package/dist/components/PageWatermark/index.d.ts +1 -0
  43. package/dist/components/RightSidebar/RightSidebar.d.ts +41 -0
  44. package/dist/components/RightSidebar/RightSidebar.stories.d.ts +14 -0
  45. package/dist/components/RightSidebar/index.d.ts +1 -0
  46. package/dist/components/ScheduleCalendar/ScheduleCalendar.d.ts +31 -0
  47. package/dist/components/ScheduleCalendar/ScheduleCalendar.stories.d.ts +10 -0
  48. package/dist/components/ScheduleCalendar/index.d.ts +1 -0
  49. package/dist/components/Select/Select.d.ts +53 -0
  50. package/dist/components/Select/index.d.ts +1 -0
  51. package/dist/components/StatCard/StatCard.d.ts +1 -1
  52. package/dist/components/StepIndicator/StepIndicator.d.ts +19 -0
  53. package/dist/components/StepIndicator/StepIndicator.stories.d.ts +10 -0
  54. package/dist/components/StepIndicator/index.d.ts +1 -0
  55. package/dist/components/Streak/Streak.d.ts +31 -0
  56. package/dist/components/Streak/index.d.ts +1 -0
  57. package/dist/components/Tag/Tag.d.ts +1 -1
  58. package/dist/components/Text/Text.d.ts +1 -1
  59. package/dist/components/TextField/TextField.d.ts +2 -2
  60. package/dist/components/ToggleGroup/ToggleGroup.d.ts +21 -0
  61. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +8 -0
  62. package/dist/components/ToggleGroup/index.d.ts +1 -0
  63. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  64. package/dist/components/Tooltip/Tooltip.stories.d.ts +7 -0
  65. package/dist/components/Tooltip/index.d.ts +1 -0
  66. package/dist/components/index.d.ts +20 -0
  67. package/dist/index.es.js +12497 -2658
  68. package/dist/index.umd.js +45 -1
  69. package/package.json +9 -1
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ type DayTone = "default" | "strong" | "accent" | "muted";
3
+ type BarTone = "main" | "soft";
4
+ export interface ScheduleCalendarBar {
5
+ width?: number | string;
6
+ tone?: BarTone;
7
+ }
8
+ export interface ScheduleCalendarCell {
9
+ id?: string;
10
+ day?: React.ReactNode;
11
+ dayTone?: DayTone;
12
+ title?: React.ReactNode;
13
+ subtitle?: React.ReactNode;
14
+ bars?: ScheduleCalendarBar[];
15
+ highlighted?: boolean;
16
+ muted?: boolean;
17
+ colSpan?: number;
18
+ content?: React.ReactNode;
19
+ }
20
+ export interface ScheduleCalendarProps {
21
+ rows: ScheduleCalendarCell[][];
22
+ weekLabels?: string[];
23
+ cellMinHeight?: number;
24
+ className?: string;
25
+ }
26
+ /**
27
+ * ScheduleCalendar
28
+ * 주 단위 표 형태로 일정을 보여주는 커스텀 캘린더 컴포넌트.
29
+ */
30
+ export declare function ScheduleCalendar({ rows, weekLabels, cellMinHeight, className, }: ScheduleCalendarProps): React.ReactElement;
31
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { ScheduleCalendar } from './ScheduleCalendar';
3
+ declare const meta: Meta<typeof ScheduleCalendar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ScheduleCalendar>;
6
+ export declare const OneMonth: Story;
7
+ export declare const TwoWeeks: Story;
8
+ export declare const ThreeWeeks: Story;
9
+ export declare const MobileOneMonth: Story;
10
+ export declare const MobileTwoWeeks: Story;
@@ -0,0 +1 @@
1
+ export * from './ScheduleCalendar';
@@ -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 './Select';
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const statCardVariants: (props?: ({
4
- tone?: "mint" | "blue" | "gray" | "brand" | "white" | null | undefined;
4
+ tone?: "mint" | "blue" | "gray" | "white" | "brand" | null | undefined;
5
5
  size?: "sm" | "md" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface StatCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof statCardVariants> {
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export interface StepIndicatorItem {
3
+ id?: string;
4
+ label: React.ReactNode;
5
+ }
6
+ type StepIndicatorSize = "sm" | "md" | "lg";
7
+ export interface StepIndicatorProps {
8
+ steps: StepIndicatorItem[];
9
+ /** 현재 단계 (1부터 시작) */
10
+ currentStep: number;
11
+ size?: StepIndicatorSize;
12
+ className?: string;
13
+ }
14
+ /**
15
+ * StepIndicator
16
+ * 단계 진행 상태를 가로 라인과 원형 포인트로 표시하는 컴포넌트.
17
+ */
18
+ export declare function StepIndicator({ steps, currentStep, size, className, }: StepIndicatorProps): React.ReactElement;
19
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { StepIndicator } from './StepIndicator';
3
+ declare const meta: Meta<typeof StepIndicator>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof StepIndicator>;
6
+ export declare const Default: Story;
7
+ export declare const Completed: Story;
8
+ export declare const FirstStep: Story;
9
+ export declare const Small: Story;
10
+ export declare const Large: Story;
@@ -0,0 +1 @@
1
+ export * from './StepIndicator';
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ export interface StreakData {
3
+ /** 날짜 (YYYY-MM-DD) */
4
+ date: string;
5
+ /** 활동 레벨 (0-4) */
6
+ count: number;
7
+ }
8
+ export interface StreakProps {
9
+ /** 활동 데이터 (count 0-4 권장, 데이터 개수에 따라 가로로 길어짐) */
10
+ data?: StreakData[];
11
+ /** 각 날짜 박스의 크기 (픽셀) */
12
+ size?: number;
13
+ /** 박스 사이 간격 (픽셀) */
14
+ gap?: number;
15
+ /** 추가 클래스 */
16
+ className?: string;
17
+ /**
18
+ * 셀 클릭 시 팝오버 하단에 렌더링할 액션 영역.
19
+ * 버튼, 링크 등 인터랙티브 요소를 넣을 수 있습니다.
20
+ */
21
+ renderCellActions?: (item: StreakData) => React.ReactNode;
22
+ }
23
+ /**
24
+ * Streak
25
+ * 활동 기록을 깃허브 잔디(Contribution Graph) 스타일로 보여주는 컴포넌트.
26
+ * 7행 그리드 구조로 요일별로 쌓이며 가로로 데이터가 추가됩니다.
27
+ *
28
+ * - 데스크탑: hover 시 날짜/활동 정보 팝오버 표시
29
+ * - 모바일: 클릭 시 테두리 + 정보 팝오버 표시, renderCellActions로 액션 영역 추가 가능
30
+ */
31
+ export declare function Streak({ data, size, gap, className, renderCellActions, }: StreakProps): React.ReactElement;
@@ -1,2 +1,3 @@
1
+ export * from './Streak';
1
2
  export * from './StreakChip';
2
3
  export * from './StreakHero';
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  declare const tagVariants: (props?: ({
3
- tone?: "mint" | "blue" | "green" | "gray" | "brand" | "red" | null | undefined;
3
+ tone?: "mint" | "blue" | "green" | "gray" | "red" | "brand" | null | undefined;
4
4
  size?: "sm" | "md" | "lg" | "xs" | null | undefined;
5
5
  pill?: boolean | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export declare const textVariants: (props?: ({
3
3
  size?: "display1" | "display2" | "heading1" | "heading2" | "body1" | "body2" | "caption1" | "caption2" | "caption3" | "pageTitle" | null | undefined;
4
- weight?: "bold" | "medium" | "light" | "extrabold" | "semibold" | "regular" | null | undefined;
4
+ weight?: "bold" | "extrabold" | "semibold" | "medium" | "regular" | "light" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  /**
7
7
  * Text
@@ -6,7 +6,7 @@ declare const fieldVariants: (props?: ({
6
6
  hasIconLeft?: boolean | null | undefined;
7
7
  hasSuffix?: boolean | null | undefined;
8
8
  multiline?: boolean | null | undefined;
9
- state?: "default" | "filled" | "disabled" | "error" | "focus" | null | undefined;
9
+ state?: "disabled" | "default" | "error" | "focus" | "filled" | null | undefined;
10
10
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
11
  export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof fieldVariants> {
12
12
  label?: React.ReactNode;
@@ -39,5 +39,5 @@ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInput
39
39
  * <TextField label="기간" defaultValue="14" suffix="일" size="sm" />
40
40
  * ```
41
41
  */
42
- export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLTextAreaElement | HTMLInputElement>>;
42
+ export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
43
43
  export {};
@@ -0,0 +1,21 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
3
+ declare const toggleGroupItemVariants: (props?: ({
4
+ shape?: "square" | "rounded" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ interface ToggleGroupItemProps extends React.ComponentProps<typeof ToggleGroupPrimitive.Item>, VariantProps<typeof toggleGroupItemVariants> {
7
+ icon?: React.ReactNode;
8
+ children: React.ReactNode;
9
+ className?: string;
10
+ }
11
+ /**
12
+ * ToggleGroup
13
+ * 토글 그룹 컴포넌트
14
+ */
15
+ export declare function ToggleGroup({ children, className, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root>): React.ReactElement;
16
+ /**
17
+ * ToggleGroupItem
18
+ * 토글 그룹 안에서 사용하는 카테고리형 아이템 컴포넌트.
19
+ */
20
+ export declare function ToggleGroupItem({ icon, shape, children, className, ...props }: ToggleGroupItemProps): React.ReactElement;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
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 SquareSingle: Story;
7
+ export declare const RoundedSingle: Story;
8
+ export declare const RoundedMultiple: Story;
@@ -0,0 +1 @@
1
+ export * from './ToggleGroup';
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.ReactElement;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare function TooltipContent({ className, sideOffset, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.ReactElement;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Tooltip } from './Tooltip';
3
+ declare const meta: Meta<typeof Tooltip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tooltip>;
6
+ export declare const Default: Story;
7
+ export declare const CustomSide: Story;
@@ -0,0 +1 @@
1
+ export * from './Tooltip';
@@ -1,21 +1,39 @@
1
+ export * from './Accordion';
1
2
  export * from './AchievementBadge';
3
+ export * from './AppHeader';
4
+ export * from './AvatarImagePicker';
2
5
  export * from './Banner';
6
+ export * from './BannerCarousel';
3
7
  export * from './BottomNav';
4
8
  export * from './Button';
9
+ export * from './Calendar';
5
10
  export * from './Card';
11
+ export * from './CheckContainer';
12
+ export * from './CheckList';
6
13
  export * from './Checkbox';
7
14
  export * from './CircleAvatar';
8
15
  export * from './CircularProgress';
9
16
  export * from './CommentRow';
17
+ export * from './CommentThread';
18
+ export * from './DatePicker';
19
+ export * from './Dialog';
10
20
  export * from './Dropdown';
21
+ export * from './GoalAddList';
11
22
  export * from './Heatmap';
12
23
  export { Icon } from './Icons/Icon';
13
24
  export type { IconName, IconProps } from './Icons/Icon';
25
+ export * from './ImagePicker';
26
+ export * from './ImagePlaceholder';
27
+ export * from './PageWatermark';
14
28
  export * from './ProgressBar';
15
29
  export * from './Radio';
30
+ export * from './RightSidebar';
31
+ export * from './ScheduleCalendar';
16
32
  export * from './SectionHeader';
33
+ export * from './Select';
17
34
  export * from './StatCard';
18
35
  export * from './StatusBadge';
36
+ export * from './StepIndicator';
19
37
  export * from './Streak';
20
38
  export * from './Stripe';
21
39
  export * from './Tabs';
@@ -23,4 +41,6 @@ export * from './Tag';
23
41
  export * from './Text';
24
42
  export * from './TextField';
25
43
  export * from './Toggle';
44
+ export * from './ToggleGroup';
45
+ export * from './Tooltip';
26
46
  export * from './TopNav';