@availity/mui-autocomplete 1.0.14 → 1.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.1.1](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.1.0...@availity/mui-autocomplete@1.1.1) (2025-04-21)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-form-utils` updated to version `1.1.0`
10
+ * `mui-textfield` updated to version `1.1.0`
11
+ ## [1.1.0](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.14...@availity/mui-autocomplete@1.1.0) (2025-04-14)
12
+
13
+ ### Dependency Updates
14
+
15
+ * `mui-form-utils` updated to version `1.0.14`
16
+ * `mui-textfield` updated to version `1.0.14`
17
+
18
+ ### Features
19
+
20
+ * **mui-form-utils:** add searchbyformgroup ([4207b27](https://github.com/Availity/element/commit/4207b2768f86036df0d3443e452de867d6ceb491))
21
+
5
22
  ## [1.0.14](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.13...@availity/mui-autocomplete@1.0.14) (2025-04-14)
6
23
 
7
24
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-autocomplete",
3
- "version": "1.0.14",
3
+ "version": "1.1.1",
4
4
  "description": "Availity MUI Autocomplete Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -45,8 +45,9 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@availity/api-axios": "^10.0.3",
48
- "@availity/mui-form-utils": "^1.1.4",
49
- "@availity/mui-textfield": "^1.1.6",
48
+ "@availity/mui-form-utils": "^1.2.1",
49
+ "@availity/mui-icon": "^1.0.2",
50
+ "@availity/mui-textfield": "^1.2.1",
50
51
  "@mui/material": "^6.4.5",
51
52
  "@tanstack/react-query": "^4.36.1",
52
53
  "react": "18.2.0",
@@ -56,8 +57,8 @@
56
57
  },
57
58
  "peerDependencies": {
58
59
  "@availity/api-axios": "^8.0.7",
59
- "@availity/mui-form-utils": "^1.1.4",
60
- "@availity/mui-textfield": "^1.1.6",
60
+ "@availity/mui-form-utils": "^1.2.1",
61
+ "@availity/mui-textfield": "^1.2.1",
61
62
  "@mui/material": "^6.4.5",
62
63
  "@tanstack/react-query": "^4.36.1",
63
64
  "react": ">=16.3.0"
@@ -3,6 +3,9 @@ import { useState } from 'react';
3
3
  import type { Meta, StoryObj } from '@storybook/react';
4
4
  import { Autocomplete, createFilterOptions } from './Autocomplete';
5
5
  import { FilterOptionsState } from '@mui/material';
6
+ import { InputAdornment, SearchByFormGroup } from '@availity/mui-form-utils';
7
+ import { TextField } from '@availity/mui-textfield';
8
+ import { SearchIcon } from '@availity/mui-icon';
6
9
 
7
10
  const languages = [
8
11
  'Python',
@@ -168,3 +171,34 @@ export const _Grouped: StoryObj<typeof Autocomplete> = {
168
171
  );
169
172
  },
170
173
  };
174
+
175
+ /** Wrap the fields in a `SearchByFormGroup` from the [@availity/mui-form-utils](./?path=/docs/form-components-formutils-introduction--docs) package for our combined search by styles.
176
+ *
177
+ * The "Search By" field id must be passed as the FormGroup supplies the label.
178
+ */
179
+ export const _SearchBy: StoryObj<typeof Autocomplete> = {
180
+ render: () => {
181
+ const searchByOptions = ['Parameter 1', 'Parameter 2', 'Parameter 3']
182
+
183
+ return (
184
+ <SearchByFormGroup searchById="searchby">
185
+ <Autocomplete
186
+ id="searchby"
187
+ options={searchByOptions}
188
+ FieldProps= {{ fullWidth: false }}
189
+ />
190
+ <TextField
191
+ id="search"
192
+ placeholder="search"
193
+ InputProps={{
194
+ startAdornment: (
195
+ <InputAdornment position="start" component="label" htmlFor="search">
196
+ <SearchIcon aria-hidden={false} titleAccess="search"/>
197
+ </InputAdornment>
198
+ ),
199
+ }}
200
+ />
201
+ </SearchByFormGroup>
202
+ );
203
+ },
204
+ };