@onehat/ui 0.3.262 → 0.3.264
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/package.json +1 -1
- package/src/Components/Accordion/Accordion.js +14 -14
- package/src/Components/Blank.js +1 -1
- package/src/Components/Buttons/BackButton.js +1 -1
- package/src/Components/Buttons/Button.js +1 -1
- package/src/Components/Buttons/CartButtonWithBadge.js +1 -1
- package/src/Components/Buttons/IconButton.js +2 -5
- package/src/Components/Buttons/PlusMinusButton.js +6 -6
- package/src/Components/Buttons/SquareButton.js +1 -1
- package/src/Components/Container/Container.js +9 -9
- package/src/Components/Container/ScreenContainer.js +4 -4
- package/src/Components/Container/Splitter.js +10 -9
- package/src/Components/Filter/DateRange.js +4 -4
- package/src/Components/Filter/NumberRange.js +4 -4
- package/src/Components/Form/Field/CKEditor/CKEditor.js +4 -4
- package/src/Components/Form/Field/Checkbox/CheckboxGroup.js +3 -1
- package/src/Components/Form/Field/Color.js +85 -91
- package/src/Components/Form/Field/Combo/Combo.js +13 -13
- package/src/Components/Form/Field/Combo/PageSizeCombo.js +4 -4
- package/src/Components/Form/Field/Date.js +11 -10
- package/src/Components/Form/Field/DisplayField.js +1 -1
- package/src/Components/Form/Field/File.js +4 -4
- package/src/Components/Form/Field/Input.js +4 -4
- package/src/Components/Form/Field/Number.js +4 -4
- package/src/Components/Form/Field/RadioGroup/RadioGroup.js +3 -1
- package/src/Components/Form/Field/Tag/Tag.js +7 -7
- package/src/Components/Form/Field/Tag/ValueBox.js +4 -4
- package/src/Components/Form/Field/Text.js +1 -1
- package/src/Components/Form/Field/TextArea.js +3 -3
- package/src/Components/Form/Field/Toggle.js +4 -4
- package/src/Components/Form/FieldSet.js +7 -6
- package/src/Components/Form/FiltersForm.js +9 -0
- package/src/Components/Form/Form.js +48 -62
- package/src/Components/Form/Label.js +4 -4
- package/src/Components/Grid/Grid.js +11 -9
- package/src/Components/Grid/GridHeaderRow.js +4 -4
- package/src/Components/Grid/GridRow.js +7 -7
- package/src/Components/Grid/HeaderColumnSelectorHandle.js +1 -1
- package/src/Components/Grid/HeaderReorderHandle.js +6 -4
- package/src/Components/Grid/HeaderResizeHandle.js +6 -4
- package/src/Components/Grid/NoRecordsFound.js +7 -7
- package/src/Components/Grid/RowDragHandle.js +6 -4
- package/src/Components/Hoc/Secondary/withSecondaryEditor.js +1 -2
- package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +3 -1
- package/src/Components/Hoc/withAlert.js +14 -24
- package/src/Components/Hoc/withBlank.js +2 -0
- package/src/Components/Hoc/withContextMenu.js +9 -4
- package/src/Components/Hoc/withEditor.js +1 -2
- package/src/Components/Hoc/withEvents.js +2 -0
- package/src/Components/Hoc/withFilters.js +11 -11
- package/src/Components/Hoc/withInlineEditor.js +8 -5
- package/src/Components/Hoc/withPdfButton.js +5 -4
- package/src/Components/Hoc/withPresetButtons.js +1 -1
- package/src/Components/Hoc/withTooltip.js +3 -3
- package/src/Components/Hoc/withWindowedEditor.js +3 -1
- package/src/Components/Icons/AddressBook.js +10 -6
- package/src/Components/Icons/Alt.js +15 -7
- package/src/Components/Icons/AngleLeft.js +14 -6
- package/src/Components/Icons/AngleRight.js +14 -6
- package/src/Components/Icons/AnglesLeft.js +14 -6
- package/src/Components/Icons/AnglesRight.js +14 -6
- package/src/Components/Icons/Asterisk.js +10 -6
- package/src/Components/Icons/Ban.js +14 -8
- package/src/Components/Icons/Bars.js +10 -6
- package/src/Components/Icons/BarsStaggered.js +10 -6
- package/src/Components/Icons/Bell.js +19 -6
- package/src/Components/Icons/BigCircle.js +14 -6
- package/src/Components/Icons/Book.js +10 -6
- package/src/Components/Icons/BookOpen.js +10 -6
- package/src/Components/Icons/Bookmark.js +17 -7
- package/src/Components/Icons/Bug.js +10 -6
- package/src/Components/Icons/Building.js +10 -6
- package/src/Components/Icons/Calendar.js +14 -6
- package/src/Components/Icons/Calendar2.js +14 -6
- package/src/Components/Icons/CalendarDays.js +14 -6
- package/src/Components/Icons/Camera.js +14 -6
- package/src/Components/Icons/CaretDown.js +14 -6
- package/src/Components/Icons/CaretUp.js +14 -6
- package/src/Components/Icons/CartPlus.js +10 -6
- package/src/Components/Icons/CartShopping.js +10 -6
- package/src/Components/Icons/CashRegister.js +10 -6
- package/src/Components/Icons/Certificate.js +10 -6
- package/src/Components/Icons/ChartLine.js +10 -6
- package/src/Components/Icons/ChartPie.js +10 -6
- package/src/Components/Icons/Check.js +10 -6
- package/src/Components/Icons/CheckDouble.js +10 -6
- package/src/Components/Icons/ChevronDown.js +10 -6
- package/src/Components/Icons/ChevronLeft.js +10 -6
- package/src/Components/Icons/ChevronRight.js +10 -6
- package/src/Components/Icons/ChevronUp.js +10 -6
- package/src/Components/Icons/Circle.js +10 -6
- package/src/Components/Icons/CircleArrowRight.js +10 -6
- package/src/Components/Icons/CircleExclamation.js +14 -6
- package/src/Components/Icons/CircleInfo.js +10 -6
- package/src/Components/Icons/CircleQuestion.js +10 -6
- package/src/Components/Icons/CircleXmark.js +10 -6
- package/src/Components/Icons/CircleXmarkRegular.js +10 -6
- package/src/Components/Icons/Clipboard.js +14 -6
- package/src/Components/Icons/ClipboardCheck.js +17 -6
- package/src/Components/Icons/ClipboardList.js +16 -6
- package/src/Components/Icons/Clock.js +10 -6
- package/src/Components/Icons/ClockRegular.js +10 -6
- package/src/Components/Icons/ClockRotateLeft.js +10 -6
- package/src/Components/Icons/Clone.js +10 -6
- package/src/Components/Icons/Collapse.js +14 -6
- package/src/Components/Icons/Comment.js +10 -6
- package/src/Components/Icons/CommentDots.js +10 -6
- package/src/Components/Icons/CommentRegular.js +10 -6
- package/src/Components/Icons/Comments.js +10 -6
- package/src/Components/Icons/CommentsRegular.js +10 -6
- package/src/Components/Icons/Copyright.js +10 -6
- package/src/Components/Icons/Dot.js +15 -9
- package/src/Components/Icons/Duplicate.js +14 -6
- package/src/Components/Icons/Edit.js +14 -6
- package/src/Components/Icons/EllipsisHorizontal.js +16 -6
- package/src/Components/Icons/EllipsisVertical.js +14 -6
- package/src/Components/Icons/Envelope.js +10 -6
- package/src/Components/Icons/EnvelopeRegular.js +10 -6
- package/src/Components/Icons/Excel.js +10 -6
- package/src/Components/Icons/Exclamation.js +10 -6
- package/src/Components/Icons/Expand.js +10 -6
- package/src/Components/Icons/Eye.js +14 -6
- package/src/Components/Icons/EyeSlash.js +10 -6
- package/src/Components/Icons/File.js +14 -6
- package/src/Components/Icons/FloppyDiskRegular.js +10 -6
- package/src/Components/Icons/Folder.js +10 -6
- package/src/Components/Icons/FolderClosed.js +10 -6
- package/src/Components/Icons/FolderOpen.js +10 -6
- package/src/Components/Icons/FolderTree.js +10 -6
- package/src/Components/Icons/FullWidth.js +25 -9
- package/src/Components/Icons/Gauge.js +17 -6
- package/src/Components/Icons/Gear.js +14 -6
- package/src/Components/Icons/Gears.js +10 -6
- package/src/Components/Icons/Gift.js +10 -6
- package/src/Components/Icons/Grip.js +14 -6
- package/src/Components/Icons/GripLines.js +14 -6
- package/src/Components/Icons/GripLinesVertical.js +14 -6
- package/src/Components/Icons/GripVertical.js +14 -6
- package/src/Components/Icons/Hammer.js +10 -6
- package/src/Components/Icons/Hand.js +10 -6
- package/src/Components/Icons/HighPriority.js +17 -6
- package/src/Components/Icons/House.js +10 -6
- package/src/Components/Icons/Images.js +10 -6
- package/src/Components/Icons/Info.js +10 -6
- package/src/Components/Icons/ItunesNote.js +10 -6
- package/src/Components/Icons/Js.js +16 -6
- package/src/Components/Icons/Leaf.js +10 -6
- package/src/Components/Icons/Link.js +9 -6
- package/src/Components/Icons/List.js +10 -6
- package/src/Components/Icons/ListCheck.js +10 -6
- package/src/Components/Icons/LocationDot.js +10 -6
- package/src/Components/Icons/Loop.js +14 -6
- package/src/Components/Icons/Loop1.js +13 -7
- package/src/Components/Icons/LoopAll.js +13 -7
- package/src/Components/Icons/LowPriority.js +17 -6
- package/src/Components/Icons/MagnifyingGlass.js +10 -6
- package/src/Components/Icons/Maximize.js +10 -6
- package/src/Components/Icons/MedPriority.js +17 -6
- package/src/Components/Icons/Microphone.js +10 -6
- package/src/Components/Icons/Minimize.js +10 -6
- package/src/Components/Icons/Minus.js +14 -6
- package/src/Components/Icons/MobileScreenButton.js +10 -6
- package/src/Components/Icons/MoneyBill.js +10 -6
- package/src/Components/Icons/MoneyBillWave.js +10 -6
- package/src/Components/Icons/Mouth.js +21 -9
- package/src/Components/Icons/Music.js +10 -6
- package/src/Components/Icons/Na.js +14 -6
- package/src/Components/Icons/NoLoop.js +13 -10
- package/src/Components/Icons/NoReorderRows.js +22 -16
- package/src/Components/Icons/ObjectGroupRegular.js +10 -6
- package/src/Components/Icons/Pause.js +10 -6
- package/src/Components/Icons/Pdf.js +10 -6
- package/src/Components/Icons/Pencil.js +14 -6
- package/src/Components/Icons/Phone.js +10 -6
- package/src/Components/Icons/Play.js +10 -6
- package/src/Components/Icons/Plus.js +14 -6
- package/src/Components/Icons/Presentation.js +16 -6
- package/src/Components/Icons/Print.js +14 -6
- package/src/Components/Icons/Question.js +10 -6
- package/src/Components/Icons/Rate-.25x.js +17 -11
- package/src/Components/Icons/Rate-.5x.js +16 -10
- package/src/Components/Icons/Rate-.75x.js +13 -7
- package/src/Components/Icons/Rate-1.25x.js +13 -7
- package/src/Components/Icons/Rate-1.5x.js +13 -7
- package/src/Components/Icons/Rate-1.75x.js +13 -7
- package/src/Components/Icons/Rate-1x.js +16 -10
- package/src/Components/Icons/Rate-2x.js +13 -7
- package/src/Components/Icons/RateIcon-.25x.js +13 -7
- package/src/Components/Icons/RateIcon-.5x.js +16 -10
- package/src/Components/Icons/RateIcon-.75x.js +13 -7
- package/src/Components/Icons/RateIcon-1.25x.js +13 -7
- package/src/Components/Icons/RateIcon-1.5x.js +13 -7
- package/src/Components/Icons/RateIcon-1.75x.js +13 -7
- package/src/Components/Icons/RateIcon-1x.js +13 -7
- package/src/Components/Icons/RateIcon-2x.js +13 -7
- package/src/Components/Icons/RectangleXmark.js +10 -6
- package/src/Components/Icons/RectangleXmarkRegular.js +10 -6
- package/src/Components/Icons/ReorderRows.js +13 -7
- package/src/Components/Icons/RightFromBracket.js +10 -6
- package/src/Components/Icons/RightLeft.js +10 -6
- package/src/Components/Icons/RightToBracket.js +10 -6
- package/src/Components/Icons/Rotate.js +14 -6
- package/src/Components/Icons/RotateLeft.js +10 -6
- package/src/Components/Icons/RotateRight.js +14 -6
- package/src/Components/Icons/ScrewdriverWrench.js +10 -6
- package/src/Components/Icons/Scroll.js +10 -6
- package/src/Components/Icons/Share.js +10 -6
- package/src/Components/Icons/Shop.js +10 -6
- package/src/Components/Icons/SideBySide.js +20 -6
- package/src/Components/Icons/SortDown.js +10 -6
- package/src/Components/Icons/SortDownAlt.js +10 -6
- package/src/Components/Icons/SortUp.js +10 -6
- package/src/Components/Icons/SortUpAlt.js +14 -6
- package/src/Components/Icons/Square.js +10 -6
- package/src/Components/Icons/SquareCheck.js +10 -6
- package/src/Components/Icons/SquareCheckRegular.js +10 -6
- package/src/Components/Icons/SquareMinus.js +14 -6
- package/src/Components/Icons/SquareRegular.js +10 -6
- package/src/Components/Icons/Store.js +10 -6
- package/src/Components/Icons/Table.js +16 -6
- package/src/Components/Icons/ThumbsDown.js +10 -6
- package/src/Components/Icons/ThumbsDownRegular.js +10 -6
- package/src/Components/Icons/ThumbsUp.js +10 -6
- package/src/Components/Icons/ThumbsUpRegular.js +10 -6
- package/src/Components/Icons/Trash.js +14 -6
- package/src/Components/Icons/TrashCan.js +14 -6
- package/src/Components/Icons/TriangleExclamation.js +14 -6
- package/src/Components/Icons/Truck.js +10 -6
- package/src/Components/Icons/TruckFast.js +10 -6
- package/src/Components/Icons/UploadDownload.js +9 -7
- package/src/Components/Icons/User.js +10 -6
- package/src/Components/Icons/UserGroup.js +10 -6
- package/src/Components/Icons/UserPlus.js +10 -6
- package/src/Components/Icons/UserSecret.js +10 -6
- package/src/Components/Icons/Video.js +16 -6
- package/src/Components/Icons/X.js +10 -6
- package/src/Components/Icons/Xmark.js +10 -6
- package/src/Components/Layout/CenterBox.js +1 -1
- package/src/Components/Layout/Footer.js +4 -4
- package/src/Components/Messages/ConfirmationMessage.js +3 -8
- package/src/Components/Messages/ErrorMessage.js +2 -5
- package/src/Components/Messages/Loading.js +6 -6
- package/src/Components/Messages/OkMessage.js +3 -4
- package/src/Components/Messages/WaitMessage.js +1 -1
- package/src/Components/Panel/AccordionGridPanel.js +1 -1
- package/src/Components/Panel/FormPanel.js +1 -1
- package/src/Components/Panel/Header.js +13 -13
- package/src/Components/Panel/Mask.js +1 -1
- package/src/Components/Panel/Panel.js +12 -10
- package/src/Components/Picker/Picker.js +5 -5
- package/src/Components/Report/Report.js +10 -10
- package/src/Components/Screens/Manager.js +7 -7
- package/src/Components/Tab/TabBar.js +23 -23
- package/src/Components/Toolbar/FilterToolbar.js +3 -3
- package/src/Components/Toolbar/Pagination.js +8 -12
- package/src/Components/Toolbar/PaginationToolbar.js +3 -3
- package/src/Components/Toolbar/Toolbar.js +4 -4
- package/src/Components/Tree/Tree.js +13 -10
- package/src/Components/Tree/TreeNode.js +4 -4
- package/src/Components/Viewer/Viewer.js +23 -29
- package/src/Components/WaitModal.js +4 -4
- package/src/Components/Window/Editor.js +1 -1
- package/src/Components/Window/UploadsDownloadsWindow.js +1 -1
- package/src/Components/index.js +5 -5
- package/src/Functions/buildAdditionalButtons.js +3 -7
- package/src/PlatformImports/Web/Attachments.js +8 -11
- package/src/PlatformImports/Web/File.js +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
Row,
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
import ArrayCombo from './ArrayCombo.js';
|
|
6
6
|
|
|
7
7
|
export default function PageSizeCombo(props) {
|
|
@@ -11,7 +11,7 @@ export default function PageSizeCombo(props) {
|
|
|
11
11
|
} = props;
|
|
12
12
|
|
|
13
13
|
return useMemo(() => {
|
|
14
|
-
return <
|
|
14
|
+
return <Row
|
|
15
15
|
w="100px"
|
|
16
16
|
ml={2}
|
|
17
17
|
>
|
|
@@ -30,7 +30,7 @@ export default function PageSizeCombo(props) {
|
|
|
30
30
|
allowNull={false}
|
|
31
31
|
disableDirectEntry={true}
|
|
32
32
|
/>
|
|
33
|
-
</
|
|
33
|
+
</Row>;
|
|
34
34
|
}, [
|
|
35
35
|
Repository,
|
|
36
36
|
pageSize,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React, { useState, useRef, } from 'react';
|
|
1
|
+
import React, { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
+
Icon,
|
|
4
5
|
Modal,
|
|
5
6
|
Popover,
|
|
6
7
|
Pressable,
|
|
7
|
-
|
|
8
|
+
Row,
|
|
8
9
|
Text,
|
|
9
10
|
Tooltip,
|
|
10
|
-
} from '
|
|
11
|
+
} from 'native-base';
|
|
11
12
|
import {
|
|
12
13
|
DATE,
|
|
13
14
|
TIME,
|
|
@@ -501,7 +502,7 @@ export function DateElement(props) {
|
|
|
501
502
|
}
|
|
502
503
|
if (UiGlobals.mode === UI_MODE_REACT_NATIVE) {
|
|
503
504
|
const inputAndTriggerClone = // for RN, this is the actual input and trigger, as we need them to appear up above in the modal
|
|
504
|
-
<
|
|
505
|
+
<Row h={10}>
|
|
505
506
|
<IconButton
|
|
506
507
|
_icon={{
|
|
507
508
|
as: Calendar,
|
|
@@ -567,7 +568,7 @@ export function DateElement(props) {
|
|
|
567
568
|
placeholder={placeholder}
|
|
568
569
|
{..._input}
|
|
569
570
|
/>}
|
|
570
|
-
</
|
|
571
|
+
</Row>;
|
|
571
572
|
dropdownMenu = <Modal
|
|
572
573
|
isOpen={true}
|
|
573
574
|
safeAreaTop={true}
|
|
@@ -607,17 +608,17 @@ export function DateElement(props) {
|
|
|
607
608
|
if (tooltipRef) {
|
|
608
609
|
refProps.ref = tooltipRef;
|
|
609
610
|
}
|
|
610
|
-
assembledComponents = <
|
|
611
|
+
assembledComponents = <Row {...refProps} justifyContent="center" alignItems="center" h={styles.FORM_COMBO_HEIGHT} flex={1} onLayout={() => setIsRendered(true)}>
|
|
611
612
|
{xButton}
|
|
612
613
|
{inputAndTrigger}
|
|
613
614
|
{additionalButtons}
|
|
614
615
|
{dropdownMenu}
|
|
615
|
-
</
|
|
616
|
+
</Row>;
|
|
616
617
|
|
|
617
618
|
if (tooltip) {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
619
|
+
assembledComponents = <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
620
|
+
{assembledComponents}
|
|
621
|
+
</Tooltip>;
|
|
621
622
|
}
|
|
622
623
|
|
|
623
624
|
return assembledComponents;
|
|
@@ -2,10 +2,10 @@ import React, { useState, useEffect, useRef, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Icon,
|
|
5
|
-
|
|
5
|
+
Row,
|
|
6
6
|
Text,
|
|
7
7
|
Tooltip,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'native-base';
|
|
9
9
|
import {
|
|
10
10
|
CURRENT_MODE,
|
|
11
11
|
UI_MODE_WEB,
|
|
@@ -168,7 +168,7 @@ function FileElement(props) {
|
|
|
168
168
|
|
|
169
169
|
return <div ref={dragRef} style={{ flex: 1, height: '100%', }} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDragOver={onDragOver} onDrop={onDrop}>
|
|
170
170
|
<Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
171
|
-
<
|
|
171
|
+
<Row flex={1} h={10} alignItems="center">
|
|
172
172
|
{isDropping && <Box position="absolute" borderWidth={isDropping ? 2 : 0} borderColor="primary.800" top={0} left={0} w="100%" h="100%" bg="trueGray.200" zIndex={10000} justifyContent="center" alignItems="center">
|
|
173
173
|
<Text>Set File</Text>
|
|
174
174
|
</Box>}
|
|
@@ -215,7 +215,7 @@ function FileElement(props) {
|
|
|
215
215
|
borderWidth={1}
|
|
216
216
|
/>}
|
|
217
217
|
<input type="file" ref={fileInputRef} name={name} onChange={onChangeFile} style={{ position: 'absolute', opacity: 0, height: 0, width: 0, }} />
|
|
218
|
-
</
|
|
218
|
+
</Row>
|
|
219
219
|
</Tooltip>
|
|
220
220
|
</div>;
|
|
221
221
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Input,
|
|
4
4
|
Tooltip,
|
|
5
|
-
} from '
|
|
5
|
+
} from 'native-base';
|
|
6
6
|
import UiGlobals from '../../../UiGlobals.js';
|
|
7
7
|
import withComponent from '../../Hoc/withComponent.js';
|
|
8
8
|
import withValue from '../../Hoc/withValue.js';
|
|
@@ -86,9 +86,9 @@ function InputElement(props) {
|
|
|
86
86
|
value={localValue}
|
|
87
87
|
/>;
|
|
88
88
|
if (tooltip) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
component = <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
90
|
+
{component}
|
|
91
|
+
</Tooltip>;
|
|
92
92
|
}
|
|
93
93
|
return component;
|
|
94
94
|
}
|
|
@@ -3,8 +3,8 @@ import React, { useState, useEffect, useRef, } from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
Icon,
|
|
5
5
|
Input,
|
|
6
|
-
|
|
7
|
-
} from '
|
|
6
|
+
Row,
|
|
7
|
+
} from 'native-base';
|
|
8
8
|
import UiGlobals from '../../../UiGlobals.js';
|
|
9
9
|
import IconButton from '../../Buttons/IconButton.js';
|
|
10
10
|
import withComponent from '../../Hoc/withComponent.js';
|
|
@@ -118,7 +118,7 @@ function NumberElement(props) {
|
|
|
118
118
|
isIncrementDisabled = typeof maxValue !== 'undefined' && value === maxValue,
|
|
119
119
|
isDecrementDisabled = typeof minValue !== 'undefined' && (value === minValue || (!value && minValue === 0));
|
|
120
120
|
|
|
121
|
-
return <
|
|
121
|
+
return <Row flex={1} h="100%" p={0} borderWidth={1} borderColor="trueGray.400" borderRadius={6} {...props}>
|
|
122
122
|
<IconButton
|
|
123
123
|
icon={<Icon as={Minus} color={(isDecrementDisabled || isDisabled) ? 'disabled' : 'trueGray.500'} />}
|
|
124
124
|
onPress={onDecrement}
|
|
@@ -162,7 +162,7 @@ function NumberElement(props) {
|
|
|
162
162
|
borderLeftRadius={0}
|
|
163
163
|
zIndex={10}
|
|
164
164
|
/>
|
|
165
|
-
</
|
|
165
|
+
</Row>;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export default withComponent(withValue(NumberElement));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
+
Column,
|
|
3
4
|
Radio,
|
|
4
|
-
|
|
5
|
+
Row,
|
|
6
|
+
} from 'native-base';
|
|
5
7
|
import withComponent from '../../../Hoc/withComponent.js';
|
|
6
8
|
import withData from '../../../Hoc/withData.js';
|
|
7
9
|
import withValue from '../../../Hoc/withValue.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
4
|
Modal,
|
|
5
|
-
|
|
6
|
-
} from '
|
|
5
|
+
Row,
|
|
6
|
+
} from 'native-base';
|
|
7
7
|
import {
|
|
8
8
|
EDITOR_TYPE__WINDOWED,
|
|
9
9
|
} from '../../../../Constants/Editor.js';
|
|
@@ -237,13 +237,13 @@ function TagComponent(props) {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
return <>
|
|
240
|
-
<
|
|
240
|
+
<Column
|
|
241
241
|
{...props}
|
|
242
242
|
{...sizeProps}
|
|
243
243
|
px={0}
|
|
244
244
|
py={0}
|
|
245
245
|
>
|
|
246
|
-
<
|
|
246
|
+
<Row
|
|
247
247
|
w="100%"
|
|
248
248
|
borderWidth={1}
|
|
249
249
|
borderColor="trueGray.300"
|
|
@@ -253,7 +253,7 @@ function TagComponent(props) {
|
|
|
253
253
|
mb={styles.FORM_TAG_MB}
|
|
254
254
|
minHeight={styles.FORM_TAG_MIN_HEIGHT}
|
|
255
255
|
flexWrap="wrap"
|
|
256
|
-
>{valueBoxes}</
|
|
256
|
+
>{valueBoxes}</Row>
|
|
257
257
|
{!isViewOnly && <WhichCombo
|
|
258
258
|
Repository={props.Repository}
|
|
259
259
|
Editor={props.Editor}
|
|
@@ -267,7 +267,7 @@ function TagComponent(props) {
|
|
|
267
267
|
tooltip={tooltip}
|
|
268
268
|
{..._combo}
|
|
269
269
|
/>}
|
|
270
|
-
</
|
|
270
|
+
</Column>
|
|
271
271
|
{isViewerShown &&
|
|
272
272
|
<Modal
|
|
273
273
|
isOpen={true}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Row,
|
|
3
3
|
Text,
|
|
4
|
-
} from '
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
import IconButton from '../../../Buttons/IconButton.js';
|
|
6
6
|
import Eye from '../../../Icons/Eye.js';
|
|
7
7
|
import Xmark from '../../../Icons/Xmark.js';
|
|
@@ -15,7 +15,7 @@ export default function ValueBox(props) {
|
|
|
15
15
|
onDelete,
|
|
16
16
|
} = props,
|
|
17
17
|
styles = UiGlobals.styles;
|
|
18
|
-
return <
|
|
18
|
+
return <Row
|
|
19
19
|
borderWidth={1}
|
|
20
20
|
borderColor="trueGray.400"
|
|
21
21
|
borderRadius="md"
|
|
@@ -48,5 +48,5 @@ export default function ValueBox(props) {
|
|
|
48
48
|
onPress={onDelete}
|
|
49
49
|
h="100%"
|
|
50
50
|
/>}
|
|
51
|
-
</
|
|
51
|
+
</Row>;
|
|
52
52
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
TextArea,
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
import UiGlobals from '../../../UiGlobals.js';
|
|
6
6
|
import withComponent from '../../Hoc/withComponent.js';
|
|
7
7
|
import withTooltip from '../../Hoc/withTooltip.js';
|
|
@@ -50,7 +50,7 @@ const
|
|
|
50
50
|
localValue = ''; // If the value is null or undefined, don't let this be an uncontrolled input
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
return <
|
|
53
|
+
return <TextArea
|
|
54
54
|
ref={props.outerRef}
|
|
55
55
|
onChangeText={onChangeTextLocal}
|
|
56
56
|
flex={1}
|
|
@@ -2,10 +2,10 @@ import React, { useRef, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Icon,
|
|
4
4
|
Pressable,
|
|
5
|
-
|
|
5
|
+
Row,
|
|
6
6
|
Switch,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'native-base';
|
|
9
9
|
import UiGlobals from '../../../UiGlobals.js';
|
|
10
10
|
import IconButton from '../../Buttons/IconButton.js';
|
|
11
11
|
import Na from '../../Icons/Na.js';
|
|
@@ -51,7 +51,7 @@ const
|
|
|
51
51
|
/>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
return <
|
|
54
|
+
return <Row alignItems="center">
|
|
55
55
|
<Pressable onPress={onNullify}>
|
|
56
56
|
<Switch
|
|
57
57
|
ref={props.outerRef}
|
|
@@ -71,7 +71,7 @@ const
|
|
|
71
71
|
<Pressable onPress={onToggle}>
|
|
72
72
|
<Text ml={2} fontSize={styles.FORM_TOGGLE_FONTSIZE}>{_.isNil(value) ? 'N/A' : (!!value ? 'Yes' : 'No')}</Text>
|
|
73
73
|
</Pressable>
|
|
74
|
-
</
|
|
74
|
+
</Row>;
|
|
75
75
|
},
|
|
76
76
|
ToggleField = withComponent(withValue(ToggleElement));
|
|
77
77
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useState, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
-
|
|
4
|
+
Column,
|
|
5
|
+
Row,
|
|
5
6
|
Text,
|
|
6
|
-
} from '
|
|
7
|
+
} from 'native-base';
|
|
7
8
|
import FieldSetContext from '../../Contexts/FieldSetContext.js';
|
|
8
9
|
import useForceUpdate from '../../Hooks/useForceUpdate.js';
|
|
9
10
|
import UiGlobals from '../../UiGlobals.js';
|
|
@@ -85,7 +86,7 @@ export default function FieldSet(props) {
|
|
|
85
86
|
{...propsToPass}
|
|
86
87
|
>
|
|
87
88
|
{title &&
|
|
88
|
-
<
|
|
89
|
+
<Row
|
|
89
90
|
w="100%"
|
|
90
91
|
borderBottomWidth={1}
|
|
91
92
|
borderBottomColor="trueGray.200"
|
|
@@ -101,7 +102,7 @@ export default function FieldSet(props) {
|
|
|
101
102
|
numberOfLines={1}
|
|
102
103
|
ellipsizeMode="head"
|
|
103
104
|
>{title}</Text>
|
|
104
|
-
{showToggleAllCheckbox && <
|
|
105
|
+
{showToggleAllCheckbox && <Row alignSelf="right">
|
|
105
106
|
<Text
|
|
106
107
|
fontSize={styles.FORM_FIELDSET_FONTSIZE}
|
|
107
108
|
py={1}
|
|
@@ -116,7 +117,7 @@ export default function FieldSet(props) {
|
|
|
116
117
|
size: 'lg',
|
|
117
118
|
}}
|
|
118
119
|
/>
|
|
119
|
-
</
|
|
120
|
+
</Row>}
|
|
120
121
|
{isCollapsible && <IconButton
|
|
121
122
|
_icon={{
|
|
122
123
|
as: isLocalCollapsed ? <CaretDown /> : <CaretUp />,
|
|
@@ -125,7 +126,7 @@ export default function FieldSet(props) {
|
|
|
125
126
|
}}
|
|
126
127
|
onPress={onToggleCollapse}
|
|
127
128
|
/>}
|
|
128
|
-
</
|
|
129
|
+
</Row>}
|
|
129
130
|
{helpText && <Text>{helpText}</Text>}
|
|
130
131
|
{!isLocalCollapsed && <FieldSetContext.Provider value={{ registerChild, onChangeValue, }}>
|
|
131
132
|
{children}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef, isValidElement, } from 'react';
|
|
2
|
+
import { View, } from 'react-native';
|
|
2
3
|
import {
|
|
3
4
|
Box,
|
|
4
|
-
|
|
5
|
-
ButtonText,
|
|
6
|
-
VStack,
|
|
7
|
-
HStack,
|
|
5
|
+
Column,
|
|
8
6
|
Icon,
|
|
7
|
+
Row,
|
|
9
8
|
ScrollView,
|
|
10
9
|
Text,
|
|
11
|
-
} from '
|
|
10
|
+
} from 'native-base';
|
|
12
11
|
import {
|
|
13
12
|
EDITOR_TYPE__INLINE,
|
|
14
13
|
EDITOR_TYPE__WINDOWED,
|
|
@@ -31,7 +30,7 @@ import withPdfButton from '../Hoc/withPdfButton.js';
|
|
|
31
30
|
import inArray from '../../Functions/inArray.js';
|
|
32
31
|
import getComponentFromType from '../../Functions/getComponentFromType.js';
|
|
33
32
|
import buildAdditionalButtons from '../../Functions/buildAdditionalButtons.js';
|
|
34
|
-
|
|
33
|
+
import Button from '../Buttons/Button.js';
|
|
35
34
|
import IconButton from '../Buttons/IconButton.js';
|
|
36
35
|
import AngleLeft from '../Icons/AngleLeft.js';
|
|
37
36
|
import Eye from '../Icons/Eye.js';
|
|
@@ -71,6 +70,8 @@ function Form(props) {
|
|
|
71
70
|
columnDefaults = {}, // defaults for each Column defined in items (above)
|
|
72
71
|
columnsConfig, // Which columns are shown in Grid, so the inline editor can match. Used only for EDITOR_TYPE__INLINE
|
|
73
72
|
validator, // custom validator, mainly for EDITOR_TYPE__PLAIN
|
|
73
|
+
formHeader = null,
|
|
74
|
+
containerProps = {},
|
|
74
75
|
footerProps = {},
|
|
75
76
|
buttonGroupProps = {}, // buttons in footer
|
|
76
77
|
checkIsEditingDisabled = true,
|
|
@@ -370,7 +371,7 @@ function Form(props) {
|
|
|
370
371
|
/>);
|
|
371
372
|
|
|
372
373
|
});
|
|
373
|
-
return <
|
|
374
|
+
return <Row>{elements}</Row>;
|
|
374
375
|
},
|
|
375
376
|
buildFromItems = () => {
|
|
376
377
|
return _.map(items, (item, ix) => buildFromItem(item, ix, columnDefaults));
|
|
@@ -512,10 +513,10 @@ function Form(props) {
|
|
|
512
513
|
if (containerWidth > STACK_ROW_THRESHOLD) {
|
|
513
514
|
element = <><Label {...labelProps}>{label}</Label>{element}</>;
|
|
514
515
|
} else {
|
|
515
|
-
element = <
|
|
516
|
+
element = <Column><Label {...labelProps}>{label}</Label>{element}</Column>;
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
|
-
return <
|
|
519
|
+
return <Row key={ix} px={2} pb={1}>{element}</Row>;
|
|
519
520
|
}
|
|
520
521
|
|
|
521
522
|
|
|
@@ -611,25 +612,25 @@ function Form(props) {
|
|
|
611
612
|
if (message) {
|
|
612
613
|
message = <Text color="#f00">{message}</Text>;
|
|
613
614
|
}
|
|
614
|
-
element = <
|
|
615
|
+
element = <Column pt={1} flex={1}>
|
|
615
616
|
{element}
|
|
616
617
|
{message}
|
|
617
|
-
</
|
|
618
|
+
</Column>;
|
|
618
619
|
|
|
619
620
|
if (item.additionalEditButtons) {
|
|
620
621
|
const buttons = buildAdditionalButtons(item.additionalEditButtons, self, { fieldState, formSetValue, formGetValues, formState });
|
|
621
622
|
if (containerWidth > STACK_ROW_THRESHOLD) {
|
|
622
|
-
element = <
|
|
623
|
+
element = <Row flex={1} flexWrap="wrap">
|
|
623
624
|
{element}
|
|
624
625
|
{buttons}
|
|
625
|
-
</
|
|
626
|
+
</Row>;
|
|
626
627
|
} else {
|
|
627
|
-
element = <
|
|
628
|
+
element = <Column flex={1} w="100%">
|
|
628
629
|
{element}
|
|
629
|
-
<
|
|
630
|
+
<Row flex={1} w="100%" mt={2} flexWrap="wrap">
|
|
630
631
|
{buttons}
|
|
631
|
-
</
|
|
632
|
-
</
|
|
632
|
+
</Row>
|
|
633
|
+
</Column>;
|
|
633
634
|
}
|
|
634
635
|
}
|
|
635
636
|
|
|
@@ -657,25 +658,25 @@ function Form(props) {
|
|
|
657
658
|
labelProps.w = defaults.labelWidth;
|
|
658
659
|
}
|
|
659
660
|
if (containerWidth > STACK_ROW_THRESHOLD) {
|
|
660
|
-
element = <
|
|
661
|
+
element = <Row w="100%" py={1}>
|
|
661
662
|
<Label {...labelProps}>{requiredIndicator}{label}</Label>
|
|
662
663
|
{element}
|
|
663
|
-
</
|
|
664
|
+
</Row>;
|
|
664
665
|
} else {
|
|
665
|
-
element = <
|
|
666
|
+
element = <Column w="100%" py={1} mt={3}>
|
|
666
667
|
<Label {...labelProps}>{requiredIndicator}{label}</Label>
|
|
667
668
|
{element}
|
|
668
|
-
</
|
|
669
|
+
</Column>;
|
|
669
670
|
}
|
|
670
671
|
} else if (disableLabels && requiredIndicator) {
|
|
671
|
-
element = <
|
|
672
|
+
element = <Row w="100%" py={1}>
|
|
672
673
|
{requiredIndicator}
|
|
673
674
|
{element}
|
|
674
|
-
</
|
|
675
|
+
</Row>;
|
|
675
676
|
}
|
|
676
677
|
|
|
677
678
|
const dirtyIcon = isDirty && !disableDirtyIcon ? <Icon as={Pencil} size="2xs" color="trueGray.300" position="absolute" top="2px" left="2px" /> : null;
|
|
678
|
-
return <
|
|
679
|
+
return <Row key={ix} px={2} pb={1} bg={error ? '#fdd' : null}>{dirtyIcon}{element}</Row>;
|
|
679
680
|
}}
|
|
680
681
|
/>;
|
|
681
682
|
},
|
|
@@ -721,7 +722,7 @@ function Form(props) {
|
|
|
721
722
|
fontStyle="italic"
|
|
722
723
|
>{description}</Text>;
|
|
723
724
|
}
|
|
724
|
-
components.push(<
|
|
725
|
+
components.push(<Column key={'ancillary-' + ix} mx={2} my={5}>{title}{description}{element}</Column>);
|
|
725
726
|
});
|
|
726
727
|
}
|
|
727
728
|
return components;
|
|
@@ -867,44 +868,40 @@ function Form(props) {
|
|
|
867
868
|
// formComponents = buildFromItems();
|
|
868
869
|
// const formAncillaryComponents = buildAncillary();
|
|
869
870
|
// editor = <>
|
|
870
|
-
// <
|
|
871
|
-
// <
|
|
871
|
+
// <Column p={4}>{formComponents}</Column>
|
|
872
|
+
// <Column pt={4}>{formAncillaryComponents}</Column>
|
|
872
873
|
// </>;
|
|
873
874
|
} else {
|
|
874
875
|
formComponents = buildFromItems();
|
|
875
876
|
const formAncillaryComponents = buildAncillary();
|
|
876
877
|
editor = <>
|
|
877
|
-
{containerWidth >= ONE_COLUMN_THRESHOLD ? <
|
|
878
|
-
{containerWidth < ONE_COLUMN_THRESHOLD ? <
|
|
879
|
-
<
|
|
878
|
+
{containerWidth >= ONE_COLUMN_THRESHOLD ? <Row p={4} pl={0}>{formComponents}</Row> : null}
|
|
879
|
+
{containerWidth < ONE_COLUMN_THRESHOLD ? <Column p={4}>{formComponents}</Column> : null}
|
|
880
|
+
<Column m={2} pt={4} px={2}>{formAncillaryComponents}</Column>
|
|
880
881
|
</>;
|
|
881
882
|
|
|
882
883
|
additionalButtons = buildAdditionalButtons(additionalEditButtons);
|
|
883
884
|
|
|
884
|
-
formButtons.push(<
|
|
885
|
+
formButtons.push(<Row key="buttonsRow" px={4} pt={4} alignItems="center" justifyContent="flex-end">
|
|
885
886
|
{isSingle && editorMode === EDITOR_MODE__EDIT && onBack &&
|
|
886
887
|
<Button
|
|
887
888
|
key="backBtn"
|
|
888
889
|
onPress={onBack}
|
|
889
890
|
leftIcon={<Icon as={AngleLeft} color="#fff" size="sm" />}
|
|
890
891
|
color="#fff"
|
|
891
|
-
>
|
|
892
|
-
<ButtonText>Back</ButtonText>
|
|
893
|
-
</Button>}
|
|
892
|
+
>Back</Button>}
|
|
894
893
|
{isSingle && editorMode === EDITOR_MODE__EDIT && onViewMode && !disableView &&
|
|
895
894
|
<Button
|
|
896
895
|
key="viewBtn"
|
|
897
896
|
onPress={onViewMode}
|
|
898
897
|
leftIcon={<Icon as={Eye} color="#fff" size="sm" />}
|
|
899
898
|
color="#fff"
|
|
900
|
-
>
|
|
901
|
-
|
|
902
|
-
</Button>}
|
|
903
|
-
</HStack>);
|
|
899
|
+
>To View</Button>}
|
|
900
|
+
</Row>);
|
|
904
901
|
if (editorMode === EDITOR_MODE__EDIT && !_.isEmpty(additionalButtons)) {
|
|
905
|
-
formButtons.push(<
|
|
902
|
+
formButtons.push(<Row key="additionalButtonsRow" p={4} alignItems="center" justifyContent="flex-end" flexWrap="wrap">
|
|
906
903
|
{additionalButtons}
|
|
907
|
-
</
|
|
904
|
+
</Row>)
|
|
908
905
|
}
|
|
909
906
|
}
|
|
910
907
|
|
|
@@ -963,7 +960,7 @@ function Form(props) {
|
|
|
963
960
|
}
|
|
964
961
|
}
|
|
965
962
|
|
|
966
|
-
return <
|
|
963
|
+
return <Column {...sizeProps} {...containerProps} onLayout={onLayoutDecorated} ref={formRef} testID="form">
|
|
967
964
|
{!!containerWidth && <>
|
|
968
965
|
{editorType === EDITOR_TYPE__INLINE &&
|
|
969
966
|
<Row
|
|
@@ -978,6 +975,7 @@ function Form(props) {
|
|
|
978
975
|
>{editor}</Row>}
|
|
979
976
|
{editorType !== EDITOR_TYPE__INLINE &&
|
|
980
977
|
<ScrollView _web={{ minHeight, }} width="100%" pb={1}>
|
|
978
|
+
{formHeader}
|
|
981
979
|
{formButtons}
|
|
982
980
|
{editor}
|
|
983
981
|
</ScrollView>}
|
|
@@ -985,7 +983,7 @@ function Form(props) {
|
|
|
985
983
|
<Footer justifyContent="flex-end" {...footerProps} {...savingProps}>
|
|
986
984
|
{onDelete && editorMode === EDITOR_MODE__EDIT && isSingle &&
|
|
987
985
|
|
|
988
|
-
<
|
|
986
|
+
<Row flex={1} justifyContent="flex-start">
|
|
989
987
|
<Button
|
|
990
988
|
key="deleteBtn"
|
|
991
989
|
onPress={onDelete}
|
|
@@ -994,10 +992,8 @@ function Form(props) {
|
|
|
994
992
|
bg: 'warningHover',
|
|
995
993
|
}}
|
|
996
994
|
color="#fff"
|
|
997
|
-
>
|
|
998
|
-
|
|
999
|
-
</Button>
|
|
1000
|
-
</HStack>}
|
|
995
|
+
>Delete</Button>
|
|
996
|
+
</Row>}
|
|
1001
997
|
|
|
1002
998
|
{showResetBtn &&
|
|
1003
999
|
<IconButton
|
|
@@ -1017,9 +1013,7 @@ function Form(props) {
|
|
|
1017
1013
|
variant="ghost"
|
|
1018
1014
|
onPress={onCancel}
|
|
1019
1015
|
color="#fff"
|
|
1020
|
-
>
|
|
1021
|
-
<ButtonText>Cancel</ButtonText>
|
|
1022
|
-
</Button>}
|
|
1016
|
+
>Cancel</Button>}
|
|
1023
1017
|
|
|
1024
1018
|
{showCloseBtn &&
|
|
1025
1019
|
<Button
|
|
@@ -1027,9 +1021,7 @@ function Form(props) {
|
|
|
1027
1021
|
variant="ghost"
|
|
1028
1022
|
onPress={onClose}
|
|
1029
1023
|
color="#fff"
|
|
1030
|
-
>
|
|
1031
|
-
<ButtonText>Close</ButtonText>
|
|
1032
|
-
</Button>}
|
|
1024
|
+
>Close</Button>}
|
|
1033
1025
|
|
|
1034
1026
|
{showSaveBtn &&
|
|
1035
1027
|
<Button
|
|
@@ -1037,9 +1029,7 @@ function Form(props) {
|
|
|
1037
1029
|
onPress={(e) => handleSubmit(onSaveDecorated, onSubmitError)(e)}
|
|
1038
1030
|
isDisabled={isSaveDisabled}
|
|
1039
1031
|
color="#fff"
|
|
1040
|
-
>
|
|
1041
|
-
<ButtonText>{editorMode === EDITOR_MODE__ADD ? 'Add' : 'Save'}</ButtonText>
|
|
1042
|
-
</Button>}
|
|
1032
|
+
>{editorMode === EDITOR_MODE__ADD ? 'Add' : 'Save'}</Button>}
|
|
1043
1033
|
|
|
1044
1034
|
{showSubmitBtn &&
|
|
1045
1035
|
<Button
|
|
@@ -1047,21 +1037,17 @@ function Form(props) {
|
|
|
1047
1037
|
onPress={(e) => handleSubmit(onSubmitDecorated, onSubmitError)(e)}
|
|
1048
1038
|
isDisabled={isSubmitDisabled}
|
|
1049
1039
|
color="#fff"
|
|
1050
|
-
>
|
|
1051
|
-
<ButtonText>{submitBtnLabel || 'Submit'}</ButtonText>
|
|
1052
|
-
</Button>}
|
|
1040
|
+
>{submitBtnLabel || 'Submit'}</Button>}
|
|
1053
1041
|
|
|
1054
1042
|
{additionalFooterButtons && _.map(additionalFooterButtons, (props) => {
|
|
1055
1043
|
return <Button
|
|
1056
1044
|
{...props}
|
|
1057
1045
|
onPress={(e) => handleSubmit(props.onPress, onSubmitError)(e)}
|
|
1058
|
-
>
|
|
1059
|
-
<ButtonText>{props.text}</ButtonText>
|
|
1060
|
-
</Button>;
|
|
1046
|
+
>{props.text}</Button>;
|
|
1061
1047
|
})}
|
|
1062
1048
|
</Footer>
|
|
1063
1049
|
</>}
|
|
1064
|
-
</
|
|
1050
|
+
</Column>;
|
|
1065
1051
|
}
|
|
1066
1052
|
|
|
1067
1053
|
// helper fns
|