@onehat/ui 0.3.262 → 0.3.263

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.
Files changed (267) hide show
  1. package/package.json +1 -1
  2. package/src/Components/Accordion/Accordion.js +14 -14
  3. package/src/Components/Blank.js +1 -1
  4. package/src/Components/Buttons/BackButton.js +1 -1
  5. package/src/Components/Buttons/Button.js +1 -1
  6. package/src/Components/Buttons/CartButtonWithBadge.js +1 -1
  7. package/src/Components/Buttons/IconButton.js +2 -5
  8. package/src/Components/Buttons/PlusMinusButton.js +6 -6
  9. package/src/Components/Buttons/SquareButton.js +1 -1
  10. package/src/Components/Container/Container.js +9 -9
  11. package/src/Components/Container/ScreenContainer.js +4 -4
  12. package/src/Components/Container/Splitter.js +10 -9
  13. package/src/Components/Filter/DateRange.js +4 -4
  14. package/src/Components/Filter/NumberRange.js +4 -4
  15. package/src/Components/Form/Field/CKEditor/CKEditor.js +4 -4
  16. package/src/Components/Form/Field/Checkbox/CheckboxGroup.js +3 -1
  17. package/src/Components/Form/Field/Color.js +85 -91
  18. package/src/Components/Form/Field/Combo/Combo.js +13 -13
  19. package/src/Components/Form/Field/Combo/PageSizeCombo.js +4 -4
  20. package/src/Components/Form/Field/Date.js +11 -10
  21. package/src/Components/Form/Field/DisplayField.js +1 -1
  22. package/src/Components/Form/Field/File.js +4 -4
  23. package/src/Components/Form/Field/Input.js +4 -4
  24. package/src/Components/Form/Field/Number.js +4 -4
  25. package/src/Components/Form/Field/RadioGroup/RadioGroup.js +3 -1
  26. package/src/Components/Form/Field/Tag/Tag.js +7 -7
  27. package/src/Components/Form/Field/Tag/ValueBox.js +4 -4
  28. package/src/Components/Form/Field/Text.js +1 -1
  29. package/src/Components/Form/Field/TextArea.js +3 -3
  30. package/src/Components/Form/Field/Toggle.js +4 -4
  31. package/src/Components/Form/FieldSet.js +7 -6
  32. package/src/Components/Form/FiltersForm.js +9 -0
  33. package/src/Components/Form/Form.js +48 -62
  34. package/src/Components/Form/Label.js +4 -4
  35. package/src/Components/Grid/Grid.js +11 -9
  36. package/src/Components/Grid/GridHeaderRow.js +4 -4
  37. package/src/Components/Grid/GridRow.js +7 -7
  38. package/src/Components/Grid/HeaderColumnSelectorHandle.js +1 -1
  39. package/src/Components/Grid/HeaderReorderHandle.js +6 -4
  40. package/src/Components/Grid/HeaderResizeHandle.js +6 -4
  41. package/src/Components/Grid/NoRecordsFound.js +7 -7
  42. package/src/Components/Grid/RowDragHandle.js +6 -4
  43. package/src/Components/Hoc/Secondary/withSecondaryEditor.js +1 -2
  44. package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +3 -1
  45. package/src/Components/Hoc/withAlert.js +14 -24
  46. package/src/Components/Hoc/withBlank.js +2 -0
  47. package/src/Components/Hoc/withContextMenu.js +9 -4
  48. package/src/Components/Hoc/withEditor.js +1 -2
  49. package/src/Components/Hoc/withEvents.js +2 -0
  50. package/src/Components/Hoc/withFilters.js +11 -11
  51. package/src/Components/Hoc/withInlineEditor.js +8 -5
  52. package/src/Components/Hoc/withPdfButton.js +5 -4
  53. package/src/Components/Hoc/withPresetButtons.js +1 -1
  54. package/src/Components/Hoc/withTooltip.js +3 -3
  55. package/src/Components/Hoc/withWindowedEditor.js +3 -1
  56. package/src/Components/Icons/AddressBook.js +10 -6
  57. package/src/Components/Icons/Alt.js +15 -7
  58. package/src/Components/Icons/AngleLeft.js +14 -6
  59. package/src/Components/Icons/AngleRight.js +14 -6
  60. package/src/Components/Icons/AnglesLeft.js +14 -6
  61. package/src/Components/Icons/AnglesRight.js +14 -6
  62. package/src/Components/Icons/Asterisk.js +10 -6
  63. package/src/Components/Icons/Ban.js +14 -8
  64. package/src/Components/Icons/Bars.js +10 -6
  65. package/src/Components/Icons/BarsStaggered.js +10 -6
  66. package/src/Components/Icons/Bell.js +19 -6
  67. package/src/Components/Icons/BigCircle.js +14 -6
  68. package/src/Components/Icons/Book.js +10 -6
  69. package/src/Components/Icons/BookOpen.js +10 -6
  70. package/src/Components/Icons/Bookmark.js +17 -7
  71. package/src/Components/Icons/Bug.js +10 -6
  72. package/src/Components/Icons/Building.js +10 -6
  73. package/src/Components/Icons/Calendar.js +14 -6
  74. package/src/Components/Icons/Calendar2.js +14 -6
  75. package/src/Components/Icons/CalendarDays.js +14 -6
  76. package/src/Components/Icons/Camera.js +14 -6
  77. package/src/Components/Icons/CaretDown.js +14 -6
  78. package/src/Components/Icons/CaretUp.js +14 -6
  79. package/src/Components/Icons/CartPlus.js +10 -6
  80. package/src/Components/Icons/CartShopping.js +10 -6
  81. package/src/Components/Icons/CashRegister.js +10 -6
  82. package/src/Components/Icons/Certificate.js +10 -6
  83. package/src/Components/Icons/ChartLine.js +10 -6
  84. package/src/Components/Icons/ChartPie.js +10 -6
  85. package/src/Components/Icons/Check.js +10 -6
  86. package/src/Components/Icons/CheckDouble.js +10 -6
  87. package/src/Components/Icons/ChevronDown.js +10 -6
  88. package/src/Components/Icons/ChevronLeft.js +10 -6
  89. package/src/Components/Icons/ChevronRight.js +10 -6
  90. package/src/Components/Icons/ChevronUp.js +10 -6
  91. package/src/Components/Icons/Circle.js +10 -6
  92. package/src/Components/Icons/CircleArrowRight.js +10 -6
  93. package/src/Components/Icons/CircleExclamation.js +14 -6
  94. package/src/Components/Icons/CircleInfo.js +10 -6
  95. package/src/Components/Icons/CircleQuestion.js +10 -6
  96. package/src/Components/Icons/CircleXmark.js +10 -6
  97. package/src/Components/Icons/CircleXmarkRegular.js +10 -6
  98. package/src/Components/Icons/Clipboard.js +14 -6
  99. package/src/Components/Icons/ClipboardCheck.js +17 -6
  100. package/src/Components/Icons/ClipboardList.js +16 -6
  101. package/src/Components/Icons/Clock.js +10 -6
  102. package/src/Components/Icons/ClockRegular.js +10 -6
  103. package/src/Components/Icons/ClockRotateLeft.js +10 -6
  104. package/src/Components/Icons/Clone.js +10 -6
  105. package/src/Components/Icons/Collapse.js +14 -6
  106. package/src/Components/Icons/Comment.js +10 -6
  107. package/src/Components/Icons/CommentDots.js +10 -6
  108. package/src/Components/Icons/CommentRegular.js +10 -6
  109. package/src/Components/Icons/Comments.js +10 -6
  110. package/src/Components/Icons/CommentsRegular.js +10 -6
  111. package/src/Components/Icons/Copyright.js +10 -6
  112. package/src/Components/Icons/Dot.js +15 -9
  113. package/src/Components/Icons/Duplicate.js +14 -6
  114. package/src/Components/Icons/Edit.js +14 -6
  115. package/src/Components/Icons/EllipsisHorizontal.js +16 -6
  116. package/src/Components/Icons/EllipsisVertical.js +14 -6
  117. package/src/Components/Icons/Envelope.js +10 -6
  118. package/src/Components/Icons/EnvelopeRegular.js +10 -6
  119. package/src/Components/Icons/Excel.js +10 -6
  120. package/src/Components/Icons/Exclamation.js +10 -6
  121. package/src/Components/Icons/Expand.js +10 -6
  122. package/src/Components/Icons/Eye.js +14 -6
  123. package/src/Components/Icons/EyeSlash.js +10 -6
  124. package/src/Components/Icons/File.js +14 -6
  125. package/src/Components/Icons/FloppyDiskRegular.js +10 -6
  126. package/src/Components/Icons/Folder.js +10 -6
  127. package/src/Components/Icons/FolderClosed.js +10 -6
  128. package/src/Components/Icons/FolderOpen.js +10 -6
  129. package/src/Components/Icons/FolderTree.js +10 -6
  130. package/src/Components/Icons/FullWidth.js +25 -9
  131. package/src/Components/Icons/Gauge.js +17 -6
  132. package/src/Components/Icons/Gear.js +14 -6
  133. package/src/Components/Icons/Gears.js +10 -6
  134. package/src/Components/Icons/Gift.js +10 -6
  135. package/src/Components/Icons/Grip.js +14 -6
  136. package/src/Components/Icons/GripLines.js +14 -6
  137. package/src/Components/Icons/GripLinesVertical.js +14 -6
  138. package/src/Components/Icons/GripVertical.js +14 -6
  139. package/src/Components/Icons/Hammer.js +10 -6
  140. package/src/Components/Icons/Hand.js +10 -6
  141. package/src/Components/Icons/HighPriority.js +17 -6
  142. package/src/Components/Icons/House.js +10 -6
  143. package/src/Components/Icons/Images.js +10 -6
  144. package/src/Components/Icons/Info.js +10 -6
  145. package/src/Components/Icons/ItunesNote.js +10 -6
  146. package/src/Components/Icons/Js.js +16 -6
  147. package/src/Components/Icons/Leaf.js +10 -6
  148. package/src/Components/Icons/Link.js +9 -6
  149. package/src/Components/Icons/List.js +10 -6
  150. package/src/Components/Icons/ListCheck.js +10 -6
  151. package/src/Components/Icons/LocationDot.js +10 -6
  152. package/src/Components/Icons/Loop.js +14 -6
  153. package/src/Components/Icons/Loop1.js +13 -7
  154. package/src/Components/Icons/LoopAll.js +13 -7
  155. package/src/Components/Icons/LowPriority.js +17 -6
  156. package/src/Components/Icons/MagnifyingGlass.js +10 -6
  157. package/src/Components/Icons/Maximize.js +10 -6
  158. package/src/Components/Icons/MedPriority.js +17 -6
  159. package/src/Components/Icons/Microphone.js +10 -6
  160. package/src/Components/Icons/Minimize.js +10 -6
  161. package/src/Components/Icons/Minus.js +14 -6
  162. package/src/Components/Icons/MobileScreenButton.js +10 -6
  163. package/src/Components/Icons/MoneyBill.js +10 -6
  164. package/src/Components/Icons/MoneyBillWave.js +10 -6
  165. package/src/Components/Icons/Mouth.js +21 -9
  166. package/src/Components/Icons/Music.js +10 -6
  167. package/src/Components/Icons/Na.js +14 -6
  168. package/src/Components/Icons/NoLoop.js +13 -10
  169. package/src/Components/Icons/NoReorderRows.js +22 -16
  170. package/src/Components/Icons/ObjectGroupRegular.js +10 -6
  171. package/src/Components/Icons/Pause.js +10 -6
  172. package/src/Components/Icons/Pdf.js +10 -6
  173. package/src/Components/Icons/Pencil.js +14 -6
  174. package/src/Components/Icons/Phone.js +10 -6
  175. package/src/Components/Icons/Play.js +10 -6
  176. package/src/Components/Icons/Plus.js +14 -6
  177. package/src/Components/Icons/Presentation.js +16 -6
  178. package/src/Components/Icons/Print.js +14 -6
  179. package/src/Components/Icons/Question.js +10 -6
  180. package/src/Components/Icons/Rate-.25x.js +17 -11
  181. package/src/Components/Icons/Rate-.5x.js +16 -10
  182. package/src/Components/Icons/Rate-.75x.js +13 -7
  183. package/src/Components/Icons/Rate-1.25x.js +13 -7
  184. package/src/Components/Icons/Rate-1.5x.js +13 -7
  185. package/src/Components/Icons/Rate-1.75x.js +13 -7
  186. package/src/Components/Icons/Rate-1x.js +16 -10
  187. package/src/Components/Icons/Rate-2x.js +13 -7
  188. package/src/Components/Icons/RateIcon-.25x.js +13 -7
  189. package/src/Components/Icons/RateIcon-.5x.js +16 -10
  190. package/src/Components/Icons/RateIcon-.75x.js +13 -7
  191. package/src/Components/Icons/RateIcon-1.25x.js +13 -7
  192. package/src/Components/Icons/RateIcon-1.5x.js +13 -7
  193. package/src/Components/Icons/RateIcon-1.75x.js +13 -7
  194. package/src/Components/Icons/RateIcon-1x.js +13 -7
  195. package/src/Components/Icons/RateIcon-2x.js +13 -7
  196. package/src/Components/Icons/RectangleXmark.js +10 -6
  197. package/src/Components/Icons/RectangleXmarkRegular.js +10 -6
  198. package/src/Components/Icons/ReorderRows.js +13 -7
  199. package/src/Components/Icons/RightFromBracket.js +10 -6
  200. package/src/Components/Icons/RightLeft.js +10 -6
  201. package/src/Components/Icons/RightToBracket.js +10 -6
  202. package/src/Components/Icons/Rotate.js +14 -6
  203. package/src/Components/Icons/RotateLeft.js +10 -6
  204. package/src/Components/Icons/RotateRight.js +14 -6
  205. package/src/Components/Icons/ScrewdriverWrench.js +10 -6
  206. package/src/Components/Icons/Scroll.js +10 -6
  207. package/src/Components/Icons/Share.js +10 -6
  208. package/src/Components/Icons/Shop.js +10 -6
  209. package/src/Components/Icons/SideBySide.js +20 -6
  210. package/src/Components/Icons/SortDown.js +10 -6
  211. package/src/Components/Icons/SortDownAlt.js +10 -6
  212. package/src/Components/Icons/SortUp.js +10 -6
  213. package/src/Components/Icons/SortUpAlt.js +14 -6
  214. package/src/Components/Icons/Square.js +10 -6
  215. package/src/Components/Icons/SquareCheck.js +10 -6
  216. package/src/Components/Icons/SquareCheckRegular.js +10 -6
  217. package/src/Components/Icons/SquareMinus.js +14 -6
  218. package/src/Components/Icons/SquareRegular.js +10 -6
  219. package/src/Components/Icons/Store.js +10 -6
  220. package/src/Components/Icons/Table.js +16 -6
  221. package/src/Components/Icons/ThumbsDown.js +10 -6
  222. package/src/Components/Icons/ThumbsDownRegular.js +10 -6
  223. package/src/Components/Icons/ThumbsUp.js +10 -6
  224. package/src/Components/Icons/ThumbsUpRegular.js +10 -6
  225. package/src/Components/Icons/Trash.js +14 -6
  226. package/src/Components/Icons/TrashCan.js +14 -6
  227. package/src/Components/Icons/TriangleExclamation.js +14 -6
  228. package/src/Components/Icons/Truck.js +10 -6
  229. package/src/Components/Icons/TruckFast.js +10 -6
  230. package/src/Components/Icons/UploadDownload.js +9 -7
  231. package/src/Components/Icons/User.js +10 -6
  232. package/src/Components/Icons/UserGroup.js +10 -6
  233. package/src/Components/Icons/UserPlus.js +10 -6
  234. package/src/Components/Icons/UserSecret.js +10 -6
  235. package/src/Components/Icons/Video.js +16 -6
  236. package/src/Components/Icons/X.js +10 -6
  237. package/src/Components/Icons/Xmark.js +10 -6
  238. package/src/Components/Layout/CenterBox.js +1 -1
  239. package/src/Components/Layout/Footer.js +4 -4
  240. package/src/Components/Messages/ConfirmationMessage.js +3 -8
  241. package/src/Components/Messages/ErrorMessage.js +2 -5
  242. package/src/Components/Messages/Loading.js +6 -6
  243. package/src/Components/Messages/OkMessage.js +3 -4
  244. package/src/Components/Messages/WaitMessage.js +1 -1
  245. package/src/Components/Panel/AccordionGridPanel.js +1 -1
  246. package/src/Components/Panel/FormPanel.js +1 -1
  247. package/src/Components/Panel/Header.js +13 -13
  248. package/src/Components/Panel/Mask.js +1 -1
  249. package/src/Components/Panel/Panel.js +12 -10
  250. package/src/Components/Picker/Picker.js +5 -5
  251. package/src/Components/Report/Report.js +10 -10
  252. package/src/Components/Screens/Manager.js +7 -7
  253. package/src/Components/Tab/TabBar.js +23 -23
  254. package/src/Components/Toolbar/FilterToolbar.js +3 -3
  255. package/src/Components/Toolbar/Pagination.js +8 -12
  256. package/src/Components/Toolbar/PaginationToolbar.js +3 -3
  257. package/src/Components/Toolbar/Toolbar.js +4 -4
  258. package/src/Components/Tree/Tree.js +13 -10
  259. package/src/Components/Tree/TreeNode.js +4 -4
  260. package/src/Components/Viewer/Viewer.js +23 -29
  261. package/src/Components/WaitModal.js +4 -4
  262. package/src/Components/Window/Editor.js +1 -1
  263. package/src/Components/Window/UploadsDownloadsWindow.js +1 -1
  264. package/src/Components/index.js +5 -5
  265. package/src/Functions/buildAdditionalButtons.js +3 -7
  266. package/src/PlatformImports/Web/Attachments.js +8 -11
  267. package/src/PlatformImports/Web/File.js +5 -4
