@uniai-fe/ui-legacy 0.1.6 → 0.1.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.
Files changed (103) hide show
  1. package/README.md +3 -1
  2. package/package.json +35 -37
  3. package/src/button/index.tsx +12 -12
  4. package/src/components.tsx +2 -2
  5. package/src/icon/icon.scss +1 -1
  6. package/src/icon/index.tsx +4 -4
  7. package/src/icon/styled.tsx +2 -2
  8. package/src/index.scss +2 -2
  9. package/src/index.tsx +0 -2
  10. package/src/types/index.d.ts +2 -2
  11. package/src/chart/chart.scss +0 -11
  12. package/src/chart/components/Contents.tsx +0 -17
  13. package/src/chart/components/control/Button.tsx +0 -39
  14. package/src/chart/components/control/Container.tsx +0 -27
  15. package/src/chart/components/control/Provider.tsx +0 -117
  16. package/src/chart/components/control/index.tsx +0 -12
  17. package/src/chart/components/custom/ActivePieSector.tsx +0 -29
  18. package/src/chart/components/graphs/ArcGauge.tsx +0 -58
  19. package/src/chart/components/graphs/ArcMeter.tsx +0 -112
  20. package/src/chart/components/graphs/Area.tsx +0 -132
  21. package/src/chart/components/graphs/Bar.tsx +0 -179
  22. package/src/chart/components/graphs/Doughnut.tsx +0 -90
  23. package/src/chart/components/graphs/Line.tsx +0 -123
  24. package/src/chart/components/graphs/index.tsx +0 -17
  25. package/src/chart/components/ticks/XAxis.tsx +0 -39
  26. package/src/chart/components/ticks/index.tsx +0 -7
  27. package/src/chart/index.tsx +0 -17
  28. package/src/chart/styled.tsx +0 -3
  29. package/src/chart/styles/scss/arc-gauge.scss +0 -11
  30. package/src/chart/styles/scss/arc-meter.scss +0 -6
  31. package/src/chart/styles/scss/control.scss +0 -34
  32. package/src/chart/styles/scss/filter.scss +0 -0
  33. package/src/chart/styles/scss/graph.scss +0 -3
  34. package/src/chart/styles/scss/legend.scss +0 -35
  35. package/src/chart/styles/scss/level.color.scss +0 -7
  36. package/src/chart/styles/scss/tick.scss +0 -48
  37. package/src/chart/styles/scss/tooltip.scss +0 -70
  38. package/src/chart/styles/styled/arc-gauge.ts +0 -65
  39. package/src/chart/styles/styled/arc-meter.ts +0 -42
  40. package/src/chart/styles/styled/common.ts +0 -14
  41. package/src/chart/styles/styled/control.ts +0 -31
  42. package/src/chart/styles/styled/legend.ts +0 -11
  43. package/src/chart/svg/gauge-track.min.svg +0 -1
  44. package/src/chart/utils/getLevel.ts +0 -23
  45. package/src/icon/components/chart/Control.tsx +0 -40
  46. package/src/icon/components/chart/index.tsx +0 -7
  47. package/src/icon/components/health-score/HealthScore.tsx +0 -46
  48. package/src/icon/components/health-score/index.tsx +0 -3
  49. package/src/icon/styles/scss/chart.scss +0 -3
  50. package/src/icon/styles/styled/chart.ts +0 -17
  51. package/src/icon/svg/chart/control/pan-left.svg +0 -4
  52. package/src/icon/svg/chart/control/pan-right.svg +0 -4
  53. package/src/icon/svg/chart/control/zoom-in.svg +0 -4
  54. package/src/icon/svg/chart/control/zoom-out.svg +0 -4
  55. package/src/styled.template.tsx +0 -5
  56. package/src/template/compare/compare.scss +0 -1
  57. package/src/template/compare/components/box/Container.tsx +0 -33
  58. package/src/template/compare/components/box/TextStrong.tsx +0 -15
  59. package/src/template/compare/components/box/TextSub.tsx +0 -15
  60. package/src/template/compare/components/box/index.tsx +0 -11
  61. package/src/template/compare/components/button/Remove.tsx +0 -28
  62. package/src/template/compare/components/button/index.tsx +0 -5
  63. package/src/template/compare/components/chart/Container.tsx +0 -33
  64. package/src/template/compare/components/chart/graph/Container.tsx +0 -15
  65. package/src/template/compare/components/chart/graph/Item.tsx +0 -13
  66. package/src/template/compare/components/chart/index.tsx +0 -16
  67. package/src/template/compare/components/chart/legend/Container.tsx +0 -23
  68. package/src/template/compare/components/chart/legend/Section.tsx +0 -31
  69. package/src/template/compare/components/select-list/Container.tsx +0 -15
  70. package/src/template/compare/components/select-list/Header.tsx +0 -15
  71. package/src/template/compare/components/select-list/Item.tsx +0 -15
  72. package/src/template/compare/components/select-list/List.tsx +0 -18
  73. package/src/template/compare/components/select-list/index.tsx +0 -13
  74. package/src/template/compare/index.tsx +0 -13
  75. package/src/template/compare/styled.tsx +0 -17
  76. package/src/template/compare/styles/scss/variables.scss +0 -17
  77. package/src/template/compare/styles/styled-components/chart/graph.ts +0 -26
  78. package/src/template/compare/styles/styled-components/chart/layout.ts +0 -38
  79. package/src/template/compare/styles/styled-components/chart/legend.ts +0 -64
  80. package/src/template/compare/styles/styled-components/common.ts +0 -57
  81. package/src/template/compare/styles/styled-components/select-list.ts +0 -36
  82. package/src/template/filter/components/Container.tsx +0 -39
  83. package/src/template/filter/components/Group.tsx +0 -100
  84. package/src/template/filter/components/ToggleButton.tsx +0 -27
  85. package/src/template/filter/index.tsx +0 -5
  86. package/src/template/filter/styled.tsx +0 -3
  87. package/src/template/filter/styles/styled-components/filter.ts +0 -66
  88. package/src/template/health-score/components/Chart.tsx +0 -38
  89. package/src/template/health-score/index.tsx +0 -3
  90. package/src/template/health-score/styled.tsx +0 -3
  91. package/src/template/health-score/styles/styled/chart.ts +0 -26
  92. package/src/template.tsx +0 -5
  93. package/src/types/chart/axis.d.ts +0 -15
  94. package/src/types/chart/control.d.ts +0 -109
  95. package/src/types/chart/data.d.ts +0 -41
  96. package/src/types/chart/dot.d.ts +0 -3
  97. package/src/types/chart/index.d.ts +0 -7
  98. package/src/types/chart/legend.d.ts +0 -124
  99. package/src/types/chart/props.d.ts +0 -271
  100. package/src/types/chart/tick.d.ts +0 -30
  101. package/src/types/template/compare/chart.d.ts +0 -8
  102. package/src/types/template/filter.d.ts +0 -39
  103. package/src/types/template/index.d.ts +0 -2
