@texturehq/edges 1.26.0 → 1.26.2
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/{TimeField-DT3apBHn.d.cts → TimeField-BXmGlwVW.d.cts} +6 -1
- package/dist/{TimeField-TmPbBV-t.d.ts → TimeField-DuBmntG7.d.ts} +6 -1
- package/dist/{colors-BER6l3p0.d.ts → colors-B9nHitHg.d.ts} +6 -1
- package/dist/{colors-DdsCnLrp.d.cts → colors-Cv1f3FIO.d.cts} +6 -1
- package/dist/components.manifest.json +2 -2
- package/dist/form/index.cjs.map +1 -1
- package/dist/form/index.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -6
- package/dist/index.d.ts +46 -6
- package/dist/index.js +8 -8
- 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.d.cts +1 -1
- package/dist/rhf/index.d.ts +1 -1
- package/dist/rhf/index.js +1 -1
- package/dist/rhf/index.js.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/styles.css +16 -0
- package/dist/utilities.manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,15 +2,15 @@ import { BreadcrumbProps, BreadcrumbsProps, DateValue, CalendarProps as Calendar
|
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { RefObject, HTMLAttributes, ReactNode, ComponentProps, ComponentType, CSSProperties, Component, ErrorInfo } from 'react';
|
|
5
|
-
import { W as FieldValue, X as BooleanFormat, Z as FormattedValue, _ as CurrentFormat, $ as DateFormat, a0 as DistanceFormat, a1 as EnergyFormat, a2 as CurrencyFormat, a3 as NumberFormat, a4 as PhoneFormat, a5 as PowerFormat, a6 as FormatterFunction, a7 as ResistanceFormat, a8 as TemperatureUnitString, a9 as TemperatureUnit, aa as TemperatureFormat, ab as TextFormat, ac as VoltageFormat, ad as FieldFormat, N as BaseDataPoint, B as BadgeProps, Y as YFormatType, J as TooltipData, ae as DeviceState, af as GridState, ag as ComponentFormatter, ah as LayerSpec, ai as CustomPinsSpec, aj as GeoJsonLayerSpec, ak as RasterLayerSpec, al as VectorLayerSpec, am as ClusteredVectorLayerSpec } from './colors-
|
|
6
|
-
export { A as ActionItem, an as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, e as Avatar, d as AvatarProps, ao as Badge, aF as BaseFormat, aA as ChartContext, O as ChartMargin, ap as CodeEditor, C as CodeEditorProps, f as CodeLanguage, g as CodeTheme, aq as ColorSpec, aC as ComponentFormatOptions, aN as CurrentUnit, aQ as CustomFormat, aJ as DateFormatStyle, aP as DistanceUnit, r as ENTITY_CONFIG, aK as EnergyUnit, E as EntityConfig, q as EntityType, H as Heading, av as InteractiveMap, I as InteractiveMapProps, ar as LayerFeature, as as LayerStyle, L as Loader, h as Logo, aw as MAP_TYPES, M as MapPoint, ay as Meter, i as MeterProps, aR as MetricFormat, aI as PercentageFormat, aL as PowerUnit, at as RenderType, aO as ResistanceUnit, k as SegmentOption, az as SegmentedControl, j as SegmentedControlProps, l as SideNav, m as SideNavItem, n as SideNavProps, ax as StaticMap, S as StaticMapProps, T as TextLink, aG as TextTransform, aH as TextTruncatePosition, K as TooltipSeries, o as TopNav, p as TopNavProps, aM as VoltageUnit, V as YFormatSettings, au as ZoomStops, aT as activeDeviceStates, v as clearColorCache, w as createCategoryColorMap, P as createXScale, Q as createYScale, R as defaultMargin, aU as deviceStateLabels, aS as deviceStateMetricFormats, aD as formatComponentValue, x as getContrastingTextColor, y as getDefaultChartColor, z as getDefaultColors, aW as getDeviceStateDisplayLabel, aW as getDeviceStateLabel, s as getEntityConfig, t as getEntityIcon, u as getEntityLabel, aY as getGridStateLabel, D as getResolvedColor, F as getThemeCategoricalColors, U as getYFormatSettings, aX as gridStateLabels, aV as isActiveDeviceState, aV as isActiveState, G as isLightColor, aB as useChartContext, aE as useComponentFormatter } from './colors-
|
|
5
|
+
import { W as FieldValue, X as BooleanFormat, Z as FormattedValue, _ as CurrentFormat, $ as DateFormat, a0 as DistanceFormat, a1 as EnergyFormat, a2 as CurrencyFormat, a3 as NumberFormat, a4 as PhoneFormat, a5 as PowerFormat, a6 as FormatterFunction, a7 as ResistanceFormat, a8 as TemperatureUnitString, a9 as TemperatureUnit, aa as TemperatureFormat, ab as TextFormat, ac as VoltageFormat, ad as FieldFormat, N as BaseDataPoint, B as BadgeProps, Y as YFormatType, J as TooltipData, ae as DeviceState, af as GridState, ag as ComponentFormatter, ah as LayerSpec, ai as CustomPinsSpec, aj as GeoJsonLayerSpec, ak as RasterLayerSpec, al as VectorLayerSpec, am as ClusteredVectorLayerSpec } from './colors-Cv1f3FIO.cjs';
|
|
6
|
+
export { A as ActionItem, an as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, e as Avatar, d as AvatarProps, ao as Badge, aF as BaseFormat, aA as ChartContext, O as ChartMargin, ap as CodeEditor, C as CodeEditorProps, f as CodeLanguage, g as CodeTheme, aq as ColorSpec, aC as ComponentFormatOptions, aN as CurrentUnit, aQ as CustomFormat, aJ as DateFormatStyle, aP as DistanceUnit, r as ENTITY_CONFIG, aK as EnergyUnit, E as EntityConfig, q as EntityType, H as Heading, av as InteractiveMap, I as InteractiveMapProps, ar as LayerFeature, as as LayerStyle, L as Loader, h as Logo, aw as MAP_TYPES, M as MapPoint, ay as Meter, i as MeterProps, aR as MetricFormat, aI as PercentageFormat, aL as PowerUnit, at as RenderType, aO as ResistanceUnit, k as SegmentOption, az as SegmentedControl, j as SegmentedControlProps, l as SideNav, m as SideNavItem, n as SideNavProps, ax as StaticMap, S as StaticMapProps, T as TextLink, aG as TextTransform, aH as TextTruncatePosition, K as TooltipSeries, o as TopNav, p as TopNavProps, aM as VoltageUnit, V as YFormatSettings, au as ZoomStops, aT as activeDeviceStates, v as clearColorCache, w as createCategoryColorMap, P as createXScale, Q as createYScale, R as defaultMargin, aU as deviceStateLabels, aS as deviceStateMetricFormats, aD as formatComponentValue, x as getContrastingTextColor, y as getDefaultChartColor, z as getDefaultColors, aW as getDeviceStateDisplayLabel, aW as getDeviceStateLabel, s as getEntityConfig, t as getEntityIcon, u as getEntityLabel, aY as getGridStateLabel, D as getResolvedColor, F as getThemeCategoricalColors, U as getYFormatSettings, aX as gridStateLabels, aV as isActiveDeviceState, aV as isActiveState, G as isLightColor, aB as useChartContext, aE as useComponentFormatter } from './colors-Cv1f3FIO.cjs';
|
|
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-BhX77nTp.cjs';
|
|
10
10
|
export { f as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, r as Description, g as DescriptionPlacement, j as DescriptionProps, s as FieldError, h as FieldErrorProps, v as FieldGroup, k as FieldGroupProps, b as FileUpload, F as FileUploadProps, t as Input, i as InputProps, e as InputStyleProps, l as InputWrapper, q as Label, L as LabelProps, c as RichTextEditor, R as RichTextEditorProps, p as getFieldGroupStyles, n as getInputBackgroundStyles, o as getInputBaseStyles, m as getInputStateStyles, u as useInputFocus } from './RichTextEditor-BhX77nTp.cjs';
|
|
11
11
|
import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-Dkhk7IbI.cjs';
|
|
12
12
|
export { d as Dialog, g as DialogForm, c as DialogProps, f as Drawer, h as DrawerForm, e as DrawerProps, F as FormActions, j as FormDivider, i as FormGrid, k as FormSection, l as FormStepper, S as SaveBar, U as UnsavedChangesPrompt, u as useWizard } from './index-Dkhk7IbI.cjs';
|
|
13
|
-
export { A as Autocomplete, B as Button, C as Checkbox, a as CheckboxGroup, b as ColorField, f as ColorFieldProps, N as NumberField, g as Radio, R as RadioGroup, S as Select, c as Switch, T as TextArea, d as TextField, h as TimeField } from './TimeField-
|
|
13
|
+
export { A as Autocomplete, B as Button, C as Checkbox, a as CheckboxGroup, b as ColorField, f as ColorFieldProps, N as NumberField, g as Radio, R as RadioGroup, S as Select, c as Switch, T as TextArea, d as TextField, h as TimeField } from './TimeField-BXmGlwVW.cjs';
|
|
14
14
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
15
15
|
import 'react-map-gl';
|
|
16
16
|
import '@phosphor-icons/react';
|
|
@@ -3329,6 +3329,7 @@ interface SparklineCellProps extends CellComponentProps {
|
|
|
3329
3329
|
*/
|
|
3330
3330
|
declare const SparklineCell: React__default.NamedExoticComponent<SparklineCellProps>;
|
|
3331
3331
|
|
|
3332
|
+
type TextTruncatePosition = "start" | "middle" | "end";
|
|
3332
3333
|
interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
3333
3334
|
prefix?: string;
|
|
3334
3335
|
suffix?: string;
|
|
@@ -3339,7 +3340,27 @@ interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
|
3339
3340
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
3340
3341
|
/** Text emphasis (use "strong" for bold) */
|
|
3341
3342
|
emphasis?: CellEmphasis;
|
|
3342
|
-
|
|
3343
|
+
/**
|
|
3344
|
+
* Enable truncation. Can be:
|
|
3345
|
+
* - boolean: true for CSS truncation at end (default behavior)
|
|
3346
|
+
* - object: { position, length, ellipsis, tooltip } for programmatic truncation
|
|
3347
|
+
*/
|
|
3348
|
+
truncate?: boolean | {
|
|
3349
|
+
/** Where to truncate the text */
|
|
3350
|
+
position?: TextTruncatePosition;
|
|
3351
|
+
/** Maximum length including ellipsis */
|
|
3352
|
+
length?: number;
|
|
3353
|
+
/** Custom ellipsis string */
|
|
3354
|
+
ellipsis?: string;
|
|
3355
|
+
/** Show tooltip with full text on hover */
|
|
3356
|
+
tooltip?: boolean;
|
|
3357
|
+
};
|
|
3358
|
+
/**
|
|
3359
|
+
* Enable copy to clipboard functionality
|
|
3360
|
+
* - boolean: true to enable with default settings
|
|
3361
|
+
* - function: custom function to extract the value to copy from the row
|
|
3362
|
+
*/
|
|
3363
|
+
copyable?: boolean | ((row: T) => string);
|
|
3343
3364
|
align?: "left" | "center" | "right";
|
|
3344
3365
|
className?: string;
|
|
3345
3366
|
}
|
|
@@ -3347,9 +3368,28 @@ interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
|
3347
3368
|
* TextCell
|
|
3348
3369
|
*
|
|
3349
3370
|
* DataTable cell component for displaying text content.
|
|
3350
|
-
* Supports prefixes, suffixes, truncation, and optional linking
|
|
3371
|
+
* Supports prefixes, suffixes, truncation (with position control), copy to clipboard, and optional linking.
|
|
3372
|
+
*
|
|
3373
|
+
* @example
|
|
3374
|
+
* ```tsx
|
|
3375
|
+
* // Simple CSS truncation at end (default)
|
|
3376
|
+
* { cell: TextCell, cellProps: { truncate: true } }
|
|
3377
|
+
*
|
|
3378
|
+
* // Truncate in middle for serial numbers with copy
|
|
3379
|
+
* {
|
|
3380
|
+
* cell: TextCell,
|
|
3381
|
+
* cellProps: {
|
|
3382
|
+
* truncate: {
|
|
3383
|
+
* position: "middle",
|
|
3384
|
+
* length: 14,
|
|
3385
|
+
* tooltip: true
|
|
3386
|
+
* },
|
|
3387
|
+
* copyable: true
|
|
3388
|
+
* }
|
|
3389
|
+
* }
|
|
3390
|
+
* ```
|
|
3351
3391
|
*/
|
|
3352
|
-
declare function TextCell<T = any>({ value, row, context, prefix, suffix, emptyText, href, linkBehavior, linkVariant, emphasis, truncate, align, className, }: TextCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3392
|
+
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;
|
|
3353
3393
|
|
|
3354
3394
|
/**
|
|
3355
3395
|
* DataTable
|
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import { BreadcrumbProps, BreadcrumbsProps, DateValue, CalendarProps as Calendar
|
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { RefObject, HTMLAttributes, ReactNode, ComponentProps, ComponentType, CSSProperties, Component, ErrorInfo } from 'react';
|
|
5
|
-
import { W as FieldValue, X as BooleanFormat, Z as FormattedValue, _ as CurrentFormat, $ as DateFormat, a0 as DistanceFormat, a1 as EnergyFormat, a2 as CurrencyFormat, a3 as NumberFormat, a4 as PhoneFormat, a5 as PowerFormat, a6 as FormatterFunction, a7 as ResistanceFormat, a8 as TemperatureUnitString, a9 as TemperatureUnit, aa as TemperatureFormat, ab as TextFormat, ac as VoltageFormat, ad as FieldFormat, N as BaseDataPoint, B as BadgeProps, Y as YFormatType, J as TooltipData, ae as DeviceState, af as GridState, ag as ComponentFormatter, ah as LayerSpec, ai as CustomPinsSpec, aj as GeoJsonLayerSpec, ak as RasterLayerSpec, al as VectorLayerSpec, am as ClusteredVectorLayerSpec } from './colors-
|
|
6
|
-
export { A as ActionItem, an as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, e as Avatar, d as AvatarProps, ao as Badge, aF as BaseFormat, aA as ChartContext, O as ChartMargin, ap as CodeEditor, C as CodeEditorProps, f as CodeLanguage, g as CodeTheme, aq as ColorSpec, aC as ComponentFormatOptions, aN as CurrentUnit, aQ as CustomFormat, aJ as DateFormatStyle, aP as DistanceUnit, r as ENTITY_CONFIG, aK as EnergyUnit, E as EntityConfig, q as EntityType, H as Heading, av as InteractiveMap, I as InteractiveMapProps, ar as LayerFeature, as as LayerStyle, L as Loader, h as Logo, aw as MAP_TYPES, M as MapPoint, ay as Meter, i as MeterProps, aR as MetricFormat, aI as PercentageFormat, aL as PowerUnit, at as RenderType, aO as ResistanceUnit, k as SegmentOption, az as SegmentedControl, j as SegmentedControlProps, l as SideNav, m as SideNavItem, n as SideNavProps, ax as StaticMap, S as StaticMapProps, T as TextLink, aG as TextTransform, aH as TextTruncatePosition, K as TooltipSeries, o as TopNav, p as TopNavProps, aM as VoltageUnit, V as YFormatSettings, au as ZoomStops, aT as activeDeviceStates, v as clearColorCache, w as createCategoryColorMap, P as createXScale, Q as createYScale, R as defaultMargin, aU as deviceStateLabels, aS as deviceStateMetricFormats, aD as formatComponentValue, x as getContrastingTextColor, y as getDefaultChartColor, z as getDefaultColors, aW as getDeviceStateDisplayLabel, aW as getDeviceStateLabel, s as getEntityConfig, t as getEntityIcon, u as getEntityLabel, aY as getGridStateLabel, D as getResolvedColor, F as getThemeCategoricalColors, U as getYFormatSettings, aX as gridStateLabels, aV as isActiveDeviceState, aV as isActiveState, G as isLightColor, aB as useChartContext, aE as useComponentFormatter } from './colors-
|
|
5
|
+
import { W as FieldValue, X as BooleanFormat, Z as FormattedValue, _ as CurrentFormat, $ as DateFormat, a0 as DistanceFormat, a1 as EnergyFormat, a2 as CurrencyFormat, a3 as NumberFormat, a4 as PhoneFormat, a5 as PowerFormat, a6 as FormatterFunction, a7 as ResistanceFormat, a8 as TemperatureUnitString, a9 as TemperatureUnit, aa as TemperatureFormat, ab as TextFormat, ac as VoltageFormat, ad as FieldFormat, N as BaseDataPoint, B as BadgeProps, Y as YFormatType, J as TooltipData, ae as DeviceState, af as GridState, ag as ComponentFormatter, ah as LayerSpec, ai as CustomPinsSpec, aj as GeoJsonLayerSpec, ak as RasterLayerSpec, al as VectorLayerSpec, am as ClusteredVectorLayerSpec } from './colors-B9nHitHg.js';
|
|
6
|
+
export { A as ActionItem, an as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, e as Avatar, d as AvatarProps, ao as Badge, aF as BaseFormat, aA as ChartContext, O as ChartMargin, ap as CodeEditor, C as CodeEditorProps, f as CodeLanguage, g as CodeTheme, aq as ColorSpec, aC as ComponentFormatOptions, aN as CurrentUnit, aQ as CustomFormat, aJ as DateFormatStyle, aP as DistanceUnit, r as ENTITY_CONFIG, aK as EnergyUnit, E as EntityConfig, q as EntityType, H as Heading, av as InteractiveMap, I as InteractiveMapProps, ar as LayerFeature, as as LayerStyle, L as Loader, h as Logo, aw as MAP_TYPES, M as MapPoint, ay as Meter, i as MeterProps, aR as MetricFormat, aI as PercentageFormat, aL as PowerUnit, at as RenderType, aO as ResistanceUnit, k as SegmentOption, az as SegmentedControl, j as SegmentedControlProps, l as SideNav, m as SideNavItem, n as SideNavProps, ax as StaticMap, S as StaticMapProps, T as TextLink, aG as TextTransform, aH as TextTruncatePosition, K as TooltipSeries, o as TopNav, p as TopNavProps, aM as VoltageUnit, V as YFormatSettings, au as ZoomStops, aT as activeDeviceStates, v as clearColorCache, w as createCategoryColorMap, P as createXScale, Q as createYScale, R as defaultMargin, aU as deviceStateLabels, aS as deviceStateMetricFormats, aD as formatComponentValue, x as getContrastingTextColor, y as getDefaultChartColor, z as getDefaultColors, aW as getDeviceStateDisplayLabel, aW as getDeviceStateLabel, s as getEntityConfig, t as getEntityIcon, u as getEntityLabel, aY as getGridStateLabel, D as getResolvedColor, F as getThemeCategoricalColors, U as getYFormatSettings, aX as gridStateLabels, aV as isActiveDeviceState, aV as isActiveState, G as isLightColor, aB as useChartContext, aE as useComponentFormatter } from './colors-B9nHitHg.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-BhX77nTp.js';
|
|
10
10
|
export { f as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, r as Description, g as DescriptionPlacement, j as DescriptionProps, s as FieldError, h as FieldErrorProps, v as FieldGroup, k as FieldGroupProps, b as FileUpload, F as FileUploadProps, t as Input, i as InputProps, e as InputStyleProps, l as InputWrapper, q as Label, L as LabelProps, c as RichTextEditor, R as RichTextEditorProps, p as getFieldGroupStyles, n as getInputBackgroundStyles, o as getInputBaseStyles, m as getInputStateStyles, u as useInputFocus } from './RichTextEditor-BhX77nTp.js';
|
|
11
11
|
import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-Dkhk7IbI.js';
|
|
12
12
|
export { d as Dialog, g as DialogForm, c as DialogProps, f as Drawer, h as DrawerForm, e as DrawerProps, F as FormActions, j as FormDivider, i as FormGrid, k as FormSection, l as FormStepper, S as SaveBar, U as UnsavedChangesPrompt, u as useWizard } from './index-Dkhk7IbI.js';
|
|
13
|
-
export { A as Autocomplete, B as Button, C as Checkbox, a as CheckboxGroup, b as ColorField, f as ColorFieldProps, N as NumberField, g as Radio, R as RadioGroup, S as Select, c as Switch, T as TextArea, d as TextField, h as TimeField } from './TimeField-
|
|
13
|
+
export { A as Autocomplete, B as Button, C as Checkbox, a as CheckboxGroup, b as ColorField, f as ColorFieldProps, N as NumberField, g as Radio, R as RadioGroup, S as Select, c as Switch, T as TextArea, d as TextField, h as TimeField } from './TimeField-DuBmntG7.js';
|
|
14
14
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
15
15
|
import 'react-map-gl';
|
|
16
16
|
import '@phosphor-icons/react';
|
|
@@ -3329,6 +3329,7 @@ interface SparklineCellProps extends CellComponentProps {
|
|
|
3329
3329
|
*/
|
|
3330
3330
|
declare const SparklineCell: React__default.NamedExoticComponent<SparklineCellProps>;
|
|
3331
3331
|
|
|
3332
|
+
type TextTruncatePosition = "start" | "middle" | "end";
|
|
3332
3333
|
interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
3333
3334
|
prefix?: string;
|
|
3334
3335
|
suffix?: string;
|
|
@@ -3339,7 +3340,27 @@ interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
|
3339
3340
|
linkVariant?: "default" | "brand" | "muted" | "unstyled";
|
|
3340
3341
|
/** Text emphasis (use "strong" for bold) */
|
|
3341
3342
|
emphasis?: CellEmphasis;
|
|
3342
|
-
|
|
3343
|
+
/**
|
|
3344
|
+
* Enable truncation. Can be:
|
|
3345
|
+
* - boolean: true for CSS truncation at end (default behavior)
|
|
3346
|
+
* - object: { position, length, ellipsis, tooltip } for programmatic truncation
|
|
3347
|
+
*/
|
|
3348
|
+
truncate?: boolean | {
|
|
3349
|
+
/** Where to truncate the text */
|
|
3350
|
+
position?: TextTruncatePosition;
|
|
3351
|
+
/** Maximum length including ellipsis */
|
|
3352
|
+
length?: number;
|
|
3353
|
+
/** Custom ellipsis string */
|
|
3354
|
+
ellipsis?: string;
|
|
3355
|
+
/** Show tooltip with full text on hover */
|
|
3356
|
+
tooltip?: boolean;
|
|
3357
|
+
};
|
|
3358
|
+
/**
|
|
3359
|
+
* Enable copy to clipboard functionality
|
|
3360
|
+
* - boolean: true to enable with default settings
|
|
3361
|
+
* - function: custom function to extract the value to copy from the row
|
|
3362
|
+
*/
|
|
3363
|
+
copyable?: boolean | ((row: T) => string);
|
|
3343
3364
|
align?: "left" | "center" | "right";
|
|
3344
3365
|
className?: string;
|
|
3345
3366
|
}
|
|
@@ -3347,9 +3368,28 @@ interface TextCellProps<T = any> extends CellComponentProps<T> {
|
|
|
3347
3368
|
* TextCell
|
|
3348
3369
|
*
|
|
3349
3370
|
* DataTable cell component for displaying text content.
|
|
3350
|
-
* Supports prefixes, suffixes, truncation, and optional linking
|
|
3371
|
+
* Supports prefixes, suffixes, truncation (with position control), copy to clipboard, and optional linking.
|
|
3372
|
+
*
|
|
3373
|
+
* @example
|
|
3374
|
+
* ```tsx
|
|
3375
|
+
* // Simple CSS truncation at end (default)
|
|
3376
|
+
* { cell: TextCell, cellProps: { truncate: true } }
|
|
3377
|
+
*
|
|
3378
|
+
* // Truncate in middle for serial numbers with copy
|
|
3379
|
+
* {
|
|
3380
|
+
* cell: TextCell,
|
|
3381
|
+
* cellProps: {
|
|
3382
|
+
* truncate: {
|
|
3383
|
+
* position: "middle",
|
|
3384
|
+
* length: 14,
|
|
3385
|
+
* tooltip: true
|
|
3386
|
+
* },
|
|
3387
|
+
* copyable: true
|
|
3388
|
+
* }
|
|
3389
|
+
* }
|
|
3390
|
+
* ```
|
|
3351
3391
|
*/
|
|
3352
|
-
declare function TextCell<T = any>({ value, row, context, prefix, suffix, emptyText, href, linkBehavior, linkVariant, emphasis, truncate, align, className, }: TextCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
3392
|
+
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;
|
|
3353
3393
|
|
|
3354
3394
|
/**
|
|
3355
3395
|
* DataTable
|