ag-common 0.0.418 → 0.0.419
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/helpers/api.js +34 -35
- package/dist/api/helpers/aws.js +9 -13
- package/dist/api/helpers/cloudfront.js +7 -24
- package/dist/api/helpers/dynamo.js +85 -134
- package/dist/api/helpers/dynamoInfra.js +14 -19
- package/dist/api/helpers/enforceDynamoProvisionCap.js +14 -18
- package/dist/api/helpers/index.js +14 -30
- package/dist/api/helpers/openApiHelpers.d.ts +2 -3
- package/dist/api/helpers/openApiHelpers.js +34 -37
- package/dist/api/helpers/s3.js +81 -126
- package/dist/api/helpers/ses.js +9 -28
- package/dist/api/helpers/sqs.js +9 -26
- package/dist/api/helpers/ssm.js +8 -14
- package/dist/api/helpers/sts.js +16 -34
- package/dist/api/helpers/validateOpenApi.js +92 -103
- package/dist/api/helpers/validations.js +29 -46
- package/dist/api/index.js +2 -18
- package/dist/api/openapi-prefix.js +25 -38
- package/dist/api/types/aws.js +1 -2
- package/dist/api/types/index.js +1 -17
- package/dist/common/const.js +2 -5
- package/dist/common/helpers/array.js +8 -19
- package/dist/common/helpers/async.js +10 -28
- package/dist/common/helpers/binary.js +5 -10
- package/dist/common/helpers/date.js +14 -25
- package/dist/common/helpers/email.js +5 -11
- package/dist/common/helpers/func.js +3 -7
- package/dist/common/helpers/generator.js +9 -24
- package/dist/common/helpers/groupBy.js +3 -9
- package/dist/common/helpers/hashCode.js +3 -9
- package/dist/common/helpers/i18n.js +9 -17
- package/dist/common/helpers/index.js +18 -34
- package/dist/common/helpers/log.js +16 -28
- package/dist/common/helpers/math.js +9 -21
- package/dist/common/helpers/memo.js +3 -7
- package/dist/common/helpers/object.js +20 -35
- package/dist/common/helpers/random.js +4 -10
- package/dist/common/helpers/secondsInNearest.js +2 -7
- package/dist/common/helpers/sleep.js +1 -5
- package/dist/common/helpers/string/base64.js +2 -7
- package/dist/common/helpers/string/chunk.js +1 -5
- package/dist/common/helpers/string/contains.js +2 -7
- package/dist/common/helpers/string/getExtendedStringSegment.js +5 -9
- package/dist/common/helpers/string/index.js +10 -26
- package/dist/common/helpers/string/json.js +1 -5
- package/dist/common/helpers/string/object.js +1 -5
- package/dist/common/helpers/string/surround.js +1 -5
- package/dist/common/helpers/string/trim.js +2 -7
- package/dist/common/helpers/string/truncate.js +1 -5
- package/dist/common/helpers/string/url.js +4 -9
- package/dist/common/index.js +2 -18
- package/dist/index.js +3 -19
- package/dist/ui/components/BorderGradient/index.js +18 -25
- package/dist/ui/components/Button/index.js +17 -25
- package/dist/ui/components/Chevron/index.js +9 -16
- package/dist/ui/components/Close/index.js +6 -13
- package/dist/ui/components/Confirm/Dialog.js +9 -25
- package/dist/ui/components/Confirm/Modal.js +20 -27
- package/dist/ui/components/Confirm/index.js +3 -19
- package/dist/ui/components/Confirm/types.js +1 -2
- package/dist/ui/components/DropdownList/Base.js +33 -64
- package/dist/ui/components/DropdownList/Dialog.js +8 -24
- package/dist/ui/components/DropdownList/index.js +2 -18
- package/dist/ui/components/DropdownList/types.js +1 -2
- package/dist/ui/components/FlexColumn/index.js +4 -14
- package/dist/ui/components/FlexRow/index.js +4 -14
- package/dist/ui/components/HeadersRaw/index.js +20 -27
- package/dist/ui/components/HorizontalScrollBar/index.js +6 -34
- package/dist/ui/components/Icon/index.js +9 -16
- package/dist/ui/components/Image/index.js +10 -28
- package/dist/ui/components/InfiniteScroll/index.js +18 -50
- package/dist/ui/components/KebabDots/index.js +6 -13
- package/dist/ui/components/Loader/index.js +9 -39
- package/dist/ui/components/Modal/Dialog.js +7 -23
- package/dist/ui/components/Modal/Modal.js +19 -49
- package/dist/ui/components/Modal/index.js +3 -19
- package/dist/ui/components/Modal/types.js +1 -2
- package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.js +26 -34
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.js +12 -19
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/getCurlLines.js +6 -11
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.js +8 -15
- package/dist/ui/components/OpenApiCodeBlock/curl/index.js +14 -21
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.js +8 -15
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/getFetchLines.js +3 -8
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.js +27 -34
- package/dist/ui/components/OpenApiCodeBlock/fetch/index.js +11 -18
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +7 -17
- package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.js +6 -15
- package/dist/ui/components/OpenApiCodeBlock/index.js +2 -18
- package/dist/ui/components/OpenApiCodeBlock/types.js +1 -2
- package/dist/ui/components/PieChart/index.js +11 -18
- package/dist/ui/components/ProgressBar/index.js +15 -45
- package/dist/ui/components/Prompt/Dialog.js +7 -23
- package/dist/ui/components/Prompt/Modal.js +25 -55
- package/dist/ui/components/Prompt/index.js +2 -18
- package/dist/ui/components/RowOrColumn/index.js +7 -17
- package/dist/ui/components/Search/AutoHideSearchBox.js +24 -56
- package/dist/ui/components/Search/Base.js +21 -52
- package/dist/ui/components/Search/Dialog.js +10 -26
- package/dist/ui/components/Search/Inline.js +3 -10
- package/dist/ui/components/Search/Modal.js +10 -17
- package/dist/ui/components/Search/SearchBox.js +26 -58
- package/dist/ui/components/Search/index.js +7 -23
- package/dist/ui/components/Search/types.js +1 -2
- package/dist/ui/components/Sidebar/index.js +18 -25
- package/dist/ui/components/SparkLine/index.js +17 -27
- package/dist/ui/components/Table/index.js +15 -22
- package/dist/ui/components/TextEdit/CheckboxEdit.js +21 -51
- package/dist/ui/components/TextEdit/ColourEdit.js +17 -44
- package/dist/ui/components/TextEdit/LengthBox.js +5 -12
- package/dist/ui/components/TextEdit/ListboxEdit.js +15 -42
- package/dist/ui/components/TextEdit/RadioGroup.js +13 -43
- package/dist/ui/components/TextEdit/TextEdit.js +48 -78
- package/dist/ui/components/TextEdit/common.js +11 -17
- package/dist/ui/components/TextEdit/index.js +6 -22
- package/dist/ui/components/TextEdit/types.js +1 -2
- package/dist/ui/components/TextWithButton/index.js +10 -40
- package/dist/ui/components/TimelineChart/index.js +14 -24
- package/dist/ui/components/Toast/Cross.js +9 -16
- package/dist/ui/components/Toast/Tick.js +4 -11
- package/dist/ui/components/Toast/Warning.js +8 -15
- package/dist/ui/components/Toast/base.js +33 -65
- package/dist/ui/components/Toast/index.js +2 -18
- package/dist/ui/components/Toast/types.js +1 -2
- package/dist/ui/components/UserImage/index.js +17 -48
- package/dist/ui/components/index.js +30 -46
- package/dist/ui/helpers/axiosHelper.js +25 -39
- package/dist/ui/helpers/browserHelpers.js +7 -22
- package/dist/ui/helpers/callOpenApi/cached.js +18 -37
- package/dist/ui/helpers/callOpenApi/direct.js +46 -59
- package/dist/ui/helpers/callOpenApi/helpers.js +25 -40
- package/dist/ui/helpers/callOpenApi/hook.js +47 -36
- package/dist/ui/helpers/callOpenApi/index.js +5 -21
- package/dist/ui/helpers/callOpenApi/types.js +1 -2
- package/dist/ui/helpers/cognito.js +1 -2
- package/dist/ui/helpers/cookie/const.js +2 -5
- package/dist/ui/helpers/cookie/get.js +13 -14
- package/dist/ui/helpers/cookie/index.js +5 -21
- package/dist/ui/helpers/cookie/raw.js +9 -16
- package/dist/ui/helpers/cookie/set.js +10 -15
- package/dist/ui/helpers/cookie/use.js +23 -16
- package/dist/ui/helpers/date.js +10 -15
- package/dist/ui/helpers/debounce.js +5 -10
- package/dist/ui/helpers/dom.js +6 -13
- package/dist/ui/helpers/extractAttributes.js +2 -7
- package/dist/ui/helpers/index.js +25 -41
- package/dist/ui/helpers/jwt.js +1 -2
- package/dist/ui/helpers/plural.js +1 -5
- package/dist/ui/helpers/routes.js +17 -24
- package/dist/ui/helpers/serviceWorker.js +8 -23
- package/dist/ui/helpers/useContextMenu.js +9 -14
- package/dist/ui/helpers/useElementAttribute.js +3 -7
- package/dist/ui/helpers/useGranularHook.js +5 -10
- package/dist/ui/helpers/useInterval.js +8 -12
- package/dist/ui/helpers/useLocalStorage.js +24 -32
- package/dist/ui/helpers/useLockBodyScroll.js +3 -7
- package/dist/ui/helpers/useOnClickOutside.js +7 -12
- package/dist/ui/helpers/useOnScroll.js +15 -21
- package/dist/ui/helpers/useOverloadPageSearch.js +3 -7
- package/dist/ui/helpers/useQueryString.js +14 -20
- package/dist/ui/helpers/useResize.js +8 -12
- package/dist/ui/helpers/useTimeout.js +5 -9
- package/dist/ui/icons/ChevronRight.js +3 -9
- package/dist/ui/icons/CrossIcon.js +5 -12
- package/dist/ui/icons/Door.js +4 -10
- package/dist/ui/icons/HorizontalDots.js +3 -9
- package/dist/ui/icons/Magnify.js +3 -10
- package/dist/ui/icons/Pencil.js +5 -12
- package/dist/ui/icons/Save.js +4 -11
- package/dist/ui/icons/Undo.js +5 -12
- package/dist/ui/icons/UserOutline.js +3 -9
- package/dist/ui/icons/index.js +9 -25
- package/dist/ui/index.js +4 -20
- package/dist/ui/styles/colours.js +7 -12
- package/dist/ui/styles/common.js +14 -22
- package/dist/ui/styles/index.js +4 -20
- package/dist/ui/styles/media.js +7 -10
- package/dist/ui/styles/standaloneStyles.js +10 -16
- package/package.json +18 -17
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 =
|
|
13
|
-
|
|
9
|
+
const savedCallback = useRef(callback);
|
|
10
|
+
useIsomorphicLayoutEffect(() => {
|
|
14
11
|
savedCallback.current = callback;
|
|
15
12
|
}, [callback]);
|
|
16
|
-
|
|
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
|
|
20
|
+
clear?.();
|
|
24
21
|
};
|
|
25
22
|
}, [clear, delay]);
|
|
26
23
|
}
|
|
27
|
-
exports.useInterval = useInterval;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
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
|
-
|
|
13
|
+
warn('error clearing local storage:', e);
|
|
17
14
|
}
|
|
18
15
|
};
|
|
19
|
-
|
|
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 ||
|
|
23
|
+
if (!key || except?.includes(key)) {
|
|
28
24
|
return;
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
clearLocalStorageItem(key);
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
catch (e) {
|
|
34
|
-
|
|
30
|
+
warn('error clearing local storage:', e);
|
|
35
31
|
}
|
|
36
32
|
};
|
|
37
|
-
|
|
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 :
|
|
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
|
-
|
|
51
|
-
|
|
45
|
+
error(`set LS error:${key}-${e}`);
|
|
46
|
+
clearLocalStorageItem(key);
|
|
52
47
|
}
|
|
53
48
|
};
|
|
54
|
-
|
|
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 =
|
|
61
|
-
if (!item || (item.expiry &&
|
|
62
|
-
|
|
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 =
|
|
59
|
+
const itemv = tryJsonParse(item.val, undefined);
|
|
66
60
|
if (!itemv) {
|
|
67
|
-
|
|
61
|
+
setLocalStorageItem(key, initialValue, ttl);
|
|
68
62
|
return initialValue;
|
|
69
63
|
}
|
|
70
64
|
return itemv;
|
|
71
65
|
};
|
|
72
|
-
|
|
73
|
-
|
|
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] =
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 =
|
|
12
|
+
const isRightMB = isRightClick(event);
|
|
17
13
|
if (isRightMB) {
|
|
18
14
|
return;
|
|
19
15
|
}
|
|
20
|
-
const el =
|
|
16
|
+
const el = p.ref?.current;
|
|
21
17
|
// Do nothing if clicking ref's element or descendent elements
|
|
22
|
-
if (!el || el.contains(
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
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] =
|
|
17
|
-
|
|
13
|
+
const [startScrollTopY, setStartScrollTopY] = useState(-1);
|
|
14
|
+
useGranularEffect(() => {
|
|
18
15
|
const listener = (e) => {
|
|
19
|
-
|
|
20
|
-
const
|
|
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
|
|
27
|
+
onScroll?.(e, r);
|
|
32
28
|
return { y, x };
|
|
33
29
|
};
|
|
34
30
|
const listenDebounce = (e) => {
|
|
35
|
-
|
|
31
|
+
debounce(() => {
|
|
36
32
|
const { y } = listener(e);
|
|
37
33
|
setStartScrollTopY(y);
|
|
38
34
|
}, { key: 'onscroll', time: 20 });
|
|
39
35
|
};
|
|
40
|
-
(
|
|
36
|
+
(element?.current || document).addEventListener(`scroll`, listenDebounce, {
|
|
41
37
|
passive: true,
|
|
42
38
|
});
|
|
43
39
|
return () => {
|
|
44
|
-
(
|
|
40
|
+
(element?.current || document).removeEventListener(`scroll`, listenDebounce);
|
|
45
41
|
};
|
|
46
42
|
}, [element], [element, onScroll, startScrollTopY]);
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
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 =
|
|
10
|
+
export const useQueryStringRaw = ({ name, queryValues, defaultValue, stringify, parse, }) => {
|
|
11
|
+
const qv = isServer
|
|
15
12
|
? queryValues || {}
|
|
16
|
-
:
|
|
13
|
+
: paramsToObject(new URLSearchParams(window.location.search));
|
|
17
14
|
const qsv = parse(qv[name]) || defaultValue;
|
|
18
|
-
const [state, setStateRaw] =
|
|
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 = '?' +
|
|
29
|
-
if (!
|
|
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
|
-
|
|
31
|
+
info('cant change url params on server');
|
|
35
32
|
}
|
|
36
33
|
setStateRaw(v);
|
|
37
34
|
};
|
|
38
35
|
//
|
|
39
|
-
|
|
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, }) =>
|
|
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, }) =>
|
|
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
|
-
|
|
2
|
-
|
|
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 <=
|
|
14
|
-
bigScreen: width >
|
|
15
|
-
vBigScreen: width >
|
|
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] =
|
|
24
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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 =
|
|
9
|
-
|
|
5
|
+
const savedCallback = useRef(callback);
|
|
6
|
+
useEffect(() => {
|
|
10
7
|
savedCallback.current = callback;
|
|
11
8
|
}, [callback]);
|
|
12
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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, }) => (
|
|
22
|
-
|
|
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" })));
|
package/dist/ui/icons/Door.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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" })));
|
package/dist/ui/icons/Magnify.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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" })));
|
package/dist/ui/icons/Pencil.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
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" })));
|
package/dist/ui/icons/Save.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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" })));
|
package/dist/ui/icons/Undo.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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" })));
|