@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,152 +1,8 @@
1
- import { b as isArrayLike_1, a as isArray_1 } from './isTypedArray-es.js';
2
- import { f as _arrayLikeKeys, g 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 { g as _MapCache, f 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
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
178
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
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 {Object} object The object to query.
183
- * @param {Function} keysFunc The function to get the keys of `object`.
184
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
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
- var _baseGetAllKeys = baseGetAllKeys$1;
193
-
194
- var baseGetAllKeys = _baseGetAllKeys,
195
- getSymbols = _getSymbols,
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
- * Creates an array of own enumerable property names and symbols of `object`.
200
- *
201
- * @private
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 _getAllKeys = getAllKeys;
50
+ var _arrayMap = arrayMap$1;
210
51
 
211
- var isArray$2 = isArray_1,
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$2(value)) {
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$1 = isArray_1,
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$1(value)) {
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
 
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
506
  export { _arrayPush as _, _arrayMap as a, _baseGet as b, _getSymbols as c, _baseGetAllKeys as d, _getAllKeys as e, _castPath as f, _toKey as g, _isKey as h, keys_1 as k, stubArray_1 as s };
@@ -326,4 +326,4 @@ var debounce_1 = debounce;
326
326
 
327
327
  var debounce$1 = /*@__PURE__*/getDefaultExportFromCjs(debounce_1);
328
328
 
329
- export { debounce_1 as a, debounce$1 as d };
329
+ export { debounce$1 as a, debounce_1 as d };
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Filters and returns all data-* attributes from props.
5
+ * This allows components to accept standard HTML data attributes
6
+ * in their natural hyphenated syntax (e.g., data-test-id, data-loading).
7
+ *
8
+ * @param props - The component props object
9
+ * @returns An object containing only the data-* attributes
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * const dataAttrs = filterDataAttributes(props);
14
+ * return <input {...dataAttrs} />;
15
+ * ```
16
+ */
17
+ function filterDataAttributes(props) {
18
+ return Object.keys(props).reduce((acc, key) => {
19
+ if (key.startsWith("data-")) {
20
+ acc[key] = props[key];
21
+ }
22
+ return acc;
23
+ }, {});
24
+ }
25
+
26
+ exports.filterDataAttributes = filterDataAttributes;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Filters and returns all data-* attributes from props.
3
+ * This allows components to accept standard HTML data attributes
4
+ * in their natural hyphenated syntax (e.g., data-test-id, data-loading).
5
+ *
6
+ * @param props - The component props object
7
+ * @returns An object containing only the data-* attributes
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * const dataAttrs = filterDataAttributes(props);
12
+ * return <input {...dataAttrs} />;
13
+ * ```
14
+ */
15
+ function filterDataAttributes(props) {
16
+ return Object.keys(props).reduce((acc, key) => {
17
+ if (key.startsWith("data-")) {
18
+ acc[key] = props[key];
19
+ }
20
+ return acc;
21
+ }, {});
22
+ }
23
+
24
+ export { filterDataAttributes as f };
package/dist/index.cjs CHANGED
@@ -112,6 +112,7 @@ require('react/jsx-runtime');
112
112
  require('react-dom');
113
113
  require('classnames');
114
114
  require('./maxHeight-cjs.js');
115
+ require('./filterDataAttributes-cjs.js');
115
116
  require('./tslib.es6-cjs.js');
116
117
  require('color');
117
118
  require('react-router-dom');
@@ -121,9 +122,9 @@ require('./useChildComponent-cjs.js');
121
122
  require('./InternalChipDismissible-cjs.js');
122
123
  require('./useScrollToActive-cjs.js');
123
124
  require('./_baseFlatten-cjs.js');
124
- require('./_baseGet-cjs.js');
125
- require('./_getTag-cjs.js');
125
+ require('./_getAllKeys-cjs.js');
126
126
  require('./isSymbol-cjs.js');
127
+ require('./_getTag-cjs.js');
127
128
  require('./_baseEach-cjs.js');
128
129
  require('./debounce-cjs.js');
129
130
  require('./ComboboxContent-cjs.js');
package/dist/index.mjs CHANGED
@@ -110,6 +110,7 @@ import 'react/jsx-runtime';
110
110
  import 'react-dom';
111
111
  import 'classnames';
112
112
  import './maxHeight-es.js';
113
+ import './filterDataAttributes-es.js';
113
114
  import './tslib.es6-es.js';
114
115
  import 'color';
115
116
  import 'react-router-dom';
@@ -119,9 +120,9 @@ import './useChildComponent-es.js';
119
120
  import './InternalChipDismissible-es.js';
120
121
  import './useScrollToActive-es.js';
121
122
  import './_baseFlatten-es.js';
122
- import './_baseGet-es.js';
123
- import './_getTag-es.js';
123
+ import './_getAllKeys-es.js';
124
124
  import './isSymbol-es.js';
125
+ import './_getTag-es.js';
125
126
  import './_baseEach-es.js';
126
127
  import './debounce-es.js';
127
128
  import './ComboboxContent-es.js';
package/dist/omit-cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-cjs.js');
4
- var _baseGet = require('./_baseGet-cjs.js');
4
+ var _getAllKeys = require('./_getAllKeys-cjs.js');
5
5
  var identity = require('./identity-cjs.js');
6
6
  var keysIn$3 = require('./keysIn-cjs.js');
7
7
  var _getTag = require('./_getTag-cjs.js');
@@ -35,7 +35,7 @@ function arrayEach$1(array, iteratee) {
35
35
  var _arrayEach = arrayEach$1;
36
36
 
37
37
  var copyObject$4 = keysIn$3._copyObject,
38
- keys$1 = _baseGet.keys_1;
38
+ keys$1 = _getAllKeys.keys_1;
39
39
 
40
40
  /**
41
41
  * The base implementation of `_.assign` without support for multiple sources
@@ -71,7 +71,7 @@ function baseAssignIn$1(object, source) {
71
71
  var _baseAssignIn = baseAssignIn$1;
72
72
 
73
73
  var copyObject$2 = keysIn$3._copyObject,
74
- getSymbols$1 = _baseGet._getSymbols;
74
+ getSymbols$1 = _getAllKeys._getSymbols;
75
75
 
76
76
  /**
77
77
  * Copies own symbols of `source` to `object`.
@@ -87,10 +87,10 @@ function copySymbols$1(source, object) {
87
87
 
88
88
  var _copySymbols = copySymbols$1;
89
89
 
90
- var arrayPush = _baseGet._arrayPush,
90
+ var arrayPush = _getAllKeys._arrayPush,
91
91
  getPrototype = keysIn$3._getPrototype,
92
- getSymbols = _baseGet._getSymbols,
93
- stubArray = _baseGet.stubArray_1;
92
+ getSymbols = _getAllKeys._getSymbols,
93
+ stubArray = _getAllKeys.stubArray_1;
94
94
 
95
95
  /* Built-in method references for those with the same name as other `lodash` methods. */
96
96
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -130,7 +130,7 @@ function copySymbolsIn$1(source, object) {
130
130
 
131
131
  var _copySymbolsIn = copySymbolsIn$1;
132
132
 
133
- var baseGetAllKeys = _baseGet._baseGetAllKeys,
133
+ var baseGetAllKeys = _getAllKeys._baseGetAllKeys,
134
134
  getSymbolsIn = _getSymbolsIn,
135
135
  keysIn$1 = keysIn$3.keysIn_1;
136
136
 
@@ -412,7 +412,7 @@ var Stack = identity._Stack,
412
412
  copyArray = keysIn$3._copyArray,
413
413
  copySymbols = _copySymbols,
414
414
  copySymbolsIn = _copySymbolsIn,
415
- getAllKeys = _baseGet._getAllKeys,
415
+ getAllKeys = _getAllKeys._getAllKeys,
416
416
  getAllKeysIn$1 = _getAllKeysIn,
417
417
  getTag = _getTag._getTag,
418
418
  initCloneArray = _initCloneArray,
@@ -423,7 +423,7 @@ var Stack = identity._Stack,
423
423
  isMap = isMap_1,
424
424
  isObject = isObjectLike$2.isObject_1,
425
425
  isSet = isSet_1,
426
- keys = _baseGet.keys_1,
426
+ keys = _getAllKeys.keys_1,
427
427
  keysIn = keysIn$3.keysIn_1;
428
428
 
429
429
  /** Used to compose bitmasks for cloning. */
@@ -625,7 +625,7 @@ function baseSlice$1(array, start, end) {
625
625
 
626
626
  var _baseSlice = baseSlice$1;
627
627
 
628
- var baseGet = _baseGet._baseGet,
628
+ var baseGet = _getAllKeys._baseGet,
629
629
  baseSlice = _baseSlice;
630
630
 
631
631
  /**
@@ -642,10 +642,10 @@ function parent$1(object, path) {
642
642
 
643
643
  var _parent = parent$1;
644
644
 
645
- var castPath$1 = _baseGet._castPath,
645
+ var castPath$1 = _getAllKeys._castPath,
646
646
  last = last_1,
647
647
  parent = _parent,
648
- toKey = _baseGet._toKey;
648
+ toKey = _getAllKeys._toKey;
649
649
 
650
650
  /**
651
651
  * The base implementation of `_.unset`.
@@ -720,10 +720,10 @@ function flatRest$1(func) {
720
720
 
721
721
  var _flatRest = flatRest$1;
722
722
 
723
- var arrayMap = _baseGet._arrayMap,
723
+ var arrayMap = _getAllKeys._arrayMap,
724
724
  baseClone = _baseClone,
725
725
  baseUnset = _baseUnset,
726
- castPath = _baseGet._castPath,
726
+ castPath = _getAllKeys._castPath,
727
727
  copyObject = keysIn$3._copyObject,
728
728
  customOmitClone = _customOmitClone,
729
729
  flatRest = _flatRest,
package/dist/omit-es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
2
- import { k as keys_1, c as _getSymbols, _ as _arrayPush, s as stubArray_1, d as _baseGetAllKeys, e as _getAllKeys, b as _baseGet, f as _castPath, g as _toKey, a as _arrayMap } from './_baseGet-es.js';
2
+ import { k as keys_1, c as _getSymbols, _ as _arrayPush, s as stubArray_1, d as _baseGetAllKeys, e as _getAllKeys, b as _baseGet, f as _castPath, g as _toKey, a as _arrayMap } from './_getAllKeys-es.js';
3
3
  import { c as _Stack } from './identity-es.js';
4
4
  import { _ as _copyObject, k as keysIn_1, e as _getPrototype, f as _cloneArrayBuffer, b as _cloneTypedArray, a as _cloneBufferExports, c as _copyArray, d as _initCloneObject, g as _assignValue, i as isPlainObject_1 } from './keysIn-es.js';
5
5
  import { a as _getTag } from './_getTag-es.js';
@@ -0,0 +1,17 @@
1
+ type DataAttributes = Partial<Record<`data-${string}`, unknown>>;
2
+ /**
3
+ * Filters and returns all data-* attributes from props.
4
+ * This allows components to accept standard HTML data attributes
5
+ * in their natural hyphenated syntax (e.g., data-test-id, data-loading).
6
+ *
7
+ * @param props - The component props object
8
+ * @returns An object containing only the data-* attributes
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const dataAttrs = filterDataAttributes(props);
13
+ * return <input {...dataAttrs} />;
14
+ * ```
15
+ */
16
+ export declare function filterDataAttributes<T extends object>(props: T): DataAttributes;
17
+ export {};