@texturehq/edges 1.29.1 → 1.30.0
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-CkJf6_Bz.d.cts → colors-BgVu6fze.d.cts} +9 -5
- package/dist/{colors-DR1jXZhL.d.ts → colors-soT9-oWB.d.ts} +9 -5
- package/dist/components.manifest.json +13 -2
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -5
- package/dist/index.d.ts +39 -5
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +1 -2
- package/dist/server.d.ts +1 -2
- package/dist/utilities.manifest.json +8 -1
- package/package.json +2 -2
- package/scripts/generate-edges-docs.js +10 -34
- package/scripts/setup-cursor-rules-manual.js +1 -2
- package/scripts/setup-cursor-rules.js +11 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as d3_scale from 'd3-scale';
|
|
2
|
+
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
2
3
|
import * as React$1 from 'react';
|
|
3
4
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
4
|
-
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { d as IconName } from './RichTextEditor-CxrunTg7.cjs';
|
|
7
7
|
import * as react_map_gl from 'react-map-gl';
|
|
@@ -270,8 +270,8 @@ interface YFormatSettings {
|
|
|
270
270
|
* Uses the main formatting system for consistency across all components
|
|
271
271
|
*/
|
|
272
272
|
declare function getYFormatSettings(formatter?: YFormatType): YFormatSettings;
|
|
273
|
-
declare const createXScale: (data: BaseDataPoint[], width: number) =>
|
|
274
|
-
declare const createYScale: (data: BaseDataPoint[], height: number, formatType: YFormatType) =>
|
|
273
|
+
declare const createXScale: (data: BaseDataPoint[], width: number) => d3_scale.ScaleTime<number, number, never>;
|
|
274
|
+
declare const createYScale: (data: BaseDataPoint[], height: number, formatType: YFormatType) => d3_scale.ScaleLinear<number, number, never>;
|
|
275
275
|
|
|
276
276
|
interface ActionItem {
|
|
277
277
|
/**
|
|
@@ -1064,6 +1064,10 @@ declare const MAP_TYPES: {
|
|
|
1064
1064
|
* Map type - represents the visual style of the map (roads vs satellite vs minimal)
|
|
1065
1065
|
*/
|
|
1066
1066
|
type MapType = keyof typeof MAP_TYPES;
|
|
1067
|
+
/**
|
|
1068
|
+
* Default map type used when none is specified
|
|
1069
|
+
*/
|
|
1070
|
+
declare const DEFAULT_MAP_TYPE: MapType;
|
|
1067
1071
|
|
|
1068
1072
|
/**
|
|
1069
1073
|
* Control position type
|
|
@@ -1849,4 +1853,4 @@ declare const isLightColor: (color: string) => boolean;
|
|
|
1849
1853
|
*/
|
|
1850
1854
|
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1851
1855
|
|
|
1852
|
-
export { type DistanceFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, defaultMargin as D, ENTITY_CONFIG as E, getContrastingTextColor as F, getDefaultChartColor as G, Heading as H, type InteractiveMapProps as I, getDefaultColors as J, getEntityConfig as K, Loader as L, type MapPoint as M, getEntityIcon as N, getEntityLabel as O, getResolvedColor as P, getThemeCategoricalColors as Q, getYFormatSettings as R, type SegmentOption as S, TextLink as T, isLightColor as U, type FieldValue as V, type BooleanFormat as W, type FormattedValue as X, type YFormatSettings as Y, type CurrentFormat as Z, type DateFormat as _, type ActionMenuProps as a, type EnergyFormat as a0, type CurrencyFormat as a1, type NumberFormat as a2, type PhoneFormat as a3, type PowerFormat as a4, type FormatterFunction as a5, type ResistanceFormat as a6, type TemperatureFormat as a7, type TemperatureUnitString as a8, type TemperatureUnit as a9, type LayerFeature as
|
|
1856
|
+
export { type DistanceFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, defaultMargin as D, ENTITY_CONFIG as E, getContrastingTextColor as F, getDefaultChartColor as G, Heading as H, type InteractiveMapProps as I, getDefaultColors as J, getEntityConfig as K, Loader as L, type MapPoint as M, getEntityIcon as N, getEntityLabel as O, getResolvedColor as P, getThemeCategoricalColors as Q, getYFormatSettings as R, type SegmentOption as S, TextLink as T, isLightColor as U, type FieldValue as V, type BooleanFormat as W, type FormattedValue as X, type YFormatSettings as Y, type CurrentFormat as Z, type DateFormat as _, type ActionMenuProps as a, type EnergyFormat as a0, type CurrencyFormat as a1, type NumberFormat as a2, type PhoneFormat as a3, type PowerFormat as a4, type FormatterFunction as a5, type ResistanceFormat as a6, type TemperatureFormat as a7, type TemperatureUnitString as a8, type TemperatureUnit as a9, InteractiveMap as aA, type LayerFeature as aB, type LayerStyle as aC, MAP_TYPES as aD, type MapType as aE, Meter as aF, type MetricFormat as aG, type PercentageFormat as aH, type PowerUnit as aI, type RenderType as aJ, type ResistanceUnit as aK, SegmentedControl as aL, StaticMap as aM, type TextTransform as aN, type TextTruncatePosition as aO, type VoltageUnit as aP, type ZoomStops as aQ, activeDeviceStates as aR, deviceStateLabels as aS, deviceStateMetricFormats as aT, formatComponentValue as aU, getDeviceStateLabel as aV, getGridStateLabel as aW, gridStateLabels as aX, isActiveState as aY, useChartContext as aZ, useComponentFormatter as a_, type TextFormat as aa, type VoltageFormat as ab, type FieldFormat as ac, type DeviceState as ad, type GridState as ae, type ComponentFormatter as af, type LayerSpec as ag, type CustomPinsSpec as ah, type GeoJsonLayerSpec as ai, type RasterLayerSpec as aj, type VectorLayerSpec as ak, type ClusteredVectorLayerSpec as al, ActionMenu as am, Avatar as an, Badge as ao, type BaseFormat as ap, ChartContext as aq, CodeEditor as ar, type ColorSpec as as, type ComponentFormatOptions as at, type CurrentUnit as au, type CustomFormat as av, DEFAULT_MAP_TYPE as aw, type DateFormatStyle as ax, type DistanceUnit as ay, type EnergyUnit as az, AppShell as b, type AppShellProps as c, type AvatarProps as d, type BaseDataPoint as e, type CodeEditorProps as f, type CodeLanguage as g, type CodeTheme as h, type EntityConfig as i, type EntityType as j, Logo as k, type MeterProps as l, type SegmentedControlProps as m, SideNav as n, type SideNavItem as o, type SideNavProps as p, type StaticMapProps as q, type TooltipData as r, type TooltipSeries as s, TopNav as t, type TopNavProps as u, type YFormatType as v, clearColorCache as w, createCategoryColorMap as x, createXScale as y, createYScale as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as d3_scale from 'd3-scale';
|
|
2
|
+
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
2
3
|
import * as React$1 from 'react';
|
|
3
4
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
4
|
-
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { d as IconName } from './RichTextEditor-CxrunTg7.js';
|
|
7
7
|
import * as react_map_gl from 'react-map-gl';
|
|
@@ -270,8 +270,8 @@ interface YFormatSettings {
|
|
|
270
270
|
* Uses the main formatting system for consistency across all components
|
|
271
271
|
*/
|
|
272
272
|
declare function getYFormatSettings(formatter?: YFormatType): YFormatSettings;
|
|
273
|
-
declare const createXScale: (data: BaseDataPoint[], width: number) =>
|
|
274
|
-
declare const createYScale: (data: BaseDataPoint[], height: number, formatType: YFormatType) =>
|
|
273
|
+
declare const createXScale: (data: BaseDataPoint[], width: number) => d3_scale.ScaleTime<number, number, never>;
|
|
274
|
+
declare const createYScale: (data: BaseDataPoint[], height: number, formatType: YFormatType) => d3_scale.ScaleLinear<number, number, never>;
|
|
275
275
|
|
|
276
276
|
interface ActionItem {
|
|
277
277
|
/**
|
|
@@ -1064,6 +1064,10 @@ declare const MAP_TYPES: {
|
|
|
1064
1064
|
* Map type - represents the visual style of the map (roads vs satellite vs minimal)
|
|
1065
1065
|
*/
|
|
1066
1066
|
type MapType = keyof typeof MAP_TYPES;
|
|
1067
|
+
/**
|
|
1068
|
+
* Default map type used when none is specified
|
|
1069
|
+
*/
|
|
1070
|
+
declare const DEFAULT_MAP_TYPE: MapType;
|
|
1067
1071
|
|
|
1068
1072
|
/**
|
|
1069
1073
|
* Control position type
|
|
@@ -1849,4 +1853,4 @@ declare const isLightColor: (color: string) => boolean;
|
|
|
1849
1853
|
*/
|
|
1850
1854
|
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1851
1855
|
|
|
1852
|
-
export { type DistanceFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, defaultMargin as D, ENTITY_CONFIG as E, getContrastingTextColor as F, getDefaultChartColor as G, Heading as H, type InteractiveMapProps as I, getDefaultColors as J, getEntityConfig as K, Loader as L, type MapPoint as M, getEntityIcon as N, getEntityLabel as O, getResolvedColor as P, getThemeCategoricalColors as Q, getYFormatSettings as R, type SegmentOption as S, TextLink as T, isLightColor as U, type FieldValue as V, type BooleanFormat as W, type FormattedValue as X, type YFormatSettings as Y, type CurrentFormat as Z, type DateFormat as _, type ActionMenuProps as a, type EnergyFormat as a0, type CurrencyFormat as a1, type NumberFormat as a2, type PhoneFormat as a3, type PowerFormat as a4, type FormatterFunction as a5, type ResistanceFormat as a6, type TemperatureFormat as a7, type TemperatureUnitString as a8, type TemperatureUnit as a9, type LayerFeature as
|
|
1856
|
+
export { type DistanceFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, defaultMargin as D, ENTITY_CONFIG as E, getContrastingTextColor as F, getDefaultChartColor as G, Heading as H, type InteractiveMapProps as I, getDefaultColors as J, getEntityConfig as K, Loader as L, type MapPoint as M, getEntityIcon as N, getEntityLabel as O, getResolvedColor as P, getThemeCategoricalColors as Q, getYFormatSettings as R, type SegmentOption as S, TextLink as T, isLightColor as U, type FieldValue as V, type BooleanFormat as W, type FormattedValue as X, type YFormatSettings as Y, type CurrentFormat as Z, type DateFormat as _, type ActionMenuProps as a, type EnergyFormat as a0, type CurrencyFormat as a1, type NumberFormat as a2, type PhoneFormat as a3, type PowerFormat as a4, type FormatterFunction as a5, type ResistanceFormat as a6, type TemperatureFormat as a7, type TemperatureUnitString as a8, type TemperatureUnit as a9, InteractiveMap as aA, type LayerFeature as aB, type LayerStyle as aC, MAP_TYPES as aD, type MapType as aE, Meter as aF, type MetricFormat as aG, type PercentageFormat as aH, type PowerUnit as aI, type RenderType as aJ, type ResistanceUnit as aK, SegmentedControl as aL, StaticMap as aM, type TextTransform as aN, type TextTruncatePosition as aO, type VoltageUnit as aP, type ZoomStops as aQ, activeDeviceStates as aR, deviceStateLabels as aS, deviceStateMetricFormats as aT, formatComponentValue as aU, getDeviceStateLabel as aV, getGridStateLabel as aW, gridStateLabels as aX, isActiveState as aY, useChartContext as aZ, useComponentFormatter as a_, type TextFormat as aa, type VoltageFormat as ab, type FieldFormat as ac, type DeviceState as ad, type GridState as ae, type ComponentFormatter as af, type LayerSpec as ag, type CustomPinsSpec as ah, type GeoJsonLayerSpec as ai, type RasterLayerSpec as aj, type VectorLayerSpec as ak, type ClusteredVectorLayerSpec as al, ActionMenu as am, Avatar as an, Badge as ao, type BaseFormat as ap, ChartContext as aq, CodeEditor as ar, type ColorSpec as as, type ComponentFormatOptions as at, type CurrentUnit as au, type CustomFormat as av, DEFAULT_MAP_TYPE as aw, type DateFormatStyle as ax, type DistanceUnit as ay, type EnergyUnit as az, AppShell as b, type AppShellProps as c, type AvatarProps as d, type BaseDataPoint as e, type CodeEditorProps as f, type CodeLanguage as g, type CodeTheme as h, type EntityConfig as i, type EntityType as j, Logo as k, type MeterProps as l, type SegmentedControlProps as m, SideNav as n, type SideNavItem as o, type SideNavProps as p, type StaticMapProps as q, type TooltipData as r, type TooltipSeries as s, TopNav as t, type TopNavProps as u, type YFormatType as v, clearColorCache as w, createCategoryColorMap as x, createXScale as y, createYScale as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.30.0",
|
|
3
3
|
"components": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ActionCell",
|
|
@@ -1055,7 +1055,7 @@
|
|
|
1055
1055
|
{
|
|
1056
1056
|
"name": "DataControls",
|
|
1057
1057
|
"category": "Data",
|
|
1058
|
-
"description": "DataControls A unified control bar for data display components (Lists, DataTables). Provides search, filtering, sorting, results count, and action controls with responsive layout. All data operations (search, filter, sort) are handled server-side. This component is purely presentational and controlled. **Features:** - Optional sticky positioning for data-heavy pages - Works with PageLayout sticky headers - Configurable z-index and offset **Responsive Behavior:** - Narrow containers (< 640px): Two rows - Row 1: inputs (search + filter icon), Row 2: outputs (results + sort + actions) - Wide containers (≥ 640px): Single row with all controls visible Example usage: ```tsx <DataControls resultsCount={{ count: 23, label: \"sites\" }} search={{ value: searchQuery, onChange: setSearchQuery, onClear: () => setSearchQuery(''), placeholder: \"Search sites...\" }} filters={activeFilters} onRemoveFilter={removeFilter} onClearAllFilters={clearAllFilters} onManageFilters={() => setFilterDrawerOpen(true)} sort={{ value: sortBy, options: sortOptions, onChange: setSortBy }} /> ```",
|
|
1058
|
+
"description": "DataControls A unified control bar for data display components (Lists, DataTables). Provides search, filtering, sorting, results count, and action controls with responsive layout. All data operations (search, filter, sort) are handled server-side. This component is purely presentational and controlled. **Features:** - Optional sticky positioning for data-heavy pages - Works with PageLayout sticky headers - Configurable z-index and offset **Responsive Behavior:** - Narrow containers (< 640px): Two rows - Row 1: inputs (search + filter icon), Row 2: outputs (results + sort + actions) - Wide containers (≥ 640px): Single row with all controls visible Example usage: ```tsx <DataControls resultsCount={{ count: 23, label: \"sites\" }} search={{ value: searchQuery, onChange: setSearchQuery, onClear: () => setSearchQuery(''), placeholder: \"Search sites...\" }} filters={activeFilters} onRemoveFilter={removeFilter} exportControl={exportData} onClearAllFilters={clearAllFilters} onManageFilters={() => setFilterDrawerOpen(true)} sort={{ value: sortBy, options: sortOptions, onChange: setSortBy }} /> ```",
|
|
1059
1059
|
"importRoot": "@texturehq/edges",
|
|
1060
1060
|
"importPath": "@texturehq/edges/components/DataControls",
|
|
1061
1061
|
"props": [],
|
|
@@ -1108,6 +1108,16 @@
|
|
|
1108
1108
|
],
|
|
1109
1109
|
"storybookPath": "Form Controls/DateRangePicker"
|
|
1110
1110
|
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "DEFAULT_MAP_TYPE",
|
|
1113
|
+
"category": "Uncategorized",
|
|
1114
|
+
"description": "",
|
|
1115
|
+
"importRoot": "@texturehq/edges",
|
|
1116
|
+
"importPath": "@texturehq/edges/components/DEFAULT_MAP_TYPE",
|
|
1117
|
+
"props": [],
|
|
1118
|
+
"relatedComponents": [],
|
|
1119
|
+
"storybookPath": "Uncategorized/DEFAULT_MAP_TYPE"
|
|
1120
|
+
},
|
|
1111
1121
|
{
|
|
1112
1122
|
"name": "DeviceHealthBadge",
|
|
1113
1123
|
"category": "Display",
|
|
@@ -3101,6 +3111,7 @@
|
|
|
3101
3111
|
"CommandPalette",
|
|
3102
3112
|
"ContactMetaCell",
|
|
3103
3113
|
"CustomCell",
|
|
3114
|
+
"DEFAULT_MAP_TYPE",
|
|
3104
3115
|
"DateCell",
|
|
3105
3116
|
"DeviceMetaCell",
|
|
3106
3117
|
"DeviceStateCell",
|