@onehat/ui 0.4.4 → 0.4.6
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 +1 -1
- 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 +1 -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 +7 -7
- 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/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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@gluestack-ui/tooltip": "^0.1.35",
|
|
57
57
|
"@hookform/resolvers": "^3.3.1",
|
|
58
58
|
"@k-renwick/colour-mixer": "^1.2.1",
|
|
59
|
+
"@legendapp/motion": "^2.4.0",
|
|
59
60
|
"@onehat/data": "^1.21.19",
|
|
60
61
|
"nativewind": "4.0.36",
|
|
61
62
|
"normalize-css-color": "^1.0.2",
|
package/src/Components/Blank.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ButtonIcon,
|
|
7
7
|
ButtonGroup,
|
|
8
8
|
Tooltip,
|
|
9
|
-
} from '
|
|
9
|
+
} from '@project-components/Gluestack';
|
|
10
10
|
import withComponent from '../Hoc/withComponent.js';
|
|
11
11
|
import withTooltip from '../Hoc/withTooltip.js';
|
|
12
12
|
import _ from 'lodash';
|
|
@@ -32,7 +32,7 @@ const ButtonComponent = forwardRef((props, ref) => {
|
|
|
32
32
|
icon = cloneElement(icon, {..._icon});
|
|
33
33
|
}
|
|
34
34
|
} else {
|
|
35
|
-
icon = <ButtonIcon as={icon} {..._icon} />;
|
|
35
|
+
icon = <ButtonIcon className="ButtonIcon" as={icon} {..._icon} />;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
if (rightIcon) {
|
|
@@ -41,7 +41,7 @@ const ButtonComponent = forwardRef((props, ref) => {
|
|
|
41
41
|
rightIcon = cloneElement(rightIcon, {..._rightIcon});
|
|
42
42
|
}
|
|
43
43
|
} else {
|
|
44
|
-
rightIcon = <ButtonIcon as={rightIcon} {..._rightIcon} />;
|
|
44
|
+
rightIcon = <ButtonIcon className="ButtonIcon" as={rightIcon} {..._rightIcon} />;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -62,9 +62,9 @@ const ButtonComponent = forwardRef((props, ref) => {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
let button = <Button {...propsToPass} className={className} ref={ref}>
|
|
65
|
-
{isLoading && <ButtonSpinner {..._spinner} />}
|
|
65
|
+
{isLoading && <ButtonSpinner className="ButtonSpinner" {..._spinner} />}
|
|
66
66
|
{icon}
|
|
67
|
-
{text && <ButtonText {..._text}>{text}</ButtonText>}
|
|
67
|
+
{text && <ButtonText className="ButtonText" {..._text}>{text}</ButtonText>}
|
|
68
68
|
{rightIcon}
|
|
69
69
|
</Button>;
|
|
70
70
|
if (tooltip) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ScrollView,
|
|
9
9
|
VStack,
|
|
10
10
|
VStackNative,
|
|
11
|
-
} from '
|
|
11
|
+
} from '@project-components/Gluestack';
|
|
12
12
|
import withComponent from '../Hoc/withComponent.js';
|
|
13
13
|
// import { useHeaderHeight } from '@react-navigation/elements';
|
|
14
14
|
// import testProps from '../OneHat/functions/testProps';
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
HStack,
|
|
4
4
|
Text,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@project-components/Gluestack';
|
|
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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
HStack,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Checkbox, CheckboxGroup,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import testProps from '../../../../Functions/testProps.js';
|
|
6
6
|
import withData from '../../../Hoc/withData.js';
|
|
7
7
|
import withValue from '../../../Hoc/withValue.js';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
TextNative,
|
|
12
12
|
Tooltip,
|
|
13
13
|
VStack,
|
|
14
|
-
} from '
|
|
14
|
+
} from '@project-components/Gluestack';
|
|
15
15
|
import {
|
|
16
16
|
UI_MODE_NATIVE,
|
|
17
17
|
UI_MODE_WEB,
|
|
@@ -1011,6 +1011,7 @@ export function ComboComponent(props) {
|
|
|
1011
1011
|
const className = `
|
|
1012
1012
|
Combo-HStack
|
|
1013
1013
|
flex-1
|
|
1014
|
+
h-[40px]
|
|
1014
1015
|
justify-center
|
|
1015
1016
|
items-center
|
|
1016
1017
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Text,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import UiGlobals from '../../../UiGlobals.js';
|
|
6
6
|
import withComponent from '../../Hoc/withComponent.js';
|
|
7
7
|
import withTooltip from '../../Hoc/withTooltip.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { forwardRef, useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Input, InputField, InputIcon, InputSlot,
|
|
4
|
-
|
|
5
|
-
} from '../../Gluestack';
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
6
5
|
import {
|
|
7
6
|
hasWidth,
|
|
8
7
|
hasFlex,
|
|
@@ -18,10 +17,10 @@ const InputElement = forwardRef((props, ref) => {
|
|
|
18
17
|
testID,
|
|
19
18
|
value,
|
|
20
19
|
setValue,
|
|
20
|
+
maxLength,
|
|
21
21
|
autoSubmit = true, // automatically setValue after user stops typing for autoSubmitDelay
|
|
22
22
|
autoSubmitDelay = UiGlobals.autoSubmitDelay,
|
|
23
23
|
disableAutoFlex = false,
|
|
24
|
-
maxLength,
|
|
25
24
|
onKeyPress,
|
|
26
25
|
onChangeText,
|
|
27
26
|
leftElement,
|
|
@@ -31,6 +30,7 @@ const InputElement = forwardRef((props, ref) => {
|
|
|
31
30
|
rightIcon,
|
|
32
31
|
rightIconHandler,
|
|
33
32
|
placeholder,
|
|
33
|
+
...propsToPass
|
|
34
34
|
} = props,
|
|
35
35
|
styles = UiGlobals.styles,
|
|
36
36
|
debouncedSetValueRef = useRef(),
|
|
@@ -109,11 +109,12 @@ const InputElement = forwardRef((props, ref) => {
|
|
|
109
109
|
if (!disableAutoFlex && !hasWidth(props) && !hasFlex(props)) {
|
|
110
110
|
style.flex = 1;
|
|
111
111
|
}
|
|
112
|
+
// flex-1
|
|
113
|
+
// block
|
|
114
|
+
// h-auto
|
|
115
|
+
// h-[10px]
|
|
112
116
|
let inputClassName = `
|
|
113
117
|
Input
|
|
114
|
-
flex-1
|
|
115
|
-
block
|
|
116
|
-
h-auto
|
|
117
118
|
${styles.FORM_INPUT_BG}
|
|
118
119
|
${styles.FORM_INPUT_BG_FOCUS}
|
|
119
120
|
${styles.FORM_INPUT_BG_HOVER}
|
|
@@ -121,6 +122,7 @@ const InputElement = forwardRef((props, ref) => {
|
|
|
121
122
|
inputFieldClassName = `
|
|
122
123
|
InputField
|
|
123
124
|
min-h-[40px]
|
|
125
|
+
h-auto
|
|
124
126
|
w-full
|
|
125
127
|
p-2
|
|
126
128
|
text-left
|
|
@@ -139,16 +141,16 @@ const InputElement = forwardRef((props, ref) => {
|
|
|
139
141
|
style={style}
|
|
140
142
|
>
|
|
141
143
|
{leftElement &&
|
|
142
|
-
<InputSlot>{leftElement}</InputSlot>}
|
|
144
|
+
<InputSlot className="leftElementInputSlot">{leftElement}</InputSlot>}
|
|
143
145
|
|
|
144
146
|
{leftIcon && leftIconHandler &&
|
|
145
|
-
<
|
|
146
|
-
<InputIcon className="ml-2">
|
|
147
|
+
<InputSlot onPress={leftIconHandler} className="InputSlot">
|
|
148
|
+
<InputIcon className="leftInputIconWithHandler ml-2">
|
|
147
149
|
{leftIcon}
|
|
148
150
|
</InputIcon>
|
|
149
|
-
</
|
|
151
|
+
</InputSlot>}
|
|
150
152
|
{leftIcon && !leftIconHandler &&
|
|
151
|
-
<InputIcon className="ml-2">
|
|
153
|
+
<InputIcon className="leftInputIcon ml-2">
|
|
152
154
|
{leftIcon}
|
|
153
155
|
</InputIcon>}
|
|
154
156
|
|
|
@@ -161,19 +163,20 @@ const InputElement = forwardRef((props, ref) => {
|
|
|
161
163
|
dataFocusVisible={true}
|
|
162
164
|
variant="outline"
|
|
163
165
|
placeholder={placeholder}
|
|
166
|
+
{...propsToPass}
|
|
164
167
|
/>
|
|
165
168
|
|
|
166
169
|
{rightElement &&
|
|
167
|
-
<InputSlot>{rightElement}</InputSlot>}
|
|
170
|
+
<InputSlot className="rightElementInputSlot">{rightElement}</InputSlot>}
|
|
168
171
|
|
|
169
172
|
{rightIcon && rightIconHandler &&
|
|
170
|
-
<
|
|
171
|
-
<InputIcon className="mr-2">
|
|
173
|
+
<InputSlot onPress={rightIconHandler} className="InputSlot">
|
|
174
|
+
<InputIcon className="rightInputIconWithHandler mr-2">
|
|
172
175
|
{rightIcon}
|
|
173
176
|
</InputIcon>
|
|
174
|
-
</
|
|
177
|
+
</InputSlot>}
|
|
175
178
|
{rightIcon && !rightIconHandler &&
|
|
176
|
-
<InputIcon className="mr-2">
|
|
179
|
+
<InputIcon className="rightInputIcon mr-2">
|
|
177
180
|
{rightIcon}
|
|
178
181
|
</InputIcon>}
|
|
179
182
|
</Input>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useState, useEffect, useRef, } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
HStack,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@project-components/Gluestack';
|
|
6
6
|
import Decimal from 'decimal.js';
|
|
7
7
|
import UiGlobals from '../../../UiGlobals.js';
|
|
8
8
|
import IconButton from '../../Buttons/IconButton.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Radio, RadioGroup,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import testProps from '../../../../Functions/testProps.js';
|
|
6
6
|
import withComponent from '../../../Hoc/withComponent.js';
|
|
7
7
|
import withData from '../../../Hoc/withData.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef, useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectInput, SelectIcon, SelectItem, SelectPortal, SelectTrigger,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import {
|
|
6
6
|
hasWidth,
|
|
7
7
|
hasFlex,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
TextNative,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import UiGlobals from '../../../UiGlobals.js';
|
|
6
6
|
import withComponent from '../../Hoc/withComponent.js';
|
|
7
7
|
import withTooltip from '../../Hoc/withTooltip.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Textarea, TextareaInput,
|
|
4
|
-
} from '
|
|
4
|
+
} from '@project-components/Gluestack';
|
|
5
5
|
import UiGlobals from '../../../UiGlobals.js';
|
|
6
6
|
import withComponent from '../../Hoc/withComponent.js';
|
|
7
7
|
import withTooltip from '../../Hoc/withTooltip.js';
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
HStack,
|
|
5
5
|
Text,
|
|
6
6
|
TextNative,
|
|
7
|
-
} from '
|
|
7
|
+
} from '@project-components/Gluestack';
|
|
8
8
|
import FieldSetContext from '../../Contexts/FieldSetContext.js';
|
|
9
9
|
import useForceUpdate from '../../Hooks/useForceUpdate.js';
|
|
10
10
|
import testProps from '../../Functions/testProps.js';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Text,
|
|
8
8
|
VStack,
|
|
9
9
|
VStackNative,
|
|
10
|
-
} from '
|
|
10
|
+
} from '@project-components/Gluestack';
|
|
11
11
|
import {
|
|
12
12
|
VIEW,
|
|
13
13
|
} from '../../Constants/Commands.js';
|
|
@@ -819,18 +819,18 @@ function Form(props) {
|
|
|
819
819
|
style.width = '50px';
|
|
820
820
|
}
|
|
821
821
|
if (containerWidth > styles.FORM_STACK_ROW_THRESHOLD) {
|
|
822
|
-
element = <HStack className="HStack3 flex-1
|
|
822
|
+
element = <HStack className="HStack3 flex-1">
|
|
823
823
|
<Label style={style}>{requiredIndicator}{label}</Label>
|
|
824
824
|
{element}
|
|
825
825
|
</HStack>;
|
|
826
826
|
} else {
|
|
827
|
-
element = <VStack className="VStack3 flex-1
|
|
827
|
+
element = <VStack className="VStack3 flex-1 mt-3">
|
|
828
828
|
<Label style={style}>{requiredIndicator}{label}</Label>
|
|
829
829
|
{element}
|
|
830
830
|
</VStack>;
|
|
831
831
|
}
|
|
832
832
|
} else if (disableLabels && requiredIndicator) {
|
|
833
|
-
element = <HStack className="HStack3 flex-1
|
|
833
|
+
element = <HStack className="HStack3 flex-1">
|
|
834
834
|
{requiredIndicator}
|
|
835
835
|
{element}
|
|
836
836
|
</HStack>;
|
|
@@ -852,8 +852,8 @@ function Form(props) {
|
|
|
852
852
|
className={`
|
|
853
853
|
HStack4
|
|
854
854
|
flex-none
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
pb-2
|
|
856
|
+
h-[50px]
|
|
857
857
|
${error ? 'bg-[#fdd]' : ''}
|
|
858
858
|
`}
|
|
859
859
|
>
|
|
@@ -1075,7 +1075,7 @@ function Form(props) {
|
|
|
1075
1075
|
editor = <>
|
|
1076
1076
|
{containerWidth >= styles.FORM_ONE_COLUMN_THRESHOLD ? <HStack className="Form-formComponents-HStack p-4 gap-4 justify-center">{formComponents}</HStack> : null}
|
|
1077
1077
|
{containerWidth < styles.FORM_ONE_COLUMN_THRESHOLD ? <VStack className="Form-formComponents-VStack p-4">{formComponents}</VStack> : null}
|
|
1078
|
-
<VStack className="Form-AncillaryComponents m-2 pt-4 px-2">{formAncillaryComponents}</VStack>
|
|
1078
|
+
{formAncillaryComponents.length ? <VStack className="Form-AncillaryComponents m-2 pt-4 px-2">{formAncillaryComponents}</VStack> : null}
|
|
1079
1079
|
</>;
|
|
1080
1080
|
|
|
1081
1081
|
additionalButtons = buildAdditionalButtons(additionalEditButtons);
|
|
@@ -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>;
|