@groupeactual/ui-kit 1.6.4 → 1.6.5-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groupeactual/ui-kit",
3
- "version": "1.6.4",
3
+ "version": "1.6.5-beta.1",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "devDependencies": {
@@ -57,7 +57,7 @@
57
57
  "notistack": "^3.0.1",
58
58
  "react": "^18.3.1",
59
59
  "react-dom": "^18.3.1",
60
- "@groupeactual/design-tokens": "1.6.4"
60
+ "@groupeactual/design-tokens": "1.6.5-beta.1"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "react": "^18.3.1",
@@ -120,7 +120,7 @@ const AutoCompleteSingle = <T,>({
120
120
  >
121
121
  <Autocomplete
122
122
  {...props}
123
- value={value}
123
+ value={isValueLabelNotEmpty && value || null}
124
124
  onChange={handleValueChange}
125
125
  aria-placeholder={placeholder}
126
126
  disabled={disabled}
@@ -186,16 +186,6 @@ const AutoCompleteSingle = <T,>({
186
186
  error={!!error}
187
187
  fullWidth
188
188
  variant="outlined"
189
- inputProps={{
190
- ...params.inputProps,
191
- value:
192
- params.inputProps?.value !== 'undefined' &&
193
- params.inputProps?.value !== 'null' &&
194
- params.inputProps?.value !== '' &&
195
- isValueLabelNotEmpty
196
- ? params.inputProps?.value
197
- : '',
198
- }}
199
189
  InputLabelProps={{
200
190
  shrink: (placeholder && true) || undefined,
201
191
  disabled: false,