@jobber/components 6.103.2-JOB-140609-9051081.26 → 6.103.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.
Files changed (74) hide show
  1. package/dist/Autocomplete/Autocomplete.types.d.ts +1 -12
  2. package/dist/Autocomplete/index.cjs +13 -1
  3. package/dist/Autocomplete/index.mjs +13 -1
  4. package/dist/Checkbox/Checkbox.types.d.ts +9 -2
  5. package/dist/Checkbox/index.cjs +2 -3
  6. package/dist/Checkbox/index.mjs +2 -3
  7. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
  8. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
  9. package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
  10. package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
  11. package/dist/Chips/index.cjs +2 -2
  12. package/dist/Chips/index.mjs +2 -2
  13. package/dist/DataList/components/DataListSearch/index.cjs +12 -1
  14. package/dist/DataList/components/DataListSearch/index.mjs +12 -1
  15. package/dist/DataList/index.cjs +8 -0
  16. package/dist/DataList/index.mjs +8 -0
  17. package/dist/DataTable/index.cjs +2 -2
  18. package/dist/DataTable/index.mjs +2 -2
  19. package/dist/DatePicker/index.cjs +2 -2
  20. package/dist/DatePicker/index.mjs +2 -2
  21. package/dist/FormField/FormFieldTypes.d.ts +1 -217
  22. package/dist/FormField-cjs.js +6 -1
  23. package/dist/FormField-es.js +6 -2
  24. package/dist/InputDate/index.cjs +4 -8
  25. package/dist/InputDate/index.mjs +4 -8
  26. package/dist/InputDate/useInputDateActivatorActions.d.ts +2 -2
  27. package/dist/InputEmail/InputEmail.types.d.ts +21 -16
  28. package/dist/InputEmail/hooks/useInputEmailActions.d.ts +1 -1
  29. package/dist/InputEmail/hooks/useInputEmailFormField.d.ts +32 -0
  30. package/dist/InputEmail/index.cjs +45 -10
  31. package/dist/InputEmail/index.mjs +45 -10
  32. package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +2 -23
  33. package/dist/InputNumber/index.cjs +3 -6
  34. package/dist/InputNumber/index.mjs +3 -6
  35. package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +26 -15
  36. package/dist/InputPhoneNumber/hooks/useInputPhoneActions.d.ts +1 -1
  37. package/dist/InputPhoneNumber/hooks/useInputPhoneFormField.d.ts +71 -0
  38. package/dist/InputPhoneNumber/index.cjs +35 -20
  39. package/dist/InputPhoneNumber/index.mjs +35 -20
  40. package/dist/InputText/InputText.d.ts +2 -2
  41. package/dist/InputText/InputText.types.d.ts +24 -27
  42. package/dist/InputText/index.cjs +55 -26
  43. package/dist/InputText/index.mjs +56 -27
  44. package/dist/InputText/useInputTextActions.d.ts +1 -1
  45. package/dist/InputText/useInputTextFormField.d.ts +352 -0
  46. package/dist/InputTime/InputTime.rebuilt.d.ts +1 -1
  47. package/dist/InputTime/InputTime.types.d.ts +1 -21
  48. package/dist/InputTime/index.cjs +25 -30
  49. package/dist/InputTime/index.d.ts +1 -1
  50. package/dist/InputTime/index.mjs +27 -32
  51. package/dist/List/index.cjs +2 -2
  52. package/dist/List/index.mjs +2 -2
  53. package/dist/RecurringSelect/index.cjs +2 -2
  54. package/dist/RecurringSelect/index.mjs +2 -2
  55. package/dist/Select/Select.rebuilt.d.ts +1 -1
  56. package/dist/Select/Select.types.d.ts +1 -14
  57. package/dist/Select/hooks/useSelectActions.d.ts +5 -5
  58. package/dist/Select/hooks/useSelectFormField.d.ts +34 -0
  59. package/dist/Select/index.cjs +41 -27
  60. package/dist/Select/index.d.ts +5 -7
  61. package/dist/Select/index.mjs +43 -29
  62. package/dist/_baseEach-cjs.js +12 -12
  63. package/dist/_baseEach-es.js +1 -1
  64. package/dist/_baseFlatten-cjs.js +2 -2
  65. package/dist/_baseFlatten-es.js +1 -1
  66. package/dist/{_getAllKeys-cjs.js → _baseGet-cjs.js} +181 -181
  67. package/dist/{_getAllKeys-es.js → _baseGet-es.js} +182 -182
  68. package/dist/index.cjs +2 -2
  69. package/dist/index.mjs +2 -2
  70. package/dist/omit-cjs.js +14 -14
  71. package/dist/omit-es.js +1 -1
  72. package/dist/useScrollToActive-cjs.js +3 -3
  73. package/dist/useScrollToActive-es.js +1 -1
  74. package/package.json +2 -2
