@texturehq/edges 1.22.2 → 1.22.4

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,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 { X as FieldValue, Z as BooleanFormat, _ as FormattedValue, $ as CurrentFormat, a0 as DateFormat, a1 as DistanceFormat, a2 as EnergyFormat, a3 as CurrencyFormat, a4 as NumberFormat, a5 as PhoneFormat, a6 as PowerFormat, a7 as FormatterFunction, a8 as ResistanceFormat, a9 as TemperatureUnitString, aa as TemperatureUnit, ab as TemperatureFormat, ac as TextFormat, ad as VoltageFormat, ae as FieldFormat, N as BaseDataPoint, B as BadgeProps, Y as YFormatType, J as TooltipData, af as DeviceState, ag as GridState, ah as ComponentFormatter, ai as LayerSpec, aj as CustomPinsSpec, ak as GeoJsonLayerSpec, al as RasterLayerSpec, am as VectorLayerSpec, an as ClusteredVectorLayerSpec } from './colors-DTZwmrPz.cjs';
6
- export { A as ActionItem, ao as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, e as Avatar, d as AvatarProps, ap as Badge, aH as BaseFormat, aC as ChartContext, O as ChartMargin, aq as CodeEditor, C as CodeEditorProps, f as CodeLanguage, g as CodeTheme, ar as ColorSpec, aE as ComponentFormatOptions, aP as CurrentUnit, aS as CustomFormat, aL as DateFormatStyle, aR as DistanceUnit, r as ENTITY_CONFIG, aM as EnergyUnit, E as EntityConfig, q as EntityType, H as Heading, aw as InteractiveMap, I as InteractiveMapProps, as as LayerFeature, at as LayerStyle, L as Loader, h as Logo, ax as MAP_TYPES, M as MapPoint, az as Meter, i as MeterProps, aT as MetricFormat, aK as PercentageFormat, aN as PowerUnit, au as RenderType, aQ as ResistanceUnit, aA as RichTextEditor, R as RichTextEditorProps, k as SegmentOption, aB as SegmentedControl, j as SegmentedControlProps, l as SideNav, m as SideNavItem, n as SideNavProps, ay as StaticMap, S as StaticMapProps, T as TextLink, aI as TextTransform, aJ as TextTruncatePosition, K as TooltipSeries, o as TopNav, p as TopNavProps, aO as VoltageUnit, W as YFormatSettings, av as ZoomStops, aV as activeDeviceStates, v as clearColorCache, w as createCategoryColorMap, P as createXScale, Q as createYScale, U as defaultMargin, aW as deviceStateLabels, aU as deviceStateMetricFormats, aF as formatComponentValue, x as getContrastingTextColor, y as getDefaultChartColor, z as getDefaultColors, aY as getDeviceStateDisplayLabel, aY as getDeviceStateLabel, s as getEntityConfig, t as getEntityIcon, u as getEntityLabel, a_ as getGridStateLabel, D as getResolvedColor, F as getThemeCategoricalColors, V as getYFormatSettings, aZ as gridStateLabels, aX as isActiveDeviceState, aX as isActiveState, G as isLightColor, aD as useChartContext, aG as useComponentFormatter } from './colors-DTZwmrPz.cjs';
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-DZxe608j.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-DZxe608j.cjs';
7
7
  import { Virtualizer } from '@tanstack/react-virtual';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
- import { I as Icon, S as Size, c as IconName$2, B as BaseInputProps } from './FileUpload-DXTcfLIh.cjs';
10
- export { e as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, p as Description, h as DescriptionProps, q as FieldError, f as FieldErrorProps, s as FieldGroup, i as FieldGroupProps, b as FileUpload, F as FileUploadProps, r as Input, g as InputProps, d as InputStyleProps, j as InputWrapper, o as Label, L as LabelProps, n as getFieldGroupStyles, l as getInputBackgroundStyles, m as getInputBaseStyles, k as getInputStateStyles, u as useInputFocus } from './FileUpload-DXTcfLIh.cjs';
9
+ import { I as Icon, S as Size, d as IconName$2, B as BaseInputProps } from './RichTextEditor-BGQenUvv.cjs';
10
+ export { f as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, q as Description, i as DescriptionProps, r as FieldError, g as FieldErrorProps, t as FieldGroup, j as FieldGroupProps, b as FileUpload, F as FileUploadProps, s as Input, h as InputProps, e as InputStyleProps, k as InputWrapper, p as Label, L as LabelProps, c as RichTextEditor, R as RichTextEditorProps, o as getFieldGroupStyles, m as getInputBackgroundStyles, n as getInputBaseStyles, l as getInputStateStyles, u as useInputFocus } from './RichTextEditor-BGQenUvv.cjs';
11
11
  import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-DKA9NMRw.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-DKA9NMRw.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-D2AOjQ1K.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-CC3x7lhz.cjs';
