shekel-fe-shared-lib 2.1.0 → 3.0.1
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 +68 -301
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4931 -2417
- package/dist/index.mjs.map +1 -1
- package/dist/shekel-fe-shared-lib.css +1 -1
- package/dist/types/components/Button/Button.d.ts +31 -5
- package/dist/types/components/Card/Card.d.ts +11 -3
- package/dist/types/components/Checkbox.d.ts +15 -7
- package/dist/types/components/CountrySelector/CountrySelector.d.ts +4 -2
- package/dist/types/components/Input/AmountInput.d.ts +14 -0
- package/dist/types/components/Input/CurrencyInput.d.ts +16 -4
- package/dist/types/components/Input/DatePicker.d.ts +40 -0
- package/dist/types/components/Input/DateRangePicker.d.ts +51 -0
- package/dist/types/components/Input/FileUpload.d.ts +68 -0
- package/dist/types/components/Input/Input.d.ts +18 -4
- package/dist/types/components/Input/OTPInput.d.ts +8 -0
- package/dist/types/components/Input/PasswordInput.d.ts +4 -7
- package/dist/types/components/Input/PhoneInput.d.ts +21 -8
- package/dist/types/components/Input/RadioCardGroup.d.ts +46 -0
- package/dist/types/components/Input/SelectInput.d.ts +62 -0
- package/dist/types/components/Input/Toggle.d.ts +31 -0
- package/dist/types/components/Input/_theme.d.ts +20 -0
- package/dist/types/components/Input/index.d.ts +14 -0
- package/dist/types/components/Modal.d.ts +57 -12
- package/dist/types/components/Steps.d.ts +15 -8
- package/dist/types/components/TabsComponent/TabsComponent.d.ts +7 -1
- package/dist/types/components/UserCard/UserCard.d.ts +2 -0
- package/dist/types/components/UserPill/UserPill.d.ts +3 -0
- package/dist/types/components/UserProfileDropdown/UserProfileDropdown.d.ts +13 -2
- package/dist/types/components/_Avatar.d.ts +12 -0
- package/dist/types/theme.d.ts +23 -4
- package/package.json +3 -9
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
export interface RadioCardOption<V extends string | number = string> {
|
|
4
|
+
value: V;
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface RadioCardGroupProps<V extends string | number = string> {
|
|
11
|
+
options: RadioCardOption<V>[];
|
|
12
|
+
value?: V;
|
|
13
|
+
defaultValue?: V;
|
|
14
|
+
onChange?: (value: V, option: RadioCardOption<V>) => void;
|
|
15
|
+
label?: React.ReactNode;
|
|
16
|
+
labelClassName?: string;
|
|
17
|
+
labelStyle?: React.CSSProperties;
|
|
18
|
+
labelExtra?: React.ReactNode;
|
|
19
|
+
requiredMark?: React.ReactNode;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
error?: string;
|
|
22
|
+
helperText?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
layout?: 'row' | 'column';
|
|
25
|
+
columns?: number;
|
|
26
|
+
gap?: number | string;
|
|
27
|
+
equalWidth?: boolean;
|
|
28
|
+
cardHeight?: number | string;
|
|
29
|
+
iconSize?: number;
|
|
30
|
+
titleSize?: number;
|
|
31
|
+
descriptionSize?: number;
|
|
32
|
+
radioSize?: number;
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
cardClassName?: string;
|
|
36
|
+
cardStyle?: React.CSSProperties;
|
|
37
|
+
accentColor?: string;
|
|
38
|
+
errorColor?: string;
|
|
39
|
+
borderColor?: string;
|
|
40
|
+
selectedBorderColor?: string;
|
|
41
|
+
selectedGlowColor?: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
control?: Control<any>;
|
|
44
|
+
id?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function RadioCardGroup<V extends string | number = string>({ control, name, ...props }: RadioCardGroupProps<V>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
export interface SelectInputOption {
|
|
4
|
+
value: string | number;
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export type SelectInputValue = string | number | (string | number)[] | undefined;
|
|
11
|
+
export interface SelectInputProps {
|
|
12
|
+
label?: React.ReactNode;
|
|
13
|
+
labelClassName?: string;
|
|
14
|
+
labelStyle?: React.CSSProperties;
|
|
15
|
+
labelExtra?: React.ReactNode;
|
|
16
|
+
requiredMark?: React.ReactNode;
|
|
17
|
+
error?: string;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
value?: SelectInputValue;
|
|
22
|
+
defaultValue?: SelectInputValue;
|
|
23
|
+
onChange?: (value: SelectInputValue, option?: SelectInputOption | SelectInputOption[]) => void;
|
|
24
|
+
options?: SelectInputOption[];
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
showSearch?: boolean;
|
|
27
|
+
searchPlaceholder?: string;
|
|
28
|
+
optionFilterProp?: 'label' | 'value';
|
|
29
|
+
filterOption?: boolean | ((input: string, option: SelectInputOption) => boolean);
|
|
30
|
+
onSearch?: (value: string) => void;
|
|
31
|
+
mode?: 'single' | 'multiple';
|
|
32
|
+
allowClear?: boolean;
|
|
33
|
+
height?: number | string;
|
|
34
|
+
borderRadius?: number | string;
|
|
35
|
+
className?: string;
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
popupClassName?: string;
|
|
38
|
+
popupStyle?: React.CSSProperties;
|
|
39
|
+
onBlur?: () => void;
|
|
40
|
+
onFocus?: () => void;
|
|
41
|
+
onDropdownVisibleChange?: (open: boolean) => void;
|
|
42
|
+
control?: Control<any>;
|
|
43
|
+
name?: string;
|
|
44
|
+
id?: string;
|
|
45
|
+
notFoundContent?: React.ReactNode;
|
|
46
|
+
status?: 'error' | 'warning';
|
|
47
|
+
optionRender?: (option: SelectInputOption, info: {
|
|
48
|
+
selected: boolean;
|
|
49
|
+
}) => React.ReactNode;
|
|
50
|
+
suffixIcon?: React.ReactNode;
|
|
51
|
+
prefixIcon?: React.ReactNode;
|
|
52
|
+
accentColor?: string;
|
|
53
|
+
errorColor?: string;
|
|
54
|
+
borderColor?: string;
|
|
55
|
+
filledBorderColor?: string;
|
|
56
|
+
selectedBgColor?: string;
|
|
57
|
+
selectedTextColor?: string;
|
|
58
|
+
optionHoverColor?: string;
|
|
59
|
+
tagBgColor?: string;
|
|
60
|
+
tagBorderColor?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare const SelectInput: React.ForwardRefExoticComponent<SelectInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
export interface ToggleProps {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
defaultChecked?: boolean;
|
|
6
|
+
onChange?: (checked: boolean, event: React.SyntheticEvent) => void;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
labelStyle?: React.CSSProperties;
|
|
10
|
+
labelPosition?: 'left' | 'right';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
trackWidth?: number;
|
|
15
|
+
trackHeight?: number;
|
|
16
|
+
knobSize?: number;
|
|
17
|
+
onColor?: string;
|
|
18
|
+
offColor?: string;
|
|
19
|
+
knobColor?: string;
|
|
20
|
+
loadingColor?: string;
|
|
21
|
+
checkedIcon?: React.ReactNode;
|
|
22
|
+
uncheckedIcon?: React.ReactNode;
|
|
23
|
+
name?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
control?: Control<any>;
|
|
28
|
+
autoFocus?: boolean;
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SHEKEL_DEFAULTS: {
|
|
3
|
+
accent: string;
|
|
4
|
+
error: string;
|
|
5
|
+
warning: string;
|
|
6
|
+
border: string;
|
|
7
|
+
filledBorder: string;
|
|
8
|
+
text: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
addonBg: string;
|
|
11
|
+
disabledBg: string;
|
|
12
|
+
hoverBg: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const hexWithAlpha: (hex: string, alpha: number) => string;
|
|
15
|
+
export interface ErrorIconProps {
|
|
16
|
+
color?: string;
|
|
17
|
+
size?: number;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ErrorIcon: React.FC<ErrorIconProps>;
|
|
@@ -3,8 +3,22 @@ export { PasswordInput } from './PasswordInput';
|
|
|
3
3
|
export { OTPInput } from './OTPInput';
|
|
4
4
|
export { PhoneInput } from './PhoneInput';
|
|
5
5
|
export { CurrencyInput } from './CurrencyInput';
|
|
6
|
+
export { SelectInput } from './SelectInput';
|
|
7
|
+
export { DatePicker } from './DatePicker';
|
|
8
|
+
export { DateRangePicker } from './DateRangePicker';
|
|
9
|
+
export { AmountInput } from './AmountInput';
|
|
10
|
+
export { FileUpload } from './FileUpload';
|
|
11
|
+
export { RadioCardGroup } from './RadioCardGroup';
|
|
12
|
+
export { Toggle } from './Toggle';
|
|
6
13
|
export type { InputProps } from './Input';
|
|
7
14
|
export type { PasswordInputProps } from './PasswordInput';
|
|
8
15
|
export type { OTPInputProps } from './OTPInput';
|
|
9
16
|
export type { PhoneInputProps } from './PhoneInput';
|
|
10
17
|
export type { CurrencyInputProps } from './CurrencyInput';
|
|
18
|
+
export type { SelectInputProps, SelectInputOption } from './SelectInput';
|
|
19
|
+
export type { DatePickerProps, DateInput } from './DatePicker';
|
|
20
|
+
export type { DateRangePickerProps, DateRangeInput, DateRangeValue } from './DateRangePicker';
|
|
21
|
+
export type { AmountInputProps } from './AmountInput';
|
|
22
|
+
export type { FileUploadProps, UploadedFile, FileUploadStatus } from './FileUpload';
|
|
23
|
+
export type { RadioCardGroupProps, RadioCardOption } from './RadioCardGroup';
|
|
24
|
+
export type { ToggleProps } from './Toggle';
|
|
@@ -1,23 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | '
|
|
1
|
+
import { default as React, ReactNode, CSSProperties } from 'react';
|
|
2
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
3
|
+
export type ModalPlacement = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
4
|
+
export type ModalMotion = 'auto' | 'fade' | 'scale' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right';
|
|
5
|
+
export type ModalBackdrop = 'normal' | 'blur' | 'none';
|
|
3
6
|
export interface ModalProps {
|
|
4
7
|
open: boolean;
|
|
5
|
-
onClose
|
|
6
|
-
title?:
|
|
7
|
-
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
children?: ReactNode;
|
|
8
12
|
footer?: ReactNode;
|
|
9
|
-
|
|
13
|
+
okText?: ReactNode;
|
|
14
|
+
cancelText?: ReactNode;
|
|
15
|
+
onOk?: () => void | Promise<void>;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
confirmLoading?: boolean;
|
|
18
|
+
okDanger?: boolean;
|
|
19
|
+
okDisabled?: boolean;
|
|
20
|
+
hideCancel?: boolean;
|
|
10
21
|
size?: ModalSize;
|
|
22
|
+
width?: number | string;
|
|
23
|
+
maxHeight?: number | string;
|
|
24
|
+
/** Position on screen. `center` is the classic dead-center dialog. Sets also drive the enter animation direction. */
|
|
25
|
+
placement?: ModalPlacement;
|
|
26
|
+
/** Alias for placement === 'center' when set. Kept for backwards compat; placement wins if both passed. */
|
|
27
|
+
centered?: boolean;
|
|
28
|
+
/** Margin from the nearest viewport edge (applies to non-center placements). */
|
|
29
|
+
edgeOffset?: number | string;
|
|
30
|
+
/** Override the entrance/exit motion. `auto` picks based on placement. */
|
|
31
|
+
motion?: ModalMotion;
|
|
32
|
+
/** Backdrop style: normal (dark tint), blur (dark + blur), or none. */
|
|
33
|
+
backdrop?: ModalBackdrop;
|
|
34
|
+
/** Custom close icon (replaces the default ×). */
|
|
35
|
+
closeIcon?: ReactNode;
|
|
36
|
+
/** Submit on Enter when focus is inside a non-textarea field. */
|
|
37
|
+
submitOnEnter?: boolean;
|
|
38
|
+
/** Bare mode: hides the chromed header/body/footer layout and gives you a blank panel to fill however you like. */
|
|
39
|
+
bare?: boolean;
|
|
40
|
+
/** Remove the default 16px body padding when content wants to draw edge-to-edge (e.g. a full-bleed image header). */
|
|
41
|
+
noPadding?: boolean;
|
|
11
42
|
closable?: boolean;
|
|
12
43
|
maskClosable?: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
44
|
+
closeOnEsc?: boolean;
|
|
45
|
+
destroyOnClose?: boolean;
|
|
46
|
+
lockScroll?: boolean;
|
|
15
47
|
bgColor?: string;
|
|
16
|
-
headerBgColor?: string;
|
|
17
48
|
overlayColor?: string;
|
|
18
|
-
|
|
49
|
+
borderRadius?: number | string;
|
|
50
|
+
shadow?: string;
|
|
51
|
+
animationDuration?: number;
|
|
52
|
+
zIndex?: number;
|
|
53
|
+
className?: string;
|
|
54
|
+
style?: CSSProperties;
|
|
19
55
|
headerClassName?: string;
|
|
20
|
-
|
|
56
|
+
headerStyle?: CSSProperties;
|
|
57
|
+
bodyClassName?: string;
|
|
58
|
+
bodyStyle?: CSSProperties;
|
|
59
|
+
footerClassName?: string;
|
|
60
|
+
footerStyle?: CSSProperties;
|
|
61
|
+
ariaLabel?: string;
|
|
62
|
+
ariaLabelledBy?: string;
|
|
63
|
+
afterOpen?: () => void;
|
|
64
|
+
afterClose?: () => void;
|
|
65
|
+
getContainer?: () => HTMLElement;
|
|
21
66
|
}
|
|
22
|
-
export declare const Modal: FC<ModalProps>;
|
|
67
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
23
68
|
export default Modal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode, CSSProperties } from 'react';
|
|
2
2
|
export interface StepItem {
|
|
3
|
-
title:
|
|
4
|
-
description?:
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
5
|
status?: 'wait' | 'process' | 'finish' | 'error';
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
}
|
|
@@ -9,15 +9,22 @@ export interface StepsProps {
|
|
|
9
9
|
items: StepItem[];
|
|
10
10
|
current?: number;
|
|
11
11
|
direction?: 'horizontal' | 'vertical';
|
|
12
|
-
size?: 'sm' | 'md' | 'lg'
|
|
13
|
-
variant?: 'default' | 'outline';
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
13
|
className?: string;
|
|
15
14
|
style?: CSSProperties;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
waitColor?: string;
|
|
15
|
+
activeColor?: string;
|
|
16
|
+
inactiveColor?: string;
|
|
19
17
|
errorColor?: string;
|
|
20
|
-
|
|
18
|
+
textColor?: string;
|
|
19
|
+
activeTextColor?: string;
|
|
20
|
+
showConnector?: boolean;
|
|
21
|
+
connectorColor?: string;
|
|
22
|
+
gap?: number | string;
|
|
23
|
+
iconSize?: number;
|
|
24
|
+
checkSize?: number;
|
|
25
|
+
borderWidth?: number;
|
|
26
|
+
checkStrokeWidth?: number;
|
|
27
|
+
onStepClick?: (index: number) => void;
|
|
21
28
|
}
|
|
22
29
|
export declare const Steps: FC<StepsProps>;
|
|
23
30
|
export default Steps;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface TabItem {
|
|
3
3
|
key: string;
|
|
4
|
-
label:
|
|
4
|
+
label: React.ReactNode;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface TabsComponentProps {
|
|
8
9
|
items: TabItem[];
|
|
@@ -10,5 +11,10 @@ export interface TabsComponentProps {
|
|
|
10
11
|
activeKey?: string;
|
|
11
12
|
onChange?: (activeKey: string) => void;
|
|
12
13
|
className?: string;
|
|
14
|
+
tabBarClassName?: string;
|
|
15
|
+
contentClassName?: string;
|
|
16
|
+
accentColor?: string;
|
|
17
|
+
borderColor?: string;
|
|
18
|
+
animated?: boolean;
|
|
13
19
|
}
|
|
14
20
|
export declare const TabsComponent: React.FC<TabsComponentProps>;
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
export interface UserProfileMenuItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
danger?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
type?: 'divider';
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
3
12
|
export interface UserProfileDropdownProps {
|
|
4
13
|
name: string;
|
|
5
14
|
role?: string;
|
|
6
15
|
avatarUrl?: string;
|
|
7
|
-
menuItems?:
|
|
16
|
+
menuItems?: UserProfileMenuItem[];
|
|
8
17
|
onMenuClick?: (key: string) => void;
|
|
9
18
|
className?: string;
|
|
10
19
|
width?: string | number;
|
|
20
|
+
bgColor?: string;
|
|
21
|
+
hoverBgColor?: string;
|
|
11
22
|
}
|
|
12
23
|
export declare const UserProfileDropdown: React.FC<UserProfileDropdownProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AvatarProps {
|
|
3
|
+
src?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
size?: number | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
shape?: 'circle' | 'square';
|
|
7
|
+
bgColor?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export declare const Avatar: React.FC<AvatarProps>;
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export interface ShekelTheme {
|
|
3
|
+
accentColor: string;
|
|
4
|
+
errorColor: string;
|
|
5
|
+
warningColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
filledBorderColor: string;
|
|
8
|
+
textColor: string;
|
|
9
|
+
mutedTextColor: string;
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const defaultTheme: ShekelTheme;
|
|
14
|
+
/** Kept for backwards compatibility — prefer the `accentColor`/`errorColor` props on individual components. */
|
|
15
|
+
export declare const shekelTheme: ShekelTheme;
|
|
16
|
+
export declare const useShekelTheme: () => ShekelTheme;
|
|
4
17
|
export type ShekelProviderProps = {
|
|
5
18
|
children: React.ReactNode;
|
|
6
|
-
|
|
19
|
+
/** Partial overrides merged into defaults. */
|
|
20
|
+
theme?: Partial<ShekelTheme>;
|
|
7
21
|
};
|
|
8
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Wraps your app to set the Shekel design tokens as CSS variables + context.
|
|
24
|
+
* You no longer need antd's ConfigProvider — every Shekel component reads its
|
|
25
|
+
* accent/error colors from its own props (which now fall back to these tokens).
|
|
26
|
+
*/
|
|
27
|
+
export declare const ShekelProvider: React.FC<ShekelProviderProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shekel-fe-shared-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Shared component library built with React and Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"dev": "vite demo",
|
|
23
23
|
"build": "vite build",
|
|
24
|
+
"build:demo": "vite build --config demo/vite.config.ts",
|
|
25
|
+
"preview:demo": "vite preview --config demo/vite.config.ts --outDir ../demo-dist",
|
|
24
26
|
"prepublishOnly": "npm run build"
|
|
25
27
|
},
|
|
26
28
|
"keywords": [
|
|
@@ -49,19 +51,11 @@
|
|
|
49
51
|
"vite-plugin-dts": "^4.5.4"
|
|
50
52
|
},
|
|
51
53
|
"peerDependencies": {
|
|
52
|
-
"@ant-design/icons": "^5.0.0",
|
|
53
|
-
"antd": "^5.0.0",
|
|
54
54
|
"react": "^18.0.0",
|
|
55
55
|
"react-dom": "^18.0.0",
|
|
56
56
|
"react-hook-form": "^7.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
|
-
"@ant-design/icons": {
|
|
60
|
-
"optional": true
|
|
61
|
-
},
|
|
62
|
-
"antd": {
|
|
63
|
-
"optional": true
|
|
64
|
-
},
|
|
65
59
|
"react-hook-form": {
|
|
66
60
|
"optional": true
|
|
67
61
|
}
|