grep-components 1.24.0-GREPF-2082.1 → 1.24.0-GREPF-2060.1

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/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import LocalizedFormatPlugin from 'dayjs/plugin/localizedFormat';
4
4
  import isBetweenPlugin from 'dayjs/plugin/isBetween';
5
5
  import { red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, grey, blueGrey } from '@mui/material/colors';
6
6
  import * as React from 'react';
7
- import React__default, { useRef, useContext, createContext, createElement, Fragment, forwardRef, useMemo as useMemo$1, useState, useCallback as useCallback$1, useEffect, useLayoutEffect } from 'react';
7
+ import React__default, { useRef, useContext, forwardRef, createContext, useMemo as useMemo$1, createElement, useState, useCallback as useCallback$1, useEffect, useLayoutEffect } from 'react';
8
8
  import AccountCircle from '@mui/icons-material/AccountCircle';
9
9
  import ArrowDropdown from '@mui/icons-material/ArrowDropDown';
10
10
  import { Button, Box, Typography, IconButton, Menu, MenuItem, Tabs, Tab, Collapse, MenuList, Tooltip, Container, List, ListItem, ListItemText, ListItemIcon, Divider, ListItemButton, styled, TableCell, TableRow, TableSortLabel, TableHead, TablePagination, TableContainer, Table, TableBody, TableFooter, CircularProgress, Link, TextField, FormControl, InputLabel, Select, OutlinedInput, Input, Checkbox, FormHelperText, Grid, ToggleButtonGroup, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions } from '@mui/material';
@@ -552,6 +552,7 @@ function murmur2(str) {
552
552
 
553
553
  var unitlessKeys = {
554
554
  animationIterationCount: 1,
555
+ aspectRatio: 1,
555
556
  borderImageOutset: 1,
556
557
  borderImageSlice: 1,
557
558
  borderImageWidth: 1,
@@ -650,7 +651,7 @@ var processStyleValue$1 = function processStyleValue(key, value) {
650
651
  };
651
652
 
652
653
  if (process.env.NODE_ENV !== 'production') {
653
- var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
654
+ var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
654
655
  var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
655
656
  var oldProcessStyleValue = processStyleValue$1;
656
657
  var msPattern = /^-ms-/;
@@ -1310,6 +1311,7 @@ var RULESET = 'rule';
1310
1311
  var DECLARATION = 'decl';
1311
1312
  var IMPORT = '@import';
1312
1313
  var KEYFRAMES = '@keyframes';
1314
+ var LAYER = '@layer';
1313
1315
 
1314
1316
  /**
1315
1317
  * @param {number}
@@ -1724,7 +1726,7 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
1724
1726
  // \0 }
1725
1727
  case 0: case 125: scanning = 0;
1726
1728
  // ;
1727
- case 59 + offset:
1729
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
1728
1730
  if (property > 0 && (strlen(characters) - length))
1729
1731
  append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
1730
1732
  break
@@ -1739,8 +1741,8 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
1739
1741
  parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
1740
1742
  else
1741
1743
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
1742
- // d m s
1743
- case 100: case 109: case 115:
1744
+ // d l m s
1745
+ case 100: case 108: case 109: case 115:
1744
1746
  parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
1745
1747
  break
1746
1748
  default:
@@ -1859,6 +1861,7 @@ function serialize (children, callback) {
1859
1861
  */
1860
1862
  function stringify (element, index, children, callback) {
1861
1863
  switch (element.type) {
1864
+ case LAYER: if (element.children.length) break
1862
1865
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
1863
1866
  case COMMENT: return ''
1864
1867
  case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
@@ -2569,10 +2572,19 @@ function _extends() {
2569
2572
  return _extends.apply(this, arguments);
2570
2573
  }
2571
2574
 
2575
+ var isBrowser$1 = typeof document !== 'undefined';
2576
+
2577
+ var syncFallback = function syncFallback(create) {
2578
+ return create();
2579
+ };
2580
+
2581
+ var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
2582
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
2583
+
2572
2584
  var isBrowser = typeof document !== 'undefined';
2573
2585
  var hasOwnProperty = {}.hasOwnProperty;
2574
2586
 
2575
- var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
2587
+ var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
2576
2588
  // because this module is primarily intended for the browser and node
2577
2589
  // but it's also required in react native and similar environments sometimes
2578
2590
  // and we could have a special build just for that
@@ -2614,7 +2626,7 @@ if (!isBrowser) {
2614
2626
  cache = createCache({
2615
2627
  key: 'css'
2616
2628
  });
2617
- return /*#__PURE__*/createElement(EmotionCacheContext.Provider, {
2629
+ return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
2618
2630
  value: cache
2619
2631
  }, func(props, cache));
2620
2632
  } else {
@@ -2624,24 +2636,12 @@ if (!isBrowser) {
2624
2636
  };
2625
2637
  }
2626
2638
 
2627
- var ThemeContext = /* #__PURE__ */createContext({});
2639
+ var ThemeContext = /* #__PURE__ */React.createContext({});
2628
2640
 
2629
2641
  if (process.env.NODE_ENV !== 'production') {
2630
2642
  ThemeContext.displayName = 'EmotionThemeContext';
2631
2643
  }
2632
2644
 
2633
- var isBrowser$1 = typeof document !== 'undefined';
2634
- var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : function useInsertionEffect(create) {
2635
- create();
2636
- };
2637
- function useInsertionEffectMaybe(create) {
2638
- if (!isBrowser$1) {
2639
- return create();
2640
- }
2641
-
2642
- useInsertionEffect(create);
2643
- }
2644
-
2645
2645
  var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2646
2646
  var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
2647
2647
 
@@ -2650,7 +2650,7 @@ var Insertion = function Insertion(_ref) {
2650
2650
  serialized = _ref.serialized,
2651
2651
  isStringTag = _ref.isStringTag;
2652
2652
  registerStyles(cache, serialized, isStringTag);
2653
- var rules = useInsertionEffectMaybe(function () {
2653
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2654
2654
  return insertStyles(cache, serialized, isStringTag);
2655
2655
  });
2656
2656
 
@@ -2665,7 +2665,7 @@ var Insertion = function Insertion(_ref) {
2665
2665
  next = next.next;
2666
2666
  }
2667
2667
 
2668
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2668
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2669
2669
  __html: rules
2670
2670
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
2671
2671
  }
@@ -2692,7 +2692,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2692
2692
  className = props.className + " ";
2693
2693
  }
2694
2694
 
2695
- var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
2695
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
2696
2696
 
2697
2697
  if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
2698
2698
  var labelFromStack = props[labelPropName];
@@ -2713,11 +2713,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2713
2713
 
2714
2714
  newProps.ref = ref;
2715
2715
  newProps.className = className;
2716
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion, {
2716
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
2717
2717
  cache: cache,
2718
2718
  serialized: serialized,
2719
2719
  isStringTag: typeof WrappedComponent === 'string'
2720
- }), /*#__PURE__*/createElement(WrappedComponent, newProps));
2720
+ }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
2721
2721
  });
