@takecasper/acuity-design-system 1.25.0 → 1.27.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/index.d.ts CHANGED
@@ -43,10 +43,11 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
43
43
  disabled?: boolean;
44
44
  className?: string;
45
45
  onClick: React_2.MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
46
- iconName?: IconNames | undefined;
46
+ iconName?: IconNames;
47
47
  leadingIcon?: boolean;
48
48
  trailingIcon?: boolean;
49
49
  iconIndicator?: boolean;
50
+ stateful?: boolean;
50
51
  }
51
52
 
52
53
  export declare type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'inline';
@@ -91,6 +92,18 @@ export declare interface DropdownProps extends React.InputHTMLAttributes<HTMLSel
91
92
  hasMarginBottom?: boolean;
92
93
  }
93
94
 
95
+ export declare const FormValidation: ({ children, className, onClick, successTitle, successDescription, errorTitle, buttonText, ...props }: FormValidationProps) => JSX_2.Element;
96
+
97
+ export declare interface FormValidationProps {
98
+ children: React_2.ReactNode;
99
+ className?: string;
100
+ onClick: React_2.MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
101
+ successTitle: string;
102
+ successDescription: string;
103
+ errorTitle?: string;
104
+ buttonText: string;
105
+ }
106
+
94
107
  export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
95
108
 
96
109
  export declare interface HeadingProps extends VariantProps<typeof headingVariants> {
@@ -125,6 +138,7 @@ export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HT
125
138
  hasTooltip?: boolean;
126
139
  iconColor?: string;
127
140
  isTransparent?: boolean;
141
+ stateful?: boolean;
128
142
  }
129
143
 
130
144
  declare type IconNames = 'settings' | 'questionCircle' | 'notifications' | 'flag' | 'edit' | 'delete' | 'resourceCenter' | 'search' | 'error' | 'warning' | 'dropdown' | 'calendar' | 'bookmark' | 'infoCircle' | 'menu' | 'add' | 'exclude' | 'email' | 'close' | 'checkCircle' | 'linkNewTab' | 'lockOpened' | 'lockClosed' | 'check';