@webiny/app-admin-rmwc 5.21.0-beta.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/index.d.ts +2 -0
  4. package/index.js +12 -0
  5. package/modules/Brand/index.d.ts +2 -0
  6. package/modules/Brand/index.js +46 -0
  7. package/modules/Brand/webiny-logo.svg +20 -0
  8. package/modules/Dashboard/Welcome.d.ts +3 -0
  9. package/modules/Dashboard/Welcome.js +256 -0
  10. package/modules/Dashboard/icons/github.svg +1 -0
  11. package/modules/Dashboard/icons/laptop.svg +1 -0
  12. package/modules/Dashboard/icons/slack.svg +1 -0
  13. package/modules/Dashboard/icons/textbook.svg +1 -0
  14. package/modules/Dashboard/icons/twitter.svg +1 -0
  15. package/modules/Dashboard/icons/youtube.svg +1 -0
  16. package/modules/Dashboard/index.d.ts +2 -0
  17. package/modules/Dashboard/index.js +18 -0
  18. package/modules/Layout.d.ts +2 -0
  19. package/modules/Layout.js +41 -0
  20. package/modules/Navigation/Hamburger.d.ts +3 -0
  21. package/modules/Navigation/Hamburger.js +28 -0
  22. package/modules/Navigation/Styled.d.ts +7 -0
  23. package/modules/Navigation/Styled.js +47 -0
  24. package/modules/Navigation/icons/hamburger.svg +4 -0
  25. package/modules/Navigation/icons/round-keyboard_arrow_down-24px.svg +16 -0
  26. package/modules/Navigation/icons/round-keyboard_arrow_up-24px.svg +16 -0
  27. package/modules/Navigation/icons/webiny-orange-logo.svg +20 -0
  28. package/modules/Navigation/index.d.ts +10 -0
  29. package/modules/Navigation/index.js +131 -0
  30. package/modules/Navigation/renderers/MenuElementRenderer.d.ts +2 -0
  31. package/modules/Navigation/renderers/MenuElementRenderer.js +10 -0
  32. package/modules/Navigation/renderers/MenuGroupRenderer.d.ts +2 -0
  33. package/modules/Navigation/renderers/MenuGroupRenderer.js +139 -0
  34. package/modules/Navigation/renderers/MenuLinkRenderer.d.ts +2 -0
  35. package/modules/Navigation/renderers/MenuLinkRenderer.js +51 -0
  36. package/modules/Navigation/renderers/MenuSectionItemRenderer.d.ts +2 -0
  37. package/modules/Navigation/renderers/MenuSectionItemRenderer.js +64 -0
  38. package/modules/Navigation/renderers/MenuSectionRenderer.d.ts +2 -0
  39. package/modules/Navigation/renderers/MenuSectionRenderer.js +41 -0
  40. package/modules/NotFound/SecureRouteError.svg +1 -0
  41. package/modules/NotFound/index.d.ts +2 -0
  42. package/modules/NotFound/index.js +58 -0
  43. package/modules/Overlays/Dialog.d.ts +2 -0
  44. package/modules/Overlays/Dialog.js +40 -0
  45. package/modules/Overlays/Snackbar.d.ts +3 -0
  46. package/modules/Overlays/Snackbar.js +28 -0
  47. package/modules/Overlays/index.d.ts +2 -0
  48. package/modules/Overlays/index.js +27 -0
  49. package/modules/Search/index.d.ts +2 -0
  50. package/modules/Search/index.js +18 -0
  51. package/modules/UserMenu/account.svg +1 -0
  52. package/modules/UserMenu/index.d.ts +2 -0
  53. package/modules/UserMenu/index.js +116 -0
  54. package/package.json +59 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Webiny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @webiny/app-admin-rmwc
