ag-common 0.0.797 → 0.0.799
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/dist/ui/components/DarkMode/Base.js +6 -36
- package/dist/ui/components/Markdown/index.js +4 -29
- package/dist/ui/components/index.d.ts +0 -33
- package/dist/ui/components/index.js +0 -33
- package/dist/ui/components/shadcn/button.d.ts +1 -1
- package/dist/ui/components/shadcn/dropdown-list.d.ts +13 -0
- package/dist/ui/components/shadcn/dropdown-list.js +57 -0
- package/dist/ui/components/shadcn/sheet.d.ts +1 -1
- package/dist/ui/icons/index.d.ts +1 -6
- package/dist/ui/icons/index.js +1 -4
- package/dist/ui/styles/common.d.ts +21 -14
- package/dist/ui/styles/common.js +44 -45
- package/dist/ui/styles/index.d.ts +0 -1
- package/dist/ui/styles/index.js +0 -1
- package/package.json +8 -13
- package/dist/ui/components/BarChart/Base.d.ts +0 -8
- package/dist/ui/components/BarChart/Base.js +0 -49
- package/dist/ui/components/BarChart/Item.d.ts +0 -12
- package/dist/ui/components/BarChart/Item.js +0 -38
- package/dist/ui/components/BarChart/Legend.d.ts +0 -8
- package/dist/ui/components/BarChart/Legend.js +0 -83
- package/dist/ui/components/BarChart/TooltipContent.d.ts +0 -8
- package/dist/ui/components/BarChart/TooltipContent.js +0 -51
- package/dist/ui/components/BarChart/getLegendItems.d.ts +0 -17
- package/dist/ui/components/BarChart/getLegendItems.js +0 -24
- package/dist/ui/components/BarChart/index.d.ts +0 -2
- package/dist/ui/components/BarChart/index.js +0 -17
- package/dist/ui/components/BarChart/types.d.ts +0 -9
- package/dist/ui/components/BarChart/types.js +0 -2
- package/dist/ui/components/BorderGradient/index.d.ts +0 -21
- package/dist/ui/components/BorderGradient/index.js +0 -77
- package/dist/ui/components/Chevron/index.d.ts +0 -12
- package/dist/ui/components/Chevron/index.js +0 -45
- package/dist/ui/components/Close/index.d.ts +0 -6
- package/dist/ui/components/Close/index.js +0 -41
- package/dist/ui/components/Confirm/Dialog.d.ts +0 -7
- package/dist/ui/components/Confirm/Dialog.js +0 -54
- package/dist/ui/components/Confirm/Modal.d.ts +0 -3
- package/dist/ui/components/Confirm/Modal.js +0 -53
- package/dist/ui/components/Confirm/index.d.ts +0 -3
- package/dist/ui/components/Confirm/index.js +0 -18
- package/dist/ui/components/Confirm/types.d.ts +0 -18
- package/dist/ui/components/Confirm/types.js +0 -2
- package/dist/ui/components/DropdownList/Base.d.ts +0 -3
- package/dist/ui/components/DropdownList/Base.js +0 -178
- package/dist/ui/components/DropdownList/Dialog.d.ts +0 -7
- package/dist/ui/components/DropdownList/Dialog.js +0 -54
- package/dist/ui/components/DropdownList/index.d.ts +0 -2
- package/dist/ui/components/DropdownList/index.js +0 -18
- package/dist/ui/components/DropdownList/types.d.ts +0 -37
- package/dist/ui/components/DropdownList/types.js +0 -2
- package/dist/ui/components/FlexColumn/index.d.ts +0 -3
- package/dist/ui/components/FlexColumn/index.js +0 -31
- package/dist/ui/components/FlexRow/index.d.ts +0 -3
- package/dist/ui/components/FlexRow/index.js +0 -37
- package/dist/ui/components/HorizontalScrollBar/index.d.ts +0 -5
- package/dist/ui/components/HorizontalScrollBar/index.js +0 -66
- package/dist/ui/components/Icon/index.d.ts +0 -31
- package/dist/ui/components/Icon/index.js +0 -69
- package/dist/ui/components/Image/index.d.ts +0 -13
- package/dist/ui/components/Image/index.js +0 -104
- package/dist/ui/components/InfiniteScroll/index.d.ts +0 -17
- package/dist/ui/components/InfiniteScroll/index.js +0 -99
- package/dist/ui/components/KebabDots/index.d.ts +0 -5
- package/dist/ui/components/KebabDots/index.js +0 -16
- package/dist/ui/components/LineChart/Base.d.ts +0 -3
- package/dist/ui/components/LineChart/Base.js +0 -121
- package/dist/ui/components/LineChart/LegendX.d.ts +0 -11
- package/dist/ui/components/LineChart/LegendX.js +0 -107
- package/dist/ui/components/LineChart/LegendY.d.ts +0 -7
- package/dist/ui/components/LineChart/LegendY.js +0 -44
- package/dist/ui/components/LineChart/TooltipContent.d.ts +0 -8
- package/dist/ui/components/LineChart/TooltipContent.js +0 -52
- package/dist/ui/components/LineChart/dateHelpers.d.ts +0 -3
- package/dist/ui/components/LineChart/dateHelpers.js +0 -36
- package/dist/ui/components/LineChart/getLegendItems.d.ts +0 -18
- package/dist/ui/components/LineChart/getLegendItems.js +0 -75
- package/dist/ui/components/LineChart/index.d.ts +0 -2
- package/dist/ui/components/LineChart/index.js +0 -17
- package/dist/ui/components/LineChart/interpolate.d.ts +0 -17
- package/dist/ui/components/LineChart/interpolate.js +0 -58
- package/dist/ui/components/LineChart/types.d.ts +0 -32
- package/dist/ui/components/LineChart/types.js +0 -2
- package/dist/ui/components/Loader/index.d.ts +0 -15
- package/dist/ui/components/Loader/index.js +0 -93
- package/dist/ui/components/MinSidebar/index.d.ts +0 -13
- package/dist/ui/components/MinSidebar/index.js +0 -93
- package/dist/ui/components/Modal/Dialog.d.ts +0 -8
- package/dist/ui/components/Modal/Dialog.js +0 -47
- package/dist/ui/components/Modal/Modal.d.ts +0 -7
- package/dist/ui/components/Modal/Modal.js +0 -178
- package/dist/ui/components/Modal/index.d.ts +0 -3
- package/dist/ui/components/Modal/index.js +0 -18
- package/dist/ui/components/Modal/types.d.ts +0 -16
- package/dist/ui/components/Modal/types.js +0 -2
- package/dist/ui/components/PieChart/index.d.ts +0 -11
- package/dist/ui/components/PieChart/index.js +0 -43
- package/dist/ui/components/ProgressBar/index.d.ts +0 -15
- package/dist/ui/components/ProgressBar/index.js +0 -96
- package/dist/ui/components/Prompt/Dialog.d.ts +0 -2
- package/dist/ui/components/Prompt/Dialog.js +0 -26
- package/dist/ui/components/Prompt/Modal.d.ts +0 -3
- package/dist/ui/components/Prompt/Modal.js +0 -111
- package/dist/ui/components/Prompt/index.d.ts +0 -3
- package/dist/ui/components/Prompt/index.js +0 -18
- package/dist/ui/components/Prompt/types.d.ts +0 -23
- package/dist/ui/components/Prompt/types.js +0 -2
- package/dist/ui/components/PulseRing/index.d.ts +0 -19
- package/dist/ui/components/PulseRing/index.js +0 -75
- package/dist/ui/components/RowOrColumn/index.d.ts +0 -15
- package/dist/ui/components/RowOrColumn/index.js +0 -46
- package/dist/ui/components/Search/AutoHideSearchBox.d.ts +0 -8
- package/dist/ui/components/Search/AutoHideSearchBox.js +0 -114
- package/dist/ui/components/Search/Dialog.d.ts +0 -7
- package/dist/ui/components/Search/Dialog.js +0 -60
- package/dist/ui/components/Search/Inline.d.ts +0 -3
- package/dist/ui/components/Search/Inline.js +0 -137
- package/dist/ui/components/Search/Modal.d.ts +0 -3
- package/dist/ui/components/Search/Modal.js +0 -28
- package/dist/ui/components/Search/SearchBox.d.ts +0 -16
- package/dist/ui/components/Search/SearchBox.js +0 -107
- package/dist/ui/components/Search/index.d.ts +0 -6
- package/dist/ui/components/Search/index.js +0 -21
- package/dist/ui/components/Search/types.d.ts +0 -49
- package/dist/ui/components/Search/types.js +0 -2
- package/dist/ui/components/Sidebar/index.d.ts +0 -11
- package/dist/ui/components/Sidebar/index.js +0 -194
- package/dist/ui/components/SparkLine/index.d.ts +0 -16
- package/dist/ui/components/SparkLine/index.js +0 -64
- package/dist/ui/components/TabBar/index.d.ts +0 -27
- package/dist/ui/components/TabBar/index.js +0 -100
- package/dist/ui/components/Table/index.d.ts +0 -11
- package/dist/ui/components/Table/index.js +0 -49
- package/dist/ui/components/TextEdit/CheckboxEdit.d.ts +0 -14
- package/dist/ui/components/TextEdit/CheckboxEdit.js +0 -104
- package/dist/ui/components/TextEdit/ColourEdit.d.ts +0 -5
- package/dist/ui/components/TextEdit/ColourEdit.js +0 -63
- package/dist/ui/components/TextEdit/LengthBox.d.ts +0 -5
- package/dist/ui/components/TextEdit/LengthBox.js +0 -28
- package/dist/ui/components/TextEdit/ListboxEdit.d.ts +0 -14
- package/dist/ui/components/TextEdit/ListboxEdit.js +0 -61
- package/dist/ui/components/TextEdit/TextEdit.d.ts +0 -3
- package/dist/ui/components/TextEdit/TextEdit.js +0 -145
- package/dist/ui/components/TextEdit/common.d.ts +0 -19
- package/dist/ui/components/TextEdit/common.js +0 -61
- package/dist/ui/components/TextEdit/index.d.ts +0 -5
- package/dist/ui/components/TextEdit/index.js +0 -20
- package/dist/ui/components/TextEdit/types.d.ts +0 -65
- package/dist/ui/components/TextEdit/types.js +0 -2
- package/dist/ui/components/TextWithButton/index.d.ts +0 -10
- package/dist/ui/components/TextWithButton/index.js +0 -89
- package/dist/ui/components/Timeline/index.d.ts +0 -22
- package/dist/ui/components/Timeline/index.js +0 -72
- package/dist/ui/components/TimelineChart/index.d.ts +0 -21
- package/dist/ui/components/TimelineChart/index.js +0 -63
- package/dist/ui/components/TreeChart/TooltipContent.d.ts +0 -7
- package/dist/ui/components/TreeChart/TooltipContent.js +0 -34
- package/dist/ui/components/TreeChart/base.d.ts +0 -3
- package/dist/ui/components/TreeChart/base.js +0 -144
- package/dist/ui/components/TreeChart/helpers.d.ts +0 -4
- package/dist/ui/components/TreeChart/helpers.js +0 -41
- package/dist/ui/components/TreeChart/index.d.ts +0 -2
- package/dist/ui/components/TreeChart/index.js +0 -17
- package/dist/ui/components/TreeChart/types.d.ts +0 -27
- package/dist/ui/components/TreeChart/types.js +0 -2
- package/dist/ui/components/UserImage/index.d.ts +0 -26
- package/dist/ui/components/UserImage/index.js +0 -109
- package/dist/ui/icons/CrossIcon.d.ts +0 -5
- package/dist/ui/icons/CrossIcon.js +0 -24
- package/dist/ui/styles/standaloneStyles.d.ts +0 -24
- package/dist/ui/styles/standaloneStyles.js +0 -69
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.Sidebar = void 0;
|
|
41
|
-
const react_1 = require("@emotion/react");
|
|
42
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
43
|
-
const react_2 = __importStar(require("react"));
|
|
44
|
-
const helpers_1 = require("../../helpers");
|
|
45
|
-
const Hamburger_1 = require("../../icons/Hamburger");
|
|
46
|
-
const common_1 = require("../../styles/common");
|
|
47
|
-
const media_1 = require("../../styles/media");
|
|
48
|
-
const Chevron_1 = require("../Chevron");
|
|
49
|
-
const closedSidebarHover = (0, react_1.css) `
|
|
50
|
-
padding-left: 0.5rem;
|
|
51
|
-
width: 0.5rem;
|
|
52
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
&:hover,
|
|
55
|
-
&:hover [data-hover='true'] {
|
|
56
|
-
background-color: #ccc;
|
|
57
|
-
}
|
|
58
|
-
&:hover {
|
|
59
|
-
border-right: solid 1px #999;
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
const Base = styled_1.default.div `
|
|
63
|
-
position: sticky;
|
|
64
|
-
top: 0;
|
|
65
|
-
transition: all 200ms;
|
|
66
|
-
border-right: solid 1px #ccc;
|
|
67
|
-
height: 100vh;
|
|
68
|
-
z-index: 1;
|
|
69
|
-
|
|
70
|
-
${common_1.NoTextSelect};
|
|
71
|
-
&:hover {
|
|
72
|
-
[data-type='content-block'] {
|
|
73
|
-
left: 1rem;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&[data-open='true'] {
|
|
78
|
-
width: fit-content;
|
|
79
|
-
|
|
80
|
-
@media ${media_1.smallScreen} {
|
|
81
|
-
max-width: unset;
|
|
82
|
-
position: fixed;
|
|
83
|
-
top: 0;
|
|
84
|
-
left: 0;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
&[data-open='false'] {
|
|
88
|
-
${closedSidebarHover};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:not([data-open]) {
|
|
92
|
-
@media ${media_1.smallScreen} {
|
|
93
|
-
${closedSidebarHover};
|
|
94
|
-
}
|
|
95
|
-
@media ${media_1.bigScreen} {
|
|
96
|
-
width: fit-content;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
`;
|
|
100
|
-
const closedContentBlockOffScreen = (0, react_1.css) `
|
|
101
|
-
left: -100vw;
|
|
102
|
-
transition: left 200ms;
|
|
103
|
-
height: 100%;
|
|
104
|
-
`;
|
|
105
|
-
const ContentBlock = styled_1.default.div `
|
|
106
|
-
${closedContentBlockOffScreen};
|
|
107
|
-
&[data-open='false'] {
|
|
108
|
-
position: absolute;
|
|
109
|
-
top: 0;
|
|
110
|
-
z-index: 1;
|
|
111
|
-
width: fit-content;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:not([data-open]) {
|
|
115
|
-
@media ${media_1.smallScreen} {
|
|
116
|
-
position: absolute;
|
|
117
|
-
${closedContentBlockOffScreen};
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`;
|
|
121
|
-
const Content = styled_1.default.div `
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-flow: column;
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
|
|
127
|
-
&[data-open='false'] {
|
|
128
|
-
filter: drop-shadow(1px 1px 0.5rem #555);
|
|
129
|
-
border-radius: 1rem;
|
|
130
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
131
|
-
}
|
|
132
|
-
`;
|
|
133
|
-
const HamburgerB = styled_1.default.div `
|
|
134
|
-
position: absolute;
|
|
135
|
-
transition: all 200ms;
|
|
136
|
-
z-index: 2;
|
|
137
|
-
|
|
138
|
-
&[data-hide-on-big='true'] {
|
|
139
|
-
@media ${media_1.bigScreen} {
|
|
140
|
-
display: none;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&[data-open='false'] {
|
|
145
|
-
top: 0.5rem;
|
|
146
|
-
left: 0.25rem;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
:not([data-open]) {
|
|
150
|
-
@media ${media_1.bigScreen} {
|
|
151
|
-
top: 0.5rem;
|
|
152
|
-
right: -0.75rem;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
&[data-open='true'] {
|
|
156
|
-
top: 0.5rem;
|
|
157
|
-
right: -0.75rem;
|
|
158
|
-
}
|
|
159
|
-
display: flex;
|
|
160
|
-
justify-content: center;
|
|
161
|
-
align-items: center;
|
|
162
|
-
width: 1.5rem;
|
|
163
|
-
height: 1.5rem;
|
|
164
|
-
background-color: rgba(255, 255, 255, 0.9);
|
|
165
|
-
padding: 0.25rem;
|
|
166
|
-
&:hover {
|
|
167
|
-
background-color: rgba(255, 255, 255, 0.7);
|
|
168
|
-
}
|
|
169
|
-
border-radius: 50%;
|
|
170
|
-
border: solid 1px rgba(0, 0, 0, 0.5);
|
|
171
|
-
cursor: pointer;
|
|
172
|
-
`;
|
|
173
|
-
const ChevronStyled = (0, styled_1.default)(Chevron_1.Chevron) `
|
|
174
|
-
svg {
|
|
175
|
-
fill: #555;
|
|
176
|
-
}
|
|
177
|
-
`;
|
|
178
|
-
const Sidebar = ({ children, className, mode = 'defaultClosed', }) => {
|
|
179
|
-
const ref = (0, react_2.useRef)(null);
|
|
180
|
-
const [open, setOpen] = (0, react_2.useState)(mode === 'defaultClosed' ? false : null);
|
|
181
|
-
(0, helpers_1.useOnClickOutside)({ ref, disabled: () => !open || window.innerWidth > media_1.smallScreenPx }, () => {
|
|
182
|
-
setOpen(false);
|
|
183
|
-
});
|
|
184
|
-
return (react_2.default.createElement(Base, { "data-type": "sidebar", className: className, "data-open": open, onClick: () => !open && setOpen(true), "data-hover": true, ref: ref },
|
|
185
|
-
react_2.default.createElement(HamburgerB, { "data-hide-on-big": mode === 'fixedOpen', "data-open": open, onClick: (e) => {
|
|
186
|
-
e.stopPropagation();
|
|
187
|
-
setOpen(!open);
|
|
188
|
-
}, "data-hover": true }, open ? react_2.default.createElement(ChevronStyled, { point: "left", width: "100%" }) : react_2.default.createElement(Hamburger_1.Hamburger, null)),
|
|
189
|
-
react_2.default.createElement(ContentBlock, { "data-type": "content-block", "data-open": open },
|
|
190
|
-
react_2.default.createElement(Content, { "data-type": "content", "data-open": open, onClick: (e) => {
|
|
191
|
-
e.stopPropagation();
|
|
192
|
-
} }, children))));
|
|
193
|
-
};
|
|
194
|
-
exports.Sidebar = Sidebar;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ISparkLine {
|
|
3
|
-
/**
|
|
4
|
-
* default #4d76ff
|
|
5
|
-
*/
|
|
6
|
-
pointColour?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
data: TSparkLineData[];
|
|
9
|
-
pointTitleF?: (p: TSparkLineData) => string;
|
|
10
|
-
title?: string;
|
|
11
|
-
}
|
|
12
|
-
export type TSparkLineData = {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
};
|
|
16
|
-
export declare const SparkLine: (p: ISparkLine) => React.JSX.Element;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.SparkLine = void 0;
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const array_1 = require("../../../common/helpers/array");
|
|
11
|
-
const math_1 = require("../../../common/helpers/math");
|
|
12
|
-
const barWidth = 2;
|
|
13
|
-
const Base = styled_1.default.div `
|
|
14
|
-
width: calc(100% - 1px);
|
|
15
|
-
height: calc(100% - 1px);
|
|
16
|
-
border: solid 1px #666;
|
|
17
|
-
padding: 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
align-items: flex-end;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
`;
|
|
23
|
-
const Points = styled_1.default.div `
|
|
24
|
-
position: relative;
|
|
25
|
-
width: calc(100% - ${barWidth}px);
|
|
26
|
-
height: calc(100% - ${barWidth}px);
|
|
27
|
-
margin-left: ${barWidth}px;
|
|
28
|
-
`;
|
|
29
|
-
const Point = styled_1.default.div `
|
|
30
|
-
position: absolute;
|
|
31
|
-
width: ${barWidth}px;
|
|
32
|
-
`;
|
|
33
|
-
const SparkLine = (p) => {
|
|
34
|
-
const { data: raw, pointColour = '#4d76ff' } = p;
|
|
35
|
-
const xMin = Math.min(...raw.map((d) => d.x));
|
|
36
|
-
const xMax = Math.max(...raw.map((d) => d.x));
|
|
37
|
-
const yMin = Math.min(...raw.map((d) => d.y));
|
|
38
|
-
const yMax = Math.max(...raw.map((d) => d.y));
|
|
39
|
-
const data = (0, array_1.distinctBy)(raw.map((orig) => ({
|
|
40
|
-
x: (0, math_1.rangePercentage)({
|
|
41
|
-
value: orig.x,
|
|
42
|
-
min: xMin,
|
|
43
|
-
max: xMax,
|
|
44
|
-
}) * 100,
|
|
45
|
-
y: (0, math_1.rangePercentage)({
|
|
46
|
-
value: orig.y,
|
|
47
|
-
min: yMin,
|
|
48
|
-
max: yMax,
|
|
49
|
-
}) * 100,
|
|
50
|
-
orig,
|
|
51
|
-
})), (s) => s.x);
|
|
52
|
-
return (react_1.default.createElement(Base, { className: p.className, title: p.title },
|
|
53
|
-
react_1.default.createElement(Points, null, data.map((pt) => {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
return (react_1.default.createElement(Point, { title: (_b = (_a = p.pointTitleF) === null || _a === void 0 ? void 0 : _a.call(p, pt.orig)) !== null && _b !== void 0 ? _b : '', key: pt.x + ' ' + pt.y, style: {
|
|
56
|
-
backgroundColor: pointColour,
|
|
57
|
-
borderColor: pointColour,
|
|
58
|
-
left: `calc(${pt.x}% - ${barWidth}px)`,
|
|
59
|
-
bottom: 0,
|
|
60
|
-
height: `calc(${pt.y}% + ${barWidth}px)`,
|
|
61
|
-
} }));
|
|
62
|
-
}))));
|
|
63
|
-
};
|
|
64
|
-
exports.SparkLine = SparkLine;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { JSX } from 'react';
|
|
3
|
-
export interface ITabBar {
|
|
4
|
-
onChangeIndex: (i: number) => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
cookieDocument: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
items: {
|
|
9
|
-
text: string;
|
|
10
|
-
icon: (p: {
|
|
11
|
-
style: {
|
|
12
|
-
fill?: string;
|
|
13
|
-
};
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
}[];
|
|
16
|
-
theme?: {
|
|
17
|
-
/** default black */
|
|
18
|
-
front?: string;
|
|
19
|
-
/** default blue */
|
|
20
|
-
frontSelected?: string;
|
|
21
|
-
/** default #eee */
|
|
22
|
-
back?: string;
|
|
23
|
-
};
|
|
24
|
-
/** default 0 */
|
|
25
|
-
defaultSelectedIndex?: number;
|
|
26
|
-
}
|
|
27
|
-
export declare const TabBar: (p: ITabBar) => JSX.Element;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.TabBar = void 0;
|
|
41
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
-
const react_1 = __importStar(require("react"));
|
|
43
|
-
const Icon_1 = require("../Icon");
|
|
44
|
-
const Base = styled_1.default.div `
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-flow: row;
|
|
47
|
-
&[data-mode='vert'] {
|
|
48
|
-
flex-flow: column;
|
|
49
|
-
}
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
justify-content: space-around;
|
|
52
|
-
width: 100%;
|
|
53
|
-
margin: auto;
|
|
54
|
-
`;
|
|
55
|
-
const Item = styled_1.default.div `
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-flow: column;
|
|
58
|
-
align-items: center;
|
|
59
|
-
border-radius: 2rem;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
height: calc(100% - 1rem);
|
|
62
|
-
padding-left: 1rem;
|
|
63
|
-
padding-right: 1rem;
|
|
64
|
-
width: 10rem;
|
|
65
|
-
&[data-selected='false'] {
|
|
66
|
-
opacity: 0.8;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
const IconStyled = (0, styled_1.default)(Icon_1.Icon) `
|
|
71
|
-
height: 1.5rem;
|
|
72
|
-
max-height: 80%;
|
|
73
|
-
max-width: fit-content;
|
|
74
|
-
`;
|
|
75
|
-
const Text = styled_1.default.div `
|
|
76
|
-
max-height: 50%;
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
`;
|
|
79
|
-
const TabBar = (p) => {
|
|
80
|
-
var _a;
|
|
81
|
-
const { defaultSelectedIndex = 0, theme: { back = '#eee', frontSelected = '#4d76ff', front = 'black' }, } = Object.assign(Object.assign({}, p), { theme: (_a = p.theme) !== null && _a !== void 0 ? _a : {} });
|
|
82
|
-
const [index, setIndex] = (0, react_1.useState)(defaultSelectedIndex);
|
|
83
|
-
return (react_1.default.createElement(Base, { className: p.className, style: p.style }, p.items.map((v, i) => {
|
|
84
|
-
const selected = index === i;
|
|
85
|
-
return (react_1.default.createElement(Item, { style: Object.assign(Object.assign({ backgroundColor: back, color: front }, (selected && { color: frontSelected })), { maxWidth: `${100 / p.items.length}%` }), "data-selected": selected,
|
|
86
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
87
|
-
key: i.toString(), onClick: () => {
|
|
88
|
-
if (index === i) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
setIndex(i);
|
|
92
|
-
p.onChangeIndex(i);
|
|
93
|
-
} },
|
|
94
|
-
react_1.default.createElement(IconStyled, { style: { width: '50%' } }, v.icon({
|
|
95
|
-
style: Object.assign({}, (selected && { fill: frontSelected })),
|
|
96
|
-
})),
|
|
97
|
-
react_1.default.createElement(Text, { "data-type": "text" }, v.text)));
|
|
98
|
-
})));
|
|
99
|
-
};
|
|
100
|
-
exports.TabBar = TabBar;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
export interface ITableItem {
|
|
3
|
-
content: JSX.Element;
|
|
4
|
-
groupTitle?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ITable {
|
|
7
|
-
children: ITableItem[];
|
|
8
|
-
className?: string;
|
|
9
|
-
headerRow?: JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export declare const Table: ({ children, className, headerRow }: ITable) => JSX.Element;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.Table = void 0;
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const groupBy_1 = require("../../../common/helpers/groupBy");
|
|
11
|
-
const Base = styled_1.default.div `
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-flow: column;
|
|
14
|
-
width: 100%;
|
|
15
|
-
max-height: 100%;
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
`;
|
|
18
|
-
const TableRow = styled_1.default.div `
|
|
19
|
-
display: flex;
|
|
20
|
-
border: solid 1px #ccc;
|
|
21
|
-
&[data-header='true'] {
|
|
22
|
-
border-bottom: solid 1px #888;
|
|
23
|
-
}
|
|
24
|
-
&:not(:first-of-type) {
|
|
25
|
-
border-top: 0;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
const Group = styled_1.default.div `
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-flow: column;
|
|
31
|
-
width: 100%;
|
|
32
|
-
`;
|
|
33
|
-
const GroupTitle = styled_1.default.div `
|
|
34
|
-
font-size: 1.5rem;
|
|
35
|
-
`;
|
|
36
|
-
const GroupWrap = styled_1.default.div `
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-flow: column;
|
|
39
|
-
width: 100%;
|
|
40
|
-
`;
|
|
41
|
-
const Table = ({ children, className, headerRow }) => {
|
|
42
|
-
const grouped = (0, groupBy_1.groupByList)(children, (s) => s.groupTitle);
|
|
43
|
-
return (react_1.default.createElement(Base, { className: className }, grouped.map((group) => (react_1.default.createElement(GroupWrap, { key: 'gk' + group.key },
|
|
44
|
-
group.key && (react_1.default.createElement(GroupTitle, { key: `gt${group.key}` }, group.key)),
|
|
45
|
-
react_1.default.createElement(Group, { key: `g${group.key}` },
|
|
46
|
-
headerRow && (react_1.default.createElement(TableRow, { "data-header": "true", key: `headrow${group.key}` }, headerRow)),
|
|
47
|
-
group.items.map((item) => (react_1.default.createElement(TableRow, { key: item.content.key }, item.content)))))))));
|
|
48
|
-
};
|
|
49
|
-
exports.Table = Table;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ICheckboxEdit {
|
|
3
|
-
className?: string;
|
|
4
|
-
defaultValue: boolean;
|
|
5
|
-
onSubmit: (val: boolean) => void;
|
|
6
|
-
noGrow?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* if true, will add undo button after changes. if false, will submit after every keypress. default false
|
|
9
|
-
*/
|
|
10
|
-
allowUndo?: boolean;
|
|
11
|
-
/** display to right of CB */
|
|
12
|
-
rightSpan?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare const CheckboxEdit: ({ defaultValue, onSubmit, noGrow, allowUndo, rightSpan, className, }: ICheckboxEdit) => React.JSX.Element;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.CheckboxEdit = void 0;
|
|
41
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
-
const react_1 = __importStar(require("react"));
|
|
43
|
-
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
44
|
-
const Save_1 = require("../../icons/Save");
|
|
45
|
-
const Undo_1 = require("../../icons/Undo");
|
|
46
|
-
const common_1 = require("../../styles/common");
|
|
47
|
-
const FlexRow_1 = require("../FlexRow");
|
|
48
|
-
const common_2 = require("./common");
|
|
49
|
-
const Icons = (0, styled_1.default)(FlexRow_1.FlexRow) `
|
|
50
|
-
position: absolute;
|
|
51
|
-
top: 0;
|
|
52
|
-
right: -2rem;
|
|
53
|
-
`;
|
|
54
|
-
const CheckboxEdit = ({ defaultValue, onSubmit, noGrow = false, allowUndo = false, rightSpan, className, }) => {
|
|
55
|
-
const ref = (0, react_1.useRef)(null);
|
|
56
|
-
const [value, setValue] = (0, react_1.useState)(defaultValue);
|
|
57
|
-
(0, react_1.useEffect)(() => {
|
|
58
|
-
setValue(defaultValue);
|
|
59
|
-
}, [defaultValue]);
|
|
60
|
-
const valueChange = value !== defaultValue;
|
|
61
|
-
(0, useOnClickOutside_1.useOnClickOutside)({ ref, moveMouseOutside: false }, () => {
|
|
62
|
-
if (valueChange) {
|
|
63
|
-
onSubmit(value);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
return (react_1.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag, { className: className, style: { cursor: 'pointer', width: 'fit-content', flexGrow: 0 }, ref: ref, "data-nogrow": noGrow, onClick: (e) => {
|
|
67
|
-
if (allowUndo) {
|
|
68
|
-
setValue(!value);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
onSubmit(!value);
|
|
72
|
-
}
|
|
73
|
-
e.stopPropagation();
|
|
74
|
-
} }),
|
|
75
|
-
react_1.default.createElement(common_2.ValueInputCB, { type: "checkbox", "data-type": "checkbox", checked: value, onKeyDown: (e) => {
|
|
76
|
-
if (e.key === 'Enter' && value !== defaultValue) {
|
|
77
|
-
onSubmit(value);
|
|
78
|
-
}
|
|
79
|
-
e.stopPropagation();
|
|
80
|
-
}, onChange: (e) => {
|
|
81
|
-
if (allowUndo) {
|
|
82
|
-
setValue(!value);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
onSubmit(!value);
|
|
86
|
-
}
|
|
87
|
-
e.stopPropagation();
|
|
88
|
-
} }),
|
|
89
|
-
allowUndo && value !== defaultValue && (react_1.default.createElement(Icons, { center: true },
|
|
90
|
-
react_1.default.createElement(common_2.IconD, { style: common_2.iconLeft, onClick: (e) => {
|
|
91
|
-
if (value !== defaultValue) {
|
|
92
|
-
onSubmit(value);
|
|
93
|
-
}
|
|
94
|
-
e.stopPropagation();
|
|
95
|
-
} },
|
|
96
|
-
react_1.default.createElement(Save_1.Save, null)),
|
|
97
|
-
react_1.default.createElement(common_2.IconD, { style: Object.assign(Object.assign({}, common_2.iconRight), { fill: '#134563' }), onClick: (e) => {
|
|
98
|
-
setValue(defaultValue);
|
|
99
|
-
e.stopPropagation();
|
|
100
|
-
} },
|
|
101
|
-
react_1.default.createElement(Undo_1.Undo, null)))),
|
|
102
|
-
!rightSpan ? '' : rightSpan));
|
|
103
|
-
};
|
|
104
|
-
exports.CheckboxEdit = CheckboxEdit;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.ColourEdit = void 0;
|
|
38
|
-
const react_1 = __importStar(require("react"));
|
|
39
|
-
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
40
|
-
const Save_1 = require("../../icons/Save");
|
|
41
|
-
const Undo_1 = require("../../icons/Undo");
|
|
42
|
-
const common_1 = require("../../styles/common");
|
|
43
|
-
const common_2 = require("./common");
|
|
44
|
-
const ColourEdit = ({ defaultValue, onSubmit, }) => {
|
|
45
|
-
const ref = (0, react_1.useRef)(null);
|
|
46
|
-
const [value, setValue] = (0, react_1.useState)(defaultValue);
|
|
47
|
-
(0, react_1.useEffect)(() => {
|
|
48
|
-
setValue(defaultValue);
|
|
49
|
-
}, [defaultValue]);
|
|
50
|
-
const valueChange = value !== defaultValue;
|
|
51
|
-
(0, useOnClickOutside_1.useOnClickOutside)({ ref, moveMouseOutside: false }, () => {
|
|
52
|
-
if (valueChange) {
|
|
53
|
-
onSubmit(value);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
return (react_1.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag, { ref: ref }),
|
|
57
|
-
react_1.default.createElement("input", { type: "color", size: 5, value: value, onChange: (v) => setValue(v.target.value) }),
|
|
58
|
-
value !== defaultValue && (react_1.default.createElement(common_2.IconD, { style: common_2.iconLeft, onClick: () => valueChange && onSubmit(value.trim()) },
|
|
59
|
-
react_1.default.createElement(Save_1.Save, null))),
|
|
60
|
-
valueChange && (react_1.default.createElement(common_2.IconD, { style: Object.assign(Object.assign({}, common_2.iconRight), { fill: '#134563' }), onClick: () => setValue(defaultValue) },
|
|
61
|
-
react_1.default.createElement(Undo_1.Undo, null)))));
|
|
62
|
-
};
|
|
63
|
-
exports.ColourEdit = ColourEdit;
|