@onehat/ui 0.3.260 → 0.3.262
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 +4 -3
- 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 +5 -2
- 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 +9 -10
- 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 +1 -3
- package/src/Components/Form/Field/Color.js +91 -85
- 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 +10 -11
- 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 +1 -3
- 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 +6 -7
- package/src/Components/Form/FiltersForm.js +0 -9
- package/src/Components/Form/Form.js +62 -45
- package/src/Components/Form/Label.js +4 -4
- package/src/Components/Grid/Grid.js +9 -11
- 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 +4 -6
- package/src/Components/Grid/HeaderResizeHandle.js +4 -6
- package/src/Components/Grid/NoRecordsFound.js +7 -7
- package/src/Components/Grid/RowDragHandle.js +4 -6
- package/src/Components/Hoc/Secondary/withSecondaryEditor.js +2 -1
- package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +1 -3
- package/src/Components/Hoc/withAlert.js +24 -14
- package/src/Components/Hoc/withBlank.js +0 -2
- package/src/Components/Hoc/withContextMenu.js +4 -9
- package/src/Components/Hoc/withEditor.js +2 -1
- package/src/Components/Hoc/withEvents.js +0 -2
- package/src/Components/Hoc/withFilters.js +11 -11
- package/src/Components/Hoc/withInlineEditor.js +5 -8
- package/src/Components/Hoc/withPdfButton.js +4 -5
- package/src/Components/Hoc/withPresetButtons.js +1 -1
- package/src/Components/Hoc/withTooltip.js +3 -3
- package/src/Components/Hoc/withWindowedEditor.js +1 -3
- package/src/Components/Icons/AddressBook.js +6 -10
- package/src/Components/Icons/Alt.js +7 -15
- package/src/Components/Icons/AngleLeft.js +6 -14
- package/src/Components/Icons/AngleRight.js +6 -14
- package/src/Components/Icons/AnglesLeft.js +6 -14
- package/src/Components/Icons/AnglesRight.js +6 -14
- package/src/Components/Icons/Asterisk.js +6 -10
- package/src/Components/Icons/Ban.js +8 -14
- package/src/Components/Icons/Bars.js +6 -10
- package/src/Components/Icons/BarsStaggered.js +6 -10
- package/src/Components/Icons/Bell.js +6 -19
- package/src/Components/Icons/BigCircle.js +6 -14
- package/src/Components/Icons/Book.js +6 -10
- package/src/Components/Icons/BookOpen.js +6 -10
- package/src/Components/Icons/Bookmark.js +7 -17
- package/src/Components/Icons/Bug.js +6 -10
- package/src/Components/Icons/Building.js +6 -10
- package/src/Components/Icons/Calendar.js +6 -14
- package/src/Components/Icons/Calendar2.js +6 -14
- package/src/Components/Icons/CalendarDays.js +6 -14
- package/src/Components/Icons/Camera.js +6 -14
- package/src/Components/Icons/CaretDown.js +6 -14
- package/src/Components/Icons/CaretUp.js +6 -14
- package/src/Components/Icons/CartPlus.js +6 -10
- package/src/Components/Icons/CartShopping.js +6 -10
- package/src/Components/Icons/CashRegister.js +6 -10
- package/src/Components/Icons/Certificate.js +6 -10
- package/src/Components/Icons/ChartLine.js +6 -10
- package/src/Components/Icons/ChartPie.js +6 -10
- package/src/Components/Icons/Check.js +6 -10
- package/src/Components/Icons/CheckDouble.js +6 -10
- package/src/Components/Icons/ChevronDown.js +6 -10
- package/src/Components/Icons/ChevronLeft.js +6 -10
- package/src/Components/Icons/ChevronRight.js +6 -10
- package/src/Components/Icons/ChevronUp.js +6 -10
- package/src/Components/Icons/Circle.js +6 -10
- package/src/Components/Icons/CircleArrowRight.js +6 -10
- package/src/Components/Icons/CircleExclamation.js +6 -14
- package/src/Components/Icons/CircleInfo.js +6 -10
- package/src/Components/Icons/CircleQuestion.js +6 -10
- package/src/Components/Icons/CircleXmark.js +6 -10
- package/src/Components/Icons/CircleXmarkRegular.js +6 -10
- package/src/Components/Icons/Clipboard.js +6 -14
- package/src/Components/Icons/ClipboardCheck.js +6 -17
- package/src/Components/Icons/ClipboardList.js +6 -16
- package/src/Components/Icons/Clock.js +6 -10
- package/src/Components/Icons/ClockRegular.js +6 -10
- package/src/Components/Icons/ClockRotateLeft.js +6 -10
- package/src/Components/Icons/Clone.js +6 -10
- package/src/Components/Icons/Collapse.js +6 -14
- package/src/Components/Icons/Comment.js +6 -10
- package/src/Components/Icons/CommentDots.js +6 -10
- package/src/Components/Icons/CommentRegular.js +6 -10
- package/src/Components/Icons/Comments.js +6 -10
- package/src/Components/Icons/CommentsRegular.js +6 -10
- package/src/Components/Icons/Copyright.js +6 -10
- package/src/Components/Icons/Dot.js +9 -15
- package/src/Components/Icons/Duplicate.js +6 -14
- package/src/Components/Icons/Edit.js +6 -14
- package/src/Components/Icons/EllipsisHorizontal.js +6 -16
- package/src/Components/Icons/EllipsisVertical.js +6 -14
- package/src/Components/Icons/Envelope.js +6 -10
- package/src/Components/Icons/EnvelopeRegular.js +6 -10
- package/src/Components/Icons/Excel.js +6 -10
- package/src/Components/Icons/Exclamation.js +6 -10
- package/src/Components/Icons/Expand.js +6 -10
- package/src/Components/Icons/Eye.js +6 -14
- package/src/Components/Icons/EyeSlash.js +6 -10
- package/src/Components/Icons/File.js +6 -14
- package/src/Components/Icons/FloppyDiskRegular.js +6 -10
- package/src/Components/Icons/Folder.js +6 -10
- package/src/Components/Icons/FolderClosed.js +6 -10
- package/src/Components/Icons/FolderOpen.js +6 -10
- package/src/Components/Icons/FolderTree.js +6 -10
- package/src/Components/Icons/FullWidth.js +9 -25
- package/src/Components/Icons/Gauge.js +6 -17
- package/src/Components/Icons/Gear.js +6 -14
- package/src/Components/Icons/Gears.js +6 -10
- package/src/Components/Icons/Gift.js +6 -10
- package/src/Components/Icons/Grip.js +6 -14
- package/src/Components/Icons/GripLines.js +6 -14
- package/src/Components/Icons/GripLinesVertical.js +6 -14
- package/src/Components/Icons/GripVertical.js +6 -14
- package/src/Components/Icons/Hammer.js +6 -10
- package/src/Components/Icons/Hand.js +6 -10
- package/src/Components/Icons/HighPriority.js +6 -17
- package/src/Components/Icons/House.js +6 -10
- package/src/Components/Icons/Images.js +6 -10
- package/src/Components/Icons/Info.js +6 -10
- package/src/Components/Icons/ItunesNote.js +6 -10
- package/src/Components/Icons/Js.js +6 -16
- package/src/Components/Icons/Leaf.js +6 -10
- package/src/Components/Icons/Link.js +6 -9
- package/src/Components/Icons/List.js +6 -10
- package/src/Components/Icons/ListCheck.js +6 -10
- package/src/Components/Icons/LocationDot.js +6 -10
- package/src/Components/Icons/Loop.js +6 -14
- package/src/Components/Icons/Loop1.js +7 -13
- package/src/Components/Icons/LoopAll.js +7 -13
- package/src/Components/Icons/LowPriority.js +6 -17
- package/src/Components/Icons/MagnifyingGlass.js +6 -10
- package/src/Components/Icons/Maximize.js +6 -10
- package/src/Components/Icons/MedPriority.js +6 -17
- package/src/Components/Icons/Microphone.js +6 -10
- package/src/Components/Icons/Minimize.js +6 -10
- package/src/Components/Icons/Minus.js +6 -14
- package/src/Components/Icons/MobileScreenButton.js +6 -10
- package/src/Components/Icons/MoneyBill.js +6 -10
- package/src/Components/Icons/MoneyBillWave.js +6 -10
- package/src/Components/Icons/Mouth.js +9 -21
- package/src/Components/Icons/Music.js +6 -10
- package/src/Components/Icons/Na.js +6 -14
- package/src/Components/Icons/NoLoop.js +10 -13
- package/src/Components/Icons/NoReorderRows.js +16 -22
- package/src/Components/Icons/ObjectGroupRegular.js +6 -10
- package/src/Components/Icons/Pause.js +6 -10
- package/src/Components/Icons/Pdf.js +6 -10
- package/src/Components/Icons/Pencil.js +6 -14
- package/src/Components/Icons/Phone.js +6 -10
- package/src/Components/Icons/Play.js +6 -10
- package/src/Components/Icons/Plus.js +6 -14
- package/src/Components/Icons/Presentation.js +6 -16
- package/src/Components/Icons/Print.js +6 -14
- package/src/Components/Icons/Question.js +6 -10
- package/src/Components/Icons/Rate-.25x.js +11 -17
- package/src/Components/Icons/Rate-.5x.js +10 -16
- package/src/Components/Icons/Rate-.75x.js +7 -13
- package/src/Components/Icons/Rate-1.25x.js +7 -13
- package/src/Components/Icons/Rate-1.5x.js +7 -13
- package/src/Components/Icons/Rate-1.75x.js +7 -13
- package/src/Components/Icons/Rate-1x.js +10 -16
- package/src/Components/Icons/Rate-2x.js +7 -13
- package/src/Components/Icons/RateIcon-.25x.js +7 -13
- package/src/Components/Icons/RateIcon-.5x.js +10 -16
- package/src/Components/Icons/RateIcon-.75x.js +7 -13
- package/src/Components/Icons/RateIcon-1.25x.js +7 -13
- package/src/Components/Icons/RateIcon-1.5x.js +7 -13
- package/src/Components/Icons/RateIcon-1.75x.js +7 -13
- package/src/Components/Icons/RateIcon-1x.js +7 -13
- package/src/Components/Icons/RateIcon-2x.js +7 -13
- package/src/Components/Icons/RectangleXmark.js +6 -10
- package/src/Components/Icons/RectangleXmarkRegular.js +6 -10
- package/src/Components/Icons/ReorderRows.js +7 -13
- package/src/Components/Icons/RightFromBracket.js +6 -10
- package/src/Components/Icons/RightLeft.js +6 -10
- package/src/Components/Icons/RightToBracket.js +6 -10
- package/src/Components/Icons/Rotate.js +6 -14
- package/src/Components/Icons/RotateLeft.js +6 -10
- package/src/Components/Icons/RotateRight.js +6 -14
- package/src/Components/Icons/ScrewdriverWrench.js +6 -10
- package/src/Components/Icons/Scroll.js +6 -10
- package/src/Components/Icons/Share.js +6 -10
- package/src/Components/Icons/Shop.js +6 -10
- package/src/Components/Icons/SideBySide.js +6 -20
- package/src/Components/Icons/SortDown.js +6 -10
- package/src/Components/Icons/SortDownAlt.js +6 -10
- package/src/Components/Icons/SortUp.js +6 -10
- package/src/Components/Icons/SortUpAlt.js +6 -14
- package/src/Components/Icons/Square.js +6 -10
- package/src/Components/Icons/SquareCheck.js +6 -10
- package/src/Components/Icons/SquareCheckRegular.js +6 -10
- package/src/Components/Icons/SquareMinus.js +6 -14
- package/src/Components/Icons/SquareRegular.js +6 -10
- package/src/Components/Icons/Store.js +6 -10
- package/src/Components/Icons/Table.js +6 -16
- package/src/Components/Icons/ThumbsDown.js +6 -10
- package/src/Components/Icons/ThumbsDownRegular.js +6 -10
- package/src/Components/Icons/ThumbsUp.js +6 -10
- package/src/Components/Icons/ThumbsUpRegular.js +6 -10
- package/src/Components/Icons/Trash.js +6 -14
- package/src/Components/Icons/TrashCan.js +6 -14
- package/src/Components/Icons/TriangleExclamation.js +6 -14
- package/src/Components/Icons/Truck.js +6 -10
- package/src/Components/Icons/TruckFast.js +6 -10
- package/src/Components/Icons/UploadDownload.js +7 -9
- package/src/Components/Icons/User.js +6 -10
- package/src/Components/Icons/UserGroup.js +6 -10
- package/src/Components/Icons/UserPlus.js +6 -10
- package/src/Components/Icons/UserSecret.js +6 -10
- package/src/Components/Icons/Video.js +6 -16
- package/src/Components/Icons/X.js +6 -10
- package/src/Components/Icons/Xmark.js +6 -10
- package/src/Components/Layout/CenterBox.js +1 -1
- package/src/Components/Layout/Footer.js +4 -4
- package/src/Components/Messages/ConfirmationMessage.js +8 -3
- package/src/Components/Messages/ErrorMessage.js +5 -2
- package/src/Components/Messages/Loading.js +6 -6
- package/src/Components/Messages/OkMessage.js +4 -3
- 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 +10 -12
- 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 +12 -8
- package/src/Components/Toolbar/PaginationToolbar.js +3 -3
- package/src/Components/Toolbar/Toolbar.js +4 -4
- package/src/Components/Tree/Tree.js +10 -13
- package/src/Components/Tree/TreeNode.js +4 -4
- package/src/Components/Viewer/Viewer.js +37 -24
- 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 +7 -3
- package/src/PlatformImports/Web/Attachments.js +11 -8
- package/src/PlatformImports/Web/File.js +4 -5
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
Modal,
|
|
5
5
|
Popover,
|
|
6
6
|
Pressable,
|
|
7
|
-
|
|
7
|
+
HStack,
|
|
8
8
|
Text,
|
|
9
9
|
Tooltip,
|
|
10
|
-
} from '
|
|
10
|
+
} from '@gluestack-ui/themed';
|
|
11
11
|
import {
|
|
12
12
|
UI_MODE_REACT_NATIVE,
|
|
13
13
|
UI_MODE_WEB,
|
|
@@ -104,7 +104,7 @@ export function ComboComponent(props) {
|
|
|
104
104
|
if (isMenuShown) {
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
if (UiGlobals.mode === UI_MODE_WEB && inputRef.current
|
|
107
|
+
if (UiGlobals.mode === UI_MODE_WEB && inputRef.current?.getBoundingClientRect) {
|
|
108
108
|
// For web, ensure it's in the proper place
|
|
109
109
|
const
|
|
110
110
|
rect = inputRef.current.getBoundingClientRect(),
|
|
@@ -855,7 +855,7 @@ export function ComboComponent(props) {
|
|
|
855
855
|
/>;
|
|
856
856
|
}
|
|
857
857
|
const inputAndTriggerClone = // for RN, this is the actual input and trigger, as we need them to appear up above in the modal
|
|
858
|
-
<
|
|
858
|
+
<HStack h={10}>
|
|
859
859
|
{xButton}
|
|
860
860
|
{eyeButton}
|
|
861
861
|
{disableDirectEntry ?
|
|
@@ -922,7 +922,7 @@ export function ComboComponent(props) {
|
|
|
922
922
|
}}
|
|
923
923
|
/>
|
|
924
924
|
{checkButton}
|
|
925
|
-
</
|
|
925
|
+
</HStack>;
|
|
926
926
|
dropdownMenu = <Modal
|
|
927
927
|
isOpen={true}
|
|
928
928
|
safeAreaTop={true}
|
|
@@ -947,26 +947,26 @@ export function ComboComponent(props) {
|
|
|
947
947
|
if (isRendered && additionalButtons?.length && containerWidth < 500) {
|
|
948
948
|
// be responsive for small screen sizes and bump additionalButtons to the next line
|
|
949
949
|
assembledComponents =
|
|
950
|
-
<
|
|
951
|
-
<
|
|
950
|
+
<VStack>
|
|
951
|
+
<HStack {...refProps} justifyContent="center" alignItems="center" flex={1} h="100%">
|
|
952
952
|
{xButton}
|
|
953
953
|
{eyeButton}
|
|
954
954
|
{inputAndTrigger}
|
|
955
955
|
{dropdownMenu}
|
|
956
|
-
</
|
|
957
|
-
<
|
|
956
|
+
</HStack>
|
|
957
|
+
<HStack mt={2}>
|
|
958
958
|
{additionalButtons}
|
|
959
|
-
</
|
|
960
|
-
</
|
|
959
|
+
</HStack>
|
|
960
|
+
</VStack>;
|
|
961
961
|
} else {
|
|
962
962
|
assembledComponents =
|
|
963
|
-
<
|
|
963
|
+
<HStack {...refProps} justifyContent="center" alignItems="center" flex={1} h="100%" onLayout={onLayout}>
|
|
964
964
|
{xButton}
|
|
965
965
|
{eyeButton}
|
|
966
966
|
{inputAndTrigger}
|
|
967
967
|
{additionalButtons}
|
|
968
968
|
{dropdownMenu}
|
|
969
|
-
</
|
|
969
|
+
</HStack>;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
if (isViewerShown && Editor) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
HStack,
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
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 <HStack
|
|
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
|
+
</HStack>;
|
|
34
34
|
}, [
|
|
35
35
|
Repository,
|
|
36
36
|
pageSize,
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import React, { useState,
|
|
1
|
+
import React, { useState, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
-
Icon,
|
|
5
4
|
Modal,
|
|
6
5
|
Popover,
|
|
7
6
|
Pressable,
|
|
8
|
-
|
|
7
|
+
HStack,
|
|
9
8
|
Text,
|
|
10
9
|
Tooltip,
|
|
11
|
-
} from '
|
|
10
|
+
} from '@gluestack-ui/themed';
|
|
12
11
|
import {
|
|
13
12
|
DATE,
|
|
14
13
|
TIME,
|
|
@@ -502,7 +501,7 @@ export function DateElement(props) {
|
|
|
502
501
|
}
|
|
503
502
|
if (UiGlobals.mode === UI_MODE_REACT_NATIVE) {
|
|
504
503
|
const inputAndTriggerClone = // for RN, this is the actual input and trigger, as we need them to appear up above in the modal
|
|
505
|
-
<
|
|
504
|
+
<HStack h={10}>
|
|
506
505
|
<IconButton
|
|
507
506
|
_icon={{
|
|
508
507
|
as: Calendar,
|
|
@@ -568,7 +567,7 @@ export function DateElement(props) {
|
|
|
568
567
|
placeholder={placeholder}
|
|
569
568
|
{..._input}
|
|
570
569
|
/>}
|
|
571
|
-
</
|
|
570
|
+
</HStack>;
|
|
572
571
|
dropdownMenu = <Modal
|
|
573
572
|
isOpen={true}
|
|
574
573
|
safeAreaTop={true}
|
|
@@ -608,17 +607,17 @@ export function DateElement(props) {
|
|
|
608
607
|
if (tooltipRef) {
|
|
609
608
|
refProps.ref = tooltipRef;
|
|
610
609
|
}
|
|
611
|
-
assembledComponents = <
|
|
610
|
+
assembledComponents = <HStack {...refProps} justifyContent="center" alignItems="center" h={styles.FORM_COMBO_HEIGHT} flex={1} onLayout={() => setIsRendered(true)}>
|
|
612
611
|
{xButton}
|
|
613
612
|
{inputAndTrigger}
|
|
614
613
|
{additionalButtons}
|
|
615
614
|
{dropdownMenu}
|
|
616
|
-
</
|
|
615
|
+
</HStack>;
|
|
617
616
|
|
|
618
617
|
if (tooltip) {
|
|
619
|
-
assembledComponents = <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
620
|
-
|
|
621
|
-
|
|
618
|
+
// assembledComponents = <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
619
|
+
// {assembledComponents}
|
|
620
|
+
// </Tooltip>;
|
|
622
621
|
}
|
|
623
622
|
|
|
624
623
|
return assembledComponents;
|
|
@@ -2,10 +2,10 @@ import React, { useState, useEffect, useRef, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Icon,
|
|
5
|
-
|
|
5
|
+
HStack,
|
|
6
6
|
Text,
|
|
7
7
|
Tooltip,
|
|
8
|
-
} from '
|
|
8
|
+
} from '@gluestack-ui/themed';
|
|
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
|
+
<HStack 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
|
+
</HStack>
|
|
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 '@gluestack-ui/themed';
|
|
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
|
-
component = <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
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
|
+
HStack,
|
|
7
|
+
} from '@gluestack-ui/themed';
|
|
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 <HStack 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
|
+
</HStack>;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export default withComponent(withValue(NumberElement));
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
Column,
|
|
4
3
|
Radio,
|
|
5
|
-
|
|
6
|
-
} from 'native-base';
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
7
5
|
import withComponent from '../../../Hoc/withComponent.js';
|
|
8
6
|
import withData from '../../../Hoc/withData.js';
|
|
9
7
|
import withValue from '../../../Hoc/withValue.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
VStack,
|
|
4
4
|
Modal,
|
|
5
|
-
|
|
6
|
-
} from '
|
|
5
|
+
HStack,
|
|
6
|
+
} from '@gluestack-ui/themed';
|
|
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
|
+
<VStack
|
|
241
241
|
{...props}
|
|
242
242
|
{...sizeProps}
|
|
243
243
|
px={0}
|
|
244
244
|
py={0}
|
|
245
245
|
>
|
|
246
|
-
<
|
|
246
|
+
<HStack
|
|
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}</HStack>
|
|
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
|
+
</VStack>
|
|
271
271
|
{isViewerShown &&
|
|
272
272
|
<Modal
|
|
273
273
|
isOpen={true}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
HStack,
|
|
3
3
|
Text,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
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 <HStack
|
|
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
|
+
</HStack>;
|
|
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 '@gluestack-ui/themed';
|
|
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
|
+
HStack,
|
|
6
6
|
Switch,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from '@gluestack-ui/themed';
|
|
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 <HStack 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
|
+
</HStack>;
|
|
75
75
|
},
|
|
76
76
|
ToggleField = withComponent(withValue(ToggleElement));
|
|
77
77
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useState, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
-
|
|
5
|
-
Row,
|
|
4
|
+
HStack,
|
|
6
5
|
Text,
|
|
7
|
-
} from '
|
|
6
|
+
} from '@gluestack-ui/themed';
|
|
8
7
|
import FieldSetContext from '../../Contexts/FieldSetContext.js';
|
|
9
8
|
import useForceUpdate from '../../Hooks/useForceUpdate.js';
|
|
10
9
|
import UiGlobals from '../../UiGlobals.js';
|
|
@@ -86,7 +85,7 @@ export default function FieldSet(props) {
|
|
|
86
85
|
{...propsToPass}
|
|
87
86
|
>
|
|
88
87
|
{title &&
|
|
89
|
-
<
|
|
88
|
+
<HStack
|
|
90
89
|
w="100%"
|
|
91
90
|
borderBottomWidth={1}
|
|
92
91
|
borderBottomColor="trueGray.200"
|
|
@@ -102,7 +101,7 @@ export default function FieldSet(props) {
|
|
|
102
101
|
numberOfLines={1}
|
|
103
102
|
ellipsizeMode="head"
|
|
104
103
|
>{title}</Text>
|
|
105
|
-
{showToggleAllCheckbox && <
|
|
104
|
+
{showToggleAllCheckbox && <HStack alignSelf="right">
|
|
106
105
|
<Text
|
|
107
106
|
fontSize={styles.FORM_FIELDSET_FONTSIZE}
|
|
108
107
|
py={1}
|
|
@@ -117,7 +116,7 @@ export default function FieldSet(props) {
|
|
|
117
116
|
size: 'lg',
|
|
118
117
|
}}
|
|
119
118
|
/>
|
|
120
|
-
</
|
|
119
|
+
</HStack>}
|
|
121
120
|
{isCollapsible && <IconButton
|
|
122
121
|
_icon={{
|
|
123
122
|
as: isLocalCollapsed ? <CaretDown /> : <CaretUp />,
|
|
@@ -126,7 +125,7 @@ export default function FieldSet(props) {
|
|
|
126
125
|
}}
|
|
127
126
|
onPress={onToggleCollapse}
|
|
128
127
|
/>}
|
|
129
|
-
</
|
|
128
|
+
</HStack>}
|
|
130
129
|
{helpText && <Text>{helpText}</Text>}
|
|
131
130
|
{!isLocalCollapsed && <FieldSetContext.Provider value={{ registerChild, onChangeValue, }}>
|
|
132
131
|
{children}
|