@indusaction/cms-design-system 0.2.0 → 0.2.1
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 +812 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +170 -3
- package/dist/index.d.ts +170 -3
- package/dist/index.js +802 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import * as antd from 'antd';
|
|
3
|
-
import { ButtonProps as ButtonProps$1, TabsProps as TabsProps$1, DropdownProps as DropdownProps$1, TablePaginationConfig, TagProps as TagProps$1, CardProps as CardProps$1, SkeletonProps as SkeletonProps$1, Skeleton as Skeleton$1, ModalProps as ModalProps$1, Modal as Modal$1, MenuProps, SiderProps, ResultProps, ThemeConfig } from 'antd';
|
|
3
|
+
import { ButtonProps as ButtonProps$1, TabsProps as TabsProps$1, DropdownProps as DropdownProps$1, TablePaginationConfig, TagProps as TagProps$1, CardProps as CardProps$1, StatisticProps, SkeletonProps as SkeletonProps$1, Skeleton as Skeleton$1, ModalProps as ModalProps$1, Modal as Modal$1, MenuProps, SiderProps, ResultProps, AlertProps, notification, message, ThemeConfig } from 'antd';
|
|
4
4
|
export { MenuProps, ModalFuncProps, TabPaneProps } from 'antd';
|
|
5
5
|
import { DropdownButtonProps as DropdownButtonProps$1 } from 'antd/es/dropdown';
|
|
6
6
|
import { TableProps as TableProps$1, ColumnGroupType, ColumnType } from 'antd/es/table';
|
|
7
7
|
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
8
8
|
import { LinkProps as LinkProps$1 } from 'antd/es/typography/Link';
|
|
9
|
+
import * as antd_es_alert_Alert from 'antd/es/alert/Alert';
|
|
9
10
|
|
|
10
11
|
type ButtonVariant = "primary" | "default" | "dashed" | "link" | "text";
|
|
11
12
|
type ButtonSize = "large" | "middle" | "small";
|
|
@@ -103,6 +104,132 @@ interface CardProps extends Omit<CardProps$1, "title" | "loading"> {
|
|
|
103
104
|
}
|
|
104
105
|
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
106
|
|
|
107
|
+
type MetricCardVariant = "solid" | "outlined" | "tinted";
|
|
108
|
+
type MetricCardLayout = "vertical" | "horizontal";
|
|
109
|
+
type MetricCardSize = "small" | "default" | "large";
|
|
110
|
+
type MetricCardStatus = "primary" | "success" | "warning" | "error" | "info" | "neutral";
|
|
111
|
+
interface MetricCardProps {
|
|
112
|
+
title: ReactNode;
|
|
113
|
+
value?: number | string | null;
|
|
114
|
+
description?: ReactNode;
|
|
115
|
+
variant?: MetricCardVariant;
|
|
116
|
+
layout?: MetricCardLayout;
|
|
117
|
+
size?: MetricCardSize;
|
|
118
|
+
status?: MetricCardStatus;
|
|
119
|
+
color?: string;
|
|
120
|
+
textColor?: string;
|
|
121
|
+
icon?: ReactNode;
|
|
122
|
+
prefix?: StatisticProps["prefix"];
|
|
123
|
+
suffix?: StatisticProps["suffix"];
|
|
124
|
+
precision?: StatisticProps["precision"];
|
|
125
|
+
formatter?: StatisticProps["formatter"];
|
|
126
|
+
groupSeparator?: StatisticProps["groupSeparator"];
|
|
127
|
+
decimalSeparator?: StatisticProps["decimalSeparator"];
|
|
128
|
+
loading?: boolean;
|
|
129
|
+
className?: string;
|
|
130
|
+
style?: CSSProperties;
|
|
131
|
+
}
|
|
132
|
+
declare const MetricCard: React.ForwardRefExoticComponent<MetricCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
|
|
134
|
+
interface ChartDatum {
|
|
135
|
+
label: string;
|
|
136
|
+
value: number;
|
|
137
|
+
id?: string;
|
|
138
|
+
color?: string;
|
|
139
|
+
}
|
|
140
|
+
interface GroupedChartDatum {
|
|
141
|
+
label: string;
|
|
142
|
+
values: Record<string, number>;
|
|
143
|
+
id?: string;
|
|
144
|
+
}
|
|
145
|
+
interface ColumnChartProps {
|
|
146
|
+
data: ChartDatum[] | GroupedChartDatum[];
|
|
147
|
+
mode?: "basic" | "stacked" | "grouped";
|
|
148
|
+
seriesColors?: readonly string[];
|
|
149
|
+
showLegend?: boolean;
|
|
150
|
+
height?: number;
|
|
151
|
+
color?: string;
|
|
152
|
+
ariaLabel?: string;
|
|
153
|
+
formatValue?: (value: number) => string;
|
|
154
|
+
style?: CSSProperties;
|
|
155
|
+
}
|
|
156
|
+
declare function ColumnChart({ data, mode, seriesColors, showLegend, height, color, ariaLabel, formatValue, style, }: ColumnChartProps): React.JSX.Element;
|
|
157
|
+
|
|
158
|
+
interface BarChartProps {
|
|
159
|
+
data: ChartDatum[] | GroupedChartDatum[];
|
|
160
|
+
mode?: "basic" | "stacked" | "grouped";
|
|
161
|
+
seriesColors?: readonly string[];
|
|
162
|
+
showLegend?: boolean;
|
|
163
|
+
height?: number;
|
|
164
|
+
color?: string;
|
|
165
|
+
ariaLabel?: string;
|
|
166
|
+
formatValue?: (value: number) => string;
|
|
167
|
+
style?: CSSProperties;
|
|
168
|
+
}
|
|
169
|
+
declare function BarChart({ data, mode, seriesColors, showLegend, height, color, ariaLabel, formatValue, style, }: BarChartProps): React.JSX.Element;
|
|
170
|
+
|
|
171
|
+
interface DonutChartProps {
|
|
172
|
+
data: ChartDatum[];
|
|
173
|
+
height?: number;
|
|
174
|
+
centerLabel?: string;
|
|
175
|
+
ariaLabel?: string;
|
|
176
|
+
showLegend?: boolean;
|
|
177
|
+
formatValue?: (value: number) => string;
|
|
178
|
+
style?: CSSProperties;
|
|
179
|
+
}
|
|
180
|
+
declare function DonutChart({ data, height, centerLabel, ariaLabel, showLegend, formatValue, style, }: DonutChartProps): React.JSX.Element;
|
|
181
|
+
|
|
182
|
+
interface TimeSeriesDatum {
|
|
183
|
+
date: string;
|
|
184
|
+
value: number;
|
|
185
|
+
series?: string;
|
|
186
|
+
id?: string;
|
|
187
|
+
}
|
|
188
|
+
interface TimeSeriesChartProps {
|
|
189
|
+
data: TimeSeriesDatum[];
|
|
190
|
+
type?: "line" | "area" | "step";
|
|
191
|
+
smooth?: boolean;
|
|
192
|
+
height?: number;
|
|
193
|
+
colors?: readonly string[];
|
|
194
|
+
ariaLabel?: string;
|
|
195
|
+
showLegend?: boolean;
|
|
196
|
+
formatValue?: (value: number) => string;
|
|
197
|
+
formatDate?: (date: string) => string;
|
|
198
|
+
threshold?: number;
|
|
199
|
+
thresholdLabel?: string;
|
|
200
|
+
style?: CSSProperties;
|
|
201
|
+
}
|
|
202
|
+
declare function TimeSeriesChart({ data, type, smooth, height, colors: seriesColors, ariaLabel, showLegend, formatValue, formatDate, threshold, thresholdLabel, style, }: TimeSeriesChartProps): React.JSX.Element;
|
|
203
|
+
declare const LineChart: typeof TimeSeriesChart;
|
|
204
|
+
type LineChartProps = TimeSeriesChartProps;
|
|
205
|
+
|
|
206
|
+
interface BulletDatum {
|
|
207
|
+
label: string;
|
|
208
|
+
value: number;
|
|
209
|
+
target: number;
|
|
210
|
+
ranges?: number[];
|
|
211
|
+
max?: number;
|
|
212
|
+
id?: string;
|
|
213
|
+
}
|
|
214
|
+
interface BulletChartProps {
|
|
215
|
+
data: BulletDatum[];
|
|
216
|
+
height?: number;
|
|
217
|
+
ariaLabel?: string;
|
|
218
|
+
formatValue?: (value: number) => string;
|
|
219
|
+
style?: CSSProperties;
|
|
220
|
+
}
|
|
221
|
+
declare function BulletChart({ data, height, ariaLabel, formatValue, style, }: BulletChartProps): React.JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface HistogramChartProps {
|
|
224
|
+
data: number[];
|
|
225
|
+
bins?: "auto" | number;
|
|
226
|
+
height?: number;
|
|
227
|
+
color?: string;
|
|
228
|
+
ariaLabel?: string;
|
|
229
|
+
style?: CSSProperties;
|
|
230
|
+
}
|
|
231
|
+
declare function HistogramChart({ data, bins, height, color, ariaLabel, style, }: HistogramChartProps): React.JSX.Element;
|
|
232
|
+
|
|
106
233
|
type SkeletonProps = SkeletonProps$1;
|
|
107
234
|
interface DetailsSkeletonProps {
|
|
108
235
|
/** Number of label/value placeholder rows. Default: 5 */
|
|
@@ -256,6 +383,45 @@ declare namespace UnauthorizedPage {
|
|
|
256
383
|
var displayName: string;
|
|
257
384
|
}
|
|
258
385
|
|
|
386
|
+
type InlineAlertType = "success" | "info" | "warning" | "error";
|
|
387
|
+
type InlineAlertVariant = "outlined" | "filled";
|
|
388
|
+
interface InlineAlertProps extends Omit<AlertProps, "variant"> {
|
|
389
|
+
type?: InlineAlertType;
|
|
390
|
+
variant?: InlineAlertVariant;
|
|
391
|
+
showIcon?: boolean;
|
|
392
|
+
}
|
|
393
|
+
declare const InlineAlert: React.ForwardRefExoticComponent<InlineAlertProps & React.RefAttributes<antd_es_alert_Alert.AlertRef>>;
|
|
394
|
+
type ToastApi = ReturnType<typeof message.useMessage>[0];
|
|
395
|
+
type ToastConfig = Parameters<ToastApi["open"]>[0];
|
|
396
|
+
type ToastTypeMethod = ToastApi["success"];
|
|
397
|
+
type AntNotificationConfig = Parameters<ReturnType<typeof notification.useNotification>[0]["open"]>[0];
|
|
398
|
+
type NotificationPlacement = NonNullable<AntNotificationConfig["placement"]>;
|
|
399
|
+
interface NotificationConfig extends Omit<AntNotificationConfig, "btn"> {
|
|
400
|
+
actions?: ReactNode;
|
|
401
|
+
btn?: ReactNode;
|
|
402
|
+
}
|
|
403
|
+
type NotificationApi = Omit<ReturnType<typeof notification.useNotification>[0], "open" | "success" | "error" | "info" | "warning"> & {
|
|
404
|
+
open: (config: NotificationConfig) => void;
|
|
405
|
+
success: (config: NotificationConfig) => void;
|
|
406
|
+
error: (config: NotificationConfig) => void;
|
|
407
|
+
info: (config: NotificationConfig) => void;
|
|
408
|
+
warning: (config: NotificationConfig) => void;
|
|
409
|
+
};
|
|
410
|
+
type NotificationTypeMethod = NotificationApi["success"];
|
|
411
|
+
interface NotificationContextValue {
|
|
412
|
+
toast: ToastApi;
|
|
413
|
+
notify: NotificationApi;
|
|
414
|
+
}
|
|
415
|
+
interface NotificationProviderProps {
|
|
416
|
+
children: ReactNode;
|
|
417
|
+
}
|
|
418
|
+
declare const useNotification: () => NotificationContextValue;
|
|
419
|
+
declare const useNotifications: () => NotificationContextValue;
|
|
420
|
+
interface NotificationProviderComponent extends React.FC<NotificationProviderProps> {
|
|
421
|
+
Alert: typeof InlineAlert;
|
|
422
|
+
}
|
|
423
|
+
declare const NotificationProvider: NotificationProviderComponent;
|
|
424
|
+
|
|
259
425
|
declare const colors: {
|
|
260
426
|
readonly brand: {
|
|
261
427
|
readonly primary: "#596993";
|
|
@@ -338,5 +504,6 @@ declare function CollapseIcon({ collapsed, size, className, style, }: IconProps
|
|
|
338
504
|
}): React.JSX.Element;
|
|
339
505
|
declare function MenuIcon({ size, className, style }: IconProps): React.JSX.Element;
|
|
340
506
|
declare function CloseIcon({ size, className, style }: IconProps): React.JSX.Element;
|
|
507
|
+
declare function DownloadIcon({ size, className, style }: IconProps): React.JSX.Element;
|
|
341
508
|
|
|
342
|
-
export { type Breakpoints, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, CloseIcon, CollapseIcon, type Colors, type DetailsSkeletonProps, Dropdown, type DropdownButtonProps, type DropdownInterface, type DropdownProps, type FontSize, Header, type HeaderAction, type HeaderBreadcrumb, type HeaderProps, type HeaderUser, Link, type LinkProps, LogoutIcon, MenuIcon, Modal, type ModalInterface, type ModalProps, NotFoundPage, type NotFoundPageProps, SideNav, type SideNavItem, type SideNavProps, type SideNavUser, Skeleton, type SkeletonInterface, type SkeletonProps, type Spacing, StatusPage, type StatusPageProps, type StatusPageStatus, Table, type TableColumnGroupType, type TableColumnType, type TableColumnsType, type TableMode, type TableProps, type TableQuery, type TableSearchConfig, type TableSortOrder, Tabs, type TabsProps, Tag, type TagProps, ThemeProvider, type ThemeProviderProps, UnauthorizedPage, type UnauthorizedPageProps, breakpoints, colors, fontSize, indusActionLogo, spacing, theme };
|
|
509
|
+
export { BarChart, type BarChartProps, type Breakpoints, BulletChart, type BulletChartProps, type BulletDatum, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type ChartDatum, CloseIcon, CollapseIcon, type Colors, ColumnChart, type ColumnChartProps, type DetailsSkeletonProps, DonutChart, type DonutChartProps, DownloadIcon, Dropdown, type DropdownButtonProps, type DropdownInterface, type DropdownProps, type FontSize, type GroupedChartDatum, Header, type HeaderAction, type HeaderBreadcrumb, type HeaderProps, type HeaderUser, HistogramChart, type HistogramChartProps, InlineAlert, type InlineAlertProps, type InlineAlertType, type InlineAlertVariant, LineChart, type LineChartProps, Link, type LinkProps, LogoutIcon, MenuIcon, MetricCard, type MetricCardLayout, type MetricCardProps, type MetricCardSize, type MetricCardStatus, type MetricCardVariant, Modal, type ModalInterface, type ModalProps, NotFoundPage, type NotFoundPageProps, type NotificationApi, type NotificationConfig, type NotificationContextValue, type NotificationPlacement, NotificationProvider, type NotificationProviderComponent, type NotificationProviderProps, type NotificationTypeMethod, SideNav, type SideNavItem, type SideNavProps, type SideNavUser, Skeleton, type SkeletonInterface, type SkeletonProps, type Spacing, StatusPage, type StatusPageProps, type StatusPageStatus, Table, type TableColumnGroupType, type TableColumnType, type TableColumnsType, type TableMode, type TableProps, type TableQuery, type TableSearchConfig, type TableSortOrder, Tabs, type TabsProps, Tag, type TagProps, ThemeProvider, type ThemeProviderProps, TimeSeriesChart, type TimeSeriesChartProps, type TimeSeriesDatum, type ToastApi, type ToastConfig, type ToastTypeMethod, UnauthorizedPage, type UnauthorizedPageProps, breakpoints, colors, fontSize, indusActionLogo, spacing, theme, useNotification, useNotifications };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import * as antd from 'antd';
|
|
3
|
-
import { ButtonProps as ButtonProps$1, TabsProps as TabsProps$1, DropdownProps as DropdownProps$1, TablePaginationConfig, TagProps as TagProps$1, CardProps as CardProps$1, SkeletonProps as SkeletonProps$1, Skeleton as Skeleton$1, ModalProps as ModalProps$1, Modal as Modal$1, MenuProps, SiderProps, ResultProps, ThemeConfig } from 'antd';
|
|
3
|
+
import { ButtonProps as ButtonProps$1, TabsProps as TabsProps$1, DropdownProps as DropdownProps$1, TablePaginationConfig, TagProps as TagProps$1, CardProps as CardProps$1, StatisticProps, SkeletonProps as SkeletonProps$1, Skeleton as Skeleton$1, ModalProps as ModalProps$1, Modal as Modal$1, MenuProps, SiderProps, ResultProps, AlertProps, notification, message, ThemeConfig } from 'antd';
|
|
4
4
|
export { MenuProps, ModalFuncProps, TabPaneProps } from 'antd';
|
|
5
5
|
import { DropdownButtonProps as DropdownButtonProps$1 } from 'antd/es/dropdown';
|
|
6
6
|
import { TableProps as TableProps$1, ColumnGroupType, ColumnType } from 'antd/es/table';
|
|
7
7
|
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
8
8
|
import { LinkProps as LinkProps$1 } from 'antd/es/typography/Link';
|
|
9
|
+
import * as antd_es_alert_Alert from 'antd/es/alert/Alert';
|
|
9
10
|
|
|
10
11
|
type ButtonVariant = "primary" | "default" | "dashed" | "link" | "text";
|
|
11
12
|
type ButtonSize = "large" | "middle" | "small";
|
|
@@ -103,6 +104,132 @@ interface CardProps extends Omit<CardProps$1, "title" | "loading"> {
|
|
|
103
104
|
}
|
|
104
105
|
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
106
|
|
|
107
|
+
type MetricCardVariant = "solid" | "outlined" | "tinted";
|
|
108
|
+
type MetricCardLayout = "vertical" | "horizontal";
|
|
109
|
+
type MetricCardSize = "small" | "default" | "large";
|
|
110
|
+
type MetricCardStatus = "primary" | "success" | "warning" | "error" | "info" | "neutral";
|
|
111
|
+
interface MetricCardProps {
|
|
112
|
+
title: ReactNode;
|
|
113
|
+
value?: number | string | null;
|
|
114
|
+
description?: ReactNode;
|
|
115
|
+
variant?: MetricCardVariant;
|
|
116
|
+
layout?: MetricCardLayout;
|
|
117
|
+
size?: MetricCardSize;
|
|
118
|
+
status?: MetricCardStatus;
|
|
119
|
+
color?: string;
|
|
120
|
+
textColor?: string;
|
|
121
|
+
icon?: ReactNode;
|
|
122
|
+
prefix?: StatisticProps["prefix"];
|
|
123
|
+
suffix?: StatisticProps["suffix"];
|
|
124
|
+
precision?: StatisticProps["precision"];
|
|
125
|
+
formatter?: StatisticProps["formatter"];
|
|
126
|
+
groupSeparator?: StatisticProps["groupSeparator"];
|
|
127
|
+
decimalSeparator?: StatisticProps["decimalSeparator"];
|
|
128
|
+
loading?: boolean;
|
|
129
|
+
className?: string;
|
|
130
|
+
style?: CSSProperties;
|
|
131
|
+
}
|
|
132
|
+
declare const MetricCard: React.ForwardRefExoticComponent<MetricCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
|
|
134
|
+
interface ChartDatum {
|
|
135
|
+
label: string;
|
|
136
|
+
value: number;
|
|
137
|
+
id?: string;
|
|
138
|
+
color?: string;
|
|
139
|
+
}
|
|
140
|
+
interface GroupedChartDatum {
|
|
141
|
+
label: string;
|
|
142
|
+
values: Record<string, number>;
|
|
143
|
+
id?: string;
|
|
144
|
+
}
|
|
145
|
+
interface ColumnChartProps {
|
|
146
|
+
data: ChartDatum[] | GroupedChartDatum[];
|
|
147
|
+
mode?: "basic" | "stacked" | "grouped";
|
|
148
|
+
seriesColors?: readonly string[];
|
|
149
|
+
showLegend?: boolean;
|
|
150
|
+
height?: number;
|
|
151
|
+
color?: string;
|
|
152
|
+
ariaLabel?: string;
|
|
153
|
+
formatValue?: (value: number) => string;
|
|
154
|
+
style?: CSSProperties;
|
|
155
|
+
}
|
|
156
|
+
declare function ColumnChart({ data, mode, seriesColors, showLegend, height, color, ariaLabel, formatValue, style, }: ColumnChartProps): React.JSX.Element;
|
|
157
|
+
|
|
158
|
+
interface BarChartProps {
|
|
159
|
+
data: ChartDatum[] | GroupedChartDatum[];
|
|
160
|
+
mode?: "basic" | "stacked" | "grouped";
|
|
161
|
+
seriesColors?: readonly string[];
|
|
162
|
+
showLegend?: boolean;
|
|
163
|
+
height?: number;
|
|
164
|
+
color?: string;
|
|
165
|
+
ariaLabel?: string;
|
|
166
|
+
formatValue?: (value: number) => string;
|
|
167
|
+
style?: CSSProperties;
|
|
168
|
+
}
|
|
169
|
+
declare function BarChart({ data, mode, seriesColors, showLegend, height, color, ariaLabel, formatValue, style, }: BarChartProps): React.JSX.Element;
|
|
170
|
+
|
|
171
|
+
interface DonutChartProps {
|
|
172
|
+
data: ChartDatum[];
|
|
173
|
+
height?: number;
|
|
174
|
+
centerLabel?: string;
|
|
175
|
+
ariaLabel?: string;
|
|
176
|
+
showLegend?: boolean;
|
|
177
|
+
formatValue?: (value: number) => string;
|
|
178
|
+
style?: CSSProperties;
|
|
179
|
+
}
|
|
180
|
+
declare function DonutChart({ data, height, centerLabel, ariaLabel, showLegend, formatValue, style, }: DonutChartProps): React.JSX.Element;
|
|
181
|
+
|
|
182
|
+
interface TimeSeriesDatum {
|
|
183
|
+
date: string;
|
|
184
|
+
value: number;
|
|
185
|
+
series?: string;
|
|
186
|
+
id?: string;
|
|
187
|
+
}
|
|
188
|
+
interface TimeSeriesChartProps {
|
|
189
|
+
data: TimeSeriesDatum[];
|
|
190
|
+
type?: "line" | "area" | "step";
|
|
191
|
+
smooth?: boolean;
|
|
192
|
+
height?: number;
|
|
193
|
+
colors?: readonly string[];
|
|
194
|
+
ariaLabel?: string;
|
|
195
|
+
showLegend?: boolean;
|
|
196
|
+
formatValue?: (value: number) => string;
|
|
197
|
+
formatDate?: (date: string) => string;
|
|
198
|
+
threshold?: number;
|
|
199
|
+
thresholdLabel?: string;
|
|
200
|
+
style?: CSSProperties;
|
|
201
|
+
}
|
|
202
|
+
declare function TimeSeriesChart({ data, type, smooth, height, colors: seriesColors, ariaLabel, showLegend, formatValue, formatDate, threshold, thresholdLabel, style, }: TimeSeriesChartProps): React.JSX.Element;
|
|
203
|
+
declare const LineChart: typeof TimeSeriesChart;
|
|
204
|
+
type LineChartProps = TimeSeriesChartProps;
|
|
205
|
+
|
|
206
|
+
interface BulletDatum {
|
|
207
|
+
label: string;
|
|
208
|
+
value: number;
|
|
209
|
+
target: number;
|
|
210
|
+
ranges?: number[];
|
|
211
|
+
max?: number;
|
|
212
|
+
id?: string;
|
|
213
|
+
}
|
|
214
|
+
interface BulletChartProps {
|
|
215
|
+
data: BulletDatum[];
|
|
216
|
+
height?: number;
|
|
217
|
+
ariaLabel?: string;
|
|
218
|
+
formatValue?: (value: number) => string;
|
|
219
|
+
style?: CSSProperties;
|
|
220
|
+
}
|
|
221
|
+
declare function BulletChart({ data, height, ariaLabel, formatValue, style, }: BulletChartProps): React.JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface HistogramChartProps {
|
|
224
|
+
data: number[];
|
|
225
|
+
bins?: "auto" | number;
|
|
226
|
+
height?: number;
|
|
227
|
+
color?: string;
|
|
228
|
+
ariaLabel?: string;
|
|
229
|
+
style?: CSSProperties;
|
|
230
|
+
}
|
|
231
|
+
declare function HistogramChart({ data, bins, height, color, ariaLabel, style, }: HistogramChartProps): React.JSX.Element;
|
|
232
|
+
|
|
106
233
|
type SkeletonProps = SkeletonProps$1;
|
|
107
234
|
interface DetailsSkeletonProps {
|
|
108
235
|
/** Number of label/value placeholder rows. Default: 5 */
|
|
@@ -256,6 +383,45 @@ declare namespace UnauthorizedPage {
|
|
|
256
383
|
var displayName: string;
|
|
257
384
|
}
|
|
258
385
|
|
|
386
|
+
type InlineAlertType = "success" | "info" | "warning" | "error";
|
|
387
|
+
type InlineAlertVariant = "outlined" | "filled";
|
|
388
|
+
interface InlineAlertProps extends Omit<AlertProps, "variant"> {
|
|
389
|
+
type?: InlineAlertType;
|
|
390
|
+
variant?: InlineAlertVariant;
|
|
391
|
+
showIcon?: boolean;
|
|
392
|
+
}
|
|
393
|
+
declare const InlineAlert: React.ForwardRefExoticComponent<InlineAlertProps & React.RefAttributes<antd_es_alert_Alert.AlertRef>>;
|
|
394
|
+
type ToastApi = ReturnType<typeof message.useMessage>[0];
|
|
395
|
+
type ToastConfig = Parameters<ToastApi["open"]>[0];
|
|
396
|
+
type ToastTypeMethod = ToastApi["success"];
|
|
397
|
+
type AntNotificationConfig = Parameters<ReturnType<typeof notification.useNotification>[0]["open"]>[0];
|
|
398
|
+
type NotificationPlacement = NonNullable<AntNotificationConfig["placement"]>;
|
|
399
|
+
interface NotificationConfig extends Omit<AntNotificationConfig, "btn"> {
|
|
400
|
+
actions?: ReactNode;
|
|
401
|
+
btn?: ReactNode;
|
|
402
|
+
}
|
|
403
|
+
type NotificationApi = Omit<ReturnType<typeof notification.useNotification>[0], "open" | "success" | "error" | "info" | "warning"> & {
|
|
404
|
+
open: (config: NotificationConfig) => void;
|
|
405
|
+
success: (config: NotificationConfig) => void;
|
|
406
|
+
error: (config: NotificationConfig) => void;
|
|
407
|
+
info: (config: NotificationConfig) => void;
|
|
408
|
+
warning: (config: NotificationConfig) => void;
|
|
409
|
+
};
|
|
410
|
+
type NotificationTypeMethod = NotificationApi["success"];
|
|
411
|
+
interface NotificationContextValue {
|
|
412
|
+
toast: ToastApi;
|
|
413
|
+
notify: NotificationApi;
|
|
414
|
+
}
|
|
415
|
+
interface NotificationProviderProps {
|
|
416
|
+
children: ReactNode;
|
|
417
|
+
}
|
|
418
|
+
declare const useNotification: () => NotificationContextValue;
|
|
419
|
+
declare const useNotifications: () => NotificationContextValue;
|
|
420
|
+
interface NotificationProviderComponent extends React.FC<NotificationProviderProps> {
|
|
421
|
+
Alert: typeof InlineAlert;
|
|
422
|
+
}
|
|
423
|
+
declare const NotificationProvider: NotificationProviderComponent;
|
|
424
|
+
|
|
259
425
|
declare const colors: {
|
|
260
426
|
readonly brand: {
|
|
261
427
|
readonly primary: "#596993";
|
|
@@ -338,5 +504,6 @@ declare function CollapseIcon({ collapsed, size, className, style, }: IconProps
|
|
|
338
504
|
}): React.JSX.Element;
|
|
339
505
|
declare function MenuIcon({ size, className, style }: IconProps): React.JSX.Element;
|
|
340
506
|
declare function CloseIcon({ size, className, style }: IconProps): React.JSX.Element;
|
|
507
|
+
declare function DownloadIcon({ size, className, style }: IconProps): React.JSX.Element;
|
|
341
508
|
|
|
342
|
-
export { type Breakpoints, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, CloseIcon, CollapseIcon, type Colors, type DetailsSkeletonProps, Dropdown, type DropdownButtonProps, type DropdownInterface, type DropdownProps, type FontSize, Header, type HeaderAction, type HeaderBreadcrumb, type HeaderProps, type HeaderUser, Link, type LinkProps, LogoutIcon, MenuIcon, Modal, type ModalInterface, type ModalProps, NotFoundPage, type NotFoundPageProps, SideNav, type SideNavItem, type SideNavProps, type SideNavUser, Skeleton, type SkeletonInterface, type SkeletonProps, type Spacing, StatusPage, type StatusPageProps, type StatusPageStatus, Table, type TableColumnGroupType, type TableColumnType, type TableColumnsType, type TableMode, type TableProps, type TableQuery, type TableSearchConfig, type TableSortOrder, Tabs, type TabsProps, Tag, type TagProps, ThemeProvider, type ThemeProviderProps, UnauthorizedPage, type UnauthorizedPageProps, breakpoints, colors, fontSize, indusActionLogo, spacing, theme };
|
|
509
|
+
export { BarChart, type BarChartProps, type Breakpoints, BulletChart, type BulletChartProps, type BulletDatum, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type ChartDatum, CloseIcon, CollapseIcon, type Colors, ColumnChart, type ColumnChartProps, type DetailsSkeletonProps, DonutChart, type DonutChartProps, DownloadIcon, Dropdown, type DropdownButtonProps, type DropdownInterface, type DropdownProps, type FontSize, type GroupedChartDatum, Header, type HeaderAction, type HeaderBreadcrumb, type HeaderProps, type HeaderUser, HistogramChart, type HistogramChartProps, InlineAlert, type InlineAlertProps, type InlineAlertType, type InlineAlertVariant, LineChart, type LineChartProps, Link, type LinkProps, LogoutIcon, MenuIcon, MetricCard, type MetricCardLayout, type MetricCardProps, type MetricCardSize, type MetricCardStatus, type MetricCardVariant, Modal, type ModalInterface, type ModalProps, NotFoundPage, type NotFoundPageProps, type NotificationApi, type NotificationConfig, type NotificationContextValue, type NotificationPlacement, NotificationProvider, type NotificationProviderComponent, type NotificationProviderProps, type NotificationTypeMethod, SideNav, type SideNavItem, type SideNavProps, type SideNavUser, Skeleton, type SkeletonInterface, type SkeletonProps, type Spacing, StatusPage, type StatusPageProps, type StatusPageStatus, Table, type TableColumnGroupType, type TableColumnType, type TableColumnsType, type TableMode, type TableProps, type TableQuery, type TableSearchConfig, type TableSortOrder, Tabs, type TabsProps, Tag, type TagProps, ThemeProvider, type ThemeProviderProps, TimeSeriesChart, type TimeSeriesChartProps, type TimeSeriesDatum, type ToastApi, type ToastConfig, type ToastTypeMethod, UnauthorizedPage, type UnauthorizedPageProps, breakpoints, colors, fontSize, indusActionLogo, spacing, theme, useNotification, useNotifications };
|