@texturehq/edges 1.13.2 → 1.14.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.13.2",
3
- "generatedAt": "2025-10-28T18:47:55.357Z",
2
+ "version": "1.14.1",
3
+ "generatedAt": "2025-10-29T23:38:45.924Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "ActionCell",
@@ -222,7 +222,7 @@
222
222
  {
223
223
  "name": "Badge",
224
224
  "category": "Display",
225
- "description": "Badge A non-interactive label for displaying status, counts, or categories. Use for read-only indicators. For interactive elements, use Chip instead.",
225
+ "description": "Badge A non-interactive label for displaying status, counts, or categories. Use for read-only indicators. For interactive elements, use Chip instead. Supports device states (charging, discharging, heat, cool, etc.) and grid states (importing, exporting) as variant values.",
226
226
  "importRoot": "@texturehq/edges",
227
227
  "importPath": "@texturehq/edges/components/Badge",
228
228
  "props": [],
@@ -789,6 +789,16 @@
789
789
  ],
790
790
  "storybookPath": "Overlays/Confirm"
791
791
  },
792
+ {
793
+ "name": "ConnectionStatusBadge",
794
+ "category": "Display",
795
+ "description": "ConnectionStatusBadge Displays device connection status with optional timestamps. - Green \"Connected\" badge with pulsing dot - Gray \"Disconnected\" badge with duration offline - Auto-calculates \"offline for 2 hours\" type strings @example ```tsx <ConnectionStatusBadge isConnected={true} /> <ConnectionStatusBadge isConnected={false} disconnectedAt={new Date()} showTimestamp /> <ConnectionStatusBadge isConnected={true} connectedAt={new Date()} /> ```",
796
+ "importRoot": "@texturehq/edges",
797
+ "importPath": "@texturehq/edges/components/ConnectionStatusBadge",
798
+ "props": [],
799
+ "relatedComponents": [],
800
+ "storybookPath": "Display/ConnectionStatusBadge"
801
+ },
792
802
  {
793
803
  "name": "CopyToClipboard",
794
804
  "category": "Display",
@@ -857,6 +867,66 @@
857
867
  ],
858
868
  "storybookPath": "Form Controls/DateRangePicker"
859
869
  },
870
+ {
871
+ "name": "DeviceHealthBadge",
872
+ "category": "Display",
873
+ "description": "DeviceHealthBadge Displays device health status with optional alert counts. Maps health status to feedback colors (success/warning/error). Pulsing dot for warning/error states. @example ```tsx <DeviceHealthBadge status=\"healthy\" /> <DeviceHealthBadge status=\"warning\" alertCount={2} showCount /> <DeviceHealthBadge status=\"error\" alertCount={5} showCount /> ```",
874
+ "importRoot": "@texturehq/edges",
875
+ "importPath": "@texturehq/edges/components/DeviceHealthBadge",
876
+ "props": [],
877
+ "relatedComponents": [],
878
+ "storybookPath": "Display/DeviceHealthBadge"
879
+ },
880
+ {
881
+ "name": "DeviceMetaDisplay",
882
+ "category": "Display",
883
+ "description": "DeviceMetaDisplay Displays device metadata (manufacturer, model, serial number) with optional logo. Supports compact layout for tables and full layout for headers/cards. Falls back to device type icon if logo fails to load. @example ```tsx // Table cell <DeviceMetaDisplay manufacturer=\"Tesla\" model=\"Powerwall 2\" logoUrl=\"https://...\" deviceType=\"battery\" layout=\"compact\" /> // Page header <DeviceMetaDisplay manufacturer=\"Tesla\" model=\"Powerwall 2\" serialNumber=\"TG123456789\" logoUrl=\"https://...\" deviceType=\"battery\" layout=\"full\" showDeviceTypeIcon /> ```",
884
+ "importRoot": "@texturehq/edges",
885
+ "importPath": "@texturehq/edges/components/DeviceMetaDisplay",
886
+ "props": [],
887
+ "relatedComponents": [],
888
+ "storybookPath": "Display/DeviceMetaDisplay"
889
+ },
890
+ {
891
+ "name": "DeviceStateBadge",
892
+ "category": "Display",
893
+ "description": "DeviceStateBadge A specialized badge component for displaying device states with smart defaults. Auto-enables pulsing dot for active states (charging, discharging, heat, cool, on). Uses semantic device state colors from the theme. @example ```tsx <DeviceStateBadge state=\"charging\" /> <DeviceStateBadge state=\"heat\" label=\"Heating Mode\" /> <DeviceStateBadge state=\"on\" icon=\"Lightning\" /> ```",
894
+ "importRoot": "@texturehq/edges",
895
+ "importPath": "@texturehq/edges/components/DeviceStateBadge",
896
+ "props": [],
897
+ "relatedComponents": [],
898
+ "storybookPath": "Display/DeviceStateBadge"
899
+ },
900
+ {
901
+ "name": "DeviceStateCell",
902
+ "category": "Uncategorized",
903
+ "description": "",
904
+ "importRoot": "@texturehq/edges",
905
+ "importPath": "@texturehq/edges/components/DeviceStateCell",
906
+ "props": [],
907
+ "relatedComponents": [],
908
+ "storybookPath": "Uncategorized/DeviceStateCell"
909
+ },
910
+ {
911
+ "name": "DeviceStateWithMetric",
912
+ "category": "Display",
913
+ "description": "DeviceStateWithMetric Combines a device state badge with a formatted metric display. Uses the existing FieldFormat system for flexible metric formatting. Supports horizontal layout (for tables) and vertical layout (for cards/detail views). @example ```tsx // Battery: \"Charging | 75%\" <DeviceStateWithMetric state=\"charging\" metric={75} metricFormatter={{ type: \"number\", decimals: 0, suffix: \"%\" }} /> // Inverter: \"On | 5.2 kW\" <DeviceStateWithMetric state=\"on\" metric={5200} metricFormatter={{ type: \"power\", unit: \"kW\" }} /> // Thermostat: \"Cool | 72°F\" <DeviceStateWithMetric state=\"cool\" metric={72} metricFormatter={{ type: \"temperature\", unit: \"F\" }} /> ```",
914
+ "importRoot": "@texturehq/edges",
915
+ "importPath": "@texturehq/edges/components/DeviceStateWithMetric",
916
+ "props": [],
917
+ "relatedComponents": [],
918
+ "storybookPath": "Display/DeviceStateWithMetric"
919
+ },
920
+ {
921
+ "name": "DeviceTypeIcon",
922
+ "category": "Display",
923
+ "description": "DeviceTypeIcon Displays a consistent icon for device types across the platform. Maps device types to appropriate Phosphor icons with optional labels. @example ```tsx <DeviceTypeIcon deviceType=\"battery\" size=\"md\" /> <DeviceTypeIcon deviceType=\"thermostat\" showLabel /> <DeviceTypeIcon deviceType=\"charger\" size={32} /> ```",
924
+ "importRoot": "@texturehq/edges",
925
+ "importPath": "@texturehq/edges/components/DeviceTypeIcon",
926
+ "props": [],
927
+ "relatedComponents": [],
928
+ "storybookPath": "Display/DeviceTypeIcon"
929
+ },
860
930
  {
861
931
  "name": "Dialog",
862
932
  "category": "Overlays",
@@ -913,6 +983,16 @@
913
983
  ],
914
984
  "storybookPath": "Feedback/EmptyState"
915
985
  },
