react-frontend-common-components 0.0.55 → 0.0.56
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/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/app-chart/app-chart.tsx +5 -0
- package/src/components/app-input/app-input.tsx +2 -0
- package/src/components/app-select/app-select.tsx +2 -0
package/package.json
CHANGED
@@ -47,6 +47,7 @@ const AppChart = ({
|
|
47
47
|
className,
|
48
48
|
height = 400,
|
49
49
|
width = 600,
|
50
|
+
...props
|
50
51
|
}: AppChartProps) => {
|
51
52
|
const renderChart = () => {
|
52
53
|
switch (type) {
|
@@ -56,6 +57,7 @@ const AppChart = ({
|
|
56
57
|
data={data as ChartData<"bar">}
|
57
58
|
options={options as ChartOptions<"bar">}
|
58
59
|
className={className}
|
60
|
+
{...props}
|
59
61
|
/>
|
60
62
|
);
|
61
63
|
case "line":
|
@@ -64,6 +66,7 @@ const AppChart = ({
|
|
64
66
|
data={data as ChartData<"line">}
|
65
67
|
options={options as ChartOptions<"line">}
|
66
68
|
className={className}
|
69
|
+
{...props}
|
67
70
|
/>
|
68
71
|
);
|
69
72
|
case "pie":
|
@@ -72,6 +75,7 @@ const AppChart = ({
|
|
72
75
|
data={data as ChartData<"pie">}
|
73
76
|
options={options as ChartOptions<"pie">}
|
74
77
|
className={className}
|
78
|
+
{...props}
|
75
79
|
/>
|
76
80
|
);
|
77
81
|
case "doughnut":
|
@@ -80,6 +84,7 @@ const AppChart = ({
|
|
80
84
|
data={data as ChartData<"doughnut">}
|
81
85
|
options={options as ChartOptions<"doughnut">}
|
82
86
|
className={className}
|
87
|
+
{...props}
|
83
88
|
/>
|
84
89
|
);
|
85
90
|
default:
|
@@ -50,6 +50,7 @@ const AppInput = ({
|
|
50
50
|
errorMessage,
|
51
51
|
suffixIcon,
|
52
52
|
prefixIcon,
|
53
|
+
...props
|
53
54
|
}: AppInputProps) => {
|
54
55
|
const inputRef = useRef<InputRef>(null);
|
55
56
|
|
@@ -79,6 +80,7 @@ const AppInput = ({
|
|
79
80
|
ref={inputRef}
|
80
81
|
prefix={prefixIcon && prefixIcon}
|
81
82
|
suffix={suffixIcon && suffixIcon}
|
83
|
+
{...props}
|
82
84
|
/>
|
83
85
|
|
84
86
|
{errorMessage && <div className={"error"}>{errorMessage}</div>}
|
@@ -26,6 +26,7 @@ const AppSelect = ({
|
|
26
26
|
placeholder,
|
27
27
|
className,
|
28
28
|
errorMessage,
|
29
|
+
...props
|
29
30
|
}: AppSelectProps) => {
|
30
31
|
return (
|
31
32
|
<div className={`appselect ${className}`}>
|
@@ -37,6 +38,7 @@ const AppSelect = ({
|
|
37
38
|
onChange={(value: string | string[]) =>
|
38
39
|
handleChange && handleChange(value)
|
39
40
|
}
|
41
|
+
{...props}
|
40
42
|
>
|
41
43
|
{options &&
|
42
44
|
options.map((option, i) => (
|