@availity/mui-autocomplete 0.3.0 → 0.3.2
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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
- package/src/lib/Autocomplete.tsx +4 -5
- /package/{introduction.mdx → introduction.stories.mdx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.3.2](https://github.com/Availity/element/compare/@availity/mui-autocomplete@0.3.1...@availity/mui-autocomplete@0.3.2) (2024-04-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
* **mui-autocomplete:** use path imports for mui deps and move element deps to peerDeps ([6379ec5](https://github.com/Availity/element/commit/6379ec5489a7e6926f99dc07cf085f90ba735d03))
|
|
11
|
+
|
|
12
|
+
## [0.3.1](https://github.com/Availity/element/compare/@availity/mui-autocomplete@0.3.0...@availity/mui-autocomplete@0.3.1) (2024-02-20)
|
|
13
|
+
|
|
5
14
|
## [0.3.0](https://github.com/Availity/element/compare/@availity/mui-autocomplete@0.2.1...@availity/mui-autocomplete@0.3.0) (2023-12-14)
|
|
6
15
|
|
|
7
16
|
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ yarn add @availity/element
|
|
|
34
34
|
|
|
35
35
|
#### NPM
|
|
36
36
|
|
|
37
|
-
_This package has a few peer dependencies. Add `@mui/material
|
|
37
|
+
_This package has a few peer dependencies. Add `@mui/material`, `@emotion/react`, @availity/mui-form-utils, & @availity/mui-textfield to your project if not already installed._
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
40
|
npm install @availity/mui-autocomplete
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AutocompleteProps as AutocompleteProps$1 } from '@mui/material/Autocomplete';
|
|
3
|
+
import { ChipTypeMap } from '@mui/material/Chip';
|
|
3
4
|
import { TextFieldProps } from '@availity/mui-textfield';
|
|
4
5
|
|
|
5
6
|
interface AutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']> extends Omit<AutocompleteProps$1<T, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'clearIcon' | 'clearText' | 'closeText' | 'componentsProps' | 'disabledItemsFocusable' | 'forcePopupIcon' | 'fullWidth' | 'handleHomeEndKeys' | 'includeInputInList' | 'openOnFocus' | 'openText' | 'PaperComponent' | 'PopperComponent' | 'popupIcon' | 'selectOnFocus' | 'size' | 'renderInput' | 'slotProps'> {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
18
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
25
|
|
|
20
26
|
// src/index.ts
|
|
@@ -26,7 +32,8 @@ module.exports = __toCommonJS(src_exports);
|
|
|
26
32
|
|
|
27
33
|
// src/lib/Autocomplete.tsx
|
|
28
34
|
var import_react = require("react");
|
|
29
|
-
var
|
|
35
|
+
var import_Autocomplete = __toESM(require("@mui/material/Autocomplete"));
|
|
36
|
+
var import_IconButton = __toESM(require("@mui/material/IconButton"));
|
|
30
37
|
var import_mui_textfield = require("@availity/mui-textfield");
|
|
31
38
|
var import_mui_form_utils = require("@availity/mui-form-utils");
|
|
32
39
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -36,7 +43,7 @@ var PopupIndicatorWrapper = (0, import_react.forwardRef)((props, ref) => /* @__P
|
|
|
36
43
|
orientation: "vertical",
|
|
37
44
|
className: "MuiSelect-avEndAdornmentDivider"
|
|
38
45
|
}),
|
|
39
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_IconButton.default, {
|
|
40
47
|
...props,
|
|
41
48
|
ref
|
|
42
49
|
})
|
|
@@ -60,7 +67,7 @@ var Autocomplete = ({
|
|
|
60
67
|
...params == null ? void 0 : params.inputProps
|
|
61
68
|
}
|
|
62
69
|
});
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Autocomplete.default, {
|
|
64
71
|
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_textfield.TextField, {
|
|
65
72
|
...params,
|
|
66
73
|
...resolvedProps(params),
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/lib/Autocomplete.tsx
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "@mui/material";
|
|
4
|
+
default as MuiAutocomplete
|
|
5
|
+
} from "@mui/material/Autocomplete";
|
|
6
|
+
import { default as MuiIconButton } from "@mui/material/IconButton";
|
|
7
7
|
import { TextField } from "@availity/mui-textfield";
|
|
8
8
|
import { SelectDivider, SelectExpandIcon } from "@availity/mui-form-utils";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-autocomplete",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Availity MUI Autocomplete Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,8 +33,6 @@
|
|
|
33
33
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@availity/mui-form-utils": "0.7.0",
|
|
37
|
-
"@availity/mui-textfield": "0.5.0",
|
|
38
36
|
"@mui/types": "^7.2.5"
|
|
39
37
|
},
|
|
40
38
|
"devDependencies": {
|
|
@@ -45,6 +43,8 @@
|
|
|
45
43
|
"typescript": "^4.6.4"
|
|
46
44
|
},
|
|
47
45
|
"peerDependencies": {
|
|
46
|
+
"@availity/mui-form-utils": "^0.10.0",
|
|
47
|
+
"@availity/mui-textfield": "^0.5.14",
|
|
48
48
|
"@mui/material": "^5.11.9",
|
|
49
49
|
"react": ">=16.3.0"
|
|
50
50
|
},
|
package/src/lib/Autocomplete.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
default as MuiAutocomplete,
|
|
4
4
|
AutocompleteProps as MuiAutocompleteProps,
|
|
5
5
|
AutocompleteRenderInputParams,
|
|
6
6
|
AutocompletePropsSizeOverrides,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from '@mui/material';
|
|
7
|
+
} from '@mui/material/Autocomplete';
|
|
8
|
+
import { default as MuiIconButton, IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';
|
|
9
|
+
import { ChipTypeMap } from '@mui/material/Chip';
|
|
11
10
|
import { OverridableStringUnion } from '@mui/types';
|
|
12
11
|
import { TextField, TextFieldProps } from '@availity/mui-textfield';
|
|
13
12
|
import { SelectDivider, SelectExpandIcon } from '@availity/mui-form-utils';
|
|
File without changes
|