@ember-joinery/primitives 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +480 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +11 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/combobox-list.d.ts +59 -0
- package/declarations/-private/combobox-list.d.ts.map +1 -0
- package/declarations/-private/command-score.d.ts +33 -0
- package/declarations/-private/command-score.d.ts.map +1 -0
- package/declarations/-private/delay-group.d.ts +47 -0
- package/declarations/-private/delay-group.d.ts.map +1 -0
- package/declarations/-private/dialog.d.ts +180 -0
- package/declarations/-private/dialog.d.ts.map +1 -0
- package/declarations/-private/form-control.d.ts +70 -0
- package/declarations/-private/form-control.d.ts.map +1 -0
- package/declarations/-private/form-data.d.ts +14 -0
- package/declarations/-private/form-data.d.ts.map +1 -0
- package/declarations/-private/hover-intent.d.ts +48 -0
- package/declarations/-private/hover-intent.d.ts.map +1 -0
- package/declarations/-private/image-loading.d.ts +77 -0
- package/declarations/-private/image-loading.d.ts.map +1 -0
- package/declarations/-private/indicator.d.ts +27 -0
- package/declarations/-private/indicator.d.ts.map +1 -0
- package/declarations/-private/instances.d.ts +11 -0
- package/declarations/-private/instances.d.ts.map +1 -0
- package/declarations/-private/layout-styles.d.ts +34 -0
- package/declarations/-private/layout-styles.d.ts.map +1 -0
- package/declarations/-private/menu.d.ts +616 -0
- package/declarations/-private/menu.d.ts.map +1 -0
- package/declarations/-private/observers.d.ts +35 -0
- package/declarations/-private/observers.d.ts.map +1 -0
- package/declarations/-private/popper.d.ts +149 -0
- package/declarations/-private/popper.d.ts.map +1 -0
- package/declarations/-private/presence-chart.d.ts +39 -0
- package/declarations/-private/presence-chart.d.ts.map +1 -0
- package/declarations/-private/promise-state.d.ts +41 -0
- package/declarations/-private/promise-state.d.ts.map +1 -0
- package/declarations/-private/scroll-end.d.ts +16 -0
- package/declarations/-private/scroll-end.d.ts.map +1 -0
- package/declarations/-private/scroll-visibility.d.ts +68 -0
- package/declarations/-private/scroll-visibility.d.ts.map +1 -0
- package/declarations/-private/toast.d.ts +119 -0
- package/declarations/-private/toast.d.ts.map +1 -0
- package/declarations/-private/typeahead-search.d.ts +29 -0
- package/declarations/-private/typeahead-search.d.ts.map +1 -0
- package/declarations/accordion.d.ts +284 -0
- package/declarations/accordion.d.ts.map +1 -0
- package/declarations/alert-dialog.d.ts +80 -0
- package/declarations/alert-dialog.d.ts.map +1 -0
- package/declarations/anchor/component.d.ts +63 -0
- package/declarations/anchor/component.d.ts.map +1 -0
- package/declarations/anchor/index.d.ts +7 -0
- package/declarations/anchor/index.d.ts.map +1 -0
- package/declarations/anchor/middleware.d.ts +46 -0
- package/declarations/anchor/middleware.d.ts.map +1 -0
- package/declarations/anchor/modifier.d.ts +34 -0
- package/declarations/anchor/modifier.d.ts.map +1 -0
- package/declarations/anchor/options.d.ts +112 -0
- package/declarations/anchor/options.d.ts.map +1 -0
- package/declarations/anchor/position.d.ts +36 -0
- package/declarations/anchor/position.d.ts.map +1 -0
- package/declarations/anchor.d.ts +2 -0
- package/declarations/as.d.ts +33 -0
- package/declarations/as.d.ts.map +1 -0
- package/declarations/aspect-ratio.d.ts +34 -0
- package/declarations/aspect-ratio.d.ts.map +1 -0
- package/declarations/avatar.d.ts +178 -0
- package/declarations/avatar.d.ts.map +1 -0
- package/declarations/body-class.d.ts +30 -0
- package/declarations/body-class.d.ts.map +1 -0
- package/declarations/breadcrumb.d.ts +64 -0
- package/declarations/breadcrumb.d.ts.map +1 -0
- package/declarations/calendar/dates.d.ts +142 -0
- package/declarations/calendar/dates.d.ts.map +1 -0
- package/declarations/calendar/index.d.ts +59 -0
- package/declarations/calendar/index.d.ts.map +1 -0
- package/declarations/calendar/state.d.ts +415 -0
- package/declarations/calendar/state.d.ts.map +1 -0
- package/declarations/calendar.d.ts +3 -0
- package/declarations/checkbox.d.ts +71 -0
- package/declarations/checkbox.d.ts.map +1 -0
- package/declarations/collapsible.d.ts +216 -0
- package/declarations/collapsible.d.ts.map +1 -0
- package/declarations/color-scheme.d.ts +115 -0
- package/declarations/color-scheme.d.ts.map +1 -0
- package/declarations/combobox.d.ts +569 -0
- package/declarations/combobox.d.ts.map +1 -0
- package/declarations/command.d.ts +410 -0
- package/declarations/command.d.ts.map +1 -0
- package/declarations/context-menu.d.ts +155 -0
- package/declarations/context-menu.d.ts.map +1 -0
- package/declarations/controllable-state.d.ts +85 -0
- package/declarations/controllable-state.d.ts.map +1 -0
- package/declarations/dialog.d.ts +80 -0
- package/declarations/dialog.d.ts.map +1 -0
- package/declarations/direction.d.ts +55 -0
- package/declarations/direction.d.ts.map +1 -0
- package/declarations/dismiss.d.ts +111 -0
- package/declarations/dismiss.d.ts.map +1 -0
- package/declarations/dom-context.d.ts +74 -0
- package/declarations/dom-context.d.ts.map +1 -0
- package/declarations/drawer/controller.d.ts +174 -0
- package/declarations/drawer/controller.d.ts.map +1 -0
- package/declarations/drawer/index.d.ts +105 -0
- package/declarations/drawer/index.d.ts.map +1 -0
- package/declarations/drawer/machine.d.ts +139 -0
- package/declarations/drawer/machine.d.ts.map +1 -0
- package/declarations/drawer/parts.d.ts +85 -0
- package/declarations/drawer/parts.d.ts.map +1 -0
- package/declarations/drawer.d.ts +2 -0
- package/declarations/dropdown-menu.d.ts +169 -0
- package/declarations/dropdown-menu.d.ts.map +1 -0
- package/declarations/external-link.d.ts +26 -0
- package/declarations/external-link.d.ts.map +1 -0
- package/declarations/file-drop.d.ts +119 -0
- package/declarations/file-drop.d.ts.map +1 -0
- package/declarations/focus-scope.d.ts +105 -0
- package/declarations/focus-scope.d.ts.map +1 -0
- package/declarations/focus.d.ts +114 -0
- package/declarations/focus.d.ts.map +1 -0
- package/declarations/head.d.ts +20 -0
- package/declarations/head.d.ts.map +1 -0
- package/declarations/heading.d.ts +59 -0
- package/declarations/heading.d.ts.map +1 -0
- package/declarations/hero.d.ts +32 -0
- package/declarations/hero.d.ts.map +1 -0
- package/declarations/hide-others.d.ts +35 -0
- package/declarations/hide-others.d.ts.map +1 -0
- package/declarations/hover-card.d.ts +148 -0
- package/declarations/hover-card.d.ts.map +1 -0
- package/declarations/i18n.d.ts +47 -0
- package/declarations/i18n.d.ts.map +1 -0
- package/declarations/id.d.ts +15 -0
- package/declarations/id.d.ts.map +1 -0
- package/declarations/iframe.d.ts +12 -0
- package/declarations/iframe.d.ts.map +1 -0
- package/declarations/incremental-each.d.ts +81 -0
- package/declarations/incremental-each.d.ts.map +1 -0
- package/declarations/index.d.ts +108 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/input-otp.d.ts +201 -0
- package/declarations/input-otp.d.ts.map +1 -0
- package/declarations/keys.d.ts +50 -0
- package/declarations/keys.d.ts.map +1 -0
- package/declarations/label.d.ts +36 -0
- package/declarations/label.d.ts.map +1 -0
- package/declarations/layer.d.ts +56 -0
- package/declarations/layer.d.ts.map +1 -0
- package/declarations/link-helper.d.ts +73 -0
- package/declarations/link-helper.d.ts.map +1 -0
- package/declarations/link.d.ts +60 -0
- package/declarations/link.d.ts.map +1 -0
- package/declarations/load.d.ts +47 -0
- package/declarations/load.d.ts.map +1 -0
- package/declarations/menubar.d.ts +231 -0
- package/declarations/menubar.d.ts.map +1 -0
- package/declarations/message-scroller/components.d.ts +229 -0
- package/declarations/message-scroller/components.d.ts.map +1 -0
- package/declarations/message-scroller/geometry.d.ts +95 -0
- package/declarations/message-scroller/geometry.d.ts.map +1 -0
- package/declarations/message-scroller/index.d.ts +4 -0
- package/declarations/message-scroller/index.d.ts.map +1 -0
- package/declarations/message-scroller/state.d.ts +124 -0
- package/declarations/message-scroller/state.d.ts.map +1 -0
- package/declarations/message-scroller.d.ts +2 -0
- package/declarations/messages.d.ts +166 -0
- package/declarations/messages.d.ts.map +1 -0
- package/declarations/narrowing.d.ts +24 -0
- package/declarations/narrowing.d.ts.map +1 -0
- package/declarations/native-form.d.ts +56 -0
- package/declarations/native-form.d.ts.map +1 -0
- package/declarations/native-value.d.ts +47 -0
- package/declarations/native-value.d.ts.map +1 -0
- package/declarations/navigation-menu.d.ts +406 -0
- package/declarations/navigation-menu.d.ts.map +1 -0
- package/declarations/on-resize.d.ts +32 -0
- package/declarations/on-resize.d.ts.map +1 -0
- package/declarations/part.d.ts +99 -0
- package/declarations/part.d.ts.map +1 -0
- package/declarations/popover.d.ts +236 -0
- package/declarations/popover.d.ts.map +1 -0
- package/declarations/portal/index.d.ts +3 -0
- package/declarations/portal/index.d.ts.map +1 -0
- package/declarations/portal/portal.d.ts +46 -0
- package/declarations/portal/portal.d.ts.map +1 -0
- package/declarations/portal/targets.d.ts +40 -0
- package/declarations/portal/targets.d.ts.map +1 -0
- package/declarations/portal.d.ts +2 -0
- package/declarations/presence.d.ts +80 -0
- package/declarations/presence.d.ts.map +1 -0
- package/declarations/progress.d.ts +98 -0
- package/declarations/progress.d.ts.map +1 -0
- package/declarations/proper-links.d.ts +69 -0
- package/declarations/proper-links.d.ts.map +1 -0
- package/declarations/qp.d.ts +55 -0
- package/declarations/qp.d.ts.map +1 -0
- package/declarations/questionnaire/components.d.ts +348 -0
- package/declarations/questionnaire/components.d.ts.map +1 -0
- package/declarations/questionnaire/index.d.ts +4 -0
- package/declarations/questionnaire/index.d.ts.map +1 -0
- package/declarations/questionnaire/state.d.ts +400 -0
- package/declarations/questionnaire/state.d.ts.map +1 -0
- package/declarations/questionnaire/utils.d.ts +65 -0
- package/declarations/questionnaire/utils.d.ts.map +1 -0
- package/declarations/questionnaire.d.ts +2 -0
- package/declarations/radio-group.d.ts +115 -0
- package/declarations/radio-group.d.ts.map +1 -0
- package/declarations/rating.d.ts +214 -0
- package/declarations/rating.d.ts.map +1 -0
- package/declarations/resizable/components.d.ts +107 -0
- package/declarations/resizable/components.d.ts.map +1 -0
- package/declarations/resizable/index.d.ts +4 -0
- package/declarations/resizable/index.d.ts.map +1 -0
- package/declarations/resizable/layout.d.ts +93 -0
- package/declarations/resizable/layout.d.ts.map +1 -0
- package/declarations/resizable/state.d.ts +211 -0
- package/declarations/resizable/state.d.ts.map +1 -0
- package/declarations/resizable.d.ts +2 -0
- package/declarations/resize-observer.d.ts +40 -0
- package/declarations/resize-observer.d.ts.map +1 -0
- package/declarations/roving-focus.d.ts +204 -0
- package/declarations/roving-focus.d.ts.map +1 -0
- package/declarations/scroll-area/components.d.ts +125 -0
- package/declarations/scroll-area/components.d.ts.map +1 -0
- package/declarations/scroll-area/index.d.ts +3 -0
- package/declarations/scroll-area/index.d.ts.map +1 -0
- package/declarations/scroll-area/state.d.ts +147 -0
- package/declarations/scroll-area/state.d.ts.map +1 -0
- package/declarations/scroll-area.d.ts +2 -0
- package/declarations/scroll-lock.d.ts +69 -0
- package/declarations/scroll-lock.d.ts.map +1 -0
- package/declarations/scroller.d.ts +71 -0
- package/declarations/scroller.d.ts.map +1 -0
- package/declarations/select.d.ts +459 -0
- package/declarations/select.d.ts.map +1 -0
- package/declarations/separator.d.ts +71 -0
- package/declarations/separator.d.ts.map +1 -0
- package/declarations/service.d.ts +83 -0
- package/declarations/service.d.ts.map +1 -0
- package/declarations/shadowed.d.ts +63 -0
- package/declarations/shadowed.d.ts.map +1 -0
- package/declarations/slider.d.ts +283 -0
- package/declarations/slider.d.ts.map +1 -0
- package/declarations/sticky-footer.d.ts +43 -0
- package/declarations/sticky-footer.d.ts.map +1 -0
- package/declarations/store.d.ts +47 -0
- package/declarations/store.d.ts.map +1 -0
- package/declarations/switch.d.ts +76 -0
- package/declarations/switch.d.ts.map +1 -0
- package/declarations/tabs.d.ts +250 -0
- package/declarations/tabs.d.ts.map +1 -0
- package/declarations/toast/icons.d.ts +29 -0
- package/declarations/toast/icons.d.ts.map +1 -0
- package/declarations/toast/index.d.ts +4 -0
- package/declarations/toast/index.d.ts.map +1 -0
- package/declarations/toast/item.d.ts +162 -0
- package/declarations/toast/item.d.ts.map +1 -0
- package/declarations/toast/state.d.ts +276 -0
- package/declarations/toast/state.d.ts.map +1 -0
- package/declarations/toast/styles.d.ts +20 -0
- package/declarations/toast/styles.d.ts.map +1 -0
- package/declarations/toast/toaster.d.ts +173 -0
- package/declarations/toast/toaster.d.ts.map +1 -0
- package/declarations/toast.d.ts +2 -0
- package/declarations/toggle-group.d.ts +161 -0
- package/declarations/toggle-group.d.ts.map +1 -0
- package/declarations/toggle.d.ts +70 -0
- package/declarations/toggle.d.ts.map +1 -0
- package/declarations/tooltip.d.ts +227 -0
- package/declarations/tooltip.d.ts.map +1 -0
- package/declarations/typeahead.d.ts +97 -0
- package/declarations/typeahead.d.ts.map +1 -0
- package/declarations/viewport.d.ts +109 -0
- package/declarations/viewport.d.ts.map +1 -0
- package/declarations/visually-hidden.d.ts +42 -0
- package/declarations/visually-hidden.d.ts.map +1 -0
- package/declarations/zoetrope.d.ts +120 -0
- package/declarations/zoetrope.d.ts.map +1 -0
- package/dist/accordion.js +367 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert-dialog.js +122 -0
- package/dist/alert-dialog.js.map +1 -0
- package/dist/anchor.js +2 -0
- package/dist/anchor.js.map +1 -0
- package/dist/as.js +60 -0
- package/dist/as.js.map +1 -0
- package/dist/aspect-ratio.js +59 -0
- package/dist/aspect-ratio.js.map +1 -0
- package/dist/avatar.js +464 -0
- package/dist/avatar.js.map +1 -0
- package/dist/body-class.js +57 -0
- package/dist/body-class.js.map +1 -0
- package/dist/breadcrumb.js +59 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/calendar.js +1494 -0
- package/dist/calendar.js.map +1 -0
- package/dist/checkbox.js +81 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/collapsible.js +255 -0
- package/dist/collapsible.js.map +1 -0
- package/dist/color-scheme.js +306 -0
- package/dist/color-scheme.js.map +1 -0
- package/dist/combobox.js +1413 -0
- package/dist/combobox.js.map +1 -0
- package/dist/command.js +1054 -0
- package/dist/command.js.map +1 -0
- package/dist/component-DqLt83fo.js +886 -0
- package/dist/component-DqLt83fo.js.map +1 -0
- package/dist/components-CWfg0cFs.js +1745 -0
- package/dist/components-CWfg0cFs.js.map +1 -0
- package/dist/components-DBWszEI3.js +1285 -0
- package/dist/components-DBWszEI3.js.map +1 -0
- package/dist/components-DI8Azu05.js +1542 -0
- package/dist/components-DI8Azu05.js.map +1 -0
- package/dist/components-F0Ini448.js +875 -0
- package/dist/components-F0Ini448.js.map +1 -0
- package/dist/context-menu.js +207 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/controllable-state.js +134 -0
- package/dist/controllable-state.js.map +1 -0
- package/dist/delay-group-B1K03gBL.js +75 -0
- package/dist/delay-group-B1K03gBL.js.map +1 -0
- package/dist/dialog-3gfz_8NA.js +349 -0
- package/dist/dialog-3gfz_8NA.js.map +1 -0
- package/dist/dialog.js +57 -0
- package/dist/dialog.js.map +1 -0
- package/dist/direction.js +75 -0
- package/dist/direction.js.map +1 -0
- package/dist/dismiss.js +329 -0
- package/dist/dismiss.js.map +1 -0
- package/dist/dom-context.js +104 -0
- package/dist/dom-context.js.map +1 -0
- package/dist/drawer.js +1456 -0
- package/dist/drawer.js.map +1 -0
- package/dist/dropdown-menu.js +201 -0
- package/dist/dropdown-menu.js.map +1 -0
- package/dist/external-link.js +21 -0
- package/dist/external-link.js.map +1 -0
- package/dist/file-drop.js +183 -0
- package/dist/file-drop.js.map +1 -0
- package/dist/focus-scope.js +292 -0
- package/dist/focus-scope.js.map +1 -0
- package/dist/focus.js +311 -0
- package/dist/focus.js.map +1 -0
- package/dist/form-control-Ca_KHSKK.js +177 -0
- package/dist/form-control-Ca_KHSKK.js.map +1 -0
- package/dist/head.js +25 -0
- package/dist/head.js.map +1 -0
- package/dist/heading.js +152 -0
- package/dist/heading.js.map +1 -0
- package/dist/hero.js +36 -0
- package/dist/hero.js.map +1 -0
- package/dist/hide-others.js +108 -0
- package/dist/hide-others.js.map +1 -0
- package/dist/hover-card.js +246 -0
- package/dist/hover-card.js.map +1 -0
- package/dist/hover-intent-Bxb83fgX.js +92 -0
- package/dist/hover-intent-Bxb83fgX.js.map +1 -0
- package/dist/i18n.js +72 -0
- package/dist/i18n.js.map +1 -0
- package/dist/id.js +24 -0
- package/dist/id.js.map +1 -0
- package/dist/iframe.js +19 -0
- package/dist/iframe.js.map +1 -0
- package/dist/incremental-each.js +181 -0
- package/dist/incremental-each.js.map +1 -0
- package/dist/index.js +87 -0
- package/dist/index.js.map +1 -0
- package/dist/indicator-sYuRuFJA.js +26 -0
- package/dist/indicator-sYuRuFJA.js.map +1 -0
- package/dist/input-otp.js +611 -0
- package/dist/input-otp.js.map +1 -0
- package/dist/keys.js +65 -0
- package/dist/keys.js.map +1 -0
- package/dist/label.js +41 -0
- package/dist/label.js.map +1 -0
- package/dist/layer.js +157 -0
- package/dist/layer.js.map +1 -0
- package/dist/layout-styles-DY86so8a.js +81 -0
- package/dist/layout-styles-DY86so8a.js.map +1 -0
- package/dist/link-helper.js +122 -0
- package/dist/link-helper.js.map +1 -0
- package/dist/link.js +39 -0
- package/dist/link.js.map +1 -0
- package/dist/load.js +54 -0
- package/dist/load.js.map +1 -0
- package/dist/menu-Da1LFCet.js +1109 -0
- package/dist/menu-Da1LFCet.js.map +1 -0
- package/dist/menubar.js +357 -0
- package/dist/menubar.js.map +1 -0
- package/dist/message-scroller.js +2 -0
- package/dist/message-scroller.js.map +1 -0
- package/dist/messages.js +168 -0
- package/dist/messages.js.map +1 -0
- package/dist/narrowing.js +29 -0
- package/dist/narrowing.js.map +1 -0
- package/dist/native-form.js +134 -0
- package/dist/native-form.js.map +1 -0
- package/dist/native-value.js +125 -0
- package/dist/native-value.js.map +1 -0
- package/dist/navigation-menu.js +872 -0
- package/dist/navigation-menu.js.map +1 -0
- package/dist/observers-aItWe029.js +113 -0
- package/dist/observers-aItWe029.js.map +1 -0
- package/dist/on-resize.js +47 -0
- package/dist/on-resize.js.map +1 -0
- package/dist/part.js +291 -0
- package/dist/part.js.map +1 -0
- package/dist/popover.js +419 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-BbTzV8dP.js +323 -0
- package/dist/popper-BbTzV8dP.js.map +1 -0
- package/dist/portal-U554WDI9.js +214 -0
- package/dist/portal-U554WDI9.js.map +1 -0
- package/dist/portal.js +2 -0
- package/dist/portal.js.map +1 -0
- package/dist/presence.js +243 -0
- package/dist/presence.js.map +1 -0
- package/dist/progress.js +106 -0
- package/dist/progress.js.map +1 -0
- package/dist/promise-state-BMi2zVoT.js +91 -0
- package/dist/promise-state-BMi2zVoT.js.map +1 -0
- package/dist/proper-links.js +136 -0
- package/dist/proper-links.js.map +1 -0
- package/dist/qp.js +77 -0
- package/dist/qp.js.map +1 -0
- package/dist/questionnaire.js +2 -0
- package/dist/questionnaire.js.map +1 -0
- package/dist/radio-group.js +149 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/rating.js +261 -0
- package/dist/rating.js.map +1 -0
- package/dist/resizable.js +2 -0
- package/dist/resizable.js.map +1 -0
- package/dist/resize-observer.js +85 -0
- package/dist/resize-observer.js.map +1 -0
- package/dist/roving-focus.js +355 -0
- package/dist/roving-focus.js.map +1 -0
- package/dist/scroll-area.js +2 -0
- package/dist/scroll-area.js.map +1 -0
- package/dist/scroll-end-Cer8JSIB.js +87 -0
- package/dist/scroll-end-Cer8JSIB.js.map +1 -0
- package/dist/scroll-lock.js +267 -0
- package/dist/scroll-lock.js.map +1 -0
- package/dist/scroller.js +117 -0
- package/dist/scroller.js.map +1 -0
- package/dist/select.js +1223 -0
- package/dist/select.js.map +1 -0
- package/dist/separator.js +80 -0
- package/dist/separator.js.map +1 -0
- package/dist/service.js +160 -0
- package/dist/service.js.map +1 -0
- package/dist/shadowed.js +70 -0
- package/dist/shadowed.js.map +1 -0
- package/dist/slider.js +586 -0
- package/dist/slider.js.map +1 -0
- package/dist/sticky-footer.js +40 -0
- package/dist/sticky-footer.js.map +1 -0
- package/dist/store-BjiAd-KP.js +93 -0
- package/dist/store-BjiAd-KP.js.map +1 -0
- package/dist/store.js +4 -0
- package/dist/store.js.map +1 -0
- package/dist/switch.js +58 -0
- package/dist/switch.js.map +1 -0
- package/dist/tabs.js +458 -0
- package/dist/tabs.js.map +1 -0
- package/dist/toast.js +2 -0
- package/dist/toast.js.map +1 -0
- package/dist/toaster-DwprFZ1J.js +1518 -0
- package/dist/toaster-DwprFZ1J.js.map +1 -0
- package/dist/toggle-group.js +221 -0
- package/dist/toggle-group.js.map +1 -0
- package/dist/toggle.js +78 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tooltip.js +422 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/typeahead.js +233 -0
- package/dist/typeahead.js.map +1 -0
- package/dist/viewport.js +138 -0
- package/dist/viewport.js.map +1 -0
- package/dist/visually-hidden.js +49 -0
- package/dist/visually-hidden.js.map +1 -0
- package/dist/zoetrope.js +336 -0
- package/dist/zoetrope.js.map +1 -0
- package/package.json +101 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
# @ember-joinery/primitives
|
|
2
|
+
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9728270: `focusElement` and `focusFirst` read the focus of the element's own document. In a frame they
|
|
8
|
+
read the page's, so the arrow keys of a roving-focus group (a toolbar, tabs, a toggle group)
|
|
9
|
+
did not move focus there.
|
|
10
|
+
|
|
11
|
+
## 1.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 2b887bf: Hover cards time their opening and closing with a Switchyard statechart. Nothing changes in how they behave.
|
|
16
|
+
- 2b887bf: Tooltips, navigation menus and submenus time their delays with Switchyard statecharts; nothing changes in behavior, except that a controlled tooltip or navigation menu whose parent refuses an open no longer makes the next one skip its delay (a refused tooltip open no longer closes the other tooltips either).
|
|
17
|
+
- 2b887bf: The Drawer's modes and timers run on a Switchyard statechart; nothing changes in behavior, apart from these fixes. A close that a controlled `@open` refuses no longer moves it to its first snap point (as vaul's, only a close the drawer itself made does), closing before it has finished opening no longer calls `onAnimationEnd(true)`, a handle tap no longer changes the snap point after the drawer is destroyed, and `settled()` now waits for its animation end, background and nested-drawer timers, and a drawer destroyed while open puts the body's background back. As vaul's, `onAnimationEnd` isn't called for a drawer that renders open.
|
|
18
|
+
- 2b887bf: Combobox and the typeahead search (used by Select, menus and `{{typeahead}}`) now keep their modes in Switchyard statecharts; nothing changes in behavior. Fixed: a combobox whose controlled `@open` refuses a close no longer stops filtering, and a combobox reopened while its list animates out filters by what is typed instead of the query it closed with.
|
|
19
|
+
- 2b887bf: The date pickers track their modes with a Switchyard chart; nothing changes in behavior, except that a close a controlled `@open` refuses no longer forgets the month paged to or the start of a range. A controlled Dialog no longer calls `@onClose`, nor clears its `returnValue`, for a close or open its `@open` refused, and InputOTP clears its pending selection sync when it goes.
|
|
20
|
+
- 2b887bf: `Presence` tracks whether its content is present, exiting or exited with a Switchyard statechart. Nothing changes in how it behaves.
|
|
21
|
+
- 2b887bf: Avatar image loading and fallback delay, scroll area scrollbar visibility, and the code block's copy button now run on Switchyard statecharts. Nothing changes in how they behave.
|
|
22
|
+
- 2b887bf: Toasts run their life, swipe and auto-close timer on Switchyard statecharts; nothing changes in how they behave. A `toast.promise()` toast dismissed while it waits now stays dismissed, instead of coming back as the success or error toast.
|
|
23
|
+
|
|
24
|
+
## 1.0.0
|
|
25
|
+
|
|
26
|
+
### Major Changes
|
|
27
|
+
|
|
28
|
+
- a73065d: The first release of Joinery's core packages: `@ember-joinery/primitives` (headless behaviour
|
|
29
|
+
and utilities), `@ember-joinery/ember` (the styled components and their compiled CSS) and
|
|
30
|
+
`@ember-joinery/test-support` (a harness for each of them).
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- a73065d: `Accordion` is shadcn's Accordion, and `@ember-joinery/primitives/accordion` the headless one
|
|
35
|
+
under it, Radix's, covering ember-primitives' too: `@type="single"` (optionally `@collapsible`) or
|
|
36
|
+
`"multiple"`, controlled (`@value`, `@onValueChange`) or not (`@defaultValue`), disabled items or
|
|
37
|
+
a disabled accordion, each item a heading with a trigger (`aria-expanded`, `aria-controls`) and a
|
|
38
|
+
content region labelled by it, and the arrow keys, Home and End between triggers, by
|
|
39
|
+
`@orientation` and direction. The styled trigger draws upstream's chevrons (`@icon` and
|
|
40
|
+
`@openIcon` replace them), and the content animates from its measured height.
|
|
41
|
+
`AccordionState` and `AccordionItemState` hold the behaviour for components built on it.
|
|
42
|
+
`@ember-joinery/test-support` adds `AccordionHarness`.
|
|
43
|
+
- a73065d: `@ember-joinery/primitives/aspect-ratio` is Radix's AspectRatio: content held to `@ratio`,
|
|
44
|
+
with only the styles that hold it, set through the CSSOM. `AspectRatio` in
|
|
45
|
+
`@ember-joinery/ember` is shadcn's, on it. `@ember-joinery/test-support` adds
|
|
46
|
+
`AspectRatioHarness`.
|
|
47
|
+
- a73065d: `Avatar` is shadcn's Avatar, with `@size` and its `Image`, `Fallback` and `Badge` parts, and
|
|
48
|
+
`AvatarGroup` with its `Count`. It is built on `@ember-joinery/primitives/avatar`, ember-primitives'
|
|
49
|
+
and Radix's headless Avatar: the image renders once it has loaded, the fallback shows until
|
|
50
|
+
then (after `@delayMs`) and if it fails, the URL goes on the image or the avatar, and the
|
|
51
|
+
avatar yields where its image is; `ImageLoader` loads an image off the page, and tests wait for
|
|
52
|
+
it. `@ember-joinery/test-support` adds `AvatarHarness` and `AvatarGroupHarness`.
|
|
53
|
+
- a73065d: `@ember-joinery/primitives/breadcrumb` is ember-primitives' Breadcrumb: a named `nav` around an
|
|
54
|
+
ordered list, yielding a `Separator` that assistive technology skips
|
|
55
|
+
(`breadcrumbSeparatorAria()`). `Breadcrumb` in `@ember-joinery/ember` is shadcn's, yielding
|
|
56
|
+
`List`, `Item`, `Link`, `Page`, `Separator` (lucide's chevron, mirrored right to left, or your
|
|
57
|
+
block or `@icon`) and `Ellipsis`, each also a modifier (`<LinkTo {{b.link}}>`).
|
|
58
|
+
`@ember-joinery/test-support` adds `BreadcrumbHarness`, which drives both.
|
|
59
|
+
- a73065d: `Calendar` is shadcn's Calendar, with Joinery's own date picking in place of React DayPicker
|
|
60
|
+
and no date library: `@mode` `single`, `multiple` or `range` (`@value`, `@defaultValue` and
|
|
61
|
+
`@onValueChange`, a `Date`, `Date[]` or `{ from, to }`), month and year dropdowns
|
|
62
|
+
(`@captionLayout`), several months, `@disabled`, `@hidden` and `@modifiers` matchers, week
|
|
63
|
+
numbers, outside days, fixed weeks, and the date grid's keys, right to left too. Names,
|
|
64
|
+
numbers and the week's first day come from Intl in `@locale`; `@calendar` and `@numerals` show
|
|
65
|
+
any calendar Intl knows, such as the Persian one. A `<:day>` block draws what each day shows.
|
|
66
|
+
`@ember-joinery/primitives/calendar` is the headless one, with `CalendarState` and its date
|
|
67
|
+
helpers, and `@ember-joinery/test-support` adds `CalendarHarness`.
|
|
68
|
+
- a73065d: `Checkbox` is shadcn's Checkbox, on Radix's: `@checked`, `@defaultChecked` and
|
|
69
|
+
`@onCheckedChange` (controlled or not), the `'indeterminate'` state (`aria-checked="mixed"`),
|
|
70
|
+
`@disabled`, `@required`, and `@icon` and `@indeterminateIcon` to replace its marks. In a form, a
|
|
71
|
+
hidden native checkbox beside it submits its `name` and `value`, and a reset restores it.
|
|
72
|
+
`@ember-joinery/primitives/checkbox` is the headless one, with its `Indicator`, and
|
|
73
|
+
`@ember-joinery/test-support` adds `CheckboxHarness`.
|
|
74
|
+
- a73065d: `Collapsible` is shadcn's Collapsible, and `@ember-joinery/primitives/collapsible` the headless
|
|
75
|
+
one under it, Radix's: a trigger (`aria-expanded`, `aria-controls`) that shows and hides content,
|
|
76
|
+
controlled (`@open`, `@onOpenChange`) or not (`@defaultOpen`), with a yielded `trigger` modifier
|
|
77
|
+
for your own element (`<Button {{c.trigger}}>`). The content stays in the document, `hidden`
|
|
78
|
+
while closed, animates out through `Presence`, and is measured into
|
|
79
|
+
`--radix-collapsible-content-height` and `-width`; `CollapsibleState` holds the behaviour for
|
|
80
|
+
components built on it. Joinery's base keeps a part that is `hidden` hidden whatever `display`
|
|
81
|
+
a class gives it, as Tailwind's preflight does, so content laid out with `flex` stays out of the
|
|
82
|
+
way while closed. `Presence` now also yields `isExiting`. `@ember-joinery/test-support` adds
|
|
83
|
+
`CollapsibleHarness`.
|
|
84
|
+
- a73065d: `Combobox` is shadcn's Combobox, on Base UI's: `<Combobox @items={{…}} as |c|>` yields Input
|
|
85
|
+
(in its input group, with `@showTrigger`, `@showClear`, `@groupClass` for the group, and
|
|
86
|
+
an `Addon` it yields for an icon beside the input),
|
|
87
|
+
Trigger, TriggerIcon, Clear, Value, Content, List, Item, Group, Label, Collection, Empty,
|
|
88
|
+
Separator, Chips, Chip and ChipsInput. Typing filters `@items` (an `Intl.Collator` match anywhere in the label, or your
|
|
89
|
+
own `@filter`, or `@filter={{null}}` for results filtered elsewhere) and the arrow keys
|
|
90
|
+
highlight an item while focus stays in the input; `@multiple` shows the chosen items as chips,
|
|
91
|
+
`@autoHighlight` highlights the first match, and the input can sit inside the popup behind a
|
|
92
|
+
trigger of your own. `@ember-joinery/primitives/combobox` is the headless one, and
|
|
93
|
+
`@ember-joinery/test-support` adds `ComboboxHarness`.
|
|
94
|
+
- a73065d: `ContextMenu` is shadcn's Context Menu, on Radix's: a right click on `<c.Trigger>` (or a long
|
|
95
|
+
press by touch or pen) opens its content at the pointer, in place of the browser's own menu. Its
|
|
96
|
+
content, items, checkbox and radio items, labels, separators, shortcuts and submenus are the
|
|
97
|
+
Dropdown Menu's, with `context-menu` in their classes and slots, and `{{c.trigger}}` makes your
|
|
98
|
+
own element the trigger, styled as `<c.Trigger>` is. `@onOpenChange` tells you when
|
|
99
|
+
it opens and closes. `@ember-joinery/primitives/context-menu` is the headless one, and
|
|
100
|
+
`@ember-joinery/test-support` adds `ContextMenuHarness`, with `open(point)` for a right click and
|
|
101
|
+
`longPress()`.
|
|
102
|
+
- a73065d: `DropdownMenu` is shadcn's Dropdown Menu, on Radix's: `<DropdownMenu as |m|>` yields Trigger,
|
|
103
|
+
Content, Group, Label, Item (`@variant`, `@inset`, `@onSelect`), LinkItem, CheckboxItem,
|
|
104
|
+
RadioGroup, Separator, Shortcut, Sub (its Trigger and Content) and Portal, a `trigger` modifier
|
|
105
|
+
for your own Button (`<Button {{m.trigger}}>`), and `item` and `checkboxItem` modifiers that
|
|
106
|
+
style your own element as an item (a radio group's `item` and a submenu's `trigger` do the same
|
|
107
|
+
for theirs). The content is a menu in the top layer, below its trigger and
|
|
108
|
+
lined up with its start: the arrow keys, Home, End and typing move between its items, Enter or a
|
|
109
|
+
click selects one, Escape or a press outside closes it, and focus goes back to the trigger.
|
|
110
|
+
Submenus open on hover or the arrow pointing into them, and stay open while the pointer crosses
|
|
111
|
+
other items on its way there; as Radix's, a submenu closes (`@onOpenChange(false)`) when the
|
|
112
|
+
menu it is in closes or it goes away. Every part but LinkItem (always an `<a>`) takes `@as`.
|
|
113
|
+
Modal by default, it keeps focus and the pointer in the menu and makes the page inert. Its
|
|
114
|
+
state is `@open`/`@defaultOpen`/`@onOpenChange`, and it takes ember-primitives' Menu's
|
|
115
|
+
positioning arguments too: `<DropdownMenu @placement="top-end">` places its content, alignment
|
|
116
|
+
and all.
|
|
117
|
+
`@ember-joinery/primitives/dropdown-menu` is the headless one, covering ember-primitives' Menu
|
|
118
|
+
(also exported as `Menu`), and `@ember-joinery/test-support` adds `DropdownMenuHarness`, which
|
|
119
|
+
finds items by their text and opens submenus with `sub()`.
|
|
120
|
+
- a73065d: `FileDrop` and `DocumentFileDrop` are ember-primitives': a zone to drop files on or press to pick
|
|
121
|
+
them, and a way to take files dropped anywhere on the page, filtered by `@accept` as the file
|
|
122
|
+
picker filters them. `@ember-joinery/primitives/file-drop` has the headless ones (with
|
|
123
|
+
`@disabled`, and `accepts`, `filesFrom`, `hasFiles` and `DragState` for a target of your own);
|
|
124
|
+
`@ember-joinery/ember`'s FileDrop is a dashed drop zone, and its DocumentFileDrop covers the page
|
|
125
|
+
with an overlay while files are dragged over it. `@ember-joinery/test-support` adds
|
|
126
|
+
`FileDropHarness`, `DocumentFileDropHarness`, and `dragFilesOver`, `dragFilesAway` and
|
|
127
|
+
`dropFiles`.
|
|
128
|
+
- a73065d: `HoverCard` is shadcn's Hover Card, on Radix's: it opens once the pointer has rested on its
|
|
129
|
+
trigger for `@openDelay` (or the trigger has focus), below it, centred and 4px off, and closes
|
|
130
|
+
`@closeDelay` after the pointer leaves both, staying open while text in it is selected; a touch
|
|
131
|
+
doesn't open it. `@ember-joinery/primitives/hover-card` is the headless one, and
|
|
132
|
+
`@ember-joinery/test-support` adds `HoverCardHarness`.
|
|
133
|
+
- 17c5b5c: Every string `@ember-joinery/ember`'s components show goes through the app's translator: a
|
|
134
|
+
dialog's and a sheet's Close, the breadcrumb's and pagination's names and links, the combobox's
|
|
135
|
+
buttons, the sidebar's trigger, rail and mobile title, the spinner's Loading, the document file
|
|
136
|
+
drop's prompt, and the Command Dialog's, Message Scroller's and Questionnaire's, which are the
|
|
137
|
+
primitives' messages. They are in `@ember-joinery/ember/messages`; an argument still wins. The
|
|
138
|
+
Calendar's `@locale` defaults to the translator's. `paginationLinkAttributes` takes an optional
|
|
139
|
+
context for the translator, and a `part()` function's `this` is now its modifier, which has the
|
|
140
|
+
app's owner.
|
|
141
|
+
- 17c5b5c: Joinery's built-in strings can be translated. `@ember-joinery/primitives/i18n` declares the msgid
|
|
142
|
+
contract's `Message` and `Translator`, with `format()` (English: a `plural` by `values.count`, and
|
|
143
|
+
`{name}` placeholders), `translate(context, message, values?)`, which uses the app's
|
|
144
|
+
`translator:main` when it registers one and English otherwise, and `t`, the same for a
|
|
145
|
+
template. Every string the primitives show is a message in `@ember-joinery/primitives/messages`
|
|
146
|
+
(`joinery.<component>.<name>`) and goes through the translator; an argument still wins. Joined
|
|
147
|
+
strings are one message each (`Value {index} of {count}`, `Today, {date}, selected`, `Notifications
|
|
148
|
+
{hotkey}`), so a translation orders the words. A calendar's and a combobox's `@locale` default to
|
|
149
|
+
the translator's. `defaultSliderThumbLabel` takes an optional context, and `CalendarState` an
|
|
150
|
+
optional third argument, the component, for the same. `@ember-joinery/test-support` adds
|
|
151
|
+
`setupTranslator(hooks, translator)` and `pseudoTranslator`, a pseudo-locale that wraps every
|
|
152
|
+
string it translates.
|
|
153
|
+
- a73065d: `InputOTP` is shadcn's Input OTP, yielding its `Group`, `Slot` and `Separator`, on a new
|
|
154
|
+
`@ember-joinery/primitives/input-otp`: the `input-otp` library's one invisible native input under
|
|
155
|
+
slots you render, which also covers ember-primitives' `OTP`. Its code is controlled or not
|
|
156
|
+
(`@value`, `@defaultValue`, `@onValueChange`), `@pattern` (`REGEXP_ONLY_DIGITS` and the rest)
|
|
157
|
+
refuses what it doesn't match, every paste goes through `@pasteTransformer`, `@onComplete` hears
|
|
158
|
+
a complete code, `@autoSubmit` submits its form, and a browser's autofill of a code it was sent
|
|
159
|
+
fills it at once. Right to left, its arrow keys follow the slots, which run from the right.
|
|
160
|
+
`@ember-joinery/test-support` adds `InputOTPHarness`, which types, deletes, moves the caret,
|
|
161
|
+
clicks, pastes and autofills as a browser does, and ember-primitives' `fillOTP`.
|
|
162
|
+
- a73065d: `@ember-joinery/primitives/label` is Radix's Label: a native `<label>` whose text a double
|
|
163
|
+
click doesn't select (`preventLabelSelection`, for an element of your own). `Label` in
|
|
164
|
+
`@ember-joinery/ember` is shadcn's, on it, with an `asLabel` modifier, and dims beside a
|
|
165
|
+
disabled `peer` control. `@ember-joinery/test-support` adds `LabelHarness`.
|
|
166
|
+
- a73065d: `Menubar` is shadcn's Menubar, on Radix's: `<Menubar as |bar|><bar.Menu as |m|>` yields a
|
|
167
|
+
Trigger and a Content placed as upstream's (below the trigger, at its start, 4px before it and
|
|
168
|
+
8px off), with the Dropdown Menu's items, checkbox and radio items, labels, separators,
|
|
169
|
+
shortcuts and submenus in the menubar's classes and slots, and `trigger`, `item` and
|
|
170
|
+
`checkboxItem` modifiers for your own elements. Its triggers share one tab stop: the arrow keys
|
|
171
|
+
move between them, Enter, Space or ArrowDown open a menu on its first item, and while one is
|
|
172
|
+
open ArrowLeft and ArrowRight (flipped right to left) and the pointer move to the others. Which
|
|
173
|
+
menu is open is `@value`/`@defaultValue`/`@onValueChange`. `@ember-joinery/primitives/menubar`
|
|
174
|
+
is the headless one, and `@ember-joinery/test-support` adds `MenubarHarness`, whose `menu(label)`
|
|
175
|
+
has a Dropdown Menu harness's members for each menu.
|
|
176
|
+
- a73065d: `MessageScrollerProvider` is shadcn's Message Scroller: a chat transcript's scroll container that
|
|
177
|
+
opens a saved transcript at the start, the end or the last anchored turn (`@defaultScrollPosition`,
|
|
178
|
+
hidden until it gets there), settles a new `@scrollAnchor` turn near the top with a peek of the
|
|
179
|
+
one before (`@scrollPreviousItemPeek`), follows a streamed reply at the end with `@autoScroll`
|
|
180
|
+
until the reader scrolls away, keeps the reader's row in place when history is prepended, and
|
|
181
|
+
jumps to any row. It yields its styled parts (`Root`, `Viewport`, `Content`, `Item`, `Button`,
|
|
182
|
+
`Visibility`), the commands (`scrollToMessage`, `scrollToEnd`, `scrollToStart`) and the scroll
|
|
183
|
+
state (`scrollable`); the parts are exported on their own too (`MessageScroller`,
|
|
184
|
+
`MessageScrollerItem`…). `@ember-joinery/primitives/message-scroller` is the headless scroller,
|
|
185
|
+
`@shadcn/react`'s, with `MessageScrollerConsumer` and the `messageScrollerButton` modifier. Its
|
|
186
|
+
button, as upstream's, keeps a `tabindex` of your own while it is active, and a click listener of
|
|
187
|
+
yours runs first and can stop the scroll with `preventDefault()`; the styled one takes `@as`.
|
|
188
|
+
`@ember-joinery/test-support` adds `MessageScrollerHarness`.
|
|
189
|
+
- a73065d: `NativeForm` is ember-primitives' Form, renamed so it can't clash with Formwright's `<Form>`: a
|
|
190
|
+
native `<form>` whose `@onChange` hears its data as an object on every input and on submit.
|
|
191
|
+
`dataFromEvent` reads the same object out of any form's event, converting numbers, dates,
|
|
192
|
+
checkboxes, radios, selects and files as form-data-utils does, and takes Joinery's button
|
|
193
|
+
controls in through their hidden inputs. `@ember-joinery/test-support` adds
|
|
194
|
+
`NativeFormHarness`, whose `pressEnter` submits the form from a field as the browser does.
|
|
195
|
+
- a73065d: `native-value` gives an `<input>`, `<textarea>` or `<select>` Radix's value pattern:
|
|
196
|
+
`{{nativeValue value= defaultValue= onValueChange=}}`. Controlled, the control shows `value` and
|
|
197
|
+
a change the caller doesn't pass back is undone; uncontrolled, it keeps its own value. A form
|
|
198
|
+
reset goes back to the starting value and says so, and a select shows its value again when its
|
|
199
|
+
options change.
|
|
200
|
+
- a73065d: `NavigationMenu` is shadcn's Navigation Menu, on Radix's: a `<nav>` whose `n.List` holds
|
|
201
|
+
`n.Item`s, each a `n.Link` or an `item.Trigger` and its `item.Content`. A trigger opens its
|
|
202
|
+
content on a click, or when the pointer rests on it (at once while another was just open); the
|
|
203
|
+
contents show in a viewport below the list that takes the open one's size and slides each in
|
|
204
|
+
from its trigger's side (`data-motion`), or below their own triggers with `@viewport={{false}}`.
|
|
205
|
+
Tab goes from an open trigger into its links and on, and the arrow keys, Home and End move
|
|
206
|
+
between triggers and links, for a trigger of your own (`{{item.trigger}}`) as for `item.Trigger`.
|
|
207
|
+
`n.Indicator` follows the open trigger, `n.Viewport` places the viewport yourself with
|
|
208
|
+
`@viewport={{false}}`, and `navigationMenuTriggerStyle()` gives a link the trigger's look, its
|
|
209
|
+
padding over the link's, as upstream's tailwind-merge gives it. Its state is
|
|
210
|
+
`@value`/`@defaultValue`/`@onValueChange`. `@ember-joinery/primitives/navigation-menu` is the
|
|
211
|
+
headless one, with `List`, `Item`, `Link`, `Indicator` and `Viewport`, and
|
|
212
|
+
`@ember-joinery/test-support` adds `NavigationMenuHarness`.
|
|
213
|
+
- a73065d: A part's attribute can be a function of the element's own value, so a part merges a list with
|
|
214
|
+
the caller's instead of replacing it: `'aria-describedby': own => joinTokens(mine, own)`, asked
|
|
215
|
+
again whenever either side changes. `joinTokens()` joins space-separated lists without repeats.
|
|
216
|
+
A Questionnaire item uses it to keep a caller's `aria-describedby` and `aria-keyshortcuts`, as
|
|
217
|
+
upstream merges them.
|
|
218
|
+
- a73065d: `Popover` is shadcn's Popover, on Radix's: `<Popover as |p|>` yields Trigger, Anchor, Content,
|
|
219
|
+
Header, Title, Description, Close and Arrow, and a `trigger` modifier for your own Button
|
|
220
|
+
(`<Button {{p.trigger}}>`). The content is in the top layer while open, placed against its
|
|
221
|
+
trigger (centred, 4px off, flipping to stay in view), closed by Escape or a press outside, with
|
|
222
|
+
focus moving in and back; `@modal` keeps focus and the pointer inside, and hides the rest of
|
|
223
|
+
the page from assistive technology and stops it scrolling. Its state is
|
|
224
|
+
`@open`/`@defaultOpen`/`@onOpenChange`. `@ember-joinery/primitives/popover` is the headless
|
|
225
|
+
one, covering ember-primitives' Popover (`@placement`, `@offsetOptions`, `@flipOptions`,
|
|
226
|
+
`@shiftOptions`, `@middleware`, `@strategy`, and the `reference`, `setReference`, `arrow` and
|
|
227
|
+
`data` yields), and `@ember-joinery/test-support` adds `PopoverHarness`.
|
|
228
|
+
- a73065d: `@ember-joinery/primitives/command` adds `Command`, cmdk's command menu, headless: typing filters
|
|
229
|
+
the items with cmdk's command score (or `@filter`) and shows the best first, groups and
|
|
230
|
+
separators hide with nothing to show, Empty shows when nothing matches, and the arrows, Home and
|
|
231
|
+
End, Ctrl+N/J/P/K and Alt+arrow move the selection while focus stays in the input; Enter clicks
|
|
232
|
+
the selected item. It covers ember-primitives' CommandPalette too: `@search` and
|
|
233
|
+
`@onSearchChange`, `@onSelect`, `@hotkey` and `@onOpen`, link items, and a `role="status"` that
|
|
234
|
+
announces the result count (`@resultsText`). `CommandDialog` puts a Command in a modal dialog,
|
|
235
|
+
with a `@hotkey` that opens and closes it. `@ember-joinery/test-support` adds `CommandHarness`
|
|
236
|
+
and `CommandDialogHarness`.
|
|
237
|
+
- a73065d: `dialog` and `alert-dialog`: Radix's Dialog and AlertDialog, headless, covering ember-primitives'
|
|
238
|
+
Dialog and Modal. `<Dialog as |d|>` yields Trigger, Overlay, Content, Title, Description and
|
|
239
|
+
Close, a modifier for each part you render yourself (`<Button {{d.trigger}}>`), and its state
|
|
240
|
+
(`isOpen`, `open`, `toggle`, `setOpen`, `returnValue`), controlled or not (`@open`,
|
|
241
|
+
`@defaultOpen`, `@onOpenChange`). Its content sits in the top layer; Escape and a press outside
|
|
242
|
+
close it; focus moves in and back. A modal one traps focus, makes the rest of the page inert and
|
|
243
|
+
locks the page's scroll; both animate out. A `<form method="dialog">` inside closes it, and
|
|
244
|
+
`@onClose` hears its `returnValue`. `<AlertDialog>` is always modal, with the `alertdialog` role,
|
|
245
|
+
focus on Cancel, and Action and Cancel parts. `scroll-lock`: `lockScroll()` and `{{scrollLock}}`,
|
|
246
|
+
as react-remove-scroll. `hide-others`: `hideOthers()` and `inertOthers()`, as the aria-hidden
|
|
247
|
+
package.
|
|
248
|
+
- a73065d: `drawer`: vaul's Drawer (1.1.2), headless, covering ember-primitives' Drawer. `<Drawer as |d|>`
|
|
249
|
+
is a Dialog with gestures: it yields a Dialog's parts with vaul's attributes, a `Handle`, a
|
|
250
|
+
`Nested` drawer and its state (`isDragging`, `direction`, `activeSnapPoint`,
|
|
251
|
+
`setActiveSnapPoint`…). A drag along its axis moves it, fades its overlay and closes it when let
|
|
252
|
+
go far or fast enough (`@closeThreshold`); `@direction` puts it on any edge (left and right are
|
|
253
|
+
the inline start and end); `@snapPoints` gives it places to rest, controlled or not
|
|
254
|
+
(`@activeSnapPoint`, `@onActiveSnapPointChange`), with `@fadeFromIndex` and
|
|
255
|
+
`@snapToSequentialPoint`; `@shouldScaleBackground` scales `[data-vaul-drawer-wrapper]` back;
|
|
256
|
+
`@dismissible={{false}}` leaves closing to you; `@handleOnly`, `@onDrag`, `@onRelease`,
|
|
257
|
+
`@onAnimationEnd` and `@repositionInputs` are vaul's. Focus moves to the drawer itself when it
|
|
258
|
+
opens (`@autoFocus` for its first field).
|
|
259
|
+
- a73065d: ember-primitives' components that shadcn has no counterpart for, one subpath export each:
|
|
260
|
+
`scroller` (`Scroller`, which yields `scrollToTop`, `scrollToBottom`, `scrollToLeft`,
|
|
261
|
+
`scrollToRight`, `scrollToStart` and `scrollToEnd`), `zoetrope` (`Zoetrope`: a row that scrolls a
|
|
262
|
+
page at a time, instantly for reduced motion, right to left too, and without trapping Tab),
|
|
263
|
+
`hero` (`Hero`), `sticky-footer` (`StickyFooter`), `link` (`Link`, active-aware, with
|
|
264
|
+
`aria-current` and `data-active`), `external-link` (`ExternalLink`), `heading` (`Heading`, whose
|
|
265
|
+
level comes from the sections around it, and `getSectionHeadingLevel`), `incremental-each`
|
|
266
|
+
(`IncrementalEach`, which renders a long list a batch at a time) and `shadowed` (`Shadowed`, a
|
|
267
|
+
shadow root, with `@includeStyles`). The layouts bring their own rules, in `@layer joinery`, with
|
|
268
|
+
nothing to import; an app with CSS layers of its own names `joinery` ahead of them, as
|
|
269
|
+
joinery.css and the Tailwind setup do, for its layers to win. `@ember-joinery/test-support` adds `ScrollerHarness`, `ZoetropeHarness`,
|
|
270
|
+
`HeroHarness`, `StickyFooterHarness`, `LinkHarness`, `ExternalLinkHarness`, `HeadingHarness` and
|
|
271
|
+
`ShadowedHarness`, ember-primitives' shadow DOM helpers (`findInShadow`, `findShadow`,
|
|
272
|
+
`findInFirstShadow`, `hasShadowRoot`), and `data-test-jn-wrapper`: a component that wraps your
|
|
273
|
+
content marks its root with it, and the parts inside belong to the component around it.
|
|
274
|
+
- a73065d: Focus, one subpath export each, ported from Radix and covering what ember-primitives gets from
|
|
275
|
+
tabster, with nothing to set up: `focus-scope` (`FocusScope`, `{{focusScope}}` and
|
|
276
|
+
`createFocusScope`: focus moves in, can be trapped or loop, and returns when the scope goes;
|
|
277
|
+
scopes stack, and trapped ones add focus guards), `roving-focus` (`RovingFocusGroup` and
|
|
278
|
+
`RovingFocus`: one tab stop, the arrow keys, Home and End, right to left, loop, a remembered and
|
|
279
|
+
an active item, a controlled tab stop), `typeahead` (`{{typeahead}}`, `Typeahead`,
|
|
280
|
+
`getNextMatch`) and `focus` (`focusable` queries, `focusFirst`, `focusElement`, and
|
|
281
|
+
`{{restoreFocus}}`, which keeps focus from falling to `<body>` when its element is removed).
|
|
282
|
+
`@ember-joinery/test-support` adds `tab()`, `tabOrder()`, `pressKey()`, `typeKeys()` and
|
|
283
|
+
`RovingFocusGroupHarness`.
|
|
284
|
+
- a73065d: The primitives' foundations, one subpath export each: `controllable-state` (Radix's
|
|
285
|
+
controlled-or-uncontrolled pattern, as `controllable(this, 'open', false)`), `id` (`idFor`, the
|
|
286
|
+
ids a component's parts share; one-off ids use Ember's own `uniqueId`), `direction`
|
|
287
|
+
(`DirectionProvider` and `getDirection`), `as` and `part` (the `@as` tag swap and the part
|
|
288
|
+
modifiers that let any element, `LinkTo` included, be a part), `presence` (keeps a part mounted
|
|
289
|
+
through its exit animation), `visually-hidden` (`VisuallyHidden` and `{{visuallyHidden}}`),
|
|
290
|
+
`keys` (`Key` and `KeyCombo`), `color-scheme` (system, light or dark, saved, synced across tabs,
|
|
291
|
+
applied to `<html>`; replaces next-themes) and `service` (one instance per owner, for app-wide
|
|
292
|
+
state that tests must not share). `@ember-joinery/test-support` adds `KeyHarness`,
|
|
293
|
+
`KeyComboHarness` and `setupColorScheme`.
|
|
294
|
+
- a73065d: Layering, anchoring, portals and dismissal, one subpath export each. `layer`: `{{topLayer}}`
|
|
295
|
+
puts an element in the browser's top layer with the Popover API (`popover="manual"`, or `auto`
|
|
296
|
+
for the browser's light dismiss), nested layers always above their parents. `anchor`:
|
|
297
|
+
`anchorTo`, `FloatingUI` and `anchor()` place an element against another with CSS anchor
|
|
298
|
+
positioning where the browser has it and Floating UI (offset, flip, shift, size, arrow, hide)
|
|
299
|
+
otherwise or when `globalThis.JOINERY_ANCHOR_FALLBACK` is set, taking both Radix's Popper
|
|
300
|
+
arguments and ember-primitives' floating-ui ones, setting `data-side`, `data-align` and the
|
|
301
|
+
`--jn-anchor-*` custom properties; with ember-primitives' `exposeMetadata` and `flipTo`
|
|
302
|
+
middleware. `dismiss`: the dismiss stack (`{{dismissable}}`, `{{dismissableBranch}}`,
|
|
303
|
+
`registerDismissable`), as Radix's `DismissableLayer`: Escape closes only the top layer, and
|
|
304
|
+
pointers and focus outside close the layers they leave, nested layers counting as inside their
|
|
305
|
+
parents. `portal`: ember-primitives' `Portal`, `PortalTargets`, `PortalTarget` and `wormhole`,
|
|
306
|
+
with `<body>` as Radix's default target. `@ember-joinery/test-support` adds `press`,
|
|
307
|
+
`pressOutside`, `pressEscape`, `isInTopLayer`, `placementOf` and `setupAnchorFallback`.
|
|
308
|
+
- a73065d: ember-primitives' app utilities, one subpath export each: `store` (`createStore`, one instance
|
|
309
|
+
per context, owner or none, with `findOwner` and `isOwner`), `service` (now also `(service "router")` for a
|
|
310
|
+
registered service, and `asyncService` for one loaded on demand), `head` (`InHead`),
|
|
311
|
+
`body-class` (`{{bodyClass}}`), `iframe` (`inIframe`, `notInIframe`), `load` (a component that
|
|
312
|
+
loads another), `qp` (`qp`, `withQP`, `castToBoolean`), `link-helper` (the `link` helper:
|
|
313
|
+
external, active, and a routed click, with `isExternalLink`, `isActiveLink` and
|
|
314
|
+
`dynamicSegments`), `proper-links` (`@properLinks`, `setupProperLinks`,
|
|
315
|
+
`shouldHandle`), `viewport` (`viewport()` and `InViewport`), `on-resize` (`{{onResize}}`),
|
|
316
|
+
`resize-observer` (`resizeObserver()` and `ignoreROError`), `dom-context` (`Provide` and `Consume`) and `narrowing` (`isString`,
|
|
317
|
+
`isElement`, `isNewable`, `isNonNullableObject`, `Newable`). `@ember-joinery/test-support` adds `setupRouting` and
|
|
318
|
+
`getRouter`, and `waitForObservers` and `scrollIntoView` for what the observers report.
|
|
319
|
+
- a73065d: `@ember-joinery/primitives/progress` is ember-primitives' and Radix's Progress: a
|
|
320
|
+
`progressbar` with its value, max and `@getValueLabel` text in ARIA and data attributes,
|
|
321
|
+
indeterminate without a value, clamping out-of-range values, and yielding an `Indicator` and
|
|
322
|
+
the value, percent and state; `resolveProgress()` returns what it renders. `Progress` in
|
|
323
|
+
`@ember-joinery/ember` is shadcn's, on it, and announces its value, which upstream's leaves off.
|
|
324
|
+
`@ember-joinery/test-support` adds `ProgressHarness`.
|
|
325
|
+
- a73065d: `Questionnaire` is shadcn's Questionnaire: a multi-step native form of single-choice,
|
|
326
|
+
multiple-choice, freeform and skippable questions, with progress, validation (its own, or yours
|
|
327
|
+
through `@invalid` and `@message`), navigation buttons that show where they apply, letter or
|
|
328
|
+
number shortcuts, the keyboard of upstream's (arrows between answers and items, flipped right to
|
|
329
|
+
left; `Enter` and `Meta+Enter` to confirm), a controlled or uncontrolled active item
|
|
330
|
+
(`@item`, `@defaultItem`, `@onItemChange`; an item that no longer applies gives way to the
|
|
331
|
+
first, and `@onItemChange` hears it), controlled or default answers (a freeform `Input` takes
|
|
332
|
+
`@value` and `@onValueChange`), a reset that puts them back, development warnings where `@items`
|
|
333
|
+
and the rendered items part, `@as` on every part, and the navigation buttons as modifiers
|
|
334
|
+
(`{{q.next}}`). Its behaviour is `@ember-joinery/primitives/questionnaire`, @shadcn/react's headless
|
|
335
|
+
Questionnaire, whose state classes put their parts on any element, so a card's or a dialog's
|
|
336
|
+
title can be the question (`{{i.title}}`). `@ember-joinery/test-support` adds
|
|
337
|
+
`QuestionnaireHarness`.
|
|
338
|
+
- a73065d: `RadioGroup` is shadcn's Radio Group, on Radix's: it yields its `Item`s, which share one tab
|
|
339
|
+
stop, and an arrow key moves focus and the choice, going round (`@loop`) and flipping right to
|
|
340
|
+
left. `@value`, `@defaultValue` and `@onValueChange`, `@disabled` on the group or an item,
|
|
341
|
+
`@required`, `@orientation`, and `@formName` for the hidden native radios it submits in a form.
|
|
342
|
+
`@ember-joinery/primitives/radio-group` is the headless one, and `@ember-joinery/test-support`
|
|
343
|
+
adds `RadioGroupHarness`.
|
|
344
|
+
- a73065d: `Rating` is ember-primitives' Rating: a `<fieldset role="radiogroup">` of native radios,
|
|
345
|
+
controlled or not (`@value`, `@defaultValue`, `@onValueChange`), with `@max`, half ratings
|
|
346
|
+
through `@step`, `@readonly`, a display-only mode (`@interactive={{false}}`) that summarises
|
|
347
|
+
itself, and its strings as arguments (`@itemLabel`, `@summary`).
|
|
348
|
+
`@ember-joinery/primitives/rating` is the headless one, whose block lays it out with `Stars`,
|
|
349
|
+
`Item` and `Range`; `@ember-joinery/ember`'s draws lucide's Star in shadcn's terms, in three
|
|
350
|
+
sizes, with half stars. `@ember-joinery/test-support` adds `RatingHarness`, which reads each
|
|
351
|
+
item's state (`stars`) and its icon's text (`starTexts`), and picks a value between the items on
|
|
352
|
+
a range or number input.
|
|
353
|
+
- a73065d: `ResizablePanelGroup`, `ResizablePanel` and `ResizableHandle` are shadcn's Resizable: panel
|
|
354
|
+
groups side by side or stacked, nested, with handles a pointer drags and the keyboard moves (APG's
|
|
355
|
+
window splitter), sizes in percent, pixels or font units, collapsible panels, and a layout to save
|
|
356
|
+
(`@defaultLayout`, `@onLayoutChanged`). They sit on `Resizable`, `ResizablePanel` and
|
|
357
|
+
`ResizableHandle` from `@ember-joinery/primitives/resizable`, which follow react-resizable-panels'
|
|
358
|
+
API and cover ember-primitives' `Resizable`. `@ember-joinery/test-support` adds
|
|
359
|
+
`ResizableHarness`, and `sendPointer()` for real pointer events.
|
|
360
|
+
- a73065d: `ScrollArea` and `ScrollBar` are shadcn's Scroll Area: native scrolling with scrollbars of the
|
|
361
|
+
style's drawing, which show while the pointer is over the area (`@type` for `scroll`, `auto` or
|
|
362
|
+
`always`). They sit on `ScrollArea` from `@ember-joinery/primitives/scroll-area`, Radix's, with
|
|
363
|
+
its viewport, scrollbars, thumbs and corner as parts. `@ember-joinery/test-support` adds
|
|
364
|
+
`ScrollAreaHarness`.
|
|
365
|
+
- a73065d: `Select` is shadcn's Select, on Radix's: `<Select as |s|>` yields Trigger (`@size`), Value
|
|
366
|
+
(`@placeholder`), Content, Group, Label, Item, Separator and Arrow, and a `trigger` modifier.
|
|
367
|
+
The list opens over its trigger with the chosen option on the value (`item-aligned`, the
|
|
368
|
+
default) or below it (`@position="popper"`), with scroll buttons while it scrolls, typeahead on
|
|
369
|
+
the closed trigger and in the list, focus kept inside and the rest of the page inert while it
|
|
370
|
+
is open, a hidden native `<select>` named `@formName` in a form, and a trigger a Field sizes
|
|
371
|
+
as it does upstream's. Its state is
|
|
372
|
+
`@value`/`@defaultValue`/`@onValueChange` and `@open`/`@defaultOpen`/`@onOpenChange`.
|
|
373
|
+
`@ember-joinery/primitives/select` is the headless one, and `@ember-joinery/test-support`
|
|
374
|
+
adds `SelectHarness`.
|
|
375
|
+
- a73065d: `@ember-joinery/primitives/separator` is ember-primitives' and Radix's Separator: an `<hr>` by
|
|
376
|
+
default or any tag with `@as`, `@orientation`, and `@decorative` (`role="none"` and
|
|
377
|
+
`aria-hidden`); `separatorAria()` returns its ARIA. `Separator` in `@ember-joinery/ember` is
|
|
378
|
+
shadcn's, on it (a decorative `div` unless told otherwise), with an `asSeparator` modifier.
|
|
379
|
+
`@ember-joinery/test-support` adds `SeparatorHarness`.
|
|
380
|
+
- a73065d: `SidebarProvider` is shadcn's Sidebar: `<SidebarProvider as |sidebar|>` yields the `Sidebar`
|
|
381
|
+
(`@side`, `@variant` of `sidebar`, `floating` or `inset`, and `@collapsible` of `offcanvas`,
|
|
382
|
+
`icon` or `none`), its Header, Content, Footer, Group (Label, Action, Content), Menu (Item,
|
|
383
|
+
Button, Action, Badge, Skeleton, Sub, SubItem, SubButton), Input, Separator, Rail, Inset and
|
|
384
|
+
Trigger, a modifier for each part (`<LinkTo {{sidebar.menuButton isActive=true}}>`), and what
|
|
385
|
+
upstream's `useSidebar()` returns (`state`, `open`, `setOpen`, `openMobile`, `setOpenMobile`,
|
|
386
|
+
`isMobile`, `toggleSidebar`). Its state is its own (`@defaultOpen`) or yours (`@open`,
|
|
387
|
+
`@onOpenChange`); the trigger, the rail and ⌘B/Ctrl+B (`@keyboardShortcut`) toggle it; each
|
|
388
|
+
change is kept in upstream's `sidebar_state` cookie, which `sidebarStateFromCookie()` reads back;
|
|
389
|
+
and below 768px wide (`@mobileBreakpoint`, measured in the window it renders in) it is a Sheet
|
|
390
|
+
with its own open state. A menu button's `@tooltip` names it while the sidebar is collapsed to
|
|
391
|
+
its icons. The trigger adds `aria-expanded`, which upstream's lacks, and keeps a ghost Button's
|
|
392
|
+
resting look while the sidebar is open. Slid off the screen (`offcanvas`), the sidebar hides
|
|
393
|
+
its items from the Tab key and screen readers, which upstream's leaves focusable off the
|
|
394
|
+
screen, and focus inside it goes to the trigger as it closes. `<UseSidebar as |sidebar|>` yields
|
|
395
|
+
the same from the nearest provider around it, as upstream's `useSidebar()` does, so a routed
|
|
396
|
+
page reaches the sidebar without its block params.
|
|
397
|
+
`@ember-joinery/test-support` adds `SidebarHarness`, `SidebarMenuButtonHarness` and
|
|
398
|
+
`SidebarMenuSubButtonHarness`. A floating part's content now also sees Radix Popper's own
|
|
399
|
+
custom properties (`--radix-popper-anchor-width` and the rest), which upstream's sidebar
|
|
400
|
+
examples size their menus by.
|
|
401
|
+
- a73065d: `Slider` is shadcn's Slider, on a new headless `Slider` in `@ember-joinery/primitives/slider`
|
|
402
|
+
(Radix's, covering ember-primitives' too): one `role="slider"` thumb per value, ranges and
|
|
403
|
+
multiple thumbs that pass each other (`@minStepsBetweenThumbs` keeps them apart), a `@step`
|
|
404
|
+
array that snaps to its values, vertical and inverted sliders, right to left through logical
|
|
405
|
+
edges, the APG keys, the pointer, `@onValueCommit`, `@getThumbLabel`, and hidden form inputs
|
|
406
|
+
with `@fieldName`. `@ember-joinery/test-support` adds `SliderHarness`.
|
|
407
|
+
- a73065d: `Switch` is shadcn's Switch, on Radix's, in its `default` and `sm` sizes: `@checked`,
|
|
408
|
+
`@defaultChecked` and `@onCheckedChange`, `@disabled` and `@required`, and a block that renders
|
|
409
|
+
inside the thumb (an icon, say). In a form, a hidden native checkbox beside it submits its
|
|
410
|
+
`name` and `value`. `@ember-joinery/primitives/switch` is the headless one, covering
|
|
411
|
+
ember-primitives' `Switch`, with a `Thumb` you render yourself, and
|
|
412
|
+
`@ember-joinery/test-support` adds `SwitchHarness`.
|
|
413
|
+
- a73065d: `Tabs` is shadcn's Tabs (`t.List` with `@variant="default"` or `"line"`, `t.Trigger`,
|
|
414
|
+
`t.Content`, and `@orientation="vertical"`), on a new headless `Tabs` and `TabsState` in
|
|
415
|
+
`@ember-joinery/primitives/tabs`, which covers ember-primitives' Tabs too: controlled or not
|
|
416
|
+
(`@value`, `@defaultValue`, and `@onValueChange`, which also hears the value before), the first
|
|
417
|
+
tab selected when no value is given, automatic or manual activation, one tab stop with the arrow
|
|
418
|
+
keys along the orientation (flipped right to left, wrapping unless `@loop={{false}}`), link tabs
|
|
419
|
+
on `<a href>` or `LinkTo` that focus never selects, and the `t.list`, `t.trigger` and
|
|
420
|
+
`t.content` modifiers for your own elements. `@ember-joinery/test-support` adds `TabsHarness`.
|
|
421
|
+
- a73065d: Toasts, as shadcn's Sonner: sonner 2.0.7 ported. `@ember-joinery/primitives/toast` has
|
|
422
|
+
`toast()` with sonner's methods (`success`, `info`, `warning`, `error`, `loading`, `message`,
|
|
423
|
+
`custom`, `promise`, `dismiss`, `getHistory`, `getToasts`), kept per owner in a `Toasts`
|
|
424
|
+
service so each app and each test has its own (`toastsFor(this)`), and a headless `Toaster`
|
|
425
|
+
with sonner's arguments, markup and data attributes: positions, the stack (three visible,
|
|
426
|
+
expanding on hover, keyboard focus or Alt+T), timers that pause, swipe to dismiss, rich colours,
|
|
427
|
+
close, action and cancel buttons. A new toast reaches the Toasters a microtask later, as
|
|
428
|
+
sonner's does, so `toast()` can be called while a page renders, and `toast.dismiss()` takes
|
|
429
|
+
what `toast.promise()` returns (`{ id, unwrap }`) as well as an id. Its lists are in the top
|
|
430
|
+
layer, so toasts show above dialogs, and are dismissable branches. `@ember-joinery/ember` adds
|
|
431
|
+
`Toaster`, upstream's: lucide's icons, the popover tokens and the theme's radius, a theme that
|
|
432
|
+
follows `.dark`, and sonner's CSS in `joinery.css`; it exports `toast` and `toastsFor` too.
|
|
433
|
+
`@ember-joinery/test-support` adds `ToasterHarness`, `ToastHarness` and `setupToaster(hooks)`.
|
|
434
|
+
sonner's MIT notice is in `NOTICE` and in the built JavaScript and CSS that carry its code.
|
|
435
|
+
- a73065d: `ToggleGroup` is shadcn's Toggle Group (`@type="single"` or `"multiple"`, `@variant`, `@size`,
|
|
436
|
+
`@spacing` and `@orientation` for every item), on a new headless `ToggleGroup` and
|
|
437
|
+
`ToggleGroupState` in `@ember-joinery/primitives/toggle-group`: one tab stop with the arrow keys
|
|
438
|
+
moving between items, radios in a single group and toggle buttons in a multiple one, and an
|
|
439
|
+
item modifier, `g.item`, for your own elements. `@ember-joinery/test-support` adds
|
|
440
|
+
`ToggleGroupHarness`.
|
|
441
|
+
- a73065d: `Toggle` is shadcn's Toggle, with typed `@variant` and `@size`, on a new headless `Toggle` in
|
|
442
|
+
`@ember-joinery/primitives/toggle` (`aria-pressed` and `data-state`, controlled with `@pressed`
|
|
443
|
+
or not with `@defaultPressed`); the `asToggle` modifier makes your own element a toggle, and
|
|
444
|
+
`toggleClasses()` and `toggleAttributes()` return its look. `@ember-joinery/test-support` adds
|
|
445
|
+
`ToggleHarness`.
|
|
446
|
+
- a73065d: `Tooltip` and `TooltipProvider` are shadcn's, on Radix's: a tooltip opens when the pointer
|
|
447
|
+
rests on its trigger (at once by default, as in shadcn's provider) or on focus, describes the
|
|
448
|
+
trigger through `aria-describedby`, lets the pointer cross onto it, and closes on blur, a
|
|
449
|
+
press, Escape or the pointer leaving; it draws its arrow. A provider's tooltips share its
|
|
450
|
+
`@delayDuration`, and the next opens at once just after one closed; tooltips need no provider.
|
|
451
|
+
`@ember-joinery/primitives/tooltip` is the headless pair, and `@ember-joinery/test-support`
|
|
452
|
+
adds `TooltipHarness` and the `hover()` and `unhover()` pointer helpers.
|
|
453
|
+
|
|
454
|
+
### Patch Changes
|
|
455
|
+
|
|
456
|
+
- 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.
|
|
457
|
+
- a73065d: `anchor()` and `{{anchorTo}}` set the anchor's size (`--jn-anchor-width`, `--jn-anchor-height`)
|
|
458
|
+
before they measure the floating element, and the Floating UI fallback places it again when
|
|
459
|
+
those properties change its size, as Radix's Popper does. So an element as wide as its anchor (a
|
|
460
|
+
Dropdown Menu's content) is placed at its own size the first time, and doesn't resize after it is
|
|
461
|
+
placed. A transition of the element's own on the properties that place it is cut short, so it
|
|
462
|
+
doesn't slide into place, and the browser's "ResizeObserver loop" message isn't reported as an
|
|
463
|
+
error.
|
|
464
|
+
- a73065d: `Field` is shadcn's Field family: `Field` (`@orientation` `vertical`, `horizontal` or
|
|
465
|
+
`responsive`, `@invalid`, `@disabled`), `FieldSet`, `FieldLegend` (`@variant`), `FieldGroup`,
|
|
466
|
+
`FieldContent`, `FieldLabel`, `FieldTitle`, `FieldDescription`, `FieldSeparator` and
|
|
467
|
+
`FieldError` (its block, or `@errors`: one message, or a list of distinct ones), with an `as…`
|
|
468
|
+
modifier for each part that has nothing of its own to render. `@ember-joinery/test-support`
|
|
469
|
+
adds `FieldHarness`, `FieldSetHarness` and `FieldGroupHarness`. A radio group's items now name
|
|
470
|
+
their group's `id` (the caller's own, when they give one) in `data-test-jn-owner`, so
|
|
471
|
+
`RadioGroupHarness` finds them inside a Field or a label around them, and the checkable
|
|
472
|
+
harnesses count a control in a disabled `<fieldset>` as disabled.
|
|
473
|
+
- 99eab0c: Built-in strings follow a live change of the translator's `locale`: a carousel's slide names
|
|
474
|
+
(`1 of 5`) and an input OTP's fallback name (`One-time password`) are set again in the new
|
|
475
|
+
language, not only on the next render. A date range picker reads typed text with the range
|
|
476
|
+
message it writes (`{from} – {to}`, or its translation), so a translated separator reads back,
|
|
477
|
+
and a dash, a hyphen or `to` still split English.
|
|
478
|
+
- a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
|
|
479
|
+
notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
|
|
480
|
+
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.
|