@texturehq/edges 1.22.3 → 1.23.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/{FileUpload-DXTcfLIh.d.cts → RichTextEditor-BGQenUvv.d.cts} +35 -1
- package/dist/{FileUpload-DXTcfLIh.d.ts → RichTextEditor-BGQenUvv.d.ts} +35 -1
- package/dist/{TimeField-D2AOjQ1K.d.cts → TimeField-CC3x7lhz.d.cts} +1 -1
- package/dist/{TimeField-B4J8gA8E.d.ts → TimeField-D3hN7DMK.d.ts} +1 -1
- package/dist/{colors-BTM11lUb.d.ts → colors-4FidHJjY.d.ts} +11 -32
- package/dist/{colors-DTZwmrPz.d.cts → colors-DZxe608j.d.cts} +11 -32
- package/dist/components.manifest.json +15 -2
- package/dist/form/index.cjs +1 -1
- package/dist/form/index.cjs.map +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/index.js.map +1 -1
- package/dist/generated/tailwind-tokens-dark.css +12 -0
- package/dist/generated/tailwind-tokens-light.css +12 -0
- package/dist/generated/viz-runtime.css +28 -0
- package/dist/index.cjs +34 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +93 -8
- package/dist/index.d.ts +93 -8
- package/dist/index.js +34 -18
- package/dist/index.js.map +1 -1
- package/dist/rhf/index.cjs +1 -1
- package/dist/rhf/index.cjs.map +1 -1
- package/dist/rhf/index.d.cts +22 -3
- package/dist/rhf/index.d.ts +22 -3
- package/dist/rhf/index.js +1 -1
- package/dist/rhf/index.js.map +1 -1
- package/dist/server.cjs +17 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +17 -1
- package/dist/server.js.map +1 -1
- package/dist/styles.css +90 -36
- package/dist/utilities.manifest.json +2 -9
- package/package.json +2 -1
- package/scripts/generate-viz-runtime.js +13 -0
package/dist/styles.css
CHANGED
|
@@ -157,39 +157,51 @@
|
|
|
157
157
|
--color-action-default-hover: #4b5563;
|
|
158
158
|
--color-action-default-text: #ffffff;
|
|
159
159
|
--color-state-charging: #f3e8ff;
|
|
160
|
+
--color-state-charging-data: #d9b6fd;
|
|
160
161
|
--color-state-charging-border: #c084fc;
|
|
161
162
|
--color-state-charging-text: #6b21a8;
|
|
162
163
|
--color-state-discharging: #fffbeb;
|
|
164
|
+
--color-state-discharging-data: #fce380;
|
|
163
165
|
--color-state-discharging-border: #facc15;
|
|
164
166
|
--color-state-discharging-text: #78350f;
|
|
165
167
|
--color-state-heat: #fee2e2;
|
|
168
|
+
--color-state-heat-data: #fba9a9;
|
|
166
169
|
--color-state-heat-border: #f87171;
|
|
167
170
|
--color-state-heat-text: #920000;
|
|
168
171
|
--color-state-cool: #dbeafe;
|
|
172
|
+
--color-state-cool-data: #9dc7fc;
|
|
169
173
|
--color-state-cool-border: #60a5fa;
|
|
170
174
|
--color-state-cool-text: #0334be;
|
|
171
175
|
--color-state-eco: #ddfff1;
|
|
176
|
+
--color-state-eco-data: #88e9c5;
|
|
172
177
|
--color-state-eco-border: #34d399;
|
|
173
178
|
--color-state-eco-text: #065f46;
|
|
174
179
|
--color-state-auto: #ffedd5;
|
|
180
|
+
--color-state-auto-data: #fed3a4;
|
|
175
181
|
--color-state-auto-border: #fdba74;
|
|
176
182
|
--color-state-auto-text: #7c2d12;
|
|
177
183
|
--color-state-on: #ccfbf1;
|
|
184
|
+
--color-state-on-data: #7ce7d8;
|
|
178
185
|
--color-state-on-border: #2dd4bf;
|
|
179
186
|
--color-state-on-text: #0f766e;
|
|
180
187
|
--color-state-idle: #e5e7eb;
|
|
188
|
+
--color-state-idle-data: #c0c5cd;
|
|
181
189
|
--color-state-idle-border: #9ca3af;
|
|
182
190
|
--color-state-idle-text: #374151;
|
|
183
191
|
--color-state-off: #e5e7eb;
|
|
192
|
+
--color-state-off-data: #c0c5cd;
|
|
184
193
|
--color-state-off-border: #9ca3af;
|
|
185
194
|
--color-state-off-text: #374151;
|
|
186
195
|
--color-state-unknown: #f8f8f8;
|
|
196
|
+
--color-state-unknown-data: #e4e6e9;
|
|
187
197
|
--color-state-unknown-border: #d1d5db;
|
|
188
198
|
--color-state-unknown-text: #000000;
|
|
189
199
|
--color-state-importing: #dbeafe;
|
|
200
|
+
--color-state-importing-data: #8bb6fa;
|
|
190
201
|
--color-state-importing-border: #3b82f6;
|
|
191
202
|
--color-state-importing-text: #1e40af;
|
|
192
203
|
--color-state-exporting: #fef3c7;
|
|
204
|
+
--color-state-exporting-data: #f9c869;
|
|
193
205
|
--color-state-exporting-border: #f59e0b;
|
|
194
206
|
--color-state-exporting-text: #92400e;
|
|
195
207
|
--color-viz-default: #0082ff;
|
|
@@ -536,39 +548,51 @@
|
|
|
536
548
|
--color-action-default-hover: #ffffff;
|
|
537
549
|
--color-action-default-text: #111827;
|
|
538
550
|
--color-state-charging: #581c87;
|
|
551
|
+
--color-state-charging-data: #8038bf;
|
|
539
552
|
--color-state-charging-border: #a855f7;
|
|
540
553
|
--color-state-charging-text: #e9d5ff;
|
|
541
554
|
--color-state-discharging: #78350f;
|
|
555
|
+
--color-state-discharging-data: #b1740b;
|
|
542
556
|
--color-state-discharging-border: #eab308;
|
|
543
557
|
--color-state-discharging-text: #fef3c7;
|
|
544
558
|
--color-state-heat: #7f1d1d;
|
|
559
|
+
--color-state-heat-data: #b73030;
|
|
545
560
|
--color-state-heat-border: #ef4444;
|
|
546
561
|
--color-state-heat-text: #fee2e2;
|
|
547
562
|
--color-state-cool: #1e3a8a;
|
|
563
|
+
--color-state-cool-data: #2c5ec0;
|
|
548
564
|
--color-state-cool-border: #3b82f6;
|
|
549
565
|
--color-state-cool-text: #dbeafe;
|
|
550
566
|
--color-state-eco: #064e3b;
|
|
567
|
+
--color-state-eco-data: #0b835e;
|
|
551
568
|
--color-state-eco-border: #10b981;
|
|
552
569
|
--color-state-eco-text: #d1fae5;
|
|
553
570
|
--color-state-auto: #7c2d12;
|
|
571
|
+
--color-state-auto-data: #bb5f27;
|
|
554
572
|
--color-state-auto-border: #fb923c;
|
|
555
573
|
--color-state-auto-text: #ffedd5;
|
|
556
574
|
--color-state-on: #134e4a;
|
|
575
|
+
--color-state-on-data: #138378;
|
|
557
576
|
--color-state-on-border: #14b8a6;
|
|
558
577
|
--color-state-on-text: #ccfbf1;
|
|
559
578
|
--color-state-idle: #374151;
|
|
579
|
+
--color-state-idle-data: #515968;
|
|
560
580
|
--color-state-idle-border: #6b7280;
|
|
561
581
|
--color-state-idle-text: #e5e7eb;
|
|
562
582
|
--color-state-off: #374151;
|
|
583
|
+
--color-state-off-data: #515968;
|
|
563
584
|
--color-state-off-border: #6b7280;
|
|
564
585
|
--color-state-off-text: #e5e7eb;
|
|
565
586
|
--color-state-unknown: #1f2937;
|
|
587
|
+
--color-state-unknown-data: #454d5b;
|
|
566
588
|
--color-state-unknown-border: #6b7280;
|
|
567
589
|
--color-state-unknown-text: #ffffff;
|
|
568
590
|
--color-state-importing: #1e3a8a;
|
|
591
|
+
--color-state-importing-data: #3f6fc2;
|
|
569
592
|
--color-state-importing-border: #60a5fa;
|
|
570
593
|
--color-state-importing-text: #dbeafe;
|
|
571
594
|
--color-state-exporting: #78350f;
|
|
595
|
+
--color-state-exporting-data: #b97a19;
|
|
572
596
|
--color-state-exporting-border: #fbbf24;
|
|
573
597
|
--color-state-exporting-text: #fef3c7;
|
|
574
598
|
--color-map-streets-border: #ffffff;
|
|
@@ -773,6 +797,18 @@
|
|
|
773
797
|
--color-viz-diverging-red-blue-8: #7080b5;
|
|
774
798
|
--color-viz-diverging-red-blue-9: #4d5e99;
|
|
775
799
|
--color-viz-diverging-red-blue-10: #2b3d70;
|
|
800
|
+
--color-state-charging-data: #d9b6fd;
|
|
801
|
+
--color-state-discharging-data: #fce380;
|
|
802
|
+
--color-state-heat-data: #fba9a9;
|
|
803
|
+
--color-state-cool-data: #9dc7fc;
|
|
804
|
+
--color-state-eco-data: #88e9c5;
|
|
805
|
+
--color-state-auto-data: #fed3a4;
|
|
806
|
+
--color-state-on-data: #7ce7d8;
|
|
807
|
+
--color-state-idle-data: #c0c5cd;
|
|
808
|
+
--color-state-off-data: #c0c5cd;
|
|
809
|
+
--color-state-unknown-data: #e4e6e9;
|
|
810
|
+
--color-state-importing-data: #8bb6fa;
|
|
811
|
+
--color-state-exporting-data: #f9c869;
|
|
776
812
|
}
|
|
777
813
|
.theme-dark {
|
|
778
814
|
--color-viz-default: #4da6ff;
|
|
@@ -872,6 +908,18 @@
|
|
|
872
908
|
--color-viz-diverging-red-blue-8: #8494ca;
|
|
873
909
|
--color-viz-diverging-red-blue-9: #5d6fb0;
|
|
874
910
|
--color-viz-diverging-red-blue-10: #374f88;
|
|
911
|
+
--color-state-charging-data: #8038bf;
|
|
912
|
+
--color-state-discharging-data: #b1740b;
|
|
913
|
+
--color-state-heat-data: #b73030;
|
|
914
|
+
--color-state-cool-data: #2c5ec0;
|
|
915
|
+
--color-state-eco-data: #0b835e;
|
|
916
|
+
--color-state-auto-data: #bb5f27;
|
|
917
|
+
--color-state-on-data: #138378;
|
|
918
|
+
--color-state-idle-data: #515968;
|
|
919
|
+
--color-state-off-data: #515968;
|
|
920
|
+
--color-state-unknown-data: #454d5b;
|
|
921
|
+
--color-state-importing-data: #3f6fc2;
|
|
922
|
+
--color-state-exporting-data: #b97a19;
|
|
875
923
|
}
|
|
876
924
|
@keyframes wave {
|
|
877
925
|
0% {
|
|
@@ -1607,6 +1655,9 @@
|
|
|
1607
1655
|
.mr-2 {
|
|
1608
1656
|
margin-right: var(--spacing-2);
|
|
1609
1657
|
}
|
|
1658
|
+
.mr-3 {
|
|
1659
|
+
margin-right: var(--spacing-3);
|
|
1660
|
+
}
|
|
1610
1661
|
.mb-0\.5 {
|
|
1611
1662
|
margin-bottom: calc(var(--spacing) * 0.5);
|
|
1612
1663
|
}
|
|
@@ -1640,6 +1691,9 @@
|
|
|
1640
1691
|
.ml-2 {
|
|
1641
1692
|
margin-left: var(--spacing-2);
|
|
1642
1693
|
}
|
|
1694
|
+
.ml-3 {
|
|
1695
|
+
margin-left: var(--spacing-3);
|
|
1696
|
+
}
|
|
1643
1697
|
.ml-4 {
|
|
1644
1698
|
margin-left: var(--spacing-4);
|
|
1645
1699
|
}
|
|
@@ -1874,6 +1928,9 @@
|
|
|
1874
1928
|
.min-h-\[400px\] {
|
|
1875
1929
|
min-height: 400px;
|
|
1876
1930
|
}
|
|
1931
|
+
.min-h-\[500px\] {
|
|
1932
|
+
min-height: 500px;
|
|
1933
|
+
}
|
|
1877
1934
|
.min-h-screen {
|
|
1878
1935
|
min-height: 100vh;
|
|
1879
1936
|
}
|
|
@@ -2043,27 +2100,18 @@
|
|
|
2043
2100
|
.max-w-\[200px\] {
|
|
2044
2101
|
max-width: 200px;
|
|
2045
2102
|
}
|
|
2046
|
-
.max-w-\[220px\] {
|
|
2047
|
-
max-width: 220px;
|
|
2048
|
-
}
|
|
2049
|
-
.max-w-\[240px\] {
|
|
2050
|
-
max-width: 240px;
|
|
2051
|
-
}
|
|
2052
2103
|
.max-w-\[250px\] {
|
|
2053
2104
|
max-width: 250px;
|
|
2054
2105
|
}
|
|
2055
|
-
.max-w-\[260px\] {
|
|
2056
|
-
max-width: 260px;
|
|
2057
|
-
}
|
|
2058
|
-
.max-w-\[280px\] {
|
|
2059
|
-
max-width: 280px;
|
|
2060
|
-
}
|
|
2061
2106
|
.max-w-\[300px\] {
|
|
2062
2107
|
max-width: 300px;
|
|
2063
2108
|
}
|
|
2064
2109
|
.max-w-\[350px\] {
|
|
2065
2110
|
max-width: 350px;
|
|
2066
2111
|
}
|
|
2112
|
+
.max-w-\[360px\] {
|
|
2113
|
+
max-width: 360px;
|
|
2114
|
+
}
|
|
2067
2115
|
.max-w-\[400px\] {
|
|
2068
2116
|
max-width: 400px;
|
|
2069
2117
|
}
|
|
@@ -2143,6 +2191,9 @@
|
|
|
2143
2191
|
.min-w-\[208px\] {
|
|
2144
2192
|
min-width: 208px;
|
|
2145
2193
|
}
|
|
2194
|
+
.min-w-\[260px\] {
|
|
2195
|
+
min-width: 260px;
|
|
2196
|
+
}
|
|
2146
2197
|
.min-w-\[400px\] {
|
|
2147
2198
|
min-width: 400px;
|
|
2148
2199
|
}
|
|
@@ -2467,6 +2518,9 @@
|
|
|
2467
2518
|
.gap-16 {
|
|
2468
2519
|
gap: var(--spacing-16);
|
|
2469
2520
|
}
|
|
2521
|
+
.gap-24 {
|
|
2522
|
+
gap: var(--spacing-24);
|
|
2523
|
+
}
|
|
2470
2524
|
.gap-\[var\(--control-gap-lg\)\] {
|
|
2471
2525
|
gap: var(--control-gap-lg);
|
|
2472
2526
|
}
|
|
@@ -3070,12 +3124,6 @@
|
|
|
3070
3124
|
background-color: color-mix(in oklab, var(--color-background-muted) 30%, transparent);
|
|
3071
3125
|
}
|
|
3072
3126
|
}
|
|
3073
|
-
.bg-background-muted\/60 {
|
|
3074
|
-
background-color: color-mix(in srgb, #f3f4f6 60%, transparent);
|
|
3075
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3076
|
-
background-color: color-mix(in oklab, var(--color-background-muted) 60%, transparent);
|
|
3077
|
-
}
|
|
3078
|
-
}
|
|
3079
3127
|
.bg-background-selected {
|
|
3080
3128
|
background-color: var(--color-background-selected);
|
|
3081
3129
|
}
|
|
@@ -5234,22 +5282,6 @@
|
|
|
5234
5282
|
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
5235
5283
|
}
|
|
5236
5284
|
}
|
|
5237
|
-
.focus\:outline-2 {
|
|
5238
|
-
&:focus {
|
|
5239
|
-
outline-style: var(--tw-outline-style);
|
|
5240
|
-
outline-width: 2px;
|
|
5241
|
-
}
|
|
5242
|
-
}
|
|
5243
|
-
.focus\:outline-offset-0 {
|
|
5244
|
-
&:focus {
|
|
5245
|
-
outline-offset: 0px;
|
|
5246
|
-
}
|
|
5247
|
-
}
|
|
5248
|
-
.focus\:outline-action-default {
|
|
5249
|
-
&:focus {
|
|
5250
|
-
outline-color: var(--color-action-default);
|
|
5251
|
-
}
|
|
5252
|
-
}
|
|
5253
5285
|
.focus\:outline-none {
|
|
5254
5286
|
&:focus {
|
|
5255
5287
|
--tw-outline-style: none;
|
|
@@ -5364,6 +5396,28 @@
|
|
|
5364
5396
|
--tw-ring-color: var(--color-feedback-error-border);
|
|
5365
5397
|
}
|
|
5366
5398
|
}
|
|
5399
|
+
.data-\[focus-visible\]\:outline {
|
|
5400
|
+
&[data-focus-visible] {
|
|
5401
|
+
outline-style: var(--tw-outline-style);
|
|
5402
|
+
outline-width: 1px;
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
.data-\[focus-visible\]\:outline-2 {
|
|
5406
|
+
&[data-focus-visible] {
|
|
5407
|
+
outline-style: var(--tw-outline-style);
|
|
5408
|
+
outline-width: 2px;
|
|
5409
|
+
}
|
|
5410
|
+
}
|
|
5411
|
+
.data-\[focus-visible\]\:outline-offset-0 {
|
|
5412
|
+
&[data-focus-visible] {
|
|
5413
|
+
outline-offset: 0px;
|
|
5414
|
+
}
|
|
5415
|
+
}
|
|
5416
|
+
.data-\[focus-visible\]\:outline-action-default {
|
|
5417
|
+
&[data-focus-visible] {
|
|
5418
|
+
outline-color: var(--color-action-default);
|
|
5419
|
+
}
|
|
5420
|
+
}
|
|
5367
5421
|
.data-\[focus-visible\]\:ring-inset {
|
|
5368
5422
|
&[data-focus-visible] {
|
|
5369
5423
|
--tw-ring-inset: inset;
|
|
@@ -5917,9 +5971,9 @@
|
|
|
5917
5971
|
flex-direction: row;
|
|
5918
5972
|
}
|
|
5919
5973
|
}
|
|
5920
|
-
.md\:items-
|
|
5974
|
+
.md\:items-start {
|
|
5921
5975
|
@media (width >= 48rem) {
|
|
5922
|
-
align-items:
|
|
5976
|
+
align-items: flex-start;
|
|
5923
5977
|
}
|
|
5924
5978
|
}
|
|
5925
5979
|
.md\:justify-between {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"generatedAt": "2025-11-
|
|
2
|
+
"version": "1.23.0",
|
|
3
|
+
"generatedAt": "2025-11-24T01:13:46.627Z",
|
|
4
4
|
"categories": {
|
|
5
5
|
"hooks": {
|
|
6
6
|
"description": "React hooks for common functionality like breakpoints, debouncing, local storage, and media queries",
|
|
@@ -1016,13 +1016,6 @@
|
|
|
1016
1016
|
"category": "charts",
|
|
1017
1017
|
"file": "utils/chartExport.ts"
|
|
1018
1018
|
},
|
|
1019
|
-
{
|
|
1020
|
-
"name": "getResolvedColor",
|
|
1021
|
-
"type": "function",
|
|
1022
|
-
"description": "",
|
|
1023
|
-
"category": "charts",
|
|
1024
|
-
"file": "utils/charts.ts"
|
|
1025
|
-
},
|
|
1026
1019
|
{
|
|
1027
1020
|
"name": "getYFormatSettings",
|
|
1028
1021
|
"type": "function",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texturehq/edges",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"author": "Nicholas Brown <nick@texturehq.com>",
|
|
5
5
|
"description": "A shared component library for Texture",
|
|
6
6
|
"type": "module",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"lint": "biome check src/",
|
|
58
58
|
"lint:quiet": "biome check --reporter=github src/",
|
|
59
59
|
"lint:fix": "biome check --write src/",
|
|
60
|
+
"typecheck": "tsc --noEmit -p tsconfig.prod.json",
|
|
60
61
|
"format": "biome format --write src/",
|
|
61
62
|
"format:check": "biome format src/",
|
|
62
63
|
"test": "vitest run",
|
|
@@ -18,9 +18,11 @@ const OUTPUT_FILE = path.join(GENERATED_DIR, "viz-runtime.css");
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Extract viz color variables from a CSS file
|
|
21
|
+
* Includes both --color-viz-* and --color-state-*-data variables
|
|
21
22
|
*/
|
|
22
23
|
function extractVizColors(cssContent) {
|
|
23
24
|
const vizColorRegex = /^\s*(--color-viz-[^:]+:\s*[^;]+;)\s*$/gm;
|
|
25
|
+
const stateDataColorRegex = /^\s*(--color-state-[^:]*-data:\s*[^;]+;)\s*$/gm;
|
|
24
26
|
const matches = [];
|
|
25
27
|
let match;
|
|
26
28
|
|
|
@@ -28,6 +30,13 @@ function extractVizColors(cssContent) {
|
|
|
28
30
|
matches.push(match[1]);
|
|
29
31
|
}
|
|
30
32
|
|
|
33
|
+
// Reset regex state
|
|
34
|
+
stateDataColorRegex.lastIndex = 0;
|
|
35
|
+
|
|
36
|
+
while ((match = stateDataColorRegex.exec(cssContent)) !== null) {
|
|
37
|
+
matches.push(match[1]);
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
return matches;
|
|
32
41
|
}
|
|
33
42
|
|
|
@@ -60,6 +69,10 @@ function generateVizRuntime() {
|
|
|
60
69
|
* WORKAROUND: These variables are defined here instead of in tailwind-tokens-*.css
|
|
61
70
|
* because Tailwind 4's @theme directive filters them out (similar issue as data-* prefix).
|
|
62
71
|
*
|
|
72
|
+
* Includes:
|
|
73
|
+
* - Generic viz colors (--color-viz-*)
|
|
74
|
+
* - Device state data viz colors (--color-state-*-data)
|
|
75
|
+
*
|
|
63
76
|
* AUTO-GENERATED by scripts/generate-viz-runtime.js
|
|
64
77
|
* DO NOT EDIT MANUALLY - Edit theme-specific viz colors in:
|
|
65
78
|
* - tokens/themes/light.json (light mode viz colors)
|