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.
Files changed (178) hide show
  1. package/dist/api/helpers/api.js +35 -34
  2. package/dist/api/helpers/aws.js +13 -9
  3. package/dist/api/helpers/cloudfront.js +24 -7
  4. package/dist/api/helpers/dynamo.js +134 -85
  5. package/dist/api/helpers/dynamoInfra.js +19 -14
  6. package/dist/api/helpers/enforceDynamoProvisionCap.js +18 -14
  7. package/dist/api/helpers/index.js +30 -14
  8. package/dist/api/helpers/openApiHelpers.js +37 -34
  9. package/dist/api/helpers/s3.js +126 -81
  10. package/dist/api/helpers/ses.js +28 -9
  11. package/dist/api/helpers/sqs.js +26 -9
  12. package/dist/api/helpers/ssm.js +14 -8
  13. package/dist/api/helpers/sts.js +34 -16
  14. package/dist/api/helpers/validateOpenApi.js +103 -92
  15. package/dist/api/helpers/validations.js +46 -29
  16. package/dist/api/index.js +18 -2
  17. package/dist/api/openapi-prefix.js +38 -25
  18. package/dist/api/types/aws.js +2 -1
  19. package/dist/api/types/index.js +17 -1
  20. package/dist/common/const.js +5 -2
  21. package/dist/common/helpers/array.js +19 -8
  22. package/dist/common/helpers/async.js +28 -10
  23. package/dist/common/helpers/binary.js +10 -5
  24. package/dist/common/helpers/date.js +25 -14
  25. package/dist/common/helpers/email.js +11 -5
  26. package/dist/common/helpers/func.js +7 -3
  27. package/dist/common/helpers/generator.js +24 -9
  28. package/dist/common/helpers/groupBy.js +9 -3
  29. package/dist/common/helpers/hashCode.js +9 -3
  30. package/dist/common/helpers/i18n.js +17 -9
  31. package/dist/common/helpers/index.js +34 -18
  32. package/dist/common/helpers/log.js +28 -16
  33. package/dist/common/helpers/math.js +21 -9
  34. package/dist/common/helpers/memo.js +7 -3
  35. package/dist/common/helpers/object.js +35 -20
  36. package/dist/common/helpers/random.js +10 -4
  37. package/dist/common/helpers/secondsInNearest.js +7 -2
  38. package/dist/common/helpers/sleep.js +5 -1
  39. package/dist/common/helpers/string/base64.js +7 -2
  40. package/dist/common/helpers/string/chunk.js +5 -1
  41. package/dist/common/helpers/string/contains.js +7 -2
  42. package/dist/common/helpers/string/getExtendedStringSegment.js +9 -5
  43. package/dist/common/helpers/string/index.js +26 -10
  44. package/dist/common/helpers/string/json.js +5 -1
  45. package/dist/common/helpers/string/object.js +5 -1
  46. package/dist/common/helpers/string/surround.js +5 -1
  47. package/dist/common/helpers/string/trim.js +7 -2
  48. package/dist/common/helpers/string/truncate.js +5 -1
  49. package/dist/common/helpers/string/url.js +9 -4
  50. package/dist/common/index.js +18 -2
  51. package/dist/index.js +19 -3
  52. package/dist/ui/components/BorderGradient/index.js +25 -18
  53. package/dist/ui/components/Button/index.js +25 -17
  54. package/dist/ui/components/Chevron/index.js +16 -9
  55. package/dist/ui/components/Close/index.js +13 -6
  56. package/dist/ui/components/Confirm/Dialog.js +25 -9
  57. package/dist/ui/components/Confirm/Modal.js +27 -20
  58. package/dist/ui/components/Confirm/index.js +19 -3
  59. package/dist/ui/components/Confirm/types.js +2 -1
  60. package/dist/ui/components/DropdownList/Base.js +64 -33
  61. package/dist/ui/components/DropdownList/Dialog.js +24 -8
  62. package/dist/ui/components/DropdownList/index.js +18 -2
  63. package/dist/ui/components/DropdownList/types.js +2 -1
  64. package/dist/ui/components/FlexColumn/index.js +14 -4
  65. package/dist/ui/components/FlexRow/index.js +14 -4
  66. package/dist/ui/components/HeadersRaw/index.js +27 -20
  67. package/dist/ui/components/HorizontalScrollBar/index.js +34 -6
  68. package/dist/ui/components/Icon/index.js +16 -9
  69. package/dist/ui/components/Image/index.js +28 -10
  70. package/dist/ui/components/InfiniteScroll/index.js +50 -18
  71. package/dist/ui/components/KebabDots/index.js +13 -6
  72. package/dist/ui/components/Loader/index.js +39 -9
  73. package/dist/ui/components/Modal/Dialog.js +23 -7
  74. package/dist/ui/components/Modal/Modal.js +49 -19
  75. package/dist/ui/components/Modal/index.js +19 -3
  76. package/dist/ui/components/Modal/types.js +2 -1
  77. package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.js +34 -26
  78. package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.js +19 -12
  79. package/dist/ui/components/OpenApiCodeBlock/curl/helpers/getCurlLines.js +11 -6
  80. package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.js +15 -8
  81. package/dist/ui/components/OpenApiCodeBlock/curl/index.js +21 -14
  82. package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.js +15 -8
  83. package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/getFetchLines.js +8 -3
  84. package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.js +34 -27
  85. package/dist/ui/components/OpenApiCodeBlock/fetch/index.js +18 -11
  86. package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +17 -7
  87. package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.js +15 -6
  88. package/dist/ui/components/OpenApiCodeBlock/index.js +18 -2
  89. package/dist/ui/components/OpenApiCodeBlock/types.js +2 -1
  90. package/dist/ui/components/PieChart/index.js +18 -11
  91. package/dist/ui/components/ProgressBar/index.js +45 -15
  92. package/dist/ui/components/Prompt/Dialog.js +23 -7
  93. package/dist/ui/components/Prompt/Modal.js +55 -25
  94. package/dist/ui/components/Prompt/index.js +18 -2
  95. package/dist/ui/components/RowOrColumn/index.js +17 -7
  96. package/dist/ui/components/Search/AutoHideSearchBox.js +56 -24
  97. package/dist/ui/components/Search/Base.js +52 -21
  98. package/dist/ui/components/Search/Dialog.js +26 -10
  99. package/dist/ui/components/Search/Inline.js +10 -3
  100. package/dist/ui/components/Search/Modal.js +17 -10
  101. package/dist/ui/components/Search/SearchBox.js +58 -26
  102. package/dist/ui/components/Search/index.js +23 -7
  103. package/dist/ui/components/Search/types.js +2 -1
  104. package/dist/ui/components/Sidebar/index.js +25 -18
  105. package/dist/ui/components/SparkLine/index.js +27 -17
  106. package/dist/ui/components/Table/index.js +22 -15
  107. package/dist/ui/components/TextEdit/CheckboxEdit.js +51 -21
  108. package/dist/ui/components/TextEdit/ColourEdit.js +44 -17
  109. package/dist/ui/components/TextEdit/LengthBox.js +12 -5
  110. package/dist/ui/components/TextEdit/ListboxEdit.js +42 -15
  111. package/dist/ui/components/TextEdit/RadioGroup.js +43 -13
  112. package/dist/ui/components/TextEdit/TextEdit.js +78 -48
  113. package/dist/ui/components/TextEdit/common.js +17 -11
  114. package/dist/ui/components/TextEdit/index.js +22 -6
  115. package/dist/ui/components/TextEdit/types.js +2 -1
  116. package/dist/ui/components/TextWithButton/index.js +40 -10
  117. package/dist/ui/components/TimelineChart/index.js +24 -14
  118. package/dist/ui/components/Toast/Cross.js +16 -9
  119. package/dist/ui/components/Toast/Tick.js +11 -4
  120. package/dist/ui/components/Toast/Warning.js +15 -8
  121. package/dist/ui/components/Toast/base.js +65 -33
  122. package/dist/ui/components/Toast/index.js +18 -2
  123. package/dist/ui/components/Toast/types.js +2 -1
  124. package/dist/ui/components/UserImage/index.js +48 -17
  125. package/dist/ui/components/index.js +46 -30
  126. package/dist/ui/helpers/axiosHelper.js +39 -25
  127. package/dist/ui/helpers/browserHelpers.js +22 -7
  128. package/dist/ui/helpers/callOpenApi/cached.js +37 -18
  129. package/dist/ui/helpers/callOpenApi/direct.js +59 -46
  130. package/dist/ui/helpers/callOpenApi/helpers.js +40 -25
  131. package/dist/ui/helpers/callOpenApi/hook.js +36 -47
  132. package/dist/ui/helpers/callOpenApi/index.js +21 -5
  133. package/dist/ui/helpers/callOpenApi/types.js +2 -1
  134. package/dist/ui/helpers/cognito.js +2 -1
  135. package/dist/ui/helpers/cookie/const.js +5 -2
  136. package/dist/ui/helpers/cookie/get.js +14 -13
  137. package/dist/ui/helpers/cookie/index.js +21 -5
  138. package/dist/ui/helpers/cookie/raw.js +16 -9
  139. package/dist/ui/helpers/cookie/set.js +15 -10
  140. package/dist/ui/helpers/cookie/use.js +16 -23
  141. package/dist/ui/helpers/date.js +15 -10
  142. package/dist/ui/helpers/debounce.js +10 -5
  143. package/dist/ui/helpers/dom.js +13 -6
  144. package/dist/ui/helpers/extractAttributes.js +7 -2
  145. package/dist/ui/helpers/index.js +41 -25
  146. package/dist/ui/helpers/jwt.js +2 -1
  147. package/dist/ui/helpers/plural.js +5 -1
  148. package/dist/ui/helpers/routes.js +24 -17
  149. package/dist/ui/helpers/serviceWorker.js +23 -8
  150. package/dist/ui/helpers/useContextMenu.js +14 -9
  151. package/dist/ui/helpers/useElementAttribute.js +7 -3
  152. package/dist/ui/helpers/useGranularHook.js +10 -5
  153. package/dist/ui/helpers/useInterval.js +12 -8
  154. package/dist/ui/helpers/useLocalStorage.js +32 -24
  155. package/dist/ui/helpers/useLockBodyScroll.js +7 -3
  156. package/dist/ui/helpers/useOnClickOutside.js +12 -7
  157. package/dist/ui/helpers/useOnScroll.js +21 -15
  158. package/dist/ui/helpers/useOverloadPageSearch.js +7 -3
  159. package/dist/ui/helpers/useQueryString.js +20 -14
  160. package/dist/ui/helpers/useResize.js +19 -17
  161. package/dist/ui/helpers/useTimeout.js +9 -5
  162. package/dist/ui/icons/ChevronRight.js +9 -3
  163. package/dist/ui/icons/CrossIcon.js +12 -5
  164. package/dist/ui/icons/Door.js +10 -4
  165. package/dist/ui/icons/HorizontalDots.js +9 -3
  166. package/dist/ui/icons/Magnify.js +10 -3
  167. package/dist/ui/icons/Pencil.js +12 -5
  168. package/dist/ui/icons/Save.js +11 -4
  169. package/dist/ui/icons/Undo.js +12 -5
  170. package/dist/ui/icons/UserOutline.js +9 -3
  171. package/dist/ui/icons/index.js +25 -9
  172. package/dist/ui/index.js +20 -4
  173. package/dist/ui/styles/colours.js +12 -7
  174. package/dist/ui/styles/common.js +22 -14
  175. package/dist/ui/styles/index.js +20 -4
  176. package/dist/ui/styles/media.js +10 -7
  177. package/dist/ui/styles/standaloneStyles.js +16 -10
  178. package/package.json +2 -2
