@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.
Files changed (267) hide show
  1. package/package.json +4 -3
  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 +5 -2
  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 +9 -10
  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 +1 -3
  17. package/src/Components/Form/Field/Color.js +91 -85
  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 +10 -11
  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 +1 -3
  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 +6 -7
  32. package/src/Components/Form/FiltersForm.js +0 -9
  33. package/src/Components/Form/Form.js +62 -45
  34. package/src/Components/Form/Label.js +4 -4
  35. package/src/Components/Grid/Grid.js +9 -11
  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 +4 -6
  40. package/src/Components/Grid/HeaderResizeHandle.js +4 -6
  41. package/src/Components/Grid/NoRecordsFound.js +7 -7
  42. package/src/Components/Grid/RowDragHandle.js +4 -6
  43. package/src/Components/Hoc/Secondary/withSecondaryEditor.js +2 -1
  44. package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +1 -3
  45. package/src/Components/Hoc/withAlert.js +24 -14
  46. package/src/Components/Hoc/withBlank.js +0 -2
  47. package/src/Components/Hoc/withContextMenu.js +4 -9
  48. package/src/Components/Hoc/withEditor.js +2 -1
  49. package/src/Components/Hoc/withEvents.js +0 -2
  50. package/src/Components/Hoc/withFilters.js +11 -11
  51. package/src/Components/Hoc/withInlineEditor.js +5 -8
  52. package/src/Components/Hoc/withPdfButton.js +4 -5
  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 +1 -3
  56. package/src/Components/Icons/AddressBook.js +6 -10
  57. package/src/Components/Icons/Alt.js +7 -15
  58. package/src/Components/Icons/AngleLeft.js +6 -14
  59. package/src/Components/Icons/AngleRight.js +6 -14
  60. package/src/Components/Icons/AnglesLeft.js +6 -14
  61. package/src/Components/Icons/AnglesRight.js +6 -14
  62. package/src/Components/Icons/Asterisk.js +6 -10
  63. package/src/Components/Icons/Ban.js +8 -14
  64. package/src/Components/Icons/Bars.js +6 -10
  65. package/src/Components/Icons/BarsStaggered.js +6 -10
  66. package/src/Components/Icons/Bell.js +6 -19
  67. package/src/Components/Icons/BigCircle.js +6 -14
  68. package/src/Components/Icons/Book.js +6 -10
  69. package/src/Components/Icons/BookOpen.js +6 -10
  70. package/src/Components/Icons/Bookmark.js +7 -17
  71. package/src/Components/Icons/Bug.js +6 -10
  72. package/src/Components/Icons/Building.js +6 -10
  73. package/src/Components/Icons/Calendar.js +6 -14
  74. package/src/Components/Icons/Calendar2.js +6 -14
  75. package/src/Components/Icons/CalendarDays.js +6 -14
  76. package/src/Components/Icons/Camera.js +6 -14
  77. package/src/Components/Icons/CaretDown.js +6 -14
  78. package/src/Components/Icons/CaretUp.js +6 -14
  79. package/src/Components/Icons/CartPlus.js +6 -10
  80. package/src/Components/Icons/CartShopping.js +6 -10
  81. package/src/Components/Icons/CashRegister.js +6 -10
  82. package/src/Components/Icons/Certificate.js +6 -10
  83. package/src/Components/Icons/ChartLine.js +6 -10
  84. package/src/Components/Icons/ChartPie.js +6 -10
  85. package/src/Components/Icons/Check.js +6 -10
  86. package/src/Components/Icons/CheckDouble.js +6 -10
  87. package/src/Components/Icons/ChevronDown.js +6 -10
  88. package/src/Components/Icons/ChevronLeft.js +6 -10
  89. package/src/Components/Icons/ChevronRight.js +6 -10
  90. package/src/Components/Icons/ChevronUp.js +6 -10
  91. package/src/Components/Icons/Circle.js +6 -10
  92. package/src/Components/Icons/CircleArrowRight.js +6 -10
  93. package/src/Components/Icons/CircleExclamation.js +6 -14
  94. package/src/Components/Icons/CircleInfo.js +6 -10
  95. package/src/Components/Icons/CircleQuestion.js +6 -10
  96. package/src/Components/Icons/CircleXmark.js +6 -10
  97. package/src/Components/Icons/CircleXmarkRegular.js +6 -10
  98. package/src/Components/Icons/Clipboard.js +6 -14
  99. package/src/Components/Icons/ClipboardCheck.js +6 -17
  100. package/src/Components/Icons/ClipboardList.js +6 -16
  101. package/src/Components/Icons/Clock.js +6 -10
  102. package/src/Components/Icons/ClockRegular.js +6 -10
  103. package/src/Components/Icons/ClockRotateLeft.js +6 -10
  104. package/src/Components/Icons/Clone.js +6 -10
  105. package/src/Components/Icons/Collapse.js +6 -14
  106. package/src/Components/Icons/Comment.js +6 -10
  107. package/src/Components/Icons/CommentDots.js +6 -10
  108. package/src/Components/Icons/CommentRegular.js +6 -10
  109. package/src/Components/Icons/Comments.js +6 -10
  110. package/src/Components/Icons/CommentsRegular.js +6 -10
  111. package/src/Components/Icons/Copyright.js +6 -10
  112. package/src/Components/Icons/Dot.js +9 -15
  113. package/src/Components/Icons/Duplicate.js +6 -14
  114. package/src/Components/Icons/Edit.js +6 -14
  115. package/src/Components/Icons/EllipsisHorizontal.js +6 -16
  116. package/src/Components/Icons/EllipsisVertical.js +6 -14
  117. package/src/Components/Icons/Envelope.js +6 -10
  118. package/src/Components/Icons/EnvelopeRegular.js +6 -10
  119. package/src/Components/Icons/Excel.js +6 -10
  120. package/src/Components/Icons/Exclamation.js +6 -10
  121. package/src/Components/Icons/Expand.js +6 -10
  122. package/src/Components/Icons/Eye.js +6 -14
  123. package/src/Components/Icons/EyeSlash.js +6 -10
  124. package/src/Components/Icons/File.js +6 -14
  125. package/src/Components/Icons/FloppyDiskRegular.js +6 -10
  126. package/src/Components/Icons/Folder.js +6 -10
  127. package/src/Components/Icons/FolderClosed.js +6 -10
  128. package/src/Components/Icons/FolderOpen.js +6 -10
  129. package/src/Components/Icons/FolderTree.js +6 -10
  130. package/src/Components/Icons/FullWidth.js +9 -25
  131. package/src/Components/Icons/Gauge.js +6 -17
  132. package/src/Components/Icons/Gear.js +6 -14
  133. package/src/Components/Icons/Gears.js +6 -10
  134. package/src/Components/Icons/Gift.js +6 -10
  135. package/src/Components/Icons/Grip.js +6 -14
  136. package/src/Components/Icons/GripLines.js +6 -14
  137. package/src/Components/Icons/GripLinesVertical.js +6 -14
  138. package/src/Components/Icons/GripVertical.js +6 -14
  139. package/src/Components/Icons/Hammer.js +6 -10
  140. package/src/Components/Icons/Hand.js +6 -10
  141. package/src/Components/Icons/HighPriority.js +6 -17
  142. package/src/Components/Icons/House.js +6 -10
  143. package/src/Components/Icons/Images.js +6 -10
  144. package/src/Components/Icons/Info.js +6 -10
  145. package/src/Components/Icons/ItunesNote.js +6 -10
  146. package/src/Components/Icons/Js.js +6 -16
  147. package/src/Components/Icons/Leaf.js +6 -10
  148. package/src/Components/Icons/Link.js +6 -9
  149. package/src/Components/Icons/List.js +6 -10
  150. package/src/Components/Icons/ListCheck.js +6 -10
  151. package/src/Components/Icons/LocationDot.js +6 -10
  152. package/src/Components/Icons/Loop.js +6 -14
  153. package/src/Components/Icons/Loop1.js +7 -13
  154. package/src/Components/Icons/LoopAll.js +7 -13
  155. package/src/Components/Icons/LowPriority.js +6 -17
  156. package/src/Components/Icons/MagnifyingGlass.js +6 -10
  157. package/src/Components/Icons/Maximize.js +6 -10
  158. package/src/Components/Icons/MedPriority.js +6 -17
  159. package/src/Components/Icons/Microphone.js +6 -10
  160. package/src/Components/Icons/Minimize.js +6 -10
  161. package/src/Components/Icons/Minus.js +6 -14
  162. package/src/Components/Icons/MobileScreenButton.js +6 -10
  163. package/src/Components/Icons/MoneyBill.js +6 -10
  164. package/src/Components/Icons/MoneyBillWave.js +6 -10
  165. package/src/Components/Icons/Mouth.js +9 -21
  166. package/src/Components/Icons/Music.js +6 -10
  167. package/src/Components/Icons/Na.js +6 -14
  168. package/src/Components/Icons/NoLoop.js +10 -13
  169. package/src/Components/Icons/NoReorderRows.js +16 -22
  170. package/src/Components/Icons/ObjectGroupRegular.js +6 -10
  171. package/src/Components/Icons/Pause.js +6 -10
  172. package/src/Components/Icons/Pdf.js +6 -10
  173. package/src/Components/Icons/Pencil.js +6 -14
  174. package/src/Components/Icons/Phone.js +6 -10
  175. package/src/Components/Icons/Play.js +6 -10
  176. package/src/Components/Icons/Plus.js +6 -14
  177. package/src/Components/Icons/Presentation.js +6 -16
  178. package/src/Components/Icons/Print.js +6 -14
  179. package/src/Components/Icons/Question.js +6 -10
  180. package/src/Components/Icons/Rate-.25x.js +11 -17
  181. package/src/Components/Icons/Rate-.5x.js +10 -16
  182. package/src/Components/Icons/Rate-.75x.js +7 -13
  183. package/src/Components/Icons/Rate-1.25x.js +7 -13
  184. package/src/Components/Icons/Rate-1.5x.js +7 -13
  185. package/src/Components/Icons/Rate-1.75x.js +7 -13
  186. package/src/Components/Icons/Rate-1x.js +10 -16
  187. package/src/Components/Icons/Rate-2x.js +7 -13
  188. package/src/Components/Icons/RateIcon-.25x.js +7 -13
  189. package/src/Components/Icons/RateIcon-.5x.js +10 -16
  190. package/src/Components/Icons/RateIcon-.75x.js +7 -13
  191. package/src/Components/Icons/RateIcon-1.25x.js +7 -13
  192. package/src/Components/Icons/RateIcon-1.5x.js +7 -13
  193. package/src/Components/Icons/RateIcon-1.75x.js +7 -13
  194. package/src/Components/Icons/RateIcon-1x.js +7 -13
  195. package/src/Components/Icons/RateIcon-2x.js +7 -13
  196. package/src/Components/Icons/RectangleXmark.js +6 -10
  197. package/src/Components/Icons/RectangleXmarkRegular.js +6 -10
  198. package/src/Components/Icons/ReorderRows.js +7 -13
  199. package/src/Components/Icons/RightFromBracket.js +6 -10
  200. package/src/Components/Icons/RightLeft.js +6 -10
  201. package/src/Components/Icons/RightToBracket.js +6 -10
  202. package/src/Components/Icons/Rotate.js +6 -14
  203. package/src/Components/Icons/RotateLeft.js +6 -10
  204. package/src/Components/Icons/RotateRight.js +6 -14
  205. package/src/Components/Icons/ScrewdriverWrench.js +6 -10
  206. package/src/Components/Icons/Scroll.js +6 -10
  207. package/src/Components/Icons/Share.js +6 -10
  208. package/src/Components/Icons/Shop.js +6 -10
  209. package/src/Components/Icons/SideBySide.js +6 -20
  210. package/src/Components/Icons/SortDown.js +6 -10
  211. package/src/Components/Icons/SortDownAlt.js +6 -10
  212. package/src/Components/Icons/SortUp.js +6 -10
  213. package/src/Components/Icons/SortUpAlt.js +6 -14
  214. package/src/Components/Icons/Square.js +6 -10
  215. package/src/Components/Icons/SquareCheck.js +6 -10
  216. package/src/Components/Icons/SquareCheckRegular.js +6 -10
  217. package/src/Components/Icons/SquareMinus.js +6 -14
  218. package/src/Components/Icons/SquareRegular.js +6 -10
  219. package/src/Components/Icons/Store.js +6 -10
  220. package/src/Components/Icons/Table.js +6 -16
  221. package/src/Components/Icons/ThumbsDown.js +6 -10
  222. package/src/Components/Icons/ThumbsDownRegular.js +6 -10
  223. package/src/Components/Icons/ThumbsUp.js +6 -10
  224. package/src/Components/Icons/ThumbsUpRegular.js +6 -10
  225. package/src/Components/Icons/Trash.js +6 -14
  226. package/src/Components/Icons/TrashCan.js +6 -14
  227. package/src/Components/Icons/TriangleExclamation.js +6 -14
  228. package/src/Components/Icons/Truck.js +6 -10
  229. package/src/Components/Icons/TruckFast.js +6 -10
  230. package/src/Components/Icons/UploadDownload.js +7 -9
  231. package/src/Components/Icons/User.js +6 -10
  232. package/src/Components/Icons/UserGroup.js +6 -10
  233. package/src/Components/Icons/UserPlus.js +6 -10
  234. package/src/Components/Icons/UserSecret.js +6 -10
  235. package/src/Components/Icons/Video.js +6 -16
  236. package/src/Components/Icons/X.js +6 -10
  237. package/src/Components/Icons/Xmark.js +6 -10
  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 +8 -3
  241. package/src/Components/Messages/ErrorMessage.js +5 -2
  242. package/src/Components/Messages/Loading.js +6 -6
  243. package/src/Components/Messages/OkMessage.js +4 -3
  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 +10 -12
  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 +12 -8
  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 +10 -13
  259. package/src/Components/Tree/TreeNode.js +4 -4
  260. package/src/Components/Viewer/Viewer.js +37 -24
  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 +7 -3
  266. package/src/PlatformImports/Web/Attachments.js +11 -8
  267. package/src/PlatformImports/Web/File.js +4 -5
