@factorearth/component-library 4.6.8 → 4.6.10-alpha.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/dist/Molecules/Thumbnail/Thumbnail.js +0 -1
- package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Organisms/Card/Card.js +0 -3
- package/dist/Organisms/Card/Card.js.map +1 -1
- package/dist/Organisms/ErrorSplash/ErrorSplash.d.ts +13 -0
- package/dist/Organisms/ErrorSplash/ErrorSplash.js +80 -0
- package/dist/Organisms/ErrorSplash/ErrorSplash.js.map +1 -0
- package/dist/Organisms/Splash/Splash.d.ts +10 -0
- package/dist/Organisms/Splash/Splash.js +82 -0
- package/dist/Organisms/Splash/Splash.js.map +1 -0
- package/package.json +2 -2
|
@@ -9,7 +9,6 @@ const Container = styled.div `
|
|
|
9
9
|
justify-content: start;
|
|
10
10
|
gap: 16px;
|
|
11
11
|
flex-shrink: 0;
|
|
12
|
-
background-color: ${({ colors }) => colors.background.primary};
|
|
13
12
|
${({ showImage, showSettings }) => showImage && `height: 278px; width: 200px`}
|
|
14
13
|
`;
|
|
15
14
|
const InputArea = styled.div `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnail.js","sourceRoot":"","sources":["../../../lib/Molecules/Thumbnail/Thumbnail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,QAAQ,EAER,MAAM,EAGN,SAAS,GACT,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAI1B;;;;;;;
|
|
1
|
+
{"version":3,"file":"Thumbnail.js","sourceRoot":"","sources":["../../../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,CAAC,GAAG,CAAC,EACnC,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,QAAQ,EACb,EAAE,EAAE,gBAAgB,aAAa,CAAC,EAAE,EAAE,EACtC,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GACzB,CACM,CACE,CACZ;QACA,YAAY,IAAI,SAAS,IAAI,CAC7B,oBAAC,YAAY,IAAC,MAAM,EAAE,YAAY,IAAG,gBAAgB,CAAgB,CACrE;QACA,OAAO,IAAI,CACX,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,YAAmB,EAC5B,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAE1B,gBAAgB,CACT,CACT,CACU,CACZ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -2,7 +2,6 @@ import React, { forwardRef } from "react";
|
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
const CardContainer = styled.div `
|
|
4
4
|
padding: 24px;
|
|
5
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
6
5
|
border-width: 0.5px;
|
|
7
6
|
border-style: solid;
|
|
8
7
|
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
@@ -13,7 +12,6 @@ const FieldsXThumbnailSection = styled.section `
|
|
|
13
12
|
display: flex;
|
|
14
13
|
justify-content: space-between;
|
|
15
14
|
flex-direction: row-reverse;
|
|
16
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
17
15
|
@media (max-width: 600px) {
|
|
18
16
|
flex-direction: column;
|
|
19
17
|
align-items: flex-end;
|
|
@@ -25,7 +23,6 @@ const FieldsXThumbnailSection = styled.section `
|
|
|
25
23
|
`;
|
|
26
24
|
const ThumbnailSectionFields = styled.section `
|
|
27
25
|
padding: 16px 24px 0px 0px;
|
|
28
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
29
26
|
display: flex;
|
|
30
27
|
flex-direction: column;
|
|
31
28
|
justify-content: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../lib/Organisms/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAA2B
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../lib/Organisms/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAA2B;;;;iBAI1C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO;;;CAGjE,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,CAE5C;;;;;;;;;;;;CAYD,CAAC;AAEF,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,CAA2B;;;;;;;;;CASvE,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKjC,CAAC;AAcF,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAC7B,CAAC,KAAgB,EAAE,GAAiC,EAAE,EAAE;IACvD,MAAM,EACL,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,OAAO,GACP,GAAG,KAAK,CAAC;IACV,OAAO,CACN,oBAAC,aAAa,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,YAAY;QAC7D,oBAAC,uBAAuB,IAAC,YAAY,EAAE,YAAY;YACjD,SAAS;YACV,oBAAC,sBAAsB,IAAC,YAAY,EAAE,YAAY,IAChD,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC;gBACrC,sBAAsB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CACzB,CACA;QACzB,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;YAC9B,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;QAC1C,oBAAC,eAAe,QAAE,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAmB,CACvD,CAChB,CAAC;AACH,CAAC,CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors } from "Theme/types";
|
|
3
|
+
interface ErrorSplashProps {
|
|
4
|
+
colorPalette: Colors & string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
backgroundImage: string;
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
refreshOnClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ErrorSplash: (props: ErrorSplashProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "@emotion/styled";
|
|
3
|
+
import { FiRefreshCw } from "react-icons/fi";
|
|
4
|
+
import { Button } from "../../Atoms/Buttons/Button";
|
|
5
|
+
import { Typography } from "../../Atoms/Typography/Typography";
|
|
6
|
+
const ErrorSplashContainer = styled.div `
|
|
7
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-self: stretch;
|
|
11
|
+
flex-grow: 1;
|
|
12
|
+
`;
|
|
13
|
+
const HeaderDiv = styled.div `
|
|
14
|
+
padding: 24px;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 16px;
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
20
|
+
border-width: 0 0 1px 0;
|
|
21
|
+
border-style: solid;
|
|
22
|
+
text-align: center;
|
|
23
|
+
border-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
24
|
+
`;
|
|
25
|
+
const DescriptionDiv = styled.div `
|
|
26
|
+
margin-top: 24px;
|
|
27
|
+
text-align: center;
|
|
28
|
+
`;
|
|
29
|
+
const BackgroundDiv = styled.div `
|
|
30
|
+
display: flex;
|
|
31
|
+
height: 245px;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
align-content: center;
|
|
35
|
+
gap: 16px;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
align-self: stretch;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
flex-grow: 1;
|
|
40
|
+
background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
|
|
41
|
+
backgroundSize: cover;
|
|
42
|
+
backgroundRepeat: no-repeat;
|
|
43
|
+
overflowY: auto;
|
|
44
|
+
`;
|
|
45
|
+
// This will replace the ContactContainer when we have the ambassador program set up
|
|
46
|
+
// const AmbassadorContactDiv = styled.div<{ colorPalette: Colors }>`
|
|
47
|
+
// background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
48
|
+
// border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
|
|
49
|
+
// display: flex;
|
|
50
|
+
// padding: 24px 16px;
|
|
51
|
+
// flex-direction: column;
|
|
52
|
+
// align-items: center;
|
|
53
|
+
// gap: 16px;
|
|
54
|
+
// align-self: stretch;
|
|
55
|
+
// `;
|
|
56
|
+
const ContactContainer = styled.div `
|
|
57
|
+
background-color: ${({ colors }) => colors.background.tertiary};
|
|
58
|
+
color: ${({ colors }) => colors.text.primary};
|
|
59
|
+
display: flex;
|
|
60
|
+
padding: 24px 16px;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 16px;
|
|
64
|
+
align-self: stretch;
|
|
65
|
+
`;
|
|
66
|
+
export const ErrorSplash = (props) => {
|
|
67
|
+
const { colorPalette, title, description, image, backgroundImage, errorMessage, refreshOnClick, ...tableHtmlProps } = props;
|
|
68
|
+
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
69
|
+
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
70
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" }),
|
|
71
|
+
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
72
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }),
|
|
73
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: `Error Message: ${errorMessage}`, variant: "Paragraphy Body" }))),
|
|
74
|
+
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
75
|
+
React.createElement(BackgroundDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage }, refreshOnClick && React.createElement(Button, { colorPalette: colorPalette, onClick: refreshOnClick, label: "Refresh to Try Again", variant: "outlined", icon: React.createElement(FiRefreshCw, null) })),
|
|
76
|
+
React.createElement(ContactContainer, { colors: colorPalette },
|
|
77
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
78
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }))));
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=ErrorSplash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorSplash.js","sourceRoot":"","sources":["../../../lib/Organisms/ErrorSplash/ErrorSplash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC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sB,EAAE,OAAO,EAAE,WAAW,GAAI,CACzF,CACG,CACvB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors } from "Theme/types";
|
|
3
|
+
interface ErrorSplashProps {
|
|
4
|
+
colorPalette: Colors & string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ErrorSplash: (props: ErrorSplashProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "@emotion/styled";
|
|
3
|
+
import { FiChevronLeft, FiRefreshCw } from "react-icons/fi";
|
|
4
|
+
import { GoBug } from "react-icons/go";
|
|
5
|
+
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
|
+
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
|
+
const ErrorSplashContainer = styled.div `
|
|
8
|
+
// width: 100vw;
|
|
9
|
+
// height: 100vh;
|
|
10
|
+
|
|
11
|
+
`;
|
|
12
|
+
const HeaderDiv = styled.div `
|
|
13
|
+
display: flex;
|
|
14
|
+
padding: 24px;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
gap: 16px;
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
`;
|
|
20
|
+
const HeaderAndBackDiv = styled.div `
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
align-items: center;
|
|
24
|
+
align-self: stretch;
|
|
25
|
+
`;
|
|
26
|
+
const DescriptionDiv = styled.div `
|
|
27
|
+
display: -webkit-box;
|
|
28
|
+
-webkit-box-orient: vertical;
|
|
29
|
+
-webkit-line-clamp: 2;
|
|
30
|
+
flex: 1 0 0;
|
|
31
|
+
`;
|
|
32
|
+
const ButtonsDiv = styled.div `
|
|
33
|
+
//background is the topo image
|
|
34
|
+
display: flex;
|
|
35
|
+
height: 245px;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
align-content: center;
|
|
39
|
+
gap: 16px;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
align-self: stretch;
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
`;
|
|
44
|
+
const AmbassadorContactDiv = styled.div `
|
|
45
|
+
background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
46
|
+
border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
|
|
47
|
+
display: flex;
|
|
48
|
+
padding: 24px 16px;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 16px;
|
|
52
|
+
align-self: stretch;
|
|
53
|
+
`;
|
|
54
|
+
const ContactContainer = styled.div `
|
|
55
|
+
background-color: ${({ colors }) => colors.background.tertiary};
|
|
56
|
+
color: ${({ colors }) => colors.text.primary};
|
|
57
|
+
display: flex;
|
|
58
|
+
padding: 24px 16px;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 16px;
|
|
62
|
+
align-self: stretch;
|
|
63
|
+
`;
|
|
64
|
+
export const ErrorSplash = (props) => {
|
|
65
|
+
const { colorPalette, title, description, image, ...tableHtmlProps } = props;
|
|
66
|
+
console.log("colorPalette:", colorPalette);
|
|
67
|
+
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
68
|
+
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
69
|
+
React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
|
|
70
|
+
React.createElement(FiChevronLeft, null),
|
|
71
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" })),
|
|
72
|
+
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
73
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
|
|
74
|
+
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
75
|
+
React.createElement(ButtonsDiv, { colorPalette: colorPalette },
|
|
76
|
+
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
|
|
77
|
+
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
|
|
78
|
+
React.createElement(ContactContainer, { colors: colorPalette },
|
|
79
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
80
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }))));
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=Splash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../../lib/Organisms/Splash/Splash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAoC,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;CAIhE,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;;;CAOrD,CAAC;AAEF,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;CAK5D,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;CAK1D,CAAC;AAEF,MAAM,UAAU,GAA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,CACN;QACX,KAAK,IAAI,6BAAK,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC,cAAc,GAAG;QAChD,oBAAC,UAAU,IAAC,YAAY,EAAE,YAAY;YAErC,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAE,oBAAC,WAAW,OAAE,GAAG;YACjH,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAC,cAAc,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAE,oBAAC,KAAK,OAAE,GAAG,CAClG;QAKb,oBAAC,gBAAgB,IAAC,MAAM,EAAE,YAAY;YACnC,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,+EAA+E,EAAE,OAAO,EAAE,OAAO,GAAI;YAChK,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,WAAW,GAAI,CACvF,CACD,CACvB,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.10-alpha.0",
|
|
4
4
|
"description": " A storybook component library for FactorEarth",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b4dbf5dd9d19f234db1aba3a005c612055461972",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|