@pdfme/ui 6.0.5 → 6.0.6-dev.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/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9468,7 +9468,7 @@ function parseExpressionAt(input, pos, options) {
|
|
|
9468
9468
|
}
|
|
9469
9469
|
//#endregion
|
|
9470
9470
|
//#region ../common/dist/index.js
|
|
9471
|
-
var PDFME_VERSION = "6.0.
|
|
9471
|
+
var PDFME_VERSION = "6.0.6";
|
|
9472
9472
|
var PT_TO_PX_RATIO = 1.333;
|
|
9473
9473
|
var PT_TO_MM_RATIO = .3528;
|
|
9474
9474
|
var MM_TO_PT_RATIO = 2.8346;
|
|
@@ -209051,7 +209051,7 @@ var AlignWidget = (props) => {
|
|
|
209051
209051
|
}
|
|
209052
209052
|
];
|
|
209053
209053
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Form$4.Item, {
|
|
209054
|
-
label: schema
|
|
209054
|
+
label: schema?.title,
|
|
209055
209055
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Space$1.Compact, { children: layoutBtns.map((btn) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(button_default$1, {
|
|
209056
209056
|
className: DESIGNER_CLASSNAME + "align-" + btn.id,
|
|
209057
209057
|
style: { padding: 7 },
|
|
@@ -209085,6 +209085,7 @@ var WidgetRenderer = (props) => {
|
|
|
209085
209085
|
var ButtonGroupWidget = (props) => {
|
|
209086
209086
|
const { activeElements, changeSchemas, schemas, schema } = props;
|
|
209087
209087
|
const { token } = theme_default.useToken();
|
|
209088
|
+
const buttons = Array.isArray(schema?.buttons) ? schema.buttons : [];
|
|
209088
209089
|
const apply = (btn) => {
|
|
209089
209090
|
const key = btn.key;
|
|
209090
209091
|
const type = btn.type;
|
|
@@ -209118,7 +209119,7 @@ var ButtonGroupWidget = (props) => {
|
|
|
209118
209119
|
alt: ""
|
|
209119
209120
|
});
|
|
209120
209121
|
};
|
|
209121
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Form$4.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Space$1.Compact, { children:
|
|
209122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Form$4.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Space$1.Compact, { children: buttons.map((btn, index) => {
|
|
209122
209123
|
const active = isActive(btn);
|
|
209123
209124
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(button_default$1, {
|
|
209124
209125
|
type: active ? "primary" : void 0,
|