sellmate-design-system-react 3.0.0 → 3.2.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 (78) hide show
  1. package/AGENTS.md +695 -0
  2. package/README.md +106 -0
  3. package/bin/sellmate-ds.mjs +337 -0
  4. package/dist/components/SActionModal/README.md +41 -0
  5. package/dist/components/SBadge/README.md +25 -0
  6. package/dist/components/SBarcodeInput/README.md +64 -0
  7. package/dist/components/SButton/README.md +49 -0
  8. package/dist/components/SCalendar/README.md +42 -0
  9. package/dist/components/SCallout/README.md +29 -0
  10. package/dist/components/SCard/README.md +12 -0
  11. package/dist/components/SCheckbox/README.md +44 -0
  12. package/dist/components/SChip/README.md +57 -0
  13. package/dist/components/SChipInput/README.md +77 -0
  14. package/dist/components/SCircleProgress/README.md +35 -0
  15. package/dist/components/SConfirmModal/README.md +61 -0
  16. package/dist/components/SDatePicker/README.md +62 -0
  17. package/dist/components/SDateRangePicker/README.md +64 -0
  18. package/dist/components/SDivider/README.md +25 -0
  19. package/dist/components/SDraggableItem/README.md +40 -0
  20. package/dist/components/SDropdownButton/README.md +50 -0
  21. package/dist/components/SExpansionItem/README.md +40 -0
  22. package/dist/components/SField/README.md +91 -0
  23. package/dist/components/SFilePicker/README.md +72 -0
  24. package/dist/components/SForm/README.md +31 -0
  25. package/dist/components/SGhostButton/README.md +76 -0
  26. package/dist/components/SGnb/README.md +56 -0
  27. package/dist/components/SGuide/README.md +34 -0
  28. package/dist/components/SIcon/README.md +91 -0
  29. package/dist/components/SInput/README.md +66 -0
  30. package/dist/components/SKeyValueTable/README.md +59 -0
  31. package/dist/components/SLayout/README.md +42 -0
  32. package/dist/components/SLinearProgress/README.md +17 -0
  33. package/dist/components/SList/README.md +14 -0
  34. package/dist/components/SListItem/README.md +19 -0
  35. package/dist/components/SLoadingContainer/README.md +29 -0
  36. package/dist/components/SLoadingModal/README.md +52 -0
  37. package/dist/components/SModal/README.md +192 -0
  38. package/dist/components/SModalContainer/README.md +49 -0
  39. package/dist/components/SNumberInput/README.md +74 -0
  40. package/dist/components/SPage/README.md +25 -0
  41. package/dist/components/SPagination/README.md +40 -0
  42. package/dist/components/SPopover/README.md +54 -0
  43. package/dist/components/SPopup/README.md +38 -0
  44. package/dist/components/SPortal/README.md +51 -0
  45. package/dist/components/SRadio/README.md +57 -0
  46. package/dist/components/SRadioButton/README.md +24 -0
  47. package/dist/components/SScrollArea/README.md +16 -0
  48. package/dist/components/SSectionHeaderCard/README.md +51 -0
  49. package/dist/components/SSelect/README.md +79 -0
  50. package/dist/components/SStepper/README.md +30 -0
  51. package/dist/components/SSwitch/README.md +24 -0
  52. package/dist/components/STable/README.md +82 -0
  53. package/dist/components/STableBar/README.md +28 -0
  54. package/dist/components/STabs/README.md +37 -0
  55. package/dist/components/STag/README.md +44 -0
  56. package/dist/components/STextLink/README.md +48 -0
  57. package/dist/components/STextarea/README.md +60 -0
  58. package/dist/components/STimePicker/README.md +65 -0
  59. package/dist/components/STimeRangePicker/README.md +63 -0
  60. package/dist/components/SToast/README.md +70 -0
  61. package/dist/components/SToggle/README.md +22 -0
  62. package/dist/components/STooltip/README.md +57 -0
  63. package/dist/llms-full.txt +3530 -0
  64. package/dist/llms.txt +882 -0
  65. package/dist/styles.css +221 -0
  66. package/dist/theme.css +8 -0
  67. package/eslint/index.mjs +69 -0
  68. package/eslint/lib/class-names.mjs +119 -0
  69. package/eslint/lib/table-column.mjs +53 -0
  70. package/eslint/rules/component-group-gap.mjs +186 -0
  71. package/eslint/rules/no-arbitrary-class.mjs +91 -0
  72. package/eslint/rules/no-off-scale-spacing.mjs +67 -0
  73. package/eslint/rules/no-raw-html-control.mjs +117 -0
  74. package/eslint/rules/prefer-typo-preset.mjs +73 -0
  75. package/eslint/rules/require-locale-number.mjs +78 -0
  76. package/eslint/rules/table-numeric-align.mjs +93 -0
  77. package/eslint/scale.gen.mjs +16 -0
  78. package/package.json +15 -4
