@worldresources/wri-design-systems 2.194.1 → 2.194.3

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
@@ -441,9 +441,16 @@ type RichTextEditorLabels = {
441
441
  /** Tooltip / aria labels for controls. */
442
442
  undoTooltip: string;
443
443
  redoTooltip: string;
444
- fontFamilyTooltip: string;
444
+ textTypeTooltip: string;
445
445
  fontSizeTooltip: string;
446
+ alignmentTooltip: string;
447
+ alignLeftOptionLabel: string;
448
+ alignCenterOptionLabel: string;
449
+ alignRightOptionLabel: string;
450
+ alignJustifyOptionLabel: string;
446
451
  boldTooltip: string;
452
+ /** Short text rendered inside the bold control icon button (for example: B, N). */
453
+ boldIconText: string;
447
454
  italicTooltip: string;
448
455
  underlineTooltip: string;
449
456
  strikethroughTooltip: string;
@@ -451,6 +458,18 @@ type RichTextEditorLabels = {
451
458
  orderedListTooltip: string;
452
459
  linkTooltip: string;
453
460
  imageTooltip: string;
461
+ /** Placeholder text for link URL input in the link popover. */
462
+ linkUrlPlaceholder: string;
463
+ /** Placeholder text for link label input in the link popover. */
464
+ linkLabelPlaceholder: string;
465
+ /** Aria-label for link label input in the link popover. */
466
+ linkLabelAriaLabel: string;
467
+ /** Label for apply action in link popover. */
468
+ linkApplyLabel: string;
469
+ /** Label for remove action in link popover. */
470
+ linkRemoveLabel: string;
471
+ /** Validation message when URL is invalid in link popover. */
472
+ linkInvalidUrlMessage: string;
454
473
  };
455
474
  /**
456
475
  * Top-level labels map for the design system.
@@ -515,7 +534,7 @@ type IconButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' |
515
534
  disabled?: boolean;
516
535
  };
517
536
 
518
- type RichTextEditorControlKey = 'undo' | 'redo' | 'fontFamily' | 'fontSize' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'bulletList' | 'orderedList' | 'link' | 'image';
537
+ type RichTextEditorControlKey = 'undo' | 'redo' | 'textType' | 'fontSize' | 'alignment' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'bulletList' | 'orderedList' | 'link' | 'image';
519
538
  type RichTextEditorSize = string;
520
539
  type RichTextEditorProps = {
521
540
  defaultValue?: string;
@@ -652,6 +671,8 @@ type MenuItemProps = {
652
671
  type MenuProps = {
653
672
  theme?: 'light' | 'dark';
654
673
  label: string;
674
+ /** Hides the decorative arrow on the menu content. Default: false. */
675
+ hideArrow?: boolean;
655
676
  fontSize?: string;
656
677
  items?: MenuItemProps[];
657
678
  groups?: {
@@ -666,7 +687,7 @@ type MenuProps = {
666
687
  defaultSelectedValues?: string[];
667
688
  };
668
689
 
669
- declare const Menu: ({ theme, label, fontSize, items, groups, onSelect, customTrigger, selectionMode, defaultSelectedValues, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
690
+ declare const Menu: ({ theme, label, hideArrow, fontSize, items, groups, onSelect, customTrigger, selectionMode, defaultSelectedValues, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
670
691
 
671
692
  type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
672
693
  variant?: 'primary' | 'secondary';