sellmate-design-system-react 9.0.0-beta.29 → 9.0.0-beta.30

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 (35) hide show
  1. package/AGENTS.md +39 -2
  2. package/dist/components/SChipFilter/README.md +7 -8
  3. package/dist/components/SChipFilter/SChipFilter.d.ts +10 -16
  4. package/dist/components/SChipFilter/index.d.ts +1 -1
  5. package/dist/components/SChipInput/index.d.ts +1 -1
  6. package/dist/components/SConfirmModal/README.md +3 -3
  7. package/dist/components/SConfirmModal/SConfirmModal.d.ts +2 -2
  8. package/dist/components/SConfirmModal/index.d.ts +1 -1
  9. package/dist/components/SDraggableItem/index.d.ts +1 -1
  10. package/dist/components/SExpansionItem/index.d.ts +1 -1
  11. package/dist/components/SGnb/README.md +6 -0
  12. package/dist/components/SGnb/SGnb.d.ts +22 -0
  13. package/dist/components/SGnb/index.d.ts +1 -1
  14. package/dist/components/SGnbSystem/README.md +121 -0
  15. package/dist/components/SGnbSystem/SGnbSystem.d.ts +93 -0
  16. package/dist/components/SGnbSystem/gnbSystem.config.d.ts +89 -0
  17. package/dist/components/SGnbSystem/index.d.ts +2 -0
  18. package/dist/components/SIcon/README.md +2 -0
  19. package/dist/components/SKeyValueTable/index.d.ts +1 -1
  20. package/dist/components/SLayout/index.d.ts +1 -1
  21. package/dist/components/SListItem/index.d.ts +1 -1
  22. package/dist/components/SLoadingModal/README.md +3 -3
  23. package/dist/components/SLoadingModal/SLoadingModal.d.ts +2 -2
  24. package/dist/components/SLoadingModal/index.d.ts +1 -1
  25. package/dist/components/SSystemActionButton/README.md +5 -0
  26. package/dist/components/SToggle/index.d.ts +1 -1
  27. package/dist/index.cjs +530 -203
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +526 -204
  31. package/dist/index.js.map +1 -1
  32. package/dist/llms-full.txt +178 -16
  33. package/dist/llms.txt +41 -4
  34. package/dist/styles.css +81 -0
  35. package/package.json +1 -1
