sellmate-design-system-react 9.0.0-beta.26 → 9.0.0-beta.28
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/dist/components/SChipFilter/README.md +10 -5
- package/dist/components/SChipFilter/SChipFilter.d.ts +8 -3
- package/dist/components/SGhostButton/README.md +0 -2
- package/dist/components/SLinearProgress/README.md +7 -0
- package/dist/components/SLinearProgress/SLinearProgress.d.ts +3 -0
- package/dist/components/SLinearProgress/index.d.ts +1 -1
- package/dist/components/SRadioButton/README.md +1 -1
- package/dist/components/SRadioButton/SRadioButton.d.ts +1 -1
- package/dist/components/SSearchInput/README.md +2 -0
- package/dist/components/SSelect/README.md +1 -1
- package/dist/components/SSelect/SSelect.d.ts +1 -1
- package/dist/components/STag/README.md +1 -0
- package/dist/components/STag/STag.d.ts +3 -1
- package/dist/index.cjs +294 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +294 -160
- package/dist/index.js.map +1 -1
- package/dist/lib/floating-height.d.ts +15 -0
- package/dist/llms-full.txt +21 -7
- package/dist/llms.txt +1 -0
- package/dist/styles.css +50 -94
- package/dist/theme.css +45 -9
- package/eslint/scale.gen.mjs +1 -1
- package/package.json +1 -1
|
@@ -288,12 +288,17 @@ export interface SChipFilterFieldBase {
|
|
|
288
288
|
```ts
|
|
289
289
|
/** 프리셋으로 기간을 고르는 필터 — datepicker-range·datepicker-statistics */
|
|
290
290
|
export interface SChipFilterPresetsField extends SChipFilterFieldBase {
|
|
291
|
-
/** 프리셋 라디오 목록.
|
|
292
|
-
* datepicker-
|
|
291
|
+
/** 프리셋 라디오 목록. 지정하지 않으면 타입별 기본 목록을 쓴다 —
|
|
292
|
+
* datepicker-range: 오늘·지난 7일·지난 30일·사용자 지정,
|
|
293
|
+
* datepicker-statistics: 일별·월별·분기별·반기별·연도별·사용자 지정.
|
|
294
|
+
* 프리셋 라디오 없이 캘린더(datepicker-range) 하나만 두려면 presets: [] 를 명시한다 */
|
|
293
295
|
presets?: SChipFilterDatePreset[];
|
|
294
296
|
/** 선택 가능 범위 */
|
|
295
297
|
selectable?: [string, string];
|
|
296
|
-
/** "사용자 지정" 프리셋으로 기간을 고를 때의 최대 선택
|
|
298
|
+
/** "사용자 지정" 프리셋으로 기간을 고를 때의 최대 선택 일수.
|
|
299
|
+
* 지정하지 않아도 presets에 custom 프리셋이 있으면 기본 90일이 적용된다 — 무제한 기간
|
|
300
|
+
* 집계·조회로 백엔드에 과도한 요청이 가는 것을 막기 위한 안전장치. 다른 상한이 필요하면
|
|
301
|
+
* 이 값을 직접 지정한다 */
|
|
297
302
|
maxRange?: number;
|
|
298
303
|
}
|
|
299
304
|
```
|
|
@@ -350,10 +355,10 @@ export interface SChipFilterDatePreset {
|
|
|
350
355
|
|
|
351
356
|
- [SDatePicker](../SDatePicker)
|
|
352
357
|
- [SDateRangePicker](../SDateRangePicker)
|
|
353
|
-
- [SGhostButton](../SGhostButton)
|
|
354
358
|
- [SIcon](../SIcon)
|
|
355
359
|
- [SRadio](../SRadio)
|
|
356
360
|
- [SRadioButton](../SRadioButton)
|
|
361
|
+
- [SSearchInput](../SSearchInput)
|
|
357
362
|
- [STag](../STag)
|
|
358
363
|
- [STextLink](../STextLink)
|
|
359
364
|
- [STooltip](../STooltip)
|
|
@@ -364,10 +369,10 @@ export interface SChipFilterDatePreset {
|
|
|
364
369
|
graph TD;
|
|
365
370
|
SChipFilter --> SDatePicker
|
|
366
371
|
SChipFilter --> SDateRangePicker
|
|
367
|
-
SChipFilter --> SGhostButton
|
|
368
372
|
SChipFilter --> SIcon
|
|
369
373
|
SChipFilter --> SRadio
|
|
370
374
|
SChipFilter --> SRadioButton
|
|
375
|
+
SChipFilter --> SSearchInput
|
|
371
376
|
SChipFilter --> STag
|
|
372
377
|
SChipFilter --> STextLink
|
|
373
378
|
SChipFilter --> STooltip
|
|
@@ -75,12 +75,17 @@ export interface SChipFilterOptionsField extends SChipFilterFieldBase {
|
|
|
75
75
|
}
|
|
76
76
|
/** 프리셋으로 기간을 고르는 필터 — datepicker-range·datepicker-statistics */
|
|
77
77
|
export interface SChipFilterPresetsField extends SChipFilterFieldBase {
|
|
78
|
-
/** 프리셋 라디오 목록.
|
|
79
|
-
* datepicker-
|
|
78
|
+
/** 프리셋 라디오 목록. 지정하지 않으면 타입별 기본 목록을 쓴다 —
|
|
79
|
+
* datepicker-range: 오늘·지난 7일·지난 30일·사용자 지정,
|
|
80
|
+
* datepicker-statistics: 일별·월별·분기별·반기별·연도별·사용자 지정.
|
|
81
|
+
* 프리셋 라디오 없이 캘린더(datepicker-range) 하나만 두려면 presets: [] 를 명시한다 */
|
|
80
82
|
presets?: SChipFilterDatePreset[];
|
|
81
83
|
/** 선택 가능 범위 */
|
|
82
84
|
selectable?: [string, string];
|
|
83
|
-
/** "사용자 지정" 프리셋으로 기간을 고를 때의 최대 선택
|
|
85
|
+
/** "사용자 지정" 프리셋으로 기간을 고를 때의 최대 선택 일수.
|
|
86
|
+
* 지정하지 않아도 presets에 custom 프리셋이 있으면 기본 90일이 적용된다 — 무제한 기간
|
|
87
|
+
* 집계·조회로 백엔드에 과도한 요청이 가는 것을 막기 위한 안전장치. 다른 상한이 필요하면
|
|
88
|
+
* 이 값을 직접 지정한다 */
|
|
84
89
|
maxRange?: number;
|
|
85
90
|
}
|
|
86
91
|
/** 후보 하나를 고른다 */
|
|
@@ -48,7 +48,6 @@ export type SGhostButtonIntent = 'default' | 'danger' | 'action' | 'subAction' |
|
|
|
48
48
|
- [SBarcodeInput](../SBarcodeInput)
|
|
49
49
|
- [SCalendar](../SCalendar)
|
|
50
50
|
- [SChip](../SChip)
|
|
51
|
-
- [SChipFilter](../SChipFilter)
|
|
52
51
|
- [SDatePicker](../SDatePicker)
|
|
53
52
|
- [SDateRangePicker](../SDateRangePicker)
|
|
54
53
|
- [SFilePicker](../SFilePicker)
|
|
@@ -81,7 +80,6 @@ graph TD;
|
|
|
81
80
|
SBarcodeInput --> SGhostButton
|
|
82
81
|
SCalendar --> SGhostButton
|
|
83
82
|
SChip --> SGhostButton
|
|
84
|
-
SChipFilter --> SGhostButton
|
|
85
83
|
SDatePicker --> SGhostButton
|
|
86
84
|
SDateRangePicker --> SGhostButton
|
|
87
85
|
SFilePicker --> SGhostButton
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|------|------|---------|-------------|
|
|
11
11
|
| `value?` | `number` | `0` | 진행률 (0–100) |
|
|
12
12
|
| `type?` | `SLinearProgressType` | `'primary'` | 색상 타입 |
|
|
13
|
+
| `size?` | `SLinearProgressSize` | `'sm'` | 바 높이. xs 는 바 안에 퍼센트 텍스트를 넣지 않는다 |
|
|
13
14
|
| `indeterminate?` | `boolean` | `false` | 진행률 없이 무한 애니메이션 |
|
|
14
15
|
| `label?` | `string` | — | 하단 레이블 |
|
|
15
16
|
| `className?` | `string` | — | |
|
|
@@ -23,3 +24,9 @@
|
|
|
23
24
|
export type SLinearProgressType = 'primary' | 'error' | 'complete';
|
|
24
25
|
```
|
|
25
26
|
|
|
27
|
+
### SLinearProgressSize
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
export type SLinearProgressSize = 'xs' | 'sm' | 'md';
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { type CSSProperties } from 'react';
|
|
2
2
|
export type SLinearProgressType = 'primary' | 'error' | 'complete';
|
|
3
|
+
export type SLinearProgressSize = 'xs' | 'sm' | 'md';
|
|
3
4
|
export interface SLinearProgressProps {
|
|
4
5
|
/** 진행률 (0–100) */
|
|
5
6
|
value?: number;
|
|
6
7
|
/** 색상 타입 */
|
|
7
8
|
type?: SLinearProgressType;
|
|
9
|
+
/** 바 높이. xs 는 바 안에 퍼센트 텍스트를 넣지 않는다 */
|
|
10
|
+
size?: SLinearProgressSize;
|
|
8
11
|
/** 진행률 없이 무한 애니메이션 */
|
|
9
12
|
indeterminate?: boolean;
|
|
10
13
|
/** 하단 레이블 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SLinearProgress, type SLinearProgressProps, type SLinearProgressType, } from './SLinearProgress';
|
|
1
|
+
export { SLinearProgress, type SLinearProgressProps, type SLinearProgressType, type SLinearProgressSize, } from './SLinearProgress';
|
|
@@ -41,6 +41,7 @@ export type SSearchInputSize = SFieldSize;
|
|
|
41
41
|
|
|
42
42
|
### Used by
|
|
43
43
|
|
|
44
|
+
- [SChipFilter](../SChipFilter)
|
|
44
45
|
- [SSelect](../SSelect)
|
|
45
46
|
|
|
46
47
|
### Depends on
|
|
@@ -56,6 +57,7 @@ graph TD;
|
|
|
56
57
|
SSearchInput --> SField
|
|
57
58
|
SSearchInput --> SGhostButton
|
|
58
59
|
SSearchInput --> SIcon
|
|
60
|
+
SChipFilter --> SSearchInput
|
|
59
61
|
SSelect --> SSearchInput
|
|
60
62
|
style SSearchInput fill:#f9f,stroke:#333,stroke-width:4px
|
|
61
63
|
```
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
| `error?` | `boolean` | `false` | 에러 상태 |
|
|
23
23
|
| `rules?` | `Rule[]` | — | 유효성 규칙 — 닫힐 때 자동 검증 |
|
|
24
24
|
| `labelTooltipProps?` | `Partial<STooltipProps>` | — | 레이블 툴팁 상세 옵션 |
|
|
25
|
-
| `dropdownHeight?` | `string` | `'
|
|
25
|
+
| `dropdownHeight?` | `string` | `'640px'` | 드롭다운 최대 높이. 기본 640px — 창이 이보다 작으면 창 안에 남는 만큼까지만 채워진다 |
|
|
26
26
|
| `dropdownWidth?` | `string` | — | 드롭다운 너비 (없으면 트리거 너비). 창보다 넓게 줘도 창 폭까지만 벌어진다. |
|
|
27
27
|
| `maxDropdownWidth?` | `string` | `'640px'` | 드롭다운 최대 너비. 창이 이보다 좁으면 창 폭이 상한이 된다. |
|
|
28
28
|
| `label?` | `string` | — | |
|
|
@@ -49,7 +49,7 @@ export interface SSelectProps {
|
|
|
49
49
|
rules?: Rule[];
|
|
50
50
|
/** 레이블 툴팁 상세 옵션 */
|
|
51
51
|
labelTooltipProps?: Partial<STooltipProps>;
|
|
52
|
-
/** 드롭다운 최대
|
|
52
|
+
/** 드롭다운 최대 높이. 기본 640px — 창이 이보다 작으면 창 안에 남는 만큼까지만 채워진다 */
|
|
53
53
|
dropdownHeight?: string;
|
|
54
54
|
/** 드롭다운 너비 (없으면 트리거 너비). 창보다 넓게 줘도 창 폭까지만 벌어진다. */
|
|
55
55
|
dropdownWidth?: string;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| `shape?` | `STagShape` | `'square'` | 모양 |
|
|
12
12
|
| `size?` | `STagSize` | `'sm'` | 크기 |
|
|
13
13
|
| `color?` | `STagColor` | `'grey'` | 색상 |
|
|
14
|
+
| `deep?` | `boolean` | `false` | 진한 배경(deep) 버전. 배경에 강조색을 채우고 텍스트·아이콘을 반전색으로 쓴다 |
|
|
14
15
|
| `label?` | `string` | `''` | 레이블 텍스트 |
|
|
15
16
|
| `icon?` | `SIconName` | — | 아이콘명 |
|
|
16
17
|
| `iconLeft?` | `boolean` | `true` | 아이콘을 레이블 왼쪽에 배치 |
|
|
@@ -8,6 +8,8 @@ export interface STagProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'
|
|
|
8
8
|
size?: STagSize;
|
|
9
9
|
/** 색상 */
|
|
10
10
|
color?: STagColor;
|
|
11
|
+
/** 진한 배경(deep) 버전. 배경에 강조색을 채우고 텍스트·아이콘을 반전색으로 쓴다 */
|
|
12
|
+
deep?: boolean;
|
|
11
13
|
/** 레이블 텍스트 */
|
|
12
14
|
label?: string;
|
|
13
15
|
/** 아이콘명 */
|
|
@@ -20,6 +22,6 @@ export interface STagProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'
|
|
|
20
22
|
/**
|
|
21
23
|
* STag — sd-tag 포팅.
|
|
22
24
|
* Stencil의 `name`(예: square_sm_grey) 프리셋을 shape/size/color 세 prop으로 분리.
|
|
23
|
-
* 색상은 컴포넌트 토큰 `--cmp-tag-<color>-{bg,content}
|
|
25
|
+
* 색상은 컴포넌트 토큰 `--cmp-tag-<color>-{bg,content}`, deep 은 `--cmp-tag-<color>-deep-*` 참조.
|
|
24
26
|
*/
|
|
25
27
|
export declare const STag: import("react").ForwardRefExoticComponent<STagProps & import("react").RefAttributes<HTMLSpanElement>>;
|