floating-ui

A JavaScript library to position floating elements and create interactions for them.

MIT License

Downloads
202.3M
Stars
28.6K
Committers
104

Bot releases are visible (Hide)

floating-ui - v2.1.1

Published by FezVrasta over 4 years ago

  • fix: arrow position using offsetParent client offset
floating-ui - v1.16.1

Published by FezVrasta over 4 years ago

  • chore: added funding field in package.json
floating-ui - 2.1.0

Published by FezVrasta over 4 years ago

  • feat: flip and preventOverflow modifiers now support altBoundary flag;
  • fix: better support for iframes;
  • fix: arrow position with popper border;
  • fix: only account for client offset if arrow element exists;
floating-ui - v2.0.6

Published by FezVrasta over 4 years ago

Our quest to keep the issue tracker empty continues!

In this release:

  • fix(applyStyles): don't remove reference inline styles (5399733f129d52c27fd3d5038fd881619a2070a7)
  • fix: merge modifiers by name (ef445003c3f5be4b904f19f3c6a7b3adf78c2a7c)
  • fix: warning improvements (07f2fbbd9e2d23c19156ee73c9c98ff8ffa1d183)
  • fix(preventOverflow): tether activating too early with point reference (c1cea1105051ca21d3c7f6f20b6b1af17048f1c1)
  • fix(applyStyles): apply initial styles to arrow (4f39bbdeef62589783004cb2a0738e25b54a05b0)
floating-ui - v2.0.5

Published by FezVrasta over 4 years ago

  • fix: more RTL improvements, now iframe scrollbars should be detected correctly;
  • fix: detect iOS bottom bars;
  • fix: fixed an issue with the ES browser build;
  • fix(types): we now use a custom Window type to improve type safety (Flow only);
floating-ui - v2.0.4

Published by FezVrasta over 4 years ago

  • fix: RTL scrollbars are now supported
  • fix: flipVariations was enforced even if set to false
  • fix: the browser-ready ES modules build used the wrong file extension (.mjs instead of .js)

We also added a new development mode warning to let you know to disable the adaptive option of computeStyles when your popper has CSS transitions.

floating-ui - v2.0.3

Published by FezVrasta over 4 years ago

I'm sorry for the trouble, but I accidentally listed as dependencies a dev dependency in 2.0.2, this release puts it back to devDependencies. The previous version works just fine, this 2.0.3 is just to keep things tidy and clean.

  • fix: moved babel-plugin-transform-inline-environment-variables from dependencies to devDependencies;
floating-ui - v2.0.2

