@structyl/hooks 1.0.0 → 1.0.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.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/package.json +12 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026
|
|
3
|
+
Copyright (c) 2026 Mohammed Irfanul Alam Tanveer
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|

|
|
7
7
|
|
|
8
|
-
`@structyl/hooks` is the shared hook layer of [structyl](https://structyl.
|
|
8
|
+
`@structyl/hooks` is the shared hook layer of [structyl](https://www.structyl.com), the React UI library with structure. It packages the small, single-responsibility hooks that the primitives and styled components rely on, such as `useControllableState` for controlled/uncontrolled state and `useComposedRefs` for merging refs. Every hook is SSR-safe (no unguarded `window`/`document` access) and tree-shakeable, so it is equally useful on its own in any React 18 or 19 application.
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -128,7 +128,7 @@ function SearchField({ value, defaultValue = '', onChange }: {
|
|
|
128
128
|
|
|
129
129
|
## Part of structyl
|
|
130
130
|
|
|
131
|
-
Part of [structyl](https://github.com/imirfanul/structyl) — see the full documentation at [structyl.
|
|
131
|
+
Part of [structyl](https://github.com/imirfanul/structyl) — see the full documentation at [www.structyl.com](https://www.structyl.com).
|
|
132
132
|
|
|
133
133
|
## License
|
|
134
134
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@structyl/hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/imirfanul/structyl.git",
|
|
7
|
+
"directory": "packages/hooks"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://www.structyl.com",
|
|
10
|
+
"bugs": "https://github.com/imirfanul/structyl/issues",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Mohammed Irfanul Alam Tanveer",
|
|
13
|
+
"url": "https://www.imirfanul.com"
|
|
14
|
+
},
|
|
4
15
|
"publishConfig": {
|
|
5
16
|
"access": "public"
|
|
6
17
|
},
|