@onehat/ui 0.3.259 → 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 +13 -11
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.259",
3
+ "version": "0.3.262",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -25,8 +25,9 @@
25
25
  },
26
26
  "license": "UNLICENSED",
27
27
  "dependencies": {
28
- "@gluestack-style/react": "^0.2.38",
29
- "@gluestack-ui/themed": "^1.1.22",
28
+ "@gluestack-style/react": "^1.0.56",
29
+ "@gluestack-ui/config": "^1.1.18",
30
+ "@gluestack-ui/themed": "^1.1.26",
30
31
  "@hookform/resolvers": "^3.3.1",
31
32
  "@k-renwick/colour-mixer": "^1.2.1",
32
33
  "@onehat/data": "^1.20.0",
@@ -1,12 +1,10 @@
1
1
  import { useState, useEffect, useRef, } from 'react';
2
2
  import {
3
- Box,
4
- Column,
3
+ HStack,
5
4
  Pressable,
6
- Row,
7
5
  ScrollView,
8
- Text,
9
- } from 'native-base';
6
+ VStack,
7
+ } from '@gluestack-ui/themed';
10
8
  import inArray from '../../Functions/inArray.js';
11
9
  import emptyFn from '../../Functions/emptyFn.js';
12
10
  import _ from 'lodash';
@@ -73,7 +71,7 @@ export default function Accordion(props) {
73
71
  rowProps.overflow = 'hidden'; // otherwise some elements mistakenly show
74
72
  }
75
73
 
76
- return <Column key={ix}>
74
+ return <VStack key={ix}>
77
75
  <Pressable
78
76
  onPress={(e) => {
79
77
  let newActiveSections = [];
@@ -94,10 +92,10 @@ export default function Accordion(props) {
94
92
  >
95
93
  {header}
96
94
  </Pressable>
97
- <Row {...rowProps} bg="#f00">
95
+ <HStack {...rowProps} bg="#f00">
98
96
  {content}
99
- </Row>
100
- </Column>;
97
+ </HStack>
98
+ </VStack>;
101
99
  });
102
100
 
103
101
  useEffect(() => {
@@ -116,14 +114,16 @@ export default function Accordion(props) {
116
114
  if (activeSections?.length && sections?.length) {
117
115
  scrollTo = sectionHeight * activeIx;
118
116
  }
119
- setTimeout(()=> {
120
- scrollView.scrollTo({ x: 0, y: scrollTo, animated: true });
121
- }, 10); // delay so render can finish
117
+ if (scrollView) {
118
+ setTimeout(()=> {
119
+ scrollView.scrollTo({ x: 0, y: scrollTo, animated: true });
120
+ }, 10); // delay so render can finish
121
+ }
122
122
 
123
123
  }, [activeSections, isRendered]);
124
124
 
125
125
  return <ScrollView ref={scrollViewRef} keyboardShouldPersistTaps="always" flex={1} w="100%">
126
- <Column
126
+ <VStack
127
127
  {...propsToPass}
128
128
  pb={(onlyOne ? calculateExtraPadding() : 0) + 'px'}
129
129
  onLayout={(e) => {
@@ -138,6 +138,6 @@ export default function Accordion(props) {
138
138
  }}
139
139
  >
140
140
  {items}
141
- </Column>
141
+ </VStack>
142
142
  </ScrollView>;
143
143
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Box,
3
- } from 'native-base';
3
+ } from '@gluestack-ui/themed';
4
4
  import _ from 'lodash';
5
5
 
6
6
  export default function Blank(props) {
@@ -2,7 +2,7 @@ import {
2
2
  Icon,
3
3
  Pressable,
4
4
  Text,
5
- } from 'native-base';
5
+ } from '@gluestack-ui/themed';
6
6
  import AngleLeft from '../Icons/AngleLeft.js';
7
7
 
8
8
  export default function BackButton(props) {
@@ -1,7 +1,7 @@
1
1
  import { useRef, } from 'react';
2
2
  import {
3
3
  Button,
4
- } from 'native-base';
4
+ } from '@gluestack-ui/themed';
5
5
  import withComponent from '../Hoc/withComponent.js';
6
6
 
7
7
  const ButtonComponent = function(props) {
@@ -3,7 +3,7 @@ import {
3
3
  Icon,
4
4
  Pressable,
5
5
  Text,
6
- } from 'native-base';
6
+ } from '@gluestack-ui/themed';
7
7
  import {
8
8
  Ionicons,
9
9
  } from '@expo/vector-icons';
@@ -1,10 +1,13 @@
1
1
  import React, { useRef, } from 'react';
2
2
  import {
3
+ Button,
4
+ ButtonText,
5
+ ButtonIcon,
3
6
  Icon,
4
7
  Pressable,
5
8
  Spinner,
6
9
  Tooltip,
7
- } from 'native-base';
10
+ } from '@gluestack-ui/themed';
8
11
  import withComponent from '../Hoc/withComponent.js';
