@superdispatch/ui 0.14.0 → 0.15.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.
@@ -1344,19 +1344,29 @@ var InlineGrid = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1344
1344
  });
1345
1345
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1346
1346
 
1347
- var _excluded$f = ["size", "square", "classes", "children", "className", "CardContentProps"],
1348
- _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1347
+ function mergeRefs() {
1348
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
1349
+ refs[_key] = arguments[_key];
1350
+ }
1349
1351
 
1352
+ return node => {
1353
+ refs.forEach(ref => {
1354
+ assignRef(ref, node);
1355
+ });
1356
+ };
1357
+ }
1350
1358
  function assignRef(ref, value) {
1351
1359
  if (ref) {
1352
- if (typeof ref === 'object') {
1353
- ref.current = value;
1354
- } else {
1360
+ if (typeof ref === 'function') {
1355
1361
  ref(value);
1362
+ } else {
1363
+ ref.current = value;
1356
1364
  }
1357
1365
  }
1358
1366
  }
1359
1367
 
1368
+ var _excluded$f = ["size", "square", "classes", "children", "className", "CardContentProps"],
1369
+ _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1360
1370
  var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1361
1371
  root: {
1362
1372
  '&$fullWidth': {
@@ -3428,24 +3438,6 @@ var Tiles = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3428
3438
  });
3429
3439
  if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
3430
3440
 
3431
- function mergeRefs() {
3432
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
3433
- refs[_key] = arguments[_key];
3434
- }
3435
-
3436
- return node => {
3437
- refs.forEach(ref => {
3438
- if (ref) {
3439
- if (typeof ref === 'function') {
3440
- ref(node);
3441
- } else {
3442
- ref.current = node;
3443
- }
3444
- }
3445
- });
3446
- };
3447
- }
3448
-
3449
3441
  exports.AdaptiveToolbar = AdaptiveToolbar;
3450
3442
  exports.AvatarButton = AvatarButton;
3451
3443
  exports.Button = Button;
@@ -3477,6 +3469,7 @@ exports.Tag = Tag;
3477
3469
  exports.ThemeProvider = ThemeProvider;
3478
3470
  exports.Tiles = Tiles;
3479
3471
  exports.VisibilityObserver = VisibilityObserver;
3472
+ exports.assignRef = assignRef;
3480
3473
  exports.isColorProp = isColorProp;
3481
3474
  exports.isEmptyReactNode = isEmptyReactNode;
3482
3475
  exports.mergeRefs = mergeRefs;