@xoroh/axis 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Xoroh Technologies
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 CHANGED
@@ -1,3 +1,135 @@
1
- # Temporary Holding Version
1
+ # `@xoroh/axis`
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Design-system-neutral, native-first behavior and interaction primitives
4
+ for React Native — the counterpart of Base UI for native. Composable
5
+ state models, hooks, and unstyled rendered components with no token
6
+ reads, no styling, and no web-only APIs.
7
+
8
+ Axis is independent and standalone: it never depends on Kern, Kern
9
+ tokens, or any design system, and it is usable without Kern.
10
+ Design-system variants (Material, Astryx, …) live in the consuming
11
+ system, never here.
12
+
13
+ ## Install
14
+
15
+ ```sh
16
+ bun add @xoroh/axis react react-native
17
+ ```
18
+
19
+ Nothing is published yet (version `0.0.0`; releases are owner-gated
20
+ — see [`docs/RELEASING.md`](https://github.com/xoroh/axis/blob/main/docs/RELEASING.md)).
21
+ Until the first release, install from source with the same
22
+ pack-vendor flow Kern uses to vendor Axis:
23
+
24
+ ```sh
25
+ git clone https://github.com/xoroh/axis.git && cd axis
26
+ bun install --frozen-lockfile
27
+ node scripts/pack-vendor.mjs --out /tmp/axis-vendor
28
+ # prints /tmp/axis-vendor/axis-<short-sha>.tgz + sha512 — add it
29
+ # in your app: bun add /tmp/axis-vendor/axis-<short-sha>.tgz
30
+ ```
31
+
32
+ Peers: `react >= 18`; rendered components additionally need
33
+ `react-native >=0.86 <0.89` (D-STACK support policy). The behavior
34
+ modules (`useControllableState`, `normalizeTimeValue`, …) are pure
35
+ React and run anywhere React runs.
36
+
37
+ ## Usage
38
+
39
+ ```tsx
40
+ import { useState } from "react";
41
+ import { Text } from "react-native";
42
+ import { DialogRoot, DialogTrigger, DialogPortal, DialogPopup } from "@xoroh/axis";
43
+
44
+ function Example() {
45
+ return (
46
+ <DialogRoot>
47
+ <DialogTrigger>
48
+ <Text>Open</Text>
49
+ </DialogTrigger>
50
+ <DialogPortal>
51
+ <DialogPopup aria-label="Example dialog">
52
+ <Text>Hello</Text>
53
+ </DialogPopup>
54
+ </DialogPortal>
55
+ </DialogRoot>
56
+ );
57
+ }
58
+ ```
59
+
60
+ Only the documented public entry (`.`) is supported. Deep imports are
61
+ not part of the contract.
62
+
63
+ ## Components
64
+
65
+ Per-component notes (props, examples, accessibility) live in
66
+ [`docs/components/`](https://github.com/xoroh/axis/tree/main/docs/components):
67
+
68
+ <!-- index:begin -->
69
+ | [Accordion](https://github.com/xoroh/axis/blob/main/docs/components/accordion.md) |
70
+ | [Alert Dialog](https://github.com/xoroh/axis/blob/main/docs/components/alert-dialog.md) |
71
+ | [Aspect Ratio](https://github.com/xoroh/axis/blob/main/docs/components/aspect-ratio.md) |
72
+ | [Autocomplete](https://github.com/xoroh/axis/blob/main/docs/components/autocomplete.md) |
73
+ | [Avatar](https://github.com/xoroh/axis/blob/main/docs/components/avatar.md) |
74
+ | [Button](https://github.com/xoroh/axis/blob/main/docs/components/button.md) |
75
+ | [Checkbox](https://github.com/xoroh/axis/blob/main/docs/components/checkbox.md) |
76
+ | [Checkbox Group](https://github.com/xoroh/axis/blob/main/docs/components/checkbox-group.md) |
77
+ | [Collapsible](https://github.com/xoroh/axis/blob/main/docs/components/collapsible.md) |
78
+ | [Combobox](https://github.com/xoroh/axis/blob/main/docs/components/combobox.md) |
79
+ | [Context Menu](https://github.com/xoroh/axis/blob/main/docs/components/context-menu.md) |
80
+ | [Dialog](https://github.com/xoroh/axis/blob/main/docs/components/dialog.md) |
81
+ | [Direction Provider](https://github.com/xoroh/axis/blob/main/docs/components/direction-provider.md) |
82
+ | [Drawer](https://github.com/xoroh/axis/blob/main/docs/components/drawer.md) |
83
+ | [Dropdown Menu](https://github.com/xoroh/axis/blob/main/docs/components/dropdown-menu.md) |
84
+ | [Field](https://github.com/xoroh/axis/blob/main/docs/components/field.md) |
85
+ | [Fieldset](https://github.com/xoroh/axis/blob/main/docs/components/fieldset.md) |
86
+ | [Form](https://github.com/xoroh/axis/blob/main/docs/components/form.md) |
87
+ | [Input](https://github.com/xoroh/axis/blob/main/docs/components/input.md) |
88
+ | [Label](https://github.com/xoroh/axis/blob/main/docs/components/label.md) |
89
+ | [Menu](https://github.com/xoroh/axis/blob/main/docs/components/menu.md) |
90
+ | [Menubar](https://github.com/xoroh/axis/blob/main/docs/components/menubar.md) |
91
+ | [Meter](https://github.com/xoroh/axis/blob/main/docs/components/meter.md) |
92
+ | [Navigation Menu](https://github.com/xoroh/axis/blob/main/docs/components/navigation-menu.md) |
93
+ | [Number Field](https://github.com/xoroh/axis/blob/main/docs/components/number-field.md) |
94
+ | [OTP Field](https://github.com/xoroh/axis/blob/main/docs/components/otp-field.md) |
95
+ | [Overlay](https://github.com/xoroh/axis/blob/main/docs/components/overlay.md) |
96
+ | [Popover](https://github.com/xoroh/axis/blob/main/docs/components/popover.md) |
97
+ | [Portal](https://github.com/xoroh/axis/blob/main/docs/components/portal.md) |
98
+ | [Preview Card](https://github.com/xoroh/axis/blob/main/docs/components/preview-card.md) |
99
+ | [Progress](https://github.com/xoroh/axis/blob/main/docs/components/progress.md) |
100
+ | [Radio Group](https://github.com/xoroh/axis/blob/main/docs/components/radio-group.md) |
101
+ | [Select](https://github.com/xoroh/axis/blob/main/docs/components/select.md) |
102
+ | [Separator](https://github.com/xoroh/axis/blob/main/docs/components/separator.md) |
103
+ | [Slider](https://github.com/xoroh/axis/blob/main/docs/components/slider.md) |
104
+ | [Switch](https://github.com/xoroh/axis/blob/main/docs/components/switch.md) |
105
+ | [Table](https://github.com/xoroh/axis/blob/main/docs/components/table.md) |
106
+ | [Tabs](https://github.com/xoroh/axis/blob/main/docs/components/tabs.md) |
107
+ | [Toast](https://github.com/xoroh/axis/blob/main/docs/components/toast.md) |
108
+ | [Toggle](https://github.com/xoroh/axis/blob/main/docs/components/toggle.md) |
109
+ | [Toggle Group](https://github.com/xoroh/axis/blob/main/docs/components/toggle-group.md) |
110
+ | [Toolbar](https://github.com/xoroh/axis/blob/main/docs/components/toolbar.md) |
111
+ | [Tooltip](https://github.com/xoroh/axis/blob/main/docs/components/tooltip.md) |
112
+ <!-- index:end -->
113
+
114
+ ## Docs
115
+
116
+ - [`docs/COMPONENT_CONTRACT.md`](https://github.com/xoroh/axis/blob/main/docs/COMPONENT_CONTRACT.md) —
117
+ what a component is, and the rules every slice follows.
118
+ - [`docs/BASE_UI_PARITY.md`](https://github.com/xoroh/axis/blob/main/docs/BASE_UI_PARITY.md) —
119
+ per-component Base UI parity with documented native deviations.
120
+ - [`docs/COVERAGE.md`](https://github.com/xoroh/axis/blob/main/docs/COVERAGE.md) —
121
+ the component coverage inventory.
122
+ - [`docs/COMPATIBILITY.md`](https://github.com/xoroh/axis/blob/main/docs/COMPATIBILITY.md) —
123
+ what the supported ranges rest on, honestly labeled.
124
+ - [`docs/RELEASING.md`](https://github.com/xoroh/axis/blob/main/docs/RELEASING.md) —
125
+ manual releases only; nothing is published yet.
126
+
127
+ ## Compatibility
128
+
129
+ - Declared supported: `react-native >=0.86 <0.89`, React 19, Expo 57
130
+ host (peer ranges + D-STACK).
131
+ - Exercised by automation: jest + RN preset; shipped-artifact bundle
132
+ export on the Expo 57 host. Untested versions inside the range are
133
+ untested — the range is policy, not proof.
134
+ - Not performed: emulator, simulator, physical-device, or
135
+ screen-reader validation.