@reopt-ai/opt-ui-primitives 1.4.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@reopt-ai/opt-ui-primitives` will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [1.3.0] - 2026-05-15
11
+
12
+ ### Changed
13
+
14
+ - **Command anatomy rewrite** — switched to a cmdk-style flow; floating-dialog wrapper removed. This is the underlying behavior consumed by `@reopt-ai/opt-ui`'s `Command` component.
15
+
16
+ ### Maintenance
17
+
18
+ - Sync with monorepo dep bumps: next 16.2.4, eslint 9.39.4, vitest 4.1.5, react 19.2.5.
19
+
20
+ ## [1.2.1] - earlier
21
+
22
+ See git tag `@reopt-ai/opt-ui-primitives@1.2.1` and earlier entries on the design system release notes page (`/docs/opt-ui/releases`).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) reopt Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @reopt-ai/opt-ui-primitives
2
+
3
+ Unstyled accessibility primitives used by `@reopt-ai/opt-ui`. The package owns
4
+ interaction behavior, WAI-ARIA state, roving focus, overlay focus policy, and
5
+ form-store primitives without shipping design-system styling.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ bun add @reopt-ai/opt-ui-primitives
11
+ ```
12
+
13
+ ## Scope
14
+
15
+ - Primitive behavior for Button, Dialog, Disclosure, Menu, Select, Tabs,
16
+ Toolbar, Combobox, Command, Popover, Tooltip, and RadioGroup
17
+ - Shared hooks for controllable state, focus visibility, floating positioning,
18
+ ids, roving tabindex, and enter/leave interactions
19
+ - Form context, field registration, validation state, and form-specific
20
+ primitives
21
+
22
+ ## Usage
23
+
24
+ Most product apps should consume these primitives through `@reopt-ai/opt-ui`.
25
+ Import this package directly when building a new opt-ui Core component or a
26
+ low-level package that must avoid opt-ui styling.
27
+
28
+ Tooltip triggers preserve the child element's original event handlers and ARIA
29
+ props while composing hover, focus, and floating-position behavior. Consumers
30
+ can therefore attach analytics or accessible names directly to the trigger
31
+ without those props being replaced by the primitive.
32
+
33
+ ## Development
34
+
35
+ ```sh
36
+ bun run --filter @reopt-ai/opt-ui-primitives lint
37
+ bun run --filter @reopt-ai/opt-ui-primitives typecheck
38
+ bun run --filter @reopt-ai/opt-ui-primitives test
39
+ bun run --filter @reopt-ai/opt-ui-primitives build
40
+ ```