react-frontend-common-components 0.0.55 → 0.0.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-frontend-common-components",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "Reusable frontend library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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) {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { Input, InputRef } from "antd";
3
+ import { Input, InputProps, InputRef } from "antd";
4
4
  import {
5
5
  ChangeEventHandler,
6
6
  KeyboardEventHandler,
@@ -10,7 +10,7 @@ import {
10
10
  } from "react";
11
11
  import "./app-input.css";
12
12
 
13
- interface AppInputProps {
13
+ interface AppInputProps extends InputProps {
14
14
  className?: string;
15
15
  label?: string;
16
16
  name?: string;
@@ -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>}
@@ -3,7 +3,7 @@ import { Select } from "antd";
3
3
  import { MouseEventHandler } from "react";
4
4
  import "./app-select.css";
5
5
 
6
- interface AppSelectProps {
6
+ interface AppSelectProps {
7
7
  className?: string;
8
8
  value?: string | null;
9
9
  dataTestId?: string;
@@ -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) => (
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
- import { Layout, Menu } from "antd";
2
+ import { Layout, Menu, SelectProps } from "antd";
3
3
  import "./app-sidebar.css";
4
4
 
5
5
  const { Sider } = Layout;
6
6
 
7
- interface SidebarProps {
7
+ interface SidebarProps extends SelectProps {
8
8
  links: {
9
9
  onClick?: () => void;
10
10
  label: string;