design-system-silkhaus 4.0.0-beta.combine-tailwind-config.1 → 4.0.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/index.d.ts CHANGED
@@ -42,6 +42,13 @@ export declare interface AccordionProps {
42
42
  onStateChange?: (state: boolean) => void;
43
43
  }
44
44
 
45
+ export declare const ActionBar: ({ applyLabel, cancelLabel, onApply, onCancel, }: {
46
+ applyLabel: string;
47
+ cancelLabel: string;
48
+ onApply?: () => void;
49
+ onCancel?: () => void;
50
+ }) => JSX_2.Element;
51
+
45
52
  declare type ActionButtonProps = {
46
53
  label: string;
47
54
  } & ButtonProps;
@@ -502,6 +509,8 @@ export declare const DeleteIcon: FC<{
502
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>>;
@@ -741,7 +750,12 @@ export declare interface ImageViewerProps {
741
750
  isOpen: boolean;
742
751
  setOpen: (state: boolean) => void;
743
752
  images: ImageItem[];
744
- index?: number;
753
+ index?: number /**
754
+ * Used for RTL.
755
+ * Pass this as true when you have direction=rtl in your HTML
756
+ * @default false
757
+ */;
758
+ rtl?: boolean;
745
759
  }
746
760
 
747
761
  export declare const InfoIcon: FC<{
@@ -921,6 +935,14 @@ export declare const MagnifyGlassIcon: FC<{
921
935
  className?: string;
922
936
  }>;
923
937
 
938
+ export declare const MailIcon: FC<{
939
+ className?: string;
940
+ }>;
941
+
942
+ export declare const MaintenanceIcon: FC<{
943
+ className?: string;
944
+ }>;
945
+
924
946
  export declare const MessageIcon: FC<{
925
947
  className?: string;
926
948
  }>;
@@ -950,6 +972,8 @@ export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivEle
950
972
  rtl?: boolean;
951
973
  }
952
974
 
975
+ export declare const MobileMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
976
+
953
977
  export declare const MobileMultiSelectFilterDropDown: ForwardRefExoticComponent<MobileMultiSelectFilterDropDownProps & RefAttributes<HTMLDivElement>>;
954
978
 
955
979
  export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttributes<HTMLDivElement> {
@@ -1003,6 +1027,39 @@ export declare const MoneyIcon: FC<{
1003
1027
  className?: string;
1004
1028
  }>;
1005
1029
 
1030
+ export declare type MonthIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
1031
+
1032
+ export declare type MonthRange = {
1033
+ startDate: MonthYear;
1034
+ endDate?: MonthYear;
1035
+ };
1036
+
1037
+ export declare const MonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
1038
+
1039
+ export declare type MonthRangePickerProps = {
1040
+ minDate: MonthYear;
1041
+ maxDate: MonthYear;
1042
+ value?: MonthRange;
1043
+ onChange?: (value: MonthRange, shortcut: ShortcutsKey) => void;
1044
+ trigger?: ReactNode;
1045
+ triggerContainerClassName?: string;
1046
+ disabled?: boolean;
1047
+ placeholder?: string;
1048
+ /**
1049
+ * Pass this callback function if you want to override the default selected value display text.
1050
+ * By default the dropdown will display the selected dates in the format of "MMM YY - MMM YY"
1051
+ */
1052
+ getSelectedValueDisplayText?: (value?: MonthRange, placeholder?: string) => string;
1053
+ shortcutLabels: ShortcutsProps['labels'];
1054
+ applyLabel?: string;
1055
+ cancelLabel?: string;
1056
+ };
1057
+
1058
+ export declare type MonthYear = {
1059
+ month: MonthIndex;
1060
+ year: number;
1061
+ };
1062
+
1006
1063
  export declare const MoonIcon: FC<{
1007
1064
  className?: string;
1008
1065
  }>;
@@ -1483,6 +1540,15 @@ export declare const ShareIcon: FC<{
1483
1540
  className?: string;
1484
1541
  }>;
1485
1542
 
1543
+ declare type ShortcutsKey = 'custom' | 'currentMonth' | 'lastMonth' | 'last3Months' | 'last12Months' | 'allTime';
1544
+
1545
+ declare type ShortcutsProps = {
1546
+ labels: Record<ShortcutsKey, string>;
1547
+ value?: ShortcutsKey;
1548
+ onChange?: (value: ShortcutsKey) => void;
1549
+ className?: string;
1550
+ };
1551
+
1486
1552
  export declare const SingleBuildingIcon: FC<{
1487
1553
  className?: string;
1488
1554
  }>;
@@ -1896,14 +1962,30 @@ declare const textVariants: {
1896
1962
  readonly lineHeight: "var(--SmallTitle-3Regular-line-height)";
1897
1963
  readonly fontWeight: "var(--font-weight-semibold)";
1898
1964
  }];
1965
+ readonly smallBodyRegular: readonly ["15px", {
1966
+ readonly lineHeight: "24px";
1967
+ readonly fontWeight: "var(--font-weight-normal)";
1968
+ }];
1969
+ readonly smallBodyEmphasized: readonly ["15px", {
1970
+ readonly lineHeight: "24px";
1971
+ readonly fontWeight: "var(--font-weight-semibold)";
1972
+ }];
1899
1973
  readonly smallBody1Regular: readonly ["var(--SmallBody-1Regular-font-size)", {
1900
1974
  readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
1901
1975
  readonly fontWeight: "var(--SmallBody-1Regular-font-weight)";
1902
1976
  }];
1977
+ readonly smallBody1Emphasized: readonly ["var(--SmallBody-1Regular-font-size)", {
1978
+ readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
1979
+ readonly fontWeight: "var(--font-weight-semibold)";
1980
+ }];
1903
1981
  readonly smallBody2Regular: readonly ["var(--SmallBody-2Regular-font-size)", {
1904
1982
  readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
1905
1983
  readonly fontWeight: "var(--SmallBody-2Regular-font-weight)";
1906
1984
  }];
1985
+ readonly smallBody2Emphasized: readonly ["var(--SmallBody-2Regular-font-size)", {
1986
+ readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
1987
+ readonly fontWeight: "var(--font-weight-semibold)";
1988
+ }];
1907
1989
  readonly smallSubheadRegular: readonly ["var(--SmallSubhead-Regular-font-size)", {
1908
1990
  readonly lineHeight: "var(--SmallSubhead-Regular-line-height)";
1909
1991
  readonly fontWeight: "var(--font-weight-normal)";
@@ -2226,6 +2308,9 @@ export declare const useDocumentSize: () => {
2226
2308
  documentWidth: number;
2227
2309
  documentHeight: number;
2228
2310
  screenSize: "mobile" | "tablet" | "desktop";
2311
+ isMobile: boolean;
2312
+ isTablet: boolean;
2313
+ isDesktop: boolean;
2229
2314
  };
2230
2315
 
2231
2316
  export declare const WarningHollowIcon: FC<{