design-system-silkhaus 3.11.0 → 3.12.0-beta.month-range-picker.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.
- package/dist/{ButtonsGroupSelector-Da7wwKtY.js → ButtonsGroupSelector-Dw7UzSrk.js} +477 -468
- package/dist/app/index.js +2 -2
- package/dist/index.d.ts +67 -0
- package/dist/index.js +6250 -5956
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +28 -0
- package/package.json +1 -1
package/dist/app/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var I = (s, e, a) => e in s ? J(s, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
X.call(e, a) && I(s, a, e[a]);
|
|
11
11
|
return s;
|
|
12
12
|
}, k = (s, e) => K(s, L(e));
|
|
13
|
-
import { j as d, p as Y, u as Z, o as _, i as O, s as ss, r as es, v as ds, d as as, e as ls, f as ts, g as rs, a as m, F as ns, A as is, h as os,
|
|
14
|
-
import { w as ks } from "../ButtonsGroupSelector-
|
|
13
|
+
import { j as d, p as Y, u as Z, o as _, i as O, s as ss, r as es, v as ds, d as as, e as ls, f as ts, g as rs, a as m, F as ns, A as is, h as os, x as cs, y as us, C as fs, l as xs, k as ms, n as ps } from "../ButtonsGroupSelector-Dw7UzSrk.js";
|
|
14
|
+
import { w as ks } from "../ButtonsGroupSelector-Dw7UzSrk.js";
|
|
15
15
|
import { useState as b } from "react";
|
|
16
16
|
const hs = (s) => window.innerWidth < Y ? /* @__PURE__ */ d.jsx(R, x({}, s)) : /* @__PURE__ */ d.jsx(M, x({}, s));
|
|
17
17
|
hs.displayName = "Dropdown";
|
package/dist/index.d.ts
CHANGED
|
@@ -500,8 +500,17 @@ 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
|
|
|
512
|
+
export declare const DesktopMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
513
|
+
|
|
505
514
|
export declare const DesktopPopover: FC<PropsWithChildren<PopoverProps>>;
|
|
506
515
|
|
|
507
516
|
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
@@ -1003,6 +1012,39 @@ export declare const MoneyIcon: FC<{
|
|
|
1003
1012
|
className?: string;
|
|
1004
1013
|
}>;
|
|
1005
1014
|
|
|
1015
|
+
export declare type MonthIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
1016
|
+
|
|
1017
|
+
export declare type MonthRange = {
|
|
1018
|
+
startDate: MonthYear;
|
|
1019
|
+
endDate?: MonthYear;
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
export declare const MonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
1023
|
+
|
|
1024
|
+
export declare type MonthRangePickerProps = {
|
|
1025
|
+
minDate: MonthYear;
|
|
1026
|
+
maxDate: MonthYear;
|
|
1027
|
+
value?: MonthRange;
|
|
1028
|
+
onChange?: (value: MonthRange) => void;
|
|
1029
|
+
trigger?: ReactNode;
|
|
1030
|
+
triggerContainerClassName?: string;
|
|
1031
|
+
disabled?: boolean;
|
|
1032
|
+
placeholder?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* Pass this callback function if you want to override the default selected value display text.
|
|
1035
|
+
* By default the dropdown will display the selected dates in the format of "MMM YY - MMM YY"
|
|
1036
|
+
*/
|
|
1037
|
+
getSelectedValueDisplayText?: (value?: MonthRange, placeholder?: string) => string;
|
|
1038
|
+
shortcutLabels: ShortcutsProps['labels'];
|
|
1039
|
+
applyLabel?: string;
|
|
1040
|
+
cancelLabel?: string;
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
export declare type MonthYear = {
|
|
1044
|
+
month: MonthIndex;
|
|
1045
|
+
year: number;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1006
1048
|
export declare const MoonIcon: FC<{
|
|
1007
1049
|
className?: string;
|
|
1008
1050
|
}>;
|
|
@@ -1483,6 +1525,15 @@ export declare const ShareIcon: FC<{
|
|
|
1483
1525
|
className?: string;
|
|
1484
1526
|
}>;
|
|
1485
1527
|
|
|
1528
|
+
declare type ShortcutsKey = 'custom' | 'currentMonth' | 'lastMonth' | 'last3Months' | 'last12Months' | 'allTime';
|
|
1529
|
+
|
|
1530
|
+
declare type ShortcutsProps = {
|
|
1531
|
+
labels: Record<ShortcutsKey, string>;
|
|
1532
|
+
value?: ShortcutsKey;
|
|
1533
|
+
onChange?: (value: ShortcutsKey) => void;
|
|
1534
|
+
className?: string;
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1486
1537
|
export declare const SingleBuildingIcon: FC<{
|
|
1487
1538
|
className?: string;
|
|
1488
1539
|
}>;
|
|
@@ -1880,14 +1931,30 @@ declare const textVariants: {
|
|
|
1880
1931
|
readonly lineHeight: "var(--SmallTitle-3Regular-line-height)";
|
|
1881
1932
|
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1882
1933
|
}];
|
|
1934
|
+
readonly smallBodyRegular: readonly ["15px", {
|
|
1935
|
+
readonly lineHeight: "24px";
|
|
1936
|
+
readonly fontWeight: "var(--font-weight-normal)";
|
|
1937
|
+
}];
|
|
1938
|
+
readonly smallBodyEmphasized: readonly ["15px", {
|
|
1939
|
+
readonly lineHeight: "24px";
|
|
1940
|
+
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1941
|
+
}];
|
|
1883
1942
|
readonly smallBody1Regular: readonly ["var(--SmallBody-1Regular-font-size)", {
|
|
1884
1943
|
readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
|
|
1885
1944
|
readonly fontWeight: "var(--SmallBody-1Regular-font-weight)";
|
|
1886
1945
|
}];
|
|
1946
|
+
readonly smallBody1Emphasized: readonly ["var(--SmallBody-1Regular-font-size)", {
|
|
1947
|
+
readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
|
|
1948
|
+
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1949
|
+
}];
|
|
1887
1950
|
readonly smallBody2Regular: readonly ["var(--SmallBody-2Regular-font-size)", {
|
|
1888
1951
|
readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
|
|
1889
1952
|
readonly fontWeight: "var(--SmallBody-2Regular-font-weight)";
|
|
1890
1953
|
}];
|
|
1954
|
+
readonly smallBody2Emphasized: readonly ["var(--SmallBody-2Regular-font-size)", {
|
|
1955
|
+
readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
|
|
1956
|
+
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1957
|
+
}];
|
|
1891
1958
|
readonly smallSubheadRegular: readonly ["var(--SmallSubhead-Regular-font-size)", {
|
|
1892
1959
|
readonly lineHeight: "var(--SmallSubhead-Regular-line-height)";
|
|
1893
1960
|
readonly fontWeight: "var(--font-weight-normal)";
|