react-restyle-components 0.2.46 → 0.2.47
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/lib/package.json
CHANGED
|
@@ -42,8 +42,6 @@ interface InputProps extends InputWrapperProps {
|
|
|
42
42
|
}
|
|
43
43
|
export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<any>>;
|
|
44
44
|
export declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<any>>;
|
|
45
|
-
export declare const Input1: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<any>>;
|
|
46
|
-
export declare const Input2: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<any>>;
|
|
47
45
|
export declare const MultilineInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
46
|
interface InputRadioProps extends InputWrapperProps {
|
|
49
47
|
values?: any[];
|
|
@@ -58,11 +56,9 @@ export declare const InputRadio: (props: InputRadioProps) => import("react/jsx-r
|
|
|
58
56
|
interface InputDateProps extends InputWrapperProps {
|
|
59
57
|
value?: any;
|
|
60
58
|
name?: string;
|
|
61
|
-
placeholder?: string;
|
|
62
59
|
disabled?: boolean;
|
|
63
60
|
hasError?: boolean;
|
|
64
61
|
format?: string;
|
|
65
|
-
use12Hours?: boolean;
|
|
66
62
|
isCalenderOpen?: boolean;
|
|
67
63
|
minDate?: Date;
|
|
68
64
|
maxDate?: Date;
|
|
@@ -70,7 +66,17 @@ interface InputDateProps extends InputWrapperProps {
|
|
|
70
66
|
onCalendarToggle?: (status: boolean) => void;
|
|
71
67
|
onFocusRemove?: (date: any) => void;
|
|
72
68
|
}
|
|
73
|
-
export declare const InputDate: ({ name, value,
|
|
69
|
+
export declare const InputDate: ({ name, value, label, id, hasError, disabled, format, onChange, onFocusRemove, }: InputDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
interface InputDateTimeProps extends InputWrapperProps {
|
|
71
|
+
type?: string;
|
|
72
|
+
id?: string;
|
|
73
|
+
label?: string;
|
|
74
|
+
hasError?: boolean;
|
|
75
|
+
className?: string;
|
|
76
|
+
min?: string;
|
|
77
|
+
onChange?: (value: any) => void;
|
|
78
|
+
}
|
|
79
|
+
export declare const InputDateTime: ({ type, id, label, hasError, className, min, onChange, }: InputDateTimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
74
80
|
export declare const CheckBox: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
75
81
|
interface InputFileProps extends InputWrapperProps {
|
|
76
82
|
value?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/form/form.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAKtD,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAarD,CAAC;AAEF,UAAU,iBAAiB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAanE,CAAC;AAEF,UAAU,UAAW,SAAQ,iBAAiB;IAC5C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,KAAK,qFAwDhB,CAAC;AAEH,eAAO,MAAM,aAAa,qFAqFzB,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"form.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/form/form.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAKtD,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,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CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,eAAO,MAAM,MAAM,UAAW,WAAW,4CA6DxC,CAAC"}
|
|
@@ -34,47 +34,6 @@ export const InputPassword = React.forwardRef((props, ref) => {
|
|
|
34
34
|
[s['border-gray-300']]: !props.hasError,
|
|
35
35
|
}), onBlur: (e) => props.onBlur && props.onBlur(e.target.value), onKeyDown: props.onKeyDown && props.onKeyDown }), _jsx("div", { className: cn(s['flex'], s['absolute'], s['right-3']), children: _jsx("svg", { className: cn(s['h-6'], s['dark:bg-boxdark']), fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, children: showPassword ? (_jsx("path", { fill: "currentColor", d: "M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z" })) : (_jsx("path", { fill: "currentColor", d: "M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z" })) }) })] }) }));
|
|
36
36
|
});
|
|
37
|
-
export const Input1 = React.forwardRef((props, ref) => {
|
|
38
|
-
const handleKeyPress = (e) => {
|
|
39
|
-
const key = e.key;
|
|
40
|
-
const regex = props.pattern;
|
|
41
|
-
if (regex && !regex?.test(key)) {
|
|
42
|
-
e.preventDefault();
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => props.onChange && props.onChange(e.target.value), onKeyPress: (e) => handleKeyPress(e), className: cn(props.className, s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:text-black'], {
|
|
46
|
-
[s['border-red']]: props.hasError,
|
|
47
|
-
[s['border-gray-300']]: !props.hasError,
|
|
48
|
-
}), onBlur: (e) => props.onBlur && props.onBlur(e), onKeyDown: props.onKeyDown }) }));
|
|
49
|
-
});
|
|
50
|
-
export const Input2 = React.forwardRef((props, ref) => {
|
|
51
|
-
const [isBlur, setIsBlur] = useState(true);
|
|
52
|
-
const handleKeyPress = (e) => {
|
|
53
|
-
const key = e.key;
|
|
54
|
-
const regex = props.pattern;
|
|
55
|
-
if (regex && !regex?.test(key)) {
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const handleBlur = (value) => {
|
|
60
|
-
props.onBlur && isBlur && props.onBlur(value);
|
|
61
|
-
};
|
|
62
|
-
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => {
|
|
63
|
-
setIsBlur(true);
|
|
64
|
-
props.onChange && props.onChange(e.target.value);
|
|
65
|
-
}, onKeyPress: (e) => handleKeyPress(e), className: cn(props.className, s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:text-black'], {
|
|
66
|
-
[s['border-red']]: props.hasError,
|
|
67
|
-
[s['border-gray-300']]: !props.hasError,
|
|
68
|
-
}), onKeyDown: (e) => {
|
|
69
|
-
if (e.keyCode == 13) {
|
|
70
|
-
setIsBlur(false);
|
|
71
|
-
props.onBlur && props.onBlur(e.target.value);
|
|
72
|
-
}
|
|
73
|
-
props.onKeyDown && props.onKeyDown(e);
|
|
74
|
-
}, onBlur: (e) => {
|
|
75
|
-
handleBlur(e.target.value);
|
|
76
|
-
} }) }));
|
|
77
|
-
});
|
|
78
37
|
export const MultilineInput = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, className: props.className, children: _jsx("textarea", { id: props.id, autoComplete: "given-name", value: props.value, disabled: props.disabled, style: props.style, rows: props.rows, onKeyUp: props.onKeyUp && props.onKeyUp, placeholder: props.placeholder, onChange: (e) => props.onChange && props.onChange(e.target.value), onBlur: (e) => props.onBlur && props.onBlur(e.target.value), className: cn(s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:bg-boxdark'], {
|
|
79
38
|
[s['border-red']]: props.hasError,
|
|
80
39
|
[s['border-gray-300']]: !props.hasError,
|
|
@@ -82,10 +41,16 @@ export const MultilineInput = (props) => (_jsx(InputWrapper, { label: props.labe
|
|
|
82
41
|
export const InputRadio = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, style: props.labelStyle, children: props.values?.map((item, key) => (_jsxs("div", { className: cn(s['flex'], s['items-center'], s['gap-2']), onClick: () => {
|
|
83
42
|
props.onChange && props.onChange(item.value);
|
|
84
43
|
}, children: [_jsx("input", { type: "radio", id: props.id, name: props.name, value: item.value, checked: item.value == props.value ? true : false, onChange: () => props.onChange && props.onChange(item.value), className: cn(s['w-4'], s['h-4'], s['text-blue-600'], s['bg-gray-100'], s['border-gray-300'], s['focus:ring-blue-500'], s['dark:focus:ring-blue-600'], s['dark:ring-offset-gray-800'], s['focus:ring-2'], s['dark:bg-gray-700'], s['dark:border-gray-600']) }, key), _jsx(Label, { htmlFor: props.id || '', style: { marginTop: 6 }, children: item.label })] }, key))) }));
|
|
85
|
-
export const InputDate = ({ name, value,
|
|
44
|
+
export const InputDate = ({ name, value, label, id, hasError, disabled, format, onChange, onFocusRemove, }) => (_jsx(InputWrapper, { label: label, id: id, hasError: hasError, children: _jsx("input", { type: "date", id: id, name: name, disabled: disabled || false, value: value, onChange: (e) => onChange && onChange(e), className: cn(s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], {
|
|
86
45
|
[s['border-red']]: hasError,
|
|
87
46
|
[s['border-gray-300']]: !hasError,
|
|
88
47
|
}) }) }));
|
|
48
|
+
export const InputDateTime = ({ type, id, label, hasError, className, min, onChange, }) => (_jsx(InputWrapper, { label: label, id: id, hasError: hasError, children: _jsx("input", { type: type || 'datetime-local', id: id || 'interviewDateTime', name: "interviewDateTime", className: cn(s['border'], s['border-gray-300'], s['rounded-md'], s['p-2'], s['w-full'], {
|
|
49
|
+
[s['border-red']]: hasError,
|
|
50
|
+
[s['border-gray-300']]: !hasError,
|
|
51
|
+
}, { className }), min: min || new Date().toISOString().slice(0, 16), onChange: (e) => {
|
|
52
|
+
onChange && onChange(e.target.value);
|
|
53
|
+
} }) }));
|
|
89
54
|
export const CheckBox = (props) => {
|
|
90
55
|
return (_jsxs("div", { children: [_jsx("input", { onClick: props.handleCheckChieldElement, type: "checkbox", checked: props.isChecked, value: props.value }, props.id), ' ', props.value] }));
|
|
91
56
|
};
|