@jobber/components 6.11.0 → 6.11.2
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/Autocomplete/index.cjs +2 -11
- package/dist/Autocomplete/index.mjs +2 -11
- package/dist/Autocomplete-cjs.js +2 -2
- package/dist/Autocomplete-es.js +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
- package/dist/Chips/index.cjs +2 -2
- package/dist/Chips/index.mjs +2 -2
- package/dist/DataList/DataList.types.d.ts +1 -1
- package/dist/DataList/components/DataListSearch/index.cjs +1 -10
- package/dist/DataList/components/DataListSearch/index.mjs +1 -10
- package/dist/DataList/index.cjs +1 -8
- package/dist/DataList/index.mjs +1 -8
- package/dist/DataListSearch-cjs.js +2 -2
- package/dist/DataListSearch-es.js +1 -1
- package/dist/DataListTotalCount-cjs.js +3 -1
- package/dist/DataListTotalCount-es.js +3 -1
- package/dist/DatePicker/index.cjs +2 -3
- package/dist/DatePicker/index.mjs +2 -3
- package/dist/DatePicker-cjs.js +781 -2
- package/dist/DatePicker-es.js +781 -3
- package/dist/FormField/FormFieldTypes.d.ts +3 -3
- package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +3 -3
- package/dist/FormField-cjs.js +2 -5
- package/dist/FormField-es.js +3 -3
- package/dist/InputDate/index.cjs +15 -16
- package/dist/InputDate/index.mjs +15 -16
- package/dist/InputDate-cjs.js +2 -3
- package/dist/InputDate-es.js +1 -2
- package/dist/InputText/InputText.d.ts +20 -10
- package/dist/InputText/index.cjs +8 -263
- package/dist/InputText/index.d.ts +1 -5
- package/dist/InputText/index.mjs +7 -266
- package/dist/InputText-cjs.js +129 -0
- package/dist/InputText-es.js +127 -0
- package/dist/List/index.cjs +2 -2
- package/dist/List/index.mjs +2 -2
- package/dist/_baseEach-cjs.js +12 -12
- package/dist/_baseEach-es.js +2 -2
- package/dist/_baseFlatten-cjs.js +2 -2
- package/dist/_baseFlatten-es.js +1 -1
- package/dist/{_baseGet-cjs.js → _getAllKeys-cjs.js} +181 -181
- package/dist/{_baseGet-es.js → _getAllKeys-es.js} +183 -183
- package/dist/index.cjs +3 -4
- package/dist/index.mjs +2 -3
- package/dist/isTypedArray-es.js +1 -1
- package/dist/useScrollToActive-cjs.js +3 -3
- package/dist/useScrollToActive-es.js +1 -1
- package/package.json +2 -2
- package/dist/InputText/InputText.rebuilt.d.ts +0 -3
- package/dist/InputText/InputText.types.d.ts +0 -71
- package/dist/InputText/useInputTextActions.d.ts +0 -16
- package/dist/InputText/useInputTextFormField.d.ts +0 -347
- package/dist/InputText/useTextAreaResize.d.ts +0 -14
- package/dist/omit-cjs.js +0 -783
- package/dist/omit-es.js +0 -781
|
@@ -1,152 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as _arrayLikeKeys, f as _MapCache } from './identity-es.js';
|
|
3
|
-
import { _ as _baseKeys } from './_getTag-es.js';
|
|
1
|
+
import { a as isArray_1, b as isArrayLike_1 } from './isTypedArray-es.js';
|
|
4
2
|
import { i as isSymbol_1 } from './isSymbol-es.js';
|
|
3
|
+
import { f as _MapCache, d as _arrayLikeKeys } from './identity-es.js';
|
|
5
4
|
import { b as _Symbol } from './isObjectLike-es.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
9
|
-
* shorthands.
|
|
10
|
-
*
|
|
11
|
-
* @private
|
|
12
|
-
* @param {Array} [array] The array to iterate over.
|
|
13
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
14
|
-
* @returns {Array} Returns the new mapped array.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
function arrayMap$1(array, iteratee) {
|
|
18
|
-
var index = -1,
|
|
19
|
-
length = array == null ? 0 : array.length,
|
|
20
|
-
result = Array(length);
|
|
21
|
-
|
|
22
|
-
while (++index < length) {
|
|
23
|
-
result[index] = iteratee(array[index], index, array);
|
|
24
|
-
}
|
|
25
|
-
return result;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var _arrayMap = arrayMap$1;
|
|
29
|
-
|
|
30
|
-
var arrayLikeKeys = _arrayLikeKeys,
|
|
31
|
-
baseKeys = _baseKeys,
|
|
32
|
-
isArrayLike = isArrayLike_1;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
36
|
-
*
|
|
37
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
38
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
39
|
-
* for more details.
|
|
40
|
-
*
|
|
41
|
-
* @static
|
|
42
|
-
* @since 0.1.0
|
|
43
|
-
* @memberOf _
|
|
44
|
-
* @category Object
|
|
45
|
-
* @param {Object} object The object to query.
|
|
46
|
-
* @returns {Array} Returns the array of property names.
|
|
47
|
-
* @example
|
|
48
|
-
*
|
|
49
|
-
* function Foo() {
|
|
50
|
-
* this.a = 1;
|
|
51
|
-
* this.b = 2;
|
|
52
|
-
* }
|
|
53
|
-
*
|
|
54
|
-
* Foo.prototype.c = 3;
|
|
55
|
-
*
|
|
56
|
-
* _.keys(new Foo);
|
|
57
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
58
|
-
*
|
|
59
|
-
* _.keys('hi');
|
|
60
|
-
* // => ['0', '1']
|
|
61
|
-
*/
|
|
62
|
-
function keys$1(object) {
|
|
63
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
var keys_1 = keys$1;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* A specialized version of `_.filter` for arrays without support for
|
|
70
|
-
* iteratee shorthands.
|
|
71
|
-
*
|
|
72
|
-
* @private
|
|
73
|
-
* @param {Array} [array] The array to iterate over.
|
|
74
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
75
|
-
* @returns {Array} Returns the new filtered array.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
function arrayFilter$1(array, predicate) {
|
|
79
|
-
var index = -1,
|
|
80
|
-
length = array == null ? 0 : array.length,
|
|
81
|
-
resIndex = 0,
|
|
82
|
-
result = [];
|
|
83
|
-
|
|
84
|
-
while (++index < length) {
|
|
85
|
-
var value = array[index];
|
|
86
|
-
if (predicate(value, index, array)) {
|
|
87
|
-
result[resIndex++] = value;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return result;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
var _arrayFilter = arrayFilter$1;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* This method returns a new empty array.
|
|
97
|
-
*
|
|
98
|
-
* @static
|
|
99
|
-
* @memberOf _
|
|
100
|
-
* @since 4.13.0
|
|
101
|
-
* @category Util
|
|
102
|
-
* @returns {Array} Returns the new empty array.
|
|
103
|
-
* @example
|
|
104
|
-
*
|
|
105
|
-
* var arrays = _.times(2, _.stubArray);
|
|
106
|
-
*
|
|
107
|
-
* console.log(arrays);
|
|
108
|
-
* // => [[], []]
|
|
109
|
-
*
|
|
110
|
-
* console.log(arrays[0] === arrays[1]);
|
|
111
|
-
* // => false
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
function stubArray$1() {
|
|
115
|
-
return [];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
var stubArray_1 = stubArray$1;
|
|
119
|
-
|
|
120
|
-
var arrayFilter = _arrayFilter,
|
|
121
|
-
stubArray = stubArray_1;
|
|
122
|
-
|
|
123
|
-
/** Used for built-in method references. */
|
|
124
|
-
var objectProto = Object.prototype;
|
|
125
|
-
|
|
126
|
-
/** Built-in value references. */
|
|
127
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
128
|
-
|
|
129
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
130
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Creates an array of the own enumerable symbols of `object`.
|
|
134
|
-
*
|
|
135
|
-
* @private
|
|
136
|
-
* @param {Object} object The object to query.
|
|
137
|
-
* @returns {Array} Returns the array of symbols.
|
|
138
|
-
*/
|
|
139
|
-
var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
140
|
-
if (object == null) {
|
|
141
|
-
return [];
|
|
142
|
-
}
|
|
143
|
-
object = Object(object);
|
|
144
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
145
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
var _getSymbols = getSymbols$1;
|
|
5
|
+
import { _ as _baseKeys } from './_getTag-es.js';
|
|
150
6
|
|
|
151
7
|
/**
|
|
152
8
|
* Appends the elements of `values` to `array`.
|
|
@@ -170,45 +26,30 @@ function arrayPush$1(array, values) {
|
|
|
170
26
|
|
|
171
27
|
var _arrayPush = arrayPush$1;
|
|
172
28
|
|
|
173
|
-
var arrayPush = _arrayPush,
|
|
174
|
-
isArray$3 = isArray_1;
|
|
175
|
-
|
|
176
29
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* symbols of `object`.
|
|
30
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
31
|
+
* shorthands.
|
|
180
32
|
*
|
|
181
33
|
* @private
|
|
182
|
-
* @param {
|
|
183
|
-
* @param {Function}
|
|
184
|
-
* @
|
|
185
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
34
|
+
* @param {Array} [array] The array to iterate over.
|
|
35
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
36
|
+
* @returns {Array} Returns the new mapped array.
|
|
186
37
|
*/
|
|
187
|
-
function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
|
|
188
|
-
var result = keysFunc(object);
|
|
189
|
-
return isArray$3(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
190
|
-
}
|
|
191
38
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
keys = keys_1;
|
|
39
|
+
function arrayMap$1(array, iteratee) {
|
|
40
|
+
var index = -1,
|
|
41
|
+
length = array == null ? 0 : array.length,
|
|
42
|
+
result = Array(length);
|
|
197
43
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
* @param {Object} object The object to query.
|
|
203
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
204
|
-
*/
|
|
205
|
-
function getAllKeys(object) {
|
|
206
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
44
|
+
while (++index < length) {
|
|
45
|
+
result[index] = iteratee(array[index], index, array);
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
207
48
|
}
|
|
208
49
|
|
|
209
|
-
var
|
|
50
|
+
var _arrayMap = arrayMap$1;
|
|
210
51
|
|
|
211
|
-
var isArray$
|
|
52
|
+
var isArray$3 = isArray_1,
|
|
212
53
|
isSymbol$2 = isSymbol_1;
|
|
213
54
|
|
|
214
55
|
/** Used to match property names within property paths. */
|
|
@@ -224,7 +65,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
|
224
65
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
225
66
|
*/
|
|
226
67
|
function isKey$1(value, object) {
|
|
227
|
-
if (isArray$
|
|
68
|
+
if (isArray$3(value)) {
|
|
228
69
|
return false;
|
|
229
70
|
}
|
|
230
71
|
var type = typeof value;
|
|
@@ -369,7 +210,7 @@ var _stringToPath = stringToPath$1;
|
|
|
369
210
|
|
|
370
211
|
var Symbol = _Symbol,
|
|
371
212
|
arrayMap = _arrayMap,
|
|
372
|
-
isArray$
|
|
213
|
+
isArray$2 = isArray_1,
|
|
373
214
|
isSymbol$1 = isSymbol_1;
|
|
374
215
|
|
|
375
216
|
/** Used as references for various `Number` constants. */
|
|
@@ -392,7 +233,7 @@ function baseToString$1(value) {
|
|
|
392
233
|
if (typeof value == 'string') {
|
|
393
234
|
return value;
|
|
394
235
|
}
|
|
395
|
-
if (isArray$
|
|
236
|
+
if (isArray$2(value)) {
|
|
396
237
|
// Recursively convert values (susceptible to call stack limits).
|
|
397
238
|
return arrayMap(value, baseToString$1) + '';
|
|
398
239
|
}
|
|
@@ -434,7 +275,7 @@ function toString$1(value) {
|
|
|
434
275
|
|
|
435
276
|
var toString_1 = toString$1;
|
|
436
277
|
|
|
437
|
-
var isArray = isArray_1,
|
|
278
|
+
var isArray$1 = isArray_1,
|
|
438
279
|
isKey = _isKey,
|
|
439
280
|
stringToPath = _stringToPath,
|
|
440
281
|
toString = toString_1;
|
|
@@ -448,7 +289,7 @@ var isArray = isArray_1,
|
|
|
448
289
|
* @returns {Array} Returns the cast property path array.
|
|
449
290
|
*/
|
|
450
291
|
function castPath$1(value, object) {
|
|
451
|
-
if (isArray(value)) {
|
|
292
|
+
if (isArray$1(value)) {
|
|
452
293
|
return value;
|
|
453
294
|
}
|
|
454
295
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
@@ -503,4 +344,163 @@ function baseGet(object, path) {
|
|
|
503
344
|
|
|
504
345
|
var _baseGet = baseGet;
|
|
505
346
|
|
|
506
|
-
|
|
347
|
+
var arrayPush = _arrayPush,
|
|
348
|
+
isArray = isArray_1;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
352
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
353
|
+
* symbols of `object`.
|
|
354
|
+
*
|
|
355
|
+
* @private
|
|
356
|
+
* @param {Object} object The object to query.
|
|
357
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
358
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
359
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
360
|
+
*/
|
|
361
|
+
function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
|
|
362
|
+
var result = keysFunc(object);
|
|
363
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
370
|
+
* iteratee shorthands.
|
|
371
|
+
*
|
|
372
|
+
* @private
|
|
373
|
+
* @param {Array} [array] The array to iterate over.
|
|
374
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
375
|
+
* @returns {Array} Returns the new filtered array.
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
function arrayFilter$1(array, predicate) {
|
|
379
|
+
var index = -1,
|
|
380
|
+
length = array == null ? 0 : array.length,
|
|
381
|
+
resIndex = 0,
|
|
382
|
+
result = [];
|
|
383
|
+
|
|
384
|
+
while (++index < length) {
|
|
385
|
+
var value = array[index];
|
|
386
|
+
if (predicate(value, index, array)) {
|
|
387
|
+
result[resIndex++] = value;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return result;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
var _arrayFilter = arrayFilter$1;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* This method returns a new empty array.
|
|
397
|
+
*
|
|
398
|
+
* @static
|
|
399
|
+
* @memberOf _
|
|
400
|
+
* @since 4.13.0
|
|
401
|
+
* @category Util
|
|
402
|
+
* @returns {Array} Returns the new empty array.
|
|
403
|
+
* @example
|
|
404
|
+
*
|
|
405
|
+
* var arrays = _.times(2, _.stubArray);
|
|
406
|
+
*
|
|
407
|
+
* console.log(arrays);
|
|
408
|
+
* // => [[], []]
|
|
409
|
+
*
|
|
410
|
+
* console.log(arrays[0] === arrays[1]);
|
|
411
|
+
* // => false
|
|
412
|
+
*/
|
|
413
|
+
|
|
414
|
+
function stubArray$1() {
|
|
415
|
+
return [];
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
var stubArray_1 = stubArray$1;
|
|
419
|
+
|
|
420
|
+
var arrayFilter = _arrayFilter,
|
|
421
|
+
stubArray = stubArray_1;
|
|
422
|
+
|
|
423
|
+
/** Used for built-in method references. */
|
|
424
|
+
var objectProto = Object.prototype;
|
|
425
|
+
|
|
426
|
+
/** Built-in value references. */
|
|
427
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
428
|
+
|
|
429
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
430
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
434
|
+
*
|
|
435
|
+
* @private
|
|
436
|
+
* @param {Object} object The object to query.
|
|
437
|
+
* @returns {Array} Returns the array of symbols.
|
|
438
|
+
*/
|
|
439
|
+
var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
440
|
+
if (object == null) {
|
|
441
|
+
return [];
|
|
442
|
+
}
|
|
443
|
+
object = Object(object);
|
|
444
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
445
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
var _getSymbols = getSymbols$1;
|
|
450
|
+
|
|
451
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
452
|
+
baseKeys = _baseKeys,
|
|
453
|
+
isArrayLike = isArrayLike_1;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
457
|
+
*
|
|
458
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
459
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
460
|
+
* for more details.
|
|
461
|
+
*
|
|
462
|
+
* @static
|
|
463
|
+
* @since 0.1.0
|
|
464
|
+
* @memberOf _
|
|
465
|
+
* @category Object
|
|
466
|
+
* @param {Object} object The object to query.
|
|
467
|
+
* @returns {Array} Returns the array of property names.
|
|
468
|
+
* @example
|
|
469
|
+
*
|
|
470
|
+
* function Foo() {
|
|
471
|
+
* this.a = 1;
|
|
472
|
+
* this.b = 2;
|
|
473
|
+
* }
|
|
474
|
+
*
|
|
475
|
+
* Foo.prototype.c = 3;
|
|
476
|
+
*
|
|
477
|
+
* _.keys(new Foo);
|
|
478
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
479
|
+
*
|
|
480
|
+
* _.keys('hi');
|
|
481
|
+
* // => ['0', '1']
|
|
482
|
+
*/
|
|
483
|
+
function keys$1(object) {
|
|
484
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
var keys_1 = keys$1;
|
|
488
|
+
|
|
489
|
+
var baseGetAllKeys = _baseGetAllKeys,
|
|
490
|
+
getSymbols = _getSymbols,
|
|
491
|
+
keys = keys_1;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
495
|
+
*
|
|
496
|
+
* @private
|
|
497
|
+
* @param {Object} object The object to query.
|
|
498
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
499
|
+
*/
|
|
500
|
+
function getAllKeys(object) {
|
|
501
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
var _getAllKeys = getAllKeys;
|
|
505
|
+
|
|
506
|
+
export { _arrayPush as _, _arrayMap as a, _baseGet as b, _getAllKeys as c, _castPath as d, _toKey as e, _isKey as f, _getSymbols as g, _baseGetAllKeys as h, keys_1 as k, stubArray_1 as s };
|
package/dist/index.cjs
CHANGED
|
@@ -56,7 +56,7 @@ var InputGroup = require('./InputGroup-cjs.js');
|
|
|
56
56
|
var InputNumber = require('./InputNumber-cjs.js');
|
|
57
57
|
var InputPassword = require('./InputPassword-cjs.js');
|
|
58
58
|
var InputPhoneNumber = require('./InputPhoneNumber-cjs.js');
|
|
59
|
-
var
|
|
59
|
+
var InputText = require('./InputText-cjs.js');
|
|
60
60
|
var InputTime = require('./InputTime-cjs.js');
|
|
61
61
|
var InputValidation = require('./InputValidation-cjs.js');
|
|
62
62
|
var LightBox = require('./LightBox-cjs.js');
|
|
@@ -114,7 +114,7 @@ require('./useChildComponent-cjs.js');
|
|
|
114
114
|
require('./InternalChipDismissible-cjs.js');
|
|
115
115
|
require('./useScrollToActive-cjs.js');
|
|
116
116
|
require('./_baseFlatten-cjs.js');
|
|
117
|
-
require('./
|
|
117
|
+
require('./_getAllKeys-cjs.js');
|
|
118
118
|
require('./_getTag-cjs.js');
|
|
119
119
|
require('./_baseEach-cjs.js');
|
|
120
120
|
require('./_polyfill-node.process-cjs.js');
|
|
@@ -167,7 +167,6 @@ require('./DataListAction-cjs.js');
|
|
|
167
167
|
require('./DataListLayoutActions-cjs.js');
|
|
168
168
|
require('./DataListStatusBar-cjs.js');
|
|
169
169
|
require('./throttle-cjs.js');
|
|
170
|
-
require('./omit-cjs.js');
|
|
171
170
|
require('./useFormFieldFocus-cjs.js');
|
|
172
171
|
require('filesize');
|
|
173
172
|
require('./GridCell-cjs.js');
|
|
@@ -252,7 +251,7 @@ exports.InputGroup = InputGroup.InputGroup;
|
|
|
252
251
|
exports.InputNumber = InputNumber.InputNumber;
|
|
253
252
|
exports.InputPassword = InputPassword.InputPassword;
|
|
254
253
|
exports.InputPhoneNumber = InputPhoneNumber.InputPhoneNumber;
|
|
255
|
-
exports.InputText =
|
|
254
|
+
exports.InputText = InputText.InputText;
|
|
256
255
|
exports.InputTime = InputTime.InputTime;
|
|
257
256
|
exports.InputValidation = InputValidation.InputValidation;
|
|
258
257
|
exports.LightBox = LightBox.LightBox;
|
package/dist/index.mjs
CHANGED
|
@@ -54,7 +54,7 @@ export { I as InputGroup } from './InputGroup-es.js';
|
|
|
54
54
|
export { I as InputNumber } from './InputNumber-es.js';
|
|
55
55
|
export { I as InputPassword } from './InputPassword-es.js';
|
|
56
56
|
export { I as InputPhoneNumber } from './InputPhoneNumber-es.js';
|
|
57
|
-
export { InputText } from './InputText
|
|
57
|
+
export { I as InputText } from './InputText-es.js';
|
|
58
58
|
export { I as InputTime } from './InputTime-es.js';
|
|
59
59
|
export { I as InputValidation } from './InputValidation-es.js';
|
|
60
60
|
export { L as LightBox } from './LightBox-es.js';
|
|
@@ -112,7 +112,7 @@ import './useChildComponent-es.js';
|
|
|
112
112
|
import './InternalChipDismissible-es.js';
|
|
113
113
|
import './useScrollToActive-es.js';
|
|
114
114
|
import './_baseFlatten-es.js';
|
|
115
|
-
import './
|
|
115
|
+
import './_getAllKeys-es.js';
|
|
116
116
|
import './_getTag-es.js';
|
|
117
117
|
import './_baseEach-es.js';
|
|
118
118
|
import './_polyfill-node.process-es.js';
|
|
@@ -165,7 +165,6 @@ import './DataListAction-es.js';
|
|
|
165
165
|
import './DataListLayoutActions-es.js';
|
|
166
166
|
import './DataListStatusBar-es.js';
|
|
167
167
|
import './throttle-es.js';
|
|
168
|
-
import './omit-es.js';
|
|
169
168
|
import './useFormFieldFocus-es.js';
|
|
170
169
|
import 'filesize';
|
|
171
170
|
import './GridCell-es.js';
|
package/dist/isTypedArray-es.js
CHANGED
|
@@ -586,4 +586,4 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
|
|
|
586
586
|
|
|
587
587
|
var isTypedArray_1 = isTypedArray;
|
|
588
588
|
|
|
589
|
-
export { _isPrototype as _, isArray_1 as a, isArrayLike_1 as b, isBufferExports as c, isTypedArray_1 as d, _overArg as e, _getNative as f, _Map as g, _toSource as h, isArguments_1 as i, isFunction_1 as j, _baseUnary as k,
|
|
589
|
+
export { _isPrototype as _, isArray_1 as a, isArrayLike_1 as b, isBufferExports as c, isTypedArray_1 as d, _overArg as e, _getNative as f, _Map as g, _toSource as h, isArguments_1 as i, isFunction_1 as j, _baseUnary as k, isLength_1 as l, _nodeUtilExports as m };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var _commonjsHelpers = require('./_commonjsHelpers-cjs.js');
|
|
5
5
|
var _baseFlatten = require('./_baseFlatten-cjs.js');
|
|
6
|
-
var
|
|
6
|
+
var _getAllKeys = require('./_getAllKeys-cjs.js');
|
|
7
7
|
var _baseEach = require('./_baseEach-cjs.js');
|
|
8
8
|
var isTypedArray = require('./isTypedArray-cjs.js');
|
|
9
9
|
var isSymbol$1 = require('./isSymbol-cjs.js');
|
|
@@ -146,8 +146,8 @@ function compareMultiple$1(object, other, orders) {
|
|
|
146
146
|
|
|
147
147
|
var _compareMultiple = compareMultiple$1;
|
|
148
148
|
|
|
149
|
-
var arrayMap =
|
|
150
|
-
baseGet =
|
|
149
|
+
var arrayMap = _getAllKeys._arrayMap,
|
|
150
|
+
baseGet = _getAllKeys._baseGet,
|
|
151
151
|
baseIteratee = _baseEach._baseIteratee,
|
|
152
152
|
baseMap = _baseMap,
|
|
153
153
|
baseSortBy = _baseSortBy,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useId, useState, useEffect } from 'react';
|
|
2
2
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
|
|
3
3
|
import { _ as _baseFlatten } from './_baseFlatten-es.js';
|
|
4
|
-
import { a as _arrayMap, b as _baseGet } from './
|
|
4
|
+
import { a as _arrayMap, b as _baseGet } from './_getAllKeys-es.js';
|
|
5
5
|
import { _ as _baseEach, a as _baseIteratee } from './_baseEach-es.js';
|
|
6
6
|
import { b as isArrayLike_1, k as _baseUnary, a as isArray_1 } from './isTypedArray-es.js';
|
|
7
7
|
import { i as isSymbol_1 } from './isSymbol-es.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -487,5 +487,5 @@
|
|
|
487
487
|
"> 1%",
|
|
488
488
|
"IE 10"
|
|
489
489
|
],
|
|
490
|
-
"gitHead": "
|
|
490
|
+
"gitHead": "a2e479d20926ac631b59cbefeb6b6f8558f98235"
|
|
491
491
|
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Clearable } from "@jobber/hooks/src";
|
|
2
|
-
import { XOR } from "ts-xor";
|
|
3
|
-
import { AutocompleteTypes, CommonFormFieldProps, FormFieldProps, FormFieldTypes } from "../FormField";
|
|
4
|
-
export interface RowRange {
|
|
5
|
-
min: number;
|
|
6
|
-
max: number;
|
|
7
|
-
}
|
|
8
|
-
export type InputTextVersion = 1 | 2 | undefined;
|
|
9
|
-
export interface InputTextRebuiltProps extends Omit<React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, "onChange" | "onBlur" | "maxLength" | "rows" | "size" | "suffix" | "prefix" | "value" | "max" | "min" | "defaultValue"> {
|
|
10
|
-
readonly error?: string;
|
|
11
|
-
readonly invalid?: boolean;
|
|
12
|
-
readonly identifier?: string;
|
|
13
|
-
readonly autocomplete?: boolean | AutocompleteTypes;
|
|
14
|
-
readonly loading?: boolean;
|
|
15
|
-
readonly onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
-
readonly children?: React.ReactNode;
|
|
17
|
-
readonly clearable?: Clearable;
|
|
18
|
-
/**
|
|
19
|
-
* Use this when you're expecting a long answer.
|
|
20
|
-
*/
|
|
21
|
-
readonly multiline?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the visible height of a long answer form field. Can be in the
|
|
24
|
-
* form of a single number to set a static height, or an object with a min
|
|
25
|
-
* and max keys indicating the minimum number of visible rows, and the
|
|
26
|
-
* maximum number of visible rows.
|
|
27
|
-
*/
|
|
28
|
-
readonly rows?: number | RowRange;
|
|
29
|
-
readonly type?: FormFieldTypes;
|
|
30
|
-
/**
|
|
31
|
-
* Version 2 is highly experimental. Avoid using it unless you have talked with Atlantis first.
|
|
32
|
-
*/
|
|
33
|
-
readonly version: 2;
|
|
34
|
-
readonly onChange?: (newValue: string, event?: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
35
|
-
readonly onEnter?: FormFieldProps["onEnter"];
|
|
36
|
-
readonly onBlur?: FormFieldProps["onBlur"];
|
|
37
|
-
readonly value: string;
|
|
38
|
-
readonly maxLength?: number;
|
|
39
|
-
readonly size?: FormFieldProps["size"];
|
|
40
|
-
readonly inline?: FormFieldProps["inline"];
|
|
41
|
-
readonly align?: FormFieldProps["align"];
|
|
42
|
-
readonly toolbar?: FormFieldProps["toolbar"];
|
|
43
|
-
readonly toolbarVisibility?: FormFieldProps["toolbarVisibility"];
|
|
44
|
-
readonly prefix?: FormFieldProps["prefix"];
|
|
45
|
-
readonly suffix?: FormFieldProps["suffix"];
|
|
46
|
-
readonly description?: FormFieldProps["description"];
|
|
47
|
-
}
|
|
48
|
-
interface BaseProps extends CommonFormFieldProps, Pick<FormFieldProps, "autofocus" | "maxLength" | "readonly" | "autocomplete" | "keyboard" | "onEnter" | "onFocus" | "onBlur" | "onChange" | "inputRef" | "validations" | "defaultValue" | "prefix" | "suffix" | "toolbar" | "toolbarVisibility" | "version"> {
|
|
49
|
-
multiline?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface InputTextRef {
|
|
52
|
-
insert(text: string): void;
|
|
53
|
-
blur(): void;
|
|
54
|
-
focus(): void;
|
|
55
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
56
|
-
}
|
|
57
|
-
interface MultilineProps extends BaseProps {
|
|
58
|
-
/**
|
|
59
|
-
* Use this when you're expecting a long answer.
|
|
60
|
-
*/
|
|
61
|
-
readonly multiline: true;
|
|
62
|
-
/**
|
|
63
|
-
* Specifies the visible height of a long answer form field. Can be in the
|
|
64
|
-
* form of a single number to set a static height, or an object with a min
|
|
65
|
-
* and max keys indicating the minimum number of visible rows, and the
|
|
66
|
-
* maximum number of visible rows.
|
|
67
|
-
*/
|
|
68
|
-
readonly rows?: number | RowRange;
|
|
69
|
-
}
|
|
70
|
-
export type InputTextPropOptions = XOR<BaseProps, MultilineProps>;
|
|
71
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent, FocusEvent, KeyboardEvent } from "react";
|
|
2
|
-
import { InputTextRebuiltProps } from "./InputText.types";
|
|
3
|
-
export interface useInputTextActionsProps extends Pick<InputTextRebuiltProps, "onChange" | "onEnter" | "onFocus" | "onBlur"> {
|
|
4
|
-
inputRef?: React.RefObject<HTMLInputElement | HTMLTextAreaElement>;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Combines the actions on the InputText such as onChange, onEnter, onFocus, onBlur, and onClear to forward information to the consumers of the InputText.
|
|
8
|
-
* DO not repeat this pattern. We are doing this as a proof of concept relating to the refactoring of Form inputs to see what can be removed.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useInputTextActions({ onChange, inputRef, onEnter, onFocus, onBlur, }: useInputTextActionsProps): {
|
|
11
|
-
handleClear: () => void;
|
|
12
|
-
handleChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
13
|
-
handleKeyDown: (event: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
14
|
-
handleFocus: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
15
|
-
handleBlur: (event?: FocusEvent) => void;
|
|
16
|
-
};
|