hplx-react-elements-dev 1.0.52 → 1.0.54

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.
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DoubleInputProps } from "../types";
3
+ declare const DoubleInput: ({ input1value, input2value, errorMsg, prefix, start_icon, end_icon, hint_text_icon, hint_text, className, suffixClassName, dropdownClassName, suffixDropdownClassName, options, suffixOptions, handleValChange, handleSuffixValChange, onDropdownClick, onSuffixDropdownClick, onlyDropdownItemsAllowed, onlySuffixDropdownItemsAllowed, inputProps, suffixInputProps, }: DoubleInputProps) => JSX.Element;
4
+ export default DoubleInput;
@@ -25,3 +25,4 @@ export { default as AddSuggestion } from "./addSuggestion/AddSuggestion";
25
25
  export { default as MessageToast } from "./messageToast/MessageToast";
26
26
  export { default as NestedDropdown } from "./nestedDropdown/NestedDropdown";
27
27
  export { default as DatePicker } from "./datePicker/DatePicker";
28
+ export { default as DoubleInput } from "./doubleInput/DoubleInput";
package/dist/esm/index.js CHANGED
@@ -78,15 +78,15 @@ var objectPropertyIsEnumerable = {};
78
78
 
79
79
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
80
80
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
81
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
81
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
82
82
 
83
83
  // Nashorn ~ JDK8 bug
84
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
84
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
85
85
 
86
86
  // `Object.prototype.propertyIsEnumerable` method implementation
87
87
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
88
88
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
89
- var descriptor = getOwnPropertyDescriptor$1(this, V);
89
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
90
90
  return !!descriptor && descriptor.enumerable;
91
91
  } : $propertyIsEnumerable;
92
92
 
@@ -104,31 +104,31 @@ var NATIVE_BIND$1 = functionBindNative;
104
104
  var FunctionPrototype$2 = Function.prototype;
105
105
  var bind = FunctionPrototype$2.bind;
106
106
  var call$9 = FunctionPrototype$2.call;
107
- var uncurryThis$j = NATIVE_BIND$1 && bind.bind(call$9, call$9);
107
+ var uncurryThis$k = NATIVE_BIND$1 && bind.bind(call$9, call$9);
108
108
 
109
109
  var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
110
- return fn && uncurryThis$j(fn);
110
+ return fn && uncurryThis$k(fn);
111
111
  } : function (fn) {
112
112
  return fn && function () {
113
113
  return call$9.apply(fn, arguments);
114
114
  };
115
115
  };
116
116
 
117
- var uncurryThis$i = functionUncurryThis;
117
+ var uncurryThis$j = functionUncurryThis;
118
118
 
119
- var toString$8 = uncurryThis$i({}.toString);
120
- var stringSlice$4 = uncurryThis$i(''.slice);
119
+ var toString$9 = uncurryThis$j({}.toString);
120
+ var stringSlice$4 = uncurryThis$j(''.slice);
121
121
 
122
122
  var classofRaw$1 = function (it) {
123
- return stringSlice$4(toString$8(it), 8, -1);
123
+ return stringSlice$4(toString$9(it), 8, -1);
124
124
  };
125
125
 
126
- var uncurryThis$h = functionUncurryThis;
126
+ var uncurryThis$i = functionUncurryThis;
127
127
  var fails$f = fails$i;
128
128
  var classof$6 = classofRaw$1;
129
129
 
130
130
  var $Object$3 = Object;
131
- var split = uncurryThis$h(''.split);
131
+ var split = uncurryThis$i(''.split);
132
132
 
133
133
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
134
134
  var indexedObject = fails$f(function () {
@@ -143,17 +143,17 @@ var $TypeError$8 = TypeError;
143
143
 
144
144
  // `RequireObjectCoercible` abstract operation
145
145
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
146
- var requireObjectCoercible$6 = function (it) {
146
+ var requireObjectCoercible$7 = function (it) {
147
147
  if (it == undefined) throw $TypeError$8("Can't call method on " + it);
148
148
  return it;
149
149
  };
150
150
 
151
151
  // toObject with fallback for non-array-like ES3 strings
152
152
  var IndexedObject = indexedObject;
153
- var requireObjectCoercible$5 = requireObjectCoercible$6;
153
+ var requireObjectCoercible$6 = requireObjectCoercible$7;
154
154
 
155
155
  var toIndexedObject$4 = function (it) {
156
- return IndexedObject(requireObjectCoercible$5(it));
156
+ return IndexedObject(requireObjectCoercible$6(it));
157
157
  };
158
158
 
159
159
  // `IsCallable` abstract operation
@@ -179,9 +179,9 @@ var getBuiltIn$6 = function (namespace, method) {
179
179
  return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
180
180
  };
181
181
 
182
- var uncurryThis$g = functionUncurryThis;
182
+ var uncurryThis$h = functionUncurryThis;
183
183
 
184
- var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
184
+ var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
185
185
 
186
186
  var getBuiltIn$5 = getBuiltIn$6;
187
187
 
@@ -333,20 +333,20 @@ var store$2 = sharedStore;
333
333
  source: 'https://github.com/zloirock/core-js'
334
334
  });
335
335
 
336
- var requireObjectCoercible$4 = requireObjectCoercible$6;
336
+ var requireObjectCoercible$5 = requireObjectCoercible$7;
337
337
 
338
338
  var $Object$1 = Object;
339
339
 
340
340
  // `ToObject` abstract operation
341
341
  // https://tc39.es/ecma262/#sec-toobject
342
342
  var toObject$1 = function (argument) {
343
- return $Object$1(requireObjectCoercible$4(argument));
343
+ return $Object$1(requireObjectCoercible$5(argument));
344
344
  };
345
345
 
346
- var uncurryThis$f = functionUncurryThis;
346
+ var uncurryThis$g = functionUncurryThis;
347
347
  var toObject = toObject$1;
348
348
 
349
- var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
349
+ var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
350
350
 
351
351
  // `HasOwnProperty` abstract operation
352
352
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -355,14 +355,14 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
355
355
  return hasOwnProperty(toObject(it), key);
356
356
  };