@@ -1,10 +1,154 @@
1
1
  'use strict';
2
2
 
3
3
  var isTypedArray = require('./isTypedArray-cjs.js');
4
- var isSymbol$3 = require('./isSymbol-cjs.js');
5
4
  var identity = require('./identity-cjs.js');
6
- var isObjectLike = require('./isObjectLike-cjs.js');
7
5
  var _getTag = require('./_getTag-cjs.js');
6
+ var isSymbol$3 = require('./isSymbol-cjs.js');
7
+ var isObjectLike = require('./isObjectLike-cjs.js');
8
+
9
+ /**
10
+ * A specialized version of `_.map` for arrays without support for iteratee
11
+ * shorthands.
12
+ *
13
+ * @private
14
+ * @param {Array} [array] The array to iterate over.
15
+ * @param {Function} iteratee The function invoked per iteration.
16
+ * @returns {Array} Returns the new mapped array.
17
+ */
18
+
19
+ function arrayMap$1(array, iteratee) {
20
+ var index = -1,
21
+ length = array == null ? 0 : array.length,
22
+ result = Array(length);
23
+
24
+ while (++index < length) {
25
+ result[index] = iteratee(array[index], index, array);
26
+ }
27
+ return result;
28
+ }
29
+
30
+ var _arrayMap = arrayMap$1;
31
+
32
+ var arrayLikeKeys = identity._arrayLikeKeys,
33
+ baseKeys = _getTag._baseKeys,
34
+ isArrayLike = isTypedArray.isArrayLike_1;
35
+
36
+ /**
37
+ * Creates an array of the own enumerable property names of `object`.
38
+ *
39
+ * **Note:** Non-object values are coerced to objects. See the
40
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
41
+ * for more details.
42
+ *
43
+ * @static
44
+ * @since 0.1.0
45
+ * @memberOf _
46
+ * @category Object
47
+ * @param {Object} object The object to query.
48
+ * @returns {Array} Returns the array of property names.
49
+ * @example
50
+ *
51
+ * function Foo() {
52
+ * this.a = 1;
53
+ * this.b = 2;
54
+ * }
55
+ *
56
+ * Foo.prototype.c = 3;
57
+ *
58
+ * _.keys(new Foo);
59
+ * // => ['a', 'b'] (iteration order is not guaranteed)
60
+ *
61
+ * _.keys('hi');
62
+ * // => ['0', '1']
63
+ */
64
+ function keys$1(object) {
65
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
66
+ }
67
+
68
+ var keys_1 = keys$1;
69
+
70
+ /**
71
+ * A specialized version of `_.filter` for arrays without support for
72
+ * iteratee shorthands.
73
+ *
74
+ * @private
75
+ * @param {Array} [array] The array to iterate over.
76
+ * @param {Function} predicate The function invoked per iteration.
77
+ * @returns {Array} Returns the new filtered array.
78
+ */
79
+
80
+ function arrayFilter$1(array, predicate) {
81
+ var index = -1,
82
+ length = array == null ? 0 : array.length,
83
+ resIndex = 0,
84
+ result = [];
85
+
86
+ while (++index < length) {
87
+ var value = array[index];
88
+ if (predicate(value, index, array)) {
89
+ result[resIndex++] = value;
90
+ }
91
+ }
92
+ return result;
93
+ }
94
+
95
+ var _arrayFilter = arrayFilter$1;
96
+
97
+ /**
98
+ * This method returns a new empty array.
99
+ *
100
+ * @static
101
+ * @memberOf _
102
+ * @since 4.13.0
103
+ * @category Util
104
+ * @returns {Array} Returns the new empty array.
105
+ * @example
106
+ *
107
+ * var arrays = _.times(2, _.stubArray);
108
+ *
109
+ * console.log(arrays);
110
+ * // => [[], []]
111
+ *
112
+ * console.log(arrays[0] === arrays[1]);
113
+ * // => false
114
+ */
115
+
116
+ function stubArray$1() {
117
+ return [];
118
+ }
119
+
120
+ var stubArray_1 = stubArray$1;
121
+
122
+ var arrayFilter = _arrayFilter,
123
+ stubArray = stubArray_1;
124
+
125
+ /** Used for built-in method references. */
126
+ var objectProto = Object.prototype;
127
+
128
+ /** Built-in value references. */
129
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
130
+
131
+ /* Built-in method references for those with the same name as other `lodash` methods. */
132
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
133
+
134
+ /**
135
+ * Creates an array of the own enumerable symbols of `object`.
136
+ *
137
+ * @private
138
+ * @param {Object} object The object to query.
139
+ * @returns {Array} Returns the array of symbols.
140
+ */
141
+ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
142
+ if (object == null) {
143
+ return [];
144
+ }
145
+ object = Object(object);
146
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
147
+ return propertyIsEnumerable.call(object, symbol);
148
+ });
149
+ };
150
+
151
+ var _getSymbols = getSymbols$1;
8
152
 
