sellmate-design-system-react 9.0.0-beta.97 → 9.0.0-beta.98
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 +2 -0
- package/dist/components/SButton/README.md +1 -0
- package/dist/components/SButton/SButton.d.ts +9 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +3 -0
- package/dist/llms.txt +2 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -1343,6 +1343,7 @@ tableRef.current.scrollToRow(row); // 복원
|
|
|
1343
1343
|
| 본문 속 이동 링크 | `STextLink` |
|
|
1344
1344
|
| 메인 액션 + 부가 메뉴 | `SDropdownButton` |
|
|
1345
1345
|
| **GNB system 패널의 한 줄 액션** | **`SSystemActionButton`** — 행 전체가 버튼인 표면형 (아래 3-5-7) |
|
|
1346
|
+
| **본문·목록 사이에 끼어 서는 작은 부가 버튼** (추천 질문·출처 바로가기) | **`SButton pill color="neutral" outline`** (아래 3-5-6) |
|
|
1346
1347
|
|
|
1347
1348
|
#### 3-5-1. 채움 버튼은 페이지당 개수 제한이 있다
|
|
1348
1349
|
|
|
@@ -1484,6 +1485,7 @@ tableRef.current.scrollToRow(row); // 복원
|
|
|
1484
1485
|
- 라벨은 **동사(+목적어)** — `저장` · `적치 지시` · `송장 재출력`
|
|
1485
1486
|
- 완료된 작업 버튼은 제거하지 않고 **`disabled` 로 남긴다.** 자리가 사라지면 행 높이가 흔들린다.
|
|
1486
1487
|
- **모달 보조 액션은 `color="neutral" outline`** 이 표준이다.
|
|
1488
|
+
- **`pill` 은 본문·목록 사이에 끼어 서는 작은 부가 버튼에만 준다** — 추천 질문·출처 바로가기처럼 누르면 동작하는 알약. 보통 `color="neutral" outline size="xs"` 와 함께 쓴다. 화면의 주 액션·폼 제출·하단 버튼은 모서리를 바꾸지 않는다. 값·필터 토큰이면 `SChip`, 누를 수 없는 표시면 `STag` 다. 알약 모양을 `className="rounded-full"` 로 직접 만들지 않는다.
|
|
1487
1489
|
|
|
1488
1490
|
**하단 버튼 배치 (모든 화면 공통)** — 그룹을 모아 정렬하지 않고 **양끝으로 벌린다**(`justify-between`).
|
|
1489
1491
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
| `icon?` | `SIconName` | — | 레이블 왼쪽 아이콘 |
|
|
15
15
|
| `rightIcon?` | `SIconName` | — | 레이블 오른쪽 아이콘 |
|
|
16
16
|
| `label?` | `string` | — | 버튼 텍스트 (문자열만 — 아이콘은 icon/rightIcon 사용) |
|
|
17
|
+
| `pill?` | `boolean` | `false` | 모서리를 완전히 둥글게(알약 모양). 색·크기·아이콘은 그대로다. 본문·목록 사이에 끼어 서는 **누르면 동작하는 작은 부가 버튼**에 쓴다 — 출처 배지·추천 질문처럼. 보통 `color="neutral" outline` 과 함께 쓴다(흰 면 + 옅은 테두리). 화면의 주 액션·폼 제출 버튼은 모서리를 바꾸지 않는다. 값·필터 토큰이면 `SChip`, 누를 수 없는 표시면 `STag` 다. |
|
|
17
18
|
|
|
18
19
|
## Types
|
|
19
20
|
|
|
@@ -14,10 +14,18 @@ export interface SButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
14
14
|
rightIcon?: SIconName;
|
|
15
15
|
/** 버튼 텍스트 (문자열만 — 아이콘은 icon/rightIcon 사용) */
|
|
16
16
|
label?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 모서리를 완전히 둥글게(알약 모양). 색·크기·아이콘은 그대로다.
|
|
19
|
+
*
|
|
20
|
+
* 본문·목록 사이에 끼어 서는 **누르면 동작하는 작은 부가 버튼**에 쓴다 — 출처 배지·추천 질문처럼.
|
|
21
|
+
* 보통 `color="neutral" outline` 과 함께 쓴다(흰 면 + 옅은 테두리). 화면의 주 액션·폼 제출 버튼은
|
|
22
|
+
* 모서리를 바꾸지 않는다. 값·필터 토큰이면 `SChip`, 누를 수 없는 표시면 `STag` 다.
|
|
23
|
+
*/
|
|
24
|
+
pill?: boolean;
|
|
17
25
|
}
|
|
18
26
|
/**
|
|
19
27
|
* SButton — sd-button 포팅.
|
|
20
|
-
* color(4) × outline × 4개 사이즈, 아이콘(icon/rightIcon), 컴포넌트 토큰(--cmp-button-*) 기반.
|
|
28
|
+
* color(4) × outline × 4개 사이즈, 아이콘(icon/rightIcon), pill 모양, 컴포넌트 토큰(--cmp-button-*) 기반.
|
|
21
29
|
* 텍스트는 label(문자열)로만 받는다. 이벤트: sdClick → 네이티브 onClick.
|
|
22
30
|
*/
|
|
23
31
|
export declare const SButton: import("react").ForwardRefExoticComponent<SButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
package/dist/index.cjs
CHANGED
|
@@ -4261,6 +4261,7 @@ var SButton = /* @__PURE__ */ react.forwardRef(function SButton2({
|
|
|
4261
4261
|
icon,
|
|
4262
4262
|
rightIcon,
|
|
4263
4263
|
label,
|
|
4264
|
+
pill = false,
|
|
4264
4265
|
className,
|
|
4265
4266
|
style,
|
|
4266
4267
|
type = "button",
|
|
@@ -4291,7 +4292,8 @@ var SButton = /* @__PURE__ */ react.forwardRef(function SButton2({
|
|
|
4291
4292
|
"minHeight": s.height,
|
|
4292
4293
|
"minWidth": iconOnly ? s.iconOnlyWidth : hasLabel ? s.minWidth : void 0,
|
|
4293
4294
|
"padding": iconOnly ? 0 : `0 ${s.paddingX}`,
|
|
4294
|
-
|
|
4295
|
+
// 버튼 전용 pill 반경 토큰이 아직 없어 공용 반경을 쓴다
|
|
4296
|
+
"borderRadius": pill ? "var(--radius-full)" : s.radius,
|
|
4295
4297
|
"gap": s.gap,
|
|
4296
4298
|
"fontSize": s.fontSize,
|
|
4297
4299
|
"fontWeight": s.fontWeight,
|