@texturehq/edges 1.18.0 → 1.19.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 +348 -0
- package/dist/FileUpload-DXTcfLIh.d.ts +348 -0
- package/dist/TimeField-B4J8gA8E.d.ts +393 -0
- package/dist/TimeField-D2AOjQ1K.d.cts +393 -0
- package/dist/{colors-Kck1-4Zq.d.cts → colors-BUEmaPXY.d.ts} +4 -122
- package/dist/{colors-Kck1-4Zq.d.ts → colors-BniWNyzj.d.cts} +4 -122
- package/dist/components.manifest.json +13 -9
- package/dist/form/index.cjs +2 -0
- package/dist/form/index.cjs.map +1 -0
- package/dist/form/index.d.cts +3 -0
- package/dist/form/index.d.ts +3 -0
- package/dist/form/index.js +2 -0
- package/dist/form/index.js.map +1 -0
- package/dist/generated/tailwind-tokens-dark.css +1 -0
- package/dist/generated/tailwind-tokens-light.css +1 -0
- package/dist/index-DKA9NMRw.d.cts +311 -0
- package/dist/index-DKA9NMRw.d.ts +311 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -794
- package/dist/index.d.ts +25 -794
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/rhf/index.cjs +2 -0
- package/dist/rhf/index.cjs.map +1 -0
- package/dist/rhf/index.d.cts +147 -0
- package/dist/rhf/index.d.ts +147 -0
- package/dist/rhf/index.js +2 -0
- package/dist/rhf/index.js.map +1 -0
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +2 -1
- package/dist/server.d.ts +2 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/styles.css +92 -27
- package/dist/utilities.manifest.json +2 -2
- package/package.json +30 -3
- package/scripts/generate-edges-docs.js +43 -0
package/dist/styles.css
CHANGED
|
@@ -240,6 +240,7 @@
|
|
|
240
240
|
--color-zinc-700: oklch(37% 0.013 285.805);
|
|
241
241
|
--color-zinc-900: oklch(21% 0.006 285.885);
|
|
242
242
|
--spacing: 0.25rem;
|
|
243
|
+
--breakpoint-lg: 64rem;
|
|
243
244
|
--container-xs: 20rem;
|
|
244
245
|
--container-sm: 24rem;
|
|
245
246
|
--container-md: 28rem;
|
|
@@ -471,6 +472,7 @@
|
|
|
471
472
|
--theme-background-canvas: linear-gradient(to bottom right, rgb(24 28 48), rgb(30 26 45), rgb(35 26 38));
|
|
472
473
|
--color-text-body: #ededef;
|
|
473
474
|
--color-text-heading: #ffffff;
|
|
475
|
+
--theme-text-label: #ffffff;
|
|
474
476
|
--color-text-muted: #9ca3af;
|
|
475
477
|
--color-text-caption: #d1d5db;
|
|
476
478
|
--color-text-subtle: #8e8e93;
|
|
@@ -1297,6 +1299,9 @@
|
|
|
1297
1299
|
.inset-0 {
|
|
1298
1300
|
inset: var(--spacing-0);
|
|
1299
1301
|
}
|
|
1302
|
+
.inset-x-0 {
|
|
1303
|
+
inset-inline: var(--spacing-0);
|
|
1304
|
+
}
|
|
1300
1305
|
.inset-y-\[2px\] {
|
|
1301
1306
|
inset-block: 2px;
|
|
1302
1307
|
}
|
|
@@ -1321,6 +1326,9 @@
|
|
|
1321
1326
|
.top-4 {
|
|
1322
1327
|
top: var(--spacing-4);
|
|
1323
1328
|
}
|
|
1329
|
+
.top-5 {
|
|
1330
|
+
top: var(--spacing-5);
|
|
1331
|
+
}
|
|
1324
1332
|
.top-12 {
|
|
1325
1333
|
top: var(--spacing-12);
|
|
1326
1334
|
}
|
|
@@ -1393,6 +1401,9 @@
|
|
|
1393
1401
|
.left-4 {
|
|
1394
1402
|
left: var(--spacing-4);
|
|
1395
1403
|
}
|
|
1404
|
+
.left-6 {
|
|
1405
|
+
left: var(--spacing-6);
|
|
1406
|
+
}
|
|
1396
1407
|
.left-full {
|
|
1397
1408
|
left: 100%;
|
|
1398
1409
|
}
|
|
@@ -1498,9 +1509,6 @@
|
|
|
1498
1509
|
.mx-auto {
|
|
1499
1510
|
margin-inline: auto;
|
|
1500
1511
|
}
|
|
1501
|
-
.-my-0\.5 {
|
|
1502
|
-
margin-block: calc(var(--spacing) * -0.5);
|
|
1503
|
-
}
|
|
1504
1512
|
.-my-1 {
|
|
1505
1513
|
margin-block: calc(var(--spacing-1) * -1);
|
|
1506
1514
|
}
|
|
@@ -1588,6 +1596,9 @@
|
|
|
1588
1596
|
.mb-8 {
|
|
1589
1597
|
margin-bottom: var(--spacing-8);
|
|
1590
1598
|
}
|
|
1599
|
+
.mb-20 {
|
|
1600
|
+
margin-bottom: var(--spacing-20);
|
|
1601
|
+
}
|
|
1591
1602
|
.-ml-px {
|
|
1592
1603
|
margin-left: -1px;
|
|
1593
1604
|
}
|
|
@@ -1798,6 +1809,9 @@
|
|
|
1798
1809
|
.min-h-0 {
|
|
1799
1810
|
min-height: var(--spacing-0);
|
|
1800
1811
|
}
|
|
1812
|
+
.min-h-\[20px\] {
|
|
1813
|
+
min-height: 20px;
|
|
1814
|
+
}
|
|
1801
1815
|
.min-h-\[44px\] {
|
|
1802
1816
|
min-height: 44px;
|
|
1803
1817
|
}
|
|
@@ -1816,6 +1830,9 @@
|
|
|
1816
1830
|
.min-h-\[320px\] {
|
|
1817
1831
|
min-height: 320px;
|
|
1818
1832
|
}
|
|
1833
|
+
.min-h-\[400px\] {
|
|
1834
|
+
min-height: 400px;
|
|
1835
|
+
}
|
|
1819
1836
|
.min-h-screen {
|
|
1820
1837
|
min-height: 100vh;
|
|
1821
1838
|
}
|
|
@@ -2013,6 +2030,9 @@
|
|
|
2013
2030
|
.max-w-none {
|
|
2014
2031
|
max-width: none;
|
|
2015
2032
|
}
|
|
2033
|
+
.max-w-screen-lg {
|
|
2034
|
+
max-width: var(--breakpoint-lg);
|
|
2035
|
+
}
|
|
2016
2036
|
.max-w-sm {
|
|
2017
2037
|
max-width: var(--container-sm);
|
|
2018
2038
|
}
|
|
@@ -2981,6 +3001,12 @@
|
|
|
2981
3001
|
background-color: color-mix(in oklab, var(--color-background-surface) 90%, transparent);
|
|
2982
3002
|
}
|
|
2983
3003
|
}
|
|
3004
|
+
.bg-background-surface\/95 {
|
|
3005
|
+
background-color: color-mix(in srgb, #ffffff 95%, transparent);
|
|
3006
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3007
|
+
background-color: color-mix(in oklab, var(--color-background-surface) 95%, transparent);
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
2984
3010
|
.bg-black\/50 {
|
|
2985
3011
|
background-color: color-mix(in srgb, #000000 50%, transparent);
|
|
2986
3012
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -3514,6 +3540,9 @@
|
|
|
3514
3540
|
.pr-9 {
|
|
3515
3541
|
padding-right: var(--spacing-9);
|
|
3516
3542
|
}
|
|
3543
|
+
.pr-10 {
|
|
3544
|
+
padding-right: var(--spacing-10);
|
|
3545
|
+
}
|
|
3517
3546
|
.pr-12 {
|
|
3518
3547
|
padding-right: var(--spacing-12);
|
|
3519
3548
|
}
|
|
@@ -3547,6 +3576,9 @@
|
|
|
3547
3576
|
.pl-4 {
|
|
3548
3577
|
padding-left: var(--spacing-4);
|
|
3549
3578
|
}
|
|
3579
|
+
.pl-5 {
|
|
3580
|
+
padding-left: var(--spacing-5);
|
|
3581
|
+
}
|
|
3550
3582
|
.pl-7 {
|
|
3551
3583
|
padding-left: var(--spacing-7);
|
|
3552
3584
|
}
|
|
@@ -3731,9 +3763,6 @@
|
|
|
3731
3763
|
.\!text-action-brand {
|
|
3732
3764
|
color: var(--color-action-brand) !important;
|
|
3733
3765
|
}
|
|
3734
|
-
.\!text-text-caption {
|
|
3735
|
-
color: var(--color-text-caption) !important;
|
|
3736
|
-
}
|
|
3737
3766
|
.text-\[\#111827\] {
|
|
3738
3767
|
color: #111827;
|
|
3739
3768
|
}
|
|
@@ -3970,6 +3999,9 @@
|
|
|
3970
3999
|
.decoration-1 {
|
|
3971
4000
|
text-decoration-thickness: 1px;
|
|
3972
4001
|
}
|
|
4002
|
+
.underline-offset-2 {
|
|
4003
|
+
text-underline-offset: 2px;
|
|
4004
|
+
}
|
|
3973
4005
|
.underline-offset-4 {
|
|
3974
4006
|
text-underline-offset: 4px;
|
|
3975
4007
|
}
|
|
@@ -4062,6 +4094,10 @@
|
|
|
4062
4094
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
4063
4095
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4064
4096
|
}
|
|
4097
|
+
.ring-0 {
|
|
4098
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
4099
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4100
|
+
}
|
|
4065
4101
|
.ring-1 {
|
|
4066
4102
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
4067
4103
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -4157,6 +4193,10 @@
|
|
|
4157
4193
|
.filter {
|
|
4158
4194
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
4159
4195
|
}
|
|
4196
|
+
.backdrop-blur {
|
|
4197
|
+
--tw-backdrop-blur: blur(8px);
|
|
4198
|
+
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
4199
|
+
}
|
|
4160
4200
|
.backdrop-blur-\[2px\] {
|
|
4161
4201
|
--tw-backdrop-blur: blur(2px);
|
|
4162
4202
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
@@ -4531,9 +4571,9 @@
|
|
|
4531
4571
|
color: var(--color-text-muted);
|
|
4532
4572
|
}
|
|
4533
4573
|
}
|
|
4534
|
-
.invalid\:bg-
|
|
4574
|
+
.invalid\:bg-feedback-error-border {
|
|
4535
4575
|
&:invalid {
|
|
4536
|
-
background-color: var(--color-
|
|
4576
|
+
background-color: var(--color-feedback-error-border);
|
|
4537
4577
|
}
|
|
4538
4578
|
}
|
|
4539
4579
|
.invalid\:outline-2 {
|
|
@@ -4639,6 +4679,16 @@
|
|
|
4639
4679
|
}
|
|
4640
4680
|
}
|
|
4641
4681
|
}
|
|
4682
|
+
.hover\:bg-action-default\/90 {
|
|
4683
|
+
&:hover {
|
|
4684
|
+
@media (hover: hover) {
|
|
4685
|
+
background-color: color-mix(in srgb, #333333 90%, transparent);
|
|
4686
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4687
|
+
background-color: color-mix(in oklab, var(--color-action-default) 90%, transparent);
|
|
4688
|
+
}
|
|
4689
|
+
}
|
|
4690
|
+
}
|
|
4691
|
+
}
|
|
4642
4692
|
.hover\:bg-background-hover {
|
|
4643
4693
|
&:hover {
|
|
4644
4694
|
@media (hover: hover) {
|
|
@@ -4899,6 +4949,12 @@
|
|
|
4899
4949
|
left: var(--spacing-4);
|
|
4900
4950
|
}
|
|
4901
4951
|
}
|
|
4952
|
+
.focus\:shadow-none {
|
|
4953
|
+
&:focus {
|
|
4954
|
+
--tw-shadow: 0 0 #0000;
|
|
4955
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4956
|
+
}
|
|
4957
|
+
}
|
|
4902
4958
|
.focus\:ring-0 {
|
|
4903
4959
|
&:focus {
|
|
4904
4960
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
@@ -4954,6 +5010,12 @@
|
|
|
4954
5010
|
outline-style: none;
|
|
4955
5011
|
}
|
|
4956
5012
|
}
|
|
5013
|
+
.focus-visible\:ring-0 {
|
|
5014
|
+
&:focus-visible {
|
|
5015
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
5016
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
4957
5019
|
.focus-visible\:outline {
|
|
4958
5020
|
&:focus-visible {
|
|
4959
5021
|
outline-style: var(--tw-outline-style);
|
|
@@ -4981,6 +5043,12 @@
|
|
|
4981
5043
|
outline-color: var(--color-action-default);
|
|
4982
5044
|
}
|
|
4983
5045
|
}
|
|
5046
|
+
.focus-visible\:outline-none {
|
|
5047
|
+
&:focus-visible {
|
|
5048
|
+
--tw-outline-style: none;
|
|
5049
|
+
outline-style: none;
|
|
5050
|
+
}
|
|
5051
|
+
}
|
|
4984
5052
|
.disabled\:cursor-not-allowed {
|
|
4985
5053
|
&:disabled {
|
|
4986
5054
|
cursor: not-allowed;
|
|
@@ -5055,30 +5123,24 @@
|
|
|
5055
5123
|
background-color: var(--color-background-hover);
|
|
5056
5124
|
}
|
|
5057
5125
|
}
|
|
5058
|
-
.data-\[focused\]\:bg-
|
|
5059
|
-
&[data-focused] {
|
|
5060
|
-
background-color: var(--color-feedback-error-background);
|
|
5061
|
-
}
|
|
5062
|
-
}
|
|
5063
|
-
.data-\[focused\]\:opacity-100 {
|
|
5126
|
+
.data-\[focused\]\:bg-background-selected {
|
|
5064
5127
|
&[data-focused] {
|
|
5065
|
-
|
|
5128
|
+
background-color: var(--color-background-selected);
|
|
5066
5129
|
}
|
|
5067
5130
|
}
|
|
5068
|
-
.data-\[focused\]
|
|
5131
|
+
.data-\[focused\]\:bg-feedback-error-background {
|
|
5069
5132
|
&[data-focused] {
|
|
5070
|
-
|
|
5071
|
-
outline-width: 1.5px !important;
|
|
5133
|
+
background-color: var(--color-feedback-error-background);
|
|
5072
5134
|
}
|
|
5073
5135
|
}
|
|
5074
|
-
.data-\[focused\]
|
|
5136
|
+
.data-\[focused\]\:text-text-body {
|
|
5075
5137
|
&[data-focused] {
|
|
5076
|
-
|
|
5138
|
+
color: var(--color-text-body);
|
|
5077
5139
|
}
|
|
5078
5140
|
}
|
|
5079
|
-
.data-\[focused\]
|
|
5141
|
+
.data-\[focused\]\:opacity-100 {
|
|
5080
5142
|
&[data-focused] {
|
|
5081
|
-
|
|
5143
|
+
opacity: 100%;
|
|
5082
5144
|
}
|
|
5083
5145
|
}
|
|
5084
5146
|
.data-\[placeholder\]\:text-text-placeholder {
|
|
@@ -5107,6 +5169,14 @@
|
|
|
5107
5169
|
background-color: var(--color-gray-100);
|
|
5108
5170
|
}
|
|
5109
5171
|
}
|
|
5172
|
+
.supports-\[backdrop-filter\]\:bg-background-surface\/70 {
|
|
5173
|
+
@supports (backdrop-filter: var(--tw)) {
|
|
5174
|
+
background-color: color-mix(in srgb, #ffffff 70%, transparent);
|
|
5175
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5176
|
+
background-color: color-mix(in oklab, var(--color-background-surface) 70%, transparent);
|
|
5177
|
+
}
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5110
5180
|
.supports-\[backdrop-filter\]\:bg-black\/15 {
|
|
5111
5181
|
@supports (backdrop-filter: var(--tw)) {
|
|
5112
5182
|
background-color: color-mix(in srgb, #000000 15%, transparent);
|
|
@@ -5551,11 +5621,6 @@
|
|
|
5551
5621
|
align-items: center;
|
|
5552
5622
|
}
|
|
5553
5623
|
}
|
|
5554
|
-
.md\:items-start {
|
|
5555
|
-
@media (width >= 48rem) {
|
|
5556
|
-
align-items: flex-start;
|
|
5557
|
-
}
|
|
5558
|
-
}
|
|
5559
5624
|
.md\:justify-between {
|
|
5560
5625
|
@media (width >= 48rem) {
|
|
5561
5626
|
justify-content: space-between;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"generatedAt": "2025-11-
|
|
2
|
+
"version": "1.19.0",
|
|
3
|
+
"generatedAt": "2025-11-13T03:24:57.454Z",
|
|
4
4
|
"categories": {
|
|
5
5
|
"hooks": {
|
|
6
6
|
"description": "React hooks for common functionality like breakpoints, debouncing, local storage, and media queries",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texturehq/edges",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"author": "Nicholas Brown <nick@texturehq.com>",
|
|
5
5
|
"description": "A shared component library for Texture",
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,16 @@
|
|
|
25
25
|
"import": "./dist/server.js",
|
|
26
26
|
"default": "./dist/server.js"
|
|
27
27
|
},
|
|
28
|
+
"./rhf": {
|
|
29
|
+
"types": "./dist/rhf/index.d.ts",
|
|
30
|
+
"import": "./dist/rhf/index.js",
|
|
31
|
+
"default": "./dist/rhf/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./form": {
|
|
34
|
+
"types": "./dist/form/index.d.ts",
|
|
35
|
+
"import": "./dist/form/index.js",
|
|
36
|
+
"default": "./dist/form/index.js"
|
|
37
|
+
},
|
|
28
38
|
"./styles.css": "./dist/styles.css",
|
|
29
39
|
"./dist/styles.css": "./dist/styles.css",
|
|
30
40
|
"./theme.css": "./dist/theme.css",
|
|
@@ -58,9 +68,23 @@
|
|
|
58
68
|
"postinstall": "node scripts/setup-cursor-rules.js || echo \"! setup-cursor-rules: non-fatal error\""
|
|
59
69
|
},
|
|
60
70
|
"peerDependencies": {
|
|
71
|
+
"@hookform/resolvers": "^3.x",
|
|
61
72
|
"next": "*",
|
|
62
73
|
"react": "^19.0.0",
|
|
63
|
-
"react-dom": "^19.0.0"
|
|
74
|
+
"react-dom": "^19.0.0",
|
|
75
|
+
"react-hook-form": "^7.x",
|
|
76
|
+
"zod": "^3.x"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"@hookform/resolvers": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"react-hook-form": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"zod": {
|
|
86
|
+
"optional": true
|
|
87
|
+
}
|
|
64
88
|
},
|
|
65
89
|
"dependencies": {
|
|
66
90
|
"@phosphor-icons/react": "^2.1.7",
|
|
@@ -104,6 +128,7 @@
|
|
|
104
128
|
},
|
|
105
129
|
"devDependencies": {
|
|
106
130
|
"@biomejs/biome": "^2.2.4",
|
|
131
|
+
"@hookform/resolvers": "^3.9.0",
|
|
107
132
|
"@storybook/addon-essentials": "^8.6.14",
|
|
108
133
|
"@storybook/addon-interactions": "^8.6.14",
|
|
109
134
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
@@ -134,6 +159,7 @@
|
|
|
134
159
|
"postcss-cli": "^11.0.0",
|
|
135
160
|
"react": "19.2.0",
|
|
136
161
|
"react-dom": "19.2.0",
|
|
162
|
+
"react-hook-form": "^7.53.0",
|
|
137
163
|
"storybook": "^8.6.14",
|
|
138
164
|
"style-dictionary": "^5.0.4",
|
|
139
165
|
"tailwindcss": "^4.1.14",
|
|
@@ -142,6 +168,7 @@
|
|
|
142
168
|
"vite": "^5.1.6",
|
|
143
169
|
"vite-plugin-svgr": "^4.3.0",
|
|
144
170
|
"vitest": "^3.1.1",
|
|
145
|
-
"yalc": "^1.0.0-pre.53"
|
|
171
|
+
"yalc": "^1.0.0-pre.53",
|
|
172
|
+
"zod": "^3.23.8"
|
|
146
173
|
}
|
|
147
174
|
}
|
|
@@ -850,6 +850,7 @@ Complete documentation for the @texturehq/edges design system.
|
|
|
850
850
|
- **${hookCount} React Hooks** for common functionality
|
|
851
851
|
- **${utilityCount} Utility Functions** for formatting, charts, colors, and more
|
|
852
852
|
- **Complete Theme System** with Tailwind 4 + CSS variables
|
|
853
|
+
- **Integrations** (Optional) like React Hook Form support
|
|
853
854
|
|
|
854
855
|
## Quick Links
|
|
855
856
|
|
|
@@ -865,6 +866,9 @@ Complete documentation for the @texturehq/edges design system.
|
|
|
865
866
|
- [Theme System](theme-system.md) - Colors, spacing, typography with Tailwind 4
|
|
866
867
|
- [Patterns](patterns.md) - Common UI patterns and best practices
|
|
867
868
|
|
|
869
|
+
### Integrations (Optional)
|
|
870
|
+
- [React Hook Form (RHF)](integrations-rhf.md) - Opt-in adapters and utilities for fast form building
|
|
871
|
+
|
|
868
872
|
## Component Categories
|
|
869
873
|
|
|
870
874
|
`;
|
|
@@ -892,6 +896,18 @@ yarn add @texturehq/edges
|
|
|
892
896
|
import { Button, TextField, DataTable } from "@texturehq/edges";
|
|
893
897
|
\`\`\`
|
|
894
898
|
|
|
899
|
+
## Integrations
|
|
900
|
+
|
|
901
|
+
React Hook Form integration is available as an optional subpath and tree-shakes when unused.
|
|
902
|
+
|
|
903
|
+
\`\`\`bash
|
|
904
|
+
yarn add react-hook-form @hookform/resolvers zod
|
|
905
|
+
\`\`\`
|
|
906
|
+
|
|
907
|
+
\`\`\`typescript
|
|
908
|
+
import { RHFForm, RHFTextField } from "@texturehq/edges/rhf";
|
|
909
|
+
\`\`\`
|
|
910
|
+
|
|
895
911
|
## For Dashboard Development
|
|
896
912
|
|
|
897
913
|
When building UI in \`apps/dashboard\`, reference:
|
|
@@ -900,6 +916,7 @@ When building UI in \`apps/dashboard\`, reference:
|
|
|
900
916
|
- **Utilities**: \`docs/ai/edges/utilities-reference.md\`
|
|
901
917
|
- **Theme**: \`docs/ai/edges/theme-system.md\`
|
|
902
918
|
- **Patterns**: \`docs/ai/edges/patterns.md\`
|
|
919
|
+
- **Integrations (Optional)**: \`docs/ai/edges/integrations-rhf.md\`
|
|
903
920
|
|
|
904
921
|
---
|
|
905
922
|
|
|
@@ -941,6 +958,15 @@ The @texturehq/edges design system provides ${componentCount} React components,
|
|
|
941
958
|
3. Review \`docs/ai/edges/patterns.md\` for common UI patterns and best practices
|
|
942
959
|
4. Check \`docs/ai/edges/theme-system.md\` for Tailwind 4 color tokens and styling
|
|
943
960
|
|
|
961
|
+
### Forms + RHF (Optional)
|
|
962
|
+
|
|
963
|
+
- Import adapters from \`@texturehq/edges/rhf\`; install optional peers: \`react-hook-form @hookform/resolvers zod\`
|
|
964
|
+
- Quickstart:
|
|
965
|
+
\`\`\`tsx
|
|
966
|
+
import { RHFForm, RHFTextField, SubmitButton, ErrorSummary } from "@texturehq/edges/rhf";
|
|
967
|
+
\`\`\`
|
|
968
|
+
- Full guide: \`docs/ai/edges/integrations-rhf.md\`
|
|
969
|
+
|
|
944
970
|
### Additional Resources
|
|
945
971
|
|
|
946
972
|
- Hooks: \`docs/ai/edges/hooks-reference.md\`
|
|
@@ -967,6 +993,22 @@ The @texturehq/edges design system provides ${componentCount} React components,
|
|
|
967
993
|
writeFile(path.join(fragmentsDir, "edges.md"), content);
|
|
968
994
|
}
|
|
969
995
|
|
|
996
|
+
// ============================================================================
|
|
997
|
+
// INTEGRATIONS DOCS
|
|
998
|
+
// ============================================================================
|
|
999
|
+
|
|
1000
|
+
function generateIntegrationsDocs() {
|
|
1001
|
+
console.log("\n🔗 Generating integrations docs...");
|
|
1002
|
+
const rhfReadmeSrc = path.join(SRC_DIR, "integrations", "rhf", "README.md");
|
|
1003
|
+
const rhfDocDest = path.join(DOCS_AI_EDGES, "integrations-rhf.md");
|
|
1004
|
+
const content = read(rhfReadmeSrc);
|
|
1005
|
+
if (content) {
|
|
1006
|
+
writeFile(rhfDocDest, content);
|
|
1007
|
+
} else {
|
|
1008
|
+
console.log(" ℹ️ RHF README not found, skipping integrations-rhf.md");
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
970
1012
|
// ============================================================================
|
|
971
1013
|
// MAIN
|
|
972
1014
|
// ============================================================================
|
|
@@ -991,6 +1033,7 @@ async function main() {
|
|
|
991
1033
|
generateUtilitiesReference(utilitiesManifest);
|
|
992
1034
|
generateThemeSystemDoc(colorVars);
|
|
993
1035
|
generateEdgesReadme(componentsManifest, utilitiesManifest);
|
|
1036
|
+
generateIntegrationsDocs();
|
|
994
1037
|
|
|
995
1038
|
// Generate agent instruction fragment
|
|
996
1039
|
generateEdgesFragment(componentsManifest, utilitiesManifest);
|