9
12
  import UiGlobals from '../../UiGlobals.js';
10
13
  import _ from 'lodash';
@@ -69,7 +72,7 @@ const
69
72
  </Pressable>;
70
73
  ret = pressable;
71
74
  if (tooltip) {
72
- ret = <Tooltip label={tooltip} placement={tooltipPlacement}>{ret}</Tooltip>;
75
+ // ret = <Tooltip label={tooltip} placement={tooltipPlacement}>{ret}</Tooltip>;
73
76
  }
74
77
  return ret;
75
78
  },
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import {
3
- Row,
3
+ HStack,
4
4
  Text,
5
- } from 'native-base';
5
+ } from '@gluestack-ui/themed';
6
6
  import IconButton from './IconButton.js';
7
7
  import Plus from '../Icons/Plus.js';
8
8
  import Minus from '../Icons/Minus.js';
@@ -17,8 +17,8 @@ const PlusMinusButton = React.forwardRef((props, ref) => {
17
17
  minusHandler = () => {},
18
18
  } = props;
19
19
 
20
- return <Row {...props}>
21
- <Row alignItems="center">
20
+ return <HStack {...props}>
21
+ <HStack alignItems="center">
22
22
  <IconButton
23
23
  icon={<Minus color="#fff" />}
24
24
  onPress={minusHandler}
@@ -32,8 +32,8 @@ const PlusMinusButton = React.forwardRef((props, ref) => {
32
32
  isDisabled={isPlusDisabled}
33
33
  ml={1}
34
34
  />
35
- </Row>
36
- </Row>;
35
+ </HStack>
36
+ </HStack>;
37
37
 
38
38
  });
39
39
 
@@ -3,7 +3,7 @@ import {
3
3
  Icon,
4
4
  Pressable,
5
5
  Text,
6
- } from 'native-base';
6
+ } from '@gluestack-ui/themed';
7
7
  import IconButton from './IconButton.js';
8
8
  import UiGlobals from '../../UiGlobals.js';
9
9
 
@@ -1,8 +1,8 @@
1
1
  import React, { useState, useEffect, } from 'react';
2
2
  import {
3
- Column,
4
- Row,
5
- } from 'native-base';
3
+ VStack,
4
+ HStack,
5
+ } from '@gluestack-ui/themed';
6
6
  import {
7
7
  HORIZONTAL,
8
8
  VERTICAL,
@@ -286,21 +286,21 @@ function Container(props) {
286
286
  componentProps = {};
287
287
  }
288
288
 
289
- return <Column w="100%" flex={1}>
289
+ return <VStack w="100%" flex={1}>
290
290
  {northComponent}
291
291
  {(!isNorthCollapsed && !localIsNorthCollapsed) && northSplitter}
292
- <Row w="100%" flex={100}>
292
+ <HStack w="100%" flex={100}>
293
293
  {westComponent}
294
294
  {(!isWestCollapsed && !localIsWestCollapsed) && westSplitter}
295
- <Column h="100%" flex={100}>
295
+ <VStack h="100%" flex={100}>
296
296
  {centerComponent}
297
- </Column>
297
+ </VStack>
298
298
  {(!isEastCollapsed && !localIsEastCollapsed) && eastSplitter}
299
299
  {eastComponent}
300
- </Row>
300
+ </HStack>
301
301
  {(!isSouthCollapsed && !localIsSouthCollapsed) && southSplitter}
302
302
  {southComponent}
303
- </Column>;
303
+ </VStack>;
304
304
  }
305
305
 
306
306
  export default withComponent(Container);
@@ -4,10 +4,10 @@ import {
4
4
  useWindowDimensions,
5
5
  } from 'react-native';
