sellmate-design-system-react 9.0.0-beta.111 → 9.0.0-beta.112

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 CHANGED
@@ -554,10 +554,10 @@ Tailwind 유틸리티는 **토큰 스케일에 있는 값만** 사용한다.
554
554
  | 연도 선택 리스트만 커스텀 조합에 넣는다 | `SDatePickerYearListbox` | §3-7-4 |
555
555
  | 연도+월 선택 리스트만 커스텀 조합에 넣는다 | `SDatePickerMonthListbox` | §3-7-4 |
556
556
  | 날짜 기간을 받는다 | `SDateRangePicker` | §3-7-4 |
557
- | 시각 하나를 받는다 | `STimePicker` | |
558
- | 시각 범위를 받는다 | `STimeRangePicker` | |
557
+ | 시각(시·분) 하나를 입력받는다 | `STimePicker` | 날짜는 `SDatePicker` · 시각 범위는 `STimeRangePicker` |
558
+ | 시각(시·분) 범위를 입력받는다 | `STimeRangePicker` | 시각 하나는 `STimePicker` |
559
559
  | 달력 자체를 화면에 펼쳐 보여준다 | `SCalendar` | §3-7-4 |
560
- | 컨트롤에 라벨·필수·에러를 붙인다 | `SField` | §3-7-5 |
560
+ | 디자인 시스템에 없는 컨트롤(`input type="color"` 등)에 라벨·필수·에러를 붙인다 | `SField` | `SInput`·`SSelect` 같은 DS 입력은 자기 `label`·`required` prop 으로 붙인다 — `SField` 로 감싸지 않는다 (§3-7-5) |
561
561
  | 입력 여러 개를 묶어 한 번에 검증한다 | `SForm` | §4-3 |
562
562
  | 폼·필터를 표 형태로 배치한다 | `SKeyValueTable` | §4 |
563
563
  | 필요한 검색 조건만 칩으로 골라 붙이게 한다 | `SChipFilter` | §3-7-11 |
@@ -603,7 +603,7 @@ Tailwind 유틸리티는 **토큰 스케일에 있는 값만** 사용한다.
603
603
  | 아이콘 하나로 뜻이 통하는 부가 조작을 준다 | `SGhostButton` | §3-5-5 |
604
604
  | 자리가 좁아 부가 조작 여러 개를 ⋯ 뒤 메뉴로 접어 둔다 | `SMeatballButton` | §3-5-5 |
605
605
  | 한 버튼에 여러 선택지를 매단다 | `SDropdownButton` | §3-5-4 |
606
- | GNB system 패널에서 한 줄짜리 행 액션을 준다 | `SSystemActionButton` | §3-5-7 |
606
+ | GNB system 패널에서 한 줄짜리 행 액션을 준다 | `SSystemActionButton` (`SGnbSystem` 의 `actions` 로 넘긴다 — 직접 배치하지 않는다) | §3-5-7 |
607
607
 
608
608
  #### D. 화면을 담고 나눈다
609
609
 
@@ -1374,7 +1374,7 @@ tableRef.current.scrollToRow(row); // 복원
1374
1374
  | **부가 조작 여러 개를 ⋯ 메뉴로 접기** | **`SMeatballButton`** — ⋯ 아이콘 버튼 + `SDropdownButton` 과 같은 메뉴 (아래 3-5-5) |
1375
1375
  | 본문 속 이동 링크 | `STextLink` |
1376
1376
  | 메인 액션 + 부가 메뉴 | `SDropdownButton` |
1377
- | **GNB system 패널의 한 줄 액션** | **`SSystemActionButton`** — 행 전체가 버튼인 표면형 (아래 3-5-7) |
1377
+ | **GNB system 패널의 한 줄 액션** | **`SSystemActionButton`** (`SGnbSystem` 의 `actions` 로 넘긴다 — 직접 배치하지 않는다) — 행 전체가 버튼인 표면형 (아래 3-5-7) |
1378
1378
  | **본문·목록 사이에 끼어 서는 작은 부가 버튼** (추천 질문·출처 바로가기) | **`SButton shape="pill" color="neutral" outline`** (아래 3-5-6) |
