design-system-silkhaus 3.12.0-beta.month-range-picker.1 → 3.12.0-beta.month-range-picker.3
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/app/index.js +7 -277
- package/dist/{ButtonsGroupSelector-Dw7UzSrk.js → index-xY5AZ_GX.js} +1750 -1490
- package/dist/index.d.ts +22 -1
- package/dist/index.js +5792 -5525
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -500,6 +500,13 @@ export declare const DeleteIcon: FC<{
|
|
|
500
500
|
className?: string;
|
|
501
501
|
}>;
|
|
502
502
|
|
|
503
|
+
export declare const DesktopActionBar: ({ applyLabel, cancelLabel, onApply, onCancel, }: {
|
|
504
|
+
applyLabel: string;
|
|
505
|
+
cancelLabel: string;
|
|
506
|
+
onApply?: () => void;
|
|
507
|
+
onCancel?: () => void;
|
|
508
|
+
}) => JSX_2.Element;
|
|
509
|
+
|
|
503
510
|
export declare const desktopMinWidth: number;
|
|
504
511
|
|
|
505
512
|
export declare const DesktopMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
@@ -952,6 +959,8 @@ export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivEle
|
|
|
952
959
|
rtl?: boolean;
|
|
953
960
|
}
|
|
954
961
|
|
|
962
|
+
export declare const MobileMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
963
|
+
|
|
955
964
|
export declare const MobileMultiSelectFilterDropDown: ForwardRefExoticComponent<MobileMultiSelectFilterDropDownProps & RefAttributes<HTMLDivElement>>;
|
|
956
965
|
|
|
957
966
|
export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1018,7 +1027,7 @@ export declare type MonthRangePickerProps = {
|
|
|
1018
1027
|
minDate: MonthYear;
|
|
1019
1028
|
maxDate: MonthYear;
|
|
1020
1029
|
value?: MonthRange;
|
|
1021
|
-
onChange?: (value: MonthRange) => void;
|
|
1030
|
+
onChange?: (value: MonthRange, shortcut: ShortcutsKey) => void;
|
|
1022
1031
|
trigger?: ReactNode;
|
|
1023
1032
|
triggerContainerClassName?: string;
|
|
1024
1033
|
disabled?: boolean;
|
|
@@ -1028,6 +1037,9 @@ export declare type MonthRangePickerProps = {
|
|
|
1028
1037
|
* By default the dropdown will display the selected dates in the format of "MMM YY - MMM YY"
|
|
1029
1038
|
*/
|
|
1030
1039
|
getSelectedValueDisplayText?: (value?: MonthRange, placeholder?: string) => string;
|
|
1040
|
+
shortcutLabels: ShortcutsProps['labels'];
|
|
1041
|
+
applyLabel?: string;
|
|
1042
|
+
cancelLabel?: string;
|
|
1031
1043
|
};
|
|
1032
1044
|
|
|
1033
1045
|
export declare type MonthYear = {
|
|
@@ -1515,6 +1527,15 @@ export declare const ShareIcon: FC<{
|
|
|
1515
1527
|
className?: string;
|
|
1516
1528
|
}>;
|
|
1517
1529
|
|
|
1530
|
+
declare type ShortcutsKey = 'custom' | 'currentMonth' | 'lastMonth' | 'last3Months' | 'last12Months' | 'allTime';
|
|
1531
|
+
|
|
1532
|
+
declare type ShortcutsProps = {
|
|
1533
|
+
labels: Record<ShortcutsKey, string>;
|
|
1534
|
+
value?: ShortcutsKey;
|
|
1535
|
+
onChange?: (value: ShortcutsKey) => void;
|
|
1536
|
+
className?: string;
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1518
1539
|
export declare const SingleBuildingIcon: FC<{
|
|
1519
1540
|
className?: string;
|
|
1520
1541
|
}>;
|