@barqjs/aria 0.0.0-stage → 0.2.0-next.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 (76) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +293 -2
  3. package/package.json +347 -4
  4. package/src/breadcrumbs.tsx +296 -0
  5. package/src/button.tsx +342 -0
  6. package/src/calendar.tsx +1389 -0
  7. package/src/checkbox.tsx +570 -0
  8. package/src/collections.ts +976 -0
  9. package/src/color.ts +562 -0
  10. package/src/colorpicker.tsx +1478 -0
  11. package/src/combobox.tsx +2481 -0
  12. package/src/command.tsx +1184 -0
  13. package/src/date.ts +652 -0
  14. package/src/datefield.tsx +951 -0
  15. package/src/datepicker.tsx +556 -0
  16. package/src/dialog.tsx +890 -0
  17. package/src/disclosure.tsx +659 -0
  18. package/src/dom.ts +706 -0
  19. package/src/drawer.ts +674 -0
  20. package/src/focus.ts +1370 -0
  21. package/src/form.tsx +94 -0
  22. package/src/gridlist.tsx +563 -0
  23. package/src/i18n.ts +823 -0
  24. package/src/index.ts +1270 -0
  25. package/src/interactions/description.ts +73 -0
  26. package/src/interactions/flags.ts +35 -0
  27. package/src/interactions/focus-events.ts +218 -0
  28. package/src/interactions/focusable.ts +86 -0
  29. package/src/interactions/hover.ts +213 -0
  30. package/src/interactions/interact-outside.ts +123 -0
  31. package/src/interactions/keyboard.ts +105 -0
  32. package/src/interactions/listeners.ts +78 -0
  33. package/src/interactions/long-press.ts +160 -0
  34. package/src/interactions/modality.ts +416 -0
  35. package/src/interactions/move.ts +257 -0
  36. package/src/interactions/open-link.ts +193 -0
  37. package/src/interactions/press.ts +898 -0
  38. package/src/interactions/prevent-focus.ts +102 -0
  39. package/src/interactions/scroll-wheel.ts +43 -0
  40. package/src/interactions/text-selection.ts +77 -0
  41. package/src/interactions.ts +81 -0
  42. package/src/label.ts +128 -0
  43. package/src/link.tsx +381 -0
  44. package/src/listbox.tsx +721 -0
  45. package/src/live.ts +204 -0
  46. package/src/menu.tsx +2290 -0
  47. package/src/menubar.tsx +575 -0
  48. package/src/navigation.ts +735 -0
  49. package/src/numberfield.tsx +838 -0
  50. package/src/otp.ts +430 -0
  51. package/src/overlays.ts +1247 -0
  52. package/src/platform.ts +74 -0
  53. package/src/presence.ts +164 -0
  54. package/src/questionnaire.tsx +1712 -0
  55. package/src/radio.tsx +567 -0
  56. package/src/register-dom.ts +12 -0
  57. package/src/scroller.ts +1165 -0
  58. package/src/select.tsx +1665 -0
  59. package/src/selection.ts +1415 -0
  60. package/src/slider.tsx +1042 -0
  61. package/src/splitter.ts +1152 -0
  62. package/src/static-collection.ts +211 -0
  63. package/src/switch.tsx +186 -0
  64. package/src/table.tsx +0 -0
  65. package/src/tabs.tsx +1018 -0
  66. package/src/tag.tsx +452 -0
  67. package/src/textfield.tsx +417 -0
  68. package/src/toast.ts +658 -0
  69. package/src/toggle-input.tsx +48 -0
  70. package/src/toggle.ts +321 -0
  71. package/src/togglegroup.ts +365 -0
  72. package/src/toolbar.tsx +179 -0
  73. package/src/tooltip.tsx +657 -0
  74. package/src/utils.ts +758 -0
  75. package/src/validation.ts +447 -0
  76. package/src/virtualizer.tsx +674 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Salama Ashoush
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,294 @@
1
- # Temporary Holding Version
1
+ # @barqjs/aria
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
+ Accessible interactions, state and headless components for
4
+ [barq](https://github.com/salamaashoush/barq). It is studied from
5
+ [React Aria](https://react-spectrum.adobe.com/react-aria/) (`adobe/react-spectrum`)
6
+ and rewritten for a framework whose components run once and whose props are
7
+ Cells. Nothing is styled.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ bun add @barqjs/aria @barqjs/core @barqjs/web @barqjs/primitives @barqjs/server
13
+ bun add -d @barqjs/vite
14
+ ```
15
+
16
+ The package ships its TypeScript source under the `barq` export condition, and
17
+ `@barqjs/vite` compiles it in your build, for the DOM or the server.
18
+
19
+ ## Example
20
+
21
+ ```tsx
22
+ import { ListBox, Option } from "@barqjs/aria";
23
+ import { createSignal } from "@barqjs/core";
24
+
25
+ const [picked, setPicked] = createSignal<Set<string>>(new Set());
26
+ const fruits = [
27
+ { id: "apple", name: "Apple" },
28
+ { id: "banana", name: "Banana" },
29
+ ];
30
+
31
+ <ListBox
32
+ label="Fruit"
33
+ items={fruits}
34
+ selectionMode="multiple"
35
+ onSelectionChange={(keys) => setPicked(keys as Set<string>)}
36
+ >
37
+ {(fruit) => <Option>{fruit.name}</Option>}
38
+ </ListBox>;
39
+ ```
40
+
41
+ Two layers ship, and either can be used on its own. `listBox()` and `option()`
42
+ are hooks that return props for elements you write yourself; `<ListBox>` and
43
+ `<Option>` are components that call them. Every component renders the minimum
44
+ markup its role needs, and everything visual is yours.
45
+ [`@barqjs/ui`](../ui#readme) is the styled layer built on top.
46
+
47
+ Each module is an entry point as well as being re-exported from the root, so
48
+ `@barqjs/aria/listbox` and a tree-shaken import from `@barqjs/aria` cost the
49
+ same.
50
+
51
+ ## Names carry no `use` prefix
52
+
53
+ `press()`, `focusRing()`, `button()`, `listBox()`. A component here runs once
54
+ and there is no rules-of-hooks to signal, so the prefix would be a lie about
55
+ when the function may be called.
56
+
57
+ ## Collections are data
58
+
59
+ React Aria builds a collection by rendering the children and collecting what
60
+ they declare. This package takes `items` plus a render function:
61
+
62
+ ```tsx
63
+ <Menu items={actions()} onAction={(key) => run(key)}>
64
+ {(action) => <MenuItem>{action.name}</MenuItem>}
65
+ </Menu>
66
+ ```
67
+
68
+ A framework whose components run once and whose children are lazy Blocks does
69
+ not need the two-pass dance. `<Menu>` builds the collection from `items`,
70
+ renders `<For>` over the nodes, and installs the node on each row's context so
71
+ `<MenuItem>` reads its key, value and disabled state from there. Static items
72
+ are an array literal.
73
+
74
+ An item with `children` becomes a **section**. That is the one thing to know
75
+ before nesting anything: a submenu's items go under a different key, because
76
+ `children` already means "the items of a section".
77
+
78
+ ## Props are Cells
79
+
80
+ Inside a component a prop is an accessor. A JSX call site passes a value and the
81
+ compiler wraps it:
82
+
83
+ ```tsx
84
+ <Checkbox isDisabled={disabled()} /> // right
85
+ <Checkbox isDisabled={() => disabled()} /> // a Cell of a Cell, and wrong
86
+ ```
87
+
88
+ A hook takes `MaybeAccessor<T>` for every value option, so
89
+ `listBox({ isDisabled: () => x() }, state)` and
90
+ `listBox({ isDisabled: true }, state)` both work. Hooks return plain objects
91
+ whose dynamic values are accessors, which is why `<button {...buttonProps} />`
92
+ re-renders nothing.
93
+
94
+ Writing a component of your own on top of a hook, `fromProps(props)` turns
95
+ `Incoming<P>` into hook options, and `callback(props.validate)` unwraps a
96
+ non-`on*` function prop. Both live in `utils.ts`. Both exist because a handler
97
+ and a Cell are the same thing at runtime (a function), so the distinction has
98
+ to be made at one boundary.
99
+
100
+ ## Styling
101
+
102
+ There is no CSS. State is exposed as data attributes on the elements the
103
+ components render, so a stylesheet selects on presence:
104
+
105
+ ```css
106
+ [data-selected] {
107
+ background: canvas;
108
+ }
109
+ [data-focus-visible] {
110
+ outline: 2px solid;
111
+ }
112
+ [data-disabled] {
113
+ opacity: 0.5;
114
+ }
115
+ ```
116
+
117
+ The common ones are `data-selected`, `data-focused`, `data-focus-visible`,
118
+ `data-hovered`, `data-pressed`, `data-disabled`, `data-readonly`,
119
+ `data-invalid`, `data-required`, `data-open`, `data-placeholder`,
120
+ `data-dragging`, `data-orientation`, `data-placement`, `data-empty` and
121
+ `data-virtualized`. A boolean one is its **presence**: `data-pressed=""` when
122
+ true and absent when false, so the selector is `[data-pressed]` and never
123
+ `[data-pressed="true"]`. Some components also write `data-state` (`open` or
124
+ `closed`, `checked` or `unchecked`), and a placed overlay writes `data-side` and
125
+ `data-align`.
126
+
127
+ A component forwards what it has no opinion about: the global attributes
128
+ (`dir`, `lang`, `hidden`, `inert`, `translate`), the global events, `id`, and
129
+ anything `data-*`. That is what lets a design system put its own marker on the
130
+ element it styles without a wrapper element in the way:
131
+ `<Checkbox data-slot="checkbox">` reaches the `<label>`. A prop the component
132
+ owns never becomes an attribute, so `isDisabled` writes `data-disabled` and not
133
+ `isdisabled="true"`.
134
+
135
+ ## Overlays are portalled
136
+
137
+ `<Popover>` and `<Modal>` render into `document.body` through barq's `<Portal>`,
138
+ keeping their lexical scope so a portalled overlay still reads the providers it
139
+ was written inside. A popover under an ancestor with `overflow: hidden` or a
140
+ `transform` would otherwise be clipped or anchored against the wrong box.
141
+
142
+ A root popover renders a `display: contents` container and offers it to popovers
143
+ opened from inside it, so a submenu lands in its parent's group: the two count
144
+ as one overlay for outside-press dismissal and for `aria-hidden`.
145
+
146
+ To send overlays somewhere else (an element inside a shadow root, a fullscreen
147
+ element, a container you style), wrap the tree. `getContainer` returns an
148
+ `Element`; returning `null` means the body.
149
+
150
+ ```tsx
151
+ <PortalProvider getContainer={() => overlays}>{children}</PortalProvider>
152
+ ```
153
+
154
+ ## Validation
155
+
156
+ Every field takes `validate` and `validationBehavior`:
157
+
158
+ ```tsx
159
+ <TextField label="Email" validate={(value) => (value.includes("@") ? null : "Not an email")} />
160
+ <NumberField label="Quantity" validate={(n) => (n > 0 ? null : "At least one")} />
161
+ <ColorField label="Brand" validate={(colour) => (colour.getChannelValue("alpha") < 1 ? "No transparency" : null)} />
162
+ ```
163
+
164
+ `validate` receives the field's own value: a number for `<NumberField>`, a
165
+ `Color` for `<ColorField>`, a `DateValue` for `<DateField>`, the selected key
166
+ for `<Select>`. It is **not** called for an empty value. `null` and `undefined`
167
+ mean the field is blank, and blank is `isRequired`'s business. Under
168
+ `validationBehavior="native"` the page's errors are written onto the hidden
169
+ control with `setCustomValidity`, so the browser refuses the submit and focuses
170
+ the first invalid field.
171
+
172
+ `<Form>` provides `validationBehavior` and server errors to every field inside
173
+ it.
174
+
175
+ ## Virtualisation
176
+
177
+ A list of ten thousand rows renders the window that is on screen:
178
+
179
+ ```tsx
180
+ <Virtualizer layout={listLayout({ rowHeight: 32 })}>
181
+ <ListBox label="Cities" items={cities()} style={{ height: "300px", overflow: "auto" }}>
182
+ {(city) => <Option>{city.name}</Option>}
183
+ </ListBox>
184
+ </Virtualizer>
185
+ ```
186
+
187
+ The collection is whole throughout: selection, typeahead and `aria-setsize` all
188
+ see every item, and only the DOM is a window. Keyboard navigation moves by the
189
+ layout rather than by measuring elements, because Page Down has to reach a row
190
+ that does not exist yet. Row heights may be fixed (`rowHeight`) or estimated
191
+ and measured (`estimatedRowHeight`). `<ListBox>`, `<GridList>` and `<Table>`
192
+ all accept it.
193
+
194
+ Unlike React Aria there is no view recycling: `<For>` keys rows by item, so a
195
+ row that stays in the window keeps its element and its state across a scroll.
196
+
197
+ ## What is here
198
+
199
+ Hooks and state, by module:
200
+
201
+ - `platform`: `isMac`, `isIOS`, `isWebKit` and the rest.
202
+ - `dom`: ownership, shadow-safe `contains`/`activeElement`,
203
+ `isFocusable`/`isTabbable`, `scrollIntoViewport`.
204
+ - `utils`: `mergeProps`, `id`/`mergeIds`, `filterDOMProps`, `controllable`,
205
+ `fromProps`, `callback`, `styleProps`.
206
+ - `interactions`: `press`, `hover`, `focused`, `focusWithin`, `keyboard`,
207
+ `longPress`, `move`, `interactOutside`, `scrollWheel`, `focusable`,
208
+ `modality`/`focusVisible`, `openLink`.
209
+ - `focus`: `FocusWalker`, `createFocusManager`, `focusScope`, `focusRing`.
210
+ - `i18n`: `useLocale`, `collator`, `filter`, number, date and list formatters,
211
+ `StringFormatter`, `NumberParser`.
212
+ - `live`: `announce`, `visuallyHidden`.
213
+ - `collections`: `Collection`, `ListCollection`, `Selection`,
214
+ `SelectionManager`, `listState`.
215
+ - `selection`: `ListKeyboardDelegate`, `typeSelect`, `selectableItem`,
216
+ `selectableList`, `selectableCollection`.
217
+ - `overlays`: `overlayTrigger`, `overlay`, `ariaHideOutside`, `preventScroll`,
218
+ `overlayPosition`, `modalOverlay`.
219
+ - `presence`: `presence` and `exitDuration`, which hold closing content until
220
+ its exit animation ends.
221
+ - `virtualizer`: `Layout`, `ListLayout`, `listLayout`, `virtualizer`,
222
+ `<Virtualizer>`.
223
+ - `date` and `color`: barq's answers to `@internationalized/date` and
224
+ `@react-stately/color`.
225
+ - `validation`: `formValidationState`, `fieldValidation`, `formValidation`.
226
+ - `toggle` and `togglegroup`: `toggle`, `toggleGroup`, `toggleGroupItem`,
227
+ `toggleGroupState`.
228
+ - `toast`: `toastQueue` and `toastSwipe`, the engine behind `@barqjs/ui`'s
229
+ toaster.
230
+ - `drawer`, `otp`, `splitter`, `scroller` and `navigation`: the state behind a
231
+ swipe-to-dismiss drawer, a one-time-code field, resizable panels, a scroll
232
+ area and a navigation menu.
233
+
234
+ Components: `Button` `ToggleButton` `Checkbox` `CheckboxGroup` `Switch`
235
+ `RadioGroup` `Radio` `Link` `Separator` `ProgressBar` `Meter` `TextField`
236
+ `SearchField` `NumberField` `ListBox` `Option` `Menu` `MenuTrigger`
237
+ `SubmenuTrigger` `ContextMenu` `Menubar` `Select` `ComboBox` `Command`
238
+ `GridList` `Table` `TagGroup` `Tabs` `Toolbar` `Breadcrumbs` `Disclosure`
239
+ `DisclosureGroup` `Dialog` `Modal` `Popover` `Slider` `Calendar`
240
+ `RangeCalendar` `DateField` `TimeField` `DatePicker` `DateRangePicker`
241
+ `ColorPicker` `ColorSlider` `ColorArea` `ColorWheel` `ColorField` `ColorSwatch`
242
+ `Tooltip` `Form` `Questionnaire` `Virtualizer`.
243
+
244
+ ## What is not here
245
+
246
+ Deliberately absent:
247
+
248
+ - **Drag and drop.** `useDrag`, `useDrop`, the droppable collections and the
249
+ drop indicators. Nothing in this package is a drop target, and the layout
250
+ seam that a virtualised drop target needs is not built.
251
+ - **React plumbing.** `useEffectEvent`, `useObjectRef`, `useLayoutEffect`,
252
+ `useValueEffect`, `useSyncRef`, `useDeepMemo`, `useCachedChildren` and the
253
+ rest exist to work around React's model. `@barqjs/primitives` covers the ones
254
+ that are real behaviour: `resizeObserver`, `windowSize`, `clipboard`.
255
+ - **Colour contrast and reading order** in `@barqjs/testing`'s
256
+ `ariaViolations`. A headless DOM cannot answer either, and a wrong answer is
257
+ worse than none.
258
+
259
+ Not built yet, in rough order of how much is missing:
260
+
261
+ - A **Toast** region component (the queue is `toastQueue`; `@barqjs/ui` renders
262
+ it). **Tree** and `TreeItem`. **Autocomplete** and `SearchAutocomplete`.
263
+ **StepList**. **TokenField**. **ActionGroup**. A `ToggleButtonGroup`
264
+ component (the hooks are `toggleGroup`). **Landmark** navigation.
265
+ - **Selection checkboxes** for a grid, gridlist and table
266
+ (`useGridSelectionCheckbox` and its siblings), and the selection announcement
267
+ that goes with them.
268
+ - **Load more**: `useLoadMore` and the sentinel, for a collection that pages as
269
+ it scrolls.
270
+ - **Table column resizing**.
271
+ - **Calendar month and year pickers.** The grid and the cells are there, the
272
+ two dropdowns are not.
273
+ - `useColorChannelField`, and the gradient helper behind a colour area's
274
+ background.
275
+ - Time zones and non-Gregorian calendars in `date.ts`; colour spaces beyond
276
+ RGB, HSL and HSB in `color.ts`. Both modules state their limits in their own
277
+ headers.
278
+
279
+ ## Things that will bite
280
+
281
+ - **Keying a `<For>` by an object built in the `each` expression rebuilds every
282
+ row on every read**, and the row holding focus is destroyed under the user.
283
+ `datefield.tsx` keys its segments by index for exactly this reason.
284
+ - **A callback prop must declare its parameter.** `callback()` tells a handler
285
+ from a Cell by arity, so `validate={() => "Bad"}` is read as a Cell and
286
+ called, and the message becomes the callback. Write
287
+ `validate={(value) => "Bad"}`.
288
+ - **A component's JSX in a `const` is built eagerly.** `const body = <div/>`
289
+ constructs it there and then. Put it in a component or inline it where it
290
+ belongs, or a conditional above it will not gate it.
291
+
292
+ ## License
293
+
294
+ MIT
package/package.json CHANGED
@@ -1,6 +1,349 @@
1
1
  {
2
2
  "name": "@barqjs/aria",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0-next.0",
4
+ "description": "Accessible interactions, state and headless components for barq: WAI-ARIA behaviour on fine-grained signals",
5
+ "keywords": [
6
+ "a11y",
7
+ "accessibility",
8
+ "aria",
9
+ "barq",
10
+ "components",
11
+ "headless",
12
+ "signals",
13
+ "wai-aria"
14
+ ],
15
+ "homepage": "https://github.com/salamaashoush/barq#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/salamaashoush/barq/issues"
18
+ },
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/salamaashoush/barq.git",
23
+ "directory": "packages/aria"
24
+ },
25
+ "files": [
26
+ "src",
27
+ "!src/**/*.test.ts",
28
+ "!src/**/*.test.tsx",
29
+ "!src/**/test-*.ts",
30
+ "!src/**/*-harness.ts",
31
+ "!src/**/*-probe.ts",
32
+ "!src/**/fixtures",
33
+ "!src/**/fixtures.ts",
34
+ "!src/**/ssr-fixtures.ts"
35
+ ],
36
+ "type": "module",
37
+ "sideEffects": false,
38
+ "main": "./src/index.ts",
39
+ "types": "./src/index.ts",
40
+ "exports": {
41
+ ".": {
42
+ "types": "./src/index.ts",
43
+ "barq": "./src/index.ts",
44
+ "bun": "./src/index.ts"
45
+ },
46
+ "./breadcrumbs": {
47
+ "types": "./src/breadcrumbs.tsx",
48
+ "barq": "./src/breadcrumbs.tsx",
49
+ "bun": "./src/breadcrumbs.tsx"
50
+ },
51
+ "./button": {
52
+ "types": "./src/button.tsx",
53
+ "barq": "./src/button.tsx",
54
+ "bun": "./src/button.tsx"
55
+ },
56
+ "./calendar": {
57
+ "types": "./src/calendar.tsx",
58
+ "barq": "./src/calendar.tsx",
59
+ "bun": "./src/calendar.tsx"
60
+ },
61
+ "./checkbox": {
62
+ "types": "./src/checkbox.tsx",
63
+ "barq": "./src/checkbox.tsx",
64
+ "bun": "./src/checkbox.tsx"
65
+ },
66
+ "./collections": {
67
+ "types": "./src/collections.ts",
68
+ "barq": "./src/collections.ts",
69
+ "bun": "./src/collections.ts"
70
+ },
71
+ "./color": {
72
+ "types": "./src/color.ts",
73
+ "barq": "./src/color.ts",
74
+ "bun": "./src/color.ts"
75
+ },
76
+ "./colorpicker": {
77
+ "types": "./src/colorpicker.tsx",
78
+ "barq": "./src/colorpicker.tsx",
79
+ "bun": "./src/colorpicker.tsx"
80
+ },
81
+ "./combobox": {
82
+ "types": "./src/combobox.tsx",
83
+ "barq": "./src/combobox.tsx",
84
+ "bun": "./src/combobox.tsx"
85
+ },
86
+ "./command": {
87
+ "types": "./src/command.tsx",
88
+ "barq": "./src/command.tsx",
89
+ "bun": "./src/command.tsx"
90
+ },
91
+ "./date": {
92
+ "types": "./src/date.ts",
93
+ "barq": "./src/date.ts",
94
+ "bun": "./src/date.ts"
95
+ },
96
+ "./datefield": {
97
+ "types": "./src/datefield.tsx",
98
+ "barq": "./src/datefield.tsx",
99
+ "bun": "./src/datefield.tsx"
100
+ },
101
+ "./datepicker": {
102
+ "types": "./src/datepicker.tsx",
103
+ "barq": "./src/datepicker.tsx",
104
+ "bun": "./src/datepicker.tsx"
105
+ },
106
+ "./dialog": {
107
+ "types": "./src/dialog.tsx",
108
+ "barq": "./src/dialog.tsx",
109
+ "bun": "./src/dialog.tsx"
110
+ },
111
+ "./disclosure": {
112
+ "types": "./src/disclosure.tsx",
113
+ "barq": "./src/disclosure.tsx",
114
+ "bun": "./src/disclosure.tsx"
115
+ },
116
+ "./drawer": {
117
+ "types": "./src/drawer.ts",
118
+ "barq": "./src/drawer.ts",
119
+ "bun": "./src/drawer.ts"
120
+ },
121
+ "./dom": {
122
+ "types": "./src/dom.ts",
123
+ "barq": "./src/dom.ts",
124
+ "bun": "./src/dom.ts"
125
+ },
126
+ "./focus": {
127
+ "types": "./src/focus.ts",
128
+ "barq": "./src/focus.ts",
129
+ "bun": "./src/focus.ts"
130
+ },
131
+ "./form": {
132
+ "types": "./src/form.tsx",
133
+ "barq": "./src/form.tsx",
134
+ "bun": "./src/form.tsx"
135
+ },
136
+ "./gridlist": {
137
+ "types": "./src/gridlist.tsx",
138
+ "barq": "./src/gridlist.tsx",
139
+ "bun": "./src/gridlist.tsx"
140
+ },
141
+ "./i18n": {
142
+ "types": "./src/i18n.ts",
143
+ "barq": "./src/i18n.ts",
144
+ "bun": "./src/i18n.ts"
145
+ },
146
+ "./interactions": {
147
+ "types": "./src/interactions.ts",
148
+ "barq": "./src/interactions.ts",
149
+ "bun": "./src/interactions.ts"
150
+ },
151
+ "./label": {
152
+ "types": "./src/label.ts",
153
+ "barq": "./src/label.ts",
154
+ "bun": "./src/label.ts"
155
+ },
156
+ "./link": {
157
+ "types": "./src/link.tsx",
158
+ "barq": "./src/link.tsx",
159
+ "bun": "./src/link.tsx"
160
+ },
161
+ "./listbox": {
162
+ "types": "./src/listbox.tsx",
163
+ "barq": "./src/listbox.tsx",
164
+ "bun": "./src/listbox.tsx"
165
+ },
166
+ "./live": {
167
+ "types": "./src/live.ts",
168
+ "barq": "./src/live.ts",
169
+ "bun": "./src/live.ts"
170
+ },
171
+ "./menu": {
172
+ "types": "./src/menu.tsx",
173
+ "barq": "./src/menu.tsx",
174
+ "bun": "./src/menu.tsx"
175
+ },
176
+ "./menubar": {
177
+ "types": "./src/menubar.tsx",
178
+ "barq": "./src/menubar.tsx",
179
+ "bun": "./src/menubar.tsx"
180
+ },
181
+ "./numberfield": {
182
+ "types": "./src/numberfield.tsx",
183
+ "barq": "./src/numberfield.tsx",
184
+ "bun": "./src/numberfield.tsx"
185
+ },
186
+ "./otp": {
187
+ "types": "./src/otp.ts",
188
+ "barq": "./src/otp.ts",
189
+ "bun": "./src/otp.ts"
190
+ },
191
+ "./overlays": {
192
+ "types": "./src/overlays.ts",
193
+ "barq": "./src/overlays.ts",
194
+ "bun": "./src/overlays.ts"
195
+ },
196
+ "./presence": {
197
+ "types": "./src/presence.ts",
198
+ "barq": "./src/presence.ts",
199
+ "bun": "./src/presence.ts"
200
+ },
201
+ "./platform": {
202
+ "types": "./src/platform.ts",
203
+ "barq": "./src/platform.ts",
204
+ "bun": "./src/platform.ts"
205
+ },
206
+ "./questionnaire": {
207
+ "types": "./src/questionnaire.tsx",
208
+ "barq": "./src/questionnaire.tsx",
209
+ "bun": "./src/questionnaire.tsx"
210
+ },
211
+ "./radio": {
212
+ "types": "./src/radio.tsx",
213
+ "barq": "./src/radio.tsx",
214
+ "bun": "./src/radio.tsx"
215
+ },
216
+ "./scroller": {
217
+ "types": "./src/scroller.ts",
218
+ "barq": "./src/scroller.ts",
219
+ "bun": "./src/scroller.ts"
220
+ },
221
+ "./select": {
222
+ "types": "./src/select.tsx",
223
+ "barq": "./src/select.tsx",
224
+ "bun": "./src/select.tsx"
225
+ },
226
+ "./selection": {
227
+ "types": "./src/selection.ts",
228
+ "barq": "./src/selection.ts",
229
+ "bun": "./src/selection.ts"
230
+ },
231
+ "./static-collection": {
232
+ "types": "./src/static-collection.ts",
233
+ "barq": "./src/static-collection.ts",
234
+ "bun": "./src/static-collection.ts"
235
+ },
236
+ "./slider": {
237
+ "types": "./src/slider.tsx",
238
+ "barq": "./src/slider.tsx",
239
+ "bun": "./src/slider.tsx"
240
+ },
241
+ "./splitter": {
242
+ "types": "./src/splitter.ts",
243
+ "barq": "./src/splitter.ts",
244
+ "bun": "./src/splitter.ts"
245
+ },
246
+ "./switch": {
247
+ "types": "./src/switch.tsx",
248
+ "barq": "./src/switch.tsx",
249
+ "bun": "./src/switch.tsx"
250
+ },
251
+ "./table": {
252
+ "types": "./src/table.tsx",
253
+ "barq": "./src/table.tsx",
254
+ "bun": "./src/table.tsx"
255
+ },
256
+ "./tabs": {
257
+ "types": "./src/tabs.tsx",
258
+ "barq": "./src/tabs.tsx",
259
+ "bun": "./src/tabs.tsx"
260
+ },
261
+ "./tag": {
262
+ "types": "./src/tag.tsx",
263
+ "barq": "./src/tag.tsx",
264
+ "bun": "./src/tag.tsx"
265
+ },
266
+ "./textfield": {
267
+ "types": "./src/textfield.tsx",
268
+ "barq": "./src/textfield.tsx",
269
+ "bun": "./src/textfield.tsx"
270
+ },
271
+ "./toggle": {
272
+ "types": "./src/toggle.ts",
273
+ "barq": "./src/toggle.ts",
274
+ "bun": "./src/toggle.ts"
275
+ },
276
+ "./togglegroup": {
277
+ "types": "./src/togglegroup.ts",
278
+ "barq": "./src/togglegroup.ts",
279
+ "bun": "./src/togglegroup.ts"
280
+ },
281
+ "./toolbar": {
282
+ "types": "./src/toolbar.tsx",
283
+ "barq": "./src/toolbar.tsx",
284
+ "bun": "./src/toolbar.tsx"
285
+ },
286
+ "./tooltip": {
287
+ "types": "./src/tooltip.tsx",
288
+ "barq": "./src/tooltip.tsx",
289
+ "bun": "./src/tooltip.tsx"
290
+ },
291
+ "./utils": {
292
+ "types": "./src/utils.ts",
293
+ "barq": "./src/utils.ts",
294
+ "bun": "./src/utils.ts"
295
+ },
296
+ "./validation": {
297
+ "types": "./src/validation.ts",
298
+ "barq": "./src/validation.ts",
299
+ "bun": "./src/validation.ts"
300
+ },
301
+ "./virtualizer": {
302
+ "types": "./src/virtualizer.tsx",
303
+ "barq": "./src/virtualizer.tsx",
304
+ "bun": "./src/virtualizer.tsx"
305
+ },
306
+ "./package.json": "./package.json",
307
+ "./navigation": {
308
+ "types": "./src/navigation.ts",
309
+ "barq": "./src/navigation.ts",
310
+ "bun": "./src/navigation.ts"
311
+ },
312
+ "./toast": {
313
+ "types": "./src/toast.ts",
314
+ "barq": "./src/toast.ts",
315
+ "bun": "./src/toast.ts"
316
+ }
317
+ },
318
+ "publishConfig": {
319
+ "access": "public",
320
+ "provenance": true
321
+ },
322
+ "scripts": {
323
+ "typecheck": "tsc --noEmit",
324
+ "test": "bun test --timeout 10000 && bun test --timeout 10000 --conditions=development",
325
+ "test:coverage": "bun test --timeout 10000 --coverage"
326
+ },
327
+ "devDependencies": {
328
+ "@barqjs/compiler": "0.2.0-next.0",
329
+ "@barqjs/core": "0.2.0-next.0",
330
+ "@barqjs/primitives": "0.2.0-next.0",
331
+ "@barqjs/server": "0.2.0-next.0",
332
+ "@barqjs/testing": "0.2.0-next.0",
333
+ "@barqjs/vite": "0.2.0-next.0",
334
+ "@barqjs/web": "0.2.0-next.0",
335
+ "@happy-dom/global-registrator": "^21.0.1",
336
+ "@types/bun": "^1.4.3",
337
+ "typescript": "^7.0.2"
338
+ },
339
+ "peerDependencies": {
340
+ "@barqjs/core": ">=0.2.0-next.0",
341
+ "@barqjs/primitives": ">=0.2.0-next.0",
342
+ "@barqjs/server": ">=0.2.0-next.0",
343
+ "@barqjs/web": ">=0.2.0-next.0"
344
+ },
345
+ "peerDependenciesMeta": {},
346
+ "engines": {
347
+ "bun": ">=1.1.0"
348
+ }
349
+ }