@@ -0,0 +1,70 @@
1
+ # SToast
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SToastContainer
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `position?` | `SToastPosition` | `'bottom-center'` | |
12
+ | `maxVisible?` | `number` | `3` | |
13
+ | `defaultDuration?` | `number` | `4000` | 자동 닫힘 기본 지연(ms) |
14
+ | `zIndex?` | `number` | `1100` | 스택 z-index. 기본값(1100)은 모달(1000/1001) 위 — 토스트는 전역 알림이라 항상 최상단 |
15
+
16
+ #### Events
17
+
18
+ | Event | Type | Description |
19
+ |-------|------|-------------|
20
+ | `onShow` | `(payload: { id: string }) => void` | 토스트가 표시될 때 (sdToastShow) |
21
+ | `onDismiss` | `(payload: { id: string }) => void` | 토스트가 제거될 때 (sdToastDismiss) |
22
+
23
+ #### Methods (ref)
24
+
25
+ | Method | Type | Description |
26
+ |--------|------|-------------|
27
+ | `create` | `(options: SToastNotifyOptions) => string` | |
28
+ | `dismiss` | `(id: string) => void` | |
29
+ | `dismissAll` | `() => void` | |
30
+
31
+ ### SToast
32
+
33
+ #### Props
34
+
35
+ | Prop | Type | Default | Description |
36
+ |------|------|---------|-------------|
37
+ | `icon?` | `SIconName` | — | 좌측 아이콘 |
38
+ | `message` | `string` | — | 메시지 |
39
+ | `link?` | `string` | — | 우측 링크 URL |
40
+ | `linkLabel?` | `string` | — | 링크 레이블 (없으면 URL) |
41
+ | `buttonLabel?` | `string` | — | 우측 버튼 레이블 |
42
+ | `useClose?` | `boolean` | `false` | 닫기 버튼 표시 |
43
+ | `type?` | `SToastType` | `'default'` | 타입(색상/프리셋) |
44
+ | `className?` | `string` | — | |
45
+ | `style?` | `CSSProperties` | — | |
46
+
47
+ #### Events
48
+
49
+ | Event | Type | Description |
50
+ |-------|------|-------------|
51
+ | `onClose` | `() => void` | 닫기 (sdClose) |
52
+ | `onButtonClick` | `(e: MouseEvent) => void` | 버튼 클릭 (sdButtonClick) |
53
+
54
+ ## Dependencies
55
+
56
+ ### Depends on
57
+
58
+ - [SButton](../SButton)
59
+ - [SGhostButton](../SGhostButton)
60
+ - [SIcon](../SIcon)
61
+
62
+ ### Graph
63
+
64
+ ```mermaid
65
+ graph TD;
66
+ SToast --> SButton
67
+ SToast --> SGhostButton
68
+ SToast --> SIcon
69
+ style SToast fill:#f9f,stroke:#333,stroke-width:4px
70
+ ```
@@ -0,0 +1,22 @@
1
+ # SToggle
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SToggle
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `value?` | `boolean` | `false` | 선택(on/off) 상태 |
12
+ | `label?` | `string` | `''` | 라벨 |
13
+ | `disabled?` | `boolean` | `false` | 비활성 |
14
+ | `className?` | `string` | — | |
15
+ | `style?` | `CSSProperties` | — | |
16
+
17
+ #### Events
18
+
19
+ | Event | Type | Description |
20
+ |-------|------|-------------|
21
+ | `onValueChange` | `(value: boolean) => void` | 변경 (sdUpdate) |
22
+
@@ -0,0 +1,57 @@
1
+ # STooltip
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### STooltip
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `content?` | `ReactNode` | — | 툴팁 본문 (ReactNode). message 보다 우선 |
12
+ | `message?` | `string[]` | `[]` | 툴팁 본문 줄 목록 (각 항목이 한 줄, HTML 문자열 허용 — innerHTML 렌더링) |
13
+ | `trigger?` | `STooltipTrigger` | `'hover'` | 트리거 방식 |
14
+ | `placement?` | `STooltipPlacement` | `'top'` | 표시 방향 |
15
+ | `tooltipType?` | `STooltipType` | `'default'` | 배경/텍스트 색상 타입 |
16
+ | `useClose?` | `boolean` | `false` | 우측 상단 닫기 버튼. 켜면 자동 닫힘이 비활성화되고 X(또는 hide())로만 닫힘 (hover·click 공통) |
17
+ | `disabled?` | `boolean` | `false` | 비활성 — 트리거만 렌더하고 툴팁을 열지 않음 |
18
+ | `children?` | `ReactNode` | — | 커스텀 트리거. 없으면 아이콘 트리거를 렌더 |
19
+ | `icon?` | `SIconName` | `'helpOutline'` | 기본(아이콘) 트리거 설정 |
20
+ | `iconSize?` | `number` | `12` | |
21
+ | `color?` | `SColor` | `'#01BB4B'` | 트리거 아이콘 색상. 팔레트 키(`grey_65`, `red_95` …) 또는 임의 CSS 색상 |
22
+ | `ariaLabel?` | `string` | — | 접근성 레이블 |
23
+ | `className?` | `string` | — | |
24
+ | `triggerClassName?` | `string` | — | |
25
+ | `style?` | `CSSProperties` | — | |
26
+
27
+ #### Methods (ref)
28
+
29
+ | Method | Type | Description |
30
+ |--------|------|-------------|
31
+ | `show` | `() => void` | 툴팁을 표시합니다. |
32
+ | `hide` | `() => void` | 툴팁을 숨깁니다. |
33
+
34
+ ## Dependencies
35
+
36
+ ### Used by
37
+
38
+ - [SField](../SField)
39
+ - [SKeyValueTable](../SKeyValueTable)
40
+ - [SList](../SList)
41
+
42
+ ### Depends on
43
+
44
+ - [SGhostButton](../SGhostButton)
45
+ - [SIcon](../SIcon)
46
+
47
+ ### Graph
48
+
49
+ ```mermaid
50
+ graph TD;
51
+ STooltip --> SGhostButton
52
+ STooltip --> SIcon
53
+ SField --> STooltip
54
+ SKeyValueTable --> STooltip
55
+ SList --> STooltip
56
+ style STooltip fill:#f9f,stroke:#333,stroke-width:4px
57
+ ```