@blaze-cms/plugin-admin-core-ui 0.133.0-core-styles.3 → 0.133.0
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/CHANGELOG.md +3 -18
- package/lib/components/Header/Header.js +3 -3
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Layout/Layout.js +4 -5
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/components/Grid/Grid.js +1 -3
- package/lib/components/Layout/components/Grid/Grid.js.map +1 -1
- package/lib/components/SideBar/SideBar.js +5 -1
- package/lib/components/SideBar/SideBar.js.map +1 -1
- package/lib/constants.js +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/containers/Home/Home.js +1 -1
- package/lib/containers/Home/Home.js.map +1 -1
- package/lib-es/components/Header/Header.js +3 -3
- package/lib-es/components/Header/Header.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +4 -5
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/components/Grid/Grid.js +1 -3
- package/lib-es/components/Layout/components/Grid/Grid.js.map +1 -1
- package/lib-es/components/SideBar/SideBar.js +5 -1
- package/lib-es/components/SideBar/SideBar.js.map +1 -1
- package/lib-es/constants.js +1 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/containers/Home/Home.js +1 -1
- package/lib-es/containers/Home/Home.js.map +1 -1
- package/package.json +8 -8
- package/src/components/Header/Header.js +7 -9
- package/src/components/Layout/Layout.js +7 -11
- package/src/components/Layout/components/Grid/Grid.js +1 -1
- package/src/components/SideBar/SideBar.js +3 -2
- package/src/constants.js +1 -1
- package/src/containers/Home/Home.js +1 -1
- package/lib/components/Layout/Background.js +0 -26
- package/lib/components/Layout/Background.js.map +0 -1
- package/lib-es/components/Layout/Background.js +0 -16
- package/lib-es/components/Layout/Background.js.map +0 -1
- package/src/components/Layout/Background.js +0 -16
- package/src/components/Layout/bg.svg +0 -22
|
@@ -3,16 +3,16 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Query } from '@apollo/client/react/components';
|
|
4
4
|
import { getQuery } from '@blaze-cms/admin-ui-utils';
|
|
5
5
|
import { Login } from '@blaze-cms/plugin-auth-ui';
|
|
6
|
+
import Header from '../Header';
|
|
6
7
|
import { Grid } from './components';
|
|
7
|
-
|
|
8
|
+
|
|
8
9
|
import '@blaze-cms/admin-ui-styles/main.scss';
|
|
9
|
-
import Header from '../Header';
|
|
10
10
|
|
|
11
11
|
const Layout = ({ children }) => {
|
|
12
12
|
const [isOpenMenu, setOpenMenu] = useState(true);
|
|
13
13
|
const onMenuClick = () => setOpenMenu(!isOpenMenu);
|
|
14
14
|
return (
|
|
15
|
-
<div className="site-container grid--site-container">
|
|
15
|
+
<div className="site-container grid grid--site-container">
|
|
16
16
|
<Query query={getQuery('GET_USER_AUTH_DATA')} errorPolicy="all">
|
|
17
17
|
{({ data = {} }) => {
|
|
18
18
|
const { session: { isLoggedIn, userData = {} } = {} } = data;
|
|
@@ -21,15 +21,11 @@ const Layout = ({ children }) => {
|
|
|
21
21
|
<>
|
|
22
22
|
<Header isLoggedIn={isLoggedIn} onMenuClick={onMenuClick} isOpenMenu={isOpenMenu} />
|
|
23
23
|
{isLoggedIn ? (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</Grid>
|
|
28
|
-
</>
|
|
24
|
+
<Grid isOpenMenu={isOpenMenu} onMenuClick={onMenuClick} userData={userData}>
|
|
25
|
+
{children}
|
|
26
|
+
</Grid>
|
|
29
27
|
) : (
|
|
30
|
-
<
|
|
31
|
-
<Login />
|
|
32
|
-
</Background>
|
|
28
|
+
<Login />
|
|
33
29
|
)}
|
|
34
30
|
</>
|
|
35
31
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
2
3
|
import classnames from 'classnames';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import { useApolloClient } from '@apollo/client';
|
|
@@ -30,9 +31,9 @@ const SideBar = ({ menuItems, isOpenMenu, onMenuClick, userData }) => {
|
|
|
30
31
|
onClick={onMenuClick}>
|
|
31
32
|
<i className="material-icons">keyboard_arrow_left</i>
|
|
32
33
|
</div>
|
|
33
|
-
|
|
34
|
+
<Link to="/" className="side-nav__block-home">
|
|
34
35
|
Dashboard
|
|
35
|
-
</Link>
|
|
36
|
+
</Link>
|
|
36
37
|
<div className={sideNavWrapperClassname} data-testid="sidenav" id="side-nav__wrapper">
|
|
37
38
|
{menuItems.length
|
|
38
39
|
? menuItems.map(([, data]) => <SideBlock key={data.header} {...data} />)
|
package/src/constants.js
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
// import Svg from './bg.svg';
|
|
12
|
-
|
|
13
|
-
var Background = function Background(_ref) {
|
|
14
|
-
var children = _ref.children;
|
|
15
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
16
|
-
className: "bg-blue-900 h-full w-full relative"
|
|
17
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
18
|
-
className: "login-container"
|
|
19
|
-
}, children));
|
|
20
|
-
};
|
|
21
|
-
Background.propTypes = {
|
|
22
|
-
children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
|
|
23
|
-
};
|
|
24
|
-
var _default = Background;
|
|
25
|
-
exports["default"] = _default;
|
|
26
|
-
//# sourceMappingURL=Background.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Background.js","names":["_react","_interopRequireDefault","require","_propTypes","Background","_ref","children","createElement","className","propTypes","PropTypes","oneOfType","arrayOf","node","isRequired","_default","exports"],"sources":["../../../src/components/Layout/Background.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n// import Svg from './bg.svg';\n\nconst Background = ({ children }) => (\n <div className=\"bg-blue-900 h-full w-full relative\">\n {/* <Svg /> */}\n <div className=\"login-container\">{children}</div>\n </div>\n);\n\nBackground.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport default Background;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA;;AAEA,IAAME,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,oBAC5BN,MAAA,YAAAO,aAAA;IAAKC,SAAS,EAAC;EAAoC,gBAEjDR,MAAA,YAAAO,aAAA;IAAKC,SAAS,EAAC;EAAiB,GAAEF,QAAc,CAC7C,CAAC;AAAA,CACP;AAEDF,UAAU,CAACK,SAAS,GAAG;EACrBH,QAAQ,EAAEI,qBAAS,CAACC,SAAS,CAAC,CAACD,qBAAS,CAACE,OAAO,CAACF,qBAAS,CAACG,IAAI,CAAC,EAAEH,qBAAS,CAACG,IAAI,CAAC,CAAC,CAACC;AACrF,CAAC;AAAC,IAAAC,QAAA,GAEaX,UAAU;AAAAY,OAAA,cAAAD,QAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
// import Svg from './bg.svg';
|
|
4
|
-
|
|
5
|
-
const Background = ({
|
|
6
|
-
children
|
|
7
|
-
}) => /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
className: "bg-blue-900 h-full w-full relative"
|
|
9
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: "login-container"
|
|
11
|
-
}, children));
|
|
12
|
-
Background.propTypes = {
|
|
13
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
|
|
14
|
-
};
|
|
15
|
-
export default Background;
|
|
16
|
-
//# sourceMappingURL=Background.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Background.js","names":["React","PropTypes","Background","children","createElement","className","propTypes","oneOfType","arrayOf","node","isRequired"],"sources":["../../../src/components/Layout/Background.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n// import Svg from './bg.svg';\n\nconst Background = ({ children }) => (\n <div className=\"bg-blue-900 h-full w-full relative\">\n {/* <Svg /> */}\n <div className=\"login-container\">{children}</div>\n </div>\n);\n\nBackground.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport default Background;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC;;AAEA,MAAMC,UAAU,GAAGA,CAAC;EAAEC;AAAS,CAAC,kBAC9BH,KAAA,CAAAI,aAAA;EAAKC,SAAS,EAAC;AAAoC,gBAEjDL,KAAA,CAAAI,aAAA;EAAKC,SAAS,EAAC;AAAiB,GAAEF,QAAc,CAC7C,CACN;AAEDD,UAAU,CAACI,SAAS,GAAG;EACrBH,QAAQ,EAAEF,SAAS,CAACM,SAAS,CAAC,CAACN,SAAS,CAACO,OAAO,CAACP,SAAS,CAACQ,IAAI,CAAC,EAAER,SAAS,CAACQ,IAAI,CAAC,CAAC,CAACC;AACrF,CAAC;AAED,eAAeR,UAAU"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
// import Svg from './bg.svg';
|
|
4
|
-
|
|
5
|
-
const Background = ({ children }) => (
|
|
6
|
-
<div className="bg-blue-900 h-full w-full relative">
|
|
7
|
-
{/* <Svg /> */}
|
|
8
|
-
<div className="login-container">{children}</div>
|
|
9
|
-
</div>
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
Background.propTypes = {
|
|
13
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default Background;
|