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 +2 -1
- package/dist/main.es.js +35 -34
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
66044
|
+
defaultValue: l,
|
|
66045
|
+
...s
|
|
66045
66046
|
}) => {
|
|
66046
66047
|
const {
|
|
66047
|
-
field: { value:
|
|
66048
|
-
} = Ao({ name: e }),
|
|
66049
|
-
(
|
|
66050
|
-
|
|
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
|
-
),
|
|
66054
|
-
(
|
|
66055
|
-
const
|
|
66056
|
-
|
|
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
|
-
),
|
|
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:
|
|
66064
|
-
onChange:
|
|
66065
|
-
...
|
|
66066
|
-
children: i == null ? void 0 : i.map((
|
|
66067
|
-
if (typeof
|
|
66068
|
-
return /* @__PURE__ */ z.jsx(Zr, { value:
|
|
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:
|
|
66071
|
-
email:
|
|
66072
|
-
code:
|
|
66073
|
-
value:
|
|
66074
|
-
disabled:
|
|
66075
|
-
} =
|
|
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:
|
|
66080
|
-
disabled:
|
|
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:
|
|
66084
|
-
/* @__PURE__ */ z.jsx("span", { className: Qu.code, children:
|
|
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:
|
|
66087
|
-
] }) :
|
|
66087
|
+
/* @__PURE__ */ z.jsx("span", { className: Qu.email, children: m })
|
|
66088
|
+
] }) : p
|
|
66088
66089
|
},
|
|
66089
|
-
|
|
66090
|
+
h
|
|
66090
66091
|
);
|
|
66091
66092
|
})
|
|
66092
66093
|
}
|
|
66093
66094
|
) : /* @__PURE__ */ z.jsx(
|
|
66094
66095
|
Zr,
|
|
66095
66096
|
{
|
|
66096
|
-
checked:
|
|
66097
|
-
onChange:
|
|
66098
|
-
...
|
|
66097
|
+
checked: A ?? l,
|
|
66098
|
+
onChange: d,
|
|
66099
|
+
...s,
|
|
66099
66100
|
children: r
|
|
66100
66101
|
}
|
|
66101
66102
|
) });
|