ag-common 0.0.372 → 0.0.374
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/BorderGradient/index.js +7 -29
- package/dist/ui/components/Button/index.d.ts +1 -1
- package/dist/ui/components/Button/index.js +5 -27
- package/dist/ui/components/Chevron/index.js +3 -3
- package/dist/ui/components/Close/index.js +2 -2
- package/dist/ui/components/Confirm/Modal.js +6 -6
- package/dist/ui/components/DropdownList/Base.js +4 -4
- package/dist/ui/components/FlexColumn/index.js +2 -2
- package/dist/ui/components/FlexRow/index.js +2 -2
- package/dist/ui/components/Icon/index.d.ts +4 -1
- package/dist/ui/components/Icon/index.js +2 -2
- package/dist/ui/components/Image/index.js +2 -2
- package/dist/ui/components/KebabDots/index.js +2 -2
- package/dist/ui/components/Loader/index.js +3 -3
- package/dist/ui/components/Modal/Modal.d.ts +5 -2
- package/dist/ui/components/Modal/Modal.js +5 -5
- package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.js +6 -6
- package/dist/ui/components/OpenApiCodeBlock/curl/index.js +2 -2
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.js +2 -2
- package/dist/ui/components/OpenApiCodeBlock/fetch/index.js +2 -2
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.d.ts +9 -2
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +3 -3
- package/dist/ui/components/ProgressBar/index.js +4 -4
- package/dist/ui/components/Prompt/Modal.js +6 -6
- package/dist/ui/components/RowOrColumn/index.js +2 -2
- package/dist/ui/components/Search/Base.js +7 -7
- package/dist/ui/components/Search/Modal.js +2 -2
- package/dist/ui/components/Sidebar/index.js +6 -6
- package/dist/ui/components/SparkLine/index.js +4 -4
- package/dist/ui/components/Table/index.js +6 -6
- package/dist/ui/components/TextEdit/CheckboxEdit.js +2 -2
- package/dist/ui/components/TextEdit/LengthBox.js +2 -2
- package/dist/ui/components/TextEdit/RadioGroup.js +2 -2
- package/dist/ui/components/TextEdit/TextEdit.d.ts +4 -2
- package/dist/ui/components/TextEdit/TextEdit.js +35 -37
- package/dist/ui/components/TextEdit/common.d.ts +14 -4
- package/dist/ui/components/TextEdit/common.js +8 -27
- package/dist/ui/components/TextWithButton/index.js +4 -4
- package/dist/ui/components/UserImage/index.js +3 -3
- package/dist/ui/icons/CrossIcon.js +2 -2
- package/dist/ui/styles/common.d.ts +14 -8
- package/dist/ui/styles/common.js +12 -31
- package/dist/ui/styles/standaloneStyles.d.ts +27 -6
- package/dist/ui/styles/standaloneStyles.js +7 -7
- package/package.json +6 -5
|
@@ -1,27 +1,4 @@
|
|
|
1
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
@@ -29,9 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
6
|
exports.BorderGradient = void 0;
|
|
30
7
|
const colours_1 = require("../../styles/colours");
|
|
31
8
|
const object_1 = require("../../../common/helpers/object");
|
|
32
|
-
const
|
|
9
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
33
10
|
const react_1 = __importDefault(require("react"));
|
|
34
|
-
const
|
|
11
|
+
const react_2 = require("@emotion/react");
|
|
12
|
+
const BGcss = (0, react_2.css) `
|
|
35
13
|
display: flex;
|
|
36
14
|
border: 0;
|
|
37
15
|
padding: 3px;
|
|
@@ -46,13 +24,13 @@ const BGcss = (0, styled_components_1.css) `
|
|
|
46
24
|
}
|
|
47
25
|
}
|
|
48
26
|
`;
|
|
49
|
-
const BGLink =
|
|
27
|
+
const BGLink = styled_1.default.div `
|
|
50
28
|
${BGcss};
|
|
51
29
|
`;
|
|
52
|
-
const BGALink =
|
|
30
|
+
const BGALink = styled_1.default.a `
|
|
53
31
|
${BGcss};
|
|
54
32
|
`;
|
|
55
|
-
const Padding =
|
|
33
|
+
const Padding = styled_1.default.div `
|
|
56
34
|
justify-content: center;
|
|
57
35
|
align-items: center;
|
|
58
36
|
display: flex;
|
|
@@ -60,7 +38,7 @@ const Padding = styled_components_1.default.div `
|
|
|
60
38
|
border: 0;
|
|
61
39
|
flex-grow: 1;
|
|
62
40
|
`;
|
|
63
|
-
const FeatureBoxFill = (0,
|
|
41
|
+
const FeatureBoxFill = (0, styled_1.default)(Padding) `
|
|
64
42
|
background-image: linear-gradient(to bottom right, var(--left), var(--right));
|
|
65
43
|
color: ${colours_1.colours.mainLight};
|
|
66
44
|
flex-grow: 1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyboardEventHandler, MouseEventHandler } from 'react';
|
|
2
|
-
export declare const ButtonBase: import("
|
|
2
|
+
export declare const ButtonBase: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export interface IButton {
|
|
4
4
|
title?: string;
|
|
5
5
|
invert?: boolean;
|
|
@@ -1,27 +1,4 @@
|
|
|
1
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
@@ -30,8 +7,9 @@ exports.Button = exports.ButtonBase = void 0;
|
|
|
30
7
|
/* eslint-disable react/destructuring-assignment */
|
|
31
8
|
const colours_1 = require("../../styles/colours");
|
|
32
9
|
const react_1 = __importDefault(require("react"));
|
|
33
|
-
const
|
|
34
|
-
|
|
10
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
11
|
+
const react_2 = require("@emotion/react");
|
|
12
|
+
exports.ButtonBase = (0, react_2.css) `
|
|
35
13
|
text-decoration: none;
|
|
36
14
|
display: flex;
|
|
37
15
|
justify-content: center;
|
|
@@ -74,10 +52,10 @@ exports.ButtonBase = (0, styled_components_1.css) `
|
|
|
74
52
|
}
|
|
75
53
|
}
|
|
76
54
|
`;
|
|
77
|
-
const BaseButton =
|
|
55
|
+
const BaseButton = styled_1.default.button `
|
|
78
56
|
${exports.ButtonBase}
|
|
79
57
|
`;
|
|
80
|
-
const BaseA =
|
|
58
|
+
const BaseA = styled_1.default.a `
|
|
81
59
|
${exports.ButtonBase}
|
|
82
60
|
`;
|
|
83
61
|
const Button = (props) => {
|
|
@@ -5,16 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Chevron = void 0;
|
|
7
7
|
const Icon_1 = require("../Icon");
|
|
8
|
-
const
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
const ChevronRight_1 = require("../../icons/ChevronRight");
|
|
11
|
-
const Base =
|
|
11
|
+
const Base = styled_1.default.span `
|
|
12
12
|
font-size: 2rem;
|
|
13
13
|
display: flex;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
align-items: center;
|
|
16
16
|
`;
|
|
17
|
-
const IconStyled = (0,
|
|
17
|
+
const IconStyled = (0, styled_1.default)(Icon_1.Icon) `
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
margin: 0;
|
|
20
20
|
padding: 0;
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Close = void 0;
|
|
7
7
|
const dom_1 = require("../../helpers/dom");
|
|
8
|
-
const
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const Base =
|
|
10
|
+
const Base = styled_1.default.div `
|
|
11
11
|
position: absolute;
|
|
12
12
|
z-index: 1;
|
|
13
13
|
width: 32px;
|
|
@@ -8,30 +8,30 @@ const Button_1 = require("../Button");
|
|
|
8
8
|
const FlexColumn_1 = require("../FlexColumn");
|
|
9
9
|
const FlexRow_1 = require("../FlexRow");
|
|
10
10
|
const Modal_1 = require("../Modal/Modal");
|
|
11
|
-
const
|
|
11
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
12
|
const react_1 = __importDefault(require("react"));
|
|
13
|
-
const Base =
|
|
13
|
+
const Base = styled_1.default.div `
|
|
14
14
|
width: 95vw;
|
|
15
15
|
max-width: 30rem;
|
|
16
16
|
height: 50vh;
|
|
17
17
|
max-height: 15rem;
|
|
18
18
|
padding: 1rem;
|
|
19
19
|
`;
|
|
20
|
-
const Content = (0,
|
|
20
|
+
const Content = (0, styled_1.default)(FlexColumn_1.FlexColumn) `
|
|
21
21
|
height: 100%;
|
|
22
22
|
`;
|
|
23
|
-
const TopText =
|
|
23
|
+
const TopText = styled_1.default.div `
|
|
24
24
|
font-weight: bold;
|
|
25
25
|
border-bottom: solid 1px #ccc;
|
|
26
26
|
padding-bottom: 0.25rem;
|
|
27
27
|
font-size: 1.5rem;
|
|
28
28
|
margin-bottom: 1rem;
|
|
29
29
|
`;
|
|
30
|
-
const BottomText =
|
|
30
|
+
const BottomText = styled_1.default.div `
|
|
31
31
|
padding-bottom: 0.25rem;
|
|
32
32
|
font-size: 1.1rem;
|
|
33
33
|
`;
|
|
34
|
-
const Bottom = (0,
|
|
34
|
+
const Bottom = (0, styled_1.default)(FlexRow_1.FlexRow) `
|
|
35
35
|
margin-top: auto;
|
|
36
36
|
justify-content: flex-end;
|
|
37
37
|
> button:first-child {
|
|
@@ -32,9 +32,9 @@ const common_1 = require("../../styles/common");
|
|
|
32
32
|
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
33
33
|
const colours_1 = require("../../styles/colours");
|
|
34
34
|
const KebabDots_1 = require("../KebabDots");
|
|
35
|
-
const
|
|
35
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
36
36
|
const react_1 = __importStar(require("react"));
|
|
37
|
-
const Base =
|
|
37
|
+
const Base = styled_1.default.div `
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-flow: row;
|
|
40
40
|
position: relative;
|
|
@@ -43,7 +43,7 @@ const Base = styled_components_1.default.div `
|
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
flex-grow: 0;
|
|
45
45
|
`;
|
|
46
|
-
const DropItems =
|
|
46
|
+
const DropItems = styled_1.default.div `
|
|
47
47
|
flex-flow: column;
|
|
48
48
|
z-index: 5;
|
|
49
49
|
display: none;
|
|
@@ -58,7 +58,7 @@ const DropItems = styled_components_1.default.div `
|
|
|
58
58
|
}
|
|
59
59
|
${(0, common_1.bounce)('data-bounced')}
|
|
60
60
|
`;
|
|
61
|
-
const ListItemStyle =
|
|
61
|
+
const ListItemStyle = styled_1.default.div `
|
|
62
62
|
z-index: 1;
|
|
63
63
|
font-weight: 500;
|
|
64
64
|
padding-left: 0.5rem;
|
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FlexColumn = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
9
|
-
const Base =
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const Base = styled_1.default.div `
|
|
10
10
|
position: relative;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-flow: column;
|
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FlexRow = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
9
|
-
const Base =
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const Base = styled_1.default.div `
|
|
10
10
|
position: relative;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
display: flex;
|
|
@@ -20,5 +20,8 @@ export interface IIcon {
|
|
|
20
20
|
tabIndex?: number;
|
|
21
21
|
className?: string;
|
|
22
22
|
}
|
|
23
|
-
export declare const IconF: import("styled
|
|
23
|
+
export declare const IconF: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: React.ElementType<any> | undefined;
|
|
26
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
24
27
|
export declare const Icon: (pr: IIcon) => JSX.Element;
|
|
@@ -7,8 +7,8 @@ exports.Icon = exports.IconF = void 0;
|
|
|
7
7
|
const common_1 = require("../../styles/common");
|
|
8
8
|
const object_1 = require("../../../common/helpers/object");
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const
|
|
11
|
-
exports.IconF =
|
|
10
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
11
|
+
exports.IconF = styled_1.default.span `
|
|
12
12
|
transition: all 200ms;
|
|
13
13
|
display: flex;
|
|
14
14
|
justify-content: center;
|
|
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Image = void 0;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
|
-
const
|
|
19
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
20
20
|
const media_1 = require("../../styles/media");
|
|
21
|
-
const Base =
|
|
21
|
+
const Base = styled_1.default.img `
|
|
22
22
|
object-fit: contain;
|
|
23
23
|
min-height: 5rem;
|
|
24
24
|
min-width: 5rem;
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.KebabDots = void 0;
|
|
7
7
|
const Icon_1 = require("../Icon");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const
|
|
9
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
10
10
|
const HorizontalDots_1 = require("../../icons/HorizontalDots");
|
|
11
|
-
const IconStyled = (0,
|
|
11
|
+
const IconStyled = (0, styled_1.default)(Icon_1.Icon) `
|
|
12
12
|
position: absolute;
|
|
13
13
|
`;
|
|
14
14
|
const KebabDots = ({ onClick }) => (react_1.default.createElement(IconStyled, { width: "2rem", height: "2rem", onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(), "data-icon": "kebab" }, HorizontalDots_1.HorizontalDots));
|
|
@@ -27,9 +27,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Loader = void 0;
|
|
30
|
-
const
|
|
30
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
31
31
|
const react_1 = __importStar(require("react"));
|
|
32
|
-
const Base =
|
|
32
|
+
const Base = styled_1.default.div `
|
|
33
33
|
border: 16px solid #f3f3f3; /* Light grey */
|
|
34
34
|
border-top: 16px solid #3498db; /* Blue */
|
|
35
35
|
border-radius: 50%;
|
|
@@ -46,7 +46,7 @@ const Base = styled_components_1.default.div `
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
`;
|
|
49
|
-
const LoadingBack =
|
|
49
|
+
const LoadingBack = styled_1.default.div `
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IModal } from './types';
|
|
3
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const ModalItem: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: React.ElementType<any> | undefined;
|
|
6
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
7
|
export declare const Modal: ({ open, setOpen, children, position, topPosition, showCloseButton, closeOnMoveMouseOutside, className, closeOnClickOutside, }: IModal) => JSX.Element;
|
|
@@ -31,8 +31,8 @@ const Close_1 = require("../Close");
|
|
|
31
31
|
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
32
32
|
const styles_1 = require("../../styles");
|
|
33
33
|
const react_1 = __importStar(require("react"));
|
|
34
|
-
const
|
|
35
|
-
const FixedBackground =
|
|
34
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
35
|
+
const FixedBackground = styled_1.default.div `
|
|
36
36
|
position: fixed;
|
|
37
37
|
top: 0;
|
|
38
38
|
left: 0;
|
|
@@ -44,7 +44,7 @@ const FixedBackground = styled_components_1.default.div `
|
|
|
44
44
|
justify-content: center;
|
|
45
45
|
align-items: center;
|
|
46
46
|
`;
|
|
47
|
-
const ModalBase =
|
|
47
|
+
const ModalBase = styled_1.default.div `
|
|
48
48
|
display: flex;
|
|
49
49
|
position: absolute;
|
|
50
50
|
z-index: 1;
|
|
@@ -68,7 +68,7 @@ const ModalBase = styled_components_1.default.div `
|
|
|
68
68
|
}
|
|
69
69
|
${(0, styles_1.bounce)('data-bounced')}
|
|
70
70
|
`;
|
|
71
|
-
exports.ModalItem =
|
|
71
|
+
exports.ModalItem = styled_1.default.div `
|
|
72
72
|
display: flex;
|
|
73
73
|
padding: 1rem;
|
|
74
74
|
|
|
@@ -76,7 +76,7 @@ exports.ModalItem = styled_components_1.default.div `
|
|
|
76
76
|
background-color: #eee;
|
|
77
77
|
}
|
|
78
78
|
`;
|
|
79
|
-
const CloseStyled = (0,
|
|
79
|
+
const CloseStyled = (0, styled_1.default)(Close_1.Close) `
|
|
80
80
|
z-index: 1;
|
|
81
81
|
`;
|
|
82
82
|
const Modal = ({ open, setOpen, children, position = 'left', topPosition = 'top', showCloseButton = true, closeOnMoveMouseOutside = false, className, closeOnClickOutside = true, }) => {
|
|
@@ -9,8 +9,8 @@ const curl_1 = require("./curl");
|
|
|
9
9
|
const fetch_1 = require("./fetch");
|
|
10
10
|
const FlexRow_1 = require("../FlexRow");
|
|
11
11
|
const react_1 = __importDefault(require("react"));
|
|
12
|
-
const
|
|
13
|
-
const Base =
|
|
12
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
13
|
+
const Base = styled_1.default.div `
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-flow: column;
|
|
16
16
|
width: calc(100% - 4rem);
|
|
@@ -19,23 +19,23 @@ const Base = styled_components_1.default.div `
|
|
|
19
19
|
margin: 1rem;
|
|
20
20
|
padding: 1rem;
|
|
21
21
|
`;
|
|
22
|
-
const Verb =
|
|
22
|
+
const Verb = styled_1.default.div `
|
|
23
23
|
background-color: #333;
|
|
24
24
|
color: white;
|
|
25
25
|
margin-right: 0.5rem;
|
|
26
26
|
padding: 0.25rem;
|
|
27
27
|
font-size: 0.8rem;
|
|
28
28
|
`;
|
|
29
|
-
const ApiName =
|
|
29
|
+
const ApiName = styled_1.default.div `
|
|
30
30
|
font-weight: bold;
|
|
31
31
|
font-size: 1.5rem;
|
|
32
32
|
`;
|
|
33
|
-
const BlockTitle =
|
|
33
|
+
const BlockTitle = styled_1.default.div `
|
|
34
34
|
color: #333;
|
|
35
35
|
font-size: 1.2rem;
|
|
36
36
|
margin-top: 2rem;
|
|
37
37
|
`;
|
|
38
|
-
const Block =
|
|
38
|
+
const Block = styled_1.default.div `
|
|
39
39
|
background-color: rgba(0, 0, 0, 0.1);
|
|
40
40
|
padding: 1rem;
|
|
41
41
|
margin-top: 0.5rem;
|
|
@@ -9,8 +9,8 @@ const common_1 = require("../helpers/common");
|
|
|
9
9
|
const common_2 = require("../../../../common");
|
|
10
10
|
const joinJsx_1 = require("../helpers/joinJsx");
|
|
11
11
|
const react_1 = __importDefault(require("react"));
|
|
12
|
-
const
|
|
13
|
-
const Base =
|
|
12
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
13
|
+
const Base = styled_1.default.div `
|
|
14
14
|
white-space: pre;
|
|
15
15
|
`;
|
|
16
16
|
const Curl = ({ ops, p, }) => {
|
|
@@ -8,10 +8,10 @@ const common_1 = require("../../helpers/common");
|
|
|
8
8
|
const joinJsx_1 = require("../../helpers/joinJsx");
|
|
9
9
|
const common_2 = require("../../../../../common");
|
|
10
10
|
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const
|
|
11
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
12
|
const rb = react_1.default.createElement(react_1.default.Fragment, null, "}");
|
|
13
13
|
const lb = react_1.default.createElement(react_1.default.Fragment, null, "{");
|
|
14
|
-
const Lpad =
|
|
14
|
+
const Lpad = styled_1.default.div `
|
|
15
15
|
padding-left: 0.5rem;
|
|
16
16
|
`;
|
|
17
17
|
const getRequestOptions = (p, ops) => {
|
|
@@ -7,8 +7,8 @@ exports.Fetch = void 0;
|
|
|
7
7
|
const getFetchLines_1 = require("./helpers/getFetchLines");
|
|
8
8
|
const call_1 = require("./helpers/call");
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const
|
|
11
|
-
const Base =
|
|
10
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
11
|
+
const Base = styled_1.default.div `
|
|
12
12
|
white-space: pre;
|
|
13
13
|
`;
|
|
14
14
|
const Fetch = ({ ops, p, }) => {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IOpenApi, IOpenApiCodeBlock, IOpenApiOperation, IOpenApiOperationBlock } from '../types';
|
|
2
|
-
export declare const Highlight: import("styled
|
|
3
|
-
|
|
3
|
+
export declare const Highlight: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
7
|
+
export declare const Highlight2: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
11
|
export declare const getOperation: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>) => IOpenApiOperationBlock;
|
|
5
12
|
export declare const getBodyJson: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>) => {
|
|
6
13
|
nice: string;
|
|
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getSecurity = exports.getBodyJson = exports.getOperation = exports.Highlight2 = exports.Highlight = void 0;
|
|
7
7
|
const common_1 = require("../../../../common");
|
|
8
|
-
const
|
|
9
|
-
exports.Highlight =
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
exports.Highlight = styled_1.default.span `
|
|
10
10
|
color: green;
|
|
11
11
|
`;
|
|
12
|
-
exports.Highlight2 =
|
|
12
|
+
exports.Highlight2 = styled_1.default.span `
|
|
13
13
|
color: indianred;
|
|
14
14
|
`;
|
|
15
15
|
const getApiUrl = (p) => {
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ProgressBar = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
9
|
const styles_1 = require("../../styles");
|
|
10
|
-
const Base =
|
|
10
|
+
const Base = styled_1.default.div `
|
|
11
11
|
position: relative;
|
|
12
12
|
min-width: 5rem;
|
|
13
13
|
width: 100%;
|
|
@@ -15,14 +15,14 @@ const Base = styled_components_1.default.div `
|
|
|
15
15
|
border-radius: 1rem;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
`;
|
|
18
|
-
const Bar =
|
|
18
|
+
const Bar = styled_1.default.div `
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
21
21
|
bottom: 0;
|
|
22
22
|
left: 0;
|
|
23
23
|
transition: width 0.2s ease;
|
|
24
24
|
`;
|
|
25
|
-
const Dot =
|
|
25
|
+
const Dot = styled_1.default.div `
|
|
26
26
|
position: absolute;
|
|
27
27
|
top: calc(50% - 0.25rem);
|
|
28
28
|
width: 0.5rem;
|
|
@@ -32,30 +32,30 @@ const FlexColumn_1 = require("../FlexColumn");
|
|
|
32
32
|
const FlexRow_1 = require("../FlexRow");
|
|
33
33
|
const Modal_1 = require("../Modal/Modal");
|
|
34
34
|
const TextEdit_1 = require("../TextEdit");
|
|
35
|
-
const
|
|
35
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
36
36
|
const react_1 = __importStar(require("react"));
|
|
37
|
-
const Base =
|
|
37
|
+
const Base = styled_1.default.div `
|
|
38
38
|
width: 95vw;
|
|
39
39
|
max-width: 30rem;
|
|
40
40
|
height: 50vh;
|
|
41
41
|
max-height: 15rem;
|
|
42
42
|
padding: 1rem;
|
|
43
43
|
`;
|
|
44
|
-
const Content = (0,
|
|
44
|
+
const Content = (0, styled_1.default)(FlexColumn_1.FlexColumn) `
|
|
45
45
|
height: 100%;
|
|
46
46
|
`;
|
|
47
|
-
const TopText =
|
|
47
|
+
const TopText = styled_1.default.div `
|
|
48
48
|
font-weight: bold;
|
|
49
49
|
border-bottom: solid 1px #ccc;
|
|
50
50
|
padding-bottom: 0.25rem;
|
|
51
51
|
font-size: 1.5rem;
|
|
52
52
|
margin-bottom: 1rem;
|
|
53
53
|
`;
|
|
54
|
-
const BottomText =
|
|
54
|
+
const BottomText = styled_1.default.div `
|
|
55
55
|
padding-bottom: 0.25rem;
|
|
56
56
|
font-size: 1.1rem;
|
|
57
57
|
`;
|
|
58
|
-
const Bottom = (0,
|
|
58
|
+
const Bottom = (0, styled_1.default)(FlexRow_1.FlexRow) `
|
|
59
59
|
margin-top: auto;
|
|
60
60
|
justify-content: flex-end;
|
|
61
61
|
> button:first-child {
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.RowOrColumn = void 0;
|
|
7
7
|
const media_1 = require("../../styles/media");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const
|
|
10
|
-
const Base =
|
|
9
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
10
|
+
const Base = styled_1.default.div `
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-flow: row wrap;
|
|
13
13
|
flex-grow: 1;
|
|
@@ -31,17 +31,17 @@ const CrossIcon_1 = require("../../icons/CrossIcon");
|
|
|
31
31
|
const helpers_1 = require("../../helpers");
|
|
32
32
|
const TextEdit_1 = require("../TextEdit");
|
|
33
33
|
const styles_1 = require("../../styles");
|
|
34
|
-
const
|
|
34
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
35
35
|
const react_1 = __importStar(require("react"));
|
|
36
36
|
const Magnify_1 = require("../../icons/Magnify");
|
|
37
37
|
const common_1 = require("../../../common");
|
|
38
|
-
const Base =
|
|
38
|
+
const Base = styled_1.default.div `
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-flow: column;
|
|
41
41
|
flex-grow: 1;
|
|
42
42
|
width: 100%;
|
|
43
43
|
`;
|
|
44
|
-
const SearchBox =
|
|
44
|
+
const SearchBox = styled_1.default.div `
|
|
45
45
|
padding: 1rem;
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-flow: row;
|
|
@@ -57,12 +57,12 @@ const SearchBox = styled_components_1.default.div `
|
|
|
57
57
|
width: 100%;
|
|
58
58
|
}
|
|
59
59
|
`;
|
|
60
|
-
const Icon =
|
|
60
|
+
const Icon = styled_1.default.div `
|
|
61
61
|
width: 1.5rem;
|
|
62
62
|
height: 1.5rem;
|
|
63
63
|
margin-right: 0.5rem;
|
|
64
64
|
`;
|
|
65
|
-
const Content =
|
|
65
|
+
const Content = styled_1.default.div `
|
|
66
66
|
width: calc(100% - 2rem);
|
|
67
67
|
margin: auto;
|
|
68
68
|
display: flex;
|
|
@@ -83,11 +83,11 @@ const Content = styled_components_1.default.div `
|
|
|
83
83
|
margin-top: 1rem;
|
|
84
84
|
}
|
|
85
85
|
`;
|
|
86
|
-
const Row =
|
|
86
|
+
const Row = styled_1.default.div `
|
|
87
87
|
width: 100%;
|
|
88
88
|
cursor: pointer;
|
|
89
89
|
`;
|
|
90
|
-
const CrossIconStyled = (0,
|
|
90
|
+
const CrossIconStyled = (0, styled_1.default)(CrossIcon_1.CrossIcon) `
|
|
91
91
|
position: absolute;
|
|
92
92
|
right: 1rem;
|
|
93
93
|
@media ${styles_1.bigScreen} {
|
|
@@ -7,9 +7,9 @@ exports.SearchModal = void 0;
|
|
|
7
7
|
const Base_1 = require("./Base");
|
|
8
8
|
const styles_1 = require("../../styles");
|
|
9
9
|
const Modal_1 = require("../Modal/Modal");
|
|
10
|
-
const
|
|
10
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
11
11
|
const react_1 = __importDefault(require("react"));
|
|
12
|
-
const ModalStyled = (0,
|
|
12
|
+
const ModalStyled = (0, styled_1.default)(Modal_1.Modal) `
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-flow: column;
|
|
15
15
|
top: 10rem;
|