9
153
  /**
10
154
  * Appends the elements of `values` to `array`.
@@ -28,30 +172,45 @@ function arrayPush$1(array, values) {
28
172
 
29
173
  var _arrayPush = arrayPush$1;
30
174
 
175
+ var arrayPush = _arrayPush,
176
+ isArray$3 = isTypedArray.isArray_1;
177
+
31
178
  /**
32
- * A specialized version of `_.map` for arrays without support for iteratee
33
- * shorthands.
179
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
180
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
181
+ * symbols of `object`.
34
182
  *
35
183
  * @private
36
- * @param {Array} [array] The array to iterate over.
37
- * @param {Function} iteratee The function invoked per iteration.
38
- * @returns {Array} Returns the new mapped array.
184
+ * @param {Object} object The object to query.
185
+ * @param {Function} keysFunc The function to get the keys of `object`.
186
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
187
+ * @returns {Array} Returns the array of property names and symbols.
39
188
  */
189
+ function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
190
+ var result = keysFunc(object);
191
+ return isArray$3(object) ? result : arrayPush(result, symbolsFunc(object));
192
+ }
40
193
 
41
- function arrayMap$1(array, iteratee) {
42
- var index = -1,
43
- length = array == null ? 0 : array.length,
44
- result = Array(length);
194
+ var _baseGetAllKeys = baseGetAllKeys$1;
45
195
 
46
- while (++index < length) {
47
- result[index] = iteratee(array[index], index, array);
48
- }
49
- return result;
196
+ var baseGetAllKeys = _baseGetAllKeys,
197
+ getSymbols = _getSymbols,
198
+ keys = keys_1;
199
+
200
+ /**
201
+ * Creates an array of own enumerable property names and symbols of `object`.
202
+ *
203
+ * @private
204
+ * @param {Object} object The object to query.
205
+ * @returns {Array} Returns the array of property names and symbols.
206
+ */
207
+ function getAllKeys(object) {
208
+ return baseGetAllKeys(object, keys, getSymbols);
50
209
  }
51
210
 
52
- var _arrayMap = arrayMap$1;
211
+ var _getAllKeys = getAllKeys;
53
212
 
54
- var isArray$3 = isTypedArray.isArray_1,
213
+ var isArray$2 = isTypedArray.isArray_1,
55
214
  isSymbol$2 = isSymbol$3.isSymbol_1;
56
215
 
57
216
  /** Used to match property names within property paths. */
@@ -67,7 +226,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
67
226
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
68
227
  */
69
228
  function isKey$1(value, object) {
70
- if (isArray$3(value)) {
229
+ if (isArray$2(value)) {
71
230
  return false;
72
231
  }
73
232
  var type = typeof value;
@@ -212,7 +371,7 @@ var _stringToPath = stringToPath$1;
212
371
 
213
372
  var Symbol = isObjectLike._Symbol,
214
373
  arrayMap = _arrayMap,
215
- isArray$2 = isTypedArray.isArray_1,
374
+ isArray$1 = isTypedArray.isArray_1,
216
375
  isSymbol$1 = isSymbol$3.isSymbol_1;
217
376
 
218
377
  /** Used as references for various `Number` constants. */
@@ -235,7 +394,7 @@ function baseToString$1(value) {
235
394
  if (typeof value == 'string') {
236
395
  return value;
237
396
  }
238
- if (isArray$2(value)) {
397
+ if (isArray$1(value)) {
239
398
  // Recursively convert values (susceptible to call stack limits).
240
399
  return arrayMap(value, baseToString$1) + '';
241
400
  }
@@ -277,7 +436,7 @@ function toString$1(value) {
277
436
 
278
437
  var toString_1 = toString$1;
279
438
 
280
- var isArray$1 = isTypedArray.isArray_1,
439
+ var isArray = isTypedArray.isArray_1,
281
440
  isKey = _isKey,
282
441
  stringToPath = _stringToPath,
283
442
  toString = toString_1;
@@ -291,7 +450,7 @@ var isArray$1 = isTypedArray.isArray_1,
291
450
  * @returns {Array} Returns the cast property path array.
292
451
  */
293
452
  function castPath$1(value, object) {
294
- if (isArray$1(value)) {
453
+ if (isArray(value)) {
295
454
  return value;
296
455
  }
297
456
  return isKey(value, object) ? [value] : stringToPath(toString(value));
@@ -346,165 +505,6 @@ function baseGet(object, path) {
346
505
 
347
506
  var _baseGet = baseGet;
348
507
 
349
- var arrayPush = _arrayPush,
350
- isArray = isTypedArray.isArray_1;
351
-
352
- /**
353
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
354
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
355
- * symbols of `object`.
356
- *
357
- * @private
358
- * @param {Object} object The object to query.
359
- * @param {Function} keysFunc The function to get the keys of `object`.
360
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
361
- * @returns {Array} Returns the array of property names and symbols.
362
- */
363
- function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
364
- var result = keysFunc(object);
365
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
366
- }
367
-
368
- var _baseGetAllKeys = baseGetAllKeys$1;
369
-
370
- /**
371
- * A specialized version of `_.filter` for arrays without support for
372
- * iteratee shorthands.
373
- *
374
- * @private
375
- * @param {Array} [array] The array to iterate over.
376
- * @param {Function} predicate The function invoked per iteration.
377
- * @returns {Array} Returns the new filtered array.
378
- */
379
-
380
- function arrayFilter$1(array, predicate) {
381
- var index = -1,
382
- length = array == null ? 0 : array.length,
383
- resIndex = 0,
384
- result = [];
385
-
386
- while (++index < length) {
387
- var value = array[index];
388
- if (predicate(value, index, array)) {
389
- result[resIndex++] = value;
390
- }
391
- }
392
- return result;
393
- }
394
-
395
- var _arrayFilter = arrayFilter$1;
396
-
397
- /**
398
- * This method returns a new empty array.
399
- *
400
- * @static
401
- * @memberOf _
402
- * @since 4.13.0
403
- * @category Util
404
- * @returns {Array} Returns the new empty array.
405
- * @example
406
- *
407
- * var arrays = _.times(2, _.stubArray);
408
- *
409
- * console.log(arrays);
410
- * // => [[], []]
411
- *
412
- * console.log(arrays[0] === arrays[1]);
413
- * // => false
414
- */
415
-
416
- function stubArray$1() {
417
- return [];
418
- }
419
-
420
- var stubArray_1 = stubArray$1;
421
-
422
- var arrayFilter = _arrayFilter,
423
- stubArray = stubArray_1;
424
-
425
- /** Used for built-in method references. */
426
- var objectProto = Object.prototype;
427
-
428
- /** Built-in value references. */
429
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
430
-
431
- /* Built-in method references for those with the same name as other `lodash` methods. */
432
- var nativeGetSymbols = Object.getOwnPropertySymbols;
433
-
434
- /**
435
- * Creates an array of the own enumerable symbols of `object`.
436
- *
437
- * @private
438
- * @param {Object} object The object to query.
439
- * @returns {Array} Returns the array of symbols.
440
- */
441
- var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
442
- if (object == null) {
443
- return [];
444
- }
445
- object = Object(object);
446
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
447
- return propertyIsEnumerable.call(object, symbol);
448
- });
449
- };
450
-
451
- var _getSymbols = getSymbols$1;
452
-
453
- var arrayLikeKeys = identity._arrayLikeKeys,
454
- baseKeys = _getTag._baseKeys,
455
- isArrayLike = isTypedArray.isArrayLike_1;
456
-
457
- /**
458
- * Creates an array of the own enumerable property names of `object`.
459
- *
460
- * **Note:** Non-object values are coerced to objects. See the
461
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
462
- * for more details.
463
- *
464
- * @static
465
- * @since 0.1.0
466
- * @memberOf _
467
- * @category Object
468
- * @param {Object} object The object to query.
469
- * @returns {Array} Returns the array of property names.
470
- * @example
471
- *
472
- * function Foo() {
473
- * this.a = 1;
474
- * this.b = 2;
475
- * }
476
- *
477
- * Foo.prototype.c = 3;
478
- *
479
- * _.keys(new Foo);
480
- * // => ['a', 'b'] (iteration order is not guaranteed)
481
- *
482
- * _.keys('hi');
483
- * // => ['0', '1']
484
- */
485
- function keys$1(object) {
486
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
487
- }
488
-
489
- var keys_1 = keys$1;
490
-
491
- var baseGetAllKeys = _baseGetAllKeys,
492
- getSymbols = _getSymbols,
493
- keys = keys_1;
494
-
495
- /**
496
- * Creates an array of own enumerable property names and symbols of `object`.
497
- *
498
- * @private
499
- * @param {Object} object The object to query.
500
- * @returns {Array} Returns the array of property names and symbols.
501
- */
502
- function getAllKeys(object) {
503
- return baseGetAllKeys(object, keys, getSymbols);
504
- }
505
-
506
- var _getAllKeys = getAllKeys;
507
-
508
508
  exports._arrayMap = _arrayMap;
509
509
  exports._arrayPush = _arrayPush;
510
510
  exports._baseGet = _baseGet;