@leankylin-sheet/react 3.1.40 → 3.1.41

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.esm.js CHANGED
@@ -5048,7 +5048,8 @@ var CustomColor = function CustomColor(_ref) {
5048
5048
  var onCustomPick = _ref.onCustomPick,
5049
5049
  onColorPick = _ref.onColorPick;
5050
5050
  var _useContext = useContext(WorkbookContext),
5051
- context = _useContext.context;
5051
+ context = _useContext.context,
5052
+ settings = _useContext.settings;
5052
5053
  var _locale = locale(context),
5053
5054
  toolbar = _locale.toolbar,
5054
5055
  sheetconfig = _locale.sheetconfig,
@@ -5057,6 +5058,12 @@ var CustomColor = function CustomColor(_ref) {
5057
5058
  _useState2 = _slicedToArray(_useState, 2),
5058
5059
  inputColor = _useState2[0],
5059
5060
  setInputColor = _useState2[1];
5061
+ if (settings.renderCustomColor) {
5062
+ return settings.renderCustomColor({
5063
+ onCustomPick: onCustomPick,
5064
+ onColorPick: onColorPick
5065
+ });
5066
+ }
5060
5067
  return /*#__PURE__*/React.createElement("div", {
5061
5068
  id: "leankylin-custom-color"
5062
5069
  }, /*#__PURE__*/React.createElement("div", {
package/dist/index.js CHANGED
@@ -5058,7 +5058,8 @@ var CustomColor = function CustomColor(_ref) {
5058
5058
  var onCustomPick = _ref.onCustomPick,
5059
5059
  onColorPick = _ref.onColorPick;
5060
5060
  var _useContext = React.useContext(WorkbookContext),
5061
- context = _useContext.context;
5061
+ context = _useContext.context,
5062
+ settings = _useContext.settings;
5062
5063
  var _locale = core.locale(context),
5063
5064
  toolbar = _locale.toolbar,
5064
5065
  sheetconfig = _locale.sheetconfig,
@@ -5067,6 +5068,12 @@ var CustomColor = function CustomColor(_ref) {
5067
5068
  _useState2 = _slicedToArray(_useState, 2),
5068
5069
  inputColor = _useState2[0],
5069
5070
  setInputColor = _useState2[1];
5071
+ if (settings.renderCustomColor) {
5072
+ return settings.renderCustomColor({
5073
+ onCustomPick: onCustomPick,
5074
+ onColorPick: onColorPick
5075
+ });
5076
+ }
5070
5077
  return /*#__PURE__*/React__default['default'].createElement("div", {
5071
5078
  id: "leankylin-custom-color"
5072
5079
  }, /*#__PURE__*/React__default['default'].createElement("div", {
package/dist/index.umd.js CHANGED
@@ -98370,7 +98370,8 @@
98370
98370
  var onCustomPick = _ref.onCustomPick,
98371
98371
  onColorPick = _ref.onColorPick;
98372
98372
  var _useContext = React.useContext(WorkbookContext),
98373
- context = _useContext.context;
98373
+ context = _useContext.context,
98374
+ settings = _useContext.settings;
98374
98375
  var _locale = locale(context),
98375
98376
  toolbar = _locale.toolbar,
98376
98377
  sheetconfig = _locale.sheetconfig,
@@ -98379,6 +98380,12 @@
98379
98380
  _useState2 = _slicedToArray(_useState, 2),
98380
98381
  inputColor = _useState2[0],
98381
98382
  setInputColor = _useState2[1];
98383
+ if (settings.renderCustomColor) {
98384
+ return settings.renderCustomColor({
98385
+ onCustomPick: onCustomPick,
98386
+ onColorPick: onColorPick
98387
+ });
98388
+ }
98382
98389
  return /*#__PURE__*/React__default['default'].createElement("div", {
98383
98390
  id: "leankylin-custom-color"
98384
98391
  }, /*#__PURE__*/React__default['default'].createElement("div", {