@hybridcore/ui 1.4.41 → 1.4.43

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as d, jsxs as x } from "react/jsx-runtime";
2
2
  import s from "lodash";
3
- import p from "./property.js";
3
+ import y from "./property.js";
4
4
  import { Box as c, Typography as I } from "@mui/material";
5
5
  import { Accordion as A, AccordionSummary as K, AccordionDetails as N } from "./styled.js";
6
6
  const j = ({
@@ -10,7 +10,7 @@ const j = ({
10
10
  fieldOptions: i,
11
11
  onChange: g
12
12
  }) => {
13
- const y = (a) => (n) => {
13
+ const p = (a) => (n) => {
14
14
  if (a) {
15
15
  let e = f.find((r) => r.templateKey === a);
16
16
  if (e) {
@@ -48,13 +48,13 @@ const j = ({
48
48
  order: i[e.propertyId].order
49
49
  },
50
50
  children: /* @__PURE__ */ d(
51
- p,
51
+ y,
52
52
  {
53
53
  property: e,
54
54
  value: t,
55
55
  size: "small",
56
56
  variant: m,
57
- onChange: y(n == null ? void 0 : n.templateKey)
57
+ onChange: p(n == null ? void 0 : n.templateKey)
58
58
  }
59
59
  )
60
60
  },
@@ -89,20 +89,20 @@ const j = ({
89
89
  order: i[r.propertyId].order
90
90
  },
91
91
  children: /* @__PURE__ */ d(
92
- p,
92
+ y,
93
93
  {
94
94
  property: r,
95
95
  value: o,
96
96
  size: "small",
97
97
  variant: m,
98
- onChange: y(e == null ? void 0 : e.templateKey)
98
+ onChange: p(e == null ? void 0 : e.templateKey)
99
99
  }
100
100
  )
101
101
  },
102
102
  t
103
103
  );
104
104
  }) })
105
- ] });
105
+ ] }, n);
106
106
  });
107
107
  };
108
108
  export {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as m, jsx as t, Fragment as T } from "react/jsx-runtime";
2
2
  import { useState as Y } from "react";
3
3
  import c from "dayjs";
4
- import { KeyboardArrowUp as L, KeyboardArrowDown as P } from "@mui/icons-material";
5
- import { Typography as f, FormLabel as z, FormGroup as D, Button as W } from "@mui/material";
4
+ import { KeyboardArrowUp as z, KeyboardArrowDown as L } from "@mui/icons-material";
5
+ import { Typography as f, FormLabel as P, FormGroup as D, Button as W } from "@mui/material";
6
6
  import { DatePicker as C } from "@mui/x-date-pickers";
7
7
  import { B as d } from "../../Box-SSMZuKnS.js";
8
8
  import { T as b } from "../../TextField-BjFXx91l.js";
@@ -16,7 +16,7 @@ function R({
16
16
  variant: u,
17
17
  onChange: p
18
18
  }) {
19
- var I, y, S, V, M;
19
+ var I, S, y, V, M;
20
20
  const h = (l) => (n) => {
21
21
  let o = { ...a };
22
22
  const i = n.target.type === "checkbox" ? n.target.checked : n.target.value;
@@ -180,12 +180,12 @@ function R({
180
180
  }
181
181
  }
182
182
  ) });
183
- if (e.type === "enum" || e.type === "composite-list" && ((y = (I = e.dataTypeInfo) == null ? void 0 : I.innerType) == null ? void 0 : y.type) === "enum") {
183
+ if (e.type === "enum" || e.type === "composite-list" && ((S = (I = e.dataTypeInfo) == null ? void 0 : I.innerType) == null ? void 0 : S.type) === "enum") {
184
184
  const [l, n] = Y(!1), o = 10;
185
185
  let i = [];
186
- return (S = e.dataTypeInfo) != null && S.enumValues && (i = e.dataTypeInfo.enumValues), (M = (V = e.dataTypeInfo) == null ? void 0 : V.innerType) != null && M.enumValues && (i = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ m(d, { children: [
186
+ return (y = e.dataTypeInfo) != null && y.enumValues && (i = e.dataTypeInfo.enumValues), (M = (V = e.dataTypeInfo) == null ? void 0 : V.innerType) != null && M.enumValues && (i = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ m(d, { children: [
187
187
  /* @__PURE__ */ m(B, { fullWidth: !0, component: "fieldset", variant: u, children: [
188
- /* @__PURE__ */ t(z, { component: "legend", sx: { mb: 1, fontSize: 12 }, children: e.name }),
188
+ /* @__PURE__ */ t(P, { component: "legend", sx: { mb: 1, fontSize: 12 }, children: e.name }),
189
189
  /* @__PURE__ */ t(D, { children: i.slice(0, l ? 9999 : o).map((s, x) => /* @__PURE__ */ t(
190
190
  O,
191
191
  {
@@ -209,7 +209,8 @@ function R({
209
209
  ),
210
210
  componentsProps: {
211
211
  typography: {
212
- variant: "body2"
212
+ variant: "body2",
213
+ fontSize: 13
213
214
  }
214
215
  },
215
216
  sx: {
@@ -225,7 +226,7 @@ function R({
225
226
  {
226
227
  size: "small",
227
228
  sx: { p: 0, textTransform: "none", fontSize: 12 },
228
- endIcon: l ? /* @__PURE__ */ t(L, { sx: { fontSize: 14 } }) : /* @__PURE__ */ t(P, { sx: { fontSize: 14 } }),
229
+ endIcon: l ? /* @__PURE__ */ t(z, { sx: { fontSize: 14 } }) : /* @__PURE__ */ t(L, { sx: { fontSize: 14 } }),
229
230
  onClick: () => n((s) => !s),
230
231
  children: [
231
232
  "Show ",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.4.41",
4
+ "version": "1.4.43",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",