@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.
@@ -28,8 +28,8 @@
28
28
  outline: none;
29
29
  }
30
30
 
31
- /* Ensure focus-visible still works for interactive elements that don't have custom focus styles */
32
- :focus-visible:not(input):not(textarea):not(select) {
31
+ /* Ensure focus-visible still works for interactive elements */
32
+ :focus-visible {
33
33
  outline: 2px solid var(--color-action-default);
34
34
  outline-offset: 2px;
35
35
  }
package/dist/styles.css CHANGED
@@ -74,6 +74,7 @@
74
74
  --spacing-8: 2rem;
75
75
  --spacing-9: 2.25rem;
76
76
  --spacing-10: 2.5rem;
77
+ --spacing-11: 2.75rem;
77
78
  --spacing-12: 3rem;
78
79
  --spacing-14: 3.5rem;
79
80
  --spacing-16: 4rem;
@@ -1036,7 +1037,7 @@
1036
1037
  [role="dialog"], [role="menu"], [role="listbox"], [data-react-aria-dialog], [data-react-aria-modal] {
1037
1038
  outline: none;
1038
1039
  }
1039
- :focus-visible:not(input):not(textarea):not(select) {
1040
+ :focus-visible {
1040
1041
  outline: 2px solid var(--color-action-default);
1041
1042
  outline-offset: 2px;
1042
1043
  }
@@ -1251,8 +1252,8 @@
1251
1252
  .inset-0 {
1252
1253
  inset: var(--spacing-0);
1253
1254
  }
1254
- .inset-y-\[1px\] {
1255
- inset-block: 1px;
1255
+ .inset-y-\[2px\] {
1256
+ inset-block: 2px;
1256
1257
  }
1257
1258
  .start-1 {
1258
1259
  inset-inline-start: var(--spacing-1);
@@ -1308,8 +1309,8 @@
1308
1309
  .right-8 {
1309
1310
  right: var(--spacing-8);
1310
1311
  }
1311
- .right-\[1px\] {
1312
- right: 1px;
1312
+ .right-\[2px\] {
1313
+ right: 2px;
1313
1314
  }
1314
1315
  .-bottom-2 {
1315
1316
  bottom: calc(var(--spacing-2) * -1);
@@ -1800,6 +1801,9 @@
1800
1801
  .w-10 {
1801
1802
  width: var(--spacing-10);
1802
1803
  }
1804
+ .w-11 {
1805
+ width: var(--spacing-11);
1806
+ }
1803
1807
  .w-12 {
1804
1808
  width: var(--spacing-12);
1805
1809
  }
@@ -1815,6 +1819,9 @@
1815
1819
  .w-24 {
1816
1820
  width: var(--spacing-24);
1817
1821
  }
1822
+ .w-28 {
1823
+ width: var(--spacing-28);
1824
+ }
1818
1825
  .w-32 {
1819
1826
  width: var(--spacing-32);
1820
1827
  }
@@ -2534,9 +2541,9 @@
2534
2541
  border-top-left-radius: var(--radius-sm);
2535
2542
  border-bottom-left-radius: var(--radius-sm);
2536
2543
  }
2537
- .rounded-r-\[calc\(var\(--control-border-radius\)-1px\)\] {
2538
- border-top-right-radius: calc(var(--control-border-radius) - 1px);
2539
- border-bottom-right-radius: calc(var(--control-border-radius) - 1px);
2544
+ .rounded-r-\[calc\(var\(--control-border-radius\)-2px\)\] {
2545
+ border-top-right-radius: calc(var(--control-border-radius) - 2px);
2546
+ border-bottom-right-radius: calc(var(--control-border-radius) - 2px);
2540
2547
  }
2541
2548
  .rounded-r-sm {
2542
2549
  border-top-right-radius: var(--radius-sm);
@@ -2979,6 +2986,42 @@
2979
2986
  .bg-slate-700 {
2980
2987
  background-color: var(--color-slate-700);
2981
2988
  }
2989
+ .bg-state-auto {
2990
+ background-color: var(--color-state-auto);
2991
+ }
2992
+ .bg-state-charging {
2993
+ background-color: var(--color-state-charging);
2994
+ }
2995
+ .bg-state-cool {
2996
+ background-color: var(--color-state-cool);
2997
+ }
2998
+ .bg-state-discharging {
2999
+ background-color: var(--color-state-discharging);
3000
+ }
3001
+ .bg-state-eco {
3002
+ background-color: var(--color-state-eco);
3003
+ }
3004
+ .bg-state-exporting {
3005
+ background-color: var(--color-state-exporting);
3006
+ }
3007
+ .bg-state-heat {
3008
+ background-color: var(--color-state-heat);
3009
+ }
3010
+ .bg-state-idle {
3011
+ background-color: var(--color-state-idle);
3012
+ }
3013
+ .bg-state-importing {
3014
+ background-color: var(--color-state-importing);
3015
+ }
3016
+ .bg-state-off {
3017
+ background-color: var(--color-state-off);
3018
+ }
3019
+ .bg-state-on {
3020
+ background-color: var(--color-state-on);
3021
+ }
3022
+ .bg-state-unknown {
3023
+ background-color: var(--color-state-unknown);
3024
+ }
2982
3025
  .bg-text-muted {
2983
3026
  background-color: var(--color-text-muted);
2984
3027
  }
@@ -3626,6 +3669,42 @@
3626
3669
  .text-slate-300 {
3627
3670
  color: var(--color-slate-300);
3628
3671
  }
3672
+ .text-state-auto-text {
3673
+ color: var(--color-state-auto-text);
3674
+ }
3675
+ .text-state-charging-text {
3676
+ color: var(--color-state-charging-text);
3677
+ }
3678
+ .text-state-cool-text {
3679
+ color: var(--color-state-cool-text);
3680
+ }
3681
+ .text-state-discharging-text {
3682
+ color: var(--color-state-discharging-text);
3683
+ }
3684
+ .text-state-eco-text {
3685
+ color: var(--color-state-eco-text);
3686
+ }
3687
+ .text-state-exporting-text {
3688
+ color: var(--color-state-exporting-text);
3689
+ }
3690
+ .text-state-heat-text {
3691
+ color: var(--color-state-heat-text);
3692
+ }
3693
+ .text-state-idle-text {
3694
+ color: var(--color-state-idle-text);
3695
+ }
3696
+ .text-state-importing-text {
3697
+ color: var(--color-state-importing-text);
3698
+ }
3699
+ .text-state-off-text {
3700
+ color: var(--color-state-off-text);
3701
+ }
3702
+ .text-state-on-text {
3703
+ color: var(--color-state-on-text);
3704
+ }
3705
+ .text-state-unknown-text {
3706
+ color: var(--color-state-unknown-text);
3707
+ }
3629
3708
  .text-text-body {
3630
3709
  color: var(--color-text-body);
3631
3710
  }
@@ -3697,6 +3776,12 @@
3697
3776
  text-decoration-color: color-mix(in oklab, var(--color-text-link-default) 30%, transparent);
3698
3777
  }
3699
3778
  }
3779
+ .decoration-1 {
3780
+ text-decoration-thickness: 1px;
3781
+ }
3782
+ .underline-offset-4 {
3783
+ text-underline-offset: 4px;
3784
+ }
3700
3785
  .placeholder-text-muted {
3701
3786
  &::-moz-placeholder {
3702
3787
  color: var(--color-text-muted);
@@ -3954,6 +4039,10 @@
3954
4039
  .forced-color-adjust-none {
3955
4040
  forced-color-adjust: none;
3956
4041
  }
4042
+ .\!outline-none {
4043
+ --tw-outline-style: none !important;
4044
+ outline-style: none !important;
4045
+ }
3957
4046
  .outline-none {
3958
4047
  --tw-outline-style: none;
3959
4048
  outline-style: none;
@@ -4236,11 +4325,6 @@
4236
4325
  color: var(--color-action-brand);
4237
4326
  }
4238
4327
  }
4239
- .visited\:text-text-link-default {
4240
- &:visited {
4241
- color: var(--color-text-link-default);
4242
- }
4243
- }
4244
4328
  .visited\:text-text-muted {
4245
4329
  &:visited {
4246
4330
  color: var(--color-text-muted);
@@ -4376,6 +4460,16 @@
4376
4460
  }
4377
4461
  }
4378
4462
  }
4463
+ .hover\:bg-feedback-error-background\/50 {
4464
+ &:hover {
4465
+ @media (hover: hover) {
4466
+ background-color: color-mix(in srgb, #fee2e2 50%, transparent);
4467
+ @supports (color: color-mix(in lab, red, red)) {
4468
+ background-color: color-mix(in oklab, var(--color-feedback-error-background) 50%, transparent);
4469
+ }
4470
+ }
4471
+ }
4472
+ }
4379
4473
  .hover\:bg-gray-50 {
4380
4474
  &:hover {
4381
4475
  @media (hover: hover) {
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.13.1",
3
- "generatedAt": "2025-10-27T18:44:56.463Z",
2
+ "version": "1.14.0",
3
+ "generatedAt": "2025-10-29T15:33:05.225Z",
4
4
  "categories": {
5
5
  "hooks": {
6
6
  "description": "React hooks for common functionality like breakpoints, debouncing, local storage, and media queries",
@@ -213,6 +213,13 @@
213
213
  "category": "formatting",
214
214
  "file": "utils/formatting/boolean.ts"
215
215
  },
216
+ {
217
+ "name": "formatCapacity",
218
+ "type": "function",
219
+ "description": "Format battery capacity (kWh) ```typescript formatCapacity(13.5); // \"13.5 kWh\" formatCapacity(1500); // \"1.5 MWh\" formatCapacity(null); // null ```",
220
+ "category": "formatting",
221
+ "file": "utils/formatting/capacity.ts"
222
+ },
216
223
  {
217
224
  "name": "formatComponentValue",
218
225
  "type": "function",
@@ -297,6 +304,13 @@
297
304
  "category": "formatting",
298
305
  "file": "utils/formatting/power.ts"
299
306
  },
307
+ {
308
+ "name": "formatPowerRating",
309
+ "type": "function",
310
+ "description": "Format power rating (kW) ```typescript formatPowerRating(5.2); // \"5.2 kW\" formatPowerRating(2500); // \"2.5 MW\" formatPowerRating(null); // null ```",
311
+ "category": "formatting",
312
+ "file": "utils/formatting/capacity.ts"
313
+ },
300
314
  {
301
315
  "name": "FormatRegistry",
302
316
  "type": "constant",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",