@onehat/ui 0.2.57 → 0.2.59
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/cypress/plugins/index.js +2 -0
- package/cypress/support/commands.js +2 -0
- package/cypress/support/e2e.js +2 -0
- package/cypress.config.js +41 -0
- package/package.json +34 -25
- package/src/Components/Form/Field/CKEditor/CKEditor.js +1 -1
- package/src/Components/Form/Form.js +1 -1
- package/src/Components/Grid/Grid.js +12 -5
- package/src/Components/Grid/GridHeaderRow.js +5 -2
- package/src/Components/Grid/GridRow.js +2 -0
- package/src/Components/Hoc/withContextMenu.js +1 -1
- package/src/Components/Icons/BarsStaggered.js +14 -0
- package/src/Components/Icons/Circle.js +14 -0
- package/src/Components/Icons/Folder.js +14 -0
- package/src/Components/Icons/FolderClosed.js +14 -0
- package/src/Components/Icons/FolderOpen.js +14 -0
- package/src/Components/Icons/FolderTree.js +14 -0
- package/src/Components/Icons/Leaf.js +14 -0
- package/src/Components/Icons/MagnifyingGlass.js +14 -0
- package/src/Components/Icons/collapse.js +17 -0
- package/src/Components/Tree/Tree.js +1143 -0
- package/src/Components/Tree/TreeNode.js +94 -0
- package/src/Constants/Styles.js +14 -0
- package/src/Functions/BankersRound.js +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineConfig } from "cypress";
|
|
2
|
+
import webpackPreprocessor from "@cypress/webpack-preprocessor";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
e2e: {
|
|
6
|
+
experimentalRunAllSpecs: true,
|
|
7
|
+
chromeWebSecurity: false,
|
|
8
|
+
setupNodeEvents(on) {
|
|
9
|
+
const options = webpackPreprocessor.defaultOptions;
|
|
10
|
+
if (!options.module) {
|
|
11
|
+
options.module = {
|
|
12
|
+
rules: [],
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
if (!options.module.rules) {
|
|
16
|
+
options.module.rules = [];
|
|
17
|
+
}
|
|
18
|
+
options.module.rules.push({
|
|
19
|
+
test: /\.(js|jsx|mjs)$/,
|
|
20
|
+
exclude: [/node_modules\/(?!(@onehat)\/).*/],
|
|
21
|
+
use: [{
|
|
22
|
+
loader: 'babel-loader',
|
|
23
|
+
options: {
|
|
24
|
+
cacheDirectory: false,
|
|
25
|
+
presets: [
|
|
26
|
+
'@babel/preset-env'
|
|
27
|
+
],
|
|
28
|
+
plugins: [
|
|
29
|
+
'@babel/plugin-transform-class-properties',
|
|
30
|
+
'@babel/plugin-transform-runtime'
|
|
31
|
+
],
|
|
32
|
+
sourceType: 'unambiguous',
|
|
33
|
+
},
|
|
34
|
+
}],
|
|
35
|
+
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
on('file:preprocessor', webpackPreprocessor(options));
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
});
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.59",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "npx cypress open
|
|
8
|
+
"test": "npx cypress open",
|
|
9
|
+
"test2": "DEBUG=cypress:* npx cypress open",
|
|
10
|
+
"docs": "jsdoc -c ./jsdoc.json -t ./node_modules/ink-docstrap/template -R README.md"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/OneHatRepo/ui.git"
|
|
9
15
|
},
|
|
10
16
|
"keywords": [
|
|
11
17
|
"onehat",
|
|
@@ -19,35 +25,38 @@
|
|
|
19
25
|
},
|
|
20
26
|
"license": "UNLICENSED",
|
|
21
27
|
"dependencies": {
|
|
22
|
-
"@onehat/data": "^1.17.
|
|
23
|
-
"@hookform/resolvers": "^
|
|
28
|
+
"@onehat/data": "^1.17.3",
|
|
29
|
+
"@hookform/resolvers": "^3.1.0",
|
|
24
30
|
"@k-renwick/colour-mixer": "^1.2.1",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
31
|
+
"js-cookie": "^3.0.5",
|
|
32
|
+
"native-base": "^3.4.28",
|
|
33
|
+
"react-hook-form": "^7.44.3",
|
|
34
|
+
"yup": "^1.2.0"
|
|
29
35
|
},
|
|
30
36
|
"peerDependencies": {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
"ckeditor5-custom-build": "file:ckeditor5",
|
|
38
|
+
"react": "*",
|
|
39
|
+
"react-color": "^2.19.3",
|
|
40
|
+
"react-datetime": "^3.2.0",
|
|
41
|
+
"react-draggable": "^4.4.5",
|
|
42
|
+
"react-native-draggable": "^3.3.0",
|
|
43
|
+
"react-dom": "*",
|
|
44
|
+
"react-native": "*"
|
|
39
45
|
},
|
|
40
46
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "^7.
|
|
42
|
-
"@babel/node": "^7.
|
|
43
|
-
"@babel/plugin-
|
|
44
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
45
|
-
"@babel/preset-env": "^7.
|
|
47
|
+
"@babel/core": "^7.22.1",
|
|
48
|
+
"@babel/node": "^7.22.1",
|
|
49
|
+
"@babel/plugin-transform-class-properties": "^7.22.3",
|
|
50
|
+
"@babel/plugin-transform-runtime": "^7.22.4",
|
|
51
|
+
"@babel/preset-env": "^7.22.4",
|
|
46
52
|
"@babel/register": "^7.21.0",
|
|
47
|
-
"@babel/runtime": "^7.
|
|
48
|
-
"@
|
|
53
|
+
"@babel/runtime": "^7.22.3",
|
|
54
|
+
"@ckeditor/ckeditor5-react": "^5.0.6",
|
|
55
|
+
"@cypress/webpack-preprocessor": "^5.17.1",
|
|
49
56
|
"babel-loader": "^9.1.2",
|
|
50
|
-
"cypress": "
|
|
51
|
-
"
|
|
57
|
+
"cypress": "12.13.0",
|
|
58
|
+
"ink-docstrap": "^1.3.2",
|
|
59
|
+
"jsdoc": "^4.0.2",
|
|
60
|
+
"webpack": "^5.85.0"
|
|
52
61
|
}
|
|
53
62
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '../../../../Constants/Input.js';
|
|
8
8
|
import { CKEditor } from '@ckeditor/ckeditor5-react'; // https://ckeditor.com/docs/ckeditor5/latest/installation/frameworks/react.html
|
|
9
9
|
import './ckeditor.css';
|
|
10
|
-
import Editor from 'ckeditor5
|
|
10
|
+
import Editor from '../../../../../ckeditor5/build/ckeditor.js'; // built using https://ckeditor.com/ckeditor-5/online-builder/
|
|
11
11
|
import withValue from '../../../Hoc/withValue.js';
|
|
12
12
|
import withTooltip from '../../../Hoc/withTooltip.js';
|
|
13
13
|
import _ from 'lodash';
|
|
@@ -143,7 +143,7 @@ export function Grid(props) {
|
|
|
143
143
|
onChangeColumnsConfig(config);
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
-
onRowClick = (item,
|
|
146
|
+
onRowClick = (item, e) => {
|
|
147
147
|
const
|
|
148
148
|
{
|
|
149
149
|
shiftKey,
|
|
@@ -276,19 +276,22 @@ export function Grid(props) {
|
|
|
276
276
|
return <Pressable
|
|
277
277
|
// {...testProps(Repository ? Repository.schema.name + '-' + item.id : item.id)}
|
|
278
278
|
onPress={(e) => {
|
|
279
|
+
if (e.preventDefault && e.cancelable) {
|
|
280
|
+
e.preventDefault();
|
|
281
|
+
}
|
|
279
282
|
if (isHeaderRow || isReorderMode) {
|
|
280
283
|
return
|
|
281
284
|
}
|
|
282
285
|
switch (e.detail) {
|
|
283
286
|
case 1: // single click
|
|
284
|
-
onRowClick(item,
|
|
287
|
+
onRowClick(item, e); // sets selection
|
|
285
288
|
if (onEditorRowClick) {
|
|
286
289
|
onEditorRowClick(item, index, e);
|
|
287
290
|
}
|
|
288
291
|
break;
|
|
289
292
|
case 2: // double click
|
|
290
293
|
if (!isSelected) { // If a row was already selected when double-clicked, the first click will deselect it,
|
|
291
|
-
onRowClick(item,
|
|
294
|
+
onRowClick(item, e); // so reselect it
|
|
292
295
|
}
|
|
293
296
|
if (onEdit) {
|
|
294
297
|
onEdit();
|
|
@@ -300,9 +303,13 @@ export function Grid(props) {
|
|
|
300
303
|
}
|
|
301
304
|
}}
|
|
302
305
|
onLongPress={(e) => {
|
|
306
|
+
if (e.preventDefault && e.cancelable) {
|
|
307
|
+
e.preventDefault();
|
|
308
|
+
}
|
|
303
309
|
if (isHeaderRow || isReorderMode) {
|
|
304
310
|
return
|
|
305
311
|
}
|
|
312
|
+
|
|
306
313
|
// context menu
|
|
307
314
|
const selection = [item];
|
|
308
315
|
setSelection(selection);
|
|
@@ -310,7 +317,7 @@ export function Grid(props) {
|
|
|
310
317
|
onEditorRowClick(item, index, e);
|
|
311
318
|
}
|
|
312
319
|
if (onContextMenu) {
|
|
313
|
-
onContextMenu(item,
|
|
320
|
+
onContextMenu(item, e, selection, setSelection);
|
|
314
321
|
}
|
|
315
322
|
}}
|
|
316
323
|
flexDirection="row"
|
|
@@ -737,7 +744,7 @@ export function Grid(props) {
|
|
|
737
744
|
Repository.off('changeFilters', onChangeFilters);
|
|
738
745
|
Repository.off('changeSorters', onChangeSorters);
|
|
739
746
|
};
|
|
740
|
-
}, [
|
|
747
|
+
}, []);
|
|
741
748
|
|
|
742
749
|
useEffect(() => {
|
|
743
750
|
if (!Repository) {
|
|
@@ -319,6 +319,9 @@ export default function GridHeaderRow(props) {
|
|
|
319
319
|
return <Pressable
|
|
320
320
|
key={ix}
|
|
321
321
|
onPress={(e) => {
|
|
322
|
+
if (e.preventDefault) {
|
|
323
|
+
e.preventDefault();
|
|
324
|
+
}
|
|
322
325
|
if (isBlocked.current) { // withDraggable initiates block
|
|
323
326
|
return;
|
|
324
327
|
}
|
|
@@ -369,8 +372,8 @@ export default function GridHeaderRow(props) {
|
|
|
369
372
|
textOverflow="ellipsis"
|
|
370
373
|
flex={1}
|
|
371
374
|
h="100%"
|
|
372
|
-
px={
|
|
373
|
-
py={
|
|
375
|
+
px={styles.GRID_HEADER_CELL_PX}
|
|
376
|
+
py={styles.GRID_HEADER_CELL_PY}
|
|
374
377
|
alignItems="center"
|
|
375
378
|
justifyContent="center"
|
|
376
379
|
numberOfLines={1}
|
|
@@ -100,6 +100,8 @@ export default function GridRow(props) {
|
|
|
100
100
|
alignSelf="center"
|
|
101
101
|
style={{ userSelect: 'none', }}
|
|
102
102
|
fontSize={styles.GRID_CELL_FONTSIZE}
|
|
103
|
+
px={styles.GRID_CELL_PX}
|
|
104
|
+
py={styles.GRID_CELL_PY}
|
|
103
105
|
numberOfLines={1}
|
|
104
106
|
ellipsizeMode="head"
|
|
105
107
|
{...propsToPass}
|
|
@@ -30,7 +30,7 @@ export default function withContextMenu(WrappedComponent) {
|
|
|
30
30
|
[contextMenuX, setContextMenuX] = useState(0),
|
|
31
31
|
[contextMenuY, setContextMenuY] = useState(0),
|
|
32
32
|
[contextMenuItemComponents, setContextMenuItemComponents] = useState([]),
|
|
33
|
-
onContextMenu = (entity,
|
|
33
|
+
onContextMenu = (entity, e, selection, setSelection) => {
|
|
34
34
|
if (disableContextMenu) {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
|
|
9
|
+
<Path d="M0 96c0-17.7 14.3-32 32-32h384c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zm64 160c0-17.7 14.3-32 32-32h384c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm384 160c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h384c17.7 0 32 14.3 32 32z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
|
|
9
|
+
<Path d="M256 512a256 256 0 100-512 256 256 0 100 512z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
|
|
9
|
+
<Path d="M64 480h384c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8l-19.2-25.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
|
|
9
|
+
<Path d="M448 480H64c-35.3 0-64-28.7-64-64V192h512v224c0 35.3-28.7 64-64 64zm64-320H0V96c0-35.3 28.7-64 64-64h128c20.1 0 39.1 9.5 51.2 25.6l19.2 25.6c6 8.1 15.5 12.8 25.6 12.8h160c35.3 0 64 28.7 64 64z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}>
|
|
9
|
+
<Path d="M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1.1-32.1s-16.2-16-27.7-16H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16h117.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48v-32c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7l-26.5-26.6c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h320z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}>
|
|
9
|
+
<Path d="M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32v352c0 35.3 28.7 64 64 64h192v-64H64V160h192V96H64V32zm224 160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32h-98.7c-8.5 0-16.6-3.4-22.6-9.4L409.4 9.4c-6-6-14.1-9.4-22.6-9.4H320c-17.7 0-32 14.3-32 32v160zm0 288c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32h-98.7c-8.5 0-16.6-3.4-22.6-9.4l-13.3-13.3c-6-6-14.1-9.4-22.6-9.4H320c-17.7 0-32 14.3-32 32V480z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
|
|
9
|
+
<Path d="M272 96c-78.6 0-145.1 51.5-167.7 122.5 33.6-17 71.5-26.5 111.7-26.5h88c8.8 0 16 7.2 16 16s-7.2 16-16 16h-88c-16.6 0-32.7 1.9-48.2 5.4-25.9 5.9-50 16.4-71.4 30.7C38.3 298.8 0 364.9 0 440v16c0 13.3 10.7 24 24 24s24-10.7 24-24v-16c0-48.7 20.7-92.5 53.8-123.2C121.6 392.3 190.3 448 272 448h1c132.1-.7 239-130.9 239-291.4 0-42.6-7.5-83.1-21.1-119.6-2.6-6.9-12.7-6.6-16.2-.1C455.9 72.1 418.7 96 376 96H272z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.
|
|
2
|
+
import * as React from "react"
|
|
3
|
+
import Svg, { Path } from "react-native-svg"
|
|
4
|
+
import { Icon } from 'native-base';
|
|
5
|
+
|
|
6
|
+
function SvgComponent(props) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
|
|
9
|
+
<Path d="M416 208c0 45.9-14.9 88.3-40 122.7l126.6 126.7c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352a144 144 0 100-288 144 144 0 100 288z" />
|
|
10
|
+
</Icon>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgComponent
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import Svg, { Path } from "react-native-svg"
|
|
3
|
+
import { Icon } from 'native-base';
|
|
4
|
+
|
|
5
|
+
function SvgComponent(props) {
|
|
6
|
+
return (
|
|
7
|
+
<Icon
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
viewBox="0 0 384.15 488.05"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<Path d="M214.77 214.78l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-137.4 137.3L54.68 9.38c-12.5-12.51-32.81-12.51-45.31 0-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0l.1.1zM374.68 433.37l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160.01 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l137.4-137.4 137.4 137.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-.1.1z" />
|
|
13
|
+
</Icon>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default SvgComponent
|