Published by FezVrasta over 4 years ago

  • fix: workaround Edge problem with web component polyfill (#980);
  • fix(computeStyles): adaptive option with gpuAcceleration disabled (#981)
  • fix: remove Object.entries (polyfill for IE is no longer required)
  • fix: remove String.prototype.includes (polyfill for IE is no longer required)
  • fix: remove Array.prototype.includes (polyfill for IE is no longer required)
floating-ui - v2.0.1

Published by FezVrasta over 4 years ago

This release includes a small bug fix and better development error messages:

  • fix(types): modifier state type, remove isCreated state prop
  • fix: take into account document element scrollbar
  • fix: add margin warning
  • fix: add margin 0 to the initialStyles effect
  • fix: add back in individual side checks

The type changes may introduce small breaking changes, be careful.

floating-ui - v2.0.0 is here!

Published by FezVrasta almost 5 years ago

floating-ui - v2.0.0-rc.3

Published by FezVrasta almost 5 years ago

In this release:

  • feat: added a new onFirstUpdate callback option;
  • perf: hide modifier improvements;
  • fix: better types support (TS and Flow);
  • fix: scroll parent detection
floating-ui - v2.0.0-rc.2

Published by FezVrasta almost 5 years ago

In this release:

  • fix: preventOverflow now takes in account offsets provided by offset modifier;
  • fix: instance.setOptions will now extend the originally provided options instead of replacing them;
  • fix: instance.setOptions will now also run a position update;
  • fix: the esm build is now browser compatible;
  • fix: arrow elements inside shadow DOM are now allowed;
  • fix: all the modules under lib/ now ship with their own .d.ts files (TypeScript)
  • docs: several improvements to the documentation
floating-ui - v2.0.0-rc.1

Published by FezVrasta almost 5 years ago

Please welcome our first Release Candidate for Popper 2!

With this release, the official website and documentation has been updated to point to the Popper 2 content.

Notable changes:

  • Fixed various issues on Edge and Internet Explorer 11;
  • Renamed optionallyRequires to requiresIfExists;
  • Replaced onCreate and onDestroy with effect
  • Account for scrollbar sizes when positioning poppers;
  • Modifiers can now avoid to return state, if undefined is returned, the same state object will be used on the next modifier;
floating-ui - v2.0.0-alpha.2

Published by FezVrasta almost 5 years ago

The second alpha of Popper 2 is here! From now on we'll try to keep track of the changes using the GitHub releases.

In this version:

  • feat: point to popper-lite for default ESM import;
  • fix: address Firefox quirk (#837);
  • feat: preventOverflow#tetherOffset and flip#checkVariation;

Breaking changes:

The default library export for ESM consumers is now popper-lite.js, this version includes the most basic modifiers needed to have a working popper. If you want to take advantage of the super-thin Popper core, you can still import from @popperjs/core/lib/popper-base.js to reproduce the previous behavior (no modifiers).

The preventOverflow and flip modifiers API slightly changed, preventOverflow#tether is now a boolean, and you are able to further configure it by defining the thetherOffset option.

The flip modifier has now a new option, checkVariation, that will attempt to flip the placement's variation (-start, -end) in order to keep the popper within its boundaries.

floating-ui - v1.16.0

Published by FezVrasta about 5 years ago

  • 🚀 feat: referenceNode support for reference objects (closes #800) (#801) (thanks @Benjamin-Dobell)
  • 🛠 fix: make browser detection more reliable (#768) (thanks @mrzepinski)
  • 🛠 fix: Remove /src from .npmignore (for debugging) (#761) (thanks @justingrant)
  • 🛠 fix: calculation that results in NaN (#790) (thanks @snoozbuster)
  • 🛠 fix: ESM style export of Padding in TS typedefs (#802) (thanks @Benjamin-Dobell)
  • 🛠 fix: .js.flow definitions (#829) (thanks @pascalduez)
  • ⚡️ perf: declared packages side effect free and fixed existing side effects (#830) (thanks @maclockard)
  • 📖 docs: add complete live example
  • 📖 docs: HTTPS codepen link (#795) (thanks @coliff)
  • 📖 docs: fix typo in destroy.js comment (#810) (thanks @XhmikosR)
  • 🏡 chore: upgrade lerna (#803) (thanks @jquense)
floating-ui - v1.15.0

Published by FezVrasta over 5 years ago

  • fix(types): add missing reference and popper class properties (#759)
  • fix: add "unpkg" field to package.json to link to minified version (#758)
  • feat: add 'flipVariationsByContent' option to flip modifier (#754)
floating-ui - v1.14.7

Published by FezVrasta over 5 years ago

  • fix: TS and Flow types for preventOverflow and flip modifiers;
floating-ui - v1.14.6

Published by FezVrasta almost 6 years ago

  • fix: getOuterSizes returning NaN for virtual elements (#711)
  • fix: improve rounding (#715)
  • fix: flow types should live in umd folder (fixes Flow types)
floating-ui - v1.14.5

Published by FezVrasta almost 6 years ago

Popper.js

  • fix: Skip elements that does not have .offsetParent correctly (#659)
  • fix: add missing props of Data to typescript declarations (#655)
  • fix: add support for th elements (#276) (#650)
  • fix: run getComputedStyle in the same context as the target element (#678)

Tooltip.js:

  • feat: options.closeOnClickOutside to close tooltip on click outside (#661)
  • fix: update tooltip typings (#675)
floating-ui - v1.14.4

Published by FezVrasta about 6 years ago

Popper.js

  • docs: fixed some typos and grammar. (#582)
  • test: Fix flaky test on IE (#606)
  • fix: Get elements ownerDocument for correct measurements (#607)
  • feat: Add Flow types to Popper.js (#602)
  • docs: fix typos (#616)
  • fix(computeStyle): correctly calculate bottom when x="top" and right when y="left" (#612)
  • feat: Add specific padding to boundaries (#518) (#615)
  • docs: erroneous docs on placement (#623)
  • docs: improved issue template
  • docs: fix typo on docs ("gzpipped" -> "gzipped") (#631)
  • fix: Unignore flow typings from npm publish (#633)
  • docs: update ad code
  • fix: add missing Data.arrowStyles declarations; (#641)
  • fix: add typecript types to npm build (#593)
  • refactor: tiny redundancy (#657)
  • fix(flow): add event listener methods to Instance (#656)

Tooltip.js

  • feat: set custom selectors for tooltip (#644)
  • feat: use visibility instead of display for tooltip (#647)
  • docs: options.placement only accepts string (#660)