@frontify/fondue-components 4.0.2 → 5.1.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
@@ -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';
@@ -514,6 +515,11 @@ declare type DropdownItemProps = {
514
515
  * The text value of the item that is passed to the onSelect callback.
515
516
  */
516
517
  textValue?: string;
518
+ /**
519
+ * The style of the item.
520
+ * @default "default"
521
+ */
522
+ emphasis?: 'default' | 'danger';
517
523
  /**
518
524
  * Callback that is called when the item is selected.
519
525
  */
@@ -1006,6 +1012,10 @@ declare type ScrollAreaProps = {
1006
1012
  * @default '100%'
1007
1013
  */
1008
1014
  maxWidth?: string | number;
1015
+ /**
1016
+ * Determines if a inset shadow should be shown the edge of the component
1017
+ */
1018
+ showShadow?: boolean;
1009
1019
  'data-test-id'?: string;
1010
1020
  children: ReactNode;
1011
1021
  };
@@ -1393,11 +1403,11 @@ declare type TextInputProps = {
1393
1403
  /**
1394
1404
  * Event handler called when the text input is blurred
1395
1405
  */
1396
- onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
1406
+ onBlur?: (event: FocusEvent_2<HTMLInputElement>) => void;
1397
1407
  /**
1398
1408
  * Event handler called when the text input is focused
1399
1409
  */
1400
- onFocus?: (event: ChangeEvent<HTMLInputElement>) => void;
1410
+ onFocus?: (event: FocusEvent_2<HTMLInputElement>) => void;
1401
1411
  /**
1402
1412
  * Event handler called when a key is pressed
1403
1413
  */