@onehat/ui 0.4.4 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/Components/Accordion/Accordion.js +1 -1
- package/src/Components/Blank.js +1 -1
- package/src/Components/Buttons/BackButton.js +1 -1
- package/src/Components/Buttons/Button.js +5 -5
- package/src/Components/Buttons/CartButtonWithBadge.js +1 -1
- package/src/Components/Buttons/PlusMinusButton.js +1 -1
- package/src/Components/Buttons/SquareButton.js +1 -0
- package/src/Components/Container/Container.js +4 -4
- package/src/Components/Container/ScreenContainer.js +1 -1
- package/src/Components/Container/Splitter.js +1 -1
- package/src/Components/Editor/InlineEditor.js +1 -1
- package/src/Components/Filter/DateRange.js +1 -1
- package/src/Components/Filter/NumberRange.js +1 -1
- package/src/Components/Form/Field/CKEditor/CKEditor.js +1 -1
- package/src/Components/Form/Field/Checkbox/CheckboxGroup.js +1 -1
- package/src/Components/Form/Field/Color.js +1 -1
- package/src/Components/Form/Field/Combo/Combo.js +2 -1
- package/src/Components/Form/Field/Combo/PageSizeCombo.js +1 -1
- package/src/Components/Form/Field/Date.js +1 -1
- package/src/Components/Form/Field/DisplayField.js +1 -1
- package/src/Components/Form/Field/File.js +1 -1
- package/src/Components/Form/Field/FormikForm.js +1 -1
- package/src/Components/Form/Field/Input.js +19 -16
- package/src/Components/Form/Field/Json.js +1 -1
- package/src/Components/Form/Field/Number.js +1 -1
- package/src/Components/Form/Field/RadioGroup/RadioGroup.js +1 -1
- package/src/Components/Form/Field/Select/PageSizeSelect.js +1 -1
- package/src/Components/Form/Field/Select/Select.js +1 -1
- package/src/Components/Form/Field/Slider.js +1 -1
- package/src/Components/Form/Field/Tag/Tag.js +2 -1
- package/src/Components/Form/Field/Tag/ValueBox.js +1 -1
- package/src/Components/Form/Field/Text.js +1 -1
- package/src/Components/Form/Field/TextArea.js +1 -1
- package/src/Components/Form/Field/Toggle.js +1 -1
- package/src/Components/Form/FieldSet.js +1 -1
- package/src/Components/Form/Form.js +15 -14
- package/src/Components/Form/Label.js +1 -1
- package/src/Components/Gluestack/index.js +2 -2
- package/src/Components/Grid/Grid.js +1 -1
- package/src/Components/Grid/GridHeaderRow.js +16 -4
- package/src/Components/Grid/GridRow.js +1 -1
- package/src/Components/Grid/HeaderColumnSelectorHandle.js +1 -1
- package/src/Components/Grid/HeaderReorderHandle.js +1 -1
- package/src/Components/Grid/HeaderResizeHandle.js +1 -1
- package/src/Components/Grid/NoRecordsFound.js +1 -1
- package/src/Components/Grid/RowDragHandle.js +1 -1
- package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +1 -1
- package/src/Components/Hoc/withAlert.js +1 -1
- package/src/Components/Hoc/withContextMenu.js +1 -1
- package/src/Components/Hoc/withFilters.js +1 -1
- package/src/Components/Hoc/withModal.js +1 -1
- package/src/Components/Hoc/withSideEditor.js +1 -0
- package/src/Components/Hoc/withWindowedEditor.js +1 -1
- package/src/Components/Layout/Footer.js +1 -1
- package/src/Components/Messages/ConfirmationMessage.js +1 -1
- package/src/Components/Messages/ErrorMessage.js +1 -1
- package/src/Components/Messages/Loading.js +1 -1
- package/src/Components/Messages/OkMessage.js +1 -1
- package/src/Components/Messages/Unauthorized.js +1 -1
- package/src/Components/Messages/WaitMessage.js +1 -1
- package/src/Components/Panel/AccordionGridPanel.js +1 -1
- package/src/Components/Panel/FormPanel.js +1 -1
- package/src/Components/Panel/Header.js +19 -8
- package/src/Components/Panel/Mask.js +1 -1
- package/src/Components/Panel/Panel.js +1 -1
- package/src/Components/Picker/Picker.js +1 -1
- package/src/Components/Report/Report.js +1 -1
- package/src/Components/Screens/Manager.js +1 -1
- package/src/Components/Tab/TabBar.js +15 -13
- package/src/Components/Toolbar/FilterToolbar.js +1 -1
- package/src/Components/Toolbar/Pagination.js +1 -1
- package/src/Components/Toolbar/PaginationToolbar.js +1 -1
- package/src/Components/Toolbar/Toolbar.js +1 -1
- package/src/Components/Tooltip/Tooltip.js +1 -1
- package/src/Components/Tree/Tree.js +1 -1
- package/src/Components/Tree/TreeNode.js +1 -1
- package/src/Components/Viewer/Viewer.js +1 -1
- package/src/Components/index.js +1 -1
- package/src/Functions/buildAdditionalButtons.js +1 -1
- package/src/PlatformImports/Web/Attachments.js +1 -1
- package/src/PlatformImports/Web/File.js +1 -1
|
@@ -49,7 +49,7 @@ import { Text } from './text';
|
|
|
49
49
|
import { Text as TextNative } from './text/index.tsx'; // explicitly import the native version
|
|
50
50
|
import { Textarea, TextareaInput } from './textarea';
|
|
51
51
|
import { Toast } from './toast';
|
|
52
|
-
import { Tooltip } from './tooltip';
|
|
52
|
+
import { Tooltip, TooltipContent, TooltipText } from './tooltip';
|
|
53
53
|
import { View } from './view';
|
|
54
54
|
import { VirtualizedList } from './virtualized-list';
|
|
55
55
|
import { VStack } from './vstack';
|
|
@@ -108,7 +108,7 @@ export {
|
|
|
108
108
|
TextNative,
|
|
109
109
|
Textarea, TextareaInput,
|
|
110
110
|
Toast,
|
|
111
|
-
Tooltip,
|
|
111
|
+
Tooltip, TooltipContent, TooltipText,
|
|
112
112
|
View,
|
|
113
113
|
VirtualizedList,
|
|
114
114
|
VStack,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Icon,
|
|
6
6
|
Pressable,
|
|
7
7
|
TextNative,
|
|
8
|
-
} from '
|
|
8
|
+
} from '@project-components/Gluestack';
|
|
9
9
|
import {
|
|
10
10
|
SORT_ASCENDING,
|
|
11
11
|
SORT_DESCENDING,
|
|
@@ -356,9 +356,12 @@ export default function GridHeaderRow(props) {
|
|
|
356
356
|
onMouseEnter={(e) => onHeaderMouseEnter(e, ix)}
|
|
357
357
|
onMouseLeave={(e) => onHeaderMouseLeave(e, ix)}
|
|
358
358
|
className={`
|
|
359
|
+
GridHeaderRow-Pressable
|
|
359
360
|
h-full
|
|
360
361
|
flex-row
|
|
361
362
|
p-0
|
|
363
|
+
items-center
|
|
364
|
+
justify-center
|
|
362
365
|
${rowClassName}
|
|
363
366
|
${styles.GRID_HEADER_BG}
|
|
364
367
|
${styles.GRID_HEADER_BG_HOVER}
|
|
@@ -392,10 +395,13 @@ export default function GridHeaderRow(props) {
|
|
|
392
395
|
key="Text"
|
|
393
396
|
numberOfLines={1}
|
|
394
397
|
className={`
|
|
395
|
-
|
|
398
|
+
GridHeaderRow-TextNative
|
|
399
|
+
h-auto
|
|
396
400
|
flex-1
|
|
397
401
|
items-center
|
|
398
402
|
justify-center
|
|
403
|
+
leading-tight
|
|
404
|
+
text-center
|
|
399
405
|
overflow-hidden
|
|
400
406
|
text-ellipsis
|
|
401
407
|
${styles.GRID_HEADER_FONTSIZE}
|
|
@@ -410,6 +416,7 @@ export default function GridHeaderRow(props) {
|
|
|
410
416
|
as={isSortDirectionAsc ? SortUp : SortDown}
|
|
411
417
|
size={styles.GRID_HEADER_ICON_SIZE}
|
|
412
418
|
className={`
|
|
419
|
+
GridHeaderRow-Icon
|
|
413
420
|
text-center
|
|
414
421
|
text-grey-500
|
|
415
422
|
${styles.GRID_HEADER_ICON_MT}
|
|
@@ -460,7 +467,7 @@ export default function GridHeaderRow(props) {
|
|
|
460
467
|
if (areRowsDragSource) {
|
|
461
468
|
headerColumns.unshift(<Box
|
|
462
469
|
key="spacer"
|
|
463
|
-
className="w-[3px]"
|
|
470
|
+
className="Spacer w-[3px]"
|
|
464
471
|
/>);
|
|
465
472
|
}
|
|
466
473
|
if (!hideNavColumn) {
|
|
@@ -473,7 +480,12 @@ export default function GridHeaderRow(props) {
|
|
|
473
480
|
style={{
|
|
474
481
|
scrollbarWidth: 'none',
|
|
475
482
|
}}
|
|
476
|
-
className=
|
|
483
|
+
className={`
|
|
484
|
+
GridHeaderRow-HStack
|
|
485
|
+
w-full
|
|
486
|
+
h-[40px]
|
|
487
|
+
bg-grey-200
|
|
488
|
+
`}
|
|
477
489
|
>
|
|
478
490
|
{renderHeaders()}
|
|
479
491
|
</HStack>;
|
|
@@ -2,7 +2,7 @@ import { forwardRef, useRef, useState, useEffect, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Text,
|
|
4
4
|
VStack,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@project-components/Gluestack';
|
|
6
6
|
import Button from '../Buttons/Button.js';
|
|
7
7
|
import testProps from '../../Functions/testProps.js';
|
|
8
8
|
import _ from 'lodash';
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Icon,
|
|
5
5
|
Modal, ModalBackdrop, ModalHeader, ModalContent, ModalCloseButton, ModalBody, ModalFooter,
|
|
6
6
|
Text,
|
|
7
|
-
} from '
|
|
7
|
+
} from '@project-components/Gluestack';
|
|
8
8
|
import Button from '../Buttons/Button.js';
|
|
9
9
|
import Panel from '../Panel/Panel.js';
|
|
10
10
|
import Footer from '../Layout/Footer.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Modal, ModalBackdrop, ModalHeader, ModalContent, ModalCloseButton, ModalBody, ModalFooter,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import {
|
|
6
6
|
EDITOR_TYPE__WINDOWED,
|
|
7
7
|
} from '../../Constants/Editor.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal, ModalBackdrop, ModalHeader, ModalContent, ModalCloseButton, ModalBody, ModalFooter,
|
|
3
3
|
Text,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import Button from '../Buttons/Button';
|
|
6
6
|
import emptyFn from '../../Functions/emptyFn.js';
|
|
7
7
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Icon,
|
|
5
5
|
Modal, ModalBackdrop, ModalHeader, ModalContent, ModalCloseButton, ModalBody, ModalFooter,
|
|
6
6
|
Text,
|
|
7
|
-
} from '
|
|
7
|
+
} from '@project-components/Gluestack';
|
|
8
8
|
import Button from '../Buttons/Button';
|
|
9
9
|
import testProps from '../../Functions/testProps.js';
|
|
10
10
|
import TriangleExclamation from '../Icons/TriangleExclamation.js';
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Modal, ModalBackdrop, ModalHeader, ModalContent, ModalCloseButton, ModalBody, ModalFooter,
|
|
4
4
|
Spinner,
|
|
5
5
|
Text,
|
|
6
|
-
} from '
|
|
6
|
+
} from '@project-components/Gluestack';
|
|
7
7
|
import testProps from '../../Functions/testProps.js';
|
|
8
8
|
|
|
9
9
|
export default function WaitMessage(props) {
|
|
@@ -2,7 +2,7 @@ import { useState, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
ScrollView,
|
|
4
4
|
VStack,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@project-components/Gluestack';
|
|
6
6
|
import Accordion from 'react-native-collapsible/Accordion'; // https://www.npmjs.com/package/react-native-collapsible
|
|
7
7
|
import testProps from '../../Functions/testProps';
|
|
8
8
|
import Footer from '../Layout/Footer.js';
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Pressable,
|
|
5
5
|
TextNative,
|
|
6
6
|
VStack,
|
|
7
|
-
} from '
|
|
7
|
+
} from '@project-components/Gluestack';
|
|
8
8
|
import {
|
|
9
9
|
HORIZONTAL,
|
|
10
10
|
VERTICAL,
|
|
@@ -41,7 +41,7 @@ export default function Header(props) {
|
|
|
41
41
|
collapseBtn = null;
|
|
42
42
|
if (onClose) {
|
|
43
43
|
let closeClassName = `
|
|
44
|
-
closeBtn
|
|
44
|
+
Header-closeBtn
|
|
45
45
|
self-center
|
|
46
46
|
border
|
|
47
47
|
border-grey-400
|
|
@@ -54,7 +54,7 @@ export default function Header(props) {
|
|
|
54
54
|
onPress={onClose}
|
|
55
55
|
icon={Xmark}
|
|
56
56
|
_icon={{
|
|
57
|
-
size: styles.PANEL_HEADER_ICON_SIZE,
|
|
57
|
+
// size: styles.PANEL_HEADER_ICON_SIZE,
|
|
58
58
|
className: styles.PANEL_HEADER_ICON_COLOR,
|
|
59
59
|
}}
|
|
60
60
|
className={closeClassName}
|
|
@@ -62,7 +62,7 @@ export default function Header(props) {
|
|
|
62
62
|
}
|
|
63
63
|
if (isCollapsible) {
|
|
64
64
|
let collapseClassName = `
|
|
65
|
-
collapseBtn
|
|
65
|
+
Header-collapseBtn
|
|
66
66
|
self-center
|
|
67
67
|
border
|
|
68
68
|
border-grey-400
|
|
@@ -88,7 +88,8 @@ export default function Header(props) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
let panelClassName = `
|
|
91
|
-
|
|
91
|
+
Header
|
|
92
|
+
bg-grey-300
|
|
92
93
|
items-center
|
|
93
94
|
justify-start
|
|
94
95
|
py-1
|
|
@@ -127,8 +128,9 @@ export default function Header(props) {
|
|
|
127
128
|
numberOfLines={1}
|
|
128
129
|
ellipsizeMode="head"
|
|
129
130
|
className={`
|
|
130
|
-
|
|
131
|
+
Header-TextNative1
|
|
131
132
|
flex-1
|
|
133
|
+
font-bold
|
|
132
134
|
${styles.PANEL_HEADER_TEXT_COLOR}
|
|
133
135
|
${styles.PANEL_HEADER_TEXT_FONTSIZE}
|
|
134
136
|
`}>{title}</TextNative>
|
|
@@ -164,8 +166,9 @@ export default function Header(props) {
|
|
|
164
166
|
numberOfLines={1}
|
|
165
167
|
ellipsizeMode="head"
|
|
166
168
|
className={`
|
|
167
|
-
|
|
169
|
+
Header-TextNative2
|
|
168
170
|
flex-1
|
|
171
|
+
font-bold
|
|
169
172
|
${styles.PANEL_HEADER_TEXT_COLOR}
|
|
170
173
|
${styles.PANEL_HEADER_TEXT_FONTSIZE}
|
|
171
174
|
`}
|
|
@@ -204,6 +207,8 @@ export default function Header(props) {
|
|
|
204
207
|
ellipsizeMode="head"
|
|
205
208
|
style={{ transform: [{ rotate: '-90deg'}] }}
|
|
206
209
|
className={`
|
|
210
|
+
Header-TextNative3
|
|
211
|
+
font-bold
|
|
207
212
|
w-[200px]
|
|
208
213
|
text-right
|
|
209
214
|
${styles.PANEL_HEADER_TEXT_COLOR}
|
|
@@ -237,7 +242,13 @@ export default function Header(props) {
|
|
|
237
242
|
<TextNative
|
|
238
243
|
numberOfLines={1}
|
|
239
244
|
ellipsizeMode="head"
|
|
240
|
-
className={`
|
|
245
|
+
className={`
|
|
246
|
+
Header-TextNative4
|
|
247
|
+
font-bold
|
|
248
|
+
flex-1
|
|
249
|
+
${styles.PANEL_HEADER_TEXT_COLOR}
|
|
250
|
+
${styles.PANEL_HEADER_TEXT_FONTSIZE}
|
|
251
|
+
`}>{title}</TextNative>
|
|
241
252
|
{collapseBtn}
|
|
242
253
|
</HStack>
|
|
243
254
|
</Pressable>;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
HStack,
|
|
3
3
|
Text,
|
|
4
4
|
VStackNative,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@project-components/Gluestack';
|
|
6
6
|
import React, { useState, useEffect, } from 'react';
|
|
7
7
|
import withComponent from '../Hoc/withComponent.js';
|
|
8
8
|
import testProps from '../../Functions/testProps.js';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { cloneElement, useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
HStack,
|
|
4
|
+
HStackNative,
|
|
4
5
|
ScrollView,
|
|
5
6
|
VStack,
|
|
6
|
-
|
|
7
|
+
VStackNative,
|
|
8
|
+
} from '@project-components/Gluestack';
|
|
7
9
|
import {
|
|
8
10
|
HORIZONTAL,
|
|
9
11
|
VERTICAL,
|
|
@@ -488,7 +490,7 @@ function TabBar(props) {
|
|
|
488
490
|
|
|
489
491
|
let tabBar = null;
|
|
490
492
|
if (direction === VERTICAL) {
|
|
491
|
-
tabBar = <
|
|
493
|
+
tabBar = <VStackNative
|
|
492
494
|
{...testProps('TabBar')}
|
|
493
495
|
{...propsToPass}
|
|
494
496
|
className={`
|
|
@@ -500,22 +502,22 @@ function TabBar(props) {
|
|
|
500
502
|
py-2
|
|
501
503
|
`}
|
|
502
504
|
>
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
505
|
+
{renderedTabs}
|
|
506
|
+
<VStack className="flex-1 w-full justify-end">
|
|
507
|
+
{renderedToggleButton}
|
|
508
|
+
</VStack>
|
|
509
|
+
</VStackNative>;
|
|
508
510
|
if (renderedCurrentTabContent) {
|
|
509
|
-
tabBar = <
|
|
511
|
+
tabBar = <HStackNative {...propsToPass} className="flex-1 w-full">
|
|
510
512
|
{tabBar}
|
|
511
513
|
<VStack className="items-center justify-start flex-1">
|
|
512
514
|
{renderedCurrentTabContent}
|
|
513
515
|
</VStack>
|
|
514
|
-
</
|
|
516
|
+
</HStackNative>;
|
|
515
517
|
}
|
|
516
518
|
}
|
|
517
519
|
if (direction === HORIZONTAL) {
|
|
518
|
-
tabBar = <
|
|
520
|
+
tabBar = <HStackNative
|
|
519
521
|
{...testProps('TabBar')}
|
|
520
522
|
className={`
|
|
521
523
|
${isCollapsed ? 'h-[38px]' : 'h-[' + tabHeight + 'px]'}
|
|
@@ -537,14 +539,14 @@ function TabBar(props) {
|
|
|
537
539
|
{renderedToggleButton}
|
|
538
540
|
</HStack>
|
|
539
541
|
</HStack>
|
|
540
|
-
</
|
|
542
|
+
</HStackNative>;
|
|
541
543
|
if (renderedCurrentTabContent) {
|
|
542
|
-
tabBar = <
|
|
544
|
+
tabBar = <VStackNative {...propsToPass} className="flex-1 w-full">
|
|
543
545
|
{tabBar}
|
|
544
546
|
<VStack className="items-center justify-start flex-1">
|
|
545
547
|
{renderedCurrentTabContent}
|
|
546
548
|
</VStack>
|
|
547
|
-
</
|
|
549
|
+
</VStackNative>;
|
|
548
550
|
}
|
|
549
551
|
}
|
|
550
552
|
return tabBar;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
HStack,
|
|
4
4
|
HStackNative,
|
|
5
5
|
Text,
|
|
6
|
-
} from '
|
|
6
|
+
} from '@project-components/Gluestack';
|
|
7
7
|
import useForceUpdate from '../../Hooks/useForceUpdate.js';
|
|
8
8
|
import testProps from '../../Functions/testProps.js';
|
|
9
9
|
import Button from '../Buttons/Button.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef, cloneElement } from 'react';
|
|
2
|
-
import { Tooltip, TooltipContent, TooltipText } from
|
|
2
|
+
import { Tooltip, TooltipContent, TooltipText } from '@project-components/Gluestack';
|
|
3
3
|
|
|
4
4
|
const TooltipElement = forwardRef((props, ref) => {
|
|
5
5
|
const {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Icon,
|
|
6
6
|
Spinner,
|
|
7
7
|
TextNative,
|
|
8
|
-
} from '
|
|
8
|
+
} from '@project-components/Gluestack';
|
|
9
9
|
import * as colourMixer from '@k-renwick/colour-mixer';
|
|
10
10
|
import UiGlobals from '../../UiGlobals.js';
|
|
11
11
|
import withDraggable from '../Hoc/withDraggable.js';
|
package/src/Components/index.js
CHANGED