@hybridcore/ui 1.5.5 → 1.5.7

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.
@@ -3,7 +3,7 @@ import "@mui/material";
3
3
  import "./styled.js";
4
4
  import "@mui/icons-material";
5
5
  import "../../../../hooks/useToggle.js";
6
- import { C as l } from "../../../../index-JgBxaIU2.js";
6
+ import { C as l } from "../../../../index-D-mTkx9Q.js";
7
7
  import "react";
8
8
  import "lodash";
9
9
  import "dayjs";
@@ -15,7 +15,6 @@ const f = ({
15
15
  p,
16
16
  {
17
17
  sx: {
18
- mb: 2,
19
18
  ...e === "outlined" && {
20
19
  position: "relative",
21
20
  mt: 1.5,
@@ -1,19 +1,19 @@
1
1
  import "react/jsx-runtime";
2
2
  import "lodash";
3
3
  import "dayjs";
4
- import { V as g } from "../../../../index-JgBxaIU2.js";
4
+ import { V as g } from "../../../../index-D-mTkx9Q.js";
5
5
  import "@mui/material";
6
6
  import "@mui/icons-material";
7
7
  import "../../../geometry-picker/index.js";
8
8
  import "../../../phone-input/index.js";
9
9
  import "../../../date-time-picker/index.js";
10
10
  import "../../../../TextField-BjFXx91l.js";
11
- import "../../../../Box-SSMZuKnS.js";
12
11
  import "../../../../FormControlLabel-BNT5EI0b.js";
13
12
  import "../../../../Checkbox-B0P8LhCl.js";
14
13
  import "../../../../InputLabel-ClDXuWBr.js";
15
14
  import "../../../../Select-ush_fSWy.js";
16
15
  import "../../../../MenuItem-Lcjh1XlV.js";
16
+ import "../../../../Box-SSMZuKnS.js";
17
17
  export {
18
18
  g as default
19
19
  };
@@ -1,55 +1,59 @@
1
- import { jsx as t, Fragment as h } from "react/jsx-runtime";
2
- import p from "react";
3
- import { V as x } from "../../../../index-JgBxaIU2.js";
4
- import _ from "lodash";
5
- import { Box as d } from "@mui/material";
6
- function V({
1
+ import { jsx as u, Fragment as l, jsxs as I } from "react/jsx-runtime";
2
+ import _ from "react";
3
+ import { V as b } from "../../../../index-D-mTkx9Q.js";
4
+ import g from "lodash";
5
+ import { Box as i } from "@mui/material";
6
+ function B({
7
7
  template: n,
8
- value: i,
9
- mapboxAccessToken: a,
10
- variant: f = "outlined",
11
- fieldOptions: o,
12
- onChange: c
8
+ value: t,
9
+ mapboxAccessToken: c,
10
+ variant: s = "outlined",
11
+ fieldOptions: e,
12
+ onChange: f
13
13
  }) {
14
- const s = p.useMemo(() => {
15
- let r = n == null ? void 0 : n.properties.filter((e) => e.visible);
16
- return r = _.orderBy(r, "id"), r;
17
- }, [n]), m = (r) => {
18
- const e = {
14
+ const m = _.useMemo(() => {
15
+ let r = n == null ? void 0 : n.properties.filter((o) => o.visible);
16
+ return r = g.orderBy(r, "id"), r;
17
+ }, [n]), h = (r) => {
18
+ const o = {
19
19
  target: {
20
- value: { ...i, ...r }
20
+ value: { ...t, ...r }
21
21
  }
22
22
  };
23
- c(e);
23
+ f(o);
24
24
  };
25
- return n === void 0 ? /* @__PURE__ */ t(h, {}) : /* @__PURE__ */ t(d, { display: "flex", flexDirection: "column", children: s.filter((r) => {
26
- var e;
27
- return o ? !((e = o[r.propertyId]) != null && e.hidden) : !0;
28
- }).map((r, e) => {
29
- var u;
30
- const l = i ? i[r.propertyId] : "";
31
- return /* @__PURE__ */ t(
32
- d,
25
+ return n === void 0 ? /* @__PURE__ */ u(l, {}) : /* @__PURE__ */ u(i, { display: "flex", flexDirection: "column", children: m.filter((r) => {
26
+ var o;
27
+ return e ? !((o = e[r.propertyId]) != null && o.hidden) : !0;
28
+ }).map((r, o) => {
29
+ var d, a;
30
+ const x = t ? t[r.propertyId] : "";
31
+ return /* @__PURE__ */ I(
32
+ i,
33
33
  {
34
- ...o && ((u = o[r.propertyId]) == null ? void 0 : u.order) && {
35
- order: o[r.propertyId].order
34
+ mb: 2,
35
+ ...e && ((d = e[r.propertyId]) == null ? void 0 : d.order) && {
36
+ order: e[r.propertyId].order
36
37
  },
37
- children: /* @__PURE__ */ t(
38
- x,
39
- {
40
- property: r,
41
- value: l,
42
- mapboxAccessToken: a,
43
- variant: f,
44
- fieldOptions: o,
45
- onChange: m
46
- }
47
- )
38
+ children: [
39
+ /* @__PURE__ */ u(
40
+ b,
41
+ {
42
+ property: r,
43
+ value: x,
44
+ mapboxAccessToken: c,
45
+ variant: s,
46
+ fieldOptions: e,
47
+ onChange: h
48
+ }
49
+ ),
50
+ e && ((a = e[r.propertyId]) == null ? void 0 : a.helperText)
51
+ ]
48
52
  },
49
- e
53
+ o
50
54
  );
51
55
  }) });
52
56
  }
53
57
  export {
54
- V as default
58
+ B as default
55
59
  };