@onehat/ui 0.3.262 → 0.3.264

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,13 +1,11 @@
1
1
  import { useRef, useState, } from 'react';
2
2
  import {
3
- Button,
4
- ButtonText,
5
- HStack,
3
+ Column,
6
4
  Icon,
7
5
  ScrollView,
6
+ Row,
8
7
  Text,
9
- VStack,
10
- } from '@gluestack-ui/themed';
8
+ } from 'native-base';
11
9
  import {
12
10
  EDITOR_TYPE__SIDE,
13
11
  } from '../../Constants/Editor.js';
@@ -17,7 +15,7 @@ import withPdfButton from '../Hoc/withPdfButton.js';
17
15
  import inArray from '../../Functions/inArray.js';
18
16
  import getComponentFromType from '../../Functions/getComponentFromType.js';
19
17
  import buildAdditionalButtons from '../../Functions/buildAdditionalButtons.js';
20
- // import Button from '../Buttons/Button.js';
18
+ import Button from '../Buttons/Button.js';
21
19
  import Label from '../Form/Label.js';
22
20
  import Pencil from '../Icons/Pencil.js';
23
21
  import Footer from '../Layout/Footer.js';
@@ -163,10 +161,10 @@ function Viewer(props) {
163
161
  />;
164
162
 
165
163
  if (item.additionalViewButtons) {
166
- element = <HStack flexWrap="wrap">
164
+ element = <Row flexWrap="wrap">
167
165
  {element}
168
166
  {buildAdditionalButtons(item.additionalViewButtons, self)}
169
- </HStack>;
167
+ </Row>;
170
168
  }
171
169
 
172
170
  if (label) {
@@ -176,7 +174,7 @@ function Viewer(props) {
176
174
  }
177
175
  element = <><Label {...labelProps}>{label}</Label>{element}</>;
178
176
  }
179
- return <HStack key={ix}>{element}</HStack>;
177
+ return <Row key={ix}>{element}</Row>;
180
178
  },
181
179
  buildAncillary = () => {
182
180
  const components = [];
@@ -217,7 +215,7 @@ function Viewer(props) {
217
215
  fontWeight="bold"
218
216
  >{title}</Text>;
219
217
  }
220
- components.push(<VStack key={'ancillary-' + ix} my={5}>{title}{element}</VStack>);
218
+ components.push(<Column key={'ancillary-' + ix} my={5}>{title}{element}</Column>);
221
219
  });
222
220
  }
223
221
  return components;
@@ -248,33 +246,33 @@ function Viewer(props) {
248
246
  canEdit = false;
249
247
  }
250
248
 
251
- return <VStack flex={flex} {...props} onLayout={onLayout}>
249
+ return <Column flex={flex} {...props} onLayout={onLayout}>
252
250
  {containerWidth && <>
253
251
 
254
252
  <ScrollView _web={{ height: 1 }} width="100%" pb={1} ref={scrollViewRef}>
255
253
  {canEdit && onEditMode &&
256
- <HStack px={4} pt={4} alignItems="center" justifyContent="flex-end">
254
+ <Row px={4} pt={4} alignItems="center" justifyContent="flex-end">
257
255
  <Button
258
256
  key="editBtn"
259
257
  onPress={onEditMode}
260
258
  leftIcon={<Icon as={Pencil} color="#fff" size="sm" />}
261
259
  color="#fff"
262
260
  >To Edit</Button>
263
- </HStack>}
261
+ </Row>}
264
262
  {!_.isEmpty(additionalButtons) &&
265
- <HStack p={4} alignItems="center" justifyContent="flex-end" flexWrap="wrap">
263
+ <Row p={4} alignItems="center" justifyContent="flex-end" flexWrap="wrap">
266
264
  {additionalButtons}
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>
265
+ </Row>}
266
+ <Column>
267
+ {containerWidth >= CONTAINER_THRESHOLD ? <Row p={4} pl={0}>{viewerComponents}</Row> : null}
268
+ {containerWidth < CONTAINER_THRESHOLD ? <Column p={4}>{viewerComponents}</Column> : null}
269
+ <Column m={2} pt={4}>{ancillaryComponents}</Column>
270
+ </Column>
273
271
  </ScrollView>
274
272
  {(showDeleteBtn || showCloseBtn) &&
275
273
  <Footer justifyContent="flex-end">
276
274
  {showDeleteBtn &&
277
- <HStack flex={1} justifyContent="flex-start">
275
+ <Row flex={1} justifyContent="flex-start">
278
276
  <Button
279
277
  key="deleteBtn"
280
278
  onPress={onDelete}
@@ -283,22 +281,18 @@ function Viewer(props) {
283
281
  bg: 'warningHover',
284
282
  }}
285
283
  color="#fff"
286
- >
287
- <ButtonText>Delete</ButtonText>
288
- </Button>
289
- </HStack>}
284
+ >Delete</Button>
285
+ </Row>}
290
286
  {onClose && showCloseBtn &&
291
287
  <Button
292
288
  key="closeBtn"
293
289
  onPress={onClose}
294
290
  color="#fff"
295
- >
296
- <ButtonText>Close</ButtonText>
297
- </Button>}
291
+ >Close</Button>}
298
292
  </Footer>}
299
293
 
300
294
  </>}
301
- </VStack>;
295
+ </Column>;
302
296
  }