2
+ [![](https://img.shields.io/npm/dw/@webiny/app-admin-rmwc.svg)](https://www.npmjs.com/package/@webiny/app-admin-rmwc)
3
+ [![](https://img.shields.io/npm/v/@webiny/app-admin-rmwc.svg)](https://www.npmjs.com/package/@webiny/app-admin-rmwc)
4
+ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
5
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
6
+
7
+ An implementation of core UI components for @webiny/app-serverless-cms using RMWC UI library.
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const RMWC: () => JSX.Element;
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import React, { Fragment } from "react";
2
+ import { Layout } from "./modules/Layout";
3
+ import { Navigation } from "./modules/Navigation";
4
+ import { Brand } from "./modules/Brand";
5
+ import { Search } from "./modules/Search";
6
+ import { UserMenu } from "./modules/UserMenu";
7
+ import { Overlays } from "./modules/Overlays";
8
+ import { NotFound } from "./modules/NotFound";
9
+ import { Dashboard } from "./modules/Dashboard";
10
+ export var RMWC = function RMWC() {
11
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Layout, null), /*#__PURE__*/React.createElement(Dashboard, null), /*#__PURE__*/React.createElement(NotFound, null), /*#__PURE__*/React.createElement(Brand, null), /*#__PURE__*/React.createElement(Navigation, null), /*#__PURE__*/React.createElement(Search, null), /*#__PURE__*/React.createElement(UserMenu, null), /*#__PURE__*/React.createElement(Overlays, null));
12
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Brand: () => JSX.Element;
@@ -0,0 +1,46 @@
1
+ import React, { Fragment, useCallback } from "react";
2
+ import { Compose, BrandRenderer, useTags, Logo, AddLogo } from "@webiny/app-admin";
3
+ import { Link } from "@webiny/react-router/";
4
+ import { ReactComponent as LogoIcon } from "@svgr/webpack!./webiny-logo.svg";
5
+ import { useNavigation } from "../Navigation";
6
+
7
+ var BrandImpl = function BrandImpl() {
8
+ return function BrandRenderer() {
9
+ var _useTags = useTags(),
10
+ location = _useTags.location;
11
+
12
+ var _useNavigation = useNavigation(),
13
+ setVisible = _useNavigation.setVisible;
14
+
15
+ var onClick = useCallback(function () {
16
+ location === "navigation" ? setVisible(false) : null;
17
+ }, []);
18
+ return /*#__PURE__*/React.createElement(Link, {
19
+ to: "/",
20
+ onClick: onClick
21
+ }, /*#__PURE__*/React.createElement(Logo, null));
22
+ };
23
+ };
24
+
25
+ var WebinyLogo = function WebinyLogo() {
26
+ var _useTags2 = useTags(),
27
+ location = _useTags2.location;
28
+
29
+ return /*#__PURE__*/React.createElement(LogoIcon, {
30
+ style: {
31
+ width: 100,
32
+ height: 30,
33
+ paddingLeft: 20,
34
+ color: location === "navigation" ? "var(--mdc-theme-primary)" : "white"
35
+ }
36
+ });
37
+ };
38
+
39
+ export var Brand = function Brand() {
40
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Compose, {
41
+ component: BrandRenderer,
42
+ with: BrandImpl
43
+ }), /*#__PURE__*/React.createElement(AddLogo, {
44
+ logo: /*#__PURE__*/React.createElement(WebinyLogo, null)
45
+ }));
46
+ };
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg viewBox="0 0 413 126" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <defs>
4
+ <path d="M106.337016,98.7997963 L63.0899545,123.570655 C58.9970198,125.91444 53.9546983,125.91444 49.861857,123.570655 L6.61395537,98.7997963 C2.52111405,96.4552699 -5.07221701e-15,92.1236493 -4.78514071e-15,87.4353375 L-1.75158541e-15,37.8936199 C-1.46450911e-15,33.2053081 2.52111405,28.873039 6.61395537,26.5292537 L49.861857,1.75839485 C53.9546983,-0.586131618 58.9970198,-0.586131618 63.0899545,1.75839485 L106.337016,26.5292537 C110.42995,28.873039 112.951064,33.2053081 112.951064,37.8936199 L112.951064,87.4353375 C112.951064,92.1236493 110.42995,96.4552699 106.337016,98.7997963 Z M82.6150471,41.7683515 C79.3715736,50.8470221 76.1049397,59.9486691 72.8391463,69.0602294 L71.8026281,69.0602294 C68.5476678,59.9265265 65.281781,50.8027368 62.0268207,41.6911765 L51.872043,41.6911765 C48.5723496,50.9027956 45.3065562,60.0257515 42.0407628,69.1602882 L41.0927769,69.1602882 C37.7823438,59.9371809 34.4719107,50.7148147 31.2722364,41.8126368 L19.1446281,41.8126368 C25.0417339,58.5659118 30.7933405,74.8990324 36.5448537,91.2321529 L46.554786,91.2321529 L56.4646992,63.5972029 L57.4680645,63.5972029 C60.7784975,72.8645956 64.0781909,82.1427353 67.3216645,91.2099176 L77.3540099,91.2099176 C83.127843,74.8103691 88.8794496,58.4665941 94.7542355,41.7683515 L82.6150471,41.7683515 Z" id="path-1"></path>
5
+ </defs>
6
+ <g id="Page-4" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="Webiny-Logo-Icon" transform="translate(-95.000000, -227.000000)">
8
+ <g id="Group-27" transform="translate(301.500000, 290.500000) rotate(-90.000000) translate(-301.500000, -290.500000) translate(238.000000, 84.000000)">
9
+ <path d="M38.9886,294.4019 L38.9886,303.1704 L78.6828,303.1704 L78.6828,294.4019 L38.9886,294.4019 Z M78.7273,391.1846 L78.7273,382.0161 C70.8914,382.0161 63.4463,382.0343 56.0012,382.0071 C51.053,381.9807 47.5708,378.463 47.6153,373.6211 C47.6508,368.7347 50.1294,366.4688 55.6376,366.4333 C62.1493,366.3888 68.67,366.4333 75.1825,366.4069 C76.3641,366.3979 77.5457,366.2024 78.6737,366.0961 L78.6737,357.5321 C78.3183,357.3812 78.132,357.2294 77.9456,357.2294 C68.6436,357.203 59.3243,357.0522 50.0231,357.2294 C45.492,357.3185 41.9472,359.4508 40.0457,363.9192 C43.0934,368.4948 42.8262,373.5585 42.2045,378.6312 C41.6891,382.7714 41.9736,386.8226 42.8707,391.2736 C54.8641,391.2382 66.7693,391.3709 78.7273,391.1846 L78.7273,391.1846 Z M69.3634,348.63 C73.2192,348.5236 76.0532,346.054 77.6875,342.5091 C79.3754,338.8489 80.1043,334.9486 79.18,331.0393 C78.4164,327.8053 77.0213,324.7231 75.866,321.48 C77.0839,320.0766 78.4692,318.4687 80.0062,316.7099 C78.0338,314.5149 76.3369,312.6142 74.6407,310.7218 C69.5589,314.773 69.5589,314.773 62.94,314.773 C56.1175,314.773 49.2851,314.773 42.4626,314.782 C41.3609,314.782 40.2502,314.8793 39.0068,314.942 L39.0068,323.9859 L61.243,323.9859 C66.0759,323.9859 69.3189,326.5091 70.536,331.2174 C71.9576,336.7256 69.7807,339.6042 64.1126,339.6215 C56.8811,339.6479 49.6405,339.6215 42.3999,339.6396 C41.2983,339.6396 40.1966,339.746 39.0777,339.8078 L39.0777,348.7099 C49.3296,348.7099 59.3506,348.888 69.3634,348.63 L69.3634,348.63 Z M70.9978,230.0101 C70.696,234.3985 68.919,236.0954 64.468,235.7936 C59.9996,231.3517 61.892,225.8344 61.5894,220.6371 C67.1066,221.0107 71.3177,225.3372 70.9978,230.0101 L70.9978,230.0101 Z M50.8575,242.7852 C49.8804,240.5374 48.9742,238.5741 48.1834,236.5663 C46.9309,233.4213 46.5665,230.161 47.2418,226.8206 C47.908,223.4984 49.4986,221.8987 53.008,221.2679 C53.008,223.1603 53.0163,224.9909 53.008,226.8116 C52.9635,231.1117 53.5671,235.2874 55.6104,239.1249 C59.7951,246.9699 70.625,247.938 75.8133,240.84 C81.3214,233.315 80.8506,222.0851 73.112,215.5825 C67.3111,210.7142 60.524,209.7635 53.2562,210.927 C47.3218,211.8868 42.8353,214.9517 40.1612,220.2908 C36.3591,227.8777 38.376,240.6265 44.3632,247.2544 C46.5137,245.7702 48.6897,244.2686 50.8575,242.7852 L50.8575,242.7852 Z M55.6549,410.8713 C61.5011,408.3398 65.4014,401.3037 64.4952,394.8539 C64.4152,394.2759 64.0507,393.7432 63.7662,393.086 L54.7223,393.086 C54.9177,394.3031 55.1577,395.3066 55.2195,396.3192 C55.3795,398.8605 54.0025,401.3483 52.0218,402.2545 C49.8004,403.2761 46.6291,402.6898 44.914,400.7348 C44.0523,399.7486 43.1816,398.576 42.8534,397.3416 C42.0626,394.374 41.21,391.3355 41.0855,388.2887 C40.8456,382.7178 41.21,377.1215 41.041,371.5424 C40.8983,367.0287 38.5887,362.7821 34.733,360.437 C28.035,356.3678 18.742,358.2783 14.2292,364.4255 C9.849,370.3962 10.6307,379.2975 16.068,384.5838 C19.9855,388.395 24.8719,390.0384 30.4864,390.9001 L30.4864,381.5807 C29.4739,381.2608 28.2741,380.9772 27.1461,380.5146 C25.9117,380.0083 24.6501,379.4847 23.5567,378.7384 C20.8562,376.8897 19.9682,373.5675 21.2735,370.8044 C22.3042,368.6193 25.2982,367.1796 27.8124,367.6595 C30.8954,368.2457 31.988,369.8273 31.9971,373.8429 C32.0144,379.5284 31.819,385.2146 32.0061,390.8918 C32.2016,396.5773 33.8359,401.89 37.4252,406.4293 C41.6536,411.7865 49.3123,413.6171 55.6549,410.8713 L55.6549,410.8713 Z M50.8312,276.8821 C47.7126,274.5107 46.9136,271.1695 46.9309,267.5364 C46.94,265.7859 47.2154,264.0361 47.4108,261.7702 C53.6207,261.7702 59.6087,261.5393 65.5696,261.8683 C68.5282,262.0283 70.1715,264.6042 70.9359,267.2783 C71.833,270.3969 71.5758,273.4618 69.0344,275.905 C64.6906,280.0625 55.6376,280.5334 50.8312,276.8821 L50.8312,276.8821 Z M64.2461,288.3157 C74.5162,286.8323 80.6906,279.059 80.0862,268.7626 C79.9534,266.5321 79.2336,264.3379 78.7001,261.7529 L95.5,261.7529 L95.5,252.3626 L40.4275,252.3626 C38.9622,256.5737 37.8961,265.1105 38.2424,269.3843 C39.0686,279.6008 44.2304,286.0687 53.7988,288.0675 C57.1655,288.7783 60.8349,288.8137 64.2461,288.3157 L64.2461,288.3157 Z M78.6919,200.586 C71.3977,198.001 64.0862,195.3978 56.7656,192.7946 L56.7656,191.9684 C64.1035,189.3743 71.4331,186.7711 78.7537,184.177 L78.7537,176.0838 C71.3531,173.4542 64.0243,170.851 56.6856,168.2479 L56.6856,167.4925 C64.0952,164.8547 71.504,162.2161 78.6556,159.6657 L78.6556,150 C65.1969,154.7001 52.0746,159.2839 38.9532,163.8685 L38.9532,171.8463 L61.1548,179.7441 L61.1548,180.5439 C53.7097,183.1825 46.2556,185.8121 38.9713,188.3971 L38.9713,196.393 C52.1463,200.995 65.2769,205.5788 78.6919,210.2607 L78.6919,200.586 Z" id="Fill-23" fill="currentColor"></path>
10
+ <g id="Webiny-Icon-White" transform="translate(63.500000, 56.500000) rotate(90.000000) translate(-63.500000, -56.500000) translate(7.000000, -6.500000)">
11
+ <mask id="mask-2" fill="currentColor">
12
+ <use xlink:href="#path-1"></use>
13
+ </mask>
14
+ <use id="Mask" fill="currentColor" fill-rule="evenodd" xlink:href="#path-1"></use>
15
+ <g id="White" mask="url(#mask-2)"></g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Welcome: () => JSX.Element;
3
+ export default Welcome;
@@ -0,0 +1,256 @@
1
+ import React from "react";
2
+ import { css } from "emotion";
3
+ import styled from "@emotion/styled";
4
+ import { Link } from "@webiny/react-router";
5
+ import { SimpleForm, SimpleFormHeader, SimpleFormContent, SimpleFormFooter } from "@webiny/app-admin/components/SimpleForm";
6
+ import { useSecurity } from "@webiny/app-security/hooks/useSecurity";
7
+ import { plugins } from "@webiny/plugins";
8
+ import { Typography } from "@webiny/ui/Typography";
9
+ import { Cell, Grid } from "@webiny/ui/Grid";
10
+ import { Elevation } from "@webiny/ui/Elevation"; // Icons
11
+
12
+ import { ReactComponent as YouTubeIcon } from "@svgr/webpack!./icons/youtube.svg";
13
+ import { ReactComponent as GithubIcon } from "@svgr/webpack!./icons/github.svg";
14
+ import { ReactComponent as SlackIcon } from "@svgr/webpack!./icons/slack.svg";
15
+ import { ReactComponent as TwitterIcon } from "@svgr/webpack!./icons/twitter.svg";
16
+ import { ReactComponent as TextbookIcon } from "@svgr/webpack!./icons/textbook.svg";
17
+ import { ReactComponent as LaptopIcon } from "@svgr/webpack!./icons/laptop.svg";
18
+ var linkStyle = /*#__PURE__*/css({
19
+ textDecoration: "none",
20
+ "&:hover": {
21
+ textDecoration: "none"
22
+ },
23
+ color: "var(--mdc-theme-text-primary-on-background)"
24
+ }, "label:linkStyle;");
25
+ var imageStyle = /*#__PURE__*/css({
26
+ width: "30px",
27
+ height: "30px",
28
+ marginBottom: "5px"
29
+ }, "label:imageStyle;");
30
+ var communityStyle = /*#__PURE__*/css({
31
+ textAlign: "left"
32
+ }, "label:communityStyle;");
33
+ var widgetTitleStyle = /*#__PURE__*/css({
34
+ fontWeight: 600,
35
+ paddingTop: "1rem",
36
+ paddingBottom: "1rem",
37
+ textAlign: "center"
38
+ }, "label:widgetTitleStyle;");
39
+ var widgetDescriptionStyle = /*#__PURE__*/css({
40
+ textAlign: "center",
41
+ paddingLeft: "20px",
42
+ paddingRight: "20px"
43
+ }, "label:widgetDescriptionStyle;");
44
+ var iconTextStyle = /*#__PURE__*/css({
45
+ textAlign: "center"
46
+ }, "label:iconTextStyle;");
47
+ var pFormContentStyle = /*#__PURE__*/css({
48
+ fontWeight: 600
49
+ }, "label:pFormContentStyle;");
50
+ var pGetStartedStyle = /*#__PURE__*/css({
51
+ paddingLeft: "1.5rem",
52
+ paddingTop: "1.5rem"
53
+ }, "label:pGetStartedStyle;");
54
+ var footerContainerStyle = /*#__PURE__*/css({
55
+ display: "flex",
56
+ padding: "1rem"
57
+ }, "label:footerContainerStyle;");
58
+ var widgetButtonStyle = /*#__PURE__*/css({
59
+ textAlign: "center"
60
+ }, "label:widgetButtonStyle;");
61
+ var footerTextStyle = /*#__PURE__*/css({
62
+ backgroundColor: "var(--mdc-theme-on-background)",
63
+ margin: "1rem"
64
+ }, "label:footerTextStyle;");
65
+ var footerLinkTextStyle = /*#__PURE__*/css({
66
+ fontWeight: 600,
67
+ paddingLeft: "1rem"
68
+ }, "label:footerLinkTextStyle;");
69
+ var ContentTheme = /*#__PURE__*/styled("div", {
70
+ target: "e3tmptz0",
71
+ label: "ContentTheme"
72
+ })({
73
+ color: "var(--mdc-theme-text-primary-on-background)"
74
+ });
75
+ var Widget = /*#__PURE__*/styled("div", {
76
+ target: "e3tmptz1",
77
+ label: "Widget"
78
+ })({
79
+ marginLeft: "1.5rem",
80
+ marginRight: "1.5rem",
81
+ marginBottom: "2rem"
82
+ });
83
+ var WelcomeScreenWidgetsWrapper = /*#__PURE__*/styled("div", {
84
+ target: "e3tmptz2",
85
+ label: "WelcomeScreenWidgetsWrapper"
86
+ })({
87
+ display: "flex",
88
+ justifyContent: "center",
89
+ "@media (max-width: 479px)": {
90
+ flexDirection: "column"
91
+ }
92
+ });
93
+
94
+ var Welcome = function Welcome() {
95
+ var _useSecurity = useSecurity(),
96
+ identity = _useSecurity.identity;
97
+
98
+ if (!identity) {
99
+ return null;
100
+ }
101
+
102
+ var widgets = plugins.byType("admin-welcome-screen-widget").filter(function (pl) {
103
+ if (pl.permission) {
104
+ return identity.getPermission(pl.permission);
105
+ }
106
+
107
+ return true;
108
+ });
109
+ var canSeeAnyWidget = widgets.length > 0;
110
+ return /*#__PURE__*/React.createElement(SimpleForm, null, /*#__PURE__*/React.createElement(SimpleFormHeader, {
111
+ title: "Hi ".concat(identity.displayName, "!")
112
+ }), /*#__PURE__*/React.createElement(SimpleFormContent, null, /*#__PURE__*/React.createElement(ContentTheme, null, /*#__PURE__*/React.createElement(Cell, {
113
+ span: 12
114
+ }, /*#__PURE__*/React.createElement(Typography, {
115
+ use: "headline6"
116
+ }, canSeeAnyWidget && /*#__PURE__*/React.createElement("p", {
117
+ className: pGetStartedStyle
118
+ }, "To get started - pick one of the actions below:"), !canSeeAnyWidget && /*#__PURE__*/React.createElement("p", {
119
+ className: pGetStartedStyle
120
+ }, "Please contact the administrator for permissions to access Webiny apps."), /*#__PURE__*/React.createElement("br", null))), /*#__PURE__*/React.createElement(WelcomeScreenWidgetsWrapper, null, widgets.map(function (pl) {
121
+ return /*#__PURE__*/React.createElement(Widget, {
122
+ key: pl.name,
123
+ "data-testid": pl.name
124
+ }, /*#__PURE__*/React.createElement(Elevation, {
125
+ z: 2,
126
+ style: {
127
+ padding: 10
128
+ }
129
+ }, /*#__PURE__*/React.createElement(Typography, {
130
+ use: "headline6"
131
+ }, /*#__PURE__*/React.createElement("p", {
132
+ className: widgetTitleStyle
133
+ }, pl.widget.title)), /*#__PURE__*/React.createElement(Typography, {
134
+ use: "body1"
135
+ }, /*#__PURE__*/React.createElement("p", {
136
+ className: widgetDescriptionStyle
137
+ }, pl.widget.description)), /*#__PURE__*/React.createElement("div", {
138
+ className: widgetButtonStyle
139
+ }, pl.widget.cta)));
140
+ })))), /*#__PURE__*/React.createElement(SimpleFormFooter, null, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Cell, {
141
+ span: 8
142
+ }, /*#__PURE__*/React.createElement(Typography, {
143
+ use: "headline6",
144
+ className: communityStyle
145
+ }, /*#__PURE__*/React.createElement("p", {
146
+ className: pFormContentStyle
147
+ }, "Learn more about Webiny:"))), /*#__PURE__*/React.createElement(Cell, {
148
+ span: 4,
149
+ style: {
150
+ marginLeft: "1rem"
151
+ }
152
+ }, /*#__PURE__*/React.createElement(Typography, {
153
+ use: "headline6",
154
+ className: communityStyle
155
+ }, /*#__PURE__*/React.createElement("p", {
156
+ className: pFormContentStyle
157
+ }, "Join our community:"))), /*#__PURE__*/React.createElement(Cell, {
158
+ span: 8
159
+ }, /*#__PURE__*/React.createElement(Typography, {
160
+ use: "body1",
161
+ className: communityStyle
162
+ }, /*#__PURE__*/React.createElement("p", null, "Explore the Webiny documentation, learn about the architecture and check out code examples and guides:"))), /*#__PURE__*/React.createElement(Cell, {
163
+ span: 4,
164
+ style: {
165
+ marginLeft: "1rem"
166
+ }
167
+ }, /*#__PURE__*/React.createElement(Typography, {
168
+ use: "body1",
169
+ className: communityStyle
170
+ }, /*#__PURE__*/React.createElement("p", null, "Get to know Webiny team members, discuss new ideas and get help:"))), /*#__PURE__*/React.createElement(Cell, {
171
+ span: 4,
172
+ className: footerTextStyle,
173
+ style: {
174
+ margin: "1rem 1rem 1rem 0rem"
175
+ }
176
+ }, /*#__PURE__*/React.createElement(Link, {
177
+ to: "https://docs.webiny.com/",
178
+ className: linkStyle,
179
+ target: "_blank",
180
+ rel: "noopener noreferrer"
181
+ }, /*#__PURE__*/React.createElement(Typography, {
182
+ use: "headline5"
183
+ }, /*#__PURE__*/React.createElement("div", {
184
+ className: footerContainerStyle
185
+ }, /*#__PURE__*/React.createElement(TextbookIcon, {
186
+ className: imageStyle
187
+ }), /*#__PURE__*/React.createElement("p", {
188
+ className: footerLinkTextStyle
189
+ }, "Documentation"))))), /*#__PURE__*/React.createElement(Cell, {
190
+ span: 4,
191
+ className: footerTextStyle,
192
+ style: {
193
+ margin: "1rem 1rem 1rem 9px",
194
+ visibility: "hidden"
195
+ }
196
+ }, /*#__PURE__*/React.createElement(Link, {
197
+ to: "https://github.com/webiny/webiny-examples",
198
+ className: linkStyle,
199
+ target: "_blank",
200
+ rel: "noopener noreferrer"
201
+ }, /*#__PURE__*/React.createElement(Typography, {
202
+ use: "headline5"
203
+ }, /*#__PURE__*/React.createElement("span", {
204
+ className: footerContainerStyle
205
+ }, /*#__PURE__*/React.createElement(LaptopIcon, {
206
+ className: imageStyle
207
+ }), /*#__PURE__*/React.createElement("p", {
208
+ className: footerLinkTextStyle
209
+ }, "Code examples"))))), /*#__PURE__*/React.createElement(Cell, {
210
+ span: 1,
211
+ className: iconTextStyle,
212
+ align: "middle"
213
+ }, /*#__PURE__*/React.createElement(Link, {
214
+ to: "https://github.com/webiny/webiny-js",
215
+ className: linkStyle,
216
+ target: "_blank",
217
+ rel: "noopener noreferrer"
218
+ }, /*#__PURE__*/React.createElement(GithubIcon, {
219
+ className: imageStyle
220
+ }), /*#__PURE__*/React.createElement("p", null, "Github"))), /*#__PURE__*/React.createElement(Cell, {
221
+ span: 1,
222
+ className: iconTextStyle,
223
+ align: "middle"
224
+ }, /*#__PURE__*/React.createElement(Link, {
225
+ to: "https://www.webiny.com/slack/",
226
+ className: linkStyle,
227
+ target: "_blank",
228
+ rel: "noopener noreferrer"
229
+ }, /*#__PURE__*/React.createElement(SlackIcon, {
230
+ className: imageStyle
231
+ }), /*#__PURE__*/React.createElement("p", null, "Slack"))), /*#__PURE__*/React.createElement(Cell, {
232
+ span: 1,
233
+ className: iconTextStyle,
234
+ align: "middle"
235
+ }, /*#__PURE__*/React.createElement(Link, {
236
+ to: "https://youtube.com/webiny",
237
+ className: linkStyle,
238
+ target: "_blank",
239
+ rel: "noopener noreferrer"
240
+ }, /*#__PURE__*/React.createElement(YouTubeIcon, {
241
+ className: imageStyle
242
+ }), /*#__PURE__*/React.createElement("p", null, "YouTube"))), /*#__PURE__*/React.createElement(Cell, {
243
+ span: 1,
244
+ className: iconTextStyle,
245
+ align: "middle"
246
+ }, /*#__PURE__*/React.createElement(Link, {
247
+ to: "https://twitter.com/WebinyPlatform",
248
+ className: linkStyle,
249
+ target: "_blank",
250
+ rel: "noopener noreferrer"
251
+ }, /*#__PURE__*/React.createElement(TwitterIcon, {
252
+ className: imageStyle
253
+ }), /*#__PURE__*/React.createElement("p", null, "Twitter"))))));
254
+ };
255
+
256
+ export default Welcome;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!-- Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
@@ -0,0 +1 @@
1
+ <svg id="Layer_1" enable-background="new 0 0 510.635 510.635" height="512" viewBox="0 0 510.635 510.635" width="512" xmlns="http://www.w3.org/2000/svg"><path d="m494.635 350.649h-26.42v-238.157c0-28.612-23.278-51.891-51.891-51.891h-322.012c-28.613 0-51.891 23.278-51.891 51.891v238.157h-26.421c-8.836 0-16 7.163-16 16v42.984c0 22.276 18.123 40.399 40.399 40.399h429.836c22.276 0 40.399-18.123 40.399-40.399v-42.984c.001-8.836-7.163-16-15.999-16zm-420.215-238.157c0-10.968 8.923-19.891 19.891-19.891h322.012c10.968 0 19.891 8.923 19.891 19.891v238.157h-361.794zm404.215 297.142c0 4.632-3.768 8.399-8.399 8.399h-429.837c-4.631 0-8.399-3.768-8.399-8.399v-26.984h171.69c1.333 7.491 7.863 13.184 15.737 13.184h71.779c7.874 0 14.405-5.692 15.737-13.184h171.69v26.984z"/><path d="m196.197 170.517c-6.249-6.249-16.379-6.249-22.627 0l-46.801 46.801c-6.244 6.242-6.248 16.38 0 22.627l46.801 46.802c3.125 3.125 7.219 4.687 11.314 4.687 14.125 0 21.423-17.205 11.314-27.313l-35.488-35.488 35.487-35.487c6.248-6.25 6.248-16.381 0-22.629z"/><path d="m337.065 170.517c-6.248-6.248-16.378-6.248-22.627 0-6.248 6.248-6.248 16.379 0 22.627l35.487 35.487-35.488 35.488c-10.109 10.109-2.81 27.313 11.314 27.313 4.095 0 8.189-1.563 11.314-4.687l46.801-46.802c6.244-6.243 6.248-16.381 0-22.627z"/><path d="m284.351 153.975c-8.237-3.205-17.509.877-20.711 9.113l-46.468 119.488c-4.098 10.537 3.739 21.803 14.908 21.803 6.407 0 12.454-3.875 14.916-10.205l46.468-119.488c3.202-8.236-.878-17.508-9.113-20.711z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"/></svg>
@@ -0,0 +1 @@
1
+ <svg height="512pt" viewBox="-40 0 512 512.00004" width="512pt" xmlns="http://www.w3.org/2000/svg"><path d="m423.71875 60.6875c4.203125 0 7.609375-3.410156 7.609375-7.613281v-30.238281c0-12.59375-10.242187-22.835938-22.835937-22.835938h-328.777344c-43.8125 0-79.570313 35.164062-79.714844 78.414062v354.691407.019531c-.0585938 21.085938 8.121094 40.914062 23.039062 55.839844 14.863282 14.855468 34.613282 23.035156 55.617188 23.035156h329.835938c12.59375 0 22.835937-10.242188 22.835937-22.835938v-405.640624c0-4.203126-3.40625-7.613282-7.609375-7.613282s-7.613281 3.410156-7.613281 7.613282v272.476562c-2.382813-.847656-4.941407-1.308594-7.613281-1.308594h-223.808594c-4.207032 0-7.613282 3.40625-7.613282 7.609375s3.40625 7.613281 7.613282 7.613281h223.808594c4.199218 0 7.613281 3.414063 7.613281 7.609376 0 4.199218-3.414063 7.613281-7.613281 7.613281h-329.835938c-13.074219 0-25.320312 5.160156-34.476562 14.535156-9.152344 9.371094-14.023438 21.734375-13.71875 34.820313.605468 25.949218 22.566406 47.0625 48.953124 47.0625h329.078126c4.199218 0 7.613281 3.414062 7.613281 7.609374 0 4.199219-3.414063 7.613282-7.613281 7.613282h-329.835938c-16.9375 0-32.867188-6.597656-44.855469-18.574219-12.035156-12.046875-18.632812-28.054687-18.578125-45.074219.117188-34.855468 29.046875-63.214844 64.492188-63.214844h74.515625c4.207031 0 7.613281-3.410156 7.613281-7.613281s-3.40625-7.609375-7.613281-7.609375h-74.515625c-26.46875 0-49.980469 12.84375-64.492188 32.53125v-308.78125c.117188-34.859375 29.046875-63.21875 64.492188-63.21875h328.777344c4.199218 0 7.613281 3.414063 7.613281 7.613282v30.238281c0 4.203125 3.410156 7.613281 7.613281 7.613281zm-378.039062 373.449219c-.207032-8.953125 3.125-17.414063 9.390624-23.824219 6.265626-6.417969 14.644532-9.953125 23.585938-9.953125h308.585938c-1.910157 4.117187-3.453126 8.359375-4.609376 12.6875h-292.8125c-4.203124 0-7.613281 3.40625-7.613281 7.609375s3.410157 7.613281 7.613281 7.613281h290.324219c-.21875 3.378907-.21875 6.769531 0 10.148438h-290.324219c-4.203124 0-7.613281 3.410156-7.613281 7.613281s3.410157 7.613281 7.613281 7.613281h292.8125c1.15625 4.324219 2.699219 8.570313 4.609376 12.683594h-307.828126c-18.183593 0-33.320312-14.441406-33.734374-32.191406zm362.8125 32.191406h-4c-12.398438-20.167969-12.398438-45.796875 0-65.96875h4c2.671874 0 5.230468-.464844 7.613281-1.308594v68.585938c-2.382813-.84375-4.941407-1.308594-7.613281-1.308594zm0 0"/><path d="m132.140625 83.523438c-16.457031 0-29.84375 13.386718-29.84375 29.84375v59.050781c0 16.453125 13.386719 29.84375 29.84375 29.84375h220.410156c16.457031 0 29.847657-13.390625 29.847657-29.84375v-59.050781c0-16.457032-13.390626-29.84375-29.847657-29.84375zm235.03125 29.84375v59.050781c0 8.058593-6.558594 14.621093-14.621094 14.621093h-220.410156c-8.0625 0-14.621094-6.5625-14.621094-14.621093v-59.050781c0-8.0625 6.558594-14.621094 14.621094-14.621094h220.410156c8.0625 0 14.621094 6.558594 14.621094 14.621094zm0 0"/><path d="m335.207031 151.53125h-185.71875c-4.203125 0-7.613281 3.410156-7.613281 7.613281s3.410156 7.613281 7.613281 7.613281h185.71875c4.203125 0 7.609375-3.410156 7.609375-7.613281s-3.40625-7.613281-7.609375-7.613281zm0 0"/><path d="m335.207031 119.027344h-185.71875c-4.203125 0-7.613281 3.410156-7.613281 7.613281s3.410156 7.609375 7.613281 7.609375h185.71875c4.203125 0 7.609375-3.40625 7.609375-7.609375s-3.40625-7.613281-7.609375-7.613281zm0 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!-- Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/></svg>
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Dashboard: () => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { CenteredView, Compose, DashboardRenderer as DashboardRendererSpec } from "@webiny/app-admin";
3
+ import Welcome from "./Welcome";
4
+
5
+ var DashboardRendererHOC = function DashboardRendererHOC() {
6
+ return function DashboardRenderer() {
7
+ return /*#__PURE__*/React.createElement(CenteredView, {
8
+ maxWidth: 1300
9
+ }, /*#__PURE__*/React.createElement(Welcome, null));
10
+ };
11
+ };
12
+
13
+ export var Dashboard = function Dashboard() {
14
+ return /*#__PURE__*/React.createElement(Compose, {
15
+ component: DashboardRendererSpec,
16
+ with: DashboardRendererHOC
17
+ });
18
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Layout: () => JSX.Element;
@@ -0,0 +1,41 @@
1
+ import React, { Fragment } from "react";
2
+ import Helmet from "react-helmet";
3
+ import { Compose, LayoutRenderer, Brand, Search, LocaleSelector, UserMenu, Navigation } from "@webiny/app-admin";
4
+ import { TopAppBarPrimary, TopAppBarSection } from "@webiny/ui/TopAppBar";
5
+
6
+ var RMWCLayout = function RMWCLayout() {
7
+ return function RMWCLayout(_ref) {
8
+ var title = _ref.title,
9
+ children = _ref.children;
10
+ return /*#__PURE__*/React.createElement(Fragment, null, title ? /*#__PURE__*/React.createElement(Helmet, {
11
+ title: title
12
+ }) : null, /*#__PURE__*/React.createElement(TopAppBarPrimary, {
13
+ fixed: true
14
+ }, /*#__PURE__*/React.createElement(TopAppBarSection, {
15
+ style: {
16
+ width: "25%"
17
+ },
18
+ alignStart: true
19
+ }, /*#__PURE__*/React.createElement(Brand, null)), /*#__PURE__*/React.createElement(TopAppBarSection, {
20
+ style: {
21
+ width: "50%"
22
+ }
23
+ }, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement(TopAppBarSection, {
24
+ style: {
25
+ width: "25%"
26
+ },
27
+ alignEnd: true
28
+ }, /*#__PURE__*/React.createElement(LocaleSelector, null), /*#__PURE__*/React.createElement(UserMenu, null))), /*#__PURE__*/React.createElement("div", {
29
+ style: {
30
+ paddingTop: 67
31
+ }
32
+ }, children), /*#__PURE__*/React.createElement(Navigation, null));
33
+ };
34
+ };
35
+
36
+ export var Layout = function Layout() {
37
+ return /*#__PURE__*/React.createElement(Compose, {
38
+ component: LayoutRenderer,
39
+ with: RMWCLayout
40
+ });
41
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Hamburger: () => JSX.Element;
3
+ export default Hamburger;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { IconButton } from "@webiny/ui/Button";
3
+ import { ReactComponent as MenuIcon } from "@svgr/webpack!./icons/hamburger.svg";
4
+ import { useNavigation } from "./index";
5
+ import { useTags } from "@webiny/app-admin";
6
+
7
+ var Hamburger = function Hamburger() {
8
+ var _useTags = useTags(),
9
+ location = _useTags.location;
10
+
11
+ var _useNavigation = useNavigation(),
12
+ visible = _useNavigation.visible,
13
+ setVisible = _useNavigation.setVisible;
14
+
15
+ return /*#__PURE__*/React.createElement(IconButton, {
16
+ icon: /*#__PURE__*/React.createElement(MenuIcon, {
17
+ style: {
18
+ color: location === "navigation" ? undefined : "white"
19
+ }
20
+ }),
21
+ onClick: function onClick() {
22
+ return setVisible(!visible);
23
+ },
24
+ "data-testid": location === "navigation" ? undefined : "apps-menu"
25
+ });
26
+ };
27
+
28
+ export default Hamburger;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuHeader: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "title" | "children" | "slot" | "style" | "color" | "translate" | "hidden" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, object>;
3
+ export declare const navHeader: string;
4
+ export declare const navContent: string;
5
+ export declare const logoStyle: string;
6
+ export declare const MenuFooter: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "title" | "children" | "slot" | "style" | "color" | "translate" | "hidden" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, object>;
7
+ export declare const subFooter: string;
@@ -0,0 +1,47 @@
1
+ import styled from "@emotion/styled";
2
+ import { css } from "emotion";
3
+ export var MenuHeader = /*#__PURE__*/styled("div", {
4
+ target: "eulanz40",
5
+ label: "MenuHeader"
6
+ })({
7
+ display: "flex",
8
+ alignItems: "center",
9
+ padding: 5,
10
+ backgroundColor: "var(--mdc-theme-surface)",
11
+ borderBottom: "1px solid var(--mdc-theme-on-background)"
12
+ });
13
+ export var navHeader = /*#__PURE__*/css({
14
+ padding: 0,
15
+ "&.mdc-drawer__header": {
16
+ padding: "0 !important",
17
+ minHeight: 0
18
+ }
19
+ }, "label:navHeader;");
20
+ export var navContent = /*#__PURE__*/css({
21
+ padding: "0 !important"
22
+ }, "label:navContent;");
23
+ export var logoStyle = /*#__PURE__*/css({
24
+ "&.mdc-top-app-bar__title": {
25
+ paddingLeft: 15,
26
+ ".webiny-logo": {
27
+ color: "var(--mdc-theme-primary)"
28
+ }
29
+ }
30
+ }, "label:logoStyle;");
31
+ export var MenuFooter = /*#__PURE__*/styled("div", {
32
+ target: "eulanz41",
33
+ label: "MenuFooter"
34
+ })({
35
+ borderTop: "1px solid var(--mdc-theme-on-background)",
36
+ a: {
37
+ color: "var(--mdc-theme-text-on-primary)",
38
+ textDecoration: "none"
39
+ }
40
+ });
41
+ export var subFooter = /*#__PURE__*/css({
42
+ ".mdc-drawer &.mdc-list-item": {
43
+ borderTop: "1px solid var(--mdc-theme-on-background)",
44
+ padding: "10px 16px",
45
+ margin: 0
46
+ }
47
+ }, "label:subFooter;");
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
+ <path d="M0 0h24v24H0z" fill="none"/>
3
+ <path fill="currentColor" d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
4
+ </svg>