design-system-silkhaus 2.16.3 → 2.17.0-beta.notifications.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/index.cjs +45 -45
- package/dist/index.d.ts +62 -1
- package/dist/index.js +8955 -8681
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -347,6 +347,8 @@ export declare const DeleteIcon: FC<{
|
|
|
347
347
|
|
|
348
348
|
export declare const desktopMinWidth: number;
|
|
349
349
|
|
|
350
|
+
export declare const DesktopPopover: FC<PropsWithChildren<PopoverProps>>;
|
|
351
|
+
|
|
350
352
|
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
351
353
|
|
|
352
354
|
export declare const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -653,6 +655,8 @@ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttrib
|
|
|
653
655
|
disabled?: boolean;
|
|
654
656
|
}
|
|
655
657
|
|
|
658
|
+
export declare const MobilePopover: FC<PropsWithChildren<PopoverProps>>;
|
|
659
|
+
|
|
656
660
|
export declare const MobileSelectCardDropDown: ForwardRefExoticComponent<MobileSelectCardDropDownProps & RefAttributes<HTMLDivElement>>;
|
|
657
661
|
|
|
658
662
|
export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -684,6 +688,19 @@ export declare const MoonIcon: FC<{
|
|
|
684
688
|
className?: string;
|
|
685
689
|
}>;
|
|
686
690
|
|
|
691
|
+
export declare const NotificationItem: FC<NotificationItemProps>;
|
|
692
|
+
|
|
693
|
+
export declare type NotificationItemProps = {
|
|
694
|
+
id?: string | number;
|
|
695
|
+
className?: string;
|
|
696
|
+
title: string;
|
|
697
|
+
description1: string;
|
|
698
|
+
description2?: string;
|
|
699
|
+
thumbnailUrl?: string;
|
|
700
|
+
isRead?: boolean;
|
|
701
|
+
onClick?: (item: NotificationItemProps) => void;
|
|
702
|
+
};
|
|
703
|
+
|
|
687
704
|
export declare const OpenNewIcon: FC<{
|
|
688
705
|
className?: string;
|
|
689
706
|
}>;
|
|
@@ -818,6 +835,50 @@ export declare const PlusCircleIcon: FC<{
|
|
|
818
835
|
className?: string;
|
|
819
836
|
}>;
|
|
820
837
|
|
|
838
|
+
/**
|
|
839
|
+
* A component that displays a floating popover with the `content` on click of the `trigger` element for desktop
|
|
840
|
+
* and for mobile it displays a dialog that slides from the bottom
|
|
841
|
+
*/
|
|
842
|
+
export declare const Popover: FC<PropsWithChildren<PopoverProps>>;
|
|
843
|
+
|
|
844
|
+
export declare interface PopoverProps {
|
|
845
|
+
/**
|
|
846
|
+
* Content of the popover
|
|
847
|
+
*/
|
|
848
|
+
content: ReactNode;
|
|
849
|
+
/**
|
|
850
|
+
* The element that triggers the popover
|
|
851
|
+
*/
|
|
852
|
+
trigger: ReactNode;
|
|
853
|
+
/**
|
|
854
|
+
* The placement of the floating popover. Only used in desktop version
|
|
855
|
+
* @default 'bottom'
|
|
856
|
+
*/
|
|
857
|
+
placement?: Placement;
|
|
858
|
+
/**
|
|
859
|
+
* The trigger of the popover is wrapped in a container. This classname is added to that container
|
|
860
|
+
*/
|
|
861
|
+
triggerContainerClassName?: string;
|
|
862
|
+
/**
|
|
863
|
+
* The content of the popover is wrapped in a container. This classname is added to that container
|
|
864
|
+
*/
|
|
865
|
+
contentContainerClassname?: string;
|
|
866
|
+
/**
|
|
867
|
+
* When set true, popover will not be shown
|
|
868
|
+
* @default false
|
|
869
|
+
*/
|
|
870
|
+
disabled?: boolean;
|
|
871
|
+
/**
|
|
872
|
+
* The offset of the popover from the trigger in px. Only applicable for desktop popover
|
|
873
|
+
* @default 4
|
|
874
|
+
*/
|
|
875
|
+
offset?: number;
|
|
876
|
+
/**
|
|
877
|
+
* The title of the popover
|
|
878
|
+
*/
|
|
879
|
+
title?: string;
|
|
880
|
+
}
|
|
881
|
+
|
|
821
882
|
export declare const PreviewIcon: FC<{
|
|
822
883
|
className?: string;
|
|
823
884
|
}>;
|
|
@@ -1184,7 +1245,7 @@ export declare interface TooltipProps {
|
|
|
1184
1245
|
disabled?: boolean;
|
|
1185
1246
|
/**
|
|
1186
1247
|
* The offset of the tooltip from the trigger in px. Only applicable for desktop tooltip
|
|
1187
|
-
* @
|
|
1248
|
+
* @default 4
|
|
1188
1249
|
*/
|
|
1189
1250
|
offset?: number;
|
|
1190
1251
|
}
|