@ember-joinery/test-support 0.0.0-stage → 1.0.1

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 (285) hide show
  1. package/CHANGELOG.md +550 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +356 -2
  5. package/addon-main.cjs +4 -0
  6. package/dist/-private/checkable.d.ts +21 -0
  7. package/dist/-private/checkable.d.ts.map +1 -0
  8. package/dist/-private/checkable.js +80 -0
  9. package/dist/-private/control.d.ts +18 -0
  10. package/dist/-private/control.d.ts.map +1 -0
  11. package/dist/-private/control.js +55 -0
  12. package/dist/-private/menu.d.ts +145 -0
  13. package/dist/-private/menu.d.ts.map +1 -0
  14. package/dist/-private/menu.js +322 -0
  15. package/dist/-private/overlay.d.ts +9 -0
  16. package/dist/-private/overlay.d.ts.map +1 -0
  17. package/dist/-private/overlay.js +39 -0
  18. package/dist/-private/showing.d.ts +7 -0
  19. package/dist/-private/showing.d.ts.map +1 -0
  20. package/dist/-private/showing.js +10 -0
  21. package/dist/-private/size.d.ts +10 -0
  22. package/dist/-private/size.d.ts.map +1 -0
  23. package/dist/-private/size.js +24 -0
  24. package/dist/-private/tree.d.ts +34 -0
  25. package/dist/-private/tree.d.ts.map +1 -0
  26. package/dist/-private/tree.js +80 -0
  27. package/dist/accordion.d.ts +62 -0
  28. package/dist/accordion.d.ts.map +1 -0
  29. package/dist/accordion.js +112 -0
  30. package/dist/alert-dialog.d.ts +24 -0
  31. package/dist/alert-dialog.d.ts.map +1 -0
  32. package/dist/alert-dialog.js +37 -0
  33. package/dist/alert.d.ts +27 -0
  34. package/dist/alert.d.ts.map +1 -0
  35. package/dist/alert.js +43 -0
  36. package/dist/aspect-ratio.d.ts +21 -0
  37. package/dist/aspect-ratio.d.ts.map +1 -0
  38. package/dist/aspect-ratio.js +30 -0
  39. package/dist/attachment.d.ts +86 -0
  40. package/dist/attachment.d.ts.map +1 -0
  41. package/dist/attachment.js +156 -0
  42. package/dist/avatar.d.ts +65 -0
  43. package/dist/avatar.d.ts.map +1 -0
  44. package/dist/avatar.js +106 -0
  45. package/dist/badge.d.ts +29 -0
  46. package/dist/badge.d.ts.map +1 -0
  47. package/dist/badge.js +49 -0
  48. package/dist/breadcrumb.d.ts +36 -0
  49. package/dist/breadcrumb.d.ts.map +1 -0
  50. package/dist/breadcrumb.js +80 -0
  51. package/dist/bubble.d.ts +56 -0
  52. package/dist/bubble.d.ts.map +1 -0
  53. package/dist/bubble.js +94 -0
  54. package/dist/button-group.d.ts +34 -0
  55. package/dist/button-group.d.ts.map +1 -0
  56. package/dist/button-group.js +62 -0
  57. package/dist/button.d.ts +37 -0
  58. package/dist/button.d.ts.map +1 -0
  59. package/dist/button.js +77 -0
  60. package/dist/calendar.d.ts +115 -0
  61. package/dist/calendar.d.ts.map +1 -0
  62. package/dist/calendar.js +276 -0
  63. package/dist/card.d.ts +31 -0
  64. package/dist/card.d.ts.map +1 -0
  65. package/dist/card.js +49 -0
  66. package/dist/checkbox.d.ts +46 -0
  67. package/dist/checkbox.d.ts.map +1 -0
  68. package/dist/checkbox.js +84 -0
  69. package/dist/child.d.ts +29 -0
  70. package/dist/child.d.ts.map +1 -0
  71. package/dist/child.js +27 -0
  72. package/dist/collapsible.d.ts +44 -0
  73. package/dist/collapsible.d.ts.map +1 -0
  74. package/dist/collapsible.js +83 -0
  75. package/dist/color-scheme.d.ts +44 -0
  76. package/dist/color-scheme.d.ts.map +1 -0
  77. package/dist/color-scheme.js +123 -0
  78. package/dist/combobox.d.ts +114 -0
  79. package/dist/combobox.d.ts.map +1 -0
  80. package/dist/combobox.js +293 -0
  81. package/dist/command.d.ts +92 -0
  82. package/dist/command.d.ts.map +1 -0
  83. package/dist/command.js +183 -0
  84. package/dist/context-menu.d.ts +37 -0
  85. package/dist/context-menu.d.ts.map +1 -0
  86. package/dist/context-menu.js +59 -0
  87. package/dist/date-picker.d.ts +48 -0
  88. package/dist/date-picker.d.ts.map +1 -0
  89. package/dist/date-picker.js +136 -0
  90. package/dist/dialog.d.ts +64 -0
  91. package/dist/dialog.d.ts.map +1 -0
  92. package/dist/dialog.js +142 -0
  93. package/dist/drawer.d.ts +63 -0
  94. package/dist/drawer.d.ts.map +1 -0
  95. package/dist/drawer.js +136 -0
  96. package/dist/dropdown-menu.d.ts +35 -0
  97. package/dist/dropdown-menu.d.ts.map +1 -0
  98. package/dist/dropdown-menu.js +49 -0
  99. package/dist/empty.d.ts +29 -0
  100. package/dist/empty.d.ts.map +1 -0
  101. package/dist/empty.js +47 -0
  102. package/dist/field.d.ts +86 -0
  103. package/dist/field.d.ts.map +1 -0
  104. package/dist/field.js +150 -0
  105. package/dist/file-drop.d.ts +74 -0
  106. package/dist/file-drop.d.ts.map +1 -0
  107. package/dist/file-drop.js +137 -0
  108. package/dist/focus.d.ts +54 -0
  109. package/dist/focus.d.ts.map +1 -0
  110. package/dist/focus.js +174 -0
  111. package/dist/harness.d.ts +90 -0
  112. package/dist/harness.d.ts.map +1 -0
  113. package/dist/harness.js +189 -0
  114. package/dist/heading.d.ts +16 -0
  115. package/dist/heading.d.ts.map +1 -0
  116. package/dist/heading.js +19 -0
  117. package/dist/hero.d.ts +21 -0
  118. package/dist/hero.d.ts.map +1 -0
  119. package/dist/hero.js +28 -0
  120. package/dist/hover-card.d.ts +46 -0
  121. package/dist/hover-card.d.ts.map +1 -0
  122. package/dist/hover-card.js +85 -0
  123. package/dist/icon.d.ts +10 -0
  124. package/dist/icon.d.ts.map +1 -0
  125. package/dist/icon.js +13 -0
  126. package/dist/index.d.ts +86 -0
  127. package/dist/index.d.ts.map +1 -0
  128. package/dist/index.js +87 -0
  129. package/dist/input-group.d.ts +55 -0
  130. package/dist/input-group.d.ts.map +1 -0
  131. package/dist/input-group.js +103 -0
  132. package/dist/input-otp.d.ts +103 -0
  133. package/dist/input-otp.d.ts.map +1 -0
  134. package/dist/input-otp.js +293 -0
  135. package/dist/input.d.ts +53 -0
  136. package/dist/input.d.ts.map +1 -0
  137. package/dist/input.js +90 -0
  138. package/dist/item.d.ts +63 -0
  139. package/dist/item.d.ts.map +1 -0
  140. package/dist/item.js +104 -0
  141. package/dist/kbd.d.ts +28 -0
  142. package/dist/kbd.d.ts.map +1 -0
  143. package/dist/kbd.js +36 -0
  144. package/dist/keys.d.ts +20 -0
  145. package/dist/keys.d.ts.map +1 -0
  146. package/dist/keys.js +32 -0
  147. package/dist/label.d.ts +24 -0
  148. package/dist/label.d.ts.map +1 -0
  149. package/dist/label.js +39 -0
  150. package/dist/layers.d.ts +42 -0
  151. package/dist/layers.d.ts.map +1 -0
  152. package/dist/layers.js +70 -0
  153. package/dist/link.d.ts +44 -0
  154. package/dist/link.d.ts.map +1 -0
  155. package/dist/link.js +60 -0
  156. package/dist/marker.d.ts +42 -0
  157. package/dist/marker.d.ts.map +1 -0
  158. package/dist/marker.js +73 -0
  159. package/dist/menubar.d.ts +76 -0
  160. package/dist/menubar.d.ts.map +1 -0
  161. package/dist/menubar.js +139 -0
  162. package/dist/message-scroller.d.ts +101 -0
  163. package/dist/message-scroller.d.ts.map +1 -0
  164. package/dist/message-scroller.js +215 -0
  165. package/dist/message.d.ts +48 -0
  166. package/dist/message.d.ts.map +1 -0
  167. package/dist/message.js +72 -0
  168. package/dist/native-form.d.ts +44 -0
  169. package/dist/native-form.d.ts.map +1 -0
  170. package/dist/native-form.js +111 -0
  171. package/dist/native-select.d.ts +56 -0
  172. package/dist/native-select.d.ts.map +1 -0
  173. package/dist/native-select.js +100 -0
  174. package/dist/navigation-menu.d.ts +97 -0
  175. package/dist/navigation-menu.d.ts.map +1 -0
  176. package/dist/navigation-menu.js +207 -0
  177. package/dist/observers.d.ts +21 -0
  178. package/dist/observers.d.ts.map +1 -0
  179. package/dist/observers.js +34 -0
  180. package/dist/pagination.d.ts +39 -0
  181. package/dist/pagination.d.ts.map +1 -0
  182. package/dist/pagination.js +71 -0
  183. package/dist/pointer.d.ts +38 -0
  184. package/dist/pointer.d.ts.map +1 -0
  185. package/dist/pointer.js +82 -0
  186. package/dist/popover.d.ts +50 -0
  187. package/dist/popover.d.ts.map +1 -0
  188. package/dist/popover.js +90 -0
  189. package/dist/progress.d.ts +38 -0
  190. package/dist/progress.d.ts.map +1 -0
  191. package/dist/progress.js +81 -0
  192. package/dist/questionnaire.d.ts +117 -0
  193. package/dist/questionnaire.d.ts.map +1 -0
  194. package/dist/questionnaire.js +240 -0
  195. package/dist/radio-group.d.ts +53 -0
  196. package/dist/radio-group.d.ts.map +1 -0
  197. package/dist/radio-group.js +95 -0
  198. package/dist/rating.d.ts +67 -0
  199. package/dist/rating.d.ts.map +1 -0
  200. package/dist/rating.js +160 -0
  201. package/dist/resizable.d.ts +76 -0
  202. package/dist/resizable.d.ts.map +1 -0
  203. package/dist/resizable.js +138 -0
  204. package/dist/routing.d.ts +36 -0
  205. package/dist/routing.d.ts.map +1 -0
  206. package/dist/routing.js +50 -0
  207. package/dist/roving-focus.d.ts +38 -0
  208. package/dist/roving-focus.d.ts.map +1 -0
  209. package/dist/roving-focus.js +60 -0
  210. package/dist/scroll-area.d.ts +58 -0
  211. package/dist/scroll-area.d.ts.map +1 -0
  212. package/dist/scroll-area.js +153 -0
  213. package/dist/scroller.d.ts +41 -0
  214. package/dist/scroller.d.ts.map +1 -0
  215. package/dist/scroller.js +65 -0
  216. package/dist/select.d.ts +98 -0
  217. package/dist/select.d.ts.map +1 -0
  218. package/dist/select.js +203 -0
  219. package/dist/selectors.d.ts +44 -0
  220. package/dist/selectors.d.ts.map +1 -0
  221. package/dist/selectors.js +63 -0
  222. package/dist/send-pointer.d.ts +17 -0
  223. package/dist/send-pointer.d.ts.map +1 -0
  224. package/dist/send-pointer.js +35 -0
  225. package/dist/separator.d.ts +26 -0
  226. package/dist/separator.d.ts.map +1 -0
  227. package/dist/separator.js +40 -0
  228. package/dist/shadowed.d.ts +55 -0
  229. package/dist/shadowed.d.ts.map +1 -0
  230. package/dist/shadowed.js +97 -0
  231. package/dist/sheet.d.ts +14 -0
  232. package/dist/sheet.d.ts.map +1 -0
  233. package/dist/sheet.js +15 -0
  234. package/dist/sidebar.d.ts +159 -0
  235. package/dist/sidebar.d.ts.map +1 -0
  236. package/dist/sidebar.js +299 -0
  237. package/dist/skeleton.d.ts +18 -0
  238. package/dist/skeleton.d.ts.map +1 -0
  239. package/dist/skeleton.js +25 -0
  240. package/dist/slider.d.ts +66 -0
  241. package/dist/slider.d.ts.map +1 -0
  242. package/dist/slider.js +155 -0
  243. package/dist/spinner.d.ts +10 -0
  244. package/dist/spinner.d.ts.map +1 -0
  245. package/dist/spinner.js +13 -0
  246. package/dist/sticky-footer.d.ts +33 -0
  247. package/dist/sticky-footer.d.ts.map +1 -0
  248. package/dist/sticky-footer.js +65 -0
  249. package/dist/switch.d.ts +44 -0
  250. package/dist/switch.d.ts.map +1 -0
  251. package/dist/switch.js +77 -0
  252. package/dist/table.d.ts +41 -0
  253. package/dist/table.d.ts.map +1 -0
  254. package/dist/table.js +100 -0
  255. package/dist/tabs.d.ts +66 -0
  256. package/dist/tabs.d.ts.map +1 -0
  257. package/dist/tabs.js +149 -0
  258. package/dist/test-hooks.d.ts +9 -0
  259. package/dist/test-hooks.d.ts.map +1 -0
  260. package/dist/test-hooks.js +1 -0
  261. package/dist/textarea.d.ts +47 -0
  262. package/dist/textarea.d.ts.map +1 -0
  263. package/dist/textarea.js +78 -0
  264. package/dist/toaster.d.ts +172 -0
  265. package/dist/toaster.d.ts.map +1 -0
  266. package/dist/toaster.js +307 -0
  267. package/dist/toggle-group.d.ts +51 -0
  268. package/dist/toggle-group.d.ts.map +1 -0
  269. package/dist/toggle-group.js +97 -0
  270. package/dist/toggle.d.ts +21 -0
  271. package/dist/toggle.d.ts.map +1 -0
  272. package/dist/toggle.js +26 -0
  273. package/dist/tooltip.d.ts +48 -0
  274. package/dist/tooltip.d.ts.map +1 -0
  275. package/dist/tooltip.js +91 -0
  276. package/dist/trace.d.ts +118 -0
  277. package/dist/trace.d.ts.map +1 -0
  278. package/dist/trace.js +196 -0
  279. package/dist/translator.d.ts +34 -0
  280. package/dist/translator.d.ts.map +1 -0
  281. package/dist/translator.js +75 -0
  282. package/dist/zoetrope.d.ts +51 -0
  283. package/dist/zoetrope.d.ts.map +1 -0
  284. package/dist/zoetrope.js +94 -0
  285. package/package.json +68 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,550 @@
