@redsift/table 8.1.0 → 9.0.0-alpha.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
2
2
  import { GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputMultipleValue, DataGridProProps, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
3
3
  export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
4
- import { Comp, IconProps, ColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
4
+ import { Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
5
5
  import React, { ReactNode, RefObject, ComponentProps } from 'react';
6
6
 
7
7
  declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
@@ -125,14 +125,14 @@ interface TextCellProps extends ComponentProps<'div'> {
125
125
  */
126
126
  leftIcon?: IconProps['icon'];
127
127
  /** Left Icon Color variant. */
128
- leftIconColor?: ColorPalette | ProductColorPalette | (string & {});
128
+ leftIconColor?: NotificationsColorPalette | ProductColorPalette | (string & {});
129
129
  /**
130
130
  * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
131
131
  * Can also be a ReactElement.
132
132
  */
133
133
  rightIcon?: IconProps['icon'];
134
134
  /** Right Icon Color variant. */
135
- rightIconColor?: ColorPalette | ProductColorPalette | (string & {});
135
+ rightIconColor?: NotificationsColorPalette | ProductColorPalette | (string & {});
136
136
  /** Shield variant. */
137
137
  shieldVariant?: ShieldVariant;
138
138
  }
package/index.js CHANGED
@@ -2,7 +2,7 @@ import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF, getGridNumericOperators as getGridNum
2
2
  export { getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
3
3
  import * as React from 'react';
4
4
  import React__default, { forwardRef, useRef, useState, useEffect } from 'react';
5
- import { Icon, Flexbox, ColorPalette, ProductColorPalette, Button, Checkbox, TextField as TextField$2, Shield } from '@redsift/design-system';
5
+ import { Icon, Flexbox, CtasColorPalette, NotificationsColorPalette, Button, Checkbox, TextField as TextField$2, Shield } from '@redsift/design-system';
6
6
  import { mdiSync, mdiFilterVariant, mdiViewColumn, mdiChevronUp, mdiChevronDown, mdiViewHeadline, mdiViewSequential, mdiViewStream, mdiChevronRight, mdiTrayArrowDown } from '@redsift/icons';
7
7
  import emStyled from '@emotion/styled';
8
8
  import { Global, ThemeContext } from '@emotion/react';
@@ -15168,7 +15168,7 @@ const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
15168
15168
  startIcon
15169
15169
  } = props,
15170
15170
  forwardedProps = _objectWithoutProperties(props, _excluded$3);
15171
- const color = [...Object.values(ColorPalette), ...Object.values(ProductColorPalette)].includes(propsColor) ? propsColor : 'default';
15171
+ const color = [...Object.values(CtasColorPalette), ...Object.values(NotificationsColorPalette)].includes(propsColor) ? propsColor : 'primary';
15172
15172
  return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, forwardedProps, {
15173
15173
  color: color,
15174
15174
  onClick: onClick,