@occmundial/occ-atomic 3.0.0-beta.65 → 3.0.0-beta.66

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [3.0.0-beta.66](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.65...v3.0.0-beta.66) (2024-10-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Menu orientation relative to target ([d1d60f7](https://github.com/occmundial/occ-atomic/commit/d1d60f764376ad46acd5f788981ba794b9786a96))
7
+
1
8
  # [3.0.0-beta.65](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.64...v3.0.0-beta.65) (2024-10-04)
2
9
 
3
10
 
@@ -45,8 +45,7 @@ function Menu(_ref) {
45
45
  classes = _ref.classes,
46
46
  className = _ref.className,
47
47
  triggerElement = _ref.triggerElement,
48
- _ref$placement = _ref.placement,
49
- placement = _ref$placement === void 0 ? 'left' : _ref$placement;
48
+ placement = _ref.placement;
50
49
 
51
50
  var _useState = (0, _react.useState)(false),
52
51
  _useState2 = _slicedToArray(_useState, 2),
@@ -56,7 +55,7 @@ function Menu(_ref) {
56
55
  var _useFloating = (0, _react2.useFloating)({
57
56
  open: open,
58
57
  onOpenChange: setOpen,
59
- placement: placement === 'left' ? 'bottom-start' : 'bottom-end',
58
+ placement: placement,
60
59
  middleware: [(0, _react2.offset)(16), (0, _react2.shift)()],
61
60
  whileElementsMounted: _react2.autoUpdate
62
61
  }),
@@ -107,5 +106,5 @@ Menu.propTypes = {
107
106
  className: _propTypes["default"].string,
108
107
 
109
108
  /** Determines the placement of the Menu */
110
- placement: _propTypes["default"].oneOf(['left', 'right'])
109
+ placement: _propTypes["default"].oneOf(["top", "right", "bottom", "left", "top-start", "top-end", "right-start", "right-end", "bottom-start", "bottom-end", "left-start", "left-end"])
111
110
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.65",
3
+ "version": "3.0.0-beta.66",
4
4
  "description": "Collection of shareable styled React components for OCC applications.",
5
5
  "homepage": "http://occmundial.github.io/occ-atomic",
6
6
  "main": "build/index.js",