vrfi-design-system 1.1.32 → 1.1.34

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
@@ -318,7 +318,7 @@ export declare interface CheckboxSelectFieldProps extends SelectPropsBase {
318
318
  handleCheckboxChange?: (value: string) => void;
319
319
  }
320
320
 
321
- export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, singleSelectionMode, customOptionDisplay, options, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
321
+ export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, singleSelectionMode, customOptionDisplay, options, defaultValue, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
322
322
 
323
323
  declare interface CheckBoxWithFormWrapperProps {
324
324
  children?: default_2.ReactNode;
@@ -331,6 +331,7 @@ declare interface CheckBoxWithFormWrapperProps {
331
331
  className?: string;
332
332
  singleSelectionMode?: boolean;
333
333
  customOptionDisplay?: boolean;
334
+ defaultValue?: boolean;
334
335
  }
335
336
 
336
337
  export { Col }
package/dist/main.es.js CHANGED
@@ -66041,61 +66041,62 @@ const lEe = ({
66041
66041
  singleSelectionMode: o,
66042
66042
  customOptionDisplay: a,
66043
66043
  options: i,
66044
- ...l
66044
+ defaultValue: l,
66045
+ ...s
66045
66046
  }) => {
66046
66047
  const {
66047
- field: { value: s, onChange: A }
66048
- } = Ao({ name: e }), u = er(
66049
- (v) => {
66050
- A(v.target.checked), t == null || t(v.target.checked);
66048
+ field: { value: A, onChange: u }
66049
+ } = Ao({ name: e, defaultValue: l }), d = er(
66050
+ (g) => {
66051
+ u(g.target.checked), t == null || t(g.target.checked);
66051
66052
  },
66052
- [t]
66053
- ), d = er(
66054
- (v) => {
66055
- const g = o ? v[0] || null : v;
66056
- A(g), t == null || t(g);
66053
+ [t, u]
66054
+ ), f = er(
66055
+ (g) => {
66056
+ const p = o ? g[0] || null : g;
66057
+ u(p), t == null || t(p);
66057
66058
  },
66058
- [t, o]
66059
- ), f = o ? s === null ? [] : [s] : s;
66059
+ [t, u, o]
66060
+ ), v = o ? A === null ? [] : [A] : A;
66060
66061
  return /* @__PURE__ */ z.jsx("div", { children: n ? /* @__PURE__ */ z.jsx(
66061
66062
  Zr.Group,
66062
66063
  {
66063
- value: f,
66064
- onChange: d,
66065
- ...l,
66066
- children: i == null ? void 0 : i.map((v) => {
66067
- if (typeof v == "string" || typeof v == "number")
66068
- return /* @__PURE__ */ z.jsx(Zr, { value: v, children: v }, v);
66064
+ value: v,
66065
+ onChange: f,
66066
+ ...s,
66067
+ children: i == null ? void 0 : i.map((g) => {
66068
+ if (typeof g == "string" || typeof g == "number")
66069
+ return /* @__PURE__ */ z.jsx(Zr, { value: g, children: g }, g);
66069
66070
  const {
66070
- label: g,
66071
- email: p,
66072
- code: m,
66073
- value: b,
66074
- disabled: h
66075
- } = v;
66071
+ label: p,
66072
+ email: m,
66073
+ code: b,
66074
+ value: h,
66075
+ disabled: w
66076
+ } = g;
66076
66077
  return /* @__PURE__ */ z.jsx(
66077
66078
  Zr,
66078
66079
  {
66079
- value: b,
66080
- disabled: h,
66080
+ value: h,
66081
+ disabled: w,
66081
66082
  children: a ? /* @__PURE__ */ z.jsxs(gi, { children: [
66082
66083
  /* @__PURE__ */ z.jsxs("div", { className: Qu.labelContainer, children: [
66083
- /* @__PURE__ */ z.jsx("span", { className: Qu.label, children: g }),
66084
- /* @__PURE__ */ z.jsx("span", { className: Qu.code, children: m })
66084
+ /* @__PURE__ */ z.jsx("span", { className: Qu.label, children: p }),
66085
+ /* @__PURE__ */ z.jsx("span", { className: Qu.code, children: b })
66085
66086
  ] }),
66086
- /* @__PURE__ */ z.jsx("span", { className: Qu.email, children: p })
66087
- ] }) : g
66087
+ /* @__PURE__ */ z.jsx("span", { className: Qu.email, children: m })
66088
+ ] }) : p
66088
66089
  },
66089
- b
66090
+ h
66090
66091
  );
66091
66092
  })
66092
66093
  }
66093
66094
  ) : /* @__PURE__ */ z.jsx(
66094
66095
  Zr,
66095
66096
  {
66096
- checked: s,
66097
- onChange: u,
66098
- ...l,
66097
+ checked: A ?? l,
66098
+ onChange: d,
66099
+ ...s,
66099
66100
  children: r
66100
66101
  }
66101
66102
  ) });