@texturehq/edges 1.23.0 → 1.23.3

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-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';
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-ZfVYHdic.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-ZfVYHdic.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-BGQenUvv.cjs';
@@ -4059,10 +4059,14 @@ interface KpiGroupProps {
4059
4059
  header?: React__default.ReactNode;
4060
4060
  /** Loading state for all children */
4061
4061
  isLoading?: boolean;
4062
+ /** Enable horizontal scrolling on mobile instead of stacking */
4063
+ scrollOnMobile?: boolean;
4064
+ /** Minimum width for each KPI item when scrollOnMobile is enabled */
4065
+ scrollItemMinWidth?: string;
4062
4066
  /** Additional CSS classes */
4063
4067
  className?: string;
4064
4068
  }
4065
- declare function KpiGroup({ children, cols, gap, align, equalizeHeights, header, isLoading, className, }: KpiGroupProps): react_jsx_runtime.JSX.Element;
4069
+ declare function KpiGroup({ children, cols, gap, align, equalizeHeights, header, isLoading, scrollOnMobile, scrollItemMinWidth, className, }: KpiGroupProps): react_jsx_runtime.JSX.Element;
4066
4070
  declare namespace KpiGroup {
4067
4071
  var displayName: string;
4068
4072
  }
@@ -4957,6 +4961,16 @@ interface SiteCardProps {
4957
4961
  className?: string;
4958
4962
  /** Additional classes for the card content (for padding control, etc.) */
4959
4963
  contentClassName?: string;
4964
+ /** Show expand button on map to open interactive fullscreen view
4965
+ * @default false
4966
+ */
4967
+ showMapExpandToggle?: boolean;
4968
+ /** Title for the expanded map dialog
4969
+ * @default "Explore map"
4970
+ */
4971
+ expandedMapTitle?: string;
4972
+ /** Address label to show in expanded map view (defaults to formatted address) */
4973
+ expandedMapAddressLabel?: string;
4960
4974
  }
4961
4975
  /**
4962
4976
  * SiteCard
@@ -4978,7 +4992,7 @@ interface SiteCardProps {
4978
4992
  * />
4979
4993
  * ```
4980
4994
  */
4981
- declare function SiteCard({ streetAddress, city, state, postalCode, longitude, latitude, href, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, isLoading, className, contentClassName, }: SiteCardProps): react_jsx_runtime.JSX.Element;
4995
+ 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;
4982
4996
 