@@ -1,9 +1,25 @@
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';
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
- export * from './components';
2
- export * from './helpers';
3
- export * from './icons';
4
- export * from './styles';
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
- import { clamp } from '../../common/helpers/math';
2
- export const colours = {
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
- export const colourWheel = [
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
- export const getColourWheel = (i) => colourWheel[i % colourWheel.length];
36
- export const rgbVariation = (rgb, diff) => {
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;
@@ -1,30 +1,36 @@
1
- import { css } from '@emotion/react';
2
- import styled from '@emotion/styled';
3
- import { colours } from './colours';
4
- export const HardOutline = css `
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
- export const NoTextSelect = css `
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
- export const TextOverflowEllipsis = css `
23
+ exports.TextOverflowEllipsis = (0, react_1.css) `
18
24
  overflow: hidden;
19
25
  text-overflow: ellipsis;
20
26
  `;
21
- export const CssTransparentBlock = css `
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
- export const FadeBottom = ({ height }) => css `
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
- export const Card = styled.div `
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
- export const noDrag = {
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
- export const FullScreenPage = styled.div `
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
- export const bounce = (bounceattr) => css `
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;
@@ -1,4 +1,20 @@
1
- export * from './colours';
2
- export * from './common';
3
- export * from './media';
4
- export * from './standaloneStyles';
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);
@@ -1,7 +1,10 @@
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
+ "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
- import styled from '@emotion/styled';
2
- import { FullScreenPage } from './common';
3
- import { smallScreen } from './media';
4
- export const SOBase = styled(FullScreenPage) `
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
- export const SOBR = styled.div `
25
+ exports.SOBR = styled_1.default.div `
20
26
  height: 0.5rem;
21
27
  width: 0.5rem;
22
28
  `;
23
- export const SOB = styled.div `
29
+ exports.SOB = styled_1.default.div `
24
30
  font-size: 1.4em;
25
31
  font-weight: bold;
26
32
  `;
27
- export const SOP = styled.div `
33
+ exports.SOP = styled_1.default.div `
28
34
  margin-bottom: 1rem;
29
35
  `;
30
- export const SOCenter = styled.div `
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
- export const SOA = styled.a `
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.419",
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.cd77847.0"
55
+ "@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.f9c48c0.0"
56
56
  },
57
57
  "files": [
58
58
  "dist/**/*",