sellmate-design-system-react 3.0.0 → 3.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 (75) hide show
  1. package/AGENTS.md +661 -0
  2. package/README.md +85 -0
  3. package/dist/components/SActionModal/README.md +41 -0
  4. package/dist/components/SBadge/README.md +25 -0
  5. package/dist/components/SBarcodeInput/README.md +64 -0
  6. package/dist/components/SButton/README.md +49 -0
  7. package/dist/components/SCalendar/README.md +42 -0
  8. package/dist/components/SCallout/README.md +29 -0
  9. package/dist/components/SCard/README.md +12 -0
  10. package/dist/components/SCheckbox/README.md +44 -0
  11. package/dist/components/SChip/README.md +57 -0
  12. package/dist/components/SChipInput/README.md +77 -0
  13. package/dist/components/SCircleProgress/README.md +35 -0
  14. package/dist/components/SConfirmModal/README.md +61 -0
  15. package/dist/components/SDatePicker/README.md +62 -0
  16. package/dist/components/SDateRangePicker/README.md +64 -0
  17. package/dist/components/SDivider/README.md +25 -0
  18. package/dist/components/SDraggableItem/README.md +40 -0
  19. package/dist/components/SDropdownButton/README.md +50 -0
  20. package/dist/components/SExpansionItem/README.md +40 -0
  21. package/dist/components/SField/README.md +91 -0
  22. package/dist/components/SFilePicker/README.md +72 -0
  23. package/dist/components/SForm/README.md +31 -0
  24. package/dist/components/SGhostButton/README.md +76 -0
  25. package/dist/components/SGnb/README.md +56 -0
  26. package/dist/components/SGuide/README.md +34 -0
  27. package/dist/components/SIcon/README.md +91 -0
  28. package/dist/components/SInput/README.md +66 -0
  29. package/dist/components/SKeyValueTable/README.md +59 -0
  30. package/dist/components/SLayout/README.md +42 -0
  31. package/dist/components/SLinearProgress/README.md +17 -0
  32. package/dist/components/SList/README.md +14 -0
  33. package/dist/components/SListItem/README.md +19 -0
  34. package/dist/components/SLoadingContainer/README.md +29 -0
  35. package/dist/components/SLoadingModal/README.md +52 -0
  36. package/dist/components/SModal/README.md +192 -0
  37. package/dist/components/SModalContainer/README.md +49 -0
  38. package/dist/components/SNumberInput/README.md +74 -0
  39. package/dist/components/SPage/README.md +25 -0
  40. package/dist/components/SPagination/README.md +40 -0
  41. package/dist/components/SPopover/README.md +54 -0
  42. package/dist/components/SPopup/README.md +38 -0
  43. package/dist/components/SPortal/README.md +51 -0
  44. package/dist/components/SRadio/README.md +57 -0
  45. package/dist/components/SRadioButton/README.md +24 -0
  46. package/dist/components/SScrollArea/README.md +16 -0
  47. package/dist/components/SSectionHeaderCard/README.md +51 -0
  48. package/dist/components/SSelect/README.md +79 -0
  49. package/dist/components/SStepper/README.md +30 -0
  50. package/dist/components/SSwitch/README.md +24 -0
  51. package/dist/components/STable/README.md +82 -0
  52. package/dist/components/STableBar/README.md +28 -0
  53. package/dist/components/STabs/README.md +37 -0
  54. package/dist/components/STag/README.md +44 -0
  55. package/dist/components/STextLink/README.md +48 -0
  56. package/dist/components/STextarea/README.md +60 -0
  57. package/dist/components/STimePicker/README.md +65 -0
  58. package/dist/components/STimeRangePicker/README.md +63 -0
  59. package/dist/components/SToast/README.md +70 -0
  60. package/dist/components/SToggle/README.md +22 -0
  61. package/dist/components/STooltip/README.md +57 -0
  62. package/dist/llms.txt +3496 -0
  63. package/dist/styles.css +209 -0
  64. package/dist/theme.css +8 -0
  65. package/eslint/index.mjs +66 -0
  66. package/eslint/lib/class-names.mjs +119 -0
  67. package/eslint/lib/table-column.mjs +53 -0
  68. package/eslint/rules/no-arbitrary-class.mjs +91 -0
  69. package/eslint/rules/no-off-scale-spacing.mjs +67 -0
  70. package/eslint/rules/no-raw-html-control.mjs +117 -0
  71. package/eslint/rules/prefer-typo-preset.mjs +73 -0
  72. package/eslint/rules/require-locale-number.mjs +78 -0
  73. package/eslint/rules/table-numeric-align.mjs +93 -0
  74. package/eslint/scale.gen.mjs +16 -0
  75. package/package.json +9 -4
