@fileverse-dev/dsheet 1.0.10 → 1.0.12

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
@@ -161072,7 +161072,7 @@ var r4t = function(r) {
161072
161072
  }), /* @__PURE__ */ V.createElement("span", null, u.wholeTextbox)))), /* @__PURE__ */ V.createElement(L1, {
161073
161073
  className: "w-full border-t-[1px]"
161074
161074
  }), /* @__PURE__ */ V.createElement("div", {
161075
- className: "flex flex-row gap-2 justify-center items-center mb-4"
161075
+ className: "flex flex-row gap-2 justify-end items-center mb-4"
161076
161076
  }, /* @__PURE__ */ V.createElement(Ln, {
161077
161077
  id: "replaceAllBtn",
161078
161078
  variant: "secondary",
@@ -163214,7 +163214,7 @@ var c4t = function() {
163214
163214
  tabIndex: 0,
163215
163215
  role: "button",
163216
163216
  style: i ? {
163217
- backgroundColor: "#E7E5EB"
163217
+ backgroundColor: "#FFDF0A"
163218
163218
  } : u
163219
163219
  }, /* @__PURE__ */ V.createElement(or, {
163220
163220
  name: E2(a),
@@ -163233,31 +163233,36 @@ var c4t = function() {
163233
163233
  className: "fortune-toolbar-menu-divider"
163234
163234
  });
163235
163235
  }, lo = function(r) {
163236
- var t = r.tooltip, n = r.onClick, a = r.text, o = r.iconId, i = r.showArrow, s = i === void 0 ? !0 : i, u = r.children, l = {
163236
+ var t = r.tooltip, n = r.onClick, a = r.text, o = r.iconId, i = r.showArrow, s = i === void 0 ? !0 : i, u = r.children, l = r.fillColor, c = {
163237
163237
  userSelect: "none"
163238
- }, c = Ft(!1), f = Jt(c, 2), d = f[0], h = f[1], p = Zt(null), m = tn(function() {
163239
- return (o == null ? void 0 : o.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(o);
163240
- }, [o]), v = m ? /* @__PURE__ */ V.createElement(Pc, {
163238
+ }, f = Ft(!1), d = Jt(f, 2), h = d[0], p = d[1], m = Zt(null), v = tn(function() {
163239
+ return (o == null ? void 0 : o.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template", "font-color", "background"].includes(o);
163240
+ }, [o]), g = v ? /* @__PURE__ */ V.createElement(Pc, {
163241
163241
  text: t,
163242
163242
  placement: "bottom"
163243
163243
  }, /* @__PURE__ */ V.createElement(Yi, {
163244
163244
  icon: E2(o),
163245
163245
  variant: "ghost",
163246
163246
  onClick: function() {
163247
- return h(!d);
163247
+ return p(!h);
163248
163248
  },
163249
- className: "fortune-toolbar-combo-button"
163249
+ className: Bt("fortune-toolbar-combo-button", {
163250
+ "custom-color-button": o === "font-color" && l
163251
+ }),
163252
+ style: {
163253
+ color: o === "font-color" ? l : void 0
163254
+ }
163250
163255
  })) : /* @__PURE__ */ V.createElement(Pc, {
163251
163256
  text: t,
163252
163257
  placement: "bottom"
163253
163258
  }, /* @__PURE__ */ V.createElement("div", {
163254
163259
  className: "fortune-toolbar-combo-button",
163255
- onClick: function(y) {
163256
- n && (n(y), s || h(!d));
163260
+ onClick: function(b) {
163261
+ n && (n(b), s || p(!h));
163257
163262
  },
163258
163263
  tabIndex: 0,
163259
163264
  role: "button",
163260
- style: l
163265
+ style: c
163261
163266
  }, o ? /* @__PURE__ */ V.createElement(mn, {
163262
163267
  name: o,
163263
163268
  width: 16,
@@ -163266,22 +163271,22 @@ var c4t = function() {
163266
163271
  className: "fortune-toolbar-combo-text"
163267
163272
  }, a !== void 0 ? a : "")));
163268
163273
  return /* @__PURE__ */ V.createElement("div", {
163269
- ref: p,
163274
+ ref: m,
163270
163275
  className: "fortune-toolbar-item"
163271
163276
  }, /* @__PURE__ */ V.createElement(XF, {
163272
- open: d,
163273
- onOpenChange: h
163277
+ open: h,
163278
+ onOpenChange: p
163274
163279
  }, /* @__PURE__ */ V.createElement(KF, {
163275
163280
  asChild: !0
163276
163281
  }, /* @__PURE__ */ V.createElement("div", {
163277
163282
  className: "flex items-center"
163278
- }, v)), /* @__PURE__ */ V.createElement(q9, {
163283
+ }, g)), /* @__PURE__ */ V.createElement(q9, {
163279
163284
  align: "start",
163280
163285
  side: "bottom",
163281
163286
  sideOffset: 4,
163282
163287
  alignOffset: -16,
163283
163288
  className: "fortune-toolbar-combo-popup border-none"
163284
- }, u == null ? void 0 : u(h))));
163289
+ }, u == null ? void 0 : u(p))));
163285
163290
  }, Vo = function(r) {
163286
163291
  var t = r.children, n = r.style;
163287
163292
  return /* @__PURE__ */ V.createElement("div", {
@@ -163807,7 +163812,7 @@ var c4t = function() {
163807
163812
  tabIndex: 0,
163808
163813
  role: "button",
163809
163814
  style: a ? {
163810
- backgroundColor: "#E7E5EB"
163815
+ backgroundColor: "#FFDF0A"
163811
163816
  } : {}
163812
163817
  }, /* @__PURE__ */ V.createElement(p4t, {
163813
163818
  width: 16,
@@ -164161,18 +164166,19 @@ var c4t = function() {
164161
164166
  key: ge
164162
164167
  }, /* @__PURE__ */ V.createElement("div", {
164163
164168
  style: {
164164
- width: 17,
164165
- height: 2,
164169
+ width: 24,
164170
+ height: 4,
164166
164171
  backgroundColor: ge === "font-color" ? d.globalCache.recentTextColor : d.globalCache.recentBackgroundColor,
164167
164172
  position: "absolute",
164168
- bottom: 8,
164169
- left: 9,
164173
+ bottom: 2,
164174
+ left: 3,
164170
164175
  zIndex: 100
164171
164176
  }
164172
164177
  }), /* @__PURE__ */ V.createElement(lo, {
164173
164178
  iconId: ge,
164174
164179
  tooltip: ft,
164175
164180
  showArrow: !1,
164181
+ fillColor: ge === "font-color" ? d.globalCache.recentTextColor : void 0,
164176
164182
  onClick: function() {
164177
164183
  var Ee = ge === "font-color" ? d.globalCache.recentTextColor : d.globalCache.recentBackgroundColor;
164178
164184
  Ee && De(Ee);
@@ -291886,12 +291892,9 @@ const dCt = ({
291886
291892
  ]
291887
291893
  }
291888
291894
  ], gCt = {
291889
- "network-genosis": NETWORK_GENOSIS,
291890
291895
  accounting: pCt,
291891
291896
  "event-marketing": mCt,
291892
- invoice: vCt,
291893
- "project-comparison": projectComparison,
291894
- "social-graph": socialGraph
291897
+ invoice: vCt
291895
291898
  }, yCt = ({
291896
291899
  selectedTemplate: e,
291897
291900
  ydocRef: r,