357
357
 
358
- var uncurryThis$e = functionUncurryThis;
358
+ var uncurryThis$f = functionUncurryThis;
359
359
 
360
360
  var id = 0;
361
361
  var postfix = Math.random();
362
- var toString$7 = uncurryThis$e(1.0.toString);
362
+ var toString$8 = uncurryThis$f(1.0.toString);
363
363
 
364
364
  var uid$2 = function (key) {
365
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id + postfix, 36);
365
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id + postfix, 36);
366
366
  };
367
367
 
368
368
  var global$9 = global$e;
@@ -573,11 +573,11 @@ var functionName = {
573
573
  CONFIGURABLE: CONFIGURABLE
574
574
  };
575
575
 
576
- var uncurryThis$d = functionUncurryThis;
576
+ var uncurryThis$e = functionUncurryThis;
577
577
  var isCallable$9 = isCallable$f;
578
578
  var store$1 = sharedStore;
579
579
 
580
- var functionToString = uncurryThis$d(Function.toString);
580
+ var functionToString = uncurryThis$e(Function.toString);
581
581
 
582
582
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
583
583
  if (!isCallable$9(store$1.inspectSource)) {
@@ -609,7 +609,7 @@ var hiddenKeys$4 = {};
609
609
 
610
610
  var NATIVE_WEAK_MAP = nativeWeakMap;
611
611
  var global$6 = global$e;
612
- var uncurryThis$c = functionUncurryThis;
612
+ var uncurryThis$d = functionUncurryThis;
613
613
  var isObject$2 = isObject$7;
614
614
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
615
615
  var hasOwn$5 = hasOwnProperty_1;
@@ -637,9 +637,9 @@ var getterFor = function (TYPE) {
637
637
 
638
638
  if (NATIVE_WEAK_MAP || shared$1.state) {
639
639
  var store = shared$1.state || (shared$1.state = new WeakMap$1());
640
- var wmget = uncurryThis$c(store.get);
641
- var wmhas = uncurryThis$c(store.has);
642
- var wmset = uncurryThis$c(store.set);
640
+ var wmget = uncurryThis$d(store.get);
641
+ var wmhas = uncurryThis$d(store.has);
642
+ var wmset = uncurryThis$d(store.set);
643
643
  set = function (it, metadata) {
644
644
  if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
645
645
  metadata.facade = it;
@@ -781,32 +781,32 @@ var toIntegerOrInfinity$3 = function (argument) {
781
781
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
782
782
 
783
783
  var max$3 = Math.max;
784
- var min$4 = Math.min;
784
+ var min$5 = Math.min;
785
785
 
786
786
  // Helper for a popular repeating case of the spec:
787
787
  // Let integer be ? ToInteger(index).
788
788
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
789
789
  var toAbsoluteIndex$2 = function (index, length) {
790
790
  var integer = toIntegerOrInfinity$2(index);
791
- return integer < 0 ? max$3(integer + length, 0) : min$4(integer, length);
791
+ return integer < 0 ? max$3(integer + length, 0) : min$5(integer, length);
792
792
  };
793
793
 
794
794
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
795
795
 
796
- var min$3 = Math.min;
796
+ var min$4 = Math.min;
797
797
 
798
798
  // `ToLength` abstract operation
799
799
  // https://tc39.es/ecma262/#sec-tolength
800
- var toLength$2 = function (argument) {
801
- return argument > 0 ? min$3(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
800
+ var toLength$3 = function (argument) {
801
+ return argument > 0 ? min$4(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
802
802
  };
803
803
 
804
- var toLength$1 = toLength$2;
804
+ var toLength$2 = toLength$3;
805
805
 
806
806
  // `LengthOfArrayLike` abstract operation
807
807
  // https://tc39.es/ecma262/#sec-lengthofarraylike
808
808
  var lengthOfArrayLike$2 = function (obj) {
809
- return toLength$1(obj.length);
809
+ return toLength$2(obj.length);
810
810
  };
811
811
 
812
812
  var toIndexedObject$2 = toIndexedObject$4;
@@ -842,13 +842,13 @@ var arrayIncludes = {
842
842
  indexOf: createMethod$2(false)
843
843
  };
844
844
 
845
- var uncurryThis$b = functionUncurryThis;
845
+ var uncurryThis$c = functionUncurryThis;
846
846
  var hasOwn$3 = hasOwnProperty_1;
847
847
  var toIndexedObject$1 = toIndexedObject$4;
848
848
  var indexOf$1 = arrayIncludes.indexOf;
849
849
  var hiddenKeys$2 = hiddenKeys$4;
850
850
 
851
- var push$1 = uncurryThis$b([].push);
851
+ var push$1 = uncurryThis$c([].push);
852
852
 
853
853
  var objectKeysInternal = function (object, names) {
854
854
  var O = toIndexedObject$1(object);
@@ -892,12 +892,12 @@ var objectGetOwnPropertySymbols = {};
892
892
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
893
893
 
894
894
  var getBuiltIn$3 = getBuiltIn$6;
895
- var uncurryThis$a = functionUncurryThis;
895
+ var uncurryThis$b = functionUncurryThis;
896
896
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
897
897
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
898
898
  var anObject$7 = anObject$9;
899
899
 
900
- var concat = uncurryThis$a([].concat);
900
+ var concat = uncurryThis$b([].concat);
901
901
 
902
902
  // all object keys, includes non-enumerable and symbols
903
903
  var ownKeys$8 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -947,7 +947,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
947
947
  var isForced_1 = isForced$1;
948
948
 
949
949
  var global$5 = global$e;
950
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
950
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
951
951
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
952
952
  var defineBuiltIn$2 = defineBuiltIn$3;
953
953
  var defineGlobalProperty = defineGlobalProperty$3;
@@ -984,7 +984,7 @@ var _export = function (options, source) {
984
984
  if (target) for (key in source) {
985
985
  sourceProperty = source[key];
986
986
  if (options.dontCallGetSet) {
987
- descriptor = getOwnPropertyDescriptor(target, key);
987
+ descriptor = getOwnPropertyDescriptor$1(target, key);
988
988
  targetProperty = descriptor && descriptor.value;
989
989
  } else targetProperty = target[key];
990
990
  FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
@@ -1001,6 +1001,130 @@ var _export = function (options, source) {
1001
1001
  }
1002
1002
  };
1003
1003
 
1004
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
1005
+
1006
+ var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1007
+ var test = {};
1008
+
1009
+ test[TO_STRING_TAG$1] = 'z';
1010
+
1011
+ var toStringTagSupport = String(test) === '[object z]';
1012
+
1013
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1014
+ var isCallable$4 = isCallable$f;
1015
+ var classofRaw = classofRaw$1;
1016
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
1017
+
1018
+ var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1019
+ var $Object = Object;
1020
+
1021
+ // ES3 wrong here
1022
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1023
+
1024
+ // fallback for IE11 Script Access Denied error
1025
+ var tryGet = function (it, key) {
1026
+ try {
1027
+ return it[key];
1028
+ } catch (error) { /* empty */ }
1029
+ };
1030
+
1031
+ // getting tag from ES6+ `Object.prototype.toString`
1032
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1033
+ var O, tag, result;
1034
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1035
+ // @@toStringTag case
1036
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1037
+ // builtinTag case
1038
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1039
+ // ES3 arguments fallback
1040
+ : (result = classofRaw(O)) == 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
1041
+ };
1042
+
1043
+ var classof$4 = classof$5;
1044
+
1045
+ var $String = String;
1046
+
1047
+ var toString$7 = function (argument) {
1048
+ if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1049
+ return $String(argument);
1050
+ };
1051
+
1052
+ var isObject$1 = isObject$7;
1053
+ var classof$3 = classofRaw$1;
1054
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
1055
+
1056
+ var MATCH$1 = wellKnownSymbol$4('match');
1057
+
1058
+ // `IsRegExp` abstract operation
1059
+ // https://tc39.es/ecma262/#sec-isregexp
1060
+ var isRegexp = function (it) {
1061
+ var isRegExp;
1062
+ return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) == 'RegExp');
1063
+ };
1064
+
1065
+ var isRegExp$1 = isRegexp;
1066
+
1067
+ var $TypeError$2 = TypeError;
1068
+
1069
+ var notARegexp = function (it) {
1070
+ if (isRegExp$1(it)) {
1071
+ throw $TypeError$2("The method doesn't accept regular expressions");
1072
+ } return it;
1073
+ };
1074
+
1075
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
1076
+
1077
+ var MATCH = wellKnownSymbol$3('match');
1078
+
1079
+ var correctIsRegexpLogic = function (METHOD_NAME) {
1080
+ var regexp = /./;
1081
+ try {
1082
+ '/./'[METHOD_NAME](regexp);
1083
+ } catch (error1) {
1084
+ try {
1085
+ regexp[MATCH] = false;
1086
+ return '/./'[METHOD_NAME](regexp);
1087
+ } catch (error2) { /* empty */ }
1088
+ } return false;
1089
+ };
1090
+
1091
+ var $$6 = _export;
1092
+ var uncurryThis$a = functionUncurryThis;
1093
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1094
+ var toLength$1 = toLength$3;
1095
+ var toString$6 = toString$7;
1096
+ var notARegExp$1 = notARegexp;
1097
+ var requireObjectCoercible$4 = requireObjectCoercible$7;
1098
+ var correctIsRegExpLogic$1 = correctIsRegexpLogic;
1099
+
1100
+ // eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
1101
+ var un$EndsWith = uncurryThis$a(''.endsWith);
1102
+ var slice = uncurryThis$a(''.slice);
1103
+ var min$3 = Math.min;
1104
+
1105
+ var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic$1('endsWith');
1106
+ // https://github.com/zloirock/core-js/pull/702
1107
+ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
1108
+ var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
1109
+ return descriptor && !descriptor.writable;
1110
+ }();
1111
+
1112
+ // `String.prototype.endsWith` method
1113
+ // https://tc39.es/ecma262/#sec-string.prototype.endswith
1114
+ $$6({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
1115
+ endsWith: function endsWith(searchString /* , endPosition = @length */) {
1116
+ var that = toString$6(requireObjectCoercible$4(this));
1117
+ notARegExp$1(searchString);
1118
+ var endPosition = arguments.length > 1 ? arguments[1] : undefined;
1119
+ var len = that.length;
1120
+ var end = endPosition === undefined ? len : min$3(toLength$1(endPosition), len);
1121
+ var search = toString$6(searchString);
1122
+ return un$EndsWith
1123
+ ? un$EndsWith(that, search, end)
1124
+ : slice(that, end - search.length, end) === search;
1125
+ }
1126
+ });
1127
+
1004
1128
  var objectDefineProperties = {};
1005
1129
 
1006
1130
  var internalObjectKeys = objectKeysInternal;
@@ -1123,11 +1247,11 @@ var objectCreate = Object.create || function create(O, Properties) {
1123
1247
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1124
1248
  };
1125
1249
 
1126
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1250
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
1127
1251
  var create$1 = objectCreate;
1128
1252
  var defineProperty$1 = objectDefineProperty.f;
1129
1253
 
1130
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1254
+ var UNSCOPABLES = wellKnownSymbol$2('unscopables');
1131
1255
  var ArrayPrototype = Array.prototype;
1132
1256
 
1133
1257
  // Array.prototype[@@unscopables]
@@ -1165,98 +1289,11 @@ $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1165
1289
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1166
1290
  addToUnscopables('includes');
1167
1291
 
1168
- var isObject$1 = isObject$7;
1169
- var classof$5 = classofRaw$1;
1170
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1171
-
1172
- var MATCH$1 = wellKnownSymbol$5('match');
1173
-
1174
- // `IsRegExp` abstract operation
1175
- // https://tc39.es/ecma262/#sec-isregexp
1176
- var isRegexp = function (it) {
1177
- var isRegExp;
1178
- return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');
1179
- };
1180
-
1181
- var isRegExp$1 = isRegexp;
1182
-
1183
- var $TypeError$2 = TypeError;
1184
-
1185
- var notARegexp = function (it) {
1186
- if (isRegExp$1(it)) {
1187
- throw $TypeError$2("The method doesn't accept regular expressions");
1188
- } return it;
1189
- };
1190
-
1191
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1192
-
1193
- var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
1194
- var test = {};
1195
-
1196
- test[TO_STRING_TAG$1] = 'z';
1197
-
1198
- var toStringTagSupport = String(test) === '[object z]';
1199
-
1200
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1201
- var isCallable$4 = isCallable$f;
1202
- var classofRaw = classofRaw$1;
1203
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1204
-
1205
- var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
1206
- var $Object = Object;
1207
-
1208
- // ES3 wrong here
1209
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1210
-
1211
- // fallback for IE11 Script Access Denied error
1212
- var tryGet = function (it, key) {
1213
- try {
1214
- return it[key];
1215
- } catch (error) { /* empty */ }
1216
- };
1217
-
1218
- // getting tag from ES6+ `Object.prototype.toString`
1219
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1220
- var O, tag, result;
1221
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1222
- // @@toStringTag case
1223
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1224
- // builtinTag case
1225
- : CORRECT_ARGUMENTS ? classofRaw(O)
1226
- // ES3 arguments fallback
1227
- : (result = classofRaw(O)) == 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
1228
- };
1229
-
1230
- var classof$3 = classof$4;
1231
-
1232
- var $String = String;
1233
-
1234
- var toString$6 = function (argument) {
1235
- if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1236
- return $String(argument);
1237
- };
1238
-
1239
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1240
-
1241
- var MATCH = wellKnownSymbol$2('match');
1242
-
1243
- var correctIsRegexpLogic = function (METHOD_NAME) {
1244
- var regexp = /./;
1245
- try {
1246
- '/./'[METHOD_NAME](regexp);
1247
- } catch (error1) {
1248
- try {
1249
- regexp[MATCH] = false;
1250
- return '/./'[METHOD_NAME](regexp);
1251
- } catch (error2) { /* empty */ }
1252
- } return false;
1253
- };
1254
-
1255
1292
  var $$4 = _export;
1256
1293
  var uncurryThis$9 = functionUncurryThis;
1257
1294
  var notARegExp = notARegexp;
1258
- var requireObjectCoercible$3 = requireObjectCoercible$6;
1259
- var toString$5 = toString$6;
1295
+ var requireObjectCoercible$3 = requireObjectCoercible$7;
1296
+ var toString$5 = toString$7;
1260
1297
  var correctIsRegExpLogic = correctIsRegexpLogic;
1261
1298
 
1262
1299
  var stringIndexOf = uncurryThis$9(''.indexOf);
@@ -1349,7 +1386,7 @@ var regexpUnsupportedNcg = fails$6(function () {
1349
1386
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1350
1387
  var call$5 = functionCall;
1351
1388
  var uncurryThis$8 = functionUncurryThis;
1352
- var toString$4 = toString$6;
1389
+ var toString$4 = toString$7;
1353
1390
  var regexpFlags = regexpFlags$1;
1354
1391
  var stickyHelpers$1 = regexpStickyHelpers;
1355
1392
  var shared = shared$4.exports;
@@ -1559,7 +1596,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1559
1596
  var uncurryThis$6 = functionUncurryThis;
1560
1597
  var fails$4 = fails$i;
1561
1598
  var isCallable$3 = isCallable$f;
1562
- var classof$2 = classof$4;
1599
+ var classof$2 = classof$5;
1563
1600
  var getBuiltIn$1 = getBuiltIn$6;
1564
1601
  var inspectSource = inspectSource$3;
1565
1602
 
@@ -1636,8 +1673,8 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
1636
1673
 
1637
1674
  var uncurryThis$5 = functionUncurryThis;
1638
1675
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
1639
- var toString$3 = toString$6;
1640
- var requireObjectCoercible$2 = requireObjectCoercible$6;
1676
+ var toString$3 = toString$7;
1677
+ var requireObjectCoercible$2 = requireObjectCoercible$7;
1641
1678
 
1642
1679
  var charAt$2 = uncurryThis$5(''.charAt);
1643
1680
  var charCodeAt$1 = uncurryThis$5(''.charCodeAt);
@@ -1733,11 +1770,11 @@ var uncurryThis$4 = functionUncurryThis;
1733
1770
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1734
1771
  var isRegExp = isRegexp;
1735
1772
  var anObject$1 = anObject$9;
1736
- var requireObjectCoercible$1 = requireObjectCoercible$6;
1773
+ var requireObjectCoercible$1 = requireObjectCoercible$7;
1737
1774
  var speciesConstructor = speciesConstructor$1;
1738
1775
  var advanceStringIndex = advanceStringIndex$1;
1739
- var toLength = toLength$2;
1740
- var toString$2 = toString$6;
1776
+ var toLength = toLength$3;
1777
+ var toString$2 = toString$7;
1741
1778
  var getMethod = getMethod$2;
1742
1779
  var arraySlice$2 = arraySliceSimple;
1743
1780
  var callRegExpExec = regexpExecAbstract;
@@ -2120,6 +2157,8 @@ var DropdownItems = function DropdownItems(_a) {
2120
2157
  }));
2121
2158
  };
2122
2159
 
2160
+ var emailProviders = ["gmail.com", "outlook.com", "yahoo.co.in", "yahoo.com", "hotmail.com"];
2161
+
2123
2162
  var InputField = function InputField(_a) {
2124
2163
  var label = _a.label,
2125
2164
  labelColor = _a.labelColor,
@@ -2152,28 +2191,39 @@ var InputField = function InputField(_a) {
2152
2191
  fieldColor = _a.fieldColor,
2153
2192
  _h = _a.handleSuffixClick,
2154
2193
  handleSuffixClick = _h === void 0 ? function (_) {} : _h,
2155
- className = _a.className;
2156
-
2157
- var _j = inputProps || {},
2158
- disabled = _j.disabled,
2159
- onFocus = _j.onFocus,
2160
- onBlur = _j.onBlur;
2194
+ className = _a.className,
2195
+ _j = _a.showEmailSuggestions,
2196
+ showEmailSuggestions = _j === void 0 ? false : _j;
2161
2197
 
2162
- var _k = useState(false),
2163
- active = _k[0],
2164
- setActive = _k[1];
2198
+ var _k = inputProps || {},
2199
+ disabled = _k.disabled,
2200
+ onFocus = _k.onFocus,
2201
+ onBlur = _k.onBlur,
2202
+ onChange = _k.onChange;
2165
2203
 
2166
2204
  var _l = useState(false),
2167
- showSuffixDropdown = _l[0],
2168
- setShowSuffixDropdown = _l[1];
2205
+ active = _l[0],
2206
+ setActive = _l[1];
2207
+
2208
+ var _m = useState(false),
2209
+ showSuffixDropdown = _m[0],
2210
+ setShowSuffixDropdown = _m[1];
2169
2211
 
2170
- var _m = useState(""),
2171
- suffixValue = _m[0],
2172
- setSuffixValue = _m[1];
2212
+ var _o = useState(""),
2213
+ suffixValue = _o[0],
2214
+ setSuffixValue = _o[1];
2173
2215
 
2174
- var _o = useState([]),
2175
- suffixFilterList = _o[0],
2176
- setSuffixFilterList = _o[1];
2216
+ var _p = useState([]),
2217
+ suffixFilterList = _p[0],
2218
+ setSuffixFilterList = _p[1];
2219
+
2220
+ var _q = useState(false),
2221
+ showEmailDropdown = _q[0],
2222
+ setShowEmailDropdown = _q[1];
2223
+
2224
+ var _r = useState(""),
2225
+ inputValue = _r[0],
2226
+ setInputValue = _r[1];
2177
2227
 
2178
2228
  var wrapperRef = useRef(null);
2179
2229
  useEffect(function () {
@@ -2191,6 +2241,40 @@ var InputField = function InputField(_a) {
2191
2241
  var handleBlur = function handleBlur(event) {
2192
2242
  setActive(false);
2193
2243
  onBlur && onBlur(event);
2244
+ }; // This function handles input change events and updates the state accordingly
2245
+
2246
+
2247
+ var handleInputChange = function handleInputChange(e) {
2248
+ var _a;
2249
+
2250
+ var inputValue = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value; // If the input value ends with "@", set the showEmailDropdown state to true
2251
+
2252
+ if (inputValue.endsWith("@")) {
2253
+ setShowEmailDropdown(true);
2254
+ } else {
2255
+ // Otherwise, set the showEmailDropdown state to false
2256
+ setShowEmailDropdown(false);
2257
+ } // Update the inputValue state
2258
+
2259
+
2260
+ setInputValue(inputValue);
2261
+ onChange && onChange(e);
2262
+ }; // This function handles email provider selections and updates the inputValue state accordingly
2263
+
2264
+
2265
+ var handleEmailProviderSelection = function handleEmailProviderSelection(selectedEmailProvider) {
2266
+ // Create a new updatedInputValue string by concatenating the selected email provider to the existing inputValue
2267
+ var updatedInputValue = "".concat(inputValue).concat(selectedEmailProvider); // Update the inputValue state with the new updatedInputValue
2268
+
2269
+ setInputValue(updatedInputValue); // Set the showEmailDropdown state to false
2270
+
2271
+ setShowEmailDropdown(false); // @ts-ignore
2272
+
2273
+ onChange && onChange({
2274
+ target: {
2275
+ value: updatedInputValue
2276
+ }
2277
+ });
2194
2278
  };
2195
2279
 
2196
2280
  var handleSuffixValueChange = function handleSuffixValueChange(e) {
@@ -2271,6 +2355,7 @@ var InputField = function InputField(_a) {
2271
2355
  className: start_icon
2272
2356
  })
2273
2357
  })), jsxRuntime.exports.jsx("input", __assign({
2358
+ value: inputValue,
2274
2359
  type: "text",
2275
2360
  style: {
2276
2361
  background: "".concat(fieldColor === null || fieldColor === void 0 ? void 0 : fieldColor.split("-")[1], " "),
@@ -2280,7 +2365,8 @@ var InputField = function InputField(_a) {
2280
2365
  "data-testid": "text-input"
2281
2366
  }, inputProps, {
2282
2367
  onFocus: handleFocus,
2283
- onBlur: handleBlur
2368
+ onBlur: handleBlur,
2369
+ onChange: handleInputChange
2284
2370
  })), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
2285
2371
  className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-2"
2286
2372
  }, {
@@ -2351,6 +2437,18 @@ var InputField = function InputField(_a) {
2351
2437
  }))
2352
2438
  }))]
2353
2439
  }))