2722
2722
 
2723
2723
  if (process.env.NODE_ENV !== 'production') {
@@ -3751,13 +3751,9 @@ var GrepTable = function (_a) {
3751
3751
  var clickableRows = !!onRowClick;
3752
3752
  var disabled = isRowDisabled && isRowDisabled(row);
3753
3753
  var rowIndex = index + currentPage * rowsPerPage;
3754
- return (React__default.createElement(GrepTableRow, { key: rowIndex, "data-index": rowIndex, tabIndex: rowTabIndex !== null && rowTabIndex !== void 0 ? rowTabIndex : 0, hover: clickableRows, selected: rowIndex === selectedRowIndex, clickable: clickableRows, onMouseDown: function (e) {
3755
- if (e.target.type === 'checkbox') {
3756
- e.preventDefault();
3757
- e.stopPropagation();
3758
- return;
3759
- }
3760
- setSelectedElement(e.currentTarget);
3754
+ return (React__default.createElement(GrepTableRow, { key: rowIndex, "data-index": rowIndex, tabIndex: rowTabIndex !== null && rowTabIndex !== void 0 ? rowTabIndex : 0, hover: clickableRows, selected: rowIndex === selectedRowIndex, clickable: clickableRows, onMouseDown: function (_a) {
3755
+ var currentTarget = _a.currentTarget;
3756
+ setSelectedElement(currentTarget);
3761
3757
  if (!disableSelectOnClick) {
3762
3758
  _handleRowClick(row);
3763
3759
  }
@@ -4842,7 +4838,7 @@ function invariant$1(condition, message) {
4842
4838
  throw new Error(prefix$2);
4843
4839
  }
4844
4840
  var provided = typeof message === 'function' ? message() : message;
4845
- var value = provided ? prefix$2 + ": " + provided : prefix$2;
4841
+ var value = provided ? "".concat(prefix$2, ": ").concat(provided) : prefix$2;
4846
4842
  throw new Error(value);
4847
4843
  }
4848
4844
 
@@ -10508,8 +10504,8 @@ function useHiddenTextElement(_ref2) {
10508
10504
  var AppContext = React__default.createContext(null);
10509
10505
 
10510
10506
  var peerDependencies = {
10511
- react: "^16.8.5 || ^17.0.0",
10512
- "react-dom": "^16.8.5 || ^17.0.0"
10507
+ react: "^16.8.5 || ^17.0.0 || ^18.0.0",
10508
+ "react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0"
10513
10509
  };
10514
10510
 
10515
10511
  var semver = /(\d+)\.(\d+)\.(\d+)/;