@texturehq/edges 1.26.6 → 1.26.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{colors-CmCDc1y7.d.ts → colors-DOPjVyDB.d.ts} +10 -2
- package/dist/{colors-DtS0t3eo.d.cts → colors-DZOKGjsX.d.cts} +10 -2
- package/dist/components.manifest.json +7 -7
- package/dist/form/index.cjs +1 -1
- package/dist/form/index.cjs.map +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/index.js.map +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +324 -145
- package/dist/index.d.ts +324 -145
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/rhf/index.cjs +1 -1
- package/dist/rhf/index.cjs.map +1 -1
- package/dist/rhf/index.js +1 -1
- package/dist/rhf/index.js.map +1 -1
- package/dist/server.cjs +2 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/utilities.manifest.json +33 -33
- package/package.json +4 -4
- package/scripts/generate-edges-docs.js +70 -24
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BreadcrumbProps, BreadcrumbsProps, DateValue, CalendarProps as CalendarProps$1, ValidationResult, DisclosurePanelProps, ButtonProps, DisclosureProps, DisclosureGroupProps, DateRangePickerProps as DateRangePickerProps$1, FormProps, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, ModalOverlayProps, Key, PopoverProps as PopoverProps$1, ProgressBarProps as ProgressBarProps$1, RangeCalendarProps as RangeCalendarProps$1, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps, TabsProps as TabsProps$2 } from 'react-aria-components';
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { RefObject,
|
|
5
|
-
import { V as FieldValue, W as BooleanFormat, X as FormattedValue, Z as CurrentFormat, _ as DateFormat, $ as DistanceFormat, a0 as EnergyFormat, a1 as CurrencyFormat, a2 as NumberFormat, a3 as PhoneFormat, a4 as PowerFormat, a5 as FormatterFunction, a6 as ResistanceFormat, a7 as TemperatureUnitString, a8 as TemperatureUnit, a9 as TemperatureFormat, aa as TextFormat, ab as VoltageFormat, ac as FieldFormat, K as BaseDataPoint, B as BadgeProps, Y as YFormatType, G as TooltipData, ad as DeviceState, ae as GridState, af as ComponentFormatter, ag as LayerSpec, ah as CustomPinsSpec, ai as GeoJsonLayerSpec, aj as RasterLayerSpec, ak as VectorLayerSpec, al as ClusteredVectorLayerSpec } from './colors-
|
|
6
|
-
export { A as ActionItem, am as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, an as Avatar, d as AvatarProps, ao as Badge, aF as BaseFormat, aA as ChartContext, N as ChartMargin, ap as CodeEditor, C as CodeEditorProps, e as CodeLanguage, f as CodeTheme, aq as ColorSpec, aC as ComponentFormatOptions, aN as CurrentUnit, aQ as CustomFormat, aJ as DateFormatStyle, aP as DistanceUnit, q as ENTITY_CONFIG, aK as EnergyUnit, E as EntityConfig, p as EntityType, H as Heading, av as InteractiveMap, I as InteractiveMapProps, ar as LayerFeature, as as LayerStyle, L as Loader, g as Logo, aw as MAP_TYPES, M as MapPoint, ay as Meter, h as MeterProps, aR as MetricFormat, aI as PercentageFormat, aL as PowerUnit, at as RenderType, aO as ResistanceUnit, j as SegmentOption, az as SegmentedControl, i as SegmentedControlProps, k as SideNav, l as SideNavItem, m as SideNavProps, ax as StaticMap, S as StaticMapProps, T as TextLink, aG as TextTransform, aH as TextTruncatePosition, J as TooltipSeries, n as TopNav, o as TopNavProps, aM as VoltageUnit, U as YFormatSettings, au as ZoomStops, aT as activeDeviceStates, u as clearColorCache, v as createCategoryColorMap, O as createXScale, P as createYScale, Q as defaultMargin, aU as deviceStateLabels, aS as deviceStateMetricFormats, aD as formatComponentValue, w as getContrastingTextColor, x as getDefaultChartColor, y as getDefaultColors, aW as getDeviceStateDisplayLabel, aW as getDeviceStateLabel, r as getEntityConfig, s as getEntityIcon, t as getEntityLabel, aY as getGridStateLabel, z as getResolvedColor, D as getThemeCategoricalColors, R as getYFormatSettings, aX as gridStateLabels, aV as isActiveDeviceState, aV as isActiveState, F as isLightColor, aB as useChartContext, aE as useComponentFormatter } from './colors-
|
|
4
|
+
import React__default, { RefObject, ComponentType, ReactNode, HTMLAttributes, ComponentProps, CSSProperties, Component, ErrorInfo } from 'react';
|
|
5
|
+
import { V as FieldValue, W as BooleanFormat, X as FormattedValue, Z as CurrentFormat, _ as DateFormat, $ as DistanceFormat, a0 as EnergyFormat, a1 as CurrencyFormat, a2 as NumberFormat, a3 as PhoneFormat, a4 as PowerFormat, a5 as FormatterFunction, a6 as ResistanceFormat, a7 as TemperatureUnitString, a8 as TemperatureUnit, a9 as TemperatureFormat, aa as TextFormat, ab as VoltageFormat, ac as FieldFormat, K as BaseDataPoint, B as BadgeProps, Y as YFormatType, G as TooltipData, ad as DeviceState, ae as GridState, af as ComponentFormatter, ag as LayerSpec, ah as CustomPinsSpec, ai as GeoJsonLayerSpec, aj as RasterLayerSpec, ak as VectorLayerSpec, al as ClusteredVectorLayerSpec } from './colors-DOPjVyDB.js';
|
|
6
|
+
export { A as ActionItem, am as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, an as Avatar, d as AvatarProps, ao as Badge, aF as BaseFormat, aA as ChartContext, N as ChartMargin, ap as CodeEditor, C as CodeEditorProps, e as CodeLanguage, f as CodeTheme, aq as ColorSpec, aC as ComponentFormatOptions, aN as CurrentUnit, aQ as CustomFormat, aJ as DateFormatStyle, aP as DistanceUnit, q as ENTITY_CONFIG, aK as EnergyUnit, E as EntityConfig, p as EntityType, H as Heading, av as InteractiveMap, I as InteractiveMapProps, ar as LayerFeature, as as LayerStyle, L as Loader, g as Logo, aw as MAP_TYPES, M as MapPoint, ay as Meter, h as MeterProps, aR as MetricFormat, aI as PercentageFormat, aL as PowerUnit, at as RenderType, aO as ResistanceUnit, j as SegmentOption, az as SegmentedControl, i as SegmentedControlProps, k as SideNav, l as SideNavItem, m as SideNavProps, ax as StaticMap, S as StaticMapProps, T as TextLink, aG as TextTransform, aH as TextTruncatePosition, J as TooltipSeries, n as TopNav, o as TopNavProps, aM as VoltageUnit, U as YFormatSettings, au as ZoomStops, aT as activeDeviceStates, u as clearColorCache, v as createCategoryColorMap, O as createXScale, P as createYScale, Q as defaultMargin, aU as deviceStateLabels, aS as deviceStateMetricFormats, aD as formatComponentValue, w as getContrastingTextColor, x as getDefaultChartColor, y as getDefaultColors, aW as getDeviceStateDisplayLabel, aW as getDeviceStateLabel, r as getEntityConfig, s as getEntityIcon, t as getEntityLabel, aY as getGridStateLabel, z as getResolvedColor, D as getThemeCategoricalColors, R as getYFormatSettings, aX as gridStateLabels, aV as isActiveDeviceState, aV as isActiveState, F as isLightColor, aB as useChartContext, aE as useComponentFormatter } from './colors-DOPjVyDB.js';
|
|
7
7
|
import { Virtualizer } from '@tanstack/react-virtual';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import { I as Icon, S as Size, d as IconName$2, B as BaseInputProps } from './RichTextEditor-CZCqHSPF.js';
|
|
@@ -1204,6 +1204,212 @@ declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T
|
|
|
1204
1204
|
*/
|
|
1205
1205
|
declare function useMediaQuery(query: string, defaultValue?: boolean): boolean;
|
|
1206
1206
|
|
|
1207
|
+
type SortDirection = "asc" | "desc";
|
|
1208
|
+
type CellAlignment = "left" | "center" | "right";
|
|
1209
|
+
type TableDensity = "compact" | "default" | "relaxed";
|
|
1210
|
+
type CellEmphasis = "strong" | "high" | "normal" | "low";
|
|
1211
|
+
type LinkBehavior = "none" | "hover" | "visible";
|
|
1212
|
+
type TableLayout = "auto" | "fixed" | "responsive";
|
|
1213
|
+
type TableWidth = "full" | "auto" | "contained";
|
|
1214
|
+
type MobileRenderer = "auto" | "cards" | "custom" | "none";
|
|
1215
|
+
type MobileBreakpoint = "sm" | "md" | "lg" | "xl";
|
|
1216
|
+
interface SortConfig {
|
|
1217
|
+
columnId: string;
|
|
1218
|
+
direction: SortDirection;
|
|
1219
|
+
}
|
|
1220
|
+
interface CellContext {
|
|
1221
|
+
isLoading: boolean;
|
|
1222
|
+
isSelected?: boolean;
|
|
1223
|
+
isHovered?: boolean;
|
|
1224
|
+
rowIndex: number;
|
|
1225
|
+
columnIndex: number;
|
|
1226
|
+
density: TableDensity;
|
|
1227
|
+
}
|
|
1228
|
+
interface CellComponentProps<T = any> {
|
|
1229
|
+
value: any;
|
|
1230
|
+
row: T;
|
|
1231
|
+
context: CellContext;
|
|
1232
|
+
[key: string]: any;
|
|
1233
|
+
}
|
|
1234
|
+
type CellComponent<T = any> = ComponentType<CellComponentProps<T>>;
|
|
1235
|
+
interface MobileConfig {
|
|
1236
|
+
priority?: 1 | 2 | 3;
|
|
1237
|
+
format?: "primary" | "secondary" | "badge" | "inline";
|
|
1238
|
+
label?: boolean;
|
|
1239
|
+
icon?: string;
|
|
1240
|
+
}
|
|
1241
|
+
interface Column<T> {
|
|
1242
|
+
id: string;
|
|
1243
|
+
label: string;
|
|
1244
|
+
accessor?: keyof T | ((row: T) => any);
|
|
1245
|
+
align?: CellAlignment;
|
|
1246
|
+
width?: string | number;
|
|
1247
|
+
minWidth?: string | number;
|
|
1248
|
+
maxWidth?: string | number;
|
|
1249
|
+
flex?: number;
|
|
1250
|
+
cell?: CellComponent<T>;
|
|
1251
|
+
cellProps?: Record<string, any> | ((value: any, row: T) => Record<string, any>);
|
|
1252
|
+
render?: (value: any, row: T, context: CellContext) => ReactNode;
|
|
1253
|
+
sortable?: boolean;
|
|
1254
|
+
noCellPadding?: boolean;
|
|
1255
|
+
mobile?: MobileConfig | false;
|
|
1256
|
+
popover?: string | ((value: unknown, row: T) => ReactNode) | {
|
|
1257
|
+
content: string | ((value: unknown, row: T) => ReactNode);
|
|
1258
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
1259
|
+
showArrow?: boolean;
|
|
1260
|
+
trigger?: "hover" | "click";
|
|
1261
|
+
};
|
|
1262
|
+
/** Label to use for this column in CSV export headers. Falls back to `label` if not provided. */
|
|
1263
|
+
exportLabel?: string;
|
|
1264
|
+
/**
|
|
1265
|
+
* Custom function to transform the cell value for export.
|
|
1266
|
+
* If not provided, uses the raw accessor value converted to string.
|
|
1267
|
+
* @param value - The raw cell value from the accessor
|
|
1268
|
+
* @param row - The full row data
|
|
1269
|
+
* @returns The value to export (will be converted to string)
|
|
1270
|
+
*/
|
|
1271
|
+
exportValue?: (value: unknown, row: T) => string | number | boolean | null;
|
|
1272
|
+
/**
|
|
1273
|
+
* Whether to include this column in CSV exports.
|
|
1274
|
+
* Defaults to true. Set to false to exclude columns like action buttons.
|
|
1275
|
+
*/
|
|
1276
|
+
exportable?: boolean;
|
|
1277
|
+
}
|
|
1278
|
+
interface DataTableProps<T> {
|
|
1279
|
+
columns: Column<T>[];
|
|
1280
|
+
data: T[];
|
|
1281
|
+
className?: string;
|
|
1282
|
+
density?: TableDensity;
|
|
1283
|
+
width?: TableWidth;
|
|
1284
|
+
height?: string | number;
|
|
1285
|
+
maxHeight?: string | number;
|
|
1286
|
+
layout?: TableLayout;
|
|
1287
|
+
mobileRenderer?: MobileRenderer;
|
|
1288
|
+
customMobileRowRender?: (row: T, index: number) => ReactNode;
|
|
1289
|
+
mobileBreakpoint?: MobileBreakpoint;
|
|
1290
|
+
isLoading?: boolean;
|
|
1291
|
+
loadingState?: LoadingState;
|
|
1292
|
+
loadingRowCount?: number;
|
|
1293
|
+
onLoadMore?: () => void | Promise<void>;
|
|
1294
|
+
hasMore?: boolean;
|
|
1295
|
+
enableVirtualization?: boolean;
|
|
1296
|
+
estimatedRowHeight?: number;
|
|
1297
|
+
loadingIndicator?: ReactNode;
|
|
1298
|
+
stickyHeader?: boolean;
|
|
1299
|
+
onRowClick?: (row: T) => void;
|
|
1300
|
+
getRowId?: (row: T) => string;
|
|
1301
|
+
hideHeader?: boolean;
|
|
1302
|
+
/** Controlled sort configuration - when provided, DataTable becomes controlled */
|
|
1303
|
+
sortConfig?: SortConfig | null;
|
|
1304
|
+
onSort?: (sortConfig: SortConfig | null) => void;
|
|
1305
|
+
"aria-label"?: string;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Table export utilities for CSV format
|
|
1310
|
+
* Provides export functionality for DataTable data
|
|
1311
|
+
*/
|
|
1312
|
+
|
|
1313
|
+
interface TableExportMetadata {
|
|
1314
|
+
/** Base filename for the exported file (without extension) */
|
|
1315
|
+
filename?: string;
|
|
1316
|
+
/** Whether to include timestamp in filename. Defaults to true */
|
|
1317
|
+
timestamp?: boolean;
|
|
1318
|
+
}
|
|
1319
|
+
interface TableExportOptions<T> {
|
|
1320
|
+
/** Column definitions for the table */
|
|
1321
|
+
columns: Column<T>[];
|
|
1322
|
+
/** Data rows to export */
|
|
1323
|
+
data: T[];
|
|
1324
|
+
/** Export metadata */
|
|
1325
|
+
metadata?: TableExportMetadata;
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Export table data as CSV
|
|
1329
|
+
*
|
|
1330
|
+
* @param options - Export configuration
|
|
1331
|
+
* @returns Promise that resolves when export is complete
|
|
1332
|
+
*
|
|
1333
|
+
* @example
|
|
1334
|
+
* ```typescript
|
|
1335
|
+
* await exportTableAsCSV({
|
|
1336
|
+
* columns: tableColumns,
|
|
1337
|
+
* data: tableData,
|
|
1338
|
+
* metadata: {
|
|
1339
|
+
* filename: "devices-export",
|
|
1340
|
+
* timestamp: true
|
|
1341
|
+
* }
|
|
1342
|
+
* });
|
|
1343
|
+
* ```
|
|
1344
|
+
*/
|
|
1345
|
+
declare function exportTableAsCSV<T>(options: TableExportOptions<T>): Promise<void>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Prepare table data for export (without triggering download)
|
|
1348
|
+
* Useful for server-side export where you need the transformed data
|
|
1349
|
+
*
|
|
1350
|
+
* @param options - Export configuration
|
|
1351
|
+
* @returns Array of row objects ready for CSV generation
|
|
1352
|
+
*/
|
|
1353
|
+
declare function prepareTableDataForExport<T>(options: Omit<TableExportOptions<T>, "metadata">): Record<string, string | number | boolean>[];
|
|
1354
|
+
/**
|
|
1355
|
+
* Get column headers for export
|
|
1356
|
+
* Useful for generating CSV headers on the server
|
|
1357
|
+
*/
|
|
1358
|
+
declare function getExportHeaders<T>(columns: Column<T>[]): string[];
|
|
1359
|
+
|
|
1360
|
+
interface UseTableExportOptions<T> {
|
|
1361
|
+
/** Column definitions for the table */
|
|
1362
|
+
columns: Column<T>[];
|
|
1363
|
+
/** Data rows to export */
|
|
1364
|
+
data: T[];
|
|
1365
|
+
/** Export metadata */
|
|
1366
|
+
metadata?: TableExportMetadata;
|
|
1367
|
+
}
|
|
1368
|
+
interface UseTableExportReturn {
|
|
1369
|
+
/** Trigger CSV export of the table data */
|
|
1370
|
+
exportCSV: () => Promise<void>;
|
|
1371
|
+
/** Whether export is available (has data and exportable columns) */
|
|
1372
|
+
canExport: boolean;
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Hook for exporting DataTable data as CSV.
|
|
1376
|
+
* Provides a stable callback for triggering exports with memoized dependencies.
|
|
1377
|
+
*
|
|
1378
|
+
* For client-side DataTables where all data is in the browser.
|
|
1379
|
+
* For server-side exports, use the `onExport` callback pattern instead.
|
|
1380
|
+
*
|
|
1381
|
+
* @param options - Configuration for table export
|
|
1382
|
+
* @returns Object with export function and status
|
|
1383
|
+
*
|
|
1384
|
+
* @example
|
|
1385
|
+
* ```tsx
|
|
1386
|
+
* const { exportCSV, canExport } = useTableExport({
|
|
1387
|
+
* columns: deviceColumns,
|
|
1388
|
+
* data: devices,
|
|
1389
|
+
* metadata: {
|
|
1390
|
+
* filename: "devices",
|
|
1391
|
+
* timestamp: true
|
|
1392
|
+
* }
|
|
1393
|
+
* });
|
|
1394
|
+
*
|
|
1395
|
+
* // In your DataControls actions
|
|
1396
|
+
* <DataControls
|
|
1397
|
+
* actions={{
|
|
1398
|
+
* items: [
|
|
1399
|
+
* {
|
|
1400
|
+
* id: "export",
|
|
1401
|
+
* label: "Export CSV",
|
|
1402
|
+
* icon: "Export",
|
|
1403
|
+
* onClick: exportCSV,
|
|
1404
|
+
* disabled: !canExport
|
|
1405
|
+
* }
|
|
1406
|
+
* ]
|
|
1407
|
+
* }}
|
|
1408
|
+
* />
|
|
1409
|
+
* ```
|
|
1410
|
+
*/
|
|
1411
|
+
declare function useTableExport<T>({ columns, data, metadata, }: UseTableExportOptions<T>): UseTableExportReturn;
|
|
1412
|
+
|
|
1207
1413
|
type ActivityFeedVariant = "timeline" | "stacked";
|
|
1208
1414
|
type ActivityFeedSize = "md" | "sm";
|
|
1209
1415
|
type ActivityItemTone = "neutral" | "brand" | "success" | "warning" | "danger" | "info";
|
|
@@ -1530,6 +1736,8 @@ interface CardProps {
|
|
|
1530
1736
|
className?: string;
|
|
1531
1737
|
children?: React__default.ReactNode;
|
|
1532
1738
|
isLoading?: boolean;
|
|
1739
|
+
/** Enable flex column layout so children can expand to fill space */
|
|
1740
|
+
layout?: "default" | "flex";
|
|
1533
1741
|
}
|
|
1534
1742
|
interface CardHeaderProps {
|
|
1535
1743
|
title?: React__default.ReactNode;
|
|
@@ -1550,6 +1758,8 @@ interface CardContentProps {
|
|
|
1550
1758
|
className?: string;
|
|
1551
1759
|
children?: React__default.ReactNode;
|
|
1552
1760
|
isLoading?: boolean;
|
|
1761
|
+
/** When true and parent Card has layout="flex", content expands to fill available space */
|
|
1762
|
+
fill?: boolean;
|
|
1553
1763
|
}
|
|
1554
1764
|
interface CardFooterProps {
|
|
1555
1765
|
className?: string;
|
|
@@ -1557,7 +1767,7 @@ interface CardFooterProps {
|
|
|
1557
1767
|
align?: "start" | "end" | "center" | "between";
|
|
1558
1768
|
isLoading?: boolean;
|
|
1559
1769
|
}
|
|
1560
|
-
declare function Card({ variant, className, children, isLoading }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1770
|
+
declare function Card({ variant, className, children, isLoading, layout, }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1561
1771
|
declare namespace Card {
|
|
1562
1772
|
var Header: typeof CardHeader;
|
|
1563
1773
|
var Media: typeof CardMedia;
|
|
@@ -1566,7 +1776,7 @@ declare namespace Card {
|
|
|
1566
1776
|
}
|
|
1567
1777
|
declare function CardHeader({ title, subtitle, actions, className, isLoading, }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
1568
1778
|
declare function CardMedia({ src, alt, aspectRatio, className, children, isLoading, }: CardMediaProps): react_jsx_runtime.JSX.Element | null;
|
|
1569
|
-
declare function CardContent({ className, children, isLoading }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
1779
|
+
declare function CardContent({ className, children, isLoading, fill, }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
1570
1780
|
declare function CardFooter({ className, children, align, isLoading, }: CardFooterProps): react_jsx_runtime.JSX.Element | null;
|
|
1571
1781
|
|
|
1572
1782
|
interface CarouselRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1897,11 +2107,7 @@ interface ContactCardProps {
|
|
|
1897
2107
|
/** Link to contact detail page (optional) */
|
|
1898
2108
|
href?: string;
|
|
1899
2109
|
/** Custom link component (e.g., Next.js Link) */
|
|
1900
|
-
LinkComponent?:
|
|
1901
|
-
href: string;
|
|
1902
|
-
className?: string;
|
|
1903
|
-
children: React.ReactNode;
|
|
1904
|
-
}>;
|
|
2110
|
+
LinkComponent?: LinkComponentType;
|
|
1905
2111
|
/** Card variant */
|
|
1906
2112
|
variant?: "outlined" | "elevated" | "filled" | "ghost";
|
|
1907
2113
|
/** Layout orientation
|
|
@@ -1924,6 +2130,11 @@ interface ContactCardProps {
|
|
|
1924
2130
|
className?: string;
|
|
1925
2131
|
/** Additional classes for the card content (for padding control, etc.) */
|
|
1926
2132
|
contentClassName?: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* Entity identifier for PII masking (e.g., "contact:ctc_abc123")
|
|
2135
|
+
* When provided, adds data-pii-* attributes for the Curtain extension
|
|
2136
|
+
*/
|
|
2137
|
+
piiEntity?: string;
|
|
1927
2138
|
}
|
|
1928
2139
|
/**
|
|
1929
2140
|
* ContactCard
|
|
@@ -1944,93 +2155,7 @@ interface ContactCardProps {
|
|
|
1944
2155
|
* />
|
|
1945
2156
|
* ```
|
|
1946
2157
|
*/
|
|
1947
|
-
declare function ContactCard({ firstName, lastName, email, phone, avatarUrl, href, LinkComponent, variant, layout, showEmail, showPhone, isLoading, className, contentClassName, }: ContactCardProps): react_jsx_runtime.JSX.Element;
|
|
1948
|
-
|
|
1949
|
-
type SortDirection = "asc" | "desc";
|
|
1950
|
-
type CellAlignment = "left" | "center" | "right";
|
|
1951
|
-
type TableDensity = "compact" | "default" | "relaxed";
|
|
1952
|
-
type CellEmphasis = "strong" | "high" | "normal" | "low";
|
|
1953
|
-
type LinkBehavior = "none" | "hover" | "visible";
|
|
1954
|
-
type TableLayout = "auto" | "fixed" | "responsive";
|
|
1955
|
-
type TableWidth = "full" | "auto" | "contained";
|
|
1956
|
-
type MobileRenderer = "auto" | "cards" | "custom" | "none";
|
|
1957
|
-
type MobileBreakpoint = "sm" | "md" | "lg" | "xl";
|
|
1958
|
-
interface SortConfig {
|
|
1959
|
-
columnId: string;
|
|
1960
|
-
direction: SortDirection;
|
|
1961
|
-
}
|
|
1962
|
-
interface CellContext {
|
|
1963
|
-
isLoading: boolean;
|
|
1964
|
-
isSelected?: boolean;
|
|
1965
|
-
isHovered?: boolean;
|
|
1966
|
-
rowIndex: number;
|
|
1967
|
-
columnIndex: number;
|
|
1968
|
-
density: TableDensity;
|
|
1969
|
-
}
|
|
1970
|
-
interface CellComponentProps<T = any> {
|
|
1971
|
-
value: any;
|
|
1972
|
-
row: T;
|
|
1973
|
-
context: CellContext;
|
|
1974
|
-
[key: string]: any;
|
|
1975
|
-
}
|
|
1976
|
-
type CellComponent<T = any> = ComponentType<CellComponentProps<T>>;
|
|
1977
|
-
interface MobileConfig {
|
|
1978
|
-
priority?: 1 | 2 | 3;
|
|
1979
|
-
format?: "primary" | "secondary" | "badge" | "inline";
|
|
1980
|
-
label?: boolean;
|
|
1981
|
-
icon?: string;
|
|
1982
|
-
}
|
|
1983
|
-
interface Column<T> {
|
|
1984
|
-
id: string;
|
|
1985
|
-
label: string;
|
|
1986
|
-
accessor?: keyof T | ((row: T) => any);
|
|
1987
|
-
align?: CellAlignment;
|
|
1988
|
-
width?: string | number;
|
|
1989
|
-
minWidth?: string | number;
|
|
1990
|
-
maxWidth?: string | number;
|
|
1991
|
-
flex?: number;
|
|
1992
|
-
cell?: CellComponent<T>;
|
|
1993
|
-
cellProps?: Record<string, any> | ((value: any, row: T) => Record<string, any>);
|
|
1994
|
-
render?: (value: any, row: T, context: CellContext) => ReactNode;
|
|
1995
|
-
sortable?: boolean;
|
|
1996
|
-
noCellPadding?: boolean;
|
|
1997
|
-
mobile?: MobileConfig | false;
|
|
1998
|
-
popover?: string | ((value: unknown, row: T) => ReactNode) | {
|
|
1999
|
-
content: string | ((value: unknown, row: T) => ReactNode);
|
|
2000
|
-
placement?: "top" | "bottom" | "left" | "right";
|
|
2001
|
-
showArrow?: boolean;
|
|
2002
|
-
trigger?: "hover" | "click";
|
|
2003
|
-
};
|
|
2004
|
-
}
|
|
2005
|
-
interface DataTableProps<T> {
|
|
2006
|
-
columns: Column<T>[];
|
|
2007
|
-
data: T[];
|
|
2008
|
-
className?: string;
|
|
2009
|
-
density?: TableDensity;
|
|
2010
|
-
width?: TableWidth;
|
|
2011
|
-
height?: string | number;
|
|
2012
|
-
maxHeight?: string | number;
|
|
2013
|
-
layout?: TableLayout;
|
|
2014
|
-
mobileRenderer?: MobileRenderer;
|
|
2015
|
-
customMobileRowRender?: (row: T, index: number) => ReactNode;
|
|
2016
|
-
mobileBreakpoint?: MobileBreakpoint;
|
|
2017
|
-
isLoading?: boolean;
|
|
2018
|
-
loadingState?: LoadingState;
|
|
2019
|
-
loadingRowCount?: number;
|
|
2020
|
-
onLoadMore?: () => void | Promise<void>;
|
|
2021
|
-
hasMore?: boolean;
|
|
2022
|
-
enableVirtualization?: boolean;
|
|
2023
|
-
estimatedRowHeight?: number;
|
|
2024
|
-
loadingIndicator?: ReactNode;
|
|
2025
|
-
stickyHeader?: boolean;
|
|
2026
|
-
onRowClick?: (row: T) => void;
|
|
2027
|
-
getRowId?: (row: T) => string;
|
|
2028
|
-
hideHeader?: boolean;
|
|
2029
|
-
/** Controlled sort configuration - when provided, DataTable becomes controlled */
|
|
2030
|
-
sortConfig?: SortConfig | null;
|
|
2031
|
-
onSort?: (sortConfig: SortConfig | null) => void;
|
|
2032
|
-
"aria-label"?: string;
|
|
2033
|
-
}
|
|
2158
|
+
declare function ContactCard({ firstName, lastName, email, phone, avatarUrl, href, LinkComponent, variant, layout, showEmail, showPhone, isLoading, className, contentClassName, piiEntity, }: ContactCardProps): react_jsx_runtime.JSX.Element;
|
|
2034
2159
|
|
|
2035
2160
|
interface ContactMetaDisplayProps {
|
|
2036
2161
|
/** First name */
|
|
@@ -2048,11 +2173,7 @@ interface ContactMetaDisplayProps {
|
|
|
2048
2173
|
/** Link to contact detail page (optional) */
|
|
2049
2174
|
href?: string;
|
|
2050
2175
|
/** Custom link component (e.g., Next.js Link) */
|
|
2051
|
-
LinkComponent?:
|
|
2052
|
-
href: string;
|
|
2053
|
-
className?: string;
|
|
2054
|
-
children: React.ReactNode;
|
|
2055
|
-
}>;
|
|
2176
|
+
LinkComponent?: LinkComponentType;
|
|
2056
2177
|
/** Link variant for the name */
|
|
2057
2178
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
2058
2179
|
/** Text emphasis level - "strong"/"high" for bold, "normal" for regular, "low" for muted */
|
|
@@ -2061,10 +2182,17 @@ interface ContactMetaDisplayProps {
|
|
|
2061
2182
|
showEmail?: boolean;
|
|
2062
2183
|
/** Badge element to display next to the name (e.g., Owner, Admin badge) */
|
|
2063
2184
|
badge?: React.ReactNode;
|
|
2185
|
+
/** Avatar shape (default: "square") */
|
|
2186
|
+
avatarShape?: "circle" | "square";
|
|
2064
2187
|
/** Loading state */
|
|
2065
2188
|
isLoading?: boolean;
|
|
2066
2189
|
/** Additional classes */
|
|
2067
2190
|
className?: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* Entity identifier for PII masking (e.g., "contact:ctc_abc123")
|
|
2193
|
+
* When provided, adds data-pii-* attributes for the Curtain extension
|
|
2194
|
+
*/
|
|
2195
|
+
piiEntity?: string;
|
|
2068
2196
|
}
|
|
2069
2197
|
/**
|
|
2070
2198
|
* ContactMetaDisplay
|
|
@@ -2101,7 +2229,7 @@ interface ContactMetaDisplayProps {
|
|
|
2101
2229
|
* />
|
|
2102
2230
|
* ```
|
|
2103
2231
|
*/
|
|
2104
|
-
declare function ContactMetaDisplay({ firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, emphasis, showEmail, badge, isLoading, className, }: ContactMetaDisplayProps): react_jsx_runtime.JSX.Element;
|
|
2232
|
+
declare function ContactMetaDisplay({ firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, emphasis, showEmail, badge, avatarShape, isLoading, className, piiEntity, }: ContactMetaDisplayProps): react_jsx_runtime.JSX.Element;
|
|
2105
2233
|
|
|
2106
2234
|
interface CopyToClipboardProps {
|
|
2107
2235
|
/**
|
|
@@ -2167,6 +2295,7 @@ interface AxisLeftProps {
|
|
|
2167
2295
|
left: number;
|
|
2168
2296
|
scale: ScaleLinear<number, number>;
|
|
2169
2297
|
yFormatter: YFormatType;
|
|
2298
|
+
height?: number;
|
|
2170
2299
|
}
|
|
2171
2300
|
/**
|
|
2172
2301
|
* ChartAxis
|
|
@@ -2841,11 +2970,7 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
2841
2970
|
/** Link to contact detail page (optional) */
|
|
2842
2971
|
href?: string | ((row: T) => string);
|
|
2843
2972
|
/** Custom link component (e.g., Next.js Link) */
|
|
2844
|
-
LinkComponent?:
|
|
2845
|
-
href: string;
|
|
2846
|
-
className?: string;
|
|
2847
|
-
children: React.ReactNode;
|
|
2848
|
-
}>;
|
|
2973
|
+
LinkComponent?: LinkComponentType;
|
|
2849
2974
|
/** Link variant for the name */
|
|
2850
2975
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
2851
2976
|
/** Text emphasis level - "strong"/"high" for bold, "normal" for regular, "low" for muted */
|
|
@@ -2858,6 +2983,11 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
2858
2983
|
align?: "left" | "center" | "right";
|
|
2859
2984
|
/** Additional classes */
|
|
2860
2985
|
className?: string;
|
|
2986
|
+
/**
|
|
2987
|
+
* Entity identifier for PII masking (can be a function to extract from row)
|
|
2988
|
+
* Example: (row) => `contact:${row.id}`
|
|
2989
|
+
*/
|
|
2990
|
+
piiEntity?: string | ((row: T) => string | undefined);
|
|
2861
2991
|
}
|
|
2862
2992
|
/**
|
|
2863
2993
|
* ContactMetaCell
|
|
@@ -2885,7 +3015,7 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
2885
3015
|
* }
|
|
2886
3016
|
* ```
|
|
2887
3017
|
*/
|
|
2888
|
-
declare function ContactMetaCell<T = unknown>({ row, context, firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, showEmail, badge, emphasis, align, className, }: ContactMetaCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3018
|
+
declare function ContactMetaCell<T = unknown>({ row, context, firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, showEmail, badge, emphasis, align, className, piiEntity, }: ContactMetaCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
2889
3019
|
|
|
2890
3020
|
interface CustomCellProps<T = any> extends CellComponentProps<T> {
|
|
2891
3021
|
/**
|
|
@@ -3046,11 +3176,7 @@ interface DeviceMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
3046
3176
|
/** Link to device detail page (optional) */
|
|
3047
3177
|
href?: string | ((row: T) => string);
|
|
3048
3178
|
/** Custom link component (e.g., Next.js Link) */
|
|
3049
|
-
LinkComponent?:
|
|
3050
|
-
href: string;
|
|
3051
|
-
className?: string;
|
|
3052
|
-
children: React.ReactNode;
|
|
3053
|
-
}>;
|
|
3179
|
+
LinkComponent?: LinkComponentType;
|
|
3054
3180
|
/** Link variant for the manufacturer name */
|
|
3055
3181
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
3056
3182
|
/** Show device type icon next to model name (stacked) or hide logo (inline) */
|
|
@@ -3332,11 +3458,7 @@ interface SiteMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
3332
3458
|
/** Link to site detail page (optional) */
|
|
3333
3459
|
href?: string | ((row: T) => string);
|
|
3334
3460
|
/** Custom link component (e.g., Next.js Link) */
|
|
3335
|
-
LinkComponent?:
|
|
3336
|
-
href: string;
|
|
3337
|
-
className?: string;
|
|
3338
|
-
children: React.ReactNode;
|
|
3339
|
-
}>;
|
|
3461
|
+
LinkComponent?: LinkComponentType;
|
|
3340
3462
|
/** Link variant for the street address */
|
|
3341
3463
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
3342
3464
|
/** Text emphasis level - "strong"/"high" for bold, "normal" for regular, "low" for muted */
|
|
@@ -3345,6 +3467,11 @@ interface SiteMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
3345
3467
|
align?: "left" | "center" | "right";
|
|
3346
3468
|
/** Additional classes */
|
|
3347
3469
|
className?: string;
|
|
3470
|
+
/**
|
|
3471
|
+
* Entity identifier for PII masking (can be a function to extract from row)
|
|
3472
|
+
* Example: (row) => `site:${row.id}`
|
|
3473
|
+
*/
|
|
3474
|
+
piiEntity?: string | ((row: T) => string | undefined);
|
|
3348
3475
|
}
|
|
3349
3476
|
/**
|
|
3350
3477
|
* SiteMetaCell
|
|
@@ -3371,7 +3498,7 @@ interface SiteMetaCellProps<T = unknown> extends CellComponentProps<T> {
|
|
|
3371
3498
|
* }
|
|
3372
3499
|
* ```
|
|
3373
3500
|
*/
|
|
3374
|
-
declare function SiteMetaCell<T = unknown>({ row, context, streetAddress, city, state, postalCode, layout, size, href, LinkComponent, linkVariant, emphasis, align, className, }: SiteMetaCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3501
|
+
declare function SiteMetaCell<T = unknown>({ row, context, streetAddress, city, state, postalCode, layout, size, href, LinkComponent, linkVariant, emphasis, align, className, piiEntity, }: SiteMetaCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3375
3502
|
|
|
3376
3503
|
interface SparklineCellProps extends CellComponentProps {
|
|
3377
3504
|
data?: BaseDataPoint[];
|
|
@@ -3426,6 +3553,16 @@ interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
|
3426
3553
|
copyable?: boolean | ((row: T) => string);
|
|
3427
3554
|
align?: "left" | "center" | "right";
|
|
3428
3555
|
className?: string;
|
|
3556
|
+
/**
|
|
3557
|
+
* PII type for masking (e.g., "email", "phone", "full-name")
|
|
3558
|
+
* When provided along with piiEntity, adds data-pii-* attributes for masking
|
|
3559
|
+
*/
|
|
3560
|
+
piiType?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* Entity identifier for PII masking (can be a function to extract from row)
|
|
3563
|
+
* Example: (row) => `contact:${row.id}`
|
|
3564
|
+
*/
|
|
3565
|
+
piiEntity?: string | ((row: T) => string | undefined);
|
|
3429
3566
|
}
|
|
3430
3567
|
/**
|
|
3431
3568
|
* TextCell
|
|
@@ -3452,7 +3589,7 @@ interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
|
3452
3589
|
* }
|
|
3453
3590
|
* ```
|
|
3454
3591
|
*/
|
|
3455
|
-
declare function TextCell<T = any>({ value, row, context, prefix, suffix, emptyText, href, linkBehavior, linkVariant, emphasis, truncate, copyable, align, className, }: TextCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3592
|
+
declare function TextCell<T = any>({ value, row, context, prefix, suffix, emptyText, href, linkBehavior, linkVariant, emphasis, truncate, copyable, align, className, piiType, piiEntity, }: TextCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3456
3593
|
|
|
3457
3594
|
/**
|
|
3458
3595
|
* DataTable
|
|
@@ -3537,11 +3674,7 @@ interface DeviceMetaDisplayProps {
|
|
|
3537
3674
|
/** Link to device detail page (optional) */
|
|
3538
3675
|
href?: string;
|
|
3539
3676
|
/** Custom link component (e.g., Next.js Link) */
|
|
3540
|
-
LinkComponent?:
|
|
3541
|
-
href: string;
|
|
3542
|
-
className?: string;
|
|
3543
|
-
children: React.ReactNode;
|
|
3544
|
-
}>;
|
|
3677
|
+
LinkComponent?: LinkComponentType;
|
|
3545
3678
|
/** Link variant for the manufacturer name */
|
|
3546
3679
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
3547
3680
|
/** Show device type icon next to model name (stacked) or hide logo (inline) */
|
|
@@ -4823,6 +4956,19 @@ interface ListItemProps {
|
|
|
4823
4956
|
onMouseLeave?: (id: string) => void;
|
|
4824
4957
|
className?: string;
|
|
4825
4958
|
style?: CSSProperties;
|
|
4959
|
+
/**
|
|
4960
|
+
* PII type for masking the title (e.g., "full-name", "address")
|
|
4961
|
+
* When provided along with piiEntity, adds data-pii-* attributes
|
|
4962
|
+
*/
|
|
4963
|
+
piiTitleType?: string;
|
|
4964
|
+
/**
|
|
4965
|
+
* PII type for masking the subtitle (e.g., "city-state", "email")
|
|
4966
|
+
*/
|
|
4967
|
+
piiSubtitleType?: string;
|
|
4968
|
+
/**
|
|
4969
|
+
* Entity identifier for PII masking (e.g., "contact:ctc_abc123")
|
|
4970
|
+
*/
|
|
4971
|
+
piiEntity?: string;
|
|
4826
4972
|
}
|
|
4827
4973
|
/**
|
|
4828
4974
|
* ListItem
|
|
@@ -4844,7 +4990,7 @@ interface ListItemProps {
|
|
|
4844
4990
|
* />
|
|
4845
4991
|
* ```
|
|
4846
4992
|
*/
|
|
4847
|
-
declare function ListItem({ id, title, subtitle, meta, leading, trailing, isSelected, isHovered, disabled, href, size, onClick, onMouseEnter, onMouseLeave, className, style, }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
4993
|
+
declare function ListItem({ id, title, subtitle, meta, leading, trailing, isSelected, isHovered, disabled, href, size, onClick, onMouseEnter, onMouseLeave, className, style, piiTitleType, piiSubtitleType, piiEntity, }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
4848
4994
|
|
|
4849
4995
|
interface ListPaneProps {
|
|
4850
4996
|
/** Content for the header area (typically DataControls or custom header) */
|
|
@@ -5584,11 +5730,7 @@ interface SiteCardProps {
|
|
|
5584
5730
|
/** Link to site detail page (optional) */
|
|
5585
5731
|
href?: string;
|
|
5586
5732
|
/** Custom link component (e.g., Next.js Link) */
|
|
5587
|
-
LinkComponent?:
|
|
5588
|
-
href: string;
|
|
5589
|
-
className?: string;
|
|
5590
|
-
children: React.ReactNode;
|
|
5591
|
-
}>;
|
|
5733
|
+
LinkComponent?: LinkComponentType;
|
|
5592
5734
|
/** Card variant */
|
|
5593
5735
|
variant?: "outlined" | "elevated" | "filled" | "ghost";
|
|
5594
5736
|
/** Layout mode
|
|
@@ -5619,6 +5761,11 @@ interface SiteCardProps {
|
|
|
5619
5761
|
expandedMapTitle?: string;
|
|
5620
5762
|
/** Address label to show in expanded map view (defaults to formatted address) */
|
|
5621
5763
|
expandedMapAddressLabel?: string;
|
|
5764
|
+
/**
|
|
5765
|
+
* Entity identifier for PII masking (e.g., "site:site_abc123")
|
|
5766
|
+
* When provided, adds data-pii-* attributes for the Curtain extension
|
|
5767
|
+
*/
|
|
5768
|
+
piiEntity?: string;
|
|
5622
5769
|
}
|
|
5623
5770
|
/**
|
|
5624
5771
|
* SiteCard
|
|
@@ -5640,7 +5787,7 @@ interface SiteCardProps {
|
|
|
5640
5787
|
* />
|
|
5641
5788
|
* ```
|
|
5642
5789
|
*/
|
|
5643
|
-
declare function SiteCard({ streetAddress, city, state, postalCode, longitude, latitude, href, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, isLoading, className, contentClassName, showMapExpandToggle, expandedMapTitle, expandedMapAddressLabel, }: SiteCardProps): react_jsx_runtime.JSX.Element;
|
|
5790
|
+
declare function SiteCard({ streetAddress, city, state, postalCode, longitude, latitude, href, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, isLoading, className, contentClassName, showMapExpandToggle, expandedMapTitle, expandedMapAddressLabel, piiEntity, }: SiteCardProps): react_jsx_runtime.JSX.Element;
|
|
5644
5791
|
|
|
5645
5792
|
interface SiteContactCardProps {
|
|
5646
5793
|
/** Site information */
|
|
@@ -5652,6 +5799,8 @@ interface SiteContactCardProps {
|
|
|
5652
5799
|
longitude?: number;
|
|
5653
5800
|
latitude?: number;
|
|
5654
5801
|
href?: string;
|
|
5802
|
+
/** Entity identifier for PII masking (e.g., "site:site_abc123") */
|
|
5803
|
+
piiEntity?: string;
|
|
5655
5804
|
};
|
|
5656
5805
|
/** Contact information (optional) */
|
|
5657
5806
|
contact?: {
|
|
@@ -5661,13 +5810,11 @@ interface SiteContactCardProps {
|
|
|
5661
5810
|
phone?: string;
|
|
5662
5811
|
avatarUrl?: string;
|
|
5663
5812
|
href?: string;
|
|
5813
|
+
/** Entity identifier for PII masking (e.g., "contact:ctc_abc123") */
|
|
5814
|
+
piiEntity?: string;
|
|
5664
5815
|
};
|
|
5665
5816
|
/** Custom link component (e.g., Next.js Link) */
|
|
5666
|
-
LinkComponent?:
|
|
5667
|
-
href: string;
|
|
5668
|
-
className?: string;
|
|
5669
|
-
children: React.ReactNode;
|
|
5670
|
-
}>;
|
|
5817
|
+
LinkComponent?: LinkComponentType;
|
|
5671
5818
|
/** Card variant */
|
|
5672
5819
|
variant?: "outlined" | "elevated" | "filled" | "ghost";
|
|
5673
5820
|
/** Layout mode
|
|
@@ -5756,11 +5903,7 @@ interface SiteMetaDisplayProps {
|
|
|
5756
5903
|
/** Link to site detail page (optional) */
|
|
5757
5904
|
href?: string;
|
|
5758
5905
|
/** Custom link component (e.g., Next.js Link) */
|
|
5759
|
-
LinkComponent?:
|
|
5760
|
-
href: string;
|
|
5761
|
-
className?: string;
|
|
5762
|
-
children: React.ReactNode;
|
|
5763
|
-
}>;
|
|
5906
|
+
LinkComponent?: LinkComponentType;
|
|
5764
5907
|
/** Link variant for the address */
|
|
5765
5908
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
5766
5909
|
/** Text emphasis level - "strong"/"high" for bold, "normal" for regular, "low" for muted */
|
|
@@ -5769,6 +5912,11 @@ interface SiteMetaDisplayProps {
|
|
|
5769
5912
|
isLoading?: boolean;
|
|
5770
5913
|
/** Additional classes */
|
|
5771
5914
|
className?: string;
|
|
5915
|
+
/**
|
|
5916
|
+
* Entity identifier for PII masking (e.g., "site:site_abc123")
|
|
5917
|
+
* When provided, adds data-pii-* attributes for the Curtain extension
|
|
5918
|
+
*/
|
|
5919
|
+
piiEntity?: string;
|
|
5772
5920
|
}
|
|
5773
5921
|
/**
|
|
5774
5922
|
* SiteMetaDisplay
|
|
@@ -5804,7 +5952,7 @@ interface SiteMetaDisplayProps {
|
|
|
5804
5952
|
* />
|
|
5805
5953
|
* ```
|
|
5806
5954
|
*/
|
|
5807
|
-
declare function SiteMetaDisplay({ streetAddress, city, state, postalCode, layout, size, href, LinkComponent, linkVariant, emphasis, isLoading, className, }: SiteMetaDisplayProps): react_jsx_runtime.JSX.Element;
|
|
5955
|
+
declare function SiteMetaDisplay({ streetAddress, city, state, postalCode, layout, size, href, LinkComponent, linkVariant, emphasis, isLoading, className, piiEntity, }: SiteMetaDisplayProps): react_jsx_runtime.JSX.Element;
|
|
5808
5956
|
|
|
5809
5957
|
interface SkeletonProps {
|
|
5810
5958
|
width?: number | string;
|
|
@@ -5969,6 +6117,15 @@ interface StatItem {
|
|
|
5969
6117
|
disabled?: boolean;
|
|
5970
6118
|
/** Stack label above value on mobile screens (useful for multi-line values like tags) */
|
|
5971
6119
|
stackOnMobile?: boolean;
|
|
6120
|
+
/**
|
|
6121
|
+
* PII type for masking (e.g., "email", "phone", "full-name")
|
|
6122
|
+
* When provided along with piiEntity, adds data-pii-* attributes for masking
|
|
6123
|
+
*/
|
|
6124
|
+
piiType?: string;
|
|
6125
|
+
/**
|
|
6126
|
+
* Entity identifier for PII masking (e.g., "contact:ctc_abc123")
|
|
6127
|
+
*/
|
|
6128
|
+
piiEntity?: string;
|
|
5972
6129
|
}
|
|
5973
6130
|
interface StatListProps {
|
|
5974
6131
|
/** Statistics to display */
|
|
@@ -6390,4 +6547,26 @@ type StatTone = "success" | "warning" | "error" | "info" | "neutral";
|
|
|
6390
6547
|
*/
|
|
6391
6548
|
declare function getStateTone(state: DeviceState): StatTone;
|
|
6392
6549
|
|
|
6393
|
-
|
|
6550
|
+
/**
|
|
6551
|
+
* @edges/components
|
|
6552
|
+
*
|
|
6553
|
+
* Components can be imported directly from the package root:
|
|
6554
|
+
* ```typescript
|
|
6555
|
+
* import { Button, TextField, AppShell, Avatar } from "@texturehq/edges"
|
|
6556
|
+
* ```
|
|
6557
|
+
*
|
|
6558
|
+
* Or from their specific paths for optimal tree-shaking:
|
|
6559
|
+
* ```typescript
|
|
6560
|
+
* import { Button } from "@texturehq/edges/Button"
|
|
6561
|
+
* import { TextField } from "@texturehq/edges/TextField"
|
|
6562
|
+
* ```
|
|
6563
|
+
*/
|
|
6564
|
+
|
|
6565
|
+
/**
|
|
6566
|
+
* Type for custom link components (e.g., Next.js Link).
|
|
6567
|
+
* This type is intentionally permissive to allow framework-specific link components
|
|
6568
|
+
* that have additional props beyond the minimum required (href, className, children).
|
|
6569
|
+
*/
|
|
6570
|
+
type LinkComponentType = React.ComponentType<any>;
|
|
6571
|
+
|
|
6572
|
+
export { type Action, ActionCell, type ActionCellProps, ActivityFeed, ActivityFeedGroup, type ActivityFeedGroupProps, type ActivityFeedProps, type ActivityFeedSize, type ActivityFeedVariant, ActivityItem, type ActivityItemProps, type ActivityItemSurface, type ActivityItemTone, Alert, type AlertProps, AreaSeries, AutoMobileRenderer, BREAKPOINTS, BadgeCell, type BadgeCellProps, BadgeProps, Banner, type BannerAction, type BannerAppearance, type BannerProps, type BannerVariant, BarSeries, BaseDataPoint, BaseInputProps, BooleanCell, type BooleanCellProps, BooleanFormat, BreadcrumbItem, type BreadcrumbItemProps, Breadcrumbs, type Breakpoint, type BreakpointState, Calendar, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, CardMobileRenderer, type CardProps, type CardVariant, CarouselAutoplayTrigger, CarouselControl, type CarouselControlProps, CarouselIndicator, CarouselIndicatorGroup, type CarouselIndicatorProps, CarouselItem, CarouselItemGroup, type CarouselItemGroupProps, type CarouselItemProps, CarouselNextTrigger, CarouselPrevTrigger, CarouselProgressText, CarouselRoot, type CarouselRootProps, type CarouselTriggerProps, type CellAlignment, type CellComponent, type CellComponentProps, type CellContext, type CellEmphasis, ChartAxis, ChartBottomBar, ChartContainer, ChartEventMarkers, type ChartEventMarkersProps, type ChartExportMetadata, ChartTooltip, Chip, ChipInputField, type ChipInputFieldProps, Collapse, CollapseContent, type CollapseContentProps, type CollapseDensity, CollapseHeader, type CollapseHeaderProps, CollapseItem, type CollapseItemProps, type CollapseProps, type CollapseVariant, ColorModeProvider, type Column, CommandPalette, type CommandPaletteProps, ComponentFormatter, Confirm, type ConfirmProps, ConnectionStatusBadge, type ConnectionStatusBadgeProps, ContactCard, type ContactCardProps, ContactMetaCell, ContactMetaDisplay, type ContactMetaDisplayProps, CopyToClipboard, CurrencyFormat, CurrentFormat, CustomCell, type CustomCellProps, CustomPinsSpec, DataControls, type Filter as DataControlsFilter, type DataControlsProps, type SortOption as DataControlsSortOption, DataTable, type DataTableProps, DateCell, type DateCellProps, DateFormat, DateRangePicker, DeviceHealthBadge, type DeviceHealthBadgeProps, DeviceMetaCell, type DeviceMetaCellProps, DeviceMetaDisplay, type DeviceMetaDisplayProps, DeviceState, DeviceStateBadge, type DeviceStateBadgeProps, DeviceStateCell, type DeviceStateCellProps, DeviceStateWithMetric, type DeviceStateWithMetricProps, type DeviceType, DeviceTypeIcon, type DeviceTypeIconProps, DialogAction, DialogFooterConfig, DialogHeader, DialogHeaderConfig, type DialogHeaderProps, DistanceFormat, type ElementSize, EmptyState, type EmptyStateAction, type EmptyStateAlignment, type EmptyStateProps, type EmptyStateSize, EnergyFormat, type EnrollmentStatus, EnrollmentStatusBadge, type EnrollmentStatusBadgeProps, ErrorBoundary, type EventMarker, type ExportType, type FacetConfig, type FacetCounts, type FacetType, FieldFormat, FieldValue, type FilterChip, FilterChips, type FilterChipsProps, type FilterCondition, FilterDialog, type FilterDialogProps, type FilterGroup, type FilterOperator, type FilterState, FirmwareVersionBadge, type FirmwareVersionBadgeProps, Form, FormatRegistry, FormattedCell, FormattedValue, FormatterFunction, FunnelSeries, type FunnelSeriesProps, type FunnelStage as FunnelSeriesStage, GeoJsonLayerSpec, GlobalSearch, type GlobalSearchProps, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, GridState, GridStateBadge, type GridStateBadgeProps, type HealthStatus, HierarchyExplorer, type HierarchyExplorerProps, type HierarchyNode, HorizontalBarCell, type HorizontalBarCellProps, HoverCard, type HoverCardContentProps, type HoverCardRootProps, Icon, InfiniteScrollIndicator, type InfiniteScrollIndicatorProps, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, LayerSpec, LineSeries, type LinkBehavior, type LinkComponentType, List, ListBox, ListBoxItem, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type LoadingState, MiniBarCell, type MiniBarCellProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, ModalBackdrop, type ModalBackdropProps, type NodeState, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberFormat, type PageAsideProps, PageBanner, type PageBannerProps, type PageBreadcrumbItem, type PageContentProps, type PageHeaderProps, PageLayout, type PageLayoutProps, type PageScrollableContentProps, PercentBarCell, type PercentBarCellProps, PhoneFormat, type Place, PlaceSearch, type PlaceSearchProps, Popover, PowerFormat, type PresetRange, ProgressBar, RadioCard, RadioCardGroup, type RadioCardGroupProps, type RadioCardProps, RangeCalendar, RasterLayerSpec, ResistanceFormat, type ResponsiveValue, ResultsCount, type ResultsCountProps, SKELETON_SIZES, type SearchConfig, SearchControl, type SearchControlProps, SearchEmptyState, type SearchEmptyStateProps, SearchLoadingState, type SearchLoadingStateProps, SearchResultGroup, type SearchResultGroupProps, SearchResultItem, type SearchResultItemProps, SearchResultsList, type SearchResultsListProps, SearchTrigger, type SearchTriggerProps, Section, SectionNav, type SectionNavItem, type SectionNavOrientation, type SectionNavProps, type SectionProps, type SectionSpacing, type SectionVariant, SelectCell, type SelectCellProps, SiteCard, type SiteCardProps, SiteContactCard, type SiteContactCardProps, SiteMetaCell, SiteMetaDisplay, type SiteMetaDisplayProps, Skeleton, Slider, type SortConfig, SortControl, type SortControlProps, type SortDirection, type SortState, SparklineCell, type SparklineCellProps, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone$1 as StatTone, type StatValue, Tab, TabList, TabPanel, type TableDensity, type TableExportMetadata, type TableExportOptions, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, TemperatureFormat, TemperatureUnit, TemperatureUnitString, TextAreaWithChips, TextCell, type TextCellProps, TextFormat, TimeControls, type TimeControlsProps, type TimeRange, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemVariant, ToggleButton, Tooltip, TooltipData, Tray, type TrayProps, type TrendPoint, type UseBreakpointReturn, type UseClientDataControlsOptions, type UseClientDataControlsResult, type UseDataControlsClientOptions, type UseDataControlsOptions, type UseDataControlsResult, type UseDataControlsServerOptions, type UseElementSizeResult, type UseInfiniteScrollOptions, type UseInfiniteScrollReturn, type UseServerDataControlsOptions, type UseTableExportOptions, type UseTableExportReturn, VectorLayerSpec, VoltageFormat, type WindowSize, type WindowSizeOption, YFormatType, addFilterCondition, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createEmptyFilter, createFilter, createFilters, createFormat, enumToSentenceCase, exportChart, exportTableAsCSV, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, filterToChips, formatBoolean, formatCapacity, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPercent, formatPhone, formatPhoneNumber, formatPower, formatPowerRating, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getExportHeaders, getFilterFields, getLinkClasses, getNumericColorClasses, getSkeletonSize, getStateTone, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isFilterEmpty, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, prepareTableDataForExport, removeFilterCondition, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useBreakpoint, useClientDataControls, useColorMode, useDataControls, useDebounce, useElementSize, useInfiniteScroll, useLocalStorage, useMediaQuery, useNotice, useServerDataControls, useTableExport, wrapWithLink, yardsToMeters };
|