@frontify/fondue-components 5.0.0 → 5.1.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
@@ -1,5 +1,6 @@
1
1
  import { AriaAttributes } from 'react';
2
2
  import { ChangeEvent } from 'react';
3
+ import { FocusEvent as FocusEvent_2 } from 'react';
3
4
  import { FormEvent } from 'react';
4
5
  import { ForwardedRef } from 'react';
5
6
  import { ForwardRefExoticComponent } from 'react';
@@ -20,7 +21,7 @@ declare type AtLeastOneAttr<T> = Partial<T> & {
20
21
  }[keyof T];
21
22
 
22
23
  export declare const Box: {
23
- ({ as: Component, "data-test-id": dataTestId, children, ...props }: BoxProps): JSX_2.Element;
24
+ ({ as: Component, "data-test-id": dataTestId, children, role, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, ...props }: BoxProps): JSX_2.Element;
24
25
  displayName: string;
25
26
  };
26
27
 
@@ -576,7 +577,7 @@ declare type DropdownTriggerProps = {
576
577
  };
577
578
 
578
579
  export declare const Flex: {
579
- ({ as: Component, "data-test-id": dataTestId, children, ...props }: FlexProps): JSX_2.Element;
580
+ ({ as: Component, "data-test-id": dataTestId, children, role, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, ...props }: FlexProps): JSX_2.Element;
580
581
  displayName: string;
581
582
  };
582
583
 
@@ -737,7 +738,7 @@ declare const ForwardedRefTextFieldRoot: ForwardRefExoticComponent<TextInputProp
737
738
  declare const ForwardedRefTextFieldSlot: ForwardRefExoticComponent<TextFieldSlotProps & RefAttributes<HTMLDivElement>>;
738
739
 
739
740
  export declare const Grid: {
740
- ({ as: Component, "data-test-id": dataTestId, children, ...props }: GridProps): JSX_2.Element;
741
+ ({ as: Component, "data-test-id": dataTestId, children, role, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, ...props }: GridProps): JSX_2.Element;
741
742
  displayName: string;
742
743
  };
743
744
 
@@ -1020,7 +1021,7 @@ declare type ScrollAreaProps = {
1020
1021
  };
1021
1022
 
1022
1023
  export declare const Section: {
1023
- ({ "data-test-id": dataTestId, children, ...props }: SectionProps): JSX_2.Element;
1024
+ ({ "data-test-id": dataTestId, children, role, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, ...props }: SectionProps): JSX_2.Element;
1024
1025
  displayName: string;
1025
1026
  };
1026
1027
 
@@ -1402,11 +1403,11 @@ declare type TextInputProps = {
1402
1403
  /**
1403
1404
  * Event handler called when the text input is blurred
1404
1405
  */
1405
- onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
1406
+ onBlur?: (event: FocusEvent_2<HTMLInputElement>) => void;
1406
1407
  /**
1407
1408
  * Event handler called when the text input is focused
1408
1409
  */
1409
- onFocus?: (event: ChangeEvent<HTMLInputElement>) => void;
1410
+ onFocus?: (event: FocusEvent_2<HTMLInputElement>) => void;
1410
1411
  /**
1411
1412
  * Event handler called when a key is pressed
1412
1413
  */