@selfcommunity/react-ui 0.5.2-alpha.3 → 0.5.3-alpha.1
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/lib/cjs/components/AccountReset/AccountReset.d.ts +3 -3
- package/lib/cjs/components/AccountReset/AccountReset.d.ts.map +1 -1
- package/lib/cjs/components/AccountReset/AccountReset.js +6 -10
- package/lib/cjs/components/AccountReset/AccountReset.js.map +1 -1
- package/lib/cjs/components/AccountVerify/AccountVerify.d.ts +3 -3
- package/lib/cjs/components/AccountVerify/AccountVerify.d.ts.map +1 -1
- package/lib/cjs/components/AccountVerify/AccountVerify.js +13 -8
- package/lib/cjs/components/AccountVerify/AccountVerify.js.map +1 -1
- package/lib/cjs/components/Header/Header.d.ts.map +1 -1
- package/lib/cjs/components/Header/Header.js +32 -18
- package/lib/cjs/components/Header/Header.js.map +1 -1
- package/lib/cjs/components/Header/MobileHeader/MobileHeader.d.ts.map +1 -1
- package/lib/cjs/components/Header/MobileHeader/MobileHeader.js +29 -16
- package/lib/cjs/components/Header/MobileHeader/MobileHeader.js.map +1 -1
- package/lib/cjs/components/Header/MobileHeader/Skeleton.d.ts +22 -0
- package/lib/cjs/components/Header/MobileHeader/Skeleton.d.ts.map +1 -0
- package/lib/cjs/components/Header/MobileHeader/Skeleton.js +47 -0
- package/lib/cjs/components/Header/MobileHeader/Skeleton.js.map +1 -0
- package/lib/cjs/components/Header/MobileHeader/index.d.ts +2 -1
- package/lib/cjs/components/Header/MobileHeader/index.d.ts.map +1 -1
- package/lib/cjs/components/Header/MobileHeader/index.js +3 -0
- package/lib/cjs/components/Header/MobileHeader/index.js.map +1 -1
- package/lib/cjs/components/Header/Skeleton.d.ts +23 -0
- package/lib/cjs/components/Header/Skeleton.d.ts.map +1 -0
- package/lib/cjs/components/Header/Skeleton.js +50 -0
- package/lib/cjs/components/Header/Skeleton.js.map +1 -0
- package/lib/cjs/components/Header/index.d.ts +2 -1
- package/lib/cjs/components/Header/index.d.ts.map +1 -1
- package/lib/cjs/components/Header/index.js +3 -0
- package/lib/cjs/components/Header/index.js.map +1 -1
- package/lib/esm/components/AccountReset/AccountReset.d.ts +3 -3
- package/lib/esm/components/AccountReset/AccountReset.d.ts.map +1 -1
- package/lib/esm/components/AccountReset/AccountReset.js +7 -11
- package/lib/esm/components/AccountReset/AccountReset.js.map +1 -1
- package/lib/esm/components/AccountVerify/AccountVerify.d.ts +3 -3
- package/lib/esm/components/AccountVerify/AccountVerify.d.ts.map +1 -1
- package/lib/esm/components/AccountVerify/AccountVerify.js +14 -9
- package/lib/esm/components/AccountVerify/AccountVerify.js.map +1 -1
- package/lib/esm/components/Header/Header.d.ts.map +1 -1
- package/lib/esm/components/Header/Header.js +34 -20
- package/lib/esm/components/Header/Header.js.map +1 -1
- package/lib/esm/components/Header/MobileHeader/MobileHeader.d.ts.map +1 -1
- package/lib/esm/components/Header/MobileHeader/MobileHeader.js +30 -17
- package/lib/esm/components/Header/MobileHeader/MobileHeader.js.map +1 -1
- package/lib/esm/components/Header/MobileHeader/Skeleton.d.ts +22 -0
- package/lib/esm/components/Header/MobileHeader/Skeleton.d.ts.map +1 -0
- package/lib/esm/components/Header/MobileHeader/Skeleton.js +41 -0
- package/lib/esm/components/Header/MobileHeader/Skeleton.js.map +1 -0
- package/lib/esm/components/Header/MobileHeader/index.d.ts +2 -1
- package/lib/esm/components/Header/MobileHeader/index.d.ts.map +1 -1
- package/lib/esm/components/Header/MobileHeader/index.js +2 -0
- package/lib/esm/components/Header/MobileHeader/index.js.map +1 -1
- package/lib/esm/components/Header/Skeleton.d.ts +23 -0
- package/lib/esm/components/Header/Skeleton.d.ts.map +1 -0
- package/lib/esm/components/Header/Skeleton.js +44 -0
- package/lib/esm/components/Header/Skeleton.js.map +1 -0
- package/lib/esm/components/Header/index.d.ts +2 -1
- package/lib/esm/components/Header/index.d.ts.map +1 -1
- package/lib/esm/components/Header/index.js +2 -0
- package/lib/esm/components/Header/index.js.map +1 -1
- package/lib/umd/react-ui.js +9 -9
- package/lib/umd/react-ui.js.LICENSE.txt +1 -1
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const styles_1 = require("@mui/material/styles");
|
|
9
|
+
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
10
|
+
const PREFIX = 'SCHeaderSkeleton';
|
|
11
|
+
const classes = {
|
|
12
|
+
root: `${PREFIX}-root`,
|
|
13
|
+
icon: `${PREFIX}-icon`,
|
|
14
|
+
};
|
|
15
|
+
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
16
|
+
name: PREFIX,
|
|
17
|
+
slot: 'Root',
|
|
18
|
+
overridesResolver: (props, styles) => styles.root
|
|
19
|
+
})(() => ({
|
|
20
|
+
position: 'relative',
|
|
21
|
+
// [`& .${classes.icon}`]: {
|
|
22
|
+
// },
|
|
23
|
+
}));
|
|
24
|
+
/**
|
|
25
|
+
* > API documentation for the Community-JS Header Skeleton component. Learn about the available props and the CSS API.
|
|
26
|
+
|
|
27
|
+
#### Import
|
|
28
|
+
|
|
29
|
+
```jsx
|
|
30
|
+
import {HeaderSkeleton} from '@selfcommunity/react-ui';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### Component Name
|
|
34
|
+
|
|
35
|
+
The name `SCHeaderSkeleton` can be used when providing style overrides in the theme.
|
|
36
|
+
|
|
37
|
+
#### CSS
|
|
38
|
+
|
|
39
|
+
|Rule Name|Global class|Description|
|
|
40
|
+
|---|---|---|
|
|
41
|
+
|root|.SCHeaderSkeleton-root|Styles applied to the root element.|
|
|
42
|
+
|icon|.SCHeaderSkeleton-icon|Styles applied to the icon element.|
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
function CategoryHeaderSkeleton() {
|
|
46
|
+
return (react_1.default.createElement(Root, { className: classes.root },
|
|
47
|
+
react_1.default.createElement(Skeleton_1.default, { sx: { height: 60 }, animation: "wave", variant: "rectangular" })));
|
|
48
|
+
}
|
|
49
|
+
exports.default = CategoryHeaderSkeleton;
|
|
50
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/Header/Skeleton.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,4CAAkC;AAClC,iDAA4C;AAC5C,sEAA8C;AAE9C,MAAM,MAAM,GAAG,kBAAkB,CAAC;AAElC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,cAAG,EAAE;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACR,QAAQ,EAAE,UAAU;IACpB,4BAA4B;IAC5B,KAAK;CACN,CAAC,CAAC,CAAC;AACJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAwB,sBAAsB;IAC5C,OAAO,CACL,8BAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI;QAC3B,8BAAC,kBAAQ,IAAC,EAAE,EAAE,EAAC,MAAM,EAAE,EAAE,EAAC,EAAE,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,aAAa,GAAG,CAChE,CACR,CAAC;AACJ,CAAC;AAND,yCAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAC7C,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,WAAW,EAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAC7C,OAAO,cAAc,MAAM,YAAY,CAAC;AACxC,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,CAAC"}
|
|
@@ -3,6 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HeaderSkeleton = void 0;
|
|
6
7
|
const Header_1 = __importDefault(require("./Header"));
|
|
8
|
+
const Skeleton_1 = __importDefault(require("./Skeleton"));
|
|
9
|
+
exports.HeaderSkeleton = Skeleton_1.default;
|
|
7
10
|
exports.default = Header_1.default;
|
|
8
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":";;;;;;AAAA,sDAA6C;AAC7C,0DAAwC;AAEnB,yBAFd,kBAAc,CAEc;AADnC,kBAAe,gBAAM,CAAC"}
|
|
@@ -25,7 +25,7 @@ export interface AccountResetProps {
|
|
|
25
25
|
* Callback triggered on success sign in
|
|
26
26
|
* @default null
|
|
27
27
|
*/
|
|
28
|
-
onSuccess?: () => void;
|
|
28
|
+
onSuccess?: (res: any) => void;
|
|
29
29
|
/**
|
|
30
30
|
* Action component to display after success message
|
|
31
31
|
* */
|
|
@@ -56,8 +56,8 @@ export interface AccountResetProps {
|
|
|
56
56
|
|root|.SCAccountReset-root|Styles applied to the root element.|
|
|
57
57
|
|form|.SCAccountReset-form|Styles applied to the form element.|
|
|
58
58
|
|email|.SCAccountReset-password|Styles applied to the password TextField.|
|
|
59
|
-
|success|.SCAccountRecover-success|Styles applied to the success
|
|
60
|
-
|error|.SCAccountRecover-error|Styles applied to the error
|
|
59
|
+
|success|.SCAccountRecover-success|Styles applied to the success Alert.|
|
|
60
|
+
|error|.SCAccountRecover-error|Styles applied to the error Alert.|
|
|
61
61
|
|
|
62
62
|
*
|
|
63
63
|
* @param inProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountReset.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountReset/AccountReset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountReset.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountReset/AccountReset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAqB,WAAW,EAAE,cAAc,EAAa,MAAM,eAAe,CAAC;AA8B1F,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE/B;;SAEK;IACL,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CA4F5E"}
|
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React, { useState } from 'react';
|
|
13
13
|
import { styled } from '@mui/material/styles';
|
|
14
14
|
import { useSCUser } from '@selfcommunity/react-core';
|
|
15
|
-
import { Box, Button
|
|
15
|
+
import { Alert, Box, Button } from '@mui/material';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
18
18
|
import { useThemeProps } from '@mui/system';
|
|
@@ -59,8 +59,8 @@ const Root = styled(Box, {
|
|
|
59
59
|
|root|.SCAccountReset-root|Styles applied to the root element.|
|
|
60
60
|
|form|.SCAccountReset-form|Styles applied to the form element.|
|
|
61
61
|
|email|.SCAccountReset-password|Styles applied to the password TextField.|
|
|
62
|
-
|success|.SCAccountRecover-success|Styles applied to the success
|
|
63
|
-
|error|.SCAccountRecover-error|Styles applied to the error
|
|
62
|
+
|success|.SCAccountRecover-success|Styles applied to the success Alert.|
|
|
63
|
+
|error|.SCAccountRecover-error|Styles applied to the error Alert.|
|
|
64
64
|
|
|
65
65
|
*
|
|
66
66
|
* @param inProps
|
|
@@ -92,7 +92,7 @@ export default function AccountReset(inProps) {
|
|
|
92
92
|
AccountService.reset({ validation_code: validationCode, password })
|
|
93
93
|
.then((res) => {
|
|
94
94
|
setIsSucceed(true);
|
|
95
|
-
onSuccess && onSuccess();
|
|
95
|
+
onSuccess && onSuccess(res);
|
|
96
96
|
})
|
|
97
97
|
.catch((error) => {
|
|
98
98
|
const _error = formatHttpError(error);
|
|
@@ -111,13 +111,9 @@ export default function AccountReset(inProps) {
|
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
113
|
// RENDER
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), isSucceed ? (React.createElement(React.Fragment, null,
|
|
119
|
-
React.createElement(Typography, { className: classes.success }, intl.formatMessage({ id: 'ui.accountReset.success', defaultMessage: 'ui.accountReset.success' })),
|
|
120
|
-
successAction)) : validationCodeError ? (React.createElement(Typography, { className: classes.error },
|
|
114
|
+
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), isSucceed ? (React.createElement(Alert, { severity: "success", className: classes.success },
|
|
115
|
+
intl.formatMessage({ id: 'ui.accountReset.success', defaultMessage: 'ui.accountReset.success' }),
|
|
116
|
+
successAction)) : validationCodeError ? (React.createElement(Alert, { severity: "error", className: classes.error },
|
|
121
117
|
React.createElement(FormattedMessage, { id: "ui.accountReset.code.error", defaultMessage: "ui.accountReset.code.error" }))) : (React.createElement("form", { className: classes.form, onSubmit: handleSubmit },
|
|
122
118
|
React.createElement(PasswordTextField, Object.assign({ className: classes.password, disabled: isSubmitting, label: React.createElement(FormattedMessage, { id: "ui.accountReset.password.label", defaultMessage: "ui.accountReset.password.label" }) }, TextFieldProps, { value: password, onChange: handleChange, error: Boolean(passwordError), helperText: passwordError })),
|
|
123
119
|
React.createElement(Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !password || isSubmitting }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountReset.js","sourceRoot":"","sources":["../../../../src/components/AccountReset/AccountReset.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAoB,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAC,GAAG,EAAE,MAA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SAAS,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO;QACjD,IAAI,CAAC,aAAa,CAAC,EAAC,EAAE,EAAE,yBAAyB,EAAE,cAAc,EAAE,yBAAyB,EAAC,CAAC;QAC9F,aAAa,CACR,CACT,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAE,OAAO,CAAC,KAAK;QAC9C,oBAAC,gBAAgB,IAAC,EAAE,EAAC,4BAA4B,EAAC,cAAc,EAAC,4BAA4B,GAAG,CAC1F,CACT,CAAC,CAAC,CAAC,CACF,8BAAM,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY;QACnD,oBAAC,iBAAiB,kBAChB,SAAS,EAAE,OAAO,CAAC,QAAQ,EAC3B,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAC,gCAAgC,EAAC,cAAc,EAAC,gCAAgC,GAAG,IAC3G,cAAc,IAClB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,EAC7B,UAAU,EAAE,aAAa,IACzB;QACF,oBAAC,MAAM,kBAAC,IAAI,EAAC,QAAQ,IAAK,WAAW,IAAE,QAAQ,EAAE,CAAC,QAAQ,IAAI,YAAY;YACxE,oBAAC,gBAAgB,IAAC,EAAE,EAAC,wBAAwB,EAAC,cAAc,EAAC,wBAAwB,GAAG,CACjF,CACJ,CACR,CACI,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -14,7 +14,7 @@ export interface AccountVerifyProps {
|
|
|
14
14
|
* Callback triggered on success sign in
|
|
15
15
|
* @default null
|
|
16
16
|
*/
|
|
17
|
-
onSuccess?: () => void;
|
|
17
|
+
onSuccess?: (res: any) => void;
|
|
18
18
|
/**
|
|
19
19
|
* Action component to display after success message
|
|
20
20
|
* */
|
|
@@ -43,8 +43,8 @@ export interface AccountVerifyProps {
|
|
|
43
43
|
|Rule Name|Global class|Description|
|
|
44
44
|
|---|---|---|
|
|
45
45
|
|root|.SCAccountVerify-root|Styles applied to the root element.|
|
|
46
|
-
|success|.
|
|
47
|
-
|error|.
|
|
46
|
+
|success|.SCAccountVerify-success|Styles applied to the success Alert.|
|
|
47
|
+
|error|.SCAccountVerify-error|Styles applied to the error Alert.|
|
|
48
48
|
|
|
49
49
|
*
|
|
50
50
|
* @param inProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountVerify.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA8BjD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"AccountVerify.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA8BjD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE/B;;SAEK;IACL,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAuD9E"}
|
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React, { useEffect, useState } from 'react';
|
|
13
13
|
import { styled } from '@mui/material/styles';
|
|
14
14
|
import { useSCUser } from '@selfcommunity/react-core';
|
|
15
|
-
import {
|
|
15
|
+
import { Alert, Box, CircularProgress } from '@mui/material';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { useThemeProps } from '@mui/system';
|
|
18
18
|
import { AccountService } from '@selfcommunity/api-services';
|
|
@@ -23,7 +23,7 @@ const classes = {
|
|
|
23
23
|
success: `${PREFIX}-success`,
|
|
24
24
|
error: `${PREFIX}-error`
|
|
25
25
|
};
|
|
26
|
-
const Root = styled(
|
|
26
|
+
const Root = styled(Box, {
|
|
27
27
|
name: PREFIX,
|
|
28
28
|
slot: 'Root',
|
|
29
29
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -54,8 +54,8 @@ const Root = styled(Typography, {
|
|
|
54
54
|
|Rule Name|Global class|Description|
|
|
55
55
|
|---|---|---|
|
|
56
56
|
|root|.SCAccountVerify-root|Styles applied to the root element.|
|
|
57
|
-
|success|.
|
|
58
|
-
|error|.
|
|
57
|
+
|success|.SCAccountVerify-success|Styles applied to the success Alert.|
|
|
58
|
+
|error|.SCAccountVerify-error|Styles applied to the error Alert.|
|
|
59
59
|
|
|
60
60
|
*
|
|
61
61
|
* @param inProps
|
|
@@ -69,6 +69,7 @@ export default function AccountVerify(inProps) {
|
|
|
69
69
|
const { className, onSuccess = null, validationCode, successAction = null } = props, rest = __rest(props, ["className", "onSuccess", "validationCode", "successAction"]);
|
|
70
70
|
// STATE
|
|
71
71
|
const [isValidating, setIsValidating] = useState(true);
|
|
72
|
+
const [succeed, setSucceed] = useState(false);
|
|
72
73
|
const [error, setError] = useState(false);
|
|
73
74
|
// CONTEXT
|
|
74
75
|
const scUserContext = useSCUser();
|
|
@@ -77,7 +78,10 @@ export default function AccountVerify(inProps) {
|
|
|
77
78
|
setIsValidating(true);
|
|
78
79
|
setError(false);
|
|
79
80
|
AccountService.verify({ validation_code: validationCode })
|
|
80
|
-
.then(() =>
|
|
81
|
+
.then((res) => {
|
|
82
|
+
setSucceed(res.token ? true : res.user_awaiting_approval);
|
|
83
|
+
onSuccess && onSuccess(res);
|
|
84
|
+
})
|
|
81
85
|
.catch(() => setError(true))
|
|
82
86
|
.then(() => setIsValidating(false));
|
|
83
87
|
}, [validationCode]);
|
|
@@ -86,10 +90,11 @@ export default function AccountVerify(inProps) {
|
|
|
86
90
|
return null;
|
|
87
91
|
}
|
|
88
92
|
// RENDER
|
|
89
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className
|
|
93
|
+
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), succeed ? (React.createElement(Alert, { severity: "success", className: classes.success },
|
|
94
|
+
typeof succeed === 'string' ? succeed : React.createElement(FormattedMessage, { id: "ui.accountVerify.success", defaultMessage: "ui.accountVerify.success" }),
|
|
95
|
+
successAction)) : error ? (React.createElement(Alert, { severity: "error", className: classes.error },
|
|
96
|
+
React.createElement(FormattedMessage, { id: "ui.accountVerify.error", defaultMessage: "ui.accountVerify.error" }))) : (React.createElement(React.Fragment, null,
|
|
90
97
|
React.createElement(CircularProgress, null),
|
|
91
|
-
React.createElement(FormattedMessage, { id: "ui.accountVerify.verifying", defaultMessage: "ui.accountVerify.verifying" })))
|
|
92
|
-
React.createElement(FormattedMessage, { id: "ui.accountVerify.success", defaultMessage: "ui.accountVerify.success" }),
|
|
93
|
-
successAction))));
|
|
98
|
+
React.createElement(FormattedMessage, { id: "ui.accountVerify.verifying", defaultMessage: "ui.accountVerify.verifying" })))));
|
|
94
99
|
}
|
|
95
100
|
//# sourceMappingURL=AccountVerify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountVerify.js","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO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CAAC,CAAC;aAC3B,IAAI,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,IAAI,aAAa,CAAC,IAAI,KAAK,IAAI,EAAE;QAC/B,yBAAyB;QACzB,OAAO,IAAI,CAAC;KACb;IAED,SAAS;IACT,OAAO,CACL,oBAAC,IAAI,kBAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAM,IAAI,GAC3D,OAAO,CAAC,CAAC,CAAC,CACT,oBAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO;QACjD,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,0BAA0B,EAAC,cAAc,EAAC,0BAA0B,GAAG;QACpI,aAAa,CACR,CACT,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CACV,oBAAC,KAAK,IAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAE,OAAO,CAAC,KAAK;QAC9C,oBAAC,gBAAgB,IAAC,EAAE,EAAC,wBAAwB,EAAC,cAAc,EAAC,wBAAwB,GAAG,CAClF,CACT,CAAC,CAAC,CAAC,CACF;QACE,oBAAC,gBAAgB,OAAG;QACpB,oBAAC,gBAAgB,IAAC,EAAE,EAAC,4BAA4B,EAAC,cAAc,EAAC,4BAA4B,GAAG,CAC/F,CACJ,CACI,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAsBA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAI5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAuDjD,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC;;OAEG;IACH,GAAG,CAAC,EAAE,oBAAoB,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,WAAW,eAwJlD"}
|
|
@@ -9,8 +9,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { AppBar, Avatar, Badge, Box, Button, IconButton, Toolbar,
|
|
13
|
-
import React, { useContext } from 'react';
|
|
12
|
+
import { AppBar, Avatar, Badge, Box, Button, IconButton, Toolbar, styled, Grid, Tabs, Tab, useTheme, useMediaQuery, Menu } from '@mui/material';
|
|
13
|
+
import React, { useContext, useEffect } from 'react';
|
|
14
14
|
import { SCPreferences, useSCPreferences, Link, SCUserContext } from '@selfcommunity/react-core';
|
|
15
15
|
import Icon from '@mui/material/Icon';
|
|
16
16
|
import MobileHeader from './MobileHeader/MobileHeader';
|
|
@@ -19,6 +19,7 @@ import SearchBar from './SearchBar';
|
|
|
19
19
|
import classNames from 'classnames';
|
|
20
20
|
import { FormattedMessage } from 'react-intl';
|
|
21
21
|
import HeaderMenu from './HeaderMenu';
|
|
22
|
+
import HeaderSkeleton from './Skeleton';
|
|
22
23
|
const PREFIX = 'SCHeader';
|
|
23
24
|
const classes = {
|
|
24
25
|
root: `${PREFIX}-root`,
|
|
@@ -108,52 +109,65 @@ export default function Header(inProps) {
|
|
|
108
109
|
// PREFERENCES
|
|
109
110
|
const scPreferences = useSCPreferences();
|
|
110
111
|
const logo = scPreferences.preferences[SCPreferences.LOGO_NAVBAR_LOGO].value;
|
|
112
|
+
// STATE
|
|
111
113
|
const theme = useTheme();
|
|
112
114
|
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
|
113
115
|
const [value, setValue] = React.useState(0);
|
|
114
116
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
117
|
+
// HANDLERS
|
|
115
118
|
const handleOpenSettingsMenu = (event) => {
|
|
116
119
|
setAnchorEl(event.currentTarget);
|
|
117
120
|
};
|
|
118
121
|
const handleCloseSettingsMenu = () => {
|
|
119
122
|
setAnchorEl(null);
|
|
120
123
|
};
|
|
121
|
-
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
const getSelectedTab = JSON.parse(localStorage.getItem('selectedTab'));
|
|
126
|
+
if (getSelectedTab) {
|
|
127
|
+
setValue(getSelectedTab);
|
|
128
|
+
}
|
|
129
|
+
}, []);
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
localStorage.setItem('selectedTab', JSON.stringify(value));
|
|
132
|
+
}, [value]);
|
|
133
|
+
if (scUserContext.loading) {
|
|
134
|
+
return React.createElement(HeaderSkeleton, null);
|
|
135
|
+
}
|
|
136
|
+
return (React.createElement(Root, { className: classNames(classes.root, className) }, isMobile ? (React.createElement(MobileHeader, { url: url, searchBarProps: searchBarProps })) : (React.createElement(AppBar, { position: 'fixed', color: 'default' },
|
|
122
137
|
React.createElement(Toolbar, null,
|
|
123
138
|
React.createElement(Box, { className: classes.logoContainer },
|
|
124
139
|
scUserContext.user && url && url.home ? (React.createElement(Link, { to: url.home },
|
|
125
140
|
React.createElement("img", { src: logo, alt: 'logo', style: { height: '30px' } }))) : (React.createElement(Link, { to: '/' },
|
|
126
141
|
React.createElement("img", { src: logo, alt: 'logo', style: { height: '30px' } }))),
|
|
127
|
-
!scUserContext.user && url && url.register && (React.createElement(Button, { color:
|
|
142
|
+
!scUserContext.user && url && url.register && (React.createElement(Button, { color: 'inherit', component: Link, to: url.register, className: classes.registerButton }, "sign up"))),
|
|
128
143
|
scUserContext.user ? (React.createElement(React.Fragment, null,
|
|
129
144
|
React.createElement(Box, { className: classes.tabsContainer },
|
|
130
145
|
React.createElement(Tabs, { onChange: (e, v) => setValue(v), value: value, textColor: "inherit", indicatorColor: "primary", "aria-label": "Navigation Tabs" },
|
|
131
|
-
url && url.home && React.createElement(Tab, { icon: React.createElement(Icon, null, "home"), "aria-label": "HomePage", to: url.home, component: Link }),
|
|
132
|
-
url && url.explore && React.createElement(Tab, { icon: React.createElement(Icon, null, "explore"), "aria-label": "Explore", to: url.explore, component: Link }),
|
|
133
|
-
url && url.followings && React.createElement(Tab, { icon: React.createElement(Icon, null, "person"), "aria-label": "Followings", to: url.followings, component: Link }))),
|
|
146
|
+
url && url.home && React.createElement(Tab, { value: 0, icon: React.createElement(Icon, null, "home"), "aria-label": "HomePage", to: url.home, component: Link }),
|
|
147
|
+
url && url.explore && React.createElement(Tab, { value: 1, icon: React.createElement(Icon, null, "explore"), "aria-label": "Explore", to: url.explore, component: Link }),
|
|
148
|
+
url && url.followings && React.createElement(Tab, { value: 2, icon: React.createElement(Icon, null, "person"), "aria-label": "Followings", to: url.followings, component: Link }))),
|
|
134
149
|
React.createElement(Box, { className: classes.searchBarContainer },
|
|
135
150
|
React.createElement(SearchBar, Object.assign({}, searchBarProps))),
|
|
136
151
|
React.createElement(Box, { className: classes.iconButtonsContainer },
|
|
137
152
|
url && url.profile && (React.createElement(IconButton, { component: Link, to: url.profile, size: "large", "aria-label": "Profile", color: "inherit", className: classes.iconButton },
|
|
138
153
|
React.createElement(Badge, { color: "error" },
|
|
139
154
|
React.createElement(Avatar, { alt: "Remy Sharp", src: scUserContext.user.avatar })))),
|
|
140
|
-
url && url.create && (React.createElement(IconButton, { component: Link, to: url.create, size:
|
|
141
|
-
React.createElement(Badge, { color:
|
|
155
|
+
url && url.create && (React.createElement(IconButton, { component: Link, to: url.create, size: 'large', "aria-label": 'New Contribute', color: 'inherit', className: classes.iconButton },
|
|
156
|
+
React.createElement(Badge, { color: 'error' },
|
|
142
157
|
React.createElement(Icon, null, "add_circle_outline")))),
|
|
143
|
-
url && url.notifications && (React.createElement(IconButton, { component: Link, to: url.notifications, size:
|
|
144
|
-
React.createElement(Badge, { badgeContent: scUserContext.user.unseen_interactions_counter, color:
|
|
158
|
+
url && url.notifications && (React.createElement(IconButton, { component: Link, to: url.notifications, size: 'large', "aria-label": 'Notifications', color: 'inherit', className: classes.iconButton },
|
|
159
|
+
React.createElement(Badge, { badgeContent: scUserContext.user.unseen_interactions_counter, color: 'error' },
|
|
145
160
|
React.createElement(Icon, null, "notifications")))),
|
|
146
|
-
React.createElement(
|
|
147
|
-
React.createElement(
|
|
148
|
-
|
|
149
|
-
React.createElement(Menu, { id: "menu-appbar", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleCloseSettingsMenu, onClick: handleCloseSettingsMenu, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' } },
|
|
161
|
+
React.createElement(IconButton, { onClick: handleOpenSettingsMenu, className: classes.iconButton },
|
|
162
|
+
React.createElement(Icon, null, "expand_more")),
|
|
163
|
+
React.createElement(Menu, { id: 'menu-appbar', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleCloseSettingsMenu, onClick: handleCloseSettingsMenu, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' } },
|
|
150
164
|
React.createElement(HeaderMenu, { url: url }))))) : (React.createElement(React.Fragment, null,
|
|
151
|
-
React.createElement(Grid, { container: true, direction:
|
|
165
|
+
React.createElement(Grid, { container: true, direction: 'row', justifyContent: 'flex-end', alignItems: 'center' },
|
|
152
166
|
React.createElement(SearchBar, Object.assign({}, searchBarProps)),
|
|
153
|
-
url && url.explore && (React.createElement(Button, { component: Link, to: url.explore, size:
|
|
154
|
-
React.createElement(FormattedMessage, { id:
|
|
155
|
-
url && url.login && (React.createElement(Button, { color:
|
|
167
|
+
url && url.explore && (React.createElement(Button, { component: Link, to: url.explore, size: 'medium', "aria-label": 'Explore', color: 'inherit' },
|
|
168
|
+
React.createElement(FormattedMessage, { id: 'ui.header.button.explore', defaultMessage: 'ui.header.button.explore' }))),
|
|
169
|
+
url && url.login && (React.createElement(Button, { color: 'inherit', onClick: url.login },
|
|
156
170
|
' ',
|
|
157
|
-
React.createElement(FormattedMessage, { id:
|
|
171
|
+
React.createElement(FormattedMessage, { id: 'ui.header.button.login', defaultMessage: 'ui.header.button.login' })))))))))));
|
|
158
172
|
}
|
|
159
173
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,GAAG,EACH,MAAM,EACN,UAAU,EACV,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,GAAG,EACH,MAAM,EACN,UAAU,EACV,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,aAAa,EACb,IAAI,EACL,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACnD,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,EAAC,MAAM,2BAA2B,CAAC;AAE/F,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,SAAiC,MAAM,aAA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AAI,CACnB,oBAAC,MAAM,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,CAAC,KAAK;wBACvC,GAAG;wBACJ,oBAAC,gBAAgB,IAAC,EAAE,EAAC,wBAAwB,EAAC,cAAc,EAAC,wBAAwB,GAAG,CACjF,CACV,CACI,CACN,CACJ,CACO,CACH,CACV,CACI,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/MobileHeader.tsx"],"names":[],"mappings":"AAKA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAI7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"MobileHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/MobileHeader.tsx"],"names":[],"mappings":"AAKA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAI7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAuDpD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC;;OAEG;IACH,GAAG,CAAC,EAAE,oBAAoB,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,iBAAiB,eA0H9D"}
|
|
@@ -11,13 +11,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { AppBar, Badge, Box, Button, Grid, IconButton, styled, SwipeableDrawer, Tab, Tabs, Toolbar } from '@mui/material';
|
|
13
13
|
import Icon from '@mui/material/Icon';
|
|
14
|
-
import React, { useContext, useState } from 'react';
|
|
14
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
15
15
|
import { Link, SCPreferences, SCUserContext, useSCPreferences } from '@selfcommunity/react-core';
|
|
16
16
|
import { useThemeProps } from '@mui/system';
|
|
17
17
|
import SearchBar from '../SearchBar';
|
|
18
18
|
import classNames from 'classnames';
|
|
19
19
|
import { FormattedMessage } from 'react-intl';
|
|
20
20
|
import HeaderMenu from '../HeaderMenu';
|
|
21
|
+
import MobileHeaderSkeleton from './Skeleton';
|
|
21
22
|
const PREFIX = 'SCMobileHeader';
|
|
22
23
|
const classes = {
|
|
23
24
|
root: `${PREFIX}-root`,
|
|
@@ -89,30 +90,42 @@ export default function MobileHeader(inProps) {
|
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
92
|
};
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
const getSelectedTab = JSON.parse(localStorage.getItem('selectedTab'));
|
|
95
|
+
if (getSelectedTab) {
|
|
96
|
+
setValue(getSelectedTab);
|
|
97
|
+
}
|
|
98
|
+
}, []);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
localStorage.setItem('selectedTab', JSON.stringify(value));
|
|
101
|
+
}, [value]);
|
|
102
|
+
if (scUserContext.loading) {
|
|
103
|
+
return React.createElement(MobileHeaderSkeleton, null);
|
|
104
|
+
}
|
|
92
105
|
return (React.createElement(Root, { className: classNames(classes.root, className) },
|
|
93
|
-
React.createElement(AppBar, { position:
|
|
106
|
+
React.createElement(AppBar, { position: 'fixed', color: 'default' },
|
|
94
107
|
React.createElement(Toolbar, { className: classes.topToolbar },
|
|
95
|
-
React.createElement(Grid, { container: true, direction:
|
|
108
|
+
React.createElement(Grid, { container: true, direction: 'row', justifyContent: 'flex-start' }, scUserContext.user && url && url.home ? (React.createElement(Link, { to: url.home },
|
|
96
109
|
React.createElement("img", { src: logo, alt: 'logo', style: { height: '30px' } }))) : (React.createElement(Link, { to: '/' },
|
|
97
110
|
React.createElement("img", { src: logo, alt: 'logo', style: { height: '30px' } })))),
|
|
98
111
|
React.createElement(SearchBar, Object.assign({}, searchBarProps)),
|
|
99
|
-
scUserContext.user && url && url.create && (React.createElement(IconButton, { component: Link, to: url.create, size:
|
|
112
|
+
scUserContext.user && url && url.create && (React.createElement(IconButton, { component: Link, to: url.create, size: 'large', "aria-label": 'New Contribute', color: 'inherit' },
|
|
100
113
|
React.createElement(Icon, null, "create"))))),
|
|
101
114
|
React.createElement(BottomBar, null, scUserContext.user ? (React.createElement(Toolbar, { className: classes.bottomToolbar },
|
|
102
|
-
React.createElement(Tabs, { className: value === 4 ? classes.settingsTab : classes.tabs, onChange: (e, v) => setValue(v), value: value, textColor:
|
|
103
|
-
url && url.home && React.createElement(Tab, { icon: React.createElement(Icon, null, "home"), "aria-label": "HomePage", to: url.home, component: Link }),
|
|
104
|
-
url && url.explore && React.createElement(Tab, { icon: React.createElement(Icon, null, "explore"), "aria-label": "Explore", to: url.explore, component: Link }),
|
|
105
|
-
url && url.followings && React.createElement(Tab, { icon: React.createElement(Icon, null, "person"), "aria-label": "Followings", to: url.followings, component: Link }),
|
|
106
|
-
url && url.notifications && (React.createElement(Tab, { icon: React.createElement(Badge, { badgeContent: scUserContext.user.unseen_interactions_counter, color:
|
|
107
|
-
React.createElement(Icon, null, "notifications")), "aria-label":
|
|
108
|
-
React.createElement(Tab, { className: classes.settingsTab, icon: React.createElement(Icon, null, "menu"), "aria-label": "HeaderMenu", onClick: handleOpenSettingsMenu }),
|
|
115
|
+
React.createElement(Tabs, { className: value === 4 ? classes.settingsTab : classes.tabs, onChange: (e, v) => setValue(v), value: value, textColor: 'primary', indicatorColor: 'primary', "aria-label": 'Navigation Tabs', variant: 'scrollable' },
|
|
116
|
+
url && url.home && React.createElement(Tab, { value: 0, icon: React.createElement(Icon, null, "home"), "aria-label": "HomePage", to: url.home, component: Link }),
|
|
117
|
+
url && url.explore && React.createElement(Tab, { value: 1, icon: React.createElement(Icon, null, "explore"), "aria-label": "Explore", to: url.explore, component: Link }),
|
|
118
|
+
url && url.followings && React.createElement(Tab, { value: 2, icon: React.createElement(Icon, null, "person"), "aria-label": "Followings", to: url.followings, component: Link }),
|
|
119
|
+
url && url.notifications && (React.createElement(Tab, { value: 3, icon: React.createElement(Badge, { badgeContent: scUserContext.user.unseen_interactions_counter, color: 'error' },
|
|
120
|
+
React.createElement(Icon, null, "notifications")), "aria-label": 'Notifications', to: url.notifications, component: Link })),
|
|
121
|
+
React.createElement(Tab, { value: 4, className: classes.settingsTab, icon: React.createElement(Icon, null, "menu"), "aria-label": "HeaderMenu", onClick: handleOpenSettingsMenu }),
|
|
109
122
|
React.createElement(SwipeableDrawer, { anchor: 'right', open: openSettings, onClick: () => setOpenSettings(false), onClose: () => setOpenSettings(false), onOpen: toggleDrawer('right', true) },
|
|
110
123
|
React.createElement(HeaderMenu, { url: url }))))) : (React.createElement(Toolbar, { sx: { justifyContent: 'space-between' } },
|
|
111
|
-
url && url.explore && (React.createElement(Button, { component: Link, to: url.explore, size:
|
|
112
|
-
React.createElement(FormattedMessage, { id:
|
|
113
|
-
url && url.login && (React.createElement(Button, { color:
|
|
114
|
-
React.createElement(FormattedMessage, { id:
|
|
115
|
-
url && url.register && (React.createElement(Button, { color:
|
|
116
|
-
React.createElement(FormattedMessage, { id:
|
|
124
|
+
url && url.explore && (React.createElement(Button, { component: Link, to: url.explore, size: 'medium', color: 'inherit' },
|
|
125
|
+
React.createElement(FormattedMessage, { id: 'ui.header.button.explore', defaultMessage: 'ui.header.button.explore' }))),
|
|
126
|
+
url && url.login && (React.createElement(Button, { color: 'inherit', onClick: url.login },
|
|
127
|
+
React.createElement(FormattedMessage, { id: 'ui.header.button.login', defaultMessage: 'ui.header.button.login' }))),
|
|
128
|
+
url && url.register && (React.createElement(Button, { color: 'inherit', component: Link, to: url.register },
|
|
129
|
+
React.createElement(FormattedMessage, { id: 'ui.header.button.register', defaultMessage: 'ui.header.button.register' }))))))));
|
|
117
130
|
}
|
|
118
131
|
//# sourceMappingURL=MobileHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.js","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/MobileHeader.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AACxH,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,EAAE,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MobileHeader.js","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/MobileHeader.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AACxH,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,EAAE,EAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAqB,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAClH,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,SAAiC,MAAM,cAAc,CAAC;AAC7D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAC5C,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,OAAO,oBAAoB,MAAM,YAAY,CAAC;AAE9C,MAAM,MAAM,GAAG,gBAAgB,CAAC;AAEhC,MAAM,OAAO,GAAG;IACd,IAAI,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AM,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,CAAC,KAAK;gBACxC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,wBAAwB,EAAC,cAAc,EAAC,wBAAwB,GAAG,CACjF,CACV;YACA,GAAG,IAAI,GAAG,CAAC,QAAQ,IAAI,CACtB,oBAAC,MAAM,IAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,QAAQ;gBACvD,oBAAC,gBAAgB,IAAC,EAAE,EAAC,2BAA2B,EAAC,cAAc,EAAC,2BAA2B,GAAG,CACvF,CACV,CACO,CACX,CACS,CACP,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* > API documentation for the Community-JS Header Skeleton component. Learn about the available props and the CSS API.
|
|
3
|
+
|
|
4
|
+
#### Import
|
|
5
|
+
|
|
6
|
+
```jsx
|
|
7
|
+
import {MobileHeaderSkeleton} from '@selfcommunity/react-ui';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
#### Component Name
|
|
11
|
+
|
|
12
|
+
The name `SCMobileHeaderSkeleton` can be used when providing style overrides in the theme.
|
|
13
|
+
|
|
14
|
+
#### CSS
|
|
15
|
+
|
|
16
|
+
|Rule Name|Global class|Description|
|
|
17
|
+
|---|---|---|
|
|
18
|
+
|root|.SCMobileHeaderSkeleton-root|Styles applied to the root element.|
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export default function CategoryHeaderSkeleton(): JSX.Element;
|
|
22
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/Skeleton.tsx"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,IAAI,GAAG,CAAC,OAAO,CAO5D"}
|