2440
+ })), showEmailSuggestions && // This div displays a dropdown of email provider options
2441
+ jsxRuntime.exports.jsx("div", __assign({
2442
+ className: "hplxt-absolute hplxt-mt-1 hplxt-left-10 hplxt-right-10 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-White hplxt-overflow-y-scroll hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ".concat(showEmailDropdown ? "hplxt-block" : "hplxt-hidden")
2443
+ }, {
2444
+ children: emailProviders === null || emailProviders === void 0 ? void 0 : emailProviders.map(function (option) {
2445
+ return jsxRuntime.exports.jsx(DropdownItems, {
2446
+ label: option,
2447
+ onSelect: function onSelect() {
2448
+ handleEmailProviderSelection(option);
2449
+ }
2450
+ }, option);
2451
+ })
2354
2452
  })), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
2355
2453
  className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
2356
2454
  }, {
@@ -3263,7 +3361,7 @@ var regexpGetFlags = function (R) {
3263
3361
  var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
3264
3362
  var defineBuiltIn = defineBuiltIn$3;
3265
3363
  var anObject = anObject$9;
3266
- var $toString = toString$6;
3364
+ var $toString = toString$7;
3267
3365
  var fails$2 = fails$i;
3268
3366
  var getRegExpFlags = regexpGetFlags;
3269
3367
 
@@ -5237,8 +5335,8 @@ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
5237
5335
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
5238
5336
 
5239
5337
  var uncurryThis$3 = functionUncurryThis;
5240
- var requireObjectCoercible = requireObjectCoercible$6;
5241
- var toString$1 = toString$6;
5338
+ var requireObjectCoercible = requireObjectCoercible$7;
5339
+ var toString$1 = toString$7;
5242
5340
  var whitespaces$1 = whitespaces$2;
5243
5341
 
5244
5342
  var replace$2 = uncurryThis$3(''.replace);
@@ -5514,7 +5612,7 @@ var uncurryThis$2 = functionUncurryThis;
5514
5612
  var hasOwn = hasOwnProperty_1;
5515
5613
  var isCallable$1 = isCallable$f;
5516
5614
  var isPrototypeOf = objectIsPrototypeOf;
5517
- var toString = toString$6;
5615
+ var toString = toString$7;
5518
5616
  var defineProperty = objectDefineProperty.f;
5519
5617
  var copyConstructorProperties = copyConstructorProperties$2;
5520
5618
 
@@ -17167,4 +17265,290 @@ var DatePicker = function DatePicker(_a) {
17167
17265
  }));
