@vellira-ui/core 2.51.0 → 2.52.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.
Files changed (2) hide show
  1. package/README.md +30 -34
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,49 +1,45 @@
1
- # @vellira-ui/core
1
+ ## @vellira-ui/core
2
2
 
3
- Shared interaction and state logic for Vellira.
3
+ Platform-neutral behavior contracts and utilities for Vellira.
4
4
 
5
- This package contains hooks that can be reused by web and native packages when the behavior is platform-neutral.
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
- ## Exports
10
+ ## Responsibilities
8
11
 
9
- - `useControllableState`
10
- - `useKeyboardNavigation`
11
- - `useOverlayStack`
12
- - `useOverlayDismiss`
13
- - `useScrollLock`
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
- Behavior hooks live under `src/behavior` internally and are exported from the package root when they are platform-neutral.
18
+ ## Package structure
19
19
 
20
20
  ```text
21
- behavior/
22
- overlay/
23
- useOverlayStack
24
- useOverlayDismiss
25
- useScrollLock
26
- focus/
27
- useFocusScope
28
- useAriaIsolation
29
- portal/
30
- usePortal
31
- utils/
32
- events
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
- ```ts
39
- import { useControllableState } from '@vellira-ui/core';
37
+ This package is primarily consumed internally by the Vellira renderer packages.
40
38
 
41
- const [value, setValue] = useControllableState({
42
- value,
43
- defaultValue: '',
44
- onChange,
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/core",
3
- "version": "2.51.0",
3
+ "version": "2.52.0",
4
4
  "description": "Shared logic and hooks for Vellira Design System",
5
5
  "author": "Roman Bakurov",
6
6
  "license": "MIT",