@kentico/xperience-admin-components 28.1.1 → 28.2.0

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/entry.d.ts CHANGED
@@ -39,7 +39,20 @@ export declare interface ActionCell extends TableCell {
39
39
 
40
40
  export declare const ActionMenu: React_2.ForwardRefExoticComponent<ActionMenuProps & React_2.RefAttributes<HTMLDivElement>>;
41
41
 
42
- export declare const ActionMenuDivider: React_2.ForwardRefExoticComponent<React_2.RefAttributes<HTMLDivElement>>;
42
+ /**
43
+ * Represents a divider component for an action menu.
44
+ */
45
+ export declare const ActionMenuDivider: React_2.ForwardRefExoticComponent<ActionMenuDividerProps & React_2.RefAttributes<HTMLDivElement>>;
46
+
47
+ /**
48
+ * Represents the properties for the ActionMenuDivider component.
49
+ */
50
+ export declare interface ActionMenuDividerProps {
51
+ /**
52
+ * Orientation of ActionMenuDivider.
53
+ */
54
+ readonly orientation?: DividerOrientation;
55
+ }
43
56
 
44
57
  export declare const ActionMenuHeadline: React_2.ForwardRefExoticComponent<ActionMenuHeadlineProps & React_2.RefAttributes<HTMLDivElement>>;
45
58
 
@@ -693,7 +706,7 @@ declare interface ChartLicenseProps {
693
706
 
694
707
  export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLDivElement>>;
695
708
 
696
- declare type CheckboxBaseProps = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onClick' | 'disabled' | 'tabIndex'>;
709
+ declare type CheckboxBaseProps = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onClick' | 'disabled' | 'tabIndex'> & UITestProps;
697
710
 
698
711
  export declare interface CheckboxProps extends CheckboxBaseProps {
699
712
  /**
@@ -1613,6 +1626,64 @@ export declare enum HeadlineSize {
1613
1626
  L = "L"
1614
1627
  }
1615
1628
 
1629
+ export declare const HorizontalActionMenu: React_2.ForwardRefExoticComponent<HorizontalActionMenuProps & React_2.RefAttributes<HTMLDivElement>>;
1630
+
1631
+ /**
1632
+ * Represents an action item in the HorizontalActionMenu.
1633
+ */
1634
+ export declare interface HorizontalActionMenuItem {
1635
+ /**
1636
+ * Label displayed in action button and in DropDownActionMenu when actions cannot fit into the parent container.
1637
+ */
1638
+ readonly label: string;
1639
+ /**
1640
+ * Tooltip of action button.
1641
+ */
1642
+ readonly title?: string;
1643
+ /**
1644
+ * Icon displayed in action button and in DropDownActionMenu when actions cannot fit into the parent container.
1645
+ */
1646
+ readonly icon?: IconName;
1647
+ /**
1648
+ * Indicates if action is destructive.
1649
+ */
1650
+ readonly destructive?: boolean;
1651
+ /**
1652
+ * Indicates if action is disabled.
1653
+ */
1654
+ readonly disabled?: boolean;
1655
+ /**
1656
+ * Identifier of the action.
1657
+ */
1658
+ readonly identifier: string;
1659
+ /**
1660
+ * Action to be performed after button click.
1661
+ */
1662
+ readonly onClick: (e: MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>) => void;
1663
+ }
1664
+
1665
+ /**
1666
+ * Represents properties of the HorizontalActionMenu component.
1667
+ */
1668
+ export declare interface HorizontalActionMenuProps {
1669
+ /**
1670
+ * Menu items displayed in HorizontalActionMenu.
1671
+ */
1672
+ readonly actionItems: HorizontalActionMenuItem[];
1673
+ /**
1674
+ * Label displayed in HorizontalActionMenu.
1675
+ */
1676
+ readonly label: string | null;
1677
+ /**
1678
+ * Determines if action buttons should be visible in HorizontalActionMenu.
1679
+ */
1680
+ readonly areActionsVisible: boolean;
1681
+ /**
1682
+ * Label displayed in 'More actions' button.
1683
+ */
1684
+ readonly moreActionsButtonLabel: string;
1685
+ }
1686
+
1616
1687
  declare type HTMLButtonProps = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'onClick'>;
1617
1688
 
1618
1689
  /**
@@ -3432,6 +3503,7 @@ export declare interface TableProps extends UITestProps {
3432
3503
  readonly maxVisibleRowActions?: number;
3433
3504
  /**
3434
3505
  * Identifiers of the rows that should be preselected in the table.
3506
+ * Defaults to empty array.
3435
3507
  */
3436
3508
  readonly preselectedRows?: unknown[];
3437
3509
  /**