Skip to content

Commit 6759403

Browse files
authored
docs(compat - Table): outline compatibility (#6405)
Related issue: SAP/ui5-webcomponents#9920
1 parent dcd189f commit 6759403

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.storybook/components/Import.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ function FromPath({ packageName, deepPath }: FromPathPropTypes) {
3535
);
3636
}
3737

38+
FromPath.displayName = 'FromPath';
39+
3840
export const ImportStatement = ({ moduleNames, packageName }: ImportStatementPropTypes) => {
3941
if (!moduleNames) {
4042
return null;
@@ -65,7 +67,7 @@ export const ImportStatement = ({ moduleNames, packageName }: ImportStatementPro
6567
{paths.map((deepPath) => {
6668
if (!deepPath) {
6769
return (
68-
<span style={{ fontSize: '14px' }}>
70+
<span style={{ fontSize: '14px' }} key="0">
6971
{' '}
7072
{'{'}
7173
{moduleNames.length > 2 ? (
@@ -89,14 +91,14 @@ export const ImportStatement = ({ moduleNames, packageName }: ImportStatementPro
8991
);
9092
} else {
9193
return (
92-
<>
94+
<Fragment key={deepPath.path}>
9395
<span style={{ color: 'rgb(0, 0, 136)', fontSize: '14px' }}>import</span>
9496
<span style={{ fontSize: '14px' }}>
9597
{' '}
9698
{'{'}&nbsp;{deepPath.moduleName}&nbsp;{'}'}{' '}
9799
</span>
98100
<FromPath packageName={packageName} deepPath={deepPath} />
99-
</>
101+
</Fragment>
100102
);
101103
}
102104
})}
@@ -106,6 +108,8 @@ export const ImportStatement = ({ moduleNames, packageName }: ImportStatementPro
106108
);
107109
};
108110

111+
ImportStatement.displayName = 'ImportStatement';
112+
109113
interface ImportProps {
110114
/**
111115
* Names of module/component (e.g. "Button")

packages/compat/src/components/Table/Table.mdx

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
22
import SubcomponentsSection from '@sb/docs/SubcomponentsSection.md?raw';
33
import { ArgTypes, Canvas, Description, Markdown, Meta } from '@storybook/blocks';
4+
import { MessageStrip, Text } from '@ui5/webcomponents-react';
45
import { TableCell } from '../TableCell';
56
import { TableColumn } from '../TableColumn';
67
import { TableGroupRow } from '../TableGroupRow';
@@ -11,6 +12,18 @@ import * as ComponentStories from './Table.stories';
1112

1213
<DocsHeader />
1314

15+
<MessageStrip
16+
children={
17+
<Text>
18+
Using the Table from the <code>compat</code> package and the <code>main</code> package in the same application is
19+
not supported!
20+
</Text>
21+
}
22+
design="Critical"
23+
hideCloseButton
24+
/>
25+
26+
<br />
1427
<br />
1528

1629
## Example

0 commit comments

Comments
 (0)