Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ declare const tagName = "s-paragraph";
export interface ParagraphProps extends Pick<ParagraphProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'id' | 'lang' | 'tone' | 'type'> {
color?: Extract<ParagraphProps$1['color'], 'subdued' | 'base'>;
tone?: Extract<ParagraphProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical' | 'neutral' | 'custom'>;
/**
* The semantic type and styling treatment for the paragraph content.
*
* Other presentation properties on `s-paragraph` override the default styling.
*
* - `paragraph`: A semantic type that indicates the text is a structural grouping of related content.
* - `small`: A semantic type that indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
*
* @default 'paragraph'
*/
type?: Extract<ParagraphProps$1['type'], 'paragraph' | 'small'>;
}
/** @publicDocs */
export interface ParagraphElement extends ParagraphProps, Omit<HTMLElement, 'id' | 'dir' | 'lang'> {
Expand Down
16 changes: 16 additions & 0 deletions packages/ui-extensions/src/surfaces/checkout/components/Text.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@ declare const tagName = "s-text";
export interface TextProps extends Pick<TextProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'display' | 'id' | 'lang' | 'tone' | 'type'> {
color?: Extract<TextProps$1['color'], 'subdued' | 'base'>;
tone?: Extract<TextProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
/**
* The semantic type and styling treatment for the text content.
*
* Other presentation properties on text override the default styling.
*
* - `address`: A semantic type that indicates the text is contact information. Typically used for addresses.
* - `redundant`: A semantic type that indicates the text is no longer accurate or no longer relevant. One such use-case is discounted prices.
* - `mark`: A semantic type that indicates the text is marked or highlighted and relevant to the user's current action.
* - `emphasis`: A semantic type that indicates emphatic stress. Typically for words that have a stressed emphasis compared to surrounding text.
* - `offset`: A semantic type that indicates an offset from the normal prose of the text.
* - `small`: A semantic type that indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
* - `strong`: A semantic type that indicates strong importance, seriousness, or urgency.
* - `generic`: No additional semantics or styling is applied.
*
* @default 'generic'
*/
type?: Extract<TextProps$1['type'], 'address' | 'redundant' | 'mark' | 'emphasis' | 'offset' | 'small' | 'strong' | 'generic'>;
}
/** @publicDocs */
Expand Down
Loading