@@ -1,271 +0,0 @@
1
- import type { TooltipProps, XAxisProps, YAxisProps } from "recharts";
2
- import type { CategoricalChartProps } from "recharts/types/chart/generateCategoricalChart";
3
- import type {
4
- NameType,
5
- ValueType,
6
- } from "recharts/types/component/DefaultTooltipContent";
7
- import type { Props as ResponsiveContainerProps } from "recharts/types/component/ResponsiveContainer";
8
-
9
- import type { ChartYAxisDataType } from "./axis";
10
- import type { ChartCoreDataAxisType, ChartCoreDataSingleType } from "./data";
11
- import type { AreaGradientProps, ChartLegendBaseType } from "./legend";
12
- import type { Props as PieProps } from "recharts/types/polar/Pie";
13
- import type { Props as LineProps } from "recharts/types/cartesian/Line";
14
- import type { Props as BarProps } from "recharts/types/cartesian/Bar";
15
- import type { Props as CellProps } from "recharts/types/component/Cell";
16
-
17
- /**
18
- * 차트 Props; 1차원 차트 데이터
19
- * @property {ChartCoreDataSingleType[]} chartData - 차트 렌더링 데이터
20
- */
21
- export type ChartDataSingleProps = {
22
- /**
23
- * 차트 렌더링 데이터
24
- * @property {string | number | null} 임의 데이터
25
- * @property {string} name - 데이터 명칭
26
- * @property {string} value - 데이터 값
27
- * @property {string} unit - 데이터 단위
28
- * @property {string} fill - 데이터 색상
29
- */
30
- chartData: ChartCoreDataSingleType[];
31
- };
32
-
33
- /**
34
- * 차트 Props; 2차원 차트 데이터
35
- * @property {ChartCoreDataAxisType[]} chartData - 차트 렌더링 데이터
36
- */
37
- export type ChartDataAxisProps = {
38
- /**
39
- * 차트 렌더링 데이터
40
- * @property {string | number | null} 데이터
41
- */
42
- chartData: ChartCoreDataAxisType[];
43
- };
44
-
45
- /**
46
- * 차트 Props; 레전드 데이터
47
- * - 레전드 항목수 대로 <Line />, <Bar /> 등을 렌더링
48
- * @property {ChartLegendBaseType[]} legendData - 차트 레전드 데이터
49
- */
50
- export type ChartDataLegendDefaultProps = {
51
- /**
52
- * 차트 레전드 데이터
53
- * @property {string} key - 렌더링 키
54
- * @property {string} axisCategory - y축 id
55
- * @property {string} code - 데이터 키
56
- * @property {string} name - 데이터 명칭
57
- * @property {string} unit - 데이터 단위
58
- * @property {string} color - 데이터 컬러
59
- * @property {boolean} active - 데이터 활성화 여부 (레전드 토글 등)
60
- * @property {boolean} [highlight] - 포커스 구분
61
- */
62
- legendData: ChartLegendBaseType[];
63
- };
64
-
65
- /**
66
- * 차트 Props; Y축 렌더링 데이터
67
- * @property {ChartYAxisDataType[]} yAxisData - y축 카테고리별 생성 데이터
68
- */
69
- export type ChartDataYAxisProps = {
70
- /**
71
- * y축 카테고리별 생성 데이터
72
- * @property {string} key - 렌더링 키
73
- * @property {string} axisCategory - y축 id
74
- */
75
- yAxisData: ChartYAxisDataType[];
76
- };
77
-
78
- /**
79
- * 차트 Props; recharts 렌더링 공통 옵션
80
- * @property {CategoricalChartProps} chartLayoutOptions - 형태별 차트 렌더링 옵션
81
- * @property {TooltipProps<ValueType, NameType>} tooltipOptions - 툴팁 렌더링 옵션
82
- * @property {ResponsiveContainerProps} containerOptions - <ResponsiveContainer /> 렌더링 옵션
83
- * @property {React.ReactNode} children - 추가 차트요소
84
- */
85
- export type ChartOptionCommonProps = Partial<{
86
- /**
87
- * 차트 렌더링 옵션
88
- * <LineChart />, <BarChart /> 등 차트 속성에 적용
89
- * @type {CategoricalChartProps}
90
- */
91
- chartLayoutOptions: CategoricalChartProps;
92
- /**
93
- * 툴팁 렌더링 옵션
94
- * @type {TooltipProps<ValueType, NameType>}
95
- */
96
- tooltipOptions: TooltipProps<ValueType, NameType>;
97
- /**
98
- * <ResponsiveContainer /> 렌더링 옵션
99
- * @type {ResponsiveContainerProps}
100
- */
101
- containerOptions: Omit<ResponsiveContainerProps, "children">;
102
- /**
103
- * DOM ClassName
104
- */
105
- className: string;
106
- /**
107
- * 추가 차트요소
108
- * @type {React.ReactNode}
109
- */
110
- children: React.ReactNode;
111
- }>;
112
-
113
- /**
114
- * 차트 Props; recharts axis 렌더링 옵션
115
- * @property {XAxisProps} [xAxisOptions] - x축 렌더링 옵션
116
- * @property {YAxisProps} [yAxisOptions] - y축 렌더링 옵션
117
- * @property {boolean} [isHideGrid] - 그리드 숨김 옵션
118
- */
119
- export type ChartOptionAxisProps = Partial<{
120
- /**
121
- * x축 렌더링 옵션
122
- * @type {XAxisProps}
123
- */
124
- xAxisOptions: XAxisProps;
125
- /**
126
- * y축 렌더링 옵션
127
- * @type {YAxisProps}
128
- */
129
- yAxisOptions: YAxisProps;
130
- /**
131
- * 그리드 렌더링 여부
132
- * - 기본값 undefined
133
- */
134
- isHideGrid: boolean;
135
- }>;
136
-
137
- export type ChartAreaDataLegendProps = ChartLegendBaseType &
138
- Partial<{
139
- /**
140
- * <Area /> 차트 컬러 - 단식
141
- */
142
- areaColor: string;
143
- /**
144
- * <Area /> 차트 컬러 - 그라디언트
145
- */
146
- areaGradient: AreaGradientProps;
147
- }>;
148
-
149
- /**
150
- * 차트 Props; 레전드 데이터; <Area /> 레전드
151
- * @property {ChartAreaDataLegendProps[]} legendData - 차트 레전드 데이터
152
- */
153
- export type ChartDataLegendAreaProps = {
154
- /**
155
- * 차트 레전드 데이터
156
- * @property {string} key - 렌더링 키
157
- * @property {string} axisCategory - y축 id
158
- * @property {string} code - 데이터 키
159
- * @property {string} name - 데이터 명칭
160
- * @property {string} unit - 데이터 단위
161
- * @property {string} color - 데이터 컬러
162
- * @property {boolean} active - 데이터 활성화 여부 (레전드 토글 등)
163
- * @property {boolean} [highlight] - 포커스 구분
164
- * @property {string} [areaColor] - <Area /> 차트 컬러 - 단색
165
- * @property {AreaGradientProps} [areaGradient] - <Area /> 차트 컬러 - 그라디언트
166
- */
167
- legendData: ChartAreaDataLegendProps[];
168
- };
169
-
170
- /**
171
- * 차트 Props; 영역 차트
172
- */
173
- export type ChartAreaProps = ChartDataAxisProps &
174
- ChartDataLegendAreaProps &
175
- ChartDataYAxisProps &
176
- ChartOptionCommonProps &
177
- ChartOptionAxisProps;
178
-
179
- /**
180
- * Recharts Props; Line
181
- */
182
- export type RechartLineProps = LineProps;
183
- /**
184
- * 차트 Props; <Line /> 옵션
185
- */
186
- export type ChartLineOptions = Partial<{ lineOptions: RechartLineProps }>;
187
- /**
188
- * 차트 Props; 라인 차트
189
- */
190
- export type ChartLineProps = ChartDataAxisProps &
191
- ChartDataLegendAreaProps &
192
- ChartDataYAxisProps &
193
- ChartOptionCommonProps &
194
- ChartOptionAxisProps &
195
- ChartLineOptions;
196
-
197
- /**
198
- * Recharts Props; Bar
199
- */
200
- export type RechartsBarProps = Partial<BarProps>;
201
- /**
202
- * Recharts Props; Cell
203
- */
204
- export type RechartsCellProps = Partial<CellProps>;
205
- /**
206
- * 차트 Props; <Bar /> 옵션
207
- */
208
- export type ChartBarOptions = Partial<{
209
- barOptions: RechartsBarProps;
210
- cellOptions: RechartsCellProps;
211
- }>;
212
- /**
213
- * 차트 Props; 막대 차트
214
- */
215
- export type ChartBarProps = ChartDataAxisProps &
216
- ChartDataLegendAreaProps &
217
- ChartDataYAxisProps &
218
- ChartOptionCommonProps &
219
- ChartOptionAxisProps &
220
- Partial<{
221
- /**
222
- * 막대 너비
223
- */
224
- barSize: number;
225
- /**
226
- * 서로 다른 x축 분포를 나타내는 경우
227
- */
228
- isUseCell: boolean;
229
- }> &
230
- ChartBarOptions;
231
-
232
- /**
233
- * 차트 Props; 도넛차트 렌더링 옵션
234
- */
235
- export type ChartOptionDoughnutProps = Partial<{
236
- /**
237
- * 도넛차트 width
238
- */
239
- width: number;
240
- /**
241
- * 도넛차트 height
242
- */
243
- height: number;
244
- /**
245
- * 도넛차트 두께
246
- */
247
- thickness: number;
248
- /**
249
- * 도넛차트 시작 각도
250
- */
251
- startAngle: number;
252
- /**
253
- * 도넛차트 종료 각도
254
- */
255
- endAngle: number;
256
- }>;
257
-
258
- /**
259
- * 차트 Props; <Pie /> 렌더링 옵션
260
- */
261
- export type ChartOptionPieProps = Partial<{
262
- pieOptions: PieProps;
263
- }>;
264
-
265
- /**
266
- * 차트 Props; 도넛 차트
267
- */
268
- export type ChartDoughnutProps = ChartDataSingleProps &
269
- ChartOptionCommonProps &
270
- ChartOptionDoughnutProps &
271
- ChartOptionPieProps;
@@ -1,30 +0,0 @@
1
- import type { XAxisProps } from "recharts";
2
-
3
- /**
4
- * recharts XAxis Tick 커스텀 Props
5
- */
6
- export type RechartsXAxisTickProps = XAxisProps & {
7
- // <text> 기본 속성
8
- verticalAnchor: "start" | "middle" | "end";
9
- // 추가 기본 정보; width, height, index, visibleTicksCount,
10
- index: number;
11
- // payload - 각 x의 y 데이터; coordinate, value, index, offset, tickCoord, isShow
12
- payload: {
13
- coordinate: number;
14
- value: number | string | null;
15
- index: number;
16
- offset: number;
17
- tickCoord: number;
18
- isShow: boolean;
19
- };
20
- };
21
-
22
- export type ChartTickXAxisProps = {
23
- xAxisProps: RechartsXAxisTickProps;
24
- } & Partial<{
25
- className: string;
26
- children: React.ReactNode;
27
- tSpanPos: React.SVGProps<SVGTSpanElement>;
28
- customValue: React.ReactNode;
29
- groupProps: React.SVGProps<SVGGElement>;
30
- }>;
@@ -1,8 +0,0 @@
1
- import type { ChartLegendBaseType } from "../../chart";
2
-
3
- export type CompareChartLegendCategoryDataType = {
4
- [categoryDataKey: string]: string | ChartLegendBaseType[];
5
- key: string;
6
- title: string;
7
- legend: ChartLegendBaseType[];
8
- };
@@ -1,39 +0,0 @@
1
- /**
2
- * 템플릿; 필터 그룹 하위 데이터
3
- * @property {string} dataKey 데이터 키
4
- * @property {string} name 이름
5
- */
6
- export type FilterGroupItemDataType = {
7
- /**
8
- * register data key
9
- * categoryKey 프로퍼티의 값
10
- * - string 값이 아닌 경우, `{categoryKey}_{value}` 형태로 사용
11
- */
12
- value: string;
13
- name: string;
14
- };
15
-
16
- /**
17
- * 템플릿; 필터 그룹 데이터
18
- * @property {string} key 렌더링 키
19
- * @property {string} categoryKey 그룹 카테고리 키 (컬럼 또는 차트 레전드 데이터 키)
20
- * @property {string} categoryName 그룹 카테고리 이름
21
- * @property {FilterGroupItemDataType[]} items 필터그룹 하위 아이템 데이터
22
- */
23
- export type FilterGroupDataType = {
24
- groupKey: string;
25
- categoryKey: string;
26
- categoryName: string;
27
- items: FilterGroupItemDataType[];
28
- };
29
-
30
- export type FilterStateItemDataType = {
31
- [itemKey: string]: boolean;
32
- all: boolean;
33
- };
34
- export type FilterGroupStateDataType = {
35
- [categoryKey: string]: FilterStateItemDataType;
36
- };
37
- export type FilterStateFormType = {
38
- filter: FilterGroupStateDataType;
39
- };
@@ -1,2 +0,0 @@
1
- export type * from "./filter";
2
- export type * from "./compare/chart";