@evoke-platform/ui-components 1.0.0-dev.149 → 1.0.0-dev.151

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.
@@ -5,17 +5,10 @@ import UIThemeProvider from '../../../theme';
5
5
  const Select = (props) => {
6
6
  var _a;
7
7
  return (React.createElement(UIThemeProvider, null,
8
- React.createElement(MUISelect, Object.assign({}, props, { sx: {
9
- '& .MuiOutlinedInput-notchedOutline': {
8
+ React.createElement(MUISelect, Object.assign({}, props, { sx: Object.assign({ '& .MuiOutlinedInput-notchedOutline': {
10
9
  border: props.readOnly ? 'none' : 'auto',
11
- },
12
- '& .MuiInputBase-input.Mui-disabled': {
10
+ }, '& .MuiInputBase-input.Mui-disabled': {
13
11
  WebkitTextFillColor: props.readOnly ? 'black' : 'auto',
14
- },
15
- backgroundColor: props.readOnly ? '#f4f6f8' : 'auto',
16
- height: props.readOnly ? '40px' : 'auto',
17
- margin: props.readOnly ? '0px 5px' : 'auto',
18
- borderRadius: '8px',
19
- }, IconComponent: (_a = props.IconComponent) !== null && _a !== void 0 ? _a : ((iconProps) => React.createElement(ExpandMore, Object.assign({}, iconProps))) }))));
12
+ }, backgroundColor: props.readOnly ? '#f4f6f8' : 'auto', height: props.readOnly ? '40px' : 'auto', margin: props.readOnly ? '0px 5px' : 'auto', borderRadius: '8px' }, props.sx), IconComponent: (_a = props.IconComponent) !== null && _a !== void 0 ? _a : ((iconProps) => React.createElement(ExpandMore, Object.assign({}, iconProps))) }))));
20
13
  };
21
14
  export default Select;
@@ -19,7 +19,7 @@ const BuilderGrid = (props) => {
19
19
  var _a, _b;
20
20
  const { loading, action, item, rows, initialSort, emptyContentSelectOptions } = props, rest = __rest(props, ["loading", "action", "item", "rows", "initialSort", "emptyContentSelectOptions"]);
21
21
  const [anchorEl, setAnchorEl] = useState();
22
- const toolbar = useMemo(() => () => React.createElement(BuilderGridToolbar, { loading: loading, action: action }), [loading]);
22
+ const toolbar = useMemo(() => () => React.createElement(BuilderGridToolbar, { loading: loading, action: action }), [loading, action]);
23
23
  return (React.createElement(UIThemeProvider, null, loading || rows.length ? (React.createElement(Box, { sx: {
24
24
  backgroundColor: '#fff',
25
25
  borderRadius: '6px',
@@ -56,11 +56,12 @@ const BuilderGrid = (props) => {
56
56
  }, '& .MuiDataGrid-columnHeaderTitle': {
57
57
  color: '#637381',
58
58
  fontWeight: 700,
59
- marginLeft: '6px',
60
59
  }, '& .MuiDataGrid-iconButtonContainer': {
61
60
  marginLeft: '4px',
62
61
  }, height: 'calc(100vh - 240px)' }, rest.sx), getRowId: (row) => row.id, disableColumnMenu: true, initialState: {
63
- sorting: { sortModel: initialSort ? [{ field: initialSort, sort: 'asc' }] : [] },
62
+ sorting: {
63
+ sortModel: initialSort ? [{ field: initialSort, sort: 'asc' }] : [],
64
+ },
64
65
  }, componentsProps: {
65
66
  panel: {
66
67
  anchorEl: anchorEl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.149",
3
+ "version": "1.0.0-dev.151",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -11,10 +11,10 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "test": "jest",
14
- "build": "rm -rf /dist && npm run build:esm && npm run build:cjs",
14
+ "build": "mkdirp -rf /dist && npm run build:esm && npm run build:cjs",
15
15
  "build:esm": "tsc",
16
16
  "build:cjs": "tsc --module CommonJS --outDir dist/cjs",
17
- "prepublish": "rm -rf /dist && tsc",
17
+ "prepublish": "mkdirp -rf /dist && tsc",
18
18
  "storybook": "start-storybook -p 6006",
19
19
  "build-storybook": "build-storybook",
20
20
  "lint": "prettier --check src/**/*.*",