@utahdts/utah-design-system 4.0.0-beta.0 → 4.0.0
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/index.d.ts
CHANGED
|
@@ -1488,9 +1488,4 @@ declare module "@utahdts/utah-design-system" {
|
|
|
1488
1488
|
}): React.JSX.Element;
|
|
1489
1489
|
export function useDebugDidIChange<FieldT>(field: FieldT, fieldName: string): void;
|
|
1490
1490
|
export function useDebugDidIChanges(fields: Record<string, any> | undefined | null, description?: string | undefined): void;
|
|
1491
|
-
export function arrayMatchRecursive({ object, arrayField, isMatchFunc }: {
|
|
1492
|
-
object: Record<string, any>;
|
|
1493
|
-
arrayField: string;
|
|
1494
|
-
isMatchFunc: (arrayItem: any) => boolean;
|
|
1495
|
-
}): boolean;
|
|
1496
1491
|
}
|
|
@@ -18,7 +18,7 @@ import { castArray, trim, identity, isFunction, isEqual, uniq, split, cloneDeep,
|
|
|
18
18
|
import { useImmer } from "use-immer";
|
|
19
19
|
import { isValid, format, add, parse } from "date-fns";
|
|
20
20
|
import { v4 } from "uuid";
|
|
21
|
-
const version$1 = "4.0.0
|
|
21
|
+
const version$1 = "4.0.0";
|
|
22
22
|
const packageJson = {
|
|
23
23
|
version: version$1
|
|
24
24
|
};
|
|
@@ -13,7 +13,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
13
13
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
14
14
|
|
|
15
15
|
var _popupTimeoutId, _noPopupTimeoutId, _isImmediatePopup;
|
|
16
|
-
const version$1 = "4.0.0
|
|
16
|
+
const version$1 = "4.0.0";
|
|
17
17
|
const packageJson = {
|
|
18
18
|
version: version$1
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@utahdts/utah-design-system",
|
|
3
3
|
"description": "Utah Design System React Library",
|
|
4
4
|
"displayName": "Utah Design System React Library",
|
|
5
|
-
"version": "4.0.0
|
|
5
|
+
"version": "4.0.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"development-local": "./index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@floating-ui/react-dom": "2.1.2",
|
|
72
|
-
"@utahdts/utah-design-system-header": "4.0.0
|
|
72
|
+
"@utahdts/utah-design-system-header": "4.0.0",
|
|
73
73
|
"date-fns": "4.1.0",
|
|
74
74
|
"immer": "10.1.1",
|
|
75
75
|
"lodash": "4.17.21",
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { identity } from 'lodash';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Tests if an object or any of its children pass a custom match test.
|
|
5
|
-
* @param {object} param
|
|
6
|
-
* @param {Record<string, any>} param.object the object in which to search for a match AND check its children if they exist
|
|
7
|
-
* @param {string} param.arrayField which field is the "children" array
|
|
8
|
-
* @param {(arrayItem: any) => boolean} param.isMatchFunc the object and each child will be passed to this function to test for truthiness
|
|
9
|
-
* @returns {boolean} true if the object or any of its "children" pass the isMatchFunc test
|
|
10
|
-
*/
|
|
11
|
-
export function arrayMatchRecursive({ object, arrayField, isMatchFunc }) {
|
|
12
|
-
return !!(
|
|
13
|
-
object?.[arrayField]?.filter(identity)
|
|
14
|
-
?.some(
|
|
15
|
-
/**
|
|
16
|
-
* @param {any} arrayItem
|
|
17
|
-
* @returns {boolean}
|
|
18
|
-
*/
|
|
19
|
-
(arrayItem) => isMatchFunc(arrayItem) || arrayMatchRecursive(arrayItem)
|
|
20
|
-
)
|
|
21
|
-
);
|
|
22
|
-
}
|