@pie-lib/math-toolbar 4.0.7-next.20261022203410 → 4.0.7

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.
@@ -105,24 +105,27 @@ var { commonMqFontStyles: _, commonMqKeyboardStyles: v, longdivStyles: y, supsub
105
105
  }
106
106
  },
107
107
  "& span[data-prime=\"true\"]": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
108
- })), T = a(l)({
109
- flex: "initial",
110
- width: "25%",
108
+ })), T = a(l)(({ theme: e }) => ({
109
+ width: "fit-content",
111
110
  minWidth: "100px",
112
- marginLeft: "15px",
113
- marginTop: "5px",
114
- marginBottom: "5px",
115
- marginRight: "5px",
111
+ maxWidth: "150px",
112
+ marginLeft: e.spacing(2),
113
+ marginTop: e.spacing(.5),
114
+ marginBottom: e.spacing(.5),
115
+ marginRight: e.spacing(2),
116
116
  "& label": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" },
117
117
  "& div": { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
118
- }), E = a(u)(() => ({ backgroundColor: "transparent" })), D = a("div")(({ theme: e, error: t }) => ({
119
- minWidth: "500px",
120
- maxWidth: "900px",
118
+ })), E = a(u)(() => ({ backgroundColor: "transparent" })), D = a("div")(({ theme: e, error: t, controlledKeypadMode: n }) => ({
119
+ ...n ? {
120
+ flex: 1,
121
+ minWidth: 0
122
+ } : {
123
+ width: "100%",
124
+ minWidth: "500px",
125
+ maxWidth: "900px"
126
+ },
121
127
  minHeight: "30px",
122
- width: "100%",
123
128
  display: "flex",
124
- marginTop: e.spacing(1),
125
- marginBottom: e.spacing(1),
126
129
  ...t && { border: "2px solid red" },
127
130
  "& .mq-sqrt-prefix .mq-scaled": { verticalAlign: "middle !important" }
128
131
  })), O = a(f.Input)(({ controlledKeypadMode: e }) => ({
@@ -310,6 +313,7 @@ var { commonMqFontStyles: _, commonMqKeyboardStyles: v, longdivStyles: y, supsub
310
313
  })]
311
314
  }), /* @__PURE__ */ h(D, {
312
315
  error: v,
316
+ controlledKeypadMode: a,
313
317
  children: /* @__PURE__ */ h(O, {
314
318
  onFocus: () => {
315
319
  m && m(), this.updateDisable(!1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/math-toolbar",
3
- "version": "4.0.7-next.20261022203410",
3
+ "version": "4.0.7",
4
4
  "description": "Math toolbar for editing math equations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,11 +12,11 @@
12
12
  "@emotion/styled": "^11.14.1",
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
- "@pie-lib/math-input": "9.0.7-next.20261022203410",
16
- "@pie-lib/render-ui": "8.0.7-next.20261022203410",
15
+ "@pie-lib/math-input": "9.0.7",
16
+ "@pie-lib/render-ui": "8.0.7",
17
17
  "debug": "^4.1.1",
18
18
  "prop-types": "^15.7.2",
19
- "@pie-element/shared-lodash": "0.1.3-next.20261020155912"
19
+ "@pie-element/shared-lodash": "0.1.3"
20
20
  },
21
21
  "type": "module",
22
22
  "main": "./dist/index.js",