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