@teambit/react.ui.compositions-app 0.0.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/composition-app.docs.mdx +3 -0
- package/compositions-app.tsx +31 -0
- package/compositions.app-root.tsx +15 -0
- package/compositions.compositions.tsx +20 -0
- package/dist/composition-app.docs.mdx +3 -0
- package/dist/compositions-app.d.ts +6 -0
- package/dist/compositions-app.js +24 -0
- package/dist/compositions-app.js.map +1 -0
- package/dist/compositions.app-root.d.ts +7 -0
- package/dist/compositions.app-root.js +15 -0
- package/dist/compositions.app-root.js.map +1 -0
- package/dist/compositions.compositions.d.ts +3 -0
- package/dist/compositions.compositions.js +25 -0
- package/dist/compositions.compositions.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.json +32 -0
- package/index.ts +2 -0
- package/package-tar/teambit-react.ui.compositions-app-0.0.1.tgz +0 -0
- package/package.json +80 -0
- package/preview-1657129833874.js +5 -0
- package/tsconfig.json +32 -0
- package/types/asset.d.ts +29 -0
- package/types/style.d.ts +42 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
|
+
import { Composer } from '@teambit/base-ui.utils.composer';
|
|
3
|
+
import { StandaloneNotFoundPage } from '@teambit/design.ui.pages.standalone-not-found-page';
|
|
4
|
+
import { RenderingContext } from '@teambit/preview';
|
|
5
|
+
import { ErrorFallback } from '@teambit/react.ui.error-fallback';
|
|
6
|
+
import { useFallback } from '@teambit/react.ui.loader-fallback';
|
|
7
|
+
import { ErrorBoundary } from 'react-error-boundary';
|
|
8
|
+
|
|
9
|
+
// hide scrollbars so they won't be visible in the preview at the component card (and it's ok not to show them in the compositions page)
|
|
10
|
+
const hideScrollbars = 'body::-webkit-scrollbar {display: none;}';
|
|
11
|
+
|
|
12
|
+
export function CompositionsApp({
|
|
13
|
+
Composition,
|
|
14
|
+
previewContext,
|
|
15
|
+
}: {
|
|
16
|
+
Composition?: ComponentType;
|
|
17
|
+
previewContext?: RenderingContext;
|
|
18
|
+
}) {
|
|
19
|
+
const { providers = [] } = previewContext?.get('teambit.react/react') || {};
|
|
20
|
+
|
|
21
|
+
const safeComposition = useFallback(Composition && <Composition />, <StandaloneNotFoundPage />);
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<ErrorBoundary FallbackComponent={ErrorFallback} resetKeys={[Composition]}>
|
|
25
|
+
<Composer components={providers}>
|
|
26
|
+
<style>{hideScrollbars}</style>
|
|
27
|
+
{safeComposition}
|
|
28
|
+
</Composer>
|
|
29
|
+
</ErrorBoundary>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import { RenderingContext } from '@teambit/preview';
|
|
4
|
+
|
|
5
|
+
import { CompositionsApp } from './compositions-app';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* mounts compositions into the DOM in the component preview.
|
|
9
|
+
*/
|
|
10
|
+
export default (Composition: React.ComponentType, previewContext: RenderingContext) => {
|
|
11
|
+
ReactDOM.render(
|
|
12
|
+
<CompositionsApp Composition={Composition} previewContext={previewContext} />,
|
|
13
|
+
document.getElementById('root')
|
|
14
|
+
);
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CompositionsApp } from './compositions-app';
|
|
3
|
+
|
|
4
|
+
const mockedComposition = () => <div>mocked composition</div>;
|
|
5
|
+
// const mockedErrorComposition = () => {
|
|
6
|
+
// throw new Error('some generic error');
|
|
7
|
+
// };
|
|
8
|
+
|
|
9
|
+
export const Preview = () => {
|
|
10
|
+
return <CompositionsApp Composition={mockedComposition} />;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const NotFound = () => {
|
|
14
|
+
return <CompositionsApp Composition={undefined} />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// // TBD - automatically shows a large error message in dev mode
|
|
18
|
+
// export const ErrorComposition = () => {
|
|
19
|
+
// return <CompositionsApp Composition={mockedErrorComposition} />;
|
|
20
|
+
// };
|
|
@@ -0,0 +1,24 @@
|
|
|
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.CompositionsApp = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const base_ui_utils_composer_1 = require("@teambit/base-ui.utils.composer");
|
|
9
|
+
const design_ui_pages_standalone_not_found_page_1 = require("@teambit/design.ui.pages.standalone-not-found-page");
|
|
10
|
+
const react_ui_error_fallback_1 = require("@teambit/react.ui.error-fallback");
|
|
11
|
+
const react_ui_loader_fallback_1 = require("@teambit/react.ui.loader-fallback");
|
|
12
|
+
const react_error_boundary_1 = require("react-error-boundary");
|
|
13
|
+
// hide scrollbars so they won't be visible in the preview at the component card (and it's ok not to show them in the compositions page)
|
|
14
|
+
const hideScrollbars = 'body::-webkit-scrollbar {display: none;}';
|
|
15
|
+
function CompositionsApp({ Composition, previewContext, }) {
|
|
16
|
+
const { providers = [] } = (previewContext === null || previewContext === void 0 ? void 0 : previewContext.get('teambit.react/react')) || {};
|
|
17
|
+
const safeComposition = (0, react_ui_loader_fallback_1.useFallback)(Composition && react_1.default.createElement(Composition, null), react_1.default.createElement(design_ui_pages_standalone_not_found_page_1.StandaloneNotFoundPage, null));
|
|
18
|
+
return (react_1.default.createElement(react_error_boundary_1.ErrorBoundary, { FallbackComponent: react_ui_error_fallback_1.ErrorFallback, resetKeys: [Composition] },
|
|
19
|
+
react_1.default.createElement(base_ui_utils_composer_1.Composer, { components: providers },
|
|
20
|
+
react_1.default.createElement("style", null, hideScrollbars),
|
|
21
|
+
safeComposition)));
|
|
22
|
+
}
|
|
23
|
+
exports.CompositionsApp = CompositionsApp;
|
|
24
|
+
//# sourceMappingURL=compositions-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compositions-app.js","sourceRoot":"","sources":["../compositions-app.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA6C;AAC7C,4EAA2D;AAC3D,kHAA4F;AAE5F,8EAAiE;AACjE,gFAAgE;AAChE,+DAAqD;AAErD,wIAAwI;AACxI,MAAM,cAAc,GAAG,0CAA0C,CAAC;AAElE,SAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,cAAc,GAIf;IACC,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,qBAAqB,CAAC,KAAI,EAAE,CAAC;IAE5E,MAAM,eAAe,GAAG,IAAA,sCAAW,EAAC,WAAW,IAAI,8BAAC,WAAW,OAAG,EAAE,8BAAC,kEAAsB,OAAG,CAAC,CAAC;IAEhG,OAAO,CACL,8BAAC,oCAAa,IAAC,iBAAiB,EAAE,uCAAa,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC;QACvE,8BAAC,iCAAQ,IAAC,UAAU,EAAE,SAAS;YAC7B,6CAAQ,cAAc,CAAS;YAC9B,eAAe,CACP,CACG,CACjB,CAAC;AACJ,CAAC;AAnBD,0CAmBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RenderingContext } from '@teambit/preview';
|
|
3
|
+
declare const _default: (Composition: React.ComponentType, previewContext: RenderingContext) => void;
|
|
4
|
+
/**
|
|
5
|
+
* mounts compositions into the DOM in the component preview.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const react_dom_1 = __importDefault(require("react-dom"));
|
|
8
|
+
const compositions_app_1 = require("./compositions-app");
|
|
9
|
+
/**
|
|
10
|
+
* mounts compositions into the DOM in the component preview.
|
|
11
|
+
*/
|
|
12
|
+
exports.default = (Composition, previewContext) => {
|
|
13
|
+
react_dom_1.default.render(react_1.default.createElement(compositions_app_1.CompositionsApp, { Composition: Composition, previewContext: previewContext }), document.getElementById('root'));
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=compositions.app-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compositions.app-root.js","sourceRoot":"","sources":["../compositions.app-root.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,0DAAiC;AAGjC,yDAAqD;AAErD;;GAEG;AACH,kBAAe,CAAC,WAAgC,EAAE,cAAgC,EAAE,EAAE;IACpF,mBAAQ,CAAC,MAAM,CACb,8BAAC,kCAAe,IAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,GAAI,EAC7E,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAChC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.NotFound = exports.Preview = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const compositions_app_1 = require("./compositions-app");
|
|
9
|
+
const mockedComposition = () => react_1.default.createElement("div", null, "mocked composition");
|
|
10
|
+
// const mockedErrorComposition = () => {
|
|
11
|
+
// throw new Error('some generic error');
|
|
12
|
+
// };
|
|
13
|
+
const Preview = () => {
|
|
14
|
+
return react_1.default.createElement(compositions_app_1.CompositionsApp, { Composition: mockedComposition });
|
|
15
|
+
};
|
|
16
|
+
exports.Preview = Preview;
|
|
17
|
+
const NotFound = () => {
|
|
18
|
+
return react_1.default.createElement(compositions_app_1.CompositionsApp, { Composition: undefined });
|
|
19
|
+
};
|
|
20
|
+
exports.NotFound = NotFound;
|
|
21
|
+
// // TBD - automatically shows a large error message in dev mode
|
|
22
|
+
// export const ErrorComposition = () => {
|
|
23
|
+
// return <CompositionsApp Composition={mockedErrorComposition} />;
|
|
24
|
+
// };
|
|
25
|
+
//# sourceMappingURL=compositions.compositions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compositions.compositions.js","sourceRoot":"","sources":["../compositions.compositions.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,yDAAqD;AAErD,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,gEAA6B,CAAC;AAC9D,yCAAyC;AACzC,2CAA2C;AAC3C,KAAK;AAEE,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,OAAO,8BAAC,kCAAe,IAAC,WAAW,EAAE,iBAAiB,GAAI,CAAC;AAC7D,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEK,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,OAAO,8BAAC,kCAAe,IAAC,WAAW,EAAE,SAAS,GAAI,CAAC;AACrD,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB;AAEF,iEAAiE;AACjE,0CAA0C;AAC1C,qEAAqE;AACrE,KAAK"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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.default = exports.CompositionsApp = void 0;
|
|
7
|
+
var compositions_app_1 = require("./compositions-app");
|
|
8
|
+
Object.defineProperty(exports, "CompositionsApp", { enumerable: true, get: function () { return compositions_app_1.CompositionsApp; } });
|
|
9
|
+
var compositions_app_root_1 = require("./compositions.app-root");
|
|
10
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(compositions_app_root_1).default; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,iEAAkD;AAAzC,iIAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": [
|
|
4
|
+
"es2019",
|
|
5
|
+
"DOM",
|
|
6
|
+
"ES6",
|
|
7
|
+
"DOM.Iterable"
|
|
8
|
+
],
|
|
9
|
+
"target": "es2015",
|
|
10
|
+
"module": "CommonJS",
|
|
11
|
+
"jsx": "react",
|
|
12
|
+
"allowJs": true,
|
|
13
|
+
"composite": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"experimentalDecorators": true,
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"moduleResolution": "node",
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"rootDir": ".",
|
|
22
|
+
"resolveJsonModule": true
|
|
23
|
+
},
|
|
24
|
+
"exclude": [
|
|
25
|
+
"dist",
|
|
26
|
+
"package.json"
|
|
27
|
+
],
|
|
28
|
+
"include": [
|
|
29
|
+
"**/*",
|
|
30
|
+
"**/*.json"
|
|
31
|
+
]
|
|
32
|
+
}
|
package/index.ts
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teambit/react.ui.compositions-app",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"componentId": {
|
|
6
|
+
"scope": "teambit.react",
|
|
7
|
+
"name": "ui/compositions-app",
|
|
8
|
+
"version": "0.0.1"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"react-error-boundary": "^3.0.0",
|
|
12
|
+
"core-js": "^3.0.0",
|
|
13
|
+
"@teambit/base-ui.utils.composer": "1.0.0",
|
|
14
|
+
"@teambit/design.ui.pages.standalone-not-found-page": "0.0.359",
|
|
15
|
+
"@teambit/react.ui.error-fallback": "0.0.111",
|
|
16
|
+
"@teambit/react.ui.loader-fallback": "0.0.90"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/react": "^17.0.8",
|
|
20
|
+
"@types/react-dom": "^17.0.5",
|
|
21
|
+
"@types/mocha": "9.1.0",
|
|
22
|
+
"@types/testing-library__jest-dom": "5.9.5",
|
|
23
|
+
"@babel/runtime": "7.12.18",
|
|
24
|
+
"@types/jest": "^26.0.0",
|
|
25
|
+
"@types/node": "12.20.4"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react-dom": "^16.8.0 || ^17.0.0",
|
|
29
|
+
"react": "^16.8.0 || ^17.0.0"
|
|
30
|
+
},
|
|
31
|
+
"license": "Apache-2.0",
|
|
32
|
+
"bit": {
|
|
33
|
+
"bindingPrefix": "@teambit",
|
|
34
|
+
"env": {},
|
|
35
|
+
"overrides": {
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@teambit/legacy": "-",
|
|
38
|
+
"core-js": "^3.0.0",
|
|
39
|
+
"react-dom": "-",
|
|
40
|
+
"react": "-"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@teambit/legacy": "-",
|
|
44
|
+
"@types/mocha": "9.1.0",
|
|
45
|
+
"@types/testing-library__jest-dom": "5.9.5",
|
|
46
|
+
"@babel/runtime": "7.12.18",
|
|
47
|
+
"@types/jest": "^26.0.0",
|
|
48
|
+
"@types/react-dom": "^17.0.5",
|
|
49
|
+
"@types/react": "^17.0.8",
|
|
50
|
+
"@types/node": "12.20.4",
|
|
51
|
+
"react-dom": "-",
|
|
52
|
+
"react": "-"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react-dom": "^16.8.0 || ^17.0.0",
|
|
56
|
+
"react": "^16.8.0 || ^17.0.0"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"private": false,
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=12.22.0"
|
|
63
|
+
},
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "https://github.com/teambit/bit"
|
|
67
|
+
},
|
|
68
|
+
"keywords": [
|
|
69
|
+
"bit",
|
|
70
|
+
"components",
|
|
71
|
+
"collaboration",
|
|
72
|
+
"web",
|
|
73
|
+
"react",
|
|
74
|
+
"react-components",
|
|
75
|
+
"angular",
|
|
76
|
+
"angular-components",
|
|
77
|
+
"vue",
|
|
78
|
+
"vue-components"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_ui_compositions-app@0.0.1/dist/compositions.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_ui_compositions-app@0.0.1/dist/composition-app.docs.mdx';
|
|
3
|
+
|
|
4
|
+
export const compositions = [compositions_0];
|
|
5
|
+
export const overview = [overview_0];
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": [
|
|
4
|
+
"es2019",
|
|
5
|
+
"DOM",
|
|
6
|
+
"ES6",
|
|
7
|
+
"DOM.Iterable"
|
|
8
|
+
],
|
|
9
|
+
"target": "es2015",
|
|
10
|
+
"module": "CommonJS",
|
|
11
|
+
"jsx": "react",
|
|
12
|
+
"allowJs": true,
|
|
13
|
+
"composite": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"experimentalDecorators": true,
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"moduleResolution": "node",
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"rootDir": ".",
|
|
22
|
+
"resolveJsonModule": true
|
|
23
|
+
},
|
|
24
|
+
"exclude": [
|
|
25
|
+
"dist",
|
|
26
|
+
"package.json"
|
|
27
|
+
],
|
|
28
|
+
"include": [
|
|
29
|
+
"**/*",
|
|
30
|
+
"**/*.json"
|
|
31
|
+
]
|
|
32
|
+
}
|
package/types/asset.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare module '*.png' {
|
|
2
|
+
const value: any;
|
|
3
|
+
export = value;
|
|
4
|
+
}
|
|
5
|
+
declare module '*.svg' {
|
|
6
|
+
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
|
+
|
|
8
|
+
export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
|
|
9
|
+
const src: string;
|
|
10
|
+
export default src;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// @TODO Gilad
|
|
14
|
+
declare module '*.jpg' {
|
|
15
|
+
const value: any;
|
|
16
|
+
export = value;
|
|
17
|
+
}
|
|
18
|
+
declare module '*.jpeg' {
|
|
19
|
+
const value: any;
|
|
20
|
+
export = value;
|
|
21
|
+
}
|
|
22
|
+
declare module '*.gif' {
|
|
23
|
+
const value: any;
|
|
24
|
+
export = value;
|
|
25
|
+
}
|
|
26
|
+
declare module '*.bmp' {
|
|
27
|
+
const value: any;
|
|
28
|
+
export = value;
|
|
29
|
+
}
|
package/types/style.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare module '*.module.css' {
|
|
2
|
+
const classes: { readonly [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
declare module '*.module.scss' {
|
|
6
|
+
const classes: { readonly [key: string]: string };
|
|
7
|
+
export default classes;
|
|
8
|
+
}
|
|
9
|
+
declare module '*.module.sass' {
|
|
10
|
+
const classes: { readonly [key: string]: string };
|
|
11
|
+
export default classes;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module '*.module.less' {
|
|
15
|
+
const classes: { readonly [key: string]: string };
|
|
16
|
+
export default classes;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module '*.less' {
|
|
20
|
+
const classes: { readonly [key: string]: string };
|
|
21
|
+
export default classes;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.css' {
|
|
25
|
+
const classes: { readonly [key: string]: string };
|
|
26
|
+
export default classes;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare module '*.sass' {
|
|
30
|
+
const classes: { readonly [key: string]: string };
|
|
31
|
+
export default classes;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare module '*.scss' {
|
|
35
|
+
const classes: { readonly [key: string]: string };
|
|
36
|
+
export default classes;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare module '*.mdx' {
|
|
40
|
+
const component: any;
|
|
41
|
+
export default component;
|
|
42
|
+
}
|