@@ -1,12 +1,12 @@
1
1
  import React, { useState, useEffect, } from 'react';
2
2
  import {
3
3
  Button,
4
- Column,
4
+ VStack,
5
5
  Icon,
6
- Row,
6
+ HStack,
7
7
  ScrollView,
8
8
  Text,
9
- } from 'native-base';
9
+ } from '@gluestack-ui/themed';
10
10
  import {
11
11
  HORIZONTAL,
12
12
  VERTICAL,
@@ -237,11 +237,11 @@ function TabBar(props) {
237
237
  bg={isCurrentTab ? styles.TAB_ACTIVE_BG : styles.TAB_BG}
238
238
  tooltip={tab.title}
239
239
  />;
240
- // button = <Row
240
+ // button = <HStack
241
241
  // key={'tab' + ix}
242
242
  // >
243
243
  // {button}
244
- // </Row>;
244
+ // </HStack>;
245
245
  } else {
246
246
  button = <Button
247
247
  key={'tabButton' + ix}
@@ -410,7 +410,7 @@ function TabBar(props) {
410
410
 
411
411
  let tabBar = null;
412
412
  if (direction === VERTICAL) {
413
- tabBar = <Column
413
+ tabBar = <VStack
414
414
  alignItems="center"
415
415
  justifyContent="flex-start"
416
416
  py={2}
@@ -419,25 +419,25 @@ function TabBar(props) {
419
419
  w={isCollapsed ? '50px' : tabWidth}
420
420
  >
421
421
  {renderedTabs}
422
- <Column flex={1} w="100%" justifyContent="flex-end">
422
+ <VStack flex={1} w="100%" justifyContent="flex-end">
423
423
  {renderedToggleButton}
424
- </Column>
425
- </Column>;
424
+ </VStack>
425
+ </VStack>;
426
426
  if (renderedCurrentTabContent) {
427
- tabBar = <Row flex={1} w="100%" {...propsToPass}>
427
+ tabBar = <HStack flex={1} w="100%" {...propsToPass}>
428
428
  {tabBar}
429
- <Column
429
+ <VStack
430
430
  alignItems="center"
431
431
  justifyContent="flex-start"
432
432
  flex={1}
433
433
  >
434
434
  {renderedCurrentTabContent}
435
- </Column>
436
- </Row>;
435
+ </VStack>
436
+ </HStack>;
437
437
  }
438
438
  }
439
439
  if (direction === HORIZONTAL) {
440
- tabBar = <Row
440
+ tabBar = <HStack
441
441
  alignItems="center"
442
442
  justifyContent="flex-start"
443
443
  p={2}
@@ -451,23 +451,23 @@ function TabBar(props) {
451
451
  >
452
452
  {renderedTabs}
453
453
  </ScrollView>
454
- <Row flex={1} h="100%" justifyContent="flex-end">
455
- <Row h="100%">
454
+ <HStack flex={1} h="100%" justifyContent="flex-end">
455
+ <HStack h="100%">
456
456
  {renderedToggleButton}
457
- </Row>
458
- </Row>
459
- </Row>;
457
+ </HStack>
458
+ </HStack>
459
+ </HStack>;
460
460
  if (renderedCurrentTabContent) {
461
- tabBar = <Column flex={1} w="100%" {...propsToPass}>
461
+ tabBar = <VStack flex={1} w="100%" {...propsToPass}>
462
462
  {tabBar}
463
- <Column
463
+ <VStack
464
464
  alignItems="center"
465
465
  justifyContent="flex-start"
466
466
  flex={1}
467
467
  >
468
468
  {renderedCurrentTabContent}
469
- </Column>
470
- </Column>;
469
+ </VStack>
470
+ </VStack>;
471
471
  }
472
472
  }
473
473
  return tabBar;
@@ -1,6 +1,6 @@
1
1
  import {
2
- Row,
3
- } from 'native-base';
2
+ HStack,
3
+ } from '@gluestack-ui/themed';
4
4
  import Toolbar from './Toolbar.js'
5
5
  import _ from 'lodash';
6
6
 
@@ -15,6 +15,6 @@ export default function FilterToolbar(props) {
15
15
  borderTopColor="trueGray.400"
16
16
  w="100%"
17
17
  >
18
- {toolbarItems.length ? <Row flex={1} borderLeftWidth={1} borderLeftColor="trueGray.100">{toolbarItems}</Row> : null}
18
+ {toolbarItems.length ? <HStack flex={1} borderLeftWidth={1} borderLeftColor="trueGray.100">{toolbarItems}</HStack> : null}
19
19
  </Toolbar>;
20
20
  };
@@ -1,11 +1,13 @@
1
1
  import { useEffect, useMemo, } from 'react';
2
2
  import {
3
+ Button,
4
+ ButtonText,
5
+ HStack,
3
6
  Icon,
4
- Row,
5
7
  Text,
6
- } from 'native-base';
8
+ } from '@gluestack-ui/themed';
7
9
  import useForceUpdate from '../../Hooks/useForceUpdate.js';
8
- import Button from '../Buttons/Button.js';
10
+ // import Button from '../Buttons/Button.js';
9
11
  import IconButton from '../Buttons/IconButton.js';
10
12
  import AngleLeft from '../Icons/AngleLeft.js';
11
13
  import AnglesLeft from '../Icons/AnglesLeft.js';
@@ -70,7 +72,9 @@ export default function Pagination(props) {
70
72
  onPress={() => Repository.showMore()}
71
73
  isDisabled={isDisabled}
72
74
  tooltip="Show More"
73
- >Show More</Button>);
75
+ >
76
+ <ButtonText>Show More</ButtonText>
77
+ </Button>);
74
78
  }
75
79
  if (!Repository.isLocal) {
76
80
  items.push(<IconButton
@@ -108,7 +112,7 @@ export default function Pagination(props) {
108
112
  tooltip="Previous Page"
109
113
  />);
110
114
  if (!minimize) {
111
- items.push(<Row
115
+ items.push(<HStack
112
116
  key="pageSelector"
113
117
  mx={3}
114
118
  justifyContent="center"
@@ -127,7 +131,7 @@ export default function Pagination(props) {
127
131
  tooltip="Set Page"
128
132
  />
129
133
  <Text ml={2}>of {totalPages}</Text>
130
- </Row>);
134
+ </HStack>);
131
135
  }
132
136
 
133
137
  isDisabled = page === totalPages || totalPages <= 1;
@@ -176,7 +180,7 @@ export default function Pagination(props) {
176
180
  }
177
181
  }
178
182
 
179
- return <Row
183
+ return <HStack
180
184
  justifyContent="flex-start"
181
185
  alignItems="center"
182
186
  px={2}
@@ -184,7 +188,7 @@ export default function Pagination(props) {
184
188
  {...props}
185
189
  >
186
190
  {items}
187
- </Row>;
191
+ </HStack>;
188
192
  }, [
189
193
  Repository?.hash,
190
194
  showPagination,
@@ -1,7 +1,7 @@
1
1
  import { useState } from 'react';
2
2
  import {
3
- Row,
4
- } from 'native-base';
3
+ HStack,
4
+ } from '@gluestack-ui/themed';
5
5
  import Pagination from './Pagination.js'
6
6
  import Toolbar from './Toolbar.js'
7
7
  import _ from 'lodash';
@@ -50,6 +50,6 @@ export default function PaginationToolbar(props) {
50
50
  onLayout={(e) => onLayout(e)}
51
51
  >
52
52
  <Pagination {...propsToPass} showPagination={showPagination} w={toolbarItems.length ? null : '100%'} minimize={minimize} disablePageSize={disablePageSize} />
53
- {toolbarItems.length ? <Row flex={1} {...toolbarProps}>{toolbarItems}</Row> : null}
53
+ {toolbarItems.length ? <HStack flex={1} {...toolbarProps}>{toolbarItems}</HStack> : null}
54
54
  </Toolbar>;
55
55
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
- Row,
3
- } from 'native-base';
2
+ HStack,
3
+ } from '@gluestack-ui/themed';
4
4
  import UiGlobals from '../../UiGlobals.js';
5
5
 
6
6
  export default function Toolbar(props) {
7
7
  const styles = UiGlobals.styles;
8
- return <Row
8
+ return <HStack
9
9
  w="100%"
10
10
  justifyContent="flex-start"
11
11
  bg="trueGray.200"
@@ -17,5 +17,5 @@ export default function Toolbar(props) {
17
17
  {...props}
18
18
  >
19
19
  {props.children}
20
- </Row>;
20
+ </HStack>;
21
21
  };
@@ -1,13 +1,10 @@
1
1
  import { useState, useEffect, useRef, useMemo, } from 'react';
2
2
  import {
3
- Column,
4
- FlatList,
3
+ VStack,
5
4
  Modal,
6
5
  Pressable,
7
- Icon,
8
- Row,
9
- Text,
10
- } from 'native-base';
6
+ HStack,
7
+ } from '@gluestack-ui/themed';
11
8
  import {
12
9
  SELECTION_MODE_SINGLE,
13
10
  SELECTION_MODE_MULTI,
@@ -1109,15 +1106,15 @@ function TreeComponent(props) {
1109
1106
  }
1110
1107
 
1111
1108
  return <>
1112
- <Column
1109
+ <VStack
1113
1110
  {...testProps('Tree')}
1114
1111
  flex={1}
1115
1112
  w="100%"
1116
1113
  >
1117
1114
  {topToolbar}
1118
- {headerToolbarItemComponents?.length && <Row>{headerToolbarItemComponents}</Row>}
1115
+ {headerToolbarItemComponents?.length && <HStack>{headerToolbarItemComponents}</HStack>}
1119
1116
 
1120
- <Column
1117
+ <VStack
1121
1118
  ref={treeRef}
1122
1119
  w="100%"
1123
1120
  flex={1}
@@ -1131,16 +1128,16 @@ function TreeComponent(props) {
1131
1128
  >
1132
1129
  {!treeNodes?.length ? <NoRecordsFound text={noneFoundText} onRefresh={reloadTree} /> :
1133
1130
  treeNodes}
1134
- </Column>
1131
+ </VStack>
1135
1132
 
1136
1133
  {treeFooterComponent}
1137
- </Column>
1134
+ </VStack>
1138
1135
 
1139
1136
  <Modal
1140
1137
  isOpen={isSearchModalShown}
1141
1138
  onClose={() => setIsSearchModalShown(false)}
1142
1139
  >
1143
- <Column bg="#fff" w={300}>
1140
+ <VStack bg="#fff" w={300}>
1144
1141
  <FormPanel
1145
1142
  title="Choose Tree Node"
1146
1143
  instructions="Multiple tree nodes matched your search. Please select which one to show."
@@ -1176,7 +1173,7 @@ function TreeComponent(props) {
1176
1173
  setIsSearchModalShown(false);
1177
1174
  }}
1178
1175
  />
1179
- </Column>
1176
+ </VStack>
1180
1177
  </Modal>
1181
1178
  </>;
1182
1179
 
@@ -2,10 +2,10 @@ import { useMemo, } from 'react';
2
2
  import {
3
3
  Box,
4
4
  Icon,
5
- Row,
5
+ HStack,
6
6
  Spinner,
7
7
  Text,
8
- } from 'native-base';
8
+ } from '@gluestack-ui/themed';
9
9
  import UiGlobals from '../../UiGlobals.js';
10
10
  import withDraggable from '../Hoc/withDraggable.js';
11
11
  import IconButton from '../Buttons/IconButton.js';
@@ -42,7 +42,7 @@ export default function TreeNode(props) {
42
42
 
43
43
  return useMemo(() => {
44
44
 
45
- return <Row
45
+ return <HStack
46
46
  alignItems="center"
47
47
  flexGrow={1}
48
48
  {...nodeProps}
@@ -68,7 +68,7 @@ export default function TreeNode(props) {
68
68
  {...propsToPass}
69
69
  >{text}</Text>
70
70
 
71
- </Row>;
71
+ </HStack>;
72
72
  }, [
73
73
  nodeProps,
74
74
  adjustedBg,
@@ -1,11 +1,13 @@
1
1
  import { useRef, useState, } from 'react';
2
2
  import {
3
- Column,
3
+ Button,
4
+ ButtonText,
5
+ HStack,
4
6
  Icon,
5
7
  ScrollView,
6
- Row,
7
8
  Text,
8
- } from 'native-base';
9
+ VStack,
10
+ } from '@gluestack-ui/themed';
9
11
  import {
10
12
  EDITOR_TYPE__SIDE,
11
13
  } from '../../Constants/Editor.js';
@@ -15,7 +17,7 @@ import withPdfButton from '../Hoc/withPdfButton.js';
15
17
  import inArray from '../../Functions/inArray.js';
16
18
  import getComponentFromType from '../../Functions/getComponentFromType.js';
17
19
  import buildAdditionalButtons from '../../Functions/buildAdditionalButtons.js';
18
- import Button from '../Buttons/Button.js';
20
+ // import Button from '../Buttons/Button.js';
19
21
  import Label from '../Form/Label.js';
20
22
  import Pencil from '../Icons/Pencil.js';
21
23
  import Footer from '../Layout/Footer.js';
@@ -71,13 +73,17 @@ function Viewer(props) {
71
73
  items,
72
74
  // onChange: onEditorChange,
73
75
  useSelectorId = false,
76
+ isHidden = false,
74
77
  isHiddenInViewMode = false,
75
78
  ...propsToPass
76
79
  } = item,
77
80
  editorTypeProps = {};
78
81
 
82
+ if (isHidden) {
83
+ return null;
84
+ }
79
85
  if (isHiddenInViewMode) {
80
- return;
86
+ return null;
81
87
  }
82
88
  const propertyDef = name && Repository?.getSchema().getPropertyDefinition(name);
83
89
  if (!type) {
@@ -157,10 +163,10 @@ function Viewer(props) {
157
163
  />;
158
164
 
159
165
  if (item.additionalViewButtons) {
160
- element = <Row flexWrap="wrap">
166
+ element = <HStack flexWrap="wrap">
161
167
  {element}
162
168
  {buildAdditionalButtons(item.additionalViewButtons, self)}
163
- </Row>;
169
+ </HStack>;
164
170
  }
165
171
 
166
172
  if (label) {
@@ -170,7 +176,7 @@ function Viewer(props) {
170
176
  }
171
177
  element = <><Label {...labelProps}>{label}</Label>{element}</>;
172
178
  }
173
- return <Row key={ix}>{element}</Row>;
179
+ return <HStack key={ix}>{element}</HStack>;
174
180
  },
175
181
  buildAncillary = () => {
176
182
  const components = [];
@@ -203,12 +209,15 @@ function Viewer(props) {
203
209
  canRowsReorder={false}
204
210
  />;
205
211
  if (title) {
212
+ if (record?.displayValue) {
213
+ title += ' for ' + record.displayValue;
214
+ }
206
215
  title = <Text
207
216
  fontSize={styles.VIEWER_ANCILLARY_FONTSIZE}
208
217
  fontWeight="bold"
209
218
  >{title}</Text>;
210
219
  }
211
- components.push(<Column key={'ancillary-' + ix} my={5}>{title}{element}</Column>);
220
+ components.push(<VStack key={'ancillary-' + ix} my={5}>{title}{element}</VStack>);
212
221
  });
213
222
  }
214
223
  return components;
@@ -239,33 +248,33 @@ function Viewer(props) {
239
248
  canEdit = false;
240
249
  }
241
250
 
242
- return <Column flex={flex} {...props} onLayout={onLayout}>
251
+ return <VStack flex={flex} {...props} onLayout={onLayout}>
243
252
  {containerWidth && <>
244
253
 
245
254
  <ScrollView _web={{ height: 1 }} width="100%" pb={1} ref={scrollViewRef}>
246
255
  {canEdit && onEditMode &&
247
- <Row px={4} pt={4} alignItems="center" justifyContent="flex-end">
256
+ <HStack px={4} pt={4} alignItems="center" justifyContent="flex-end">
248
257
  <Button
249
258
  key="editBtn"
250
259
  onPress={onEditMode}
251
260
  leftIcon={<Icon as={Pencil} color="#fff" size="sm" />}
252
261
  color="#fff"
253
262
  >To Edit</Button>
254
- </Row>}
263
+ </HStack>}
255
264
  {!_.isEmpty(additionalButtons) &&
256
- <Row p={4} alignItems="center" justifyContent="flex-end" flexWrap="wrap">
265
+ <HStack p={4} alignItems="center" justifyContent="flex-end" flexWrap="wrap">
257
266
  {additionalButtons}
258
- </Row>}
259
- <Column>
260
- {containerWidth >= CONTAINER_THRESHOLD ? <Row p={4} pl={0}>{viewerComponents}</Row> : null}
261
- {containerWidth < CONTAINER_THRESHOLD ? <Column p={4}>{viewerComponents}</Column> : null}
262
- <Column m={2} pt={4}>{ancillaryComponents}</Column>
263
- </Column>
267
+ </HStack>}
268
+ <VStack>
269
+ {containerWidth >= CONTAINER_THRESHOLD ? <HStack p={4} pl={0}>{viewerComponents}</HStack> : null}
270
+ {containerWidth < CONTAINER_THRESHOLD ? <VStack p={4}>{viewerComponents}</VStack> : null}
271
+ <VStack m={2} pt={4}>{ancillaryComponents}</VStack>
272
+ </VStack>
264
273
  </ScrollView>
265
274
  {(showDeleteBtn || showCloseBtn) &&
266
275
  <Footer justifyContent="flex-end">
267
276
  {showDeleteBtn &&
268
- <Row flex={1} justifyContent="flex-start">
277
+ <HStack flex={1} justifyContent="flex-start">
269
278
  <Button
270
279
  key="deleteBtn"
271
280
  onPress={onDelete}
@@ -274,18 +283,22 @@ function Viewer(props) {
274
283
  bg: 'warningHover',
275
284
  }}
276
285
  color="#fff"
277
- >Delete</Button>
278
- </Row>}
286
+ >
287
+ <ButtonText>Delete</ButtonText>
288
+ </Button>
289
+ </HStack>}
279
290
  {onClose && showCloseBtn &&
280
291
  <Button
281
292
  key="closeBtn"
282
293
  onPress={onClose}
283
294
  color="#fff"
284
- >Close</Button>}
295
+ >
296
+ <ButtonText>Close</ButtonText>
297
+ </Button>}
285
298
  </Footer>}
286
299
 
287
300
  </>}
