hplx-react-elements-dev 1.0.88 → 1.0.90

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.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { DropdownItemsProps } from "../types";
3
- declare const DropdownItems: ({ className, label, value, disabled, start_icon, active, end_icon, onSelect, ddRef, setChangeLeft }: DropdownItemsProps) => JSX.Element;
3
+ declare const DropdownItems: ({ className, label, value, disabled, start_icon, active, end_icon, onSelect, ddRef, setChangeLeft, }: DropdownItemsProps) => JSX.Element;
4
4
  export default DropdownItems;
package/dist/esm/index.js CHANGED
@@ -2145,7 +2145,7 @@ var DropdownItems = function DropdownItems(_a) {
2145
2145
  onMouseEnter: onMouseEnterHandler,
2146
2146
  onMouseLeave: onMouseLeaveHandler,
2147
2147
  style: {
2148
- maxWidth: '93.5vw'
2148
+ maxWidth: "93.5vw"
2149
2149
  },
2150
2150
  ref: ddRef
2151
2151
  }, {
@@ -2158,10 +2158,10 @@ var DropdownItems = function DropdownItems(_a) {
2158
2158
  })), jsxRuntime.exports.jsx(Typography, __assign({
2159
2159
  variant: hover && !disabled ? "Medium" : "Regular",
2160
2160
  type: "Text md",
2161
- className: "hplxt-w-64 hplxt-overflow-hidden"
2161
+ className: "hplxt-truncate"
2162
2162
  }, {
2163
2163
  children: jsxRuntime.exports.jsx("div", __assign({
2164
- className: "hplxt-flex-1 hplxt-truncate hplxt-overflow-hidden hplxt-line-clamp-3 ".concat(disabled ? "hplxt-text-Gray-200" : "hplxt-text-Gray-700", " ").concat(className),
2164
+ className: "hplxt-flex-1 ".concat(disabled ? "hplxt-text-Gray-200" : "hplxt-text-Gray-700", " ").concat(className),
2165
2165
  title: checkOverFlow() ? label : undefined,
2166
2166
  ref: ref
2167
2167
  }, {
@@ -18213,11 +18213,14 @@ var InputTag = function InputTag(_a) {
18213
18213
  if ((e.keyCode === 9 || e.keyCode === 13) && tagInputValue.trim() && tagInputValue.trim().length > 1 && (allowDuplicates || !tags.includes(tagInputValue.trim())) // check if allowDuplicates flag is true or tagInputValue is not already in tags
18214
18214
  ) {
18215
18215
  e.preventDefault();
18216
- setTags(__spreadArray(__spreadArray([], tags, true), [tagInputValue.trim()], false));
18217
- setValue(tags.filter(Boolean).join(", "));
18216
+
18217
+ var newTagList = __spreadArray(__spreadArray([], tags, true), [tagInputValue.trim()], false);
18218
+
18219
+ setTags(newTagList);
18220
+ setValue(newTagList.filter(Boolean).join(", "));
18218
18221
  setTagInputValue("");
18219
18222
  setFocusIndex(-1);
18220
- handleValChange && handleValChange(value);
18223
+ handleValChange && handleValChange(newTagList.filter(Boolean).join(", "));
18221
18224
  } else if (e.keyCode === 13 && tagInputValue.trim().length <= 1) {
18222
18225
  setTagInputValue("");
18223
18226
  setFocusIndex(-1);
@@ -18270,7 +18273,7 @@ var InputTag = function InputTag(_a) {
18270
18273
  var res = __spreadArray(__spreadArray([], tags, true), [dropdownArr[focusIndex].value.trim()], false);
18271
18274
 
18272
18275
  setTags(res);
18273
- setValue(tags.filter(Boolean).join(", "));
18276
+ setValue(res.filter(Boolean).join(", "));
18274
18277
  setTagInputValue("");
18275
18278
  setFocusIndex(-1);
18276
18279
  handleValChange && handleValChange(res.filter(Boolean).join(", "));
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.88",
12
+ "version": "1.0.90",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",