@zauru-sdk/components 2.0.69 → 2.0.71

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
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.71](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.70...v2.0.71) (2024-11-29)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/components
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.70](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.69...v2.0.70) (2024-11-29)
15
+
16
+ **Note:** Version bump only for package @zauru-sdk/components
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.0.69](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.68...v2.0.69) (2024-11-27)
7
23
 
8
24
  **Note:** Version bump only for package @zauru-sdk/components
@@ -154,8 +154,12 @@ export const SelectField = (props) => {
154
154
  }
155
155
  else if (e.key === "Backspace" && (value || valueMulti.length > 0)) {
156
156
  e.preventDefault();
157
- handleClear();
158
- setInputValue("");
157
+ if (!isMulti) {
158
+ handleClear();
159
+ }
160
+ else {
161
+ setInputValue("");
162
+ }
159
163
  setFilteredOptions(options);
160
164
  setIsOpen(true);
161
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/components",
3
- "version": "2.0.69",
3
+ "version": "2.0.71",
4
4
  "description": "Componentes reutilizables en las WebApps de Zauru.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -33,11 +33,11 @@
33
33
  "@hookform/resolvers": "^3.9.0",
34
34
  "@reduxjs/toolkit": "^2.2.1",
35
35
  "@remix-run/react": "^2.8.1",
36
- "@zauru-sdk/common": "^2.0.51",
37
- "@zauru-sdk/hooks": "^2.0.66",
36
+ "@zauru-sdk/common": "^2.0.70",
37
+ "@zauru-sdk/hooks": "^2.0.71",
38
38
  "@zauru-sdk/icons": "^2.0.0",
39
- "@zauru-sdk/types": "^2.0.51",
40
- "@zauru-sdk/utils": "^2.0.69",
39
+ "@zauru-sdk/types": "^2.0.70",
40
+ "@zauru-sdk/utils": "^2.0.70",
41
41
  "framer-motion": "^11.7.0",
42
42
  "jsonwebtoken": "^9.0.2",
43
43
  "react": "^18.2.0",
@@ -49,5 +49,5 @@
49
49
  "styled-components": "^5.3.5",
50
50
  "zod": "^3.23.8"
51
51
  },
52
- "gitHead": "31cfa9c9573dbc294d5aae1d2a52da883c596cf8"
52
+ "gitHead": "60dc6250f32f91277f9681f34c73e36ea55db543"
53
53
  }
@@ -226,8 +226,11 @@ export const SelectField = (props: Props) => {
226
226
  handleOptionClick(filteredOptions[highlightedIndex]);
227
227
  } else if (e.key === "Backspace" && (value || valueMulti.length > 0)) {
228
228
  e.preventDefault();
229
- handleClear();
230
- setInputValue("");
229
+ if (!isMulti) {
230
+ handleClear();
231
+ } else {
232
+ setInputValue("");
233
+ }
231
234
  setFilteredOptions(options);
232
235
  setIsOpen(true);
233
236
  }