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 hidden (Show)

floating-ui - v2.3.0

Published by FezVrasta over 4 years ago

  • fix: properly compute viewport sizes on iOS;
  • fix(flow): remove src folder from npm package;
  • fix(typescript): improve TS build and fix computeAutocomplete type;
  • feat: add allowedAutoPlacements option to flip modifier;
floating-ui - v2.2.3

Published by FezVrasta over 4 years ago

  • fix(types): replace __DEV__ global variable with false literal in lib/*.js.flow files so that Flow doesn't complain about an unknown global variable;
floating-ui - v2.2.2

Published by FezVrasta over 4 years ago

  • fix(applyStyles): use strategy for initialStyles
  • fix: transitionProperty dev check
  • fix: track scrolling parent when parent of assigned slot (HTMLSlotElement)
floating-ui - v1.16.1-LTS

Published by FezVrasta over 4 years ago

This release is just like 1.16.1, but the npm release doesn't come with the Popper@2 deprecation warning.

This can be useful if you are not willing to upgrade to Popper 2.x and you don't want to show to your users the deprecation warning that comes with the main release branch of 1.x

floating-ui - v2.2.1

Published by FezVrasta over 4 years ago

  • fix: the way we re-exported the types lead to an increase of bundle size
floating-ui - v2.2.0

Published by FezVrasta over 4 years ago

  • feat: arrow edge data (d36b4ad0ff98ba217bc671472b3a2ffd6d5b6d84)
  • fix(types): Export Flow type definitions from entry points
  • feat: export detectOverflow
  • feat: contextElement for virtual elements
  • fix: firefox offsetParent check
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.