@ahmadmubarak98/namozaj 1.5.0 → 1.5.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 (2) hide show
  1. package/dist/namozaj.js +19 -18
  2. package/package.json +1 -1
package/dist/namozaj.js CHANGED
@@ -9052,17 +9052,18 @@ const VisibilityIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
9052
9052
  }), "Info"), Tooltip = ({ text: e, placement: t }) => /* @__PURE__ */ jsx(Tooltip$1, { title: e, placement: t || "bottom", arrow: !0, children: /* @__PURE__ */ jsx(IconButton$1, { size: "small", sx: { padding: 0 }, children: /* @__PURE__ */ jsx(InfoIcon, { fontSize: "small" }) }) }), CheckboxField = ({
9053
9053
  id: e,
9054
9054
  config: t,
9055
- onChange: a
9055
+ onChange: a,
9056
+ value: l
9056
9057
  }) => {
9057
- const { name: l, meta: c } = t, {
9058
- label: p,
9059
- style: d,
9060
- className: u,
9061
- disabled: b,
9062
- checked: h,
9063
- defaultValue: g,
9064
- tooltip: m
9065
- } = c;
9058
+ const { name: c, meta: p } = t, {
9059
+ label: d,
9060
+ style: u,
9061
+ className: b,
9062
+ disabled: h,
9063
+ checked: g,
9064
+ defaultValue: m,
9065
+ tooltip: y
9066
+ } = p;
9066
9067
  return /* @__PURE__ */ jsx(
9067
9068
  FormControlLabel,
9068
9069
  {
@@ -9070,19 +9071,19 @@ const VisibilityIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
9070
9071
  Checkbox,
9071
9072
  {
9072
9073
  id: e,
9073
- name: l,
9074
- defaultChecked: g ?? !1,
9075
- checked: h,
9076
- disabled: b,
9074
+ name: c,
9075
+ defaultChecked: m ?? !1,
9076
+ checked: typeof l == "boolean" ? l : g,
9077
+ disabled: h,
9077
9078
  onChange: a
9078
9079
  }
9079
9080
  ),
9080
9081
  label: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", gap: 0.5, children: [
9081
- p,
9082
- (m == null ? void 0 : m.text) && /* @__PURE__ */ jsx(Tooltip, { ...m })
9082
+ d,
9083
+ (y == null ? void 0 : y.text) && /* @__PURE__ */ jsx(Tooltip, { ...y })
9083
9084
  ] }) }),
9084
- style: d,
9085
- className: u
9085
+ style: u,
9086
+ className: b
9086
9087
  }
9087
9088
  );
9088
9089
  }, CheckboxGroupField = ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",