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/dist/index.d.ts +6 -6
- 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 +1 -0
- package/src/components/app-input/app-input.tsx +4 -2
- package/src/components/app-select/app-select.tsx +3 -1
- package/src/components/app-sidebar/app-sidebar.tsx +2 -2
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
import { InputProps, SelectProps, TabsProps, BadgeProps, AvatarProps, ListProps, DividerProps, BreadcrumbProps, CarouselProps, TableProps, FloatButtonProps } from 'antd';
|
2
3
|
import React$1, { ChangeEventHandler, MouseEventHandler, KeyboardEventHandler } from 'react';
|
3
|
-
import { TabsProps, BadgeProps, AvatarProps, SelectProps, ListProps, DividerProps, BreadcrumbProps, CarouselProps, TableProps, FloatButtonProps } from 'antd';
|
4
4
|
import { ChartData, ChartOptions } from 'chart.js';
|
5
5
|
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
6
6
|
import { CollapseProps, CollapsePanelProps } from 'antd/lib/collapse';
|
@@ -9,7 +9,7 @@ import { CardProps } from 'antd/lib/card';
|
|
9
9
|
import { ColumnsType } from 'antd/lib/table';
|
10
10
|
import { PopoverProps } from 'antd/lib/popover';
|
11
11
|
|
12
|
-
interface AppInputProps {
|
12
|
+
interface AppInputProps extends InputProps {
|
13
13
|
className?: string;
|
14
14
|
label?: string;
|
15
15
|
name?: string;
|
@@ -29,7 +29,7 @@ interface AppInputProps {
|
|
29
29
|
suffixIcon?: React.ReactNode;
|
30
30
|
prefixIcon?: React.ReactNode;
|
31
31
|
}
|
32
|
-
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, }: AppInputProps) => react_jsx_runtime.JSX.Element;
|
32
|
+
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, ...props }: AppInputProps) => react_jsx_runtime.JSX.Element;
|
33
33
|
|
34
34
|
interface AppButtonProps {
|
35
35
|
size?: "small" | "middle" | "large" | "default" | undefined;
|
@@ -44,7 +44,7 @@ interface AppButtonProps {
|
|
44
44
|
}
|
45
45
|
declare const AppButton: ({ type, size, className, handleClick, icon, text, disabled, iconPosition, isLoading, }: AppButtonProps) => react_jsx_runtime.JSX.Element;
|
46
46
|
|
47
|
-
interface SidebarProps {
|
47
|
+
interface SidebarProps extends SelectProps {
|
48
48
|
links: {
|
49
49
|
onClick?: () => void;
|
50
50
|
label: string;
|
@@ -130,7 +130,7 @@ interface AppChartProps {
|
|
130
130
|
height?: number;
|
131
131
|
width?: number;
|
132
132
|
}
|
133
|
-
declare const AppChart: ({ type, data, options, className, height, width, }: AppChartProps) => react_jsx_runtime.JSX.Element;
|
133
|
+
declare const AppChart: ({ type, data, options, className, height, width, ...props }: AppChartProps) => react_jsx_runtime.JSX.Element;
|
134
134
|
|
135
135
|
interface ImageType {
|
136
136
|
src: string;
|
@@ -309,7 +309,7 @@ interface AppSelectProps {
|
|
309
309
|
placeholder?: string;
|
310
310
|
errorMessage?: string;
|
311
311
|
}
|
312
|
-
declare const AppSelect: ({ value, handleChange, options, disabled, placeholder, className, errorMessage, }: AppSelectProps) => react_jsx_runtime.JSX.Element;
|
312
|
+
declare const AppSelect: ({ value, handleChange, options, disabled, placeholder, className, errorMessage, ...props }: AppSelectProps) => react_jsx_runtime.JSX.Element;
|
313
313
|
|
314
314
|
interface AppSelectAddProps extends SelectProps {
|
315
315
|
options?: SelectProps["options"];
|