@webiny/app-admin-cognito 5.43.3 → 6.0.0-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.
@@ -1,5 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const Divider: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1
+ import React from "react";
2
+ export declare const Divider: () => React.JSX.Element;
@@ -1,25 +1,16 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Divider = void 0;
8
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
9
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10
- var Divider = exports.Divider = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
11
- target: "e1v7qj260"
12
- } : {
13
- target: "e1v7qj260",
14
- label: "Divider"
15
- })(process.env.NODE_ENV === "production" ? {
16
- name: "sdtygy",
17
- styles: "border-top:1px solid #ececec"
18
- } : {
19
- name: "sdtygy",
20
- styles: "border-top:1px solid #ececec",
21
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpdmlkZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVpQyIsImZpbGUiOiJEaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuXG5leHBvcnQgY29uc3QgRGl2aWRlciA9IHN0eWxlZC5kaXZgXG4gICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICNlY2VjZWM7XG5gO1xuIl19 */",
22
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
- });
1
+ import React from "react";
2
+ import { Separator, Text } from "@webiny/admin-ui";
3
+ export const Divider = () => {
4
+ return /*#__PURE__*/React.createElement("div", {
5
+ className: "wby-relative wby-my-lg"
6
+ }, /*#__PURE__*/React.createElement("div", {
7
+ className: "wby-absolute wby-inset-0 wby-flex wby-items-center"
8
+ }, /*#__PURE__*/React.createElement(Separator, null)), /*#__PURE__*/React.createElement("div", {
9
+ className: "wby-relative wby-flex wby-justify-center"
10
+ }, /*#__PURE__*/React.createElement(Text, {
11
+ size: "sm",
12
+ className: "wby-text-neutral-strong wby-px-sm wby-bg-neutral-base wby-uppercase"
13
+ }, "Or continue with")));
14
+ };
24
15
 
25
16
  //# sourceMappingURL=Divider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Divider","exports","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__"],"sources":["Divider.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nexport const Divider = styled.div`\n border-top: 1px solid #ececec;\n`;\n"],"mappings":";;;;;;;;;AAEO,IAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,oBAAAE,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAEnB","ignoreList":[]}