17168
17266
  };
17169
17267
 
17170
- export { AddSuggestion, Avatar, Badge, BadgeGroup, Button, ButtonGroups, Card, Checkbox, CheckboxGroup, CheckboxGroupItem, CollapsibleCard, DatePicker, DropdownField, DropdownItems as DropdownItem, InputField, InputFieldSplit, MessageToast, NestedDropdown, OtpField, ProgressBar, ProgressCircle, RadioBtn, Slider, TextAreaField, ToggleSwitch, Tooltip, Typography };
17268
+ var DoubleInput = function DoubleInput(_a) {
17269
+ var _b = _a.input1value,
17270
+ input1value = _b === void 0 ? "" : _b,
17271
+ _c = _a.input2value,
17272
+ input2value = _c === void 0 ? "" : _c,
17273
+ _d = _a.errorMsg,
17274
+ errorMsg = _d === void 0 ? "" : _d,
17275
+ prefix = _a.prefix,
17276
+ _e = _a.start_icon,
17277
+ start_icon = _e === void 0 ? "" : _e,
17278
+ _f = _a.end_icon,
17279
+ end_icon = _f === void 0 ? "" : _f,
17280
+ _g = _a.hint_text_icon,
17281
+ hint_text_icon = _g === void 0 ? "" : _g,
17282
+ hint_text = _a.hint_text,
17283
+ className = _a.className,
17284
+ suffixClassName = _a.suffixClassName,
17285
+ dropdownClassName = _a.dropdownClassName,
17286
+ suffixDropdownClassName = _a.suffixDropdownClassName,
17287
+ _h = _a.options,
17288
+ options = _h === void 0 ? [] : _h,
17289
+ _j = _a.suffixOptions,
17290
+ suffixOptions = _j === void 0 ? [] : _j,
17291
+ _k = _a.handleValChange,
17292
+ handleValChange = _k === void 0 ? function (_) {} : _k,
17293
+ _l = _a.handleSuffixValChange,
17294
+ handleSuffixValChange = _l === void 0 ? function (_) {} : _l,
17295
+ _m = _a.onDropdownClick,
17296
+ onDropdownClick = _m === void 0 ? function (_) {} : _m,
17297
+ _o = _a.onSuffixDropdownClick,
17298
+ onSuffixDropdownClick = _o === void 0 ? function (_) {} : _o,
17299
+ _p = _a.onlyDropdownItemsAllowed,
17300
+ onlyDropdownItemsAllowed = _p === void 0 ? false : _p,
17301
+ _q = _a.onlySuffixDropdownItemsAllowed,
17302
+ onlySuffixDropdownItemsAllowed = _q === void 0 ? true : _q,
17303
+ inputProps = _a.inputProps,
17304
+ suffixInputProps = _a.suffixInputProps;
17305
+
17306
+ var _r = inputProps || {},
17307
+ disabled = _r.disabled,
17308
+ onFocus = _r.onFocus,
17309
+ onBlur = _r.onBlur;
17310
+
17311
+ var _s = useState(""),
17312
+ value = _s[0],
17313
+ setValue = _s[1];
17314
+
17315
+ var _t = useState(""),
17316
+ suffixValue = _t[0],
17317
+ setSuffixValue = _t[1];
17318
+
17319
+ var _u = useState(true),
17320
+ showDropdown = _u[0],
17321
+ setShowDropdown = _u[1];
17322
+
17323
+ var _v = useState(false),
17324
+ showSuffixDropdown = _v[0],
17325
+ setShowSuffixDropdown = _v[1];
17326
+
17327
+ var _w = useState(),
17328
+ dropdownArr = _w[0],
17329
+ setDropdownArr = _w[1];
17330
+
17331
+ var _x = useState(),
17332
+ suffixDropdownArr = _x[0],
17333
+ setSuffixDropdownArr = _x[1];
17334
+
17335
+ var wrapperRef = useRef(null);
17336
+ var suffixWrapperRef = useRef(null);
17337
+
17338
+ var _y = useState(false),
17339
+ valueChanged = _y[0],
17340
+ setValueChanged = _y[1];
17341
+
17342
+ var _z = useState(false),
17343
+ suffixValueChanged = _z[0],
17344
+ setSuffixValueChanged = _z[1];
17345
+
17346
+ var _0 = useState(false),
17347
+ active = _0[0],
17348
+ setActive = _0[1];
17349
+
17350
+ var _1 = useState(false),
17351
+ suffixActive = _1[0],
17352
+ setSuffixActive = _1[1];
17353
+
17354
+ var handleFocus = function handleFocus(event) {
17355
+ setActive(true);
17356
+ setShowDropdown(true);
17357
+ onFocus && onFocus(event);
17358
+ };
17359
+
17360
+ var handleBlur = function handleBlur(event) {
17361
+ setActive(false);
17362
+ setShowDropdown(false);
17363
+ onBlur && onBlur(event);
17364
+ };
17365
+
17366
+ var handleClickOutside = function handleClickOutside(e) {
17367
+ if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
17368
+ !active && valueChanged && onlyDropdownItemsAllowed && setValue("");
17369
+ setShowDropdown(false);
17370
+ }
17371
+
17372
+ if (suffixWrapperRef.current && !suffixWrapperRef.current.contains(e.target)) {
17373
+ !suffixActive && suffixValueChanged && onlySuffixDropdownItemsAllowed && setSuffixValue("");
17374
+ setShowSuffixDropdown(false);
17375
+ }
17376
+ };
17377
+
17378
+ var handleValueChange = function handleValueChange(e) {
17379
+ setValueChanged(true);
17380
+ var sug = dropdownArr || [];
17381
+ setShowDropdown(true);
17382
+
17383
+ if (options && options.length > 0) {
17384
+ sug = options === null || options === void 0 ? void 0 : options.filter(function (options) {
17385
+ return options.label.toLowerCase().includes(e.target.value.toLowerCase());
17386
+ });
17387
+ setDropdownArr(sug);
17388
+ } // if (sug.length === 0 || e.target.value.length === 0) {
17389
+
17390
+
17391
+ handleValChange && handleValChange(e.target.value); // }
17392
+
17393
+ setValue(e.target.value);
17394
+ };
17395
+
17396
+ var handleSuffixValueChange = function handleSuffixValueChange(e) {
17397
+ setSuffixValueChanged(true);
17398
+ var sug = suffixDropdownArr || [];
17399
+ setShowSuffixDropdown(true);
17400
+
17401
+ if (suffixOptions && suffixOptions.length > 0) {
17402
+ sug = suffixOptions === null || suffixOptions === void 0 ? void 0 : suffixOptions.filter(function (suffixOption) {
17403
+ return suffixOption.label.toLowerCase().includes(e.target.value.toLowerCase());
17404
+ });
17405
+ setSuffixDropdownArr(sug);
17406
+ } // if (sug.length === 0 || e.target.value.length === 0) {
17407
+
17408
+
17409
+ handleSuffixValChange && handleSuffixValChange(e.target.value); // }
17410
+
17411
+ setSuffixValue(e.target.value);
17412
+ };
17413
+
17414
+ var handleDropdownClick = function handleDropdownClick(selectedItem) {
17415
+ setSuffixValueChanged(false);
17416
+ setValue(selectedItem.value);
17417
+ onDropdownClick && onDropdownClick(selectedItem);
17418
+ setShowDropdown(false);
17419
+ };
17420
+
17421
+ var handleSuffixDropdownClick = function handleSuffixDropdownClick(selectedItem) {
17422
+ setSuffixValueChanged(false);
17423
+ setSuffixValue(selectedItem.value);
17424
+ onSuffixDropdownClick && onSuffixDropdownClick(selectedItem);
17425
+ setShowSuffixDropdown(false);
17426
+ };
17427
+
17428
+ useEffect(function () {
17429
+ document.addEventListener("mousedown", handleClickOutside);
17430
+ return function () {
17431
+ document.removeEventListener("mousedown", handleClickOutside);
17432
+ };
17433
+ });
17434
+ useEffect(function () {
17435
+ setValue(input1value);
17436
+ }, [input1value]);
17437
+ useEffect(function () {
17438
+ setSuffixValue(input2value);
17439
+ }, [input2value]);
17440
+ return jsxRuntime.exports.jsx("div", __assign({
17441
+ className: "inputfield hplxt-flex "
17442
+ }, {
17443
+ children: jsxRuntime.exports.jsxs(Typography, __assign({
17444
+ variant: "Regular",
17445
+ type: "Text md"
17446
+ }, {
17447
+ children: [jsxRuntime.exports.jsxs("div", __assign({
17448
+ "data-setid": "error-msg",
17449
+ className: "hplxt-flex hplxt-shadow-xs hplxt-border-1 hplxt-border-Blue_gray-100 hplxt-rounded-lg hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary\n hplxt-overflow-hidden placeholder:hplxt-text-Gray-500 hplxt-bg-White hplxt-h-10\n ".concat(errorMsg ? "hplxt-border-Error-300" : '', " \n ").concat(disabled ? "hplxt-bg-Gray-50" : "".concat("hplxt-bg-White", " \n ").concat(errorMsg ? "hover:hplxt-shadow-xs-error" : "hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary "))
17450
+ }, {
17451
+ children: [Boolean(prefix) && jsxRuntime.exports.jsx("div", __assign({
17452
+ "data-testid": "input-prefix",
17453
+ className: "hplxt-bg-Gray-50 hplxt-border-r-1 hplxt-border-r-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-px-3"
17454
+ }, {
17455
+ children: jsxRuntime.exports.jsx(Typography, __assign({
17456
+ type: "Text md",
17457
+ variant: "Regular"
17458
+ }, {
17459
+ children: prefix
17460
+ }))
17461
+ })), Boolean(start_icon) && jsxRuntime.exports.jsx("div", __assign({
17462
+ className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pl-2"
17463
+ }, {
17464
+ children: jsxRuntime.exports.jsx("span", {
17465
+ className: start_icon
17466
+ })
17467
+ })), jsxRuntime.exports.jsx("input", __assign({
17468
+ type: "text",
17469
+ className: "hplxt-flex-1 hplxt-pl-[14px] placeholder:hplxt-text-Indigo-500 placeholder:hplxt-opacity-50 hplxt-pr-[12px] hplxt-py-1 focus-visible:hplxt-outline-0 hplxt-border-0 focus:hplxt-border-0 ".concat(className),
17470
+ value: value,
17471
+ onChange: function onChange(e) {
17472
+ return handleValueChange(e);
17473
+ }
17474
+ }, inputProps, {
17475
+ onFocus: handleFocus,
17476
+ onBlur: handleBlur
17477
+ })), jsxRuntime.exports.jsx("input", __assign({
17478
+ type: "text",
17479
+ className: "hplxt-flex-1 hplxt-border-l-1 hplxt-border-Blue_gray-100 hplxt-pl-[14px] focus-visible:hplxt-outline-0 hplxt-bg-Gray-50 ".concat(suffixClassName),
17480
+ value: suffixValue,
17481
+ onChange: function onChange(e) {
17482
+ return handleSuffixValueChange(e);
17483
+ },
17484
+ onFocus: function onFocus() {
17485
+ setSuffixActive(true);
17486
+ setShowSuffixDropdown(true);
17487
+ },
17488
+ onBlur: function onBlur() {
17489
+ setSuffixActive(false);
17490
+ setShowSuffixDropdown(false);
17491
+ }
17492
+ }, suffixInputProps)), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
17493
+ className: "hplxt-text-Gray-500 hplxt-bg-Gray-50 hplxt-flex hplxt-items-center hplxt-pr-2",
17494
+ onClick: function onClick() {
17495
+ return setShowSuffixDropdown(true);
17496
+ }
17497
+ }, {
17498
+ children: jsxRuntime.exports.jsx("span", {
17499
+ className: end_icon
17500
+ })
17501
+ }))]
17502
+ })), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
17503
+ className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
17504
+ }, {
17505
+ children: jsxRuntime.exports.jsx(Typography, __assign({
17506
+ type: "Text sm",
17507
+ variant: "Regular"
17508
+ }, {
17509
+ children: errorMsg ? String(errorMsg) : jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
17510
+ children: [Boolean(hint_text_icon) && jsxRuntime.exports.jsx("span", {
17511
+ className: hint_text_icon
17512
+ }), hint_text]
17513
+ })
17514
+ }))
17515
+ })), showDropdown && jsxRuntime.exports.jsx("div", __assign({
17516
+ ref: wrapperRef,
17517
+ className: "hplxt-absolute hplxt-border hplxt-border-Gray-300 hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-Indigo-25 hplxt-overflow-y-auto hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ".concat(dropdownClassName)
17518
+ }, {
17519
+ children: dropdownArr && dropdownArr.length > 0 && jsxRuntime.exports.jsx("div", {
17520
+ children: dropdownArr.map(function (option) {
17521
+ var restOptions = __rest(option || {}, []);
17522
+
17523
+ return jsxRuntime.exports.jsx(DropdownItems, __assign({
17524
+ className: "hplxt-text-Primary-700"
17525
+ }, restOptions, {
17526
+ onSelect: function onSelect() {
17527
+ return handleDropdownClick(restOptions);
17528
+ }
17529
+ }));
17530
+ })
17531
+ })
17532
+ })), showSuffixDropdown && jsxRuntime.exports.jsx("div", __assign({
17533
+ ref: suffixWrapperRef,
17534
+ className: "hplxt-absolute hplxt-border hplxt-border-Gray-300 hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-Indigo-25 hplxt-overflow-y-auto hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ".concat(suffixDropdownClassName)
17535
+ }, {
17536
+ children: suffixDropdownArr && suffixDropdownArr.length > 0 && jsxRuntime.exports.jsx("div", {
17537
+ children: suffixDropdownArr.map(function (option) {
17538
+ var restOptions = __rest(option || {}, []);
17539
+
17540
+ return jsxRuntime.exports.jsx(DropdownItems, __assign({
17541
+ className: "hplxt-text-Primary-700"
17542
+ }, restOptions, {
17543
+ onSelect: function onSelect() {
17544
+ return handleSuffixDropdownClick(restOptions);
17545
+ }
17546
+ }));
17547
+ })
17548
+ })
17549
+ }))]
17550
+ }))
17551
+ }));
17552
+ };
17553
+
17554
+ export { AddSuggestion, Avatar, Badge, BadgeGroup, Button, ButtonGroups, Card, Checkbox, CheckboxGroup, CheckboxGroupItem, CollapsibleCard, DatePicker, DoubleInput, DropdownField, DropdownItems as DropdownItem, InputField, InputFieldSplit, MessageToast, NestedDropdown, OtpField, ProgressBar, ProgressCircle, RadioBtn, Slider, TextAreaField, ToggleSwitch, Tooltip, Typography };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { InputFieldProps } from "../types";
3
- declare const InputField: ({ label, labelColor, labelSize, height, start_icon, width, border, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, inputProps, suffixInputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, suffixClassName, fieldColor, handleSuffixClick, className }: InputFieldProps) => JSX.Element;
3
+ declare const InputField: ({ label, labelColor, labelSize, height, start_icon, width, border, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, inputProps, suffixInputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, suffixClassName, fieldColor, handleSuffixClick, className, showEmailSuggestions, }: InputFieldProps) => JSX.Element;
4
4
  export default InputField;
