@teambit/component.ui.component-compare.models.component-compare-props 0.0.0-010726ef6822d86761d0bf38c3f03393c57d788c

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.
@@ -0,0 +1,38 @@
1
+ import type { HTMLAttributes, ComponentType } from 'react';
2
+ import type { RouteProps } from 'react-router-dom';
3
+ import type { ComponentID, UseComponentType } from '@teambit/component';
4
+ import type { ComponentCompareHooks } from '@teambit/component.ui.component-compare.models.component-compare-hooks';
5
+ import type { ComponentCompareState } from '@teambit/component.ui.component-compare.models.component-compare-state';
6
+ import type { NavLinkProps } from '@teambit/base-ui.routing.nav-link';
7
+ import type { MaybeLazyLoaded } from '@teambit/component.ui.component-compare.utils.lazy-loading';
8
+ import type { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
9
+ import type { StateAndHooks } from '@teambit/component.ui.component-compare.context';
10
+
11
+ export interface TabItem {
12
+ id: string;
13
+ order?: number;
14
+ displayName?: string;
15
+ props?: NavLinkProps & { displayName?: string };
16
+ element?: React.ReactNode | null;
17
+ widget?: boolean;
18
+ changeType?: ChangeType;
19
+ }
20
+
21
+ export type ComponentCompareProps = {
22
+ state?: ComponentCompareState;
23
+ hooks?: ComponentCompareHooks;
24
+ baseContext?: StateAndHooks;
25
+ compareContext?: StateAndHooks;
26
+ tabs?: MaybeLazyLoaded<TabItem[]>;
27
+ routes?: MaybeLazyLoaded<RouteProps[]>;
28
+ host: string;
29
+ baseId?: ComponentID;
30
+ baseIdOverride?: ComponentID;
31
+ compareIdOverride?: ComponentID;
32
+ compareId?: ComponentID;
33
+ customUseComponent?: UseComponentType;
34
+ changes?: ChangeType[] | null;
35
+ Loader?: ComponentType;
36
+ isFullScreen?: boolean;
37
+ hidden?: boolean;
38
+ } & HTMLAttributes<HTMLDivElement>;
@@ -0,0 +1,38 @@
1
+ import type { HTMLAttributes, ComponentType } from 'react';
2
+ import type { RouteProps } from 'react-router-dom';
3
+ import type { ComponentID, UseComponentType } from '@teambit/component';
4
+ import type { ComponentCompareHooks } from '@teambit/component.ui.component-compare.models.component-compare-hooks';
5
+ import type { ComponentCompareState } from '@teambit/component.ui.component-compare.models.component-compare-state';
6
+ import type { NavLinkProps } from '@teambit/base-ui.routing.nav-link';
7
+ import type { MaybeLazyLoaded } from '@teambit/component.ui.component-compare.utils.lazy-loading';
8
+ import type { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
9
+ import type { StateAndHooks } from '@teambit/component.ui.component-compare.context';
10
+ export interface TabItem {
11
+ id: string;
12
+ order?: number;
13
+ displayName?: string;
14
+ props?: NavLinkProps & {
15
+ displayName?: string;
16
+ };
17
+ element?: React.ReactNode | null;
18
+ widget?: boolean;
19
+ changeType?: ChangeType;
20
+ }
21
+ export type ComponentCompareProps = {
22
+ state?: ComponentCompareState;
23
+ hooks?: ComponentCompareHooks;
24
+ baseContext?: StateAndHooks;
25
+ compareContext?: StateAndHooks;
26
+ tabs?: MaybeLazyLoaded<TabItem[]>;
27
+ routes?: MaybeLazyLoaded<RouteProps[]>;
28
+ host: string;
29
+ baseId?: ComponentID;
30
+ baseIdOverride?: ComponentID;
31
+ compareIdOverride?: ComponentID;
32
+ compareId?: ComponentID;
33
+ customUseComponent?: UseComponentType;
34
+ changes?: ChangeType[] | null;
35
+ Loader?: ComponentType;
36
+ isFullScreen?: boolean;
37
+ hidden?: boolean;
38
+ } & HTMLAttributes<HTMLDivElement>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=component-compare-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-compare-props.js","sourceRoot":"","sources":["../component-compare-props.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { ComponentCompareProps, TabItem } from './component-compare-props';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ ;
2
+ ;
3
+
4
+ export const compositions = [];
5
+ export const overview = [];
6
+
7
+ export const compositions_metadata = {"compositions":[]};
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { ComponentCompareProps, TabItem } from './component-compare-props';
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@teambit/component.ui.component-compare.models.component-compare-props",
3
+ "version": "0.0.0-010726ef6822d86761d0bf38c3f03393c57d788c",
4
+ "homepage": "https://bit.cloud/teambit/component/ui/component-compare/models/component-compare-props",
5
+ "main": "dist/index.js",
6
+ "componentId": {
7
+ "scope": "teambit.component",
8
+ "name": "ui/component-compare/models/component-compare-props",
9
+ "version": "010726ef6822d86761d0bf38c3f03393c57d788c"
10
+ },
11
+ "dependencies": {
12
+ "@teambit/base-ui.routing.nav-link": "1.0.4",
13
+ "@teambit/component.ui.component-compare.context": "0.0.124",
14
+ "@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.7",
15
+ "@teambit/component.ui.component-compare.models.component-compare-hooks": "0.0.11",
16
+ "@teambit/component.ui.component-compare.models.component-compare-state": "0.0.7",
17
+ "@teambit/component.ui.component-compare.utils.lazy-loading": "0.0.7"
18
+ },
19
+ "devDependencies": {
20
+ "@types/react-router-dom": "5.3.3",
21
+ "@types/mocha": "9.1.0",
22
+ "@teambit/react.v17.react-env": "1.1.96"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^16.8.0 || ^17.0.0",
26
+ "react-router-dom": "^6.16.0",
27
+ "@types/react": "^17.0.0"
28
+ },
29
+ "license": "Apache-2.0",
30
+ "optionalDependencies": {},
31
+ "peerDependenciesMeta": {},
32
+ "private": false,
33
+ "engines": {
34
+ "node": ">=12.22.0"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/teambit/bit"
39
+ },
40
+ "keywords": [
41
+ "bit",
42
+ "components",
43
+ "collaboration",
44
+ "web",
45
+ "react",
46
+ "react-components",
47
+ "angular",
48
+ "angular-components"
49
+ ]
50
+ }
@@ -0,0 +1,41 @@
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<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
11
+ const src: string;
12
+ export default src;
13
+ }
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
+ }
30
+ declare module '*.otf' {
31
+ const value: any;
32
+ export = value;
33
+ }
34
+ declare module '*.woff' {
35
+ const value: any;
36
+ export = value;
37
+ }
38
+ declare module '*.woff2' {
39
+ const value: any;
40
+ export = value;
41
+ }
@@ -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
+ }