opus-react 0.2.19 → 0.2.22
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 +2252 -352
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1172 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +305 -8
- package/dist/index.d.ts +305 -8
- package/dist/index.js +2237 -353
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
|
@@ -51,7 +51,7 @@ type SkeletonAnimation = "shimmer" | "pulse" | "none";
|
|
|
51
51
|
type ImageThumbnailSize = "small" | "medium" | "large";
|
|
52
52
|
type ModelThumbnailSize = "small" | "medium" | "large";
|
|
53
53
|
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";
|
|
54
|
+
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
55
|
type ToastVerticalPosition = "top" | "bottom";
|
|
56
56
|
type ToastHorizontalPosition = "left" | "right";
|
|
57
57
|
type ToastViewportPosition = {
|
|
@@ -59,6 +59,16 @@ type ToastViewportPosition = {
|
|
|
59
59
|
vertical: ToastVerticalPosition;
|
|
60
60
|
};
|
|
61
61
|
type AccordionGroupType = "single" | "multiple";
|
|
62
|
+
type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger" | "info";
|
|
63
|
+
type BadgeVariant = "solid" | "soft" | "outline";
|
|
64
|
+
type BadgeSize = "sm" | "md";
|
|
65
|
+
type AvatarSize = "sm" | "md" | "lg" | "xl";
|
|
66
|
+
type AvatarShape = "circle" | "rounded";
|
|
67
|
+
type DividerOrientation = "horizontal" | "vertical";
|
|
68
|
+
type DividerTone = "default" | "muted" | "strong";
|
|
69
|
+
type DescriptionListLayout = "stacked" | "inline";
|
|
70
|
+
type ContentTimelineStatus = "default" | "success" | "warning" | "danger" | "muted";
|
|
71
|
+
type StatisticTrend = "up" | "down" | "flat";
|
|
62
72
|
|
|
63
73
|
type ButtonVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "link";
|
|
64
74
|
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -313,6 +323,7 @@ declare function TextField({ error, help, id, label, labelPosition, mode, placeh
|
|
|
313
323
|
|
|
314
324
|
type ThemeToggleFieldProps = {
|
|
315
325
|
className?: string;
|
|
326
|
+
help?: string;
|
|
316
327
|
id: string;
|
|
317
328
|
label?: string;
|
|
318
329
|
labelPosition?: LabelPosition;
|
|
@@ -321,7 +332,7 @@ type ThemeToggleFieldProps = {
|
|
|
321
332
|
value: Theme;
|
|
322
333
|
onChange: (value: Theme) => void;
|
|
323
334
|
};
|
|
324
|
-
declare function ThemeToggleField({ className, id, label, labelPosition, labelVisuallyHidden, mode, value, onChange, }: ThemeToggleFieldProps): react.JSX.Element;
|
|
335
|
+
declare function ThemeToggleField({ className, help, id, label, labelPosition, labelVisuallyHidden, mode, value, onChange, }: ThemeToggleFieldProps): react.JSX.Element;
|
|
325
336
|
|
|
326
337
|
type FilterSelectGroup = {
|
|
327
338
|
label: string;
|
|
@@ -1000,6 +1011,15 @@ type TableProps = {
|
|
|
1000
1011
|
};
|
|
1001
1012
|
declare function Table({ bordered, caption, columns, density, emptyMessage, rows, showCaption, striped, }: TableProps): react.JSX.Element;
|
|
1002
1013
|
|
|
1014
|
+
type DataGridLayout = "flat" | "grouped" | "tree" | "pivot";
|
|
1015
|
+
|
|
1016
|
+
type DataGridPivotConfig = {
|
|
1017
|
+
aggregator?: "sum" | "avg" | "count";
|
|
1018
|
+
columns: string[];
|
|
1019
|
+
rows: string[];
|
|
1020
|
+
values: string[];
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1003
1023
|
type DataGridColumn = {
|
|
1004
1024
|
align?: "left" | "right" | "center";
|
|
1005
1025
|
filterable?: boolean;
|
|
@@ -1014,22 +1034,37 @@ type DataGridRowHeaderColumn = {
|
|
|
1014
1034
|
sortable?: boolean;
|
|
1015
1035
|
};
|
|
1016
1036
|
type DataGridRow = {
|
|
1037
|
+
children?: DataGridRow[];
|
|
1017
1038
|
id: string;
|
|
1018
1039
|
label?: string;
|
|
1019
1040
|
values: Record<string, ReactNode>;
|
|
1020
1041
|
};
|
|
1042
|
+
|
|
1021
1043
|
type DataGridProps = {
|
|
1022
1044
|
bordered?: boolean;
|
|
1023
1045
|
caption?: string;
|
|
1024
1046
|
columns: DataGridColumn[];
|
|
1047
|
+
defaultExpandedIds?: string[];
|
|
1025
1048
|
density?: TableDensity;
|
|
1049
|
+
detailExpandedIds?: string[];
|
|
1050
|
+
getDetailContent?: (row: DataGridRow) => ReactNode;
|
|
1051
|
+
groupBy?: string;
|
|
1052
|
+
hasMore?: boolean;
|
|
1053
|
+
layout?: DataGridLayout;
|
|
1054
|
+
loadingMore?: boolean;
|
|
1055
|
+
onExpandedChange?: (ids: string[]) => void;
|
|
1056
|
+
onLoadMore?: () => void;
|
|
1057
|
+
pivot?: DataGridPivotConfig;
|
|
1026
1058
|
rowHeader?: DataGridRowHeaderColumn;
|
|
1059
|
+
rowHeight?: number;
|
|
1027
1060
|
rows: DataGridRow[];
|
|
1028
1061
|
stickyFirstColumn?: boolean;
|
|
1029
1062
|
stickyHeader?: boolean;
|
|
1030
1063
|
striped?: boolean;
|
|
1064
|
+
viewportHeight?: number;
|
|
1065
|
+
virtualized?: boolean;
|
|
1031
1066
|
};
|
|
1032
|
-
declare function DataGrid({ bordered, caption, columns, density, rowHeader, rows, stickyFirstColumn, stickyHeader, striped, }: DataGridProps): react.JSX.Element;
|
|
1067
|
+
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;
|
|
1033
1068
|
|
|
1034
1069
|
type ChartDatum = {
|
|
1035
1070
|
region?: string;
|
|
@@ -1037,6 +1072,8 @@ type ChartDatum = {
|
|
|
1037
1072
|
lng?: number;
|
|
1038
1073
|
close?: number;
|
|
1039
1074
|
end?: number;
|
|
1075
|
+
/** Error / uncertainty magnitude used by error-bar charts when high/low are omitted. */
|
|
1076
|
+
error?: number;
|
|
1040
1077
|
group?: string;
|
|
1041
1078
|
high?: number;
|
|
1042
1079
|
label: string;
|
|
@@ -1049,6 +1086,8 @@ type ChartDatum = {
|
|
|
1049
1086
|
q1?: number;
|
|
1050
1087
|
q3?: number;
|
|
1051
1088
|
start?: number;
|
|
1089
|
+
/** Target value for bullet charts. */
|
|
1090
|
+
target?: number;
|
|
1052
1091
|
value: number;
|
|
1053
1092
|
values?: number[];
|
|
1054
1093
|
x?: number;
|
|
@@ -1147,11 +1186,12 @@ declare function ModelLightbox({ asset, dismissOnBackdrop, dismissOnEscape, open
|
|
|
1147
1186
|
|
|
1148
1187
|
type ModelThumbnailProps = {
|
|
1149
1188
|
asset: ModelAsset;
|
|
1189
|
+
fill?: boolean;
|
|
1150
1190
|
openInLightbox?: boolean;
|
|
1151
1191
|
showCaption?: boolean;
|
|
1152
1192
|
size?: ModelThumbnailSize;
|
|
1153
1193
|
};
|
|
1154
|
-
declare function ModelThumbnail({ asset, openInLightbox, showCaption, size, }: ModelThumbnailProps): react.JSX.Element;
|
|
1194
|
+
declare function ModelThumbnail({ asset, fill, openInLightbox, showCaption, size, }: ModelThumbnailProps): react.JSX.Element;
|
|
1155
1195
|
|
|
1156
1196
|
type ModelGalleryProps = {
|
|
1157
1197
|
assets: ModelAsset[];
|
|
@@ -1170,6 +1210,261 @@ type EmptyStateProps = {
|
|
|
1170
1210
|
};
|
|
1171
1211
|
declare function EmptyState({ actions, description, density, icon, title, }: EmptyStateProps): react.JSX.Element;
|
|
1172
1212
|
|
|
1213
|
+
type BadgeProps = {
|
|
1214
|
+
dot?: boolean;
|
|
1215
|
+
label: string;
|
|
1216
|
+
size?: BadgeSize;
|
|
1217
|
+
tone?: BadgeTone;
|
|
1218
|
+
variant?: BadgeVariant;
|
|
1219
|
+
};
|
|
1220
|
+
declare function Badge({ dot, label, size, tone, variant, }: BadgeProps): react.JSX.Element;
|
|
1221
|
+
|
|
1222
|
+
type DividerProps = {
|
|
1223
|
+
label?: string;
|
|
1224
|
+
orientation?: DividerOrientation;
|
|
1225
|
+
tone?: DividerTone;
|
|
1226
|
+
};
|
|
1227
|
+
declare function Divider({ label, orientation, tone, }: DividerProps): react.JSX.Element;
|
|
1228
|
+
|
|
1229
|
+
type AvatarProps = {
|
|
1230
|
+
name: string;
|
|
1231
|
+
shape?: AvatarShape;
|
|
1232
|
+
size?: AvatarSize;
|
|
1233
|
+
src?: string;
|
|
1234
|
+
};
|
|
1235
|
+
declare function Avatar({ name, shape, size, src, }: AvatarProps): react.JSX.Element;
|
|
1236
|
+
|
|
1237
|
+
type AvatarGroupItem = {
|
|
1238
|
+
name: string;
|
|
1239
|
+
src?: string;
|
|
1240
|
+
};
|
|
1241
|
+
type AvatarGroupProps = {
|
|
1242
|
+
items: AvatarGroupItem[];
|
|
1243
|
+
max?: number;
|
|
1244
|
+
size?: AvatarSize;
|
|
1245
|
+
};
|
|
1246
|
+
declare function AvatarGroup({ items, max, size }: AvatarGroupProps): react.JSX.Element;
|
|
1247
|
+
|
|
1248
|
+
type StatisticProps = {
|
|
1249
|
+
label: string;
|
|
1250
|
+
prefix?: string;
|
|
1251
|
+
suffix?: string;
|
|
1252
|
+
trend?: StatisticTrend;
|
|
1253
|
+
trendLabel?: string;
|
|
1254
|
+
value: string;
|
|
1255
|
+
};
|
|
1256
|
+
declare function Statistic({ label, prefix, suffix, trend, trendLabel, value, }: StatisticProps): react.JSX.Element;
|
|
1257
|
+
|
|
1258
|
+
type ListItem = {
|
|
1259
|
+
description?: string;
|
|
1260
|
+
icon?: string;
|
|
1261
|
+
meta?: string;
|
|
1262
|
+
title: string;
|
|
1263
|
+
};
|
|
1264
|
+
type ListProps = {
|
|
1265
|
+
density?: SurfaceDensity;
|
|
1266
|
+
items: ListItem[];
|
|
1267
|
+
ordered?: boolean;
|
|
1268
|
+
};
|
|
1269
|
+
declare function List({ density, items, ordered }: ListProps): react.JSX.Element;
|
|
1270
|
+
|
|
1271
|
+
type DescriptionListItem = {
|
|
1272
|
+
details: string;
|
|
1273
|
+
term: string;
|
|
1274
|
+
};
|
|
1275
|
+
type DescriptionListProps = {
|
|
1276
|
+
items: DescriptionListItem[];
|
|
1277
|
+
layout?: DescriptionListLayout;
|
|
1278
|
+
};
|
|
1279
|
+
declare function DescriptionList({ items, layout, }: DescriptionListProps): react.JSX.Element;
|
|
1280
|
+
|
|
1281
|
+
type PropertyGridItem = {
|
|
1282
|
+
copyable?: boolean;
|
|
1283
|
+
label: string;
|
|
1284
|
+
value: string;
|
|
1285
|
+
};
|
|
1286
|
+
type PropertyGridProps = {
|
|
1287
|
+
items: PropertyGridItem[];
|
|
1288
|
+
};
|
|
1289
|
+
declare function PropertyGrid({ items }: PropertyGridProps): react.JSX.Element;
|
|
1290
|
+
|
|
1291
|
+
type ContentTimelineItem = {
|
|
1292
|
+
description?: string;
|
|
1293
|
+
status?: ContentTimelineStatus;
|
|
1294
|
+
time?: string;
|
|
1295
|
+
title: string;
|
|
1296
|
+
};
|
|
1297
|
+
type ContentTimelineProps = {
|
|
1298
|
+
items: ContentTimelineItem[];
|
|
1299
|
+
};
|
|
1300
|
+
declare function ContentTimeline({ items }: ContentTimelineProps): react.JSX.Element;
|
|
1301
|
+
|
|
1302
|
+
type TreeViewNode = {
|
|
1303
|
+
children?: TreeViewNode[];
|
|
1304
|
+
id: string;
|
|
1305
|
+
label: string;
|
|
1306
|
+
};
|
|
1307
|
+
type TreeViewProps = {
|
|
1308
|
+
defaultExpandedIds?: string[];
|
|
1309
|
+
nodes: TreeViewNode[];
|
|
1310
|
+
};
|
|
1311
|
+
declare function TreeView({ defaultExpandedIds, nodes }: TreeViewProps): react.JSX.Element;
|
|
1312
|
+
|
|
1313
|
+
type MasonryGridItem = {
|
|
1314
|
+
body?: string;
|
|
1315
|
+
height?: number;
|
|
1316
|
+
title: string;
|
|
1317
|
+
};
|
|
1318
|
+
type MasonryGridProps = {
|
|
1319
|
+
columns?: number;
|
|
1320
|
+
gap?: number;
|
|
1321
|
+
items: MasonryGridItem[];
|
|
1322
|
+
};
|
|
1323
|
+
declare function MasonryGrid({ columns, gap, items }: MasonryGridProps): react.JSX.Element;
|
|
1324
|
+
|
|
1325
|
+
type JsonViewerProps = {
|
|
1326
|
+
collapsedDepth?: number;
|
|
1327
|
+
value: unknown;
|
|
1328
|
+
};
|
|
1329
|
+
declare function JsonViewer({ collapsedDepth, value }: JsonViewerProps): react.JSX.Element;
|
|
1330
|
+
|
|
1331
|
+
type IconSize = "sm" | "md" | "lg";
|
|
1332
|
+
type IconTone = "default" | "muted" | "accent" | "success" | "warning" | "danger";
|
|
1333
|
+
type IconProps = {
|
|
1334
|
+
label?: string;
|
|
1335
|
+
name: string;
|
|
1336
|
+
size?: IconSize;
|
|
1337
|
+
tone?: IconTone;
|
|
1338
|
+
};
|
|
1339
|
+
declare function Icon({ label, name, size, tone }: IconProps): react.JSX.Element;
|
|
1340
|
+
|
|
1341
|
+
type SpinnerSize = "sm" | "md" | "lg";
|
|
1342
|
+
type SpinnerTone = "accent" | "muted" | "inverse";
|
|
1343
|
+
type SpinnerProps = {
|
|
1344
|
+
label?: string;
|
|
1345
|
+
size?: SpinnerSize;
|
|
1346
|
+
tone?: SpinnerTone;
|
|
1347
|
+
};
|
|
1348
|
+
declare function Spinner({ label, size, tone }: SpinnerProps): react.JSX.Element;
|
|
1349
|
+
|
|
1350
|
+
type PortalHostContextValue = {
|
|
1351
|
+
container: HTMLElement | null;
|
|
1352
|
+
};
|
|
1353
|
+
declare function usePortalHost(): PortalHostContextValue;
|
|
1354
|
+
type PortalHostProps = {
|
|
1355
|
+
children: ReactNode;
|
|
1356
|
+
id?: string;
|
|
1357
|
+
};
|
|
1358
|
+
declare function PortalHost({ children, id }: PortalHostProps): react.JSX.Element;
|
|
1359
|
+
type PortalProps = {
|
|
1360
|
+
children: ReactNode;
|
|
1361
|
+
container?: HTMLElement | null;
|
|
1362
|
+
disabled?: boolean;
|
|
1363
|
+
};
|
|
1364
|
+
declare function Portal({ children, container, disabled }: PortalProps): react.JSX.Element | null;
|
|
1365
|
+
|
|
1366
|
+
type VisuallyHiddenProps = {
|
|
1367
|
+
as?: "span" | "div";
|
|
1368
|
+
children: ReactNode;
|
|
1369
|
+
};
|
|
1370
|
+
declare function VisuallyHidden({ as, children }: VisuallyHiddenProps): react.JSX.Element;
|
|
1371
|
+
|
|
1372
|
+
type FocusTrapProps = {
|
|
1373
|
+
active?: boolean;
|
|
1374
|
+
children: ReactNode;
|
|
1375
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
1376
|
+
restoreFocus?: boolean;
|
|
1377
|
+
};
|
|
1378
|
+
declare function FocusTrap({ active, children, initialFocusRef, restoreFocus, }: FocusTrapProps): react.JSX.Element;
|
|
1379
|
+
|
|
1380
|
+
type KeyboardShortcutSize = "sm" | "md";
|
|
1381
|
+
type KeyboardShortcutProps = {
|
|
1382
|
+
keys: string[];
|
|
1383
|
+
size?: KeyboardShortcutSize;
|
|
1384
|
+
};
|
|
1385
|
+
declare function KeyboardShortcut({ keys, size }: KeyboardShortcutProps): react.JSX.Element;
|
|
1386
|
+
|
|
1387
|
+
type HotkeyCombo = {
|
|
1388
|
+
alt?: boolean;
|
|
1389
|
+
ctrl?: boolean;
|
|
1390
|
+
description?: string;
|
|
1391
|
+
enabled?: boolean;
|
|
1392
|
+
id: string;
|
|
1393
|
+
key: string;
|
|
1394
|
+
meta?: boolean;
|
|
1395
|
+
shift?: boolean;
|
|
1396
|
+
};
|
|
1397
|
+
type HotkeyHandler = () => void;
|
|
1398
|
+
type HotkeyManagerContextValue = {
|
|
1399
|
+
register: (combo: HotkeyCombo, handler: HotkeyHandler) => () => void;
|
|
1400
|
+
shortcuts: HotkeyCombo[];
|
|
1401
|
+
};
|
|
1402
|
+
type HotkeyManagerProps = {
|
|
1403
|
+
children: ReactNode;
|
|
1404
|
+
enabled?: boolean;
|
|
1405
|
+
};
|
|
1406
|
+
declare function HotkeyManager({ children, enabled }: HotkeyManagerProps): react.JSX.Element;
|
|
1407
|
+
declare function useHotkey(combo: HotkeyCombo, handler: HotkeyHandler): void;
|
|
1408
|
+
declare function useHotkeyManager(): HotkeyManagerContextValue;
|
|
1409
|
+
|
|
1410
|
+
type CopyButtonProps = {
|
|
1411
|
+
children?: ReactNode;
|
|
1412
|
+
copiedLabel?: string;
|
|
1413
|
+
label?: string;
|
|
1414
|
+
resetMs?: number;
|
|
1415
|
+
value: string;
|
|
1416
|
+
variant?: ButtonVariant;
|
|
1417
|
+
onCopied?: () => void;
|
|
1418
|
+
};
|
|
1419
|
+
declare function CopyButton({ children, copiedLabel, label, resetMs, value, variant, onCopied, }: CopyButtonProps): react.JSX.Element;
|
|
1420
|
+
|
|
1421
|
+
type ClipboardContextValue = {
|
|
1422
|
+
lastCopied: string | null;
|
|
1423
|
+
readText: () => Promise<string>;
|
|
1424
|
+
writeText: (value: string) => Promise<void>;
|
|
1425
|
+
};
|
|
1426
|
+
type ClipboardProviderProps = {
|
|
1427
|
+
children: ReactNode;
|
|
1428
|
+
};
|
|
1429
|
+
declare function ClipboardProvider({ children }: ClipboardProviderProps): react.JSX.Element;
|
|
1430
|
+
declare function useClipboard(): ClipboardContextValue;
|
|
1431
|
+
/** Catalog-facing alias — same as ClipboardProvider. */
|
|
1432
|
+
declare function Clipboard({ children }: ClipboardProviderProps): react.JSX.Element;
|
|
1433
|
+
|
|
1434
|
+
type ThemeSwitcherProps = {
|
|
1435
|
+
id?: string;
|
|
1436
|
+
label?: string;
|
|
1437
|
+
value: Theme;
|
|
1438
|
+
onChange: (theme: Theme) => void;
|
|
1439
|
+
};
|
|
1440
|
+
/** Compact docs-friendly theme switcher built on ThemeToggleField. */
|
|
1441
|
+
declare function ThemeSwitcher({ id, label, value, onChange, }: ThemeSwitcherProps): react.JSX.Element;
|
|
1442
|
+
|
|
1443
|
+
type ElementSize = {
|
|
1444
|
+
height: number;
|
|
1445
|
+
width: number;
|
|
1446
|
+
};
|
|
1447
|
+
type ResizeObserverProps = {
|
|
1448
|
+
children: (size: ElementSize) => ReactNode;
|
|
1449
|
+
className?: string;
|
|
1450
|
+
onResize?: (size: ElementSize) => void;
|
|
1451
|
+
};
|
|
1452
|
+
declare function ResizeObserver({ children, className, onResize }: ResizeObserverProps): react.JSX.Element;
|
|
1453
|
+
declare function useResizeObserver(targetRef: RefObject<HTMLElement | null>): ElementSize;
|
|
1454
|
+
|
|
1455
|
+
type IntersectionObserverProps = {
|
|
1456
|
+
children: (isIntersecting: boolean) => ReactNode;
|
|
1457
|
+
className?: string;
|
|
1458
|
+
rootMargin?: string;
|
|
1459
|
+
threshold?: number | number[];
|
|
1460
|
+
onChange?: (isIntersecting: boolean) => void;
|
|
1461
|
+
};
|
|
1462
|
+
declare function IntersectionObserver({ children, className, rootMargin, threshold, onChange, }: IntersectionObserverProps): react.JSX.Element;
|
|
1463
|
+
declare function useIntersectionObserver(targetRef: RefObject<HTMLElement | null>, options?: {
|
|
1464
|
+
rootMargin?: string;
|
|
1465
|
+
threshold?: number | number[];
|
|
1466
|
+
}): boolean;
|
|
1467
|
+
|
|
1173
1468
|
type SidebarProps = {
|
|
1174
1469
|
children: ReactNode;
|
|
1175
1470
|
collapsed?: boolean;
|
|
@@ -1335,6 +1630,7 @@ declare function useAccentPreference(): {
|
|
|
1335
1630
|
setAccent: (next: string) => void;
|
|
1336
1631
|
};
|
|
1337
1632
|
type AccentColorPickerProps = {
|
|
1633
|
+
help?: string;
|
|
1338
1634
|
id: string;
|
|
1339
1635
|
label?: string;
|
|
1340
1636
|
labelPosition?: LabelPosition;
|
|
@@ -1342,7 +1638,7 @@ type AccentColorPickerProps = {
|
|
|
1342
1638
|
value: string;
|
|
1343
1639
|
onChange: (value: string) => void;
|
|
1344
1640
|
};
|
|
1345
|
-
declare function AccentColorPicker({ id, label, labelPosition, mode, onChange, value, }: AccentColorPickerProps): react.JSX.Element;
|
|
1641
|
+
declare function AccentColorPicker({ help, id, label, labelPosition, mode, onChange, value, }: AccentColorPickerProps): react.JSX.Element;
|
|
1346
1642
|
|
|
1347
1643
|
type CatalogIconProps = {
|
|
1348
1644
|
iconName: string;
|
|
@@ -1350,6 +1646,7 @@ type CatalogIconProps = {
|
|
|
1350
1646
|
declare function CatalogIcon({ iconName }: CatalogIconProps): react.JSX.Element;
|
|
1351
1647
|
|
|
1352
1648
|
type IconPickerProps = {
|
|
1649
|
+
help?: string;
|
|
1353
1650
|
id: string;
|
|
1354
1651
|
label?: string;
|
|
1355
1652
|
labelPosition?: LabelPosition;
|
|
@@ -1358,7 +1655,7 @@ type IconPickerProps = {
|
|
|
1358
1655
|
value: string;
|
|
1359
1656
|
onChange: (value: string) => void;
|
|
1360
1657
|
};
|
|
1361
|
-
declare function IconPicker({ id, label, labelPosition, mode, onChange, searchPlaceholder, value, }: IconPickerProps): react.JSX.Element;
|
|
1658
|
+
declare function IconPicker({ help, id, label, labelPosition, mode, onChange, searchPlaceholder, value, }: IconPickerProps): react.JSX.Element;
|
|
1362
1659
|
|
|
1363
1660
|
declare const cartesianSpecializedVariants: ChartVariant[];
|
|
1364
1661
|
|
|
@@ -1371,4 +1668,4 @@ type SankeyLinkDef = {
|
|
|
1371
1668
|
};
|
|
1372
1669
|
declare const demoSankeyLinks: SankeyLinkDef[];
|
|
1373
1670
|
|
|
1374
|
-
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 };
|
|
1671
|
+
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarShape, type AvatarSize, Badge, type BadgeSize, type BadgeTone, type BadgeVariant, 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, Clipboard, ClipboardProvider, ColorField, CommandPalette, type CommandPaletteItem, ContentTimeline, type ContentTimelineItem, type ContentTimelineStatus, ContextMenuProvider, ContextMenuTarget, CopyButton, CountryPickerField, DEFAULT_TOAST_DURATION_MS, DataGrid, type DataGridColumn, type DataGridLayout, type DataGridPivotConfig, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, DescriptionList, type DescriptionListItem, type DescriptionListLayout, Dialog, type DialogActionSet, type DialogResult, Divider, type DividerOrientation, type DividerTone, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, type ElementSize, EmptyState, type EmptyStateIcon, type FieldMode, FieldShell, FileField, FilterSelectField, type FilterSelectGroup, FocusTrap, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, HiddenField, type HotkeyCombo, HotkeyManager, Icon, IconPicker, type IconSize, type IconTone, ImageGallery, ImageThumbnail, type ImageThumbnailSize, IntersectionObserver, JsonViewer, 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, NumberField, OpusThemeProvider, Panel, type PasswordRequirement, PasswordStrengthField, type PhoneCountry, PhoneNumberField, Popover, type PopoverPlacement, Portal, PortalHost, ProgressBar, ProgressRing, PropertyGrid, type PropertyGridItem, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, ResizeObserver, 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, Spinner, type SpinnerSize, type SpinnerTone, StatCard, type StatCardTrend, 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, 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, TreeView, type TreeViewNode, TrendBadge, type TrendBadgeDirection, 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 };
|