sellmate-design-system-react 9.0.0-beta.4 → 9.0.0-beta.41

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 (196) hide show
  1. package/AGENTS.md +670 -95
  2. package/README.md +111 -9
  3. package/dist/components/SAccountListBox/AccountListBoxPortal.d.ts +31 -0
  4. package/dist/components/SAccountListBox/README.md +86 -0
  5. package/dist/components/SAccountListBox/SAccountListBox.d.ts +79 -0
  6. package/dist/components/SAccountListBox/SystemMenuPortal.d.ts +58 -0
  7. package/dist/components/SAccountListBox/accountListBox.config.d.ts +64 -0
  8. package/dist/components/SAccountListBox/index.d.ts +2 -0
  9. package/dist/components/SBadge/README.md +26 -0
  10. package/dist/components/SBadge/SBadge.d.ts +1 -1
  11. package/dist/components/SBarcodeInput/README.md +12 -4
  12. package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +10 -2
  13. package/dist/components/SButton/README.md +38 -0
  14. package/dist/components/SCalendar/README.md +13 -0
  15. package/dist/components/SCalendarBoard/CalendarDayCard.d.ts +38 -0
  16. package/dist/components/SCalendarBoard/CalendarDayEventListBox.d.ts +26 -0
  17. package/dist/components/SCalendarBoard/CalendarEventButton.d.ts +13 -0
  18. package/dist/components/SCalendarBoard/CalendarMoreButton.d.ts +12 -0
  19. package/dist/components/SCalendarBoard/README.md +137 -0
  20. package/dist/components/SCalendarBoard/SCalendarBoard.d.ts +68 -0
  21. package/dist/components/SCalendarBoard/calendarBoard.config.d.ts +33 -0
  22. package/dist/components/SCalendarBoard/index.d.ts +3 -0
  23. package/dist/components/SCalendarBoard/types.d.ts +31 -0
  24. package/dist/components/SCallout/README.md +16 -1
  25. package/dist/components/SCallout/SCallout.d.ts +9 -4
  26. package/dist/components/SCard/README.md +16 -0
  27. package/dist/components/SCard/SCard.d.ts +17 -2
  28. package/dist/components/SCheckbox/README.md +8 -0
  29. package/dist/components/SChipFilter/README.md +339 -14
  30. package/dist/components/SChipFilter/SChipFilter.d.ts +150 -60
  31. package/dist/components/SChipFilter/index.d.ts +1 -1
  32. package/dist/components/SChipInput/README.md +16 -2
  33. package/dist/components/SChipInput/SChipInput.d.ts +8 -2
  34. package/dist/components/SChipInput/index.d.ts +1 -1
  35. package/dist/components/SCircleProgress/README.md +8 -0
  36. package/dist/components/SConfirmModal/README.md +11 -3
  37. package/dist/components/SConfirmModal/SConfirmModal.d.ts +16 -8
  38. package/dist/components/SDatePicker/README.md +20 -2
  39. package/dist/components/SDatePicker/SDatePicker.d.ts +27 -4
  40. package/dist/components/SDateRangePicker/README.md +19 -4
  41. package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +19 -6
  42. package/dist/components/SDivider/README.md +7 -0
  43. package/dist/components/SDivider/SDivider.d.ts +11 -0
  44. package/dist/components/SDraggableItem/README.md +37 -0
  45. package/dist/components/SDraggableItem/SDraggableItem.d.ts +2 -0
  46. package/dist/components/SDraggableItem/index.d.ts +1 -1
  47. package/dist/components/SDraggableList/README.md +30 -0
  48. package/dist/components/SDraggableList/SDraggableList.d.ts +11 -0
  49. package/dist/components/SDraggableList/index.d.ts +1 -1
  50. package/dist/components/SDrawer/README.md +8 -0
  51. package/dist/components/SDropdownButton/README.md +19 -0
  52. package/dist/components/SEditor/EditorBody.d.ts +36 -0
  53. package/dist/components/SEditor/EditorToolbar.d.ts +93 -0
  54. package/dist/components/SEditor/README.md +203 -0
  55. package/dist/components/SEditor/SEditor.d.ts +114 -0
  56. package/dist/components/SEditor/editor-icons.d.ts +63 -0
  57. package/dist/components/SEditor/editor.config.d.ts +119 -0
  58. package/dist/components/SEditor/index.d.ts +8 -0
  59. package/dist/components/SEditor/tiptap-api.d.ts +29 -0
  60. package/dist/components/SEditor/use-is-mobile.d.ts +14 -0
  61. package/dist/components/SExpansionItem/README.md +36 -0
  62. package/dist/components/SExpansionItem/index.d.ts +1 -1
  63. package/dist/components/SField/README.md +29 -5
  64. package/dist/components/SField/SField.d.ts +20 -8
  65. package/dist/components/SFilePicker/README.md +18 -4
  66. package/dist/components/SFilePicker/SFilePicker.d.ts +11 -5
  67. package/dist/components/SFooter/README.md +25 -0
  68. package/dist/components/SFooter/SFooter.d.ts +4 -3
  69. package/dist/components/SForm/README.md +12 -1
  70. package/dist/components/SForm/SForm.d.ts +2 -2
  71. package/dist/components/SGhostButton/README.md +22 -4
  72. package/dist/components/SGnb/README.md +57 -6
  73. package/dist/components/SGnb/SGnb.d.ts +58 -8
  74. package/dist/components/SGnb/gnb.config.d.ts +12 -5
  75. package/dist/components/SGnb/index.d.ts +1 -1
  76. package/dist/components/SGnbSystem/README.md +186 -0
  77. package/dist/components/SGnbSystem/SGnbSystem.d.ts +179 -0
  78. package/dist/components/SGnbSystem/gnbSystem.config.d.ts +122 -0
  79. package/dist/components/SGnbSystem/index.d.ts +2 -0
  80. package/dist/components/SGuide/README.md +15 -0
  81. package/dist/components/SIcon/README.md +10 -0
  82. package/dist/components/SIcon/SIcon.d.ts +1 -1
  83. package/dist/components/SIcon/icons.gen.d.ts +4 -0
  84. package/dist/components/SImage/README.md +15 -1
  85. package/dist/components/SImage/SImage.d.ts +2 -2
  86. package/dist/components/SInput/README.md +6 -4
  87. package/dist/components/SInput/SInput.d.ts +10 -4
  88. package/dist/components/SKeyValueTable/README.md +86 -0
  89. package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +6 -2
  90. package/dist/components/SKeyValueTable/index.d.ts +1 -1
  91. package/dist/components/SLayout/README.md +22 -1
  92. package/dist/components/SLayout/SLayout.d.ts +6 -2
  93. package/dist/components/SLayout/index.d.ts +1 -1
  94. package/dist/components/SLinearProgress/README.md +15 -0
  95. package/dist/components/SLinearProgress/SLinearProgress.d.ts +3 -0
  96. package/dist/components/SLinearProgress/index.d.ts +1 -1
  97. package/dist/components/SList/README.md +15 -3
  98. package/dist/components/SList/SList.d.ts +7 -5
  99. package/dist/components/SList/index.d.ts +1 -1
  100. package/dist/components/SListItem/README.md +41 -0
  101. package/dist/components/SListItem/index.d.ts +1 -1
  102. package/dist/components/SLoadingContainer/loading.d.ts +18 -2
  103. package/dist/components/SLoadingModal/README.md +10 -2
  104. package/dist/components/SLoadingModal/SLoadingModal.d.ts +4 -4
  105. package/dist/components/SLoadingModal/index.d.ts +1 -1
  106. package/dist/components/SModal/README.md +1 -1
  107. package/dist/components/SNumberInput/README.md +14 -6
  108. package/dist/components/SNumberInput/SNumberInput.d.ts +12 -4
  109. package/dist/components/SPage/README.md +87 -5
  110. package/dist/components/SPage/SPage.d.ts +29 -9
  111. package/dist/components/SPage/SPageHeader.d.ts +31 -13
  112. package/dist/components/SPage/index.d.ts +2 -2
  113. package/dist/components/SPage/page-column.d.ts +34 -0
  114. package/dist/components/SPage/page-width.d.ts +23 -0
  115. package/dist/components/SPage/page.config.d.ts +18 -0
  116. package/dist/components/SPopover/README.md +15 -0
  117. package/dist/components/SPopup/README.md +27 -2
  118. package/dist/components/SPopup/SPopup.d.ts +7 -3
  119. package/dist/components/SPopup/index.d.ts +1 -1
  120. package/dist/components/SPortal/README.md +18 -0
  121. package/dist/components/SRadio/README.md +20 -0
  122. package/dist/components/SRadioButton/README.md +18 -0
  123. package/dist/components/SRadioButton/SRadioButton.d.ts +1 -1
  124. package/dist/components/SRadioCard/README.md +78 -0
  125. package/dist/components/SRadioCard/SRadioCard.d.ts +29 -0
  126. package/dist/components/SRadioCard/SRadioCardGroup.d.ts +36 -0
  127. package/dist/components/SRadioCard/index.d.ts +2 -0
  128. package/dist/components/SScrollArea/README.md +27 -0
  129. package/dist/components/SSearchInput/README.md +63 -0
  130. package/dist/components/SSearchInput/SSearchInput.d.ts +52 -0
  131. package/dist/components/SSearchInput/index.d.ts +1 -0
  132. package/dist/components/SSectionHeaderCard/README.md +37 -0
  133. package/dist/components/SSectionHeaderCard/SSectionHeaderCard.d.ts +10 -0
  134. package/dist/components/SSelect/README.md +29 -11
  135. package/dist/components/SSelect/SSelect.d.ts +28 -8
  136. package/dist/components/SSplitter/README.md +17 -2
  137. package/dist/components/SSplitter/SSplitter.d.ts +7 -3
  138. package/dist/components/SStepper/README.md +26 -0
  139. package/dist/components/SSwitch/README.md +13 -1
  140. package/dist/components/SSwitch/SSwitch.d.ts +1 -3
  141. package/dist/components/SSystemActionButton/README.md +221 -0
  142. package/dist/components/SSystemActionButton/SSystemActionButton.d.ts +161 -0
  143. package/dist/components/SSystemActionButton/index.d.ts +2 -0
  144. package/dist/components/SSystemActionButton/systemActionButton.config.d.ts +93 -0
  145. package/dist/components/STable/README.md +94 -10
  146. package/dist/components/STable/STable.d.ts +130 -22
  147. package/dist/components/STable/index.d.ts +1 -1
  148. package/dist/components/STabs/README.md +13 -2
  149. package/dist/components/STabs/STabs.d.ts +3 -5
  150. package/dist/components/STabs/index.d.ts +1 -1
  151. package/dist/components/STabs/tabs.config.d.ts +3 -4
  152. package/dist/components/STag/README.md +52 -0
  153. package/dist/components/STag/STag.d.ts +3 -1
  154. package/dist/components/STextLink/README.md +19 -1
  155. package/dist/components/STextLink/STextLink.d.ts +5 -1
  156. package/dist/components/STextarea/README.md +4 -4
  157. package/dist/components/STextarea/STextarea.d.ts +10 -4
  158. package/dist/components/STimePicker/README.md +16 -2
  159. package/dist/components/STimePicker/STimePicker.d.ts +11 -5
  160. package/dist/components/STimePicker/timepicker.config.d.ts +4 -2
  161. package/dist/components/STimeRangePicker/README.md +28 -2
  162. package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +11 -5
  163. package/dist/components/SToast/README.md +25 -1
  164. package/dist/components/SToast/SToast.d.ts +2 -2
  165. package/dist/components/SToggle/README.md +8 -0
  166. package/dist/components/SToggle/index.d.ts +1 -1
  167. package/dist/components/STooltip/README.md +25 -1
  168. package/dist/components/STooltip/STooltip.d.ts +1 -1
  169. package/dist/components/STree/README.md +44 -3
  170. package/dist/components/STree/STree.d.ts +24 -4
  171. package/dist/components/STree/index.d.ts +1 -1
  172. package/dist/docs/Gallery.d.ts +9 -0
  173. package/dist/docs/gallery-previews.d.ts +24 -0
  174. package/dist/index.cjs +10890 -5322
  175. package/dist/index.cjs.map +1 -1
  176. package/dist/index.d.ts +8 -0
  177. package/dist/index.js +10852 -5322
  178. package/dist/index.js.map +1 -1
  179. package/dist/lib/doc-sections.d.ts +35 -0
  180. package/dist/lib/field-width.d.ts +31 -0
  181. package/dist/lib/floating-height.d.ts +15 -0
  182. package/dist/lib/story-docs.d.ts +19 -3
  183. package/dist/lib/truncated-value-tooltip.d.ts +18 -0
  184. package/dist/llms-full.txt +3396 -297
  185. package/dist/llms.txt +675 -97
  186. package/dist/playground/categories.d.ts +19 -0
  187. package/dist/styles.css +1731 -166
  188. package/dist/theme.css +216 -24
  189. package/eslint/index.mjs +14 -0
  190. package/eslint/lib/table-column.mjs +26 -0
  191. package/eslint/rules/divider-vertical-height.mjs +137 -0
  192. package/eslint/rules/field-width-grade.d.mts +41 -0
  193. package/eslint/rules/field-width-grade.mjs +311 -0
  194. package/eslint/rules/table-column-width.mjs +110 -0
  195. package/eslint/scale.gen.mjs +5 -2
  196. package/package.json +13 -1
