@design-system-rte/react 1.12.1 → 1.12.2
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,7 +1,9 @@
|
|
|
1
|
-
import { DateSegmentEnum } from '../../../../core';
|
|
1
|
+
import { DateSegmentEnum, TimeFormat } from '../../../../core';
|
|
2
2
|
export declare const getNextSegment: (seg: DateSegmentEnum) => DateSegmentEnum;
|
|
3
3
|
export declare const getPrevSegment: (seg: DateSegmentEnum) => DateSegmentEnum;
|
|
4
4
|
export declare const getIncreasedValueWithBounds: (current: number, max: number, increment?: number) => number;
|
|
5
5
|
export declare const getDecreasedValueWithBounds: (current: number, max: number, decrement?: number) => number;
|
|
6
6
|
export declare const formatNumberToParseSegmentValue: (value: number, segment?: DateSegmentEnum) => string;
|
|
7
7
|
export declare const computeDateSegmentRanges: () => Record<DateSegmentEnum, [number, number]>;
|
|
8
|
+
export declare const areSameDate: (firstDate: Date | null, secondDate: Date | null) => boolean;
|
|
9
|
+
export declare const areSameTime: (firstTime: TimeFormat | null, secondTime: TimeFormat | null) => boolean;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { SelectProps as coreSelectProps } from '../../../../core/components/select/select.interface';
|
|
2
|
-
interface SingleSelectProps extends Omit<coreSelectProps, "value"> {
|
|
2
|
+
interface SingleSelectProps extends Omit<coreSelectProps, "value" | "onChange"> {
|
|
3
3
|
multiple?: false;
|
|
4
4
|
value?: string;
|
|
5
5
|
header?: React.ReactNode;
|
|
6
6
|
footer?: React.ReactNode;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
7
8
|
}
|
|
8
|
-
interface MultiSelectProps extends Omit<coreSelectProps, "value"> {
|
|
9
|
+
interface MultiSelectProps extends Omit<coreSelectProps, "value" | "onChange"> {
|
|
9
10
|
multiple: true;
|
|
10
11
|
value?: string[];
|
|
11
12
|
header?: React.ReactNode;
|
|
12
13
|
footer?: React.ReactNode;
|
|
14
|
+
onChange?: (value: string[]) => void;
|
|
13
15
|
}
|
|
14
16
|
export type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
15
17
|
declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLDivElement>>;
|