11import { Description , DocsContext , Subtitle , Title } from '@storybook/addon-docs' ;
2- import copyIcon from '@ui5/webcomponents-icons/dist/copy' ;
32import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js' ;
4- import { Button , FlexBox , FlexBoxAlignItems , Label , Link , Text , ThemeProvider } from '@ui5/webcomponents-react' ;
3+ import MessageStripDesign from '@ui5/webcomponents/dist/types/MessageStripDesign.js' ;
4+ import copyIcon from '@ui5/webcomponents-icons/dist/copy.js' ;
5+ import {
6+ Button ,
7+ FlexBox ,
8+ FlexBoxAlignItems ,
9+ Label ,
10+ Link ,
11+ MessageStrip ,
12+ Text ,
13+ ThemeProvider
14+ } from '@ui5/webcomponents-react' ;
515import { clsx } from 'clsx' ;
616import { useContext } from 'react' ;
717import { useGetSubComponentsOfModule } from '../utils' ;
@@ -38,6 +48,7 @@ interface InfoTableProps {
3848 since ?: string ;
3949 subComponents ?: string [ ] ;
4050 mergeSubComponents ?: boolean ;
51+ isChart ?: boolean ;
4152}
4253
4354export const InfoTable = ( { since, subComponents, mergeSubComponents } : InfoTableProps ) => {
@@ -74,7 +85,7 @@ export const InfoTable = ({ since, subComponents, mergeSubComponents }: InfoTabl
7485 < Button
7586 design = { ButtonDesign . Transparent }
7687 className = { clsx ( 'ui5-content-density-compact' , classes . copyBtn ) }
77- onClick = { handleCopy }
88+ onClick = { void handleCopy }
7889 icon = { copyIcon }
7990 tooltip = "copy"
8091 />
@@ -102,7 +113,7 @@ export const InfoTable = ({ since, subComponents, mergeSubComponents }: InfoTabl
102113 < Button
103114 design = { ButtonDesign . Transparent }
104115 className = { clsx ( 'ui5-content-density-compact' , classes . copyBtn ) }
105- onClick = { handleCopy }
116+ onClick = { void handleCopy }
106117 icon = { copyIcon }
107118 tooltip = "copy"
108119 />
@@ -115,7 +126,7 @@ export const InfoTable = ({ since, subComponents, mergeSubComponents }: InfoTabl
115126 ) ;
116127} ;
117128
118- export const DocsHeader = ( { since, subComponents, mergeSubComponents } : InfoTableProps ) => {
129+ export const DocsHeader = ( { since, subComponents, mergeSubComponents, isChart } : InfoTableProps ) => {
119130 return (
120131 < ThemeProvider >
121132 < FlexBox alignItems = { FlexBoxAlignItems . Center } >
@@ -127,6 +138,16 @@ export const DocsHeader = ({ since, subComponents, mergeSubComponents }: InfoTab
127138 < InfoTable since = { since } subComponents = { subComponents } mergeSubComponents = { mergeSubComponents } />
128139 < TableOfContent />
129140 < Description />
141+ { isChart && (
142+ < >
143+ < MessageStrip hideCloseButton design = { MessageStripDesign . Critical } >
144+ Charts only offer limited accessibility support with only basic built-in features, so it’s essential to
145+ ensure your implementation meets the accessibility standards of your application.
146+ </ MessageStrip >
147+ < br />
148+ < br />
149+ </ >
150+ ) }
130151 </ ThemeProvider >
131152 ) ;
132153} ;
0 commit comments