@@ -48,6 +48,8 @@ export declare const GNB_MENU: Record<SGnbType, {
48
48
  depth1FontWeight: number;
49
49
  itemFontSize: number;
50
50
  itemLineHeight: number;
51
+ itemFontWeight: number;
52
+ itemFontWeightSelected: number;
51
53
  }>;
52
54
  /**
53
55
  * 색상(color 축). light → --cmp-gnb-light-* 색, dark → --cmp-gnb-dark-* 색
@@ -78,7 +80,7 @@ export declare const GNB_COMMON: {
78
80
  foldWidth: string;
79
81
  };
80
82
  /**
81
- * 좌측 레일(useRail) — items 의 첫 depth 를 아이콘+라벨 버튼으로 세우는 1차 내비게이션.
83
+ * 좌측 레일(showRail) — items 의 첫 depth 를 아이콘+라벨 버튼으로 세우는 1차 내비게이션.
82
84
  * 선택 색은 레일 전용 토큰이 없어 메뉴 아이템의 선택 색(item-bg-selected / item-fg-selected)을 함께 쓴다.
83
85
  */
84
86
  export declare const GNB_RAIL: {
@@ -114,13 +116,13 @@ export declare const GNB_EXPAND_MS = 200;
114
116
  * 메뉴 고정 폭. 두 header 모두 메뉴는 이 폭으로 좌측에 붙는다(토큰 없음 → 상수).
115
117
  * header="full" 에서 SLayout 이 "메뉴 오른쪽 = 페이지" 영역을 잡을 때도 이 값을 쓴다.
116
118
  */
117
- export declare const GNB_MENU_WIDTH = 240;
119
+ export declare const GNB_MENU_WIDTH = 214;
118
120
  /**
119
121
  * resizable 일 때 메뉴 폭이 움직일 수 있는 범위(px). 레일 폭은 고정이고 메뉴 컬럼만 늘고 준다.
120
- * 디자인이 아직 확정한 값이 아니라 임시다 — 확정되면 토큰으로 내려온다.
122
+ * 기본 폭(GNB_MENU_WIDTH)이 이 범위 안에 있다. 대응 토큰이 없어 상수로 둔다.
121
123
  */
122
124
  export declare const GNB_MENU_MIN_WIDTH = 200;
123
- export declare const GNB_MENU_MAX_WIDTH = 300;
125
+ export declare const GNB_MENU_MAX_WIDTH = 240;
124
126
  /** 메뉴 폭 조절에서 방향키 한 번에 움직이는 양(px). Shift 를 함께 누르면 large. */
125
127
  export declare const GNB_MENU_RESIZE_KEY_STEP: {
126
128
  normal: number;
@@ -152,7 +154,7 @@ export declare const GNB_TOP_ICON_SIZE = 24;
152
154
  */
153
155
  export declare const GNB_FULL_LOGO_WIDTH_NO_LAUNCHER: number;
154
156
  /**
155
- * useRail 에서 value 를 품은 첫 depth(레일) 아이템의 value.
157
+ * showRail 에서 value 를 품은 첫 depth(레일) 아이템의 value.
156
158
  * value 자체가 레일 아이템이면 그 값을, 어디에도 없으면 undefined 를 반환한다.
157
159
  */
158
160
  export declare function findGnbRailValue(items: SGnbMenuItem[], value: string): string | undefined;
@@ -160,3 +162,8 @@ export declare function findGnbRailValue(items: SGnbMenuItem[], value: string):
160
162
  export declare function findGnbSiblingValues(items: SGnbMenuItem[], value: string): string[];
161
163
  /** value 로 선택된 아이템의 조상 value 목록(자기 자신 제외)을 반환 → 자동 펼침용 */
162
164
  export declare function findGnbAncestors(items: SGnbMenuItem[], value: string): string[];
165
+ /**
166
+ * value 를 가진 아이템 아래의 **하위 가지**(children 을 가진 자손) value 목록을 반환.
167
+ * 부모를 펼칠 때 그 아래 가지도 전부 함께 펼치는 용도 — 리프는 펼침 대상이 아니라 제외한다.
168
+ */
169
+ export declare function findGnbDescendantBranchValues(items: SGnbMenuItem[], value: string): string[];
@@ -1,2 +1,2 @@
1
- export { SGnb, type SGnbProps } from './SGnb';
1
+ export { SGnb, SGnbSystemContext, type SGnbProps, type SGnbSystemContextValue } from './SGnb';
2
2
  export { GNB_HEADER, GNB_MENU, GNB_COLORS, GNB_COMMON, GNB_FOLD_MS, GNB_FULL_LOGO_WIDTH, GNB_MENU_WIDTH, GNB_RAIL, GNB_RAIL_WIDTH, findGnbAncestors, findGnbRailValue, type SGnbType, type SGnbHeader, type SGnbColor, type SGnbMenuItem, } from './gnb.config';
@@ -0,0 +1,186 @@
1
+ # SGnbSystem
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SGnbSystem
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `color?` | `SGnbSystemColor` | — | 색상(패널 표면). light = 흰 면, dark = 오션블루 면. 미지정 시 자기를 담은 SGnb 의 color 를 따른다(단독으로 쓰면 `'light'`). |
12
+ | `folded?` | `boolean` | — | 접힌(min) 형태 — 48px 레일 폭에 맞춰 알림·계정 아이콘만 남는다. 미지정 시 자기를 담은 SGnb 의 접힘 상태를 따른다. 상단바 자리에서는 뜻이 없다. |
13
+ | `actions?` | `SGnbSystemAction[]` | — | 행 목록. 각 원소는 `SSystemActionButton` 의 props 다(`color` 제외 · 계정 행은 `account` 로 따로 준다). 판에서는 맨 위에 쌓이고, 상단바에서는 맨 왼쪽에 선다. 옆(아래)에 다른 조각이 있으면 그 사이에 구분선이 그어진다. 접히면 자리가 없어 렌더되지 않는다. |
14
+ | `domain?` | `string` | — | 도메인 태그 텍스트. 접히면 자리가 없어 렌더되지 않는다 |
15
+ | `alert?` | `SGnbSystemAlert` | — | 알림 버튼. 없으면 렌더하지 않는다. 판에서는 설정과 나란히 서면 남는 폭을 먹고 혼자면 폭을 다 먹는다. 상단바에서는 자리가 넉넉하지 않아 라벨 없이 아이콘+개수만 선다. |
16
+ | `setting?` | `SGnbSystemSetting` | — | 설정 버튼. 없으면 렌더하지 않는다. 판에서는 알림과 나란히 서면 제 폭만 갖고 혼자면 폭을 다 먹고, 상단바에서는 라벨 없이 아이콘만 선다. 접히면 자리가 없어 렌더되지 않는다 — 접힌 상태에서도 닿아야 하면 SGnb 의 `foldedFooter` 에 둔다. |
17
+ | `account?` | `SGnbSystemAccount` | — | 계정 행. 없으면 렌더하지 않는다 |
18
+
19
+ ## Types
20
+
21
+ ### SGnbSystemColor
22
+
23
+ ```ts
24
+ export type SGnbSystemColor = (typeof GNB_SYSTEM_COLORS)[number];
25
+ ```
26
+
27
+ ### SGnbSystemAction
28
+
29
+ ```ts
30
+ /**
31
+ * 패널 상단에 쌓이는 행 하나. `SSystemActionButton` 의 props 를 그대로 받는다 —
32
+ * 단 `color` 는 패널이 정하므로 받지 않고, 목록 key 로 쓸 `value` 만 더한다.
33
+ *
34
+ * `type: 'account'` 는 받지 않는다. 계정 행은 이 패널에 **하나뿐**이고 서는 자리도 맨 아래로
35
+ * 정해져 있어(§3-5-8) `account` prop 이 따로 있다 — 여기로도 받으면 계정 행이 둘인 패널이
36
+ * 만들어지고, 그중 하나는 자리가 틀린다.
37
+ */
38
+ export type SGnbSystemAction = DistributiveOmit<
39
+ Exclude<SSystemActionButtonProps, { type: 'account' }>,
40
+ 'color'
41
+ > & {
42
+ /** 목록 key. 없으면 순서를 key 로 쓴다 */
43
+ value?: string;
44
+ };
45
+ ```
46
+
47
+ ### SGnbSystemAlert
48
+
49
+ ```ts
50
+ /** 알림 버튼 */
51
+ export interface SGnbSystemAlert {
52
+ /** 라벨 텍스트. 기본 `'알림'` */
53
+ label?: string;
54
+ /**
55
+ * 읽지 않은 알림 개수. 1 이상이면 벨이 울리는 아이콘·강조색으로 바뀌고 개수가 붙는다.
56
+ * 개수를 적을 가로가 모자란 자리(접힌 레일 · 기본 폭보다 좁게 줄인 판)에서는 점 배지로 바뀐다.
57
+ * 표기는 컴포넌트가 맡는다 — 세 자리마다 콤마를 넣어 그리므로 앱이 포맷한 문자열을 넘기지 않는다.
58
+ */
59
+ count?: number;
60
+ /** 클릭 */
61
+ onClick?: () => void;
62
+ /**
63
+ * 알림 버튼에 붙는 안내 툴팁의 문구(한 줄이 한 항목). 주면 뜬다 — **문구만 앱이 정하고**
64
+ * 색·방향·여닫힘은 컴포넌트가 쥔다: 색은 판이 light 면 기본, 그 밖(dark·상단바)이면 강조색이고
65
+ * 방향은 자리가 정한다(판·접힌 레일이면 오른쪽, 상단바면 아래).
66
+ *
67
+ * 스스로 사라지지 않는다 — **알림 버튼을 누르거나, 버튼에 얹었다 커서를 뺄 때** 닫히고,
68
+ * 같은 값을 계속 넘기는 동안에는 다시 뜨지 않는다.
69
+ *
70
+ * **다시 띄우려면 비웠다가 다시 넘긴다**(`undefined` → 문구). 문구가 같아도 상관없다 —
71
+ * 컴포넌트는 닫았다는 사실만 기억하고 문구 내용은 기억하지 않으므로, 새 알림마다 같은 안내를
72
+ * 다시 띄우는 화면도 막히지 않는다.
73
+ */
74
+ tooltip?: string[];
75
+ /**
76
+ * 알림을 누르면 뜨는 목록의 **내용**. 주면 컴포넌트가 알림 버튼에 붙여 띄운다 —
77
+ * 목록에 무엇을 쌓을지는 서비스마다 다르지만 **뜨는 자리는 늘 같아야 하므로**, 방향·앵커·
78
+ * 여닫힘(바깥 클릭·ESC 포함)과 배경·라운드·그림자는 컴포넌트가 쥐고 앱은 안에 담을 것만 준다.
79
+ * 방향은 자리가 정한다 — 판·접힌 레일이면 버튼 오른쪽, 상단바면 아래.
80
+ */
81
+ listBox?: ReactNode;
82
+ /**
83
+ * 알림 목록이 열리고 닫힐 때. 여닫는 것은 알림 버튼이 스스로 하므로 **그 사실을 알아야 할
84
+ * 때만** 준다(연 김에 읽음 처리하거나, 열려 있는 동안 다른 층을 접어 두는 화면).
85
+ *
86
+ * 앱이 누르지 않은 닫힘도 온다: GNB 를 접거나 펴면 알림 버튼이 다른 자리로 옮겨 서므로
87
+ * 목록이 닫히고 `false` 가 온다(계정 행과 같다).
88
+ */
89
+ onOpenChange?: (open: boolean) => void;
90
+ /**
91
+ * 안내 툴팁이 닫힐 때. 받아서 `tooltip` 을 비워 두는 것이 기본 사용법이다 — 그러면 앱이
92
+ * 다음에 넘기는 문구가 곧 다음 안내가 된다.
93
+ *
94
+ * 컴포넌트가 아는 "다시 뜨지 않는다" 는 **이 자리가 서 있는 동안**뿐이라(새로고침하거나
95
+ * GNB 를 접어 알림이 다른 자리로 옮겨 서면 새로 마운트된다), 그 사용자에게 두 번 다시 보이지
96
+ * 않아야 하면 앱이 이 신호를 저장해 두고 `tooltip` 을 그만 넘긴다.
97
+ */
98
+ onTooltipDismiss?: () => void;
99
+ }
100
+ ```
101
+
102
+ ### SGnbSystemSetting
103
+
104
+ ```ts
105
+ /** 설정 버튼 */
106
+ export interface SGnbSystemSetting {
107
+ /** 라벨 텍스트. 기본 `'설정'` */
108
+ label?: string;
109
+ /** 클릭 */
110
+ onClick?: () => void;
111
+ }
112
+ ```
113
+
114
+ ### SGnbSystemAccount
115
+
116
+ ```ts
117
+ /** 계정 행 */
118
+ export interface SGnbSystemAccount {
119
+ /** 계정 이름 */
120
+ label?: string;
121
+ /** 클릭. 패널은 어차피 열리므로, 여는 것 말고 따로 할 일이 있을 때만 준다 */
122
+ onClick?: () => void;
123
+ /**
124
+ * 계정 리스트박스가 열리고 닫힐 때. 여닫는 것은 계정 행이 스스로 하므로 **그 사실을 알아야 할
125
+ * 때만** 준다 — 열려 있는 동안 다른 층을 접어 두거나, 연 것을 기록하는 화면이 그렇다.
126
+ *
127
+ * 앱이 누르지 않은 닫힘도 온다: `header="fix"` 에서 GNB 를 접거나 펴면 계정 행이 다른 자리로
128
+ * 옮겨 서므로 패널이 닫히고 `false` 가 온다.
129
+ */
130
+ onOpenChange?: (open: boolean) => void;
131
+ /**
132
+ * 누르면 뜨는 계정 리스트박스(`SAccountListBox`) 내용. **필수다** — 계정 행은 늘 이 패널의
133
+ * 트리거이고, 눌러도 아무것도 뜨지 않는 계정 행은 없다.
134
+ * 뜨는 방향은 패널이 놓인 자리가 정하므로 앱이 넘기지 않는다.
135
+ */
136
+ listBox: SAccountListBoxContent;
137
+ }
138
+ ```
139
+
140
+ ### GNB_SYSTEM_COLORS
141
+
142
+ ```ts
143
+ /**
144
+ * SGnbSystem 설정.
145
+ *
146
+ * 토큰은 GNB system 패널 한 벌(`--cmp-gnb-system-*`)이다.
147
+ * 패널(배경·경계·구분선·간격) → --cmp-gnb-system-panel-*
148
+ * 도메인 태그 → --cmp-gnb-system-domainTag-*
149
+ * 행 공통(높이·라운드·아이콘 프레임) → --cmp-gnb-system-item-* (SSystemActionButton 과 공유)
150
+ * 알림 버튼 → --cmp-gnb-system-alertButton-*
151
+ * 설정 버튼 → --cmp-gnb-system-setting-*
152
+ * 펼침·접힘 패널 여백 → --cmp-gnb-system-project-padding · --cmp-gnb-system-min-padding
153
+ *
154
+ * 타이포그래피는 CSS 변수가 아니라 `.typo-*` 프리셋으로 나온다.
155
+ * domainTag.typography → typo-body-sm-medium (12/500/20)
156
+ * item.label.typography → typo-body-sm-semibold (12/600/20)
157
+ * alertButton.count → typo-body-md-bold (13/700/22)
158
+ */
159
+
160
+ /** 색상(표면). light = 흰 면, dark = 오션블루 면. GNB 의 color 를 그대로 따라간다 */
161
+ export const GNB_SYSTEM_COLORS = ['light', 'dark'] as const;
162
+ ```
163
+
164
+ ## Dependencies
165
+
166
+ ### Depends on
167
+
168
+ - [SAccountListBox](../SAccountListBox)
169
+ - [SGnb](../SGnb)
170
+ - [SIcon](../SIcon)
171
+ - [SPortal](../SPortal)
172
+ - [SSystemActionButton](../SSystemActionButton)
173
+ - [STooltip](../STooltip)
174
+
175
+ ### Graph
176
+
177
+ ```mermaid
178
+ graph TD;
179
+ SGnbSystem --> SAccountListBox
180
+ SGnbSystem --> SGnb
181
+ SGnbSystem --> SIcon
182
+ SGnbSystem --> SPortal
183
+ SGnbSystem --> SSystemActionButton
184
+ SGnbSystem --> STooltip
185
+ style SGnbSystem fill:#f9f,stroke:#333,stroke-width:4px
186
+ ```
@@ -0,0 +1,179 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import { type SAccountListBoxContent } from '../SAccountListBox';
3
+ import { type SSystemActionButtonProps } from '../SSystemActionButton';
4
+ import { type SGnbSystemColor } from './gnbSystem.config';
5
+ /** 유니온을 유지한 채 키를 걷어낸다 — 그냥 Omit 하면 판별 유니온이 한 덩어리로 뭉개진다. */
6
+ type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
7
+ /**
8
+ * 패널 상단에 쌓이는 행 하나. `SSystemActionButton` 의 props 를 그대로 받는다 —
9
+ * 단 `color` 는 패널이 정하므로 받지 않고, 목록 key 로 쓸 `value` 만 더한다.
10
+ *
11
+ * `type: 'account'` 는 받지 않는다. 계정 행은 이 패널에 **하나뿐**이고 서는 자리도 맨 아래로
12
+ * 정해져 있어(§3-5-8) `account` prop 이 따로 있다 — 여기로도 받으면 계정 행이 둘인 패널이
13
+ * 만들어지고, 그중 하나는 자리가 틀린다.
14
+ */
15
+ export type SGnbSystemAction = DistributiveOmit<Exclude<SSystemActionButtonProps, {
16
+ type: 'account';
17
+ }>, 'color'> & {
18
+ /** 목록 key. 없으면 순서를 key 로 쓴다 */
19
+ value?: string;
20
+ };
21
+ /** 알림 버튼 */
22
+ export interface SGnbSystemAlert {
23
+ /** 라벨 텍스트. 기본 `'알림'` */
24
+ label?: string;
25
+ /**
26
+ * 읽지 않은 알림 개수. 1 이상이면 벨이 울리는 아이콘·강조색으로 바뀌고 개수가 붙는다.
27
+ * 개수를 적을 가로가 모자란 자리(접힌 레일 · 기본 폭보다 좁게 줄인 판)에서는 점 배지로 바뀐다.
28
+ * 표기는 컴포넌트가 맡는다 — 세 자리마다 콤마를 넣어 그리므로 앱이 포맷한 문자열을 넘기지 않는다.
29
+ */
30
+ count?: number;
31
+ /** 클릭 */
32
+ onClick?: () => void;
33
+ /**
34
+ * 알림 버튼에 붙는 안내 툴팁의 문구(한 줄이 한 항목). 주면 뜬다 — **문구만 앱이 정하고**
35
+ * 색·방향·여닫힘은 컴포넌트가 쥔다: 색은 판이 light 면 기본, 그 밖(dark·상단바)이면 강조색이고
36
+ * 방향은 자리가 정한다(판·접힌 레일이면 오른쪽, 상단바면 아래).
37
+ *
38
+ * 스스로 사라지지 않는다 — **알림 버튼을 누르거나, 버튼에 얹었다 커서를 뺄 때** 닫히고,
39
+ * 같은 값을 계속 넘기는 동안에는 다시 뜨지 않는다.
40
+ *
41
+ * **다시 띄우려면 비웠다가 다시 넘긴다**(`undefined` → 문구). 문구가 같아도 상관없다 —
42
+ * 컴포넌트는 닫았다는 사실만 기억하고 문구 내용은 기억하지 않으므로, 새 알림마다 같은 안내를
43
+ * 다시 띄우는 화면도 막히지 않는다.
44
+ */
45
+ tooltip?: string[];
46
+ /**
47
+ * 알림을 누르면 뜨는 목록의 **내용**. 주면 컴포넌트가 알림 버튼에 붙여 띄운다 —
48
+ * 목록에 무엇을 쌓을지는 서비스마다 다르지만 **뜨는 자리는 늘 같아야 하므로**, 방향·앵커·
49
+ * 여닫힘(바깥 클릭·ESC 포함)과 배경·라운드·그림자는 컴포넌트가 쥐고 앱은 안에 담을 것만 준다.
50
+ * 방향은 자리가 정한다 — 판·접힌 레일이면 버튼 오른쪽, 상단바면 아래.
51
+ */
52
+ listBox?: ReactNode;
53
+ /**
54
+ * 알림 목록이 열리고 닫힐 때. 여닫는 것은 알림 버튼이 스스로 하므로 **그 사실을 알아야 할
55
+ * 때만** 준다(연 김에 읽음 처리하거나, 열려 있는 동안 다른 층을 접어 두는 화면).
56
+ *
57
+ * 앱이 누르지 않은 닫힘도 온다: GNB 를 접거나 펴면 알림 버튼이 다른 자리로 옮겨 서므로
58
+ * 목록이 닫히고 `false` 가 온다(계정 행과 같다).
59
+ */
60
+ onOpenChange?: (open: boolean) => void;
61
+ /**
62
+ * 안내 툴팁이 닫힐 때. 받아서 `tooltip` 을 비워 두는 것이 기본 사용법이다 — 그러면 앱이
63
+ * 다음에 넘기는 문구가 곧 다음 안내가 된다.
64
+ *
65
+ * 컴포넌트가 아는 "다시 뜨지 않는다" 는 **이 자리가 서 있는 동안**뿐이라(새로고침하거나
66
+ * GNB 를 접어 알림이 다른 자리로 옮겨 서면 새로 마운트된다), 그 사용자에게 두 번 다시 보이지
67
+ * 않아야 하면 앱이 이 신호를 저장해 두고 `tooltip` 을 그만 넘긴다.
68
+ */
69
+ onTooltipDismiss?: () => void;
70
+ }
71
+ /** 설정 버튼 */
72
+ export interface SGnbSystemSetting {
73
+ /** 라벨 텍스트. 기본 `'설정'` */
74
+ label?: string;
75
+ /** 클릭 */
76
+ onClick?: () => void;
77
+ }
78
+ /** 계정 행 */
79
+ export interface SGnbSystemAccount {
80
+ /** 계정 이름 */
81
+ label?: string;
82
+ /** 클릭. 패널은 어차피 열리므로, 여는 것 말고 따로 할 일이 있을 때만 준다 */
83
+ onClick?: () => void;
84
+ /**
85
+ * 계정 리스트박스가 열리고 닫힐 때. 여닫는 것은 계정 행이 스스로 하므로 **그 사실을 알아야 할
86
+ * 때만** 준다 — 열려 있는 동안 다른 층을 접어 두거나, 연 것을 기록하는 화면이 그렇다.
87
+ *
88
+ * 앱이 누르지 않은 닫힘도 온다: `header="fix"` 에서 GNB 를 접거나 펴면 계정 행이 다른 자리로
89
+ * 옮겨 서므로 패널이 닫히고 `false` 가 온다.
90
+ */
91
+ onOpenChange?: (open: boolean) => void;
92
+ /**
93
+ * 누르면 뜨는 계정 리스트박스(`SAccountListBox`) 내용. **필수다** — 계정 행은 늘 이 패널의
94
+ * 트리거이고, 눌러도 아무것도 뜨지 않는 계정 행은 없다.
95
+ * 뜨는 방향은 패널이 놓인 자리가 정하므로 앱이 넘기지 않는다.
96
+ */
97
+ listBox: SAccountListBoxContent;
98
+ }
99
+ export interface SGnbSystemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
100
+ /**
101
+ * 색상(패널 표면). light = 흰 면, dark = 오션블루 면.
102
+ * 미지정 시 자기를 담은 SGnb 의 color 를 따른다(단독으로 쓰면 `'light'`).
103
+ */
104
+ color?: SGnbSystemColor;
105
+ /**
106
+ * 접힌(min) 형태 — 48px 레일 폭에 맞춰 알림·계정 아이콘만 남는다.
107
+ * 미지정 시 자기를 담은 SGnb 의 접힘 상태를 따른다. 상단바 자리에서는 뜻이 없다.
108
+ */
109
+ folded?: boolean;
110
+ /**
111
+ * 행 목록. 각 원소는 `SSystemActionButton` 의 props 다(`color` 제외 · 계정 행은 `account` 로
112
+ * 따로 준다). 판에서는 맨 위에 쌓이고,
113
+ * 상단바에서는 맨 왼쪽에 선다. 옆(아래)에 다른 조각이 있으면 그 사이에 구분선이 그어진다.
114
+ * 접히면 자리가 없어 렌더되지 않는다.
115
+ */
116
+ actions?: SGnbSystemAction[];
117
+ /** 도메인 태그 텍스트. 접히면 자리가 없어 렌더되지 않는다 */
118
+ domain?: string;
119
+ /**
120
+ * 알림 버튼. 없으면 렌더하지 않는다. 판에서는 설정과 나란히 서면 남는 폭을 먹고 혼자면 폭을 다 먹는다.
121
+ * 상단바에서는 자리가 넉넉하지 않아 라벨 없이 아이콘+개수만 선다.
122
+ */
123
+ alert?: SGnbSystemAlert;
124
+ /**
125
+ * 설정 버튼. 없으면 렌더하지 않는다. 판에서는 알림과 나란히 서면 제 폭만 갖고 혼자면 폭을 다 먹고,
126
+ * 상단바에서는 라벨 없이 아이콘만 선다.
127
+ * 접히면 자리가 없어 렌더되지 않는다 — 접힌 상태에서도 닿아야 하면 SGnb 의 `foldedFooter` 에 둔다.
128
+ */
129
+ setting?: SGnbSystemSetting;
130
+ /** 계정 행. 없으면 렌더하지 않는다 */
131
+ account?: SGnbSystemAccount;
132
+ }
133
+ /**
134
+ * SGnbSystem — GNB 의 system 조각들(액션 · 도메인 · 알림 · 설정 · 계정).
135
+ *
136
+ * 어디에 놓이느냐로 두 형태가 있고, 그 자리는 담은 SGnb 의 `header` 가 정해 내려준다(앱이 고르지 않는다).
137
+ * - `panel` (header="fix") — GNB 바닥에 깔리는 세로 판. 위에서부터 [행 목록(`actions`)] · 구분선 ·
138
+ * [도메인 태그] · [알림 | 설정] · [계정] 을 쌓는다.
139
+ * - `top` (header="full") — 레이아웃 전폭 상단바의 오른쪽 끝에 서는 가로 한 줄.
140
+ * [행 목록] | [알림] | [설정] | [도메인 계정] 순으로 서고 조각 사이에 세로 구분선이 놓인다
141
+ * (도메인·계정은 한 덩어리라 그 사이만 선 없이 붙는다).
142
+ *
143
+ * 각 조각은 해당 prop 을 줄 때만 나타나므로, 서비스마다 필요한 만큼만 켜서 쓴다 — 계정만, 알림만,
144
+ * 설정만, 알림+계정 … 어떤 부분집합이어도 그 조합만으로 판이 성립하도록 다음을 지킨다.
145
+ *
146
+ * - **구분선은 양쪽에 내용이 있을 때만** 긋는다. `actions` 만 주면 뜻 없는 선이 남지 않는다.
147
+ * - **판에서 알림·설정은 혼자 서면 폭을 다 먹는다.** 둘이 나란히 서면 알림이 남는 폭을, 설정이 제 폭을
148
+ * 갖고 사이에 세로선이 놓인다. 어느 쪽이 빠져도 왼쪽 끝은 위아래 행과 맞는다.
149
+ * - **켜진 조각이 하나도 없으면 아무것도 렌더하지 않는다** — 빈 판은 GNB 바닥에 정체 모를 경계선만 남긴다.
150
+ *
151
+ * 판에서 알림·설정·계정은 늘 함께 붙어 다니는 한 덩어리라 사이를 띄우지 않고, 그 위 조각들만 간격을 갖는다.
152
+ * 상단바에서는 자리가 가로로 넉넉하지 않아 알림·설정이 라벨을 벗고 아이콘(+개수)만 남는다.
153
+ *
154
+ * `folded` 면 48px 레일 폭에 맞춘 min 형태가 된다 — **알림·계정 아이콘만** 남고 라벨·태그·행 목록·설정은
155
+ * 빠진다(시안). 알림 개수는 적을 자리가 없어 점 배지로 바뀐다. 둘 다 없는 조합(설정만 쓰는 앱 등)이면
156
+ * 접힌 패널은 렌더되지 않으므로, 접힌 상태에서도 닿아야 하는 것은 SGnb 의 `foldedTop`·`foldedFooter` 에 둔다.
157
+ * 상단바는 접어도 남으므로 `top` 에는 접힘 형태가 없다.
158
+ *
159
+ * `alert.count` 가 1 이상이면 벨이 울리는 아이콘(`bellRinging`)과 강조색으로 바뀐다 — light 는 파랑,
160
+ * 어두운 면은 노랑(토큰이 정한다). 0 이거나 없으면 조용한 벨(`bell`)에 기본 색이다.
161
+ *
162
+ * 안내 툴팁(`alert.tooltip`)은 문구를 받은 동안 떠 있다가 알림을 누르거나 커서를 빼면 닫힌다.
163
+ * 다시 띄우는 신호는 문구가 **없음 → 있음** 으로 바뀌는 것이라, 같은 문구도 비웠다 다시 넘기면
164
+ * 새 안내로 뜬다.
165
+ *
166
+ * 판이 **메뉴 기본 폭보다 좁으면**(GNB 의 `resizable` 로 줄인 컬럼) 알림 개수를 적을 가로가
167
+ * 모자라 접힘과 같은 점 배지로 바뀐다 — 숫자가 설정 버튼을 밀어내거나 잘리는 대신, 알림이
168
+ * 있다는 사실만 남긴다. 좁은지는 담은 SGnb 가 내려주므로 앱이 고르는 prop 이 없다.
169
+ *
170
+ * 색은 놓인 면을 따른다: 판 위는 `light`/`dark`(오션블루 판), 판 없이 상단바 면에 바로 얹는 `top` 의
171
+ * dark 는 한 단계 어두운 `darker`(네이비) 색표다 — GNB_SYSTEM_TOP_COLOR_CONFIG 가 그 대응을 쥔다.
172
+ *
173
+ * **놓이는 자리(`placement`)는 prop 이 아니다** — 자기를 담은 SGnb 가 `header` 로 정해 내려준다.
174
+ * 앱이 고르면 세로 판 자리에 가로 한 줄이 서는 조합이 만들어지고, 그것을 고를 이유가 있는 화면은 없다.
175
+ * `color`·`folded` 도 슬롯 안에서는 GNB 가 내려주므로 다시 넘기지 않는다.
176
+ * 판은 폭이 늘 부모를 가득 채우고, 상단바 줄은 내용 폭만 갖는다.
177
+ */
178
+ export declare const SGnbSystem: import("react").ForwardRefExoticComponent<SGnbSystemProps & import("react").RefAttributes<HTMLDivElement>>;
179
+ export {};
@@ -0,0 +1,122 @@
1
+ import type { SSystemActionButtonColor } from '../SSystemActionButton';
2
+ /**
3
+ * SGnbSystem 설정.
4
+ *
5
+ * 토큰은 GNB system 패널 한 벌(`--cmp-gnb-system-*`)이다.
6
+ * 패널(배경·경계·구분선·간격) → --cmp-gnb-system-panel-*
7
+ * 도메인 태그 → --cmp-gnb-system-domainTag-*
8
+ * 행 공통(높이·라운드·아이콘 프레임) → --cmp-gnb-system-item-* (SSystemActionButton 과 공유)
9
+ * 알림 버튼 → --cmp-gnb-system-alertButton-*
10
+ * 설정 버튼 → --cmp-gnb-system-setting-*
11
+ * 펼침·접힘 패널 여백 → --cmp-gnb-system-project-padding · --cmp-gnb-system-min-padding
12
+ *
13
+ * 타이포그래피는 CSS 변수가 아니라 `.typo-*` 프리셋으로 나온다.
14
+ * domainTag.typography → typo-body-sm-medium (12/500/20)
15
+ * item.label.typography → typo-body-sm-semibold (12/600/20)
16
+ * alertButton.count → typo-body-md-bold (13/700/22)
17
+ */
18
+ /** 색상(표면). light = 흰 면, dark = 오션블루 면. GNB 의 color 를 그대로 따라간다 */
19
+ export declare const GNB_SYSTEM_COLORS: readonly ["light", "dark"];
20
+ export type SGnbSystemColor = (typeof GNB_SYSTEM_COLORS)[number];
21
+ /**
22
+ * 조각들이 놓이는 자리. GNB 의 `header` 가 정하므로 앱이 고르지 않는다.
23
+ * - `panel` — GNB 바닥에 깔리는 세로 판 (header="fix"). 접히면 48px 레일용 min 형태가 된다.
24
+ * - `top` — 레이아웃 전폭 상단바 위 (header="full"). 판을 깔지 않고 가로 한 줄로 선다.
25
+ */
26
+ export declare const GNB_SYSTEM_PLACEMENTS: readonly ["panel", "top"];
27
+ export type SGnbSystemPlacement = (typeof GNB_SYSTEM_PLACEMENTS)[number];
28
+ /**
29
+ * 패널 색이 곧 행 색이다 — 행(아이콘 프레임·라벨·hover)은 SSystemActionButton 과 같은
30
+ * `--cmp-gnb-system-item-*` 토큰을 쓰므로, 그 색표를 그대로 빌려 두 컴포넌트가 어긋나지 않게 한다.
31
+ * `darker`(판 없이 어두운 GNB 면에 바로 얹는 색)는 판을 깔지 않는 `top` 자리가 쓴다
32
+ * → GNB_SYSTEM_TOP_COLOR_CONFIG.
33
+ */
34
+ export type GnbSystemItemColor = SSystemActionButtonColor;
35
+ export interface GnbSystemColorTokens {
36
+ /** 패널 배경 */
37
+ bg: string;
38
+ /**
39
+ * 패널 위쪽 경계 (GNB 본문과 나누는 선). 배경만으로 경계가 읽히는 색에서는 없다.
40
+ * 토큰에는 light·dark 모두 정의돼 있지만, dark 는 시안이 선을 긋지 않는다 — 아래 주석 참고.
41
+ */
42
+ border?: string;
43
+ /** 패널 안 구분선 (가로 divider · 알림↔설정 세로선) */
44
+ divider: string;
45
+ /** 도메인 태그 배경 */
46
+ domainBg: string;
47
+ /** 도메인 태그 글자색 */
48
+ domainText: string;
49
+ /** 알림이 있을 때의 벨 글리프색 */
50
+ alertIcon: string;
51
+ /** 알림 개수(펼침) · 점 배지(접힘) 색 */
52
+ alertCount: string;
53
+ /** 알림이 있을 때의 hover 배경. 없으면 행 기본 hover 를 쓴다 */
54
+ alertHoverBg?: string;
55
+ }
56
+ export declare const GNB_SYSTEM_COLOR_CONFIG: Record<SGnbSystemColor, GnbSystemColorTokens>;
57
+ /**
58
+ * `top` 자리(전폭 상단바)의 색.
59
+ *
60
+ * 상단바에는 판을 깔지 않고 조각을 GNB 면에 바로 얹는다 — 그래서 행 색이 패널과 한 단계 다르다.
61
+ * dark 는 패널의 오션블루(`dark`)가 아니라 GNB 네이비 면용 `darker` 를 쓰고, 구분선·도메인 태그도
62
+ * 그에 맞춘 `*-darker-*` 토큰을 쓴다. 알림 강조색은 darker 대응 토큰이 없어 dark 값을 그대로 쓴다
63
+ * (두 면 모두 어두운 면이라 같은 노랑이 맞는다).
64
+ */
65
+ export interface GnbSystemTopColorTokens {
66
+ /** 조각(액션·알림·설정·계정)이 쓰는 행 색 */
67
+ item: GnbSystemItemColor;
68
+ /** 조각 사이 세로 구분선 */
69
+ divider: string;
70
+ /** 도메인 태그 배경 */
71
+ domainBg: string;
72
+ /** 도메인 태그 글자색 */
73
+ domainText: string;
74
+ /** 알림이 있을 때의 벨 글리프색 */
75
+ alertIcon: string;
76
+ /** 알림 개수 색 */
77
+ alertCount: string;
78
+ /** 알림이 있을 때의 hover 배경. 없으면 행 기본 hover 를 쓴다 */
79
+ alertHoverBg?: string;
80
+ }
81
+ export declare const GNB_SYSTEM_TOP_COLOR_CONFIG: Record<SGnbSystemColor, GnbSystemTopColorTokens>;
82
+ /** 치수 — 전부 토큰 참조 */
83
+ export declare const GNB_SYSTEM_LAYOUT: {
84
+ /** 펼친 패널의 안쪽 여백 */
85
+ readonly padding: "var(--cmp-gnb-system-project-padding)";
86
+ /** 접힌(min) 패널의 안쪽 여백 */
87
+ readonly foldedPadding: "var(--cmp-gnb-system-min-padding)";
88
+ /**
89
+ * 패널이 쌓는 블록 사이 간격. 알림↔설정 사이의 가로 간격도 전용 토큰이 없어 이 값을 쓴다
90
+ * (시안에서 두 간격이 같다).
91
+ */
92
+ readonly gap: string;
93
+ /** 행 높이 */
94
+ readonly itemHeight: string;
95
+ /** 행 라운드 */
96
+ readonly itemRadius: string;
97
+ /** 아이콘 프레임 한 변 */
98
+ readonly iconFrame: string;
99
+ /** 아이콘 글리프 크기 */
100
+ readonly iconGlyph: string;
101
+ /** 아이콘 프레임 라운드 */
102
+ readonly iconRadius: string;
103
+ /** 아이콘 프레임 ↔ 라벨 간격 */
104
+ readonly iconLabelGap: string;
105
+ /** 알림 버튼 좌우 여백 */
106
+ readonly alertPaddingX: string;
107
+ /** 설정 버튼 좌우 여백 */
108
+ readonly settingPaddingX: "var(--cmp-gnb-system-setting-paddingX)";
109
+ /** 도메인 태그 */
110
+ readonly domainPaddingX: string;
111
+ readonly domainPaddingY: string;
112
+ readonly domainRadius: string;
113
+ };
114
+ /**
115
+ * 알림 점 배지 지름(px). 접힌 패널에는 개수를 적을 자리가 없어 점만 찍는다.
116
+ * 전용 토큰이 없어 시안 값을 상수로 둔다.
117
+ */
118
+ export declare const GNB_SYSTEM_ALERT_DOT_SIZE = 6;
119
+ /** 알림 버튼 기본 라벨 */
120
+ export declare const GNB_SYSTEM_ALERT_LABEL = "\uC54C\uB9BC";
121
+ /** 설정 버튼 기본 라벨 */
122
+ export declare const GNB_SYSTEM_SETTING_LABEL = "\uC124\uC815";
@@ -0,0 +1,2 @@
1
+ export { SGnbSystem, type SGnbSystemProps, type SGnbSystemAction, type SGnbSystemAlert, type SGnbSystemSetting, type SGnbSystemAccount, } from './SGnbSystem';
2
+ export { GNB_SYSTEM_COLORS, GNB_SYSTEM_COLOR_CONFIG, GNB_SYSTEM_LAYOUT, GNB_SYSTEM_PLACEMENTS, GNB_SYSTEM_TOP_COLOR_CONFIG, type SGnbSystemColor, type SGnbSystemPlacement, type GnbSystemColorTokens, type GnbSystemTopColorTokens, } from './gnbSystem.config';
@@ -17,6 +17,21 @@
17
17
  | `className?` | `string` | — | |
18
18
  | `style?` | `CSSProperties` | — | |
19
19
 
20
+ ## Types
21
+
22
+ ### SGuideType
23
+
24
+ ```ts
25
+ export type SGuideType = 'tip' | 'notion';
26
+ ```
27
+
28
+ ### SGuideMessage
29
+
30
+ ```ts
31
+ /** 중첩 배열로 depth 표현 (원본 renderListItem 대응). 예: ['상위', ['하위1', '하위2']] */
32
+ export type SGuideMessage = string | SGuideMessage[];
33
+ ```
34
+
20
35
  ## Dependencies
21
36
 
22
37
  ### Depends on
@@ -20,6 +20,7 @@
20
20
 
21
21
  ### Used by
22
22
 
23
+ - [SAccountListBox](../SAccountListBox)
23
24
  - [SButton](../SButton)
24
25
  - [SCallout](../SCallout)
25
26
  - [SCheckbox](../SCheckbox)
@@ -30,11 +31,13 @@
30
31
  - [SDateRangePicker](../SDateRangePicker)
31
32
  - [SDraggableItem](../SDraggableItem)
32
33
  - [SDropdownButton](../SDropdownButton)
34
+ - [SEditor](../SEditor)
33
35
  - [SExpansionItem](../SExpansionItem)
34
36
  - [SField](../SField)
35
37
  - [SFilePicker](../SFilePicker)
36
38
  - [SGhostButton](../SGhostButton)
37
39
  - [SGnb](../SGnb)
40
+ - [SGnbSystem](../SGnbSystem)
38
41
  - [SGuide](../SGuide)
39
42
  - [SImage](../SImage)
40
43
  - [SKeyValueTable](../SKeyValueTable)
@@ -43,9 +46,11 @@
43
46
  - [SNumberInput](../SNumberInput)
44
47
  - [SPagination](../SPagination)
45
48
  - [SPopover](../SPopover)
49
+ - [SSearchInput](../SSearchInput)
46
50
  - [SSectionHeaderCard](../SSectionHeaderCard)
47
51
  - [SSelect](../SSelect)
48
52
  - [SStepper](../SStepper)
53
+ - [SSystemActionButton](../SSystemActionButton)
49
54
  - [STable](../STable)
50
55
  - [STag](../STag)
51
56
  - [STextLink](../STextLink)
@@ -58,6 +63,7 @@
58
63
 
59
64
  ```mermaid
60
65
  graph TD;
66
+ SAccountListBox --> SIcon
61
67
  SButton --> SIcon
62
68
  SCallout --> SIcon
63
69
  SCheckbox --> SIcon
@@ -68,11 +74,13 @@ graph TD;
68
74
  SDateRangePicker --> SIcon
69
75
  SDraggableItem --> SIcon
70
76
  SDropdownButton --> SIcon
77
+ SEditor --> SIcon
71
78
  SExpansionItem --> SIcon
72
79
  SField --> SIcon
73
80
  SFilePicker --> SIcon
74
81
  SGhostButton --> SIcon
75
82
  SGnb --> SIcon
83
+ SGnbSystem --> SIcon
76
84
  SGuide --> SIcon
77
85
  SImage --> SIcon
78
86
  SKeyValueTable --> SIcon
@@ -81,9 +89,11 @@ graph TD;
81
89
  SNumberInput --> SIcon
82
90
  SPagination --> SIcon
83
91
  SPopover --> SIcon
92
+ SSearchInput --> SIcon
84
93
  SSectionHeaderCard --> SIcon
85
94
  SSelect --> SIcon
86
95
  SStepper --> SIcon
96
+ SSystemActionButton --> SIcon
87
97
  STable --> SIcon
88
98
  STag --> SIcon
89
99
  STextLink --> SIcon
@@ -17,6 +17,6 @@ export interface SIconProps {
17
17
  }
18
18
  /**
19
19
  * SIcon — sd-icon 포팅.
20
- * 94개 SVG(icons.gen.tsx)를 currentColor 기반으로 렌더한다.
20
+ * icons.gen.tsx 의 SVG 를 currentColor 기반으로 렌더한다.
21
21
  */
22
22
  export declare const SIcon: import("react").ForwardRefExoticComponent<SIconProps & import("react").RefAttributes<HTMLSpanElement>>;