@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.
@@ -0,0 +1,2 @@
1
+ export { g as A11yDir, A as Align, h as AttachmentError, i as AttachmentLimits, j as AttachmentState, k as AutofocusEvent, C as CalendarCell, l as CalendarDateParts, m as CalendarDirection, n as CalendarGrid, o as CalendarGridOptions, p as CalendarKey, q as CalendarMonthNameStyle, r as CalendarMonthParts, s as CalendarRange, t as CalendarRangePosition, u as CalendarSelection, v as CalendarSelectionMode, w as ChatAttachment, x as ChatMessage, y as ChatRole, z as ChatSource, B as ChatStatus, E as CollectionItem, G as CollectionMatch, D as DismissBranches, H as DismissPolicy, I as DismissPolicyOptions, J as DismissSource, K as DismissTriggers, L as DismissWiringOptions, F as FieldErrors, M as FirstDayOfWeek, N as FocusTrapModel, Q as IdScope, T as NumberFormatSpec, b as OverlayId, e as OverlayModalityRegistry, U as OverlayModalityState, P as Placement, V as PortalEntry, W as PortalRegistry, X as PositioningOptions, Y as PresenceModel, d as PresenceState, Z as PressModel, _ as PressPhase, $ as PromptInputSubmitMode, a0 as Rect, R as RenderProp, a1 as RovingItem, a2 as RovingModel, a3 as RovingOptions, a4 as RovingOrientation, a5 as Selection, a6 as SelectionKey, a7 as SelectionMode, a8 as SliderCommitOptions, f as SliderOrientation, S as SlotProps, a9 as StateAction, a as StateStyle, aa as StickToBottomMetrics, ab as TimeParts, ac as TimePickerFormat, ad as TimePickerValue, ae as ToastQueue, af as ToolCallState, ag as TrapMove, ah as TypeaheadBuffer, ai as addTimeMinutes, aj as appendTypeaheadQuery, ak as buildCalendarGrid, al as clampNumberValue, am as clampSliderValue, an as composeEventHandlers, ao as createDismissPolicy, ap as createIdScope, aq as createOverlayModality, ar as createPortalRegistry, as as createPresenceModel, at as createToastQueue, au as daysInCalendarMonth, av as defaultCollectionMatch, aw as dismissBranchesFor, ax as dismissTriggersFor, ay as filterCollectionKeys, az as findCollectionText, aA as formatNumberValue, aB as formatTimeParts, aC as formatTimeValue, aD as getSharedOverlayModality, aE as isAtBottom, aF as isCalendarDateDisabled, aG as isChatBusy, aH as isChatError, aI as isChatStreaming, aJ as isEmptyValue, aK as isSelected, aL as isToolCallApproval, aM as isToolCallComplete, aN as isToolCallError, aO as isToolCallRunning, aP as isTypeaheadExpired, aQ as isUserMessage, aR as leadingBlankCount, aS as matchTypeaheadKey, aT as mergeFormErrors, aU as mergeSlotProps, aV as minutesForStep, aW as nearestSliderThumbIndex, aX as nextBranchIndex, aY as nextPresenceState, aZ as nextTrapIndex, a_ as normalizeBranchIndex, a$ as normalizeChatSources, b0 as normalizeFieldErrors, b1 as normalizeSelection, b2 as normalizeSliderValues, b3 as normalizeTimeValue, b4 as parseCalendarDate, b5 as parseCalendarMonth, b6 as parseNumberValue, b7 as previousBranchIndex, b8 as resolveAutofocus, b9 as resolveCalendarFocus, ba as resolveCalendarMonthNames, bb as resolveCalendarSelection, bc as resolveCalendarWeekdayNames, bd as resolveCanSend, be as resolveChatMessageLabel, bf as resolveChatMessageSpeaker, bg as resolveChatSourceLabel, bh as resolveComposerHeight, bi as resolveDir, bj as resolveFloatingRect, bk as resolveFloatingSide, bl as resolveLocaleFirstDay, bm as resolvePortalTarget, bn as resolveReasoningOpen, bo as resolveRender, bp as resolveScrollButtonVisible, bq as resolveSliderCommit, br as resolveStyle, bs as resolveToolCallLabel, bt as shiftCalendarMonth, bu as shouldCancelOnEscapeKey, bv as shouldDismissOn, bw as shouldHideBranchPicker, bx as shouldSubmitOnKey, by as sliderRatioFromLocation, bz as sliderValueFromRatio, bA as sliderValuePercent, bB as snapSliderValue, bC as stepNumberValue, bD as toCalendarDate, bE as toCalendarMonth, bF as toTwentyFourHour, bG as toggleSelection, bH as updateAttachment, bI as useAttachments, bJ as useBranch, bK as useCollectionRegistry, bL as useControllableState, bM as useOverlayModality, bN as useOverlayRegistration, bO as usePresence, bP as usePress, bQ as usePromptInput, bR as useRovingModel, bS as useSelection, bT as useStickToBottom, bU as useToolCall, bV as validateAttachment } from './models-DM_HxYGZ.cjs';
2
+ import 'react';
@@ -0,0 +1,2 @@
1
+ export { g as A11yDir, A as Align, h as AttachmentError, i as AttachmentLimits, j as AttachmentState, k as AutofocusEvent, C as CalendarCell, l as CalendarDateParts, m as CalendarDirection, n as CalendarGrid, o as CalendarGridOptions, p as CalendarKey, q as CalendarMonthNameStyle, r as CalendarMonthParts, s as CalendarRange, t as CalendarRangePosition, u as CalendarSelection, v as CalendarSelectionMode, w as ChatAttachment, x as ChatMessage, y as ChatRole, z as ChatSource, B as ChatStatus, E as CollectionItem, G as CollectionMatch, D as DismissBranches, H as DismissPolicy, I as DismissPolicyOptions, J as DismissSource, K as DismissTriggers, L as DismissWiringOptions, F as FieldErrors, M as FirstDayOfWeek, N as FocusTrapModel, Q as IdScope, T as NumberFormatSpec, b as OverlayId, e as OverlayModalityRegistry, U as OverlayModalityState, P as Placement, V as PortalEntry, W as PortalRegistry, X as PositioningOptions, Y as PresenceModel, d as PresenceState, Z as PressModel, _ as PressPhase, $ as PromptInputSubmitMode, a0 as Rect, R as RenderProp, a1 as RovingItem, a2 as RovingModel, a3 as RovingOptions, a4 as RovingOrientation, a5 as Selection, a6 as SelectionKey, a7 as SelectionMode, a8 as SliderCommitOptions, f as SliderOrientation, S as SlotProps, a9 as StateAction, a as StateStyle, aa as StickToBottomMetrics, ab as TimeParts, ac as TimePickerFormat, ad as TimePickerValue, ae as ToastQueue, af as ToolCallState, ag as TrapMove, ah as TypeaheadBuffer, ai as addTimeMinutes, aj as appendTypeaheadQuery, ak as buildCalendarGrid, al as clampNumberValue, am as clampSliderValue, an as composeEventHandlers, ao as createDismissPolicy, ap as createIdScope, aq as createOverlayModality, ar as createPortalRegistry, as as createPresenceModel, at as createToastQueue, au as daysInCalendarMonth, av as defaultCollectionMatch, aw as dismissBranchesFor, ax as dismissTriggersFor, ay as filterCollectionKeys, az as findCollectionText, aA as formatNumberValue, aB as formatTimeParts, aC as formatTimeValue, aD as getSharedOverlayModality, aE as isAtBottom, aF as isCalendarDateDisabled, aG as isChatBusy, aH as isChatError, aI as isChatStreaming, aJ as isEmptyValue, aK as isSelected, aL as isToolCallApproval, aM as isToolCallComplete, aN as isToolCallError, aO as isToolCallRunning, aP as isTypeaheadExpired, aQ as isUserMessage, aR as leadingBlankCount, aS as matchTypeaheadKey, aT as mergeFormErrors, aU as mergeSlotProps, aV as minutesForStep, aW as nearestSliderThumbIndex, aX as nextBranchIndex, aY as nextPresenceState, aZ as nextTrapIndex, a_ as normalizeBranchIndex, a$ as normalizeChatSources, b0 as normalizeFieldErrors, b1 as normalizeSelection, b2 as normalizeSliderValues, b3 as normalizeTimeValue, b4 as parseCalendarDate, b5 as parseCalendarMonth, b6 as parseNumberValue, b7 as previousBranchIndex, b8 as resolveAutofocus, b9 as resolveCalendarFocus, ba as resolveCalendarMonthNames, bb as resolveCalendarSelection, bc as resolveCalendarWeekdayNames, bd as resolveCanSend, be as resolveChatMessageLabel, bf as resolveChatMessageSpeaker, bg as resolveChatSourceLabel, bh as resolveComposerHeight, bi as resolveDir, bj as resolveFloatingRect, bk as resolveFloatingSide, bl as resolveLocaleFirstDay, bm as resolvePortalTarget, bn as resolveReasoningOpen, bo as resolveRender, bp as resolveScrollButtonVisible, bq as resolveSliderCommit, br as resolveStyle, bs as resolveToolCallLabel, bt as shiftCalendarMonth, bu as shouldCancelOnEscapeKey, bv as shouldDismissOn, bw as shouldHideBranchPicker, bx as shouldSubmitOnKey, by as sliderRatioFromLocation, bz as sliderValueFromRatio, bA as sliderValuePercent, bB as snapSliderValue, bC as stepNumberValue, bD as toCalendarDate, bE as toCalendarMonth, bF as toTwentyFourHour, bG as toggleSelection, bH as updateAttachment, bI as useAttachments, bJ as useBranch, bK as useCollectionRegistry, bL as useControllableState, bM as useOverlayModality, bN as useOverlayRegistration, bO as usePresence, bP as usePress, bQ as usePromptInput, bR as useRovingModel, bS as useSelection, bT as useStickToBottom, bU as useToolCall, bV as validateAttachment } from './models-DM_HxYGZ.js';
2
+ import 'react';
package/dist/models.js ADDED
@@ -0,0 +1,212 @@
1
+ import {
2
+ addTimeMinutes,
3
+ appendTypeaheadQuery,
4
+ buildCalendarGrid,
5
+ clampNumberValue,
6
+ clampSliderValue,
7
+ composeEventHandlers,
8
+ createDismissPolicy,
9
+ createIdScope,
10
+ createOverlayModality,
11
+ createPortalRegistry,
12
+ createPresenceModel,
13
+ createToastQueue,
14
+ daysInCalendarMonth,
15
+ defaultCollectionMatch,
16
+ dismissBranchesFor,
17
+ dismissTriggersFor,
18
+ filterCollectionKeys,
19
+ findCollectionText,
20
+ formatNumberValue,
21
+ formatTimeParts,
22
+ formatTimeValue,
23
+ getSharedOverlayModality,
24
+ isAtBottom,
25
+ isCalendarDateDisabled,
26
+ isChatBusy,
27
+ isChatError,
28
+ isChatStreaming,
29
+ isEmptyValue,
30
+ isSelected,
31
+ isToolCallApproval,
32
+ isToolCallComplete,
33
+ isToolCallError,
34
+ isToolCallRunning,
35
+ isTypeaheadExpired,
36
+ isUserMessage,
37
+ leadingBlankCount,
38
+ matchTypeaheadKey,
39
+ mergeFormErrors,
40
+ mergeSlotProps,
41
+ minutesForStep,
42
+ nearestSliderThumbIndex,
43
+ nextBranchIndex,
44
+ nextPresenceState,
45
+ nextTrapIndex,
46
+ normalizeBranchIndex,
47
+ normalizeChatSources,
48
+ normalizeFieldErrors,
49
+ normalizeSelection,
50
+ normalizeSliderValues,
51
+ normalizeTimeValue,
52
+ parseCalendarDate,
53
+ parseCalendarMonth,
54
+ parseNumberValue,
55
+ previousBranchIndex,
56
+ resolveAutofocus,
57
+ resolveCalendarFocus,
58
+ resolveCalendarMonthNames,
59
+ resolveCalendarSelection,
60
+ resolveCalendarWeekdayNames,
61
+ resolveCanSend,
62
+ resolveChatMessageLabel,
63
+ resolveChatMessageSpeaker,
64
+ resolveChatSourceLabel,
65
+ resolveComposerHeight,
66
+ resolveDir,
67
+ resolveFloatingRect,
68
+ resolveFloatingSide,
69
+ resolveLocaleFirstDay,
70
+ resolvePortalTarget,
71
+ resolveReasoningOpen,
72
+ resolveRender,
73
+ resolveScrollButtonVisible,
74
+ resolveSliderCommit,
75
+ resolveStyle,
76
+ resolveToolCallLabel,
77
+ shiftCalendarMonth,
78
+ shouldCancelOnEscapeKey,
79
+ shouldDismissOn,
80
+ shouldHideBranchPicker,
81
+ shouldSubmitOnKey,
82
+ sliderRatioFromLocation,
83
+ sliderValueFromRatio,
84
+ sliderValuePercent,
85
+ snapSliderValue,
86
+ stepNumberValue,
87
+ toCalendarDate,
88
+ toCalendarMonth,
89
+ toTwentyFourHour,
90
+ toggleSelection,
91
+ updateAttachment,
92
+ useAttachments,
93
+ useBranch,
94
+ useCollectionRegistry,
95
+ useControllableState,
96
+ useOverlayModality,
97
+ useOverlayRegistration,
98
+ usePresence,
99
+ usePress,
100
+ usePromptInput,
101
+ useRovingModel,
102
+ useSelection,
103
+ useStickToBottom,
104
+ useToolCall,
105
+ validateAttachment
106
+ } from "./chunk-QDT5F2VT.js";
107
+ export {
108
+ addTimeMinutes,
109
+ appendTypeaheadQuery,
110
+ buildCalendarGrid,
111
+ clampNumberValue,
112
+ clampSliderValue,
113
+ composeEventHandlers,
114
+ createDismissPolicy,
115
+ createIdScope,
116
+ createOverlayModality,
117
+ createPortalRegistry,
118
+ createPresenceModel,
119
+ createToastQueue,
120
+ daysInCalendarMonth,
121
+ defaultCollectionMatch,
122
+ dismissBranchesFor,
123
+ dismissTriggersFor,
124
+ filterCollectionKeys,
125
+ findCollectionText,
126
+ formatNumberValue,
127
+ formatTimeParts,
128
+ formatTimeValue,
129
+ getSharedOverlayModality,
130
+ isAtBottom,
131
+ isCalendarDateDisabled,
132
+ isChatBusy,
133
+ isChatError,
134
+ isChatStreaming,
135
+ isEmptyValue,
136
+ isSelected,
137
+ isToolCallApproval,
138
+ isToolCallComplete,
139
+ isToolCallError,
140
+ isToolCallRunning,
141
+ isTypeaheadExpired,
142
+ isUserMessage,
143
+ leadingBlankCount,
144
+ matchTypeaheadKey,
145
+ mergeFormErrors,
146
+ mergeSlotProps,
147
+ minutesForStep,
148
+ nearestSliderThumbIndex,
149
+ nextBranchIndex,
150
+ nextPresenceState,
151
+ nextTrapIndex,
152
+ normalizeBranchIndex,
153
+ normalizeChatSources,
154
+ normalizeFieldErrors,
155
+ normalizeSelection,
156
+ normalizeSliderValues,
157
+ normalizeTimeValue,
158
+ parseCalendarDate,
159
+ parseCalendarMonth,
160
+ parseNumberValue,
161
+ previousBranchIndex,
162
+ resolveAutofocus,
163
+ resolveCalendarFocus,
164
+ resolveCalendarMonthNames,
165
+ resolveCalendarSelection,
166
+ resolveCalendarWeekdayNames,
167
+ resolveCanSend,
168
+ resolveChatMessageLabel,
169
+ resolveChatMessageSpeaker,
170
+ resolveChatSourceLabel,
171
+ resolveComposerHeight,
172
+ resolveDir,
173
+ resolveFloatingRect,
174
+ resolveFloatingSide,
175
+ resolveLocaleFirstDay,
176
+ resolvePortalTarget,
177
+ resolveReasoningOpen,
178
+ resolveRender,
179
+ resolveScrollButtonVisible,
180
+ resolveSliderCommit,
181
+ resolveStyle,
182
+ resolveToolCallLabel,
183
+ shiftCalendarMonth,
184
+ shouldCancelOnEscapeKey,
185
+ shouldDismissOn,
186
+ shouldHideBranchPicker,
187
+ shouldSubmitOnKey,
188
+ sliderRatioFromLocation,
189
+ sliderValueFromRatio,
190
+ sliderValuePercent,
191
+ snapSliderValue,
192
+ stepNumberValue,
193
+ toCalendarDate,
194
+ toCalendarMonth,
195
+ toTwentyFourHour,
196
+ toggleSelection,
197
+ updateAttachment,
198
+ useAttachments,
199
+ useBranch,
200
+ useCollectionRegistry,
201
+ useControllableState,
202
+ useOverlayModality,
203
+ useOverlayRegistration,
204
+ usePresence,
205
+ usePress,
206
+ usePromptInput,
207
+ useRovingModel,
208
+ useSelection,
209
+ useStickToBottom,
210
+ useToolCall,
211
+ validateAttachment
212
+ };
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@xoroh/axis",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Design-system-neutral, native-first behavior and interaction primitives for React Native.",
5
+ "keywords": [
6
+ "react-native",
7
+ "primitives",
8
+ "accessibility",
9
+ "unstyled"
10
+ ],
11
+ "license": "MIT",
12
+ "author": "Xoroh",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/xoroh/axis.git",
16
+ "directory": "packages/axis"
17
+ },
18
+ "homepage": "https://github.com/xoroh/axis",
19
+ "bugs": "https://github.com/xoroh/axis/issues",
20
+ "engines": {
21
+ "node": ">=20.19"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public",
25
+ "provenance": true
26
+ },
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "main": "./dist/index.js",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "react-native": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "import": {
39
+ "types": "./dist/index.d.ts",
40
+ "default": "./dist/index.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/index.d.cts",
44
+ "default": "./dist/index.cjs"
45
+ }
46
+ },
47
+ "./models": {
48
+ "import": {
49
+ "types": "./dist/models.d.ts",
50
+ "default": "./dist/models.js"
51
+ },
52
+ "require": {
53
+ "types": "./dist/models.d.cts",
54
+ "default": "./dist/models.cjs"
55
+ },
56
+ "default": "./dist/models.js"
57
+ }
58
+ },
59
+ "files": [
60
+ "dist",
61
+ "README.md",
62
+ "LICENSE"
63
+ ],
64
+ "scripts": {
65
+ "build": "tsup src/index.ts src/models.ts --format esm,cjs --dts --dts-resolve --external react --external react-native --out-dir dist --clean",
66
+ "typecheck": "tsc --noEmit",
67
+ "test": "vitest run",
68
+ "test:jest": "jest",
69
+ "check:boundary": "node scripts/check-boundary.mjs",
70
+ "check:readme": "node scripts/check-readme.mjs",
71
+ "check:readme-examples": "node scripts/check-readme-examples.mjs",
72
+ "check:publish": "publint && attw --pack --ignore-rules=no-resolution"
73
+ },
74
+ "peerDependencies": {
75
+ "react": ">=18",
76
+ "react-native": ">=0.86 <0.89"
77
+ },
78
+ "devDependencies": {
79
+ "@babel/runtime": "^7.28.0",
80
+ "@react-native/babel-preset": "^0.87.1",
81
+ "@react-native/jest-preset": "0.87.1",
82
+ "@testing-library/react": "^16.3.0",
83
+ "@testing-library/react-native": "^14.0.1",
84
+ "@types/jest": "^30.0.0",
85
+ "@types/node": "^26.6.3",
86
+ "@types/react": "^19.0.0",
87
+ "@types/react-native-web": "^0.19.3",
88
+ "jest": "^30.5.2",
89
+ "jsdom": "^28.0.0",
90
+ "react": "^19.3.0",
91
+ "react-dom": "^19.0.0",
92
+ "react-native": "^0.87.1",
93
+ "react-native-web": "0.21.4",
94
+ "react-test-renderer": "^19.3.0",
95
+ "tsup": "^8.5.1",
96
+ "typescript": "5.9.3",
97
+ "vitest": "^5.0.2"
98
+ }
99
+ }