design-system-silkhaus 3.11.0 → 3.12.0-beta.month-range-picker.1

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 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, D as cs, x as us, C as fs, l as xs, k as ms, n as ps } from "../ButtonsGroupSelector-Da7wwKtY.js";
14
- import { w as ks } from "../ButtonsGroupSelector-Da7wwKtY.js";
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
@@ -502,6 +502,8 @@ export declare const DeleteIcon: FC<{
502
502
 
503
503
  export declare const desktopMinWidth: number;
504
504
 
505
+ export declare const DesktopMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
506
+
505
507
  export declare const DesktopPopover: FC<PropsWithChildren<PopoverProps>>;
506
508
 
507
509
  export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
@@ -1003,6 +1005,36 @@ export declare const MoneyIcon: FC<{
1003
1005
  className?: string;
1004
1006
  }>;
1005
1007
 
1008
+ export declare type MonthIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
1009
+
1010
+ export declare type MonthRange = {
1011
+ startDate: MonthYear;
1012
+ endDate?: MonthYear;
1013
+ };
1014
+
1015
+ export declare const MonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
1016
+
1017
+ export declare type MonthRangePickerProps = {
1018
+ minDate: MonthYear;
1019
+ maxDate: MonthYear;
1020
+ value?: MonthRange;
1021
+ onChange?: (value: MonthRange) => void;
1022
+ trigger?: ReactNode;
1023
+ triggerContainerClassName?: string;
1024
+ disabled?: boolean;
1025
+ placeholder?: string;
1026
+ /**
1027
+ * Pass this callback function if you want to override the default selected value display text.
1028
+ * By default the dropdown will display the selected dates in the format of "MMM YY - MMM YY"
1029
+ */
1030
+ getSelectedValueDisplayText?: (value?: MonthRange, placeholder?: string) => string;
1031
+ };
1032
+
1033
+ export declare type MonthYear = {
1034
+ month: MonthIndex;
1035
+ year: number;
1036
+ };
1037
+
1006
1038
  export declare const MoonIcon: FC<{
1007
1039
  className?: string;
1008
1040
  }>;
@@ -1880,14 +1912,30 @@ declare const textVariants: {
1880
1912
  readonly lineHeight: "var(--SmallTitle-3Regular-line-height)";
1881
1913
  readonly fontWeight: "var(--font-weight-semibold)";
1882
1914
  }];
1915
+ readonly smallBodyRegular: readonly ["15px", {
1916
+ readonly lineHeight: "24px";
1917
+ readonly fontWeight: "var(--font-weight-normal)";
1918
+ }];
1919
+ readonly smallBodyEmphasized: readonly ["15px", {
1920
+ readonly lineHeight: "24px";
1921
+ readonly fontWeight: "var(--font-weight-semibold)";
1922
+ }];
1883
1923
  readonly smallBody1Regular: readonly ["var(--SmallBody-1Regular-font-size)", {
1884
1924
  readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
1885
1925
  readonly fontWeight: "var(--SmallBody-1Regular-font-weight)";
1886
1926
  }];
1927
+ readonly smallBody1Emphasized: readonly ["var(--SmallBody-1Regular-font-size)", {
1928
+ readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
1929
+ readonly fontWeight: "var(--font-weight-semibold)";
1930
+ }];
1887
1931
  readonly smallBody2Regular: readonly ["var(--SmallBody-2Regular-font-size)", {
1888
1932
  readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
1889
1933
  readonly fontWeight: "var(--SmallBody-2Regular-font-weight)";
1890
1934
  }];
1935
+ readonly smallBody2Emphasized: readonly ["var(--SmallBody-2Regular-font-size)", {
1936
+ readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
1937
+ readonly fontWeight: "var(--font-weight-semibold)";
1938
+ }];
1891
1939
  readonly smallSubheadRegular: readonly ["var(--SmallSubhead-Regular-font-size)", {
1892
1940
  readonly lineHeight: "var(--SmallSubhead-Regular-line-height)";
1893
1941
  readonly fontWeight: "var(--font-weight-normal)";