6
6
  import {
7
- Column,
7
+ VStack,
8
8
  ScrollView,
9
9
  KeyboardAvoidingView,
10
- } from 'native-base';
10
+ } from '@gluestack-ui/themed';
11
11
  import withComponent from '../Hoc/withComponent.js';
12
12
  // import { useHeaderHeight } from '@react-navigation/elements';
13
13
  // import testProps from '../OneHat/functions/testProps';
@@ -35,7 +35,7 @@ function ScreenContainer(props) {
35
35
  safeAreaProps.safeArea = true;
36
36
  }
37
37
 
38
- const column = <Column
38
+ const column = <VStack
39
39
  // {...testProps(screenName)}
40
40
  alignItems="center"
41
41
  justifyContent="flex-start"
@@ -48,7 +48,7 @@ function ScreenContainer(props) {
48
48
  {...safeAreaProps}
49
49
  >
50
50
  {props.children}
51
- </Column>;
51
+ </VStack>;
52
52
 
53
53
  if (scrollEnabled) {
54
54
  const scrollViewProps = {};
@@ -1,8 +1,7 @@
1
1
  import {
2
- Column,
3
- Row,
4
- Text,
5
- } from 'native-base';
2
+ VStack,
3
+ HStack,
4
+ } from '@gluestack-ui/themed';
6
5
  import {
7
6
  HORIZONTAL,
8
7
  VERTICAL,
@@ -21,7 +20,7 @@ function Splitter(props) {
21
20
  } = props;
22
21
 
23
22
  if (mode === VERTICAL) {
24
- return <Row
23
+ return <HStack
25
24
  testID="Splitter"
26
25
  bg={isDragging ? 'secondary.600' : 'primary.600'}
27
26
  h="3px"
@@ -29,10 +28,10 @@ function Splitter(props) {
29
28
  alignItems="center"
30
29
  justifyContent="center"
31
30
  >
32
- <Row testID="handle" h="2px" w="10%" bg="#ccc"></Row>
33
- </Row>;
31
+ <HStack testID="handle" h="2px" w="10%" bg="#ccc"></HStack>
32
+ </HStack>;
34
33
  }
35
- return <Column
34
+ return <VStack
36
35
  testID="Splitter"
37
36
  bg={isDragging ? 'secondary.600' : 'primary.600'}
38
37
  h="100%"
@@ -41,8 +40,8 @@ function Splitter(props) {
41
40
  justifyContent="center"
42
41
  style={styles.ewResize}
43
42
  >
44
- <Column testID="handle" w="2px" h="10%" bg="#ccc"></Column>
45
- </Column>;
43
+ <VStack testID="handle" w="2px" h="10%" bg="#ccc"></VStack>
44
+ </VStack>;
46
45
  }
47
46
 
48
47
  function withAdditionalProps(WrappedComponent) {
@@ -1,8 +1,8 @@
1
1
  import { useState, useEffect } from 'react';
2
2
  import {
3
- Row,
3
+ HStack,
4
4
  Text,
5
- } from 'native-base';
5
+ } from '@gluestack-ui/themed';
6
6
  import Date from '../Form/Field/Date.js';
7
7
  import withTooltip from '../Hoc/withTooltip.js';
8
8
  import withValue from '../Hoc/withValue.js';
@@ -70,7 +70,7 @@ const
70
70
  return null;
71
71
  }
72
72
 
73
- return <Row
73
+ return <HStack
74
74
  justifyContent="center"
75
75
  alignItems="center"
76
76
  flex={1}
@@ -93,7 +93,7 @@ const
93
93
  // maxValue={maxValue}
94
94
  tooltip={(tooltip ? tooltip + ' ' : '') + 'High'}
95
95
  />
96
- </Row>;
96
+ </HStack>;
97
97
  },
98
98
  DateRangeField = withValue(DateRange);
99
99
 
@@ -1,8 +1,8 @@
1
1
  import React, { useState, useEffect, } from 'react';
2
2
  import {
3
- Row,
3
+ HStack,
4
4
  Text,
5
- } from 'native-base';
5
+ } from '@gluestack-ui/themed';
6
6
  import Number from '../Form/Field/Number.js';
7
7
  import withTooltip from '../Hoc/withTooltip.js';
8
8
  import withValue from '../Hoc/withValue.js';
@@ -61,7 +61,7 @@ import _ from 'lodash';
61
61
 
62
62
  }, [value]);
