ag-common 0.0.419 → 0.0.421
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/api/helpers/api.js +35 -34
- package/dist/api/helpers/aws.js +13 -9
- package/dist/api/helpers/cloudfront.js +24 -7
- package/dist/api/helpers/dynamo.js +134 -85
- package/dist/api/helpers/dynamoInfra.js +19 -14
- package/dist/api/helpers/enforceDynamoProvisionCap.js +18 -14
- package/dist/api/helpers/index.js +30 -14
- package/dist/api/helpers/openApiHelpers.js +37 -34
- package/dist/api/helpers/s3.js +126 -81
- package/dist/api/helpers/ses.js +28 -9
- package/dist/api/helpers/sqs.js +26 -9
- package/dist/api/helpers/ssm.js +14 -8
- package/dist/api/helpers/sts.js +34 -16
- package/dist/api/helpers/validateOpenApi.js +103 -92
- package/dist/api/helpers/validations.js +46 -29
- package/dist/api/index.js +18 -2
- package/dist/api/openapi-prefix.js +38 -25
- package/dist/api/types/aws.js +2 -1
- package/dist/api/types/index.js +17 -1
- package/dist/common/const.js +5 -2
- package/dist/common/helpers/array.js +19 -8
- package/dist/common/helpers/async.js +28 -10
- package/dist/common/helpers/binary.js +10 -5
- package/dist/common/helpers/date.js +25 -14
- package/dist/common/helpers/email.js +11 -5
- package/dist/common/helpers/func.js +7 -3
- package/dist/common/helpers/generator.js +24 -9
- package/dist/common/helpers/groupBy.js +9 -3
- package/dist/common/helpers/hashCode.js +9 -3
- package/dist/common/helpers/i18n.js +17 -9
- package/dist/common/helpers/index.js +34 -18
- package/dist/common/helpers/log.js +28 -16
- package/dist/common/helpers/math.js +21 -9
- package/dist/common/helpers/memo.js +7 -3
- package/dist/common/helpers/object.js +35 -20
- package/dist/common/helpers/random.js +10 -4
- package/dist/common/helpers/secondsInNearest.js +7 -2
- package/dist/common/helpers/sleep.js +5 -1
- package/dist/common/helpers/string/base64.js +7 -2
- package/dist/common/helpers/string/chunk.js +5 -1
- package/dist/common/helpers/string/contains.js +7 -2
- package/dist/common/helpers/string/getExtendedStringSegment.js +9 -5
- package/dist/common/helpers/string/index.js +26 -10
- package/dist/common/helpers/string/json.js +5 -1
- package/dist/common/helpers/string/object.js +5 -1
- package/dist/common/helpers/string/surround.js +5 -1
- package/dist/common/helpers/string/trim.js +7 -2
- package/dist/common/helpers/string/truncate.js +5 -1
- package/dist/common/helpers/string/url.js +9 -4
- package/dist/common/index.js +18 -2
- package/dist/index.js +19 -3
- package/dist/ui/components/BorderGradient/index.js +25 -18
- package/dist/ui/components/Button/index.js +25 -17
- package/dist/ui/components/Chevron/index.js +16 -9
- package/dist/ui/components/Close/index.js +13 -6
- package/dist/ui/components/Confirm/Dialog.js +25 -9
- package/dist/ui/components/Confirm/Modal.js +27 -20
- package/dist/ui/components/Confirm/index.js +19 -3
- package/dist/ui/components/Confirm/types.js +2 -1
- package/dist/ui/components/DropdownList/Base.js +64 -33
- package/dist/ui/components/DropdownList/Dialog.js +24 -8
- package/dist/ui/components/DropdownList/index.js +18 -2
- package/dist/ui/components/DropdownList/types.js +2 -1
- package/dist/ui/components/FlexColumn/index.js +14 -4
- package/dist/ui/components/FlexRow/index.js +14 -4
- package/dist/ui/components/HeadersRaw/index.js +27 -20
- package/dist/ui/components/HorizontalScrollBar/index.js +34 -6
- package/dist/ui/components/Icon/index.js +16 -9
- package/dist/ui/components/Image/index.js +28 -10
- package/dist/ui/components/InfiniteScroll/index.js +50 -18
- package/dist/ui/components/KebabDots/index.js +13 -6
- package/dist/ui/components/Loader/index.js +39 -9
- package/dist/ui/components/Modal/Dialog.js +23 -7
- package/dist/ui/components/Modal/Modal.js +49 -19
- package/dist/ui/components/Modal/index.js +19 -3
- package/dist/ui/components/Modal/types.js +2 -1
- package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.js +34 -26
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.js +19 -12
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/getCurlLines.js +11 -6
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.js +15 -8
- package/dist/ui/components/OpenApiCodeBlock/curl/index.js +21 -14
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.js +15 -8
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/getFetchLines.js +8 -3
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.js +34 -27
- package/dist/ui/components/OpenApiCodeBlock/fetch/index.js +18 -11
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +17 -7
- package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.js +15 -6
- package/dist/ui/components/OpenApiCodeBlock/index.js +18 -2
- package/dist/ui/components/OpenApiCodeBlock/types.js +2 -1
- package/dist/ui/components/PieChart/index.js +18 -11
- package/dist/ui/components/ProgressBar/index.js +45 -15
- package/dist/ui/components/Prompt/Dialog.js +23 -7
- package/dist/ui/components/Prompt/Modal.js +55 -25
- package/dist/ui/components/Prompt/index.js +18 -2
- package/dist/ui/components/RowOrColumn/index.js +17 -7
- package/dist/ui/components/Search/AutoHideSearchBox.js +56 -24
- package/dist/ui/components/Search/Base.js +52 -21
- package/dist/ui/components/Search/Dialog.js +26 -10
- package/dist/ui/components/Search/Inline.js +10 -3
- package/dist/ui/components/Search/Modal.js +17 -10
- package/dist/ui/components/Search/SearchBox.js +58 -26
- package/dist/ui/components/Search/index.js +23 -7
- package/dist/ui/components/Search/types.js +2 -1
- package/dist/ui/components/Sidebar/index.js +25 -18
- package/dist/ui/components/SparkLine/index.js +27 -17
- package/dist/ui/components/Table/index.js +22 -15
- package/dist/ui/components/TextEdit/CheckboxEdit.js +51 -21
- package/dist/ui/components/TextEdit/ColourEdit.js +44 -17
- package/dist/ui/components/TextEdit/LengthBox.js +12 -5
- package/dist/ui/components/TextEdit/ListboxEdit.js +42 -15
- package/dist/ui/components/TextEdit/RadioGroup.js +43 -13
- package/dist/ui/components/TextEdit/TextEdit.js +78 -48
- package/dist/ui/components/TextEdit/common.js +17 -11
- package/dist/ui/components/TextEdit/index.js +22 -6
- package/dist/ui/components/TextEdit/types.js +2 -1
- package/dist/ui/components/TextWithButton/index.js +40 -10
- package/dist/ui/components/TimelineChart/index.js +24 -14
- package/dist/ui/components/Toast/Cross.js +16 -9
- package/dist/ui/components/Toast/Tick.js +11 -4
- package/dist/ui/components/Toast/Warning.js +15 -8
- package/dist/ui/components/Toast/base.js +65 -33
- package/dist/ui/components/Toast/index.js +18 -2
- package/dist/ui/components/Toast/types.js +2 -1
- package/dist/ui/components/UserImage/index.js +48 -17
- package/dist/ui/components/index.js +46 -30
- package/dist/ui/helpers/axiosHelper.js +39 -25
- package/dist/ui/helpers/browserHelpers.js +22 -7
- package/dist/ui/helpers/callOpenApi/cached.js +37 -18
- package/dist/ui/helpers/callOpenApi/direct.js +59 -46
- package/dist/ui/helpers/callOpenApi/helpers.js +40 -25
- package/dist/ui/helpers/callOpenApi/hook.js +36 -47
- package/dist/ui/helpers/callOpenApi/index.js +21 -5
- package/dist/ui/helpers/callOpenApi/types.js +2 -1
- package/dist/ui/helpers/cognito.js +2 -1
- package/dist/ui/helpers/cookie/const.js +5 -2
- package/dist/ui/helpers/cookie/get.js +14 -13
- package/dist/ui/helpers/cookie/index.js +21 -5
- package/dist/ui/helpers/cookie/raw.js +16 -9
- package/dist/ui/helpers/cookie/set.js +15 -10
- package/dist/ui/helpers/cookie/use.js +16 -23
- package/dist/ui/helpers/date.js +15 -10
- package/dist/ui/helpers/debounce.js +10 -5
- package/dist/ui/helpers/dom.js +13 -6
- package/dist/ui/helpers/extractAttributes.js +7 -2
- package/dist/ui/helpers/index.js +41 -25
- package/dist/ui/helpers/jwt.js +2 -1
- package/dist/ui/helpers/plural.js +5 -1
- package/dist/ui/helpers/routes.js +24 -17
- package/dist/ui/helpers/serviceWorker.js +23 -8
- package/dist/ui/helpers/useContextMenu.js +14 -9
- package/dist/ui/helpers/useElementAttribute.js +7 -3
- package/dist/ui/helpers/useGranularHook.js +10 -5
- package/dist/ui/helpers/useInterval.js +12 -8
- package/dist/ui/helpers/useLocalStorage.js +32 -24
- package/dist/ui/helpers/useLockBodyScroll.js +7 -3
- package/dist/ui/helpers/useOnClickOutside.js +12 -7
- package/dist/ui/helpers/useOnScroll.js +21 -15
- package/dist/ui/helpers/useOverloadPageSearch.js +7 -3
- package/dist/ui/helpers/useQueryString.js +20 -14
- package/dist/ui/helpers/useResize.js +19 -17
- package/dist/ui/helpers/useTimeout.js +9 -5
- package/dist/ui/icons/ChevronRight.js +9 -3
- package/dist/ui/icons/CrossIcon.js +12 -5
- package/dist/ui/icons/Door.js +10 -4
- package/dist/ui/icons/HorizontalDots.js +9 -3
- package/dist/ui/icons/Magnify.js +10 -3
- package/dist/ui/icons/Pencil.js +12 -5
- package/dist/ui/icons/Save.js +11 -4
- package/dist/ui/icons/Undo.js +12 -5
- package/dist/ui/icons/UserOutline.js +9 -3
- package/dist/ui/icons/index.js +25 -9
- package/dist/ui/index.js +20 -4
- package/dist/ui/styles/colours.js +12 -7
- package/dist/ui/styles/common.js +22 -14
- package/dist/ui/styles/index.js +20 -4
- package/dist/ui/styles/media.js +10 -7
- package/dist/ui/styles/standaloneStyles.js +16 -10
- package/package.json +2 -2
|
@@ -1,17 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ListboxEdit = void 0;
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
28
|
+
const Save_1 = require("../../icons/Save");
|
|
29
|
+
const Undo_1 = require("../../icons/Undo");
|
|
30
|
+
const common_1 = require("../../styles/common");
|
|
31
|
+
const common_2 = require("./common");
|
|
32
|
+
const ListboxEdit = ({ defaultValue, onSubmit, values, canEdit = true,
|
|
7
33
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
34
|
renderLabel = (e) => e.toString(), }) => {
|
|
9
|
-
const [value, setValue] = useState(defaultValue);
|
|
10
|
-
useEffect(() => {
|
|
35
|
+
const [value, setValue] = (0, react_1.useState)(defaultValue);
|
|
36
|
+
(0, react_1.useEffect)(() => {
|
|
11
37
|
setValue(defaultValue);
|
|
12
38
|
}, [defaultValue]);
|
|
13
|
-
return (
|
|
14
|
-
|
|
39
|
+
return (react_1.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag),
|
|
40
|
+
react_1.default.createElement("select", { size: 5,
|
|
15
41
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
42
|
value: value.toString(), onChange: (v) => {
|
|
17
43
|
const selected = values[v.target.selectedIndex];
|
|
@@ -19,13 +45,14 @@ renderLabel = (e) => e.toString(), }) => {
|
|
|
19
45
|
return;
|
|
20
46
|
}
|
|
21
47
|
return canEdit ? setValue(selected) : onSubmit(selected);
|
|
22
|
-
} }, values.map((v) => (
|
|
48
|
+
} }, values.map((v) => (react_1.default.createElement("option", {
|
|
23
49
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
50
|
key: v.toString(),
|
|
25
51
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
52
|
value: v.toString() }, renderLabel(v))))),
|
|
27
|
-
canEdit && value !== defaultValue && (
|
|
28
|
-
|
|
29
|
-
canEdit && value !== defaultValue && (
|
|
30
|
-
|
|
53
|
+
canEdit && value !== defaultValue && (react_1.default.createElement(common_2.IconD, { style: common_2.iconLeft, onClick: () => value !== defaultValue && onSubmit(value) },
|
|
54
|
+
react_1.default.createElement(Save_1.Save, null))),
|
|
55
|
+
canEdit && value !== defaultValue && (react_1.default.createElement(common_2.IconD, { style: common_2.iconRight, onClick: () => setValue(defaultValue) },
|
|
56
|
+
react_1.default.createElement(Undo_1.Undo, null)))));
|
|
31
57
|
};
|
|
58
|
+
exports.ListboxEdit = ListboxEdit;
|
|
@@ -1,24 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RadioGroup = void 0;
|
|
30
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
31
|
+
const react_1 = __importStar(require("react"));
|
|
32
|
+
const common_1 = require("../../styles/common");
|
|
33
|
+
const FlexColumn_1 = require("../FlexColumn");
|
|
34
|
+
const common_2 = require("./common");
|
|
35
|
+
const Label = styled_1.default.label ``;
|
|
36
|
+
const RadioGroup = ({ defaultValue, onSubmit, values,
|
|
8
37
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
38
|
renderLabel = (e) => e.toString(),
|
|
10
39
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
40
|
renderValue = (e) => e.toString(), }) => {
|
|
12
|
-
const [value, setValue] = useState(renderValue(defaultValue));
|
|
13
|
-
useEffect(() => {
|
|
41
|
+
const [value, setValue] = (0, react_1.useState)(renderValue(defaultValue));
|
|
42
|
+
(0, react_1.useEffect)(() => {
|
|
14
43
|
const rv = renderValue(defaultValue);
|
|
15
44
|
if (value !== rv) {
|
|
16
45
|
setValue(rv);
|
|
17
46
|
}
|
|
18
47
|
}, [defaultValue, renderValue, value]);
|
|
19
|
-
return (
|
|
48
|
+
return (react_1.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag), values.map((v) => (
|
|
20
49
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
50
|
+
react_1.default.createElement(FlexColumn_1.FlexColumn, { key: v.toString() },
|
|
51
|
+
react_1.default.createElement(Label, null, renderLabel(v)),
|
|
52
|
+
react_1.default.createElement("input", { type: "radio", key: renderValue(v), value: renderValue(v), checked: renderValue(v) === value, onChange: () => onSubmit(v) }))))));
|
|
24
53
|
};
|
|
54
|
+
exports.RadioGroup = RadioGroup;
|
|
@@ -1,25 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TextEdit = exports.ValueReadonly = void 0;
|
|
1
30
|
/* eslint-disable react/display-name */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
${valueCss};
|
|
31
|
+
const react_1 = require("@emotion/react");
|
|
32
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
33
|
+
const react_2 = __importStar(require("react"));
|
|
34
|
+
const dom_1 = require("../../helpers/dom");
|
|
35
|
+
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
36
|
+
const Pencil_1 = require("../../icons/Pencil");
|
|
37
|
+
const Save_1 = require("../../icons/Save");
|
|
38
|
+
const Undo_1 = require("../../icons/Undo");
|
|
39
|
+
const common_1 = require("../../styles/common");
|
|
40
|
+
const common_2 = require("./common");
|
|
41
|
+
const LengthBox_1 = require("./LengthBox");
|
|
42
|
+
exports.ValueReadonly = styled_1.default.div `
|
|
43
|
+
${common_2.valueCss};
|
|
15
44
|
word-break: break-word;
|
|
16
45
|
flex-basis: calc(100% - 3rem);
|
|
17
46
|
`;
|
|
18
|
-
const basecss = css `
|
|
47
|
+
const basecss = (0, react_1.css) `
|
|
19
48
|
outline: none;
|
|
20
49
|
border: 0;
|
|
21
50
|
word-break: break-word;
|
|
22
|
-
${valueCss};
|
|
51
|
+
${common_2.valueCss};
|
|
23
52
|
resize: none;
|
|
24
53
|
overflow: hidden;
|
|
25
54
|
background-color: white;
|
|
@@ -30,19 +59,19 @@ const basecss = css `
|
|
|
30
59
|
color: #bbb;
|
|
31
60
|
}
|
|
32
61
|
`;
|
|
33
|
-
const ValueTextArea =
|
|
62
|
+
const ValueTextArea = styled_1.default.textarea `
|
|
34
63
|
${basecss}
|
|
35
64
|
&[data-editing='true'] {
|
|
36
65
|
min-height: 5rem;
|
|
37
66
|
}
|
|
38
67
|
`;
|
|
39
|
-
const ValueTextBox =
|
|
68
|
+
const ValueTextBox = styled_1.default.input `
|
|
40
69
|
${basecss}
|
|
41
70
|
`;
|
|
42
|
-
const ValueBoxEdit =
|
|
71
|
+
const ValueBoxEdit = (0, styled_1.default)(common_2.ValueBox) `
|
|
43
72
|
border: solid 1px #ccc;
|
|
44
73
|
`;
|
|
45
|
-
const Right =
|
|
74
|
+
const Right = styled_1.default.div `
|
|
46
75
|
display: flex;
|
|
47
76
|
flex-flow: row;
|
|
48
77
|
align-content: center;
|
|
@@ -52,7 +81,7 @@ const Right = styled.div `
|
|
|
52
81
|
right: 0.5rem;
|
|
53
82
|
}
|
|
54
83
|
`;
|
|
55
|
-
const Icon =
|
|
84
|
+
const Icon = styled_1.default.div `
|
|
56
85
|
width: 1.5rem;
|
|
57
86
|
display: flex;
|
|
58
87
|
cursor: pointer;
|
|
@@ -60,24 +89,24 @@ const Icon = styled.div `
|
|
|
60
89
|
filter: saturate(3);
|
|
61
90
|
}
|
|
62
91
|
`;
|
|
63
|
-
|
|
92
|
+
exports.TextEdit = (0, react_2.forwardRef)((p, ref) => {
|
|
64
93
|
const { defaultValue = '', defaultEditing, disableEdit = false, singleLine = false, noGrow = false, allowUndo = true, } = p;
|
|
65
|
-
const divRef = useRef(null);
|
|
66
|
-
const taref = useRef(null);
|
|
67
|
-
const [value, setValue] = useState(defaultValue);
|
|
68
|
-
const [editing, setEditingRaw] = useState(!!defaultEditing);
|
|
94
|
+
const divRef = (0, react_2.useRef)(null);
|
|
95
|
+
const taref = (0, react_2.useRef)(null);
|
|
96
|
+
const [value, setValue] = (0, react_2.useState)(defaultValue);
|
|
97
|
+
const [editing, setEditingRaw] = (0, react_2.useState)(!!defaultEditing);
|
|
69
98
|
const valueChange = value !== defaultValue;
|
|
70
|
-
useImperativeHandle(ref, () => ({
|
|
99
|
+
(0, react_2.useImperativeHandle)(ref, () => ({
|
|
71
100
|
setValue: (v) => {
|
|
72
101
|
if (v === value) {
|
|
73
102
|
return;
|
|
74
103
|
}
|
|
75
104
|
setValue(v);
|
|
76
105
|
},
|
|
77
|
-
focus: () => taref.current
|
|
78
|
-
getValue: () => taref.current
|
|
106
|
+
focus: () => { var _a; return (_a = taref.current) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
107
|
+
getValue: () => { var _a; return (_a = taref.current) === null || _a === void 0 ? void 0 : _a.value; },
|
|
79
108
|
}));
|
|
80
|
-
useOnClickOutside({
|
|
109
|
+
(0, useOnClickOutside_1.useOnClickOutside)({
|
|
81
110
|
disabled: p.onClickOutsideWithNoValue === null || disableEdit,
|
|
82
111
|
ref: divRef,
|
|
83
112
|
moveMouseOutside: false,
|
|
@@ -96,34 +125,34 @@ export const TextEdit = forwardRef((p, ref) => {
|
|
|
96
125
|
setEditingRaw(false);
|
|
97
126
|
}
|
|
98
127
|
});
|
|
99
|
-
const setEditing = useCallback((b) => {
|
|
128
|
+
const setEditing = (0, react_2.useCallback)((b) => {
|
|
100
129
|
setEditingRaw(b);
|
|
101
130
|
if (p.onEditingChange) {
|
|
102
131
|
p.onEditingChange(b);
|
|
103
132
|
}
|
|
104
133
|
}, [p]);
|
|
105
|
-
useEffect(() => {
|
|
106
|
-
if (defaultEditing
|
|
134
|
+
(0, react_2.useEffect)(() => {
|
|
135
|
+
if ((defaultEditing === null || defaultEditing === void 0 ? void 0 : defaultEditing.focus) && taref.current) {
|
|
107
136
|
taref.current.focus();
|
|
108
137
|
}
|
|
109
|
-
}, [defaultEditing
|
|
138
|
+
}, [defaultEditing === null || defaultEditing === void 0 ? void 0 : defaultEditing.focus]);
|
|
110
139
|
if (!editing || disableEdit) {
|
|
111
|
-
return (
|
|
140
|
+
return (react_2.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag, { className: p.className, "data-editing": "false", onClick: () => { var _a; return (_a = p.onClickNotEditing) === null || _a === void 0 ? void 0 : _a.call(p); }, "data-pointer": p.onClickNotEditing ? 'true' : 'false', "data-nogrow": noGrow }, (0, dom_1.filterDataProps)(p)),
|
|
112
141
|
p.leftContent || null,
|
|
113
|
-
|
|
114
|
-
|
|
142
|
+
react_2.default.createElement(exports.ValueReadonly, { "data-type": "text" }, value || react_2.default.createElement("span", { style: { color: '#ccc' } }, p.placeholder)),
|
|
143
|
+
react_2.default.createElement(Right, null, !disableEdit && (react_2.default.createElement(Icon, { style: common_2.iconRight, onClick: (e) => {
|
|
115
144
|
e.stopPropagation();
|
|
116
145
|
setEditing(true);
|
|
117
146
|
} },
|
|
118
|
-
|
|
147
|
+
react_2.default.createElement(Pencil_1.Pencil, null))))));
|
|
119
148
|
}
|
|
120
149
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
121
150
|
const Comp = !singleLine ? ValueTextArea : ValueTextBox;
|
|
122
|
-
return (
|
|
151
|
+
return (react_2.default.createElement(ValueBoxEdit, Object.assign({}, common_1.noDrag, { className: p.className, "data-editing": "true",
|
|
123
152
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
|
-
ref: ref, tabIndex: -1, "data-nogrow": noGrow,
|
|
153
|
+
ref: ref, tabIndex: -1, "data-nogrow": noGrow }, (0, dom_1.filterDataProps)(p)),
|
|
125
154
|
p.leftContent || null,
|
|
126
|
-
|
|
155
|
+
react_2.default.createElement(Comp, { tabIndex: editing ? 0 : undefined, "data-editing": "true", "data-valuechange": valueChange.toString(),
|
|
127
156
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
157
|
ref: taref, "data-type": "text", value: value, onChange: (v) => {
|
|
129
158
|
setValue(v.currentTarget.value);
|
|
@@ -133,7 +162,8 @@ export const TextEdit = forwardRef((p, ref) => {
|
|
|
133
162
|
}, placeholder: p.placeholder, rows: singleLine ? 1 : undefined, maxLength: p.maxLength,
|
|
134
163
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
135
164
|
onKeyDown: (e) => {
|
|
136
|
-
|
|
165
|
+
var _a;
|
|
166
|
+
if (((_a = p.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(p, e)) === false) {
|
|
137
167
|
e.preventDefault();
|
|
138
168
|
return;
|
|
139
169
|
}
|
|
@@ -141,14 +171,14 @@ export const TextEdit = forwardRef((p, ref) => {
|
|
|
141
171
|
p.onSubmit(value, true);
|
|
142
172
|
}
|
|
143
173
|
} }),
|
|
144
|
-
p.maxLength && (
|
|
145
|
-
|
|
146
|
-
allowUndo && (
|
|
147
|
-
valueChange && (
|
|
148
|
-
|
|
149
|
-
(valueChange || editing !== !!defaultEditing) && (
|
|
174
|
+
p.maxLength && (react_2.default.createElement(Right, { "data-singleline": singleLine },
|
|
175
|
+
react_2.default.createElement(LengthBox_1.TextEditLengthBox, { min: value.length, max: p.maxLength }))),
|
|
176
|
+
allowUndo && (react_2.default.createElement(Right, null,
|
|
177
|
+
valueChange && (react_2.default.createElement(Icon, { style: common_2.iconLeft, onClick: () => valueChange && p.onSubmit(value, false) },
|
|
178
|
+
react_2.default.createElement(Save_1.Save, null))),
|
|
179
|
+
(valueChange || editing !== !!defaultEditing) && (react_2.default.createElement(Icon, { style: common_2.iconRight, onClick: () => {
|
|
150
180
|
setEditing(!!defaultEditing);
|
|
151
181
|
setValue(defaultValue);
|
|
152
182
|
} },
|
|
153
|
-
|
|
183
|
+
react_2.default.createElement(Undo_1.Undo, null)))))));
|
|
154
184
|
});
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.iconLeft = exports.iconRight = exports.IconD = exports.ValueInputCB = exports.valueCss = exports.ValueBox = void 0;
|
|
7
|
+
const react_1 = require("@emotion/react");
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const colours_1 = require("../../styles/colours");
|
|
10
|
+
exports.ValueBox = styled_1.default.div `
|
|
5
11
|
padding: 0.5rem;
|
|
6
12
|
|
|
7
13
|
display: flex;
|
|
@@ -21,7 +27,7 @@ export const ValueBox = styled.div `
|
|
|
21
27
|
flex-grow: 0;
|
|
22
28
|
}
|
|
23
29
|
`;
|
|
24
|
-
|
|
30
|
+
exports.valueCss = (0, react_1.css) `
|
|
25
31
|
width: 100%;
|
|
26
32
|
height: 100%;
|
|
27
33
|
word-break: break-all;
|
|
@@ -35,10 +41,10 @@ export const valueCss = css `
|
|
|
35
41
|
height: 1.5rem;
|
|
36
42
|
}
|
|
37
43
|
`;
|
|
38
|
-
|
|
39
|
-
${valueCss};
|
|
44
|
+
exports.ValueInputCB = styled_1.default.input `
|
|
45
|
+
${exports.valueCss};
|
|
40
46
|
`;
|
|
41
|
-
|
|
47
|
+
exports.IconD = styled_1.default.div `
|
|
42
48
|
z-index: 1;
|
|
43
49
|
font-size: 1rem;
|
|
44
50
|
width: 1.5rem;
|
|
@@ -46,8 +52,8 @@ export const IconD = styled.div `
|
|
|
46
52
|
position: absolute;
|
|
47
53
|
cursor: pointer;
|
|
48
54
|
svg {
|
|
49
|
-
fill: ${colours.notificationBlue};
|
|
55
|
+
fill: ${colours_1.colours.notificationBlue};
|
|
50
56
|
}
|
|
51
57
|
`;
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
exports.iconRight = { right: '0' };
|
|
59
|
+
exports.iconLeft = { right: '1.5rem' };
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CheckboxEdit"), exports);
|
|
18
|
+
__exportStar(require("./ColourEdit"), exports);
|
|
19
|
+
__exportStar(require("./ListboxEdit"), exports);
|
|
20
|
+
__exportStar(require("./RadioGroup"), exports);
|
|
21
|
+
__exportStar(require("./TextEdit"), exports);
|
|
22
|
+
__exportStar(require("./types"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,10 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TextWithButton = void 0;
|
|
30
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
31
|
+
const react_1 = __importStar(require("react"));
|
|
32
|
+
const Base = styled_1.default.div `
|
|
4
33
|
display: flex;
|
|
5
34
|
flex-flow: row;
|
|
6
35
|
`;
|
|
7
|
-
const Input =
|
|
36
|
+
const Input = styled_1.default.input `
|
|
8
37
|
flex-grow: 1;
|
|
9
38
|
border: solid 3px #ccc;
|
|
10
39
|
border-right: 0;
|
|
@@ -17,7 +46,7 @@ const Input = styled.input `
|
|
|
17
46
|
}
|
|
18
47
|
outline: 0;
|
|
19
48
|
`;
|
|
20
|
-
const Button =
|
|
49
|
+
const Button = styled_1.default.button `
|
|
21
50
|
padding: 2rem;
|
|
22
51
|
padding-top: 1rem;
|
|
23
52
|
padding-bottom: 1rem;
|
|
@@ -38,10 +67,11 @@ const Button = styled.button `
|
|
|
38
67
|
background-color: #ccc;
|
|
39
68
|
}
|
|
40
69
|
`;
|
|
41
|
-
|
|
42
|
-
const [value, setValue] = useState('');
|
|
70
|
+
const TextWithButton = ({ submitText = 'Submit', placeholder, validateF, onSubmit, }) => {
|
|
71
|
+
const [value, setValue] = (0, react_1.useState)('');
|
|
43
72
|
const valid = !validateF ? true : validateF(value);
|
|
44
|
-
return (
|
|
45
|
-
|
|
46
|
-
|
|
73
|
+
return (react_1.default.createElement(Base, null,
|
|
74
|
+
react_1.default.createElement(Input, { "data-type": "input", "data-valid": valid, placeholder: placeholder, value: value, onChange: (s) => setValue(s.target.value), onKeyDown: (e) => e.key === 'Enter' && valid && onSubmit(value) }),
|
|
75
|
+
react_1.default.createElement(Button, { "data-type": "button", "data-valid": valid, disabled: !valid, onClick: () => valid && onSubmit(value) }, submitText)));
|
|
47
76
|
};
|
|
77
|
+
exports.TextWithButton = TextWithButton;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TimelineChart = void 0;
|
|
7
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const Base = styled_1.default.div `
|
|
4
10
|
display: flex;
|
|
5
11
|
flex-flow: column;
|
|
6
12
|
justify-content: center;
|
|
@@ -11,9 +17,9 @@ const Base = styled.div `
|
|
|
11
17
|
overflow: initial;
|
|
12
18
|
}
|
|
13
19
|
`;
|
|
14
|
-
|
|
20
|
+
const TimelineChart = ({ series, strokeWidth = 3, className, }) => {
|
|
15
21
|
if (series.length === 0) {
|
|
16
|
-
return
|
|
22
|
+
return react_1.default.createElement(Base, null);
|
|
17
23
|
}
|
|
18
24
|
const width = 600;
|
|
19
25
|
const height = 200;
|
|
@@ -23,13 +29,13 @@ export const TimelineChart = ({ series, strokeWidth = 3, className, }) => {
|
|
|
23
29
|
const xMax = Math.max(...xValues);
|
|
24
30
|
const yMin = Math.min(...yValues);
|
|
25
31
|
const yMax = Math.max(...yValues);
|
|
26
|
-
const xScale = (x) => Math.ceil(width * ((x - xMin) / (xMax - xMin)))
|
|
32
|
+
const xScale = (x) => { var _a; return (_a = Math.ceil(width * ((x - xMin) / (xMax - xMin)))) !== null && _a !== void 0 ? _a : 0; };
|
|
27
33
|
const yScale = (y) => {
|
|
28
34
|
let ret = Math.ceil(height * ((yMax - y) / (yMax - yMin)));
|
|
29
35
|
if (isNaN(ret)) {
|
|
30
36
|
ret = y;
|
|
31
37
|
}
|
|
32
|
-
return ret
|
|
38
|
+
return ret !== null && ret !== void 0 ? ret : y;
|
|
33
39
|
};
|
|
34
40
|
const getPathData = ({ data }) => {
|
|
35
41
|
const pd1 = data
|
|
@@ -42,11 +48,15 @@ export const TimelineChart = ({ series, strokeWidth = 3, className, }) => {
|
|
|
42
48
|
const pathData = pd1.map(({ xScaled, yScaled }, i) => i === 0 ? `M${xScaled} ${yScaled}` : ` L${xScaled} ${yScaled}`);
|
|
43
49
|
return pathData.join('\n');
|
|
44
50
|
};
|
|
45
|
-
return (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
return (react_1.default.createElement(Base, { className: className },
|
|
52
|
+
react_1.default.createElement("svg", { viewBox: `0 -10 ${width} ${height + 20}` }, series.map(({ color, data, label, key, onClick, title }) => {
|
|
53
|
+
var _a, _b, _c, _d;
|
|
54
|
+
return (react_1.default.createElement("g", { key: key },
|
|
55
|
+
react_1.default.createElement("title", null, title || label),
|
|
56
|
+
react_1.default.createElement("path", { d: getPathData({ color, data, label, key }), fill: "none", stroke: color, strokeWidth: strokeWidth, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(), style: { cursor: onClick ? 'pointer' : 'default' } }),
|
|
57
|
+
label && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
58
|
+
react_1.default.createElement("text", { x: xScale((_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.x) + strokeWidth * 2, y: yScale((_b = data[data.length - 1]) === null || _b === void 0 ? void 0 : _b.y), fontSize: "12", textAnchor: "middle", dominantBaseline: "middle", stroke: "white", strokeWidth: '3px' }, label),
|
|
59
|
+
react_1.default.createElement("text", { x: xScale((_c = data === null || data === void 0 ? void 0 : data[0]) === null || _c === void 0 ? void 0 : _c.x) + strokeWidth * 2, y: yScale((_d = data[data.length - 1]) === null || _d === void 0 ? void 0 : _d.y), fontSize: "12", textAnchor: "middle", dominantBaseline: "middle", fill: "black" }, label)))));
|
|
60
|
+
}))));
|
|
52
61
|
};
|
|
62
|
+
exports.TimelineChart = TimelineChart;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Cross = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
2
8
|
//red cross in circle
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const Cross = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48" },
|
|
10
|
+
react_1.default.createElement("defs", null,
|
|
11
|
+
react_1.default.createElement("linearGradient", { id: "a", x2: "0", y1: "47.37", y2: "-1.429", gradientUnits: "userSpaceOnUse" },
|
|
12
|
+
react_1.default.createElement("stop", { stopColor: "#c52828" }),
|
|
13
|
+
react_1.default.createElement("stop", { offset: "1", stopColor: "#ff5454" }))),
|
|
14
|
+
react_1.default.createElement("g", { style: { fillOpacity: 1 }, transform: "translate(-58.37 .882) scale(.99999)" },
|
|
15
|
+
react_1.default.createElement("circle", { cx: "82.37", cy: "23.12", r: "24", fill: "url(#a)", style: { fillOpacity: 1, fill: '#d33' } }),
|
|
16
|
+
react_1.default.createElement("path", { fill: "#fff", fillOpacity: ".842", d: "m87.77 23.725 5.939-5.939c.377-.372.566-.835.566-1.373 0-.54-.189-.997-.566-1.374l-2.747-2.747a1.888 1.888 0 0 0-1.373-.564c-.539 0-.997.186-1.374.564l-5.939 5.939-5.939-5.939a1.889 1.889 0 0 0-1.374-.564c-.539 0-.997.186-1.374.564l-2.748 2.747a1.873 1.873 0 0 0-.566 1.374c0 .54.188.997.566 1.373l5.939 5.939-5.939 5.94a1.862 1.862 0 0 0-.566 1.373c0 .54.188.997.566 1.373l2.748 2.747c.377.378.835.564 1.374.564.539 0 .997-.186 1.374-.564l5.939-5.939 5.94 5.939c.377.378.835.564 1.374.564.539 0 .997-.186 1.373-.564l2.747-2.747c.377-.372.566-.835.566-1.373 0-.54-.188-.997-.566-1.373l-5.939-5.94", style: { fillOpacity: 1, fill: '#fff' } }))));
|
|
17
|
+
exports.Cross = Cross;
|