({
themeColorsData,
uniqueKeys,
}: {
themeColorsData: DataObject;
uniqueKeys: string[];
})
| 28 | }; |
| 29 | |
| 30 | const FlatTable = ({ |
| 31 | themeColorsData, |
| 32 | uniqueKeys, |
| 33 | }: { |
| 34 | themeColorsData: DataObject; |
| 35 | uniqueKeys: string[]; |
| 36 | }): ReactNode => { |
| 37 | const rows = Object.keys(themeColorsData).map((mode) => { |
| 38 | return ( |
| 39 | <tr key={`${mode}`}> |
| 40 | <td>{mode}</td> |
| 41 | {getTableCell(uniqueKeys, themeColorsData[mode] as DataObject)} |
| 42 | </tr> |
| 43 | ); |
| 44 | }); |
| 45 | |
| 46 | return ( |
| 47 | <> |
| 48 | <Admonition type="info"> |
| 49 | The table below outlines the theme colors, specifically for MD3{' '} |
| 50 | <i>(theme version 3)</i> at the moment. |
| 51 | </Admonition> |
| 52 | <table> |
| 53 | <thead> |
| 54 | <tr> |
| 55 | <th>mode</th> |
| 56 | {getTableHeader(uniqueKeys)} |
| 57 | </tr> |
| 58 | </thead> |
| 59 | <tbody>{rows}</tbody> |
| 60 | </table> |
| 61 | </> |
| 62 | ); |
| 63 | }; |
| 64 | |
| 65 | const TabbedTable = ({ |
| 66 | themeColorsData, |
nothing calls this directly
no test coverage detected
searching dependent graphs…