303
297
 
304
298
  export default withComponent(withPdfButton(Viewer));
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Modal,
3
- HStack,
3
+ Row,
4
4
  Text,
5
- } from '@gluestack-ui/themed';
5
+ } from 'native-base';
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
- <HStack justifyContent="center" alignItems="center">
19
+ <Row 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
- </HStack>
23
+ </Row>
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 '@gluestack-ui/themed';
5
+ } from 'native-base';
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 '@gluestack-ui/themed';
10
+ } from 'native-base';
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
- HStack,
3
- VStack,
4
- } from '@gluestack-ui/themed';
2
+ Column,
3
+ Row,
4
+ } from 'native-base';
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,8 +236,6 @@ 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,
241
239
  AddressBook,
242
240
  Alt,
243
241
  AngleLeft,
@@ -433,6 +431,7 @@ const components = {
433
431
  CheckboxGroup,
434
432
  // CKEditor,
435
433
  Color,
434
+ Column,
436
435
  Combo,
437
436
  // ComboEditor,
438
437
  Container,
@@ -458,6 +457,7 @@ const components = {
458
457
  // Picker,
459
458
  PlusMinusButton,
460
459
  RadioGroup,
460
+ Row,
461
461
  SquareButton,
462
462
  TabPanel,
463
463
  Tag,
@@ -1,9 +1,7 @@
1
1
  import {
2
- Button,
3
- ButtonText,
4
2
  Icon,
5
- } from '@gluestack-ui/themed';
6
- // import Button from '../Components/Buttons/Button.js';
3
+ } from 'native-base';
4
+ import Button from '../Components/Buttons/Button.js';
7
5
  import _ from 'lodash';
8
6
 
9
7
  export default function buildAdditionalButtons(configs, self, handlerArgs = {}) {
@@ -38,9 +36,7 @@ export default function buildAdditionalButtons(configs, self, handlerArgs = {})
38
36
  parent={self}
39
37
  reference={key}
40
38
  {...buttonProps}
41
- >
42
- <ButtonText>{text}</ButtonText>
43
- </Button>;
39
+ >{text}</Button>;
44
40
  additionalButtons.push(button);
45
41
  });
46
42
  return additionalButtons;
@@ -2,13 +2,12 @@ import { useState, useEffect, useRef, } from 'react';
2
2
  import {
3
3
  Box,
4
4
  Button,
5
- ButtonText,
6
- VStack,
5
+ Column,
7
6
  Pressable,
8
- HStack,
7
+ Row,
9
8
  Spinner,
10
9
  Text,
11
- } from '@gluestack-ui/themed';
10
+ } from 'native-base';
12
11
  import {
13
12
  CURRENT_MODE,
14
13
  UI_MODE_WEB,
@@ -261,12 +260,12 @@ function AttachmentsElement(props) {
261
260
  if (canCrud) {
262
261
  _fileMosaic.onDelete = onFileDelete;
263
262
  }
264
- let content = <VStack
263
+ let content = <Column
265
264
  w="100%"
266
265
  p={2}
267
266
  background={styles.ATTACHMENTS_BG}
268
267
  >
269
- <HStack flexWrap="wrap">
268
+ <Row flexWrap="wrap">
270
269
  {files.map((file) => {
271
270
  return <Box
272
271
  key={file.id}
@@ -286,7 +285,7 @@ function AttachmentsElement(props) {
286
285
  />}
287
286
  </Box>;
288
287
  })}
289
- </HStack>
288
+ </Row>
290
289
  {Repository.total <= COLLAPSED_MAX ? null :
291
290
  <Button
292
291
  onPress={toggleShowAll}
@@ -298,10 +297,8 @@ function AttachmentsElement(props) {
298
297
  width: '100%',
299
298
  }}
300
299
  variant="ghost"
301
- >
302
- <ButtonText>{'Show ' + (showAll ? ' Less' : ' All ' + Repository.total)}</ButtonText>
303
- </Button>}
304
- </VStack>;
300
+ >{'Show ' + (showAll ? ' Less' : ' All ' + Repository.total)}</Button>}
301
+ </Column>;
305
302
 
306
303
  if (canCrud) {
307
304
  content = <Dropzone
@@ -1,9 +1,10 @@
1
1
  import { useEffect, } from 'react';
2
2
  import {
3
3
  Button,
4
- HStack,
4
+ Column,
5
+ Row,
5
6
  Text,
6
- } from '@gluestack-ui/themed';
7
+ } from 'native-base';
7
8
  import {
8
9
  CURRENT_MODE,
9
10
  UI_MODE_WEB,
@@ -100,7 +101,7 @@ function FileComponent(props) {
100
101
  if (_.isEmpty(filesContent)) {
101
102
  assembledComponents = <Button onPress={() => openFilePicker()}>Select File</Button>;
102
103
  } else {
103
- assembledComponents = <HStack
104
+ assembledComponents = <Row
104
105
  px={3}
105
106
  py={1}
106
107
  alignItems="center"
@@ -123,7 +124,7 @@ function FileComponent(props) {
123
124
  mr={1}
124
125
  />
125
126
  <Text>{plainFiles[0].name}</Text>
126
- </HStack>;
127
+ </Row>;
127
128
  }
128
129
 
129
130
  return assembledComponents;