@@ -1,14 +1,14 @@
1
1
  import {
2
- HStack,
2
+ Row,
3
3
  Text,
4
- } from '@gluestack-ui/themed';
4
+ } from 'native-base';
5
5
  import styles from '../../Constants/Styles.js';
6
6
 
7
7
  export default function Label(props) {
8
8
  const {
9
9
  w = styles.FORM_LABEL_WIDTH,
10
10
  } = props;
11
- return <HStack
11
+ return <Row
12
12
  w={w}
13
13
  minWidth="120px"
14
14
  // maxWidth="50%"
@@ -21,5 +21,5 @@ export default function Label(props) {
21
21
  numberOfLines={1}
22
22
  ellipsizeMode="head"
23
23
  >{props.children}</Text>
24
- </HStack>;
24
+ </Row>;
25
25
  }
@@ -1,13 +1,15 @@
1
1
  import React, { useState, useEffect, useRef, useMemo, useCallback, } from 'react';
2
2
  import {
3
3
  Box,
4
+ Column,
4
5
  FlatList,
5
6
  Modal,
6
7
  Pressable,
7
8
  Icon,
9
+ Row,
8
10
  ScrollView,
9
- VStack,
10
- } from '@gluestack-ui/themed';
11
+ Text,
12
+ } from 'native-base';
11
13
  import {
12
14
  SELECTION_MODE_SINGLE,
13
15
  SELECTION_MODE_MULTI,
@@ -516,7 +518,7 @@ function GridComponent(props) {
516
518
 
517
519
  if (showRowExpander && !isHeaderRow) {
518
520
  const isExpanded = getIsExpanded(index);
519
- rowComponent = <VStack>
521
+ rowComponent = <Column>
520
522
  <Row>
521
523
  <ExpandButton
522
524
  isExpanded={isExpanded}
@@ -530,7 +532,7 @@ function GridComponent(props) {
530
532
  {rowComponent}
531
533
  </Row>
532
534
  {isExpanded ? getExpandedRowContent(row) : null}
533
- </VStack>
535
+ </Column>
534
536
  }
535
537
  return rowComponent;
536
538
  },
@@ -920,7 +922,7 @@ function GridComponent(props) {
920
922
 
921
923
  if (!isInited) {
922
924
  // first time through, render a placeholder so we can get container dimensions
923
- return <VStack
925
+ return <Column
924
926
  flex={1}
925
927
  w="100%"
926
928
  onLayout={(e) => {
@@ -1057,7 +1059,7 @@ function GridComponent(props) {
1057
1059
  </Modal>;
1058
1060
  }
1059
1061
 
1060
- grid = <VStack
1062
+ grid = <Column
1061
1063
  {...testProps('Grid')}
1062
1064
  testID="outerContainer"
1063
1065
  ref={containerRef}
@@ -1072,7 +1074,7 @@ function GridComponent(props) {
1072
1074
  >
1073
1075
  {topToolbar}
1074
1076
 
1075
- <VStack
1077
+ <Column
1076
1078
  testID="gridContainer"
1077
1079
  ref={gridContainerRef}
1078
1080
  w="100%"
@@ -1086,13 +1088,13 @@ function GridComponent(props) {
1086
1088
  }}
1087
1089
  >
1088
1090
  {grid}
1089
- </VStack>
1091
+ </Column>
1090
1092
 
1091
1093
  {listFooterComponent}
1092
1094
 
1093
1095
  {columnSelector}
1094
1096
 
1095
- </VStack>
1097
+ </Column>
1096
1098
 
1097
1099
  if (isDropTarget) {
1098
1100
  grid = <Box
@@ -3,9 +3,9 @@ import {
3
3
  Box,
4
4
  Icon,
5
5
  Pressable,
6
- HStack,
6
+ Row,
7
7
  Text,
8
- } from '@gluestack-ui/themed';
8
+ } from 'native-base';
9
9
  import {
10
10
  SORT_ASCENDING,
11
11
  SORT_DESCENDING,
@@ -475,7 +475,7 @@ export default function GridHeaderRow(props) {
475
475
  return headerColumns;
476
476
  };
477
477
 
478
- return <HStack
478
+ return <Row
479
479
  w="100%"
480
480
  bg="trueGray.200"
481
481
  style={{
@@ -483,7 +483,7 @@ export default function GridHeaderRow(props) {
483
483
  }}
484
484
  >
485
485
  {renderHeaders()}
486
- </HStack>;
486
+ </Row>;
487
487
 
488
488
  }, [
489
489
  Repository,
@@ -1,9 +1,9 @@
1
1
  import { useEffect, useMemo, useRef, } from 'react';
2
2
  import {
3
3
  Box,
4
- HStack,
4
+ Row,
5
5
  Text,
6
- } from '@gluestack-ui/themed';
6
+ } from 'native-base';
7
7
  import {
8
8
  UI_MODE_WEB,
9
9
  } from '../../Constants/UiModes.js';
@@ -102,7 +102,7 @@ function GridRow(props) {
102
102
  userSelect: 'none',
103
103
  };
104
104
 
105
- return <HStack key={key} {...propsToPass} {...extraProps}>{config.renderer(item)}</HStack>;
105
+ return <Row key={key} {...propsToPass} {...extraProps}>{config.renderer(item)}</Row>;
106
106
  }
107
107
  if (config.fieldName) {
108
108
  if (item?.properties && item.properties[config.fieldName]) {
@@ -204,19 +204,19 @@ function GridRow(props) {
204
204
  </>;
205
205
 
206
206
  if (dragSourceRef) {
207
- rowContents = <HStack flexGrow={1} flex={1} w="100%" bg={bg} ref={dragSourceRef}>{rowContents}</HStack>;
207
+ rowContents = <Row flexGrow={1} flex={1} w="100%" bg={bg} ref={dragSourceRef}>{rowContents}</Row>;
208
208
  }
209
209
  if (dropTargetRef) {
210
- rowContents = <HStack flexGrow={1} flex={1} w="100%" bg={bg} ref={dropTargetRef}>{rowContents}</HStack>;
210
+ rowContents = <Row flexGrow={1} flex={1} w="100%" bg={bg} ref={dropTargetRef}>{rowContents}</Row>;
211
211
  }
212
212
 
213
- return <HStack
213
+ return <Row
214
214
  alignItems="center"
215
215
  flexGrow={1}
216
216
  {...rowProps}
217
217
  bg={bg}
218
218
  key={hash}
219
- >{rowContents}</HStack>;
219
+ >{rowContents}</Row>;
220
220
  }, [
221
221
  columnsConfig,
222
222
  columnProps,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Icon,
3
3
  Pressable,
4
- } from '@gluestack-ui/themed';
4
+ } from 'native-base';
5
5
  import Gear from '../Icons/Gear.js';
6
6
  import _ from 'lodash';
7
7
 
@@ -1,7 +1,9 @@
1
1
  import {
2
- VStack,
2
+ Column,
3
3
  Icon,
4
- } from '@gluestack-ui/themed';
4
+ Row,
5
+ Text,
6
+ } from 'native-base';
5
7
  import styles from '../../Styles/StyleSheets.js';
6
8
  import withDraggable from '../Hoc/withDraggable.js';
7
9
  import GripVertical from '../Icons/GripVertical.js';
@@ -11,7 +13,7 @@ function HeaderReorderHandle(props) {
11
13
  isDragging,
12
14
  } = props;
13
15
 
14
- return <VStack
16
+ return <Column
15
17
  testID="HeaderReorderHandle"
16
18
  bg={isDragging ? 'trueGray.300' : 'trueGray.100'}
17
19
  h="100%"
@@ -21,7 +23,7 @@ function HeaderReorderHandle(props) {
21
23
  style={styles.ewResize}
22
24
  >
23
25
  <Icon as={GripVertical} testID="handle" size="xs" w="100%" h="100%" color="#ccc" />
24
- </VStack>;
26
+ </Column>;
25
27
  }
26
28
 
27
29
  function withAdditionalProps(WrappedComponent) {
@@ -1,7 +1,9 @@
1
1
  import {
2
- VStack,
2
+ Column,
3
3
  Icon,
4
- } from '@gluestack-ui/themed';
4
+ Row,
5
+ Text,
6
+ } from 'native-base';
5
7
  import styles from '../../Styles/StyleSheets.js';
6
8
  import withDraggable from '../Hoc/withDraggable.js';
7
9
  import GripLinesVertical from '../Icons/GripLinesVertical.js';
@@ -11,7 +13,7 @@ function HeaderResizeHandle(props) {
11
13
  isDragging,
12
14
  } = props;
13
15
 
14
- return <VStack
16
+ return <Column
15
17
  testID="HeaderResizeHandle"
16
18
  bg={isDragging ? 'trueGray.300' : 'trueGray.100'}
17
19
  h="100%"
@@ -21,7 +23,7 @@ function HeaderResizeHandle(props) {
21
23
  style={styles.ewResize}
22
24
  >
23
25
  <Icon as={GripLinesVertical} testID="handle" size="sm" color="#ccc" />
24
- </VStack>;
26
+ </Column>;
25
27
  }
26
28
 
27
29
  function withAdditionalProps(WrappedComponent) {
@@ -1,8 +1,8 @@
1
1
  import {
2
- VStack,
3
- HStack,
2
+ Column,
3
+ Row,
4
4
  Text,
5
- } from '@gluestack-ui/themed';
5
+ } from 'native-base';
6
6
  import IconButton from '../Buttons/IconButton.js';
7
7
  import Rotate from '../Icons/Rotate.js';
8
8
 
@@ -18,7 +18,7 @@ export default function NoRecordsFound(props) {
18
18
 
19
19
  let component = textComponent;
20
20
  if (onRefresh) {
21
- component = <HStack justifyContent="center" alignItems="center" w="100%" flex={1}>
21
+ component = <Row justifyContent="center" alignItems="center" w="100%" flex={1}>
22
22
  <IconButton
23
23
  _icon={{
24
24
  as: Rotate,
@@ -35,11 +35,11 @@ export default function NoRecordsFound(props) {
35
35
  ml={-4}
36
36
  />
37
37
  {textComponent}
38
- </HStack>;
38
+ </Row>;
39
39
  } else {
40
- component = <VStack justifyContent="center" alignItems="center" w="100%" flex={1}>
40
+ component = <Column justifyContent="center" alignItems="center" w="100%" flex={1}>
41
41
  {textComponent}
42
- </VStack>;
42
+ </Column>;
43
43
  }
44
44
  return component;
45
45
  }
@@ -1,12 +1,14 @@
1
1
  import {
2
- VStack,
2
+ Column,
3
3
  Icon,
4
- } from '@gluestack-ui/themed';
4
+ Row,
5
+ Text,
6
+ } from 'native-base';
5
7
  import styles from '../../Styles/StyleSheets.js';
6
8
  import GripVertical from '../Icons/GripVertical.js';
7
9
 
8
10
  function RowDragHandle(props) {
9
- return <VStack
11
+ return <Column
10
12
  testID="HeaderReorderHandle"
11
13
  bg="trueGray.100"
12
14
  // h="100%"
@@ -16,7 +18,7 @@ function RowDragHandle(props) {
16
18
  style={styles.ewResize}
17
19
  >
18
20
  <Icon as={GripVertical} testID="handle" size="xs" w="100%" h="100%" color="#ccc" />
19
- </VStack>;
21
+ </Column>;
20
22
  }
21
23
 
22
24
  export default RowDragHandle;
@@ -1,8 +1,7 @@
1
1
  import { useEffect, useState, useRef, } from 'react';
2
2
  import {
3
3
  Button,
4
- ButtonText,
5
- } from '@gluestack-ui/themed';
4
+ } from 'native-base';
6
5
  import {
7
6
  EDITOR_MODE__VIEW,
8
7
  EDITOR_MODE__ADD,
@@ -1,6 +1,8 @@
1
1
  import {
2
+ Column,
2
3
  Modal,
3
- } from '@gluestack-ui/themed';
4
+ Text,
5
+ } from 'native-base';
4
6
  import {
5
7
  EDITOR_TYPE__WINDOWED,
6
8
  } from '../../../Constants/Editor.js';
@@ -1,13 +1,13 @@
1
- import React, { useState, useRef, } from 'react';
1
+ import React, { useState, useRef, useEffect, } from 'react';
2
2
  import {
3
3
  AlertDialog,
4
4
  Button,
5
- ButtonText,
6
- VStack,
5
+ Column,
7
6
  Icon,
8
- HStack,
7
+ Modal,
8
+ Row,
9
9
  Text,
10
- } from '@gluestack-ui/themed';
10
+ } from 'native-base';
11
11
  import {
12
12
  ALERT_MODE_OK,
13
13
  ALERT_MODE_YES,
@@ -129,9 +129,7 @@ export default function withAlert(WrappedComponent) {
129
129
  colorScheme="coolGray"
130
130
  variant="ghost" // or unstyled
131
131
  ref={cancelRef}
132
- >
133
- <ButtonText>Cancel</ButtonText>
134
- </Button>);
132
+ >Cancel</Button>);
135
133
  }
136
134
  switch(mode) {
137
135
  case ALERT_MODE_OK:
@@ -141,9 +139,7 @@ export default function withAlert(WrappedComponent) {
141
139
  ref={autoFocusRef}
142
140
  onPress={onOk}
143
141
  color="#fff"
144
- >
145
- <ButtonText>OK</ButtonText>
146
- </Button>);
142
+ >OK</Button>);
147
143
  break;
148
144
  case ALERT_MODE_YES:
149
145
  buttons.push(<Button
@@ -152,9 +148,7 @@ export default function withAlert(WrappedComponent) {
152
148
  onPress={onYes}
153
149
  color="#fff"
154
150
  colorScheme="danger"
155
- >
156
- <ButtonText>Yes</ButtonText>
157
- </Button>);
151
+ >Yes</Button>);
158
152
  break;
159
153
  case ALERT_MODE_YES_NO:
160
154
  // TODO: need to create a new colorScheme so this can be black with blank background
@@ -165,18 +159,14 @@ export default function withAlert(WrappedComponent) {
165
159
  variant="ghost"
166
160
  // colorScheme="neutral"
167
161
  mr={2}
168
- >
169
- <ButtonText>No</ButtonText>
170
- </Button>);
162
+ >No</Button>);
171
163
  buttons.push(<Button
172
164
  key="yesBtn"
173
165
  ref={autoFocusRef}
174
166
  onPress={onYes}
175
167
  color="#fff"
176
168
  colorScheme="danger"
177
- >
178
- <ButtonText>Yes</ButtonText>
179
- </Button>);
169
+ >Yes</Button>);
180
170
  break;
181
171
  case ALERT_MODE_CUSTOM:
182
172
  _.each(customButtons, (button) => {
@@ -204,12 +194,12 @@ export default function withAlert(WrappedComponent) {
204
194
  {canClose && <AlertDialog.CloseButton />}
205
195
  <AlertDialog.Header>{title}</AlertDialog.Header>
206
196
  <AlertDialog.Body>
207
- <HStack alignItems="center">
208
- <VStack w="40px" p={0} mr={5}>
197
+ <Row alignItems="center">
198
+ <Column w="40px" p={0} mr={5}>
209
199
  <Icon as={mode === ALERT_MODE_INFO ? CircleInfo : TriangleExclamation} size={10} color={mode === ALERT_MODE_INFO ? '#000' : '#f00'} />
210
- </VStack>
200
+ </Column>
211
201
  <Text flex={1}>{message}</Text>
212
- </HStack>
202
+ </Row>
213
203
  </AlertDialog.Body>
214
204
  <AlertDialog.Footer>
215
205
  {buttons}
@@ -1,3 +1,5 @@
1
+ import {
2
+ } from 'native-base';
1
3
  import _ from 'lodash';
2
4
 
3
5
  export default function withBlank(WrappedComponent) {
@@ -1,10 +1,15 @@
1
1
  import React, { useState, useEffect, } from 'react';
2
2
  import {
3
- VStack,
3
+ Box,
4
+ Column,
5
+ FlatList,
6
+ Icon,
4
7
  Modal,
5
8
  Pressable,
9
+ Row,
10
+ Spacer,
6
11
  Text,
7
- } from '@gluestack-ui/themed';
12
+ } from 'native-base';
8
13
  import {
9
14
  UI_MODE_WEB,
10
15
  CURRENT_MODE,
@@ -161,9 +166,9 @@ export default function withContextMenu(WrappedComponent) {
161
166
  isOpen={isContextMenuShown && !disableContextMenu}
162
167
  onClose={() => setIsContextMenuShown(false)}
163
168
  >
164
- <VStack bg="#fff" w={CONTEXT_MENU_WIDTH} position="absolute" top={contextMenuY} left={contextMenuX} onLayout={onLayout}>
169
+ <Column bg="#fff" w={CONTEXT_MENU_WIDTH} position="absolute" top={contextMenuY} left={contextMenuX} onLayout={onLayout}>
165
170
  {contextMenuItemComponents}
166
- </VStack>
171
+ </Column>
167
172
  </Modal>
168
173
  </>;
169
174
  };
@@ -1,8 +1,7 @@
1
1
  import { useEffect, useState, useRef, } from 'react';
2
2
  import {
3
3
  Button,
4
- ButtonText,
5
- } from '@gluestack-ui/themed';
4
+ } from 'native-base';
6
5
  import {
7
6
  EDITOR_MODE__VIEW,
8
7
  EDITOR_MODE__ADD,
@@ -1,3 +1,5 @@
1
+ import {
2
+ } from 'native-base';
1
3
  import _ from 'lodash';
2
4
 
3
5
  export default function withEvents(WrappedComponent) {
@@ -1,11 +1,11 @@
1
1
  import { useState, useEffect, useRef, } from 'react';
2
2
  import {
3
- VStack,
3
+ Column,
4
4
  Modal,
5
- HStack,
5
+ Row,
6
6
  ScrollView,
7
7
  Text,
8
- } from '@gluestack-ui/themed';
8
+ } from 'native-base';
9
9
  import {
10
10
  EDITOR_TYPE__PLAIN,
11
11
  } from '../../Constants/Editor.js';
@@ -318,10 +318,10 @@ export default function withFilters(WrappedComponent) {
318
318
  {...elementProps}
319
319
  />;
320
320
  if (showLabels && field !== 'q') {
321
- filterElement = <HStack key={'label-' + ix} alignItems="center" h="100%">
321
+ filterElement = <Row key={'label-' + ix} alignItems="center" h="100%">
322
322
  <Text ml={2} mr={1} fontSize={UiGlobals.styles.FILTER_LABEL_FONTSIZE}>{title}</Text>
323
323
  {filterElement}
324
- </HStack>;
324
+ </Row>;
325
325
  }
326
326
  filterElements.push(filterElement);
327
327
  });
@@ -427,13 +427,13 @@ export default function withFilters(WrappedComponent) {
427
427
  renderedFilters = renderFilters(),
428
428
  hasFilters = !!renderedFilters.length;
429
429
  topToolbar = <Toolbar>
430
- <HStack flex={1} alignItems="center">
430
+ <Row flex={1} alignItems="center">
431
431
  <ScrollView horizontal={true} contentContainerStyle={{ alignItems: 'center' }}>
432
432
  <Text fontStyle="italic" pr={2} userSelect="none">Filters:{hasFilters ? '' : ' None'}</Text>
433
433
  {renderedFilters}
434
434
  </ScrollView>
435
- </HStack>
436
- <HStack flex={hasFilters ? null : 1} alignItems="center" alignSelf="flex-end">
435
+ </Row>
436
+ <Row flex={hasFilters ? null : 1} alignItems="center" alignSelf="flex-end">
437
437
  {showClearFiltersButton && <IconButton
438
438
  key="clearFiltersBtn"
439
439
  _icon={{
@@ -458,7 +458,7 @@ export default function withFilters(WrappedComponent) {
458
458
  }}
459
459
  tooltip="Swap filters"
460
460
  />}
461
- </HStack>
461
+ </Row>
462
462
  </Toolbar>;
463
463
 
464
464
  if (isFilterSelectorShown) { // this is always false when isUsingCustomFilters
@@ -541,7 +541,7 @@ export default function withFilters(WrappedComponent) {
541
541
  isOpen={true}
542
542
  onClose={() => setIsFilterSelectorShown(false)}
543
543
  >
544
- <VStack bg="#fff" w={500}>
544
+ <Column bg="#fff" w={500}>
545
545
  <FormPanel
546
546
  title="Filter Selector"
547
547
  instructions="Please select which fields to filter by."
@@ -590,7 +590,7 @@ export default function withFilters(WrappedComponent) {
590
590
  setModalSlots(slots);
591
591
  }}
592
592
  />
593
- </VStack>
593
+ </Column>
594
594
  </Modal>;
595
595
  }
596
596
 
@@ -1,8 +1,11 @@
1
- import React, { useState, useRef, } from 'react';
1
+ import React, { useState, useEffect, useRef, } from 'react';
2
2
  import {
3
3
  Box,
4
- VStack,
5
- } from '@gluestack-ui/themed';
4
+ Column,
5
+ Modal,
6
+ Row,
7
+ Text,
8
+ } from 'native-base';
6
9
  import {
7
10
  EDITOR_TYPE__INLINE,
8
11
  } from '../../Constants/Editor.js';
@@ -133,7 +136,7 @@ export default function withInlineEditor(WrappedComponent, skipWrappers = false)
133
136
  }
134
137
  }}
135
138
  ></Box>}
136
- <VStack
139
+ <Column
137
140
  ref={inlineEditorRef}
138
141
  position="absolute"
139
142
  zIndex={10}
@@ -165,7 +168,7 @@ export default function withInlineEditor(WrappedComponent, skipWrappers = false)
165
168
  py={1}
166
169
  px={0}
167
170
  />}
168
- </VStack>
171
+ </Column>
169
172
  </>;
170
173
  }
171
174
 
@@ -1,8 +1,9 @@
1
1
  import { useState, } from 'react';
2
2
  import {
3
- VStack,
3
+ Column,
4
+ Button,
4
5
  Modal,
5
- } from '@gluestack-ui/themed';
6
+ } from 'native-base';
6
7
  import * as yup from 'yup'; // https://github.com/jquense/yup#string
7
8
  import Inflector from 'inflector-js';
8
9
  import qs from 'qs';
@@ -179,7 +180,7 @@ export default function withPdfButton(WrappedComponent) {
179
180
  isOpen={true}
180
181
  onClose={() => setIsModalShown(false)}
181
182
  >
182
- <VStack bg="#fff" w={width} h={height}>
183
+ <Column bg="#fff" w={width} h={height}>
183
184
  <FormPanel
184
185
  title="PDF Fields to Show"
185
186
  instructions="Please select which fields to show in the PDF."
@@ -200,7 +201,7 @@ export default function withPdfButton(WrappedComponent) {
200
201
  submitBtnLabel="View PDF"
201
202
  useAdditionalEditButtons={false}
202
203
  />
203
- </VStack>
204
+ </Column>
204
205
  </Modal>;
205
206
  }
206
207
  return <>
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect, } from 'react';
2
2
  import {
3
3
  Modal,
4
- } from '@gluestack-ui/themed';
4
+ } from 'native-base';
5
5
  import Clipboard from '../Icons/Clipboard.js';
6
6
  import Duplicate from '../Icons/Duplicate.js';
7
7
  import Edit from '../Icons/Edit.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Tooltip,
4
- } from '@gluestack-ui/themed';
4
+ } from 'native-base';
5
5
 
6
6
  // NOTE: Can't seem to get this working for some elements like Combo or File
7
7
 
@@ -11,9 +11,9 @@ export default function withTooltip(WrappedComponent) {
11
11
  tooltip,
12
12
  tooltipPlacement = 'bottom',
13
13
  } = props;
14
- // if (!tooltip) {
14
+ if (!tooltip) {
15
15
  return <WrappedComponent {...props} />;
16
- // }
16
+ }
17
17
  return <Tooltip label={tooltip} placement={tooltipPlacement}>
18
18
  <WrappedComponent {...props} />
19
19
  </Tooltip>;
@@ -1,6 +1,8 @@
1
1
  import {
2
+ Column,
2
3
  Modal,
3
- } from '@gluestack-ui/themed';
4
+ Text,
5
+ } from 'native-base';
4
6
  import {
5
7
  EDITOR_TYPE__WINDOWED,
6
8
  } from '../../Constants/Editor.js';