@@ -0,0 +1,89 @@
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
+ * 패널 색이 곧 행 색이다 — 행(아이콘 프레임·라벨·hover)은 SSystemActionButton 과 같은
23
+ * `--cmp-gnb-system-item-*` 토큰을 쓰므로, 그 색표를 그대로 빌려 두 컴포넌트가 어긋나지 않게 한다.
24
+ * `darker`(패널 없이 어두운 GNB 면에 바로 얹는 색)는 패널에 대응 토큰이 없어 노출하지 않는다.
25
+ */
26
+ export type GnbSystemItemColor = SSystemActionButtonColor;
27
+ export interface GnbSystemColorTokens {
28
+ /** 패널 배경 */
29
+ bg: string;
30
+ /**
31
+ * 패널 위쪽 경계 (GNB 본문과 나누는 선). 배경만으로 경계가 읽히는 색에서는 없다.
32
+ * 토큰에는 light·dark 모두 정의돼 있지만, dark 는 시안이 선을 긋지 않는다 — 아래 주석 참고.
33
+ */
34
+ border?: string;
35
+ /** 패널 안 구분선 (가로 divider · 알림↔설정 세로선) */
36
+ divider: string;
37
+ /** 도메인 태그 배경 */
38
+ domainBg: string;
39
+ /** 도메인 태그 글자색 */
40
+ domainText: string;
41
+ /** 알림이 있을 때의 벨 글리프색 */
42
+ alertIcon: string;
43
+ /** 알림 개수(펼침) · 점 배지(접힘) 색 */
44
+ alertCount: string;
45
+ /** 알림이 있을 때의 hover 배경. 없으면 행 기본 hover 를 쓴다 */
46
+ alertHoverBg?: string;
47
+ }
48
+ export declare const GNB_SYSTEM_COLOR_CONFIG: Record<SGnbSystemColor, GnbSystemColorTokens>;
49
+ /** 치수 — 전부 토큰 참조 */
50
+ export declare const GNB_SYSTEM_LAYOUT: {
51
+ /** 펼친 패널의 안쪽 여백 */
52
+ readonly padding: "var(--cmp-gnb-system-project-padding)";
53
+ /** 접힌(min) 패널의 안쪽 여백 */
54
+ readonly foldedPadding: "var(--cmp-gnb-system-min-padding)";
55
+ /**
56
+ * 패널이 쌓는 블록 사이 간격. 알림↔설정 사이의 가로 간격도 전용 토큰이 없어 이 값을 쓴다
57
+ * (시안에서 두 간격이 같다).
58
+ */
59
+ readonly gap: string;
60
+ /** 행 높이 */
61
+ readonly itemHeight: string;
62
+ /** 행 라운드 */
63
+ readonly itemRadius: string;
64
+ /** 아이콘 프레임 한 변 */
65
+ readonly iconFrame: string;
66
+ /** 아이콘 글리프 크기 */
67
+ readonly iconGlyph: string;
68
+ /** 아이콘 프레임 라운드 */
69
+ readonly iconRadius: string;
70
+ /** 아이콘 프레임 ↔ 라벨 간격 */
71
+ readonly iconLabelGap: string;
72
+ /** 알림 버튼 좌우 여백 */
73
+ readonly alertPaddingX: string;
74
+ /** 설정 버튼 좌우 여백 */
75
+ readonly settingPaddingX: "var(--cmp-gnb-system-setting-paddingX)";
76
+ /** 도메인 태그 */
77
+ readonly domainPaddingX: string;
78
+ readonly domainPaddingY: string;
79
+ readonly domainRadius: string;
80
+ };
81
+ /**
82
+ * 알림 점 배지 지름(px). 접힌 패널에는 개수를 적을 자리가 없어 점만 찍는다.
83
+ * 전용 토큰이 없어 시안 값을 상수로 둔다.
84
+ */
85
+ export declare const GNB_SYSTEM_ALERT_DOT_SIZE = 6;
86
+ /** 알림 버튼 기본 라벨 */
87
+ export declare const GNB_SYSTEM_ALERT_LABEL = "\uC54C\uB9BC";
88
+ /** 설정 버튼 기본 라벨 */
89
+ 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, type SGnbSystemColor, type GnbSystemColorTokens, } from './gnbSystem.config';
@@ -36,6 +36,7 @@
36
36
  - [SFilePicker](../SFilePicker)
37
37
  - [SGhostButton](../SGhostButton)
38
38
  - [SGnb](../SGnb)
39
+ - [SGnbSystem](../SGnbSystem)
39
40
  - [SGuide](../SGuide)
40
41
  - [SImage](../SImage)
41
42
  - [SKeyValueTable](../SKeyValueTable)
@@ -77,6 +78,7 @@ graph TD;
77
78
  SFilePicker --> SIcon
78
79
  SGhostButton --> SIcon
79
80
  SGnb --> SIcon
81
+ SGnbSystem --> SIcon
80
82
  SGuide --> SIcon
81
83
  SImage --> SIcon
82
84
  SKeyValueTable --> SIcon
@@ -1 +1 @@
1
- export { SKeyValueTable, type SKeyValueTableProps, type SKeyValueField, type SKeyValueFieldType, type SKeyValueChangeDetail, } from './SKeyValueTable';
1
+ export { SKeyValueTable, type SKeyValueTableProps, type SKeyValueField, type SKeyValueFieldBase, type SKeyValueFieldByType, type SKeyValueFieldType, type SKeyValueFieldValue, type SKeyValueChangeDetail, } from './SKeyValueTable';
@@ -1 +1 @@
1
- export { SLayout, SLayoutContext, SLAYOUT_MIN_WIDTH, useSLayout, type SLayoutProps, type SLayoutType, type SLayoutHeader, type SLayoutContextValue, } from './SLayout';
1
+ export { SLayout, SLayoutContext, SLAYOUT_MIN_WIDTH, useSLayout, type SLayoutProps, type SLayoutType, type SLayoutHeader, type SLayoutNavState, type SLayoutContextValue, } from './SLayout';
@@ -1 +1 @@
1
- export { SListItem, type SListItemProps, type SListItemSupportingTextPosition } from './SListItem';
1
+ export { SListItem, type SListItemInteraction, type SListItemProps, type SListItemRenderProp, type SListItemRenderState, type SListItemSize, type SListItemSlot, type SListItemSupportingTextPosition, } from './SListItem';
@@ -10,7 +10,7 @@
10
10
  |------|------|---------|-------------|