63
63
 
64
- return <Row
64
+ return <HStack
65
65
  justifyContent="center"
66
66
  alignItems="center"
67
67
  flex={1}
@@ -86,7 +86,7 @@ import _ from 'lodash';
86
86
  tooltip={(tooltip ? tooltip + ' ' : '') + 'High'}
87
87
  maxWidth={120}
88
88
  />
89
- </Row>;
89
+ </HStack>;
90
90
  },
91
91
  NumberRangeField = withValue(NumberRange);
92
92
 
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect, useRef, } from 'react';
2
2
  import {
3
- Row,
4
- } from 'native-base';
3
+ HStack,
4
+ } from '@gluestack-ui/themed';
5
5
  import UiGlobals from '../../../../UiGlobals.js';
6
6
  import { CKEditor } from '@ckeditor/ckeditor5-react'; // https://ckeditor.com/docs/ckeditor5/latest/installation/frameworks/react.html
7
7
  import './ckeditor.css';
@@ -32,7 +32,7 @@ const
32
32
  debouncedSetValueRef.current = _.debounce(setValue, autoSubmitDelay);
33
33
  }, [setValue]);
34
34
 
35
- return <Row h={h} flex={1} ref={props.outerRef} {...props}>
35
+ return <HStack h={h} flex={1} ref={props.outerRef} {...props}>
36
36
  <CKEditor
37
37
  editor={Editor}
38
38
  config={config}
@@ -45,7 +45,7 @@ const
45
45
  debouncedSetValueRef.current(value);
46
46
  }}
47
47
  />
48
- </Row>;
48
+ </HStack>;
49
49
  },
50
50
  CKEditorField = withComponent(withValue(CKEditorElement));
51
51
 
@@ -1,9 +1,7 @@
1
1
  import React, { useState, useEffect, } from 'react';
2
2
  import {
3
- Column,
4
3
  Checkbox,
5
- Row,
6
- } from 'native-base';
4
+ } from '@gluestack-ui/themed';
7
5
  import withData from '../../../Hoc/withData.js';
8
6
  import withValue from '../../../Hoc/withValue.js';
9
7
  import withTooltip from '../../../Hoc/withTooltip.js';
@@ -1,11 +1,10 @@
1
- import React, { useState, useEffect, useRef, } from 'react';
1
+ import React, { useState, useRef, } from 'react';
2
2
  import {
3
3
  Popover,
4
4
  Pressable,
5
- Row,
6
- Text,
5
+ HStack,
7
6
  Tooltip,
8
- } from 'native-base';
7
+ } from '@gluestack-ui/themed';
9
8
  import { SketchPicker } from 'react-color';