@@ -0,0 +1,62 @@
1
+ # SDatePicker
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SDatePicker
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `value?` | `string \| null` | — | 선택 날짜 (YYYY-MM-DD) |
12
+ | `size?` | `SDatePickerSize` | `'sm'` | |
13
+ | `placeholder?` | `string` | `'YYYY-MM-DD'` | |
14
+ | `selectable?` | `[string, string]` | — | 선택 가능 범위 [시작, 종료] |
15
+ | `disabled?` | `boolean` | `false` | |
16
+ | `width?` | `number \| string` | — | |
17
+ | `name?` | `string` | — | |
18
+ | `rules?` | `Rule[]` | — | |
19
+ | `status?` | `SFieldStatus` | — | |
20
+ | `label?` | `string` | — | |
21
+ | `labelWidth?` | `number \| string` | — | |
22
+ | `icon?` | `SIconName` | — | |
23
+ | `iconColor?` | `SColor` | — | |
24
+ | `labelTooltip?` | `string` | — | |
25
+ | `labelTooltipProps?` | `Partial<STooltipProps>` | — | |
26
+ | `addonLabel?` | `string` | — | |
27
+ | `addonAlign?` | `SFieldAddonAlign` | — | |
28
+ | `hint?` | `string` | — | |
29
+ | `error?` | `boolean` | — | |
30
+ | `errorMessage?` | `string` | — | |
31
+ | `className?` | `string` | — | |
32
+ | `style?` | `CSSProperties` | — | |
33
+
34
+ #### Events
35
+
36
+ | Event | Type | Description |
37
+ |-------|------|-------------|
38
+ | `onValueChange` | `(date: string) => void` | 선택 변경 (sdUpdate) |
39
+ | `onViewChange` | `(view: { year: number; month: number }) => void` | 보이는 연·월 변경 (sdViewChange) |
40
+
41
+ ## Dependencies
42
+
43
+ ### Used by
44
+
45
+ - [SKeyValueTable](../SKeyValueTable)
46
+
47
+ ### Depends on
48
+
49
+ - [SCalendar](../SCalendar)
50
+ - [SField](../SField)
51
+ - [SIcon](../SIcon)
52
+
53
+ ### Graph
54
+
55
+ ```mermaid
56
+ graph TD;
57
+ SDatePicker --> SCalendar
58
+ SDatePicker --> SField
59
+ SDatePicker --> SIcon
60
+ SKeyValueTable --> SDatePicker
61
+ style SDatePicker fill:#f9f,stroke:#333,stroke-width:4px
62
+ ```
@@ -0,0 +1,64 @@
1
+ # SDateRangePicker
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SDateRangePicker
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `value?` | `SDateRangeValue` | — | |
12
+ | `size?` | `SDateRangePickerSize` | `'sm'` | |
13
+ | `placeholder?` | `string` | `'YYYY-MM-DD ~ YYYY-MM-DD'` | |
14
+ | `selectable?` | `[string, string]` | — | |
15
+ | `maxRange?` | `number` | — | 최대 선택 일수 |
16
+ | `useTimePicker?` | `boolean` | `false` | 시간(시:분) 선택 푸터 사용 여부. true이면 value는 "YYYY-MM-DD HH:mm" 형식이 되고, 캘린더 하단에 시작·종료 시간 입력이 표시된다. |
17
+ | `disabled?` | `boolean` | `false` | |
18
+ | `width?` | `number \| string` | — | |
19
+ | `name?` | `string` | — | |
20
+ | `rules?` | `Rule[]` | — | |
21
+ | `status?` | `SFieldStatus` | — | |
22
+ | `label?` | `string` | — | |
23
+ | `labelWidth?` | `number \| string` | — | |
24
+ | `icon?` | `SIconName` | — | |
25
+ | `iconColor?` | `SColor` | — | |
26
+ | `labelTooltip?` | `string` | — | |
27
+ | `labelTooltipProps?` | `Partial<STooltipProps>` | — | |
28
+ | `addonLabel?` | `string` | — | |
29
+ | `addonAlign?` | `SFieldAddonAlign` | — | |
30
+ | `hint?` | `string` | — | |
31
+ | `error?` | `boolean` | — | |
32
+ | `errorMessage?` | `string` | — | |
33
+ | `className?` | `string` | — | |
34
+ | `style?` | `CSSProperties` | — | |
35
+
36
+ #### Events
37
+
38
+ | Event | Type | Description |
39
+ |-------|------|-------------|
40
+ | `onValueChange` | `(range: SDateRangeValue) => void` | 선택 변경 (sdUpdate) — [start, end] |
41
+ | `onViewChange` | `(view: { year: number; month: number }) => void` | 보이는 연·월 변경 (sdViewChange) |
42
+
43
+ ## Dependencies
44
+
45
+ ### Used by
46
+
47
+ - [SKeyValueTable](../SKeyValueTable)
48
+
49
+ ### Depends on
50
+
51
+ - [SField](../SField)
52
+ - [SGhostButton](../SGhostButton)
53
+ - [SIcon](../SIcon)
54
+
55
+ ### Graph
56
+
57
+ ```mermaid
58
+ graph TD;
59
+ SDateRangePicker --> SField
60
+ SDateRangePicker --> SGhostButton
61
+ SDateRangePicker --> SIcon
62
+ SKeyValueTable --> SDateRangePicker
63
+ style SDateRangePicker fill:#f9f,stroke:#333,stroke-width:4px
64
+ ```
@@ -0,0 +1,25 @@
1
+ # SDivider
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SDivider
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `vertical?` | `boolean` | `false` | true면 수직 분할선, false면 수평 분할선 |
12
+
13
+ ## Dependencies
14
+
15
+ ### Used by
16
+
17
+ - [STableBar](../STableBar)
18
+
19
+ ### Graph
20
+
21
+ ```mermaid
22
+ graph TD;
23
+ STableBar --> SDivider
24
+ style SDivider fill:#f9f,stroke:#333,stroke-width:4px
25
+ ```
@@ -0,0 +1,40 @@
1
+ # SDraggableItem
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SDraggableItem
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `title` | `SDraggableItemSlot` | — | 드래그 아이템 제목 |
12
+ | `trailing?` | `SDraggableItemSlot` | — | 타이틀 뒤에 표시할 태그/콘텐츠 |
13
+ | `accentStripe?` | `boolean` | `false` | 아이템 왼쪽 accent stripe 표시 여부 |
14
+ | `bordered?` | `boolean` | `false` | 외곽 테두리 사용 여부 |
15
+ | `selected?` | `boolean` | `false` | 선택 상태 여부 |
16
+ | `dense?` | `boolean` | `false` | 조밀한 높이 사용 여부 |
17
+ | `disabled?` | `boolean` | `false` | 비활성 상태 여부 |
18
+ | `dragOverlay?` | `boolean` | `true` | 드래그 시 마우스를 따라가는 overlay 표시 여부 |
19
+ | `dragOverlayOpacity?` | `number` | `0.75` | 드래그 overlay 투명도 |
20
+ | `dragHandleProps?` | `HTMLAttributes<HTMLDivElement>` | — | 드래그 핸들에 전달할 속성 |
21
+
22
+ #### Events
23
+
24
+ | Event | Type | Description |
25
+ |-------|------|-------------|
26
+ | `onDragHandleMouseDown` | `(event: MouseEvent<HTMLDivElement>) => void` | 드래그 핸들 mouse down 이벤트 |
27
+
28
+ ## Dependencies
29
+
30
+ ### Depends on
31
+
32
+ - [SIcon](../SIcon)
33
+
34
+ ### Graph
35
+
36
+ ```mermaid
37
+ graph TD;
38
+ SDraggableItem --> SIcon
39
+ style SDraggableItem fill:#f9f,stroke:#333,stroke-width:4px
40
+ ```
@@ -0,0 +1,50 @@
1
+ # SDropdownButton
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SDropdownButton
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `color?` | `SButtonColor` | `'primary'` | 버튼 색상 |
12
+ | `outline?` | `boolean` | `false` | 아웃라인(테두리) 스타일 |
13
+ | `size?` | `SDropdownButtonSize` | `'sm'` | 크기 (lg 미지원) |
14
+ | `label?` | `string` | `''` | 버튼 레이블 |
15
+ | `items?` | `SDropdownButtonItem[]` | `[]` | 메뉴 아이템 목록 |
16
+ | `split?` | `boolean` | `false` | split 모드 — 레이블 버튼과 토글 분리 |
17
+ | `disabled?` | `boolean` | `false` | 비활성 |
18
+ | `className?` | `string` | — | |
19
+ | `style?` | `CSSProperties` | — | |
20
+
21
+ #### Events
22
+
23
+ | Event | Type | Description |
24
+ |-------|------|-------------|
25
+ | `onItemClick` | `(value: string \| number) => void` | 메뉴 아이템 선택 (sdClick) |
26
+ | `onLabelClick` | `() => void` | split 레이블 버튼 클릭 (sdButtonClick) |
27
+ | `onOpenChange` | `(open: boolean) => void` | 열림/닫힘 변경 (sdDropDownShow) |
28
+
29
+ #### Methods (ref)
30
+
31
+ | Method | Type | Description |
32
+ |--------|------|-------------|
33
+ | `open` | `() => void` | 드롭다운 열기 (sdOpen) |
34
+ | `close` | `() => void` | 드롭다운 닫기 (sdClose) |
35
+
36
+ ## Dependencies
37
+
38
+ ### Depends on
39
+
40
+ - [SButton](../SButton)
41
+ - [SIcon](../SIcon)
42
+
43
+ ### Graph
44
+
45
+ ```mermaid
46
+ graph TD;
47
+ SDropdownButton --> SButton
48
+ SDropdownButton --> SIcon
49
+ style SDropdownButton fill:#f9f,stroke:#333,stroke-width:4px
50
+ ```
@@ -0,0 +1,40 @@
1
+ # SExpansionItem
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SExpansionItem
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `title` | `ReactNode` | — | |
12
+ | `depth?` | `1 \| 2 \| 3` | `1` | 중첩 단계. Figma 기준 1~3단계 |
13
+ | `leading?` | `ReactNode \| SExpansionItemRenderProp` | — | 타이틀 앞에 표시할 아이콘/콘텐츠 |
14
+ | `trailing?` | `ReactNode` | — | 타이틀 뒤에 표시할 태그/콘텐츠 |
15
+ | `bodyPadding?` | `boolean` | `true` | body 내부 패딩 사용 여부 |
16
+ | `bordered?` | `boolean` | `false` | 외곽 테두리 사용 여부 |
17
+ | `expanded?` | `boolean` | — | |
18
+ | `defaultExpanded?` | `boolean` | `false` | |
19
+ | `dense?` | `boolean` | `false` | |
20
+ | `disabled?` | `boolean` | `false` | |
21
+
22
+ #### Events
23
+
24
+ | Event | Type | Description |
25
+ |-------|------|-------------|
26
+ | `onToggle` | `(expanded: boolean, event: MouseEvent<HTMLButtonElement>) => void` | |
27
+
28
+ ## Dependencies
29
+
30
+ ### Depends on
31
+
32
+ - [SIcon](../SIcon)
33
+
34
+ ### Graph
35
+
36
+ ```mermaid
37
+ graph TD;
38
+ SExpansionItem --> SIcon
39
+ style SExpansionItem fill:#f9f,stroke:#333,stroke-width:4px
40
+ ```
@@ -0,0 +1,91 @@
1
+ # SField
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SField
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `name?` | `string` | — | 폼 연동용 name 속성 |
12
+ | `label?` | `string` | `''` | 레이블 텍스트 |
13
+ | `icon?` | `SIconName` | — | 레이블 영역 아이콘명 (크기는 size 토큰 16px 고정) |
14
+ | `iconColor?` | `SColor` | — | 레이블 영역 아이콘 색상. 미지정 시 currentColor 상속 |
15
+ | `labelTooltip?` | `string` | `''` | 레이블 툴팁 텍스트 |
16
+ | `labelTooltipProps?` | `Partial<STooltipProps>` | — | 레이블 툴팁 상세 옵션 (SdTooltipProps 대응) |
17
+ | `labelWidth?` | `number \| string` | — | 레이블/어드온 레이블 너비 (숫자=px). label·addonLabel 폭에 공통 적용 |
18
+ | `labelHeight?` | `number \| string` | — | 레이블 박스 높이 (숫자=px). 미지정 시 size별 기본값 사용. 컨트롤 박스가 기본 필드 높이보다 큰 경우(multiline 등) 첫 행에 세로 중앙 정렬을 맞추기 위해 컨트롤 박스 높이를 넘겨받는다. |
19
+ | `size?` | `SFieldSize` | `'sm'` | 필드 크기 |
20
+ | `addonLabel?` | `string` | `''` | 우측 어드온 레이블 |
21
+ | `addonAlign?` | `SFieldAddonAlign` | `'start'` | 어드온 정렬 |
22
+ | `error?` | `boolean` | `false` | 에러 상태 |
23
+ | `errorMessage?` | `string` | `''` | 에러 메시지 |
24
+ | `status?` | `SFieldStatus` | — | 필드 상태 — 'error' | 'pass' | 'default'. 'pass'면 초록 테두리 |
25
+ | `focused?` | `boolean` | `false` | 포커스 상태 (제어/반영) |
26
+ | `hovered?` | `boolean` | `false` | 호버 상태 (제어/반영) |
27
+ | `rules?` | `Rule[]` | — | 유효성 규칙 (검증은 컨트롤에서 수행, API 패리티) |
28
+ | `hint?` | `string` | `''` | 하단 힌트 |
29
+ | `disabled?` | `boolean` | `false` | 비활성 |
30
+ | `readOnly?` | `boolean` | `false` | 읽기 전용 (회색 배경) |
31
+ | `width?` | `number \| string` | — | 컨트롤 너비 (숫자=px). 지정하면 필드가 부모 폭을 다 먹지 않고 (레이블 + width) 만큼만 차지한다. 다른 요소와 나란히 놓으려면 부모를 flex 로 두면 된다. |
32
+ | `minWidth?` | `number \| string` | — | 컨트롤 최소 너비 (숫자=px). 하한선만 지정하며 필드는 계속 부모 폭을 채운다 |
33
+ | `multiline?` | `boolean` | `false` | 멀티라인(textarea) — 컨트롤 높이를 고정하지 않고 min-height만 적용 |
34
+ | `borderless?` | `boolean` | `false` | 테두리 박스 제거 (inline 컨트롤용) — border/배경/hover·focus 강조만 사라지고 label·hint·errorMessage 등 나머지 필드 구성은 그대로 동작한다. |
35
+ | `children?` | `ReactNode` | — | 실제 컨트롤 (input/select 등) — 테두리 없이 렌더, 테두리는 SField가 제공 |
36
+ | `className?` | `string` | — | |
37
+ | `style?` | `CSSProperties` | — | |
38
+
39
+ #### Events
40
+
41
+ | Event | Type | Description |
42
+ |-------|------|-------------|
43
+ | `onMouseEnter` | `() => void` | |
44
+ | `onMouseLeave` | `() => void` | |
45
+
46
+ #### Methods (ref)
47
+
48
+ | Method | Type | Description |
49
+ |--------|------|-------------|
50
+ | `focus` | `() => void` | 내부 컨트롤에 포커스하고 필드를 화면에 스크롤합니다. |
51
+
52
+ ## Dependencies
53
+
54
+ ### Used by
55
+
56
+ - [SBarcodeInput](../SBarcodeInput)
57
+ - [SChipInput](../SChipInput)
58
+ - [SDatePicker](../SDatePicker)
59
+ - [SDateRangePicker](../SDateRangePicker)
60
+ - [SFilePicker](../SFilePicker)
61
+ - [SInput](../SInput)
62
+ - [SNumberInput](../SNumberInput)
63
+ - [SSelect](../SSelect)
64
+ - [STextarea](../STextarea)
65
+ - [STimePicker](../STimePicker)
66
+ - [STimeRangePicker](../STimeRangePicker)
67
+
68
+ ### Depends on
69
+
70
+ - [SIcon](../SIcon)
71
+ - [STooltip](../STooltip)
72
+
73
+ ### Graph
74
+
75
+ ```mermaid
76
+ graph TD;
77
+ SField --> SIcon
78
+ SField --> STooltip
79
+ SBarcodeInput --> SField
80
+ SChipInput --> SField
81
+ SDatePicker --> SField
82
+ SDateRangePicker --> SField
83
+ SFilePicker --> SField
84
+ SInput --> SField
85
+ SNumberInput --> SField
86
+ SSelect --> SField
87
+ STextarea --> SField
88
+ STimePicker --> SField
89
+ STimeRangePicker --> SField
90
+ style SField fill:#f9f,stroke:#333,stroke-width:4px
91
+ ```
@@ -0,0 +1,72 @@
1
+ # SFilePicker
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SFilePicker
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `value?` | `SFilePickerValue` | `null` | |
12
+ | `placeholder?` | `string` | `'Click to upload'` | |
13
+ | `disabled?` | `boolean` | `false` | |
14
+ | `focused?` | `boolean` | `false` | 포커스 상태 여부 |
15
+ | `hovered?` | `boolean` | `false` | 호버 상태 여부 |
16
+ | `inline?` | `boolean` | `false` | 인라인 표시 — SField 테두리 박스만 사라지고 label/rules/hint 는 그대로 동작 |
17
+ | `multiple?` | `boolean` | `false` | |
18
+ | `useMultipleListBox?` | `boolean` | `false` | multiple 파일 목록을 필드 아래 칩 대신, caret(▼) 클릭 시 열리는 리스트박스 카드로 표시 (바깥 클릭 시 닫힘) |
19
+ | `accept?` | `string` | — | |
20
+ | `maxFileSize?` | `number \| string` | — | |
21
+ | `maxTotalSize?` | `number \| string` | — | |
22
+ | `maxFiles?` | `number \| string` | — | |
23
+ | `name?` | `string` | — | |
24
+ | `rules?` | `Rule[]` | — | |
25
+ | `status?` | `SFieldStatus` | — | |
26
+ | `size?` | `SFieldSize` | `'sm'` | |
27
+ | `label?` | `string` | — | |
28
+ | `labelWidth?` | `number \| string` | — | |
29
+ | `icon?` | `SIconName` | — | |
30
+ | `iconColor?` | `SColor` | — | |
31
+ | `labelTooltip?` | `string` | — | |
32
+ | `labelTooltipProps?` | `Partial<STooltipProps>` | — | |
33
+ | `addonLabel?` | `string` | — | |
34
+ | `addonAlign?` | `SFieldAddonAlign` | `'start'` | |
35
+ | `hint?` | `string` | — | |
36
+ | `error?` | `boolean` | — | |
37
+ | `errorMessage?` | `string` | — | |
38
+ | `width?` | `number \| string` | — | |
39
+ | `className?` | `string` | — | |
40
+ | `style?` | `CSSProperties` | — | |
41
+
42
+ #### Events
43
+
44
+ | Event | Type | Description |
45
+ |-------|------|-------------|
46
+ | `onValueChange` | `(value: SFilePickerValue) => void` | 파일 변경 (sdUpdate) |
47
+ | `onReject` | `(detail: { files: File[]; reason: SFilePickerRejectReason }) => void` | 제한 초과 거부 (sdReject) |
48
+
49
+ ## Dependencies
50
+
51
+ ### Used by
52
+
53
+ - [SKeyValueTable](../SKeyValueTable)
54
+
55
+ ### Depends on
56
+
57
+ - [SChip](../SChip)
58
+ - [SField](../SField)
59
+ - [SGhostButton](../SGhostButton)
60
+ - [SIcon](../SIcon)
61
+
62
+ ### Graph
63
+
64
+ ```mermaid
65
+ graph TD;
66
+ SFilePicker --> SChip
67
+ SFilePicker --> SField
68
+ SFilePicker --> SGhostButton
69
+ SFilePicker --> SIcon
70
+ SKeyValueTable --> SFilePicker
71
+ style SFilePicker fill:#f9f,stroke:#333,stroke-width:4px
72
+ ```
@@ -0,0 +1,31 @@
1
+ # SForm
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SForm
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `formClass?` | `string` | — | form 엘리먼트에 추가할 클래스 (sd-form formClass 대응) |
12
+ | `children?` | `ReactNode` | — | |
13
+ | `className?` | `string` | — | |
14
+ | `style?` | `CSSProperties` | — | |
15
+
16
+ #### Events
17
+
18
+ | Event | Type | Description |
19
+ |-------|------|-------------|
20
+ | `onSubmit` | `() => void` | 모든 필드 검증 통과 후 발생 (sd-form sdSubmit 대응) |
21
+ | `onValidationError` | `(error: SFormValidationError) => void` | 검증 실패 시 실패한 필드 name 목록 전달 (sd-form sdValidationError 대응) |
22
+
23
+ #### Methods (ref)
24
+
25
+ | Method | Type | Description |
26
+ |--------|------|-------------|
27
+ | `validate` | `() => boolean` | 등록된 모든 필드를 검증하고 통과 여부를 반환 |
28
+ | `resetValidation` | `() => void` | 모든 필드의 검증 상태만 초기화 (값은 소비자 소유) |
29
+ | `reset` | `() => void` | resetValidation 별칭 — sd-form sdReset 대응. 값 리셋은 소비자(value/onChange) 책임 |
30
+ | `focusFirstInvalid` | `() => void` | 첫 번째 실패 필드로 포커스 이동 |
31
+
@@ -0,0 +1,76 @@
1
+ # SGhostButton
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SGhostButton
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `icon` | `SIconName` | — | 표시할 아이콘명 (필수) |
12
+ | `size?` | `SGhostButtonSize` | `'sm'` | 버튼 크기 |
13
+ | `intent?` | `SGhostButtonIntent` | `'default'` | 색상 의도 |
14
+ | `ariaLabel?` | `string` | `''` | 스크린리더용 접근성 레이블 |
15
+ | `ariaPressed?` | `boolean` | — | 토글 버튼일 때 눌림 상태 (aria-pressed). 미지정 시 속성 자체를 내보내지 않는다. |
16
+ | `tooltipText?` | `string` | — | 호버 시 표시할 툴팁 텍스트 |
17
+ | `disabled?` | `boolean` | `false` | 비활성 |
18
+ | `anchorClassName?` | `string` | — | tooltip anchor wrapper 클래스. tooltipText가 있을 때 위치 조정용으로 사용합니다. |
19
+ | `anchorStyle?` | `CSSProperties` | — | tooltip anchor wrapper 스타일. tooltipText가 있을 때 위치 조정용으로 사용합니다. |
20
+ | `className?` | `string` | — | |
21
+ | `style?` | `CSSProperties` | — | |
22
+
23
+ #### Events
24
+
25
+ | Event | Type | Description |
26
+ |-------|------|-------------|
27
+ | `onClick` | `(e: MouseEvent<HTMLButtonElement>) => void` | 클릭 (sdClick) |
28
+
29
+ ## Dependencies
30
+
31
+ ### Used by
32
+
33
+ - [SBarcodeInput](../SBarcodeInput)
34
+ - [SCalendar](../SCalendar)
35
+ - [SChip](../SChip)
36
+ - [SDateRangePicker](../SDateRangePicker)
37
+ - [SFilePicker](../SFilePicker)
38
+ - [SGnb](../SGnb)
39
+ - [SGuide](../SGuide)
40
+ - [SInput](../SInput)
41
+ - [SModalContainer](../SModalContainer)
42
+ - [SPopover](../SPopover)
43
+ - [SSelect](../SSelect)
44
+ - [STimePicker](../STimePicker)
45
+ - [STimeRangePicker](../STimeRangePicker)
46
+ - [SToast](../SToast)
47
+ - [STooltip](../STooltip)
48
+
49
+ ### Depends on
50
+
51
+ - [SIcon](../SIcon)
52
+ - [STag](../STag)
53
+
54
+ ### Graph
55
+
56
+ ```mermaid
57
+ graph TD;
58
+ SGhostButton --> SIcon
59
+ SGhostButton --> STag
60
+ SBarcodeInput --> SGhostButton
61
+ SCalendar --> SGhostButton
62
+ SChip --> SGhostButton
63
+ SDateRangePicker --> SGhostButton
64
+ SFilePicker --> SGhostButton
65
+ SGnb --> SGhostButton
66
+ SGuide --> SGhostButton
67
+ SInput --> SGhostButton
68
+ SModalContainer --> SGhostButton
69
+ SPopover --> SGhostButton
70
+ SSelect --> SGhostButton
71
+ STimePicker --> SGhostButton
72
+ STimeRangePicker --> SGhostButton
73
+ SToast --> SGhostButton
74
+ STooltip --> SGhostButton
75
+ style SGhostButton fill:#f9f,stroke:#333,stroke-width:4px
76
+ ```
@@ -0,0 +1,56 @@
1
+ # SGnb
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SGnb
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `type?` | `SGnbType` | — | 메뉴 스타일: box(라운드) / belt(풀폭 행). 미지정 시 SLayout 의 type 을 따른다. |
12
+ | `header?` | `SGnbHeader` | — | 상단바 구조: fix(GNB 폭 고정) / full(레이아웃 전폭). 미지정 시 SLayout 의 header 를 따른다. 단, useRail 이고 레일에 children 없는 아이템이 있으면 메뉴 폭이 출렁이므로 full 로 강제된다. |
13
+ | `color?` | `SGnbColor` | `'light'` | 색상 테마: light / dark |
14
+ | `items` | `SGnbMenuItem[]` | — | 메뉴 트리 (depth1 → depth2 → depth3). useRail 이면 첫 depth 가 레일이 되고 그 children 이 depth1 이 된다. |
15
+ | `useRail?` | `boolean` | — | 좌측 레일 사용 여부. 켜면 items 의 첫 depth 가 아이콘+라벨 버튼의 세로 레일로 서고, 선택된 레일 아이템의 children 이 오른쪽 메뉴 패널에 깔린다. 미지정 시 SLayout 의 useRail 을 따른다. children 없는 레일 아이템이 활성이면 메뉴 패널은 렌더되지 않고 레일만 남는다. |
16
+ | `value?` | `string` | `''` | 현재 선택된 아이템 value |
17
+ | `folded?` | `boolean` | — | 접힘(레일) 상태. 미지정 시 SLayout 의 folded 를 따른다. |
18
+ | `logo?` | `ReactNode` | — | 상단바 로고 영역 (slot) |
19
+ | `railFooter?` | `ReactNode` | — | 레일 하단 고정 슬롯. 레일 아이템이 많아 넘치면 아이템 목록(ul)만 스크롤되고 이 슬롯은 레일 하단에 붙어 고정된다. useRail 일 때만 렌더된다. |
20
+ | `menuFooter?` | `ReactNode` | — | 메뉴 하단 고정 슬롯. 메뉴 아이템이 많아 넘치면 메뉴 목록(ul)만 스크롤되고 이 슬롯은 메뉴 하단에 붙어 고정된다. 메뉴가 렌더될 때만(showMenu) 나타난다. |
21
+ | `foldedFooter?` | `ReactNode` | — | 접힘(fix 레일) 하단 고정 슬롯. 접으면 본문이 빠져나가며 rail/menu footer 도 사라지므로, 48px 폴드 레일 바닥에 붙는 별도 슬롯이다. header="fix" 로 접혔을 때만 나타난다. |
22
+ | `ariaLabel?` | `string` | `'global navigation'` | 메뉴 landmark(nav) 의 접근성 레이블. 한 화면에 nav 가 여럿일 때 구분한다. |
23
+
24
+ #### Events
25
+
26
+ | Event | Type | Description |
27
+ |-------|------|-------------|
28
+ | `onValueChange` | `(value: string) => void` | 선택 변경 (sdUpdate) |
29
+ | `onRailChange` | `(value: string) => void` | 레일 선택 변경. 레일 아이템을 눌러 패널이 바뀔 때 알린다(선택 상태는 SGnb 가 자체 관리). |
30
+ | `onFoldChange` | `(folded: boolean) => void` | 접힘 토글 (sdFoldChange) |
31
+ | `onLauncherClick` | `() => void` | 앱런처(그리드) 버튼 클릭. 미지정 시 런처 버튼을 렌더하지 않는다. 접힘 레일(fix)에는 폴드 버튼만 남으므로 표시되지 않는다. |
32
+
33
+ ## Dependencies
34
+
35
+ ### Used by
36
+
37
+ - [SLayout](../SLayout)
38
+
39
+ ### Depends on
40
+
41
+ - [SGhostButton](../SGhostButton)
42
+ - [SIcon](../SIcon)
43
+ - [SLayout](../SLayout)
44
+ - [STag](../STag)
45
+
46
+ ### Graph
47
+
48
+ ```mermaid
49
+ graph TD;
50
+ SGnb --> SGhostButton
51
+ SGnb --> SIcon
52
+ SGnb --> SLayout
53
+ SGnb --> STag
54
+ SLayout --> SGnb
55
+ style SGnb fill:#f9f,stroke:#333,stroke-width:4px
56
+ ```
@@ -0,0 +1,34 @@
1
+ # SGuide
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SGuide
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `type?` | `SGuideType` | `'tip'` | 가이드 타입 (tip: 팝업, notion: 외부 링크) |
12
+ | `label?` | `string` | `''` | 버튼 레이블 (없으면 type 기본값) |
13
+ | `message?` | `SGuideMessage` | `''` | 팝업 메시지 (배열이면 리스트, 중첩 배열이면 depth 표현) |
14
+ | `url?` | `string` | `''` | notion 타입 클릭 시 이동 URL |
15
+ | `popupTitle?` | `string` | `''` | 팝업 제목 (없으면 type 기본값) |
16
+ | `popupWidth?` | `number` | — | 팝업 너비 (px, 기본 426) |
17
+ | `className?` | `string` | — | |
18
+ | `style?` | `CSSProperties` | — | |
19
+
20
+ ## Dependencies
21
+
22
+ ### Depends on
23
+
24
+ - [SGhostButton](../SGhostButton)
25
+ - [SIcon](../SIcon)
26
+
27
+ ### Graph
28
+
29
+ ```mermaid
30
+ graph TD;
31
+ SGuide --> SGhostButton
32
+ SGuide --> SIcon
33
+ style SGuide fill:#f9f,stroke:#333,stroke-width:4px
34
+ ```