@popmenu/table 0.88.0 → 0.90.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/build/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { createElement, forwardRef, createContext, useContext, useState, useRef, isValidElement } from 'react';
3
- import { makeStyles, Typography as Typography$2, Link as Link$2, Paper as Paper$2, Box, FormControl, InputLabel, Select, FormControlLabel as FormControlLabel$1, Switch as Switch$2, TextField, Popover, ButtonBase, InputAdornment, useTheme as useTheme$1 } from '@material-ui/core';
3
+ import { makeStyles, Link as Link$2, Paper as Paper$2, Typography as Typography$2, Box, FormControl, InputLabel, Select, FormControlLabel as FormControlLabel$1, Switch as Switch$2, TextField, Popover, ButtonBase, InputAdornment, useTheme as useTheme$1 } from '@material-ui/core';
4
4
  import { Pagination } from '@material-ui/lab';
5
5
  import { useReactTable, getCoreRowModel, getSortedRowModel, getFilteredRowModel, getPaginationRowModel, flexRender } from '@tanstack/react-table';
6
6
  import CommonAlert from '@material-ui/lab/Alert';
@@ -491,7 +491,7 @@ makeStyles$1(function (theme) { return ({
491
491
  },
492
492
  }); });
493
493
 
494
- var useButtonStyles$2 = makeStyles$1(function () { return ({
494
+ makeStyles$1(function () { return ({
495
495
  root: {
496
496
  minWidth: 'unset',
497
497
  },
@@ -503,19 +503,6 @@ var useButtonStyles$2 = makeStyles$1(function () { return ({
503
503
  },
504
504
  }); });
505
505
 
506
- var Button$2 = forwardRef(function (props, ref) {
507
- props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, muiProps = __rest$2(props, ["textTransform", "loading", "classes", "className"]);
508
- props.classes; var styleProps = __rest$2(props, ["classes"]);
509
- var classes = useButtonStyles$2(styleProps);
510
- var typography = useTheme().typography;
511
- var loadingIndicator = {
512
- startIcon: React__default.createElement(CircularProgress, { color: "inherit", size: typography.button.fontSize }),
513
- disabled: true,
514
- };
515
- return (React__default.createElement(MuiButton, __assign$2({ ref: ref, classes: __assign$2(__assign$2({}, classes), classesOverride), className: classNames([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
516
- });
517
- Button$2.displayName = 'Button';
518
-
519
506
  var Checkbox$1 = forwardRef(function (props, ref) {
520
507
  var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest$2(props, ["label", "disabled", "LabelProps"]);
521
508
  var control = React__default.createElement(MuiCheckbox, __assign$2({ disabled: label ? undefined : disabled }, muiProps));
@@ -685,12 +672,12 @@ var useTypographyStyles$1 = makeStyles$1(function (theme) {
685
672
  });
686
673
  });
687
674
 
688
- var Typography$1 = forwardRef(function (props, ref) {
675
+ var Typography$1 = function (props) {
689
676
  props.weight; props.color; var restProps = __rest$2(props, ["weight", "color"]);
690
677
  var classes = useTypographyStyles$1(__assign$2({}, props));
691
678
  var variantMapping = { subtitle1: 'p' };
692
- return React__default.createElement(Typography$2, __assign$2({ ref: ref, classes: classes, variantMapping: variantMapping }, restProps));
693
- });
679
+ return React__default.createElement(Typography$2, __assign$2({ classes: classes, variantMapping: variantMapping }, restProps));
680
+ };
694
681
  Typography$1.displayName = 'Typography';
695
682
  Typography$1.defaultProps = defaultTypographyProps$1;
696
683
 
@@ -1765,7 +1752,7 @@ var useButtonStyles$1 = makeStyles$1(function () { return ({
1765
1752
  },
1766
1753
  }); });
1767
1754
 
1768
- var Button$1 = forwardRef(function (props, ref) {
1755
+ var Button$1 = function (props) {
1769
1756
  props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, muiProps = __rest(props, ["textTransform", "loading", "classes", "className"]);
1770
1757
  props.classes; var styleProps = __rest(props, ["classes"]);
1771
1758
  var classes = useButtonStyles$1(styleProps);
@@ -1774,8 +1761,8 @@ var Button$1 = forwardRef(function (props, ref) {
1774
1761
  startIcon: React__default.createElement(CircularProgress, { color: "inherit", size: typography.button.fontSize }),
1775
1762
  disabled: true,
1776
1763
  };
1777
- return (React__default.createElement(MuiButton, __assign({ ref: ref, classes: __assign(__assign({}, classes), classesOverride), className: classNames$1([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
1778
- });
1764
+ return (React__default.createElement(MuiButton, __assign({ classes: __assign(__assign({}, classes), classesOverride), className: classNames$1([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
1765
+ };
1779
1766
  Button$1.displayName = 'Button';
1780
1767
 
1781
1768
  var Checkbox = forwardRef(function (props, ref) {
@@ -1932,12 +1919,12 @@ var useTypographyStyles = makeStyles$1(function (theme) {
1932
1919
  });
1933
1920
  });
1934
1921
 
1935
- var Typography = forwardRef(function (props, ref) {
1922
+ var Typography = function (props) {
1936
1923
  props.weight; props.color; var restProps = __rest(props, ["weight", "color"]);
1937
1924
  var classes = useTypographyStyles(__assign({}, props));
1938
1925
  var variantMapping = { subtitle1: 'p' };
1939
- return React__default.createElement(Typography$2, __assign({ ref: ref, classes: classes, variantMapping: variantMapping }, restProps));
1940
- });
1926
+ return React__default.createElement(Typography$2, __assign({ classes: classes, variantMapping: variantMapping }, restProps));
1927
+ };
1941
1928
  Typography.displayName = 'Typography';
1942
1929
  Typography.defaultProps = defaultTypographyProps;
1943
1930