@pie-lib/config-ui 13.0.4-next.31 → 13.0.4-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.
Files changed (25) hide show
  1. package/dist/choice-configuration/feedback-menu.js +1 -1
  2. package/dist/choice-configuration/index.js +48 -48
  3. package/dist/choice-utils.js +1 -1
  4. package/dist/feedback-config/feedback-selector.js +20 -20
  5. package/dist/feedback-config/index.js +2 -2
  6. package/dist/help.js +21 -20
  7. package/dist/index.js +8 -8
  8. package/dist/langs.js +1 -1
  9. package/dist/layout/config-layout.js +1 -1
  10. package/dist/layout/index.js +1 -1
  11. package/dist/layout/layout-contents.js +1 -1
  12. package/dist/layout/settings-box.js +7 -6
  13. package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/extends.js +2 -2
  14. package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +3 -3
  15. package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
  16. package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +2 -2
  17. package/dist/node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js +3 -3
  18. package/dist/number-text-field-custom.js +1 -1
  19. package/dist/number-text-field.js +1 -1
  20. package/dist/settings/display-size.js +1 -1
  21. package/dist/settings/index.js +2 -2
  22. package/dist/settings/panel.js +2 -2
  23. package/dist/tabs/index.js +1 -1
  24. package/dist/tags-input/index.js +1 -1
  25. package/package.json +9 -4
@@ -82,4 +82,4 @@ var d = u(a, "InlineMenu") || u(m.InlineMenu, "InlineMenu"), f = i, p = f.defaul
82
82
  }
83
83
  };
84
84
  //#endregion
85
- export { g as default };
85
+ export { h as IconMenu, g as default };
@@ -6,22 +6,22 @@ import { styled as a } from "@mui/material/styles";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  import c from "@pie-lib/editable-html-tip-tap";
8
8
  import * as l from "@pie-lib/render-ui";
9
- import { InputContainer as u } from "@pie-lib/render-ui";
10
- import d from "@mui/material/IconButton";
11
- import f from "@mui/material/TextField";
12
- import p from "@mui/icons-material/Delete";
13
- import m from "@mui/icons-material/SubdirectoryArrowRight";
9
+ import { InputContainer as u, color as d } from "@pie-lib/render-ui";
10
+ import f from "@mui/material/IconButton";
11
+ import p from "@mui/material/TextField";
12
+ import m from "@mui/icons-material/Delete";
13
+ import h from "@mui/icons-material/SubdirectoryArrowRight";
14
14
  //#region src/choice-configuration/index.tsx