986
+ {
987
+ "name": "EnrollmentStatusBadge",
988
+ "category": "Display",
989
+ "description": "EnrollmentStatusBadge Displays device enrollment status for programs. Color-coded status with optional program name in tooltip. Status mapping: - enrolled → success (green) - eligible → info (blue) - pending → warning (yellow) - not_eligible → neutral (gray) - opted_out → neutral (gray) @example ```tsx <EnrollmentStatusBadge status=\"enrolled\" programName=\"Demand Response Q4\" /> <EnrollmentStatusBadge status=\"eligible\" /> <EnrollmentStatusBadge status=\"pending\" /> ```",
990
+ "importRoot": "@texturehq/edges",
991
+ "importPath": "@texturehq/edges/components/EnrollmentStatusBadge",
992
+ "props": [],
993
+ "relatedComponents": [],
994
+ "storybookPath": "Display/EnrollmentStatusBadge"
995
+ },
916
996
  {
917
997
  "name": "ErrorBoundary",
918
998
  "category": "Feedback",
@@ -958,6 +1038,16 @@
958
1038
  "relatedComponents": [],
959
1039
  "storybookPath": "Data/FilterDialog"
960
1040
  },
1041
+ {
1042
+ "name": "FirmwareVersionBadge",
1043
+ "category": "Display",
1044
+ "description": "FirmwareVersionBadge Displays firmware version with update status indicators. Green indicator if latest, orange if update available. Compact display suitable for tables. @example ```tsx <FirmwareVersionBadge version=\"1.2.3\" isLatest /> <FirmwareVersionBadge version=\"1.1.0\" updateAvailable /> <FirmwareVersionBadge version=\"2.0.0-beta\" /> ```",
1045
+ "importRoot": "@texturehq/edges",
1046
+ "importPath": "@texturehq/edges/components/FirmwareVersionBadge",
1047
+ "props": [],
1048
+ "relatedComponents": [],
1049
+ "storybookPath": "Display/FirmwareVersionBadge"
1050
+ },
961
1051
  {
962
1052
  "name": "Form",
963
1053
  "category": "Form Controls",
@@ -990,6 +1080,16 @@
990
1080
  ],
991
1081
  "storybookPath": "Layout/Grid"
992
1082
  },
1083
+ {
1084
+ "name": "GridStateBadge",
1085
+ "category": "Display",
1086
+ "description": "GridStateBadge A specialized badge component for displaying grid states (importing, exporting). Optionally shows directional icons to indicate power flow direction. Uses semantic grid state colors from the theme. @example ```tsx <GridStateBadge state=\"importing\" /> <GridStateBadge state=\"exporting\" showIcon /> <GridStateBadge state=\"importing\" label=\"Grid Import\" /> ```",
1087
+ "importRoot": "@texturehq/edges",
1088
+ "importPath": "@texturehq/edges/components/GridStateBadge",
1089
+ "props": [],
1090
+ "relatedComponents": [],
1091
+ "storybookPath": "Display/GridStateBadge"
1092
+ },
993
1093
  {
994
1094
  "name": "Heading",
995
1095
  "category": "Typography",
@@ -2124,7 +2224,7 @@
2124
2224
  },
2125
2225
  {
2126
2226
  "name": "variant",
2127
- "type": "\"default\" | \"primary\" | \"muted\" | \"unstyled\""
2227
+ "type": "\"default\" | \"brand\" | \"muted\" | \"unstyled\""
2128
2228
  },
2129
2229
  {
2130
2230
  "name": "onClick",
@@ -2399,7 +2499,16 @@
2399
2499
  "Avatar",
2400
2500
  "Badge",
2401
2501
  "Chip",
2402
- "CopyToClipboard"
2502
+ "ConnectionStatusBadge",
2503
+ "CopyToClipboard",
2504
+ "DeviceHealthBadge",
2505
+ "DeviceMetaDisplay",
2506
+ "DeviceStateBadge",
2507
+ "DeviceStateWithMetric",
2508
+ "DeviceTypeIcon",
2509
+ "EnrollmentStatusBadge",
2510
+ "FirmwareVersionBadge",
2511
+ "GridStateBadge"
2403
2512
  ],
2404
2513
  "Navigation": [
2405
2514
  "BreadcrumbItem",
@@ -2422,6 +2531,7 @@
2422
2531
  "ChartBottomBar",
2423
2532
  "ChartTooltip",
2424
2533
  "DateCell",
2534
+ "DeviceStateCell",
2425
2535
  "DialogHeader",
2426
2536
  "InteractiveMap",
2427
2537
  "LineSeries",