@cmgfi/clear-ds 1.1.8 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -373,6 +373,8 @@ export declare interface CheckboxProps extends Omit<React.InputHTMLAttributes<HT
373
373
  * panels, toasts, tags, or any overlay. Requires an `aria-label` for
374
374
  * screen-reader context (defaults to `"Close"`).
375
375
  *
376
+ * A `Tooltip` showing the `aria-label` is rendered automatically on hover.
377
+ *
376
378
  * @example
377
379
  * <CloseButton onClick={onClose} />
378
380
  *
@@ -804,6 +806,9 @@ export declare interface FullNavProps {
804
806
  * A circular icon-only button. Shares the same variants and sizes as Button.
805
807
  * Always requires an `aria-label` since there is no visible text.
806
808
  *
809
+ * A `Tooltip` showing the `aria-label` is rendered automatically on hover for
810
+ * mouse users — no extra prop needed.
811
+ *
807
812
  * @example
808
813
  * <IconButton icon={<i className="pi pi-search" />} aria-label="Search" />
809
814
  *
@@ -923,6 +928,8 @@ export declare interface InputTextProps extends Omit<React.InputHTMLAttributes<H
923
928
  * - `basic` — no visible container, teal icon (default)
924
929
  * - `filled` — solid teal-700 background
925
930
  *
931
+ * A `Tooltip` showing the `aria-label` is rendered automatically on hover.
932
+ *
926
933
  * @example
927
934
  * <LightningButton
928
935
  * variant="basic"
@@ -1185,6 +1192,11 @@ export declare interface LoanBannerNavToolbar {
1185
1192
  right?: React.ReactNode;
1186
1193
  }
1187
1194
 
1195
+ export declare interface MentionItem {
1196
+ id: string;
1197
+ label: string;
1198
+ }
1199
+
1188
1200
  export declare function MiscChip({ label, color, dismissible, onDismiss }: MiscChipProps): JSX_2.Element;
1189
1201
 
1190
1202
  export declare namespace MiscChip {
@@ -1653,6 +1665,91 @@ export declare interface RadioButtonProps extends Omit<React.InputHTMLAttributes
1653
1665
  size?: 'sm' | 'md' | 'lg';
1654
1666
  }
1655
1667
 
1668
+ export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<HTMLDivElement>>;
1669
+
1670
+ export declare interface RichTextEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
1671
+ /** Label shown above the editor. */
1672
+ label?: string;
1673
+ /** When false, hides the label visually and falls back to aria-label on the editor. Defaults to true. */
1674
+ showLabel?: boolean;
1675
+ /** Adds a red asterisk and sets aria-required. */
1676
+ required?: boolean;
1677
+ /** Show or hide the helper text area below the editor. */
1678
+ helperText?: boolean;
1679
+ /** Text displayed in the helper text area. Defaults to 'Helper text' when not provided. Turns red when invalid is true. */
1680
+ helperTextContent?: string;
1681
+ /** Renders the invalid/error state with red border and red helper text. */
1682
+ invalid?: boolean;
1683
+ /** Disables the editor and all toolbar buttons. */
1684
+ disabled?: boolean;
1685
+ /** Placeholder text shown when the editor is empty. */
1686
+ placeholder?: string;
1687
+ /** Initial HTML content (uncontrolled). */
1688
+ defaultValue?: string;
1689
+ /** Called with the current HTML string on every change. */
1690
+ onChange?: (html: string) => void;
1691
+ /** When set, shows a character counter. */
1692
+ maxLength?: number;
1693
+ /** Where the character counter appears. Defaults to 'outside'. */
1694
+ counterPlacement?: 'inside' | 'outside';
1695
+ /**
1696
+ * Controls when the toolbar is visible.
1697
+ * - `'always'` (default) — toolbar is always shown when any button prop is true.
1698
+ * - `'on-focus'` — toolbar appears when the editor is focused and hides on blur.
1699
+ */
1700
+ toolbarMode?: 'always' | 'on-focus';
1701
+ /** Show Bold button. */
1702
+ showBold?: boolean;
1703
+ /** Show Italic button. */
1704
+ showItalic?: boolean;
1705
+ /** Show Underline button. */
1706
+ showUnderline?: boolean;
1707
+ /** Show Strikethrough button. */
1708
+ showStrike?: boolean;
1709
+ /** Show inline Code button. */
1710
+ showCode?: boolean;
1711
+ /** Show Highlight button. */
1712
+ showHighlight?: boolean;
1713
+ /** Show Subscript button. */
1714
+ showSubscript?: boolean;
1715
+ /** Show Superscript button. */
1716
+ showSuperscript?: boolean;
1717
+ /** Show Heading buttons. Renders H1/H2/H3 by default; use headingLevels to customise. */
1718
+ showHeading?: boolean;
1719
+ /** Which heading levels to show. Defaults to [1, 2, 3]. */
1720
+ headingLevels?: (1 | 2 | 3 | 4 | 5 | 6)[];
1721
+ /** Show Blockquote button. */
1722
+ showBlockquote?: boolean;
1723
+ /** Show Code Block button. */
1724
+ showCodeBlock?: boolean;
1725
+ /** Show Bullet List button. */
1726
+ showBulletList?: boolean;
1727
+ /** Show Ordered List button. */
1728
+ showOrderedList?: boolean;
1729
+ /** Show Task List button. */
1730
+ showTaskList?: boolean;
1731
+ /** Show Horizontal Rule button. */
1732
+ showHorizontalRule?: boolean;
1733
+ /** Show text-alignment buttons (left / center / right / justify). */
1734
+ showTextAlign?: boolean;
1735
+ /** Show Link button. Toggles an inline URL bar for adding/removing links. */
1736
+ showLink?: boolean;
1737
+ /** Show Image button. Toggles an inline URL bar for inserting images. */
1738
+ showImage?: boolean;
1739
+ /** Show Mention (@) button. Also activates the @ trigger in the editor. */
1740
+ showMention?: boolean;
1741
+ /** Show Undo button. */
1742
+ showUndo?: boolean;
1743
+ /** Show Redo button. */
1744
+ showRedo?: boolean;
1745
+ /**
1746
+ * Items shown in the @ mention dropdown.
1747
+ * Pass an array for static data, or a (sync or async) function for dynamic data.
1748
+ * Falls back to built-in mock loan-party data if omitted.
1749
+ */
1750
+ mentionSuggestions?: MentionItem[] | ((query: string) => MentionItem[] | Promise<MentionItem[]>);
1751
+ }
1752
+
1656
1753
  export declare interface RuleFilterValue {
1657
1754
  operator: 'and' | 'or';
1658
1755
  rules: FilterRule[];
@@ -1904,6 +2001,9 @@ export declare type SortOrder = 1 | -1;
1904
2001
  * - **Left** (main): executes the primary action when clicked.
1905
2002
  * - **Right** (trigger): opens a dropdown of secondary actions.
1906
2003
  *
2004
+ * The dropdown trigger shows a `Tooltip` with `triggerAriaLabel` on hover
2005
+ * (defaults to `"More options"`) since it has no visible text label.
2006
+ *
1907
2007
  * @example
1908
2008
  * <SplitButton
1909
2009
  * label="Import"
@@ -2073,6 +2173,8 @@ export declare const TextArea: ForwardRefExoticComponent<TextAreaProps & RefAttr
2073
2173
  export declare interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children'> {
2074
2174
  /** Label shown above the textarea. */
2075
2175
  label?: string;
2176
+ /** When false, hides the label visually and falls back to aria-label on the textarea. Defaults to true. */
2177
+ showLabel?: boolean;
2076
2178
  /** Adds a red asterisk to the label and sets aria-required. */
2077
2179
  required?: boolean;
2078
2180
  /** Helper text shown below the textarea. Turns red when `invalid` is true. */
@@ -2086,6 +2188,8 @@ export declare interface TextAreaProps extends Omit<React.TextareaHTMLAttributes
2086
2188
  * instead of showing a scrollbar.
2087
2189
  */
2088
2190
  autoGrow?: boolean;
2191
+ /** Controls where the character counter renders. 'inside' pins it to the bottom-right of the field; 'outside' (default) places it below the field in the bottom row. */
2192
+ counterPlacement?: 'inside' | 'outside';
2089
2193
  }
2090
2194
 
2091
2195
  /**