jcicl 1.1.4 → 1.2.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.
- package/Button/Button.d.ts +1 -0
- package/Button/Button.js +73 -70
- package/DesktopStepper/DesktopStepper.d.ts +24 -0
- package/DesktopStepper/DesktopStepper.js +204 -0
- package/DesktopStepper/index.d.ts +1 -0
- package/DesktopStepper/index.js +5 -0
- package/FieldGroup/FieldGroup.js +15 -12
- package/FieldVisibilityWrapper/FieldVisibilityWrapper.d.ts +11 -0
- package/FieldVisibilityWrapper/FieldVisibilityWrapper.js +48 -0
- package/FieldVisibilityWrapper/index.d.ts +1 -0
- package/FieldVisibilityWrapper/index.js +4 -0
- package/FormContext/createFormContext.js +91 -72
- package/FormContext/types.d.ts +8 -0
- package/FormFields/FormFields.d.ts +2 -2
- package/FormFields/FormFields.js +20 -20
- package/FormInput/FormInput.d.ts +4 -0
- package/FormInput/FormInput.js +39 -14
- package/LabeledCheckbox/LabeledCheckbox.js +4 -4
- package/LabeledCurrencyInput/LabeledCurrencyInput.js +33 -33
- package/LabeledInput/LabeledInput.d.ts +2 -0
- package/LabeledInput/LabeledInput.js +16 -14
- package/LabeledRadio/LabeledRadio.js +12 -12
- package/ScrollContainer/ScrollContainer.js +721 -704
- package/SelectableItemCard/SelectableItemCard.d.ts +9 -0
- package/SelectableItemCard/SelectableItemCard.js +24 -0
- package/SelectableItemCard/index.d.ts +1 -0
- package/SelectableItemCard/index.js +4 -0
- package/Stepper/Stepper.js +184 -226
- package/api.d.ts +16 -5
- package/api.js +42 -28
- package/assets/style.css +1 -1
- package/assets/tailwind.css +2 -2
- package/constants.js +1 -1
- package/formatters.d.ts +1 -0
- package/formatters.js +30 -17
- package/package.json +1 -1
- package/problemDetails.d.ts +20 -0
- package/problemDetails.js +19 -0
- package/utils.d.ts +2 -2
- package/utils.js +35 -29
- package/validators.d.ts +8 -0
- package/validators.js +19 -9
|
@@ -174,7 +174,7 @@ function co(o, a) {
|
|
|
174
174
|
}
|
|
175
175
|
const O = /* @__PURE__ */ n(R, {
|
|
176
176
|
checked: !0
|
|
177
|
-
}), N = /* @__PURE__ */ n(R, {}),
|
|
177
|
+
}), N = /* @__PURE__ */ n(R, {}), g = /* @__PURE__ */ l.forwardRef(function(a, t) {
|
|
178
178
|
const s = W({
|
|
179
179
|
props: a,
|
|
180
180
|
name: "MuiRadio"
|
|
@@ -184,9 +184,9 @@ const O = /* @__PURE__ */ n(R, {
|
|
|
184
184
|
color: p = "primary",
|
|
185
185
|
icon: $ = N,
|
|
186
186
|
name: E,
|
|
187
|
-
onChange:
|
|
187
|
+
onChange: M,
|
|
188
188
|
size: b = "medium",
|
|
189
|
-
className:
|
|
189
|
+
className: F,
|
|
190
190
|
disabled: U,
|
|
191
191
|
disableRipple: D = !1,
|
|
192
192
|
...L
|
|
@@ -201,9 +201,9 @@ const O = /* @__PURE__ */ n(R, {
|
|
|
201
201
|
size: b
|
|
202
202
|
}, k = ro(v), c = so();
|
|
203
203
|
let h = r;
|
|
204
|
-
const V = Q(
|
|
205
|
-
let
|
|
206
|
-
return c && (typeof h > "u" && (h = co(c.value, s.value)), typeof
|
|
204
|
+
const V = Q(M, c && c.onChange);
|
|
205
|
+
let y = E;
|
|
206
|
+
return c && (typeof h > "u" && (h = co(c.value, s.value)), typeof y > "u" && (y = c.name)), /* @__PURE__ */ n(io, {
|
|
207
207
|
type: "radio",
|
|
208
208
|
icon: /* @__PURE__ */ l.cloneElement($, {
|
|
209
209
|
fontSize: N.props.fontSize ?? b
|
|
@@ -214,15 +214,15 @@ const O = /* @__PURE__ */ n(R, {
|
|
|
214
214
|
disabled: i,
|
|
215
215
|
ownerState: v,
|
|
216
216
|
classes: k,
|
|
217
|
-
name:
|
|
217
|
+
name: y,
|
|
218
218
|
checked: h,
|
|
219
219
|
onChange: V,
|
|
220
220
|
ref: t,
|
|
221
|
-
className: H(k.root,
|
|
221
|
+
className: H(k.root, F),
|
|
222
222
|
...L
|
|
223
223
|
});
|
|
224
224
|
});
|
|
225
|
-
process.env.NODE_ENV !== "production" && (
|
|
225
|
+
process.env.NODE_ENV !== "production" && (g.propTypes = {
|
|
226
226
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
227
227
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
228
228
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -309,7 +309,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
309
309
|
*/
|
|
310
310
|
value: e.any
|
|
311
311
|
});
|
|
312
|
-
const j = G("div", { shouldForwardProp: (o) => !["customTheme"].includes(o) })(({ displayMode: o, customTheme: a }) => ({
|
|
312
|
+
const j = G("div", { shouldForwardProp: (o) => !["customTheme", "displayMode"].includes(o) })(({ displayMode: o, customTheme: a }) => ({
|
|
313
313
|
...S`
|
|
314
314
|
display: flex;
|
|
315
315
|
flex-wrap: nowrap;
|
|
@@ -353,14 +353,14 @@ const j = G("div", { shouldForwardProp: (o) => !["customTheme"].includes(o) })((
|
|
|
353
353
|
}) => {
|
|
354
354
|
const p = _();
|
|
355
355
|
return r ? /* @__PURE__ */ u(j, { displayMode: t, className: "jcLabeledRadio", customTheme: p, children: [
|
|
356
|
-
/* @__PURE__ */ n(
|
|
356
|
+
/* @__PURE__ */ n(g, { ...d }),
|
|
357
357
|
!s && /* @__PURE__ */ n("span", { className: "jcRadioLabel", children: o })
|
|
358
358
|
] }) : /* @__PURE__ */ u(j, { displayMode: t, className: "jcLabeledRadio", customTheme: p, children: [
|
|
359
359
|
!s && /* @__PURE__ */ u("span", { className: "jcRadioLabel", children: [
|
|
360
360
|
o,
|
|
361
361
|
a && ":"
|
|
362
362
|
] }),
|
|
363
|
-
/* @__PURE__ */ n(
|
|
363
|
+
/* @__PURE__ */ n(g, { ...d })
|
|
364
364
|
] });
|
|
365
365
|
};
|
|
366
366
|
export {
|