@fattureincloud/fic-design-system 0.19.29 → 0.19.30
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.
@@ -6,6 +6,7 @@ export interface WrapperProps {
|
|
6
6
|
isDisabled: boolean;
|
7
7
|
customColor?: paletteColor;
|
8
8
|
withoutPadding: boolean;
|
9
|
+
isTemporary: boolean;
|
9
10
|
}
|
10
11
|
export declare const sidebarItemHeight = 44;
|
11
12
|
export declare const Dropdown: import("styled-components").StyledComponent<({ className, content }: import("./types").SidebarItemDropdownProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -19,6 +19,8 @@ export interface SidebarItemProps {
|
|
19
19
|
customProps?: CustomSidebarItemProps;
|
20
20
|
href?: string;
|
21
21
|
badgeConfig?: SidebarBadgeConfigProps;
|
22
|
+
isTemporary?: boolean;
|
23
|
+
onClose?: () => void;
|
22
24
|
}
|
23
25
|
export interface CustomSidebarItemProps {
|
24
26
|
color?: paletteColor;
|
@@ -34,7 +36,9 @@ export declare enum SidebarBadgeConfigType {
|
|
34
36
|
COUNTER = 0,
|
35
37
|
ICON = 1,
|
36
38
|
DOT = 2,
|
37
|
-
COUNTER_ICON = 3
|
39
|
+
COUNTER_ICON = 3,
|
40
|
+
TEXT_TAG = 4,
|
41
|
+
CLOSING_ICON = 5
|
38
42
|
}
|
39
43
|
declare type BadgeBaseConfig = {
|
40
44
|
size?: BadgeSize;
|
@@ -56,7 +60,15 @@ interface BadgeCounterIconConfig extends BadgeBaseConfig {
|
|
56
60
|
icon: IconProps;
|
57
61
|
counter: number | string;
|
58
62
|
}
|
59
|
-
|
63
|
+
interface BadgeTextTagConfig extends BadgeBaseConfig {
|
64
|
+
type: SidebarBadgeConfigType.TEXT_TAG;
|
65
|
+
text: string;
|
66
|
+
}
|
67
|
+
interface BadgeClosingIconConfig extends BadgeBaseConfig {
|
68
|
+
type: SidebarBadgeConfigType.CLOSING_ICON;
|
69
|
+
icon: IconProps;
|
70
|
+
}
|
71
|
+
export declare type SidebarBadgeConfigProps = BadgeCounterConfig | BadgeIconConfig | BadgeDotConfig | BadgeCounterIconConfig | BadgeTextTagConfig | BadgeClosingIconConfig;
|
60
72
|
declare type StatusType = 'normal' | 'active' | 'disabled';
|
61
73
|
export interface SidebarItemStyles extends colorsPalette {
|
62
74
|
hoverColor: paletteColor;
|