11
11
  | `open?` | `boolean` | — | |
12
12
  | `persistent?` | `boolean` | — | 백드롭·ESC로 안 닫히고 흔들림 (sd-modal-container persistent). **기본값 true** |
13
- | `state?` | `LoadingModalState` | `'loading'` | 상태 (loading: 스피너, error: 경고 아이콘) |
13
+ | `state?` | `SLoadingModalState` | `'loading'` | 상태 (loading: 스피너, error: 경고 아이콘) |
14
14
  | `progress?` | `number` | — | 진행률 (0–100) — 지정 시 determinate 스피너 |
15
15
  | `message?` | `string \| string[]` | — | 메시지 (없으면 state 기본값) |
16
16
  | `useButton?` | `boolean` | `false` | 하단 버튼 표시 |
@@ -28,10 +28,10 @@
28
28
 
29
29
  ## Types
30
30
 
31
- ### LoadingModalState
31
+ ### SLoadingModalState
32
32
 
33
33
  ```ts
34
- export type LoadingModalState = 'loading' | 'error';
34
+ export type SLoadingModalState = 'loading' | 'error';
35
35
  ```
36
36
 
37
37
  ## Dependencies
@@ -1,4 +1,4 @@
1
- export type LoadingModalState = 'loading' | 'error';
1
+ export type SLoadingModalState = 'loading' | 'error';
2
2
  export interface SLoadingModalProps {
3
3
  open?: boolean;
4
4
  onOpenChange?: (open: boolean) => void;
@@ -7,7 +7,7 @@ export interface SLoadingModalProps {
7
7
  /** 백드롭·ESC로 안 닫히고 흔들림 (sd-modal-container persistent). **기본값 true** */
8
8
  persistent?: boolean;
9
9
  /** 상태 (loading: 스피너, error: 경고 아이콘) */
10
- state?: LoadingModalState;
10
+ state?: SLoadingModalState;
11
11
  /** 진행률 (0–100) — 지정 시 determinate 스피너 */
12
12
  progress?: number;
13
13
  /** 메시지 (없으면 state 기본값) */
@@ -1 +1 @@
1
- export { SLoadingModal, type SLoadingModalProps } from './SLoadingModal';
1
+ export { SLoadingModal, type SLoadingModalProps, type SLoadingModalState } from './SLoadingModal';
@@ -114,6 +114,10 @@ export const SYSTEM_ACTION_BUTTON_COLORS = ['light', 'dark', 'darker'] as const;
114
114
 
115
115
  ## Dependencies
116
116
 
117
+ ### Used by
118
+
119
+ - [SGnbSystem](../SGnbSystem)
120
+
117
121
  ### Depends on
118
122
 
119
123
  - [SIcon](../SIcon)
@@ -125,5 +129,6 @@ export const SYSTEM_ACTION_BUTTON_COLORS = ['light', 'dark', 'darker'] as const;
125
129
  graph TD;
126
130
  SSystemActionButton --> SIcon
127
131
  SSystemActionButton --> STag
132
+ SGnbSystem --> SSystemActionButton
128
133
  style SSystemActionButton fill:#f9f,stroke:#333,stroke-width:4px
129
134
  ```
@@ -1 +1 @@
1
- export { SToggle, type SToggleProps } from './SToggle';
1
+ export { SToggle, type SToggleProps, type SToggleSize } from './SToggle';