@bluemarble/bm-components 0.1.1 → 0.1.3
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.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4082,6 +4082,9 @@ function useLoading() {
|
|
|
4082
4082
|
import React28 from "react";
|
|
4083
4083
|
import { createContext as createContext3 } from "react";
|
|
4084
4084
|
var FormHelperContext = createContext3({});
|
|
4085
|
+
var FormHelperProvider = ({ formatErrorMessage, api, children }) => {
|
|
4086
|
+
return /* @__PURE__ */ React28.createElement(FormHelperContext.Provider, { value: { formatErrorMessage, api } }, children);
|
|
4087
|
+
};
|
|
4085
4088
|
|
|
4086
4089
|
// src/hooks/useFormHelper.ts
|
|
4087
4090
|
function useFormHelper() {
|
|
@@ -4169,7 +4172,11 @@ import { useState as useState5 } from "react";
|
|
|
4169
4172
|
|
|
4170
4173
|
// src/components/utils/getObjectValue.ts
|
|
4171
4174
|
function getObjectValue(obj) {
|
|
4172
|
-
|
|
4175
|
+
try {
|
|
4176
|
+
return (prop) => prop.split(".").reduce((o, k) => o[k], obj);
|
|
4177
|
+
} catch (error) {
|
|
4178
|
+
return void 0;
|
|
4179
|
+
}
|
|
4173
4180
|
}
|
|
4174
4181
|
|
|
4175
4182
|
// src/hooks/useFilter.ts
|
|
@@ -4396,6 +4403,8 @@ export {
|
|
|
4396
4403
|
Checkbox,
|
|
4397
4404
|
Dialog,
|
|
4398
4405
|
EditableTableCell,
|
|
4406
|
+
FormHelperContext,
|
|
4407
|
+
FormHelperProvider,
|
|
4399
4408
|
GetInputLabel,
|
|
4400
4409
|
Grid_default as Grid,
|
|
4401
4410
|
HttpError,
|