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,27 +1,23 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useInterval = exports.useIsomorphicLayoutEffect = void 0;
4
- const react_1 = require("react");
5
- exports.useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react_1.useLayoutEffect : react_1.useEffect;
6
- exports.default = exports.useIsomorphicLayoutEffect;
7
- function useInterval(callback,
1
+ import { useEffect, useLayoutEffect, useRef } from 'react';
2
+ export const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
3
+ export default useIsomorphicLayoutEffect;
4
+ export function useInterval(callback,
8
5
  /** ms delay */
9
6
  delay,
10
7
  /** optionally called on return of useEffect */
11
8
  clear) {
12
- const savedCallback = (0, react_1.useRef)(callback);
13
- (0, exports.useIsomorphicLayoutEffect)(() => {
9
+ const savedCallback = useRef(callback);
10
+ useIsomorphicLayoutEffect(() => {
14
11
  savedCallback.current = callback;
15
12
  }, [callback]);
16
- (0, react_1.useEffect)(() => {
13
+ useEffect(() => {
17
14
  if (!delay && delay !== 0) {
18
15
  return;
19
16
  }
20
17
  const id = setInterval(() => savedCallback.current(), delay);
21
18
  return () => {
22
19
  clearInterval(id);
23
- clear === null || clear === void 0 ? void 0 : clear();
20
+ clear?.();
24
21
  };
25
22
  }, [clear, delay]);
26
23
  }
27
- exports.useInterval = useInterval;
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UseLocalStorage = exports.getLocalStorageItem = exports.setLocalStorageItem = exports.clearAllLocalStorage = exports.clearLocalStorageItem = void 0;
4
- const react_1 = require("react");
5
- const date_1 = require("../../common/helpers/date");
6
- const log_1 = require("../../common/helpers/log");
7
- const object_1 = require("../../common/helpers/object");
8
- const clearLocalStorageItem = (key) => {
1
+ import { useState } from 'react';
2
+ import { getTimeSeconds } from '../../common/helpers/date';
3
+ import { error, warn } from '../../common/helpers/log';
4
+ import { tryJsonParse } from '../../common/helpers/object';
5
+ export const clearLocalStorageItem = (key) => {
9
6
  if (typeof window === 'undefined') {
10
7
  return;
11
8
  }
@@ -13,74 +10,69 @@ const clearLocalStorageItem = (key) => {
13
10
  window.localStorage.removeItem(key);
14
11
  }
15
12
  catch (e) {
16
- (0, log_1.warn)('error clearing local storage:', e);
13
+ warn('error clearing local storage:', e);
17
14
  }
18
15
  };
19
- exports.clearLocalStorageItem = clearLocalStorageItem;
20
- const clearAllLocalStorage = (except) => {
16
+ export const clearAllLocalStorage = (except) => {
21
17
  try {
22
18
  if (typeof window === 'undefined') {
23
19
  return;
24
20
  }
25
21
  for (let i = 0; i < localStorage.length; i += 1) {
26
22
  const key = localStorage.key(i);
27
- if (!key || (except === null || except === void 0 ? void 0 : except.includes(key))) {
23
+ if (!key || except?.includes(key)) {
28
24
  return;
29
25
  }
30
- (0, exports.clearLocalStorageItem)(key);
26
+ clearLocalStorageItem(key);
31
27
  }
32
28
  }
33
29
  catch (e) {
34
- (0, log_1.warn)('error clearing local storage:', e);
30
+ warn('error clearing local storage:', e);
35
31
  }
36
32
  };
37
- exports.clearAllLocalStorage = clearAllLocalStorage;
38
- const setLocalStorageItem = (key, value, ttl) => {
33
+ export const setLocalStorageItem = (key, value, ttl) => {
39
34
  try {
40
35
  if (typeof window === 'undefined') {
41
36
  return;
42
37
  }
43
38
  const set = {
44
- expiry: !ttl ? undefined : (0, date_1.getTimeSeconds)() + ttl,
39
+ expiry: !ttl ? undefined : getTimeSeconds() + ttl,
45
40
  val: JSON.stringify(value),
46
41
  };
47
42
  window.localStorage.setItem(key, JSON.stringify(set));
48
43
  }
49
44
  catch (e) {
50
- (0, log_1.error)(`set LS error:${key}-${e}`);
51
- (0, exports.clearLocalStorageItem)(key);
45
+ error(`set LS error:${key}-${e}`);
46
+ clearLocalStorageItem(key);
52
47
  }
53
48
  };
54
- exports.setLocalStorageItem = setLocalStorageItem;
55
- const getLocalStorageItem = (key, initialValue, ttl) => {
49
+ export const getLocalStorageItem = (key, initialValue, ttl) => {
56
50
  if (typeof window === 'undefined') {
57
51
  return initialValue;
58
52
  }
59
53
  const itemraw = window.localStorage.getItem(key);
60
- const item = (0, object_1.tryJsonParse)(itemraw, undefined);
61
- if (!item || (item.expiry && (0, date_1.getTimeSeconds)() > item.expiry)) {
62
- (0, exports.setLocalStorageItem)(key, initialValue, ttl);
54
+ const item = tryJsonParse(itemraw, undefined);
55
+ if (!item || (item.expiry && getTimeSeconds() > item.expiry)) {
56
+ setLocalStorageItem(key, initialValue, ttl);
63
57
  return initialValue;
64
58
  }
65
- const itemv = (0, object_1.tryJsonParse)(item.val, undefined);
59
+ const itemv = tryJsonParse(item.val, undefined);
66
60
  if (!itemv) {
67
- (0, exports.setLocalStorageItem)(key, initialValue, ttl);
61
+ setLocalStorageItem(key, initialValue, ttl);
68
62
  return initialValue;
69
63
  }
70
64
  return itemv;
71
65
  };
72
- exports.getLocalStorageItem = getLocalStorageItem;
73
- function UseLocalStorage(key, initialValue, ttl) {
74
- const storedValue = (0, exports.getLocalStorageItem)(key, initialValue, ttl);
66
+ export function UseLocalStorage(key, initialValue, ttl) {
67
+ const storedValue = getLocalStorageItem(key, initialValue, ttl);
75
68
  //bump use of stored value
76
- const [, setT] = (0, react_1.useState)(0);
69
+ const [, setT] = useState(0);
77
70
  // Return a wrapped version of useState's setter function that ...
78
71
  // ... persists the new value to localStorage.
79
72
  const setValue = (value) => {
80
73
  const valueToStore = (value instanceof Function ? value(storedValue) : value);
81
- (0, exports.setLocalStorageItem)(key, valueToStore, ttl);
74
+ setLocalStorageItem(key, valueToStore, ttl);
82
75
  setT(new Date().getTime());
83
76
  };
84
77
  return [storedValue, setValue];
85
78
  }
86
- exports.UseLocalStorage = UseLocalStorage;
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLockBodyScroll = void 0;
4
- const react_1 = require("react");
5
- function useLockBodyScroll(enabled) {
6
- (0, react_1.useLayoutEffect)(() => {
1
+ import { useLayoutEffect } from 'react';
2
+ export function useLockBodyScroll(enabled) {
3
+ useLayoutEffect(() => {
7
4
  let originalStyle;
8
5
  if (enabled) {
9
6
  originalStyle = window.getComputedStyle(document.body).overflow;
@@ -16,4 +13,3 @@ function useLockBodyScroll(enabled) {
16
13
  };
17
14
  }, [enabled]);
18
15
  }
19
- exports.useLockBodyScroll = useLockBodyScroll;
@@ -1,25 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useOnClickOutside = void 0;
4
- const react_1 = require("react");
5
- const dom_1 = require("./dom");
6
- function useOnClickOutside(p, handler) {
7
- (0, react_1.useEffect)(() => {
1
+ import { useEffect } from 'react';
2
+ import { isRightClick } from './dom';
3
+ export function useOnClickOutside(p, handler) {
4
+ useEffect(() => {
8
5
  if (p.disabled || typeof window === 'undefined') {
9
6
  return () => {
10
7
  //
11
8
  };
12
9
  }
13
10
  const listener = (event) => {
14
- var _a;
15
11
  //
16
- const isRightMB = (0, dom_1.isRightClick)(event);
12
+ const isRightMB = isRightClick(event);
17
13
  if (isRightMB) {
18
14
  return;
19
15
  }
20
- const el = (_a = p.ref) === null || _a === void 0 ? void 0 : _a.current;
16
+ const el = p.ref?.current;
21
17
  // Do nothing if clicking ref's element or descendent elements
22
- if (!el || el.contains((event === null || event === void 0 ? void 0 : event.target) || null)) {
18
+ if (!el || el.contains(event?.target || null)) {
23
19
  return;
24
20
  }
25
21
  handler(event);
@@ -37,4 +33,3 @@ function useOnClickOutside(p, handler) {
37
33
  // Reload only if ref or handler changes
38
34
  }, [p, handler]);
39
35
  }
40
- exports.useOnClickOutside = useOnClickOutside;
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useOnScroll = void 0;
4
- const react_1 = require("react");
5
- const debounce_1 = require("./debounce");
6
- const useGranularHook_1 = require("./useGranularHook");
7
- function useOnScroll({ onScroll, element, } = {}) {
8
- const [state, setState] = (0, react_1.useState)({
1
+ import { useEffect, useState } from 'react';
2
+ import { debounce } from './debounce';
3
+ import { useGranularEffect } from './useGranularHook';
4
+ export function useOnScroll({ onScroll, element, } = {}) {
5
+ const [state, setState] = useState({
9
6
  scrolled: false,
10
7
  x: 0,
11
8
  y: 0,
@@ -13,12 +10,11 @@ function useOnScroll({ onScroll, element, } = {}) {
13
10
  scrollTopX: 0,
14
11
  scrollTopY: 0,
15
12
  });
16
- const [startScrollTopY, setStartScrollTopY] = (0, react_1.useState)(-1);
17
- (0, useGranularHook_1.useGranularEffect)(() => {
13
+ const [startScrollTopY, setStartScrollTopY] = useState(-1);
14
+ useGranularEffect(() => {
18
15
  const listener = (e) => {
19
- var _a, _b, _c, _d;
20
- const y = (_b = (_a = element === null || element === void 0 ? void 0 : element.current) === null || _a === void 0 ? void 0 : _a.scrollTop) !== null && _b !== void 0 ? _b : window.scrollY;
21
- const x = (_d = (_c = element === null || element === void 0 ? void 0 : element.current) === null || _c === void 0 ? void 0 : _c.scrollLeft) !== null && _d !== void 0 ? _d : window.scrollX;
16
+ const y = element?.current?.scrollTop ?? window.scrollY;
17
+ const x = element?.current?.scrollLeft ?? window.scrollX;
22
18
  const r = {
23
19
  y,
24
20
  x,
@@ -28,28 +24,26 @@ function useOnScroll({ onScroll, element, } = {}) {
28
24
  scrollTopY: y,
29
25
  };
30
26
  setState(r);
31
- onScroll === null || onScroll === void 0 ? void 0 : onScroll(e, r);
27
+ onScroll?.(e, r);
32
28
  return { y, x };
33
29
  };
34
30
  const listenDebounce = (e) => {
35
- (0, debounce_1.debounce)(() => {
31
+ debounce(() => {
36
32
  const { y } = listener(e);
37
33
  setStartScrollTopY(y);
38
34
  }, { key: 'onscroll', time: 20 });
39
35
  };
40
- ((element === null || element === void 0 ? void 0 : element.current) || document).addEventListener(`scroll`, listenDebounce, {
36
+ (element?.current || document).addEventListener(`scroll`, listenDebounce, {
41
37
  passive: true,
42
38
  });
43
39
  return () => {
44
- ((element === null || element === void 0 ? void 0 : element.current) || document).removeEventListener(`scroll`, listenDebounce);
40
+ (element?.current || document).removeEventListener(`scroll`, listenDebounce);
45
41
  };
46
42
  }, [element], [element, onScroll, startScrollTopY]);
47
- (0, react_1.useEffect)(() => {
48
- var _a;
49
- if (startScrollTopY === -1 && ((_a = element === null || element === void 0 ? void 0 : element.current) === null || _a === void 0 ? void 0 : _a.scrollTop)) {
43
+ useEffect(() => {
44
+ if (startScrollTopY === -1 && element?.current?.scrollTop) {
50
45
  setStartScrollTopY(element.current.scrollTop);
51
46
  }
52
47
  }, [element, startScrollTopY]);
53
48
  return state;
54
49
  }
55
- exports.useOnScroll = useOnScroll;
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useOverloadPageSearch = void 0;
4
- const react_1 = require("react");
5
- const useOverloadPageSearch = ({ disabled = false, onTrigger, }) => {
6
- (0, react_1.useEffect)(() => {
1
+ import { useEffect } from 'react';
2
+ export const useOverloadPageSearch = ({ disabled = false, onTrigger, }) => {
3
+ useEffect(() => {
7
4
  const ctrlF = (e) => {
8
5
  const macSearch = e.metaKey && e.code === 'KeyF';
9
6
  const winSearch = e.ctrlKey && e.code === 'KeyF';
@@ -19,4 +16,3 @@ const useOverloadPageSearch = ({ disabled = false, onTrigger, }) => {
19
16
  return () => window.removeEventListener('keydown', ctrlF);
20
17
  }, [disabled, onTrigger]);
21
18
  };
22
- exports.useOverloadPageSearch = useOverloadPageSearch;
@@ -1,21 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useQueryStringSingle = exports.useQueryStringArray = exports.useQueryStringRaw = exports.isServer = void 0;
4
- const react_1 = require("react");
5
- const log_1 = require("../../common/helpers/log");
6
- const object_1 = require("../../common/helpers/object");
7
- exports.isServer = typeof window === 'undefined';
1
+ import { useEffect, useState } from 'react';
2
+ import { info } from '../../common/helpers/log';
3
+ import { objectToString, paramsToObject } from '../../common/helpers/object';
4
+ export const isServer = typeof window === 'undefined';
8
5
  /**
9
6
  * hook for query string value
10
7
  * @param param0 can provide for SSR - queryValues will default to window if available
11
8
  * @returns
12
9
  */
13
- const useQueryStringRaw = ({ name, queryValues, defaultValue, stringify, parse, }) => {
14
- const qv = exports.isServer
10
+ export const useQueryStringRaw = ({ name, queryValues, defaultValue, stringify, parse, }) => {
11
+ const qv = isServer
15
12
  ? queryValues || {}
16
- : (0, object_1.paramsToObject)(new URLSearchParams(window.location.search));
13
+ : paramsToObject(new URLSearchParams(window.location.search));
17
14
  const qsv = parse(qv[name]) || defaultValue;
18
- const [state, setStateRaw] = (0, react_1.useState)(qsv);
15
+ const [state, setStateRaw] = useState(qsv);
19
16
  //
20
17
  const setState = (v) => {
21
18
  const sv = !v ? undefined : stringify(v);
@@ -25,48 +22,45 @@ const useQueryStringRaw = ({ name, queryValues, defaultValue, stringify, parse,
25
22
  else {
26
23
  delete qv[name];
27
24
  }
28
- const qs = '?' + (0, object_1.objectToString)(qv, '=', '&');
29
- if (!exports.isServer) {
25
+ const qs = '?' + objectToString(qv, '=', '&');
26
+ if (!isServer) {
30
27
  const loc = window.location.pathname + qs + window.location.hash;
31
28
  window.history.replaceState({}, '', loc);
32
29
  }
33
30
  else {
34
- (0, log_1.info)('cant change url params on server');
31
+ info('cant change url params on server');
35
32
  }
36
33
  setStateRaw(v);
37
34
  };
38
35
  //
39
- (0, react_1.useEffect)(() => {
36
+ useEffect(() => {
40
37
  if (JSON.stringify(state) !== JSON.stringify(qsv)) {
41
38
  setStateRaw(qsv);
42
39
  }
43
40
  }, [name, parse, qsv, state]);
44
41
  return [state, setState];
45
42
  };
46
- exports.useQueryStringRaw = useQueryStringRaw;
47
43
  /**
48
44
  * hook for query string value - string array type
49
45
  * @param param0 can provide for SSR - queryValues will default to window if available
50
46
  * @returns
51
47
  */
52
- const useQueryStringArray = ({ name, queryValues, defaultValue, }) => (0, exports.useQueryStringRaw)({
48
+ export const useQueryStringArray = ({ name, queryValues, defaultValue, }) => useQueryStringRaw({
53
49
  name,
54
50
  defaultValue,
55
51
  queryValues,
56
52
  stringify: (v) => (v.length === 0 ? undefined : v.join(',')),
57
53
  parse: (v) => (!v ? defaultValue : v.split(',')),
58
54
  });
59
- exports.useQueryStringArray = useQueryStringArray;
60
55
  /**
61
56
  * hook for query string value - single value
62
57
  * @param param0 can provide for SSR - queryValues will default to window if available
63
58
  * @returns
64
59
  */
65
- const useQueryStringSingle = ({ name, queryValues, defaultValue, }) => (0, exports.useQueryStringRaw)({
60
+ export const useQueryStringSingle = ({ name, queryValues, defaultValue, }) => useQueryStringRaw({
66
61
  name,
67
62
  defaultValue,
68
63
  queryValues,
69
64
  stringify: (v) => v,
70
65
  parse: (v) => (!v ? defaultValue : v),
71
66
  });
72
- exports.useQueryStringSingle = useQueryStringSingle;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useResize = void 0;
4
- const react_1 = require("react");
5
- const media_1 = require("../styles/media");
1
+ import { useEffect, useState } from 'react';
2
+ import { bigScreenPx, smallScreenPx } from '../styles/media';
6
3
  function getWindowDimensions() {
7
4
  if (typeof window !== 'undefined') {
8
5
  const width = window.innerWidth;
@@ -10,18 +7,18 @@ function getWindowDimensions() {
10
7
  return {
11
8
  width,
12
9
  height,
13
- smallScreen: width <= media_1.smallScreenPx,
14
- bigScreen: width > media_1.smallScreenPx,
15
- vBigScreen: width > media_1.bigScreenPx,
10
+ smallScreen: width <= smallScreenPx,
11
+ bigScreen: width > smallScreenPx,
12
+ vBigScreen: width > bigScreenPx,
16
13
  };
17
14
  }
18
15
  else {
19
16
  return undefined;
20
17
  }
21
18
  }
22
- function useResize() {
23
- const [windowDimensions, setWindowDimensions] = (0, react_1.useState)(getWindowDimensions());
24
- (0, react_1.useEffect)(() => {
19
+ export function useResize() {
20
+ const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions());
21
+ useEffect(() => {
25
22
  function handleResize() {
26
23
  const wd = getWindowDimensions();
27
24
  if (JSON.stringify(windowDimensions) === JSON.stringify(wd)) {
@@ -37,4 +34,3 @@ function useResize() {
37
34
  }, [windowDimensions]);
38
35
  return windowDimensions;
39
36
  }
40
- exports.useResize = useResize;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useTimeout = void 0;
4
- const react_1 = require("react");
5
- function useTimeout(callback,
1
+ import { useEffect, useRef } from 'react';
2
+ export function useTimeout(callback,
6
3
  /** if null wont trigger */
7
4
  delay) {
8
- const savedCallback = (0, react_1.useRef)(callback);
9
- (0, react_1.useEffect)(() => {
5
+ const savedCallback = useRef(callback);
6
+ useEffect(() => {
10
7
  savedCallback.current = callback;
11
8
  }, [callback]);
12
- (0, react_1.useEffect)(() => {
9
+ useEffect(() => {
13
10
  let id;
14
11
  function tick() {
15
12
  const ret = savedCallback.current();
@@ -32,4 +29,3 @@ delay) {
32
29
  }
33
30
  }, [delay]);
34
31
  }
35
- exports.useTimeout = useTimeout;
@@ -1,9 +1,3 @@
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.ChevronRight = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- exports.ChevronRight = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor" },
9
- react_1.default.createElement("path", { fillRule: "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })));
1
+ import React from 'react';
2
+ export const ChevronRight = (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor" },
3
+ React.createElement("path", { fillRule: "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })));
@@ -1,12 +1,6 @@
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.CrossIcon = void 0;
7
- const styled_1 = __importDefault(require("@emotion/styled"));
8
- const react_1 = __importDefault(require("react"));
9
- const Base = styled_1.default.svg `
1
+ import styled from '@emotion/styled';
2
+ import React from 'react';
3
+ const Base = styled.svg `
10
4
  color: rgb(170, 170, 170);
11
5
  margin: auto;
12
6
  font-size: 2rem;
@@ -18,6 +12,5 @@ const Base = styled_1.default.svg `
18
12
  color: rgb(136, 136, 136);
19
13
  }
20
14
  `;
21
- const CrossIcon = ({ className, onClick, }) => (react_1.default.createElement(Base, { className: className, stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 352 512", xmlns: "http://www.w3.org/2000/svg", onClick: onClick },
22
- react_1.default.createElement("path", { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
23
- exports.CrossIcon = CrossIcon;
15
+ export const CrossIcon = ({ className, onClick, }) => (React.createElement(Base, { className: className, stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 352 512", xmlns: "http://www.w3.org/2000/svg", onClick: onClick },
16
+ React.createElement("path", { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
@@ -1,10 +1,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.Door = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- exports.Door = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20" },
9
- react_1.default.createElement("path", { d: "M3 3h8V1H3a2 2 0 00-2 2v14a2 2 0 002 2h8v-2H3z" }),
10
- react_1.default.createElement("path", { d: "M19 10l-6-5v4H5v2h8v4l6-5z" })));
1
+ import React from 'react';
2
+ export const Door = (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20" },
3
+ React.createElement("path", { d: "M3 3h8V1H3a2 2 0 00-2 2v14a2 2 0 002 2h8v-2H3z" }),
4
+ React.createElement("path", { d: "M19 10l-6-5v4H5v2h8v4l6-5z" })));
@@ -1,9 +1,3 @@
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.HorizontalDots = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- exports.HorizontalDots = (react_1.default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fillRule: "evenodd", clipRule: "evenodd" },
9
- react_1.default.createElement("path", { d: "M16 12a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0117 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0110 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 013 12z" })));
1
+ import React from 'react';
2
+ export const HorizontalDots = (React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fillRule: "evenodd", clipRule: "evenodd" },
3
+ React.createElement("path", { d: "M16 12a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0117 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0110 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 013 12z" })));
@@ -1,10 +1,3 @@
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.Magnify = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Magnify = ({ colour = '#000', }) => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 490 490" },
9
- react_1.default.createElement("path", { fill: "none", stroke: colour, strokeWidth: "36", strokeLinecap: "round", d: "M280 278a153 153 0 1 0-2 2l170 170m-91-117 110 110-26 26-110-110" })));
10
- exports.Magnify = Magnify;
1
+ import React from 'react';
2
+ export const Magnify = ({ colour = '#000', }) => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 490 490" },
3
+ React.createElement("path", { fill: "none", stroke: colour, strokeWidth: "36", strokeLinecap: "round", d: "M280 278a153 153 0 1 0-2 2l170 170m-91-117 110 110-26 26-110-110" })));
@@ -1,12 +1,5 @@
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.Pencil = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Pencil = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" },
9
- react_1.default.createElement("path", { d: "M9.6 40.4l2.5-9.9L27 15.6l7.4 7.4-14.9 14.9-9.9 2.5zm4.3-8.9l-1.5 6.1 6.1-1.5L31.6 23 27 18.4 13.9 31.5z" }),
10
- react_1.default.createElement("path", { d: "M17.8 37.3c-.6-2.5-2.6-4.5-5.1-5.1l.5-1.9c3.2.8 5.7 3.3 6.5 6.5l-1.9.5z" }),
11
- react_1.default.createElement("path", { d: "M29.298 19.287l1.414 1.414-13.01 13.02-1.414-1.412zM11 39l2.9-.7c-.3-1.1-1.1-1.9-2.2-2.2L11 39zM35 22.4L27.6 15l3-3 .5.1c3.6.5 6.4 3.3 6.9 6.9l.1.5-3.1 2.9zM30.4 15l4.6 4.6.9-.9c-.5-2.3-2.3-4.1-4.6-4.6l-.9.9z" })));
12
- exports.Pencil = Pencil;
1
+ import React from 'react';
2
+ export const Pencil = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" },
3
+ React.createElement("path", { d: "M9.6 40.4l2.5-9.9L27 15.6l7.4 7.4-14.9 14.9-9.9 2.5zm4.3-8.9l-1.5 6.1 6.1-1.5L31.6 23 27 18.4 13.9 31.5z" }),
4
+ React.createElement("path", { d: "M17.8 37.3c-.6-2.5-2.6-4.5-5.1-5.1l.5-1.9c3.2.8 5.7 3.3 6.5 6.5l-1.9.5z" }),
5
+ React.createElement("path", { d: "M29.298 19.287l1.414 1.414-13.01 13.02-1.414-1.412zM11 39l2.9-.7c-.3-1.1-1.1-1.9-2.2-2.2L11 39zM35 22.4L27.6 15l3-3 .5.1c3.6.5 6.4 3.3 6.9 6.9l.1.5-3.1 2.9zM30.4 15l4.6 4.6.9-.9c-.5-2.3-2.3-4.1-4.6-4.6l-.9.9z" })));
@@ -1,11 +1,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.Save = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Save = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100" },
9
- react_1.default.createElement("path", { d: "M50 12c-21 0-38 17-38 38s17 38 38 38 38-17 38-38-17-38-38-38zm0 72c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm22.9-46.9c-.8-.8-2-.8-2.8 0L44.6 62.7 33.9 52c-.8-.8-2.1-.8-2.8 0-.8.8-.8 2.1 0 2.8l12.1 12.1c.4.4.9.6 1.4.6.5 0 1-.2 1.4-.6l26.9-27c.8-.8.8-2 0-2.8z" }),
10
- react_1.default.createElement("path", { fill: "#00F", d: "M1644-1210V474H-140v-1684h1784m8-8H-148V482h1800v-1700z" })));
11
- exports.Save = Save;
1
+ import React from 'react';
2
+ export const Save = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100" },
3
+ React.createElement("path", { d: "M50 12c-21 0-38 17-38 38s17 38 38 38 38-17 38-38-17-38-38-38zm0 72c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm22.9-46.9c-.8-.8-2-.8-2.8 0L44.6 62.7 33.9 52c-.8-.8-2.1-.8-2.8 0-.8.8-.8 2.1 0 2.8l12.1 12.1c.4.4.9.6 1.4.6.5 0 1-.2 1.4-.6l26.9-27c.8-.8.8-2 0-2.8z" }),
4
+ React.createElement("path", { fill: "#00F", d: "M1644-1210V474H-140v-1684h1784m8-8H-148V482h1800v-1700z" })));
@@ -1,12 +1,5 @@
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.Undo = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Undo = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64" },
9
- react_1.default.createElement("g", { fill: "#134563" },
10
- react_1.default.createElement("path", { d: "M32.1 51.9c-7.8 0-14.9-4.6-18.1-11.6l2.6-1.2c2.8 6 8.9 9.9 15.5 9.9 9.4 0 17-7.6 17-17s-7.6-17-17-17C25 15 19 19.4 16.5 26.4l-2.7-1c2.9-8.1 10-13.3 18.3-13.3C43.1 12.1 52 21 52 32s-9 19.9-19.9 19.9" }),
11
- react_1.default.createElement("path", { d: "M24.4 27.4H12V15.1h3.1v9.2h9.3v3.1" }))));
12
- exports.Undo = Undo;
1
+ import React from 'react';
2
+ export const Undo = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64" },
3
+ React.createElement("g", { fill: "#134563" },
4
+ React.createElement("path", { d: "M32.1 51.9c-7.8 0-14.9-4.6-18.1-11.6l2.6-1.2c2.8 6 8.9 9.9 15.5 9.9 9.4 0 17-7.6 17-17s-7.6-17-17-17C25 15 19 19.4 16.5 26.4l-2.7-1c2.9-8.1 10-13.3 18.3-13.3C43.1 12.1 52 21 52 32s-9 19.9-19.9 19.9" }),
5
+ React.createElement("path", { d: "M24.4 27.4H12V15.1h3.1v9.2h9.3v3.1" }))));
@@ -1,9 +1,3 @@
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.UserOutline = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- exports.UserOutline = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
9
- react_1.default.createElement("path", { d: "M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm0 398.7c-58.6 0-111.1-26.6-146.1-68.3 17.8-7.7 62.2-23.7 90.3-31.9 2.2-.7 2.6-.8 2.6-10.7 0-10.6-1.2-18.1-3.8-23.6-3.5-7.5-7.7-20.2-9.2-31.6-4.2-4.9-9.9-14.5-13.6-32.9-3.2-16.2-1.7-22.1.4-27.6.2-.6.5-1.2.6-1.8.8-3.7-.3-23.5-3.1-38.8-1.9-10.5.5-32.8 15-51.3 9.1-11.7 26.6-26 58-28h17.5c31.9 2 49.4 16.3 58.5 28 14.5 18.5 16.9 40.8 14.9 51.3-2.8 15.3-3.9 35-3.1 38.8.1.6.4 1.2.6 1.7 2.1 5.5 3.7 11.4.4 27.6-3.7 18.4-9.4 28-13.6 32.9-1.5 11.4-5.7 24-9.2 31.6-3.3 6.9-6.6 15.1-6.6 23.3 0 9.9.4 10 2.7 10.7 26.7 7.9 72.7 23.8 93 32.1-35 41.8-87.5 68.5-146.2 68.5z" })));
1
+ import React from 'react';
2
+ export const UserOutline = (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
3
+ React.createElement("path", { d: "M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm0 398.7c-58.6 0-111.1-26.6-146.1-68.3 17.8-7.7 62.2-23.7 90.3-31.9 2.2-.7 2.6-.8 2.6-10.7 0-10.6-1.2-18.1-3.8-23.6-3.5-7.5-7.7-20.2-9.2-31.6-4.2-4.9-9.9-14.5-13.6-32.9-3.2-16.2-1.7-22.1.4-27.6.2-.6.5-1.2.6-1.8.8-3.7-.3-23.5-3.1-38.8-1.9-10.5.5-32.8 15-51.3 9.1-11.7 26.6-26 58-28h17.5c31.9 2 49.4 16.3 58.5 28 14.5 18.5 16.9 40.8 14.9 51.3-2.8 15.3-3.9 35-3.1 38.8.1.6.4 1.2.6 1.7 2.1 5.5 3.7 11.4.4 27.6-3.7 18.4-9.4 28-13.6 32.9-1.5 11.4-5.7 24-9.2 31.6-3.3 6.9-6.6 15.1-6.6 23.3 0 9.9.4 10 2.7 10.7 26.7 7.9 72.7 23.8 93 32.1-35 41.8-87.5 68.5-146.2 68.5z" })));