@jobber/components 6.103.6 → 6.104.1

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 (94) hide show
  1. package/dist/Autocomplete/Autocomplete.types.d.ts +9 -51
  2. package/dist/Autocomplete/index.cjs +10 -20
  3. package/dist/Autocomplete/index.mjs +10 -20
  4. package/dist/Autocomplete/tests/Autocomplete.setup.d.ts +1 -1
  5. package/dist/Autocomplete/useAutocomplete.d.ts +2 -2
  6. package/dist/Checkbox/Checkbox.rebuilt.d.ts +1 -2
  7. package/dist/Checkbox/Checkbox.types.d.ts +3 -34
  8. package/dist/Checkbox/index.cjs +9 -2
  9. package/dist/Checkbox/index.mjs +9 -2
  10. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
  11. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
  12. package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
  13. package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
  14. package/dist/Chips/index.cjs +2 -2
  15. package/dist/Chips/index.mjs +2 -2
  16. package/dist/DataList/components/DataListHeader/index.cjs +1 -0
  17. package/dist/DataList/components/DataListHeader/index.mjs +1 -0
  18. package/dist/DataList/components/DataListItem/index.cjs +1 -0
  19. package/dist/DataList/components/DataListItem/index.mjs +1 -0
  20. package/dist/DataList/components/DataListItems/index.cjs +1 -0
  21. package/dist/DataList/components/DataListItems/index.mjs +1 -0
  22. package/dist/DataList/components/DataListLayout/index.cjs +1 -0
  23. package/dist/DataList/components/DataListLayout/index.mjs +1 -0
  24. package/dist/DataList/components/DataListSearch/index.cjs +2 -12
  25. package/dist/DataList/components/DataListSearch/index.mjs +2 -12
  26. package/dist/DataList/index.cjs +1 -8
  27. package/dist/DataList/index.mjs +1 -8
  28. package/dist/DataTable/index.cjs +3 -2
  29. package/dist/DataTable/index.mjs +3 -2
  30. package/dist/DatePicker/index.cjs +2 -2
  31. package/dist/DatePicker/index.mjs +2 -2
  32. package/dist/FormField/FormFieldTypes.d.ts +0 -2
  33. package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +7 -2
  34. package/dist/FormField-cjs.js +0 -1
  35. package/dist/FormField-es.js +1 -1
  36. package/dist/InputDate/InputDate.types.d.ts +12 -7
  37. package/dist/InputDate/index.cjs +6 -9
  38. package/dist/InputDate/index.mjs +6 -9
  39. package/dist/InputDate/useInputDateActivatorActions.d.ts +4 -8
  40. package/dist/InputEmail/InputEmail.types.d.ts +10 -20
  41. package/dist/InputEmail/hooks/useInputEmailActions.d.ts +4 -3
  42. package/dist/InputEmail/index.cjs +18 -49
  43. package/dist/InputEmail/index.mjs +18 -49
  44. package/dist/InputFile-cjs.js +5 -2
  45. package/dist/InputFile-es.js +5 -2
  46. package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +7 -15
  47. package/dist/InputNumber/index.cjs +6 -4
  48. package/dist/InputNumber/index.mjs +6 -4
  49. package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +12 -28
  50. package/dist/InputPhoneNumber/hooks/useInputPhoneActions.d.ts +1 -1
  51. package/dist/InputPhoneNumber/index.cjs +20 -34
  52. package/dist/InputPhoneNumber/index.mjs +20 -34
  53. package/dist/InputText/InputText.types.d.ts +31 -25
  54. package/dist/InputText/index.cjs +41 -62
  55. package/dist/InputText/index.mjs +42 -63
  56. package/dist/InputText/useInputTextActions.d.ts +4 -3
  57. package/dist/InputTime/InputTime.rebuilt.d.ts +1 -1
  58. package/dist/InputTime/InputTime.types.d.ts +13 -4
  59. package/dist/InputTime/hooks/useInputTimeActions.d.ts +16 -0
  60. package/dist/InputTime/index.cjs +66 -30
  61. package/dist/InputTime/index.mjs +69 -33
  62. package/dist/List/index.cjs +2 -2
  63. package/dist/List/index.mjs +2 -2
  64. package/dist/MultiSelect/index.cjs +1 -0
  65. package/dist/MultiSelect/index.mjs +1 -0
  66. package/dist/RecurringSelect/index.cjs +3 -2
  67. package/dist/RecurringSelect/index.mjs +3 -2
  68. package/dist/Select/Select.types.d.ts +7 -3
  69. package/dist/Select/hooks/useSelectActions.d.ts +5 -5
  70. package/dist/Select/index.cjs +27 -41
  71. package/dist/Select/index.mjs +29 -43
  72. package/dist/Tabs-es.js +1 -1
  73. package/dist/_baseEach-cjs.js +12 -12
  74. package/dist/_baseEach-es.js +1 -1
  75. package/dist/_baseFlatten-cjs.js +2 -2
  76. package/dist/_baseFlatten-es.js +1 -1
  77. package/dist/{_baseGet-cjs.js → _getAllKeys-cjs.js} +181 -181
  78. package/dist/{_baseGet-es.js → _getAllKeys-es.js} +182 -182
  79. package/dist/debounce-es.js +1 -1
  80. package/dist/filterDataAttributes-cjs.js +26 -0
  81. package/dist/filterDataAttributes-es.js +24 -0
  82. package/dist/index.cjs +3 -2
  83. package/dist/index.mjs +3 -2
  84. package/dist/omit-cjs.js +14 -14
  85. package/dist/omit-es.js +1 -1
  86. package/dist/sharedHelpers/filterDataAttributes.d.ts +17 -0
  87. package/dist/sharedHelpers/types.d.ts +205 -0
  88. package/dist/useScrollToActive-cjs.js +3 -3
  89. package/dist/useScrollToActive-es.js +2 -2
  90. package/package.json +2 -2
  91. package/dist/InputEmail/hooks/useInputEmailFormField.d.ts +0 -32
  92. package/dist/InputPhoneNumber/hooks/useInputPhoneFormField.d.ts +0 -71
  93. package/dist/InputText/useInputTextFormField.d.ts +0 -366
  94. package/dist/Select/hooks/useSelectFormField.d.ts +0 -34
