@sproutsocial/racine 8.1.4 → 8.4.0-menu-button-beta.0
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.
- package/CHANGELOG.md +0 -30
- package/__flow__/EnumIconNames.js +1 -1
- package/__flow__/IconViewBoxes.js +1 -1
- package/__flow__/Menu/index.flow.js +2 -1
- package/__flow__/Menu/index.js +2 -1
- package/__flow__/OverflowList/index.js +4 -1
- package/__flow__/OverflowList/index.test.js +4 -36
- package/commonjs/IconViewBoxes.js +0 -3
- package/commonjs/Menu/index.js +4 -2
- package/commonjs/OverflowList/index.js +3 -1
- package/commonjs/include-icons.js +1 -1
- package/dist/iconList.js +1 -1
- package/dist/icons.svg +1 -1
- package/includeIcons.js +1 -1
- package/lib/IconViewBoxes.js +0 -3
- package/lib/Menu/index.js +4 -2
- package/lib/OverflowList/index.js +3 -1
- package/lib/include-icons.js +1 -1
- package/package.json +1 -1
- package/icons/big-commerce.svg +0 -4
- package/icons/bigcommerce.svg +0 -4
- package/icons/woocommerce.svg +0 -5
package/lib/IconViewBoxes.js
CHANGED
|
@@ -32,8 +32,6 @@ module.exports = {
|
|
|
32
32
|
"barcode": "0 0 18 16",
|
|
33
33
|
"basketball": "0 0 16 16",
|
|
34
34
|
"bell-outline": "0 0 14 16",
|
|
35
|
-
"big-commerce": "0 0 16 16",
|
|
36
|
-
"bigcommerce": "0 0 16 16",
|
|
37
35
|
"bitly": "0 0 16 16",
|
|
38
36
|
"bold": "0 0 16 16",
|
|
39
37
|
"book": "0 0 14 16",
|
|
@@ -339,7 +337,6 @@ module.exports = {
|
|
|
339
337
|
"window-minimize": "0 0 16 16",
|
|
340
338
|
"window-regular": "0 0 16 16",
|
|
341
339
|
"window-restore": "0 0 16 16",
|
|
342
|
-
"woocommerce": "0 0 16 16",
|
|
343
340
|
"x": "0 0 16 18",
|
|
344
341
|
"yelp-full-star": "0 0 16 16",
|
|
345
342
|
"yelp-half-star": "0 0 16 16",
|
package/lib/Menu/index.js
CHANGED
|
@@ -370,7 +370,9 @@ export var MenuButton = function MenuButton(_ref5) {
|
|
|
370
370
|
closeOnItemClick = _ref5$closeOnItemClic === void 0 ? true : _ref5$closeOnItemClic,
|
|
371
371
|
_ref5$id = _ref5.id,
|
|
372
372
|
id = _ref5$id === void 0 ? uniqueId("MenuButton-") : _ref5$id,
|
|
373
|
-
|
|
373
|
+
_ref5$placement = _ref5.placement,
|
|
374
|
+
placement = _ref5$placement === void 0 ? "bottom-start" : _ref5$placement,
|
|
375
|
+
props = _objectWithoutPropertiesLoose(_ref5, ["content", "popoutProps", "children", "onClick", "closeOnItemClick", "id", "placement"]);
|
|
374
376
|
|
|
375
377
|
var _useState2 = useState(false),
|
|
376
378
|
isOpen = _useState2[0],
|
|
@@ -390,7 +392,7 @@ export var MenuButton = function MenuButton(_ref5) {
|
|
|
390
392
|
isOpen: isOpen,
|
|
391
393
|
setIsOpen: setIsOpen,
|
|
392
394
|
content: /*#__PURE__*/React.createElement(CustomPopoutContent, null, content),
|
|
393
|
-
placement:
|
|
395
|
+
placement: placement
|
|
394
396
|
}, popoutProps, {
|
|
395
397
|
// $FlowIssue
|
|
396
398
|
width: props.width
|
|
@@ -2,7 +2,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import List from "./styles";
|
|
4
4
|
import React, { useCallback, useMemo } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { CellMeasurer, CellMeasurerCache } from "react-virtualized"; // imported separately so it can be mocked separately (otherwise height and width will always be 0 in jsdom)
|
|
6
|
+
|
|
7
|
+
import AutoSizer from "react-virtualized/dist/es/AutoSizer";
|
|
6
8
|
import Box from "../Box";
|
|
7
9
|
|
|
8
10
|
var VirtualizedList = function VirtualizedList(_ref) {
|