@ngrr/ds 0.1.5 → 0.1.7
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/atoms/Attachment/AttachmentCard/AttachmentCard.d.ts +21 -0
- package/dist/components/atoms/Attachment/AttachmentCard/index.d.ts +2 -0
- package/dist/components/atoms/Attachment/AttachmentChip/AttachmentChip.d.ts +27 -0
- package/dist/components/atoms/Attachment/AttachmentChip/index.d.ts +2 -0
- package/dist/components/atoms/Attachment/AttachmentField/AttachmentField.d.ts +20 -0
- package/dist/components/atoms/Attachment/AttachmentField/index.d.ts +2 -0
- package/dist/components/atoms/Attachment/FileRow/FileRow.d.ts +18 -0
- package/dist/components/atoms/Attachment/FileRow/index.d.ts +2 -0
- package/dist/components/atoms/Attachment/FileThumbnail/FileThumbnail.d.ts +14 -0
- package/dist/components/atoms/Attachment/FileThumbnail/index.d.ts +2 -0
- package/dist/components/atoms/Attachment/index.d.ts +10 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +74 -0
- package/dist/components/atoms/Avatar/index.d.ts +2 -0
- package/dist/components/atoms/Badge/Badge.d.ts +40 -0
- package/dist/components/atoms/Badge/index.d.ts +2 -0
- package/dist/components/atoms/Button/Button.d.ts +158 -0
- package/dist/components/atoms/Button/ToggleButton.d.ts +17 -0
- package/dist/components/atoms/Button/VerticalButton.d.ts +90 -0
- package/dist/components/atoms/Button/index.d.ts +6 -0
- package/dist/components/atoms/ButtonGroup/ButtonGroup.d.ts +17 -0
- package/dist/components/atoms/ButtonGroup/ButtonGroupVertical.d.ts +17 -0
- package/dist/components/atoms/ButtonGroup/SplitButton/SplitButton.d.ts +37 -0
- package/dist/components/atoms/ButtonGroup/SplitButton/index.d.ts +2 -0
- package/dist/components/atoms/ButtonGroup/index.d.ts +6 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +47 -0
- package/dist/components/atoms/Checkbox/index.d.ts +2 -0
- package/dist/components/atoms/Chip/Chip.d.ts +83 -0
- package/dist/components/atoms/Chip/index.d.ts +2 -0
- package/dist/components/atoms/Combobox/Combobox.d.ts +39 -0
- package/dist/components/atoms/Combobox/index.d.ts +2 -0
- package/dist/components/atoms/CustomViewTab/CustomViewTab.d.ts +31 -0
- package/dist/components/atoms/CustomViewTab/index.d.ts +2 -0
- package/dist/components/atoms/DataListCell/DataListCell.d.ts +21 -0
- package/dist/components/atoms/DataListCell/index.d.ts +2 -0
- package/dist/components/atoms/DataTableCell/DataTableCell.d.ts +17 -0
- package/dist/components/atoms/DataTableCell/index.d.ts +2 -0
- package/dist/components/atoms/DataTableHeaderCell/DataTableHeaderCell.d.ts +32 -0
- package/dist/components/atoms/DataTableHeaderCell/index.d.ts +2 -0
- package/dist/components/atoms/DateTimePicker/DateTimePicker.d.ts +48 -0
- package/dist/components/atoms/DateTimePicker/index.d.ts +2 -0
- package/dist/components/atoms/LoadingBar/LoadingBar.d.ts +20 -0
- package/dist/components/atoms/LoadingBar/index.d.ts +2 -0
- package/dist/components/atoms/MenuCell/MenuCell.d.ts +46 -0
- package/dist/components/atoms/MenuCell/index.d.ts +2 -0
- package/dist/components/atoms/NumberInput/NumberInput.d.ts +41 -0
- package/dist/components/atoms/NumberInput/index.d.ts +2 -0
- package/dist/components/atoms/OTPInput/OTPInput.d.ts +42 -0
- package/dist/components/atoms/OTPInput/index.d.ts +2 -0
- package/dist/components/atoms/Pagination/PageSelector.d.ts +13 -0
- package/dist/components/atoms/Pagination/Pagination.d.ts +30 -0
- package/dist/components/atoms/Pagination/index.d.ts +4 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +46 -0
- package/dist/components/atoms/PasswordInput/PasswordRequirement.d.ts +9 -0
- package/dist/components/atoms/PasswordInput/index.d.ts +4 -0
- package/dist/components/atoms/PhoneInput/PhoneInput.d.ts +33 -0
- package/dist/components/atoms/PhoneInput/index.d.ts +2 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +16 -0
- package/dist/components/atoms/ProgressBar/index.d.ts +2 -0
- package/dist/components/atoms/ProgressRing/ProgressRing.d.ts +29 -0
- package/dist/components/atoms/ProgressRing/index.d.ts +2 -0
- package/dist/components/atoms/Radio/Radio.d.ts +46 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/SearchBar/SearchBar.d.ts +28 -0
- package/dist/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/components/atoms/SectionHeader/SectionHeader.d.ts +12 -0
- package/dist/components/atoms/SectionHeader/index.d.ts +2 -0
- package/dist/components/atoms/SegmentControl/SegmentControl.d.ts +22 -0
- package/dist/components/atoms/SegmentControl/SegmentControlSelector.d.ts +19 -0
- package/dist/components/atoms/SegmentControl/index.d.ts +2 -0
- package/dist/components/atoms/Select/Select.d.ts +31 -0
- package/dist/components/atoms/Select/index.d.ts +2 -0
- package/dist/components/atoms/Separator/Separator.d.ts +20 -0
- package/dist/components/atoms/Separator/index.d.ts +2 -0
- package/dist/components/atoms/Shortcut/Shortcut.d.ts +69 -0
- package/dist/components/atoms/Shortcut/index.d.ts +2 -0
- package/dist/components/atoms/SkeletonLoading/SkeletonLoading.d.ts +7 -0
- package/dist/components/atoms/SkeletonLoading/index.d.ts +2 -0
- package/dist/components/atoms/Stat/Stat.d.ts +16 -0
- package/dist/components/atoms/Stat/index.d.ts +2 -0
- package/dist/components/atoms/Switcher/Switcher.d.ts +46 -0
- package/dist/components/atoms/Switcher/index.d.ts +2 -0
- package/dist/components/atoms/Tab/Tab.d.ts +24 -0
- package/dist/components/atoms/Tab/index.d.ts +2 -0
- package/dist/components/atoms/Tag/Tag.d.ts +50 -0
- package/dist/components/atoms/Tag/index.d.ts +2 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +27 -0
- package/dist/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/components/atoms/TextInput/TextInput.d.ts +41 -0
- package/dist/components/atoms/TextInput/index.d.ts +2 -0
- package/dist/components/atoms/UploadArea/UploadArea.d.ts +20 -0
- package/dist/components/atoms/UploadArea/index.d.ts +2 -0
- package/dist/components/atoms/_dev/PlaceholderIcon.d.ts +12 -0
- package/dist/components/molecules/Accordion/Accordion.d.ts +17 -0
- package/dist/components/molecules/Accordion/index.d.ts +2 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +22 -0
- package/dist/components/molecules/Breadcrumbs/BreadcrumbsController.d.ts +23 -0
- package/dist/components/molecules/Breadcrumbs/index.d.ts +4 -0
- package/dist/components/molecules/BulkActionBar/BulkActionBar.d.ts +34 -0
- package/dist/components/molecules/BulkActionBar/index.d.ts +2 -0
- package/dist/components/molecules/Callout/Callout.d.ts +28 -0
- package/dist/components/molecules/Callout/index.d.ts +2 -0
- package/dist/components/molecules/CheckboxField/CheckboxField.d.ts +26 -0
- package/dist/components/molecules/CheckboxField/index.d.ts +2 -0
- package/dist/components/molecules/ChipField/ChipField.d.ts +27 -0
- package/dist/components/molecules/ChipField/index.d.ts +2 -0
- package/dist/components/molecules/ChoiceList/ChoiceList.d.ts +39 -0
- package/dist/components/molecules/ChoiceList/index.d.ts +2 -0
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +52 -0
- package/dist/components/molecules/EmptyState/index.d.ts +2 -0
- package/dist/components/molecules/HorizontalInput/HorizontalInput.d.ts +22 -0
- package/dist/components/molecules/HorizontalInput/index.d.ts +2 -0
- package/dist/components/molecules/MultiChoice/MultiChoice.d.ts +27 -0
- package/dist/components/molecules/MultiChoice/index.d.ts +2 -0
- package/dist/components/molecules/PopoverWrapper/PopoverWrapper.d.ts +23 -0
- package/dist/components/molecules/PopoverWrapper/index.d.ts +2 -0
- package/dist/components/molecules/RichTextEditor/RichTextEditor.d.ts +35 -0
- package/dist/components/molecules/RichTextEditor/index.d.ts +2 -0
- package/dist/components/molecules/SidebarMenuSelector/SidebarMenuSelector.d.ts +25 -0
- package/dist/components/molecules/SidebarMenuSelector/index.d.ts +2 -0
- package/dist/components/molecules/SingleChoice/SingleChoice.d.ts +28 -0
- package/dist/components/molecules/SingleChoice/index.d.ts +2 -0
- package/dist/components/molecules/Slider/Slider.d.ts +33 -0
- package/dist/components/molecules/Slider/index.d.ts +2 -0
- package/dist/components/molecules/Toast/Toast.d.ts +29 -0
- package/dist/components/molecules/Toast/index.d.ts +2 -0
- package/dist/components/molecules/Toolbar/Toolbar.d.ts +13 -0
- package/dist/components/molecules/Toolbar/index.d.ts +2 -0
- package/dist/components/molecules/Tooltip/Tooltip.d.ts +22 -0
- package/dist/components/molecules/Tooltip/index.d.ts +2 -0
- package/dist/components/organisms/AlertDialog/AlertDialog.d.ts +26 -0
- package/dist/components/organisms/AlertDialog/index.d.ts +2 -0
- package/dist/components/organisms/AppShell/AppShell.d.ts +21 -0
- package/dist/components/organisms/AppShell/index.d.ts +2 -0
- package/dist/components/organisms/Card/Card.d.ts +22 -0
- package/dist/components/organisms/Card/index.d.ts +2 -0
- package/dist/components/organisms/Charts/Charts.d.ts +112 -0
- package/dist/components/organisms/Charts/index.d.ts +2 -0
- package/dist/components/organisms/DataTable/DataTable.d.ts +27 -0
- package/dist/components/organisms/DataTable/index.d.ts +2 -0
- package/dist/components/organisms/Drawer/Drawer.d.ts +43 -0
- package/dist/components/organisms/Drawer/index.d.ts +2 -0
- package/dist/components/organisms/Modal/Modal.d.ts +34 -0
- package/dist/components/organisms/Modal/index.d.ts +2 -0
- package/dist/components/organisms/Navbar/Navbar.d.ts +23 -0
- package/dist/components/organisms/Navbar/index.d.ts +2 -0
- package/dist/components/organisms/PopoverMenu/PopoverMenu.d.ts +33 -0
- package/dist/components/organisms/PopoverMenu/index.d.ts +2 -0
- package/dist/components/organisms/Sidebar/Sidebar.d.ts +39 -0
- package/dist/components/organisms/Sidebar/index.d.ts +2 -0
- package/dist/docs/ThemeToggle.d.ts +4 -0
- package/dist/ds-nagarro.es.js +7066 -7025
- package/dist/ds-nagarro.umd.js +69 -74
- package/dist/index.d.ts +151 -0
- package/dist/style.css +1 -1
- package/dist/tokens.css +3 -0
- package/dist/types/common.d.ts +83 -0
- package/package.json +3 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type AlertDialogVariant = 'default' | 'danger';
|
|
3
|
+
export interface AlertDialogProps {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
closeOnOverlayClick?: boolean;
|
|
9
|
+
closeOnEscape?: boolean;
|
|
10
|
+
variant?: AlertDialogVariant;
|
|
11
|
+
title?: string;
|
|
12
|
+
message?: string;
|
|
13
|
+
confirmLabel?: string;
|
|
14
|
+
cancelLabel?: string;
|
|
15
|
+
onConfirm?: () => void;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
requireAcknowledgement?: boolean;
|
|
18
|
+
acknowledgementLabel?: string;
|
|
19
|
+
acknowledgementChecked?: boolean;
|
|
20
|
+
defaultAcknowledgementChecked?: boolean;
|
|
21
|
+
onAcknowledgementChange?: (checked: boolean) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
'aria-label'?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function AlertDialog({ open, defaultOpen, onOpenChange, onClose, closeOnOverlayClick, closeOnEscape, variant, title, message, confirmLabel, cancelLabel, onConfirm, onCancel, requireAcknowledgement, acknowledgementLabel, acknowledgementChecked, defaultAcknowledgementChecked, onAcknowledgementChange, className, 'aria-label': ariaLabel, }: AlertDialogProps): React.ReactPortal | null;
|
|
26
|
+
export default AlertDialog;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AppShellProps {
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
sidebar?: React.ReactNode;
|
|
5
|
+
rightPanel?: React.ReactNode;
|
|
6
|
+
footer?: React.ReactNode;
|
|
7
|
+
sidebarWidth?: number;
|
|
8
|
+
sidebarCollapsed?: boolean;
|
|
9
|
+
minSidebarWidth?: number;
|
|
10
|
+
maxSidebarWidth?: number;
|
|
11
|
+
collapsedSidebarWidth?: number;
|
|
12
|
+
defaultSidebarWidth?: number;
|
|
13
|
+
sidebarResizeStep?: number;
|
|
14
|
+
onSidebarWidthChange?: (nextWidth: number) => void;
|
|
15
|
+
onSidebarCollapsedChange?: (nextCollapsed: boolean) => void;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
'aria-label'?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function AppShell({ header, sidebar, rightPanel, footer, sidebarWidth, sidebarCollapsed, minSidebarWidth, maxSidebarWidth, collapsedSidebarWidth, defaultSidebarWidth, sidebarResizeStep, onSidebarWidthChange, onSidebarCollapsedChange, children, className, 'aria-label': ariaLabel, }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default AppShell;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SectionHeaderSize } from '../../atoms/SectionHeader';
|
|
3
|
+
import { ToolbarSize } from '../../molecules/Toolbar';
|
|
4
|
+
export interface CardProps {
|
|
5
|
+
showHeader?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
headerSize?: SectionHeaderSize;
|
|
9
|
+
headerLeadingControl?: React.ReactNode;
|
|
10
|
+
headerTrailingControl?: React.ReactNode;
|
|
11
|
+
header?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
showBottomBar?: boolean;
|
|
14
|
+
bottomBarSize?: ToolbarSize;
|
|
15
|
+
bottomBarLeftActions?: React.ReactNode;
|
|
16
|
+
bottomBarRightActions?: React.ReactNode;
|
|
17
|
+
bottomBar?: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function Card({ showHeader, title, description, headerSize, headerLeadingControl, headerTrailingControl, header, children, showBottomBar, bottomBarSize, bottomBarLeftActions, bottomBarRightActions, bottomBar, className, 'aria-label': ariaLabel, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default Card;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardProps } from '../Card';
|
|
3
|
+
import { ChartDataPoint, ChartDonutSlice, ChartSeries, ChartState } from '../../../types/common';
|
|
4
|
+
export interface LineChartProps {
|
|
5
|
+
data: ChartDataPoint[];
|
|
6
|
+
xKey: string;
|
|
7
|
+
series: ChartSeries[];
|
|
8
|
+
height?: number;
|
|
9
|
+
state?: ChartState;
|
|
10
|
+
emptyMessage?: string;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
loadingLabel?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function LineChart({ data, xKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface BarChartProps {
|
|
18
|
+
data: ChartDataPoint[];
|
|
19
|
+
xKey: string;
|
|
20
|
+
series: ChartSeries[];
|
|
21
|
+
height?: number;
|
|
22
|
+
state?: ChartState;
|
|
23
|
+
emptyMessage?: string;
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
loadingLabel?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
'aria-label'?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function BarChart({ data, xKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: BarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export interface DonutChartProps {
|
|
31
|
+
data: ChartDonutSlice[];
|
|
32
|
+
height?: number;
|
|
33
|
+
innerRadius?: number;
|
|
34
|
+
outerRadius?: number;
|
|
35
|
+
state?: ChartState;
|
|
36
|
+
emptyMessage?: string;
|
|
37
|
+
errorMessage?: string;
|
|
38
|
+
loadingLabel?: string;
|
|
39
|
+
className?: string;
|
|
40
|
+
'aria-label'?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function DonutChart({ data, height, innerRadius, outerRadius, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: DonutChartProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export interface ChartCardProps extends Omit<CardProps, 'children'> {
|
|
44
|
+
children: React.ReactNode;
|
|
45
|
+
}
|
|
46
|
+
export interface AreaChartProps {
|
|
47
|
+
data: ChartDataPoint[];
|
|
48
|
+
xKey: string;
|
|
49
|
+
series: ChartSeries[];
|
|
50
|
+
height?: number;
|
|
51
|
+
state?: ChartState;
|
|
52
|
+
emptyMessage?: string;
|
|
53
|
+
errorMessage?: string;
|
|
54
|
+
loadingLabel?: string;
|
|
55
|
+
className?: string;
|
|
56
|
+
'aria-label'?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare function AreaChart({ data, xKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: AreaChartProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export interface HorizontalStackedBarChartProps {
|
|
60
|
+
data: ChartDataPoint[];
|
|
61
|
+
categoryKey: string;
|
|
62
|
+
series: ChartSeries[];
|
|
63
|
+
height?: number;
|
|
64
|
+
state?: ChartState;
|
|
65
|
+
emptyMessage?: string;
|
|
66
|
+
errorMessage?: string;
|
|
67
|
+
loadingLabel?: string;
|
|
68
|
+
className?: string;
|
|
69
|
+
'aria-label'?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare function HorizontalStackedBarChart({ data, categoryKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: HorizontalStackedBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export interface StreamgraphChartProps {
|
|
73
|
+
data: ChartDataPoint[];
|
|
74
|
+
xKey: string;
|
|
75
|
+
series: ChartSeries[];
|
|
76
|
+
height?: number;
|
|
77
|
+
state?: ChartState;
|
|
78
|
+
emptyMessage?: string;
|
|
79
|
+
errorMessage?: string;
|
|
80
|
+
loadingLabel?: string;
|
|
81
|
+
className?: string;
|
|
82
|
+
'aria-label'?: string;
|
|
83
|
+
}
|
|
84
|
+
export declare function StreamgraphChart({ data, xKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: StreamgraphChartProps): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
export interface BrushLineChartProps extends Omit<LineChartProps, 'height'> {
|
|
86
|
+
height?: number;
|
|
87
|
+
}
|
|
88
|
+
export declare function BrushLineChart({ data, xKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: BrushLineChartProps): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
export interface XYLineChartProps extends Omit<LineChartProps, 'height'> {
|
|
90
|
+
height?: number;
|
|
91
|
+
}
|
|
92
|
+
export declare function XYLineChart({ data, xKey, series, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: XYLineChartProps): import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
export interface HeatmapChartCell {
|
|
94
|
+
y: string;
|
|
95
|
+
value: number;
|
|
96
|
+
}
|
|
97
|
+
export interface HeatmapChartColumn {
|
|
98
|
+
x: string;
|
|
99
|
+
bins: HeatmapChartCell[];
|
|
100
|
+
}
|
|
101
|
+
export interface HeatmapChartProps {
|
|
102
|
+
data: HeatmapChartColumn[];
|
|
103
|
+
height?: number;
|
|
104
|
+
state?: ChartState;
|
|
105
|
+
emptyMessage?: string;
|
|
106
|
+
errorMessage?: string;
|
|
107
|
+
loadingLabel?: string;
|
|
108
|
+
className?: string;
|
|
109
|
+
'aria-label'?: string;
|
|
110
|
+
}
|
|
111
|
+
export declare function HeatmapChart({ data, height, state, emptyMessage, errorMessage, loadingLabel, className, 'aria-label': ariaLabel, }: HeatmapChartProps): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
export declare function ChartCard({ children, className, ...props }: ChartCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { LineChart, BarChart, DonutChart, AreaChart, HorizontalStackedBarChart, StreamgraphChart, BrushLineChart, XYLineChart, HeatmapChart, ChartCard, } from './Charts';
|
|
2
|
+
export type { LineChartProps, BarChartProps, DonutChartProps, AreaChartProps, HorizontalStackedBarChartProps, StreamgraphChartProps, BrushLineChartProps, XYLineChartProps, HeatmapChartProps, HeatmapChartColumn, HeatmapChartCell, ChartCardProps, } from './Charts';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DataTableColumnDef, DataTableRow, DataTableSortDirection } from '../../../types/common';
|
|
2
|
+
export interface DataTableSortState {
|
|
3
|
+
columnId: string;
|
|
4
|
+
direction: DataTableSortDirection;
|
|
5
|
+
}
|
|
6
|
+
export interface DataTablePaginationState {
|
|
7
|
+
currentPage: number;
|
|
8
|
+
totalPages: number;
|
|
9
|
+
onPageChange: (page: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface DataTableProps {
|
|
12
|
+
columns: DataTableColumnDef[];
|
|
13
|
+
rows: DataTableRow[];
|
|
14
|
+
columnOrder?: string[];
|
|
15
|
+
onColumnOrderChange?: (nextOrder: string[]) => void;
|
|
16
|
+
selectedRowIds?: string[];
|
|
17
|
+
onSelectedRowIdsChange?: (nextSelectedRowIds: string[]) => void;
|
|
18
|
+
sortState?: DataTableSortState | null;
|
|
19
|
+
onSortStateChange?: (nextState: DataTableSortState | null) => void;
|
|
20
|
+
filterState?: Record<string, string>;
|
|
21
|
+
onFilterStateChange?: (next: Record<string, string>) => void;
|
|
22
|
+
pagination?: DataTablePaginationState;
|
|
23
|
+
className?: string;
|
|
24
|
+
'aria-label'?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function DataTable({ columns, rows, columnOrder, onColumnOrderChange, selectedRowIds, onSelectedRowIdsChange, sortState, onSortStateChange, filterState, onFilterStateChange, pagination, className, 'aria-label': ariaLabel, }: DataTableProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default DataTable;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SectionHeaderSize } from '../../atoms/SectionHeader';
|
|
3
|
+
import { ToolbarSize } from '../../molecules/Toolbar';
|
|
4
|
+
export type DrawerVariant = 'overlay' | 'stacked';
|
|
5
|
+
export type DrawerPlacement = 'left' | 'right';
|
|
6
|
+
export interface DrawerProps {
|
|
7
|
+
variant?: DrawerVariant;
|
|
8
|
+
placement?: DrawerPlacement;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
closeOnOverlayClick?: boolean;
|
|
14
|
+
closeOnEscape?: boolean;
|
|
15
|
+
width?: number | string;
|
|
16
|
+
title?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
showHeader?: boolean;
|
|
19
|
+
headerSize?: SectionHeaderSize;
|
|
20
|
+
headerLeadingControl?: React.ReactNode;
|
|
21
|
+
headerTrailingControl?: React.ReactNode;
|
|
22
|
+
showCloseButton?: boolean;
|
|
23
|
+
showToggle?: boolean;
|
|
24
|
+
toggleChecked?: boolean;
|
|
25
|
+
onToggleChange?: (checked: boolean) => void;
|
|
26
|
+
toggleAriaLabel?: string;
|
|
27
|
+
header?: React.ReactNode;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
showBottomBar?: boolean;
|
|
30
|
+
bottomBarSize?: ToolbarSize;
|
|
31
|
+
bottomBarLeftActions?: React.ReactNode;
|
|
32
|
+
bottomBarRightActions?: React.ReactNode;
|
|
33
|
+
bottomBar?: React.ReactNode;
|
|
34
|
+
cancelLabel?: string;
|
|
35
|
+
confirmLabel?: string;
|
|
36
|
+
onCancel?: () => void;
|
|
37
|
+
onConfirm?: () => void;
|
|
38
|
+
className?: string;
|
|
39
|
+
'aria-label'?: string;
|
|
40
|
+
'aria-describedby'?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function Drawer({ variant, placement, open, defaultOpen, onOpenChange, onClose, closeOnOverlayClick, closeOnEscape, width, title, description, showHeader, headerSize, headerLeadingControl, headerTrailingControl, showCloseButton, showToggle, toggleChecked, onToggleChange, toggleAriaLabel, header, children, showBottomBar, bottomBarSize, bottomBarLeftActions, bottomBarRightActions, bottomBar, cancelLabel, confirmLabel, onCancel, onConfirm, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, }: DrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
43
|
+
export default Drawer;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SectionHeaderSize } from '../../atoms/SectionHeader';
|
|
3
|
+
import { ToolbarSize } from '../../molecules/Toolbar';
|
|
4
|
+
export interface ModalProps {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
closeOnOverlayClick?: boolean;
|
|
10
|
+
closeOnEscape?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
showHeader?: boolean;
|
|
14
|
+
headerSize?: SectionHeaderSize;
|
|
15
|
+
headerLeadingControl?: React.ReactNode;
|
|
16
|
+
headerTrailingControl?: React.ReactNode;
|
|
17
|
+
showCloseButton?: boolean;
|
|
18
|
+
header?: React.ReactNode;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
showBottomBar?: boolean;
|
|
21
|
+
bottomBarSize?: ToolbarSize;
|
|
22
|
+
bottomBarLeftActions?: React.ReactNode;
|
|
23
|
+
bottomBarRightActions?: React.ReactNode;
|
|
24
|
+
bottomBar?: React.ReactNode;
|
|
25
|
+
cancelLabel?: string;
|
|
26
|
+
confirmLabel?: string;
|
|
27
|
+
onCancel?: () => void;
|
|
28
|
+
onConfirm?: () => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
'aria-label'?: string;
|
|
31
|
+
'aria-describedby'?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function Modal({ open, defaultOpen, onOpenChange, onClose, closeOnOverlayClick, closeOnEscape, title, description, showHeader, headerSize, headerLeadingControl, headerTrailingControl, showCloseButton, header, children, showBottomBar, bottomBarSize, bottomBarLeftActions, bottomBarRightActions, bottomBar, cancelLabel, confirmLabel, onCancel, onConfirm, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, }: ModalProps): React.ReactPortal | null;
|
|
34
|
+
export default Modal;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BreadcrumbControllerItem, BreadcrumbsControllerProps } from '../../molecules/Breadcrumbs';
|
|
3
|
+
export type NavbarVariant = 'title' | 'breadcrumbs';
|
|
4
|
+
export interface NavbarProps {
|
|
5
|
+
variant?: NavbarVariant;
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
showDescription?: boolean;
|
|
9
|
+
descriptionIcon?: React.ReactNode;
|
|
10
|
+
leftActions?: React.ReactNode;
|
|
11
|
+
rightActions?: React.ReactNode;
|
|
12
|
+
breadcrumbItems?: BreadcrumbControllerItem[];
|
|
13
|
+
breadcrumbMaxVisibleItems?: BreadcrumbsControllerProps['maxVisibleItems'];
|
|
14
|
+
breadcrumbShowEllipsis?: BreadcrumbsControllerProps['showEllipsis'];
|
|
15
|
+
responsiveCollapse?: boolean;
|
|
16
|
+
backOnlyBreakpointPx?: number;
|
|
17
|
+
backLabel?: string;
|
|
18
|
+
onBackClick?: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
'aria-label'?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function Navbar({ variant, title, description, showDescription, descriptionIcon, leftActions, rightActions, breadcrumbItems, breadcrumbMaxVisibleItems, breadcrumbShowEllipsis, responsiveCollapse, backOnlyBreakpointPx, backLabel, onBackClick, className, 'aria-label': ariaLabel, }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Navbar;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SearchBarProps } from '../../atoms/SearchBar';
|
|
3
|
+
import { SegmentControlOption, SegmentControlProps } from '../../atoms/SegmentControl';
|
|
4
|
+
import { ChoiceListItem, ChoiceListSection } from '../../molecules/ChoiceList';
|
|
5
|
+
export type PopoverMenuVariant = 'rich' | 'simple';
|
|
6
|
+
export interface PopoverMenuChoiceList {
|
|
7
|
+
id: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
showHeader?: boolean;
|
|
11
|
+
showSectionHeaders?: boolean;
|
|
12
|
+
sections: ChoiceListSection[];
|
|
13
|
+
}
|
|
14
|
+
export interface PopoverMenuProps {
|
|
15
|
+
variant?: PopoverMenuVariant;
|
|
16
|
+
title?: string;
|
|
17
|
+
showHeader?: boolean;
|
|
18
|
+
showSegmentControl?: boolean;
|
|
19
|
+
segmentControlOptions?: SegmentControlOption[];
|
|
20
|
+
segmentControlProps?: Omit<SegmentControlProps, 'options'>;
|
|
21
|
+
showSearch?: boolean;
|
|
22
|
+
searchProps?: Omit<SearchBarProps, 'variant'>;
|
|
23
|
+
choiceLists?: PopoverMenuChoiceList[];
|
|
24
|
+
simpleItems?: ChoiceListItem[];
|
|
25
|
+
showBottomBar?: boolean;
|
|
26
|
+
bottomBarLeftActions?: React.ReactNode;
|
|
27
|
+
bottomBarRightActions?: React.ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
'aria-label'?: string;
|
|
30
|
+
onEscape?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare function PopoverMenu({ variant, title, showHeader, showSegmentControl, segmentControlOptions, segmentControlProps, showSearch, searchProps, choiceLists, simpleItems, showBottomBar, bottomBarLeftActions, bottomBarRightActions, className, 'aria-label': ariaLabel, onEscape, }: PopoverMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default PopoverMenu;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvatarProps } from '../../atoms/Avatar';
|
|
3
|
+
import { BadgeVariant } from '../../atoms/Badge';
|
|
4
|
+
import { SidebarMenuSelectorProps } from '../../molecules/SidebarMenuSelector';
|
|
5
|
+
export interface SidebarMenuItem {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
showAvatar?: boolean;
|
|
10
|
+
avatarProps?: AvatarProps;
|
|
11
|
+
showBadge?: boolean;
|
|
12
|
+
badgeCount?: number;
|
|
13
|
+
badgeVariant?: BadgeVariant;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface SidebarSection {
|
|
19
|
+
id: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
showDisclosure?: boolean;
|
|
22
|
+
trailingAction?: React.ReactNode;
|
|
23
|
+
items: SidebarMenuItem[];
|
|
24
|
+
separator?: 'before' | 'after' | 'both';
|
|
25
|
+
}
|
|
26
|
+
export interface SidebarProps {
|
|
27
|
+
collapsed?: boolean;
|
|
28
|
+
selector?: React.ReactNode;
|
|
29
|
+
selectorProps?: SidebarMenuSelectorProps;
|
|
30
|
+
showSearch?: boolean;
|
|
31
|
+
searchSlot?: React.ReactNode;
|
|
32
|
+
onCollapsedSearchActivate?: () => void;
|
|
33
|
+
sections: SidebarSection[];
|
|
34
|
+
bottomContent?: React.ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function Sidebar({ collapsed, selector, selectorProps, showSearch, searchSlot, onCollapsedSearchActivate, sections, bottomContent, className, 'aria-label': ariaLabel, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export default Sidebar;
|