@texturehq/edges 1.13.1 → 1.14.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/components.manifest.json +108 -5
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +396 -16
- package/dist/index.d.ts +396 -16
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/{server-BV15KAF4.d.cts → server-v2FT_HvE.d.cts} +40 -4
- package/dist/{server-BV15KAF4.d.ts → server-v2FT_HvE.d.ts} +40 -4
- 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/dist/styles/utilities.css +2 -2
- package/dist/styles.css +107 -13
- package/dist/utilities.manifest.json +16 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"generatedAt": "2025-10-
|
|
2
|
+
"version": "1.14.0",
|
|
3
|
+
"generatedAt": "2025-10-29T15:33:05.223Z",
|
|
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,56 @@
|
|
|
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": "DeviceStateWithMetric",
|
|
902
|
+
"category": "Display",
|
|
903
|
+
"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\" }} /> ```",
|
|
904
|
+
"importRoot": "@texturehq/edges",
|
|
905
|
+
"importPath": "@texturehq/edges/components/DeviceStateWithMetric",
|
|
906
|
+
"props": [],
|
|
907
|
+
"relatedComponents": [],
|
|
908
|
+
"storybookPath": "Display/DeviceStateWithMetric"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"name": "DeviceTypeIcon",
|
|
912
|
+
"category": "Display",
|
|
913
|
+
"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} /> ```",
|
|
914
|
+
"importRoot": "@texturehq/edges",
|
|
915
|
+
"importPath": "@texturehq/edges/components/DeviceTypeIcon",
|
|
916
|
+
"props": [],
|
|
917
|
+
"relatedComponents": [],
|
|
918
|
+
"storybookPath": "Display/DeviceTypeIcon"
|
|
919
|
+
},
|
|
860
920
|
{
|
|
861
921
|
"name": "Dialog",
|
|
862
922
|
"category": "Overlays",
|
|
@@ -913,6 +973,16 @@
|
|
|
913
973
|
],
|
|
914
974
|
"storybookPath": "Feedback/EmptyState"
|
|
915
975
|
},
|
|
976
|
+
{
|
|
977
|
+
"name": "EnrollmentStatusBadge",
|
|
978
|
+
"category": "Display",
|
|
979
|
+
"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\" /> ```",
|
|
980
|
+
"importRoot": "@texturehq/edges",
|
|
981
|
+
"importPath": "@texturehq/edges/components/EnrollmentStatusBadge",
|
|
982
|
+
"props": [],
|
|
983
|
+
"relatedComponents": [],
|
|
984
|
+
"storybookPath": "Display/EnrollmentStatusBadge"
|
|
985
|
+
},
|
|
916
986
|
{
|
|
917
987
|
"name": "ErrorBoundary",
|
|
918
988
|
"category": "Feedback",
|
|
@@ -958,6 +1028,16 @@
|
|
|
958
1028
|
"relatedComponents": [],
|
|
959
1029
|
"storybookPath": "Data/FilterDialog"
|
|
960
1030
|
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "FirmwareVersionBadge",
|
|
1033
|
+
"category": "Display",
|
|
1034
|
+
"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\" /> ```",
|
|
1035
|
+
"importRoot": "@texturehq/edges",
|
|
1036
|
+
"importPath": "@texturehq/edges/components/FirmwareVersionBadge",
|
|
1037
|
+
"props": [],
|
|
1038
|
+
"relatedComponents": [],
|
|
1039
|
+
"storybookPath": "Display/FirmwareVersionBadge"
|
|
1040
|
+
},
|
|
961
1041
|
{
|
|
962
1042
|
"name": "Form",
|
|
963
1043
|
"category": "Form Controls",
|
|
@@ -990,6 +1070,16 @@
|
|
|
990
1070
|
],
|
|
991
1071
|
"storybookPath": "Layout/Grid"
|
|
992
1072
|
},
|
|
1073
|
+
{
|
|
1074
|
+
"name": "GridStateBadge",
|
|
1075
|
+
"category": "Display",
|
|
1076
|
+
"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\" /> ```",
|
|
1077
|
+
"importRoot": "@texturehq/edges",
|
|
1078
|
+
"importPath": "@texturehq/edges/components/GridStateBadge",
|
|
1079
|
+
"props": [],
|
|
1080
|
+
"relatedComponents": [],
|
|
1081
|
+
"storybookPath": "Display/GridStateBadge"
|
|
1082
|
+
},
|
|
993
1083
|
{
|
|
994
1084
|
"name": "Heading",
|
|
995
1085
|
"category": "Typography",
|
|
@@ -1842,6 +1932,10 @@
|
|
|
1842
1932
|
}
|
|
1843
1933
|
],
|
|
1844
1934
|
"relatedComponents": [
|
|
1935
|
+
"StoryLayout",
|
|
1936
|
+
"StoryTable",
|
|
1937
|
+
"StoryTableCell",
|
|
1938
|
+
"StoryTableRow",
|
|
1845
1939
|
"Switch"
|
|
1846
1940
|
],
|
|
1847
1941
|
"storybookPath": "Form Controls/Switch"
|
|
@@ -2120,7 +2214,7 @@
|
|
|
2120
2214
|
},
|
|
2121
2215
|
{
|
|
2122
2216
|
"name": "variant",
|
|
2123
|
-
"type": "\"default\" | \"
|
|
2217
|
+
"type": "\"default\" | \"brand\" | \"muted\" | \"unstyled\""
|
|
2124
2218
|
},
|
|
2125
2219
|
{
|
|
2126
2220
|
"name": "onClick",
|
|
@@ -2395,7 +2489,16 @@
|
|
|
2395
2489
|
"Avatar",
|
|
2396
2490
|
"Badge",
|
|
2397
2491
|
"Chip",
|
|
2398
|
-
"
|
|
2492
|
+
"ConnectionStatusBadge",
|
|
2493
|
+
"CopyToClipboard",
|
|
2494
|
+
"DeviceHealthBadge",
|
|
2495
|
+
"DeviceMetaDisplay",
|
|
2496
|
+
"DeviceStateBadge",
|
|
2497
|
+
"DeviceStateWithMetric",
|
|
2498
|
+
"DeviceTypeIcon",
|
|
2499
|
+
"EnrollmentStatusBadge",
|
|
2500
|
+
"FirmwareVersionBadge",
|
|
2501
|
+
"GridStateBadge"
|
|
2399
2502
|
],
|
|
2400
2503
|
"Navigation": [
|
|
2401
2504
|
"BreadcrumbItem",
|