1
+ {"version":3,"names":["React","Separator","Text","Divider","createElement","className","size"],"sources":["Divider.tsx"],"sourcesContent":["import React from \"react\";\nimport { Separator, Text } from \"@webiny/admin-ui\";\n\nexport const Divider = () => {\n return (\n <div className={\"wby-relative wby-my-lg\"}>\n <div className={\"wby-absolute wby-inset-0 wby-flex wby-items-center\"}>\n <Separator />\n </div>\n <div className={\"wby-relative wby-flex wby-justify-center\"}>\n <Text\n size={\"sm\"}\n className={\n \"wby-text-neutral-strong wby-px-sm wby-bg-neutral-base wby-uppercase\"\n }\n >\n {\"Or continue with\"}\n </Text>\n </div>\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,IAAI,QAAQ,kBAAkB;AAElD,OAAO,MAAMC,OAAO,GAAGA,CAAA,KAAM;EACzB,oBACIH,KAAA,CAAAI,aAAA;IAAKC,SAAS,EAAE;EAAyB,gBACrCL,KAAA,CAAAI,aAAA;IAAKC,SAAS,EAAE;EAAqD,gBACjEL,KAAA,CAAAI,aAAA,CAACH,SAAS,MAAE,CACX,CAAC,eACND,KAAA,CAAAI,aAAA;IAAKC,SAAS,EAAE;EAA2C,gBACvDL,KAAA,CAAAI,aAAA,CAACF,IAAI;IACDI,IAAI,EAAE,IAAK;IACXD,SAAS,EACL;EACH,GAEA,kBACC,CACL,CACJ,CAAC;AAEd,CAAC","ignoreList":[]}
@@ -1,34 +1,14 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.FederatedProviders = exports.Container = void 0;
8
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _appAdmin = require("@webiny/app-admin");
11
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12
- var FlexContainer = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
13
- target: "e14conl60"
14
- } : {
15
- target: "e14conl60",
16
- label: "FlexContainer"
17
- })(process.env.NODE_ENV === "production" ? {
18
- name: "1fqucy2",
19
- styles: "display:flex;column-gap:10px;padding-top:20px;justify-content:center"
20
- } : {
21
- name: "1fqucy2",
22
- styles: "display:flex;column-gap:10px;padding-top:20px;justify-content:center",
23
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZlZGVyYXRlZFByb3ZpZGVycy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSWdDIiwiZmlsZSI6IkZlZGVyYXRlZFByb3ZpZGVycy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IG1ha2VEZWNvcmF0YWJsZSB9IGZyb20gXCJAd2ViaW55L2FwcC1hZG1pblwiO1xuXG5jb25zdCBGbGV4Q29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGNvbHVtbi1nYXA6IDEwcHg7XG4gICAgcGFkZGluZy10b3A6IDIwcHg7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgaW50ZXJmYWNlIENvbnRhaW5lclByb3BzIHtcbiAgICBjaGlsZHJlbjogUmVhY3QuUmVhY3ROb2RlO1xufVxuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyID0gbWFrZURlY29yYXRhYmxlKFxuICAgIFwiRmVkZXJhdGVkUHJvdmlkZXJzQ29udGFpbmVyXCIsXG4gICAgKHsgY2hpbGRyZW4gfTogQ29udGFpbmVyUHJvcHMpID0+IHtcbiAgICAgICAgcmV0dXJuIDxGbGV4Q29udGFpbmVyPntjaGlsZHJlbn08L0ZsZXhDb250YWluZXI+O1xuICAgIH1cbik7XG5cbmV4cG9ydCBjb25zdCBGZWRlcmF0ZWRQcm92aWRlcnMgPSB7XG4gICAgQ29udGFpbmVyXG59O1xuIl19 */",
24
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
- });
26
- var Container = exports.Container = (0, _appAdmin.makeDecoratable)("FederatedProvidersContainer", function (_ref) {
27
- var children = _ref.children;
28
- return /*#__PURE__*/_react.default.createElement(FlexContainer, null, children);
1
+ import React from "react";
2
+ import { makeDecoratable } from "@webiny/app-admin";
3
+ export const Container = makeDecoratable("FederatedProvidersContainer", ({
4
+ children
5
+ }) => {
6
+ return /*#__PURE__*/React.createElement("div", {
7
+ className: "wby-flex wby-flex-col wby-gap-xs"
8
+ }, children);
29
9
  });
30
- var FederatedProviders = exports.FederatedProviders = {
31
- Container: Container
10
+ export const FederatedProviders = {
11
+ Container
32
12
  };
33
13
 
34
14
  //# sourceMappingURL=FederatedProviders.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_appAdmin","_EMOTION_STRINGIFIED_CSS_ERROR__","FlexContainer","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","Container","exports","makeDecoratable","_ref","children","createElement","FederatedProviders"],"sources":["FederatedProviders.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { makeDecoratable } from \"@webiny/app-admin\";\n\nconst FlexContainer = styled.div`\n display: flex;\n column-gap: 10px;\n padding-top: 20px;\n justify-content: center;\n`;\n\nexport interface ContainerProps {\n children: React.ReactNode;\n}\n\nexport const Container = makeDecoratable(\n \"FederatedProvidersContainer\",\n ({ children }: ContainerProps) => {\n return <FlexContainer>{children}</FlexContainer>;\n }\n);\n\nexport const FederatedProviders = {\n Container\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAAoD,SAAAE,iCAAA;AAEpD,IAAMC,aAAa,oBAAAC,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAZ;AAAA,EAKlB;AAMM,IAAMa,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,IAAAE,yBAAe,EACpC,6BAA6B,EAC7B,UAAAC,IAAA,EAAkC;EAAA,IAA/BC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EACP,oBAAOrB,MAAA,CAAAO,OAAA,CAAAe,aAAA,CAACjB,aAAa,QAAEgB,QAAwB,CAAC;AACpD,CACJ,CAAC;AAEM,IAAME,kBAAkB,GAAAL,OAAA,CAAAK,kBAAA,GAAG;EAC9BN,SAAS,EAATA;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","makeDecoratable","Container","children","createElement","className","FederatedProviders"],"sources":["FederatedProviders.tsx"],"sourcesContent":["import React from \"react\";\nimport { makeDecoratable } from \"@webiny/app-admin\";\n\nexport interface ContainerProps {\n children: React.ReactNode;\n}\n\nexport const Container = makeDecoratable(\n \"FederatedProvidersContainer\",\n ({ children }: ContainerProps) => {\n return <div className={\"wby-flex wby-flex-col wby-gap-xs\"}>{children}</div>;\n }\n);\n\nexport const FederatedProviders = {\n Container\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,mBAAmB;AAMnD,OAAO,MAAMC,SAAS,GAAGD,eAAe,CACpC,6BAA6B,EAC7B,CAAC;EAAEE;AAAyB,CAAC,KAAK;EAC9B,oBAAOH,KAAA,CAAAI,aAAA;IAAKC,SAAS,EAAE;EAAmC,GAAEF,QAAc,CAAC;AAC/E,CACJ,CAAC;AAED,OAAO,MAAMG,kBAAkB,GAAG;EAC9BJ;AACJ,CAAC","ignoreList":[]}
@@ -12,6 +12,11 @@ export interface TitleProps {
12
12
  title: string;
13
13
  description?: React.ReactNode;
14
14
  }
15
+ export interface ErrorProps {
16
+ title?: string;
17
+ description?: string | null;
18
+ }
19
+ export declare const Error: ({ title, description }: ErrorProps) => React.JSX.Element | null;
15
20
  export declare const View: {
16
21
  Container: (({ children }: ContainerProps) => React.JSX.Element) & {
17
22
  original: ({ children }: ContainerProps) => React.JSX.Element;
@@ -32,25 +37,6 @@ export declare const View: {
32
37
  displayName: string;
33
38
  }>) => (props: unknown) => React.JSX.Element;
34
39
  };
35
- Logo: (() => React.JSX.Element) & {
36
- original: () => React.JSX.Element;
37
- originalName: string;
38
- displayName: string;
39
- } & {
40
- original: (() => React.JSX.Element) & {
41
- original: () => React.JSX.Element;
42
- originalName: string;
43
- displayName: string;
44
- };
45
- originalName: string;
46
- displayName: string;
47
- } & {
48
- createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(() => React.JSX.Element) & {
49
- original: () => React.JSX.Element;
50
- originalName: string;
51
- displayName: string;
52
- }>) => (props: unknown) => React.JSX.Element;
53
- };
54
40
  Content: (({ children }: ContentProps) => React.JSX.Element) & {
55
41
  original: ({ children }: ContentProps) => React.JSX.Element;
56
42
  originalName: string;
@@ -108,4 +94,5 @@ export declare const View: {
108
94
  displayName: string;
109
95
  }>) => (props: unknown) => React.JSX.Element;
110
96
  };
97
+ Error: ({ title, description }: ErrorProps) => React.JSX.Element | null;
111
98
  };
