@pie-element/multiple-choice 14.0.7-next.20261023045657 → 14.0.7-next.20261023071029

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.
@@ -21627,6 +21627,12 @@ var wO = (e) => e ? {
21627
21627
  children: s.map((e, t) => {
21628
21628
  let n = this.buttonClick.bind(this, e);
21629
21629
  if (!e) return /* @__PURE__ */ I("span", {}, `empty-${t}`);
21630
+ if (!(e.label || e.latex || e.icon || e.command || e.keystroke || e.write || e.type || e.actions || e.extraProps)) return /* @__PURE__ */ I(EO, {
21631
+ disabled: !0,
21632
+ "aria-hidden": "true",
21633
+ tabIndex: -1,
21634
+ category: o ? void 0 : e.category
21635
+ }, `placeholder-${t}`);
21630
21636
  let r = {
21631
21637
  onClick: n,
21632
21638
  disabled: this.keyIsNotAllowed(e),
@@ -32519,24 +32525,27 @@ var _A = (e, t) => {
32519
32525
  }
32520
32526
  },
32521
32527
  "& span[data-prime=\"true\"]": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
32522
- })), kA = E(Je)({
32523
- flex: "initial",
32524
- width: "25%",
32528
+ })), kA = E(Je)(({ theme: e }) => ({
32529
+ width: "fit-content",
32525
32530
  minWidth: "100px",
32526
- marginLeft: "15px",
32527
- marginTop: "5px",
32528
- marginBottom: "5px",
32529
- marginRight: "5px",
32531
+ maxWidth: "150px",
32532
+ marginLeft: e.spacing(2),
32533
+ marginTop: e.spacing(.5),
32534
+ marginBottom: e.spacing(.5),
32535
+ marginRight: e.spacing(2),
32530
32536
  "& label": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" },
32531
32537
  "& div": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
32532
- }), AA = E(de)(() => ({ backgroundColor: "transparent" })), jA = E("div")(({ theme: e, error: t }) => ({
32533
- minWidth: "500px",
32534
- maxWidth: "900px",
32538
+ })), AA = E(de)(() => ({ backgroundColor: "transparent" })), jA = E("div")(({ theme: e, error: t, controlledKeypadMode: n }) => ({
32539
+ ...n ? {
32540
+ flex: 1,
32541
+ minWidth: 0
32542
+ } : {
32543
+ width: "100%",
32544
+ minWidth: "500px",
32545
+ maxWidth: "900px"
32546
+ },
32535
32547
  minHeight: "30px",
32536
- width: "100%",
32537
32548
  display: "flex",
32538
- marginTop: e.spacing(1),
32539
- marginBottom: e.spacing(1),
32540
32549
  ...t && { border: "2px solid red" },
32541
32550
  "& .mq-sqrt-prefix .mq-scaled": { verticalAlign: "middle !important" }
32542
32551
  })), MA = E(gO.Input)(({ controlledKeypadMode: e }) => ({
@@ -32724,6 +32733,7 @@ var _A = (e, t) => {
32724
32733
  })]
32725
32734
  }), /* @__PURE__ */ I(jA, {
32726
32735
  error: m,
32736
+ controlledKeypadMode: a,
32727
32737
  children: /* @__PURE__ */ I(MA, {
32728
32738
  onFocus: () => {
32729
32739
  f && f(), this.updateDisable(!1);
@@ -43869,7 +43879,7 @@ var xU = E(je)(({ theme: e, error: t }) => ({
43869
43879
  transform: "translate(-25%, 20%)",
43870
43880
  color: `${P.tertiary()} !important`,
43871
43881
  ...t && { color: `${e.palette.error.main} !important` }
43872
- })), SU = ({ className: e, label: t, ariaLabel: n, checked: r, onChange: i, disabled: a, error: o }) => /* @__PURE__ */ I(yU, {
43882
+ })), SU = ({ className: e, label: t, ariaLabel: n = "", checked: r, onChange: i, disabled: a, error: o }) => /* @__PURE__ */ I(yU, {
43873
43883
  className: e,
43874
43884
  label: t,
43875
43885
  children: /* @__PURE__ */ I(xU, {
@@ -43885,7 +43895,7 @@ var CU = E(We)(({ theme: e, error: t }) => ({
43885
43895
  transform: "translate(-20%, 20%)",
43886
43896
  color: `${P.tertiary()} !important`,
43887
43897
  ...t && { color: `${e.palette.error.main} !important` }
43888
- })), wU = ({ className: e, label: t, ariaLabel: n, checked: r, onChange: i, disabled: a, error: o }) => /* @__PURE__ */ I(yU, {
43898
+ })), wU = ({ className: e, label: t, ariaLabel: n = "", checked: r, onChange: i, disabled: a, error: o }) => /* @__PURE__ */ I(yU, {
43889
43899
  className: e,
43890
43900
  label: t,
43891
43901
  children: /* @__PURE__ */ I(CU, {
@@ -43951,7 +43961,7 @@ var TU = E(lN)(() => ({})), EU = class extends gt.Component {
43951
43961
  height: e.spacing(3)
43952
43962
  },
43953
43963
  ...n && { color: `${e.palette.error.main} !important` }
43954
- })), kU = ({ mini: e = !1, checked: t, onChange: n, value: r = "", label: i, ariaLabel: a, error: o = !1 }) => /* @__PURE__ */ I(DU, {
43964
+ })), kU = ({ mini: e = !1, checked: t, onChange: n, value: r = "", label: i, ariaLabel: a = "", error: o = !1 }) => /* @__PURE__ */ I(DU, {
43955
43965
  mini: e,
43956
43966
  control: /* @__PURE__ */ I(OU, {
43957
43967
  checked: t,
@@ -43959,7 +43969,7 @@ var TU = E(lN)(() => ({})), EU = class extends gt.Component {
43959
43969
  value: r,
43960
43970
  mini: e,
43961
43971
  error: o,
43962
- slotProps: { input: { "aria-label": a } }
43972
+ slotProps: { input: { "aria-label": a || void 0 } }
43963
43973
  }),
43964
43974
  label: i
43965
43975
  });
@@ -45893,7 +45903,7 @@ var uK = He, dK = uK.default, fK = dK && typeof dK == "object" ? dK : uK, pK = l
45893
45903
  }
45894
45904
  }, LK = Object.freeze({
45895
45905
  name: "@pie-element/multiple-choice",
45896
- version: "14.0.7-next.20261023045657"
45906
+ version: "14.0.7-next.20261023071029"
45897
45907
  });
45898
45908
  //#endregion
45899
45909
  export { IK as default, LK as piePackage };