@livechat/design-system-react-components 2.2.2 → 2.3.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/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/components/AccordionAnimatedLabel.d.ts +3 -0
- package/dist/components/Accordion/components/AccordionMultilineElement.d.ts +6 -0
- package/dist/components/Accordion/helpers.d.ts +10 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/stories-helpers.d.ts +4 -0
- package/dist/components/Accordion/types.d.ts +45 -0
- package/dist/components/ActionBar/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar/ActionBarItem.d.ts +3 -0
- package/dist/components/ActionBar/constants.d.ts +3 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/ActionBar/types.d.ts +45 -0
- package/dist/components/ActionCard/ActionCard.d.ts +4 -0
- package/dist/components/ActionCard/index.d.ts +2 -0
- package/dist/components/ActionCard/types.d.ts +23 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +3 -0
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +3 -0
- package/dist/components/ActionMenu/index.d.ts +3 -0
- package/dist/components/ActionMenu/stories-constants.d.ts +15 -0
- package/dist/components/ActionMenu/types.d.ts +80 -0
- package/dist/components/Alert/Alert.d.ts +29 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AppFrame/AppFrame.d.ts +3 -0
- package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +21 -0
- package/dist/components/AppFrame/components/MobileNavigation/MobileNavigation.d.ts +3 -0
- package/dist/components/AppFrame/components/MobileNavigation/types.d.ts +8 -0
- package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +3 -0
- package/dist/components/AppFrame/components/Navigation/types.d.ts +8 -0
- package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +3 -0
- package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +16 -0
- package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +3 -0
- package/dist/components/AppFrame/components/NavigationItem/types.d.ts +40 -0
- package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +45 -0
- package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +15 -0
- package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +59 -0
- package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigation/types.d.ts +28 -0
- package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +32 -0
- package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +44 -0
- package/dist/components/AppFrame/components/index.d.ts +10 -0
- package/dist/components/AppFrame/index.d.ts +2 -0
- package/dist/components/AppFrame/stories-helpers.d.ts +19 -0
- package/dist/components/AppFrame/types.d.ts +47 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts +13 -0
- package/dist/components/AutoComplete/helpers.d.ts +7 -0
- package/dist/components/AutoComplete/index.d.ts +5 -0
- package/dist/components/AutoComplete/types.d.ts +27 -0
- package/dist/components/Avatar/Avatar.d.ts +42 -0
- package/dist/components/Avatar/Avatar.helpers.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/types.d.ts +8 -0
- package/dist/components/Badge/Badge.d.ts +27 -0
- package/dist/components/Badge/Badge.helpers.d.ts +1 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +70 -0
- package/dist/components/Button/Button.helpers.d.ts +6 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +30 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +16 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +4 -0
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +2 -0
- package/dist/components/DatePicker/RangeDatePicker.d.ts +17 -0
- package/dist/components/DatePicker/helpers.d.ts +17 -0
- package/dist/components/DatePicker/hooks.d.ts +7 -0
- package/dist/components/DatePicker/index.d.ts +3 -0
- package/dist/components/DatePicker/types.d.ts +101 -0
- package/dist/components/DetailsCard/DetailsCard.d.ts +40 -0
- package/dist/components/DetailsCard/index.d.ts +2 -0
- package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +8 -0
- package/dist/components/DetailsCardInfo/index.d.ts +1 -0
- package/dist/components/FieldDescription/FieldDescription.d.ts +3 -0
- package/dist/components/FieldDescription/index.d.ts +1 -0
- package/dist/components/FieldError/FieldError.d.ts +3 -0
- package/dist/components/FieldError/index.d.ts +1 -0
- package/dist/components/FieldGroup/FieldGroup.d.ts +8 -0
- package/dist/components/FieldGroup/index.d.ts +1 -0
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +42 -0
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
- package/dist/components/FileUploadProgress/index.d.ts +2 -0
- package/dist/components/Form/Form.d.ts +16 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/FormField/FormField.d.ts +40 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/FormGroup/FormGroup.d.ts +16 -0
- package/dist/components/FormGroup/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +32 -0
- package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +11 -0
- package/dist/components/Icon/IconsShowcase/constans.d.ts +3 -0
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +3 -0
- package/dist/components/Icon/IconsShowcase/types.d.ts +9 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +3 -0
- package/dist/components/Input/Input.d.ts +29 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/InviteAgents/InviteAgents.d.ts +3 -0
- package/dist/components/InviteAgents/components/AnimatedButton/AnimatedButton.d.ts +24 -0
- package/dist/components/InviteAgents/helpers.d.ts +4 -0
- package/dist/components/InviteAgents/index.d.ts +2 -0
- package/dist/components/InviteAgents/types.d.ts +34 -0
- package/dist/components/Link/Link.d.ts +14 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Loader/Loader.d.ts +20 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +25 -0
- package/dist/components/Modal/StoriesComponents.d.ts +4 -0
- package/dist/components/Modal/components/ActionModalContent.d.ts +29 -0
- package/dist/components/Modal/components/ModalBase.d.ts +24 -0
- package/dist/components/Modal/components/ModalCloseButton.d.ts +7 -0
- package/dist/components/Modal/components/ModalHeader.d.ts +26 -0
- package/dist/components/Modal/components/ModalPortal.d.ts +8 -0
- package/dist/components/Modal/index.d.ts +11 -0
- package/dist/components/NumericInput/NumericInput.d.ts +12 -0
- package/dist/components/NumericInput/index.d.ts +1 -0
- package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +3 -0
- package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +3 -0
- package/dist/components/OnboardingChecklist/components/index.d.ts +1 -0
- package/dist/components/OnboardingChecklist/index.d.ts +2 -0
- package/dist/components/OnboardingChecklist/types.d.ts +97 -0
- package/dist/components/Picker/Picker.d.ts +3 -0
- package/dist/components/Picker/components/PickerList.d.ts +27 -0
- package/dist/components/Picker/components/PickerListItem.d.ts +14 -0
- package/dist/components/Picker/components/PickerTrigger.d.ts +18 -0
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +23 -0
- package/dist/components/Picker/constants.d.ts +40 -0
- package/dist/components/Picker/helpers.d.ts +6 -0
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +36 -0
- package/dist/components/Picker/hooks/usePickerItems.d.ts +23 -0
- package/dist/components/Picker/index.d.ts +3 -0
- package/dist/components/Picker/types.d.ts +143 -0
- package/dist/components/Popover/Popover.d.ts +3 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/types.d.ts +65 -0
- package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +4 -0
- package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +10 -0
- package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +9 -0
- package/dist/components/ProductSwitcher/constants.d.ts +7 -0
- package/dist/components/ProductSwitcher/helpers.d.ts +10 -0
- package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +14 -0
- package/dist/components/ProductSwitcher/index.d.ts +4 -0
- package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +1 -0
- package/dist/components/ProductSwitcher/types.d.ts +46 -0
- package/dist/components/Progress/Progress.helpers.d.ts +3 -0
- package/dist/components/Progress/ProgressBar.d.ts +21 -0
- package/dist/components/Progress/ProgressCircle.d.ts +21 -0
- package/dist/components/Progress/constants.d.ts +3 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/PromoBanner/PromoBanner.d.ts +43 -0
- package/dist/components/PromoBanner/index.d.ts +1 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +45 -0
- package/dist/components/PromoBannerV2/constants.d.ts +1 -0
- package/dist/components/PromoBannerV2/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.d.ts +7 -0
- package/dist/components/RadioButton/index.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +40 -0
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +39 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/Skeleton/SkeletonAvatar.d.ts +16 -0
- package/dist/components/Skeleton/SkeletonText.d.ts +16 -0
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +16 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +13 -0
- package/dist/components/StatusBadge/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +47 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Tab/Tab.d.ts +31 -0
- package/dist/components/Tab/TabsWrapper.d.ts +3 -0
- package/dist/components/Tab/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/constants.d.ts +2 -0
- package/dist/components/Tag/index.d.ts +3 -0
- package/dist/components/Tag/types.d.ts +55 -0
- package/dist/components/TagInput/TagInput.d.ts +3 -0
- package/dist/components/TagInput/components/EditableTag.d.ts +13 -0
- package/dist/components/TagInput/components/EditableTagContent.d.ts +11 -0
- package/dist/components/TagInput/components/EmailTagInput.d.ts +5 -0
- package/dist/components/TagInput/index.d.ts +4 -0
- package/dist/components/TagInput/types.d.ts +41 -0
- package/dist/components/Textarea/Textarea.d.ts +6 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +16 -0
- package/dist/components/Toast/ToastWrapper.d.ts +20 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.helpers.d.ts +10 -0
- package/dist/components/Tooltip/components/Info.d.ts +3 -0
- package/dist/components/Tooltip/components/Interactive.d.ts +3 -0
- package/dist/components/Tooltip/components/Reports.d.ts +7 -0
- package/dist/components/Tooltip/components/Simple.d.ts +4 -0
- package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +8 -0
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +12 -0
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +16 -0
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
- package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +9 -0
- package/dist/components/Tooltip/components/index.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/types.d.ts +199 -0
- package/dist/components/Typography/Display.d.ts +18 -0
- package/dist/components/Typography/Heading.d.ts +19 -0
- package/dist/components/Typography/Text.d.ts +31 -0
- package/dist/components/Typography/index.d.ts +4 -0
- package/dist/components/Typography/types.d.ts +4 -0
- package/dist/components/UpdateBadge/UpdateBadge.d.ts +2 -0
- package/dist/components/UpdateBadge/index.d.ts +1 -0
- package/dist/components/UploadBar/UploadBar.d.ts +49 -0
- package/dist/components/UploadBar/index.d.ts +1 -0
- package/dist/foundations/design-token.d.ts +374 -0
- package/dist/foundations/index.d.ts +5 -0
- package/dist/foundations/radius-token.d.ts +13 -0
- package/dist/foundations/shadow-token.d.ts +24 -0
- package/dist/foundations/spacing-token.d.ts +22 -0
- package/dist/foundations/transition-token.d.ts +17 -0
- package/dist/hooks/helpers.d.ts +3 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/types.d.ts +13 -0
- package/dist/hooks/useAnimations.d.ts +12 -0
- package/dist/hooks/useHeightResizer.d.ts +3 -0
- package/dist/hooks/useMobileViewDetector.d.ts +3 -0
- package/dist/hooks/useSharedResizeObserver.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +55 -0
- package/dist/index.js +1435 -1440
- package/dist/providers/AppFrameProvider.d.ts +14 -0
- package/dist/providers/ThemeProvider.d.ts +20 -0
- package/dist/providers/constants.d.ts +4 -0
- package/dist/providers/helpers.d.ts +4 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/types.d.ts +1 -0
- package/dist/utils/PdfIcon.d.ts +2 -0
- package/dist/utils/getDesignTokenWithOpacity.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/keyCodes.d.ts +12 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/plural.d.ts +1 -0
- package/dist/utils/story-parameters.d.ts +3 -0
- package/dist/utils/types.d.ts +16 -0
- package/package.json +2 -2
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentCoreProps } from '../../../../utils/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface ISideNavigationItemProps extends ComponentCoreProps {
|
|
4
|
+
/**
|
|
5
|
+
* The label of the item
|
|
6
|
+
*/
|
|
7
|
+
label: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Custom element on the right side of the side navigation item
|
|
10
|
+
*/
|
|
11
|
+
rightNode?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Custom element on the left side of the side navigation item
|
|
14
|
+
*/
|
|
15
|
+
leftNode?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Specify whether the icon space should be kept
|
|
18
|
+
*/
|
|
19
|
+
shouldKeepIconSpace?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The URL to navigate to
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specify whether the item is active
|
|
26
|
+
*/
|
|
27
|
+
isActive?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Specify whether the item is seen as the main one
|
|
30
|
+
*/
|
|
31
|
+
isMainEntry?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The function to call on click
|
|
34
|
+
*/
|
|
35
|
+
onClick: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* The function to call on item hover
|
|
38
|
+
*/
|
|
39
|
+
onItemHover?: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* Specify whether the icon should be hidden
|
|
42
|
+
*/
|
|
43
|
+
isIconHidden?: boolean;
|
|
44
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { SideNavigation } from './SideNavigation/SideNavigation';
|
|
2
|
+
export { SideNavigationGroup } from './SideNavigationGroup/SideNavigationGroup';
|
|
3
|
+
export { SideNavigationItem } from './SideNavigationItem/SideNavigationItem';
|
|
4
|
+
export { NavigationGroup } from './NavigationGroup/NavigationGroup';
|
|
5
|
+
export { NavigationItem } from './NavigationItem/NavigationItem';
|
|
6
|
+
export { Navigation } from './Navigation/Navigation';
|
|
7
|
+
export { NavigationTopBar, NavigationTopBarAlert, NavigationTopBarTitle, } from './NavigationTopBar/NavigationTopBar';
|
|
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';
|
|
10
|
+
export { MobileNavigation } from './MobileNavigation/MobileNavigation';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ExampleAppContentProps {
|
|
3
|
+
showToggle: boolean;
|
|
4
|
+
alerts?: boolean[];
|
|
5
|
+
setAlerts?: (alerts: boolean[]) => void;
|
|
6
|
+
topBarVisible: boolean;
|
|
7
|
+
setTopBarVisible: (visible: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ExampleAppContent: React.FC<ExampleAppContentProps>;
|
|
10
|
+
export declare const ExampleTopBar: React.FC<{
|
|
11
|
+
visibleAlerts: boolean[];
|
|
12
|
+
topBarVisible: boolean;
|
|
13
|
+
setAlerts: (alerts: boolean[]) => void;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const getBadgeContent: (item: string) => "dot" | "alert" | 5 | undefined;
|
|
16
|
+
export declare const getChatsMenu: (activeSubItem: number, handler: (o: number) => void) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const getEngageSubMenu: (activeSubItem: number, handler: (o: number) => void) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const getArchivesSubMenu: (activeSubItem: number, handler: (o: number) => void) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComponentCoreProps } from '../../utils/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface IAppFrameProps extends ComponentCoreProps {
|
|
4
|
+
/**
|
|
5
|
+
* It will display your app in the content area
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* It will display navigation elements
|
|
10
|
+
*/
|
|
11
|
+
navigation: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* It will display mobile navigation elements
|
|
14
|
+
*/
|
|
15
|
+
mobileNavigation: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* It will display the side navigation bar
|
|
18
|
+
*/
|
|
19
|
+
sideNavigation?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* It will display the top bar with passed element
|
|
22
|
+
*/
|
|
23
|
+
topBar?: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* The CSS class for the top bar
|
|
26
|
+
*/
|
|
27
|
+
topBarClassName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The CSS class for the sub navigation bar
|
|
30
|
+
*/
|
|
31
|
+
sideNavigationContainerClassName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The CSS class for the content container
|
|
34
|
+
*/
|
|
35
|
+
contentClassName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The value that will determine on which resolution mobile view will be displayed
|
|
38
|
+
* @default 705
|
|
39
|
+
*/
|
|
40
|
+
mobileViewBreakpoint?: number;
|
|
41
|
+
}
|
|
42
|
+
export type { INavigationProps } from './components/Navigation/types';
|
|
43
|
+
export type { INavigationGroupProps } from './components/NavigationGroup/types';
|
|
44
|
+
export type { INavigationItemProps } from './components/NavigationItem/types';
|
|
45
|
+
export type { ISideNavigationProps } from './components/SideNavigation/types';
|
|
46
|
+
export type { ISideNavigationGroupProps } from './components/SideNavigationGroup/types';
|
|
47
|
+
export type { ISideNavigationItemProps } from './components/SideNavigationItem/types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AutoCompleteProps } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Text input with autocomplete functionality. The autocomplete list is displayed below the input and is accessible via the keyboard
|
|
5
|
+
* and mouse. The list is filtered based on the input value.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <AutoComplete
|
|
9
|
+
* options={['Paul', 'Adam', 'John']}
|
|
10
|
+
* placeholder="Type a name"
|
|
11
|
+
* />
|
|
12
|
+
*/
|
|
13
|
+
export declare const AutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPickerListItem } from '../Picker';
|
|
2
|
+
import { AutoCompleteProps, IAutoCompleteListItem } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const areAllOptionsStrings: (options: AutoCompleteProps['options']) => options is string[];
|
|
5
|
+
export declare const buildOptionsFromStrings: (options: string[]) => IPickerListItem[];
|
|
6
|
+
export declare const buildOptionsFromAutoCompleteListItems: (options: IAutoCompleteListItem[]) => IPickerListItem[];
|
|
7
|
+
export declare const getFilteredPickerItems: (items: IPickerListItem[], single: boolean, hideIfExactMatch: boolean, inputValue: string) => IPickerListItem[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Placement, Strategy } from '@floating-ui/react';
|
|
2
|
+
import { InputProps } from '../Input';
|
|
3
|
+
import { IPickerListItem } from '../Picker';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export type IAutoCompleteListItem = Omit<IPickerListItem, 'key' | 'customElement'> & {
|
|
6
|
+
customElement?: React.ReactElement;
|
|
7
|
+
};
|
|
8
|
+
export interface AutoCompleteProps extends Omit<InputProps, 'type'> {
|
|
9
|
+
/** Options that will be displayed in the picker. If they are strings, they will be converted to `IPickerListItem[]`*/
|
|
10
|
+
options?: string[] | IAutoCompleteListItem[];
|
|
11
|
+
/** If true, disables filtering of the options. Useful for getting options from an external source.*/
|
|
12
|
+
alwaysShowAllOptions?: boolean;
|
|
13
|
+
/** If true, the autocomplete list will be open when the component mounts.*/
|
|
14
|
+
autocompleteOpenOnInit?: boolean;
|
|
15
|
+
/** Minimum height of the list */
|
|
16
|
+
minListHeight?: number;
|
|
17
|
+
/** Maximum height of the list */
|
|
18
|
+
maxListHeight?: number;
|
|
19
|
+
/** Placement of the list */
|
|
20
|
+
placement?: Placement;
|
|
21
|
+
/** Floating strategy */
|
|
22
|
+
floatingStrategy?: Strategy;
|
|
23
|
+
/** Type of the input. If true, only shows one matching item. */
|
|
24
|
+
single?: boolean;
|
|
25
|
+
/** If true, the option list will be hidden if there is only one option and it is an exact match to the input value. */
|
|
26
|
+
hideIfExactMatch?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentCoreProps } from '../../utils/types';
|
|
2
|
+
import { AvatarShape, AvatarSize, AvatarStatus, AvatarType } from './types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface AvatarProps extends ComponentCoreProps {
|
|
5
|
+
/**
|
|
6
|
+
* Alternate text for an image avatar
|
|
7
|
+
*/
|
|
8
|
+
alt?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Specify the background color
|
|
11
|
+
*/
|
|
12
|
+
color?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Specify the avatar shape
|
|
15
|
+
*/
|
|
16
|
+
shape?: AvatarShape;
|
|
17
|
+
/**
|
|
18
|
+
* Specify the avatar size
|
|
19
|
+
*/
|
|
20
|
+
size?: AvatarSize;
|
|
21
|
+
/**
|
|
22
|
+
* Image source for the image avatar
|
|
23
|
+
*/
|
|
24
|
+
src?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Displays status dot
|
|
27
|
+
*/
|
|
28
|
+
status?: AvatarStatus;
|
|
29
|
+
/**
|
|
30
|
+
* Text for an text avatar
|
|
31
|
+
*/
|
|
32
|
+
text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specify the avatar type
|
|
35
|
+
*/
|
|
36
|
+
type: AvatarType;
|
|
37
|
+
/**
|
|
38
|
+
* Displays rim
|
|
39
|
+
*/
|
|
40
|
+
withRim?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const Avatar: React.FC<AvatarProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const AvatarSizes: readonly ["xxxsmall", "xxsmall", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"];
|
|
2
|
+
export declare const AvatarStatuses: readonly ["available", "unavailable", "unknown"];
|
|
3
|
+
export declare const AvatarTypes: readonly ["image", "text"];
|
|
4
|
+
export declare const AvatarShapes: readonly ["circle", "rounded-square"];
|
|
5
|
+
export type AvatarSize = (typeof AvatarSizes)[number];
|
|
6
|
+
export type AvatarStatus = (typeof AvatarStatuses)[number];
|
|
7
|
+
export type AvatarType = (typeof AvatarTypes)[number];
|
|
8
|
+
export type AvatarShape = (typeof AvatarShapes)[number];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Value to display
|
|
5
|
+
*/
|
|
6
|
+
count?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Specify the badge kind
|
|
9
|
+
* @param secondary - is deprecated, use "primary" or "tertiary" instead
|
|
10
|
+
*/
|
|
11
|
+
kind?: 'primary' | 'secondary' | 'tertiary';
|
|
12
|
+
/**
|
|
13
|
+
* The maximum value after which a "+" will be displayed next to the number
|
|
14
|
+
*/
|
|
15
|
+
max?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Specify the badge size
|
|
18
|
+
* @param large - is deprecated, use "medium" or "compact" instead
|
|
19
|
+
*/
|
|
20
|
+
size?: 'large' | 'medium' | 'compact';
|
|
21
|
+
/**
|
|
22
|
+
* Specify the badge type
|
|
23
|
+
* @param dot - is deprecated, use "UpdateBadge" component instead
|
|
24
|
+
*/
|
|
25
|
+
type?: 'counter' | 'alert' | 'dot';
|
|
26
|
+
}
|
|
27
|
+
export declare const Badge: React.FC<React.PropsWithChildren<BadgeProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatCount(count: number, max: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from './Badge';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ButtonKind, ButtonSize } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ButtonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Specify the button kind
|
|
6
|
+
*/
|
|
7
|
+
kind?: ButtonKind;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the button size
|
|
10
|
+
*/
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
/**
|
|
13
|
+
* Set the loading state
|
|
14
|
+
*/
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Set the button for full width
|
|
18
|
+
*/
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Text displayed in loading state
|
|
22
|
+
*/
|
|
23
|
+
loaderLabel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Renders given element
|
|
26
|
+
*/
|
|
27
|
+
icon?: React.ReactElement;
|
|
28
|
+
/**
|
|
29
|
+
* Specify the place to render element given in `icon` prop
|
|
30
|
+
*/
|
|
31
|
+
iconPosition?: 'left' | 'right';
|
|
32
|
+
/**
|
|
33
|
+
* Set to enable animation that will show label on button hover if icon is present
|
|
34
|
+
*/
|
|
35
|
+
animatedLabel?: boolean;
|
|
36
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
37
|
+
export declare const Button: React.ForwardRefExoticComponent<{
|
|
38
|
+
/**
|
|
39
|
+
* Specify the button kind
|
|
40
|
+
*/
|
|
41
|
+
kind?: ButtonKind | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Specify the button size
|
|
44
|
+
*/
|
|
45
|
+
size?: ButtonSize | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Set the loading state
|
|
48
|
+
*/
|
|
49
|
+
loading?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Set the button for full width
|
|
52
|
+
*/
|
|
53
|
+
fullWidth?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Text displayed in loading state
|
|
56
|
+
*/
|
|
57
|
+
loaderLabel?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Renders given element
|
|
60
|
+
*/
|
|
61
|
+
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Specify the place to render element given in `icon` prop
|
|
64
|
+
*/
|
|
65
|
+
iconPosition?: "left" | "right" | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Set to enable animation that will show label on button hover if icon is present
|
|
68
|
+
*/
|
|
69
|
+
animatedLabel?: boolean | undefined;
|
|
70
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonKind } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare const getSpinnerColors: (kind: ButtonKind) => Record<string, string> | undefined;
|
|
4
|
+
export declare const handleMouseInteraction: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>, internalHandler: () => void, userHandler?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
5
|
+
export declare const handleKeyboardInteraction: (event: React.FocusEvent<HTMLButtonElement> | React.FocusEvent<HTMLAnchorElement>, internalHandler: () => void, userHandler?: React.FocusEventHandler<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
6
|
+
export declare const buttonRef: (node: HTMLSpanElement | null, internalHandler: (width: number) => void) => void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast' | 'plain-lock-black' | 'text-lock-black';
|
|
2
|
+
export type ButtonSize = 'xcompact' | 'compact' | 'medium' | 'large';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type CardButtonOptions = Pick<ButtonProps, 'children' | 'kind' | 'onClick'>;
|
|
4
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Alternate text for an image card
|
|
7
|
+
*/
|
|
8
|
+
alt?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Array of card buttons
|
|
11
|
+
*/
|
|
12
|
+
buttonsOptions?: CardButtonOptions[];
|
|
13
|
+
/**
|
|
14
|
+
* Card description
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Element to display in the expandable area
|
|
19
|
+
*/
|
|
20
|
+
expandableContent?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Image source for the image card
|
|
23
|
+
*/
|
|
24
|
+
src?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Card title
|
|
27
|
+
*/
|
|
28
|
+
title?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const Card: React.FC<React.PropsWithChildren<CardProps>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface CheckboxProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify whether the checkbox should be disabled
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Specify whether the checkbox should be checked
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Set the checkbox description
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from './Checkbox';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IRangeDatePickerProps } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const RangeDatePicker: {
|
|
5
|
+
({ options, initialSelectedItemKey, initialFromDate, initialToDate, toMonth, onChange, children, }: IRangeDatePickerProps): ReactElement;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
options: {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
isManual: boolean;
|
|
11
|
+
value: {
|
|
12
|
+
from: undefined;
|
|
13
|
+
to: undefined;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Modifiers } from 'react-day-picker';
|
|
2
|
+
import { ClassNames } from 'react-day-picker/types/ClassNames';
|
|
3
|
+
import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
|
|
4
|
+
|
|
5
|
+
export declare const isDateWithinRange: (date: Date, range: {
|
|
6
|
+
from?: Date;
|
|
7
|
+
to?: Date;
|
|
8
|
+
}) => boolean;
|
|
9
|
+
export declare const calculateDatePickerMonth: (initialFromDate?: Date, initialToDate?: Date, toMonth?: Date) => Date;
|
|
10
|
+
export declare const getRangeDatePickerModifiers: (from?: Date, to?: Date) => Partial<Modifiers>;
|
|
11
|
+
export declare const getSelectedOption: (itemId: string | null, options: IRangeDatePickerOption[]) => IRangeDatePickerOption | undefined;
|
|
12
|
+
export declare const isSelectingFirstDay: (from?: Date, to?: Date) => boolean;
|
|
13
|
+
export declare const getInitialStateFromProps: (props: IRangeDatePickerProps) => Partial<IRangeDatePickerState>;
|
|
14
|
+
export declare const getDatePickerClassNames: (range?: boolean, classNames?: ClassNames) => ClassNames & {
|
|
15
|
+
start: string;
|
|
16
|
+
end: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dispatch, ReducerAction, ReducerState } from 'react';
|
|
2
|
+
import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
|
|
5
|
+
ReducerState<RangeDatePickerReducer>,
|
|
6
|
+
Dispatch<ReducerAction<RangeDatePickerReducer>>
|
|
7
|
+
];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Reducer, Ref, ReactElement } from 'react';
|
|
2
|
+
import { default as ReactDayPicker, DayPickerProps } from 'react-day-picker';
|
|
3
|
+
import { ClassNames } from 'react-day-picker/types/ClassNames';
|
|
4
|
+
|
|
5
|
+
export interface IDatePickerProps extends Omit<DayPickerProps, 'todayButton' | 'showWeekNumbers'> {
|
|
6
|
+
innerRef?: Ref<ReactDayPicker>;
|
|
7
|
+
range?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IDatePickerNavbarProps {
|
|
10
|
+
showPreviousButton?: boolean;
|
|
11
|
+
showNextButton?: boolean;
|
|
12
|
+
month: Date;
|
|
13
|
+
fromMonth?: Date;
|
|
14
|
+
toMonth?: Date;
|
|
15
|
+
numberOfMonths?: number;
|
|
16
|
+
className?: string;
|
|
17
|
+
classNames: ClassNames;
|
|
18
|
+
onPreviousClick?: () => void;
|
|
19
|
+
onNextClick?: () => void;
|
|
20
|
+
onMonthChange: (newMonth: Date) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare enum RangeDatePickerAction {
|
|
23
|
+
NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM",
|
|
24
|
+
NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE",
|
|
25
|
+
CLEAR = "CLEAR",
|
|
26
|
+
SET_FROM = "SET_FROM",
|
|
27
|
+
SET_TO = "SET_TO",
|
|
28
|
+
SELECT_FIRST_DAY = "SELECT_FIRST_DAY",
|
|
29
|
+
SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM",
|
|
30
|
+
SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO",
|
|
31
|
+
CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE"
|
|
32
|
+
}
|
|
33
|
+
export type IRangeDatePickerReducerAction = {
|
|
34
|
+
type: RangeDatePickerAction.NEW_SELECTED_ITEM;
|
|
35
|
+
payload: {
|
|
36
|
+
selectedItem: string | null;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
type: RangeDatePickerAction.NEW_TEMPORARY_TO_VALUE | RangeDatePickerAction.SELECT_FIRST_DAY | RangeDatePickerAction.SELECT_SECOND_DAY_AS_FROM | RangeDatePickerAction.SELECT_SECOND_DAY_AS_TO | RangeDatePickerAction.CURRENT_MONTH_CHANGE;
|
|
40
|
+
payload: {
|
|
41
|
+
date: Date;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
type: RangeDatePickerAction.SET_FROM | RangeDatePickerAction.SET_TO;
|
|
45
|
+
payload: {
|
|
46
|
+
date?: Date;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export interface IRangeDatePickerState {
|
|
50
|
+
selectedItem: string | null;
|
|
51
|
+
from?: Date;
|
|
52
|
+
to?: Date;
|
|
53
|
+
temporaryTo?: Date;
|
|
54
|
+
currentMonth: Date;
|
|
55
|
+
}
|
|
56
|
+
export type RangeDatePickerReducer = Reducer<IRangeDatePickerState, IRangeDatePickerReducerAction>;
|
|
57
|
+
export interface IRangeDatePickerOption {
|
|
58
|
+
id: string;
|
|
59
|
+
label: string;
|
|
60
|
+
isManual?: boolean;
|
|
61
|
+
value: {
|
|
62
|
+
from?: Date;
|
|
63
|
+
to?: Date;
|
|
64
|
+
} | null;
|
|
65
|
+
}
|
|
66
|
+
interface IRangeDatePickerChildrenPayloadDatePicker {
|
|
67
|
+
modifiers?: DayPickerProps['modifiers'];
|
|
68
|
+
initialMonth?: Date;
|
|
69
|
+
month: Date;
|
|
70
|
+
range?: boolean;
|
|
71
|
+
numberOfMonths: number;
|
|
72
|
+
fromMonth?: Date;
|
|
73
|
+
toMonth?: Date;
|
|
74
|
+
selectedDays?: DayPickerProps['selectedDays'];
|
|
75
|
+
disabledDays?: DayPickerProps['disabledDays'];
|
|
76
|
+
onDayMouseEnter: DayPickerProps['onDayMouseEnter'];
|
|
77
|
+
onDayClick(day: Date): void;
|
|
78
|
+
onMonthChange(month: Date): void;
|
|
79
|
+
}
|
|
80
|
+
export interface IRangeDatePickerChildrenPayload {
|
|
81
|
+
select: {
|
|
82
|
+
selected: string | number;
|
|
83
|
+
onItemSelect(itemKey: string | number): void;
|
|
84
|
+
};
|
|
85
|
+
inputs: {
|
|
86
|
+
fromDate?: Date;
|
|
87
|
+
toDate?: Date;
|
|
88
|
+
};
|
|
89
|
+
datepicker: IRangeDatePickerChildrenPayloadDatePicker;
|
|
90
|
+
selectedOption?: IRangeDatePickerOption;
|
|
91
|
+
}
|
|
92
|
+
export interface IRangeDatePickerProps {
|
|
93
|
+
options: IRangeDatePickerOption[];
|
|
94
|
+
initialSelectedItemKey?: string;
|
|
95
|
+
initialFromDate?: Date;
|
|
96
|
+
initialToDate?: Date;
|
|
97
|
+
toMonth?: Date;
|
|
98
|
+
onChange: (selected: IRangeDatePickerOption | null) => void;
|
|
99
|
+
children(payload: IRangeDatePickerChildrenPayload): ReactElement;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IDetailsCardProps {
|
|
3
|
+
/**
|
|
4
|
+
* The CSS class for card container
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Additional element for the label on the left
|
|
9
|
+
*/
|
|
10
|
+
leftNode?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Additional element for the label on the right
|
|
13
|
+
*/
|
|
14
|
+
rightNode?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Set the label
|
|
17
|
+
*/
|
|
18
|
+
label: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Define if divider should be visible
|
|
21
|
+
*/
|
|
22
|
+
withDivider?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Removes the spacing inside the main container
|
|
25
|
+
*/
|
|
26
|
+
fullSpaceContent?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Set if card should be open by default
|
|
29
|
+
*/
|
|
30
|
+
openOnInit?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Set to hide the label on card open
|
|
33
|
+
*/
|
|
34
|
+
hideLabelOnOpen?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Callback function called when the card label is clicked
|
|
37
|
+
*/
|
|
38
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLDivElement>) => void;
|
|
39
|
+
}
|
|
40
|
+
export declare const DetailsCard: React.FC<React.PropsWithChildren<IDetailsCardProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DetailsCardInfo } from './DetailsCardInfo';
|