10
9
  import {
11
10
  UI_MODE_WEB,
@@ -134,94 +133,101 @@ export function ColorElement(props) {
134
133
 
135
134
 
136
135
  // Web version
137
- return <Tooltip label={tooltip} placement={tooltipPlacement}>
138
- <Row flex={1} h="100%" alignItems="center" onLayout={() => setIsRendered(true)}>
139
- <Pressable
140
- ref={triggerRef}
141
- onPress={onTriggerPress}
142
- onBlur={onTriggerBlur}
143
- h={10}
144
- w={10}
145
- bg={value}
146
- borderTopLeftRadius={6}
147
- borderBottomLeftRadius={6}
148
- borderTopRightRadius={0}
149
- borderBottomRightRadius={0}
150
- borderWidth={1}
151
- borderColor="trueGray.300"
152
- />
153
- <Input
154
- ref={inputRef}
155
- value={value}
156
- setValue={setValue}
157
- maxLength={7}
158
- onBlur={onInputBlur}
159
- onClick={onInputClick}
160
- flex={1}
161
- h="100%"
162
- p={2}
163
- borderWidth={1}
164
- borderColor="trueGray.300"
165
- borderLeftWidth={0}
166
- borderTopLeftRadius={0}
167
- borderBottomLeftRadius={0}
168
- borderTopRightRadius={6}
169
- borderBottomRightRadius={6}
170
- fontSize={styles.FORM_COLOR_READOUT_FONTSIZE}
171
- bg={styles.FORM_COLOR_INPUT_BG}
172
- _focus={{
173
- bg: styles.FORM_COLOR_INPUT_FOCUS_BG,
174
- }}
175
- onLayout={(e) => {
176
- // On web, this is not needed, but on RN it might be, so leave it in for now
177
- const {
178
- height,
179
- top,
180
- left,
181
- } = e.nativeEvent.layout;
182
- setTop(top + height);
183
- setLeft(left);
184
- }}
185
- />
186
- <Popover
187
- isOpen={isPickerShown}
188
- onClose={() => {
189
- hidePicker();
190
- }}
191
- trigger={emptyFn}
192
- trapFocus={true}
193
- placement={'auto'}
194
- {...props}
136
+ let assembledComponents = null;
137
+ assembledComponents =
138
+ <HStack flex={1} h="100%" alignItems="center" onLayout={() => setIsRendered(true)}>
139
+ <Pressable
140
+ ref={triggerRef}
141
+ onPress={onTriggerPress}
142
+ onBlur={onTriggerBlur}
143
+ h={10}
144
+ w={10}
145
+ bg={value}
146
+ borderTopLeftRadius={6}
147
+ borderBottomLeftRadius={6}
148
+ borderTopRightRadius={0}
149
+ borderBottomRightRadius={0}
150
+ borderWidth={1}
151
+ borderColor="trueGray.300"
152
+ />
153
+ <Input
154
+ ref={inputRef}
155
+ value={value}
156
+ setValue={setValue}
157
+ maxLength={7}
158
+ onBlur={onInputBlur}
159
+ onClick={onInputClick}
160
+ flex={1}
161
+ h="100%"
162
+ p={2}
163
+ borderWidth={1}
164
+ borderColor="trueGray.300"
165
+ borderLeftWidth={0}
166
+ borderTopLeftRadius={0}
167
+ borderBottomLeftRadius={0}
168
+ borderTopRightRadius={6}
169
+ borderBottomRightRadius={6}
170
+ fontSize={styles.FORM_COLOR_READOUT_FONTSIZE}
171
+ bg={styles.FORM_COLOR_INPUT_BG}
172
+ _focus={{
173
+ bg: styles.FORM_COLOR_INPUT_FOCUS_BG,
174
+ }}
175
+ onLayout={(e) => {
176
+ // On web, this is not needed, but on RN it might be, so leave it in for now
177
+ const {
178
+ height,
179
+ top,
180
+ left,
181
+ } = e.nativeEvent.layout;
182
+ setTop(top + height);
183
+ setLeft(left);
184
+ }}
185
+ />
186
+ <Popover
187
+ isOpen={isPickerShown}
188
+ onClose={() => {
189
+ hidePicker();
190
+ }}
191
+ trigger={emptyFn}
192
+ trapFocus={true}
193
+ placement={'auto'}
194
+ {...props}
195
+ >
196
+ <Popover.Content
197
+ position="absolute"
198
+ top={top + 'px'}
199
+ left={left + 'px'}
200
+ w={220}
201
+ h={287}
202
+ {...translateProps}
203
+ >
204
+ <Popover.Body
205
+ ref={pickerRef}
206
+ p={0}
195
207
  >
196
- <Popover.Content
197
- position="absolute"
198
- top={top + 'px'}
199
- left={left + 'px'}
200
- w={220}
201
- h={287}
202
- {...translateProps}
203
- >
204
- <Popover.Body
205
- ref={pickerRef}
206
- p={0}
207
- >
208
- <SketchPicker
209
- disableAlpha={true}
210
- color={value}
211
- onChange={(color) => setValue(color.hex)}
212
- {...props}
213
- />
214
- </Popover.Body>
215
- </Popover.Content>
216
- </Popover>
217
- </Row>
218
- </Tooltip>;
208
+ <SketchPicker
209
+ disableAlpha={true}
210
+ color={value}
211
+ onChange={(color) => setValue(color.hex)}
212
+ {...props}
213
+ />
214
+ </Popover.Body>
215
+ </Popover.Content>
216
+ </Popover>
217
+ </HStack>;
218
+
219
219
 
220
220
  // React Native v1
221
221
 
222
222
 
223
223
  // React Native v2
224
224
 
225
+ if (tooltip) {
226
+ // assembledComponents = <Tooltip label={tooltip} placement={tooltipPlacement}>
227
+ // {assembledComponents}
228
+ // </Tooltip>;
229
+ }
230
+ return assembledComponents;
225
231
  }
226
232
 
227
233
  export default withComponent(withValue(ColorElement));