1
+ # @ember-joinery/test-support
2
+
3
+ ## 1.0.1
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.0.0
8
+
9
+ ### Major Changes
10
+
11
+ - a73065d: The first release of Joinery's core packages: `@ember-joinery/primitives` (headless behaviour
12
+ and utilities), `@ember-joinery/ember` (the styled components and their compiled CSS) and
13
+ `@ember-joinery/test-support` (a harness for each of them).
14
+
15
+ ### Minor Changes
16
+
17
+ - a73065d: `Accordion` is shadcn's Accordion, and `@ember-joinery/primitives/accordion` the headless one
18
+ under it, Radix's, covering ember-primitives' too: `@type="single"` (optionally `@collapsible`) or
19
+ `"multiple"`, controlled (`@value`, `@onValueChange`) or not (`@defaultValue`), disabled items or
20
+ a disabled accordion, each item a heading with a trigger (`aria-expanded`, `aria-controls`) and a
21
+ content region labelled by it, and the arrow keys, Home and End between triggers, by
22
+ `@orientation` and direction. The styled trigger draws upstream's chevrons (`@icon` and
23
+ `@openIcon` replace them), and the content animates from its measured height.
24
+ `AccordionState` and `AccordionItemState` hold the behaviour for components built on it.
25
+ `@ember-joinery/test-support` adds `AccordionHarness`.
26
+ - a73065d: `AlertDialog` is shadcn's Alert Dialog: Trigger, Content (`@size`: `default` or `sm`), Header,
27
+ Footer, Media, Title, Description, and Action and Cancel Buttons; Cancel has focus when it
28
+ opens, and a press outside doesn't close it. `@ember-joinery/test-support` adds
29
+ `AlertDialogHarness`.
30
+ - a73065d: `Alert` is shadcn's callout, with the `alert` role and a typed `@variant` (`default` or
31
+ `destructive`). It yields its parts, `Title`, `Description` and `Action`, each taking `@as`,
32
+ and a modifier for each (`<h3 {{a.title}}>`) to make your own element that part.
33
+ `@ember-joinery/test-support` adds `AlertHarness`.
34
+ - a73065d: `@ember-joinery/primitives/aspect-ratio` is Radix's AspectRatio: content held to `@ratio`,
35
+ with only the styles that hold it, set through the CSSOM. `AspectRatio` in
36
+ `@ember-joinery/ember` is shadcn's, on it. `@ember-joinery/test-support` adds
37
+ `AspectRatioHarness`.
38
+ - a73065d: `Attachment` is shadcn's Attachment: a file or image in a chat composer, a message thread or an
39
+ upload list, with `@state` (`idle`, `uploading`, `processing`, `error`, `done`), `@size`
40
+ (`default`, `sm`, `xs`), `@orientation` (`horizontal`, `vertical`), `@as`, and its parts,
41
+ yielded as components and modifiers (`Media` with `@variant`, `Content`, `Title`,
42
+ `Description`, `Actions`, `Action`, a ghost `icon-xs` Button by default, and `Trigger`, a button
43
+ or link over the whole card below the actions). `AttachmentGroup` lays attachments out in a row
44
+ that scrolls across and snaps. `@ember-joinery/test-support` adds `AttachmentHarness` and
45
+ `AttachmentGroupHarness`.
46
+ - a73065d: `Avatar` is shadcn's Avatar, with `@size` and its `Image`, `Fallback` and `Badge` parts, and
47
+ `AvatarGroup` with its `Count`. It is built on `@ember-joinery/primitives/avatar`, ember-primitives'
48
+ and Radix's headless Avatar: the image renders once it has loaded, the fallback shows until
49
+ then (after `@delayMs`) and if it fails, the URL goes on the image or the avatar, and the
50
+ avatar yields where its image is; `ImageLoader` loads an image off the page, and tests wait for
51
+ it. `@ember-joinery/test-support` adds `AvatarHarness` and `AvatarGroupHarness`.
52
+ - a73065d: `Badge` is shadcn's Badge, with a typed `@variant` (`default`, `secondary`, `destructive`,
53
+ `outline`, `ghost` or `link`), `@as` for another tag, and an `asBadge` modifier for your own
54
+ elements and components (`<LinkTo {{asBadge}}>`); `badgeClasses()` and `badgeAttributes()`
55
+ return what both render. `@ember-joinery/test-support` adds `BadgeHarness`.
56
+ - a73065d: `@ember-joinery/primitives/breadcrumb` is ember-primitives' Breadcrumb: a named `nav` around an
57
+ ordered list, yielding a `Separator` that assistive technology skips
58
+ (`breadcrumbSeparatorAria()`). `Breadcrumb` in `@ember-joinery/ember` is shadcn's, yielding
59
+ `List`, `Item`, `Link`, `Page`, `Separator` (lucide's chevron, mirrored right to left, or your
60
+ block or `@icon`) and `Ellipsis`, each also a modifier (`<LinkTo {{b.link}}>`).
61
+ `@ember-joinery/test-support` adds `BreadcrumbHarness`, which drives both.
62
+ - a73065d: `Bubble` is shadcn's Bubble: a message's surface, with its seven `@variant`s, `@align`, `@as`,
63
+ and its parts, yielded as components and modifiers: `Content` (`@as="button"` or `"a"`, or the
64
+ `content` modifier on a `LinkTo`, makes the bubble a button or a link) and `Reactions`
65
+ (`@side`, `@align`). `BubbleGroup` stacks consecutive bubbles from one sender.
66
+ `@ember-joinery/test-support` adds `BubbleHarness` and `BubbleGroupHarness`.
67
+ - a73065d: `ButtonGroup` is shadcn's Button Group: buttons joined into one control, in a row or a column
68
+ (`@orientation`), with its `Separator` (its ARIA the primitives' `separatorAria()`) and `Text`
69
+ parts; `buttonGroupClasses()` returns what it renders. `@ember-joinery/test-support` adds `ButtonGroupHarness`.
70
+ - a73065d: `Button` is shadcn's Button, with typed `@variant` and `@size`, `@as` for another tag, and a
71
+ `asButton` modifier for your own elements and components (`<LinkTo {{asButton}}>`);
72
+ `buttonClasses()` and `buttonAttributes()` return what both render. `@ember-joinery/test-support`
73
+ adds `ButtonHarness`.
74
+ - a73065d: `Calendar` is shadcn's Calendar, with Joinery's own date picking in place of React DayPicker
75
+ and no date library: `@mode` `single`, `multiple` or `range` (`@value`, `@defaultValue` and
76
+ `@onValueChange`, a `Date`, `Date[]` or `{ from, to }`), month and year dropdowns
77
+ (`@captionLayout`), several months, `@disabled`, `@hidden` and `@modifiers` matchers, week
78
+ numbers, outside days, fixed weeks, and the date grid's keys, right to left too. Names,
79
+ numbers and the week's first day come from Intl in `@locale`; `@calendar` and `@numerals` show
80
+ any calendar Intl knows, such as the Persian one. A `<:day>` block draws what each day shows.
81
+ `@ember-joinery/primitives/calendar` is the headless one, with `CalendarState` and its date
82
+ helpers, and `@ember-joinery/test-support` adds `CalendarHarness`.
83
+ - a73065d: `Card` is shadcn's card, with `@size` (`default` or `sm`) and the `--card-spacing` variable for
84
+ its spacing. It yields its parts, `Header`, `Title`, `Description`, `Action`, `Content` and
85
+ `Footer`, each taking `@as`, and a modifier for each (`<LinkTo {{c.title}}>`).
86
+ `@ember-joinery/test-support` adds `CardHarness`.
87
+ - a73065d: `Checkbox` is shadcn's Checkbox, on Radix's: `@checked`, `@defaultChecked` and
88
+ `@onCheckedChange` (controlled or not), the `'indeterminate'` state (`aria-checked="mixed"`),
89
+ `@disabled`, `@required`, and `@icon` and `@indeterminateIcon` to replace its marks. In a form, a
90
+ hidden native checkbox beside it submits its `name` and `value`, and a reset restores it.
91
+ `@ember-joinery/primitives/checkbox` is the headless one, with its `Indicator`, and
92
+ `@ember-joinery/test-support` adds `CheckboxHarness`.
93
+ - a73065d: `Collapsible` is shadcn's Collapsible, and `@ember-joinery/primitives/collapsible` the headless
94
+ one under it, Radix's: a trigger (`aria-expanded`, `aria-controls`) that shows and hides content,
95
+ controlled (`@open`, `@onOpenChange`) or not (`@defaultOpen`), with a yielded `trigger` modifier
96
+ for your own element (`<Button {{c.trigger}}>`). The content stays in the document, `hidden`
97
+ while closed, animates out through `Presence`, and is measured into
98
+ `--radix-collapsible-content-height` and `-width`; `CollapsibleState` holds the behaviour for
99
+ components built on it. Joinery's base keeps a part that is `hidden` hidden whatever `display`
100
+ a class gives it, as Tailwind's preflight does, so content laid out with `flex` stays out of the
101
+ way while closed. `Presence` now also yields `isExiting`. `@ember-joinery/test-support` adds
102
+ `CollapsibleHarness`.
103
+ - a73065d: `Combobox` is shadcn's Combobox, on Base UI's: `<Combobox @items={{…}} as |c|>` yields Input
104
+ (in its input group, with `@showTrigger`, `@showClear`, `@groupClass` for the group, and
105
+ an `Addon` it yields for an icon beside the input),
106
+ Trigger, TriggerIcon, Clear, Value, Content, List, Item, Group, Label, Collection, Empty,
107
+ Separator, Chips, Chip and ChipsInput. Typing filters `@items` (an `Intl.Collator` match anywhere in the label, or your
108
+ own `@filter`, or `@filter={{null}}` for results filtered elsewhere) and the arrow keys
109
+ highlight an item while focus stays in the input; `@multiple` shows the chosen items as chips,
110
+ `@autoHighlight` highlights the first match, and the input can sit inside the popup behind a
111
+ trigger of your own. `@ember-joinery/primitives/combobox` is the headless one, and
112
+ `@ember-joinery/test-support` adds `ComboboxHarness`.
113
+ - a73065d: `ContextMenu` is shadcn's Context Menu, on Radix's: a right click on `<c.Trigger>` (or a long
114
+ press by touch or pen) opens its content at the pointer, in place of the browser's own menu. Its
115
+ content, items, checkbox and radio items, labels, separators, shortcuts and submenus are the
116
+ Dropdown Menu's, with `context-menu` in their classes and slots, and `{{c.trigger}}` makes your
117
+ own element the trigger, styled as `<c.Trigger>` is. `@onOpenChange` tells you when
118
+ it opens and closes. `@ember-joinery/primitives/context-menu` is the headless one, and
119
+ `@ember-joinery/test-support` adds `ContextMenuHarness`, with `open(point)` for a right click and
120
+ `longPress()`.
121
+ - a73065d: `DatePickerHarness` drives a date picker, shadcn's composition of a `Popover` and a `Calendar`
122
+ (there is no date picker component of its own): a `PopoverHarness` with the `calendar` in its
123
+ content and the trigger's `text`, and `pick(day)`, `pickRange(from, to)` and `showMonth(day)`,
124
+ which open the popover, go to the day's month (by the month and year dropdowns where the
125
+ calendar has them, else the previous and next buttons) and press the day. `pickRange()` picks
126
+ just that range whatever range the calendar holds, pressing `from` until the range starts and
127
+ ends there before it presses `to`, and throws when the calendar won't take the range.
128
+ The guide's Date Picker page ports every upstream example: the demo, basic, a range over two
129
+ months, a date of birth, an input, a time picker, natural language and right to left.
130
+
131
+ An Input Group addon's margin for a button directly in it (each style's `has-[>button]` rule)
132
+ now also reaches a button inside a Popover's, Tooltip's, Hover Card's, Dialog's, Sheet's,
133
+ Drawer's, Select's or menu's root, which renders an element (display: contents) where Radix's
134
+ renders none: a date picker's calendar button, or a tooltip's or dropdown's button in an addon,
135
+ sits where upstream's does. `build-css.mjs` declares a `style-<name>` variant for each style,
136
+ which a component's hand-written rule uses to restate a sheet's per-style utilities.
137
+
138
+ - a73065d: `Dialog` is shadcn's Dialog: Trigger, Content (with its overlay and a close button,
139
+ `@showCloseButton`, `@closeLabel` and `@closeIcon`), Header, Footer (`@showCloseButton`), Title,
140
+ Description and Close, with the `trigger` and `close` modifiers for your own elements.
141
+ `@ember-joinery/test-support` adds `DialogHarness`, which follows the content into the top layer.
142
+ - a73065d: `Drawer` is shadcn's Drawer, on the headless one in `@ember-joinery/primitives/drawer`: a panel
143
+ from any edge of the screen (`@direction`), with upstream's handle, header, footer, title and
144
+ description, and vaul's snap points, nested drawers and scaled background. `joinery.css` (and
145
+ every style) ships vaul 1.1.2's CSS, which slides it in and out, with twins for right to left.
146
+ `@ember-joinery/test-support` adds `DrawerHarness`, a `DialogHarness` that drags the drawer
147
+ (`drag()`, `swipe()`, `tapHandle()`) and reads its `direction`, `side`, `activeSnapPoint`,
148
+ `offset` and `isDragging`.
149
+ - a73065d: `DropdownMenu` is shadcn's Dropdown Menu, on Radix's: `<DropdownMenu as |m|>` yields Trigger,
150
+ Content, Group, Label, Item (`@variant`, `@inset`, `@onSelect`), LinkItem, CheckboxItem,
151
+ RadioGroup, Separator, Shortcut, Sub (its Trigger and Content) and Portal, a `trigger` modifier
152
+ for your own Button (`<Button {{m.trigger}}>`), and `item` and `checkboxItem` modifiers that
153
+ style your own element as an item (a radio group's `item` and a submenu's `trigger` do the same
154
+ for theirs). The content is a menu in the top layer, below its trigger and
155
+ lined up with its start: the arrow keys, Home, End and typing move between its items, Enter or a
156
+ click selects one, Escape or a press outside closes it, and focus goes back to the trigger.
157
+ Submenus open on hover or the arrow pointing into them, and stay open while the pointer crosses
158
+ other items on its way there; as Radix's, a submenu closes (`@onOpenChange(false)`) when the
159
+ menu it is in closes or it goes away. Every part but LinkItem (always an `<a>`) takes `@as`.
160
+ Modal by default, it keeps focus and the pointer in the menu and makes the page inert. Its
161
+ state is `@open`/`@defaultOpen`/`@onOpenChange`, and it takes ember-primitives' Menu's
162
+ positioning arguments too: `<DropdownMenu @placement="top-end">` places its content, alignment
163
+ and all.
164
+ `@ember-joinery/primitives/dropdown-menu` is the headless one, covering ember-primitives' Menu
165
+ (also exported as `Menu`), and `@ember-joinery/test-support` adds `DropdownMenuHarness`, which
166
+ finds items by their text and opens submenus with `sub()`.
167
+ - a73065d: `Empty` is shadcn's empty state. It yields its parts, `Header`, `Media` (with `@variant`,
168
+ `default` or `icon`), `Title`, `Description` and `Content`, each taking `@as`, and a modifier
169
+ for each (`<img {{e.media}}>`). `@ember-joinery/test-support` adds `EmptyHarness`.
170
+ - a73065d: `Field` is shadcn's Field family: `Field` (`@orientation` `vertical`, `horizontal` or
171
+ `responsive`, `@invalid`, `@disabled`), `FieldSet`, `FieldLegend` (`@variant`), `FieldGroup`,
172
+ `FieldContent`, `FieldLabel`, `FieldTitle`, `FieldDescription`, `FieldSeparator` and
173
+ `FieldError` (its block, or `@errors`: one message, or a list of distinct ones), with an `as…`
174
+ modifier for each part that has nothing of its own to render. `@ember-joinery/test-support`
175
+ adds `FieldHarness`, `FieldSetHarness` and `FieldGroupHarness`. A radio group's items now name
176
+ their group's `id` (the caller's own, when they give one) in `data-test-jn-owner`, so
177
+ `RadioGroupHarness` finds them inside a Field or a label around them, and the checkable
178
+ harnesses count a control in a disabled `<fieldset>` as disabled.
179
+ - a73065d: `FileDrop` and `DocumentFileDrop` are ember-primitives': a zone to drop files on or press to pick
180
+ them, and a way to take files dropped anywhere on the page, filtered by `@accept` as the file
181
+ picker filters them. `@ember-joinery/primitives/file-drop` has the headless ones (with
182
+ `@disabled`, and `accepts`, `filesFrom`, `hasFiles` and `DragState` for a target of your own);
183
+ `@ember-joinery/ember`'s FileDrop is a dashed drop zone, and its DocumentFileDrop covers the page
184
+ with an overlay while files are dragged over it. `@ember-joinery/test-support` adds
185
+ `FileDropHarness`, `DocumentFileDropHarness`, and `dragFilesOver`, `dragFilesAway` and
186
+ `dropFiles`.
187
+ - a73065d: `HoverCard` is shadcn's Hover Card, on Radix's: it opens once the pointer has rested on its
188
+ trigger for `@openDelay` (or the trigger has focus), below it, centred and 4px off, and closes
189
+ `@closeDelay` after the pointer leaves both, staying open while text in it is selected; a touch
190
+ doesn't open it. `@ember-joinery/primitives/hover-card` is the headless one, and
191
+ `@ember-joinery/test-support` adds `HoverCardHarness`.
192
+ - 17c5b5c: Joinery's built-in strings can be translated. `@ember-joinery/primitives/i18n` declares the msgid
193
+ contract's `Message` and `Translator`, with `format()` (English: a `plural` by `values.count`, and
194
+ `{name}` placeholders), `translate(context, message, values?)`, which uses the app's
195
+ `translator:main` when it registers one and English otherwise, and `t`, the same for a
196
+ template. Every string the primitives show is a message in `@ember-joinery/primitives/messages`
197
+ (`joinery.<component>.<name>`) and goes through the translator; an argument still wins. Joined
198
+ strings are one message each (`Value {index} of {count}`, `Today, {date}, selected`, `Notifications
199
+ {hotkey}`), so a translation orders the words. A calendar's and a combobox's `@locale` default to
200
+ the translator's. `defaultSliderThumbLabel` takes an optional context, and `CalendarState` an
201
+ optional third argument, the component, for the same. `@ember-joinery/test-support` adds
202
+ `setupTranslator(hooks, translator)` and `pseudoTranslator`, a pseudo-locale that wraps every
203
+ string it translates.
204
+ - a73065d: `Icon` draws `lucide` icons, imported one at a time (`<Icon @icon={{ArrowUp}} />`), decorative
205
+ unless given `@label`. `@ember-joinery/test-support` adds `IconHarness`.
206
+ - a73065d: `InputGroup` is shadcn's Input Group: one input or textarea with addons beside, above or below
207
+ it, drawn as one field. It yields its `Input`, `Textarea`, `Addon` (`@align`), `Button` (`@size`,
208
+ `@variant`) and `Text`, each also a modifier for an element of your own, and `g.control` marks
209
+ a control of your own as the group's. `@ember-joinery/test-support` adds `InputGroupHarness`.
210
+ - a73065d: `InputOTP` is shadcn's Input OTP, yielding its `Group`, `Slot` and `Separator`, on a new
211
+ `@ember-joinery/primitives/input-otp`: the `input-otp` library's one invisible native input under
212
+ slots you render, which also covers ember-primitives' `OTP`. Its code is controlled or not
213
+ (`@value`, `@defaultValue`, `@onValueChange`), `@pattern` (`REGEXP_ONLY_DIGITS` and the rest)
214
+ refuses what it doesn't match, every paste goes through `@pasteTransformer`, `@onComplete` hears
215
+ a complete code, `@autoSubmit` submits its form, and a browser's autofill of a code it was sent
216
+ fills it at once. Right to left, its arrow keys follow the slots, which run from the right.
217
+ `@ember-joinery/test-support` adds `InputOTPHarness`, which types, deletes, moves the caret,
218
+ clicks, pastes and autofills as a browser does, and ember-primitives' `fillOTP`.
219
+ - a73065d: `Input` is shadcn's Input: a native `<input>` with `@value`, `@defaultValue` and
220
+ `@onValueChange`, and an `asInput` modifier for an input of your own; `inputClasses()` and
221
+ `inputAttributes()` return what both render. `@ember-joinery/test-support` adds `InputHarness`.
222
+ - a73065d: `Item` is shadcn's Item, with typed `@variant` and `@size`, `@as`, an `asItem` modifier for your
223
+ own elements and components (`<LinkTo {{asItem}}>`), and its parts, yielded and exported
224
+ (`ItemMedia`, `ItemContent`, `ItemTitle`, `ItemDescription`, `ItemActions`, `ItemHeader`,
225
+ `ItemFooter`); `itemClasses()` and `itemAttributes()` return what it renders. `ItemGroup` is a
226
+ list of items, with a `Separator`, also exported as `ItemSeparator`, whose ARIA is the
227
+ primitives' `separatorAria()`. `@ember-joinery/test-support` adds `ItemHarness` and
228
+ `ItemGroupHarness`.
229
+ - a73065d: `Kbd` and `KbdGroup` are shadcn's keyboard keys: a styled `<kbd>`, and a `<kbd>` of them for a
230
+ shortcut, each with `@as`. `@ember-joinery/test-support` adds `KbdHarness` and
231
+ `KbdGroupHarness`.
232
+ - a73065d: `@ember-joinery/primitives/label` is Radix's Label: a native `<label>` whose text a double
233
+ click doesn't select (`preventLabelSelection`, for an element of your own). `Label` in
234
+ `@ember-joinery/ember` is shadcn's, on it, with an `asLabel` modifier, and dims beside a
235
+ disabled `peer` control. `@ember-joinery/test-support` adds `LabelHarness`.
236
+ - a73065d: `Marker` is shadcn's Marker: an inline status, note, bordered row or labelled separator in a
237
+ conversation, with `@variant`, `@as`, an `asMarker` modifier for your own elements and components
238
+ (`<LinkTo {{asMarker}}>`), and its parts, yielded and exported (`MarkerIcon`, which is hidden
239
+ from assistive technology, and `MarkerContent`); `markerClasses()` and `markerAttributes()`
240
+ return what it renders, as upstream's `markerVariants`. `@ember-joinery/test-support` adds
241
+ `MarkerHarness`.
242
+ - a73065d: `Menubar` is shadcn's Menubar, on Radix's: `<Menubar as |bar|><bar.Menu as |m|>` yields a
243
+ Trigger and a Content placed as upstream's (below the trigger, at its start, 4px before it and
244
+ 8px off), with the Dropdown Menu's items, checkbox and radio items, labels, separators,
245
+ shortcuts and submenus in the menubar's classes and slots, and `trigger`, `item` and
246
+ `checkboxItem` modifiers for your own elements. Its triggers share one tab stop: the arrow keys
247
+ move between them, Enter, Space or ArrowDown open a menu on its first item, and while one is
248
+ open ArrowLeft and ArrowRight (flipped right to left) and the pointer move to the others. Which
249
+ menu is open is `@value`/`@defaultValue`/`@onValueChange`. `@ember-joinery/primitives/menubar`
250
+ is the headless one, and `@ember-joinery/test-support` adds `MenubarHarness`, whose `menu(label)`
251
+ has a Dropdown Menu harness's members for each menu.
252
+ - a73065d: `MessageScrollerProvider` is shadcn's Message Scroller: a chat transcript's scroll container that
253
+ opens a saved transcript at the start, the end or the last anchored turn (`@defaultScrollPosition`,
254
+ hidden until it gets there), settles a new `@scrollAnchor` turn near the top with a peek of the
255
+ one before (`@scrollPreviousItemPeek`), follows a streamed reply at the end with `@autoScroll`
256
+ until the reader scrolls away, keeps the reader's row in place when history is prepended, and
257
+ jumps to any row. It yields its styled parts (`Root`, `Viewport`, `Content`, `Item`, `Button`,
258
+ `Visibility`), the commands (`scrollToMessage`, `scrollToEnd`, `scrollToStart`) and the scroll
259
+ state (`scrollable`); the parts are exported on their own too (`MessageScroller`,
260
+ `MessageScrollerItem`…). `@ember-joinery/primitives/message-scroller` is the headless scroller,
261
+ `@shadcn/react`'s, with `MessageScrollerConsumer` and the `messageScrollerButton` modifier. Its
262
+ button, as upstream's, keeps a `tabindex` of your own while it is active, and a click listener of
263
+ yours runs first and can stop the scroll with `preventDefault()`; the styled one takes `@as`.
264
+ `@ember-joinery/test-support` adds `MessageScrollerHarness`.
265
+ - a73065d: `Message` is shadcn's Message: one row of a conversation, with `@align` (`start` or `end`),
266
+ `@as`, and its parts, yielded as components and modifiers (`Avatar`, `Content`, `Header`,
267
+ `Footer`). `MessageGroup` stacks consecutive messages from one sender.
268
+ `@ember-joinery/test-support` adds `MessageHarness` and `MessageGroupHarness`.
269
+ - a73065d: `NativeForm` is ember-primitives' Form, renamed so it can't clash with Formwright's `<Form>`: a
270
+ native `<form>` whose `@onChange` hears its data as an object on every input and on submit.
271
+ `dataFromEvent` reads the same object out of any form's event, converting numbers, dates,
272
+ checkboxes, radios, selects and files as form-data-utils does, and takes Joinery's button
273
+ controls in through their hidden inputs. `@ember-joinery/test-support` adds
274
+ `NativeFormHarness`, whose `pressEnter` submits the form from a field as the browser does.
275
+ - a73065d: `NativeSelect` is shadcn's Native Select: the browser's own `<select>` with a chevron (`@icon`),
276
+ typed `@size`, `@value`, `@defaultValue` and `@onValueChange`, yielding its `Option` and
277
+ `OptGroup` parts. `@ember-joinery/test-support` adds `NativeSelectHarness`.
278
+ - a73065d: `NavigationMenu` is shadcn's Navigation Menu, on Radix's: a `<nav>` whose `n.List` holds
279
+ `n.Item`s, each a `n.Link` or an `item.Trigger` and its `item.Content`. A trigger opens its
280
+ content on a click, or when the pointer rests on it (at once while another was just open); the
281
+ contents show in a viewport below the list that takes the open one's size and slides each in
282
+ from its trigger's side (`data-motion`), or below their own triggers with `@viewport={{false}}`.
283
+ Tab goes from an open trigger into its links and on, and the arrow keys, Home and End move
284
+ between triggers and links, for a trigger of your own (`{{item.trigger}}`) as for `item.Trigger`.
285
+ `n.Indicator` follows the open trigger, `n.Viewport` places the viewport yourself with
286
+ `@viewport={{false}}`, and `navigationMenuTriggerStyle()` gives a link the trigger's look, its
287
+ padding over the link's, as upstream's tailwind-merge gives it. Its state is
288
+ `@value`/`@defaultValue`/`@onValueChange`. `@ember-joinery/primitives/navigation-menu` is the
289
+ headless one, with `List`, `Item`, `Link`, `Indicator` and `Viewport`, and
290
+ `@ember-joinery/test-support` adds `NavigationMenuHarness`.
291
+ - a73065d: `Pagination` is shadcn's: a named `nav` yielding `Content`, `Item`, `Link` (`@isActive`,
292
+ `@size`), `Previous` and `Next` (`@text`, `@label`, `@icon`) and `Ellipsis`. Its links are
293
+ Buttons, ghost or, for the current page, outline with `aria-current="page"`; the `link`,
294
+ `previous` and `next` modifiers make a router's link one, and `paginationLinkClasses()` and
295
+ `paginationLinkAttributes()` return what they render. `@ember-joinery/test-support` adds
296
+ `PaginationHarness`.
297
+ - a73065d: `Popover` is shadcn's Popover, on Radix's: `<Popover as |p|>` yields Trigger, Anchor, Content,
298
+ Header, Title, Description, Close and Arrow, and a `trigger` modifier for your own Button
299
+ (`<Button {{p.trigger}}>`). The content is in the top layer while open, placed against its
300
+ trigger (centred, 4px off, flipping to stay in view), closed by Escape or a press outside, with
301
+ focus moving in and back; `@modal` keeps focus and the pointer inside, and hides the rest of
302
+ the page from assistive technology and stops it scrolling. Its state is
303
+ `@open`/`@defaultOpen`/`@onOpenChange`. `@ember-joinery/primitives/popover` is the headless
304
+ one, covering ember-primitives' Popover (`@placement`, `@offsetOptions`, `@flipOptions`,
305
+ `@shiftOptions`, `@middleware`, `@strategy`, and the `reference`, `setReference`, `arrow` and
306
+ `data` yields), and `@ember-joinery/test-support` adds `PopoverHarness`.
307
+ - a73065d: `@ember-joinery/primitives/command` adds `Command`, cmdk's command menu, headless: typing filters
308
+ the items with cmdk's command score (or `@filter`) and shows the best first, groups and
309
+ separators hide with nothing to show, Empty shows when nothing matches, and the arrows, Home and
310
+ End, Ctrl+N/J/P/K and Alt+arrow move the selection while focus stays in the input; Enter clicks
311
+ the selected item. It covers ember-primitives' CommandPalette too: `@search` and
312
+ `@onSearchChange`, `@onSelect`, `@hotkey` and `@onOpen`, link items, and a `role="status"` that
313
+ announces the result count (`@resultsText`). `CommandDialog` puts a Command in a modal dialog,
314
+ with a `@hotkey` that opens and closes it. `@ember-joinery/test-support` adds `CommandHarness`
315
+ and `CommandDialogHarness`.
316
+ - a73065d: ember-primitives' components that shadcn has no counterpart for, one subpath export each:
317
+ `scroller` (`Scroller`, which yields `scrollToTop`, `scrollToBottom`, `scrollToLeft`,
318
+ `scrollToRight`, `scrollToStart` and `scrollToEnd`), `zoetrope` (`Zoetrope`: a row that scrolls a
319
+ page at a time, instantly for reduced motion, right to left too, and without trapping Tab),
320
+ `hero` (`Hero`), `sticky-footer` (`StickyFooter`), `link` (`Link`, active-aware, with
321
+ `aria-current` and `data-active`), `external-link` (`ExternalLink`), `heading` (`Heading`, whose
322
+ level comes from the sections around it, and `getSectionHeadingLevel`), `incremental-each`
323
+ (`IncrementalEach`, which renders a long list a batch at a time) and `shadowed` (`Shadowed`, a
324
+ shadow root, with `@includeStyles`). The layouts bring their own rules, in `@layer joinery`, with
325
+ nothing to import; an app with CSS layers of its own names `joinery` ahead of them, as
326
+ joinery.css and the Tailwind setup do, for its layers to win. `@ember-joinery/test-support` adds `ScrollerHarness`, `ZoetropeHarness`,
327
+ `HeroHarness`, `StickyFooterHarness`, `LinkHarness`, `ExternalLinkHarness`, `HeadingHarness` and
328
+ `ShadowedHarness`, ember-primitives' shadow DOM helpers (`findInShadow`, `findShadow`,
329
+ `findInFirstShadow`, `hasShadowRoot`), and `data-test-jn-wrapper`: a component that wraps your
330
+ content marks its root with it, and the parts inside belong to the component around it.
331
+ - a73065d: Focus, one subpath export each, ported from Radix and covering what ember-primitives gets from
332
+ tabster, with nothing to set up: `focus-scope` (`FocusScope`, `{{focusScope}}` and
333
+ `createFocusScope`: focus moves in, can be trapped or loop, and returns when the scope goes;
334
+ scopes stack, and trapped ones add focus guards), `roving-focus` (`RovingFocusGroup` and
335
+ `RovingFocus`: one tab stop, the arrow keys, Home and End, right to left, loop, a remembered and
336
+ an active item, a controlled tab stop), `typeahead` (`{{typeahead}}`, `Typeahead`,
337
+ `getNextMatch`) and `focus` (`focusable` queries, `focusFirst`, `focusElement`, and
338
+ `{{restoreFocus}}`, which keeps focus from falling to `<body>` when its element is removed).
339
+ `@ember-joinery/test-support` adds `tab()`, `tabOrder()`, `pressKey()`, `typeKeys()` and
340
+ `RovingFocusGroupHarness`.
341
+ - a73065d: The primitives' foundations, one subpath export each: `controllable-state` (Radix's
342
+ controlled-or-uncontrolled pattern, as `controllable(this, 'open', false)`), `id` (`idFor`, the
343
+ ids a component's parts share; one-off ids use Ember's own `uniqueId`), `direction`
344
+ (`DirectionProvider` and `getDirection`), `as` and `part` (the `@as` tag swap and the part
345
+ modifiers that let any element, `LinkTo` included, be a part), `presence` (keeps a part mounted
346
+ through its exit animation), `visually-hidden` (`VisuallyHidden` and `{{visuallyHidden}}`),
347
+ `keys` (`Key` and `KeyCombo`), `color-scheme` (system, light or dark, saved, synced across tabs,
348
+ applied to `<html>`; replaces next-themes) and `service` (one instance per owner, for app-wide
349
+ state that tests must not share). `@ember-joinery/test-support` adds `KeyHarness`,
350
+ `KeyComboHarness` and `setupColorScheme`.
351
+ - a73065d: Layering, anchoring, portals and dismissal, one subpath export each. `layer`: `{{topLayer}}`
352
+ puts an element in the browser's top layer with the Popover API (`popover="manual"`, or `auto`
353
+ for the browser's light dismiss), nested layers always above their parents. `anchor`:
354
+ `anchorTo`, `FloatingUI` and `anchor()` place an element against another with CSS anchor
355
+ positioning where the browser has it and Floating UI (offset, flip, shift, size, arrow, hide)
356
+ otherwise or when `globalThis.JOINERY_ANCHOR_FALLBACK` is set, taking both Radix's Popper
357
+ arguments and ember-primitives' floating-ui ones, setting `data-side`, `data-align` and the
358
+ `--jn-anchor-*` custom properties; with ember-primitives' `exposeMetadata` and `flipTo`
359
+ middleware. `dismiss`: the dismiss stack (`{{dismissable}}`, `{{dismissableBranch}}`,
360
+ `registerDismissable`), as Radix's `DismissableLayer`: Escape closes only the top layer, and
361
+ pointers and focus outside close the layers they leave, nested layers counting as inside their
362
+ parents. `portal`: ember-primitives' `Portal`, `PortalTargets`, `PortalTarget` and `wormhole`,
363
+ with `<body>` as Radix's default target. `@ember-joinery/test-support` adds `press`,
364
+ `pressOutside`, `pressEscape`, `isInTopLayer`, `placementOf` and `setupAnchorFallback`.
365
+ - a73065d: ember-primitives' app utilities, one subpath export each: `store` (`createStore`, one instance
366
+ per context, owner or none, with `findOwner` and `isOwner`), `service` (now also `(service "router")` for a
367
+ registered service, and `asyncService` for one loaded on demand), `head` (`InHead`),
368
+ `body-class` (`{{bodyClass}}`), `iframe` (`inIframe`, `notInIframe`), `load` (a component that
369
+ loads another), `qp` (`qp`, `withQP`, `castToBoolean`), `link-helper` (the `link` helper:
370
+ external, active, and a routed click, with `isExternalLink`, `isActiveLink` and
371
+ `dynamicSegments`), `proper-links` (`@properLinks`, `setupProperLinks`,
372
+ `shouldHandle`), `viewport` (`viewport()` and `InViewport`), `on-resize` (`{{onResize}}`),
373
+ `resize-observer` (`resizeObserver()` and `ignoreROError`), `dom-context` (`Provide` and `Consume`) and `narrowing` (`isString`,
374
+ `isElement`, `isNewable`, `isNonNullableObject`, `Newable`). `@ember-joinery/test-support` adds `setupRouting` and
375
+ `getRouter`, and `waitForObservers` and `scrollIntoView` for what the observers report.
376
+ - a73065d: `@ember-joinery/primitives/progress` is ember-primitives' and Radix's Progress: a
377
+ `progressbar` with its value, max and `@getValueLabel` text in ARIA and data attributes,
378
+ indeterminate without a value, clamping out-of-range values, and yielding an `Indicator` and
379
+ the value, percent and state; `resolveProgress()` returns what it renders. `Progress` in
380
+ `@ember-joinery/ember` is shadcn's, on it, and announces its value, which upstream's leaves off.
381
+ `@ember-joinery/test-support` adds `ProgressHarness`.
382
+ - a73065d: `Questionnaire` is shadcn's Questionnaire: a multi-step native form of single-choice,
383
+ multiple-choice, freeform and skippable questions, with progress, validation (its own, or yours
384
+ through `@invalid` and `@message`), navigation buttons that show where they apply, letter or
385
+ number shortcuts, the keyboard of upstream's (arrows between answers and items, flipped right to
386
+ left; `Enter` and `Meta+Enter` to confirm), a controlled or uncontrolled active item
387
+ (`@item`, `@defaultItem`, `@onItemChange`; an item that no longer applies gives way to the
388
+ first, and `@onItemChange` hears it), controlled or default answers (a freeform `Input` takes
389
+ `@value` and `@onValueChange`), a reset that puts them back, development warnings where `@items`
390
+ and the rendered items part, `@as` on every part, and the navigation buttons as modifiers
391
+ (`{{q.next}}`). Its behaviour is `@ember-joinery/primitives/questionnaire`, @shadcn/react's headless
392
+ Questionnaire, whose state classes put their parts on any element, so a card's or a dialog's
393
+ title can be the question (`{{i.title}}`). `@ember-joinery/test-support` adds
394
+ `QuestionnaireHarness`.
395
+ - a73065d: `RadioGroup` is shadcn's Radio Group, on Radix's: it yields its `Item`s, which share one tab
396
+ stop, and an arrow key moves focus and the choice, going round (`@loop`) and flipping right to
397
+ left. `@value`, `@defaultValue` and `@onValueChange`, `@disabled` on the group or an item,
398
+ `@required`, `@orientation`, and `@formName` for the hidden native radios it submits in a form.
399
+ `@ember-joinery/primitives/radio-group` is the headless one, and `@ember-joinery/test-support`
400
+ adds `RadioGroupHarness`.
401
+ - a73065d: `Rating` is ember-primitives' Rating: a `<fieldset role="radiogroup">` of native radios,
402
+ controlled or not (`@value`, `@defaultValue`, `@onValueChange`), with `@max`, half ratings
403
+ through `@step`, `@readonly`, a display-only mode (`@interactive={{false}}`) that summarises
404
+ itself, and its strings as arguments (`@itemLabel`, `@summary`).
405
+ `@ember-joinery/primitives/rating` is the headless one, whose block lays it out with `Stars`,
406
+ `Item` and `Range`; `@ember-joinery/ember`'s draws lucide's Star in shadcn's terms, in three
407
+ sizes, with half stars. `@ember-joinery/test-support` adds `RatingHarness`, which reads each
408
+ item's state (`stars`) and its icon's text (`starTexts`), and picks a value between the items on
409
+ a range or number input.
410
+ - a73065d: `ResizablePanelGroup`, `ResizablePanel` and `ResizableHandle` are shadcn's Resizable: panel
411
+ groups side by side or stacked, nested, with handles a pointer drags and the keyboard moves (APG's
412
+ window splitter), sizes in percent, pixels or font units, collapsible panels, and a layout to save
413
+ (`@defaultLayout`, `@onLayoutChanged`). They sit on `Resizable`, `ResizablePanel` and
414
+ `ResizableHandle` from `@ember-joinery/primitives/resizable`, which follow react-resizable-panels'
415
+ API and cover ember-primitives' `Resizable`. `@ember-joinery/test-support` adds
416
+ `ResizableHarness`, and `sendPointer()` for real pointer events.
417
+ - a73065d: `ScrollArea` and `ScrollBar` are shadcn's Scroll Area: native scrolling with scrollbars of the
418
+ style's drawing, which show while the pointer is over the area (`@type` for `scroll`, `auto` or
419
+ `always`). They sit on `ScrollArea` from `@ember-joinery/primitives/scroll-area`, Radix's, with
420
+ its viewport, scrollbars, thumbs and corner as parts. `@ember-joinery/test-support` adds
421
+ `ScrollAreaHarness`.
422
+ - a73065d: `Select` is shadcn's Select, on Radix's: `<Select as |s|>` yields Trigger (`@size`), Value
423
+ (`@placeholder`), Content, Group, Label, Item, Separator and Arrow, and a `trigger` modifier.
424
+ The list opens over its trigger with the chosen option on the value (`item-aligned`, the
425
+ default) or below it (`@position="popper"`), with scroll buttons while it scrolls, typeahead on
426
+ the closed trigger and in the list, focus kept inside and the rest of the page inert while it
427
+ is open, a hidden native `<select>` named `@formName` in a form, and a trigger a Field sizes
428
+ as it does upstream's. Its state is
429
+ `@value`/`@defaultValue`/`@onValueChange` and `@open`/`@defaultOpen`/`@onOpenChange`.
430
+ `@ember-joinery/primitives/select` is the headless one, and `@ember-joinery/test-support`
431
+ adds `SelectHarness`.
432
+ - a73065d: `@ember-joinery/primitives/separator` is ember-primitives' and Radix's Separator: an `<hr>` by
433
+ default or any tag with `@as`, `@orientation`, and `@decorative` (`role="none"` and
434
+ `aria-hidden`); `separatorAria()` returns its ARIA. `Separator` in `@ember-joinery/ember` is
435
+ shadcn's, on it (a decorative `div` unless told otherwise), with an `asSeparator` modifier.
436
+ `@ember-joinery/test-support` adds `SeparatorHarness`.
437
+ - a73065d: `Sheet` is shadcn's Sheet: a Dialog whose Content comes in from an edge of the screen (`@side`:
438
+ `top`, `right`, `bottom` or `left`). `@ember-joinery/test-support` adds `SheetHarness`.
439
+ - a73065d: `SidebarProvider` is shadcn's Sidebar: `<SidebarProvider as |sidebar|>` yields the `Sidebar`
440
+ (`@side`, `@variant` of `sidebar`, `floating` or `inset`, and `@collapsible` of `offcanvas`,
441
+ `icon` or `none`), its Header, Content, Footer, Group (Label, Action, Content), Menu (Item,
442
+ Button, Action, Badge, Skeleton, Sub, SubItem, SubButton), Input, Separator, Rail, Inset and
443
+ Trigger, a modifier for each part (`<LinkTo {{sidebar.menuButton isActive=true}}>`), and what
444
+ upstream's `useSidebar()` returns (`state`, `open`, `setOpen`, `openMobile`, `setOpenMobile`,
445
+ `isMobile`, `toggleSidebar`). Its state is its own (`@defaultOpen`) or yours (`@open`,
446
+ `@onOpenChange`); the trigger, the rail and ⌘B/Ctrl+B (`@keyboardShortcut`) toggle it; each
447
+ change is kept in upstream's `sidebar_state` cookie, which `sidebarStateFromCookie()` reads back;
448
+ and below 768px wide (`@mobileBreakpoint`, measured in the window it renders in) it is a Sheet
449
+ with its own open state. A menu button's `@tooltip` names it while the sidebar is collapsed to
450
+ its icons. The trigger adds `aria-expanded`, which upstream's lacks, and keeps a ghost Button's
451
+ resting look while the sidebar is open. Slid off the screen (`offcanvas`), the sidebar hides
452
+ its items from the Tab key and screen readers, which upstream's leaves focusable off the
453
+ screen, and focus inside it goes to the trigger as it closes. `<UseSidebar as |sidebar|>` yields
454
+ the same from the nearest provider around it, as upstream's `useSidebar()` does, so a routed
455
+ page reaches the sidebar without its block params.
456
+ `@ember-joinery/test-support` adds `SidebarHarness`, `SidebarMenuButtonHarness` and
457
+ `SidebarMenuSubButtonHarness`. A floating part's content now also sees Radix Popper's own
458
+ custom properties (`--radix-popper-anchor-width` and the rest), which upstream's sidebar
459
+ examples size their menus by.
460
+ - a73065d: `Skeleton` is shadcn's loading placeholder: a pulsing, rounded block in `--muted`, sized with
461
+ classes or CSS of your own, with `@as`. `@ember-joinery/test-support` adds `SkeletonHarness`.
462
+ - a73065d: `Slider` is shadcn's Slider, on a new headless `Slider` in `@ember-joinery/primitives/slider`
463
+ (Radix's, covering ember-primitives' too): one `role="slider"` thumb per value, ranges and
464
+ multiple thumbs that pass each other (`@minStepsBetweenThumbs` keeps them apart), a `@step`
465
+ array that snaps to its values, vertical and inverted sliders, right to left through logical
466
+ edges, the APG keys, the pointer, `@onValueCommit`, `@getThumbLabel`, and hidden form inputs
467
+ with `@fieldName`. `@ember-joinery/test-support` adds `SliderHarness`.
468
+ - a73065d: `Spinner` is shadcn's loading indicator: lucide's `loader-circle`, turning, with the `status`
469
+ role, `@label` (`Loading` by default) and `@icon` to turn another icon.
470
+ `@ember-joinery/test-support` adds `SpinnerHarness`.
471
+ - a73065d: `Switch` is shadcn's Switch, on Radix's, in its `default` and `sm` sizes: `@checked`,
472
+ `@defaultChecked` and `@onCheckedChange`, `@disabled` and `@required`, and a block that renders
473
+ inside the thumb (an icon, say). In a form, a hidden native checkbox beside it submits its
474
+ `name` and `value`. `@ember-joinery/primitives/switch` is the headless one, covering
475
+ ember-primitives' `Switch`, with a `Thumb` you render yourself, and
476
+ `@ember-joinery/test-support` adds `SwitchHarness`.
477
+ - a73065d: `Table` is shadcn's responsive table: a native `<table>` in a container that scrolls it
478
+ sideways, yielding `Header`, `Body`, `Footer`, `Row`, `Head`, `Cell` and `Caption`, each also a
479
+ modifier for an element of your own (`<tr {{t.row}}>`), each taking `@as`. While the table is
480
+ wider than its container and has nothing to focus, the container joins the tab order, so the
481
+ keyboard can scroll it. `@ember-joinery/test-support` adds `TableHarness`.
482
+ - a73065d: `Tabs` is shadcn's Tabs (`t.List` with `@variant="default"` or `"line"`, `t.Trigger`,
483
+ `t.Content`, and `@orientation="vertical"`), on a new headless `Tabs` and `TabsState` in
484
+ `@ember-joinery/primitives/tabs`, which covers ember-primitives' Tabs too: controlled or not
485
+ (`@value`, `@defaultValue`, and `@onValueChange`, which also hears the value before), the first
486
+ tab selected when no value is given, automatic or manual activation, one tab stop with the arrow
487
+ keys along the orientation (flipped right to left, wrapping unless `@loop={{false}}`), link tabs
488
+ on `<a href>` or `LinkTo` that focus never selects, and the `t.list`, `t.trigger` and
489
+ `t.content` modifiers for your own elements. `@ember-joinery/test-support` adds `TabsHarness`.
490
+ - a73065d: The harness base: `Harness` finds a component by `data-test-jn` and `data-test-jn-name` on
491
+ every read, reaches its parts through `data-test-jn-part` (following `data-test-jn-owner` into
492
+ the top layer and portals), and fails clearly when pointed at another component. `@child`
493
+ declares child harnesses, created once and kept, with legacy or standard decorators; `find()`
494
+ and `findAll()` make one-off lookups; and `selectors` and `attributes` cover the
495
+ `data-test-jn-*` attributes.
496
+ - a73065d: `Textarea` is shadcn's Textarea: a native `<textarea>` that grows with its text, with `@value`,
497
+ `@defaultValue` and `@onValueChange`, and an `asTextarea` modifier for a textarea of your own.
498
+ `@ember-joinery/test-support` adds `TextareaHarness`.
499
+ - a73065d: Toasts, as shadcn's Sonner: sonner 2.0.7 ported. `@ember-joinery/primitives/toast` has
500
+ `toast()` with sonner's methods (`success`, `info`, `warning`, `error`, `loading`, `message`,
501
+ `custom`, `promise`, `dismiss`, `getHistory`, `getToasts`), kept per owner in a `Toasts`
502
+ service so each app and each test has its own (`toastsFor(this)`), and a headless `Toaster`
503
+ with sonner's arguments, markup and data attributes: positions, the stack (three visible,
504
+ expanding on hover, keyboard focus or Alt+T), timers that pause, swipe to dismiss, rich colours,
505
+ close, action and cancel buttons. A new toast reaches the Toasters a microtask later, as
506
+ sonner's does, so `toast()` can be called while a page renders, and `toast.dismiss()` takes
507
+ what `toast.promise()` returns (`{ id, unwrap }`) as well as an id. Its lists are in the top
508
+ layer, so toasts show above dialogs, and are dismissable branches. `@ember-joinery/ember` adds
509
+ `Toaster`, upstream's: lucide's icons, the popover tokens and the theme's radius, a theme that
510
+ follows `.dark`, and sonner's CSS in `joinery.css`; it exports `toast` and `toastsFor` too.
511
+ `@ember-joinery/test-support` adds `ToasterHarness`, `ToastHarness` and `setupToaster(hooks)`.
512
+ sonner's MIT notice is in `NOTICE` and in the built JavaScript and CSS that carry its code.
513
+ - a73065d: `ToggleGroup` is shadcn's Toggle Group (`@type="single"` or `"multiple"`, `@variant`, `@size`,
514
+ `@spacing` and `@orientation` for every item), on a new headless `ToggleGroup` and
515
+ `ToggleGroupState` in `@ember-joinery/primitives/toggle-group`: one tab stop with the arrow keys
516
+ moving between items, radios in a single group and toggle buttons in a multiple one, and an
517
+ item modifier, `g.item`, for your own elements. `@ember-joinery/test-support` adds
518
+ `ToggleGroupHarness`.
519
+ - a73065d: `Toggle` is shadcn's Toggle, with typed `@variant` and `@size`, on a new headless `Toggle` in
520
+ `@ember-joinery/primitives/toggle` (`aria-pressed` and `data-state`, controlled with `@pressed`
521
+ or not with `@defaultPressed`); the `asToggle` modifier makes your own element a toggle, and
522
+ `toggleClasses()` and `toggleAttributes()` return its look. `@ember-joinery/test-support` adds
523
+ `ToggleHarness`.
524
+ - a73065d: `Tooltip` and `TooltipProvider` are shadcn's, on Radix's: a tooltip opens when the pointer
525
+ rests on its trigger (at once by default, as in shadcn's provider) or on focus, describes the
526
+ trigger through `aria-describedby`, lets the pointer cross onto it, and closes on blur, a
527
+ press, Escape or the pointer leaving; it draws its arrow. A provider's tooltips share its
528
+ `@delayDuration`, and the next opens at once just after one closed; tooltips need no provider.
529
+ `@ember-joinery/primitives/tooltip` is the headless pair, and `@ember-joinery/test-support`
530
+ adds `TooltipHarness` and the `hover()` and `unhover()` pointer helpers.
531
+ - a73065d: `Trace` is shadcn's Trace, the building block for reasoning, tool calls and sources: a list of
532
+ `TraceLine`s (an icon, a title, a description, and `@status` `running`, `error` or `pending`,
533
+ which colours, dims or shimmers it), whose parts are yielded and exported (`TraceIcon`,
534
+ `TraceTitle`, `TraceDescription`), and `TraceCollapsible`, a row that expands, with its trigger
535
+ (a chevron after the line that turns as it opens, which `@icon` replaces) and its content,
536
+ controlled (`@open`, `@onOpenChange`) or not (`@defaultOpen`). A trace styles any link or
537
+ trigger that wraps a line, a Dialog's, Sheet's, Drawer's, Popover's or menu's trigger included
538
+ (through the root those render, which upstream's Radix roots don't). `@ember-joinery/test-support`
539
+ adds `TraceHarness`, `TraceLineHarness` and `TraceCollapsibleHarness`.
540
+
541
+ ### Patch Changes
542
+
543
+ - a53c07b: Type checks in package source use `@sindresorhus/is` (`isString`, `isFunction`, …) instead of `typeof`, and a lint rule keeps it that way. `@sindresorhus/is` is a new runtime dependency, so `ember-joinery add` now installs it into the app for most components, `icon` included. `isNumber` rejects `NaN`, so a `NaN` reaching a numeric check now takes the non-number branch.
544
+ - a73065d: `CollapsibleHarness` finds content that sits inside another component, as upstream's settings
545
+ panel puts its `CollapsibleContent` inside a `FieldGroup`: when the content isn't among its own
546
+ parts, `content` (and with it `isShown`, `text` and `controlsContent`) is the element the
547
+ trigger's `aria-controls` names.
548
+ - a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
549
+ notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
550
+ from the repository's root by the package's `prepack`.
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Joe Gaudet
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.