@evoke-platform/ui-components 1.0.0-dev.132 → 1.0.0-dev.134

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.
@@ -3,7 +3,7 @@ import { Autocomplete as MUIAutocomplete, InputLabel } from '@mui/material';
3
3
  import UIThemeProvider from '../../../theme';
4
4
  import FieldError from '../FieldError';
5
5
  import Typography from '../Typography';
6
- import { ExpandMore } from '../../../icons';
6
+ import { ExpandMore } from '@mui/icons-material';
7
7
  const Autocomplete = (props) => {
8
8
  var _a, _b, _c, _d, _e;
9
9
  const sortedOptions = props.sortBy !== 'NONE'
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Select as MUISelect } from '@mui/material';
3
3
  import UIThemeProvider from '../../../theme';
4
- import { ExpandMore } from '../../../icons';
4
+ import { ExpandMore } from '@mui/icons-material';
5
5
  const Select = (props) => {
6
6
  var _a;
7
7
  return (React.createElement(UIThemeProvider, null,
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { Snackbar as MUISnackbar } from '@mui/material';
3
3
  import UIThemeProvider from '../../../theme';
4
4
  import IconButton from '../IconButton';
5
- import { CheckCircle, Close, InfoRounded } from '../../../icons';
5
+ import { CheckCircle, Close, InfoRounded } from '@mui/icons-material';
6
6
  import Box from '../../layout/Box';
7
7
  import Typography from '../Typography';
8
8
  const styles = {
@@ -2,7 +2,7 @@ import { QueryBuilderMaterial } from '@react-querybuilder/material';
2
2
  import React, { useEffect, useMemo, useState } from 'react';
3
3
  import { formatQuery, parseMongoDB, QueryBuilder, } from 'react-querybuilder';
4
4
  import 'react-querybuilder/dist/query-builder.css';
5
- import { RemoveCircleOutline } from '../../../icons';
5
+ import { RemoveCircleOutline } from '@mui/icons-material';
6
6
  import { Autocomplete, Button, DatePicker, IconButton, LocalizationProvider, MenuItem, TextField, Typography, } from '../../core';
7
7
  import { Box } from '../../layout';
8
8
  import { NumericFormat } from '../FormField/InputFieldComponent';
@@ -1,4 +1,4 @@
1
- import { FileDownloadRounded, FilterAlt, Refresh, TableChartRounded, TableRowsRounded, } from '../../../icons';
1
+ import { FileDownloadRounded, FilterAlt, Refresh, TableChartRounded, TableRowsRounded, } from '@mui/icons-material';
2
2
  import { GridToolbarColumnsButton, GridToolbarContainer, GridToolbarDensitySelector, GridToolbarExport, GridToolbarFilterButton, GridToolbarQuickFilter, } from '@mui/x-data-grid';
3
3
  import React from 'react';
4
4
  import { Grid } from '../../layout';
@@ -27,6 +27,6 @@ const Select = (props) => {
27
27
  setInputValue(selectValue);
28
28
  }
29
29
  };
30
- return readOnly ? (React.createElement(InputFieldComponent, Object.assign({}, props))) : (React.createElement(Autocomplete, { multiple: (property === null || property === void 0 ? void 0 : property.type) === 'array' ? true : false, id: id, renderInput: (params) => React.createElement(TextField, Object.assign({}, params, { value: value, fullWidth: true, onBlur: onBlur })), value: value, onChange: handleChange, options: (property === null || property === void 0 ? void 0 : property.type) === 'array' ? property === null || property === void 0 ? void 0 : property.enum : selectOptions, disableClearable: true, inputValue: inputValue !== null && inputValue !== void 0 ? inputValue : '', error: error, errorMessage: errorMessage, required: required, onInputChange: handleInputValueChange, filterOptions: (option) => { var _a; return (property === null || property === void 0 ? void 0 : property.type) === 'array' ? (_a = property === null || property === void 0 ? void 0 : property.enum) === null || _a === void 0 ? void 0 : _a.filter((item) => item !== option.value) : option; }, size: size }));
30
+ return readOnly ? (React.createElement(InputFieldComponent, Object.assign({}, props))) : (React.createElement(Autocomplete, { multiple: (property === null || property === void 0 ? void 0 : property.type) === 'array' ? true : false, id: id, renderInput: (params) => React.createElement(TextField, Object.assign({}, params, { value: value, fullWidth: true, onBlur: onBlur })), value: value !== null && value !== void 0 ? value : ((property === null || property === void 0 ? void 0 : property.type) === 'array' ? [] : undefined), onChange: handleChange, options: (property === null || property === void 0 ? void 0 : property.type) === 'array' ? property === null || property === void 0 ? void 0 : property.enum : selectOptions, disableClearable: true, inputValue: inputValue !== null && inputValue !== void 0 ? inputValue : '', error: error, errorMessage: errorMessage, required: required, onInputChange: handleInputValueChange, filterOptions: (option) => { var _a; return (property === null || property === void 0 ? void 0 : property.type) === 'array' ? (_a = property === null || property === void 0 ? void 0 : property.enum) === null || _a === void 0 ? void 0 : _a.filter((item) => item !== option.value) : option; }, size: size }));
31
31
  };
32
32
  export default Select;
@@ -2,9 +2,7 @@ import React, { useEffect, useState } from 'react';
2
2
  import { cloneDeep } from 'lodash-es';
3
3
  import { Accordion, Typography, AccordionSummary, AccordionDetails, Button } from '@mui/material';
4
4
  import UIThemeProvider from '../../../theme';
5
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
6
- import AddIcon from '@mui/icons-material/Add';
7
- import { InfoRounded } from '../../../icons';
5
+ import { InfoRounded, ExpandMore as ExpandMoreIcon, Add as AddIcon } from '@mui/icons-material';
8
6
  const styles = {
9
7
  accordion: {
10
8
  borderRadius: '8px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.132",
3
+ "version": "1.0.0-dev.134",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",