pixel-react 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AppHeader/types.d.ts +11 -2
- package/lib/components/Avatar/Avatar.d.ts +5 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/components/Avatar/index.d.ts +1 -0
- package/lib/components/Avatar/types.d.ts +26 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +6 -7
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +49 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +3 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +5 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +6 -6
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +11 -11
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +5 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +3 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +11 -48
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +11 -12
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +16 -0
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +12 -0
- package/lib/components/ExcelFile/Types.d.ts +2 -49
- package/lib/components/Form/Form.d.ts +1 -15
- package/lib/components/Form/Form.stories.d.ts +6 -5
- package/lib/components/Form/Forms.d.ts +8 -0
- package/lib/components/Form/index.d.ts +1 -1
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/components/MenuOption/types.d.ts +7 -7
- package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -0
- package/lib/components/MiniModal/types.d.ts +6 -6
- package/lib/components/ModulesChip/ModuleChip.d.ts +4 -0
- package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
- package/lib/components/ModulesChip/index.d.ts +1 -0
- package/lib/components/ModulesChip/types.d.ts +14 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -0
- package/lib/components/Toastify/Toastify.d.ts +8 -0
- package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
- package/lib/components/Toastify/index.d.ts +1 -0
- package/lib/components/Toastify/types.d.ts +7 -0
- package/lib/components/Tooltip/types.d.ts +6 -0
- package/lib/components/Typography/types.d.ts +1 -0
- package/lib/index.d.ts +84 -31
- package/lib/index.esm.js +26720 -881
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +26718 -875
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +10 -0
- package/src/assets/Themes/BaseTheme.scss +2 -0
- package/src/assets/Themes/DarkTheme.scss +2 -0
- package/src/assets/icons/add_testcase.svg +3 -0
- package/src/assets/icons/add_variable_icon.svg +3 -4
- package/src/assets/icons/attachment_icon.svg +3 -0
- package/src/assets/icons/authorization_icon.svg +3 -0
- package/src/assets/icons/automation_testcase.svg +4 -0
- package/src/assets/icons/back_icon.svg +3 -0
- package/src/assets/icons/client_profile.svg +4 -0
- package/src/assets/icons/fireflink_finder_logo.svg +7 -0
- package/src/assets/icons/fireflink_platform.svg +4 -0
- package/src/assets/icons/license_expired.svg +20 -0
- package/src/assets/icons/manual_testcase.svg +3 -0
- package/src/assets/icons/variable_icon.svg +4 -0
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +2 -2
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +1 -1
- package/src/components/AppHeader/AppHeader.stories.tsx +24 -3
- package/src/components/AppHeader/AppHeader.tsx +29 -11
- package/src/components/AppHeader/types.ts +11 -3
- package/src/components/Avatar/Avatar.scss +24 -0
- package/src/components/Avatar/Avatar.stories.tsx +56 -0
- package/src/components/Avatar/Avatar.tsx +25 -0
- package/src/components/Avatar/index.ts +1 -0
- package/src/components/Avatar/types.ts +27 -0
- package/src/components/Button/types.ts +1 -1
- package/src/components/ExcelFile/ColorBarselector/ColorBarSelector.scss +0 -2
- package/src/components/ExcelFile/ContextMenu/ContextMenu.scss +1 -4
- package/src/components/ExcelFile/ContextMenu/ContextMenu.tsx +0 -1
- package/src/components/ExcelFile/ExcelFile/Excel/ActiveCell.tsx +13 -13
- package/src/components/ExcelFile/ExcelFile/Excel/Cell.tsx +13 -12
- package/src/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.tsx +40 -32
- package/src/components/ExcelFile/ExcelFile/Excel/Copied.tsx +4 -4
- package/src/components/ExcelFile/ExcelFile/Excel/CornerIndicator.tsx +10 -10
- package/src/components/ExcelFile/ExcelFile/Excel/DataEditor.tsx +5 -5
- package/src/components/ExcelFile/ExcelFile/Excel/DataViewer.tsx +10 -10
- package/src/components/ExcelFile/ExcelFile/Excel/FloatingRect.tsx +6 -6
- package/src/components/ExcelFile/ExcelFile/Excel/HeaderRow.tsx +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/Row.tsx +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/RowIndicator.tsx +34 -27
- package/src/components/ExcelFile/ExcelFile/Excel/Selected.tsx +5 -5
- package/src/components/ExcelFile/ExcelFile/Excel/{Spreadsheet.css → Spreadsheet.scss} +21 -37
- package/src/components/ExcelFile/ExcelFile/Excel/Spreadsheet.tsx +87 -78
- package/src/components/ExcelFile/ExcelFile/Excel/Table.tsx +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/actions.ts +121 -31
- package/src/components/ExcelFile/ExcelFile/Excel/areModelsEqual.ts +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/context.ts +4 -4
- package/src/components/ExcelFile/ExcelFile/Excel/engine/engine.ts +7 -7
- package/src/components/ExcelFile/ExcelFile/Excel/engine/formula.ts +11 -11
- package/src/components/ExcelFile/ExcelFile/Excel/engine/index.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/engine/point-graph.ts +3 -3
- package/src/components/ExcelFile/ExcelFile/Excel/engine/point-hash.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/engine/point-set.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/index.ts +12 -11
- package/src/components/ExcelFile/ExcelFile/Excel/matrix.ts +18 -24
- package/src/components/ExcelFile/ExcelFile/Excel/point-range.ts +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/reducer.ts +311 -41
- package/src/components/ExcelFile/ExcelFile/Excel/selection.ts +5 -5
- package/src/components/ExcelFile/ExcelFile/Excel/types.ts +14 -66
- package/src/components/ExcelFile/ExcelFile/Excel/typings/fast-formula-parser.d.ts +8 -8
- package/src/components/ExcelFile/ExcelFile/Excel/use-dispatch.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/use-selector.ts +3 -3
- package/src/components/ExcelFile/ExcelFile/Excel/util.ts +21 -22
- package/src/components/ExcelFile/ExcelFile/ExcelFile.scss +0 -3
- package/src/components/ExcelFile/ExcelFile/ExcelFile.tsx +45 -403
- package/src/components/ExcelFile/ExcelFile.stories.tsx +10 -29
- package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.tsx +1 -12
- package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.scss +0 -3
- package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.tsx +147 -127
- package/src/components/ExcelFile/Types.ts +3 -70
- package/src/components/ExcelFile/index.ts +1 -1
- package/src/components/Form/Form.d.ts +3 -0
- package/src/components/Form/Form.scss +48 -4
- package/src/components/Form/Form.stories.tsx +244 -137
- package/src/components/Form/Form.ts +2 -0
- package/src/components/Form/Forms.tsx +25 -0
- package/src/components/Form/index.ts +1 -1
- package/src/components/Icon/iconList.ts +23 -0
- package/src/components/Icon/types.ts +1 -1
- package/src/components/IconButton/IconButton.scss +1 -1
- package/src/components/MenuOption/types.ts +7 -6
- package/src/components/MiniModal/MiniModal.scss +5 -0
- package/src/components/MiniModal/MiniModal.stories.tsx +95 -0
- package/src/components/MiniModal/MiniModal.tsx +11 -6
- package/src/components/MiniModal/types.ts +6 -6
- package/src/components/ModulesChip/ModuleChip.scss +20 -0
- package/src/components/ModulesChip/ModuleChip.stories.tsx +41 -0
- package/src/components/ModulesChip/ModuleChip.tsx +31 -0
- package/src/components/ModulesChip/index.ts +1 -0
- package/src/components/ModulesChip/types.ts +14 -0
- package/src/components/MultiSelect/Dropdown.tsx +6 -1
- package/src/components/MultiSelect/MultiSelect.scss +17 -10
- package/src/components/MultiSelect/MultiSelect.stories.tsx +16 -4
- package/src/components/MultiSelect/MultiSelect.tsx +11 -4
- package/src/components/MultiSelect/MultiSelectTypes.ts +4 -3
- package/src/components/Select/Select.scss +4 -0
- package/src/components/Select/Select.tsx +2 -2
- package/src/components/Toastify/Toastify.stories.tsx +52 -0
- package/src/components/Toastify/Toastify.tsx +66 -0
- package/src/components/Toastify/index.ts +1 -0
- package/src/components/Toastify/types.ts +8 -0
- package/src/components/Tooltip/Tooltip.tsx +2 -1
- package/src/components/Tooltip/types.ts +6 -0
- package/src/components/Typography/Typography.scss +12 -4
- package/src/components/Typography/Typography.stories.tsx +2 -0
- package/src/components/Typography/Typography.tsx +2 -0
- package/src/components/Typography/types.ts +1 -0
- package/src/index.ts +9 -1
- package/src/components/ExcelFile/ChangeExcelStyles.tsx +0 -78
- package/src/components/ExcelFile/ImportExcelStyles.tsx +0 -86
- package/src/components/Form/Form.tsx +0 -57
package/src/index.ts
CHANGED
@@ -23,7 +23,7 @@ import LazyLoad from './components/LazyLoad/LazyLoad';
|
|
23
23
|
import ThemeProvider from './components/ThemeProvider';
|
24
24
|
import Typography from './components/Typography';
|
25
25
|
import useTheme from './hooks/useTheme';
|
26
|
-
import Form from './components/Form';
|
26
|
+
import Form from './components/Form/Forms';
|
27
27
|
import InputWithDropdown from './components/InputWithDropdown';
|
28
28
|
import RadioButton from './components/RadioButton';
|
29
29
|
import RadioGroup from './components/RadioGroup';
|
@@ -50,7 +50,11 @@ import IconRadioGroup from './components/IconRadioGroup';
|
|
50
50
|
import MachineInputField from './components/MachineInputField';
|
51
51
|
import SequentialConnectingBranch from './components/SequentialConnectingBranch';
|
52
52
|
import AttachmentButton from './components/AttachmentButton';
|
53
|
+
import { Toastify, toast } from './components/Toastify/Toastify';
|
54
|
+
|
53
55
|
import LabelEditTextField from './components/LabelEditTextField';
|
56
|
+
import ExcelFile from './components/ExcelFile';
|
57
|
+
import ModuleChip from './components/ModulesChip/ModuleChip';
|
54
58
|
|
55
59
|
// Utils imports
|
56
60
|
import { checkEmpty } from './utils/checkEmpty/checkEmpty';
|
@@ -122,7 +126,11 @@ export {
|
|
122
126
|
SequentialConnectingBranch,
|
123
127
|
AttachmentButton,
|
124
128
|
LabelEditTextField,
|
129
|
+
ExcelFile,
|
125
130
|
IconRadioGroup,
|
131
|
+
Toastify,
|
132
|
+
toast,
|
133
|
+
ModuleChip,
|
126
134
|
|
127
135
|
// utils exports
|
128
136
|
checkEmpty,
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import { CellBase } from "./ExcelFile/Excel";
|
2
|
-
|
3
|
-
interface ChangeExcelStylesOptions {
|
4
|
-
sheetName: string;
|
5
|
-
styleType: string;
|
6
|
-
value: string;
|
7
|
-
selectedCell: { row: number; column: number }[];
|
8
|
-
}
|
9
|
-
|
10
|
-
export default function ChangeExcelStyles(
|
11
|
-
setWorksheetsData: React.Dispatch<React.SetStateAction<{ [key: string]: Matrix<CellBase>; }>>,
|
12
|
-
options: ChangeExcelStylesOptions
|
13
|
-
) {
|
14
|
-
const { sheetName, styleType, value, selectedCell } = options;
|
15
|
-
|
16
|
-
setWorksheetsData((prev) => {
|
17
|
-
if (!prev[sheetName]) {
|
18
|
-
return prev;
|
19
|
-
}
|
20
|
-
|
21
|
-
const sheetData = prev[sheetName]!;
|
22
|
-
const selectedCells = new Set(
|
23
|
-
selectedCell.map(({ row, column }) => `${row}-${column}`)
|
24
|
-
);
|
25
|
-
|
26
|
-
const updatedSheetData: Matrix<CellBase> = sheetData.map((row, rowIndex) =>
|
27
|
-
row.map((cell, columnIndex) => {
|
28
|
-
const isSelected = selectedCells.has(`${rowIndex}-${columnIndex}`);
|
29
|
-
if (isSelected&&cell!==undefined) {
|
30
|
-
let newStyle = { ...cell.style };
|
31
|
-
|
32
|
-
switch (styleType) {
|
33
|
-
// case 'border':
|
34
|
-
// newStyle = handleBorderChange(newStyle, value);
|
35
|
-
// break;
|
36
|
-
// case 'alignment':
|
37
|
-
// newStyle = handleAlignmentChange(newStyle, value);
|
38
|
-
// break;
|
39
|
-
// case 'bold':
|
40
|
-
// newStyle = handleBoldChange(newStyle);
|
41
|
-
// break;
|
42
|
-
// case 'italic':
|
43
|
-
// newStyle = handleItalicChange(newStyle);
|
44
|
-
// break;
|
45
|
-
case 'color':
|
46
|
-
newStyle = handleColorChange(newStyle, value);
|
47
|
-
break;
|
48
|
-
case 'backgroundColor':
|
49
|
-
newStyle = handleBackgroundColorChange(newStyle, value);
|
50
|
-
break;
|
51
|
-
default:
|
52
|
-
break;
|
53
|
-
}
|
54
|
-
|
55
|
-
const newValue = cell.value ?? "";
|
56
|
-
|
57
|
-
return { ...cell, style: newStyle, value: newValue };
|
58
|
-
}
|
59
|
-
return cell;
|
60
|
-
})
|
61
|
-
);
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
return { ...prev, [sheetName]: updatedSheetData };
|
66
|
-
});
|
67
|
-
}
|
68
|
-
|
69
|
-
function handleColorChange(style: CellStyle, value: string): CellStyle {
|
70
|
-
return { ...style, color: `#${value}` };
|
71
|
-
}
|
72
|
-
|
73
|
-
function handleBackgroundColorChange(
|
74
|
-
style: CellStyle,
|
75
|
-
value: string
|
76
|
-
): CellStyle {
|
77
|
-
return { ...style, backgroundColor: `#${value}` };
|
78
|
-
}
|
@@ -1,86 +0,0 @@
|
|
1
|
-
interface CellStyle {
|
2
|
-
color?: string;
|
3
|
-
backgroundColor?: string;
|
4
|
-
bold?: boolean;
|
5
|
-
italic?: boolean;
|
6
|
-
name?: string;
|
7
|
-
border: {
|
8
|
-
top: string;
|
9
|
-
bottom: string;
|
10
|
-
left: string;
|
11
|
-
right: string;
|
12
|
-
};
|
13
|
-
alignment: {
|
14
|
-
horizontal?: string;
|
15
|
-
vertical?: string;
|
16
|
-
wrapText?: boolean;
|
17
|
-
};
|
18
|
-
}
|
19
|
-
|
20
|
-
interface CellData {
|
21
|
-
style?: CellStyle;
|
22
|
-
}
|
23
|
-
|
24
|
-
type ImportExcelStylesData = Array<Array<CellData>>;
|
25
|
-
|
26
|
-
export default function ImportExcelStyles(data: ImportExcelStylesData | null) {
|
27
|
-
const getTable = document.querySelector(
|
28
|
-
'.Spreadsheet__table'
|
29
|
-
) as HTMLTableElement | null;
|
30
|
-
|
31
|
-
if (!getTable) {
|
32
|
-
return;
|
33
|
-
}
|
34
|
-
|
35
|
-
const tableRows = getTable.querySelectorAll('tr');
|
36
|
-
const tableHeader = getTable.querySelectorAll('th');
|
37
|
-
|
38
|
-
tableHeader.forEach((cell) => {
|
39
|
-
const cellText = cell.innerText.trim();
|
40
|
-
const isNumber = !isNaN(Number(cellText));
|
41
|
-
cell.style.width = isNumber ? '50px' : '150px';
|
42
|
-
});
|
43
|
-
|
44
|
-
if (data) {
|
45
|
-
data.forEach((row, rowIndex) => {
|
46
|
-
const rowData = tableRows[rowIndex + 1] as
|
47
|
-
| HTMLTableRowElement
|
48
|
-
| undefined;
|
49
|
-
|
50
|
-
if (!rowData) return;
|
51
|
-
|
52
|
-
const colData = rowData.querySelectorAll('.Spreadsheet__cell');
|
53
|
-
|
54
|
-
row.forEach((column, columnIndex) => {
|
55
|
-
if (colData[columnIndex] && column.style) {
|
56
|
-
const {
|
57
|
-
color,
|
58
|
-
backgroundColor,
|
59
|
-
bold,
|
60
|
-
italic,
|
61
|
-
name,
|
62
|
-
border,
|
63
|
-
alignment,
|
64
|
-
} = column.style;
|
65
|
-
const cell = colData[columnIndex] as HTMLElement;
|
66
|
-
cell.style.color = color ? `#${color}` : '';
|
67
|
-
cell.style.backgroundColor = backgroundColor
|
68
|
-
? `#${backgroundColor}`
|
69
|
-
: 'white';
|
70
|
-
cell.style.fontWeight = bold ? 'bolder' : 'normal';
|
71
|
-
cell.style.fontStyle = italic ? 'italic' : 'normal';
|
72
|
-
cell.style.fontFamily = name || '';
|
73
|
-
cell.style.borderLeft =
|
74
|
-
border.left === 'NONE' ? '' : `2px solid ${'black'}`;
|
75
|
-
cell.style.borderRight =
|
76
|
-
border.right === 'NONE' ? '' : `2px solid ${'black'}`;
|
77
|
-
cell.style.borderBottom =
|
78
|
-
border.bottom === 'NONE' ? '' : `2px solid ${'black'}`;
|
79
|
-
cell.style.borderTop =
|
80
|
-
border.top === 'NONE' ? '' : `2px solid ${'black'}`;
|
81
|
-
cell.style.textAlign = alignment?.horizontal || 'left';
|
82
|
-
}
|
83
|
-
});
|
84
|
-
});
|
85
|
-
}
|
86
|
-
}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import {
|
3
|
-
useForm,
|
4
|
-
UseFormProps,
|
5
|
-
SubmitHandler,
|
6
|
-
FieldValues,
|
7
|
-
FieldPath,
|
8
|
-
FieldErrors,
|
9
|
-
} from 'react-hook-form';
|
10
|
-
import './Form.scss';
|
11
|
-
|
12
|
-
interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
13
|
-
onSubmit: SubmitHandler<T>;
|
14
|
-
children: (props: {
|
15
|
-
register: (name: FieldPath<T>, options?: any) => any;
|
16
|
-
errors: FieldErrors<T>;
|
17
|
-
handleBlur: (field: FieldPath<T>) => void;
|
18
|
-
getValues: () => T;
|
19
|
-
watch: (field?: FieldPath<T>) => any;
|
20
|
-
setValue: (field: FieldPath<T>, value: any, options?: object) => void;
|
21
|
-
}) => React.ReactNode;
|
22
|
-
}
|
23
|
-
|
24
|
-
const Form = <T extends FieldValues>({
|
25
|
-
onSubmit,
|
26
|
-
children,
|
27
|
-
...rest
|
28
|
-
}: FormProps<T>) => {
|
29
|
-
const {
|
30
|
-
register,
|
31
|
-
handleSubmit,
|
32
|
-
formState: { errors },
|
33
|
-
trigger,
|
34
|
-
getValues,
|
35
|
-
watch,
|
36
|
-
setValue
|
37
|
-
} = useForm<T>(rest);
|
38
|
-
|
39
|
-
const handleBlur = async (field: FieldPath<T>) => {
|
40
|
-
await trigger(field);
|
41
|
-
};
|
42
|
-
|
43
|
-
return (
|
44
|
-
<form onSubmit={handleSubmit(onSubmit)}>
|
45
|
-
{children({
|
46
|
-
register,
|
47
|
-
errors,
|
48
|
-
handleBlur,
|
49
|
-
getValues,
|
50
|
-
watch,
|
51
|
-
setValue,
|
52
|
-
})}
|
53
|
-
</form>
|
54
|
-
);
|
55
|
-
};
|
56
|
-
|
57
|
-
export default Form;
|