1379
1379
 
1380
1380
  #### 3-5-1. 채움 버튼은 페이지당 개수 제한이 있다
@@ -1553,7 +1553,7 @@ tableRef.current.scrollToRow(row); // 복원
1553
1553
  | 페이지·모달의 일반 액션 | `SButton` — 라벨 폭만큼만 차지한다 |
1554
1554
  | 목록에서 항목 하나를 고르게 한다 | `SListItem` · `STree` (§3-7-6·§3-7-7) |
1555
1555
  | 앱 셸 좌측 내비게이션의 메뉴 | `SGnb` 의 `menus` (§4-1) |
1556
- | **GNB system 패널에서 설정·연결 상태를 한 줄씩 쌓고, 그 줄을 눌러 들어가게 한다** | **`SSystemActionButton`** |
1556
+ | **GNB system 패널에서 설정·연결 상태를 한 줄씩 쌓고, 그 줄을 눌러 들어가게 한다** | **`SSystemActionButton`** (`SGnbSystem` 의 `actions` 로 넘긴다 — 직접 배치하지 않는다) |
1557
1557
 
1558
1558
  **무엇이 그려지는지는 `type` 이 정한다.** 타입마다 다른 값만 `option` 으로 받으므로, 타입에 맞지 않는 `option` 은 타입 에러가 된다.
1559
1559
 
@@ -162,7 +162,8 @@ export interface STableStickyColumn {
162
162
  ### STablePagination
163
163
 
164
164
  ```ts
165
- export interface STablePagination {
165
+ /** 표 하단 페이지네이션. `simple`·`groupSize` 는 `SPagination` 의 같은 이름 prop 을 그대로 쓴다 */
166
+ export interface STablePagination extends Pick<SPaginationProps, 'simple' | 'groupSize'> {
166
167
  page: number;
167
168
  rowsPerPage: number;
168
169
  lastPage?: number;
@@ -1,5 +1,6 @@
1
1
  import { type CSSProperties, type UIEvent as ReactUIEvent, type ForwardedRef, type ReactElement, type ReactNode } from 'react';
2
2
  import { type SIconName } from '../SIcon';
3
+ import { type SPaginationProps } from '../SPagination';
3
4
  import { type SSelectOption } from '../SSelect';
4
5
  /**
5
6
  * 행 데이터의 기본 타입 — 키만 아는 느슨한 레코드다.
@@ -178,7 +179,8 @@ export type STableColumn<TRow extends SRow = SRow> = STableColumnBase<TRow> & ({
178
179
  autoWidth?: false;
179
180
  field: STableColumnField<TRow>;
180
181
  });
181
- export interface STablePagination {
182
+ /** 표 하단 페이지네이션. `simple`·`groupSize` 는 `SPagination` 의 같은 이름 prop 을 그대로 쓴다 */
183
+ export interface STablePagination extends Pick<SPaginationProps, 'simple' | 'groupSize'> {
182
184
  page: number;
183
185
  rowsPerPage: number;
184
186
  lastPage?: number;
package/dist/index.cjs CHANGED
@@ -20559,7 +20559,16 @@ var STableImpl = /* @__PURE__ */ react.forwardRef(function STable({
20559
20559
  bordered && "-mt-px border border-solid border-[color:var(--cmp-table-border-color)]"
20560
20560
  ),
20561
20561
  children: [
20562
- showPagination && /* @__PURE__ */ jsxRuntime.jsx(SPagination, { currentPage: displayPage, lastPage, onPageChange: changePage }),
20562
+ showPagination && /* @__PURE__ */ jsxRuntime.jsx(
20563
+ SPagination,
20564
+ {
20565
+ currentPage: displayPage,
20566
+ lastPage,
20567
+ simple: pagination?.simple,
20568
+ groupSize: pagination?.groupSize,
20569
+ onPageChange: changePage
20570
+ }
20571
+ ),
20563
20572
  showRowsPerPageSelect && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute right-[10px] top-1/2 flex -translate-y-1/2 items-center gap-[12px]", children: [
20564
20573
  dense && /* @__PURE__ */ jsxRuntime.jsx(
20565
20574
  STextLink,