@texturehq/edges 3.0.0 → 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/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-OWPD19TC.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-OWPD19TC.cjs';
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> {
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-DDHuxvI2.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-DDHuxvI2.js';
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> {