@lidofinance/ui-pages 0.36.0 → 0.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -16
- package/dist/index.js.map +1 -0
- package/package.json +13 -4
- package/dist/servicePage/index.d.ts +0 -2
- package/dist/servicePage/index.d.ts.map +0 -1
- package/dist/servicePage/index.js +0 -17
- package/dist/servicePage/servicePage.d.ts +0 -12
- package/dist/servicePage/servicePage.d.ts.map +0 -1
- package/dist/servicePage/servicePage.js +0 -9
- package/dist/servicePage/servicePage.stories.d.ts +0 -16
- package/dist/servicePage/servicePage.stories.d.ts.map +0 -1
- package/dist/servicePage/servicePage.stories.js +0 -14
- package/dist/servicePage/styles.d.ts +0 -3
- package/dist/servicePage/styles.d.ts.map +0 -1
- package/dist/servicePage/styles.js +0 -21
- package/dist/styledComponentsWrapper.d.ts +0 -5
- package/dist/styledComponentsWrapper.d.ts.map +0 -1
- package/dist/styledComponentsWrapper.js +0 -30
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LidoComponentProps } from "@lidofinance/lido-ui";
|
|
3
|
+
export * from 'styled-components';
|
|
4
|
+
export type ServicePageProps = LidoComponentProps<'div', {
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export const ServicePage: React.ForwardRefExoticComponent<{
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
} & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
10
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
11
|
+
forwardedAs?: keyof JSX.IntrinsicElements | undefined;
|
|
12
|
+
}, "title" | "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"mappings":";;AAYA,cAAc,mBAAmB,CAAA;AEJjC,+BAA+B,mBAC7B,KAAK,EACL;IACE,KAAK,EAAE,MAAM,SAAS,CAAA;CACvB,CACF,CAAA;AAWD,OAAO,MAAM;WAbF,MAAM,SAAS;;;;0DAayB,CAAA","sources":["packages/ui/pages/src/src/styledComponentsWrapper.ts","packages/ui/pages/src/src/servicePage/styles.tsx","packages/ui/pages/src/src/servicePage/servicePage.tsx","packages/ui/pages/src/src/servicePage/index.ts","packages/ui/pages/src/src/index.ts","packages/ui/pages/src/index.ts"],"sourcesContent":[null,null,null,null,null,"export * from './servicePage/index'\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import {jsx as $1idp9$jsx, jsxs as $1idp9$jsxs} from "react/jsx-runtime";
|
|
2
|
+
import {forwardRef as $1idp9$forwardRef} from "react";
|
|
3
|
+
import * as $1idp9$lidofinancelidoui from "@lidofinance/lido-ui";
|
|
4
|
+
import $1idp9$styledcomponents from "styled-components";
|
|
5
|
+
|
|
6
|
+
function $parcel$exportWildcard(dest, source) {
|
|
7
|
+
Object.keys(source).forEach(function(key) {
|
|
8
|
+
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
9
|
+
return;
|
|
7
10
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(dest, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return source[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return dest;
|
|
21
|
+
}
|
|
22
|
+
function $parcel$export(e, n, v, s) {
|
|
23
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
24
|
+
}
|
|
25
|
+
var $c85409065ae31fb1$exports = {};
|
|
26
|
+
var $7f43df201c671860$exports = {};
|
|
27
|
+
|
|
28
|
+
$parcel$export($7f43df201c671860$exports, "ServicePage", function () { return $7f43df201c671860$export$3e08c0e5be2fb76a; });
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// Styled Components v5 has issues with ESM modules:
|
|
33
|
+
// https://github.com/styled-components/styled-components/issues/115
|
|
34
|
+
// https://github.com/rollup/rollup/issues/4438
|
|
35
|
+
// It can be solved by using Styled Components v6, which is in beta ATM
|
|
36
|
+
// But it will be better to stop using styled-components at all.
|
|
37
|
+
// This is a temporary workaround, which seems to work well.
|
|
38
|
+
|
|
39
|
+
// @ts-expect-error Property 'default' does not exist on type 'StyledInterface'.
|
|
40
|
+
const $024ccd40635725b3$var$styled = (0, $1idp9$styledcomponents).default || (0, $1idp9$styledcomponents);
|
|
41
|
+
var $024ccd40635725b3$export$2e2bcd8739ae039 = $024ccd40635725b3$var$styled;
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
const $36d27fe7e3695913$export$ec7a73f9c69ff7d7 = (0, $024ccd40635725b3$export$2e2bcd8739ae039).div`
|
|
45
|
+
height: 100vh;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
text-align: center;
|
|
49
|
+
`;
|
|
50
|
+
const $36d27fe7e3695913$export$ddc8ffb52279106c = (0, $024ccd40635725b3$export$2e2bcd8739ae039).div`
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
margin: 0 auto;
|
|
53
|
+
min-width: 320px;
|
|
54
|
+
width: 100%;
|
|
55
|
+
padding: 0 32px;
|
|
56
|
+
max-width: 560px;
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
const { H1: $7f43df201c671860$var$H1, Text: $7f43df201c671860$var$Text } = $1idp9$lidofinancelidoui;
|
|
61
|
+
const $7f43df201c671860$var$_ServicePage = ({ title: title, children: children, ...rest }, ref)=>/*#__PURE__*/ (0, $1idp9$jsx)((0, $36d27fe7e3695913$export$ec7a73f9c69ff7d7), {
|
|
62
|
+
...rest,
|
|
63
|
+
ref: ref,
|
|
64
|
+
children: /*#__PURE__*/ (0, $1idp9$jsxs)((0, $36d27fe7e3695913$export$ddc8ffb52279106c), {
|
|
65
|
+
children: [
|
|
66
|
+
/*#__PURE__*/ (0, $1idp9$jsx)($7f43df201c671860$var$H1, {
|
|
67
|
+
children: title
|
|
68
|
+
}),
|
|
69
|
+
/*#__PURE__*/ (0, $1idp9$jsx)($7f43df201c671860$var$Text, {
|
|
70
|
+
color: "secondary",
|
|
71
|
+
children: children
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
const $7f43df201c671860$export$3e08c0e5be2fb76a = /*#__PURE__*/ (0, $1idp9$forwardRef)($7f43df201c671860$var$_ServicePage);
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
$parcel$exportWildcard($c85409065ae31fb1$exports, $7f43df201c671860$exports);
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
export {$7f43df201c671860$export$3e08c0e5be2fb76a as ServicePage};
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AIAA,oDAAoD;AACpD,oEAAoE;AACpE,+CAA+C;AAC/C,uEAAuE;AACvE,gEAAgE;AAChE,4DAA4D;;AAI5D,gFAAgF;AAChF,MAAM,+BAA0B,CAAA,GAAA,uBAAM,EAAE,WAAW,CAAA,GAAA,uBAAM;IAGzD,2CAAe;;;ADXR,MAAM,4CAAmB,CAAA,GAAA,wCAAK,EAAE,GAAG,CAAC;;;;;AAK3C,CAAC;AAEM,MAAM,4CAAyB,CAAA,GAAA,wCAAK,EAAE,GAAG,CAAC;;;;;;;AAOjD,CAAC;;;ADZD,MAAM,MAAE,wBAAE,QAAE,0BAAI,EAAE,GAAG;AAWrB,MAAM,qCAAe,CAAC,SAAE,KAAK,YAAE,QAAQ,EAAE,GAAG,MAAwB,EAAE,oBACpE,gBAAC,CAAA,GAAA,yCAAe;QAAG,GAAG,IAAI;QAAE,KAAK;kBAC/B,cAAA,iBAAC,CAAA,GAAA,yCAAqB;;8BACpB,gBAAC;8BAAI;;8BACL,gBAAC;oBAAK,OAAM;8BAAa;;;;;AAKxB,MAAM,0DAAc,CAAA,GAAA,iBAAS,EAAE","sources":["packages/ui/pages/src/index.ts","packages/ui/pages/src/servicePage/index.ts","packages/ui/pages/src/servicePage/servicePage.tsx","packages/ui/pages/src/servicePage/styles.tsx","packages/ui/pages/src/styledComponentsWrapper.ts"],"sourcesContent":["export * from './servicePage/index'\n","export * from './servicePage'\n","import React, { ForwardedRef, forwardRef } from 'react'\n\nimport type { LidoComponentProps } from '@lidofinance/lido-ui'\nimport * as LidoUI from '@lidofinance/lido-ui'\nconst { H1, Text } = LidoUI\n\nimport { ServicePageStyle, ServicePageInsideStyle } from './styles'\n\nexport type ServicePageProps = LidoComponentProps<\n 'div',\n {\n title: React.ReactNode\n }\n>\n\nconst _ServicePage = ({ title, children, ...rest }: ServicePageProps, ref?: ForwardedRef<HTMLDivElement>) => (\n <ServicePageStyle {...rest} ref={ref}>\n <ServicePageInsideStyle>\n <H1>{title}</H1>\n <Text color=\"secondary\">{children}</Text>\n </ServicePageInsideStyle>\n </ServicePageStyle>\n)\n\nexport const ServicePage = forwardRef(_ServicePage)\n","import styled from '../styledComponentsWrapper'\n\nexport const ServicePageStyle = styled.div`\n height: 100vh;\n display: flex;\n align-items: center;\n text-align: center;\n`\n\nexport const ServicePageInsideStyle = styled.div`\n box-sizing: border-box;\n margin: 0 auto;\n min-width: 320px;\n width: 100%;\n padding: 0 32px;\n max-width: 560px;\n`\n","// Styled Components v5 has issues with ESM modules:\n// https://github.com/styled-components/styled-components/issues/115\n// https://github.com/rollup/rollup/issues/4438\n// It can be solved by using Styled Components v6, which is in beta ATM\n// But it will be better to stop using styled-components at all.\n// This is a temporary workaround, which seems to work well.\n\nimport _styled, { StyledInterface } from 'styled-components'\n\n// @ts-expect-error Property 'default' does not exist on type 'StyledInterface'.\nconst styled: StyledInterface = _styled.default || _styled\n\nexport * from 'styled-components'\nexport default styled\n"],"names":[],"version":3,"file":"index.js.map"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lidofinance/ui-pages",
|
|
3
3
|
"description": "Common UI pages",
|
|
4
|
-
"repository": "
|
|
4
|
+
"repository": "https://github.com/lidofinance/warehouse.git",
|
|
5
|
+
"homepage": "https://github.com/lidofinance/warehouse/tree/main/packages/ui/pages",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/lidofinance/warehouse/issues"
|
|
8
|
+
},
|
|
5
9
|
"license": "MIT",
|
|
6
|
-
"version": "0.
|
|
10
|
+
"version": "0.37.1",
|
|
7
11
|
"files": [
|
|
8
12
|
"dist"
|
|
9
13
|
],
|
|
@@ -15,8 +19,13 @@
|
|
|
15
19
|
"source": "./src/index.ts",
|
|
16
20
|
"module": "dist/index.js",
|
|
17
21
|
"types": "dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
18
27
|
"scripts": {
|
|
19
|
-
"build": "
|
|
28
|
+
"build": "parcel build",
|
|
20
29
|
"lint": "eslint . && prettier --check src",
|
|
21
30
|
"lint:fix": "eslint --fix . && prettier --check src --write",
|
|
22
31
|
"types": "tsc --noEmit"
|
|
@@ -27,7 +36,7 @@
|
|
|
27
36
|
"styled-components": "^5.3.5"
|
|
28
37
|
},
|
|
29
38
|
"devDependencies": {
|
|
30
|
-
"@lidofinance/config-prettier": "~0.
|
|
39
|
+
"@lidofinance/config-prettier": "~0.37.1",
|
|
31
40
|
"@lidofinance/lido-ui": "^3.7.3",
|
|
32
41
|
"@types/react": "^18.0.25",
|
|
33
42
|
"@types/styled-components": "^5.1.26"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/servicePage/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./servicePage"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LidoComponentProps } from '@lidofinance/lido-ui';
|
|
3
|
-
export type ServicePageProps = LidoComponentProps<'div', {
|
|
4
|
-
title: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const ServicePage: React.ForwardRefExoticComponent<{
|
|
7
|
-
title: React.ReactNode;
|
|
8
|
-
} & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
9
|
-
as?: keyof JSX.IntrinsicElements | undefined;
|
|
10
|
-
forwardedAs?: keyof JSX.IntrinsicElements | undefined;
|
|
11
|
-
}, "title" | "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
//# sourceMappingURL=servicePage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"servicePage.d.ts","sourceRoot":"","sources":["../../src/servicePage/servicePage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAA;AACvD,OAAO,EAAY,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAInE,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAC/C,KAAK,EACL;IACE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB,CACF,CAAA;AAWD,eAAO,MAAM,WAAW;WAbb,MAAM,SAAS;;;;0DAayB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServicePage = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const lido_ui_1 = require("@lidofinance/lido-ui");
|
|
7
|
-
const styles_1 = require("./styles");
|
|
8
|
-
const _ServicePage = ({ title, children, ...rest }, ref) => ((0, jsx_runtime_1.jsx)(styles_1.ServicePageStyle, { ...rest, ref: ref, children: (0, jsx_runtime_1.jsxs)(styles_1.ServicePageInsideStyle, { children: [(0, jsx_runtime_1.jsx)(lido_ui_1.H1, { children: title }), (0, jsx_runtime_1.jsx)(lido_ui_1.Text, { color: "secondary", children: children })] }) }));
|
|
9
|
-
exports.ServicePage = (0, react_1.forwardRef)(_ServicePage);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { ServicePageProps } from './servicePage';
|
|
4
|
-
type Story = StoryObj<ServicePageProps>;
|
|
5
|
-
export declare const Base: Story;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: import("react").ForwardRefExoticComponent<{
|
|
9
|
-
title: import("react").ReactNode;
|
|
10
|
-
} & Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
11
|
-
as?: keyof JSX.IntrinsicElements | undefined;
|
|
12
|
-
forwardedAs?: keyof JSX.IntrinsicElements | undefined;
|
|
13
|
-
}, "title" | "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
16
|
-
//# sourceMappingURL=servicePage.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"servicePage.stories.d.ts","sourceRoot":"","sources":["../../src/servicePage/servicePage.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE7D,KAAK,KAAK,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;AAEvC,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAA;;;;;;;;;;AAED,wBAGoC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Base = void 0;
|
|
4
|
-
const servicePage_1 = require("./servicePage");
|
|
5
|
-
exports.Base = {
|
|
6
|
-
args: {
|
|
7
|
-
title: '404',
|
|
8
|
-
children: 'Page Not Found',
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
exports.default = {
|
|
12
|
-
title: 'UI/pages/ServicePage',
|
|
13
|
-
component: servicePage_1.ServicePage,
|
|
14
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const ServicePageStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const ServicePageInsideStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/servicePage/styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yGAK5B,CAAA;AAED,eAAO,MAAM,sBAAsB,yGAOlC,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ServicePageInsideStyle = exports.ServicePageStyle = void 0;
|
|
7
|
-
const styledComponentsWrapper_1 = __importDefault(require("../styledComponentsWrapper"));
|
|
8
|
-
exports.ServicePageStyle = styledComponentsWrapper_1.default.div `
|
|
9
|
-
height: 100vh;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
text-align: center;
|
|
13
|
-
`;
|
|
14
|
-
exports.ServicePageInsideStyle = styledComponentsWrapper_1.default.div `
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
margin: 0 auto;
|
|
17
|
-
min-width: 320px;
|
|
18
|
-
width: 100%;
|
|
19
|
-
padding: 0 32px;
|
|
20
|
-
max-width: 560px;
|
|
21
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styledComponentsWrapper.d.ts","sourceRoot":"","sources":["../src/styledComponentsWrapper.ts"],"names":[],"mappings":"AAOA,OAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG5D,QAAA,MAAM,MAAM,EAAE,eAA4C,CAAA;AAE1D,cAAc,mBAAmB,CAAA;AACjC,eAAe,MAAM,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Styled Components v5 has issues with ESM modules:
|
|
3
|
-
// https://github.com/styled-components/styled-components/issues/115
|
|
4
|
-
// https://github.com/rollup/rollup/issues/4438
|
|
5
|
-
// It can be solved by using Styled Components v6, which is in beta ATM
|
|
6
|
-
// But it will be better to stop using styled-components at all.
|
|
7
|
-
// This is a temporary workaround, which seems to work well.
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
27
|
-
// @ts-expect-error Property 'default' does not exist on type 'StyledInterface'.
|
|
28
|
-
const styled = styled_components_1.default.default || styled_components_1.default;
|
|
29
|
-
__exportStar(require("styled-components"), exports);
|
|
30
|
-
exports.default = styled;
|