0.5.0-beta.2 (2024-01-10)
- alerts: alerts can no longer be added by appending to the container
- alerts: alerts can no longer be added by appending to the container (4c2c433)
- tooltip: keep tooltip class updated (cb19f93)
0.5.0-beta.1 (2023-11-06)
- alerts: remove hello-goodbye (8e6583a)
- modal: lock body scrolling while modal is open (59e693d)
- popup: use fixed positioning strategy instead of absolute (d00137f)
- tooltip: don't show tooltip on touch (c8998bc)
- tooltip: only show tooltip on focus via Tab key (bb9b0ce)
- modal: activate focus trap after transition and fix autofocus (66e0ca1)
- modal: activate focus trap reliably at start of transition (5036a4f)
- modal: fall back to default focus strategy if there is no autofocus element (fe57357)
- popup: subtract margins when calculating max popup size (f842b6d)
0.4.6 (2023-06-29)
- tooltip: prevent creating multiple positioners (4dfc42d)
0.4.5 (2023-06-29)
- tooltip: clean up tooltip positioner on disconnect (a163ad7)
0.4.4 (2023-06-25)
- alerts: fix regression causing alerts not to show (da0b283)
0.4.3 (2023-06-25)
- alerts: fix previous alert with same key not being dismissed (356e028)
- update hello-goodbye to fix transitions not running reliably (89f23df)
0.4.2 (2023-06-11)
- tooltip: auto-update position on scroll, resize, etc (587de3b)
- tooltip: only update tooltip content if original element content has changed (62ad220)
0.4.1 (2023-04-15)
- attempt to fix tree shaking (ac1f1b1)
0.4.0 (2023-04-15)
- disclosure:
open
andclose
events have been removed - usetoggle
instead
- disclosure: add
toggle
event for consistency with<details>
(9fc7f74) - tabs: new
tabs
element (4097e73)
0.3.4 (2023-03-21)
- disclosure: fix issue with widget not closing in some cases (cb3ae5d)
0.3.3 (2023-03-17)
- popup: fix layout flicker when opening popup (42a397b)
0.3.2 (2023-03-17)
- tooltip: prevent tooltip flicker on touch scroll (2e461de)
0.3.1 (2023-03-17)
- tooltip: show tooltip on touch (d421649)
0.3.0 (2023-03-16)
- add Disclosure and Accordion elements (0df80d3)
- modal: prevent scroll on focus trap (de)activation (4e09d5f)
- popup: allow popup trigger button to be nested (6c62efd)
0.2.2 - 2023-03-05
- Alerts: Handle pre-existing children and any subsequently added to the container. Options can be specified as
[data-*]
attributes. - Popup: Allow popups to be disabled using the
[disabled]
attribute. - Popup: Don't open popup if modifier keys are pressed. This allows link popup triggers to be opened in a new tab.
- Popup: Clean up event listeners when popup element is disconnected.
0.2.1 - 2022-08-05
- Fix package not including dist files.
0.2.0 - 2022-08-05
- Upgrade to
@floating-ui/dom
1.0.0. - Switch build tool from Rollup to Vite.
0.1.3 - 2022-06-05
- Popup: Update popup position on resize.
- Alerts: Dismiss all alerts by key, not just the first one.
- Modal: Fix some focus issues.
- Popup: Fix max size not being applied.
- Tooltip: Clear timeout on disconnect.
0.1.2 - 2022-03-03
- Popup: Fix calculated max size overriding CSS max-size declaration, even if it's larger.
0.1.1 - 2022-02-22
- Popup: Fix popup content not having a max size applied.
0.1.0 - 2022-01-28
- Menu: Ensure that Arrow keys only navigate to items that are focusable.
- Modal: Fix focus not being placed correctly when modal is open on creation.
0.1.0-beta.9 - 2022-01-27
- New element: Toolbar.
- Support for tree-shaking so unused elements won't be included in the bundle.
- Use
prefers-reduced-motion
media queries for transition CSS examples. - Alerts: New
clear
method to dismiss all alerts. - Popup: Additional discussion and demonstration of use-cases.
- Tooltip: Support for hovering over tooltip contents (opt-out with
pointer-events: none
).
- External dependencies are no longer included in the bundle, meaning a bundler is required for use.
- Modal: Use focus-trap instead of
inert
so that modals do not have to be placed as a direct child of the<body>
. - Popup, Tooltip: Use Floating UI instead of Placement.js for element positioning.
- Set various ARIA attributes less aggressively (ie. only if they haven't already been set).
- Alerts: Export the
AlertOptions
type definition. - Menu: Attach event listeners to menu element rather than document.
- Popup: Only add
aria-haspopup="true"
if the content has themenu
role. - Popup: Close the popup if the user tabs away from it.
- Tooltip: Hide the tooltip when the page is scrolled.
0.1.0-beta.8 - 2021-09-12
- Tooltip: Hide tooltip when Escape key is pressed. (3bcdfcc8)
- Tooltip: Remove support for touch devices. (7e1c0e69)
- Tooltip: Fix parent event listeners not being removed properly on disconnect. (a75b6997)
0.1.0-beta.7 - 2021-05-27
- Tooltip: Only remove event listeners on disconnection if parent still exists.
0.1.0-beta.6 - 2021-05-20
- Alerts: Increase default alert duration to 10 seconds.
- Tooltip: Fix behavior on touch devices.
- Update Placement.js to fix incorrect positions when horizontally scrolled.
0.1.0-beta.5 - 2021-05-18
- Update
hello-goodbye
version.
0.1.0-beta.4 - 2021-05-09
- Popup: Don't close when a
menuitemcheckbox
is clicked. - Popup: Only return focus to button when Escape key is used to close popup.
- Tooltip: Hide tooltip on click, or if parent becomes disabled.
- Implemented disconnect callbacks to properly clean up element side effects.
- Popup: Don't set z-index - leave this to the userspace.
0.1.0-beta.3 - 2021-03-05
- Recompile dist file.
0.1.0-beta.2 - 2021-03-05
- Update
hello-goodbye
version. - Mark package as side-effect free.