@pantheon-systems/pds-toolkit-react 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
@@ -70,6 +70,6 @@ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
70
70
  className?: string;
71
71
  }
72
72
  /**
73
- * MenuButton UI component - Modernized with Floating UI
73
+ * MenuButton UI component
74
74
  */
75
75
  export declare const MenuButton: ({ disabled, displayType, iconName, id, isSplitButton, label, menuItems, menuPosition, onClick, size, testId, undefinedLabel, variant, withinNavbar, className, ...props }: MenuButtonProps) => React.JSX.Element;
@@ -13,10 +13,18 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
13
13
  * Is the button disabled?
14
14
  */
15
15
  disabled?: boolean;
16
+ /**
17
+ * Should the button have a border?
18
+ */
19
+ hasBorder?: boolean;
16
20
  /**
17
21
  * Which icon to render.
18
22
  */
19
23
  iconName?: PDSIcon;
24
+ /**
25
+ * Position of the icon relative to the label.
26
+ */
27
+ iconPosition?: 'before' | 'after';
20
28
  /**
21
29
  * Is the button critical? If true, the button will be styled as critical on hover and focus.
22
30
  */
@@ -53,4 +61,4 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
53
61
  /**
54
62
  * UtilityButton UI component
55
63
  */
56
- export declare const UtilityButton: ({ buttonProps, disabled, iconName, isCritical, isLoading, isWorking, isMonospace, label, onClick, tooltipText, className, ...props }: UtilityButtonProps) => React.JSX.Element;
64
+ export declare const UtilityButton: ({ buttonProps, disabled, hasBorder, iconName, iconPosition, isCritical, isLoading, isWorking, isMonospace, label, onClick, tooltipText, className, ...props }: UtilityButtonProps) => React.JSX.Element;