@pie-element/match 12.1.2-next.32 → 12.1.2-next.33

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.
@@ -1,10 +1,10 @@
1
1
  import { a as e } from "../browser-kkT1XVKw.js";
2
- import { Nt as t, O as n, a as r, d as i, dt as a, f as o, ft as s, ht as c, k as l, n as u, p as d, pt as f, r as p, t as m, u as h, x as g } from "../Typography-D1NIfJZu.js";
2
+ import { A as t, O as n, Pt as r, a as i, d as a, f as o, ft as s, gt as c, mt as l, n as u, p as d, pt as f, r as p, t as m, u as h, x as g } from "../Typography-C2S9t4p_.js";
3
3
  import _, { useRef as v } from "react";
4
4
  import { createRoot as y } from "react-dom/client";
5
5
  import { jsx as b, jsxs as x } from "react/jsx-runtime";
6
6
  //#region ../../lib-react/correct-answer-toggle/dist/expander.js
7
- var S = /* @__PURE__ */ e(t(), 1), C = "height ease-in 300ms, opacity ease-in 300ms", w = c("div")(() => ({
7
+ var S = /* @__PURE__ */ e(r(), 1), C = "height ease-in 300ms, opacity ease-in 300ms", w = c("div")(() => ({
8
8
  position: "relative",
9
9
  height: 0,
10
10
  overflow: "hidden",
@@ -40,7 +40,7 @@ var S = /* @__PURE__ */ e(t(), 1), C = "height ease-in 300ms, opacity ease-in 30
40
40
  }
41
41
  })), T = (e) => {
42
42
  let { show: t, children: n, className: r } = e, i = v(null);
43
- return /* @__PURE__ */ b(f, {
43
+ return /* @__PURE__ */ b(l, {
44
44
  nodeRef: i,
45
45
  in: t,
46
46
  appear: !0,
@@ -1688,7 +1688,7 @@ function G(e) {
1688
1688
  function Ue(e, t) {
1689
1689
  return !e || G(e) ? e : G(e.default) ? e.default : t && G(e[t]) ? e[t] : t && G(e[t]?.default) ? e[t].default : e;
1690
1690
  }
1691
- var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.default, Ke = K && typeof K == "object" ? K : Ge, { translator: q } = He, qe = {
1691
+ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = i, K = Ge.default, Ke = K && typeof K == "object" ? K : Ge, { translator: q } = He, qe = {
1692
1692
  WebkitTouchCallout: "none",
1693
1693
  WebkitUserSelect: "none",
1694
1694
  KhtmlUserSelect: "none",
@@ -1707,7 +1707,7 @@ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.defaul
1707
1707
  minWidth: "140px",
1708
1708
  alignSelf: "center",
1709
1709
  verticalAlign: "middle",
1710
- color: `var(--correct-answer-toggle-label-color, ${s.text()})`,
1710
+ color: `var(--correct-answer-toggle-label-color, ${f.text()})`,
1711
1711
  fontWeight: "normal",
1712
1712
  ...qe
1713
1713
  })), Ze = c("div")(() => ({
@@ -1773,7 +1773,7 @@ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.defaul
1773
1773
  children: /* @__PURE__ */ x(Ye, {
1774
1774
  onClick: this.onClick.bind(this),
1775
1775
  onTouchEnd: this.onTouch.bind(this),
1776
- children: [/* @__PURE__ */ x(Qe, { children: [/* @__PURE__ */ b(f, {
1776
+ children: [/* @__PURE__ */ x(Qe, { children: [/* @__PURE__ */ b(l, {
1777
1777
  nodeRef: this.openIconRef,
1778
1778
  timeout: 400,
1779
1779
  in: t,
@@ -1788,7 +1788,7 @@ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.defaul
1788
1788
  ref: this.openIconRef,
1789
1789
  children: /* @__PURE__ */ b(O, { open: t }, "correct-open")
1790
1790
  })
1791
- }), /* @__PURE__ */ b(f, {
1791
+ }), /* @__PURE__ */ b(l, {
1792
1792
  nodeRef: this.closedIconRef,
1793
1793
  timeout: 5e3,
1794
1794
  in: !t,
@@ -1824,11 +1824,11 @@ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.defaul
1824
1824
  textAlign: t ? "left" : "center"
1825
1825
  })), it = c("tr")({
1826
1826
  border: 0,
1827
- borderTop: `2.5px solid ${s.primaryLight()}`,
1827
+ borderTop: `2.5px solid ${f.primaryLight()}`,
1828
1828
  width: "100%"
1829
1829
  }), at = c("table")({
1830
- color: s.text(),
1831
- backgroundColor: s.background(),
1830
+ color: f.text(),
1831
+ backgroundColor: f.background(),
1832
1832
  borderCollapse: "collapse",
1833
1833
  borderSpacing: 0,
1834
1834
  marginBottom: 0
@@ -1859,7 +1859,7 @@ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.defaul
1859
1859
  };
1860
1860
  controlColor = (e, t, n) => {
1861
1861
  let { showCorrect: r, disabled: i, view: a } = this.props, o = i && !a;
1862
- return r && t === !0 || o && this.answerIsCorrect(e, t, n) ? s.correct() : o && this.answerIsIncorrect(e, t, n) ? s.incorrect() : t === !0 && !o ? s.primary() : i ? s.disabled() : s.text();
1862
+ return r && t === !0 || o && this.answerIsCorrect(e, t, n) ? f.correct() : o && this.answerIsIncorrect(e, t, n) ? f.incorrect() : t === !0 && !o ? f.primary() : i ? f.disabled() : f.text();
1863
1863
  };
1864
1864
  render() {
1865
1865
  let { headers: e, rows: t, choiceMode: n, answers: r, disabled: i } = this.props, a = n === "radio" ? p : u;
@@ -1898,7 +1898,7 @@ var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.defaul
1898
1898
  pointerEvents: i ? "initial" : "auto",
1899
1899
  opacity: i ? .7 : 1,
1900
1900
  "& input": { width: "100% !important" },
1901
- "&&:hover:not(.Mui-disabled)": { color: s.primaryLight() }
1901
+ "&&:hover:not(.Mui-disabled)": { color: f.primaryLight() }
1902
1902
  },
1903
1903
  disabled: i,
1904
1904
  onChange: this.onRowValueChange(e.id, r),
@@ -1918,7 +1918,7 @@ function Y(e) {
1918
1918
  function X(e, t) {
1919
1919
  return !e || Y(e) ? e : Y(e.default) ? e.default : t && Y(e[t]) ? e[t] : t && Y(e[t]?.default) ? e[t].default : e;
1920
1920
  }
1921
- var st = X(g, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(d, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), ct = X(a, "Feedback") || X($.Feedback, "Feedback"), lt = X(n, "Collapsible") || X($.Collapsible, "Collapsible"), ut = r, Q = ut.default, $ = Q && typeof Q == "object" ? Q : ut, dt = c("div")({ verticalAlign: "middle" }), ft = c(lt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), pt = class extends _.Component {
1921
+ var st = X(g, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(d, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), ct = X(s, "Feedback") || X($.Feedback, "Feedback"), lt = X(n, "Collapsible") || X($.Collapsible, "Collapsible"), ut = i, Q = ut.default, $ = Q && typeof Q == "object" ? Q : ut, dt = c("div")({ verticalAlign: "middle" }), ft = c(lt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), pt = class extends _.Component {
1922
1922
  static propTypes = {
1923
1923
  session: S.default.object.isRequired,
1924
1924
  onSessionChange: S.default.func,
@@ -1969,11 +1969,11 @@ var st = X(g, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(d, "PreviewPrompt"
1969
1969
  } }), this.callOnSessionChange);
1970
1970
  };
1971
1971
  render() {
1972
- let { model: e } = this.props, { showCorrect: t, session: n } = this.state, { correctness: r = {}, extraCSSRules: a, language: o } = e, s = r.correctness && r.correctness !== "correct", c = e.rationale && (i(e.rationale) || h(e.rationale));
1972
+ let { model: e } = this.props, { showCorrect: t, session: n } = this.state, { correctness: r = {}, extraCSSRules: i, language: o } = e, s = r.correctness && r.correctness !== "correct", c = e.rationale && (a(e.rationale) || h(e.rationale));
1973
1973
  return /* @__PURE__ */ x(st, {
1974
- extraCSSRules: a,
1974
+ extraCSSRules: i,
1975
1975
  children: [
1976
- e.teacherInstructions && (i(e.teacherInstructions) || h(e.teacherInstructions)) && /* @__PURE__ */ b(ft, {
1976
+ e.teacherInstructions && (a(e.teacherInstructions) || h(e.teacherInstructions)) && /* @__PURE__ */ b(ft, {
1977
1977
  labels: {
1978
1978
  hidden: "Show Teacher Instructions",
1979
1979
  visible: "Hide Teacher Instructions"
@@ -2079,7 +2079,7 @@ var mt = class e extends CustomEvent {
2079
2079
  onSessionChange: this.sessionChanged.bind(this)
2080
2080
  });
2081
2081
  this._root ||= y(this), this._root.render(e), queueMicrotask(() => {
2082
- l(this);
2082
+ t(this);
2083
2083
  });
2084
2084
  }
2085
2085
  disconnectedCallback() {