4983
4997
  interface SiteContactCardProps {
4984
4998
  /** Site information */
@@ -5036,6 +5050,16 @@ interface SiteContactCardProps {
5036
5050
  contentClassName?: string;
5037
5051
  /** Whether the card should fill the full height of its container */
5038
5052
  fullHeight?: boolean;
5053
+ /** Show expand button on map to open interactive fullscreen view
5054
+ * @default false
5055
+ */
5056
+ showMapExpandToggle?: boolean;
5057
+ /** Title for the expanded map dialog
5058
+ * @default "Explore map"
5059
+ */
5060
+ expandedMapTitle?: string;
5061
+ /** Address label to show in expanded map view (defaults to formatted site address) */
5062
+ expandedMapAddressLabel?: string;
5039
5063
  }
5040
5064
  /**
5041
5065
  * SiteContactCard
@@ -5066,7 +5090,7 @@ interface SiteContactCardProps {
5066
5090
  * />
5067
5091
  * ```
5068
5092
  */
5069
- declare function SiteContactCard({ site, contact, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, showEmail, showPhone, isLoading, className, contentClassName, fullHeight, }: SiteContactCardProps): react_jsx_runtime.JSX.Element;
5093
+ declare function SiteContactCard({ site, contact, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, showEmail, showPhone, isLoading, className, contentClassName, fullHeight, showMapExpandToggle, expandedMapTitle, expandedMapAddressLabel, }: SiteContactCardProps): react_jsx_runtime.JSX.Element;
5070
5094
 
5071
5095
  interface SiteMetaDisplayProps {
5072
5096
  /** Street address (combined street lines) */
@@ -5678,8 +5702,11 @@ declare namespace Tray {
5678
5702
  var displayName: string;
5679
5703
  }
5680
5704
 
5705
+ type ColorMode = "system" | "light" | "dark";
5706
+ type ResolvedTheme = "light" | "dark";
5681
5707
  interface ColorModeContextType {
5682
- colorMode: string;
5708
+ mode: ColorMode;
5709
+ colorMode: ResolvedTheme;
5683
5710
  isDarkTheme: boolean;
5684
5711
  toggleTheme: () => void;
5685
5712
  }
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-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';
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-BYkYTR7E.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-BYkYTR7E.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-BGQenUvv.js';
@@ -4059,10 +4059,14 @@ interface KpiGroupProps {
4059
4059
  header?: React__default.ReactNode;
4060
4060
  /** Loading state for all children */
4061
4061
  isLoading?: boolean;
4062
+ /** Enable horizontal scrolling on mobile instead of stacking */
4063
+ scrollOnMobile?: boolean;
4064
+ /** Minimum width for each KPI item when scrollOnMobile is enabled */
4065
+ scrollItemMinWidth?: string;
4062
4066
  /** Additional CSS classes */
4063
4067
  className?: string;
4064
4068
  }
4065
- declare function KpiGroup({ children, cols, gap, align, equalizeHeights, header, isLoading, className, }: KpiGroupProps): react_jsx_runtime.JSX.Element;
4069
+ declare function KpiGroup({ children, cols, gap, align, equalizeHeights, header, isLoading, scrollOnMobile, scrollItemMinWidth, className, }: KpiGroupProps): react_jsx_runtime.JSX.Element;
4066
4070
  declare namespace KpiGroup {
4067
4071
  var displayName: string;
4068
4072
  }
@@ -4957,6 +4961,16 @@ interface SiteCardProps {
4957
4961
  className?: string;
4958
4962
  /** Additional classes for the card content (for padding control, etc.) */
4959
4963
  contentClassName?: string;
4964
+ /** Show expand button on map to open interactive fullscreen view
4965
+ * @default false
4966
+ */
4967
+ showMapExpandToggle?: boolean;
4968
+ /** Title for the expanded map dialog
4969
+ * @default "Explore map"
4970
+ */
4971
+ expandedMapTitle?: string;
4972
+ /** Address label to show in expanded map view (defaults to formatted address) */
4973
+ expandedMapAddressLabel?: string;
4960
4974
  }
4961
4975
  /**
4962
4976
  * SiteCard
@@ -4978,7 +4992,7 @@ interface SiteCardProps {
4978
4992
  * />
4979
4993
  * ```
4980
4994
  */
4981
- declare function SiteCard({ streetAddress, city, state, postalCode, longitude, latitude, href, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, isLoading, className, contentClassName, }: SiteCardProps): react_jsx_runtime.JSX.Element;
4995
+ 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;
4982
4996
 
4983
4997
  interface SiteContactCardProps {
4984
4998
  /** Site information */
@@ -5036,6 +5050,16 @@ interface SiteContactCardProps {
5036
5050
  contentClassName?: string;
5037
5051
  /** Whether the card should fill the full height of its container */
5038
5052
  fullHeight?: boolean;
5053
+ /** Show expand button on map to open interactive fullscreen view
5054
+ * @default false
5055
+ */
5056
+ showMapExpandToggle?: boolean;
5057
+ /** Title for the expanded map dialog
5058
+ * @default "Explore map"
5059
+ */
5060
+ expandedMapTitle?: string;
5061
+ /** Address label to show in expanded map view (defaults to formatted site address) */
5062
+ expandedMapAddressLabel?: string;
5039
5063
  }
5040
5064
  /**
5041
5065
  * SiteContactCard
@@ -5066,7 +5090,7 @@ interface SiteContactCardProps {
5066
5090
  * />
5067
5091
  * ```
5068
5092
  */
5069
- declare function SiteContactCard({ site, contact, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, showEmail, showPhone, isLoading, className, contentClassName, fullHeight, }: SiteContactCardProps): react_jsx_runtime.JSX.Element;
5093
+ declare function SiteContactCard({ site, contact, LinkComponent, variant, layout, showMap, mapHeight, mapboxAccessToken, showEmail, showPhone, isLoading, className, contentClassName, fullHeight, showMapExpandToggle, expandedMapTitle, expandedMapAddressLabel, }: SiteContactCardProps): react_jsx_runtime.JSX.Element;
5070
5094
 
5071
5095
  interface SiteMetaDisplayProps {
5072
5096
  /** Street address (combined street lines) */
@@ -5678,8 +5702,11 @@ declare namespace Tray {
5678
5702
  var displayName: string;
5679
5703
  }
5680
5704
 
5705
+ type ColorMode = "system" | "light" | "dark";
5706
+ type ResolvedTheme = "light" | "dark";
5681
5707
  interface ColorModeContextType {
5682
- colorMode: string;
5708
+ mode: ColorMode;
5709
+ colorMode: ResolvedTheme;
5683
5710
  isDarkTheme: boolean;
5684
5711
  toggleTheme: () => void;
5685
5712
  }