opus-react 0.2.20 → 0.2.23
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/README.md +190 -115
- package/dist/index.cjs +5186 -399
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4630 -99
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +841 -8
- package/dist/index.d.ts +841 -8
- package/dist/index.js +5140 -407
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, ChangeEventHandler, CSSProperties } from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, ChangeEventHandler, CSSProperties, RefObject } from 'react';
|
|
3
3
|
|
|
4
4
|
type Theme = "light" | "dark";
|
|
5
5
|
type FieldMode = "stacked" | "flagged";
|
|
6
6
|
type LabelPosition = "left" | "right";
|
|
7
7
|
type ChoiceShape = "round" | "square";
|
|
8
|
+
type ChoiceControlSize = "lg" | "md" | "sm";
|
|
8
9
|
type ChipInputVariant = "filled" | "outlined" | "soft" | "glass" | "gradient";
|
|
9
10
|
type ChipInputPreset = "chip-input" | "tag-input" | "token-input";
|
|
10
11
|
type ChoiceOption = {
|
|
@@ -51,7 +52,7 @@ type SkeletonAnimation = "shimmer" | "pulse" | "none";
|
|
|
51
52
|
type ImageThumbnailSize = "small" | "medium" | "large";
|
|
52
53
|
type ModelThumbnailSize = "small" | "medium" | "large";
|
|
53
54
|
type ChartPalette = "opus" | "cool" | "warm" | "mono";
|
|
54
|
-
type ChartVariant = "area" | "bar-horizontal" | "bar-vertical" | "box-plot" | "bubble" | "bubble-map" | "calendar-heatmap" | "candlestick" | "chord" | "choropleth" | "circle-packing" | "density" | "donut" | "force-directed" | "funnel" | "gantt" | "geo-map" | "grouped-bar" | "heatmap" | "hexbin" | "histogram" | "line" | "milestone-timeline" | "multi-line" | "network" | "pie" | "polar-area" | "pyramid" | "radar" | "ridgeline" | "sankey" | "scatter" | "spline" | "stacked-area" | "stacked-bar" | "stacked-bar-100" | "stream" | "sunburst" | "timeline" | "treemap" | "violin" | "waterfall";
|
|
55
|
+
type ChartVariant = "area" | "bar-horizontal" | "bar-vertical" | "box-plot" | "bubble" | "bubble-map" | "bullet" | "calendar-heatmap" | "candlestick" | "chord" | "choropleth" | "circle-packing" | "contour" | "density" | "donut" | "error-bar" | "force-directed" | "funnel" | "gantt" | "geo-map" | "grouped-bar" | "heatmap" | "hexbin" | "histogram" | "line" | "milestone-timeline" | "multi-line" | "network" | "ohlc" | "parallel-coordinates" | "pareto" | "pie" | "polar-area" | "pyramid" | "radar" | "range-area" | "range-bar" | "ridgeline" | "sankey" | "scatter" | "spline" | "stacked-area" | "stacked-bar" | "stacked-bar-100" | "stream" | "sunburst" | "surface" | "timeline" | "treemap" | "violin" | "waterfall";
|
|
55
56
|
type ToastVerticalPosition = "top" | "bottom";
|
|
56
57
|
type ToastHorizontalPosition = "left" | "right";
|
|
57
58
|
type ToastViewportPosition = {
|
|
@@ -59,6 +60,16 @@ type ToastViewportPosition = {
|
|
|
59
60
|
vertical: ToastVerticalPosition;
|
|
60
61
|
};
|
|
61
62
|
type AccordionGroupType = "single" | "multiple";
|
|
63
|
+
type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger" | "info";
|
|
64
|
+
type BadgeVariant = "solid" | "soft" | "outline";
|
|
65
|
+
type BadgeSize = "sm" | "md";
|
|
66
|
+
type AvatarSize = "sm" | "md" | "lg" | "xl";
|
|
67
|
+
type AvatarShape = "circle" | "rounded";
|
|
68
|
+
type DividerOrientation = "horizontal" | "vertical";
|
|
69
|
+
type DividerTone = "default" | "muted" | "strong";
|
|
70
|
+
type DescriptionListLayout = "stacked" | "inline";
|
|
71
|
+
type ContentTimelineStatus = "default" | "success" | "warning" | "danger" | "muted";
|
|
72
|
+
type StatisticTrend = "up" | "down" | "flat";
|
|
62
73
|
|
|
63
74
|
type ButtonVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "link";
|
|
64
75
|
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -104,16 +115,20 @@ declare function FieldShell({ children, className, compactControl, error, fitCon
|
|
|
104
115
|
|
|
105
116
|
type CheckboxFieldProps = {
|
|
106
117
|
checked: boolean;
|
|
118
|
+
className?: string;
|
|
107
119
|
error?: string;
|
|
120
|
+
fitContent?: boolean;
|
|
108
121
|
help?: string;
|
|
109
122
|
id: string;
|
|
110
123
|
label: string;
|
|
111
124
|
labelPosition?: LabelPosition;
|
|
125
|
+
labelVisuallyHidden?: boolean;
|
|
112
126
|
mode?: FieldMode;
|
|
113
127
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
114
128
|
shape?: ChoiceShape;
|
|
129
|
+
size?: ChoiceControlSize;
|
|
115
130
|
};
|
|
116
|
-
declare function CheckboxField({ checked, error, help, id, label, labelPosition, mode, onChange, shape, }: CheckboxFieldProps): react.JSX.Element;
|
|
131
|
+
declare function CheckboxField({ checked, className, error, fitContent, help, id, label, labelPosition, labelVisuallyHidden, mode, onChange, shape, size, }: CheckboxFieldProps): react.JSX.Element;
|
|
117
132
|
|
|
118
133
|
type ColorFieldProps = {
|
|
119
134
|
error?: string;
|
|
@@ -193,9 +208,10 @@ type RadioGroupProps = {
|
|
|
193
208
|
name: string;
|
|
194
209
|
onChange: (value: string) => void;
|
|
195
210
|
shape?: ChoiceShape;
|
|
211
|
+
size?: ChoiceControlSize;
|
|
196
212
|
value: string | null;
|
|
197
213
|
};
|
|
198
|
-
declare function RadioGroup({ children, error, help, id, label, labelPosition, mode, name, onChange, shape, value, }: RadioGroupProps): react.JSX.Element;
|
|
214
|
+
declare function RadioGroup({ children, error, help, id, label, labelPosition, mode, name, onChange, shape, size, value, }: RadioGroupProps): react.JSX.Element;
|
|
199
215
|
type RadioProps = {
|
|
200
216
|
children?: ReactNode;
|
|
201
217
|
error?: string;
|
|
@@ -235,9 +251,10 @@ type RangeFieldProps = {
|
|
|
235
251
|
mode?: FieldMode;
|
|
236
252
|
step?: number;
|
|
237
253
|
value: number;
|
|
254
|
+
valueUnit?: string;
|
|
238
255
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
239
256
|
};
|
|
240
|
-
declare function RangeField({ error, help, id, label, labelPosition, max, min, mode, step, value, onChange, }: RangeFieldProps): react.JSX.Element;
|
|
257
|
+
declare function RangeField({ error, help, id, label, labelPosition, max, min, mode, step, value, valueUnit, onChange, }: RangeFieldProps): react.JSX.Element;
|
|
241
258
|
|
|
242
259
|
type SelectFieldProps = {
|
|
243
260
|
error?: string;
|
|
@@ -1001,6 +1018,15 @@ type TableProps = {
|
|
|
1001
1018
|
};
|
|
1002
1019
|
declare function Table({ bordered, caption, columns, density, emptyMessage, rows, showCaption, striped, }: TableProps): react.JSX.Element;
|
|
1003
1020
|
|
|
1021
|
+
type DataGridLayout = "flat" | "grouped" | "tree" | "pivot";
|
|
1022
|
+
|
|
1023
|
+
type DataGridPivotConfig = {
|
|
1024
|
+
aggregator?: "sum" | "avg" | "count";
|
|
1025
|
+
columns: string[];
|
|
1026
|
+
rows: string[];
|
|
1027
|
+
values: string[];
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1004
1030
|
type DataGridColumn = {
|
|
1005
1031
|
align?: "left" | "right" | "center";
|
|
1006
1032
|
filterable?: boolean;
|
|
@@ -1015,22 +1041,37 @@ type DataGridRowHeaderColumn = {
|
|
|
1015
1041
|
sortable?: boolean;
|
|
1016
1042
|
};
|
|
1017
1043
|
type DataGridRow = {
|
|
1044
|
+
children?: DataGridRow[];
|
|
1018
1045
|
id: string;
|
|
1019
1046
|
label?: string;
|
|
1020
1047
|
values: Record<string, ReactNode>;
|
|
1021
1048
|
};
|
|
1049
|
+
|
|
1022
1050
|
type DataGridProps = {
|
|
1023
1051
|
bordered?: boolean;
|
|
1024
1052
|
caption?: string;
|
|
1025
1053
|
columns: DataGridColumn[];
|
|
1054
|
+
defaultExpandedIds?: string[];
|
|
1026
1055
|
density?: TableDensity;
|
|
1056
|
+
detailExpandedIds?: string[];
|
|
1057
|
+
getDetailContent?: (row: DataGridRow) => ReactNode;
|
|
1058
|
+
groupBy?: string;
|
|
1059
|
+
hasMore?: boolean;
|
|
1060
|
+
layout?: DataGridLayout;
|
|
1061
|
+
loadingMore?: boolean;
|
|
1062
|
+
onExpandedChange?: (ids: string[]) => void;
|
|
1063
|
+
onLoadMore?: () => void;
|
|
1064
|
+
pivot?: DataGridPivotConfig;
|
|
1027
1065
|
rowHeader?: DataGridRowHeaderColumn;
|
|
1066
|
+
rowHeight?: number;
|
|
1028
1067
|
rows: DataGridRow[];
|
|
1029
1068
|
stickyFirstColumn?: boolean;
|
|
1030
1069
|
stickyHeader?: boolean;
|
|
1031
1070
|
striped?: boolean;
|
|
1071
|
+
viewportHeight?: number;
|
|
1072
|
+
virtualized?: boolean;
|
|
1032
1073
|
};
|
|
1033
|
-
declare function DataGrid({ bordered, caption, columns, density, rowHeader, rows, stickyFirstColumn, stickyHeader, striped, }: DataGridProps): react.JSX.Element;
|
|
1074
|
+
declare function DataGrid({ bordered, caption, columns, defaultExpandedIds, density, detailExpandedIds, getDetailContent, groupBy, hasMore, layout, loadingMore, onExpandedChange, onLoadMore, pivot, rowHeader, rowHeight, rows, stickyFirstColumn, stickyHeader, striped, viewportHeight, virtualized, }: DataGridProps): react.JSX.Element;
|
|
1034
1075
|
|
|
1035
1076
|
type ChartDatum = {
|
|
1036
1077
|
region?: string;
|
|
@@ -1038,6 +1079,8 @@ type ChartDatum = {
|
|
|
1038
1079
|
lng?: number;
|
|
1039
1080
|
close?: number;
|
|
1040
1081
|
end?: number;
|
|
1082
|
+
/** Error / uncertainty magnitude used by error-bar charts when high/low are omitted. */
|
|
1083
|
+
error?: number;
|
|
1041
1084
|
group?: string;
|
|
1042
1085
|
high?: number;
|
|
1043
1086
|
label: string;
|
|
@@ -1050,6 +1093,8 @@ type ChartDatum = {
|
|
|
1050
1093
|
q1?: number;
|
|
1051
1094
|
q3?: number;
|
|
1052
1095
|
start?: number;
|
|
1096
|
+
/** Target value for bullet charts. */
|
|
1097
|
+
target?: number;
|
|
1053
1098
|
value: number;
|
|
1054
1099
|
values?: number[];
|
|
1055
1100
|
x?: number;
|
|
@@ -1148,11 +1193,12 @@ declare function ModelLightbox({ asset, dismissOnBackdrop, dismissOnEscape, open
|
|
|
1148
1193
|
|
|
1149
1194
|
type ModelThumbnailProps = {
|
|
1150
1195
|
asset: ModelAsset;
|
|
1196
|
+
fill?: boolean;
|
|
1151
1197
|
openInLightbox?: boolean;
|
|
1152
1198
|
showCaption?: boolean;
|
|
1153
1199
|
size?: ModelThumbnailSize;
|
|
1154
1200
|
};
|
|
1155
|
-
declare function ModelThumbnail({ asset, openInLightbox, showCaption, size, }: ModelThumbnailProps): react.JSX.Element;
|
|
1201
|
+
declare function ModelThumbnail({ asset, fill, openInLightbox, showCaption, size, }: ModelThumbnailProps): react.JSX.Element;
|
|
1156
1202
|
|
|
1157
1203
|
type ModelGalleryProps = {
|
|
1158
1204
|
assets: ModelAsset[];
|
|
@@ -1171,6 +1217,793 @@ type EmptyStateProps = {
|
|
|
1171
1217
|
};
|
|
1172
1218
|
declare function EmptyState({ actions, description, density, icon, title, }: EmptyStateProps): react.JSX.Element;
|
|
1173
1219
|
|
|
1220
|
+
type BadgeProps = {
|
|
1221
|
+
dot?: boolean;
|
|
1222
|
+
label: string;
|
|
1223
|
+
size?: BadgeSize;
|
|
1224
|
+
tone?: BadgeTone;
|
|
1225
|
+
variant?: BadgeVariant;
|
|
1226
|
+
};
|
|
1227
|
+
declare function Badge({ dot, label, size, tone, variant, }: BadgeProps): react.JSX.Element;
|
|
1228
|
+
|
|
1229
|
+
type DividerProps = {
|
|
1230
|
+
label?: string;
|
|
1231
|
+
orientation?: DividerOrientation;
|
|
1232
|
+
tone?: DividerTone;
|
|
1233
|
+
};
|
|
1234
|
+
declare function Divider({ label, orientation, tone, }: DividerProps): react.JSX.Element;
|
|
1235
|
+
|
|
1236
|
+
type AvatarProps = {
|
|
1237
|
+
name: string;
|
|
1238
|
+
shape?: AvatarShape;
|
|
1239
|
+
size?: AvatarSize;
|
|
1240
|
+
src?: string;
|
|
1241
|
+
};
|
|
1242
|
+
declare function Avatar({ name, shape, size, src, }: AvatarProps): react.JSX.Element;
|
|
1243
|
+
|
|
1244
|
+
type AvatarGroupItem = {
|
|
1245
|
+
name: string;
|
|
1246
|
+
src?: string;
|
|
1247
|
+
};
|
|
1248
|
+
type AvatarGroupProps = {
|
|
1249
|
+
items: AvatarGroupItem[];
|
|
1250
|
+
max?: number;
|
|
1251
|
+
size?: AvatarSize;
|
|
1252
|
+
};
|
|
1253
|
+
declare function AvatarGroup({ items, max, size }: AvatarGroupProps): react.JSX.Element;
|
|
1254
|
+
|
|
1255
|
+
type StatisticProps = {
|
|
1256
|
+
label: string;
|
|
1257
|
+
prefix?: string;
|
|
1258
|
+
suffix?: string;
|
|
1259
|
+
trend?: StatisticTrend;
|
|
1260
|
+
trendLabel?: string;
|
|
1261
|
+
value: string;
|
|
1262
|
+
};
|
|
1263
|
+
declare function Statistic({ label, prefix, suffix, trend, trendLabel, value, }: StatisticProps): react.JSX.Element;
|
|
1264
|
+
|
|
1265
|
+
type ListItem = {
|
|
1266
|
+
description?: string;
|
|
1267
|
+
icon?: string;
|
|
1268
|
+
meta?: string;
|
|
1269
|
+
title: string;
|
|
1270
|
+
};
|
|
1271
|
+
type ListProps = {
|
|
1272
|
+
density?: SurfaceDensity;
|
|
1273
|
+
items: ListItem[];
|
|
1274
|
+
ordered?: boolean;
|
|
1275
|
+
};
|
|
1276
|
+
declare function List({ density, items, ordered }: ListProps): react.JSX.Element;
|
|
1277
|
+
|
|
1278
|
+
type DescriptionListItem = {
|
|
1279
|
+
details: string;
|
|
1280
|
+
term: string;
|
|
1281
|
+
};
|
|
1282
|
+
type DescriptionListProps = {
|
|
1283
|
+
items: DescriptionListItem[];
|
|
1284
|
+
layout?: DescriptionListLayout;
|
|
1285
|
+
};
|
|
1286
|
+
declare function DescriptionList({ items, layout, }: DescriptionListProps): react.JSX.Element;
|
|
1287
|
+
|
|
1288
|
+
type PropertyGridItem = {
|
|
1289
|
+
copyable?: boolean;
|
|
1290
|
+
label: string;
|
|
1291
|
+
value: string;
|
|
1292
|
+
};
|
|
1293
|
+
type PropertyGridProps = {
|
|
1294
|
+
items: PropertyGridItem[];
|
|
1295
|
+
};
|
|
1296
|
+
declare function PropertyGrid({ items }: PropertyGridProps): react.JSX.Element;
|
|
1297
|
+
|
|
1298
|
+
type StackAlign = "start" | "center" | "end" | "stretch";
|
|
1299
|
+
type StackJustify = "start" | "center" | "end" | "between" | "around";
|
|
1300
|
+
type StackDirection = "row" | "column";
|
|
1301
|
+
type StackProps = {
|
|
1302
|
+
align?: StackAlign;
|
|
1303
|
+
children: ReactNode;
|
|
1304
|
+
className?: string;
|
|
1305
|
+
direction?: StackDirection;
|
|
1306
|
+
gap?: number | string;
|
|
1307
|
+
justify?: StackJustify;
|
|
1308
|
+
style?: CSSProperties;
|
|
1309
|
+
wrap?: boolean;
|
|
1310
|
+
};
|
|
1311
|
+
declare function Stack({ align, children, className, direction, gap, justify, style, wrap, }: StackProps): react.JSX.Element;
|
|
1312
|
+
|
|
1313
|
+
type ColumnsDirection = "column" | "row";
|
|
1314
|
+
type ColumnsProps = {
|
|
1315
|
+
children: ReactNode;
|
|
1316
|
+
className?: string;
|
|
1317
|
+
columns?: number;
|
|
1318
|
+
direction?: ColumnsDirection;
|
|
1319
|
+
gap?: number | string;
|
|
1320
|
+
style?: CSSProperties;
|
|
1321
|
+
};
|
|
1322
|
+
declare function Columns({ children, className, columns, direction, gap, style, }: ColumnsProps): react.JSX.Element;
|
|
1323
|
+
|
|
1324
|
+
type GridProps = {
|
|
1325
|
+
children: ReactNode;
|
|
1326
|
+
className?: string;
|
|
1327
|
+
columns?: number | string;
|
|
1328
|
+
gap?: number | string;
|
|
1329
|
+
minItemWidth?: number | string;
|
|
1330
|
+
style?: CSSProperties;
|
|
1331
|
+
};
|
|
1332
|
+
declare function Grid({ children, className, columns, gap, minItemWidth, style, }: GridProps): react.JSX.Element;
|
|
1333
|
+
|
|
1334
|
+
type SplitterOrientation = "horizontal" | "vertical";
|
|
1335
|
+
type SplitterProps = {
|
|
1336
|
+
children: [ReactNode, ReactNode];
|
|
1337
|
+
className?: string;
|
|
1338
|
+
defaultSize?: number;
|
|
1339
|
+
minSize?: number;
|
|
1340
|
+
onSizeChange?: (size: number) => void;
|
|
1341
|
+
orientation?: SplitterOrientation;
|
|
1342
|
+
size?: number;
|
|
1343
|
+
style?: CSSProperties;
|
|
1344
|
+
};
|
|
1345
|
+
declare function Splitter({ children, className, defaultSize, minSize, onSizeChange, orientation, size: controlledSize, style, }: SplitterProps): react.JSX.Element;
|
|
1346
|
+
|
|
1347
|
+
type ResizablePanelProps = {
|
|
1348
|
+
children: ReactNode;
|
|
1349
|
+
className?: string;
|
|
1350
|
+
defaultHeight?: number;
|
|
1351
|
+
defaultWidth?: number;
|
|
1352
|
+
maxHeight?: number;
|
|
1353
|
+
maxWidth?: number;
|
|
1354
|
+
minHeight?: number;
|
|
1355
|
+
minWidth?: number;
|
|
1356
|
+
onResize?: (size: {
|
|
1357
|
+
height: number;
|
|
1358
|
+
width: number;
|
|
1359
|
+
}) => void;
|
|
1360
|
+
style?: CSSProperties;
|
|
1361
|
+
};
|
|
1362
|
+
declare function ResizablePanel({ children, className, defaultHeight, defaultWidth, maxHeight, maxWidth, minHeight, minWidth, onResize, style, }: ResizablePanelProps): react.JSX.Element;
|
|
1363
|
+
|
|
1364
|
+
type DockLayoutProps = {
|
|
1365
|
+
bottom?: ReactNode;
|
|
1366
|
+
children: ReactNode;
|
|
1367
|
+
className?: string;
|
|
1368
|
+
left?: ReactNode;
|
|
1369
|
+
right?: ReactNode;
|
|
1370
|
+
style?: CSSProperties;
|
|
1371
|
+
top?: ReactNode;
|
|
1372
|
+
};
|
|
1373
|
+
declare function DockLayout({ bottom, children, className, left, right, style, top, }: DockLayoutProps): react.JSX.Element;
|
|
1374
|
+
|
|
1375
|
+
type ScrollAreaProps = {
|
|
1376
|
+
children: ReactNode;
|
|
1377
|
+
className?: string;
|
|
1378
|
+
maxHeight?: number | string;
|
|
1379
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
1380
|
+
style?: CSSProperties;
|
|
1381
|
+
};
|
|
1382
|
+
declare function ScrollArea({ children, className, maxHeight, orientation, style, }: ScrollAreaProps): react.JSX.Element;
|
|
1383
|
+
|
|
1384
|
+
type AspectRatioProps = {
|
|
1385
|
+
children: ReactNode;
|
|
1386
|
+
className?: string;
|
|
1387
|
+
ratio?: number | string;
|
|
1388
|
+
style?: CSSProperties;
|
|
1389
|
+
};
|
|
1390
|
+
declare function AspectRatio({ children, className, ratio, style }: AspectRatioProps): react.JSX.Element;
|
|
1391
|
+
|
|
1392
|
+
type ContainerSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
1393
|
+
type ContainerProps = {
|
|
1394
|
+
children: ReactNode;
|
|
1395
|
+
className?: string;
|
|
1396
|
+
padded?: boolean;
|
|
1397
|
+
size?: ContainerSize;
|
|
1398
|
+
style?: CSSProperties;
|
|
1399
|
+
};
|
|
1400
|
+
declare function Container({ children, className, padded, size, style, }: ContainerProps): react.JSX.Element;
|
|
1401
|
+
|
|
1402
|
+
type SpacerProps = {
|
|
1403
|
+
axis?: "x" | "y" | "both";
|
|
1404
|
+
className?: string;
|
|
1405
|
+
flex?: boolean | number;
|
|
1406
|
+
size?: number | string;
|
|
1407
|
+
style?: CSSProperties;
|
|
1408
|
+
};
|
|
1409
|
+
declare function Spacer({ axis, className, flex, size, style }: SpacerProps): react.JSX.Element;
|
|
1410
|
+
|
|
1411
|
+
type BreadcrumbItem = {
|
|
1412
|
+
href?: string;
|
|
1413
|
+
id: string;
|
|
1414
|
+
label: string;
|
|
1415
|
+
};
|
|
1416
|
+
type BreadcrumbProps = {
|
|
1417
|
+
items: BreadcrumbItem[];
|
|
1418
|
+
onNavigate?: (id: string) => void;
|
|
1419
|
+
separator?: ReactNode;
|
|
1420
|
+
};
|
|
1421
|
+
declare function Breadcrumb({ items, onNavigate, separator }: BreadcrumbProps): react.JSX.Element;
|
|
1422
|
+
|
|
1423
|
+
type PaginationProps = {
|
|
1424
|
+
page: number;
|
|
1425
|
+
pageCount: number;
|
|
1426
|
+
onPageChange: (page: number) => void;
|
|
1427
|
+
siblingCount?: number;
|
|
1428
|
+
};
|
|
1429
|
+
declare function Pagination({ page, pageCount, onPageChange, siblingCount }: PaginationProps): react.JSX.Element;
|
|
1430
|
+
|
|
1431
|
+
type PageHeaderProps = {
|
|
1432
|
+
actions?: ReactNode;
|
|
1433
|
+
breadcrumbs?: ReactNode;
|
|
1434
|
+
description?: string;
|
|
1435
|
+
eyebrow?: string;
|
|
1436
|
+
title: string;
|
|
1437
|
+
};
|
|
1438
|
+
declare function PageHeader({ actions, breadcrumbs, description, eyebrow, title }: PageHeaderProps): react.JSX.Element;
|
|
1439
|
+
|
|
1440
|
+
type ToolbarProps = {
|
|
1441
|
+
children: ReactNode;
|
|
1442
|
+
className?: string;
|
|
1443
|
+
dense?: boolean;
|
|
1444
|
+
end?: ReactNode;
|
|
1445
|
+
label?: string;
|
|
1446
|
+
start?: ReactNode;
|
|
1447
|
+
};
|
|
1448
|
+
declare function Toolbar({ children, className, dense, end, label, start }: ToolbarProps): react.JSX.Element;
|
|
1449
|
+
|
|
1450
|
+
type BottomNavigationItem = {
|
|
1451
|
+
href?: string;
|
|
1452
|
+
icon?: ReactNode;
|
|
1453
|
+
id: string;
|
|
1454
|
+
label: string;
|
|
1455
|
+
};
|
|
1456
|
+
type BottomNavigationProps = {
|
|
1457
|
+
items: BottomNavigationItem[];
|
|
1458
|
+
onChange?: (id: string) => void;
|
|
1459
|
+
value: string;
|
|
1460
|
+
};
|
|
1461
|
+
declare function BottomNavigation({ items, onChange, value }: BottomNavigationProps): react.JSX.Element;
|
|
1462
|
+
|
|
1463
|
+
type NavigationRailItem = {
|
|
1464
|
+
href?: string;
|
|
1465
|
+
icon?: ReactNode;
|
|
1466
|
+
id: string;
|
|
1467
|
+
label: string;
|
|
1468
|
+
};
|
|
1469
|
+
type NavigationRailProps = {
|
|
1470
|
+
collapsed?: boolean;
|
|
1471
|
+
items: NavigationRailItem[];
|
|
1472
|
+
onChange?: (id: string) => void;
|
|
1473
|
+
value: string;
|
|
1474
|
+
};
|
|
1475
|
+
declare function NavigationRail({ collapsed, items, onChange, value }: NavigationRailProps): react.JSX.Element;
|
|
1476
|
+
|
|
1477
|
+
type SplitButtonAction = {
|
|
1478
|
+
disabled?: boolean;
|
|
1479
|
+
id: string;
|
|
1480
|
+
label: string;
|
|
1481
|
+
};
|
|
1482
|
+
type SplitButtonProps = {
|
|
1483
|
+
actions: SplitButtonAction[];
|
|
1484
|
+
children: ReactNode;
|
|
1485
|
+
disabled?: boolean;
|
|
1486
|
+
onActionSelect?: (id: string) => void;
|
|
1487
|
+
onClick?: () => void;
|
|
1488
|
+
variant?: ButtonVariant;
|
|
1489
|
+
};
|
|
1490
|
+
declare function SplitButton({ actions, children, disabled, onActionSelect, onClick, variant, }: SplitButtonProps): react.JSX.Element;
|
|
1491
|
+
|
|
1492
|
+
type FloatingActionButtonSize = "sm" | "md" | "lg";
|
|
1493
|
+
type FloatingActionButtonPosition = "end" | "start" | "inline";
|
|
1494
|
+
type FloatingActionButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1495
|
+
extended?: boolean;
|
|
1496
|
+
icon?: ReactNode;
|
|
1497
|
+
label: string;
|
|
1498
|
+
position?: FloatingActionButtonPosition;
|
|
1499
|
+
size?: FloatingActionButtonSize;
|
|
1500
|
+
};
|
|
1501
|
+
declare function FloatingActionButton({ className, extended, icon, label, position, size, type, ...props }: FloatingActionButtonProps): react.JSX.Element;
|
|
1502
|
+
|
|
1503
|
+
type TileTone = "purple" | "blue";
|
|
1504
|
+
type TileProps = {
|
|
1505
|
+
className?: string;
|
|
1506
|
+
href?: string;
|
|
1507
|
+
icon: string;
|
|
1508
|
+
label: string;
|
|
1509
|
+
onClick?: () => void;
|
|
1510
|
+
role?: string;
|
|
1511
|
+
tone?: TileTone;
|
|
1512
|
+
withGradients?: boolean;
|
|
1513
|
+
};
|
|
1514
|
+
declare function Tile({ className, href, icon, label, onClick, role, tone, withGradients, }: TileProps): react.JSX.Element;
|
|
1515
|
+
|
|
1516
|
+
type TilesLayout = "fill" | "fixed";
|
|
1517
|
+
type TileItem = {
|
|
1518
|
+
href?: string;
|
|
1519
|
+
icon: string;
|
|
1520
|
+
id: string;
|
|
1521
|
+
label: string;
|
|
1522
|
+
onClick?: () => void;
|
|
1523
|
+
tone?: TileTone;
|
|
1524
|
+
};
|
|
1525
|
+
type TilesProps = {
|
|
1526
|
+
className?: string;
|
|
1527
|
+
items: TileItem[];
|
|
1528
|
+
layout?: TilesLayout;
|
|
1529
|
+
};
|
|
1530
|
+
declare function Tiles({ className, items, layout }: TilesProps): react.JSX.Element;
|
|
1531
|
+
|
|
1532
|
+
type StatTileTrend = "up" | "down";
|
|
1533
|
+
type StatTileTone = "purple" | "blue";
|
|
1534
|
+
type StatTileProps = {
|
|
1535
|
+
className?: string;
|
|
1536
|
+
comparison?: string;
|
|
1537
|
+
icon: string;
|
|
1538
|
+
label: string;
|
|
1539
|
+
onClick?: () => void;
|
|
1540
|
+
role?: string;
|
|
1541
|
+
tone?: StatTileTone;
|
|
1542
|
+
trend?: StatTileTrend;
|
|
1543
|
+
trendValue?: string;
|
|
1544
|
+
value: string;
|
|
1545
|
+
};
|
|
1546
|
+
declare function StatTile({ className, comparison, icon, label, onClick, role, tone, trend, trendValue, value, }: StatTileProps): react.JSX.Element;
|
|
1547
|
+
|
|
1548
|
+
type StatTileItem = {
|
|
1549
|
+
comparison?: string;
|
|
1550
|
+
icon: string;
|
|
1551
|
+
id: string;
|
|
1552
|
+
label: string;
|
|
1553
|
+
onClick?: () => void;
|
|
1554
|
+
tone?: StatTileTone;
|
|
1555
|
+
trend?: StatTileTrend;
|
|
1556
|
+
trendValue?: string;
|
|
1557
|
+
value: string;
|
|
1558
|
+
};
|
|
1559
|
+
type StatTilesProps = {
|
|
1560
|
+
className?: string;
|
|
1561
|
+
items: StatTileItem[];
|
|
1562
|
+
layout?: TilesLayout;
|
|
1563
|
+
};
|
|
1564
|
+
declare function StatTiles({ className, items, layout }: StatTilesProps): react.JSX.Element;
|
|
1565
|
+
|
|
1566
|
+
type PipelineStage = {
|
|
1567
|
+
displayValue: string;
|
|
1568
|
+
id: string;
|
|
1569
|
+
label: string;
|
|
1570
|
+
percentage: number;
|
|
1571
|
+
value: number;
|
|
1572
|
+
};
|
|
1573
|
+
type PipelineOverviewProps = {
|
|
1574
|
+
className?: string;
|
|
1575
|
+
onPeriodChange?: (period: string) => void;
|
|
1576
|
+
period?: string;
|
|
1577
|
+
periodOptions?: string[];
|
|
1578
|
+
stages: PipelineStage[];
|
|
1579
|
+
totalLabel?: string;
|
|
1580
|
+
totalValue: string;
|
|
1581
|
+
};
|
|
1582
|
+
declare function PipelineOverview({ className, onPeriodChange, period, periodOptions, stages, totalLabel, totalValue, }: PipelineOverviewProps): react.JSX.Element;
|
|
1583
|
+
|
|
1584
|
+
type DealsOverTimePalette = "blue" | "purple";
|
|
1585
|
+
|
|
1586
|
+
type DealsOverTimePoint = {
|
|
1587
|
+
label: string;
|
|
1588
|
+
tooltipLabel?: string;
|
|
1589
|
+
value: number;
|
|
1590
|
+
};
|
|
1591
|
+
type DealsOverTimeProps = {
|
|
1592
|
+
className?: string;
|
|
1593
|
+
data: DealsOverTimePoint[];
|
|
1594
|
+
maxValue?: number;
|
|
1595
|
+
onPeriodChange?: (period: string) => void;
|
|
1596
|
+
palette?: DealsOverTimePalette;
|
|
1597
|
+
period?: string;
|
|
1598
|
+
periodOptions?: string[];
|
|
1599
|
+
title?: string;
|
|
1600
|
+
valueLabel?: string;
|
|
1601
|
+
};
|
|
1602
|
+
declare function DealsOverTime({ className, data, maxValue, onPeriodChange, palette, period, periodOptions, title, valueLabel, }: DealsOverTimeProps): react.JSX.Element;
|
|
1603
|
+
|
|
1604
|
+
type UpcomingTaskItem = {
|
|
1605
|
+
completed?: boolean;
|
|
1606
|
+
id: string;
|
|
1607
|
+
subtitle: string;
|
|
1608
|
+
time: string;
|
|
1609
|
+
title: string;
|
|
1610
|
+
};
|
|
1611
|
+
type UpcomingTasksProps = {
|
|
1612
|
+
checkboxSize?: "lg" | "md" | "sm";
|
|
1613
|
+
className?: string;
|
|
1614
|
+
footerHref?: string;
|
|
1615
|
+
footerLabel?: string;
|
|
1616
|
+
onFooterClick?: () => void;
|
|
1617
|
+
onTaskClick?: (task: UpcomingTaskItem) => void;
|
|
1618
|
+
onTaskCompleteChange?: (task: UpcomingTaskItem, completed: boolean) => void;
|
|
1619
|
+
tasks: UpcomingTaskItem[];
|
|
1620
|
+
title?: string;
|
|
1621
|
+
};
|
|
1622
|
+
declare function UpcomingTasks({ checkboxSize, className, footerHref, footerLabel, onFooterClick, onTaskClick, onTaskCompleteChange, tasks, title, }: UpcomingTasksProps): react.JSX.Element;
|
|
1623
|
+
|
|
1624
|
+
type RecentActivityIconTone = "blue" | "green" | "orange";
|
|
1625
|
+
type RecentActivityItem = {
|
|
1626
|
+
icon: string;
|
|
1627
|
+
iconTone: RecentActivityIconTone;
|
|
1628
|
+
id: string;
|
|
1629
|
+
subtitle: string;
|
|
1630
|
+
time: string;
|
|
1631
|
+
title: string;
|
|
1632
|
+
};
|
|
1633
|
+
type RecentActivityProps = {
|
|
1634
|
+
className?: string;
|
|
1635
|
+
footerHref?: string;
|
|
1636
|
+
footerLabel?: string;
|
|
1637
|
+
items: RecentActivityItem[];
|
|
1638
|
+
onFooterClick?: () => void;
|
|
1639
|
+
onItemClick?: (item: RecentActivityItem) => void;
|
|
1640
|
+
title?: string;
|
|
1641
|
+
};
|
|
1642
|
+
declare function RecentActivity({ className, footerHref, footerLabel, items, onFooterClick, onItemClick, title, }: RecentActivityProps): react.JSX.Element;
|
|
1643
|
+
|
|
1644
|
+
type TopPerformingUserItem = {
|
|
1645
|
+
displayValue: string;
|
|
1646
|
+
id: string;
|
|
1647
|
+
name: string;
|
|
1648
|
+
src?: string;
|
|
1649
|
+
value: number;
|
|
1650
|
+
};
|
|
1651
|
+
type TopPerformingUsersProps = {
|
|
1652
|
+
className?: string;
|
|
1653
|
+
footerHref?: string;
|
|
1654
|
+
footerLabel?: string;
|
|
1655
|
+
onFooterClick?: () => void;
|
|
1656
|
+
onPersonClick?: (person: TopPerformingUserItem) => void;
|
|
1657
|
+
title?: string;
|
|
1658
|
+
users: TopPerformingUserItem[];
|
|
1659
|
+
};
|
|
1660
|
+
declare function TopPerformingUsers({ className, footerHref, footerLabel, onFooterClick, onPersonClick, title, users, }: TopPerformingUsersProps): react.JSX.Element;
|
|
1661
|
+
|
|
1662
|
+
type DashboardContentContainerWidth = "full" | "widget";
|
|
1663
|
+
type DashboardContentContainerProps = {
|
|
1664
|
+
children: ReactNode;
|
|
1665
|
+
className?: string;
|
|
1666
|
+
"data-component"?: string;
|
|
1667
|
+
title?: string;
|
|
1668
|
+
width?: DashboardContentContainerWidth;
|
|
1669
|
+
};
|
|
1670
|
+
declare function DashboardContentContainer({ children, className, "data-component": dataComponent, title, width, }: DashboardContentContainerProps): react.JSX.Element;
|
|
1671
|
+
|
|
1672
|
+
type PropertyInspectorValue = string | number | boolean | null | undefined | {
|
|
1673
|
+
options: string[];
|
|
1674
|
+
value: string;
|
|
1675
|
+
};
|
|
1676
|
+
type PropertyInspectorItem = {
|
|
1677
|
+
group?: string;
|
|
1678
|
+
id: string;
|
|
1679
|
+
label: string;
|
|
1680
|
+
readOnly?: boolean;
|
|
1681
|
+
value: PropertyInspectorValue;
|
|
1682
|
+
};
|
|
1683
|
+
type PropertyInspectorProps = {
|
|
1684
|
+
items: PropertyInspectorItem[];
|
|
1685
|
+
onChange?: (id: string, value: PropertyInspectorValue) => void;
|
|
1686
|
+
searchable?: boolean;
|
|
1687
|
+
};
|
|
1688
|
+
declare function PropertyInspector({ items, onChange, searchable }: PropertyInspectorProps): react.JSX.Element;
|
|
1689
|
+
|
|
1690
|
+
type FilterOperator = "eq" | "neq" | "contains" | "gt" | "lt" | "empty";
|
|
1691
|
+
type FilterCondition = {
|
|
1692
|
+
field: string;
|
|
1693
|
+
id: string;
|
|
1694
|
+
operator: FilterOperator;
|
|
1695
|
+
value: string;
|
|
1696
|
+
};
|
|
1697
|
+
type FilterBuilderProps = {
|
|
1698
|
+
conditions: FilterCondition[];
|
|
1699
|
+
fields: string[];
|
|
1700
|
+
onChange: (conditions: FilterCondition[]) => void;
|
|
1701
|
+
};
|
|
1702
|
+
declare function FilterBuilder({ conditions, fields, onChange }: FilterBuilderProps): react.JSX.Element;
|
|
1703
|
+
|
|
1704
|
+
type QueryOperator = "eq" | "neq" | "contains" | "gt" | "lt" | "in";
|
|
1705
|
+
type QueryCombinator = "and" | "or";
|
|
1706
|
+
type QueryRule = {
|
|
1707
|
+
field: string;
|
|
1708
|
+
id: string;
|
|
1709
|
+
operator: QueryOperator;
|
|
1710
|
+
value: string;
|
|
1711
|
+
};
|
|
1712
|
+
type QueryGroup = {
|
|
1713
|
+
combinator: QueryCombinator;
|
|
1714
|
+
id: string;
|
|
1715
|
+
rules: QueryRule[];
|
|
1716
|
+
};
|
|
1717
|
+
type QueryBuilderProps = {
|
|
1718
|
+
fields: string[];
|
|
1719
|
+
group: QueryGroup;
|
|
1720
|
+
onChange: (group: QueryGroup) => void;
|
|
1721
|
+
};
|
|
1722
|
+
declare function QueryBuilder({ fields, group, onChange }: QueryBuilderProps): react.JSX.Element;
|
|
1723
|
+
|
|
1724
|
+
type RuleEffect = "allow" | "deny" | "notify" | "route";
|
|
1725
|
+
type RuleDefinition = {
|
|
1726
|
+
conditions: string;
|
|
1727
|
+
effect: RuleEffect;
|
|
1728
|
+
enabled: boolean;
|
|
1729
|
+
id: string;
|
|
1730
|
+
name: string;
|
|
1731
|
+
priority: number;
|
|
1732
|
+
};
|
|
1733
|
+
type RuleBuilderProps = {
|
|
1734
|
+
onChange: (rules: RuleDefinition[]) => void;
|
|
1735
|
+
rules: RuleDefinition[];
|
|
1736
|
+
};
|
|
1737
|
+
declare function RuleBuilder({ onChange, rules }: RuleBuilderProps): react.JSX.Element;
|
|
1738
|
+
|
|
1739
|
+
type PermissionLevel = "none" | "read" | "write" | "admin";
|
|
1740
|
+
type PermissionsMatrixProps = {
|
|
1741
|
+
onChange: (role: string, resource: string, level: PermissionLevel) => void;
|
|
1742
|
+
permissions: Record<string, Record<string, PermissionLevel>>;
|
|
1743
|
+
resources: string[];
|
|
1744
|
+
roles: string[];
|
|
1745
|
+
};
|
|
1746
|
+
declare function PermissionsMatrix({ onChange, permissions, resources, roles }: PermissionsMatrixProps): react.JSX.Element;
|
|
1747
|
+
|
|
1748
|
+
type DualListItem = {
|
|
1749
|
+
id: string;
|
|
1750
|
+
label: string;
|
|
1751
|
+
};
|
|
1752
|
+
type DualListBuilderProps = {
|
|
1753
|
+
available: DualListItem[];
|
|
1754
|
+
availableTitle?: string;
|
|
1755
|
+
onChange: (selectedIds: string[]) => void;
|
|
1756
|
+
selectedIds: string[];
|
|
1757
|
+
selectedTitle?: string;
|
|
1758
|
+
};
|
|
1759
|
+
declare function DualListBuilder({ available, availableTitle, onChange, selectedIds, selectedTitle, }: DualListBuilderProps): react.JSX.Element;
|
|
1760
|
+
|
|
1761
|
+
type SchedulerEvent = {
|
|
1762
|
+
day: number;
|
|
1763
|
+
id: string;
|
|
1764
|
+
startHour: number;
|
|
1765
|
+
title: string;
|
|
1766
|
+
durationHours?: number;
|
|
1767
|
+
tone?: "accent" | "success" | "warning" | "danger";
|
|
1768
|
+
};
|
|
1769
|
+
type SchedulerProps = {
|
|
1770
|
+
days?: string[];
|
|
1771
|
+
endHour?: number;
|
|
1772
|
+
events: SchedulerEvent[];
|
|
1773
|
+
startHour?: number;
|
|
1774
|
+
};
|
|
1775
|
+
declare function Scheduler({ days, endHour, events, startHour, }: SchedulerProps): react.JSX.Element;
|
|
1776
|
+
|
|
1777
|
+
type KanbanCard = {
|
|
1778
|
+
id: string;
|
|
1779
|
+
title: string;
|
|
1780
|
+
meta?: string;
|
|
1781
|
+
tone?: "default" | "accent" | "success" | "warning" | "danger";
|
|
1782
|
+
};
|
|
1783
|
+
type KanbanColumn = {
|
|
1784
|
+
id: string;
|
|
1785
|
+
title: string;
|
|
1786
|
+
cardIds: string[];
|
|
1787
|
+
};
|
|
1788
|
+
type KanbanBoardProps = {
|
|
1789
|
+
cards: Record<string, KanbanCard>;
|
|
1790
|
+
columns: KanbanColumn[];
|
|
1791
|
+
onChange?: (columns: KanbanColumn[]) => void;
|
|
1792
|
+
};
|
|
1793
|
+
declare function KanbanBoard({ cards, columns, onChange }: KanbanBoardProps): react.JSX.Element;
|
|
1794
|
+
|
|
1795
|
+
type CalendarEvent = {
|
|
1796
|
+
date: string;
|
|
1797
|
+
id: string;
|
|
1798
|
+
title: string;
|
|
1799
|
+
tone?: "accent" | "success" | "warning" | "danger";
|
|
1800
|
+
};
|
|
1801
|
+
type CalendarProps = {
|
|
1802
|
+
events?: CalendarEvent[];
|
|
1803
|
+
month?: number;
|
|
1804
|
+
onSelectDate?: (date: string) => void;
|
|
1805
|
+
selectedDate?: string;
|
|
1806
|
+
year?: number;
|
|
1807
|
+
};
|
|
1808
|
+
declare function Calendar({ events, month: controlledMonth, onSelectDate, selectedDate, year: controlledYear, }: CalendarProps): react.JSX.Element;
|
|
1809
|
+
|
|
1810
|
+
type ResourcePlannerItem = {
|
|
1811
|
+
end: number;
|
|
1812
|
+
id: string;
|
|
1813
|
+
label: string;
|
|
1814
|
+
resourceId: string;
|
|
1815
|
+
start: number;
|
|
1816
|
+
tone?: "accent" | "success" | "warning" | "danger";
|
|
1817
|
+
};
|
|
1818
|
+
type ResourcePlannerResource = {
|
|
1819
|
+
id: string;
|
|
1820
|
+
label: string;
|
|
1821
|
+
};
|
|
1822
|
+
type ResourcePlannerProps = {
|
|
1823
|
+
endHour?: number;
|
|
1824
|
+
items: ResourcePlannerItem[];
|
|
1825
|
+
resources: ResourcePlannerResource[];
|
|
1826
|
+
startHour?: number;
|
|
1827
|
+
};
|
|
1828
|
+
declare function ResourcePlanner({ endHour, items, resources, startHour, }: ResourcePlannerProps): react.JSX.Element;
|
|
1829
|
+
|
|
1830
|
+
type ContentTimelineItem = {
|
|
1831
|
+
description?: string;
|
|
1832
|
+
status?: ContentTimelineStatus;
|
|
1833
|
+
time?: string;
|
|
1834
|
+
title: string;
|
|
1835
|
+
};
|
|
1836
|
+
type ContentTimelineProps = {
|
|
1837
|
+
items: ContentTimelineItem[];
|
|
1838
|
+
};
|
|
1839
|
+
declare function ContentTimeline({ items }: ContentTimelineProps): react.JSX.Element;
|
|
1840
|
+
|
|
1841
|
+
type TreeViewNode = {
|
|
1842
|
+
children?: TreeViewNode[];
|
|
1843
|
+
id: string;
|
|
1844
|
+
label: string;
|
|
1845
|
+
};
|
|
1846
|
+
type TreeViewProps = {
|
|
1847
|
+
defaultExpandedIds?: string[];
|
|
1848
|
+
nodes: TreeViewNode[];
|
|
1849
|
+
};
|
|
1850
|
+
declare function TreeView({ defaultExpandedIds, nodes }: TreeViewProps): react.JSX.Element;
|
|
1851
|
+
|
|
1852
|
+
type MasonryGridItem = {
|
|
1853
|
+
body?: string;
|
|
1854
|
+
height?: number;
|
|
1855
|
+
title: string;
|
|
1856
|
+
};
|
|
1857
|
+
type MasonryGridProps = {
|
|
1858
|
+
columns?: number;
|
|
1859
|
+
gap?: number;
|
|
1860
|
+
items: MasonryGridItem[];
|
|
1861
|
+
};
|
|
1862
|
+
declare function MasonryGrid({ columns, gap, items }: MasonryGridProps): react.JSX.Element;
|
|
1863
|
+
|
|
1864
|
+
type JsonViewerProps = {
|
|
1865
|
+
collapsedDepth?: number;
|
|
1866
|
+
value: unknown;
|
|
1867
|
+
};
|
|
1868
|
+
declare function JsonViewer({ collapsedDepth, value }: JsonViewerProps): react.JSX.Element;
|
|
1869
|
+
|
|
1870
|
+
type IconSize = "sm" | "md" | "lg";
|
|
1871
|
+
type IconTone = "default" | "muted" | "accent" | "success" | "warning" | "danger";
|
|
1872
|
+
type IconProps = {
|
|
1873
|
+
label?: string;
|
|
1874
|
+
name: string;
|
|
1875
|
+
size?: IconSize;
|
|
1876
|
+
tone?: IconTone;
|
|
1877
|
+
};
|
|
1878
|
+
declare function Icon({ label, name, size, tone }: IconProps): react.JSX.Element;
|
|
1879
|
+
|
|
1880
|
+
type SpinnerSize = "sm" | "md" | "lg";
|
|
1881
|
+
type SpinnerTone = "accent" | "muted" | "inverse";
|
|
1882
|
+
type SpinnerProps = {
|
|
1883
|
+
label?: string;
|
|
1884
|
+
size?: SpinnerSize;
|
|
1885
|
+
tone?: SpinnerTone;
|
|
1886
|
+
};
|
|
1887
|
+
declare function Spinner({ label, size, tone }: SpinnerProps): react.JSX.Element;
|
|
1888
|
+
|
|
1889
|
+
type PortalHostContextValue = {
|
|
1890
|
+
container: HTMLElement | null;
|
|
1891
|
+
};
|
|
1892
|
+
declare function usePortalHost(): PortalHostContextValue;
|
|
1893
|
+
type PortalHostProps = {
|
|
1894
|
+
children: ReactNode;
|
|
1895
|
+
id?: string;
|
|
1896
|
+
};
|
|
1897
|
+
declare function PortalHost({ children, id }: PortalHostProps): react.JSX.Element;
|
|
1898
|
+
type PortalProps = {
|
|
1899
|
+
children: ReactNode;
|
|
1900
|
+
container?: HTMLElement | null;
|
|
1901
|
+
disabled?: boolean;
|
|
1902
|
+
};
|
|
1903
|
+
declare function Portal({ children, container, disabled }: PortalProps): react.JSX.Element | null;
|
|
1904
|
+
|
|
1905
|
+
type VisuallyHiddenProps = {
|
|
1906
|
+
as?: "span" | "div";
|
|
1907
|
+
children: ReactNode;
|
|
1908
|
+
};
|
|
1909
|
+
declare function VisuallyHidden({ as, children }: VisuallyHiddenProps): react.JSX.Element;
|
|
1910
|
+
|
|
1911
|
+
type FocusTrapProps = {
|
|
1912
|
+
active?: boolean;
|
|
1913
|
+
children: ReactNode;
|
|
1914
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
1915
|
+
restoreFocus?: boolean;
|
|
1916
|
+
};
|
|
1917
|
+
declare function FocusTrap({ active, children, initialFocusRef, restoreFocus, }: FocusTrapProps): react.JSX.Element;
|
|
1918
|
+
|
|
1919
|
+
type KeyboardShortcutSize = "sm" | "md";
|
|
1920
|
+
type KeyboardShortcutProps = {
|
|
1921
|
+
keys: string[];
|
|
1922
|
+
size?: KeyboardShortcutSize;
|
|
1923
|
+
};
|
|
1924
|
+
declare function KeyboardShortcut({ keys, size }: KeyboardShortcutProps): react.JSX.Element;
|
|
1925
|
+
|
|
1926
|
+
type HotkeyCombo = {
|
|
1927
|
+
alt?: boolean;
|
|
1928
|
+
ctrl?: boolean;
|
|
1929
|
+
description?: string;
|
|
1930
|
+
enabled?: boolean;
|
|
1931
|
+
id: string;
|
|
1932
|
+
key: string;
|
|
1933
|
+
meta?: boolean;
|
|
1934
|
+
shift?: boolean;
|
|
1935
|
+
};
|
|
1936
|
+
type HotkeyHandler = () => void;
|
|
1937
|
+
type HotkeyManagerContextValue = {
|
|
1938
|
+
register: (combo: HotkeyCombo, handler: HotkeyHandler) => () => void;
|
|
1939
|
+
shortcuts: HotkeyCombo[];
|
|
1940
|
+
};
|
|
1941
|
+
type HotkeyManagerProps = {
|
|
1942
|
+
children: ReactNode;
|
|
1943
|
+
enabled?: boolean;
|
|
1944
|
+
};
|
|
1945
|
+
declare function HotkeyManager({ children, enabled }: HotkeyManagerProps): react.JSX.Element;
|
|
1946
|
+
declare function useHotkey(combo: HotkeyCombo, handler: HotkeyHandler): void;
|
|
1947
|
+
declare function useHotkeyManager(): HotkeyManagerContextValue;
|
|
1948
|
+
|
|
1949
|
+
type CopyButtonProps = {
|
|
1950
|
+
children?: ReactNode;
|
|
1951
|
+
copiedLabel?: string;
|
|
1952
|
+
label?: string;
|
|
1953
|
+
resetMs?: number;
|
|
1954
|
+
value: string;
|
|
1955
|
+
variant?: ButtonVariant;
|
|
1956
|
+
onCopied?: () => void;
|
|
1957
|
+
};
|
|
1958
|
+
declare function CopyButton({ children, copiedLabel, label, resetMs, value, variant, onCopied, }: CopyButtonProps): react.JSX.Element;
|
|
1959
|
+
|
|
1960
|
+
type ClipboardContextValue = {
|
|
1961
|
+
lastCopied: string | null;
|
|
1962
|
+
readText: () => Promise<string>;
|
|
1963
|
+
writeText: (value: string) => Promise<void>;
|
|
1964
|
+
};
|
|
1965
|
+
type ClipboardProviderProps = {
|
|
1966
|
+
children: ReactNode;
|
|
1967
|
+
};
|
|
1968
|
+
declare function ClipboardProvider({ children }: ClipboardProviderProps): react.JSX.Element;
|
|
1969
|
+
declare function useClipboard(): ClipboardContextValue;
|
|
1970
|
+
/** Catalog-facing alias — same as ClipboardProvider. */
|
|
1971
|
+
declare function Clipboard({ children }: ClipboardProviderProps): react.JSX.Element;
|
|
1972
|
+
|
|
1973
|
+
type ThemeSwitcherProps = {
|
|
1974
|
+
id?: string;
|
|
1975
|
+
label?: string;
|
|
1976
|
+
value: Theme;
|
|
1977
|
+
onChange: (theme: Theme) => void;
|
|
1978
|
+
};
|
|
1979
|
+
/** Compact docs-friendly theme switcher built on ThemeToggleField. */
|
|
1980
|
+
declare function ThemeSwitcher({ id, label, value, onChange, }: ThemeSwitcherProps): react.JSX.Element;
|
|
1981
|
+
|
|
1982
|
+
type ElementSize = {
|
|
1983
|
+
height: number;
|
|
1984
|
+
width: number;
|
|
1985
|
+
};
|
|
1986
|
+
type ResizeObserverProps = {
|
|
1987
|
+
children: (size: ElementSize) => ReactNode;
|
|
1988
|
+
className?: string;
|
|
1989
|
+
onResize?: (size: ElementSize) => void;
|
|
1990
|
+
};
|
|
1991
|
+
declare function ResizeObserver({ children, className, onResize }: ResizeObserverProps): react.JSX.Element;
|
|
1992
|
+
declare function useResizeObserver(targetRef: RefObject<HTMLElement | null>): ElementSize;
|
|
1993
|
+
|
|
1994
|
+
type IntersectionObserverProps = {
|
|
1995
|
+
children: (isIntersecting: boolean) => ReactNode;
|
|
1996
|
+
className?: string;
|
|
1997
|
+
rootMargin?: string;
|
|
1998
|
+
threshold?: number | number[];
|
|
1999
|
+
onChange?: (isIntersecting: boolean) => void;
|
|
2000
|
+
};
|
|
2001
|
+
declare function IntersectionObserver({ children, className, rootMargin, threshold, onChange, }: IntersectionObserverProps): react.JSX.Element;
|
|
2002
|
+
declare function useIntersectionObserver(targetRef: RefObject<HTMLElement | null>, options?: {
|
|
2003
|
+
rootMargin?: string;
|
|
2004
|
+
threshold?: number | number[];
|
|
2005
|
+
}): boolean;
|
|
2006
|
+
|
|
1174
2007
|
type SidebarProps = {
|
|
1175
2008
|
children: ReactNode;
|
|
1176
2009
|
collapsed?: boolean;
|
|
@@ -1374,4 +2207,4 @@ type SankeyLinkDef = {
|
|
|
1374
2207
|
};
|
|
1375
2208
|
declare const demoSankeyLinks: SankeyLinkDef[];
|
|
1376
2209
|
|
|
1377
|
-
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, Button, type ButtonVariant, Card, Carousel, CascaderField, type CascaderOption, CatalogIcon, Chart, type ChartDatum, type ChartPalette, type ChartSeries, type ChartVariant, CheckboxField, ChipInput, ChipInputField, type ChipInputPreset, type ChipInputVariant, type ChoiceOption, type ChoiceShape, ColorField, CommandPalette, type CommandPaletteItem, ContextMenuProvider, ContextMenuTarget, CountryPickerField, DEFAULT_TOAST_DURATION_MS, DataGrid, type DataGridColumn, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, Dialog, type DialogActionSet, type DialogResult, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, EmptyState, type EmptyStateIcon, type FieldMode, FieldShell, FileField, FilterSelectField, type FilterSelectGroup, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, HiddenField, IconPicker, ImageGallery, ImageThumbnail, type ImageThumbnailSize, type LabelPosition, Lightbox, MegaMenu, type MegaMenuConfig, type MegaMenuFeatured, type MegaMenuItem, type MegaMenuSection, MetricTile, Modal, ModalDefaultActions, type ModalSize, type ModelAsset, ModelGallery, ModelLightbox, ModelThumbnail, type ModelThumbnailSize, ModelViewer, MultiSelectField, NumberField, OpusThemeProvider, Panel, type PasswordRequirement, PasswordStrengthField, type PhoneCountry, PhoneNumberField, Popover, type PopoverPlacement, ProgressBar, ProgressRing, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, RichTextField, Section, type SectionAlign, type SectionColumns, type SectionGap, type SectionJustify, type SectionLayoutPreset, type SectionSidebar, type SectionSidebarRatio, type SectionSpan, type SectionStackBelow, type SectionTemplate, type SectionWidth, SegmentedControlField, SelectField, ShowMore, type ShowToastOptions, Sidebar, SidebarGroup, SidebarHeader, SidebarLayout, SidebarLink, SidebarNav, type SidebarSide, Skeleton, type SkeletonAnimation, type SkeletonVariant, SliderRangeField, Sparkline, Speedometer, StatCard, type StatCardTrend, StatusIndicator, type StatusIndicatorState, type SurfaceDensity, type SurfaceTone, SwitchField, type TabItem, Table, type TableColumn, type TableDensity, type TableRow, Tabs, type TabsOrientation, type TabsVariant, TextAreaField, TextField, type Theme, ThemeToggleField, Toast, type ToastHorizontalPosition, ToastProvider, type ToastVerticalPosition, type ToastViewportPosition, Tooltip, TopNavigation, type TopNavigationBarMenu, type TopNavigationDropdownMenu, type TopNavigationMegaMenu, TopNavigationMenu, type TopNavigationMenuConfig, type TopNavigationSelectItem, TransferListField, TreeSelectField, type TreeSelectNode, TrendBadge, type TrendBadgeDirection, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, countries as phoneCountries, useAccentPreference, useContextMenu, useFieldShellAria, useOpusTheme, useToast, useTopNavigation, worldMapRegionIds };
|
|
2210
|
+
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarShape, type AvatarSize, Badge, type BadgeSize, type BadgeTone, type BadgeVariant, BottomNavigation, type BottomNavigationItem, type BottomNavigationProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CascaderField, type CascaderOption, CatalogIcon, Chart, type ChartDatum, type ChartPalette, type ChartSeries, type ChartVariant, CheckboxField, ChipInput, ChipInputField, type ChipInputPreset, type ChipInputVariant, type ChoiceControlSize, type ChoiceOption, type ChoiceShape, Clipboard, ClipboardProvider, ColorField, Columns, type ColumnsDirection, type ColumnsProps, CommandPalette, type CommandPaletteItem, Container, type ContainerProps, type ContainerSize, ContentTimeline, type ContentTimelineItem, type ContentTimelineStatus, ContextMenuProvider, ContextMenuTarget, CopyButton, CountryPickerField, DEFAULT_TOAST_DURATION_MS, DashboardContentContainer, type DashboardContentContainerProps, type DashboardContentContainerWidth, DataGrid, type DataGridColumn, type DataGridLayout, type DataGridPivotConfig, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, DealsOverTime, type DealsOverTimePoint, type DealsOverTimeProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, Dialog, type DialogActionSet, type DialogResult, Divider, type DividerOrientation, type DividerTone, DockLayout, type DockLayoutProps, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, DualListBuilder, type DualListBuilderProps, type DualListItem, type ElementSize, EmptyState, type EmptyStateIcon, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, Grid, type GridProps, HiddenField, type HotkeyCombo, HotkeyManager, Icon, IconPicker, type IconSize, type IconTone, ImageGallery, ImageThumbnail, type ImageThumbnailSize, IntersectionObserver, JsonViewer, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, KeyboardShortcut, type KeyboardShortcutSize, type LabelPosition, Lightbox, List, type ListItem, MasonryGrid, type MasonryGridItem, MegaMenu, type MegaMenuConfig, type MegaMenuFeatured, type MegaMenuItem, type MegaMenuSection, MetricTile, Modal, ModalDefaultActions, type ModalSize, type ModelAsset, ModelGallery, ModelLightbox, ModelThumbnail, type ModelThumbnailSize, ModelViewer, MultiSelectField, NavigationRail, type NavigationRailItem, type NavigationRailProps, NumberField, OpusThemeProvider, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, Panel, type PasswordRequirement, PasswordStrengthField, type PermissionLevel, PermissionsMatrix, type PermissionsMatrixProps, type PhoneCountry, PhoneNumberField, PipelineOverview, type PipelineOverviewProps, type PipelineStage, Popover, type PopoverPlacement, Portal, PortalHost, ProgressBar, ProgressRing, PropertyGrid, type PropertyGridItem, PropertyInspector, type PropertyInspectorItem, type PropertyInspectorValue, QueryBuilder, type QueryBuilderProps, type QueryCombinator, type QueryGroup, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, RecentActivity, type RecentActivityItem, type RecentActivityProps, ResizablePanel, type ResizablePanelProps, ResizeObserver, ResourcePlanner, type ResourcePlannerItem, type ResourcePlannerProps, type ResourcePlannerResource, RichTextField, RuleBuilder, type RuleBuilderProps, type RuleDefinition, type RuleEffect, Scheduler, type SchedulerEvent, type SchedulerProps, ScrollArea, type ScrollAreaProps, Section, type SectionAlign, type SectionColumns, type SectionGap, type SectionJustify, type SectionLayoutPreset, type SectionSidebar, type SectionSidebarRatio, type SectionSpan, type SectionStackBelow, type SectionTemplate, type SectionWidth, SegmentedControlField, SelectField, ShowMore, type ShowToastOptions, Sidebar, SidebarGroup, SidebarHeader, SidebarLayout, SidebarLink, SidebarNav, type SidebarSide, Skeleton, type SkeletonAnimation, type SkeletonVariant, SliderRangeField, Spacer, type SpacerProps, Sparkline, Speedometer, Spinner, type SpinnerSize, type SpinnerTone, SplitButton, type SplitButtonAction, type SplitButtonProps, Splitter, type SplitterOrientation, type SplitterProps, Stack, type StackAlign, type StackDirection, type StackJustify, type StackProps, StatCard, type StatCardTrend, StatTile, type StatTileItem, type StatTileProps, type StatTileTone, type StatTileTrend, StatTiles, type StatTilesProps, Statistic, type StatisticTrend, StatusIndicator, type StatusIndicatorState, type SurfaceDensity, type SurfaceTone, SwitchField, type TabItem, Table, type TableColumn, type TableDensity, type TableRow, Tabs, type TabsOrientation, type TabsVariant, TextAreaField, TextField, type Theme, OpusThemeProvider as ThemeProvider, ThemeSwitcher, ThemeToggleField, Tile, type TileItem, type TileProps, type TileTone, Tiles, type TilesLayout, type TilesProps, Toast, type ToastHorizontalPosition, ToastProvider, type ToastVerticalPosition, type ToastViewportPosition, Toolbar, type ToolbarProps, Tooltip, TopNavigation, type TopNavigationBarMenu, type TopNavigationDropdownMenu, type TopNavigationMegaMenu, TopNavigationMenu, type TopNavigationMenuConfig, type TopNavigationSelectItem, type TopPerformingUserItem, TopPerformingUsers, type TopPerformingUsersProps, TransferListField, TreeSelectField, type TreeSelectNode, TreeView, type TreeViewNode, TrendBadge, type TrendBadgeDirection, type UpcomingTaskItem, UpcomingTasks, type UpcomingTasksProps, VisuallyHidden, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, countries as phoneCountries, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|