@design-system-rte/react 2.5.0 → 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.
- package/dist/components/pickers/baseInputPicker/BaseInputPicker.d.ts +5 -1
- package/dist/components/pickers/timepicker/TimePicker.d.ts +1 -1
- package/dist/components/pickers/timepicker/hooks/useTimePickerInternalValue.d.ts +1 -0
- package/dist/components/textInput/TextInput.d.ts +1 -1
- package/dist/components/toast/toastQueue/ToastQueueContext.d.ts +1 -0
- package/dist/components/toast/toastQueue/useToastQueueContext.d.ts +1 -0
- package/dist/react-package.cjs +1 -1
- package/dist/react-package.js +5465 -5360
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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 { TimePickerProps as coreTimePickerProps } from '../../../../../core';
|
|
2
|
-
interface TimePickerProps extends coreTimePickerProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue"
|
|
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;
|
|
@@ -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"
|
|
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[];
|