@livechat/design-system-react-components 1.34.0 → 1.35.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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentCoreProps } from '../../../../utils/types';
|
|
3
|
+
export interface IExpirationCounterProps extends ComponentCoreProps {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the item
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* The number of days left
|
|
10
|
+
*/
|
|
11
|
+
daysLeft: number;
|
|
12
|
+
/**
|
|
13
|
+
* The URL to navigate to
|
|
14
|
+
*/
|
|
15
|
+
url?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The function to call on click
|
|
18
|
+
*/
|
|
19
|
+
onClick: (e: React.MouseEvent<HTMLAnchorElement>, id: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ExpirationCounter: React.FC<IExpirationCounterProps>;
|
|
@@ -6,3 +6,4 @@ export { NavigationItem } from './NavigationItem/NavigationItem';
|
|
|
6
6
|
export { Navigation } from './Navigation/Navigation';
|
|
7
7
|
export { NavigationTopBar, NavigationTopBarAlert, NavigationTopBarTitle, } from './NavigationTopBar/NavigationTopBar';
|
|
8
8
|
export { SIDE_NAVIGATION_ITEM_TEST_ID, SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID, SIDE_NAVIGATION_PARENT_ICON_TEST_ID, } from './SideNavigationItem/constants';
|
|
9
|
+
export { ExpirationCounter } from './ExpirationCounter/ExpirationCounter';
|