@texturehq/edges 2.6.2 → 3.0.1
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-OWPD19TC.d.cts → colors-DJDkptUU.d.cts} +9 -33
- package/dist/{colors-DDHuxvI2.d.ts → colors-JkpMFxrb.d.ts} +9 -33
- 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 +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -7
- package/dist/index.d.ts +25 -7
- package/dist/index.js +10 -10
- 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 +1 -1
- 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 +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BreadcrumbProps, BreadcrumbsProps, DateValue, CalendarProps as CalendarProps$1, ValidationResult, DisclosureGroupProps, DisclosurePanelProps, ButtonProps, DisclosureProps, DateRangePickerProps as DateRangePickerProps$1, FormProps, TooltipTriggerComponentProps, TooltipProps as TooltipProps$1, 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
|
-
import { B as BadgeProps, aa as FieldValue, ab as BooleanFormat, ac as FormattedValue, ad as FieldFormat, ae as CurrentFormat, af as DateFormat, ag as DistanceFormat, ah as EnergyUnit, ai as EnergyFormat, aj as CurrencyFormat, ak as NumberFormat, al as PhoneFormat, am as PowerFormat, an as FormatterFunction, ao as ResistanceFormat, ap as TemperatureFormat, aq as TemperatureUnitString, ar as TemperatureUnit, as as TextFormat, at as VoltageFormat, e as BaseDataPoint, O as YFormatType, F as TooltipData, au as DeviceState, av as GridState, aw as ComponentFormatter, ax as LayerSpec, ay as CustomPinsSpec, az as GeoJsonLayerSpec, aA as RasterLayerSpec, aB as VectorLayerSpec, aC as ClusteredVectorLayerSpec } from './colors-
|
|
4
|
-
export { A as ABSENT_GRID_FIELDS, a as ActionItem, aD as ActionMenu, b as ActionMenuProps, aE as AppShell, c as AppShellProps, aF as Avatar, d as AvatarProps, aG as Badge, aH as BaseFormat, aI as ChartContext, C as ChartMargin, aJ as CodeEditor, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, aK as ColorSpec, aL as ComponentFormatOptions, aM as CurrentUnit, aN as CustomFormat, aO as DEFAULT_MAP_TYPE, aP as DateFormatStyle, aQ as DistanceUnit, aR as ENTITY_CATEGORY_CONFIG, E as ENTITY_CONFIG, i as EntityArchetype, aS as EntityCategory, aT as EntityCategoryConfig, j as EntityConfig, k as EntityStateRule, l as EntityType, G as GRID_ELEMENT_TYPE_BY_ENTITY, aU as GRID_STATE_COLORS, m as GRID_STAT_LIST, n as GridElementSourceType, o as GridStatField, p as GridStatFieldFormat, aV as GridStateColor, H as HEADLINE_METRIC_BOUNDS, q as Heading, r as HeadlineMetric, aW as InteractiveMap, aX as InteractiveMapHandle, I as InteractiveMapProps, aY as LayerFeature, aZ as LayerStyle, L as Loader, s as Logo, a_ as MAP_TYPES, M as MapPoint, a$ as MapType, b0 as Meter, t as MeterProps, b1 as MetricFormat, u as MetricSource, b2 as PercentageFormat, b3 as PowerUnit, b4 as RenderType, b5 as ResistanceUnit, S as SegmentOption, b6 as SegmentedControl, v as SegmentedControlProps, w as SerializableFieldFormat, x as SideNav, y as SideNavItem, z as SideNavProps, b7 as StackNav, b8 as StackNavGroup, b9 as StackNavItem, ba as StackNavLinkComponentProps, bb as StackNavProps, bc as StackNavTheme, bd as StaticMap, D as StaticMapProps, T as TextLink, be as TextTransform, bf as TextTruncatePosition, J as TooltipSeries, K as TopNav, N as TopNavProps, bg as VoltageUnit, Y as YFormatSettings, bh as ZoomStops, bi as activeDeviceStates, P as archetypeFor, bj as baselineFromPoint, Q as clearColorCache, R as createCategoryColorMap, U as createXScale, V as createYScale, W as defaultMargin, bk as deviceStateLabels, bl as deviceStateMetricFormats, X as entityHasDetailPage, Z as entityHasStatList, _ as entityShowsNow, bm as formatComponentValue, $ as getContrastingTextColor, a0 as getDefaultChartColor, a1 as getDefaultColors, bn as getDeviceStateDisplayLabel, bn as getDeviceStateLabel, bo as getEntityCategory, a2 as getEntityConfig, a3 as getEntityIcon, a4 as getEntityLabel, a5 as getEntityStatList, bp as getGridStateLabel, a6 as getResolvedColor, a7 as getThemeCategoricalColors, a8 as getYFormatSettings, bq as gridStateLabels, br as isActiveDeviceState, br as isActiveState, a9 as isLightColor, bs as mapValuesToCategoricalColors, bt as useChartContext, bu as useComponentFormatter } from './colors-
|
|
3
|
+
import { B as BadgeProps, aa as FieldValue, ab as BooleanFormat, ac as FormattedValue, ad as FieldFormat, ae as CurrentFormat, af as DateFormat, ag as DistanceFormat, ah as EnergyUnit, ai as EnergyFormat, aj as CurrencyFormat, ak as NumberFormat, al as PhoneFormat, am as PowerFormat, an as FormatterFunction, ao as ResistanceFormat, ap as TemperatureFormat, aq as TemperatureUnitString, ar as TemperatureUnit, as as TextFormat, at as VoltageFormat, e as BaseDataPoint, O as YFormatType, F as TooltipData, au as DeviceState, av as GridState, aw as ComponentFormatter, ax as LayerSpec, ay as CustomPinsSpec, az as GeoJsonLayerSpec, aA as RasterLayerSpec, aB as VectorLayerSpec, aC as ClusteredVectorLayerSpec } from './colors-DJDkptUU.cjs';
|
|
4
|
+
export { A as ABSENT_GRID_FIELDS, a as ActionItem, aD as ActionMenu, b as ActionMenuProps, aE as AppShell, c as AppShellProps, aF as Avatar, d as AvatarProps, aG as Badge, aH as BaseFormat, aI as ChartContext, C as ChartMargin, aJ as CodeEditor, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, aK as ColorSpec, aL as ComponentFormatOptions, aM as CurrentUnit, aN as CustomFormat, aO as DEFAULT_MAP_TYPE, aP as DateFormatStyle, aQ as DistanceUnit, aR as ENTITY_CATEGORY_CONFIG, E as ENTITY_CONFIG, i as EntityArchetype, aS as EntityCategory, aT as EntityCategoryConfig, j as EntityConfig, k as EntityStateRule, l as EntityType, G as GRID_ELEMENT_TYPE_BY_ENTITY, aU as GRID_STATE_COLORS, m as GRID_STAT_LIST, n as GridElementSourceType, o as GridStatField, p as GridStatFieldFormat, aV as GridStateColor, H as HEADLINE_METRIC_BOUNDS, q as Heading, r as HeadlineMetric, aW as InteractiveMap, aX as InteractiveMapHandle, I as InteractiveMapProps, aY as LayerFeature, aZ as LayerStyle, L as Loader, s as Logo, a_ as MAP_TYPES, M as MapPoint, a$ as MapType, b0 as Meter, t as MeterProps, b1 as MetricFormat, u as MetricSource, b2 as PercentageFormat, b3 as PowerUnit, b4 as RenderType, b5 as ResistanceUnit, S as SegmentOption, b6 as SegmentedControl, v as SegmentedControlProps, w as SerializableFieldFormat, x as SideNav, y as SideNavItem, z as SideNavProps, b7 as StackNav, b8 as StackNavGroup, b9 as StackNavItem, ba as StackNavLinkComponentProps, bb as StackNavProps, bc as StackNavTheme, bd as StaticMap, D as StaticMapProps, T as TextLink, be as TextTransform, bf as TextTruncatePosition, J as TooltipSeries, K as TopNav, N as TopNavProps, bg as VoltageUnit, Y as YFormatSettings, bh as ZoomStops, bi as activeDeviceStates, P as archetypeFor, bj as baselineFromPoint, Q as clearColorCache, R as createCategoryColorMap, U as createXScale, V as createYScale, W as defaultMargin, bk as deviceStateLabels, bl as deviceStateMetricFormats, X as entityHasDetailPage, Z as entityHasStatList, _ as entityShowsNow, bm as formatComponentValue, $ as getContrastingTextColor, a0 as getDefaultChartColor, a1 as getDefaultColors, bn as getDeviceStateDisplayLabel, bn as getDeviceStateLabel, bo as getEntityCategory, a2 as getEntityConfig, a3 as getEntityIcon, a4 as getEntityLabel, a5 as getEntityStatList, bp as getGridStateLabel, a6 as getResolvedColor, a7 as getThemeCategoricalColors, a8 as getYFormatSettings, bq as gridStateLabels, br as isActiveDeviceState, br as isActiveState, a9 as isLightColor, bs as mapValuesToCategoricalColors, bt as useChartContext, bu as useComponentFormatter } from './colors-DJDkptUU.cjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
7
|
import React__default, { ReactNode, RefObject, HTMLAttributes, ComponentProps, ComponentType, CSSProperties, Component, ErrorInfo } from 'react';
|
|
@@ -435,6 +435,8 @@ interface CardHeaderProps {
|
|
|
435
435
|
title?: React__default.ReactNode;
|
|
436
436
|
subtitle?: React__default.ReactNode;
|
|
437
437
|
actions?: React__default.ReactNode;
|
|
438
|
+
/** Leading slot, rendered left of the title (e.g. a drag handle). */
|
|
439
|
+
leading?: React__default.ReactNode;
|
|
438
440
|
className?: string;
|
|
439
441
|
isLoading?: boolean;
|
|
440
442
|
}
|
|
@@ -452,6 +454,8 @@ interface CardContentProps {
|
|
|
452
454
|
isLoading?: boolean;
|
|
453
455
|
/** When true and parent Card has layout="flex", content expands to fill available space */
|
|
454
456
|
fill?: boolean;
|
|
457
|
+
/** Additional inline styles (e.g. a fixed body height). */
|
|
458
|
+
style?: React__default.CSSProperties;
|
|
455
459
|
}
|
|
456
460
|
interface CardFooterProps {
|
|
457
461
|
className?: string;
|
|
@@ -466,9 +470,9 @@ declare namespace Card {
|
|
|
466
470
|
var Content: typeof CardContent;
|
|
467
471
|
var Footer: typeof CardFooter;
|
|
468
472
|
}
|
|
469
|
-
declare function CardHeader({ title, subtitle, actions, className, isLoading }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
473
|
+
declare function CardHeader({ title, subtitle, actions, leading, className, isLoading }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
470
474
|
declare function CardMedia({ src, alt, aspectRatio, className, children, isLoading }: CardMediaProps): react_jsx_runtime.JSX.Element | null;
|
|
471
|
-
declare function CardContent({ className, children, isLoading, fill }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
475
|
+
declare function CardContent({ className, children, isLoading, fill, style }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
472
476
|
declare function CardFooter({ className, children, align, isLoading }: CardFooterProps): react_jsx_runtime.JSX.Element | null;
|
|
473
477
|
|
|
474
478
|
interface CarouselRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -2613,6 +2617,12 @@ interface ChartContainerProps {
|
|
|
2613
2617
|
children: React__default.ReactNode;
|
|
2614
2618
|
parentWidth: number;
|
|
2615
2619
|
parentHeight: number;
|
|
2620
|
+
/**
|
|
2621
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2622
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2623
|
+
* own, and there is deliberately no default to fall back to.
|
|
2624
|
+
*/
|
|
2625
|
+
title: string;
|
|
2616
2626
|
/**
|
|
2617
2627
|
* Y-axis formatter using the main formatting system
|
|
2618
2628
|
* Accepts ComponentFormatter types (string shorthand or full options)
|
|
@@ -2759,7 +2769,7 @@ interface ChartEventMarkersProps {
|
|
|
2759
2769
|
*
|
|
2760
2770
|
* @example
|
|
2761
2771
|
* ```tsx
|
|
2762
|
-
* <ChartContainer>
|
|
2772
|
+
* <ChartContainer title="Device power">
|
|
2763
2773
|
* <AreaSeries data={data} label="Power" />
|
|
2764
2774
|
* <ChartEventMarkers
|
|
2765
2775
|
* events={[
|
|
@@ -2813,7 +2823,7 @@ interface ChartEventSpansProps {
|
|
|
2813
2823
|
*
|
|
2814
2824
|
* @example
|
|
2815
2825
|
* ```tsx
|
|
2816
|
-
* <ChartContainer>
|
|
2826
|
+
* <ChartContainer title="Device power">
|
|
2817
2827
|
* <LineSeries data={data} label="Power" />
|
|
2818
2828
|
* <ChartEventSpans
|
|
2819
2829
|
* spans={[
|
|
@@ -2943,6 +2953,12 @@ interface TiledTimeSeriesChartViewport {
|
|
|
2943
2953
|
interface TiledTimeSeriesChartProps {
|
|
2944
2954
|
/** AreaSeries / LineSeries children. */
|
|
2945
2955
|
children: React__default.ReactNode;
|
|
2956
|
+
/**
|
|
2957
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2958
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2959
|
+
* own, and there is deliberately no default to fall back to.
|
|
2960
|
+
*/
|
|
2961
|
+
title: string;
|
|
2946
2962
|
/** The camera. Drives the x-scale directly, decoupled from the data extent. */
|
|
2947
2963
|
viewport: TiledTimeSeriesChartViewport;
|
|
2948
2964
|
/** Optional clamp for pan gestures. New viewports stay within these bounds. */
|
|
@@ -3222,6 +3238,8 @@ interface TiledTimeSeriesSource {
|
|
|
3222
3238
|
}
|
|
3223
3239
|
interface TiledTimeSeriesExplorerProps {
|
|
3224
3240
|
source: TiledTimeSeriesSource;
|
|
3241
|
+
/** Accessible name for the chart. Forwarded to the underlying tiled chart's SVG `<title>`. */
|
|
3242
|
+
title: string;
|
|
3225
3243
|
initialRange?: {
|
|
3226
3244
|
days: number;
|
|
3227
3245
|
} | undefined;
|
|
@@ -3251,7 +3269,7 @@ interface TiledTimeSeriesExplorerProps {
|
|
|
3251
3269
|
gapMs: number;
|
|
3252
3270
|
}) => ReactNode;
|
|
3253
3271
|
}
|
|
3254
|
-
declare function TiledTimeSeriesExplorer({ source, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3272
|
+
declare function TiledTimeSeriesExplorer({ source, title, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3255
3273
|
|
|
3256
3274
|
interface Filter {
|
|
3257
3275
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BreadcrumbProps, BreadcrumbsProps, DateValue, CalendarProps as CalendarProps$1, ValidationResult, DisclosureGroupProps, DisclosurePanelProps, ButtonProps, DisclosureProps, DateRangePickerProps as DateRangePickerProps$1, FormProps, TooltipTriggerComponentProps, TooltipProps as TooltipProps$1, 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
|
-
import { B as BadgeProps, aa as FieldValue, ab as BooleanFormat, ac as FormattedValue, ad as FieldFormat, ae as CurrentFormat, af as DateFormat, ag as DistanceFormat, ah as EnergyUnit, ai as EnergyFormat, aj as CurrencyFormat, ak as NumberFormat, al as PhoneFormat, am as PowerFormat, an as FormatterFunction, ao as ResistanceFormat, ap as TemperatureFormat, aq as TemperatureUnitString, ar as TemperatureUnit, as as TextFormat, at as VoltageFormat, e as BaseDataPoint, O as YFormatType, F as TooltipData, au as DeviceState, av as GridState, aw as ComponentFormatter, ax as LayerSpec, ay as CustomPinsSpec, az as GeoJsonLayerSpec, aA as RasterLayerSpec, aB as VectorLayerSpec, aC as ClusteredVectorLayerSpec } from './colors-
|
|
4
|
-
export { A as ABSENT_GRID_FIELDS, a as ActionItem, aD as ActionMenu, b as ActionMenuProps, aE as AppShell, c as AppShellProps, aF as Avatar, d as AvatarProps, aG as Badge, aH as BaseFormat, aI as ChartContext, C as ChartMargin, aJ as CodeEditor, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, aK as ColorSpec, aL as ComponentFormatOptions, aM as CurrentUnit, aN as CustomFormat, aO as DEFAULT_MAP_TYPE, aP as DateFormatStyle, aQ as DistanceUnit, aR as ENTITY_CATEGORY_CONFIG, E as ENTITY_CONFIG, i as EntityArchetype, aS as EntityCategory, aT as EntityCategoryConfig, j as EntityConfig, k as EntityStateRule, l as EntityType, G as GRID_ELEMENT_TYPE_BY_ENTITY, aU as GRID_STATE_COLORS, m as GRID_STAT_LIST, n as GridElementSourceType, o as GridStatField, p as GridStatFieldFormat, aV as GridStateColor, H as HEADLINE_METRIC_BOUNDS, q as Heading, r as HeadlineMetric, aW as InteractiveMap, aX as InteractiveMapHandle, I as InteractiveMapProps, aY as LayerFeature, aZ as LayerStyle, L as Loader, s as Logo, a_ as MAP_TYPES, M as MapPoint, a$ as MapType, b0 as Meter, t as MeterProps, b1 as MetricFormat, u as MetricSource, b2 as PercentageFormat, b3 as PowerUnit, b4 as RenderType, b5 as ResistanceUnit, S as SegmentOption, b6 as SegmentedControl, v as SegmentedControlProps, w as SerializableFieldFormat, x as SideNav, y as SideNavItem, z as SideNavProps, b7 as StackNav, b8 as StackNavGroup, b9 as StackNavItem, ba as StackNavLinkComponentProps, bb as StackNavProps, bc as StackNavTheme, bd as StaticMap, D as StaticMapProps, T as TextLink, be as TextTransform, bf as TextTruncatePosition, J as TooltipSeries, K as TopNav, N as TopNavProps, bg as VoltageUnit, Y as YFormatSettings, bh as ZoomStops, bi as activeDeviceStates, P as archetypeFor, bj as baselineFromPoint, Q as clearColorCache, R as createCategoryColorMap, U as createXScale, V as createYScale, W as defaultMargin, bk as deviceStateLabels, bl as deviceStateMetricFormats, X as entityHasDetailPage, Z as entityHasStatList, _ as entityShowsNow, bm as formatComponentValue, $ as getContrastingTextColor, a0 as getDefaultChartColor, a1 as getDefaultColors, bn as getDeviceStateDisplayLabel, bn as getDeviceStateLabel, bo as getEntityCategory, a2 as getEntityConfig, a3 as getEntityIcon, a4 as getEntityLabel, a5 as getEntityStatList, bp as getGridStateLabel, a6 as getResolvedColor, a7 as getThemeCategoricalColors, a8 as getYFormatSettings, bq as gridStateLabels, br as isActiveDeviceState, br as isActiveState, a9 as isLightColor, bs as mapValuesToCategoricalColors, bt as useChartContext, bu as useComponentFormatter } from './colors-
|
|
3
|
+
import { B as BadgeProps, aa as FieldValue, ab as BooleanFormat, ac as FormattedValue, ad as FieldFormat, ae as CurrentFormat, af as DateFormat, ag as DistanceFormat, ah as EnergyUnit, ai as EnergyFormat, aj as CurrencyFormat, ak as NumberFormat, al as PhoneFormat, am as PowerFormat, an as FormatterFunction, ao as ResistanceFormat, ap as TemperatureFormat, aq as TemperatureUnitString, ar as TemperatureUnit, as as TextFormat, at as VoltageFormat, e as BaseDataPoint, O as YFormatType, F as TooltipData, au as DeviceState, av as GridState, aw as ComponentFormatter, ax as LayerSpec, ay as CustomPinsSpec, az as GeoJsonLayerSpec, aA as RasterLayerSpec, aB as VectorLayerSpec, aC as ClusteredVectorLayerSpec } from './colors-JkpMFxrb.js';
|
|
4
|
+
export { A as ABSENT_GRID_FIELDS, a as ActionItem, aD as ActionMenu, b as ActionMenuProps, aE as AppShell, c as AppShellProps, aF as Avatar, d as AvatarProps, aG as Badge, aH as BaseFormat, aI as ChartContext, C as ChartMargin, aJ as CodeEditor, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, aK as ColorSpec, aL as ComponentFormatOptions, aM as CurrentUnit, aN as CustomFormat, aO as DEFAULT_MAP_TYPE, aP as DateFormatStyle, aQ as DistanceUnit, aR as ENTITY_CATEGORY_CONFIG, E as ENTITY_CONFIG, i as EntityArchetype, aS as EntityCategory, aT as EntityCategoryConfig, j as EntityConfig, k as EntityStateRule, l as EntityType, G as GRID_ELEMENT_TYPE_BY_ENTITY, aU as GRID_STATE_COLORS, m as GRID_STAT_LIST, n as GridElementSourceType, o as GridStatField, p as GridStatFieldFormat, aV as GridStateColor, H as HEADLINE_METRIC_BOUNDS, q as Heading, r as HeadlineMetric, aW as InteractiveMap, aX as InteractiveMapHandle, I as InteractiveMapProps, aY as LayerFeature, aZ as LayerStyle, L as Loader, s as Logo, a_ as MAP_TYPES, M as MapPoint, a$ as MapType, b0 as Meter, t as MeterProps, b1 as MetricFormat, u as MetricSource, b2 as PercentageFormat, b3 as PowerUnit, b4 as RenderType, b5 as ResistanceUnit, S as SegmentOption, b6 as SegmentedControl, v as SegmentedControlProps, w as SerializableFieldFormat, x as SideNav, y as SideNavItem, z as SideNavProps, b7 as StackNav, b8 as StackNavGroup, b9 as StackNavItem, ba as StackNavLinkComponentProps, bb as StackNavProps, bc as StackNavTheme, bd as StaticMap, D as StaticMapProps, T as TextLink, be as TextTransform, bf as TextTruncatePosition, J as TooltipSeries, K as TopNav, N as TopNavProps, bg as VoltageUnit, Y as YFormatSettings, bh as ZoomStops, bi as activeDeviceStates, P as archetypeFor, bj as baselineFromPoint, Q as clearColorCache, R as createCategoryColorMap, U as createXScale, V as createYScale, W as defaultMargin, bk as deviceStateLabels, bl as deviceStateMetricFormats, X as entityHasDetailPage, Z as entityHasStatList, _ as entityShowsNow, bm as formatComponentValue, $ as getContrastingTextColor, a0 as getDefaultChartColor, a1 as getDefaultColors, bn as getDeviceStateDisplayLabel, bn as getDeviceStateLabel, bo as getEntityCategory, a2 as getEntityConfig, a3 as getEntityIcon, a4 as getEntityLabel, a5 as getEntityStatList, bp as getGridStateLabel, a6 as getResolvedColor, a7 as getThemeCategoricalColors, a8 as getYFormatSettings, bq as gridStateLabels, br as isActiveDeviceState, br as isActiveState, a9 as isLightColor, bs as mapValuesToCategoricalColors, bt as useChartContext, bu as useComponentFormatter } from './colors-JkpMFxrb.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
7
|
import React__default, { ReactNode, RefObject, HTMLAttributes, ComponentProps, ComponentType, CSSProperties, Component, ErrorInfo } from 'react';
|
|
@@ -435,6 +435,8 @@ interface CardHeaderProps {
|
|
|
435
435
|
title?: React__default.ReactNode;
|
|
436
436
|
subtitle?: React__default.ReactNode;
|
|
437
437
|
actions?: React__default.ReactNode;
|
|
438
|
+
/** Leading slot, rendered left of the title (e.g. a drag handle). */
|
|
439
|
+
leading?: React__default.ReactNode;
|
|
438
440
|
className?: string;
|
|
439
441
|
isLoading?: boolean;
|
|
440
442
|
}
|
|
@@ -452,6 +454,8 @@ interface CardContentProps {
|
|
|
452
454
|
isLoading?: boolean;
|
|
453
455
|
/** When true and parent Card has layout="flex", content expands to fill available space */
|
|
454
456
|
fill?: boolean;
|
|
457
|
+
/** Additional inline styles (e.g. a fixed body height). */
|
|
458
|
+
style?: React__default.CSSProperties;
|
|
455
459
|
}
|
|
456
460
|
interface CardFooterProps {
|
|
457
461
|
className?: string;
|
|
@@ -466,9 +470,9 @@ declare namespace Card {
|
|
|
466
470
|
var Content: typeof CardContent;
|
|
467
471
|
var Footer: typeof CardFooter;
|
|
468
472
|
}
|
|
469
|
-
declare function CardHeader({ title, subtitle, actions, className, isLoading }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
473
|
+
declare function CardHeader({ title, subtitle, actions, leading, className, isLoading }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
470
474
|
declare function CardMedia({ src, alt, aspectRatio, className, children, isLoading }: CardMediaProps): react_jsx_runtime.JSX.Element | null;
|
|
471
|
-
declare function CardContent({ className, children, isLoading, fill }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
475
|
+
declare function CardContent({ className, children, isLoading, fill, style }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
472
476
|
declare function CardFooter({ className, children, align, isLoading }: CardFooterProps): react_jsx_runtime.JSX.Element | null;
|
|
473
477
|
|
|
474
478
|
interface CarouselRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -2613,6 +2617,12 @@ interface ChartContainerProps {
|
|
|
2613
2617
|
children: React__default.ReactNode;
|
|
2614
2618
|
parentWidth: number;
|
|
2615
2619
|
parentHeight: number;
|
|
2620
|
+
/**
|
|
2621
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2622
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2623
|
+
* own, and there is deliberately no default to fall back to.
|
|
2624
|
+
*/
|
|
2625
|
+
title: string;
|
|
2616
2626
|
/**
|
|
2617
2627
|
* Y-axis formatter using the main formatting system
|
|
2618
2628
|
* Accepts ComponentFormatter types (string shorthand or full options)
|
|
@@ -2759,7 +2769,7 @@ interface ChartEventMarkersProps {
|
|
|
2759
2769
|
*
|
|
2760
2770
|
* @example
|
|
2761
2771
|
* ```tsx
|
|
2762
|
-
* <ChartContainer>
|
|
2772
|
+
* <ChartContainer title="Device power">
|
|
2763
2773
|
* <AreaSeries data={data} label="Power" />
|
|
2764
2774
|
* <ChartEventMarkers
|
|
2765
2775
|
* events={[
|
|
@@ -2813,7 +2823,7 @@ interface ChartEventSpansProps {
|
|
|
2813
2823
|
*
|
|
2814
2824
|
* @example
|
|
2815
2825
|
* ```tsx
|
|
2816
|
-
* <ChartContainer>
|
|
2826
|
+
* <ChartContainer title="Device power">
|
|
2817
2827
|
* <LineSeries data={data} label="Power" />
|
|
2818
2828
|
* <ChartEventSpans
|
|
2819
2829
|
* spans={[
|
|
@@ -2943,6 +2953,12 @@ interface TiledTimeSeriesChartViewport {
|
|
|
2943
2953
|
interface TiledTimeSeriesChartProps {
|
|
2944
2954
|
/** AreaSeries / LineSeries children. */
|
|
2945
2955
|
children: React__default.ReactNode;
|
|
2956
|
+
/**
|
|
2957
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2958
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2959
|
+
* own, and there is deliberately no default to fall back to.
|
|
2960
|
+
*/
|
|
2961
|
+
title: string;
|
|
2946
2962
|
/** The camera. Drives the x-scale directly, decoupled from the data extent. */
|
|
2947
2963
|
viewport: TiledTimeSeriesChartViewport;
|
|
2948
2964
|
/** Optional clamp for pan gestures. New viewports stay within these bounds. */
|
|
@@ -3222,6 +3238,8 @@ interface TiledTimeSeriesSource {
|
|
|
3222
3238
|
}
|
|
3223
3239
|
interface TiledTimeSeriesExplorerProps {
|
|
3224
3240
|
source: TiledTimeSeriesSource;
|
|
3241
|
+
/** Accessible name for the chart. Forwarded to the underlying tiled chart's SVG `<title>`. */
|
|
3242
|
+
title: string;
|
|
3225
3243
|
initialRange?: {
|
|
3226
3244
|
days: number;
|
|
3227
3245
|
} | undefined;
|
|
@@ -3251,7 +3269,7 @@ interface TiledTimeSeriesExplorerProps {
|
|
|
3251
3269
|
gapMs: number;
|
|
3252
3270
|
}) => ReactNode;
|
|
3253
3271
|
}
|
|
3254
|
-
declare function TiledTimeSeriesExplorer({ source, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3272
|
+
declare function TiledTimeSeriesExplorer({ source, title, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3255
3273
|
|
|
3256
3274
|
interface Filter {
|
|
3257
3275
|
id: string;
|