14
14
  import { ScaleTime, ScaleLinear } from 'd3-scale';
15
15
  import 'react-map-gl';
16
16
  import '@phosphor-icons/react';
@@ -3816,6 +3816,8 @@ interface HierarchyExplorerProps<T extends HierarchyNode = HierarchyNode> {
3816
3816
  splitBreakpoint?: number;
3817
3817
  /** Custom empty state for the detail pane in split layout when nothing is selected */
3818
3818
  renderEmptyState?: () => React.ReactNode;
3819
+ /** Custom render function for the detail pane. Receives the selected node and default renderNodeList */
3820
+ renderDetailView?: (node: T, renderNodeList: (items: T[], showConnector: boolean) => React.ReactNode) => React.ReactNode;
3819
3821
  /** Custom class name */
3820
3822
  className?: string;
3821
3823
  /** Aria label for the tree */
@@ -3825,7 +3827,7 @@ interface HierarchyExplorerProps<T extends HierarchyNode = HierarchyNode> {
3825
3827
  /**
3826
3828
  * HierarchyExplorer - Main component for drill-down navigation through hierarchical data
3827
3829
  */
3828
- declare function HierarchyExplorer<T extends HierarchyNode = HierarchyNode>({ data, renderNode, onNodeSelect, onNavigate, selectedId: controlledSelectedId, rootNodeId, stickyRootNode, height, minHeight, maxHeight, variant, size, showBullets, layout, splitBreakpoint, renderEmptyState, className, "aria-label": ariaLabel, }: HierarchyExplorerProps<T>): react_jsx_runtime.JSX.Element;
3830
+ declare function HierarchyExplorer<T extends HierarchyNode = HierarchyNode>({ data, renderNode, onNodeSelect, onNavigate, selectedId: controlledSelectedId, rootNodeId, stickyRootNode, height, minHeight, maxHeight, variant, size, showBullets, layout, splitBreakpoint, renderEmptyState, renderDetailView, className, "aria-label": ariaLabel, }: HierarchyExplorerProps<T>): react_jsx_runtime.JSX.Element;
3829
3831
 
3830
3832
  interface InfiniteScrollIndicatorProps {
3831
3833
  /** Current loading state - determines which indicator to show */
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 { X as FieldValue, Z as BooleanFormat, _ as FormattedValue, $ as CurrentFormat, a0 as DateFormat, a1 as DistanceFormat, a2 as EnergyFormat, a3 as CurrencyFormat, a4 as NumberFormat, a5 as PhoneFormat, a6 as PowerFormat, a7 as FormatterFunction, a8 as ResistanceFormat, a9 as TemperatureUnitString, aa as TemperatureUnit, ab as TemperatureFormat, ac as TextFormat, ad as VoltageFormat, ae as FieldFormat, N as BaseDataPoint, B as BadgeProps, Y as YFormatType, J as TooltipData, af as DeviceState, ag as GridState, ah as ComponentFormatter, ai as LayerSpec, aj as CustomPinsSpec, ak as GeoJsonLayerSpec, al as RasterLayerSpec, am as VectorLayerSpec, an as ClusteredVectorLayerSpec } from './colors-BTM11lUb.js';
6
- export { A as ActionItem, ao as ActionMenu, a as ActionMenuProps, b as AppShell, c as AppShellProps, e as Avatar, d as AvatarProps, ap as Badge, aH as BaseFormat, aC as ChartContext, O as ChartMargin, aq as CodeEditor, C as CodeEditorProps, f as CodeLanguage, g as CodeTheme, ar as ColorSpec, aE as ComponentFormatOptions, aP as CurrentUnit, aS as CustomFormat, aL as DateFormatStyle, aR as DistanceUnit, r as ENTITY_CONFIG, aM as EnergyUnit, E as EntityConfig, q as EntityType, H as Heading, aw as InteractiveMap, I as InteractiveMapProps, as as LayerFeature, at as LayerStyle, L as Loader, h as Logo, ax as MAP_TYPES, M as MapPoint, az as Meter, i as MeterProps, aT as MetricFormat, aK as PercentageFormat, aN as PowerUnit, au as RenderType, aQ as ResistanceUnit, aA as RichTextEditor, R as RichTextEditorProps, k as SegmentOption, aB as SegmentedControl, j as SegmentedControlProps, l as SideNav, m as SideNavItem, n as SideNavProps, ay as StaticMap, S as StaticMapProps, T as TextLink, aI as TextTransform, aJ as TextTruncatePosition, K as TooltipSeries, o as TopNav, p as TopNavProps, aO as VoltageUnit, W as YFormatSettings, av as ZoomStops, aV as activeDeviceStates, v as clearColorCache, w as createCategoryColorMap, P as createXScale, Q as createYScale, U as defaultMargin, aW as deviceStateLabels, aU as deviceStateMetricFormats, aF as formatComponentValue, x as getContrastingTextColor, y as getDefaultChartColor, z as getDefaultColors, aY as getDeviceStateDisplayLabel, aY as getDeviceStateLabel, s as getEntityConfig, t as getEntityIcon, u as getEntityLabel, a_ as getGridStateLabel, D as getResolvedColor, F as getThemeCategoricalColors, V as getYFormatSettings, aZ as gridStateLabels, aX as isActiveDeviceState, aX as isActiveState, G as isLightColor, aD as useChartContext, aG as useComponentFormatter } from './colors-BTM11lUb.js';
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-4FidHJjY.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-4FidHJjY.js';
7
7
  import { Virtualizer } from '@tanstack/react-virtual';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
- import { I as Icon, S as Size, c as IconName$2, B as BaseInputProps } from './FileUpload-DXTcfLIh.js';
10
- export { e as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, p as Description, h as DescriptionProps, q as FieldError, f as FieldErrorProps, s as FieldGroup, i as FieldGroupProps, b as FileUpload, F as FileUploadProps, r as Input, g as InputProps, d as InputStyleProps, j as InputWrapper, o as Label, L as LabelProps, n as getFieldGroupStyles, l as getInputBackgroundStyles, m as getInputBaseStyles, k as getInputStateStyles, u as useInputFocus } from './FileUpload-DXTcfLIh.js';
9
+ import { I as Icon, S as Size, d as IconName$2, B as BaseInputProps } from './RichTextEditor-BGQenUvv.js';
10
+ export { f as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, q as Description, i as DescriptionProps, r as FieldError, g as FieldErrorProps, t as FieldGroup, j as FieldGroupProps, b as FileUpload, F as FileUploadProps, s as Input, h as InputProps, e as InputStyleProps, k as InputWrapper, p as Label, L as LabelProps, c as RichTextEditor, R as RichTextEditorProps, o as getFieldGroupStyles, m as getInputBackgroundStyles, n as getInputBaseStyles, l as getInputStateStyles, u as useInputFocus } from './RichTextEditor-BGQenUvv.js';
11
11
  import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-DKA9NMRw.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-DKA9NMRw.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-B4J8gA8E.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-D3hN7DMK.js';
14
14
  import { ScaleTime, ScaleLinear } from 'd3-scale';
15
15
  import 'react-map-gl';
16
16
  import '@phosphor-icons/react';
@@ -3816,6 +3816,8 @@ interface HierarchyExplorerProps<T extends HierarchyNode = HierarchyNode> {
3816
3816
  splitBreakpoint?: number;
3817
3817
  /** Custom empty state for the detail pane in split layout when nothing is selected */
3818
3818
  renderEmptyState?: () => React.ReactNode;
3819
+ /** Custom render function for the detail pane. Receives the selected node and default renderNodeList */
3820
+ renderDetailView?: (node: T, renderNodeList: (items: T[], showConnector: boolean) => React.ReactNode) => React.ReactNode;
3819
3821
  /** Custom class name */
3820
3822
  className?: string;
3821
3823
  /** Aria label for the tree */
@@ -3825,7 +3827,7 @@ interface HierarchyExplorerProps<T extends HierarchyNode = HierarchyNode> {
3825
3827
  /**
3826
3828
  * HierarchyExplorer - Main component for drill-down navigation through hierarchical data
3827
3829
  */
3828
- declare function HierarchyExplorer<T extends HierarchyNode = HierarchyNode>({ data, renderNode, onNodeSelect, onNavigate, selectedId: controlledSelectedId, rootNodeId, stickyRootNode, height, minHeight, maxHeight, variant, size, showBullets, layout, splitBreakpoint, renderEmptyState, className, "aria-label": ariaLabel, }: HierarchyExplorerProps<T>): react_jsx_runtime.JSX.Element;
3830
+ declare function HierarchyExplorer<T extends HierarchyNode = HierarchyNode>({ data, renderNode, onNodeSelect, onNavigate, selectedId: controlledSelectedId, rootNodeId, stickyRootNode, height, minHeight, maxHeight, variant, size, showBullets, layout, splitBreakpoint, renderEmptyState, renderDetailView, className, "aria-label": ariaLabel, }: HierarchyExplorerProps<T>): react_jsx_runtime.JSX.Element;
3829
3831
 
3830
3832
  interface InfiniteScrollIndicatorProps {
3831
3833
  /** Current loading state - determines which indicator to show */