sellmate-design-system-react 9.0.0-beta.65 → 9.0.0-beta.66
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/SDonutChart/README.md +12 -0
- package/dist/components/SDonutChart/SDonutChart.d.ts +8 -0
- package/dist/components/SLineChart/README.md +8 -0
- package/dist/components/SLineChart/SLineChart.d.ts +4 -0
- package/dist/components/SLineChart/lineChart.config.d.ts +7 -0
- package/dist/index.cjs +92 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -14
- package/dist/index.js.map +1 -1
- package/dist/lib/chart/legend.d.ts +8 -2
- package/dist/lib/chart/palette.d.ts +5 -0
- package/dist/lib/chart/radial.d.ts +2 -0
- package/dist/llms-full.txt +20 -0
- package/dist/styles.css +3 -0
- package/package.json +1 -1
|
@@ -3,13 +3,19 @@ export interface ChartLegendItem {
|
|
|
3
3
|
name: string;
|
|
4
4
|
/** 점 색 (CSS 색 문자열) */
|
|
5
5
|
color: string;
|
|
6
|
+
/** `default` 변형에서만 쓰는 값 텍스트. `simple` 에서는 무시한다 */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** `value` 글자색 (CSS 색 문자열). 없으면 이름과 같은 기본색을 쓴다 */
|
|
9
|
+
valueColor?: string;
|
|
6
10
|
}
|
|
7
11
|
export interface ChartLegendProps {
|
|
8
12
|
items: ChartLegendItem[];
|
|
9
|
-
/** 가로 정렬 — 시안은 그림 위
|
|
13
|
+
/** 가로 정렬 — 시안은 그림 위 가운데다. `default` 변형에는 적용하지 않는다 */
|
|
10
14
|
align?: 'start' | 'center' | 'end';
|
|
11
15
|
/** 지금 강조 중인 계열. 나머지는 흐려진다 */
|
|
12
16
|
activeIndex?: number | null;
|
|
13
17
|
className?: string;
|
|
18
|
+
/** 범례 모양. `simple` 가로 나열(값 없음) · `default` 이름+값을 세로로 쌓는 목록 */
|
|
19
|
+
variant?: 'simple' | 'default';
|
|
14
20
|
}
|
|
15
|
-
export declare function ChartLegend({ items, align, activeIndex, className }: ChartLegendProps): import("react").JSX.Element | null;
|
|
21
|
+
export declare function ChartLegend({ items, align, activeIndex, className, variant, }: ChartLegendProps): import("react").JSX.Element | null;
|
|
@@ -21,3 +21,8 @@ export declare function paletteColor(palette: SChartPalette, index: number, colo
|
|
|
21
21
|
* 아래의 선이 비쳐 점이 탁해지기 때문이다 — 색을 바꾸면 점은 끝까지 또렷한 원으로 남는다.
|
|
22
22
|
*/
|
|
23
23
|
export declare function linePointDimmedColor(palette: SChartPalette, index: number, colors?: readonly SChartColor[]): string;
|
|
24
|
+
/**
|
|
25
|
+
* 계열 인덱스 → 값 텍스트 색. `paletteColor` 와 같은 규칙으로 고르되
|
|
26
|
+
* `chart.dataValue.palette.*`(위 주석 참조)를 쓴다.
|
|
27
|
+
*/
|
|
28
|
+
export declare function dataValueColor(palette: SChartPalette, index: number, colors?: readonly SChartColor[]): string;
|
|
@@ -64,6 +64,8 @@ export interface RadialChartProps {
|
|
|
64
64
|
showValueLabel?: boolean;
|
|
65
65
|
showLegend?: boolean;
|
|
66
66
|
legendPosition?: SChartLegendPosition;
|
|
67
|
+
/** 범례 모양. `simple` 이름만 가로로 · `default` 이름+값을 세로로 쌓는 목록. 도넛 전용 — 파이는 항상 `simple` 이다 */
|
|
68
|
+
legendVariant?: 'simple' | 'default';
|
|
67
69
|
showTooltip?: boolean;
|
|
68
70
|
formatValue?: (value: number) => string;
|
|
69
71
|
onSliceClick?: (slice: RadialSlicePoint) => void;
|
package/dist/llms-full.txt
CHANGED
|
@@ -5277,6 +5277,7 @@ export type SDateRangePickerSize = SFieldSize;
|
|
|
5277
5277
|
| `showValueLabel?` | `boolean` | `false` | 고리 위에 몫(%)을 적는다. 좁은 조각은 글자가 넘치므로 적지 않는다 |
|
|
5278
5278
|
| `showLegend?` | `boolean` | `true` | 범례를 보인다 |
|
|
5279
5279
|
| `legendPosition?` | `SDonutChartLegendPosition` | `'top'` | 범례 위치 |
|
|
5280
|
+
| `legendVariant?` | `SDonutChartLegendVariant` | `'simple'` | 범례 모양. `simple` 이름만 가로로 · `default` 이름+값을 세로로 쌓는 목록 |
|
|
5280
5281
|
| `showTooltip?` | `boolean` | `true` | 조각에 마우스를 올리면 값 상자를 띄운다 |
|
|
5281
5282
|
| `formatValue?` | `(value: number) => string` | — | 값 표시 형식 |
|
|
5282
5283
|
| `tooltipFooter?` | `(slice: SDonutChartSlicePoint) => ReactNode` | — | 툴팁의 값 아래에 덧붙일 내용. 짚은 조각을 받아 그린다 — 몫·값만으로 모자란 맥락 (전월 대비, 건수 등)을 적는다. 툴팁은 누를 수 없으므로 버튼·링크는 넣지 않는다 |
|
|
@@ -5338,6 +5339,17 @@ export type SDonutChartColor =
|
|
|
5338
5339
|
export type SDonutChartLegendPosition = 'top' | 'bottom';
|
|
5339
5340
|
```
|
|
5340
5341
|
|
|
5342
|
+
### SDonutChartLegendVariant
|
|
5343
|
+
|
|
5344
|
+
```ts
|
|
5345
|
+
/**
|
|
5346
|
+
* 범례 모양.
|
|
5347
|
+
* - `simple` 이름만 가로로 나열한다 (값 없음)
|
|
5348
|
+
* - `default` 이름 뒤에 값을 적어 세로로 쌓는 목록이다
|
|
5349
|
+
*/
|
|
5350
|
+
export type SDonutChartLegendVariant = 'simple' | 'default';
|
|
5351
|
+
```
|
|
5352
|
+
|
|
5341
5353
|
### SDonutChartSlicePoint
|
|
5342
5354
|
|
|
5343
5355
|
```ts
|
|
@@ -7131,6 +7143,7 @@ export type SLayoutHeader = SGnbHeader;
|
|
|
7131
7143
|
| `title?` | `string` | — | 차트 제목 — 왼쪽 위에 놓인다 |
|
|
7132
7144
|
| `unit?` | `string` | — | 단위 — 오른쪽 위에 "단위 : " 를 붙여 놓는다 |
|
|
7133
7145
|
| `curve?` | `SLineChartCurve` | `'linear'` | 점을 잇는 방식. `smooth` 는 값을 넘어가 부풀지 않는 곡선이다 |
|
|
7146
|
+
| `lineStyle?` | `SLineChartLineStyle` | `'solid'` | 선 모양. `dashed` 는 차트의 모든 선을 점선으로 그린다 |
|
|
7134
7147
|
| `area?` | `boolean` | `false` | 선 아래를 계열 색으로 채운다. 크기의 변화를 함께 보여줄 때 쓴다 |
|
|
7135
7148
|
| `stacked?` | `boolean` | `false` | 계열을 겹쳐 그리는 대신 **아래 계열 위에 쌓는다**. 전체의 크기와 그 안의 구성을 함께 볼 때 쓴다 — 맨 위 선이 곧 합계다. 툴팁은 쌓기 전 각 계열의 값을 보여준다 |
|
|
7136
7149
|
| `palette?` | `SLineChartPalette` | `'default'` | 색 팔레트. `custom` 일 때만 `colors` 를 본다 |
|
|
@@ -7175,6 +7188,13 @@ export interface SLineChartSeries {
|
|
|
7175
7188
|
export type SLineChartCurve = 'linear' | 'smooth';
|
|
7176
7189
|
```
|
|
7177
7190
|
|
|
7191
|
+
### SLineChartLineStyle
|
|
7192
|
+
|
|
7193
|
+
```ts
|
|
7194
|
+
/** 선 모양. `dashed` 는 차트의 모든 선에 적용된다 — 일부 계열만 점선으로 구분하려면 쓰지 않는다 */
|
|
7195
|
+
export type SLineChartLineStyle = 'solid' | 'dashed';
|
|
7196
|
+
```
|
|
7197
|
+
|
|
7178
7198
|
### SLineChartPalette
|
|
7179
7199
|
|
|
7180
7200
|
```ts
|
package/dist/styles.css
CHANGED
|
@@ -1844,6 +1844,9 @@
|
|
|
1844
1844
|
.gap-\(--cmp-chart-chartTooltipItem-gap\) {
|
|
1845
1845
|
gap: var(--cmp-chart-chartTooltipItem-gap);
|
|
1846
1846
|
}
|
|
1847
|
+
.gap-\(--cmp-chart-doughnut-legend-data-default-gap\) {
|
|
1848
|
+
gap: var(--cmp-chart-doughnut-legend-data-default-gap);
|
|
1849
|
+
}
|
|
1847
1850
|
.gap-\(--cmp-chart-gap\) {
|
|
1848
1851
|
gap: var(--cmp-chart-gap);
|
|
1849
1852
|
}
|