@willa-ui/shared 0.0.1-alpha.8d8fe96 → 0.0.3-alpha.2739b3e
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/README.md +23 -0
- package/dist/index.cjs +705 -1
- package/dist/index.d.cts +218 -3
- package/dist/index.global.js +50100 -1
- package/dist/index.js +833 -2
- package/dist/index.mjs +651 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
1
|
# @willa-ui/shared
|
|
2
|
+
|
|
3
|
+
Shared utilities and types for Willa UI packages.
|
|
4
|
+
|
|
5
|
+
Use this package for cross-package helpers such as controlled state, clipboard
|
|
6
|
+
access, copy feedback state, CSS size formatting, code highlighting, DOM focus
|
|
7
|
+
utilities, ref composition, number ranges, media helpers, request helpers,
|
|
8
|
+
heading extraction, and virtual scroll state.
|
|
9
|
+
|
|
10
|
+
## Import
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import {
|
|
14
|
+
copyToClipboard,
|
|
15
|
+
formatCssSize,
|
|
16
|
+
useControllableState,
|
|
17
|
+
useCopyToClipboard,
|
|
18
|
+
} from "@willa-ui/shared";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Boundaries
|
|
22
|
+
|
|
23
|
+
Shared does not contain React components or component CSS. It should not depend
|
|
24
|
+
on layout, content, form, AI, or widgets packages.
|