288
- </Column>;
301
+ </VStack>;
289
302
  }
290
303
 
291
304
  export default withComponent(withPdfButton(Viewer));
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Modal,
3
- Row,
3
+ HStack,
4
4
  Text,
5
- } from 'native-base';
5
+ } from '@gluestack-ui/themed';
6
6
  import withRedux from '../Data/hoc/withRedux';
7
7
  import Loading from './Loading';
8
8
  import _ from 'lodash';
@@ -16,11 +16,11 @@ export function WaitModal(props) {
16
16
  return <Modal {...props} _backdrop={{ bg: "#000" }}>
17
17
  <Modal.Content maxWidth="400px">
18
18
  <Modal.Body>
19
- <Row justifyContent="center" alignItems="center">
19
+ <HStack justifyContent="center" alignItems="center">
20
20
  <Loading minHeight="auto" h={5} w={5} mr={2} />
21
21
  <Text color="#000">{textMessage}</Text>
22
22
  {/* {!!waitStack ? <Text color="#000">{_.keys(waitStack).join(', ')}</Text> : null} */}
23
- </Row>
23
+ </HStack>
24
24
  </Modal.Body>
25
25
  </Modal.Content>
26
26
  </Modal>;
@@ -2,7 +2,7 @@ import {
2
2
  Box,
3
3
  Column,
4
4
  Row,
5
- } from 'native-base';
5
+ } from '@gluestack-ui/themed';
6
6
  import Container from '../Container/Container.js';
