@teselagen/ui 0.7.21 → 0.7.23

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/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
- }