@design-system-rte/react 2.4.1 → 2.6.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.
@@ -1,6 +1,7 @@
1
1
  import { BaseInputProps } from '../../../../../core/components/common/input/input.interface';
2
2
  export interface BaseInputPickerProps extends BaseInputProps<string> {
3
3
  onChange?: () => void;
4
+ onClickReset?: () => void;
4
5
  icon?: string;
5
6
  isFocused?: boolean;
6
7
  pickerInputRef?: React.RefObject<HTMLInputElement> | ((element: HTMLInputElement) => void);
@@ -17,6 +18,9 @@ export interface BaseInputPickerProps extends BaseInputProps<string> {
17
18
  openButtonAriaLabel?: string;
18
19
  fixedWidth?: boolean;
19
20
  required?: boolean;
21
+ isCompact?: boolean;
22
+ placeholder?: string;
23
+ showResetIcon?: boolean;
20
24
  }
21
- declare const BaseInputPicker: ({ id, value, readOnly, icon, onChange, onFocus, onKeyDown, onMouseUp, onMouseDown, onOpenPicker, onBlur, isFocused, pickerInputRef, pickerRef, openButtonRef, ariaLabelledBy, ariaDescribedBy, isError, disabled, openButtonAriaLabel, fixedWidth, required, }: BaseInputPickerProps) => import("react").JSX.Element;
25
+ declare const BaseInputPicker: ({ id, value, readOnly, icon, onChange, onFocus, onKeyDown, onMouseUp, onMouseDown, onOpenPicker, onClickReset, onBlur, isFocused, pickerInputRef, pickerRef, openButtonRef, ariaLabelledBy, ariaDescribedBy, isError, disabled, openButtonAriaLabel, fixedWidth, required, isCompact, placeholder, showResetIcon, }: BaseInputPickerProps) => import("react").JSX.Element;
22
26
  export default BaseInputPicker;
@@ -1,5 +1,5 @@
1
1
  import { DatepickerProps as CoreDatePickerProps } from '../../../../../core/components/datepicker/datepicker.interface';
2
- interface DatepickerProps extends CoreDatePickerProps, Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "onChange" | "defaultValue"> {
2
+ interface DatepickerProps extends Omit<CoreDatePickerProps, "labelId">, Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "onChange" | "defaultValue"> {
3
3
  }
4
4
  declare const DatePicker: import('react').ForwardRefExoticComponent<DatepickerProps & import('react').RefAttributes<HTMLDivElement>>;
5
5
  export default DatePicker;
@@ -1,5 +1,5 @@
1
1
  import { TimePickerProps as coreTimePickerProps } from '../../../../../core';
2
- interface TimePickerProps extends coreTimePickerProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue" | "placeholder"> {
2
+ interface TimePickerProps extends coreTimePickerProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue"> {
3
3
  }
4
4
  declare const TimePicker: import('react').ForwardRefExoticComponent<TimePickerProps & import('react').RefAttributes<HTMLInputElement>>;
5
5
  export default TimePicker;
@@ -16,5 +16,6 @@ declare const useTimePickerInternalValue: (value?: TimeFormat, incrementConfig?:
16
16
  decreaseMinutes: () => void;
17
17
  increaseHours: () => void;
18
18
  decreaseHours: () => void;
19
+ resetValue: () => void;
19
20
  };
20
21
  export default useTimePickerInternalValue;
@@ -1,6 +1,8 @@
1
1
  import { SegmentProps as CoreSegmentProps } from '../../../../core/components/segmented-control/segmented-control.interface';
2
2
  interface SegmentProps extends CoreSegmentProps {
3
3
  onClick?: (event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
4
+ segmentTabIndex: 0 | -1;
5
+ onSegmentFocus?: () => void;
4
6
  }
5
- declare const Segment: ({ id, icon, labelText, ariaLabel, position, isSelected, onClick, badgeCount, badgeContent, badgeIcon, badgeType, badgeSize, showBadge, appearance, isCompact, ...props }: SegmentProps) => import("react").JSX.Element;
7
+ declare const Segment: ({ id, icon, labelText, ariaLabel, position, isSelected, onClick, badgeCount, badgeContent, badgeIcon, badgeType, badgeSize, showBadge, appearance, isCompact, segmentTabIndex, onSegmentFocus, ...props }: SegmentProps) => import("react").JSX.Element;
6
8
  export default Segment;
@@ -1,6 +1,6 @@
1
1
  import { TextInputProps as CoreTextInputProps } from '../../../../core/components/text-input/text-input.interface';
2
2
  import { InputHTMLAttributes } from 'react';
3
- interface TextInputProps extends CoreTextInputProps, Omit<InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue" | "placeholder"> {
3
+ interface TextInputProps extends CoreTextInputProps, Omit<InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue"> {
4
4
  onChange?: (value: string) => void;
5
5
  onEnterKeyDown?: (value: string) => void;
6
6
  }
@@ -11,6 +11,7 @@ export type ToastQueueItem = {
11
11
  export declare const ToastQueueContext: import('react').Context<{
12
12
  addToQueue: (toast: InputToast) => void;
13
13
  removeFromQueue: (id: string) => void;
14
+ announceToast: (message: string) => () => void;
14
15
  isFirstInQueue: (id: string) => boolean;
15
16
  isInQueue: (id: string) => boolean;
16
17
  queue: ToastQueueItem[];
@@ -1,6 +1,7 @@
1
1
  export declare const useToastQueueContext: () => {
2
2
  addToQueue: (toast: import('./ToastQueueContext').InputToast) => void;
3
3
  removeFromQueue: (id: string) => void;
4
+ announceToast: (message: string) => () => void;
4
5
  isFirstInQueue: (id: string) => boolean;
5
6
  isInQueue: (id: string) => boolean;
6
7
  queue: import('./ToastQueueContext').ToastQueueItem[];