hplx-react-elements-dev 1.0.53 → 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.
- package/dist/esm/index.js +260 -162
- package/dist/esm/inputField/InputField.d.ts +1 -1
- package/dist/esm/types.d.ts +1 -0
- package/package.json +1 -1
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$
|
|
81
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
82
82
|
|
|
83
83
|
// Nashorn ~ JDK8 bug
|
|
84
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
117
|
+
var uncurryThis$j = functionUncurryThis;
|
|
118
118
|
|
|
119
|
-
var toString$
|
|
120
|
-
var stringSlice$4 = uncurryThis$
|
|
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$
|
|
123
|
+
return stringSlice$4(toString$9(it), 8, -1);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
var uncurryThis$
|
|
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$
|
|
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$
|
|
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$
|
|
153
|
+
var requireObjectCoercible$6 = requireObjectCoercible$7;
|
|
154
154
|
|
|
155
155
|
var toIndexedObject$4 = function (it) {
|
|
156
|
-
return IndexedObject(requireObjectCoercible$
|
|
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$
|
|
182
|
+
var uncurryThis$h = functionUncurryThis;
|
|
183
183
|
|
|
184
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
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$
|
|
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$
|
|
343
|
+
return $Object$1(requireObjectCoercible$5(argument));
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
var uncurryThis$
|
|
346
|
+
var uncurryThis$g = functionUncurryThis;
|
|
347
347
|
var toObject = toObject$1;
|
|
348
348
|
|
|
349
|
-
var hasOwnProperty = uncurryThis$
|
|
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$
|
|
358
|
+
var uncurryThis$f = functionUncurryThis;
|
|
359
359
|
|
|
360
360
|
var id = 0;
|
|
361
361
|
var postfix = Math.random();
|
|
362
|
-
var 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$
|
|
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$
|
|
576
|
+
var uncurryThis$e = functionUncurryThis;
|
|
577
577
|
var isCallable$9 = isCallable$f;
|
|
578
578
|
var store$1 = sharedStore;
|
|
579
579
|
|
|
580
|
-
var functionToString = uncurryThis$
|
|
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$
|
|
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$
|
|
641
|
-
var wmhas = uncurryThis$
|
|
642
|
-
var wmset = uncurryThis$
|
|
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$
|
|
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$
|
|
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$
|
|
796
|
+
var min$4 = Math.min;
|
|
797
797
|
|
|
798
798
|
// `ToLength` abstract operation
|
|
799
799
|
// https://tc39.es/ecma262/#sec-tolength
|
|
800
|
-
var toLength$
|
|
801
|
-
return argument > 0 ? min$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1259
|
-
var toString$5 = toString$
|
|
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$
|
|
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$
|
|
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$
|
|
1640
|
-
var requireObjectCoercible$2 = requireObjectCoercible$
|
|
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$
|
|
1773
|
+
var requireObjectCoercible$1 = requireObjectCoercible$7;
|
|
1737
1774
|
var speciesConstructor = speciesConstructor$1;
|
|
1738
1775
|
var advanceStringIndex = advanceStringIndex$1;
|
|
1739
|
-
var toLength = toLength$
|
|
1740
|
-
var toString$2 = toString$
|
|
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
|
-
|
|
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 =
|
|
2163
|
-
|
|
2164
|
-
|
|
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
|
-
|
|
2168
|
-
|
|
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
|
|
2171
|
-
suffixValue =
|
|
2172
|
-
setSuffixValue =
|
|
2212
|
+
var _o = useState(""),
|
|
2213
|
+
suffixValue = _o[0],
|
|
2214
|
+
setSuffixValue = _o[1];
|
|
2173
2215
|
|
|
2174
|
-
var
|
|
2175
|
-
suffixFilterList =
|
|
2176
|
-
setSuffixFilterList =
|
|
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$
|
|
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$
|
|
5241
|
-
var toString$1 = toString$
|
|
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$
|
|
5615
|
+
var toString = toString$7;
|
|
5518
5616
|
var defineProperty = objectDefineProperty.f;
|
|
5519
5617
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
5520
5618
|
|
|
@@ -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;
|
package/dist/esm/types.d.ts
CHANGED