@@ -26,6 +26,7 @@ export interface InputFieldProps {
26
26
  isSuffixEditable?: boolean;
27
27
  handleSuffixValChange?: (value: any) => void;
28
28
  className?: string;
29
+ showEmailSuggestions?: boolean;
29
30
  }
30
31
  export interface DatePickerProps {
31
32
  placeholder?: string;
@@ -391,4 +392,28 @@ export interface AddSuggestionProps {
391
392
  handleSuffixValChange?: (value: any) => void;
392
393
  isborderRequired?: boolean;
393
394
  }
395
+ export interface DoubleInputProps {
396
+ prefix?: ReactNode;
397
+ start_icon?: string;
398
+ end_icon?: string;
399
+ errorMsg?: string;
400
+ inputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
401
+ suffixInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
402
+ className?: string;
403
+ suffixClassName?: string;
404
+ options?: Array<DropdownItemsProps>;
405
+ suffixOptions?: Array<DropdownItemsProps>;
406
+ handleValChange?: (value: any) => void;
407
+ handleSuffixValChange?: (value: any) => void;
408
+ onDropdownClick?: (value: any) => void;
409
+ onSuffixDropdownClick?: (value: any) => void;
410
+ dropdownClassName?: string;
411
+ suffixDropdownClassName?: string;
412
+ input1value?: string;
413
+ input2value?: string;
414
+ onlySuffixDropdownItemsAllowed?: boolean;
415
+ onlyDropdownItemsAllowed?: boolean;
416
+ hint_text_icon?: string;
417
+ hint_text?: string;
418
+ }
394
419
  export {};
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.52",
12
+ "version": "1.0.54",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",