@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 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.2";
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 : "", `${x}-item-icon`)
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 : "", `${A}-item-icon`)
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: s,
116153
- indicator: c,
116154
- percent: u
116155
- } = a, d = `${s}-dot`;
116156
- return c && /* @__PURE__ */ reactExports.isValidElement(c) ? cloneElement(c, {
116157
- className: classnames(c.props.className, d),
116158
- percent: u
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: s,
116161
- percent: u
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: 500
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: s,
123100
- switcherIcon: c,
123101
- treeNodeProps: u,
123102
- showLine: d,
123103
- switcherLoadingIcon: p
123110
+ prefixCls: u,
123111
+ switcherIcon: d,
123112
+ treeNodeProps: p,
123113
+ showLine: v,
123114
+ switcherLoadingIcon: A
123104
123115
  } = a, {
123105
- isLeaf: v,
123106
- expanded: A,
123107
- loading: x
123108
- } = u;
123109
- if (x)
123110
- return /* @__PURE__ */ reactExports.isValidElement(p) ? p : /* @__PURE__ */ reactExports.createElement(RefIcon$F, {
123111
- className: `${s}-switcher-loading-icon`
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 g;
123114
- if (d && typeof d == "object" && (g = d.showLeafIcon), v) {
123115
- if (!d)
123124
+ let y;
123125
+ if (v && typeof v == "object" && (y = v.showLeafIcon), x) {
123126
+ if (!v)
123116
123127
  return null;
123117
- if (typeof g != "boolean" && g) {
123118
- const f = typeof g == "function" ? g(u) : g, m = `${s}-switcher-line-custom-icon`;
123119
- return /* @__PURE__ */ reactExports.isValidElement(f) ? cloneElement(f, {
123120
- className: classnames(f.props.className || "", m)
123121
- }) : f;
123122
- }
123123
- return g ? /* @__PURE__ */ reactExports.createElement(RefIcon$b, {
123124
- className: `${s}-switcher-line-icon`
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: `${s}-switcher-leaf-line`
123137
+ className: `${u}-switcher-leaf-line`
123127
123138
  });
123128
123139
  }
123129
- const b = `${s}-switcher-icon`, y = typeof c == "function" ? c(u) : c;
123130
- return /* @__PURE__ */ reactExports.isValidElement(y) ? cloneElement(y, {
123131
- className: classnames(y.props.className || "", b)
123132
- }) : y !== void 0 ? y : d ? A ? /* @__PURE__ */ reactExports.createElement(RefIcon$5, {
123133
- className: `${s}-switcher-line-icon`
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: `${s}-switcher-line-icon`
123146
+ className: `${u}-switcher-line-icon`
123136
123147
  }) : /* @__PURE__ */ reactExports.createElement(RefIcon$j, {
123137
- className: b
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: 600
126735
+ fontWeight: a.fontWeightStrong
126725
126736
  },
126726
126737
  // list
126727
126738
  "ul, ol": {