@teselagen/ui 0.7.21 → 0.7.22
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/FormComponents/tryToMatchSchemas.d.ts +1 -1
- package/index.cjs.js +19694 -19731
- package/index.es.js +19688 -19725
- package/package.json +6 -1
- package/src/DataTable/SearchBar.js +7 -2
- package/src/ExcelCell.js +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.22",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@teselagen/file-utils": "0.3.18",
|
|
15
15
|
"@teselagen/bounce-loader": "0.3.11",
|
|
16
|
+
"@blueprintjs/core": "3.54.0",
|
|
17
|
+
"@blueprintjs/datetime": "^3.24.1",
|
|
16
18
|
"@blueprintjs/icons": "3.33.0",
|
|
17
19
|
"@blueprintjs/select": "3.18.11",
|
|
18
20
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -38,11 +40,13 @@
|
|
|
38
40
|
"mobx": "^6.10.2",
|
|
39
41
|
"mock-fs": "5.2.0",
|
|
40
42
|
"nanoid": "^4.0.0",
|
|
43
|
+
"papaparse": "5.3.2",
|
|
41
44
|
"qs": "^6.9.6",
|
|
42
45
|
"react": "^18.3.1",
|
|
43
46
|
"react-color": "^2.19.3",
|
|
44
47
|
"react-dom": "^18.3.1",
|
|
45
48
|
"react-dropzone": "^11.4.2",
|
|
49
|
+
"react-markdown": "9.0.1",
|
|
46
50
|
"react-redux": "^8.0.5",
|
|
47
51
|
"react-rnd": "^10.2.4",
|
|
48
52
|
"react-router-dom": "4",
|
|
@@ -51,6 +55,7 @@
|
|
|
51
55
|
"redux": "^4.1.2",
|
|
52
56
|
"redux-form": "^8.3.10",
|
|
53
57
|
"redux-thunk": "2.4.1",
|
|
58
|
+
"remark-gfm": "^4.0.0",
|
|
54
59
|
"tippy.js": "^6.3.7",
|
|
55
60
|
"url-join": "^4.0.1",
|
|
56
61
|
"use-deep-compare-effect": "^1.6.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState } from "react";
|
|
2
2
|
import { Button, Classes, Spinner } from "@blueprintjs/core";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { onEnterHelper } from "../utils/handlerHelpers";
|
|
@@ -13,6 +13,7 @@ const SearchBar = ({
|
|
|
13
13
|
autoFocusSearch,
|
|
14
14
|
noForm
|
|
15
15
|
}) => {
|
|
16
|
+
const [inputText, setInputText] = useState(searchInput);
|
|
16
17
|
if (noForm) {
|
|
17
18
|
console.error(
|
|
18
19
|
"The search bar requires the component to be wrapped in a form"
|
|
@@ -36,7 +37,7 @@ const SearchBar = ({
|
|
|
36
37
|
minimal
|
|
37
38
|
icon="search"
|
|
38
39
|
onClick={() => {
|
|
39
|
-
setSearchTerm(
|
|
40
|
+
setSearchTerm(inputText);
|
|
40
41
|
}}
|
|
41
42
|
/>
|
|
42
43
|
);
|
|
@@ -48,6 +49,10 @@ const SearchBar = ({
|
|
|
48
49
|
loading={loading}
|
|
49
50
|
type="search"
|
|
50
51
|
defaultValue={searchInput}
|
|
52
|
+
value={inputText}
|
|
53
|
+
onChange={e => {
|
|
54
|
+
setInputText(e.target.value);
|
|
55
|
+
}}
|
|
51
56
|
className={classNames("datatable-search-input", Classes.ROUND)}
|
|
52
57
|
placeholder="Search..."
|
|
53
58
|
{...onEnterHelper(e => {
|
package/src/ExcelCell.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint react/jsx-no-bind: 0 */
|
|
2
|
-
import { Popover } from "@blueprintjs/core";
|
|
3
|
-
import React, { useState } from "react";
|
|
4
|
-
|
|
5
|
-
export default function ExcelCell() {
|
|
6
|
-
const [v, setV] = useState("");
|
|
7
|
-
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
|
|
8
|
-
return (
|
|
9
|
-
<Popover
|
|
10
|
-
onClose={() => {
|
|
11
|
-
setIsPopoverOpen(false);
|
|
12
|
-
}}
|
|
13
|
-
isOpen={isPopoverOpen}
|
|
14
|
-
content={<div>Sum</div>}
|
|
15
|
-
>
|
|
16
|
-
<div
|
|
17
|
-
style={{
|
|
18
|
-
border: "1px solid #ccc",
|
|
19
|
-
padding: 5,
|
|
20
|
-
width: 100,
|
|
21
|
-
height: 30
|
|
22
|
-
}}
|
|
23
|
-
contentEditable
|
|
24
|
-
onInput={e => {
|
|
25
|
-
const text = e.currentTarget.textContent;
|
|
26
|
-
|
|
27
|
-
if (text === "=") {
|
|
28
|
-
// open a popover
|
|
29
|
-
setIsPopoverOpen(true);
|
|
30
|
-
}
|
|
31
|
-
setV(text);
|
|
32
|
-
}}
|
|
33
|
-
>
|
|
34
|
-
{v}
|
|
35
|
-
</div>
|
|
36
|
-
</Popover>
|
|
37
|
-
);
|
|
38
|
-
}
|