7
7
  import emptyFn from '../../Functions/emptyFn.js';
8
8
  import _ from 'lodash';
@@ -7,7 +7,7 @@
7
7
  import { useState, } from 'react';
8
8
  import {
9
9
  Icon,
10
- } from 'native-base';
10
+ } from '@gluestack-ui/themed';
11
11
  import Excel from '../Icons/Excel';
12
12
  import Panel from '../Panel/Panel.js';
13
13
  import Form from '../Form/Form.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
- Column,
3
- Row,
4
- } from 'native-base';
2
+ HStack,
3
+ VStack,
4
+ } from '@gluestack-ui/themed';
5
5
  import AddressBook from '../Components/Icons/AddressBook.js';
6
6
  import Alt from '../Components/Icons/Alt.js';
7
7
  import AngleLeft from '../Components/Icons/AngleLeft.js';
@@ -236,6 +236,8 @@ import YearsCombo from './Form/Field/Combo/YearsCombo.js';
236
236
  import _ from 'lodash';
237
237
 
238
238
  const components = {
239
+ Column: VStack,
240
+ Row: HStack,
239
241
  AddressBook,
240
242
  Alt,
241
243
  AngleLeft,
@@ -431,7 +433,6 @@ const components = {
431
433
  CheckboxGroup,
432
434
  // CKEditor,
433
435
  Color,
434
- Column,
435
436
  Combo,
436
437
  // ComboEditor,
437
438
  Container,
@@ -457,7 +458,6 @@ const components = {
457
458
  // Picker,
458
459
  PlusMinusButton,
459
460
  RadioGroup,
460
- Row,
461
461
  SquareButton,
462
462
  TabPanel,
463
463
  Tag,
@@ -1,7 +1,9 @@
1
1
  import {
2
+ Button,
3
+ ButtonText,
2
4
  Icon,
3
- } from 'native-base';
4
- import Button from '../Components/Buttons/Button.js';
5
+ } from '@gluestack-ui/themed';
6
+ // import Button from '../Components/Buttons/Button.js';
5
7
  import _ from 'lodash';
6
8
 
7
9
  export default function buildAdditionalButtons(configs, self, handlerArgs = {}) {
@@ -36,7 +38,9 @@ export default function buildAdditionalButtons(configs, self, handlerArgs = {})
36
38
  parent={self}
37
39
  reference={key}
38
40
  {...buttonProps}
39
- >{text}</Button>;
41
+ >
42
+ <ButtonText>{text}</ButtonText>
43
+ </Button>;
40
44
  additionalButtons.push(button);
41
45
  });
42
46
  return additionalButtons;
@@ -2,12 +2,13 @@ import { useState, useEffect, useRef, } from 'react';
2
2
  import {
3
3
  Box,
4
4
  Button,
5
- Column,
5
+ ButtonText,
6
+ VStack,
6
7
  Pressable,
7
- Row,
8
+ HStack,
8
9
  Spinner,
9
10
  Text,
10
- } from 'native-base';
11
+ } from '@gluestack-ui/themed';
11
12
  import {
12
13
  CURRENT_MODE,
13
14
  UI_MODE_WEB,
@@ -260,12 +261,12 @@ function AttachmentsElement(props) {
260
261
  if (canCrud) {
261
262
  _fileMosaic.onDelete = onFileDelete;
262
263
  }
263
- let content = <Column
264
+ let content = <VStack
264
265
  w="100%"
265
266
  p={2}
266
267
  background={styles.ATTACHMENTS_BG}
267
268
  >
268
- <Row flexWrap="wrap">
269
+ <HStack flexWrap="wrap">
269
270
  {files.map((file) => {
270
271
  return <Box
271
272
  key={file.id}
@@ -285,7 +286,7 @@ function AttachmentsElement(props) {
285
286
  />}
286
287
  </Box>;
287
288
  })}
288
- </Row>
289
+ </HStack>
289
290
  {Repository.total <= COLLAPSED_MAX ? null :
290
291
  <Button
291
292
  onPress={toggleShowAll}
@@ -297,8 +298,10 @@ function AttachmentsElement(props) {
297
298
  width: '100%',
298
299
  }}
299
300
  variant="ghost"
300
- >{'Show ' + (showAll ? ' Less' : ' All ' + Repository.total)}</Button>}
301
- </Column>;
301
+ >
302
+ <ButtonText>{'Show ' + (showAll ? ' Less' : ' All ' + Repository.total)}</ButtonText>
303
+ </Button>}
304
+ </VStack>;
302
305
 
303
306
  if (canCrud) {
304
307
  content = <Dropzone
@@ -1,10 +1,9 @@
1
1
  import { useEffect, } from 'react';
2
2
  import {
3
3
  Button,
4
- Column,
5
- Row,
4
+ HStack,
6
5
  Text,
7
- } from 'native-base';
6
+ } from '@gluestack-ui/themed';
8
7
  import {
9
8
  CURRENT_MODE,
10
9
  UI_MODE_WEB,
@@ -101,7 +100,7 @@ function FileComponent(props) {
101
100
  if (_.isEmpty(filesContent)) {
102
101
  assembledComponents = <Button onPress={() => openFilePicker()}>Select File</Button>;
103
102
  } else {
104
- assembledComponents = <Row
103
+ assembledComponents = <HStack
105
104
  px={3}
106
105
  py={1}
107
106
  alignItems="center"
@@ -124,7 +123,7 @@ function FileComponent(props) {
124
123
  mr={1}
125
124
  />
126
125
  <Text>{plainFiles[0].name}</Text>
127
- </Row>;
126
+ </HStack>;
128
127
  }
129
128
 
130
129
  return assembledComponents;