@vellira-ui/core 2.51.0 → 2.53.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/README.md +30 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,49 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
## @vellira-ui/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Platform-neutral behavior contracts and utilities for Vellira.
|
|
4
4
|
|
|
5
|
-
This package contains
|
|
5
|
+
This internal package contains shared types and helper functions used by
|
|
6
|
+
`@vellira-ui/react` and `@vellira-ui/react-native`. Platform-specific hooks,
|
|
7
|
+
DOM behavior, CSS, accessibility handling, and native interactions remain in
|
|
8
|
+
the corresponding renderer packages.
|
|
6
9
|
|
|
7
|
-
##
|
|
10
|
+
## Responsibilities
|
|
8
11
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
- `useAriaIsolation`
|
|
15
|
-
- `useFocusScope`
|
|
16
|
-
- `usePortal`
|
|
12
|
+
- Focus behavior contracts and utilities
|
|
13
|
+
- Overlay behavior contracts
|
|
14
|
+
- Portal behavior contracts
|
|
15
|
+
- Shared event utilities
|
|
16
|
+
- Platform-neutral behavior types
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
## Package structure
|
|
19
19
|
|
|
20
20
|
```text
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
focusUtils
|
|
21
|
+
src/
|
|
22
|
+
└── behavior/
|
|
23
|
+
├── focus/
|
|
24
|
+
│ ├── focusUtils.ts
|
|
25
|
+
│ └── types.ts
|
|
26
|
+
├── overlay/
|
|
27
|
+
│ └── types.ts
|
|
28
|
+
├── portal/
|
|
29
|
+
│ └── types.ts
|
|
30
|
+
└── utils/
|
|
31
|
+
├── events.ts
|
|
32
|
+
└── types.ts
|
|
34
33
|
```
|
|
35
34
|
|
|
36
35
|
## Usage
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
import { useControllableState } from '@vellira-ui/core';
|
|
37
|
+
This package is primarily consumed internally by the Vellira renderer packages.
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
46
|
-
```
|
|
39
|
+
Application code should normally import components and public APIs from:
|
|
40
|
+
|
|
41
|
+
- @vellira-ui/react
|
|
42
|
+
- @vellira-ui/react-native
|
|
47
43
|
|
|
48
44
|
## Development
|
|
49
45
|
|