@texturehq/edges 1.26.3 → 1.26.5

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.d.cts CHANGED
@@ -2,8 +2,8 @@ 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-Ddk1k14x.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-Ddk1k14x.cjs';
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-DtS0t3eo.cjs';
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-DtS0t3eo.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-CZCqHSPF.cjs';
@@ -845,6 +845,12 @@ interface FacetConfig {
845
845
  value: string | number;
846
846
  label: string;
847
847
  }>;
848
+ /** Number of options to show before requiring search (default: 10) */
849
+ searchThreshold?: number;
850
+ /** Max options to show initially, with "Show all" button for rest (default: 50) */
851
+ maxVisibleOptions?: number;
852
+ /** Optional description text to show below the label */
853
+ description?: string;
848
854
  }
849
855
  interface FacetCounts {
850
856
  [field: string]: {
@@ -2049,6 +2055,8 @@ interface ContactMetaDisplayProps {
2049
2055
  emphasis?: CellEmphasis;
2050
2056
  /** Show email address (only for stacked layout) */
2051
2057
  showEmail?: boolean;
2058
+ /** Badge element to display next to the name (e.g., Owner, Admin badge) */
2059
+ badge?: React.ReactNode;
2052
2060
  /** Loading state */
2053
2061
  isLoading?: boolean;
2054
2062
  /** Additional classes */
@@ -2089,7 +2097,7 @@ interface ContactMetaDisplayProps {
2089
2097
  * />
2090
2098
  * ```
2091
2099
  */
2092
- declare function ContactMetaDisplay({ firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, emphasis, showEmail, isLoading, className, }: ContactMetaDisplayProps): react_jsx_runtime.JSX.Element;
2100
+ declare function ContactMetaDisplay({ firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, emphasis, showEmail, badge, isLoading, className, }: ContactMetaDisplayProps): react_jsx_runtime.JSX.Element;
2093
2101
 
2094
2102
  interface CopyToClipboardProps {
2095
2103
  /**
@@ -2594,6 +2602,8 @@ interface FilterDialogProps {
2594
2602
  onClear?: () => void;
2595
2603
  /** Dialog title */
2596
2604
  title?: string;
2605
+ /** Optional: Show result count in footer (number of items that match current draft filters) */
2606
+ resultCount?: number;
2597
2607
  }
2598
2608
  /**
2599
2609
  * FilterDialog
@@ -2626,7 +2636,7 @@ interface FilterDialogProps {
2626
2636
  * />
2627
2637
  * ```
2628
2638
  */
2629
- declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2639
+ declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, resultCount, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2630
2640
 
2631
2641
  interface ResultsCountProps {
2632
2642
  /** Number of results/items */
@@ -2838,6 +2848,8 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
2838
2848
  emphasis?: CellEmphasis;
2839
2849
  /** Show email address (only for stacked layout) */
2840
2850
  showEmail?: boolean;
2851
+ /** Badge element to display next to the name (can be a function to extract from row) */
2852
+ badge?: React.ReactNode | ((row: T) => React.ReactNode);
2841
2853
  /** Alignment */
2842
2854
  align?: "left" | "center" | "right";
2843
2855
  /** Additional classes */
@@ -2869,7 +2881,7 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
2869
2881
  * }
2870
2882
  * ```
2871
2883
  */
2872
- declare function ContactMetaCell<T = unknown>({ row, context, firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, showEmail, emphasis, align, className, }: ContactMetaCellProps<T>): react_jsx_runtime.JSX.Element;
2884
+ 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;
2873
2885
 
2874
2886
  interface CustomCellProps<T = any> extends CellComponentProps<T> {
2875
2887
  /**
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ 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-CHRmTEal.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-CHRmTEal.js';
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-CmCDc1y7.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-CmCDc1y7.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';
@@ -845,6 +845,12 @@ interface FacetConfig {
845
845
  value: string | number;
846
846
  label: string;
847
847
  }>;
848
+ /** Number of options to show before requiring search (default: 10) */
849
+ searchThreshold?: number;
850
+ /** Max options to show initially, with "Show all" button for rest (default: 50) */
851
+ maxVisibleOptions?: number;
852
+ /** Optional description text to show below the label */
853
+ description?: string;
848
854
  }
849
855
  interface FacetCounts {
850
856
  [field: string]: {
@@ -2049,6 +2055,8 @@ interface ContactMetaDisplayProps {
2049
2055
  emphasis?: CellEmphasis;
2050
2056
  /** Show email address (only for stacked layout) */
2051
2057
  showEmail?: boolean;
2058
+ /** Badge element to display next to the name (e.g., Owner, Admin badge) */
2059
+ badge?: React.ReactNode;
2052
2060
  /** Loading state */
2053
2061
  isLoading?: boolean;
2054
2062
  /** Additional classes */
@@ -2089,7 +2097,7 @@ interface ContactMetaDisplayProps {
2089
2097
  * />
2090
2098
  * ```
2091
2099
  */
2092
- declare function ContactMetaDisplay({ firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, emphasis, showEmail, isLoading, className, }: ContactMetaDisplayProps): react_jsx_runtime.JSX.Element;
2100
+ declare function ContactMetaDisplay({ firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, emphasis, showEmail, badge, isLoading, className, }: ContactMetaDisplayProps): react_jsx_runtime.JSX.Element;
2093
2101
 
2094
2102
  interface CopyToClipboardProps {
2095
2103
  /**
@@ -2594,6 +2602,8 @@ interface FilterDialogProps {
2594
2602
  onClear?: () => void;
2595
2603
  /** Dialog title */
2596
2604
  title?: string;
2605
+ /** Optional: Show result count in footer (number of items that match current draft filters) */
2606
+ resultCount?: number;
2597
2607
  }
2598
2608
  /**
2599
2609
  * FilterDialog
@@ -2626,7 +2636,7 @@ interface FilterDialogProps {
2626
2636
  * />
2627
2637
  * ```
2628
2638
  */
2629
- declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2639
+ declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, resultCount, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2630
2640
 
2631
2641
  interface ResultsCountProps {
2632
2642
  /** Number of results/items */
@@ -2838,6 +2848,8 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
2838
2848
  emphasis?: CellEmphasis;
2839
2849
  /** Show email address (only for stacked layout) */
2840
2850
  showEmail?: boolean;
2851
+ /** Badge element to display next to the name (can be a function to extract from row) */
2852
+ badge?: React.ReactNode | ((row: T) => React.ReactNode);
2841
2853
  /** Alignment */
2842
2854
  align?: "left" | "center" | "right";
2843
2855
  /** Additional classes */
@@ -2869,7 +2881,7 @@ interface ContactMetaCellProps<T = unknown> extends CellComponentProps<T> {
2869
2881
  * }
2870
2882
  * ```
2871
2883
  */
2872
- declare function ContactMetaCell<T = unknown>({ row, context, firstName, lastName, email, avatarUrl, layout, size, href, LinkComponent, linkVariant, showEmail, emphasis, align, className, }: ContactMetaCellProps<T>): react_jsx_runtime.JSX.Element;
2884
+ 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;
2873
2885
 
2874
2886
  interface CustomCellProps<T = any> extends CellComponentProps<T> {
2875
2887
  /**