@teambit/mdx.ui.docs.link 0.0.0-7b3fccecfd47bcf58c9570fbfc0a7001bf8e7f73
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 +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/link.composition.d.ts +2 -0
- package/dist/link.composition.js +5 -0
- package/dist/link.composition.js.map +1 -0
- package/dist/link.d.ts +3 -0
- package/dist/link.docs.md +12 -0
- package/dist/link.js +7 -0
- package/dist/link.js.map +1 -0
- package/dist/link.module.scss +8 -0
- package/dist/link.spec.d.ts +1 -0
- package/dist/link.spec.js +11 -0
- package/dist/link.spec.js.map +1 -0
- package/dist/preview-1782043534410.js +7 -0
- package/index.ts +1 -0
- package/link.composition.tsx +11 -0
- package/link.docs.md +12 -0
- package/link.module.scss +8 -0
- package/link.spec.tsx +12 -0
- package/link.tsx +8 -0
- package/package.json +46 -0
- package/types/asset.d.ts +41 -0
- package/types/style.d.ts +42 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './link';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
|
3
|
+
import { Link } from './link';
|
|
4
|
+
export const LinkExample = () => (_jsx(ThemeCompositions, { children: _jsx(Link, { "data-testid": "test-link", href: "https://bit.dev", children: "bit.dev" }) }));
|
|
5
|
+
//# sourceMappingURL=link.composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.composition.js","sourceRoot":"","sources":["../link.composition.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CAC/B,KAAC,iBAAiB,cAChB,KAAC,IAAI,mBAAa,WAAW,EAAC,IAAI,EAAC,iBAAiB,wBAE7C,GACW,CACrB,CAAC"}
|
package/dist/link.d.ts
ADDED
package/dist/link.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Link as BaseLink } from '@teambit/base-react.navigation.link';
|
|
3
|
+
import styles from './link.module.scss';
|
|
4
|
+
export function Link(props) {
|
|
5
|
+
return _jsx(BaseLink, { ...props, className: styles.link, external: true });
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=link.js.map
|
package/dist/link.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../link.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAa,MAAM,qCAAqC,CAAC;AAElF,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,UAAU,IAAI,CAAC,KAAgB;IACnC,OAAO,KAAC,QAAQ,OAAK,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,SAAG,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { expect } from 'chai';
|
|
4
|
+
import { LinkExample } from './link.composition';
|
|
5
|
+
it('should render correctly', () => {
|
|
6
|
+
const { getByTestId } = render(_jsx(LinkExample, {}));
|
|
7
|
+
const rendered = getByTestId('test-link');
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
9
|
+
expect(rendered).to.exist;
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=link.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.spec.js","sourceRoot":"","sources":["../link.spec.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACjC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,KAAC,WAAW,KAAG,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;IAE1C,oEAAoE;IACpE,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/tmp/capsules-root/sign-capsules/2026-5-21/gpbvo6/teambit.mdx_ui_docs_link@7b3fccecfd47bcf58c9570fbfc0a7001bf8e7f73/dist/link.composition.js';
|
|
2
|
+
import * as overview_0 from '/tmp/capsules-root/sign-capsules/2026-5-21/gpbvo6/teambit.mdx_ui_docs_link@7b3fccecfd47bcf58c9570fbfc0a7001bf8e7f73/dist/link.docs.md';
|
|
3
|
+
|
|
4
|
+
export const compositions = [compositions_0];
|
|
5
|
+
export const overview = [overview_0];
|
|
6
|
+
|
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Link example","identifier":"LinkExample"}]};
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './link';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
|
3
|
+
import { Link } from './link';
|
|
4
|
+
|
|
5
|
+
export const LinkExample = () => (
|
|
6
|
+
<ThemeCompositions>
|
|
7
|
+
<Link data-testid="test-link" href="https://bit.dev">
|
|
8
|
+
bit.dev
|
|
9
|
+
</Link>
|
|
10
|
+
</ThemeCompositions>
|
|
11
|
+
);
|
package/link.docs.md
ADDED
package/link.module.scss
ADDED
package/link.spec.tsx
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { expect } from 'chai';
|
|
4
|
+
import { LinkExample } from './link.composition';
|
|
5
|
+
|
|
6
|
+
it('should render correctly', () => {
|
|
7
|
+
const { getByTestId } = render(<LinkExample />);
|
|
8
|
+
const rendered = getByTestId('test-link');
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
11
|
+
expect(rendered).to.exist;
|
|
12
|
+
});
|
package/link.tsx
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link as BaseLink, LinkProps } from '@teambit/base-react.navigation.link';
|
|
3
|
+
|
|
4
|
+
import styles from './link.module.scss';
|
|
5
|
+
|
|
6
|
+
export function Link(props: LinkProps) {
|
|
7
|
+
return <BaseLink {...props} className={styles.link} external />;
|
|
8
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teambit/mdx.ui.docs.link",
|
|
3
|
+
"version": "0.0.0-7b3fccecfd47bcf58c9570fbfc0a7001bf8e7f73",
|
|
4
|
+
"homepage": "https://bit.cloud/teambit/mdx/ui/docs/link",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"componentId": {
|
|
7
|
+
"scope": "teambit.mdx",
|
|
8
|
+
"name": "ui/docs/link",
|
|
9
|
+
"version": "7b3fccecfd47bcf58c9570fbfc0a7001bf8e7f73"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@teambit/base-react.navigation.link": "2.0.31"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/chai": "4.2.15",
|
|
16
|
+
"chai": "4.3.0",
|
|
17
|
+
"@types/mocha": "9.1.0",
|
|
18
|
+
"@teambit/documenter.theme.theme-compositions": "4.1.1",
|
|
19
|
+
"@teambit/react.v17.react-env": "0.0.0-599b6636ddc11588676d99075730a118c5004154"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
23
|
+
"@testing-library/react": "^12.0.0"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"optionalDependencies": {},
|
|
27
|
+
"peerDependenciesMeta": {},
|
|
28
|
+
"private": false,
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=12.22.0"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/teambit/bit"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"bit",
|
|
38
|
+
"components",
|
|
39
|
+
"collaboration",
|
|
40
|
+
"web",
|
|
41
|
+
"react",
|
|
42
|
+
"react-components",
|
|
43
|
+
"angular",
|
|
44
|
+
"angular-components"
|
|
45
|
+
]
|
|
46
|
+
}
|
package/types/asset.d.ts
ADDED
|
@@ -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
|
+
}
|
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
|
+
}
|