@onehat/ui 0.4.0 → 0.4.2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"js-cookie": "^3.0.5",
|
|
67
67
|
"native-base": "^3.4.28",
|
|
68
68
|
"react-hook-form": "^7.49.2",
|
|
69
|
+
"react-redux": "^9.1.2",
|
|
69
70
|
"tailwindcss": "^3.4.13",
|
|
70
71
|
"yup": "^1.2.0"
|
|
71
72
|
},
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
EDITOR_MODE__VIEW,
|
|
20
20
|
EDITOR_MODE__ADD,
|
|
21
21
|
EDITOR_MODE__EDIT,
|
|
22
|
-
} from '../../../
|
|
22
|
+
} from '../../../Constants/Editor.js';
|
|
23
23
|
import { Form, Formik, Field } from "formik"; // https://formik.org/docs/overview
|
|
24
24
|
import { useForm, Controller } from 'react-hook-form'; // https://react-hook-form.com/api/
|
|
25
25
|
import * as yup from 'yup'; // https://github.com/jquense/yup#string
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import UiGlobals from '../../../UiGlobals.js';
|
|
10
10
|
import IconButton from '../../Buttons/IconButton.js';
|
|
11
11
|
import Na from '../../Icons/Na.js';
|
|
12
|
-
import testProps from '../../../
|
|
12
|
+
import testProps from '../../../Functions/testProps.js';
|
|
13
13
|
import withComponent from '../../Hoc/withComponent.js';
|
|
14
14
|
import withTooltip from '../../Hoc/withTooltip.js';
|
|
15
15
|
import withValue from '../../Hoc/withValue.js';
|
|
@@ -13,7 +13,7 @@ import * as colourMixer from '@k-renwick/colour-mixer';
|
|
|
13
13
|
import getComponentFromType from '../../Functions/getComponentFromType.js';
|
|
14
14
|
import UiGlobals from '../../UiGlobals.js';
|
|
15
15
|
import { withDragSource, withDropTarget } from '../Hoc/withDnd.js';
|
|
16
|
-
import testProps from '
|
|
16
|
+
import testProps from '../../Functions/testProps.js';
|
|
17
17
|
import AngleRight from '../Icons/AngleRight.js';
|
|
18
18
|
import RowDragHandle from './RowDragHandle.js';
|
|
19
19
|
import _ from 'lodash';
|
package/src/Constants/UiModes.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
COLLAPSED,
|
|
3
3
|
EXPANDED,
|
|
4
4
|
LEAF,
|
|
5
|
-
} from '../
|
|
6
|
-
import BigCircle from '../
|
|
7
|
-
import FolderClosed from '../
|
|
8
|
-
import FolderOpen from '../
|
|
9
|
-
import Camera from '../
|
|
5
|
+
} from '../Constants/Tree.js';
|
|
6
|
+
import BigCircle from '../Components/Icons/BigCircle.js';
|
|
7
|
+
import FolderClosed from '../Components/Icons/ChevronRight.js';
|
|
8
|
+
import FolderOpen from '../Components/Icons/ChevronDown.js';
|
|
9
|
+
import Camera from '../Components/Icons/Camera.js';
|
|
10
10
|
|
|
11
11
|
export default function getNodeIcon(which, item) {
|
|
12
12
|
let icon;
|