sellmate-design-system-react 8.1.0 → 9.0.0-beta.2
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.
- package/AGENTS.md +176 -111
- package/README.md +38 -8
- package/dist/components/SChipFilter/README.md +69 -0
- package/dist/components/SChipFilter/SChipFilter.d.ts +160 -0
- package/dist/components/SChipFilter/index.d.ts +1 -0
- package/dist/components/SCircleProgress/README.md +3 -0
- package/dist/components/SCircleProgress/SCircleProgress.d.ts +7 -1
- package/dist/components/SDatePicker/README.md +2 -0
- package/dist/components/SDateRangePicker/README.md +21 -0
- package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +16 -0
- package/dist/components/SDateRangePicker/index.d.ts +1 -1
- package/dist/components/SGhostButton/README.md +4 -0
- package/dist/components/SGuide/README.md +1 -1
- package/dist/components/SGuide/SGuide.d.ts +1 -1
- package/dist/components/SIcon/README.md +4 -0
- package/dist/components/SIcon/icons.gen.d.ts +1 -0
- package/dist/components/SImage/README.md +44 -0
- package/dist/components/SImage/SImage.d.ts +41 -0
- package/dist/components/SImage/index.d.ts +1 -0
- package/dist/components/SList/README.md +1 -0
- package/dist/components/SList/SList.d.ts +2 -0
- package/dist/components/SListItem/README.md +2 -2
- package/dist/components/SListItem/SListItem.d.ts +2 -2
- package/dist/components/SPage/README.md +21 -0
- package/dist/components/SPage/SPage.d.ts +10 -0
- package/dist/components/SPage/SPageHeader.d.ts +32 -0
- package/dist/components/SPage/index.d.ts +1 -0
- package/dist/components/SPortal/README.md +1 -1
- package/dist/components/SPortal/SPortal.d.ts +7 -1
- package/dist/components/SRadio/README.md +2 -0
- package/dist/components/SRadioButton/README.md +13 -0
- package/dist/components/SSelect/README.md +2 -2
- package/dist/components/SSelect/SSelect.d.ts +2 -2
- package/dist/components/STag/README.md +2 -0
- package/dist/components/STextLink/README.md +2 -0
- package/dist/components/SToggle/README.md +1 -0
- package/dist/components/SToggle/SToggle.d.ts +4 -1
- package/dist/components/STooltip/README.md +2 -0
- package/dist/index.cjs +1830 -319
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1826 -319
- package/dist/index.js.map +1 -1
- package/dist/lib/floating-width.d.ts +22 -0
- package/dist/llms-full.txt +343 -118
- package/dist/llms.txt +180 -114
- package/dist/styles.css +218 -16
- package/dist/theme.css +12 -5
- package/eslint/scale.gen.mjs +1 -1
- package/package.json +7 -4
|
@@ -29,7 +29,10 @@ export interface SPortalProps {
|
|
|
29
29
|
autoClose?: boolean;
|
|
30
30
|
/** 외부 클릭 · ESC 로 닫히지 않게 한다. */
|
|
31
31
|
persistent?: boolean;
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* 뷰포트 경계 여백 px (충돌 회피 패딩).
|
|
34
|
+
* 콘텐츠 폭은 항상 `창 폭 - viewportPadding*2` 를 넘지 않게 잘린다.
|
|
35
|
+
*/
|
|
33
36
|
viewportPadding?: number;
|
|
34
37
|
/** 열릴 때 포커스 이동 처리 (기본은 Radix가 콘텐츠로 포커스를 옮김). e.preventDefault()로 막을 수 있다. */
|
|
35
38
|
onOpenAutoFocus?: (event: Event) => void;
|
|
@@ -49,5 +52,8 @@ export interface SPortalProps {
|
|
|
49
52
|
* 트리거를 감싸지 않고 `anchorRef` 로 임의의 엘리먼트에 붙는다(=sd-portal `parentRef`).
|
|
50
53
|
* open/onClose 로 외부에서 제어하며, flip·collision·스크롤 재배치·외부클릭·ESC·모달 포털은
|
|
51
54
|
* Radix 가 처리한다. 콘텐츠는 children 으로 완전히 자유롭다.
|
|
55
|
+
*
|
|
56
|
+
* 콘텐츠가 창보다 넓으면 창 폭에 맞춰 줄어든다(sd-portal 과 동일). `style` 로 준
|
|
57
|
+
* width·minWidth·maxWidth 도 이 상한 안으로 가둬지므로 화면 밖으로 나가지 않는다.
|
|
52
58
|
*/
|
|
53
59
|
export declare function SPortal({ open, onClose, onOpenChange, anchorRef, placement, align, offset, alignOffset, fit, maxHeight, autoClose, persistent, viewportPadding, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, children, className, style, ariaLabel, }: SPortalProps): import("react").JSX.Element;
|
|
@@ -46,12 +46,14 @@
|
|
|
46
46
|
|
|
47
47
|
### Used by
|
|
48
48
|
|
|
49
|
+
- [SChipFilter](../SChipFilter)
|
|
49
50
|
- [SKeyValueTable](../SKeyValueTable)
|
|
50
51
|
|
|
51
52
|
### Graph
|
|
52
53
|
|
|
53
54
|
```mermaid
|
|
54
55
|
graph TD;
|
|
56
|
+
SChipFilter --> SRadio
|
|
55
57
|
SKeyValueTable --> SRadio
|
|
56
58
|
style SRadio fill:#f9f,stroke:#333,stroke-width:4px
|
|
57
59
|
```
|
|
@@ -22,3 +22,16 @@
|
|
|
22
22
|
|-------|------|-------------|
|
|
23
23
|
| `onValueChange` | `(value: string \| number) => void` | 변경 (sdUpdate) |
|
|
24
24
|
|
|
25
|
+
## Dependencies
|
|
26
|
+
|
|
27
|
+
### Used by
|
|
28
|
+
|
|
29
|
+
- [SChipFilter](../SChipFilter)
|
|
30
|
+
|
|
31
|
+
### Graph
|
|
32
|
+
|
|
33
|
+
```mermaid
|
|
34
|
+
graph TD;
|
|
35
|
+
SChipFilter --> SRadioButton
|
|
36
|
+
style SRadioButton fill:#f9f,stroke:#333,stroke-width:4px
|
|
37
|
+
```
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
| `rules?` | `Rule[]` | — | 유효성 규칙 — 닫힐 때 자동 검증 |
|
|
23
23
|
| `labelTooltipProps?` | `Partial<STooltipProps>` | — | 레이블 툴팁 상세 옵션 |
|
|
24
24
|
| `dropdownHeight?` | `string` | `'260px'` | 드롭다운 최대 높이 |
|
|
25
|
-
| `dropdownWidth?` | `string` | — | 드롭다운 너비 (없으면 트리거 너비) |
|
|
26
|
-
| `maxDropdownWidth?` | `string` | `'640px'` | 드롭다운 최대
|
|
25
|
+
| `dropdownWidth?` | `string` | — | 드롭다운 너비 (없으면 트리거 너비). 창보다 넓게 줘도 창 폭까지만 벌어진다. |
|
|
26
|
+
| `maxDropdownWidth?` | `string` | `'640px'` | 드롭다운 최대 너비. 창이 이보다 좁으면 창 폭이 상한이 된다. |
|
|
27
27
|
| `label?` | `string` | — | |
|
|
28
28
|
| `labelWidth?` | `number \| string` | — | |
|
|
29
29
|
| `icon?` | `SIconName` | — | 레이블 영역 아이콘 |
|
|
@@ -45,9 +45,9 @@ export interface SSelectProps {
|
|
|
45
45
|
labelTooltipProps?: Partial<STooltipProps>;
|
|
46
46
|
/** 드롭다운 최대 높이 */
|
|
47
47
|
dropdownHeight?: string;
|
|
48
|
-
/** 드롭다운 너비 (없으면 트리거 너비) */
|
|
48
|
+
/** 드롭다운 너비 (없으면 트리거 너비). 창보다 넓게 줘도 창 폭까지만 벌어진다. */
|
|
49
49
|
dropdownWidth?: string;
|
|
50
|
-
/** 드롭다운 최대
|
|
50
|
+
/** 드롭다운 최대 너비. 창이 이보다 좁으면 창 폭이 상한이 된다. */
|
|
51
51
|
maxDropdownWidth?: string;
|
|
52
52
|
label?: string;
|
|
53
53
|
labelWidth?: number | string;
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
### Used by
|
|
22
22
|
|
|
23
|
+
- [SChipFilter](../SChipFilter)
|
|
23
24
|
- [SConfirmModal](../SConfirmModal)
|
|
24
25
|
- [SGhostButton](../SGhostButton)
|
|
25
26
|
- [SGnb](../SGnb)
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
```mermaid
|
|
36
37
|
graph TD;
|
|
37
38
|
STag --> SIcon
|
|
39
|
+
SChipFilter --> STag
|
|
38
40
|
SConfirmModal --> STag
|
|
39
41
|
SGhostButton --> STag
|
|
40
42
|
SGnb --> STag
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
### Used by
|
|
30
30
|
|
|
31
|
+
- [SChipFilter](../SChipFilter)
|
|
31
32
|
- [SChipInput](../SChipInput)
|
|
32
33
|
- [SPopover](../SPopover)
|
|
33
34
|
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
graph TD;
|
|
43
44
|
STextLink --> SIcon
|
|
44
45
|
STextLink --> STag
|
|
46
|
+
SChipFilter --> STextLink
|
|
45
47
|
SChipInput --> STextLink
|
|
46
48
|
SPopover --> STextLink
|
|
47
49
|
style STextLink fill:#f9f,stroke:#333,stroke-width:4px
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| `value?` | `boolean` | `false` | 선택(on/off) 상태 |
|
|
12
12
|
| `label?` | `string` | `''` | 라벨 |
|
|
13
13
|
| `disabled?` | `boolean` | `false` | 비활성 |
|
|
14
|
+
| `size?` | `SToggleSize` | `'sm'` | 크기 |
|
|
14
15
|
| `className?` | `string` | — | |
|
|
15
16
|
| `style?` | `CSSProperties` | — | |
|
|
16
17
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties } from 'react';
|
|
2
|
+
export type SToggleSize = 'xs' | 'sm';
|
|
2
3
|
export interface SToggleProps {
|
|
3
4
|
/** 선택(on/off) 상태 */
|
|
4
5
|
value?: boolean;
|
|
@@ -6,6 +7,8 @@ export interface SToggleProps {
|
|
|
6
7
|
label?: string;
|
|
7
8
|
/** 비활성 */
|
|
8
9
|
disabled?: boolean;
|
|
10
|
+
/** 크기 */
|
|
11
|
+
size?: SToggleSize;
|
|
9
12
|
/** 변경 (sdUpdate) */
|
|
10
13
|
onValueChange?: (value: boolean) => void;
|
|
11
14
|
className?: string;
|
|
@@ -15,4 +18,4 @@ export interface SToggleProps {
|
|
|
15
18
|
* SToggle — sd-toggle 포팅. 알약형 토글 버튼.
|
|
16
19
|
* default(흰 배경/회색), hover(파란 채움), select(흰 배경/파란 테두리·글자), disabled.
|
|
17
20
|
*/
|
|
18
|
-
export declare function SToggle({ value, label, disabled, onValueChange, className, style, }: SToggleProps): import("react").JSX.Element;
|
|
21
|
+
export declare function SToggle({ value, label, disabled, size, onValueChange, className, style, }: SToggleProps): import("react").JSX.Element;
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
### Used by
|
|
46
46
|
|
|
47
|
+
- [SChipFilter](../SChipFilter)
|
|
47
48
|
- [SField](../SField)
|
|
48
49
|
- [SKeyValueTable](../SKeyValueTable)
|
|
49
50
|
- [SSectionHeaderCard](../SSectionHeaderCard)
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
graph TD;
|
|
61
62
|
STooltip --> SGhostButton
|
|
62
63
|
STooltip --> SIcon
|
|
64
|
+
SChipFilter --> STooltip
|
|
63
65
|
SField --> STooltip
|
|
64
66
|
SKeyValueTable --> STooltip
|
|
65
67
|
SSectionHeaderCard --> STooltip
|