15
- function h(e) {
15
+ function g(e) {
16
16
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
17
17
  }
18
- function g(e, t) {
19
- return !e || h(e) ? e : h(e.default) ? e.default : t && h(e[t]) ? e[t] : t && h(e[t]?.default) ? e[t].default : e;
18
+ function _(e, t) {
19
+ 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;
20
20
  }
21
- var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l, y = v.default, b = y && typeof y == "object" ? y : v, x = a("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), S = ({ label: e, onChange: t, value: n, className: r, imageSupport: i, disableImageAlignmentButtons: a, disabled: s, spellCheck: l, nonEmpty: u, pluginOpts: d, toolbarOpts: f, error: p, maxImageWidth: m, maxImageHeight: h, uploadSoundSupport: g, mathMlOptions: v = {} }) => /* @__PURE__ */ o(_, {
21
+ var v = _(u, "InputContainer") || _(x.InputContainer, "InputContainer"), y = l, b = y.default, x = b && typeof b == "object" ? b : y, S = a("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), C = ({ label: e, onChange: t, value: n, className: r, imageSupport: i, disableImageAlignmentButtons: a, disabled: s, spellCheck: l, nonEmpty: u, pluginOpts: d, toolbarOpts: f, error: p, maxImageWidth: m, maxImageHeight: h, uploadSoundSupport: g, mathMlOptions: _ = {} }) => /* @__PURE__ */ o(v, {
22
22
  label: e,
23
23
  className: r,
24
- children: /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(c, {
24
+ children: /* @__PURE__ */ o(S, { children: /* @__PURE__ */ o(c, {
25
25
  markup: n || "",
26
26
  disabled: s,
27
27
  spellCheck: l,
@@ -36,67 +36,67 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
36
36
  maxImageHeight: h,
37
37
  uploadSoundSupport: g,
38
38
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
39
- mathMlOptions: v
39
+ mathMlOptions: _
40
40
  }) })
41
- }), C = a("div")(() => ({ position: "relative" })), w = a(m)(({ theme: e }) => ({
42
- fill: e.palette.grey[400],
41
+ }), w = a("div")(() => ({ position: "relative" })), T = a(h)(() => ({
42
+ fill: d.border(),
43
43
  left: -56,
44
44
  position: "absolute",
45
45
  top: 40
46
- })), T = a(f)(({ theme: e }) => ({
46
+ })), E = a(p)(({ theme: e }) => ({
47
47
  width: "100%",
48
48
  marginTop: e.spacing(2)
49
- })), E = a(S)(({ theme: e }) => ({
49
+ })), D = a(C)(({ theme: e }) => ({
50
50
  width: "100%",
51
51
  marginTop: e.spacing(2)
52
- })), D = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: c = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ s(C, { children: [/* @__PURE__ */ o(w, {}), /* @__PURE__ */ o(T, {
52
+ })), O = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: c = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ s(w, { children: [/* @__PURE__ */ o(T, {}), /* @__PURE__ */ o(E, {
53
53
  label: "Feedback Text",
54
54
  value: r ? i.correct : i.incorrect,
55
55
  variant: "standard"
56
- })] }) : /* @__PURE__ */ s(C, { children: [/* @__PURE__ */ o(w, {}), /* @__PURE__ */ o(E, {
56
+ })] }) : /* @__PURE__ */ s(w, { children: [/* @__PURE__ */ o(T, {}), /* @__PURE__ */ o(D, {
57
57
  label: "Feedback Text",
58
58
  value: e,
59
59
  onChange: t,
60
60
  toolbarOpts: a,
61
61
  mathMlOptions: c
62
- })] }), O = a("span")(({ theme: e }) => ({
62
+ })] }), k = a("span")(({ theme: e }) => ({
63
63
  paddingRight: e.spacing(1),
64
64
  paddingTop: e.spacing(3)
65
- })), k = a("div")(() => ({
65
+ })), A = a("div")(() => ({
66
66
  display: "flex",
67
67
  alignItems: "center"
68
- })), A = a("div")(({ theme: e }) => ({
68
+ })), j = a("div")(({ theme: e }) => ({
69
69
  flex: "0 1 auto",
70
70
  paddingTop: e.spacing(.5),
71
71
  paddingBottom: 0,
72
72
  marginRight: 0,
73
73
  marginLeft: e.spacing(1)
74
- })), j = a("div")(({ theme: e }) => ({
74
+ })), M = a("div")(({ theme: e }) => ({
75
75
  flex: "0 1 auto",
76
76
  paddingTop: e.spacing(2),
77
77
  paddingLeft: 0,
78
78
  marginLeft: 0,
79
79
  marginRight: e.spacing(1)
80
- })), M = a("div")(() => ({
80
+ })), N = a("div")(() => ({
81
81
  margin: 0,
82
82
  width: "inherit"
83
- })), N = a("div")(() => ({
83
+ })), P = a("div")(() => ({
84
84
  margin: 0,
85
85
  width: "inherit"
86
- })), P = a("div")(({ theme: e }) => ({
86
+ })), F = a("div")(({ theme: e }) => ({
87
87
  flex: "0 1 auto",
88
88
  paddingTop: e.spacing(2),
89
89
  paddingLeft: 0,
90
90
  marginLeft: 0
91
- })), F = a("div")(({ theme: e }) => ({
91
+ })), I = a("div")(({ theme: e }) => ({
92
92
  display: "flex",
93
93
  flex: 1,
94
94
  flexDirection: "column",
95
95
  marginRight: e.spacing(1)
96
- })), I = a("div")(({ theme: e }) => ({
96
+ })), L = a("div")(({ theme: e }) => ({
97
97
  fontSize: e.typography.fontSize - 2,
98
98
  color: e.palette.error.main
99
- })), L = class extends r.Component {
99
+ })), R = class extends r.Component {
100
100
  static propTypes = {
101
101
  noLabels: i.bool,
102
102
  useLetterOrdering: i.bool,
@@ -178,26 +178,26 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
178
178
  });
179
179
  };
180
180
  render() {
181
- let { data: r, mode: i, onDelete: a, defaultFeedback: c, index: l, className: u, noLabels: f, useLetterOrdering: m, imageSupport: h, disableImageAlignmentButtons: g, disabled: v, spellCheck: y, nonEmpty: b, allowFeedBack: x, allowDelete: C, pluginOpts: w, toolbarOpts: T, error: E, noCorrectAnswerError: L, uploadSoundSupport: R, maxImageWidth: z, maxImageHeight: B, mathMlOptions: V = {} } = this.props, H = i === "checkbox" ? e : t;
182
- return /* @__PURE__ */ s(k, { children: [
183
- l > 0 && /* @__PURE__ */ o(O, {
181
+ let { data: r, mode: i, onDelete: a, defaultFeedback: c, index: l, className: u, noLabels: d, useLetterOrdering: p, imageSupport: h, disableImageAlignmentButtons: g, disabled: _, spellCheck: y, nonEmpty: b, allowFeedBack: x, allowDelete: S, pluginOpts: w, toolbarOpts: T, error: E, noCorrectAnswerError: D, uploadSoundSupport: R, maxImageWidth: z, maxImageHeight: B, mathMlOptions: V = {} } = this.props, H = i === "checkbox" ? e : t;
182
+ return /* @__PURE__ */ s(A, { children: [
183
+ l > 0 && /* @__PURE__ */ o(k, {
184
184
  type: "title",
185
- children: m ? String.fromCharCode(96 + l).toUpperCase() : l
185
+ children: p ? String.fromCharCode(96 + l).toUpperCase() : l
186
186
  }),
187
- /* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(H, {
187
+ /* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(H, {
188
188
  onChange: this.onCheckedChange,
189
- label: f ? "" : "Correct",
189
+ label: d ? "" : "Correct",
190
190
  checked: !!r.correct,
191
- error: L
191
+ error: D
192
192
  }) }),
193
- /* @__PURE__ */ s(F, { children: [
194
- /* @__PURE__ */ o(S, {
195
- label: f ? "" : "Label",
193
+ /* @__PURE__ */ s(I, { children: [
194
+ /* @__PURE__ */ o(C, {
195
+ label: d ? "" : "Label",
196
196
  value: r.label,
197
197
  onChange: this.onLabelChange,
198
198
  imageSupport: h,
199
199
  disableImageAlignmentButtons: g,
200
- disabled: v,
200
+ disabled: _,
201
201
  spellCheck: y,
202
202
  nonEmpty: b,
203
203
  pluginOpts: w,
@@ -208,8 +208,8 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
208
208
  maxImageWidth: z,
209
209
  maxImageHeight: B
210
210
  }),
211
- E && /* @__PURE__ */ o(I, { children: E }),
212
- x && /* @__PURE__ */ o(D, {
211
+ E && /* @__PURE__ */ o(L, { children: E }),
212
+ x && /* @__PURE__ */ o(O, {
213
213
  ...r.feedback,
214
214
  correct: r.correct,
215
215
  defaults: c,
@@ -217,24 +217,24 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
217
217
  toolbarOpts: T
218
218
  })
219
219
  ] }),
220
- x && /* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(_, {
221
- label: f ? "" : "Feedback",
222
- children: /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(n, {
220
+ x && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(v, {
221
+ label: d ? "" : "Feedback",
222
+ children: /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o(n, {
223
223
  onChange: this.onFeedbackTypeChange,
224
224
  value: r.feedback
225
225
  }) })
226
226
  }) }),
227
- C && /* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(_, {
228
- label: f ? "" : "Delete",
229
- children: /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o(d, {
227
+ S && /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(v, {
228
+ label: d ? "" : "Delete",
229
+ children: /* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(f, {
230
230
  "aria-label": "delete",
231
231
  onClick: a,
232
232
  size: "large",
233
- children: /* @__PURE__ */ o(p, {})
233
+ children: /* @__PURE__ */ o(m, {})
234
234
  }) })
235
235
  }) })
236
236
  ] });
237
237
  }
238
238
  };
239
239
  //#endregion
240
- export { L as default };
240
+ export { R as ChoiceConfiguration, R as default };
@@ -12,4 +12,4 @@ var n = /* @__PURE__ */ e({
12
12
  };
13
13
  }, i = (e, n) => t(e, `${n}`) ? i(e, n + 1) : `${n}`;
14
14
  //#endregion
15
- export { n as choice_utils_exports };
15
+ export { n as choice_utils_exports, i as firstAvailableIndex, r as normalizeChoices };
@@ -5,33 +5,33 @@ import { styled as r } from "@mui/material/styles";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import o from "@pie-lib/editable-html-tip-tap";
7
7
  import * as s from "@pie-lib/render-ui";
8
- import { InputContainer as c } from "@pie-lib/render-ui";
8
+ import { InputContainer as c, color as l } from "@pie-lib/render-ui";
9
9
  //#region src/feedback-config/feedback-selector.tsx
10
- function l(e) {
10
+ function u(e) {
11
11
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
12
12
  }
13
- function u(e, t) {
14
- return !e || l(e) ? e : l(e.default) ? e.default : t && l(e[t]) ? e[t] : t && l(e[t]?.default) ? e[t].default : e;
13
+ function d(e, t) {
14
+ return !e || u(e) ? e : u(e.default) ? e.default : t && u(e[t]) ? e[t] : t && u(e[t]?.default) ? e[t].default : e;
15
15
  }
16
- var d = u(c, "InputContainer") || u(m.InputContainer, "InputContainer"), f = s, p = f.default, m = p && typeof p == "object" ? p : f, h = r(o)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), g = {
16
+ var f = d(c, "InputContainer") || d(h.InputContainer, "InputContainer"), p = s, m = p.default, h = m && typeof m == "object" ? m : p, g = r(o)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), _ = {
17
17
  default: "Simple Feedback",
18
18
  none: "No Feedback",
19
19
  custom: "Customized Feedback"
20
- }, _ = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), v = r(d)(() => ({ paddingBottom: 0 })), y = r("div")(({ theme: e }) => ({
20
+ }, v = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), y = r(f)(() => ({ paddingBottom: 0 })), b = r("div")(({ theme: e }) => ({
21
21
  marginTop: "0px",
22
- background: e.palette.grey[300],
22
+ background: l.backgroundDark(),
23
23
  padding: 0,
24
24
  marginBottom: e.spacing(2),
25
25
  borderRadius: "4px"
26
- })), b = r("div")(({ theme: e }) => ({
26
+ })), x = r("div")(({ theme: e }) => ({
27
27
  marginTop: "0px",
28
- background: e.palette.grey[300],
28
+ background: l.backgroundDark(),
29
29
  padding: e.spacing(2),
30
30
  marginBottom: e.spacing(2),
31
31
  borderRadius: "4px",
32
32
  fontFamily: e.typography.fontFamily,
33
33
  cursor: "default"
34
- })), x = r(e)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), S = {
34
+ })), S = r(e)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), C = {
35
35
  type: n.oneOf([
36
36
  "default",
37
37
  "custom",
@@ -39,11 +39,11 @@ var d = u(c, "InputContainer") || u(m.InputContainer, "InputContainer"), f = s,
39
39
  ]),
40
40
  default: n.string,
41
41
  custom: n.string
42
- }, C = class extends t.Component {
42
+ }, w = class extends t.Component {
43
43
  static propTypes = {
44
44
  keys: n.arrayOf(n.string),
45
45
  label: n.string.isRequired,
46
- feedback: n.shape(S).isRequired,
46
+ feedback: n.shape(C).isRequired,
47
47
  onChange: n.func.isRequired,
48
48
  toolbarOpts: n.object,
49
49
  mathMlOptions: n.object
@@ -65,28 +65,28 @@ var d = u(c, "InputContainer") || u(m.InputContainer, "InputContainer"), f = s,
65
65
  };
66
66
  render() {
67
67
  let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: o = {} } = this.props;
68
- return /* @__PURE__ */ a(_, { children: [
69
- /* @__PURE__ */ i(v, {
68
+ return /* @__PURE__ */ a(v, { children: [
69
+ /* @__PURE__ */ i(y, {
70
70
  label: t,
71
71
  extraClasses: { label: { transform: "translateY(-20%)" } },
72
- children: /* @__PURE__ */ i(x, {
73
- keys: e || Object.keys(g),
72
+ children: /* @__PURE__ */ i(S, {
73
+ keys: e || Object.keys(_),
74
74
  label: t,
75
75
  value: n.type,
76
76
  onChange: this.changeType,
77
- feedbackLabels: g
77
+ feedbackLabels: _
78
78
  })
79
79
  }),
80
- n.type === "custom" && /* @__PURE__ */ i(y, { children: /* @__PURE__ */ i(h, {
80
+ n.type === "custom" && /* @__PURE__ */ i(b, { children: /* @__PURE__ */ i(g, {
81
81
  onChange: this.changeCustom,
82
82
  markup: n.custom || "",
83
83
  toolbarOpts: r,
84
84
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
85
85
  mathMlOptions: o
86
86
  }) }),
87
- n.type === "default" && /* @__PURE__ */ a(b, { children: [" ", n.default] })
87
+ n.type === "default" && /* @__PURE__ */ a(x, { children: [" ", n.default] })
88
88
  ] });
89
89
  }
90
90
  };
91
91
  //#endregion
92
- export { S as FeedbackType, C as default };
92
+ export { w as FeedbackSelector, w as default, C as FeedbackType };
@@ -1,4 +1,4 @@
1
- import e, { FeedbackType as t } from "./feedback-selector.js";
1
+ import { FeedbackSelector as e, FeedbackType as t } from "./feedback-selector.js";
2
2
  import n from "react";
3
3
  import r from "prop-types";
4
4
  import { styled as i } from "@mui/material/styles";
@@ -93,4 +93,4 @@ var p = i("div")(() => ({
93
93
  }
94
94
  };
95
95
  //#endregion
96
- export { h as buildDefaults, g as default };
96
+ export { g as FeedbackConfig, g as default, e as FeedbackSelector, h as buildDefaults };
package/dist/help.js CHANGED
@@ -2,41 +2,42 @@ import e from "react";
2
2
  import t from "prop-types";
3
3
  import { styled as n } from "@mui/material/styles";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import a from "@mui/material/Dialog";
6
- import o from "@mui/material/DialogTitle";
7
- import s from "@mui/material/DialogContentText";
8
- import c from "@mui/material/DialogContent";
9
- import l from "@mui/material/DialogActions";
10
- import u from "@mui/material/Button";
11
- import d from "@mui/icons-material/Help";
12
- import f from "@mui/material/IconButton";
5
+ import { color as a } from "@pie-lib/render-ui";
6
+ import o from "@mui/material/Dialog";
7
+ import s from "@mui/material/DialogTitle";
8
+ import c from "@mui/material/DialogContentText";
9
+ import l from "@mui/material/DialogContent";
10
+ import u from "@mui/material/DialogActions";
11
+ import d from "@mui/material/Button";
12
+ import f from "@mui/icons-material/Help";
13
+ import p from "@mui/material/IconButton";
13
14
  //#region src/help.tsx
14
- var p = n(f)(({ theme: e }) => ({ "&:hover": { color: e.palette.grey[300] } })), m = ({ onClick: e }) => /* @__PURE__ */ r(p, {
15
+ var m = n(p)(() => ({ "&:hover": { color: a.borderLight() } })), h = ({ onClick: e }) => /* @__PURE__ */ r(m, {
15
16
  onClick: e,
16
17
  size: "large",
17
- children: /* @__PURE__ */ r(d, {})
18
+ children: /* @__PURE__ */ r(f, {})
18
19
  });
19
- m.propTypes = { onClick: t.func };
20
- var h = ({ open: e, onClose: t, children: n, title: d }) => /* @__PURE__ */ i(a, {
20
+ h.propTypes = { onClick: t.func };
21
+ var g = ({ open: e, onClose: t, children: n, title: a }) => /* @__PURE__ */ i(o, {
21
22
  open: e,
22
23
  onClose: t,
23
24
  children: [
24
- /* @__PURE__ */ r(o, { children: d }),
25
- /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(s, { children: n }) }),
26
- /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(u, {
25
+ /* @__PURE__ */ r(s, { children: a }),
26
+ /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(c, { children: n }) }),
27
+ /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(d, {
27
28
  onClick: t,
28
29
  color: "primary",
29
30
  children: "OK"
30
31
  }) })
31
32
  ]
32
33
  });
33
- h.propTypes = {
34
+ g.propTypes = {
34
35
  open: t.bool,
35
36
  onClose: t.func,
36
37
  children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired,
37
38
  title: t.string.isRequired
38
39
  };
39
- var g = class extends e.Component {
40
+ var _ = class extends e.Component {
40
41
  static propTypes = {
41
42
  children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired,
42
43
  title: t.string
@@ -46,10 +47,10 @@ var g = class extends e.Component {
46
47
  }
47
48
  render() {
48
49
  let { children: e, title: t } = this.props;
49
- return /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(m, {
50
+ return /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(h, {
50
51
  color: "accent",
51
52
  onClick: () => this.setState({ open: !0 })
52
- }), /* @__PURE__ */ r(h, {
53
+ }), /* @__PURE__ */ r(g, {
53
54
  open: this.state.open,
54
55
  title: t,
55
56
  onClose: () => this.setState({ open: !1 }),
@@ -58,4 +59,4 @@ var g = class extends e.Component {
58
59
  }
59
60
  };
60
61
  //#endregion
61
- export { g as default };
62
+ export { h as HelpButton, g as HelpDialog, _ as default };
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import e from "./alert-dialog.js";
2
- import t from "./feedback-config/feedback-selector.js";
3
- import n, { buildDefaults as r } from "./feedback-config/index.js";
2
+ import { FeedbackSelector as t } from "./feedback-config/feedback-selector.js";
3
+ import { FeedbackConfig as n, buildDefaults as r } from "./feedback-config/index.js";
4
4
  import { InputCheckbox as i, InputRadio as a, InputSwitch as o } from "./inputs.js";
5
- import s, { LanguageControls as c } from "./langs.js";
6
- import l from "./tabs/index.js";
5
+ import { Langs as s, LanguageControls as c } from "./langs.js";
6
+ import { Tabs as l } from "./tabs/index.js";
7
7
  import u from "./checkbox.js";
8
8
  import d from "./form-section.js";
9
9
  import f from "./help.js";
10
10
  import p from "./input.js";
11
- import m from "./number-text-field.js";
12
- import h from "./number-text-field-custom.js";
11
+ import { NumberTextField as m } from "./number-text-field.js";
12
+ import { NumberTextFieldCustom as h } from "./number-text-field-custom.js";
13
13
  import g, { NChoice as _ } from "./two-choice.js";
14
14
  import v from "./mui-box/index.js";
15
- import y from "./tags-input/index.js";
16
- import b from "./choice-configuration/index.js";
15
+ import { TagsInput as y } from "./tags-input/index.js";
16
+ import { ChoiceConfiguration as b } from "./choice-configuration/index.js";
17
17
  import { layout_exports as x } from "./layout/index.js";
18
18
  import { choice_utils_exports as S } from "./choice-utils.js";
19
19
  import C from "./with-stateful-model.js";
package/dist/langs.js CHANGED
@@ -73,4 +73,4 @@ _.propTypes = {
73
73
  className: t.string
74
74
  };
75
75
  //#endregion
76
- export { _ as LanguageControls, h as default };
76
+ export { h as Langs, h as default, _ as LanguageControls };
@@ -1,6 +1,6 @@
1
1
  import e, { withContentRect as t } from "../node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js";
2
2
  import n from "./layout-contents.js";
3
- import r from "./settings-box.js";
3
+ import { SettingsBox as r } from "./settings-box.js";
4
4
  import i from "react";
5
5
  import a from "prop-types";
6
6
  import { StyledEngineProvider as o, ThemeProvider as s, createTheme as c } from "@mui/material/styles";
@@ -7,4 +7,4 @@ var r = /* @__PURE__ */ e({
7
7
  LayoutContents: () => t
8
8
  });
9
9
  //#endregion
10
- export { r as layout_exports };
10
+ export { n as ConfigLayout, t as LayoutContents, r as layout_exports };
@@ -1,4 +1,4 @@
1
- import e from "../tabs/index.js";
1
+ import { Tabs as e } from "../tabs/index.js";
2
2
  import t from "react";
3
3
  import n from "prop-types";
4
4
  import { styled as r } from "@mui/material/styles";
@@ -2,10 +2,11 @@ import e from "react";
2
2
  import t from "prop-types";
3
3
  import { styled as n } from "@mui/material/styles";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
+ import { color as i } from "@pie-lib/render-ui";
5
6
  //#region src/layout/settings-box.tsx
6
- var i = n("div")(({ theme: e }) => ({
7
- backgroundColor: e.palette.background.paper,
8
- border: `2px solid ${e.palette.grey[200]}`,
7
+ var a = n("div")(() => ({
8
+ backgroundColor: i.white(),
9
+ border: `2px solid ${i.border()}`,
9
10
  display: "flex",
10
11
  flexDirection: "column",
11
12
  justifyContent: "flex-start",
@@ -13,7 +14,7 @@ var i = n("div")(({ theme: e }) => ({
13
14
  maxWidth: "300px",
14
15
  padding: "20px 4px 4px 20px",
15
16
  zIndex: 99
16
- })), a = class extends e.Component {
17
+ })), o = class extends e.Component {
17
18
  static propTypes = {
18
19
  className: t.string,
19
20
  children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired
@@ -21,11 +22,11 @@ var i = n("div")(({ theme: e }) => ({
21
22
  static defaultProps = {};
22
23
  render() {
23
24
  let { className: e, children: t } = this.props;
24
- return /* @__PURE__ */ r(i, {
25
+ return /* @__PURE__ */ r(a, {
25
26
  className: e,
26
27
  children: t
27
28
  });
28
29
  }
29
30
  };
30
31
  //#endregion
31
- export { a as default };
32
+ export { o as SettingsBox, o as default };
@@ -1,4 +1,4 @@
1
- //#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
2
2
  function e() {
3
3
  return e = Object.assign ? Object.assign.bind() : function(e) {
4
4
  for (var t = 1; t < arguments.length; t++) {
@@ -9,4 +9,4 @@ function e() {
9
9
  }, e.apply(null, arguments);
10
10
  }
11
11
  //#endregion
12
- export { e as _extends };
12
+ export { e as default };
@@ -1,7 +1,7 @@
1
- import { _setPrototypeOf as e } from "./setPrototypeOf.js";
2
- //#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1
+ import e from "./setPrototypeOf.js";
2
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
3
3
  function t(t, n) {
4
4
  t.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);
5
5
  }
6
6
  //#endregion
7
- export { t as _inheritsLoose };
7
+ export { t as default };
@@ -1,4 +1,4 @@
1
- //#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
2
2
  function e(e, t) {
3
3
  if (e == null) return {};
4
4
  var n = {};
@@ -9,4 +9,4 @@ function e(e, t) {
9
9
  return n;
10
10
  }
11
11
  //#endregion
12
- export { e as _objectWithoutPropertiesLoose };
12
+ export { e as default };
@@ -1,8 +1,8 @@
1
- //#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
2
2
  function e(t, n) {
3
3
  return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
4
4
  return e.__proto__ = t, e;
5
5
  }, e(t, n);
6
6
  }
7
7
  //#endregion
8
- export { e as _setPrototypeOf };
8
+ export { e as default };
@@ -1,6 +1,6 @@
1
- import { _extends as e } from "../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js";
2
- import { _objectWithoutPropertiesLoose as t } from "../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
3
- import { _inheritsLoose as n } from "../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
1
+ import e from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js";
2
+ import t from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
3
+ import n from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
4
4
  import r from "../../../../resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
5
5
  import { Component as i, createElement as a } from "react";
6
6
  import o from "prop-types";
@@ -189,4 +189,4 @@ var d = r(s)(() => ({
189
189
  }
190
190
  };
191
191
  //#endregion
192
- export { m as default };
192
+ export { m as NumberTextFieldCustom, m as default };
@@ -119,4 +119,4 @@ var c = a("@pie-lib:config-ui:number-text-field"), l = n(o)(({ theme: e }) => ({
119
119
  }
120
120
  };
121
121
  //#endregion
122
- export { d as default };
122
+ export { d as NumberTextField, d as default };
@@ -1,4 +1,4 @@
1
- import e from "../number-text-field.js";
1
+ import { NumberTextField as e } from "../number-text-field.js";
2
2
  import "react";
3
3
  import t from "prop-types";
4
4
  import { styled as n } from "@mui/material/styles";
@@ -1,5 +1,5 @@
1
1
  import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
- import t from "./panel.js";
2
+ import { Panel as t } from "./panel.js";
3
3
  //#region src/settings/index.ts
4
4
  var n = /* @__PURE__ */ e({
5
5
  Panel: () => t,
@@ -60,4 +60,4 @@ var n = /* @__PURE__ */ e({
60
60
  choices: t
61
61
  });
62
62
  //#endregion
63
- export { n as settings_exports };
63
+ export { t as Panel, u as checkbox, d as checkboxes, s as dropdown, c as numberField, l as numberFields, o as radio, n as settings_exports, r as textField, i as toggle };
@@ -1,5 +1,5 @@
1
1
  import e from "../checkbox.js";
2
- import t from "../number-text-field.js";
2
+ import { NumberTextField as t } from "../number-text-field.js";
3
3
  import { NChoice as n } from "../two-choice.js";
4
4
  import r from "./toggle.js";
5
5
  import i from "./settings-radio-label.js";
@@ -198,4 +198,4 @@ var L = class extends a.Component {
198
198
  }
199
199
  };
200
200
  //#endregion
201
- export { L as default };
201
+ export { L as Panel, L as default };
@@ -36,4 +36,4 @@ var s = n(o)(() => ({})), c = class extends e.Component {
36
36
  }
37
37
  };
38
38
  //#endregion
39
- export { c as default };
39
+ export { c as Tabs, c as default };
@@ -80,4 +80,4 @@ var d = r("div")(({ theme: e }) => ({
80
80
  }
81
81
  };
82
82
  //#endregion
83
- export { p as default };
83
+ export { p as TagsInput, p as default };
package/package.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "name": "@pie-lib/config-ui",
3
- "version": "13.0.4-next.31",
3
+ "version": "13.0.4-next.33",
4
4
  "description": "React implementation of @pie-lib/config-ui synced from pie-lib",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/pie-framework/pie-elements-ng.git",
8
+ "directory": "packages/lib-react/config-ui"
9
+ },
5
10
  "dependencies": {
6
11
  "@emotion/react": "^11.14.0",
7
- "@emotion/style": "^0.8.0",
12
+ "@emotion/styled": "^11.14.1",
8
13
  "@mui/icons-material": "^7.3.4",
9
14
  "@mui/material": "^7.3.4",
10
- "@pie-lib/editable-html-tip-tap": "2.1.2-next.31",
15
+ "@pie-lib/editable-html-tip-tap": "2.1.2-next.33",
11
16
  "@pie-lib/icons": "4.0.2",
12
- "@pie-lib/render-ui": "6.1.1-next.38",
17
+ "@pie-lib/render-ui": "6.1.1-next.39",
13
18
  "assert": "^1.4.1",
14
19
  "debug": "^4.1.1",
15
20
  "prop-types": "^15.6.2",