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
package/dist/ui/icons/index.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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("./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);
|
package/dist/ui/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./components"), exports);
|
|
18
|
+
__exportStar(require("./helpers"), exports);
|
|
19
|
+
__exportStar(require("./icons"), exports);
|
|
20
|
+
__exportStar(require("./styles"), exports);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rgbVariation = exports.getColourWheel = exports.colourWheel = exports.colours = void 0;
|
|
4
|
+
const math_1 = require("../../common/helpers/math");
|
|
5
|
+
exports.colours = {
|
|
3
6
|
mainLight: 'rgb(255,255,255)',
|
|
4
7
|
lightest: 'rgb(247,247,247)',
|
|
5
8
|
darker: 'rgb(0,0,0,0.1)',
|
|
@@ -22,8 +25,8 @@ export const colours = {
|
|
|
22
25
|
gradient: '---generated---',
|
|
23
26
|
};
|
|
24
27
|
const gradgen = (left, right) => `linear-gradient(to right, ${left}, ${right})`;
|
|
25
|
-
colours.gradient = gradgen(colours.orangeRed, colours.orange);
|
|
26
|
-
|
|
28
|
+
exports.colours.gradient = gradgen(exports.colours.orangeRed, exports.colours.orange);
|
|
29
|
+
exports.colourWheel = [
|
|
27
30
|
'rgb(11,132,165)',
|
|
28
31
|
'rgb(246,200,95)',
|
|
29
32
|
'rgb(111,78,124)',
|
|
@@ -32,15 +35,17 @@ export const colourWheel = [
|
|
|
32
35
|
'rgb(255,160,86)',
|
|
33
36
|
'rgb(141,221,208)',
|
|
34
37
|
];
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
const getColourWheel = (i) => exports.colourWheel[i % exports.colourWheel.length];
|
|
39
|
+
exports.getColourWheel = getColourWheel;
|
|
40
|
+
const rgbVariation = (rgb, diff) => {
|
|
37
41
|
const nums = rgb.match(/[0-9]+/gi);
|
|
38
42
|
if (!nums || (nums.length !== 3 && nums.length !== 4)) {
|
|
39
43
|
return rgb;
|
|
40
44
|
}
|
|
41
|
-
const nums2 = nums.map((n) => clamp({ value: Number(n) + diff, min: 0, max: 255 }));
|
|
45
|
+
const nums2 = nums.map((n) => (0, math_1.clamp)({ value: Number(n) + diff, min: 0, max: 255 }));
|
|
42
46
|
if (nums2.length === 3) {
|
|
43
47
|
return `rgb(${nums2.join(',')})`;
|
|
44
48
|
}
|
|
45
49
|
return `rgba(${nums2.join(',')})`;
|
|
46
50
|
};
|
|
51
|
+
exports.rgbVariation = rgbVariation;
|
package/dist/ui/styles/common.js
CHANGED
|
@@ -1,30 +1,36 @@
|
|
|
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.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) `
|
|
5
11
|
filter: drop-shadow(1px 1px 0px var(--outlinecolour))
|
|
6
12
|
drop-shadow(-1px 1px 0px var(--outlinecolour))
|
|
7
13
|
drop-shadow(1px -1px 0px var(--outlinecolour))
|
|
8
14
|
drop-shadow(-1px -1px 0px var(--outlinecolour));
|
|
9
15
|
`;
|
|
10
|
-
|
|
16
|
+
exports.NoTextSelect = (0, react_1.css) `
|
|
11
17
|
user-select: none; /* supported by Chrome and Opera */
|
|
12
18
|
-webkit-user-select: none; /* Safari */
|
|
13
19
|
-khtml-user-select: none; /* Konqueror HTML */
|
|
14
20
|
-moz-user-select: none; /* Firefox */
|
|
15
21
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
16
22
|
`;
|
|
17
|
-
|
|
23
|
+
exports.TextOverflowEllipsis = (0, react_1.css) `
|
|
18
24
|
overflow: hidden;
|
|
19
25
|
text-overflow: ellipsis;
|
|
20
26
|
`;
|
|
21
|
-
|
|
27
|
+
exports.CssTransparentBlock = (0, react_1.css) `
|
|
22
28
|
background-color: rgba(150, 150, 150, 0.5);
|
|
23
29
|
border-radius: 3px;
|
|
24
30
|
font-weight: 600;
|
|
25
|
-
color: ${colours.mainLight};
|
|
31
|
+
color: ${colours_1.colours.mainLight};
|
|
26
32
|
`;
|
|
27
|
-
|
|
33
|
+
const FadeBottom = ({ height }) => (0, react_1.css) `
|
|
28
34
|
&:after {
|
|
29
35
|
content: '';
|
|
30
36
|
position: absolute;
|
|
@@ -53,7 +59,8 @@ export const FadeBottom = ({ height }) => css `
|
|
|
53
59
|
);
|
|
54
60
|
}
|
|
55
61
|
`;
|
|
56
|
-
|
|
62
|
+
exports.FadeBottom = FadeBottom;
|
|
63
|
+
exports.Card = styled_1.default.div `
|
|
57
64
|
background-color: white;
|
|
58
65
|
margin: 0.5rem;
|
|
59
66
|
|
|
@@ -61,9 +68,9 @@ export const Card = styled.div `
|
|
|
61
68
|
border-radius: 0.5rem;
|
|
62
69
|
max-width: 40rem;
|
|
63
70
|
padding: 1rem;
|
|
64
|
-
border: solid 2px ${colours.lighter};
|
|
71
|
+
border: solid 2px ${colours_1.colours.lighter};
|
|
65
72
|
`;
|
|
66
|
-
|
|
73
|
+
exports.noDrag = {
|
|
67
74
|
draggable: false,
|
|
68
75
|
onDragStart: (e) => {
|
|
69
76
|
e.preventDefault();
|
|
@@ -74,7 +81,7 @@ export const noDrag = {
|
|
|
74
81
|
e.stopPropagation();
|
|
75
82
|
},
|
|
76
83
|
};
|
|
77
|
-
|
|
84
|
+
exports.FullScreenPage = styled_1.default.div `
|
|
78
85
|
display: flex;
|
|
79
86
|
width: 100%;
|
|
80
87
|
flex-grow: 1;
|
|
@@ -83,7 +90,7 @@ export const FullScreenPage = styled.div `
|
|
|
83
90
|
align-content: flex-start;
|
|
84
91
|
align-items: flex-start;
|
|
85
92
|
`;
|
|
86
|
-
|
|
93
|
+
const bounce = (bounceattr) => (0, react_1.css) `
|
|
87
94
|
transition: opacity 0.2s ease,
|
|
88
95
|
transform 0.2s cubic-bezier(0.02, 1.5, 0.74, 1.23);
|
|
89
96
|
transform-origin: 50% 50%;
|
|
@@ -92,3 +99,4 @@ export const bounce = (bounceattr) => css `
|
|
|
92
99
|
transform: translateY(0);
|
|
93
100
|
}
|
|
94
101
|
`;
|
|
102
|
+
exports.bounce = bounce;
|
package/dist/ui/styles/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./colours"), exports);
|
|
18
|
+
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./media"), exports);
|
|
20
|
+
__exportStar(require("./standaloneStyles"), exports);
|
package/dist/ui/styles/media.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vBigScreen = exports.bigScreen = exports.smallScreen = exports.vSmallScreen = exports.bigScreenPx = exports.smallScreenPx = exports.vSmallScreenPx = void 0;
|
|
4
|
+
exports.vSmallScreenPx = 500;
|
|
5
|
+
exports.smallScreenPx = 1024;
|
|
6
|
+
exports.bigScreenPx = 2000;
|
|
7
|
+
exports.vSmallScreen = `(max-width: ${exports.vSmallScreenPx}px)`;
|
|
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,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.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) `
|
|
5
11
|
> h1,
|
|
6
12
|
h2,
|
|
7
13
|
> p {
|
|
@@ -16,27 +22,27 @@ export const SOBase = styled(FullScreenPage) `
|
|
|
16
22
|
margin: 0;
|
|
17
23
|
}
|
|
18
24
|
`;
|
|
19
|
-
|
|
25
|
+
exports.SOBR = styled_1.default.div `
|
|
20
26
|
height: 0.5rem;
|
|
21
27
|
width: 0.5rem;
|
|
22
28
|
`;
|
|
23
|
-
|
|
29
|
+
exports.SOB = styled_1.default.div `
|
|
24
30
|
font-size: 1.4em;
|
|
25
31
|
font-weight: bold;
|
|
26
32
|
`;
|
|
27
|
-
|
|
33
|
+
exports.SOP = styled_1.default.div `
|
|
28
34
|
margin-bottom: 1rem;
|
|
29
35
|
`;
|
|
30
|
-
|
|
36
|
+
exports.SOCenter = styled_1.default.div `
|
|
31
37
|
display: flex;
|
|
32
38
|
flex-flow: column;
|
|
33
39
|
margin-left: auto;
|
|
34
40
|
margin-right: auto;
|
|
35
|
-
@media ${smallScreen} {
|
|
41
|
+
@media ${media_1.smallScreen} {
|
|
36
42
|
width: calc(100% - 2rem);
|
|
37
43
|
}
|
|
38
44
|
`;
|
|
39
|
-
|
|
45
|
+
exports.SOA = styled_1.default.a `
|
|
40
46
|
width: fit-content;
|
|
41
47
|
color: rgb(125, 171, 255);
|
|
42
48
|
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.421",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"rimraf": "4.4.0"
|
|
53
53
|
},
|
|
54
54
|
"resolutions": {
|
|
55
|
-
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.
|
|
55
|
+
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.f9c48c0.0"
|
|
56
56
|
},
|
|
57
57
|
"files": [
|
|
58
58
|
"dist/**/*",
|