shekel-fe-shared-lib 1.0.8 → 1.0.9
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.cjs +29 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1168 -550
- package/dist/index.mjs.map +1 -1
- package/dist/types/components/Badge.d.ts +7 -2
- package/dist/types/components/Button.d.ts +9 -2
- package/dist/types/components/Card.d.ts +5 -2
- package/dist/types/components/Checkbox.d.ts +6 -2
- package/dist/types/components/Dropdown.d.ts +7 -1
- package/dist/types/components/Modal.d.ts +8 -0
- package/dist/types/components/Progress.d.ts +6 -1
- package/dist/types/components/SearchInput.d.ts +10 -2
- package/dist/types/components/Select.d.ts +10 -2
- package/dist/types/components/SelectedItemsList.d.ts +10 -1
- package/dist/types/components/StatCard.d.ts +12 -1
- package/dist/types/components/Steps.d.ts +8 -2
- package/dist/types/components/Table.d.ts +10 -2
- package/dist/types/components/TableTop.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, FC, ReactNode } from 'react';
|
|
1
|
+
import { ButtonHTMLAttributes, CSSProperties, FC, ReactNode } from 'react';
|
|
2
2
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
variant?: 'primary' | 'outlined' | 'ghost' | 'text';
|
|
4
|
-
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
iconPosition?: 'left' | 'right';
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
hoverColor?: string;
|
|
10
|
+
bgColor?: string;
|
|
11
|
+
textColor?: string;
|
|
12
|
+
borderColor?: string;
|
|
13
|
+
hoverBgColor?: string;
|
|
14
|
+
hoverTextColor?: string;
|
|
15
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
16
|
+
style?: CSSProperties;
|
|
10
17
|
}
|
|
11
18
|
export declare const Button: FC<ButtonProps>;
|
|
12
19
|
export default Button;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
1
|
+
import { FC, HTMLAttributes, CSSProperties } from 'react';
|
|
2
2
|
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
3
|
+
padding?: 'none' | 'sm' | 'md' | 'lg' | 'responsive';
|
|
4
4
|
shadow?: 'none' | 'sm' | 'md' | 'lg';
|
|
5
5
|
hover?: boolean;
|
|
6
6
|
bordered?: boolean;
|
|
7
7
|
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
bgColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
style?: CSSProperties;
|
|
8
11
|
}
|
|
9
12
|
export declare const Card: FC<CardProps>;
|
|
10
13
|
export default Card;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
2
|
export interface CheckboxProps {
|
|
3
3
|
checked?: boolean;
|
|
4
4
|
defaultChecked?: boolean;
|
|
5
5
|
onChange?: (checked: boolean) => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
9
9
|
variant?: 'filled' | 'outline';
|
|
10
10
|
className?: string;
|
|
11
11
|
id?: string;
|
|
12
12
|
name?: string;
|
|
13
13
|
value?: string;
|
|
14
|
+
checkedColor?: string;
|
|
15
|
+
uncheckedColor?: string;
|
|
16
|
+
checkedBorderColor?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
14
18
|
}
|
|
15
19
|
export declare const Checkbox: FC<CheckboxProps>;
|
|
16
20
|
export default Checkbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
1
|
+
import { FC, ReactNode, CSSProperties } from 'react';
|
|
2
2
|
export interface DropdownMenuItem {
|
|
3
3
|
key: string;
|
|
4
4
|
label: ReactNode;
|
|
@@ -15,6 +15,12 @@ export interface DropdownProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
overlayClassName?: string;
|
|
17
17
|
disabled?: boolean;
|
|
18
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
19
|
+
menuBgColor?: string;
|
|
20
|
+
menuItemHoverColor?: string;
|
|
21
|
+
dangerColor?: string;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
style?: CSSProperties;
|
|
18
24
|
}
|
|
19
25
|
export declare const Dropdown: FC<DropdownProps>;
|
|
20
26
|
export default Dropdown;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
+
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'responsive';
|
|
2
3
|
export interface ModalProps {
|
|
3
4
|
open: boolean;
|
|
4
5
|
onClose: () => void;
|
|
@@ -6,10 +7,17 @@ export interface ModalProps {
|
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
footer?: ReactNode;
|
|
8
9
|
width?: string | number;
|
|
10
|
+
size?: ModalSize;
|
|
9
11
|
closable?: boolean;
|
|
10
12
|
maskClosable?: boolean;
|
|
11
13
|
centered?: boolean;
|
|
12
14
|
className?: string;
|
|
15
|
+
bgColor?: string;
|
|
16
|
+
headerBgColor?: string;
|
|
17
|
+
overlayColor?: string;
|
|
18
|
+
bodyClassName?: string;
|
|
19
|
+
headerClassName?: string;
|
|
20
|
+
maxHeight?: string | number;
|
|
13
21
|
}
|
|
14
22
|
export declare const Modal: FC<ModalProps>;
|
|
15
23
|
export default Modal;
|
|
@@ -5,9 +5,14 @@ export interface ProgressProps {
|
|
|
5
5
|
showInfo?: boolean;
|
|
6
6
|
strokeColor?: string;
|
|
7
7
|
strokeWidth?: number;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
9
9
|
className?: string;
|
|
10
10
|
format?: (percent: number) => ReactNode;
|
|
11
|
+
bgColor?: string;
|
|
12
|
+
successColor?: string;
|
|
13
|
+
exceptionColor?: string;
|
|
14
|
+
trackColor?: string;
|
|
15
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
11
16
|
}
|
|
12
17
|
export declare const Progress: FC<ProgressProps>;
|
|
13
18
|
export default Progress;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { FC, ReactNode, InputHTMLAttributes } from 'react';
|
|
1
|
+
import { FC, ReactNode, InputHTMLAttributes, CSSProperties } from 'react';
|
|
2
2
|
export interface SearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
3
|
icon?: ReactNode;
|
|
4
4
|
iconPosition?: 'left' | 'right';
|
|
5
|
-
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
onIconClick?: () => void;
|
|
8
|
+
bgColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
focusBorderColor?: string;
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
placeholderColor?: string;
|
|
14
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
15
|
+
style?: CSSProperties;
|
|
8
16
|
}
|
|
9
17
|
export declare const SearchInput: FC<SearchInputProps>;
|
|
10
18
|
export default SearchInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
2
|
export interface SelectOption {
|
|
3
3
|
value: string | number;
|
|
4
4
|
label: string;
|
|
@@ -11,12 +11,20 @@ export interface SelectProps {
|
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
onChange?: (value: string | number) => void;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
-
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
15
15
|
fullWidth?: boolean;
|
|
16
16
|
className?: string;
|
|
17
17
|
allowClear?: boolean;
|
|
18
18
|
showSearch?: boolean;
|
|
19
19
|
searchPlaceholder?: string;
|
|
20
|
+
bgColor?: string;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
focusBorderColor?: string;
|
|
23
|
+
selectedBgColor?: string;
|
|
24
|
+
selectedTextColor?: string;
|
|
25
|
+
hoverBgColor?: string;
|
|
26
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
27
|
+
style?: CSSProperties;
|
|
20
28
|
}
|
|
21
29
|
export declare const Select: FC<SelectProps>;
|
|
22
30
|
export default Select;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
2
|
export interface SelectedItem {
|
|
3
3
|
id: string | number;
|
|
4
4
|
label: string;
|
|
@@ -11,6 +11,15 @@ export interface SelectedItemsListProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
itemClassName?: string;
|
|
13
13
|
maxHeight?: string;
|
|
14
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
15
|
+
bgColor?: string;
|
|
16
|
+
hoverBgColor?: string;
|
|
17
|
+
textColor?: string;
|
|
18
|
+
sublabelColor?: string;
|
|
19
|
+
removeButtonColor?: string;
|
|
20
|
+
removeButtonHoverColor?: string;
|
|
21
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
22
|
+
style?: CSSProperties;
|
|
14
23
|
}
|
|
15
24
|
export declare const SelectedItemsList: FC<SelectedItemsListProps>;
|
|
16
25
|
export default SelectedItemsList;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
2
|
export interface StatCardProps {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string | number;
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
className?: string;
|
|
8
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
9
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
10
|
+
bgColor?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
labelColor?: string;
|
|
13
|
+
valueColor?: string;
|
|
14
|
+
selectedBgColor?: string;
|
|
15
|
+
selectedBorderColor?: string;
|
|
16
|
+
selectedLabelColor?: string;
|
|
17
|
+
selectedValueColor?: string;
|
|
18
|
+
style?: CSSProperties;
|
|
8
19
|
}
|
|
9
20
|
export declare const StatCard: FC<StatCardProps>;
|
|
10
21
|
export default StatCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
1
|
+
import { FC, ReactNode, CSSProperties } from 'react';
|
|
2
2
|
export interface StepItem {
|
|
3
3
|
title: string;
|
|
4
4
|
description?: string;
|
|
@@ -9,9 +9,15 @@ export interface StepsProps {
|
|
|
9
9
|
items: StepItem[];
|
|
10
10
|
current?: number;
|
|
11
11
|
direction?: 'horizontal' | 'vertical';
|
|
12
|
-
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
13
13
|
variant?: 'default' | 'outline';
|
|
14
14
|
className?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
finishColor?: string;
|
|
17
|
+
processColor?: string;
|
|
18
|
+
waitColor?: string;
|
|
19
|
+
errorColor?: string;
|
|
20
|
+
lineColor?: string;
|
|
15
21
|
}
|
|
16
22
|
export declare const Steps: FC<StepsProps>;
|
|
17
23
|
export default Steps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, HTMLAttributes } from 'react';
|
|
1
|
+
import { ReactNode, HTMLAttributes, CSSProperties } from 'react';
|
|
2
2
|
export interface ColumnDef<T = any> {
|
|
3
3
|
key: string;
|
|
4
4
|
title: string;
|
|
@@ -18,6 +18,14 @@ export interface TableProps<T = any> {
|
|
|
18
18
|
className?: string;
|
|
19
19
|
bordered?: boolean;
|
|
20
20
|
striped?: boolean;
|
|
21
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
22
|
+
headerBgColor?: string;
|
|
23
|
+
headerTextColor?: string;
|
|
24
|
+
rowHoverColor?: string;
|
|
25
|
+
borderColor?: string;
|
|
26
|
+
stripedRowColor?: string;
|
|
27
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
28
|
+
style?: CSSProperties;
|
|
21
29
|
}
|
|
22
30
|
export interface PaginationConfig {
|
|
23
31
|
current?: number;
|
|
@@ -29,5 +37,5 @@ export interface PaginationConfig {
|
|
|
29
37
|
showTotal?: boolean;
|
|
30
38
|
size?: 'sm' | 'md' | 'lg';
|
|
31
39
|
}
|
|
32
|
-
export declare const Table: <T extends Record<string, any>>({ columns, dataSource, rowKey, pagination, loading, onRow, className, bordered, striped, }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const Table: <T extends Record<string, any>>({ columns, dataSource, rowKey, pagination, loading, onRow, className, bordered, striped, size, headerBgColor, headerTextColor, rowHoverColor, borderColor, stripedRowColor, rounded, style, }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
33
41
|
export default Table;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
1
|
+
import { FC, ReactNode, CSSProperties } from 'react';
|
|
2
2
|
export interface TableTopProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
@@ -7,6 +7,14 @@ export interface TableTopProps {
|
|
|
7
7
|
actions?: ReactNode;
|
|
8
8
|
filters?: ReactNode;
|
|
9
9
|
className?: string;
|
|
10
|
+
size?: 'sm' | 'md' | 'lg' | 'responsive';
|
|
11
|
+
titleColor?: string;
|
|
12
|
+
descriptionColor?: string;
|
|
13
|
+
searchBgColor?: string;
|
|
14
|
+
searchBorderColor?: string;
|
|
15
|
+
searchFocusBorderColor?: string;
|
|
16
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
17
|
+
style?: CSSProperties;
|
|
10
18
|
}
|
|
11
19
|
export declare const TableTop: FC<TableTopProps>;
|
|
12
20
|
export default TableTop;
|