@invoicebox/ui 0.1.0-alpha.175 → 0.1.0-alpha.176

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.
@@ -10,5 +10,6 @@ export type TProps = {
10
10
  width?: string;
11
11
  zIndex?: number;
12
12
  onCloseTransitionEnd?: () => void;
13
+ isTopPosition?: boolean;
13
14
  };
14
15
  export declare const Dropdown: FC<TProps>;
@@ -32,7 +32,9 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
32
32
  _ref$width = _ref.width,
33
33
  width = _ref$width === void 0 ? 'auto' : _ref$width,
34
34
  zIndex = _ref.zIndex,
35
- onCloseTransitionEnd = _ref.onCloseTransitionEnd;
35
+ onCloseTransitionEnd = _ref.onCloseTransitionEnd,
36
+ _ref$isTopPosition = _ref.isTopPosition,
37
+ isTopPosition = _ref$isTopPosition === void 0 ? false : _ref$isTopPosition;
36
38
  var palette = (0, _palette.useComponentPalette)('dropdown');
37
39
  var position = (0, _react.useRef)({
38
40
  isAbove: true,
@@ -95,7 +97,7 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
95
97
  belowHeight: belowHeight,
96
98
  dropdownIndent: positionVertical
97
99
  }) : {
98
- isAbove: false,
100
+ isAbove: isTopPosition,
99
101
  translateY: '0px'
100
102
  };
101
103
  }
@@ -29,7 +29,8 @@ var args = {
29
29
  width: 'auto',
30
30
  zIndex: 5,
31
31
  onCloseTransitionEnd: (0, _addonActions.action)('closeTransitionEnd'),
32
- children: Array(100).fill('children ').join('')
32
+ children: Array(100).fill('children ').join(''),
33
+ isTopPosition: false
33
34
  };
34
35
  var Default = exports.Default = {
35
36
  args: _objectSpread(_objectSpread({}, args), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.175",
3
+ "version": "0.1.0-alpha.176",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {