ag-common 0.0.418 → 0.0.419
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 +34 -35
- package/dist/api/helpers/aws.js +9 -13
- package/dist/api/helpers/cloudfront.js +7 -24
- package/dist/api/helpers/dynamo.js +85 -134
- package/dist/api/helpers/dynamoInfra.js +14 -19
- package/dist/api/helpers/enforceDynamoProvisionCap.js +14 -18
- package/dist/api/helpers/index.js +14 -30
- package/dist/api/helpers/openApiHelpers.d.ts +2 -3
- package/dist/api/helpers/openApiHelpers.js +34 -37
- package/dist/api/helpers/s3.js +81 -126
- package/dist/api/helpers/ses.js +9 -28
- package/dist/api/helpers/sqs.js +9 -26
- package/dist/api/helpers/ssm.js +8 -14
- package/dist/api/helpers/sts.js +16 -34
- package/dist/api/helpers/validateOpenApi.js +92 -103
- package/dist/api/helpers/validations.js +29 -46
- package/dist/api/index.js +2 -18
- package/dist/api/openapi-prefix.js +25 -38
- package/dist/api/types/aws.js +1 -2
- package/dist/api/types/index.js +1 -17
- package/dist/common/const.js +2 -5
- package/dist/common/helpers/array.js +8 -19
- package/dist/common/helpers/async.js +10 -28
- package/dist/common/helpers/binary.js +5 -10
- package/dist/common/helpers/date.js +14 -25
- package/dist/common/helpers/email.js +5 -11
- package/dist/common/helpers/func.js +3 -7
- package/dist/common/helpers/generator.js +9 -24
- package/dist/common/helpers/groupBy.js +3 -9
- package/dist/common/helpers/hashCode.js +3 -9
- package/dist/common/helpers/i18n.js +9 -17
- package/dist/common/helpers/index.js +18 -34
- package/dist/common/helpers/log.js +16 -28
- package/dist/common/helpers/math.js +9 -21
- package/dist/common/helpers/memo.js +3 -7
- package/dist/common/helpers/object.js +20 -35
- package/dist/common/helpers/random.js +4 -10
- package/dist/common/helpers/secondsInNearest.js +2 -7
- package/dist/common/helpers/sleep.js +1 -5
- package/dist/common/helpers/string/base64.js +2 -7
- package/dist/common/helpers/string/chunk.js +1 -5
- package/dist/common/helpers/string/contains.js +2 -7
- package/dist/common/helpers/string/getExtendedStringSegment.js +5 -9
- package/dist/common/helpers/string/index.js +10 -26
- package/dist/common/helpers/string/json.js +1 -5
- package/dist/common/helpers/string/object.js +1 -5
- package/dist/common/helpers/string/surround.js +1 -5
- package/dist/common/helpers/string/trim.js +2 -7
- package/dist/common/helpers/string/truncate.js +1 -5
- package/dist/common/helpers/string/url.js +4 -9
- package/dist/common/index.js +2 -18
- package/dist/index.js +3 -19
- package/dist/ui/components/BorderGradient/index.js +18 -25
- package/dist/ui/components/Button/index.js +17 -25
- package/dist/ui/components/Chevron/index.js +9 -16
- package/dist/ui/components/Close/index.js +6 -13
- package/dist/ui/components/Confirm/Dialog.js +9 -25
- package/dist/ui/components/Confirm/Modal.js +20 -27
- package/dist/ui/components/Confirm/index.js +3 -19
- package/dist/ui/components/Confirm/types.js +1 -2
- package/dist/ui/components/DropdownList/Base.js +33 -64
- package/dist/ui/components/DropdownList/Dialog.js +8 -24
- package/dist/ui/components/DropdownList/index.js +2 -18
- package/dist/ui/components/DropdownList/types.js +1 -2
- package/dist/ui/components/FlexColumn/index.js +4 -14
- package/dist/ui/components/FlexRow/index.js +4 -14
- package/dist/ui/components/HeadersRaw/index.js +20 -27
- package/dist/ui/components/HorizontalScrollBar/index.js +6 -34
- package/dist/ui/components/Icon/index.js +9 -16
- package/dist/ui/components/Image/index.js +10 -28
- package/dist/ui/components/InfiniteScroll/index.js +18 -50
- package/dist/ui/components/KebabDots/index.js +6 -13
- package/dist/ui/components/Loader/index.js +9 -39
- package/dist/ui/components/Modal/Dialog.js +7 -23
- package/dist/ui/components/Modal/Modal.js +19 -49
- package/dist/ui/components/Modal/index.js +3 -19
- package/dist/ui/components/Modal/types.js +1 -2
- package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.js +26 -34
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.js +12 -19
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/getCurlLines.js +6 -11
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.js +8 -15
- package/dist/ui/components/OpenApiCodeBlock/curl/index.js +14 -21
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.js +8 -15
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/getFetchLines.js +3 -8
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.js +27 -34
- package/dist/ui/components/OpenApiCodeBlock/fetch/index.js +11 -18
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +7 -17
- package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.js +6 -15
- package/dist/ui/components/OpenApiCodeBlock/index.js +2 -18
- package/dist/ui/components/OpenApiCodeBlock/types.js +1 -2
- package/dist/ui/components/PieChart/index.js +11 -18
- package/dist/ui/components/ProgressBar/index.js +15 -45
- package/dist/ui/components/Prompt/Dialog.js +7 -23
- package/dist/ui/components/Prompt/Modal.js +25 -55
- package/dist/ui/components/Prompt/index.js +2 -18
- package/dist/ui/components/RowOrColumn/index.js +7 -17
- package/dist/ui/components/Search/AutoHideSearchBox.js +24 -56
- package/dist/ui/components/Search/Base.js +21 -52
- package/dist/ui/components/Search/Dialog.js +10 -26
- package/dist/ui/components/Search/Inline.js +3 -10
- package/dist/ui/components/Search/Modal.js +10 -17
- package/dist/ui/components/Search/SearchBox.js +26 -58
- package/dist/ui/components/Search/index.js +7 -23
- package/dist/ui/components/Search/types.js +1 -2
- package/dist/ui/components/Sidebar/index.js +18 -25
- package/dist/ui/components/SparkLine/index.js +17 -27
- package/dist/ui/components/Table/index.js +15 -22
- package/dist/ui/components/TextEdit/CheckboxEdit.js +21 -51
- package/dist/ui/components/TextEdit/ColourEdit.js +17 -44
- package/dist/ui/components/TextEdit/LengthBox.js +5 -12
- package/dist/ui/components/TextEdit/ListboxEdit.js +15 -42
- package/dist/ui/components/TextEdit/RadioGroup.js +13 -43
- package/dist/ui/components/TextEdit/TextEdit.js +48 -78
- package/dist/ui/components/TextEdit/common.js +11 -17
- package/dist/ui/components/TextEdit/index.js +6 -22
- package/dist/ui/components/TextEdit/types.js +1 -2
- package/dist/ui/components/TextWithButton/index.js +10 -40
- package/dist/ui/components/TimelineChart/index.js +14 -24
- package/dist/ui/components/Toast/Cross.js +9 -16
- package/dist/ui/components/Toast/Tick.js +4 -11
- package/dist/ui/components/Toast/Warning.js +8 -15
- package/dist/ui/components/Toast/base.js +33 -65
- package/dist/ui/components/Toast/index.js +2 -18
- package/dist/ui/components/Toast/types.js +1 -2
- package/dist/ui/components/UserImage/index.js +17 -48
- package/dist/ui/components/index.js +30 -46
- package/dist/ui/helpers/axiosHelper.js +25 -39
- package/dist/ui/helpers/browserHelpers.js +7 -22
- package/dist/ui/helpers/callOpenApi/cached.js +18 -37
- package/dist/ui/helpers/callOpenApi/direct.js +46 -59
- package/dist/ui/helpers/callOpenApi/helpers.js +25 -40
- package/dist/ui/helpers/callOpenApi/hook.js +47 -36
- package/dist/ui/helpers/callOpenApi/index.js +5 -21
- package/dist/ui/helpers/callOpenApi/types.js +1 -2
- package/dist/ui/helpers/cognito.js +1 -2
- package/dist/ui/helpers/cookie/const.js +2 -5
- package/dist/ui/helpers/cookie/get.js +13 -14
- package/dist/ui/helpers/cookie/index.js +5 -21
- package/dist/ui/helpers/cookie/raw.js +9 -16
- package/dist/ui/helpers/cookie/set.js +10 -15
- package/dist/ui/helpers/cookie/use.js +23 -16
- package/dist/ui/helpers/date.js +10 -15
- package/dist/ui/helpers/debounce.js +5 -10
- package/dist/ui/helpers/dom.js +6 -13
- package/dist/ui/helpers/extractAttributes.js +2 -7
- package/dist/ui/helpers/index.js +25 -41
- package/dist/ui/helpers/jwt.js +1 -2
- package/dist/ui/helpers/plural.js +1 -5
- package/dist/ui/helpers/routes.js +17 -24
- package/dist/ui/helpers/serviceWorker.js +8 -23
- package/dist/ui/helpers/useContextMenu.js +9 -14
- package/dist/ui/helpers/useElementAttribute.js +3 -7
- package/dist/ui/helpers/useGranularHook.js +5 -10
- package/dist/ui/helpers/useInterval.js +8 -12
- package/dist/ui/helpers/useLocalStorage.js +24 -32
- package/dist/ui/helpers/useLockBodyScroll.js +3 -7
- package/dist/ui/helpers/useOnClickOutside.js +7 -12
- package/dist/ui/helpers/useOnScroll.js +15 -21
- package/dist/ui/helpers/useOverloadPageSearch.js +3 -7
- package/dist/ui/helpers/useQueryString.js +14 -20
- package/dist/ui/helpers/useResize.js +8 -12
- package/dist/ui/helpers/useTimeout.js +5 -9
- package/dist/ui/icons/ChevronRight.js +3 -9
- package/dist/ui/icons/CrossIcon.js +5 -12
- package/dist/ui/icons/Door.js +4 -10
- package/dist/ui/icons/HorizontalDots.js +3 -9
- package/dist/ui/icons/Magnify.js +3 -10
- package/dist/ui/icons/Pencil.js +5 -12
- package/dist/ui/icons/Save.js +4 -11
- package/dist/ui/icons/Undo.js +5 -12
- package/dist/ui/icons/UserOutline.js +3 -9
- package/dist/ui/icons/index.js +9 -25
- package/dist/ui/index.js +4 -20
- package/dist/ui/styles/colours.js +7 -12
- package/dist/ui/styles/common.js +14 -22
- package/dist/ui/styles/index.js +4 -20
- package/dist/ui/styles/media.js +7 -10
- package/dist/ui/styles/standaloneStyles.js +10 -16
- package/package.json +18 -17
package/dist/ui/icons/index.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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("./ChevronRight"), exports);
|
|
18
|
-
__exportStar(require("./CrossIcon"), exports);
|
|
19
|
-
__exportStar(require("./Door"), exports);
|
|
20
|
-
__exportStar(require("./HorizontalDots"), exports);
|
|
21
|
-
__exportStar(require("./Magnify"), exports);
|
|
22
|
-
__exportStar(require("./Pencil"), exports);
|
|
23
|
-
__exportStar(require("./Save"), exports);
|
|
24
|
-
__exportStar(require("./Undo"), exports);
|
|
25
|
-
__exportStar(require("./UserOutline"), exports);
|
|
1
|
+
export * from './ChevronRight';
|
|
2
|
+
export * from './CrossIcon';
|
|
3
|
+
export * from './Door';
|
|
4
|
+
export * from './HorizontalDots';
|
|
5
|
+
export * from './Magnify';
|
|
6
|
+
export * from './Pencil';
|
|
7
|
+
export * from './Save';
|
|
8
|
+
export * from './Undo';
|
|
9
|
+
export * from './UserOutline';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./components"), exports);
|
|
18
|
-
__exportStar(require("./helpers"), exports);
|
|
19
|
-
__exportStar(require("./icons"), exports);
|
|
20
|
-
__exportStar(require("./styles"), exports);
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './helpers';
|
|
3
|
+
export * from './icons';
|
|
4
|
+
export * from './styles';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.rgbVariation = exports.getColourWheel = exports.colourWheel = exports.colours = void 0;
|
|
4
|
-
const math_1 = require("../../common/helpers/math");
|
|
5
|
-
exports.colours = {
|
|
1
|
+
import { clamp } from '../../common/helpers/math';
|
|
2
|
+
export const colours = {
|
|
6
3
|
mainLight: 'rgb(255,255,255)',
|
|
7
4
|
lightest: 'rgb(247,247,247)',
|
|
8
5
|
darker: 'rgb(0,0,0,0.1)',
|
|
@@ -25,8 +22,8 @@ exports.colours = {
|
|
|
25
22
|
gradient: '---generated---',
|
|
26
23
|
};
|
|
27
24
|
const gradgen = (left, right) => `linear-gradient(to right, ${left}, ${right})`;
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
colours.gradient = gradgen(colours.orangeRed, colours.orange);
|
|
26
|
+
export const colourWheel = [
|
|
30
27
|
'rgb(11,132,165)',
|
|
31
28
|
'rgb(246,200,95)',
|
|
32
29
|
'rgb(111,78,124)',
|
|
@@ -35,17 +32,15 @@ exports.colourWheel = [
|
|
|
35
32
|
'rgb(255,160,86)',
|
|
36
33
|
'rgb(141,221,208)',
|
|
37
34
|
];
|
|
38
|
-
const getColourWheel = (i) =>
|
|
39
|
-
|
|
40
|
-
const rgbVariation = (rgb, diff) => {
|
|
35
|
+
export const getColourWheel = (i) => colourWheel[i % colourWheel.length];
|
|
36
|
+
export const rgbVariation = (rgb, diff) => {
|
|
41
37
|
const nums = rgb.match(/[0-9]+/gi);
|
|
42
38
|
if (!nums || (nums.length !== 3 && nums.length !== 4)) {
|
|
43
39
|
return rgb;
|
|
44
40
|
}
|
|
45
|
-
const nums2 = nums.map((n) =>
|
|
41
|
+
const nums2 = nums.map((n) => clamp({ value: Number(n) + diff, min: 0, max: 255 }));
|
|
46
42
|
if (nums2.length === 3) {
|
|
47
43
|
return `rgb(${nums2.join(',')})`;
|
|
48
44
|
}
|
|
49
45
|
return `rgba(${nums2.join(',')})`;
|
|
50
46
|
};
|
|
51
|
-
exports.rgbVariation = rgbVariation;
|
package/dist/ui/styles/common.js
CHANGED
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.bounce = exports.FullScreenPage = exports.noDrag = exports.Card = exports.FadeBottom = exports.CssTransparentBlock = exports.TextOverflowEllipsis = exports.NoTextSelect = exports.HardOutline = void 0;
|
|
7
|
-
const react_1 = require("@emotion/react");
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
const colours_1 = require("./colours");
|
|
10
|
-
exports.HardOutline = (0, react_1.css) `
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { colours } from './colours';
|
|
4
|
+
export const HardOutline = css `
|
|
11
5
|
filter: drop-shadow(1px 1px 0px var(--outlinecolour))
|
|
12
6
|
drop-shadow(-1px 1px 0px var(--outlinecolour))
|
|
13
7
|
drop-shadow(1px -1px 0px var(--outlinecolour))
|
|
14
8
|
drop-shadow(-1px -1px 0px var(--outlinecolour));
|
|
15
9
|
`;
|
|
16
|
-
|
|
10
|
+
export const NoTextSelect = css `
|
|
17
11
|
user-select: none; /* supported by Chrome and Opera */
|
|
18
12
|
-webkit-user-select: none; /* Safari */
|
|
19
13
|
-khtml-user-select: none; /* Konqueror HTML */
|
|
20
14
|
-moz-user-select: none; /* Firefox */
|
|
21
15
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
22
16
|
`;
|
|
23
|
-
|
|
17
|
+
export const TextOverflowEllipsis = css `
|
|
24
18
|
overflow: hidden;
|
|
25
19
|
text-overflow: ellipsis;
|
|
26
20
|
`;
|
|
27
|
-
|
|
21
|
+
export const CssTransparentBlock = css `
|
|
28
22
|
background-color: rgba(150, 150, 150, 0.5);
|
|
29
23
|
border-radius: 3px;
|
|
30
24
|
font-weight: 600;
|
|
31
|
-
color: ${
|
|
25
|
+
color: ${colours.mainLight};
|
|
32
26
|
`;
|
|
33
|
-
const FadeBottom = ({ height }) =>
|
|
27
|
+
export const FadeBottom = ({ height }) => css `
|
|
34
28
|
&:after {
|
|
35
29
|
content: '';
|
|
36
30
|
position: absolute;
|
|
@@ -59,8 +53,7 @@ const FadeBottom = ({ height }) => (0, react_1.css) `
|
|
|
59
53
|
);
|
|
60
54
|
}
|
|
61
55
|
`;
|
|
62
|
-
|
|
63
|
-
exports.Card = styled_1.default.div `
|
|
56
|
+
export const Card = styled.div `
|
|
64
57
|
background-color: white;
|
|
65
58
|
margin: 0.5rem;
|
|
66
59
|
|
|
@@ -68,9 +61,9 @@ exports.Card = styled_1.default.div `
|
|
|
68
61
|
border-radius: 0.5rem;
|
|
69
62
|
max-width: 40rem;
|
|
70
63
|
padding: 1rem;
|
|
71
|
-
border: solid 2px ${
|
|
64
|
+
border: solid 2px ${colours.lighter};
|
|
72
65
|
`;
|
|
73
|
-
|
|
66
|
+
export const noDrag = {
|
|
74
67
|
draggable: false,
|
|
75
68
|
onDragStart: (e) => {
|
|
76
69
|
e.preventDefault();
|
|
@@ -81,7 +74,7 @@ exports.noDrag = {
|
|
|
81
74
|
e.stopPropagation();
|
|
82
75
|
},
|
|
83
76
|
};
|
|
84
|
-
|
|
77
|
+
export const FullScreenPage = styled.div `
|
|
85
78
|
display: flex;
|
|
86
79
|
width: 100%;
|
|
87
80
|
flex-grow: 1;
|
|
@@ -90,7 +83,7 @@ exports.FullScreenPage = styled_1.default.div `
|
|
|
90
83
|
align-content: flex-start;
|
|
91
84
|
align-items: flex-start;
|
|
92
85
|
`;
|
|
93
|
-
const bounce = (bounceattr) =>
|
|
86
|
+
export const bounce = (bounceattr) => css `
|
|
94
87
|
transition: opacity 0.2s ease,
|
|
95
88
|
transform 0.2s cubic-bezier(0.02, 1.5, 0.74, 1.23);
|
|
96
89
|
transform-origin: 50% 50%;
|
|
@@ -99,4 +92,3 @@ const bounce = (bounceattr) => (0, react_1.css) `
|
|
|
99
92
|
transform: translateY(0);
|
|
100
93
|
}
|
|
101
94
|
`;
|
|
102
|
-
exports.bounce = bounce;
|
package/dist/ui/styles/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./colours"), exports);
|
|
18
|
-
__exportStar(require("./common"), exports);
|
|
19
|
-
__exportStar(require("./media"), exports);
|
|
20
|
-
__exportStar(require("./standaloneStyles"), exports);
|
|
1
|
+
export * from './colours';
|
|
2
|
+
export * from './common';
|
|
3
|
+
export * from './media';
|
|
4
|
+
export * from './standaloneStyles';
|
package/dist/ui/styles/media.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.smallScreen = `(max-width: ${exports.smallScreenPx}px)`;
|
|
9
|
-
exports.bigScreen = `(min-width: ${exports.smallScreenPx}px)`;
|
|
10
|
-
exports.vBigScreen = `(min-width: ${exports.bigScreenPx}px)`;
|
|
1
|
+
export const vSmallScreenPx = 500;
|
|
2
|
+
export const smallScreenPx = 1024;
|
|
3
|
+
export const bigScreenPx = 2000;
|
|
4
|
+
export const vSmallScreen = `(max-width: ${vSmallScreenPx}px)`;
|
|
5
|
+
export const smallScreen = `(max-width: ${smallScreenPx}px)`;
|
|
6
|
+
export const bigScreen = `(min-width: ${smallScreenPx}px)`;
|
|
7
|
+
export const vBigScreen = `(min-width: ${bigScreenPx}px)`;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SOA = exports.SOCenter = exports.SOP = exports.SOB = exports.SOBR = exports.SOBase = void 0;
|
|
7
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
-
const common_1 = require("./common");
|
|
9
|
-
const media_1 = require("./media");
|
|
10
|
-
exports.SOBase = (0, styled_1.default)(common_1.FullScreenPage) `
|
|
1
|
+
import styled from '@emotion/styled';
|
|
2
|
+
import { FullScreenPage } from './common';
|
|
3
|
+
import { smallScreen } from './media';
|
|
4
|
+
export const SOBase = styled(FullScreenPage) `
|
|
11
5
|
> h1,
|
|
12
6
|
h2,
|
|
13
7
|
> p {
|
|
@@ -22,27 +16,27 @@ exports.SOBase = (0, styled_1.default)(common_1.FullScreenPage) `
|
|
|
22
16
|
margin: 0;
|
|
23
17
|
}
|
|
24
18
|
`;
|
|
25
|
-
|
|
19
|
+
export const SOBR = styled.div `
|
|
26
20
|
height: 0.5rem;
|
|
27
21
|
width: 0.5rem;
|
|
28
22
|
`;
|
|
29
|
-
|
|
23
|
+
export const SOB = styled.div `
|
|
30
24
|
font-size: 1.4em;
|
|
31
25
|
font-weight: bold;
|
|
32
26
|
`;
|
|
33
|
-
|
|
27
|
+
export const SOP = styled.div `
|
|
34
28
|
margin-bottom: 1rem;
|
|
35
29
|
`;
|
|
36
|
-
|
|
30
|
+
export const SOCenter = styled.div `
|
|
37
31
|
display: flex;
|
|
38
32
|
flex-flow: column;
|
|
39
33
|
margin-left: auto;
|
|
40
34
|
margin-right: auto;
|
|
41
|
-
@media ${
|
|
35
|
+
@media ${smallScreen} {
|
|
42
36
|
width: calc(100% - 2rem);
|
|
43
37
|
}
|
|
44
38
|
`;
|
|
45
|
-
|
|
39
|
+
export const SOA = styled.a `
|
|
46
40
|
width: fit-content;
|
|
47
41
|
color: rgb(125, 171, 255);
|
|
48
42
|
text-decoration: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.419",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -11,23 +11,21 @@
|
|
|
11
11
|
"format": "npx eslint --ext .ts,.tsx ./src --fix && npx eslint --ext .ts,.tsx ./story --fix",
|
|
12
12
|
"build": "rimraf dist && npm run lint && tsc",
|
|
13
13
|
"lint": "npx eslint --ext .ts,.tsx ./src",
|
|
14
|
-
"start": "cross-env BROWSER=none start-storybook -p 6006",
|
|
15
|
-
"build-storybook": "build-storybook -o docs --quiet"
|
|
14
|
+
"start": "cross-env BROWSER=none cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
15
|
+
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -o docs --quiet"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"aws-cdk-lib": "2
|
|
19
|
-
"aws-sdk": "2
|
|
20
|
-
"axios": "1
|
|
21
|
-
"constructs": "10
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"react-dom": "18.x",
|
|
30
|
-
"typescript": "4.x"
|
|
18
|
+
"aws-cdk-lib": ">=2",
|
|
19
|
+
"aws-sdk": ">=2",
|
|
20
|
+
"axios": ">=1",
|
|
21
|
+
"constructs": ">=10",
|
|
22
|
+
"jsonwebtoken": ">=9",
|
|
23
|
+
"jwks-rsa": ">=3",
|
|
24
|
+
"node-cache": ">=5",
|
|
25
|
+
"openapi-request-validator": ">=12",
|
|
26
|
+
"react": ">=18",
|
|
27
|
+
"react-dom": ">=18",
|
|
28
|
+
"typescript": ">=5"
|
|
31
29
|
},
|
|
32
30
|
"peerDependencies": {
|
|
33
31
|
"@emotion/react": ">=11",
|
|
@@ -50,9 +48,12 @@
|
|
|
50
48
|
"@emotion/react": "11.10.6",
|
|
51
49
|
"@emotion/styled": "11.10.6",
|
|
52
50
|
"cross-env": "7.0.3",
|
|
53
|
-
"eslint-config-e7npm": "0.0.
|
|
51
|
+
"eslint-config-e7npm": "0.0.9",
|
|
54
52
|
"rimraf": "4.4.0"
|
|
55
53
|
},
|
|
54
|
+
"resolutions": {
|
|
55
|
+
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0"
|
|
56
|
+
},
|
|
56
57
|
"files": [
|
|
57
58
|
"dist/**/*",
|
|
58
59
|
"README.md",
|