diff --git a/packages/canon/report.api.md b/packages/canon/report.api.md index 938aa3d829..c4278a6e94 100644 --- a/packages/canon/report.api.md +++ b/packages/canon/report.api.md @@ -620,8 +620,31 @@ export const Heading: ( }, ) => React.ReactElement | null; -// Warning: (ae-forgotten-export) The symbol "HeadingOwnProps" needs to be exported by the entry point index.d.ts -// +// @public (undocumented) +export type HeadingOwnProps = { + as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; + variant?: + | 'display' + | 'title1' + | 'title2' + | 'title3' + | 'title4' + | 'title5' + | Partial< + Record< + Breakpoint, + 'display' | 'title1' | 'title2' | 'title3' | 'title4' | 'title5' + > + >; + color?: + | 'primary' + | 'secondary' + | Partial>; + truncate?: boolean; + className?: string; + style?: React.CSSProperties; +}; + // @public (undocumented) export type HeadingProps = HeadingOwnProps & Omit, keyof HeadingOwnProps>; @@ -1277,8 +1300,33 @@ export interface TextFieldProps size?: 'small' | 'medium' | Partial>; } -// Warning: (ae-forgotten-export) The symbol "TextOwnProps" needs to be exported by the entry point index.d.ts -// +// @public (undocumented) +export type TextOwnProps = { + as?: 'p' | 'span' | 'label'; + variant?: + | 'subtitle' + | 'body' + | 'caption' + | 'label' + | Partial>; + weight?: 'regular' | 'bold' | Partial>; + color?: + | 'primary' + | 'secondary' + | 'danger' + | 'warning' + | 'success' + | Partial< + Record< + Breakpoint, + 'primary' | 'secondary' | 'danger' | 'warning' | 'success' + > + >; + truncate?: boolean; + className?: string; + style?: React.CSSProperties; +}; + // @public (undocumented) export type TextProps = TextOwnProps & Omit, keyof TextOwnProps>; diff --git a/packages/canon/src/components/Heading/index.ts b/packages/canon/src/components/Heading/index.ts index 69b7c3c1a0..ca9845b122 100644 --- a/packages/canon/src/components/Heading/index.ts +++ b/packages/canon/src/components/Heading/index.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -export { Heading } from './Heading'; -export type { HeadingProps } from './types'; +export * from './Heading'; +export * from './types'; diff --git a/packages/canon/src/components/Text/index.ts b/packages/canon/src/components/Text/index.ts index ae1f532b2c..423288a8a4 100644 --- a/packages/canon/src/components/Text/index.ts +++ b/packages/canon/src/components/Text/index.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -export { Text } from './Text'; -export type { TextProps } from './types'; +export * from './Text'; +export * from './types';