@pdfme/ui 5.4.0-dev.65 → 5.4.0-dev.67
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.es.js +57 -46
- package/dist/index.umd.js +7 -7
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
@@ -80697,7 +80697,7 @@ function genStyleUtils(a) {
|
|
80697
80697
|
genComponentStyleHook: b
|
80698
80698
|
};
|
80699
80699
|
}
|
80700
|
-
const PresetColors = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"], version$1 = "5.26.
|
80700
|
+
const PresetColors = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"], version$1 = "5.26.3";
|
80701
80701
|
function isStableColor(a) {
|
80702
80702
|
return a >= 0 && a <= 255;
|
80703
80703
|
}
|
@@ -96352,7 +96352,7 @@ const MenuDivider = (a) => {
|
|
96352
96352
|
}, c),
|
96353
96353
|
title: typeof p == "string" ? p : void 0
|
96354
96354
|
}), cloneElement(d, {
|
96355
|
-
className: classnames(/* @__PURE__ */ reactExports.isValidElement(d) ? (s = d.props) === null || s === void 0 ? void 0 : s.className :
|
96355
|
+
className: classnames(/* @__PURE__ */ reactExports.isValidElement(d) ? (s = d.props) === null || s === void 0 ? void 0 : s.className : void 0, `${x}-item-icon`)
|
96356
96356
|
}), m(f));
|
96357
96357
|
return y || (T = /* @__PURE__ */ reactExports.createElement(Tooltip, Object.assign({}, S, {
|
96358
96358
|
placement: b === "rtl" ? "left" : "right",
|
@@ -97375,7 +97375,7 @@ const OverrideContext = /* @__PURE__ */ reactExports.createContext(null), Overri
|
|
97375
97375
|
else {
|
97376
97376
|
const C = /* @__PURE__ */ reactExports.isValidElement(d) && d.type === "span";
|
97377
97377
|
y = /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, cloneElement(u, {
|
97378
|
-
className: classnames(/* @__PURE__ */ reactExports.isValidElement(u) ? (s = u.props) === null || s === void 0 ? void 0 : s.className :
|
97378
|
+
className: classnames(/* @__PURE__ */ reactExports.isValidElement(u) ? (s = u.props) === null || s === void 0 ? void 0 : s.className : void 0, `${A}-item-icon`)
|
97379
97379
|
}), C ? d : /* @__PURE__ */ reactExports.createElement("span", {
|
97380
97380
|
className: `${A}-title-content`
|
97381
97381
|
}, d));
|
@@ -109075,7 +109075,11 @@ const prepareComponentToken$f = (a) => {
|
|
109075
109075
|
[`&:not(${s}-affix-wrapper-without-controls):hover ${s}-suffix`]: {
|
109076
109076
|
marginInlineEnd: a.calc(a.handleWidth).add(u).equal()
|
109077
109077
|
}
|
109078
|
-
})
|
109078
|
+
}),
|
109079
|
+
// 覆盖 affix-wrapper borderRadius!
|
109080
|
+
[`${s}-underlined`]: {
|
109081
|
+
borderRadius: 0
|
109082
|
+
}
|
109079
109083
|
};
|
109080
109084
|
}, useStyle$h = genStyleHooks("InputNumber", (a) => {
|
109081
109085
|
const s = merge(a, initInputToken(a));
|
@@ -116148,17 +116152,18 @@ function Looper(a) {
|
|
116148
116152
|
}));
|
116149
116153
|
}
|
116150
116154
|
function Indicator(a) {
|
116155
|
+
var s;
|
116151
116156
|
const {
|
116152
|
-
prefixCls:
|
116153
|
-
indicator:
|
116154
|
-
percent:
|
116155
|
-
} = a,
|
116156
|
-
return
|
116157
|
-
className: classnames(
|
116158
|
-
percent:
|
116157
|
+
prefixCls: c,
|
116158
|
+
indicator: u,
|
116159
|
+
percent: d
|
116160
|
+
} = a, p = `${c}-dot`;
|
116161
|
+
return u && /* @__PURE__ */ reactExports.isValidElement(u) ? cloneElement(u, {
|
116162
|
+
className: classnames((s = u.props) === null || s === void 0 ? void 0 : s.className, p),
|
116163
|
+
percent: d
|
116159
116164
|
}) : /* @__PURE__ */ reactExports.createElement(Looper, {
|
116160
|
-
prefixCls:
|
116161
|
-
percent:
|
116165
|
+
prefixCls: c,
|
116166
|
+
percent: d
|
116162
116167
|
});
|
116163
116168
|
}
|
116164
116169
|
const antSpinMove = new Keyframe("antSpinMove", {
|
@@ -122686,6 +122691,9 @@ const genDirectoryStyle = ({
|
|
122686
122691
|
// >>> Title
|
122687
122692
|
[`${a}-node-content-wrapper`]: {
|
122688
122693
|
position: "static",
|
122694
|
+
[`&:has(${a}-drop-indicator)`]: {
|
122695
|
+
position: "relative"
|
122696
|
+
},
|
122689
122697
|
[`> *:not(${a}-drop-indicator)`]: {
|
122690
122698
|
position: "relative"
|
122691
122699
|
},
|
@@ -122709,6 +122717,8 @@ const genDirectoryStyle = ({
|
|
122709
122717
|
},
|
122710
122718
|
// ============= Selected =============
|
122711
122719
|
"&-selected": {
|
122720
|
+
background: c,
|
122721
|
+
borderRadius: p,
|
122712
122722
|
[`${a}-switcher, ${a}-draggable-icon`]: {
|
122713
122723
|
color: u
|
122714
122724
|
},
|
@@ -122859,7 +122869,7 @@ const genDirectoryStyle = ({
|
|
122859
122869
|
},
|
122860
122870
|
[`&:not(${u}-disabled).filter-node ${c}-title`]: {
|
122861
122871
|
color: s.colorPrimary,
|
122862
|
-
fontWeight:
|
122872
|
+
fontWeight: s.fontWeightStrong
|
122863
122873
|
},
|
122864
122874
|
"&-draggable": {
|
122865
122875
|
cursor: "grab",
|
@@ -123095,46 +123105,47 @@ function dropIndicatorRender(a) {
|
|
123095
123105
|
});
|
123096
123106
|
}
|
123097
123107
|
const SwitcherIconCom = (a) => {
|
123108
|
+
var s, c;
|
123098
123109
|
const {
|
123099
|
-
prefixCls:
|
123100
|
-
switcherIcon:
|
123101
|
-
treeNodeProps:
|
123102
|
-
showLine:
|
123103
|
-
switcherLoadingIcon:
|
123110
|
+
prefixCls: u,
|
123111
|
+
switcherIcon: d,
|
123112
|
+
treeNodeProps: p,
|
123113
|
+
showLine: v,
|
123114
|
+
switcherLoadingIcon: A
|
123104
123115
|
} = a, {
|
123105
|
-
isLeaf:
|
123106
|
-
expanded:
|
123107
|
-
loading:
|
123108
|
-
} =
|
123109
|
-
if (
|
123110
|
-
return /* @__PURE__ */ reactExports.isValidElement(
|
123111
|
-
className: `${
|
123116
|
+
isLeaf: x,
|
123117
|
+
expanded: g,
|
123118
|
+
loading: b
|
123119
|
+
} = p;
|
123120
|
+
if (b)
|
123121
|
+
return /* @__PURE__ */ reactExports.isValidElement(A) ? A : /* @__PURE__ */ reactExports.createElement(RefIcon$F, {
|
123122
|
+
className: `${u}-switcher-loading-icon`
|
123112
123123
|
});
|
123113
|
-
let
|
123114
|
-
if (
|
123115
|
-
if (!
|
123124
|
+
let y;
|
123125
|
+
if (v && typeof v == "object" && (y = v.showLeafIcon), x) {
|
123126
|
+
if (!v)
|
123116
123127
|
return null;
|
123117
|
-
if (typeof
|
123118
|
-
const
|
123119
|
-
return /* @__PURE__ */ reactExports.isValidElement(
|
123120
|
-
className: classnames(
|
123121
|
-
}) :
|
123122
|
-
}
|
123123
|
-
return
|
123124
|
-
className: `${
|
123128
|
+
if (typeof y != "boolean" && y) {
|
123129
|
+
const C = typeof y == "function" ? y(p) : y, w = `${u}-switcher-line-custom-icon`;
|
123130
|
+
return /* @__PURE__ */ reactExports.isValidElement(C) ? cloneElement(C, {
|
123131
|
+
className: classnames((s = C.props) === null || s === void 0 ? void 0 : s.className, w)
|
123132
|
+
}) : C;
|
123133
|
+
}
|
123134
|
+
return y ? /* @__PURE__ */ reactExports.createElement(RefIcon$b, {
|
123135
|
+
className: `${u}-switcher-line-icon`
|
123125
123136
|
}) : /* @__PURE__ */ reactExports.createElement("span", {
|
123126
|
-
className: `${
|
123137
|
+
className: `${u}-switcher-leaf-line`
|
123127
123138
|
});
|
123128
123139
|
}
|
123129
|
-
const
|
123130
|
-
return /* @__PURE__ */ reactExports.isValidElement(
|
123131
|
-
className: classnames(
|
123132
|
-
}) :
|
123133
|
-
className: `${
|
123140
|
+
const f = `${u}-switcher-icon`, m = typeof d == "function" ? d(p) : d;
|
123141
|
+
return /* @__PURE__ */ reactExports.isValidElement(m) ? cloneElement(m, {
|
123142
|
+
className: classnames((c = m.props) === null || c === void 0 ? void 0 : c.className, f)
|
123143
|
+
}) : m !== void 0 ? m : v ? g ? /* @__PURE__ */ reactExports.createElement(RefIcon$5, {
|
123144
|
+
className: `${u}-switcher-line-icon`
|
123134
123145
|
}) : /* @__PURE__ */ reactExports.createElement(RefIcon$2, {
|
123135
|
-
className: `${
|
123146
|
+
className: `${u}-switcher-line-icon`
|
123136
123147
|
}) : /* @__PURE__ */ reactExports.createElement(RefIcon$j, {
|
123137
|
-
className:
|
123148
|
+
className: f
|
123138
123149
|
});
|
123139
123150
|
}, Tree$1 = /* @__PURE__ */ React.forwardRef((a, s) => {
|
123140
123151
|
var c;
|
@@ -126721,7 +126732,7 @@ const getTitleStyle = (a, s, c, u) => {
|
|
126721
126732
|
textDecoration: "line-through"
|
126722
126733
|
},
|
126723
126734
|
strong: {
|
126724
|
-
fontWeight:
|
126735
|
+
fontWeight: a.fontWeightStrong
|
126725
126736
|
},
|
126726
126737
|
// list
|
126727
126738
|
"ul, ol": {
|