@@ -1,154 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var isTypedArray = require('./isTypedArray-cjs.js');
4
- var identity = require('./identity-cjs.js');
5
- var _getTag = require('./_getTag-cjs.js');
6
4
  var isSymbol$3 = require('./isSymbol-cjs.js');
5
+ var identity = require('./identity-cjs.js');
7
6
  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;
7
+ var _getTag = require('./_getTag-cjs.js');
152
8
 
153
9
  /**
154
10
  * Appends the elements of `values` to `array`.
@@ -172,45 +28,30 @@ function arrayPush$1(array, values) {
172
28
 
173
29
  var _arrayPush = arrayPush$1;
174
30
 
175
- var arrayPush = _arrayPush,
176
- isArray$3 = isTypedArray.isArray_1;
177
-
178
31
  /**
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`.
32
+ * A specialized version of `_.map` for arrays without support for iteratee
33
+ * shorthands.
182
34
  *
183
35
  * @private
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.
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.
188
39
  */
189
- function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
190
- var result = keysFunc(object);
191
- return isArray$3(object) ? result : arrayPush(result, symbolsFunc(object));
192
- }
193
40
 
194
- var _baseGetAllKeys = baseGetAllKeys$1;
195
-
196
- var baseGetAllKeys = _baseGetAllKeys,
197
- getSymbols = _getSymbols,
198
- keys = keys_1;
41
+ function arrayMap$1(array, iteratee) {
42
+ var index = -1,
43
+ length = array == null ? 0 : array.length,
44
+ result = Array(length);
199
45
 
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);
46
+ while (++index < length) {
47
+ result[index] = iteratee(array[index], index, array);
48
+ }
49
+ return result;
209
50
  }
210
51
 
211
- var _getAllKeys = getAllKeys;
52
+ var _arrayMap = arrayMap$1;
212
53
 
213
- var isArray$2 = isTypedArray.isArray_1,
54
+ var isArray$3 = isTypedArray.isArray_1,
214
55
  isSymbol$2 = isSymbol$3.isSymbol_1;
215
56
 
216
57
  /** Used to match property names within property paths. */
@@ -226,7 +67,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
226
67
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
227
68
  */
228
69
  function isKey$1(value, object) {
229
- if (isArray$2(value)) {
70
+ if (isArray$3(value)) {
230
71
  return false;
231
72
  }
232
73
  var type = typeof value;
@@ -371,7 +212,7 @@ var _stringToPath = stringToPath$1;
371
212
 
372
213
  var Symbol = isObjectLike._Symbol,
373
214
  arrayMap = _arrayMap,
374
- isArray$1 = isTypedArray.isArray_1,
215
+ isArray$2 = isTypedArray.isArray_1,
375
216
  isSymbol$1 = isSymbol$3.isSymbol_1;
376
217
 
377
218
  /** Used as references for various `Number` constants. */
@@ -394,7 +235,7 @@ function baseToString$1(value) {
394
235
  if (typeof value == 'string') {
395
236
  return value;
396
237
  }
397
- if (isArray$1(value)) {
238
+ if (isArray$2(value)) {
398
239
  // Recursively convert values (susceptible to call stack limits).
399
240
  return arrayMap(value, baseToString$1) + '';
400
241
  }
@@ -436,7 +277,7 @@ function toString$1(value) {
436
277
 
437
278
  var toString_1 = toString$1;
438
279
 
439
- var isArray = isTypedArray.isArray_1,
280
+ var isArray$1 = isTypedArray.isArray_1,
440
281
  isKey = _isKey,
441
282
  stringToPath = _stringToPath,
442
283
  toString = toString_1;
@@ -450,7 +291,7 @@ var isArray = isTypedArray.isArray_1,
450
291
  * @returns {Array} Returns the cast property path array.
451
292
  */
452
293
  function castPath$1(value, object) {
453
- if (isArray(value)) {
294
+ if (isArray$1(value)) {
454
295
  return value;
455
296
  }
456
297
  return isKey(value, object) ? [value] : stringToPath(toString(value));
@@ -505,6 +346,165 @@ function baseGet(object, path) {
505
346
 
506
347
  var _baseGet = baseGet;
507
348
 
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;