sellmate-design-system-react 9.0.0-beta.7 → 9.0.0-beta.8

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.
@@ -10,7 +10,6 @@
10
10
  |------|------|---------|-------------|
11
11
  | `value` | `string` | — | 현재 선택된 탭 value |
12
12
  | `tabs` | `STabOption[]` | — | 탭 옵션 목록 |
13
- | `size?` | `STabSize` | `'md'` | 탭 크기 (main 전용) |
14
13
  | `isSub?` | `boolean` | `false` | 서브 탭(밑줄형) 스타일 |
15
14
  | `vertical?` | `boolean` | `false` | 세로 배치 (sub 전용 — main 폴더형은 항상 가로) |
16
15
  | `className?` | `string` | — | |
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties } from 'react';
2
- import { type STabSize, type STabOption } from './tabs.config';
2
+ import { type STabOption } from './tabs.config';
3
3
  export interface STabsProps {
4
4
  /** 현재 선택된 탭 value */
5
5
  value: string;
@@ -7,8 +7,6 @@ export interface STabsProps {
7
7
  tabs: STabOption[];
8
8
  /** 탭 변경 (sdUpdate) */
9
9
  onValueChange?: (value: string) => void;
10
- /** 탭 크기 (main 전용) */
11
- size?: STabSize;
12
10
  /** 서브 탭(밑줄형) 스타일 */
13
11
  isSub?: boolean;
14
12
  /** 세로 배치 (sub 전용 — main 폴더형은 항상 가로) */
@@ -21,4 +19,4 @@ export interface STabsProps {
21
19
  * main = 폴더형(탭 줄에 파란 baseline, 탭은 위쪽만 둥글고 하단 테두리 없음),
22
20
  * sub = 밑줄형(선택 시 하단 라인). 뱃지(STag), 세로 배치, value 제어 + onValueChange(sdUpdate).
23
21
  */
24
- export declare function STabs({ value, tabs, onValueChange, size, isSub, vertical, className, style, }: STabsProps): import("react").JSX.Element;
22
+ export declare function STabs({ value, tabs, onValueChange, isSub, vertical, className, style, }: STabsProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { STabs, type STabsProps } from './STabs';
2
- export { type STabOption, type STabSize } from './tabs.config';
2
+ export { type STabOption } from './tabs.config';
@@ -1,14 +1,13 @@
1
- export type STabSize = 'md' | 'lg';
2
1
  export interface STabOption {
3
2
  label: string;
4
3
  value: string;
5
4
  badge?: string | number;
6
5
  }
7
- /** main(분절형) 사이즈별 레이아웃 — size는 높이·패딩만 바꾸고 폰트는 고정 */
8
- export declare const TAB_MAIN_SIZE: Record<STabSize, {
6
+ /** main(분절형) 레이아웃 */
7
+ export declare const TAB_MAIN_SIZE: {
9
8
  height: number;
10
9
  paddingX: number;
11
- }>;
10
+ };
12
11
  /** 탭 타이포 (main/sub 공통, token: typography.navigation.sm) */
13
12
  export declare const TAB_TYPOGRAPHY: {
14
13
  fontSize: number;
package/dist/index.cjs CHANGED
@@ -9232,10 +9232,7 @@ var PAGE_BACKGROUNDS = ["frame", "neutral", "screen"];
9232
9232
  var PAGE_CONTENT_HEIGHTS = ["auto", "fill"];
9233
9233
 
9234
9234
  // src/components/STabs/tabs.config.ts
9235
- var TAB_MAIN_SIZE = {
9236
- md: { height: 36, paddingX: 24 },
9237
- lg: { height: 44, paddingX: 32 }
9238
- };
9235
+ var TAB_MAIN_SIZE = { height: 36, paddingX: 24 };
9239
9236
  var TAB_TYPOGRAPHY = { fontSize: 12, lineHeight: 20 };
9240
9237
  var TAB_MAIN_COLORS = {
9241
9238
  selected: {
@@ -9257,13 +9254,11 @@ function STabs({
9257
9254
  value,
9258
9255
  tabs,
9259
9256
  onValueChange,
9260
- size = "md",
9261
9257
  isSub = false,
9262
9258
  vertical = false,
9263
9259
  className,
9264
9260
  style
9265
9261
  }) {
9266
- const s = TAB_MAIN_SIZE[size];
9267
9262
  const blue = TAB_MAIN_COLORS.selected.border;
9268
9263
  const isVertical = isSub && vertical;
9269
9264
  const tabRefs = react.useRef([]);
@@ -9304,8 +9299,8 @@ function STabs({
9304
9299
  const border = selected ? TAB_MAIN_COLORS.selected.border : TAB_MAIN_COLORS.default.border;
9305
9300
  const selectedBg = TAB_MAIN_COLORS.selected.bg;
9306
9301
  tabStyle = {
9307
- height: s.height,
9308
- padding: `0 ${s.paddingX}px`,
9302
+ height: TAB_MAIN_SIZE.height,
9303
+ padding: `0 ${TAB_MAIN_SIZE.paddingX}px`,
9309
9304
  fontSize: TAB_TYPOGRAPHY.fontSize,
9310
9305
  lineHeight: `${TAB_TYPOGRAPHY.lineHeight}px`,
9311
9306
  background: selected ? TAB_MAIN_COLORS.selected.bg : TAB_MAIN_COLORS.default.bg,