@@ -1,50 +1,66 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.View = void 0;
8
- var React = _interopRequireWildcard(require("react"));
9
- var _appAdmin = require("@webiny/app-admin");
10
- var Styled = _interopRequireWildcard(require("./StyledComponents"));
11
- var _Elevation = require("@webiny/ui/Elevation");
12
- var _Grid = require("@webiny/ui/Grid");
13
- var _Typography = require("@webiny/ui/Typography");
14
- var Container = (0, _appAdmin.makeDecoratable)("ViewContainer", function (_ref) {
15
- var children = _ref.children;
16
- return /*#__PURE__*/React.createElement(Styled.Wrapper, null, /*#__PURE__*/React.createElement(Styled.LogoWrapper, null, /*#__PURE__*/React.createElement(_appAdmin.Logo, null)), /*#__PURE__*/React.createElement(Styled.LoginContent, null, children));
1
+ import * as React from "react";
2
+ import { Logo, makeDecoratable } from "@webiny/app-admin";
3
+ import { Alert, Grid, Heading, Text } from "@webiny/admin-ui";
4
+ const Container = makeDecoratable("ViewContainer", ({
5
+ children
6
+ }) => {
7
+ return /*#__PURE__*/React.createElement("div", {
8
+ className: "wby-w-full wby-h-screen wby-bg-neutral-light wby-flex-1"
9
+ }, /*#__PURE__*/React.createElement("section", {
10
+ className: "wby-m-auto wby-flex wby-flex-col wby-justify-center wby-min-h-screen"
11
+ }, /*#__PURE__*/React.createElement("div", {
12
+ className: "wby-mx-auto"
13
+ }, /*#__PURE__*/React.createElement(Logo, null)), /*#__PURE__*/React.createElement("div", {
14
+ className: "wby-w-full wby-max-w-[480px] wby-mx-auto wby-my-lg"
15
+ }, children)));
17
16
  });
18
- var Content = (0, _appAdmin.makeDecoratable)("ViewContent", function (_ref2) {
19
- var children = _ref2.children;
20
- return /*#__PURE__*/React.createElement(_Elevation.Elevation, {
21
- z: 2
22
- }, /*#__PURE__*/React.createElement(Styled.InnerContent, null, children));
23
- });
24
- var Footer = (0, _appAdmin.makeDecoratable)("ViewFooter", function (_ref3) {
25
- var children = _ref3.children;
26
- return /*#__PURE__*/React.createElement(_Grid.Grid, null, /*#__PURE__*/React.createElement(_Grid.Cell, {
17
+ const Content = makeDecoratable("ViewContent", ({
18
+ children
19
+ }) => /*#__PURE__*/React.createElement("div", {
20
+ className: "wby-relative wby-p-lg wby-pt-md wby-bg-neutral-base wby-rounded-xl"
21
+ }, children));
22
+ const Footer = makeDecoratable("ViewFooter", ({
23
+ children
24
+ }) => {
25
+ return /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
27
26
  span: 12,
28
- style: {
29
- textAlign: "center"
30
- }
27
+ className: "wby-text-center wby-mt-lg"
31
28
  }, children));
32
29
  });
33
- var Title = (0, _appAdmin.makeDecoratable)("ViewTitle", function (_ref4) {
34
- var title = _ref4.title,
35
- description = _ref4.description;
36
- return /*#__PURE__*/React.createElement(Styled.Title, null, /*#__PURE__*/React.createElement(_Typography.Typography, {
37
- use: "headline4"
38
- }, title), description ? /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement(_Typography.Typography, {
39
- use: "body1"
40
- }, description)) : null);
30
+ const Title = makeDecoratable("ViewTitle", ({
31
+ title,
32
+ description
33
+ }) => {
34
+ return /*#__PURE__*/React.createElement("div", {
35
+ className: "wby-mb-md"
36
+ }, /*#__PURE__*/React.createElement(Heading, {
37
+ level: 4
38
+ }, title), description && /*#__PURE__*/React.createElement(Text, {
39
+ as: "div",
40
+ size: "sm",
41
+ className: "wby-text-neutral-strong"
42
+ }, description));
41
43
  });
42
- var View = exports.View = {
43
- Container: Container,
44
- Logo: _appAdmin.Logo,
45
- Content: Content,
46
- Title: Title,
47
- Footer: Footer
44
+ export const Error = ({
45
+ title = "Something went wrong",
46
+ description
47
+ }) => {
48
+ if (!description) {
49
+ return null;
50
+ }
51
+ return /*#__PURE__*/React.createElement("div", {
52
+ className: "wby-mb-lg"
53
+ }, /*#__PURE__*/React.createElement(Alert, {
54
+ title: title,
55
+ type: "danger"
56
+ }, description));
57
+ };
58
+ export const View = {
59
+ Container,
60
+ Content,
61
+ Title,
62
+ Footer,
63
+ Error
48
64
  };
49
65
 
50
66
  //# sourceMappingURL=View.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_appAdmin","Styled","_Elevation","_Grid","_Typography","Container","makeDecoratable","_ref","children","createElement","Wrapper","LogoWrapper","Logo","LoginContent","Content","_ref2","Elevation","z","InnerContent","Footer","_ref3","Grid","Cell","span","style","textAlign","Title","_ref4","title","description","Typography","use","View","exports"],"sources":["View.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Logo, makeDecoratable } from \"@webiny/app-admin\";\nimport * as Styled from \"./StyledComponents\";\nimport { Elevation } from \"@webiny/ui/Elevation\";\nimport { Cell, Grid } from \"@webiny/ui/Grid\";\nimport { Typography } from \"@webiny/ui/Typography\";\n\nexport interface ContainerProps {\n children: React.ReactNode;\n}\n\nconst Container = makeDecoratable(\"ViewContainer\", ({ children }: ContainerProps) => (\n <Styled.Wrapper>\n <Styled.LogoWrapper>\n <Logo />\n </Styled.LogoWrapper>\n <Styled.LoginContent>{children}</Styled.LoginContent>\n </Styled.Wrapper>\n));\n\nexport interface ContentProps {\n children: React.ReactNode;\n}\n\nconst Content = makeDecoratable(\"ViewContent\", ({ children }: ContentProps) => (\n <Elevation z={2}>\n <Styled.InnerContent>{children}</Styled.InnerContent>\n </Elevation>\n));\n\nexport interface FooterProps {\n children: React.ReactNode;\n}\n\nconst Footer = makeDecoratable(\"ViewFooter\", ({ children }: FooterProps) => {\n return (\n <Grid>\n <Cell span={12} style={{ textAlign: \"center\" }}>\n {children}\n </Cell>\n </Grid>\n );\n});\n\nexport interface TitleProps {\n title: string;\n description?: React.ReactNode;\n}\n\nconst Title = makeDecoratable(\"ViewTitle\", ({ title, description }: TitleProps) => {\n return (\n <Styled.Title>\n <Typography use=\"headline4\">{title}</Typography>\n {description ? (\n <p>\n <Typography use=\"body1\">{description}</Typography>\n </p>\n ) : null}\n </Styled.Title>\n );\n});\n\nexport const View = {\n Container,\n Logo,\n Content,\n Title,\n Footer\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAH,uBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,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hC,KAAA,CAAAY,aAAA,CAACR,MAAM,CAACyB,KAAK,qBACT7B,KAAA,CAAAY,aAAA,CAACL,WAAA,CAAA0B,UAAU;IAACC,GAAG,EAAC;EAAW,GAAEH,KAAkB,CAAC,EAC/CC,WAAW,gBACRhC,KAAA,CAAAY,aAAA,yBACIZ,KAAA,CAAAY,aAAA,CAACL,WAAA,CAAA0B,UAAU;IAACC,GAAG,EAAC;EAAO,GAAEF,WAAwB,CAClD,CAAC,GACJ,IACM,CAAC;AAEvB,CAAC,CAAC;AAEK,IAAMG,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAChB3B,SAAS,EAATA,SAAS;EACTO,IAAI,EAAJA,cAAI;EACJE,OAAO,EAAPA,OAAO;EACPY,KAAK,EAALA,KAAK;EACLP,MAAM,EAANA;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Logo","makeDecoratable","Alert","Grid","Heading","Text","Container","children","createElement","className","Content","Footer","Column","span","Title","title","description","level","as","size","Error","type","View"],"sources":["View.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Logo, makeDecoratable } from \"@webiny/app-admin\";\nimport { Alert, Grid, Heading, Text } from \"@webiny/admin-ui\";\n\nexport interface ContainerProps {\n children: React.ReactNode;\n}\n\nconst Container = makeDecoratable(\"ViewContainer\", ({ children }: ContainerProps) => {\n return (\n <div className={\"wby-w-full wby-h-screen wby-bg-neutral-light wby-flex-1\"}>\n <section\n className={\"wby-m-auto wby-flex wby-flex-col wby-justify-center wby-min-h-screen\"}\n >\n <div className={\"wby-mx-auto\"}>\n <Logo />\n </div>\n <div className={\"wby-w-full wby-max-w-[480px] wby-mx-auto wby-my-lg\"}>\n {children}\n </div>\n </section>\n </div>\n );\n});\n\nexport interface ContentProps {\n children: React.ReactNode;\n}\n\nconst Content = makeDecoratable(\"ViewContent\", ({ children }: ContentProps) => (\n <div className={\"wby-relative wby-p-lg wby-pt-md wby-bg-neutral-base wby-rounded-xl\"}>\n {children}\n </div>\n));\n\nexport interface FooterProps {\n children: React.ReactNode;\n}\n\nconst Footer = makeDecoratable(\"ViewFooter\", ({ children }: FooterProps) => {\n return (\n <Grid>\n <Grid.Column span={12} className={\"wby-text-center wby-mt-lg\"}>\n {children}\n </Grid.Column>\n </Grid>\n );\n});\n\nexport interface TitleProps {\n title: string;\n description?: React.ReactNode;\n}\n\nconst Title = makeDecoratable(\"ViewTitle\", ({ title, description }: TitleProps) => {\n return (\n <div className={\"wby-mb-md\"}>\n <Heading level={4}>{title}</Heading>\n {description && (\n <Text as={\"div\"} size={\"sm\"} className={\"wby-text-neutral-strong\"}>\n {description}\n </Text>\n )}\n </div>\n );\n});\n\nexport interface ErrorProps {\n title?: string;\n description?: string | null;\n}\n\nexport const Error = ({ title = \"Something went wrong\", description }: ErrorProps) => {\n if (!description) {\n return null;\n }\n\n return (\n <div className={\"wby-mb-lg\"}>\n <Alert title={title} type={\"danger\"}>\n {description}\n </Alert>\n </div>\n );\n};\n\nexport const View = {\n Container,\n Content,\n Title,\n Footer,\n Error\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,eAAe,QAAQ,mBAAmB;AACzD,SAASC,KAAK,EAAEC,IAAI,EAAEC,OAAO,EAAEC,IAAI,QAAQ,kBAAkB;AAM7D,MAAMC,SAAS,GAAGL,eAAe,CAAC,eAAe,EAAE,CAAC;EAAEM;AAAyB,CAAC,KAAK;EACjF,oBACIR,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAE;EAA0D,gBACtEV,KAAA,CAAAS,aAAA;IACIC,SAAS,EAAE;EAAuE,gBAElFV,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAE;EAAc,gBAC1BV,KAAA,CAAAS,aAAA,CAACR,IAAI,MAAE,CACN,CAAC,eACND,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAE;EAAqD,GAChEF,QACA,CACA,CACR,CAAC;AAEd,CAAC,CAAC;AAMF,MAAMG,OA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;AACJ,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  export declare const federatedIdentityProviders: Record<string, string>;
3
3
  export interface SignInProps {
4
4
  signIn: () => void;
@@ -1,10 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.federatedIdentityProviders = void 0;
7
- var federatedIdentityProviders = exports.federatedIdentityProviders = {
1
+ export const federatedIdentityProviders = {
8
2
  cognito: "COGNITO",
9
3
  google: "Google",
10
4
  facebook: "Facebook",
@@ -1 +1 @@
1
- {"version":3,"names":["federatedIdentityProviders","exports","cognito","google","facebook","amazon","apple"],"sources":["federatedIdentityProviders.ts"],"sourcesContent":["import React from \"react\";\n\nexport const federatedIdentityProviders: Record<string, string> = {\n cognito: \"COGNITO\",\n google: \"Google\",\n facebook: \"Facebook\",\n amazon: \"LoginWithAmazon\",\n apple: \"SignInWithApple\"\n};\n\nexport interface SignInProps {\n signIn: () => void;\n}\n\nexport type FederatedIdentityProvider = {\n name: string;\n component: React.FunctionComponent<SignInProps>;\n};\n"],"mappings":";;;;;;AAEO,IAAMA,0BAAkD,GAAAC,OAAA,CAAAD,0BAAA,GAAG;EAC9DE,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,MAAM,EAAE,iBAAiB;EACzBC,KAAK,EAAE;AACX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["federatedIdentityProviders","cognito","google","facebook","amazon","apple"],"sources":["federatedIdentityProviders.ts"],"sourcesContent":["import type React from \"react\";\n\nexport const federatedIdentityProviders: Record<string, string> = {\n cognito: \"COGNITO\",\n google: \"Google\",\n facebook: \"Facebook\",\n amazon: \"LoginWithAmazon\",\n apple: \"SignInWithApple\"\n};\n\nexport interface SignInProps {\n signIn: () => void;\n}\n\nexport type FederatedIdentityProvider = {\n name: string;\n component: React.FunctionComponent<SignInProps>;\n};\n"],"mappings":"AAEA,OAAO,MAAMA,0BAAkD,GAAG;EAC9DC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,MAAM,EAAE,iBAAiB;EACzBC,KAAK,EAAE;AACX,CAAC","ignoreList":[]}
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { AuthOptions } from "@aws-amplify/auth/lib-esm/types";
3
- import ApolloClient from "apollo-client";
4
- import { FederatedIdentityProvider } from "./federatedIdentityProviders";
2
+ import type { AuthOptions } from "@aws-amplify/auth/lib-esm/types";
3
+ import type ApolloClient from "apollo-client";
4
+ import type { FederatedIdentityProvider } from "./federatedIdentityProviders";
5
5
  export declare const Components: {
6
6
  View: {
7
7
  Container: (({ children }: import("./components/View").ContainerProps) => React.JSX.Element) & {
@@ -23,25 +23,6 @@ export declare const Components: {
23
23
  displayName: string;
24
24
  }>) => (props: unknown) => React.JSX.Element;
25
25
  };
26
- Logo: (() => React.JSX.Element) & {
27
- original: () => React.JSX.Element;
28
- originalName: string;
29
- displayName: string;
30
- } & {
31
- original: (() => React.JSX.Element) & {
32
- original: () => React.JSX.Element;
33
- originalName: string;
34
- displayName: string;
35
- };
36
- originalName: string;
37
- displayName: string;
38
- } & {
39
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(() => React.JSX.Element) & {
40
- original: () => React.JSX.Element;
41
- originalName: string;
42
- displayName: string;
43
- }>) => (props: unknown) => React.JSX.Element;
44
- };
45
26
  Content: (({ children }: import("./components/View").ContentProps) => React.JSX.Element) & {
46
27
  original: ({ children }: import("./components/View").ContentProps) => React.JSX.Element;
47
28
  originalName: string;
@@ -99,6 +80,7 @@ export declare const Components: {
99
80
  displayName: string;
100
81
  }>) => (props: unknown) => React.JSX.Element;
101
82
  };
83
+ Error: ({ title, description }: import("./components/View").ErrorProps) => React.JSX.Element | null;
102
84
  };
103
85
  FederatedProviders: {
104
86
  Container: (({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element) & {